@xpert-ai/plugin-live-dashboard 0.2.0 → 0.3.1
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/.xpertai-plugin/plugin.json +1 -1
- package/README.md +137 -0
- package/dist/index.js +11 -1
- package/dist/lib/assistant-template.d.ts +3 -0
- package/dist/lib/assistant-template.js +56 -0
- package/dist/lib/dashboard-view.schema.d.ts +27 -0
- package/dist/lib/dashboard-view.schema.js +1 -1
- package/dist/lib/dashboard.service.d.ts +6 -1
- package/dist/lib/dashboard.service.js +22 -6
- package/dist/lib/middleware.js +8 -2
- package/dist/lib/plugin.js +2 -1
- package/dist/lib/prompt-workflows.d.ts +4 -0
- package/dist/lib/prompt-workflows.js +132 -0
- package/dist/lib/provider-options.controller.d.ts +10 -0
- package/dist/lib/provider-options.controller.js +49 -0
- package/dist/lib/view.provider.d.ts +2 -122
- package/dist/lib/view.provider.js +8 -0
- package/dist/remote/app.css +1 -1
- package/dist/remote/app.js +19 -19
- package/dist/remote/build-manifest.json +21 -17
- package/dist/sandbox-actions/action.json +1 -1
- package/dist/sandbox-actions/bundle/resource-cache.mjs +39 -0
- package/dist/sandbox-actions/bundle/validate.mjs +90 -22
- package/package.json +3 -2
- package/scripts/import-prompts.mjs +108 -0
package/dist/remote/app.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
(function(){"use strict";function Uy(r,t){for(var o=0;o<t.length;o++){const i=t[o];if(typeof i!="string"&&!Array.isArray(i)){for(const a in i)if(a!=="default"&&!(a in r)){const l=Object.getOwnPropertyDescriptor(i,a);l&&Object.defineProperty(r,a,l.get?l:{enumerable:!0,get:()=>i[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}function By(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Pl={exports:{}},Le={};var of;function Hy(){if(of)return Le;of=1;var r=Symbol.for("react.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.iterator;function w(P){return P===null||typeof P!="object"?null:(P=y&&P[y]||P["@@iterator"],typeof P=="function"?P:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,_={};function k(P,E,W){this.props=P,this.context=E,this.refs=_,this.updater=W||b}k.prototype.isReactComponent={},k.prototype.setState=function(P,E){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,E,"setState")},k.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function T(){}T.prototype=k.prototype;function D(P,E,W){this.props=P,this.context=E,this.refs=_,this.updater=W||b}var N=D.prototype=new T;N.constructor=D,S(N,k.prototype),N.isPureReactComponent=!0;var I=Array.isArray,V=Object.prototype.hasOwnProperty,L={current:null},B={key:!0,ref:!0,__self:!0,__source:!0};function j(P,E,W){var X,H={},J=null,ue=null;if(E!=null)for(X in E.ref!==void 0&&(ue=E.ref),E.key!==void 0&&(J=""+E.key),E)V.call(E,X)&&!B.hasOwnProperty(X)&&(H[X]=E[X]);var ee=arguments.length-2;if(ee===1)H.children=W;else if(1<ee){for(var ie=Array(ee),Ae=0;Ae<ee;Ae++)ie[Ae]=arguments[Ae+2];H.children=ie}if(P&&P.defaultProps)for(X in ee=P.defaultProps,ee)H[X]===void 0&&(H[X]=ee[X]);return{$$typeof:r,type:P,key:J,ref:ue,props:H,_owner:L.current}}function Q(P,E){return{$$typeof:r,type:P.type,key:E,ref:P.ref,props:P.props,_owner:P._owner}}function ae(P){return typeof P=="object"&&P!==null&&P.$$typeof===r}function Ce(P){var E={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(W){return E[W]})}var ce=/\/+/g;function le(P,E){return typeof P=="object"&&P!==null&&P.key!=null?Ce(""+P.key):E.toString(36)}function fe(P,E,W,X,H){var J=typeof P;(J==="undefined"||J==="boolean")&&(P=null);var ue=!1;if(P===null)ue=!0;else switch(J){case"string":case"number":ue=!0;break;case"object":switch(P.$$typeof){case r:case t:ue=!0}}if(ue)return ue=P,H=H(ue),P=X===""?"."+le(ue,0):X,I(H)?(W="",P!=null&&(W=P.replace(ce,"$&/")+"/"),fe(H,E,W,"",function(Ae){return Ae})):H!=null&&(ae(H)&&(H=Q(H,W+(!H.key||ue&&ue.key===H.key?"":(""+H.key).replace(ce,"$&/")+"/")+P)),E.push(H)),1;if(ue=0,X=X===""?".":X+":",I(P))for(var ee=0;ee<P.length;ee++){J=P[ee];var ie=X+le(J,ee);ue+=fe(J,E,W,ie,H)}else if(ie=w(P),typeof ie=="function")for(P=ie.call(P),ee=0;!(J=P.next()).done;)J=J.value,ie=X+le(J,ee++),ue+=fe(J,E,W,ie,H);else if(J==="object")throw E=String(P),Error("Objects are not valid as a React child (found: "+(E==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":E)+"). If you meant to render a collection of children, use an array instead.");return ue}function ke(P,E,W){if(P==null)return P;var X=[],H=0;return fe(P,X,"","",function(J){return E.call(W,J,H++)}),X}function re(P){if(P._status===-1){var E=P._result;E=E(),E.then(function(W){(P._status===0||P._status===-1)&&(P._status=1,P._result=W)},function(W){(P._status===0||P._status===-1)&&(P._status=2,P._result=W)}),P._status===-1&&(P._status=0,P._result=E)}if(P._status===1)return P._result.default;throw P._result}var se={current:null},U={transition:null},G={ReactCurrentDispatcher:se,ReactCurrentBatchConfig:U,ReactCurrentOwner:L};function z(){throw Error("act(...) is not supported in production builds of React.")}return Le.Children={map:ke,forEach:function(P,E,W){ke(P,function(){E.apply(this,arguments)},W)},count:function(P){var E=0;return ke(P,function(){E++}),E},toArray:function(P){return ke(P,function(E){return E})||[]},only:function(P){if(!ae(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},Le.Component=k,Le.Fragment=o,Le.Profiler=a,Le.PureComponent=D,Le.StrictMode=i,Le.Suspense=h,Le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=G,Le.act=z,Le.cloneElement=function(P,E,W){if(P==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+P+".");var X=S({},P.props),H=P.key,J=P.ref,ue=P._owner;if(E!=null){if(E.ref!==void 0&&(J=E.ref,ue=L.current),E.key!==void 0&&(H=""+E.key),P.type&&P.type.defaultProps)var ee=P.type.defaultProps;for(ie in E)V.call(E,ie)&&!B.hasOwnProperty(ie)&&(X[ie]=E[ie]===void 0&&ee!==void 0?ee[ie]:E[ie])}var ie=arguments.length-2;if(ie===1)X.children=W;else if(1<ie){ee=Array(ie);for(var Ae=0;Ae<ie;Ae++)ee[Ae]=arguments[Ae+2];X.children=ee}return{$$typeof:r,type:P.type,key:H,ref:J,props:X,_owner:ue}},Le.createContext=function(P){return P={$$typeof:u,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},P.Provider={$$typeof:l,_context:P},P.Consumer=P},Le.createElement=j,Le.createFactory=function(P){var E=j.bind(null,P);return E.type=P,E},Le.createRef=function(){return{current:null}},Le.forwardRef=function(P){return{$$typeof:d,render:P}},Le.isValidElement=ae,Le.lazy=function(P){return{$$typeof:v,_payload:{_status:-1,_result:P},_init:re}},Le.memo=function(P,E){return{$$typeof:g,type:P,compare:E===void 0?null:E}},Le.startTransition=function(P){var E=U.transition;U.transition={};try{P()}finally{U.transition=E}},Le.unstable_act=z,Le.useCallback=function(P,E){return se.current.useCallback(P,E)},Le.useContext=function(P){return se.current.useContext(P)},Le.useDebugValue=function(){},Le.useDeferredValue=function(P){return se.current.useDeferredValue(P)},Le.useEffect=function(P,E){return se.current.useEffect(P,E)},Le.useId=function(){return se.current.useId()},Le.useImperativeHandle=function(P,E,W){return se.current.useImperativeHandle(P,E,W)},Le.useInsertionEffect=function(P,E){return se.current.useInsertionEffect(P,E)},Le.useLayoutEffect=function(P,E){return se.current.useLayoutEffect(P,E)},Le.useMemo=function(P,E){return se.current.useMemo(P,E)},Le.useReducer=function(P,E,W){return se.current.useReducer(P,E,W)},Le.useRef=function(P){return se.current.useRef(P)},Le.useState=function(P){return se.current.useState(P)},Le.useSyncExternalStore=function(P,E,W){return se.current.useSyncExternalStore(P,E,W)},Le.useTransition=function(){return se.current.useTransition()},Le.version="18.3.1",Le}var sf;function Il(){return sf||(sf=1,Pl.exports=Hy()),Pl.exports}var m=Il();const fi=Uy({__proto__:null,default:By(m)},[m]);var xs={},Ol={exports:{}},Dt={},Nl={exports:{}},Tl={};var af;function Wy(){return af||(af=1,(function(r){function t(U,G){var z=U.length;U.push(G);e:for(;0<z;){var P=z-1>>>1,E=U[P];if(0<a(E,G))U[P]=G,U[z]=E,z=P;else break e}}function o(U){return U.length===0?null:U[0]}function i(U){if(U.length===0)return null;var G=U[0],z=U.pop();if(z!==G){U[0]=z;e:for(var P=0,E=U.length,W=E>>>1;P<W;){var X=2*(P+1)-1,H=U[X],J=X+1,ue=U[J];if(0>a(H,z))J<E&&0>a(ue,H)?(U[P]=ue,U[J]=z,P=J):(U[P]=H,U[X]=z,P=X);else if(J<E&&0>a(ue,z))U[P]=ue,U[J]=z,P=J;else break e}}return G}function a(U,G){var z=U.sortIndex-G.sortIndex;return z!==0?z:U.id-G.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;r.unstable_now=function(){return l.now()}}else{var u=Date,d=u.now();r.unstable_now=function(){return u.now()-d}}var h=[],g=[],v=1,y=null,w=3,b=!1,S=!1,_=!1,k=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function N(U){for(var G=o(g);G!==null;){if(G.callback===null)i(g);else if(G.startTime<=U)i(g),G.sortIndex=G.expirationTime,t(h,G);else break;G=o(g)}}function I(U){if(_=!1,N(U),!S)if(o(h)!==null)S=!0,re(V);else{var G=o(g);G!==null&&se(I,G.startTime-U)}}function V(U,G){S=!1,_&&(_=!1,T(j),j=-1),b=!0;var z=w;try{for(N(G),y=o(h);y!==null&&(!(y.expirationTime>G)||U&&!Ce());){var P=y.callback;if(typeof P=="function"){y.callback=null,w=y.priorityLevel;var E=P(y.expirationTime<=G);G=r.unstable_now(),typeof E=="function"?y.callback=E:y===o(h)&&i(h),N(G)}else i(h);y=o(h)}if(y!==null)var W=!0;else{var X=o(g);X!==null&&se(I,X.startTime-G),W=!1}return W}finally{y=null,w=z,b=!1}}var L=!1,B=null,j=-1,Q=5,ae=-1;function Ce(){return!(r.unstable_now()-ae<Q)}function ce(){if(B!==null){var U=r.unstable_now();ae=U;var G=!0;try{G=B(!0,U)}finally{G?le():(L=!1,B=null)}}else L=!1}var le;if(typeof D=="function")le=function(){D(ce)};else if(typeof MessageChannel<"u"){var fe=new MessageChannel,ke=fe.port2;fe.port1.onmessage=ce,le=function(){ke.postMessage(null)}}else le=function(){k(ce,0)};function re(U){B=U,L||(L=!0,le())}function se(U,G){j=k(function(){U(r.unstable_now())},G)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(U){U.callback=null},r.unstable_continueExecution=function(){S||b||(S=!0,re(V))},r.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<U?Math.floor(1e3/U):5},r.unstable_getCurrentPriorityLevel=function(){return w},r.unstable_getFirstCallbackNode=function(){return o(h)},r.unstable_next=function(U){switch(w){case 1:case 2:case 3:var G=3;break;default:G=w}var z=w;w=G;try{return U()}finally{w=z}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(U,G){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var z=w;w=U;try{return G()}finally{w=z}},r.unstable_scheduleCallback=function(U,G,z){var P=r.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?P+z:P):z=P,U){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5e3}return E=z+E,U={id:v++,callback:G,priorityLevel:U,startTime:z,expirationTime:E,sortIndex:-1},z>P?(U.sortIndex=z,t(g,U),o(h)===null&&U===o(g)&&(_?(T(j),j=-1):_=!0,se(I,z-P))):(U.sortIndex=E,t(h,U),S||b||(S=!0,re(V))),U},r.unstable_shouldYield=Ce,r.unstable_wrapCallback=function(U){var G=w;return function(){var z=w;w=G;try{return U.apply(this,arguments)}finally{w=z}}}})(Tl)),Tl}var lf;function Ky(){return lf||(lf=1,Nl.exports=Wy()),Nl.exports}var cf;function Zy(){if(cf)return Dt;cf=1;var r=Il(),t=Ky();function o(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,s=1;s<arguments.length;s++)n+="&args[]="+encodeURIComponent(arguments[s]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,a={};function l(e,n){u(e,n),u(e+"Capture",n)}function u(e,n){for(a[e]=n,e=0;e<n.length;e++)i.add(n[e])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,g=/^[: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]*$/,v={},y={};function w(e){return h.call(y,e)?!0:h.call(v,e)?!1:g.test(e)?y[e]=!0:(v[e]=!0,!1)}function b(e,n,s,c){if(s!==null&&s.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return c?!1:s!==null?!s.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function S(e,n,s,c){if(n===null||typeof n>"u"||b(e,n,s,c))return!0;if(c)return!1;if(s!==null)switch(s.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function _(e,n,s,c,f,p,x){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=c,this.attributeNamespace=f,this.mustUseProperty=s,this.propertyName=e,this.type=n,this.sanitizeURL=p,this.removeEmptyString=x}var k={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){k[e]=new _(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];k[n]=new _(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){k[e]=new _(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){k[e]=new _(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){k[e]=new _(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){k[e]=new _(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){k[e]=new _(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){k[e]=new _(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){k[e]=new _(e,5,!1,e.toLowerCase(),null,!1,!1)});var T=/[\-:]([a-z])/g;function D(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(T,D);k[n]=new _(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(T,D);k[n]=new _(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(T,D);k[n]=new _(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){k[e]=new _(e,1,!1,e.toLowerCase(),null,!1,!1)}),k.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){k[e]=new _(e,1,!1,e.toLowerCase(),null,!0,!0)});function N(e,n,s,c){var f=k.hasOwnProperty(n)?k[n]:null;(f!==null?f.type!==0:c||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(S(n,s,f,c)&&(s=null),c||f===null?w(n)&&(s===null?e.removeAttribute(n):e.setAttribute(n,""+s)):f.mustUseProperty?e[f.propertyName]=s===null?f.type===3?!1:"":s:(n=f.attributeName,c=f.attributeNamespace,s===null?e.removeAttribute(n):(f=f.type,s=f===3||f===4&&s===!0?"":""+s,c?e.setAttributeNS(c,n,s):e.setAttribute(n,s))))}var I=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,V=Symbol.for("react.element"),L=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),ae=Symbol.for("react.provider"),Ce=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),le=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),ke=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),se=Symbol.for("react.offscreen"),U=Symbol.iterator;function G(e){return e===null||typeof e!="object"?null:(e=U&&e[U]||e["@@iterator"],typeof e=="function"?e:null)}var z=Object.assign,P;function E(e){if(P===void 0)try{throw Error()}catch(s){var n=s.stack.trim().match(/\n( *(at )?)/);P=n&&n[1]||""}return`
|
|
2
|
-
`+
|
|
1
|
+
(function(){"use strict";function Qy(r,t){for(var o=0;o<t.length;o++){const i=t[o];if(typeof i!="string"&&!Array.isArray(i)){for(const a in i)if(a!=="default"&&!(a in r)){const l=Object.getOwnPropertyDescriptor(i,a);l&&Object.defineProperty(r,a,l.get?l:{enumerable:!0,get:()=>i[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}function Yy(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var $l={exports:{}},Le={};var df;function Xy(){if(df)return Le;df=1;var r=Symbol.for("react.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.iterator;function S(I){return I===null||typeof I!="object"?null:(I=y&&I[y]||I["@@iterator"],typeof I=="function"?I:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,_={};function k(I,E,W){this.props=I,this.context=E,this.refs=_,this.updater=W||b}k.prototype.isReactComponent={},k.prototype.setState=function(I,E){if(typeof I!="object"&&typeof I!="function"&&I!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,I,E,"setState")},k.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function R(){}R.prototype=k.prototype;function D(I,E,W){this.props=I,this.context=E,this.refs=_,this.updater=W||b}var T=D.prototype=new R;T.constructor=D,w(T,k.prototype),T.isPureReactComponent=!0;var O=Array.isArray,V=Object.prototype.hasOwnProperty,L={current:null},B={key:!0,ref:!0,__self:!0,__source:!0};function j(I,E,W){var J,H={},re=null,pe=null;if(E!=null)for(J in E.ref!==void 0&&(pe=E.ref),E.key!==void 0&&(re=""+E.key),E)V.call(E,J)&&!B.hasOwnProperty(J)&&(H[J]=E[J]);var X=arguments.length-2;if(X===1)H.children=W;else if(1<X){for(var ne=Array(X),Te=0;Te<X;Te++)ne[Te]=arguments[Te+2];H.children=ne}if(I&&I.defaultProps)for(J in X=I.defaultProps,X)H[J]===void 0&&(H[J]=X[J]);return{$$typeof:r,type:I,key:re,ref:pe,props:H,_owner:L.current}}function Y(I,E){return{$$typeof:r,type:I.type,key:E,ref:I.ref,props:I.props,_owner:I._owner}}function ce(I){return typeof I=="object"&&I!==null&&I.$$typeof===r}function Ce(I){var E={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(W){return E[W]})}var le=/\/+/g;function ue(I,E){return typeof I=="object"&&I!==null&&I.key!=null?Ce(""+I.key):E.toString(36)}function se(I,E,W,J,H){var re=typeof I;(re==="undefined"||re==="boolean")&&(I=null);var pe=!1;if(I===null)pe=!0;else switch(re){case"string":case"number":pe=!0;break;case"object":switch(I.$$typeof){case r:case t:pe=!0}}if(pe)return pe=I,H=H(pe),I=J===""?"."+ue(pe,0):J,O(H)?(W="",I!=null&&(W=I.replace(le,"$&/")+"/"),se(H,E,W,"",function(Te){return Te})):H!=null&&(ce(H)&&(H=Y(H,W+(!H.key||pe&&pe.key===H.key?"":(""+H.key).replace(le,"$&/")+"/")+I)),E.push(H)),1;if(pe=0,J=J===""?".":J+":",O(I))for(var X=0;X<I.length;X++){re=I[X];var ne=J+ue(re,X);pe+=se(re,E,W,ne,H)}else if(ne=S(I),typeof ne=="function")for(I=ne.call(I),X=0;!(re=I.next()).done;)re=re.value,ne=J+ue(re,X++),pe+=se(re,E,W,ne,H);else if(re==="object")throw E=String(I),Error("Objects are not valid as a React child (found: "+(E==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":E)+"). If you meant to render a collection of children, use an array instead.");return pe}function be(I,E,W){if(I==null)return I;var J=[],H=0;return se(I,J,"","",function(re){return E.call(W,re,H++)}),J}function ae(I){if(I._status===-1){var E=I._result;E=E(),E.then(function(W){(I._status===0||I._status===-1)&&(I._status=1,I._result=W)},function(W){(I._status===0||I._status===-1)&&(I._status=2,I._result=W)}),I._status===-1&&(I._status=0,I._result=E)}if(I._status===1)return I._result.default;throw I._result}var oe={current:null},U={transition:null},G={ReactCurrentDispatcher:oe,ReactCurrentBatchConfig:U,ReactCurrentOwner:L};function z(){throw Error("act(...) is not supported in production builds of React.")}return Le.Children={map:be,forEach:function(I,E,W){be(I,function(){E.apply(this,arguments)},W)},count:function(I){var E=0;return be(I,function(){E++}),E},toArray:function(I){return be(I,function(E){return E})||[]},only:function(I){if(!ce(I))throw Error("React.Children.only expected to receive a single React element child.");return I}},Le.Component=k,Le.Fragment=o,Le.Profiler=a,Le.PureComponent=D,Le.StrictMode=i,Le.Suspense=h,Le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=G,Le.act=z,Le.cloneElement=function(I,E,W){if(I==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+I+".");var J=w({},I.props),H=I.key,re=I.ref,pe=I._owner;if(E!=null){if(E.ref!==void 0&&(re=E.ref,pe=L.current),E.key!==void 0&&(H=""+E.key),I.type&&I.type.defaultProps)var X=I.type.defaultProps;for(ne in E)V.call(E,ne)&&!B.hasOwnProperty(ne)&&(J[ne]=E[ne]===void 0&&X!==void 0?X[ne]:E[ne])}var ne=arguments.length-2;if(ne===1)J.children=W;else if(1<ne){X=Array(ne);for(var Te=0;Te<ne;Te++)X[Te]=arguments[Te+2];J.children=X}return{$$typeof:r,type:I.type,key:H,ref:re,props:J,_owner:pe}},Le.createContext=function(I){return I={$$typeof:u,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},I.Provider={$$typeof:l,_context:I},I.Consumer=I},Le.createElement=j,Le.createFactory=function(I){var E=j.bind(null,I);return E.type=I,E},Le.createRef=function(){return{current:null}},Le.forwardRef=function(I){return{$$typeof:d,render:I}},Le.isValidElement=ce,Le.lazy=function(I){return{$$typeof:v,_payload:{_status:-1,_result:I},_init:ae}},Le.memo=function(I,E){return{$$typeof:g,type:I,compare:E===void 0?null:E}},Le.startTransition=function(I){var E=U.transition;U.transition={};try{I()}finally{U.transition=E}},Le.unstable_act=z,Le.useCallback=function(I,E){return oe.current.useCallback(I,E)},Le.useContext=function(I){return oe.current.useContext(I)},Le.useDebugValue=function(){},Le.useDeferredValue=function(I){return oe.current.useDeferredValue(I)},Le.useEffect=function(I,E){return oe.current.useEffect(I,E)},Le.useId=function(){return oe.current.useId()},Le.useImperativeHandle=function(I,E,W){return oe.current.useImperativeHandle(I,E,W)},Le.useInsertionEffect=function(I,E){return oe.current.useInsertionEffect(I,E)},Le.useLayoutEffect=function(I,E){return oe.current.useLayoutEffect(I,E)},Le.useMemo=function(I,E){return oe.current.useMemo(I,E)},Le.useReducer=function(I,E,W){return oe.current.useReducer(I,E,W)},Le.useRef=function(I){return oe.current.useRef(I)},Le.useState=function(I){return oe.current.useState(I)},Le.useSyncExternalStore=function(I,E,W){return oe.current.useSyncExternalStore(I,E,W)},Le.useTransition=function(){return oe.current.useTransition()},Le.version="18.3.1",Le}var ff;function jl(){return ff||(ff=1,$l.exports=Xy()),$l.exports}var m=jl();const Si=Qy({__proto__:null,default:Yy(m)},[m]);var Ps={},Ml={exports:{}},jt={},zl={exports:{}},Fl={};var pf;function Jy(){return pf||(pf=1,(function(r){function t(U,G){var z=U.length;U.push(G);e:for(;0<z;){var I=z-1>>>1,E=U[I];if(0<a(E,G))U[I]=G,U[z]=E,z=I;else break e}}function o(U){return U.length===0?null:U[0]}function i(U){if(U.length===0)return null;var G=U[0],z=U.pop();if(z!==G){U[0]=z;e:for(var I=0,E=U.length,W=E>>>1;I<W;){var J=2*(I+1)-1,H=U[J],re=J+1,pe=U[re];if(0>a(H,z))re<E&&0>a(pe,H)?(U[I]=pe,U[re]=z,I=re):(U[I]=H,U[J]=z,I=J);else if(re<E&&0>a(pe,z))U[I]=pe,U[re]=z,I=re;else break e}}return G}function a(U,G){var z=U.sortIndex-G.sortIndex;return z!==0?z:U.id-G.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;r.unstable_now=function(){return l.now()}}else{var u=Date,d=u.now();r.unstable_now=function(){return u.now()-d}}var h=[],g=[],v=1,y=null,S=3,b=!1,w=!1,_=!1,k=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(U){for(var G=o(g);G!==null;){if(G.callback===null)i(g);else if(G.startTime<=U)i(g),G.sortIndex=G.expirationTime,t(h,G);else break;G=o(g)}}function O(U){if(_=!1,T(U),!w)if(o(h)!==null)w=!0,ae(V);else{var G=o(g);G!==null&&oe(O,G.startTime-U)}}function V(U,G){w=!1,_&&(_=!1,R(j),j=-1),b=!0;var z=S;try{for(T(G),y=o(h);y!==null&&(!(y.expirationTime>G)||U&&!Ce());){var I=y.callback;if(typeof I=="function"){y.callback=null,S=y.priorityLevel;var E=I(y.expirationTime<=G);G=r.unstable_now(),typeof E=="function"?y.callback=E:y===o(h)&&i(h),T(G)}else i(h);y=o(h)}if(y!==null)var W=!0;else{var J=o(g);J!==null&&oe(O,J.startTime-G),W=!1}return W}finally{y=null,S=z,b=!1}}var L=!1,B=null,j=-1,Y=5,ce=-1;function Ce(){return!(r.unstable_now()-ce<Y)}function le(){if(B!==null){var U=r.unstable_now();ce=U;var G=!0;try{G=B(!0,U)}finally{G?ue():(L=!1,B=null)}}else L=!1}var ue;if(typeof D=="function")ue=function(){D(le)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,be=se.port2;se.port1.onmessage=le,ue=function(){be.postMessage(null)}}else ue=function(){k(le,0)};function ae(U){B=U,L||(L=!0,ue())}function oe(U,G){j=k(function(){U(r.unstable_now())},G)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(U){U.callback=null},r.unstable_continueExecution=function(){w||b||(w=!0,ae(V))},r.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<U?Math.floor(1e3/U):5},r.unstable_getCurrentPriorityLevel=function(){return S},r.unstable_getFirstCallbackNode=function(){return o(h)},r.unstable_next=function(U){switch(S){case 1:case 2:case 3:var G=3;break;default:G=S}var z=S;S=G;try{return U()}finally{S=z}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(U,G){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var z=S;S=U;try{return G()}finally{S=z}},r.unstable_scheduleCallback=function(U,G,z){var I=r.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?I+z:I):z=I,U){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5e3}return E=z+E,U={id:v++,callback:G,priorityLevel:U,startTime:z,expirationTime:E,sortIndex:-1},z>I?(U.sortIndex=z,t(g,U),o(h)===null&&U===o(g)&&(_?(R(j),j=-1):_=!0,oe(O,z-I))):(U.sortIndex=E,t(h,U),w||b||(w=!0,ae(V))),U},r.unstable_shouldYield=Ce,r.unstable_wrapCallback=function(U){var G=S;return function(){var z=S;S=G;try{return U.apply(this,arguments)}finally{S=z}}}})(Fl)),Fl}var hf;function ex(){return hf||(hf=1,zl.exports=Jy()),zl.exports}var mf;function tx(){if(mf)return jt;mf=1;var r=jl(),t=ex();function o(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,s=1;s<arguments.length;s++)n+="&args[]="+encodeURIComponent(arguments[s]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,a={};function l(e,n){u(e,n),u(e+"Capture",n)}function u(e,n){for(a[e]=n,e=0;e<n.length;e++)i.add(n[e])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,g=/^[: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]*$/,v={},y={};function S(e){return h.call(y,e)?!0:h.call(v,e)?!1:g.test(e)?y[e]=!0:(v[e]=!0,!1)}function b(e,n,s,c){if(s!==null&&s.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return c?!1:s!==null?!s.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function w(e,n,s,c){if(n===null||typeof n>"u"||b(e,n,s,c))return!0;if(c)return!1;if(s!==null)switch(s.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function _(e,n,s,c,f,p,x){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=c,this.attributeNamespace=f,this.mustUseProperty=s,this.propertyName=e,this.type=n,this.sanitizeURL=p,this.removeEmptyString=x}var k={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){k[e]=new _(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];k[n]=new _(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){k[e]=new _(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){k[e]=new _(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){k[e]=new _(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){k[e]=new _(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){k[e]=new _(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){k[e]=new _(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){k[e]=new _(e,5,!1,e.toLowerCase(),null,!1,!1)});var R=/[\-:]([a-z])/g;function D(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(R,D);k[n]=new _(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(R,D);k[n]=new _(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(R,D);k[n]=new _(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){k[e]=new _(e,1,!1,e.toLowerCase(),null,!1,!1)}),k.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){k[e]=new _(e,1,!1,e.toLowerCase(),null,!0,!0)});function T(e,n,s,c){var f=k.hasOwnProperty(n)?k[n]:null;(f!==null?f.type!==0:c||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(w(n,s,f,c)&&(s=null),c||f===null?S(n)&&(s===null?e.removeAttribute(n):e.setAttribute(n,""+s)):f.mustUseProperty?e[f.propertyName]=s===null?f.type===3?!1:"":s:(n=f.attributeName,c=f.attributeNamespace,s===null?e.removeAttribute(n):(f=f.type,s=f===3||f===4&&s===!0?"":""+s,c?e.setAttributeNS(c,n,s):e.setAttribute(n,s))))}var O=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,V=Symbol.for("react.element"),L=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),ce=Symbol.for("react.provider"),Ce=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),be=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),oe=Symbol.for("react.offscreen"),U=Symbol.iterator;function G(e){return e===null||typeof e!="object"?null:(e=U&&e[U]||e["@@iterator"],typeof e=="function"?e:null)}var z=Object.assign,I;function E(e){if(I===void 0)try{throw Error()}catch(s){var n=s.stack.trim().match(/\n( *(at )?)/);I=n&&n[1]||""}return`
|
|
2
|
+
`+I+e}var W=!1;function J(e,n){if(!e||W)return"";W=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(F){var c=F}Reflect.construct(e,[],n)}else{try{n.call()}catch(F){c=F}e.call(n.prototype)}else{try{throw Error()}catch(F){c=F}e()}}catch(F){if(F&&c&&typeof F.stack=="string"){for(var f=F.stack.split(`
|
|
3
3
|
`),p=c.stack.split(`
|
|
4
|
-
`),x=f.length-1,C=p.length-1;1<=x&&0<=C&&f[x]!==p[C];)C--;for(;1<=x&&0<=C;x--,C--)if(f[x]!==p[C]){if(x!==1||C!==1)do if(x--,C--,0>C||f[x]!==p[C]){var
|
|
5
|
-
`+f[x].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),R}while(1<=x&&0<=C);break}}}finally{W=!1,Error.prepareStackTrace=s}return(e=e?e.displayName||e.name:"")?E(e):""}function H(e){switch(e.tag){case 5:return E(e.type);case 16:return E("Lazy");case 13:return E("Suspense");case 19:return E("SuspenseList");case 0:case 2:case 15:return e=X(e.type,!1),e;case 11:return e=X(e.type.render,!1),e;case 1:return e=X(e.type,!0),e;default:return""}}function J(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case B:return"Fragment";case L:return"Portal";case Q:return"Profiler";case j:return"StrictMode";case le:return"Suspense";case fe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ce:return(e.displayName||"Context")+".Consumer";case ae:return(e._context.displayName||"Context")+".Provider";case ce:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ke:return n=e.displayName||null,n!==null?n:J(e.type)||"Memo";case re:n=e._payload,e=e._init;try{return J(e(n))}catch{}}return null}function ue(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return J(n);case 8:return n===j?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function ee(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ie(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Ae(e){var n=ie(e)?"checked":"value",s=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),c=""+e[n];if(!e.hasOwnProperty(n)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var f=s.get,p=s.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return f.call(this)},set:function(x){c=""+x,p.call(this,x)}}),Object.defineProperty(e,n,{enumerable:s.enumerable}),{getValue:function(){return c},setValue:function(x){c=""+x},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function $e(e){e._valueTracker||(e._valueTracker=Ae(e))}function Me(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var s=n.getValue(),c="";return e&&(c=ie(e)?e.checked?"true":"false":e.value),e=c,e!==s?(n.setValue(e),!0):!1}function Ue(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function oe(e,n){var s=n.checked;return z({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??e._wrapperState.initialChecked})}function Ie(e,n){var s=n.defaultValue==null?"":n.defaultValue,c=n.checked!=null?n.checked:n.defaultChecked;s=ee(n.value!=null?n.value:s),e._wrapperState={initialChecked:c,initialValue:s,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function qe(e,n){n=n.checked,n!=null&&N(e,"checked",n,!1)}function Ke(e,n){qe(e,n);var s=ee(n.value),c=n.type;if(s!=null)c==="number"?(s===0&&e.value===""||e.value!=s)&&(e.value=""+s):e.value!==""+s&&(e.value=""+s);else if(c==="submit"||c==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?Nt(e,n.type,s):n.hasOwnProperty("defaultValue")&&Nt(e,n.type,ee(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Ye(e,n,s){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var c=n.type;if(!(c!=="submit"&&c!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,s||n===e.value||(e.value=n),e.defaultValue=n}s=e.name,s!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,s!==""&&(e.name=s)}function Nt(e,n,s){(n!=="number"||Ue(e.ownerDocument)!==e)&&(s==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+s&&(e.defaultValue=""+s))}var br=Array.isArray;function un(e,n,s,c){if(e=e.options,n){n={};for(var f=0;f<s.length;f++)n["$"+s[f]]=!0;for(s=0;s<e.length;s++)f=n.hasOwnProperty("$"+e[s].value),e[s].selected!==f&&(e[s].selected=f),f&&c&&(e[s].defaultSelected=!0)}else{for(s=""+ee(s),n=null,f=0;f<e.length;f++){if(e[f].value===s){e[f].selected=!0,c&&(e[f].defaultSelected=!0);return}n!==null||e[f].disabled||(n=e[f])}n!==null&&(n.selected=!0)}}function hu(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(o(91));return z({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Xm(e,n){var s=n.value;if(s==null){if(s=n.children,n=n.defaultValue,s!=null){if(n!=null)throw Error(o(92));if(br(s)){if(1<s.length)throw Error(o(93));s=s[0]}n=s}n==null&&(n=""),s=n}e._wrapperState={initialValue:ee(s)}}function Jm(e,n){var s=ee(n.value),c=ee(n.defaultValue);s!=null&&(s=""+s,s!==e.value&&(e.value=s),n.defaultValue==null&&e.defaultValue!==s&&(e.defaultValue=s)),c!=null&&(e.defaultValue=""+c)}function eg(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function tg(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function mu(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?tg(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var wa,ng=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,s,c,f){MSApp.execUnsafeLocalFunction(function(){return e(n,s,c,f)})}:e})(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(wa=wa||document.createElement("div"),wa.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=wa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Li(e,n){if(n){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=n;return}}e.textContent=n}var $i={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},d_=["Webkit","ms","Moz","O"];Object.keys($i).forEach(function(e){d_.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),$i[n]=$i[e]})});function rg(e,n,s){return n==null||typeof n=="boolean"||n===""?"":s||typeof n!="number"||n===0||$i.hasOwnProperty(e)&&$i[e]?(""+n).trim():n+"px"}function og(e,n){e=e.style;for(var s in n)if(n.hasOwnProperty(s)){var c=s.indexOf("--")===0,f=rg(s,n[s],c);s==="float"&&(s="cssFloat"),c?e.setProperty(s,f):e[s]=f}}var f_=z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function gu(e,n){if(n){if(f_[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(o(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(o(61))}if(n.style!=null&&typeof n.style!="object")throw Error(o(62))}}function vu(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){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":return!1;default:return!0}}var yu=null;function xu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wu=null,Uo=null,Bo=null;function ig(e){if(e=os(e)){if(typeof wu!="function")throw Error(o(280));var n=e.stateNode;n&&(n=Ba(n),wu(e.stateNode,e.type,n))}}function sg(e){Uo?Bo?Bo.push(e):Bo=[e]:Uo=e}function ag(){if(Uo){var e=Uo,n=Bo;if(Bo=Uo=null,ig(e),n)for(e=0;e<n.length;e++)ig(n[e])}}function lg(e,n){return e(n)}function cg(){}var Su=!1;function ug(e,n,s){if(Su)return e(n,s);Su=!0;try{return lg(e,n,s)}finally{Su=!1,(Uo!==null||Bo!==null)&&(cg(),ag())}}function ji(e,n){var s=e.stateNode;if(s===null)return null;var c=Ba(s);if(c===null)return null;s=c[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(e=e.type,c=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!c;break e;default:e=!1}if(e)return null;if(s&&typeof s!="function")throw Error(o(231,n,typeof s));return s}var bu=!1;if(d)try{var Mi={};Object.defineProperty(Mi,"passive",{get:function(){bu=!0}}),window.addEventListener("test",Mi,Mi),window.removeEventListener("test",Mi,Mi)}catch{bu=!1}function p_(e,n,s,c,f,p,x,C,R){var F=Array.prototype.slice.call(arguments,3);try{n.apply(s,F)}catch(Z){this.onError(Z)}}var zi=!1,Sa=null,ba=!1,ku=null,h_={onError:function(e){zi=!0,Sa=e}};function m_(e,n,s,c,f,p,x,C,R){zi=!1,Sa=null,p_.apply(h_,arguments)}function g_(e,n,s,c,f,p,x,C,R){if(m_.apply(this,arguments),zi){if(zi){var F=Sa;zi=!1,Sa=null}else throw Error(o(198));ba||(ba=!0,ku=F)}}function oo(e){var n=e,s=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(s=n.return),e=n.return;while(e)}return n.tag===3?s:null}function dg(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function fg(e){if(oo(e)!==e)throw Error(o(188))}function v_(e){var n=e.alternate;if(!n){if(n=oo(e),n===null)throw Error(o(188));return n!==e?null:e}for(var s=e,c=n;;){var f=s.return;if(f===null)break;var p=f.alternate;if(p===null){if(c=f.return,c!==null){s=c;continue}break}if(f.child===p.child){for(p=f.child;p;){if(p===s)return fg(f),e;if(p===c)return fg(f),n;p=p.sibling}throw Error(o(188))}if(s.return!==c.return)s=f,c=p;else{for(var x=!1,C=f.child;C;){if(C===s){x=!0,s=f,c=p;break}if(C===c){x=!0,c=f,s=p;break}C=C.sibling}if(!x){for(C=p.child;C;){if(C===s){x=!0,s=p,c=f;break}if(C===c){x=!0,c=p,s=f;break}C=C.sibling}if(!x)throw Error(o(189))}}if(s.alternate!==c)throw Error(o(190))}if(s.tag!==3)throw Error(o(188));return s.stateNode.current===s?e:n}function pg(e){return e=v_(e),e!==null?hg(e):null}function hg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=hg(e);if(n!==null)return n;e=e.sibling}return null}var mg=t.unstable_scheduleCallback,gg=t.unstable_cancelCallback,y_=t.unstable_shouldYield,x_=t.unstable_requestPaint,at=t.unstable_now,w_=t.unstable_getCurrentPriorityLevel,Cu=t.unstable_ImmediatePriority,vg=t.unstable_UserBlockingPriority,ka=t.unstable_NormalPriority,S_=t.unstable_LowPriority,yg=t.unstable_IdlePriority,Ca=null,On=null;function b_(e){if(On&&typeof On.onCommitFiberRoot=="function")try{On.onCommitFiberRoot(Ca,e,void 0,(e.current.flags&128)===128)}catch{}}var dn=Math.clz32?Math.clz32:__,k_=Math.log,C_=Math.LN2;function __(e){return e>>>=0,e===0?32:31-(k_(e)/C_|0)|0}var _a=64,Ea=4194304;function Fi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ra(e,n){var s=e.pendingLanes;if(s===0)return 0;var c=0,f=e.suspendedLanes,p=e.pingedLanes,x=s&268435455;if(x!==0){var C=x&~f;C!==0?c=Fi(C):(p&=x,p!==0&&(c=Fi(p)))}else x=s&~f,x!==0?c=Fi(x):p!==0&&(c=Fi(p));if(c===0)return 0;if(n!==0&&n!==c&&(n&f)===0&&(f=c&-c,p=n&-n,f>=p||f===16&&(p&4194240)!==0))return n;if((c&4)!==0&&(c|=s&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=c;0<n;)s=31-dn(n),f=1<<s,c|=e[s],n&=~f;return c}function E_(e,n){switch(e){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function R_(e,n){for(var s=e.suspendedLanes,c=e.pingedLanes,f=e.expirationTimes,p=e.pendingLanes;0<p;){var x=31-dn(p),C=1<<x,R=f[x];R===-1?((C&s)===0||(C&c)!==0)&&(f[x]=E_(C,n)):R<=n&&(e.expiredLanes|=C),p&=~C}}function _u(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function xg(){var e=_a;return _a<<=1,(_a&4194240)===0&&(_a=64),e}function Eu(e){for(var n=[],s=0;31>s;s++)n.push(e);return n}function Vi(e,n,s){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-dn(n),e[n]=s}function P_(e,n){var s=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var c=e.eventTimes;for(e=e.expirationTimes;0<s;){var f=31-dn(s),p=1<<f;n[f]=0,c[f]=-1,e[f]=-1,s&=~p}}function Ru(e,n){var s=e.entangledLanes|=n;for(e=e.entanglements;s;){var c=31-dn(s),f=1<<c;f&n|e[c]&n&&(e[c]|=n),s&=~f}}var Ge=0;function wg(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Sg,Pu,bg,kg,Cg,Iu=!1,Pa=[],kr=null,Cr=null,_r=null,Ui=new Map,Bi=new Map,Er=[],I_="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function _g(e,n){switch(e){case"focusin":case"focusout":kr=null;break;case"dragenter":case"dragleave":Cr=null;break;case"mouseover":case"mouseout":_r=null;break;case"pointerover":case"pointerout":Ui.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bi.delete(n.pointerId)}}function Hi(e,n,s,c,f,p){return e===null||e.nativeEvent!==p?(e={blockedOn:n,domEventName:s,eventSystemFlags:c,nativeEvent:p,targetContainers:[f]},n!==null&&(n=os(n),n!==null&&Pu(n)),e):(e.eventSystemFlags|=c,n=e.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),e)}function O_(e,n,s,c,f){switch(n){case"focusin":return kr=Hi(kr,e,n,s,c,f),!0;case"dragenter":return Cr=Hi(Cr,e,n,s,c,f),!0;case"mouseover":return _r=Hi(_r,e,n,s,c,f),!0;case"pointerover":var p=f.pointerId;return Ui.set(p,Hi(Ui.get(p)||null,e,n,s,c,f)),!0;case"gotpointercapture":return p=f.pointerId,Bi.set(p,Hi(Bi.get(p)||null,e,n,s,c,f)),!0}return!1}function Eg(e){var n=io(e.target);if(n!==null){var s=oo(n);if(s!==null){if(n=s.tag,n===13){if(n=dg(s),n!==null){e.blockedOn=n,Cg(e.priority,function(){bg(s)});return}}else if(n===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ia(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var s=Nu(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(s===null){s=e.nativeEvent;var c=new s.constructor(s.type,s);yu=c,s.target.dispatchEvent(c),yu=null}else return n=os(s),n!==null&&Pu(n),e.blockedOn=s,!1;n.shift()}return!0}function Rg(e,n,s){Ia(e)&&s.delete(n)}function N_(){Iu=!1,kr!==null&&Ia(kr)&&(kr=null),Cr!==null&&Ia(Cr)&&(Cr=null),_r!==null&&Ia(_r)&&(_r=null),Ui.forEach(Rg),Bi.forEach(Rg)}function Wi(e,n){e.blockedOn===n&&(e.blockedOn=null,Iu||(Iu=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,N_)))}function Ki(e){function n(f){return Wi(f,e)}if(0<Pa.length){Wi(Pa[0],e);for(var s=1;s<Pa.length;s++){var c=Pa[s];c.blockedOn===e&&(c.blockedOn=null)}}for(kr!==null&&Wi(kr,e),Cr!==null&&Wi(Cr,e),_r!==null&&Wi(_r,e),Ui.forEach(n),Bi.forEach(n),s=0;s<Er.length;s++)c=Er[s],c.blockedOn===e&&(c.blockedOn=null);for(;0<Er.length&&(s=Er[0],s.blockedOn===null);)Eg(s),s.blockedOn===null&&Er.shift()}var Ho=I.ReactCurrentBatchConfig,Oa=!0;function T_(e,n,s,c){var f=Ge,p=Ho.transition;Ho.transition=null;try{Ge=1,Ou(e,n,s,c)}finally{Ge=f,Ho.transition=p}}function A_(e,n,s,c){var f=Ge,p=Ho.transition;Ho.transition=null;try{Ge=4,Ou(e,n,s,c)}finally{Ge=f,Ho.transition=p}}function Ou(e,n,s,c){if(Oa){var f=Nu(e,n,s,c);if(f===null)qu(e,n,c,Na,s),_g(e,c);else if(O_(f,e,n,s,c))c.stopPropagation();else if(_g(e,c),n&4&&-1<I_.indexOf(e)){for(;f!==null;){var p=os(f);if(p!==null&&Sg(p),p=Nu(e,n,s,c),p===null&&qu(e,n,c,Na,s),p===f)break;f=p}f!==null&&c.stopPropagation()}else qu(e,n,c,null,s)}}var Na=null;function Nu(e,n,s,c){if(Na=null,e=xu(c),e=io(e),e!==null)if(n=oo(e),n===null)e=null;else if(s=n.tag,s===13){if(e=dg(n),e!==null)return e;e=null}else if(s===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return Na=e,null}function Pg(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(w_()){case Cu:return 1;case vg:return 4;case ka:case S_:return 16;case yg:return 536870912;default:return 16}default:return 16}}var Rr=null,Tu=null,Ta=null;function Ig(){if(Ta)return Ta;var e,n=Tu,s=n.length,c,f="value"in Rr?Rr.value:Rr.textContent,p=f.length;for(e=0;e<s&&n[e]===f[e];e++);var x=s-e;for(c=1;c<=x&&n[s-c]===f[p-c];c++);return Ta=f.slice(e,1<c?1-c:void 0)}function Aa(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Da(){return!0}function Og(){return!1}function Wt(e){function n(s,c,f,p,x){this._reactName=s,this._targetInst=f,this.type=c,this.nativeEvent=p,this.target=x,this.currentTarget=null;for(var C in e)e.hasOwnProperty(C)&&(s=e[C],this[C]=s?s(p):p[C]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Da:Og,this.isPropagationStopped=Og,this}return z(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Da)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Da)},persist:function(){},isPersistent:Da}),n}var Wo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Au=Wt(Wo),Zi=z({},Wo,{view:0,detail:0}),D_=Wt(Zi),Du,Lu,qi,La=z({},Zi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ju,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==qi&&(qi&&e.type==="mousemove"?(Du=e.screenX-qi.screenX,Lu=e.screenY-qi.screenY):Lu=Du=0,qi=e),Du)},movementY:function(e){return"movementY"in e?e.movementY:Lu}}),Ng=Wt(La),L_=z({},La,{dataTransfer:0}),$_=Wt(L_),j_=z({},Zi,{relatedTarget:0}),$u=Wt(j_),M_=z({},Wo,{animationName:0,elapsedTime:0,pseudoElement:0}),z_=Wt(M_),F_=z({},Wo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),V_=Wt(F_),U_=z({},Wo,{data:0}),Tg=Wt(U_),B_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},H_={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},W_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function K_(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=W_[e])?!!n[e]:!1}function ju(){return K_}var Z_=z({},Zi,{key:function(e){if(e.key){var n=B_[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Aa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?H_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ju,charCode:function(e){return e.type==="keypress"?Aa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Aa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),q_=Wt(Z_),G_=z({},La,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ag=Wt(G_),Q_=z({},Zi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ju}),Y_=Wt(Q_),X_=z({},Wo,{propertyName:0,elapsedTime:0,pseudoElement:0}),J_=Wt(X_),eE=z({},La,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),tE=Wt(eE),nE=[9,13,27,32],Mu=d&&"CompositionEvent"in window,Gi=null;d&&"documentMode"in document&&(Gi=document.documentMode);var rE=d&&"TextEvent"in window&&!Gi,Dg=d&&(!Mu||Gi&&8<Gi&&11>=Gi),Lg=" ",$g=!1;function jg(e,n){switch(e){case"keyup":return nE.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ko=!1;function oE(e,n){switch(e){case"compositionend":return Mg(n);case"keypress":return n.which!==32?null:($g=!0,Lg);case"textInput":return e=n.data,e===Lg&&$g?null:e;default:return null}}function iE(e,n){if(Ko)return e==="compositionend"||!Mu&&jg(e,n)?(e=Ig(),Ta=Tu=Rr=null,Ko=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Dg&&n.locale!=="ko"?null:n.data;default:return null}}var sE={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function zg(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!sE[e.type]:n==="textarea"}function Fg(e,n,s,c){sg(c),n=Fa(n,"onChange"),0<n.length&&(s=new Au("onChange","change",null,s,c),e.push({event:s,listeners:n}))}var Qi=null,Yi=null;function aE(e){ov(e,0)}function $a(e){var n=Yo(e);if(Me(n))return e}function lE(e,n){if(e==="change")return n}var Vg=!1;if(d){var zu;if(d){var Fu="oninput"in document;if(!Fu){var Ug=document.createElement("div");Ug.setAttribute("oninput","return;"),Fu=typeof Ug.oninput=="function"}zu=Fu}else zu=!1;Vg=zu&&(!document.documentMode||9<document.documentMode)}function Bg(){Qi&&(Qi.detachEvent("onpropertychange",Hg),Yi=Qi=null)}function Hg(e){if(e.propertyName==="value"&&$a(Yi)){var n=[];Fg(n,Yi,e,xu(e)),ug(aE,n)}}function cE(e,n,s){e==="focusin"?(Bg(),Qi=n,Yi=s,Qi.attachEvent("onpropertychange",Hg)):e==="focusout"&&Bg()}function uE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $a(Yi)}function dE(e,n){if(e==="click")return $a(n)}function fE(e,n){if(e==="input"||e==="change")return $a(n)}function pE(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var fn=typeof Object.is=="function"?Object.is:pE;function Xi(e,n){if(fn(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var s=Object.keys(e),c=Object.keys(n);if(s.length!==c.length)return!1;for(c=0;c<s.length;c++){var f=s[c];if(!h.call(n,f)||!fn(e[f],n[f]))return!1}return!0}function Wg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Kg(e,n){var s=Wg(e);e=0;for(var c;s;){if(s.nodeType===3){if(c=e+s.textContent.length,e<=n&&c>=n)return{node:s,offset:n-e};e=c}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Wg(s)}}function Zg(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Zg(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function qg(){for(var e=window,n=Ue();n instanceof e.HTMLIFrameElement;){try{var s=typeof n.contentWindow.location.href=="string"}catch{s=!1}if(s)e=n.contentWindow;else break;n=Ue(e.document)}return n}function Vu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function hE(e){var n=qg(),s=e.focusedElem,c=e.selectionRange;if(n!==s&&s&&s.ownerDocument&&Zg(s.ownerDocument.documentElement,s)){if(c!==null&&Vu(s)){if(n=c.start,e=c.end,e===void 0&&(e=n),"selectionStart"in s)s.selectionStart=n,s.selectionEnd=Math.min(e,s.value.length);else if(e=(n=s.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var f=s.textContent.length,p=Math.min(c.start,f);c=c.end===void 0?p:Math.min(c.end,f),!e.extend&&p>c&&(f=c,c=p,p=f),f=Kg(s,p);var x=Kg(s,c);f&&x&&(e.rangeCount!==1||e.anchorNode!==f.node||e.anchorOffset!==f.offset||e.focusNode!==x.node||e.focusOffset!==x.offset)&&(n=n.createRange(),n.setStart(f.node,f.offset),e.removeAllRanges(),p>c?(e.addRange(n),e.extend(x.node,x.offset)):(n.setEnd(x.node,x.offset),e.addRange(n)))}}for(n=[],e=s;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<n.length;s++)e=n[s],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mE=d&&"documentMode"in document&&11>=document.documentMode,Zo=null,Uu=null,Ji=null,Bu=!1;function Gg(e,n,s){var c=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Bu||Zo==null||Zo!==Ue(c)||(c=Zo,"selectionStart"in c&&Vu(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Ji&&Xi(Ji,c)||(Ji=c,c=Fa(Uu,"onSelect"),0<c.length&&(n=new Au("onSelect","select",null,n,s),e.push({event:n,listeners:c}),n.target=Zo)))}function ja(e,n){var s={};return s[e.toLowerCase()]=n.toLowerCase(),s["Webkit"+e]="webkit"+n,s["Moz"+e]="moz"+n,s}var qo={animationend:ja("Animation","AnimationEnd"),animationiteration:ja("Animation","AnimationIteration"),animationstart:ja("Animation","AnimationStart"),transitionend:ja("Transition","TransitionEnd")},Hu={},Qg={};d&&(Qg=document.createElement("div").style,"AnimationEvent"in window||(delete qo.animationend.animation,delete qo.animationiteration.animation,delete qo.animationstart.animation),"TransitionEvent"in window||delete qo.transitionend.transition);function Ma(e){if(Hu[e])return Hu[e];if(!qo[e])return e;var n=qo[e],s;for(s in n)if(n.hasOwnProperty(s)&&s in Qg)return Hu[e]=n[s];return e}var Yg=Ma("animationend"),Xg=Ma("animationiteration"),Jg=Ma("animationstart"),ev=Ma("transitionend"),tv=new Map,nv="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Pr(e,n){tv.set(e,n),l(n,[e])}for(var Wu=0;Wu<nv.length;Wu++){var Ku=nv[Wu],gE=Ku.toLowerCase(),vE=Ku[0].toUpperCase()+Ku.slice(1);Pr(gE,"on"+vE)}Pr(Yg,"onAnimationEnd"),Pr(Xg,"onAnimationIteration"),Pr(Jg,"onAnimationStart"),Pr("dblclick","onDoubleClick"),Pr("focusin","onFocus"),Pr("focusout","onBlur"),Pr(ev,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var es="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),yE=new Set("cancel close invalid load scroll toggle".split(" ").concat(es));function rv(e,n,s){var c=e.type||"unknown-event";e.currentTarget=s,g_(c,n,void 0,e),e.currentTarget=null}function ov(e,n){n=(n&4)!==0;for(var s=0;s<e.length;s++){var c=e[s],f=c.event;c=c.listeners;e:{var p=void 0;if(n)for(var x=c.length-1;0<=x;x--){var C=c[x],R=C.instance,F=C.currentTarget;if(C=C.listener,R!==p&&f.isPropagationStopped())break e;rv(f,C,F),p=R}else for(x=0;x<c.length;x++){if(C=c[x],R=C.instance,F=C.currentTarget,C=C.listener,R!==p&&f.isPropagationStopped())break e;rv(f,C,F),p=R}}}if(ba)throw e=ku,ba=!1,ku=null,e}function et(e,n){var s=n[ed];s===void 0&&(s=n[ed]=new Set);var c=e+"__bubble";s.has(c)||(iv(n,e,2,!1),s.add(c))}function Zu(e,n,s){var c=0;n&&(c|=4),iv(s,e,c,n)}var za="_reactListening"+Math.random().toString(36).slice(2);function ts(e){if(!e[za]){e[za]=!0,i.forEach(function(s){s!=="selectionchange"&&(yE.has(s)||Zu(s,!1,e),Zu(s,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[za]||(n[za]=!0,Zu("selectionchange",!1,n))}}function iv(e,n,s,c){switch(Pg(n)){case 1:var f=T_;break;case 4:f=A_;break;default:f=Ou}s=f.bind(null,n,s,e),f=void 0,!bu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),c?f!==void 0?e.addEventListener(n,s,{capture:!0,passive:f}):e.addEventListener(n,s,!0):f!==void 0?e.addEventListener(n,s,{passive:f}):e.addEventListener(n,s,!1)}function qu(e,n,s,c,f){var p=c;if((n&1)===0&&(n&2)===0&&c!==null)e:for(;;){if(c===null)return;var x=c.tag;if(x===3||x===4){var C=c.stateNode.containerInfo;if(C===f||C.nodeType===8&&C.parentNode===f)break;if(x===4)for(x=c.return;x!==null;){var R=x.tag;if((R===3||R===4)&&(R=x.stateNode.containerInfo,R===f||R.nodeType===8&&R.parentNode===f))return;x=x.return}for(;C!==null;){if(x=io(C),x===null)return;if(R=x.tag,R===5||R===6){c=p=x;continue e}C=C.parentNode}}c=c.return}ug(function(){var F=p,Z=xu(s),q=[];e:{var K=tv.get(e);if(K!==void 0){var pe=Au,ye=e;switch(e){case"keypress":if(Aa(s)===0)break e;case"keydown":case"keyup":pe=q_;break;case"focusin":ye="focus",pe=$u;break;case"focusout":ye="blur",pe=$u;break;case"beforeblur":case"afterblur":pe=$u;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":pe=Ng;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":pe=$_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":pe=Y_;break;case Yg:case Xg:case Jg:pe=z_;break;case ev:pe=J_;break;case"scroll":pe=D_;break;case"wheel":pe=tE;break;case"copy":case"cut":case"paste":pe=V_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":pe=Ag}var xe=(n&4)!==0,lt=!xe&&e==="scroll",$=xe?K!==null?K+"Capture":null:K;xe=[];for(var O=F,M;O!==null;){M=O;var te=M.stateNode;if(M.tag===5&&te!==null&&(M=te,$!==null&&(te=ji(O,$),te!=null&&xe.push(ns(O,te,M)))),lt)break;O=O.return}0<xe.length&&(K=new pe(K,ye,null,s,Z),q.push({event:K,listeners:xe}))}}if((n&7)===0){e:{if(K=e==="mouseover"||e==="pointerover",pe=e==="mouseout"||e==="pointerout",K&&s!==yu&&(ye=s.relatedTarget||s.fromElement)&&(io(ye)||ye[Jn]))break e;if((pe||K)&&(K=Z.window===Z?Z:(K=Z.ownerDocument)?K.defaultView||K.parentWindow:window,pe?(ye=s.relatedTarget||s.toElement,pe=F,ye=ye?io(ye):null,ye!==null&&(lt=oo(ye),ye!==lt||ye.tag!==5&&ye.tag!==6)&&(ye=null)):(pe=null,ye=F),pe!==ye)){if(xe=Ng,te="onMouseLeave",$="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(xe=Ag,te="onPointerLeave",$="onPointerEnter",O="pointer"),lt=pe==null?K:Yo(pe),M=ye==null?K:Yo(ye),K=new xe(te,O+"leave",pe,s,Z),K.target=lt,K.relatedTarget=M,te=null,io(Z)===F&&(xe=new xe($,O+"enter",ye,s,Z),xe.target=M,xe.relatedTarget=lt,te=xe),lt=te,pe&&ye)t:{for(xe=pe,$=ye,O=0,M=xe;M;M=Go(M))O++;for(M=0,te=$;te;te=Go(te))M++;for(;0<O-M;)xe=Go(xe),O--;for(;0<M-O;)$=Go($),M--;for(;O--;){if(xe===$||$!==null&&xe===$.alternate)break t;xe=Go(xe),$=Go($)}xe=null}else xe=null;pe!==null&&sv(q,K,pe,xe,!1),ye!==null&<!==null&&sv(q,lt,ye,xe,!0)}}e:{if(K=F?Yo(F):window,pe=K.nodeName&&K.nodeName.toLowerCase(),pe==="select"||pe==="input"&&K.type==="file")var be=lE;else if(zg(K))if(Vg)be=fE;else{be=uE;var _e=cE}else(pe=K.nodeName)&&pe.toLowerCase()==="input"&&(K.type==="checkbox"||K.type==="radio")&&(be=dE);if(be&&(be=be(e,F))){Fg(q,be,s,Z);break e}_e&&_e(e,K,F),e==="focusout"&&(_e=K._wrapperState)&&_e.controlled&&K.type==="number"&&Nt(K,"number",K.value)}switch(_e=F?Yo(F):window,e){case"focusin":(zg(_e)||_e.contentEditable==="true")&&(Zo=_e,Uu=F,Ji=null);break;case"focusout":Ji=Uu=Zo=null;break;case"mousedown":Bu=!0;break;case"contextmenu":case"mouseup":case"dragend":Bu=!1,Gg(q,s,Z);break;case"selectionchange":if(mE)break;case"keydown":case"keyup":Gg(q,s,Z)}var Ee;if(Mu)e:{switch(e){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else Ko?jg(e,s)&&(Oe="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(Oe="onCompositionStart");Oe&&(Dg&&s.locale!=="ko"&&(Ko||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&Ko&&(Ee=Ig()):(Rr=Z,Tu="value"in Rr?Rr.value:Rr.textContent,Ko=!0)),_e=Fa(F,Oe),0<_e.length&&(Oe=new Tg(Oe,e,null,s,Z),q.push({event:Oe,listeners:_e}),Ee?Oe.data=Ee:(Ee=Mg(s),Ee!==null&&(Oe.data=Ee)))),(Ee=rE?oE(e,s):iE(e,s))&&(F=Fa(F,"onBeforeInput"),0<F.length&&(Z=new Tg("onBeforeInput","beforeinput",null,s,Z),q.push({event:Z,listeners:F}),Z.data=Ee))}ov(q,n)})}function ns(e,n,s){return{instance:e,listener:n,currentTarget:s}}function Fa(e,n){for(var s=n+"Capture",c=[];e!==null;){var f=e,p=f.stateNode;f.tag===5&&p!==null&&(f=p,p=ji(e,s),p!=null&&c.unshift(ns(e,p,f)),p=ji(e,n),p!=null&&c.push(ns(e,p,f))),e=e.return}return c}function Go(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function sv(e,n,s,c,f){for(var p=n._reactName,x=[];s!==null&&s!==c;){var C=s,R=C.alternate,F=C.stateNode;if(R!==null&&R===c)break;C.tag===5&&F!==null&&(C=F,f?(R=ji(s,p),R!=null&&x.unshift(ns(s,R,C))):f||(R=ji(s,p),R!=null&&x.push(ns(s,R,C)))),s=s.return}x.length!==0&&e.push({event:n,listeners:x})}var xE=/\r\n?/g,wE=/\u0000|\uFFFD/g;function av(e){return(typeof e=="string"?e:""+e).replace(xE,`
|
|
6
|
-
`).replace(wE,"")}function Va(e,n,s){if(n=av(n),av(e)!==n&&s)throw Error(o(425))}function Ua(){}var Gu=null,Qu=null;function Yu(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Xu=typeof setTimeout=="function"?setTimeout:void 0,SE=typeof clearTimeout=="function"?clearTimeout:void 0,lv=typeof Promise=="function"?Promise:void 0,bE=typeof queueMicrotask=="function"?queueMicrotask:typeof lv<"u"?function(e){return lv.resolve(null).then(e).catch(kE)}:Xu;function kE(e){setTimeout(function(){throw e})}function Ju(e,n){var s=n,c=0;do{var f=s.nextSibling;if(e.removeChild(s),f&&f.nodeType===8)if(s=f.data,s==="/$"){if(c===0){e.removeChild(f),Ki(n);return}c--}else s!=="$"&&s!=="$?"&&s!=="$!"||c++;s=f}while(s);Ki(n)}function Ir(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function cv(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"){if(n===0)return e;n--}else s==="/$"&&n++}e=e.previousSibling}return null}var Qo=Math.random().toString(36).slice(2),Nn="__reactFiber$"+Qo,rs="__reactProps$"+Qo,Jn="__reactContainer$"+Qo,ed="__reactEvents$"+Qo,CE="__reactListeners$"+Qo,_E="__reactHandles$"+Qo;function io(e){var n=e[Nn];if(n)return n;for(var s=e.parentNode;s;){if(n=s[Jn]||s[Nn]){if(s=n.alternate,n.child!==null||s!==null&&s.child!==null)for(e=cv(e);e!==null;){if(s=e[Nn])return s;e=cv(e)}return n}e=s,s=e.parentNode}return null}function os(e){return e=e[Nn]||e[Jn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Yo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(o(33))}function Ba(e){return e[rs]||null}var td=[],Xo=-1;function Or(e){return{current:e}}function tt(e){0>Xo||(e.current=td[Xo],td[Xo]=null,Xo--)}function Je(e,n){Xo++,td[Xo]=e.current,e.current=n}var Nr={},Ct=Or(Nr),Mt=Or(!1),so=Nr;function Jo(e,n){var s=e.type.contextTypes;if(!s)return Nr;var c=e.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===n)return c.__reactInternalMemoizedMaskedChildContext;var f={},p;for(p in s)f[p]=n[p];return c&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=f),f}function zt(e){return e=e.childContextTypes,e!=null}function Ha(){tt(Mt),tt(Ct)}function uv(e,n,s){if(Ct.current!==Nr)throw Error(o(168));Je(Ct,n),Je(Mt,s)}function dv(e,n,s){var c=e.stateNode;if(n=n.childContextTypes,typeof c.getChildContext!="function")return s;c=c.getChildContext();for(var f in c)if(!(f in n))throw Error(o(108,ue(e)||"Unknown",f));return z({},s,c)}function Wa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Nr,so=Ct.current,Je(Ct,e),Je(Mt,Mt.current),!0}function fv(e,n,s){var c=e.stateNode;if(!c)throw Error(o(169));s?(e=dv(e,n,so),c.__reactInternalMemoizedMergedChildContext=e,tt(Mt),tt(Ct),Je(Ct,e)):tt(Mt),Je(Mt,s)}var er=null,Ka=!1,nd=!1;function pv(e){er===null?er=[e]:er.push(e)}function EE(e){Ka=!0,pv(e)}function Tr(){if(!nd&&er!==null){nd=!0;var e=0,n=Ge;try{var s=er;for(Ge=1;e<s.length;e++){var c=s[e];do c=c(!0);while(c!==null)}er=null,Ka=!1}catch(f){throw er!==null&&(er=er.slice(e+1)),mg(Cu,Tr),f}finally{Ge=n,nd=!1}}return null}var ei=[],ti=0,Za=null,qa=0,Yt=[],Xt=0,ao=null,tr=1,nr="";function lo(e,n){ei[ti++]=qa,ei[ti++]=Za,Za=e,qa=n}function hv(e,n,s){Yt[Xt++]=tr,Yt[Xt++]=nr,Yt[Xt++]=ao,ao=e;var c=tr;e=nr;var f=32-dn(c)-1;c&=~(1<<f),s+=1;var p=32-dn(n)+f;if(30<p){var x=f-f%5;p=(c&(1<<x)-1).toString(32),c>>=x,f-=x,tr=1<<32-dn(n)+f|s<<f|c,nr=p+e}else tr=1<<p|s<<f|c,nr=e}function rd(e){e.return!==null&&(lo(e,1),hv(e,1,0))}function od(e){for(;e===Za;)Za=ei[--ti],ei[ti]=null,qa=ei[--ti],ei[ti]=null;for(;e===ao;)ao=Yt[--Xt],Yt[Xt]=null,nr=Yt[--Xt],Yt[Xt]=null,tr=Yt[--Xt],Yt[Xt]=null}var Kt=null,Zt=null,rt=!1,pn=null;function mv(e,n){var s=nn(5,null,null,0);s.elementType="DELETED",s.stateNode=n,s.return=e,n=e.deletions,n===null?(e.deletions=[s],e.flags|=16):n.push(s)}function gv(e,n){switch(e.tag){case 5:var s=e.type;return n=n.nodeType!==1||s.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,Kt=e,Zt=Ir(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,Kt=e,Zt=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(s=ao!==null?{id:tr,overflow:nr}:null,e.memoizedState={dehydrated:n,treeContext:s,retryLane:1073741824},s=nn(18,null,null,0),s.stateNode=n,s.return=e,e.child=s,Kt=e,Zt=null,!0):!1;default:return!1}}function id(e){return(e.mode&1)!==0&&(e.flags&128)===0}function sd(e){if(rt){var n=Zt;if(n){var s=n;if(!gv(e,n)){if(id(e))throw Error(o(418));n=Ir(s.nextSibling);var c=Kt;n&&gv(e,n)?mv(c,s):(e.flags=e.flags&-4097|2,rt=!1,Kt=e)}}else{if(id(e))throw Error(o(418));e.flags=e.flags&-4097|2,rt=!1,Kt=e}}}function vv(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Kt=e}function Ga(e){if(e!==Kt)return!1;if(!rt)return vv(e),rt=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!Yu(e.type,e.memoizedProps)),n&&(n=Zt)){if(id(e))throw yv(),Error(o(418));for(;n;)mv(e,n),n=Ir(n.nextSibling)}if(vv(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var s=e.data;if(s==="/$"){if(n===0){Zt=Ir(e.nextSibling);break e}n--}else s!=="$"&&s!=="$!"&&s!=="$?"||n++}e=e.nextSibling}Zt=null}}else Zt=Kt?Ir(e.stateNode.nextSibling):null;return!0}function yv(){for(var e=Zt;e;)e=Ir(e.nextSibling)}function ni(){Zt=Kt=null,rt=!1}function ad(e){pn===null?pn=[e]:pn.push(e)}var RE=I.ReactCurrentBatchConfig;function is(e,n,s){if(e=s.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(s._owner){if(s=s._owner,s){if(s.tag!==1)throw Error(o(309));var c=s.stateNode}if(!c)throw Error(o(147,e));var f=c,p=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===p?n.ref:(n=function(x){var C=f.refs;x===null?delete C[p]:C[p]=x},n._stringRef=p,n)}if(typeof e!="string")throw Error(o(284));if(!s._owner)throw Error(o(290,e))}return e}function Qa(e,n){throw e=Object.prototype.toString.call(n),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function xv(e){var n=e._init;return n(e._payload)}function wv(e){function n($,O){if(e){var M=$.deletions;M===null?($.deletions=[O],$.flags|=16):M.push(O)}}function s($,O){if(!e)return null;for(;O!==null;)n($,O),O=O.sibling;return null}function c($,O){for($=new Map;O!==null;)O.key!==null?$.set(O.key,O):$.set(O.index,O),O=O.sibling;return $}function f($,O){return $=Fr($,O),$.index=0,$.sibling=null,$}function p($,O,M){return $.index=M,e?(M=$.alternate,M!==null?(M=M.index,M<O?($.flags|=2,O):M):($.flags|=2,O)):($.flags|=1048576,O)}function x($){return e&&$.alternate===null&&($.flags|=2),$}function C($,O,M,te){return O===null||O.tag!==6?(O=Xd(M,$.mode,te),O.return=$,O):(O=f(O,M),O.return=$,O)}function R($,O,M,te){var be=M.type;return be===B?Z($,O,M.props.children,te,M.key):O!==null&&(O.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===re&&xv(be)===O.type)?(te=f(O,M.props),te.ref=is($,O,M),te.return=$,te):(te=wl(M.type,M.key,M.props,null,$.mode,te),te.ref=is($,O,M),te.return=$,te)}function F($,O,M,te){return O===null||O.tag!==4||O.stateNode.containerInfo!==M.containerInfo||O.stateNode.implementation!==M.implementation?(O=Jd(M,$.mode,te),O.return=$,O):(O=f(O,M.children||[]),O.return=$,O)}function Z($,O,M,te,be){return O===null||O.tag!==7?(O=vo(M,$.mode,te,be),O.return=$,O):(O=f(O,M),O.return=$,O)}function q($,O,M){if(typeof O=="string"&&O!==""||typeof O=="number")return O=Xd(""+O,$.mode,M),O.return=$,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case V:return M=wl(O.type,O.key,O.props,null,$.mode,M),M.ref=is($,null,O),M.return=$,M;case L:return O=Jd(O,$.mode,M),O.return=$,O;case re:var te=O._init;return q($,te(O._payload),M)}if(br(O)||G(O))return O=vo(O,$.mode,M,null),O.return=$,O;Qa($,O)}return null}function K($,O,M,te){var be=O!==null?O.key:null;if(typeof M=="string"&&M!==""||typeof M=="number")return be!==null?null:C($,O,""+M,te);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case V:return M.key===be?R($,O,M,te):null;case L:return M.key===be?F($,O,M,te):null;case re:return be=M._init,K($,O,be(M._payload),te)}if(br(M)||G(M))return be!==null?null:Z($,O,M,te,null);Qa($,M)}return null}function pe($,O,M,te,be){if(typeof te=="string"&&te!==""||typeof te=="number")return $=$.get(M)||null,C(O,$,""+te,be);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case V:return $=$.get(te.key===null?M:te.key)||null,R(O,$,te,be);case L:return $=$.get(te.key===null?M:te.key)||null,F(O,$,te,be);case re:var _e=te._init;return pe($,O,M,_e(te._payload),be)}if(br(te)||G(te))return $=$.get(M)||null,Z(O,$,te,be,null);Qa(O,te)}return null}function ye($,O,M,te){for(var be=null,_e=null,Ee=O,Oe=O=0,St=null;Ee!==null&&Oe<M.length;Oe++){Ee.index>Oe?(St=Ee,Ee=null):St=Ee.sibling;var Be=K($,Ee,M[Oe],te);if(Be===null){Ee===null&&(Ee=St);break}e&&Ee&&Be.alternate===null&&n($,Ee),O=p(Be,O,Oe),_e===null?be=Be:_e.sibling=Be,_e=Be,Ee=St}if(Oe===M.length)return s($,Ee),rt&&lo($,Oe),be;if(Ee===null){for(;Oe<M.length;Oe++)Ee=q($,M[Oe],te),Ee!==null&&(O=p(Ee,O,Oe),_e===null?be=Ee:_e.sibling=Ee,_e=Ee);return rt&&lo($,Oe),be}for(Ee=c($,Ee);Oe<M.length;Oe++)St=pe(Ee,$,Oe,M[Oe],te),St!==null&&(e&&St.alternate!==null&&Ee.delete(St.key===null?Oe:St.key),O=p(St,O,Oe),_e===null?be=St:_e.sibling=St,_e=St);return e&&Ee.forEach(function(Vr){return n($,Vr)}),rt&&lo($,Oe),be}function xe($,O,M,te){var be=G(M);if(typeof be!="function")throw Error(o(150));if(M=be.call(M),M==null)throw Error(o(151));for(var _e=be=null,Ee=O,Oe=O=0,St=null,Be=M.next();Ee!==null&&!Be.done;Oe++,Be=M.next()){Ee.index>Oe?(St=Ee,Ee=null):St=Ee.sibling;var Vr=K($,Ee,Be.value,te);if(Vr===null){Ee===null&&(Ee=St);break}e&&Ee&&Vr.alternate===null&&n($,Ee),O=p(Vr,O,Oe),_e===null?be=Vr:_e.sibling=Vr,_e=Vr,Ee=St}if(Be.done)return s($,Ee),rt&&lo($,Oe),be;if(Ee===null){for(;!Be.done;Oe++,Be=M.next())Be=q($,Be.value,te),Be!==null&&(O=p(Be,O,Oe),_e===null?be=Be:_e.sibling=Be,_e=Be);return rt&&lo($,Oe),be}for(Ee=c($,Ee);!Be.done;Oe++,Be=M.next())Be=pe(Ee,$,Oe,Be.value,te),Be!==null&&(e&&Be.alternate!==null&&Ee.delete(Be.key===null?Oe:Be.key),O=p(Be,O,Oe),_e===null?be=Be:_e.sibling=Be,_e=Be);return e&&Ee.forEach(function(sR){return n($,sR)}),rt&&lo($,Oe),be}function lt($,O,M,te){if(typeof M=="object"&&M!==null&&M.type===B&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case V:e:{for(var be=M.key,_e=O;_e!==null;){if(_e.key===be){if(be=M.type,be===B){if(_e.tag===7){s($,_e.sibling),O=f(_e,M.props.children),O.return=$,$=O;break e}}else if(_e.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===re&&xv(be)===_e.type){s($,_e.sibling),O=f(_e,M.props),O.ref=is($,_e,M),O.return=$,$=O;break e}s($,_e);break}else n($,_e);_e=_e.sibling}M.type===B?(O=vo(M.props.children,$.mode,te,M.key),O.return=$,$=O):(te=wl(M.type,M.key,M.props,null,$.mode,te),te.ref=is($,O,M),te.return=$,$=te)}return x($);case L:e:{for(_e=M.key;O!==null;){if(O.key===_e)if(O.tag===4&&O.stateNode.containerInfo===M.containerInfo&&O.stateNode.implementation===M.implementation){s($,O.sibling),O=f(O,M.children||[]),O.return=$,$=O;break e}else{s($,O);break}else n($,O);O=O.sibling}O=Jd(M,$.mode,te),O.return=$,$=O}return x($);case re:return _e=M._init,lt($,O,_e(M._payload),te)}if(br(M))return ye($,O,M,te);if(G(M))return xe($,O,M,te);Qa($,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,O!==null&&O.tag===6?(s($,O.sibling),O=f(O,M),O.return=$,$=O):(s($,O),O=Xd(M,$.mode,te),O.return=$,$=O),x($)):s($,O)}return lt}var ri=wv(!0),Sv=wv(!1),Ya=Or(null),Xa=null,oi=null,ld=null;function cd(){ld=oi=Xa=null}function ud(e){var n=Ya.current;tt(Ya),e._currentValue=n}function dd(e,n,s){for(;e!==null;){var c=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,c!==null&&(c.childLanes|=n)):c!==null&&(c.childLanes&n)!==n&&(c.childLanes|=n),e===s)break;e=e.return}}function ii(e,n){Xa=e,ld=oi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&(Ft=!0),e.firstContext=null)}function Jt(e){var n=e._currentValue;if(ld!==e)if(e={context:e,memoizedValue:n,next:null},oi===null){if(Xa===null)throw Error(o(308));oi=e,Xa.dependencies={lanes:0,firstContext:e}}else oi=oi.next=e;return n}var co=null;function fd(e){co===null?co=[e]:co.push(e)}function bv(e,n,s,c){var f=n.interleaved;return f===null?(s.next=s,fd(n)):(s.next=f.next,f.next=s),n.interleaved=s,rr(e,c)}function rr(e,n){e.lanes|=n;var s=e.alternate;for(s!==null&&(s.lanes|=n),s=e,e=e.return;e!==null;)e.childLanes|=n,s=e.alternate,s!==null&&(s.childLanes|=n),s=e,e=e.return;return s.tag===3?s.stateNode:null}var Ar=!1;function pd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function kv(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function or(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function Dr(e,n,s){var c=e.updateQueue;if(c===null)return null;if(c=c.shared,(Ve&2)!==0){var f=c.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),c.pending=n,rr(e,s)}return f=c.interleaved,f===null?(n.next=n,fd(c)):(n.next=f.next,f.next=n),c.interleaved=n,rr(e,s)}function Ja(e,n,s){if(n=n.updateQueue,n!==null&&(n=n.shared,(s&4194240)!==0)){var c=n.lanes;c&=e.pendingLanes,s|=c,n.lanes=s,Ru(e,s)}}function Cv(e,n){var s=e.updateQueue,c=e.alternate;if(c!==null&&(c=c.updateQueue,s===c)){var f=null,p=null;if(s=s.firstBaseUpdate,s!==null){do{var x={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};p===null?f=p=x:p=p.next=x,s=s.next}while(s!==null);p===null?f=p=n:p=p.next=n}else f=p=n;s={baseState:c.baseState,firstBaseUpdate:f,lastBaseUpdate:p,shared:c.shared,effects:c.effects},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=n:e.next=n,s.lastBaseUpdate=n}function el(e,n,s,c){var f=e.updateQueue;Ar=!1;var p=f.firstBaseUpdate,x=f.lastBaseUpdate,C=f.shared.pending;if(C!==null){f.shared.pending=null;var R=C,F=R.next;R.next=null,x===null?p=F:x.next=F,x=R;var Z=e.alternate;Z!==null&&(Z=Z.updateQueue,C=Z.lastBaseUpdate,C!==x&&(C===null?Z.firstBaseUpdate=F:C.next=F,Z.lastBaseUpdate=R))}if(p!==null){var q=f.baseState;x=0,Z=F=R=null,C=p;do{var K=C.lane,pe=C.eventTime;if((c&K)===K){Z!==null&&(Z=Z.next={eventTime:pe,lane:0,tag:C.tag,payload:C.payload,callback:C.callback,next:null});e:{var ye=e,xe=C;switch(K=n,pe=s,xe.tag){case 1:if(ye=xe.payload,typeof ye=="function"){q=ye.call(pe,q,K);break e}q=ye;break e;case 3:ye.flags=ye.flags&-65537|128;case 0:if(ye=xe.payload,K=typeof ye=="function"?ye.call(pe,q,K):ye,K==null)break e;q=z({},q,K);break e;case 2:Ar=!0}}C.callback!==null&&C.lane!==0&&(e.flags|=64,K=f.effects,K===null?f.effects=[C]:K.push(C))}else pe={eventTime:pe,lane:K,tag:C.tag,payload:C.payload,callback:C.callback,next:null},Z===null?(F=Z=pe,R=q):Z=Z.next=pe,x|=K;if(C=C.next,C===null){if(C=f.shared.pending,C===null)break;K=C,C=K.next,K.next=null,f.lastBaseUpdate=K,f.shared.pending=null}}while(!0);if(Z===null&&(R=q),f.baseState=R,f.firstBaseUpdate=F,f.lastBaseUpdate=Z,n=f.shared.interleaved,n!==null){f=n;do x|=f.lane,f=f.next;while(f!==n)}else p===null&&(f.shared.lanes=0);po|=x,e.lanes=x,e.memoizedState=q}}function _v(e,n,s){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var c=e[n],f=c.callback;if(f!==null){if(c.callback=null,c=s,typeof f!="function")throw Error(o(191,f));f.call(c)}}}var ss={},Tn=Or(ss),as=Or(ss),ls=Or(ss);function uo(e){if(e===ss)throw Error(o(174));return e}function hd(e,n){switch(Je(ls,n),Je(as,e),Je(Tn,ss),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:mu(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=mu(n,e)}tt(Tn),Je(Tn,n)}function si(){tt(Tn),tt(as),tt(ls)}function Ev(e){uo(ls.current);var n=uo(Tn.current),s=mu(n,e.type);n!==s&&(Je(as,e),Je(Tn,s))}function md(e){as.current===e&&(tt(Tn),tt(as))}var ot=Or(0);function tl(e){for(var n=e;n!==null;){if(n.tag===13){var s=n.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var gd=[];function vd(){for(var e=0;e<gd.length;e++)gd[e]._workInProgressVersionPrimary=null;gd.length=0}var nl=I.ReactCurrentDispatcher,yd=I.ReactCurrentBatchConfig,fo=0,it=null,ht=null,xt=null,rl=!1,cs=!1,us=0,PE=0;function _t(){throw Error(o(321))}function xd(e,n){if(n===null)return!1;for(var s=0;s<n.length&&s<e.length;s++)if(!fn(e[s],n[s]))return!1;return!0}function wd(e,n,s,c,f,p){if(fo=p,it=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,nl.current=e===null||e.memoizedState===null?TE:AE,e=s(c,f),cs){p=0;do{if(cs=!1,us=0,25<=p)throw Error(o(301));p+=1,xt=ht=null,n.updateQueue=null,nl.current=DE,e=s(c,f)}while(cs)}if(nl.current=sl,n=ht!==null&&ht.next!==null,fo=0,xt=ht=it=null,rl=!1,n)throw Error(o(300));return e}function Sd(){var e=us!==0;return us=0,e}function An(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xt===null?it.memoizedState=xt=e:xt=xt.next=e,xt}function en(){if(ht===null){var e=it.alternate;e=e!==null?e.memoizedState:null}else e=ht.next;var n=xt===null?it.memoizedState:xt.next;if(n!==null)xt=n,ht=e;else{if(e===null)throw Error(o(310));ht=e,e={memoizedState:ht.memoizedState,baseState:ht.baseState,baseQueue:ht.baseQueue,queue:ht.queue,next:null},xt===null?it.memoizedState=xt=e:xt=xt.next=e}return xt}function ds(e,n){return typeof n=="function"?n(e):n}function bd(e){var n=en(),s=n.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=e;var c=ht,f=c.baseQueue,p=s.pending;if(p!==null){if(f!==null){var x=f.next;f.next=p.next,p.next=x}c.baseQueue=f=p,s.pending=null}if(f!==null){p=f.next,c=c.baseState;var C=x=null,R=null,F=p;do{var Z=F.lane;if((fo&Z)===Z)R!==null&&(R=R.next={lane:0,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),c=F.hasEagerState?F.eagerState:e(c,F.action);else{var q={lane:Z,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null};R===null?(C=R=q,x=c):R=R.next=q,it.lanes|=Z,po|=Z}F=F.next}while(F!==null&&F!==p);R===null?x=c:R.next=C,fn(c,n.memoizedState)||(Ft=!0),n.memoizedState=c,n.baseState=x,n.baseQueue=R,s.lastRenderedState=c}if(e=s.interleaved,e!==null){f=e;do p=f.lane,it.lanes|=p,po|=p,f=f.next;while(f!==e)}else f===null&&(s.lanes=0);return[n.memoizedState,s.dispatch]}function kd(e){var n=en(),s=n.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=e;var c=s.dispatch,f=s.pending,p=n.memoizedState;if(f!==null){s.pending=null;var x=f=f.next;do p=e(p,x.action),x=x.next;while(x!==f);fn(p,n.memoizedState)||(Ft=!0),n.memoizedState=p,n.baseQueue===null&&(n.baseState=p),s.lastRenderedState=p}return[p,c]}function Rv(){}function Pv(e,n){var s=it,c=en(),f=n(),p=!fn(c.memoizedState,f);if(p&&(c.memoizedState=f,Ft=!0),c=c.queue,Cd(Nv.bind(null,s,c,e),[e]),c.getSnapshot!==n||p||xt!==null&&xt.memoizedState.tag&1){if(s.flags|=2048,fs(9,Ov.bind(null,s,c,f,n),void 0,null),wt===null)throw Error(o(349));(fo&30)!==0||Iv(s,n,f)}return f}function Iv(e,n,s){e.flags|=16384,e={getSnapshot:n,value:s},n=it.updateQueue,n===null?(n={lastEffect:null,stores:null},it.updateQueue=n,n.stores=[e]):(s=n.stores,s===null?n.stores=[e]:s.push(e))}function Ov(e,n,s,c){n.value=s,n.getSnapshot=c,Tv(n)&&Av(e)}function Nv(e,n,s){return s(function(){Tv(n)&&Av(e)})}function Tv(e){var n=e.getSnapshot;e=e.value;try{var s=n();return!fn(e,s)}catch{return!0}}function Av(e){var n=rr(e,1);n!==null&&vn(n,e,1,-1)}function Dv(e){var n=An();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ds,lastRenderedState:e},n.queue=e,e=e.dispatch=NE.bind(null,it,e),[n.memoizedState,e]}function fs(e,n,s,c){return e={tag:e,create:n,destroy:s,deps:c,next:null},n=it.updateQueue,n===null?(n={lastEffect:null,stores:null},it.updateQueue=n,n.lastEffect=e.next=e):(s=n.lastEffect,s===null?n.lastEffect=e.next=e:(c=s.next,s.next=e,e.next=c,n.lastEffect=e)),e}function Lv(){return en().memoizedState}function ol(e,n,s,c){var f=An();it.flags|=e,f.memoizedState=fs(1|n,s,void 0,c===void 0?null:c)}function il(e,n,s,c){var f=en();c=c===void 0?null:c;var p=void 0;if(ht!==null){var x=ht.memoizedState;if(p=x.destroy,c!==null&&xd(c,x.deps)){f.memoizedState=fs(n,s,p,c);return}}it.flags|=e,f.memoizedState=fs(1|n,s,p,c)}function $v(e,n){return ol(8390656,8,e,n)}function Cd(e,n){return il(2048,8,e,n)}function jv(e,n){return il(4,2,e,n)}function Mv(e,n){return il(4,4,e,n)}function zv(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Fv(e,n,s){return s=s!=null?s.concat([e]):null,il(4,4,zv.bind(null,n,e),s)}function _d(){}function Vv(e,n){var s=en();n=n===void 0?null:n;var c=s.memoizedState;return c!==null&&n!==null&&xd(n,c[1])?c[0]:(s.memoizedState=[e,n],e)}function Uv(e,n){var s=en();n=n===void 0?null:n;var c=s.memoizedState;return c!==null&&n!==null&&xd(n,c[1])?c[0]:(e=e(),s.memoizedState=[e,n],e)}function Bv(e,n,s){return(fo&21)===0?(e.baseState&&(e.baseState=!1,Ft=!0),e.memoizedState=s):(fn(s,n)||(s=xg(),it.lanes|=s,po|=s,e.baseState=!0),n)}function IE(e,n){var s=Ge;Ge=s!==0&&4>s?s:4,e(!0);var c=yd.transition;yd.transition={};try{e(!1),n()}finally{Ge=s,yd.transition=c}}function Hv(){return en().memoizedState}function OE(e,n,s){var c=Mr(e);if(s={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null},Wv(e))Kv(n,s);else if(s=bv(e,n,s,c),s!==null){var f=At();vn(s,e,c,f),Zv(s,n,c)}}function NE(e,n,s){var c=Mr(e),f={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if(Wv(e))Kv(n,f);else{var p=e.alternate;if(e.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null))try{var x=n.lastRenderedState,C=p(x,s);if(f.hasEagerState=!0,f.eagerState=C,fn(C,x)){var R=n.interleaved;R===null?(f.next=f,fd(n)):(f.next=R.next,R.next=f),n.interleaved=f;return}}catch{}s=bv(e,n,f,c),s!==null&&(f=At(),vn(s,e,c,f),Zv(s,n,c))}}function Wv(e){var n=e.alternate;return e===it||n!==null&&n===it}function Kv(e,n){cs=rl=!0;var s=e.pending;s===null?n.next=n:(n.next=s.next,s.next=n),e.pending=n}function Zv(e,n,s){if((s&4194240)!==0){var c=n.lanes;c&=e.pendingLanes,s|=c,n.lanes=s,Ru(e,s)}}var sl={readContext:Jt,useCallback:_t,useContext:_t,useEffect:_t,useImperativeHandle:_t,useInsertionEffect:_t,useLayoutEffect:_t,useMemo:_t,useReducer:_t,useRef:_t,useState:_t,useDebugValue:_t,useDeferredValue:_t,useTransition:_t,useMutableSource:_t,useSyncExternalStore:_t,useId:_t,unstable_isNewReconciler:!1},TE={readContext:Jt,useCallback:function(e,n){return An().memoizedState=[e,n===void 0?null:n],e},useContext:Jt,useEffect:$v,useImperativeHandle:function(e,n,s){return s=s!=null?s.concat([e]):null,ol(4194308,4,zv.bind(null,n,e),s)},useLayoutEffect:function(e,n){return ol(4194308,4,e,n)},useInsertionEffect:function(e,n){return ol(4,2,e,n)},useMemo:function(e,n){var s=An();return n=n===void 0?null:n,e=e(),s.memoizedState=[e,n],e},useReducer:function(e,n,s){var c=An();return n=s!==void 0?s(n):n,c.memoizedState=c.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},c.queue=e,e=e.dispatch=OE.bind(null,it,e),[c.memoizedState,e]},useRef:function(e){var n=An();return e={current:e},n.memoizedState=e},useState:Dv,useDebugValue:_d,useDeferredValue:function(e){return An().memoizedState=e},useTransition:function(){var e=Dv(!1),n=e[0];return e=IE.bind(null,e[1]),An().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,s){var c=it,f=An();if(rt){if(s===void 0)throw Error(o(407));s=s()}else{if(s=n(),wt===null)throw Error(o(349));(fo&30)!==0||Iv(c,n,s)}f.memoizedState=s;var p={value:s,getSnapshot:n};return f.queue=p,$v(Nv.bind(null,c,p,e),[e]),c.flags|=2048,fs(9,Ov.bind(null,c,p,s,n),void 0,null),s},useId:function(){var e=An(),n=wt.identifierPrefix;if(rt){var s=nr,c=tr;s=(c&~(1<<32-dn(c)-1)).toString(32)+s,n=":"+n+"R"+s,s=us++,0<s&&(n+="H"+s.toString(32)),n+=":"}else s=PE++,n=":"+n+"r"+s.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},AE={readContext:Jt,useCallback:Vv,useContext:Jt,useEffect:Cd,useImperativeHandle:Fv,useInsertionEffect:jv,useLayoutEffect:Mv,useMemo:Uv,useReducer:bd,useRef:Lv,useState:function(){return bd(ds)},useDebugValue:_d,useDeferredValue:function(e){var n=en();return Bv(n,ht.memoizedState,e)},useTransition:function(){var e=bd(ds)[0],n=en().memoizedState;return[e,n]},useMutableSource:Rv,useSyncExternalStore:Pv,useId:Hv,unstable_isNewReconciler:!1},DE={readContext:Jt,useCallback:Vv,useContext:Jt,useEffect:Cd,useImperativeHandle:Fv,useInsertionEffect:jv,useLayoutEffect:Mv,useMemo:Uv,useReducer:kd,useRef:Lv,useState:function(){return kd(ds)},useDebugValue:_d,useDeferredValue:function(e){var n=en();return ht===null?n.memoizedState=e:Bv(n,ht.memoizedState,e)},useTransition:function(){var e=kd(ds)[0],n=en().memoizedState;return[e,n]},useMutableSource:Rv,useSyncExternalStore:Pv,useId:Hv,unstable_isNewReconciler:!1};function hn(e,n){if(e&&e.defaultProps){n=z({},n),e=e.defaultProps;for(var s in e)n[s]===void 0&&(n[s]=e[s]);return n}return n}function Ed(e,n,s,c){n=e.memoizedState,s=s(c,n),s=s==null?n:z({},n,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var al={isMounted:function(e){return(e=e._reactInternals)?oo(e)===e:!1},enqueueSetState:function(e,n,s){e=e._reactInternals;var c=At(),f=Mr(e),p=or(c,f);p.payload=n,s!=null&&(p.callback=s),n=Dr(e,p,f),n!==null&&(vn(n,e,f,c),Ja(n,e,f))},enqueueReplaceState:function(e,n,s){e=e._reactInternals;var c=At(),f=Mr(e),p=or(c,f);p.tag=1,p.payload=n,s!=null&&(p.callback=s),n=Dr(e,p,f),n!==null&&(vn(n,e,f,c),Ja(n,e,f))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var s=At(),c=Mr(e),f=or(s,c);f.tag=2,n!=null&&(f.callback=n),n=Dr(e,f,c),n!==null&&(vn(n,e,c,s),Ja(n,e,c))}};function qv(e,n,s,c,f,p,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(c,p,x):n.prototype&&n.prototype.isPureReactComponent?!Xi(s,c)||!Xi(f,p):!0}function Gv(e,n,s){var c=!1,f=Nr,p=n.contextType;return typeof p=="object"&&p!==null?p=Jt(p):(f=zt(n)?so:Ct.current,c=n.contextTypes,p=(c=c!=null)?Jo(e,f):Nr),n=new n(s,p),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=al,e.stateNode=n,n._reactInternals=e,c&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=f,e.__reactInternalMemoizedMaskedChildContext=p),n}function Qv(e,n,s,c){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(s,c),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(s,c),n.state!==e&&al.enqueueReplaceState(n,n.state,null)}function Rd(e,n,s,c){var f=e.stateNode;f.props=s,f.state=e.memoizedState,f.refs={},pd(e);var p=n.contextType;typeof p=="object"&&p!==null?f.context=Jt(p):(p=zt(n)?so:Ct.current,f.context=Jo(e,p)),f.state=e.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(Ed(e,n,p,s),f.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(n=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),n!==f.state&&al.enqueueReplaceState(f,f.state,null),el(e,s,f,c),f.state=e.memoizedState),typeof f.componentDidMount=="function"&&(e.flags|=4194308)}function ai(e,n){try{var s="",c=n;do s+=H(c),c=c.return;while(c);var f=s}catch(p){f=`
|
|
4
|
+
`),x=f.length-1,C=p.length-1;1<=x&&0<=C&&f[x]!==p[C];)C--;for(;1<=x&&0<=C;x--,C--)if(f[x]!==p[C]){if(x!==1||C!==1)do if(x--,C--,0>C||f[x]!==p[C]){var P=`
|
|
5
|
+
`+f[x].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),P}while(1<=x&&0<=C);break}}}finally{W=!1,Error.prepareStackTrace=s}return(e=e?e.displayName||e.name:"")?E(e):""}function H(e){switch(e.tag){case 5:return E(e.type);case 16:return E("Lazy");case 13:return E("Suspense");case 19:return E("SuspenseList");case 0:case 2:case 15:return e=J(e.type,!1),e;case 11:return e=J(e.type.render,!1),e;case 1:return e=J(e.type,!0),e;default:return""}}function re(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case B:return"Fragment";case L:return"Portal";case Y:return"Profiler";case j:return"StrictMode";case ue:return"Suspense";case se:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ce:return(e.displayName||"Context")+".Consumer";case ce:return(e._context.displayName||"Context")+".Provider";case le:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case be:return n=e.displayName||null,n!==null?n:re(e.type)||"Memo";case ae:n=e._payload,e=e._init;try{return re(e(n))}catch{}}return null}function pe(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return re(n);case 8:return n===j?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function X(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ne(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Te(e){var n=ne(e)?"checked":"value",s=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),c=""+e[n];if(!e.hasOwnProperty(n)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var f=s.get,p=s.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return f.call(this)},set:function(x){c=""+x,p.call(this,x)}}),Object.defineProperty(e,n,{enumerable:s.enumerable}),{getValue:function(){return c},setValue:function(x){c=""+x},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function $e(e){e._valueTracker||(e._valueTracker=Te(e))}function je(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var s=n.getValue(),c="";return e&&(c=ne(e)?e.checked?"true":"false":e.value),e=c,e!==s?(n.setValue(e),!0):!1}function ze(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ot(e,n){var s=n.checked;return z({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??e._wrapperState.initialChecked})}function it(e,n){var s=n.defaultValue==null?"":n.defaultValue,c=n.checked!=null?n.checked:n.defaultChecked;s=X(n.value!=null?n.value:s),e._wrapperState={initialChecked:c,initialValue:s,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function St(e,n){n=n.checked,n!=null&&T(e,"checked",n,!1)}function Tn(e,n){St(e,n);var s=X(n.value),c=n.type;if(s!=null)c==="number"?(s===0&&e.value===""||e.value!=s)&&(e.value=""+s):e.value!==""+s&&(e.value=""+s);else if(c==="submit"||c==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?Hi(e,n.type,s):n.hasOwnProperty("defaultValue")&&Hi(e,n.type,X(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function rr(e,n,s){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var c=n.type;if(!(c!=="submit"&&c!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,s||n===e.value||(e.value=n),e.defaultValue=n}s=e.name,s!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,s!==""&&(e.name=s)}function Hi(e,n,s){(n!=="number"||ze(e.ownerDocument)!==e)&&(s==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+s&&(e.defaultValue=""+s))}var uo=Array.isArray;function Rr(e,n,s,c){if(e=e.options,n){n={};for(var f=0;f<s.length;f++)n["$"+s[f]]=!0;for(s=0;s<e.length;s++)f=n.hasOwnProperty("$"+e[s].value),e[s].selected!==f&&(e[s].selected=f),f&&c&&(e[s].defaultSelected=!0)}else{for(s=""+X(s),n=null,f=0;f<e.length;f++){if(e[f].value===s){e[f].selected=!0,c&&(e[f].defaultSelected=!0);return}n!==null||e[f].disabled||(n=e[f])}n!==null&&(n.selected=!0)}}function Qo(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(o(91));return z({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Wi(e,n){var s=n.value;if(s==null){if(s=n.children,n=n.defaultValue,s!=null){if(n!=null)throw Error(o(92));if(uo(s)){if(1<s.length)throw Error(o(93));s=s[0]}n=s}n==null&&(n=""),s=n}e._wrapperState={initialValue:X(s)}}function ie(e,n){var s=X(n.value),c=X(n.defaultValue);s!=null&&(s=""+s,s!==e.value&&(e.value=s),n.defaultValue==null&&e.defaultValue!==s&&(e.defaultValue=s)),c!=null&&(e.defaultValue=""+c)}function Ne(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function Ye(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Xe(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?Ye(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Be,Ft=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,s,c,f){MSApp.execUnsafeLocalFunction(function(){return e(n,s,c,f)})}:e})(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(Be=Be||document.createElement("div"),Be.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=Be.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Pr(e,n){if(n){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=n;return}}e.textContent=n}var Dn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},f_=["Webkit","ms","Moz","O"];Object.keys(Dn).forEach(function(e){f_.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Dn[n]=Dn[e]})});function dg(e,n,s){return n==null||typeof n=="boolean"||n===""?"":s||typeof n!="number"||n===0||Dn.hasOwnProperty(e)&&Dn[e]?(""+n).trim():n+"px"}function fg(e,n){e=e.style;for(var s in n)if(n.hasOwnProperty(s)){var c=s.indexOf("--")===0,f=dg(s,n[s],c);s==="float"&&(s="cssFloat"),c?e.setProperty(s,f):e[s]=f}}var p_=z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function bu(e,n){if(n){if(p_[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(o(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(o(61))}if(n.style!=null&&typeof n.style!="object")throw Error(o(62))}}function ku(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){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":return!1;default:return!0}}var Cu=null;function _u(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Eu=null,Yo=null,Xo=null;function pg(e){if(e=ps(e)){if(typeof Eu!="function")throw Error(o(280));var n=e.stateNode;n&&(n=Ya(n),Eu(e.stateNode,e.type,n))}}function hg(e){Yo?Xo?Xo.push(e):Xo=[e]:Yo=e}function mg(){if(Yo){var e=Yo,n=Xo;if(Xo=Yo=null,pg(e),n)for(e=0;e<n.length;e++)pg(n[e])}}function gg(e,n){return e(n)}function vg(){}var Ru=!1;function yg(e,n,s){if(Ru)return e(n,s);Ru=!0;try{return gg(e,n,s)}finally{Ru=!1,(Yo!==null||Xo!==null)&&(vg(),mg())}}function Ki(e,n){var s=e.stateNode;if(s===null)return null;var c=Ya(s);if(c===null)return null;s=c[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(e=e.type,c=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!c;break e;default:e=!1}if(e)return null;if(s&&typeof s!="function")throw Error(o(231,n,typeof s));return s}var Pu=!1;if(d)try{var Zi={};Object.defineProperty(Zi,"passive",{get:function(){Pu=!0}}),window.addEventListener("test",Zi,Zi),window.removeEventListener("test",Zi,Zi)}catch{Pu=!1}function h_(e,n,s,c,f,p,x,C,P){var F=Array.prototype.slice.call(arguments,3);try{n.apply(s,F)}catch(Z){this.onError(Z)}}var qi=!1,Ia=null,Oa=!1,Iu=null,m_={onError:function(e){qi=!0,Ia=e}};function g_(e,n,s,c,f,p,x,C,P){qi=!1,Ia=null,h_.apply(m_,arguments)}function v_(e,n,s,c,f,p,x,C,P){if(g_.apply(this,arguments),qi){if(qi){var F=Ia;qi=!1,Ia=null}else throw Error(o(198));Oa||(Oa=!0,Iu=F)}}function fo(e){var n=e,s=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(s=n.return),e=n.return;while(e)}return n.tag===3?s:null}function xg(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function wg(e){if(fo(e)!==e)throw Error(o(188))}function y_(e){var n=e.alternate;if(!n){if(n=fo(e),n===null)throw Error(o(188));return n!==e?null:e}for(var s=e,c=n;;){var f=s.return;if(f===null)break;var p=f.alternate;if(p===null){if(c=f.return,c!==null){s=c;continue}break}if(f.child===p.child){for(p=f.child;p;){if(p===s)return wg(f),e;if(p===c)return wg(f),n;p=p.sibling}throw Error(o(188))}if(s.return!==c.return)s=f,c=p;else{for(var x=!1,C=f.child;C;){if(C===s){x=!0,s=f,c=p;break}if(C===c){x=!0,c=f,s=p;break}C=C.sibling}if(!x){for(C=p.child;C;){if(C===s){x=!0,s=p,c=f;break}if(C===c){x=!0,c=p,s=f;break}C=C.sibling}if(!x)throw Error(o(189))}}if(s.alternate!==c)throw Error(o(190))}if(s.tag!==3)throw Error(o(188));return s.stateNode.current===s?e:n}function Sg(e){return e=y_(e),e!==null?bg(e):null}function bg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=bg(e);if(n!==null)return n;e=e.sibling}return null}var kg=t.unstable_scheduleCallback,Cg=t.unstable_cancelCallback,x_=t.unstable_shouldYield,w_=t.unstable_requestPaint,ct=t.unstable_now,S_=t.unstable_getCurrentPriorityLevel,Ou=t.unstable_ImmediatePriority,_g=t.unstable_UserBlockingPriority,Na=t.unstable_NormalPriority,b_=t.unstable_LowPriority,Eg=t.unstable_IdlePriority,Ta=null,An=null;function k_(e){if(An&&typeof An.onCommitFiberRoot=="function")try{An.onCommitFiberRoot(Ta,e,void 0,(e.current.flags&128)===128)}catch{}}var pn=Math.clz32?Math.clz32:E_,C_=Math.log,__=Math.LN2;function E_(e){return e>>>=0,e===0?32:31-(C_(e)/__|0)|0}var Da=64,Aa=4194304;function Gi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function La(e,n){var s=e.pendingLanes;if(s===0)return 0;var c=0,f=e.suspendedLanes,p=e.pingedLanes,x=s&268435455;if(x!==0){var C=x&~f;C!==0?c=Gi(C):(p&=x,p!==0&&(c=Gi(p)))}else x=s&~f,x!==0?c=Gi(x):p!==0&&(c=Gi(p));if(c===0)return 0;if(n!==0&&n!==c&&(n&f)===0&&(f=c&-c,p=n&-n,f>=p||f===16&&(p&4194240)!==0))return n;if((c&4)!==0&&(c|=s&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=c;0<n;)s=31-pn(n),f=1<<s,c|=e[s],n&=~f;return c}function R_(e,n){switch(e){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function P_(e,n){for(var s=e.suspendedLanes,c=e.pingedLanes,f=e.expirationTimes,p=e.pendingLanes;0<p;){var x=31-pn(p),C=1<<x,P=f[x];P===-1?((C&s)===0||(C&c)!==0)&&(f[x]=R_(C,n)):P<=n&&(e.expiredLanes|=C),p&=~C}}function Nu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Rg(){var e=Da;return Da<<=1,(Da&4194240)===0&&(Da=64),e}function Tu(e){for(var n=[],s=0;31>s;s++)n.push(e);return n}function Qi(e,n,s){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-pn(n),e[n]=s}function I_(e,n){var s=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var c=e.eventTimes;for(e=e.expirationTimes;0<s;){var f=31-pn(s),p=1<<f;n[f]=0,c[f]=-1,e[f]=-1,s&=~p}}function Du(e,n){var s=e.entangledLanes|=n;for(e=e.entanglements;s;){var c=31-pn(s),f=1<<c;f&n|e[c]&n&&(e[c]|=n),s&=~f}}var qe=0;function Pg(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Ig,Au,Og,Ng,Tg,Lu=!1,$a=[],Ir=null,Or=null,Nr=null,Yi=new Map,Xi=new Map,Tr=[],O_="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Dg(e,n){switch(e){case"focusin":case"focusout":Ir=null;break;case"dragenter":case"dragleave":Or=null;break;case"mouseover":case"mouseout":Nr=null;break;case"pointerover":case"pointerout":Yi.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xi.delete(n.pointerId)}}function Ji(e,n,s,c,f,p){return e===null||e.nativeEvent!==p?(e={blockedOn:n,domEventName:s,eventSystemFlags:c,nativeEvent:p,targetContainers:[f]},n!==null&&(n=ps(n),n!==null&&Au(n)),e):(e.eventSystemFlags|=c,n=e.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),e)}function N_(e,n,s,c,f){switch(n){case"focusin":return Ir=Ji(Ir,e,n,s,c,f),!0;case"dragenter":return Or=Ji(Or,e,n,s,c,f),!0;case"mouseover":return Nr=Ji(Nr,e,n,s,c,f),!0;case"pointerover":var p=f.pointerId;return Yi.set(p,Ji(Yi.get(p)||null,e,n,s,c,f)),!0;case"gotpointercapture":return p=f.pointerId,Xi.set(p,Ji(Xi.get(p)||null,e,n,s,c,f)),!0}return!1}function Ag(e){var n=po(e.target);if(n!==null){var s=fo(n);if(s!==null){if(n=s.tag,n===13){if(n=xg(s),n!==null){e.blockedOn=n,Tg(e.priority,function(){Og(s)});return}}else if(n===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ja(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var s=ju(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(s===null){s=e.nativeEvent;var c=new s.constructor(s.type,s);Cu=c,s.target.dispatchEvent(c),Cu=null}else return n=ps(s),n!==null&&Au(n),e.blockedOn=s,!1;n.shift()}return!0}function Lg(e,n,s){ja(e)&&s.delete(n)}function T_(){Lu=!1,Ir!==null&&ja(Ir)&&(Ir=null),Or!==null&&ja(Or)&&(Or=null),Nr!==null&&ja(Nr)&&(Nr=null),Yi.forEach(Lg),Xi.forEach(Lg)}function es(e,n){e.blockedOn===n&&(e.blockedOn=null,Lu||(Lu=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,T_)))}function ts(e){function n(f){return es(f,e)}if(0<$a.length){es($a[0],e);for(var s=1;s<$a.length;s++){var c=$a[s];c.blockedOn===e&&(c.blockedOn=null)}}for(Ir!==null&&es(Ir,e),Or!==null&&es(Or,e),Nr!==null&&es(Nr,e),Yi.forEach(n),Xi.forEach(n),s=0;s<Tr.length;s++)c=Tr[s],c.blockedOn===e&&(c.blockedOn=null);for(;0<Tr.length&&(s=Tr[0],s.blockedOn===null);)Ag(s),s.blockedOn===null&&Tr.shift()}var Jo=O.ReactCurrentBatchConfig,Ma=!0;function D_(e,n,s,c){var f=qe,p=Jo.transition;Jo.transition=null;try{qe=1,$u(e,n,s,c)}finally{qe=f,Jo.transition=p}}function A_(e,n,s,c){var f=qe,p=Jo.transition;Jo.transition=null;try{qe=4,$u(e,n,s,c)}finally{qe=f,Jo.transition=p}}function $u(e,n,s,c){if(Ma){var f=ju(e,n,s,c);if(f===null)ed(e,n,c,za,s),Dg(e,c);else if(N_(f,e,n,s,c))c.stopPropagation();else if(Dg(e,c),n&4&&-1<O_.indexOf(e)){for(;f!==null;){var p=ps(f);if(p!==null&&Ig(p),p=ju(e,n,s,c),p===null&&ed(e,n,c,za,s),p===f)break;f=p}f!==null&&c.stopPropagation()}else ed(e,n,c,null,s)}}var za=null;function ju(e,n,s,c){if(za=null,e=_u(c),e=po(e),e!==null)if(n=fo(e),n===null)e=null;else if(s=n.tag,s===13){if(e=xg(n),e!==null)return e;e=null}else if(s===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return za=e,null}function $g(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(S_()){case Ou:return 1;case _g:return 4;case Na:case b_:return 16;case Eg:return 536870912;default:return 16}default:return 16}}var Dr=null,Mu=null,Fa=null;function jg(){if(Fa)return Fa;var e,n=Mu,s=n.length,c,f="value"in Dr?Dr.value:Dr.textContent,p=f.length;for(e=0;e<s&&n[e]===f[e];e++);var x=s-e;for(c=1;c<=x&&n[s-c]===f[p-c];c++);return Fa=f.slice(e,1<c?1-c:void 0)}function Va(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Ua(){return!0}function Mg(){return!1}function qt(e){function n(s,c,f,p,x){this._reactName=s,this._targetInst=f,this.type=c,this.nativeEvent=p,this.target=x,this.currentTarget=null;for(var C in e)e.hasOwnProperty(C)&&(s=e[C],this[C]=s?s(p):p[C]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Ua:Mg,this.isPropagationStopped=Mg,this}return z(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Ua)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Ua)},persist:function(){},isPersistent:Ua}),n}var ei={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zu=qt(ei),ns=z({},ei,{view:0,detail:0}),L_=qt(ns),Fu,Vu,rs,Ba=z({},ns,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==rs&&(rs&&e.type==="mousemove"?(Fu=e.screenX-rs.screenX,Vu=e.screenY-rs.screenY):Vu=Fu=0,rs=e),Fu)},movementY:function(e){return"movementY"in e?e.movementY:Vu}}),zg=qt(Ba),$_=z({},Ba,{dataTransfer:0}),j_=qt($_),M_=z({},ns,{relatedTarget:0}),Uu=qt(M_),z_=z({},ei,{animationName:0,elapsedTime:0,pseudoElement:0}),F_=qt(z_),V_=z({},ei,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),U_=qt(V_),B_=z({},ei,{data:0}),Fg=qt(B_),H_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},W_={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},K_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Z_(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=K_[e])?!!n[e]:!1}function Bu(){return Z_}var q_=z({},ns,{key:function(e){if(e.key){var n=H_[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Va(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?W_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bu,charCode:function(e){return e.type==="keypress"?Va(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Va(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),G_=qt(q_),Q_=z({},Ba,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vg=qt(Q_),Y_=z({},ns,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bu}),X_=qt(Y_),J_=z({},ei,{propertyName:0,elapsedTime:0,pseudoElement:0}),eE=qt(J_),tE=z({},Ba,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),nE=qt(tE),rE=[9,13,27,32],Hu=d&&"CompositionEvent"in window,os=null;d&&"documentMode"in document&&(os=document.documentMode);var oE=d&&"TextEvent"in window&&!os,Ug=d&&(!Hu||os&&8<os&&11>=os),Bg=" ",Hg=!1;function Wg(e,n){switch(e){case"keyup":return rE.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ti=!1;function iE(e,n){switch(e){case"compositionend":return Kg(n);case"keypress":return n.which!==32?null:(Hg=!0,Bg);case"textInput":return e=n.data,e===Bg&&Hg?null:e;default:return null}}function sE(e,n){if(ti)return e==="compositionend"||!Hu&&Wg(e,n)?(e=jg(),Fa=Mu=Dr=null,ti=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Ug&&n.locale!=="ko"?null:n.data;default:return null}}var aE={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Zg(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!aE[e.type]:n==="textarea"}function qg(e,n,s,c){hg(c),n=qa(n,"onChange"),0<n.length&&(s=new zu("onChange","change",null,s,c),e.push({event:s,listeners:n}))}var is=null,ss=null;function lE(e){fv(e,0)}function Ha(e){var n=si(e);if(je(n))return e}function cE(e,n){if(e==="change")return n}var Gg=!1;if(d){var Wu;if(d){var Ku="oninput"in document;if(!Ku){var Qg=document.createElement("div");Qg.setAttribute("oninput","return;"),Ku=typeof Qg.oninput=="function"}Wu=Ku}else Wu=!1;Gg=Wu&&(!document.documentMode||9<document.documentMode)}function Yg(){is&&(is.detachEvent("onpropertychange",Xg),ss=is=null)}function Xg(e){if(e.propertyName==="value"&&Ha(ss)){var n=[];qg(n,ss,e,_u(e)),yg(lE,n)}}function uE(e,n,s){e==="focusin"?(Yg(),is=n,ss=s,is.attachEvent("onpropertychange",Xg)):e==="focusout"&&Yg()}function dE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ha(ss)}function fE(e,n){if(e==="click")return Ha(n)}function pE(e,n){if(e==="input"||e==="change")return Ha(n)}function hE(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var hn=typeof Object.is=="function"?Object.is:hE;function as(e,n){if(hn(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var s=Object.keys(e),c=Object.keys(n);if(s.length!==c.length)return!1;for(c=0;c<s.length;c++){var f=s[c];if(!h.call(n,f)||!hn(e[f],n[f]))return!1}return!0}function Jg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ev(e,n){var s=Jg(e);e=0;for(var c;s;){if(s.nodeType===3){if(c=e+s.textContent.length,e<=n&&c>=n)return{node:s,offset:n-e};e=c}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Jg(s)}}function tv(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?tv(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function nv(){for(var e=window,n=ze();n instanceof e.HTMLIFrameElement;){try{var s=typeof n.contentWindow.location.href=="string"}catch{s=!1}if(s)e=n.contentWindow;else break;n=ze(e.document)}return n}function Zu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function mE(e){var n=nv(),s=e.focusedElem,c=e.selectionRange;if(n!==s&&s&&s.ownerDocument&&tv(s.ownerDocument.documentElement,s)){if(c!==null&&Zu(s)){if(n=c.start,e=c.end,e===void 0&&(e=n),"selectionStart"in s)s.selectionStart=n,s.selectionEnd=Math.min(e,s.value.length);else if(e=(n=s.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var f=s.textContent.length,p=Math.min(c.start,f);c=c.end===void 0?p:Math.min(c.end,f),!e.extend&&p>c&&(f=c,c=p,p=f),f=ev(s,p);var x=ev(s,c);f&&x&&(e.rangeCount!==1||e.anchorNode!==f.node||e.anchorOffset!==f.offset||e.focusNode!==x.node||e.focusOffset!==x.offset)&&(n=n.createRange(),n.setStart(f.node,f.offset),e.removeAllRanges(),p>c?(e.addRange(n),e.extend(x.node,x.offset)):(n.setEnd(x.node,x.offset),e.addRange(n)))}}for(n=[],e=s;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<n.length;s++)e=n[s],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gE=d&&"documentMode"in document&&11>=document.documentMode,ni=null,qu=null,ls=null,Gu=!1;function rv(e,n,s){var c=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Gu||ni==null||ni!==ze(c)||(c=ni,"selectionStart"in c&&Zu(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),ls&&as(ls,c)||(ls=c,c=qa(qu,"onSelect"),0<c.length&&(n=new zu("onSelect","select",null,n,s),e.push({event:n,listeners:c}),n.target=ni)))}function Wa(e,n){var s={};return s[e.toLowerCase()]=n.toLowerCase(),s["Webkit"+e]="webkit"+n,s["Moz"+e]="moz"+n,s}var ri={animationend:Wa("Animation","AnimationEnd"),animationiteration:Wa("Animation","AnimationIteration"),animationstart:Wa("Animation","AnimationStart"),transitionend:Wa("Transition","TransitionEnd")},Qu={},ov={};d&&(ov=document.createElement("div").style,"AnimationEvent"in window||(delete ri.animationend.animation,delete ri.animationiteration.animation,delete ri.animationstart.animation),"TransitionEvent"in window||delete ri.transitionend.transition);function Ka(e){if(Qu[e])return Qu[e];if(!ri[e])return e;var n=ri[e],s;for(s in n)if(n.hasOwnProperty(s)&&s in ov)return Qu[e]=n[s];return e}var iv=Ka("animationend"),sv=Ka("animationiteration"),av=Ka("animationstart"),lv=Ka("transitionend"),cv=new Map,uv="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ar(e,n){cv.set(e,n),l(n,[e])}for(var Yu=0;Yu<uv.length;Yu++){var Xu=uv[Yu],vE=Xu.toLowerCase(),yE=Xu[0].toUpperCase()+Xu.slice(1);Ar(vE,"on"+yE)}Ar(iv,"onAnimationEnd"),Ar(sv,"onAnimationIteration"),Ar(av,"onAnimationStart"),Ar("dblclick","onDoubleClick"),Ar("focusin","onFocus"),Ar("focusout","onBlur"),Ar(lv,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var cs="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),xE=new Set("cancel close invalid load scroll toggle".split(" ").concat(cs));function dv(e,n,s){var c=e.type||"unknown-event";e.currentTarget=s,v_(c,n,void 0,e),e.currentTarget=null}function fv(e,n){n=(n&4)!==0;for(var s=0;s<e.length;s++){var c=e[s],f=c.event;c=c.listeners;e:{var p=void 0;if(n)for(var x=c.length-1;0<=x;x--){var C=c[x],P=C.instance,F=C.currentTarget;if(C=C.listener,P!==p&&f.isPropagationStopped())break e;dv(f,C,F),p=P}else for(x=0;x<c.length;x++){if(C=c[x],P=C.instance,F=C.currentTarget,C=C.listener,P!==p&&f.isPropagationStopped())break e;dv(f,C,F),p=P}}}if(Oa)throw e=Iu,Oa=!1,Iu=null,e}function et(e,n){var s=n[sd];s===void 0&&(s=n[sd]=new Set);var c=e+"__bubble";s.has(c)||(pv(n,e,2,!1),s.add(c))}function Ju(e,n,s){var c=0;n&&(c|=4),pv(s,e,c,n)}var Za="_reactListening"+Math.random().toString(36).slice(2);function us(e){if(!e[Za]){e[Za]=!0,i.forEach(function(s){s!=="selectionchange"&&(xE.has(s)||Ju(s,!1,e),Ju(s,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Za]||(n[Za]=!0,Ju("selectionchange",!1,n))}}function pv(e,n,s,c){switch($g(n)){case 1:var f=D_;break;case 4:f=A_;break;default:f=$u}s=f.bind(null,n,s,e),f=void 0,!Pu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),c?f!==void 0?e.addEventListener(n,s,{capture:!0,passive:f}):e.addEventListener(n,s,!0):f!==void 0?e.addEventListener(n,s,{passive:f}):e.addEventListener(n,s,!1)}function ed(e,n,s,c,f){var p=c;if((n&1)===0&&(n&2)===0&&c!==null)e:for(;;){if(c===null)return;var x=c.tag;if(x===3||x===4){var C=c.stateNode.containerInfo;if(C===f||C.nodeType===8&&C.parentNode===f)break;if(x===4)for(x=c.return;x!==null;){var P=x.tag;if((P===3||P===4)&&(P=x.stateNode.containerInfo,P===f||P.nodeType===8&&P.parentNode===f))return;x=x.return}for(;C!==null;){if(x=po(C),x===null)return;if(P=x.tag,P===5||P===6){c=p=x;continue e}C=C.parentNode}}c=c.return}yg(function(){var F=p,Z=_u(s),q=[];e:{var K=cv.get(e);if(K!==void 0){var fe=zu,ye=e;switch(e){case"keypress":if(Va(s)===0)break e;case"keydown":case"keyup":fe=G_;break;case"focusin":ye="focus",fe=Uu;break;case"focusout":ye="blur",fe=Uu;break;case"beforeblur":case"afterblur":fe=Uu;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":fe=zg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":fe=j_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":fe=X_;break;case iv:case sv:case av:fe=F_;break;case lv:fe=eE;break;case"scroll":fe=L_;break;case"wheel":fe=nE;break;case"copy":case"cut":case"paste":fe=U_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":fe=Vg}var we=(n&4)!==0,ut=!we&&e==="scroll",$=we?K!==null?K+"Capture":null:K;we=[];for(var N=F,M;N!==null;){M=N;var ee=M.stateNode;if(M.tag===5&&ee!==null&&(M=ee,$!==null&&(ee=Ki(N,$),ee!=null&&we.push(ds(N,ee,M)))),ut)break;N=N.return}0<we.length&&(K=new fe(K,ye,null,s,Z),q.push({event:K,listeners:we}))}}if((n&7)===0){e:{if(K=e==="mouseover"||e==="pointerover",fe=e==="mouseout"||e==="pointerout",K&&s!==Cu&&(ye=s.relatedTarget||s.fromElement)&&(po(ye)||ye[or]))break e;if((fe||K)&&(K=Z.window===Z?Z:(K=Z.ownerDocument)?K.defaultView||K.parentWindow:window,fe?(ye=s.relatedTarget||s.toElement,fe=F,ye=ye?po(ye):null,ye!==null&&(ut=fo(ye),ye!==ut||ye.tag!==5&&ye.tag!==6)&&(ye=null)):(fe=null,ye=F),fe!==ye)){if(we=zg,ee="onMouseLeave",$="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(we=Vg,ee="onPointerLeave",$="onPointerEnter",N="pointer"),ut=fe==null?K:si(fe),M=ye==null?K:si(ye),K=new we(ee,N+"leave",fe,s,Z),K.target=ut,K.relatedTarget=M,ee=null,po(Z)===F&&(we=new we($,N+"enter",ye,s,Z),we.target=M,we.relatedTarget=ut,ee=we),ut=ee,fe&&ye)t:{for(we=fe,$=ye,N=0,M=we;M;M=oi(M))N++;for(M=0,ee=$;ee;ee=oi(ee))M++;for(;0<N-M;)we=oi(we),N--;for(;0<M-N;)$=oi($),M--;for(;N--;){if(we===$||$!==null&&we===$.alternate)break t;we=oi(we),$=oi($)}we=null}else we=null;fe!==null&&hv(q,K,fe,we,!1),ye!==null&&ut!==null&&hv(q,ut,ye,we,!0)}}e:{if(K=F?si(F):window,fe=K.nodeName&&K.nodeName.toLowerCase(),fe==="select"||fe==="input"&&K.type==="file")var ke=cE;else if(Zg(K))if(Gg)ke=pE;else{ke=dE;var _e=uE}else(fe=K.nodeName)&&fe.toLowerCase()==="input"&&(K.type==="checkbox"||K.type==="radio")&&(ke=fE);if(ke&&(ke=ke(e,F))){qg(q,ke,s,Z);break e}_e&&_e(e,K,F),e==="focusout"&&(_e=K._wrapperState)&&_e.controlled&&K.type==="number"&&Hi(K,"number",K.value)}switch(_e=F?si(F):window,e){case"focusin":(Zg(_e)||_e.contentEditable==="true")&&(ni=_e,qu=F,ls=null);break;case"focusout":ls=qu=ni=null;break;case"mousedown":Gu=!0;break;case"contextmenu":case"mouseup":case"dragend":Gu=!1,rv(q,s,Z);break;case"selectionchange":if(gE)break;case"keydown":case"keyup":rv(q,s,Z)}var Ee;if(Hu)e:{switch(e){case"compositionstart":var Ie="onCompositionStart";break e;case"compositionend":Ie="onCompositionEnd";break e;case"compositionupdate":Ie="onCompositionUpdate";break e}Ie=void 0}else ti?Wg(e,s)&&(Ie="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(Ie="onCompositionStart");Ie&&(Ug&&s.locale!=="ko"&&(ti||Ie!=="onCompositionStart"?Ie==="onCompositionEnd"&&ti&&(Ee=jg()):(Dr=Z,Mu="value"in Dr?Dr.value:Dr.textContent,ti=!0)),_e=qa(F,Ie),0<_e.length&&(Ie=new Fg(Ie,e,null,s,Z),q.push({event:Ie,listeners:_e}),Ee?Ie.data=Ee:(Ee=Kg(s),Ee!==null&&(Ie.data=Ee)))),(Ee=oE?iE(e,s):sE(e,s))&&(F=qa(F,"onBeforeInput"),0<F.length&&(Z=new Fg("onBeforeInput","beforeinput",null,s,Z),q.push({event:Z,listeners:F}),Z.data=Ee))}fv(q,n)})}function ds(e,n,s){return{instance:e,listener:n,currentTarget:s}}function qa(e,n){for(var s=n+"Capture",c=[];e!==null;){var f=e,p=f.stateNode;f.tag===5&&p!==null&&(f=p,p=Ki(e,s),p!=null&&c.unshift(ds(e,p,f)),p=Ki(e,n),p!=null&&c.push(ds(e,p,f))),e=e.return}return c}function oi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function hv(e,n,s,c,f){for(var p=n._reactName,x=[];s!==null&&s!==c;){var C=s,P=C.alternate,F=C.stateNode;if(P!==null&&P===c)break;C.tag===5&&F!==null&&(C=F,f?(P=Ki(s,p),P!=null&&x.unshift(ds(s,P,C))):f||(P=Ki(s,p),P!=null&&x.push(ds(s,P,C)))),s=s.return}x.length!==0&&e.push({event:n,listeners:x})}var wE=/\r\n?/g,SE=/\u0000|\uFFFD/g;function mv(e){return(typeof e=="string"?e:""+e).replace(wE,`
|
|
6
|
+
`).replace(SE,"")}function Ga(e,n,s){if(n=mv(n),mv(e)!==n&&s)throw Error(o(425))}function Qa(){}var td=null,nd=null;function rd(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var od=typeof setTimeout=="function"?setTimeout:void 0,bE=typeof clearTimeout=="function"?clearTimeout:void 0,gv=typeof Promise=="function"?Promise:void 0,kE=typeof queueMicrotask=="function"?queueMicrotask:typeof gv<"u"?function(e){return gv.resolve(null).then(e).catch(CE)}:od;function CE(e){setTimeout(function(){throw e})}function id(e,n){var s=n,c=0;do{var f=s.nextSibling;if(e.removeChild(s),f&&f.nodeType===8)if(s=f.data,s==="/$"){if(c===0){e.removeChild(f),ts(n);return}c--}else s!=="$"&&s!=="$?"&&s!=="$!"||c++;s=f}while(s);ts(n)}function Lr(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function vv(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"){if(n===0)return e;n--}else s==="/$"&&n++}e=e.previousSibling}return null}var ii=Math.random().toString(36).slice(2),Ln="__reactFiber$"+ii,fs="__reactProps$"+ii,or="__reactContainer$"+ii,sd="__reactEvents$"+ii,_E="__reactListeners$"+ii,EE="__reactHandles$"+ii;function po(e){var n=e[Ln];if(n)return n;for(var s=e.parentNode;s;){if(n=s[or]||s[Ln]){if(s=n.alternate,n.child!==null||s!==null&&s.child!==null)for(e=vv(e);e!==null;){if(s=e[Ln])return s;e=vv(e)}return n}e=s,s=e.parentNode}return null}function ps(e){return e=e[Ln]||e[or],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function si(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(o(33))}function Ya(e){return e[fs]||null}var ad=[],ai=-1;function $r(e){return{current:e}}function tt(e){0>ai||(e.current=ad[ai],ad[ai]=null,ai--)}function Je(e,n){ai++,ad[ai]=e.current,e.current=n}var jr={},Rt=$r(jr),Vt=$r(!1),ho=jr;function li(e,n){var s=e.type.contextTypes;if(!s)return jr;var c=e.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===n)return c.__reactInternalMemoizedMaskedChildContext;var f={},p;for(p in s)f[p]=n[p];return c&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=f),f}function Ut(e){return e=e.childContextTypes,e!=null}function Xa(){tt(Vt),tt(Rt)}function yv(e,n,s){if(Rt.current!==jr)throw Error(o(168));Je(Rt,n),Je(Vt,s)}function xv(e,n,s){var c=e.stateNode;if(n=n.childContextTypes,typeof c.getChildContext!="function")return s;c=c.getChildContext();for(var f in c)if(!(f in n))throw Error(o(108,pe(e)||"Unknown",f));return z({},s,c)}function Ja(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||jr,ho=Rt.current,Je(Rt,e),Je(Vt,Vt.current),!0}function wv(e,n,s){var c=e.stateNode;if(!c)throw Error(o(169));s?(e=xv(e,n,ho),c.__reactInternalMemoizedMergedChildContext=e,tt(Vt),tt(Rt),Je(Rt,e)):tt(Vt),Je(Vt,s)}var ir=null,el=!1,ld=!1;function Sv(e){ir===null?ir=[e]:ir.push(e)}function RE(e){el=!0,Sv(e)}function Mr(){if(!ld&&ir!==null){ld=!0;var e=0,n=qe;try{var s=ir;for(qe=1;e<s.length;e++){var c=s[e];do c=c(!0);while(c!==null)}ir=null,el=!1}catch(f){throw ir!==null&&(ir=ir.slice(e+1)),kg(Ou,Mr),f}finally{qe=n,ld=!1}}return null}var ci=[],ui=0,tl=null,nl=0,nn=[],rn=0,mo=null,sr=1,ar="";function go(e,n){ci[ui++]=nl,ci[ui++]=tl,tl=e,nl=n}function bv(e,n,s){nn[rn++]=sr,nn[rn++]=ar,nn[rn++]=mo,mo=e;var c=sr;e=ar;var f=32-pn(c)-1;c&=~(1<<f),s+=1;var p=32-pn(n)+f;if(30<p){var x=f-f%5;p=(c&(1<<x)-1).toString(32),c>>=x,f-=x,sr=1<<32-pn(n)+f|s<<f|c,ar=p+e}else sr=1<<p|s<<f|c,ar=e}function cd(e){e.return!==null&&(go(e,1),bv(e,1,0))}function ud(e){for(;e===tl;)tl=ci[--ui],ci[ui]=null,nl=ci[--ui],ci[ui]=null;for(;e===mo;)mo=nn[--rn],nn[rn]=null,ar=nn[--rn],nn[rn]=null,sr=nn[--rn],nn[rn]=null}var Gt=null,Qt=null,rt=!1,mn=null;function kv(e,n){var s=ln(5,null,null,0);s.elementType="DELETED",s.stateNode=n,s.return=e,n=e.deletions,n===null?(e.deletions=[s],e.flags|=16):n.push(s)}function Cv(e,n){switch(e.tag){case 5:var s=e.type;return n=n.nodeType!==1||s.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,Gt=e,Qt=Lr(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,Gt=e,Qt=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(s=mo!==null?{id:sr,overflow:ar}:null,e.memoizedState={dehydrated:n,treeContext:s,retryLane:1073741824},s=ln(18,null,null,0),s.stateNode=n,s.return=e,e.child=s,Gt=e,Qt=null,!0):!1;default:return!1}}function dd(e){return(e.mode&1)!==0&&(e.flags&128)===0}function fd(e){if(rt){var n=Qt;if(n){var s=n;if(!Cv(e,n)){if(dd(e))throw Error(o(418));n=Lr(s.nextSibling);var c=Gt;n&&Cv(e,n)?kv(c,s):(e.flags=e.flags&-4097|2,rt=!1,Gt=e)}}else{if(dd(e))throw Error(o(418));e.flags=e.flags&-4097|2,rt=!1,Gt=e}}}function _v(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Gt=e}function rl(e){if(e!==Gt)return!1;if(!rt)return _v(e),rt=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!rd(e.type,e.memoizedProps)),n&&(n=Qt)){if(dd(e))throw Ev(),Error(o(418));for(;n;)kv(e,n),n=Lr(n.nextSibling)}if(_v(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var s=e.data;if(s==="/$"){if(n===0){Qt=Lr(e.nextSibling);break e}n--}else s!=="$"&&s!=="$!"&&s!=="$?"||n++}e=e.nextSibling}Qt=null}}else Qt=Gt?Lr(e.stateNode.nextSibling):null;return!0}function Ev(){for(var e=Qt;e;)e=Lr(e.nextSibling)}function di(){Qt=Gt=null,rt=!1}function pd(e){mn===null?mn=[e]:mn.push(e)}var PE=O.ReactCurrentBatchConfig;function hs(e,n,s){if(e=s.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(s._owner){if(s=s._owner,s){if(s.tag!==1)throw Error(o(309));var c=s.stateNode}if(!c)throw Error(o(147,e));var f=c,p=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===p?n.ref:(n=function(x){var C=f.refs;x===null?delete C[p]:C[p]=x},n._stringRef=p,n)}if(typeof e!="string")throw Error(o(284));if(!s._owner)throw Error(o(290,e))}return e}function ol(e,n){throw e=Object.prototype.toString.call(n),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function Rv(e){var n=e._init;return n(e._payload)}function Pv(e){function n($,N){if(e){var M=$.deletions;M===null?($.deletions=[N],$.flags|=16):M.push(N)}}function s($,N){if(!e)return null;for(;N!==null;)n($,N),N=N.sibling;return null}function c($,N){for($=new Map;N!==null;)N.key!==null?$.set(N.key,N):$.set(N.index,N),N=N.sibling;return $}function f($,N){return $=Kr($,N),$.index=0,$.sibling=null,$}function p($,N,M){return $.index=M,e?(M=$.alternate,M!==null?(M=M.index,M<N?($.flags|=2,N):M):($.flags|=2,N)):($.flags|=1048576,N)}function x($){return e&&$.alternate===null&&($.flags|=2),$}function C($,N,M,ee){return N===null||N.tag!==6?(N=of(M,$.mode,ee),N.return=$,N):(N=f(N,M),N.return=$,N)}function P($,N,M,ee){var ke=M.type;return ke===B?Z($,N,M.props.children,ee,M.key):N!==null&&(N.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===ae&&Rv(ke)===N.type)?(ee=f(N,M.props),ee.ref=hs($,N,M),ee.return=$,ee):(ee=Pl(M.type,M.key,M.props,null,$.mode,ee),ee.ref=hs($,N,M),ee.return=$,ee)}function F($,N,M,ee){return N===null||N.tag!==4||N.stateNode.containerInfo!==M.containerInfo||N.stateNode.implementation!==M.implementation?(N=sf(M,$.mode,ee),N.return=$,N):(N=f(N,M.children||[]),N.return=$,N)}function Z($,N,M,ee,ke){return N===null||N.tag!==7?(N=Co(M,$.mode,ee,ke),N.return=$,N):(N=f(N,M),N.return=$,N)}function q($,N,M){if(typeof N=="string"&&N!==""||typeof N=="number")return N=of(""+N,$.mode,M),N.return=$,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case V:return M=Pl(N.type,N.key,N.props,null,$.mode,M),M.ref=hs($,null,N),M.return=$,M;case L:return N=sf(N,$.mode,M),N.return=$,N;case ae:var ee=N._init;return q($,ee(N._payload),M)}if(uo(N)||G(N))return N=Co(N,$.mode,M,null),N.return=$,N;ol($,N)}return null}function K($,N,M,ee){var ke=N!==null?N.key:null;if(typeof M=="string"&&M!==""||typeof M=="number")return ke!==null?null:C($,N,""+M,ee);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case V:return M.key===ke?P($,N,M,ee):null;case L:return M.key===ke?F($,N,M,ee):null;case ae:return ke=M._init,K($,N,ke(M._payload),ee)}if(uo(M)||G(M))return ke!==null?null:Z($,N,M,ee,null);ol($,M)}return null}function fe($,N,M,ee,ke){if(typeof ee=="string"&&ee!==""||typeof ee=="number")return $=$.get(M)||null,C(N,$,""+ee,ke);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case V:return $=$.get(ee.key===null?M:ee.key)||null,P(N,$,ee,ke);case L:return $=$.get(ee.key===null?M:ee.key)||null,F(N,$,ee,ke);case ae:var _e=ee._init;return fe($,N,M,_e(ee._payload),ke)}if(uo(ee)||G(ee))return $=$.get(M)||null,Z(N,$,ee,ke,null);ol(N,ee)}return null}function ye($,N,M,ee){for(var ke=null,_e=null,Ee=N,Ie=N=0,Ct=null;Ee!==null&&Ie<M.length;Ie++){Ee.index>Ie?(Ct=Ee,Ee=null):Ct=Ee.sibling;var He=K($,Ee,M[Ie],ee);if(He===null){Ee===null&&(Ee=Ct);break}e&&Ee&&He.alternate===null&&n($,Ee),N=p(He,N,Ie),_e===null?ke=He:_e.sibling=He,_e=He,Ee=Ct}if(Ie===M.length)return s($,Ee),rt&&go($,Ie),ke;if(Ee===null){for(;Ie<M.length;Ie++)Ee=q($,M[Ie],ee),Ee!==null&&(N=p(Ee,N,Ie),_e===null?ke=Ee:_e.sibling=Ee,_e=Ee);return rt&&go($,Ie),ke}for(Ee=c($,Ee);Ie<M.length;Ie++)Ct=fe(Ee,$,Ie,M[Ie],ee),Ct!==null&&(e&&Ct.alternate!==null&&Ee.delete(Ct.key===null?Ie:Ct.key),N=p(Ct,N,Ie),_e===null?ke=Ct:_e.sibling=Ct,_e=Ct);return e&&Ee.forEach(function(Zr){return n($,Zr)}),rt&&go($,Ie),ke}function we($,N,M,ee){var ke=G(M);if(typeof ke!="function")throw Error(o(150));if(M=ke.call(M),M==null)throw Error(o(151));for(var _e=ke=null,Ee=N,Ie=N=0,Ct=null,He=M.next();Ee!==null&&!He.done;Ie++,He=M.next()){Ee.index>Ie?(Ct=Ee,Ee=null):Ct=Ee.sibling;var Zr=K($,Ee,He.value,ee);if(Zr===null){Ee===null&&(Ee=Ct);break}e&&Ee&&Zr.alternate===null&&n($,Ee),N=p(Zr,N,Ie),_e===null?ke=Zr:_e.sibling=Zr,_e=Zr,Ee=Ct}if(He.done)return s($,Ee),rt&&go($,Ie),ke;if(Ee===null){for(;!He.done;Ie++,He=M.next())He=q($,He.value,ee),He!==null&&(N=p(He,N,Ie),_e===null?ke=He:_e.sibling=He,_e=He);return rt&&go($,Ie),ke}for(Ee=c($,Ee);!He.done;Ie++,He=M.next())He=fe(Ee,$,Ie,He.value,ee),He!==null&&(e&&He.alternate!==null&&Ee.delete(He.key===null?Ie:He.key),N=p(He,N,Ie),_e===null?ke=He:_e.sibling=He,_e=He);return e&&Ee.forEach(function(aR){return n($,aR)}),rt&&go($,Ie),ke}function ut($,N,M,ee){if(typeof M=="object"&&M!==null&&M.type===B&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case V:e:{for(var ke=M.key,_e=N;_e!==null;){if(_e.key===ke){if(ke=M.type,ke===B){if(_e.tag===7){s($,_e.sibling),N=f(_e,M.props.children),N.return=$,$=N;break e}}else if(_e.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===ae&&Rv(ke)===_e.type){s($,_e.sibling),N=f(_e,M.props),N.ref=hs($,_e,M),N.return=$,$=N;break e}s($,_e);break}else n($,_e);_e=_e.sibling}M.type===B?(N=Co(M.props.children,$.mode,ee,M.key),N.return=$,$=N):(ee=Pl(M.type,M.key,M.props,null,$.mode,ee),ee.ref=hs($,N,M),ee.return=$,$=ee)}return x($);case L:e:{for(_e=M.key;N!==null;){if(N.key===_e)if(N.tag===4&&N.stateNode.containerInfo===M.containerInfo&&N.stateNode.implementation===M.implementation){s($,N.sibling),N=f(N,M.children||[]),N.return=$,$=N;break e}else{s($,N);break}else n($,N);N=N.sibling}N=sf(M,$.mode,ee),N.return=$,$=N}return x($);case ae:return _e=M._init,ut($,N,_e(M._payload),ee)}if(uo(M))return ye($,N,M,ee);if(G(M))return we($,N,M,ee);ol($,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,N!==null&&N.tag===6?(s($,N.sibling),N=f(N,M),N.return=$,$=N):(s($,N),N=of(M,$.mode,ee),N.return=$,$=N),x($)):s($,N)}return ut}var fi=Pv(!0),Iv=Pv(!1),il=$r(null),sl=null,pi=null,hd=null;function md(){hd=pi=sl=null}function gd(e){var n=il.current;tt(il),e._currentValue=n}function vd(e,n,s){for(;e!==null;){var c=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,c!==null&&(c.childLanes|=n)):c!==null&&(c.childLanes&n)!==n&&(c.childLanes|=n),e===s)break;e=e.return}}function hi(e,n){sl=e,hd=pi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&(Bt=!0),e.firstContext=null)}function on(e){var n=e._currentValue;if(hd!==e)if(e={context:e,memoizedValue:n,next:null},pi===null){if(sl===null)throw Error(o(308));pi=e,sl.dependencies={lanes:0,firstContext:e}}else pi=pi.next=e;return n}var vo=null;function yd(e){vo===null?vo=[e]:vo.push(e)}function Ov(e,n,s,c){var f=n.interleaved;return f===null?(s.next=s,yd(n)):(s.next=f.next,f.next=s),n.interleaved=s,lr(e,c)}function lr(e,n){e.lanes|=n;var s=e.alternate;for(s!==null&&(s.lanes|=n),s=e,e=e.return;e!==null;)e.childLanes|=n,s=e.alternate,s!==null&&(s.childLanes|=n),s=e,e=e.return;return s.tag===3?s.stateNode:null}var zr=!1;function xd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Nv(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function cr(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function Fr(e,n,s){var c=e.updateQueue;if(c===null)return null;if(c=c.shared,(Ue&2)!==0){var f=c.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),c.pending=n,lr(e,s)}return f=c.interleaved,f===null?(n.next=n,yd(c)):(n.next=f.next,f.next=n),c.interleaved=n,lr(e,s)}function al(e,n,s){if(n=n.updateQueue,n!==null&&(n=n.shared,(s&4194240)!==0)){var c=n.lanes;c&=e.pendingLanes,s|=c,n.lanes=s,Du(e,s)}}function Tv(e,n){var s=e.updateQueue,c=e.alternate;if(c!==null&&(c=c.updateQueue,s===c)){var f=null,p=null;if(s=s.firstBaseUpdate,s!==null){do{var x={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};p===null?f=p=x:p=p.next=x,s=s.next}while(s!==null);p===null?f=p=n:p=p.next=n}else f=p=n;s={baseState:c.baseState,firstBaseUpdate:f,lastBaseUpdate:p,shared:c.shared,effects:c.effects},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=n:e.next=n,s.lastBaseUpdate=n}function ll(e,n,s,c){var f=e.updateQueue;zr=!1;var p=f.firstBaseUpdate,x=f.lastBaseUpdate,C=f.shared.pending;if(C!==null){f.shared.pending=null;var P=C,F=P.next;P.next=null,x===null?p=F:x.next=F,x=P;var Z=e.alternate;Z!==null&&(Z=Z.updateQueue,C=Z.lastBaseUpdate,C!==x&&(C===null?Z.firstBaseUpdate=F:C.next=F,Z.lastBaseUpdate=P))}if(p!==null){var q=f.baseState;x=0,Z=F=P=null,C=p;do{var K=C.lane,fe=C.eventTime;if((c&K)===K){Z!==null&&(Z=Z.next={eventTime:fe,lane:0,tag:C.tag,payload:C.payload,callback:C.callback,next:null});e:{var ye=e,we=C;switch(K=n,fe=s,we.tag){case 1:if(ye=we.payload,typeof ye=="function"){q=ye.call(fe,q,K);break e}q=ye;break e;case 3:ye.flags=ye.flags&-65537|128;case 0:if(ye=we.payload,K=typeof ye=="function"?ye.call(fe,q,K):ye,K==null)break e;q=z({},q,K);break e;case 2:zr=!0}}C.callback!==null&&C.lane!==0&&(e.flags|=64,K=f.effects,K===null?f.effects=[C]:K.push(C))}else fe={eventTime:fe,lane:K,tag:C.tag,payload:C.payload,callback:C.callback,next:null},Z===null?(F=Z=fe,P=q):Z=Z.next=fe,x|=K;if(C=C.next,C===null){if(C=f.shared.pending,C===null)break;K=C,C=K.next,K.next=null,f.lastBaseUpdate=K,f.shared.pending=null}}while(!0);if(Z===null&&(P=q),f.baseState=P,f.firstBaseUpdate=F,f.lastBaseUpdate=Z,n=f.shared.interleaved,n!==null){f=n;do x|=f.lane,f=f.next;while(f!==n)}else p===null&&(f.shared.lanes=0);wo|=x,e.lanes=x,e.memoizedState=q}}function Dv(e,n,s){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var c=e[n],f=c.callback;if(f!==null){if(c.callback=null,c=s,typeof f!="function")throw Error(o(191,f));f.call(c)}}}var ms={},$n=$r(ms),gs=$r(ms),vs=$r(ms);function yo(e){if(e===ms)throw Error(o(174));return e}function wd(e,n){switch(Je(vs,n),Je(gs,e),Je($n,ms),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Xe(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=Xe(n,e)}tt($n),Je($n,n)}function mi(){tt($n),tt(gs),tt(vs)}function Av(e){yo(vs.current);var n=yo($n.current),s=Xe(n,e.type);n!==s&&(Je(gs,e),Je($n,s))}function Sd(e){gs.current===e&&(tt($n),tt(gs))}var st=$r(0);function cl(e){for(var n=e;n!==null;){if(n.tag===13){var s=n.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var bd=[];function kd(){for(var e=0;e<bd.length;e++)bd[e]._workInProgressVersionPrimary=null;bd.length=0}var ul=O.ReactCurrentDispatcher,Cd=O.ReactCurrentBatchConfig,xo=0,at=null,vt=null,bt=null,dl=!1,ys=!1,xs=0,IE=0;function Pt(){throw Error(o(321))}function _d(e,n){if(n===null)return!1;for(var s=0;s<n.length&&s<e.length;s++)if(!hn(e[s],n[s]))return!1;return!0}function Ed(e,n,s,c,f,p){if(xo=p,at=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,ul.current=e===null||e.memoizedState===null?DE:AE,e=s(c,f),ys){p=0;do{if(ys=!1,xs=0,25<=p)throw Error(o(301));p+=1,bt=vt=null,n.updateQueue=null,ul.current=LE,e=s(c,f)}while(ys)}if(ul.current=hl,n=vt!==null&&vt.next!==null,xo=0,bt=vt=at=null,dl=!1,n)throw Error(o(300));return e}function Rd(){var e=xs!==0;return xs=0,e}function jn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return bt===null?at.memoizedState=bt=e:bt=bt.next=e,bt}function sn(){if(vt===null){var e=at.alternate;e=e!==null?e.memoizedState:null}else e=vt.next;var n=bt===null?at.memoizedState:bt.next;if(n!==null)bt=n,vt=e;else{if(e===null)throw Error(o(310));vt=e,e={memoizedState:vt.memoizedState,baseState:vt.baseState,baseQueue:vt.baseQueue,queue:vt.queue,next:null},bt===null?at.memoizedState=bt=e:bt=bt.next=e}return bt}function ws(e,n){return typeof n=="function"?n(e):n}function Pd(e){var n=sn(),s=n.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=e;var c=vt,f=c.baseQueue,p=s.pending;if(p!==null){if(f!==null){var x=f.next;f.next=p.next,p.next=x}c.baseQueue=f=p,s.pending=null}if(f!==null){p=f.next,c=c.baseState;var C=x=null,P=null,F=p;do{var Z=F.lane;if((xo&Z)===Z)P!==null&&(P=P.next={lane:0,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),c=F.hasEagerState?F.eagerState:e(c,F.action);else{var q={lane:Z,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null};P===null?(C=P=q,x=c):P=P.next=q,at.lanes|=Z,wo|=Z}F=F.next}while(F!==null&&F!==p);P===null?x=c:P.next=C,hn(c,n.memoizedState)||(Bt=!0),n.memoizedState=c,n.baseState=x,n.baseQueue=P,s.lastRenderedState=c}if(e=s.interleaved,e!==null){f=e;do p=f.lane,at.lanes|=p,wo|=p,f=f.next;while(f!==e)}else f===null&&(s.lanes=0);return[n.memoizedState,s.dispatch]}function Id(e){var n=sn(),s=n.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=e;var c=s.dispatch,f=s.pending,p=n.memoizedState;if(f!==null){s.pending=null;var x=f=f.next;do p=e(p,x.action),x=x.next;while(x!==f);hn(p,n.memoizedState)||(Bt=!0),n.memoizedState=p,n.baseQueue===null&&(n.baseState=p),s.lastRenderedState=p}return[p,c]}function Lv(){}function $v(e,n){var s=at,c=sn(),f=n(),p=!hn(c.memoizedState,f);if(p&&(c.memoizedState=f,Bt=!0),c=c.queue,Od(zv.bind(null,s,c,e),[e]),c.getSnapshot!==n||p||bt!==null&&bt.memoizedState.tag&1){if(s.flags|=2048,Ss(9,Mv.bind(null,s,c,f,n),void 0,null),kt===null)throw Error(o(349));(xo&30)!==0||jv(s,n,f)}return f}function jv(e,n,s){e.flags|=16384,e={getSnapshot:n,value:s},n=at.updateQueue,n===null?(n={lastEffect:null,stores:null},at.updateQueue=n,n.stores=[e]):(s=n.stores,s===null?n.stores=[e]:s.push(e))}function Mv(e,n,s,c){n.value=s,n.getSnapshot=c,Fv(n)&&Vv(e)}function zv(e,n,s){return s(function(){Fv(n)&&Vv(e)})}function Fv(e){var n=e.getSnapshot;e=e.value;try{var s=n();return!hn(e,s)}catch{return!0}}function Vv(e){var n=lr(e,1);n!==null&&xn(n,e,1,-1)}function Uv(e){var n=jn();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ws,lastRenderedState:e},n.queue=e,e=e.dispatch=TE.bind(null,at,e),[n.memoizedState,e]}function Ss(e,n,s,c){return e={tag:e,create:n,destroy:s,deps:c,next:null},n=at.updateQueue,n===null?(n={lastEffect:null,stores:null},at.updateQueue=n,n.lastEffect=e.next=e):(s=n.lastEffect,s===null?n.lastEffect=e.next=e:(c=s.next,s.next=e,e.next=c,n.lastEffect=e)),e}function Bv(){return sn().memoizedState}function fl(e,n,s,c){var f=jn();at.flags|=e,f.memoizedState=Ss(1|n,s,void 0,c===void 0?null:c)}function pl(e,n,s,c){var f=sn();c=c===void 0?null:c;var p=void 0;if(vt!==null){var x=vt.memoizedState;if(p=x.destroy,c!==null&&_d(c,x.deps)){f.memoizedState=Ss(n,s,p,c);return}}at.flags|=e,f.memoizedState=Ss(1|n,s,p,c)}function Hv(e,n){return fl(8390656,8,e,n)}function Od(e,n){return pl(2048,8,e,n)}function Wv(e,n){return pl(4,2,e,n)}function Kv(e,n){return pl(4,4,e,n)}function Zv(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function qv(e,n,s){return s=s!=null?s.concat([e]):null,pl(4,4,Zv.bind(null,n,e),s)}function Nd(){}function Gv(e,n){var s=sn();n=n===void 0?null:n;var c=s.memoizedState;return c!==null&&n!==null&&_d(n,c[1])?c[0]:(s.memoizedState=[e,n],e)}function Qv(e,n){var s=sn();n=n===void 0?null:n;var c=s.memoizedState;return c!==null&&n!==null&&_d(n,c[1])?c[0]:(e=e(),s.memoizedState=[e,n],e)}function Yv(e,n,s){return(xo&21)===0?(e.baseState&&(e.baseState=!1,Bt=!0),e.memoizedState=s):(hn(s,n)||(s=Rg(),at.lanes|=s,wo|=s,e.baseState=!0),n)}function OE(e,n){var s=qe;qe=s!==0&&4>s?s:4,e(!0);var c=Cd.transition;Cd.transition={};try{e(!1),n()}finally{qe=s,Cd.transition=c}}function Xv(){return sn().memoizedState}function NE(e,n,s){var c=Hr(e);if(s={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null},Jv(e))ey(n,s);else if(s=Ov(e,n,s,c),s!==null){var f=$t();xn(s,e,c,f),ty(s,n,c)}}function TE(e,n,s){var c=Hr(e),f={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if(Jv(e))ey(n,f);else{var p=e.alternate;if(e.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null))try{var x=n.lastRenderedState,C=p(x,s);if(f.hasEagerState=!0,f.eagerState=C,hn(C,x)){var P=n.interleaved;P===null?(f.next=f,yd(n)):(f.next=P.next,P.next=f),n.interleaved=f;return}}catch{}s=Ov(e,n,f,c),s!==null&&(f=$t(),xn(s,e,c,f),ty(s,n,c))}}function Jv(e){var n=e.alternate;return e===at||n!==null&&n===at}function ey(e,n){ys=dl=!0;var s=e.pending;s===null?n.next=n:(n.next=s.next,s.next=n),e.pending=n}function ty(e,n,s){if((s&4194240)!==0){var c=n.lanes;c&=e.pendingLanes,s|=c,n.lanes=s,Du(e,s)}}var hl={readContext:on,useCallback:Pt,useContext:Pt,useEffect:Pt,useImperativeHandle:Pt,useInsertionEffect:Pt,useLayoutEffect:Pt,useMemo:Pt,useReducer:Pt,useRef:Pt,useState:Pt,useDebugValue:Pt,useDeferredValue:Pt,useTransition:Pt,useMutableSource:Pt,useSyncExternalStore:Pt,useId:Pt,unstable_isNewReconciler:!1},DE={readContext:on,useCallback:function(e,n){return jn().memoizedState=[e,n===void 0?null:n],e},useContext:on,useEffect:Hv,useImperativeHandle:function(e,n,s){return s=s!=null?s.concat([e]):null,fl(4194308,4,Zv.bind(null,n,e),s)},useLayoutEffect:function(e,n){return fl(4194308,4,e,n)},useInsertionEffect:function(e,n){return fl(4,2,e,n)},useMemo:function(e,n){var s=jn();return n=n===void 0?null:n,e=e(),s.memoizedState=[e,n],e},useReducer:function(e,n,s){var c=jn();return n=s!==void 0?s(n):n,c.memoizedState=c.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},c.queue=e,e=e.dispatch=NE.bind(null,at,e),[c.memoizedState,e]},useRef:function(e){var n=jn();return e={current:e},n.memoizedState=e},useState:Uv,useDebugValue:Nd,useDeferredValue:function(e){return jn().memoizedState=e},useTransition:function(){var e=Uv(!1),n=e[0];return e=OE.bind(null,e[1]),jn().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,s){var c=at,f=jn();if(rt){if(s===void 0)throw Error(o(407));s=s()}else{if(s=n(),kt===null)throw Error(o(349));(xo&30)!==0||jv(c,n,s)}f.memoizedState=s;var p={value:s,getSnapshot:n};return f.queue=p,Hv(zv.bind(null,c,p,e),[e]),c.flags|=2048,Ss(9,Mv.bind(null,c,p,s,n),void 0,null),s},useId:function(){var e=jn(),n=kt.identifierPrefix;if(rt){var s=ar,c=sr;s=(c&~(1<<32-pn(c)-1)).toString(32)+s,n=":"+n+"R"+s,s=xs++,0<s&&(n+="H"+s.toString(32)),n+=":"}else s=IE++,n=":"+n+"r"+s.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},AE={readContext:on,useCallback:Gv,useContext:on,useEffect:Od,useImperativeHandle:qv,useInsertionEffect:Wv,useLayoutEffect:Kv,useMemo:Qv,useReducer:Pd,useRef:Bv,useState:function(){return Pd(ws)},useDebugValue:Nd,useDeferredValue:function(e){var n=sn();return Yv(n,vt.memoizedState,e)},useTransition:function(){var e=Pd(ws)[0],n=sn().memoizedState;return[e,n]},useMutableSource:Lv,useSyncExternalStore:$v,useId:Xv,unstable_isNewReconciler:!1},LE={readContext:on,useCallback:Gv,useContext:on,useEffect:Od,useImperativeHandle:qv,useInsertionEffect:Wv,useLayoutEffect:Kv,useMemo:Qv,useReducer:Id,useRef:Bv,useState:function(){return Id(ws)},useDebugValue:Nd,useDeferredValue:function(e){var n=sn();return vt===null?n.memoizedState=e:Yv(n,vt.memoizedState,e)},useTransition:function(){var e=Id(ws)[0],n=sn().memoizedState;return[e,n]},useMutableSource:Lv,useSyncExternalStore:$v,useId:Xv,unstable_isNewReconciler:!1};function gn(e,n){if(e&&e.defaultProps){n=z({},n),e=e.defaultProps;for(var s in e)n[s]===void 0&&(n[s]=e[s]);return n}return n}function Td(e,n,s,c){n=e.memoizedState,s=s(c,n),s=s==null?n:z({},n,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var ml={isMounted:function(e){return(e=e._reactInternals)?fo(e)===e:!1},enqueueSetState:function(e,n,s){e=e._reactInternals;var c=$t(),f=Hr(e),p=cr(c,f);p.payload=n,s!=null&&(p.callback=s),n=Fr(e,p,f),n!==null&&(xn(n,e,f,c),al(n,e,f))},enqueueReplaceState:function(e,n,s){e=e._reactInternals;var c=$t(),f=Hr(e),p=cr(c,f);p.tag=1,p.payload=n,s!=null&&(p.callback=s),n=Fr(e,p,f),n!==null&&(xn(n,e,f,c),al(n,e,f))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var s=$t(),c=Hr(e),f=cr(s,c);f.tag=2,n!=null&&(f.callback=n),n=Fr(e,f,c),n!==null&&(xn(n,e,c,s),al(n,e,c))}};function ny(e,n,s,c,f,p,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(c,p,x):n.prototype&&n.prototype.isPureReactComponent?!as(s,c)||!as(f,p):!0}function ry(e,n,s){var c=!1,f=jr,p=n.contextType;return typeof p=="object"&&p!==null?p=on(p):(f=Ut(n)?ho:Rt.current,c=n.contextTypes,p=(c=c!=null)?li(e,f):jr),n=new n(s,p),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=ml,e.stateNode=n,n._reactInternals=e,c&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=f,e.__reactInternalMemoizedMaskedChildContext=p),n}function oy(e,n,s,c){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(s,c),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(s,c),n.state!==e&&ml.enqueueReplaceState(n,n.state,null)}function Dd(e,n,s,c){var f=e.stateNode;f.props=s,f.state=e.memoizedState,f.refs={},xd(e);var p=n.contextType;typeof p=="object"&&p!==null?f.context=on(p):(p=Ut(n)?ho:Rt.current,f.context=li(e,p)),f.state=e.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(Td(e,n,p,s),f.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(n=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),n!==f.state&&ml.enqueueReplaceState(f,f.state,null),ll(e,s,f,c),f.state=e.memoizedState),typeof f.componentDidMount=="function"&&(e.flags|=4194308)}function gi(e,n){try{var s="",c=n;do s+=H(c),c=c.return;while(c);var f=s}catch(p){f=`
|
|
7
7
|
Error generating stack: `+p.message+`
|
|
8
|
-
`+p.stack}return{value:e,source:n,stack:f,digest:null}}function Pd(e,n,s){return{value:e,source:null,stack:s??null,digest:n??null}}function Id(e,n){try{console.error(n.value)}catch(s){setTimeout(function(){throw s})}}var LE=typeof WeakMap=="function"?WeakMap:Map;function Yv(e,n,s){s=or(-1,s),s.tag=3,s.payload={element:null};var c=n.value;return s.callback=function(){hl||(hl=!0,Hd=c),Id(e,n)},s}function Xv(e,n,s){s=or(-1,s),s.tag=3;var c=e.type.getDerivedStateFromError;if(typeof c=="function"){var f=n.value;s.payload=function(){return c(f)},s.callback=function(){Id(e,n)}}var p=e.stateNode;return p!==null&&typeof p.componentDidCatch=="function"&&(s.callback=function(){Id(e,n),typeof c!="function"&&($r===null?$r=new Set([this]):$r.add(this));var x=n.stack;this.componentDidCatch(n.value,{componentStack:x!==null?x:""})}),s}function Jv(e,n,s){var c=e.pingCache;if(c===null){c=e.pingCache=new LE;var f=new Set;c.set(n,f)}else f=c.get(n),f===void 0&&(f=new Set,c.set(n,f));f.has(s)||(f.add(s),e=GE.bind(null,e,n,s),n.then(e,e))}function ey(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function ty(e,n,s,c,f){return(e.mode&1)===0?(e===n?e.flags|=65536:(e.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(n=or(-1,1),n.tag=2,Dr(s,n,1))),s.lanes|=1),e):(e.flags|=65536,e.lanes=f,e)}var $E=I.ReactCurrentOwner,Ft=!1;function Tt(e,n,s,c){n.child=e===null?Sv(n,null,s,c):ri(n,e.child,s,c)}function ny(e,n,s,c,f){s=s.render;var p=n.ref;return ii(n,f),c=wd(e,n,s,c,p,f),s=Sd(),e!==null&&!Ft?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~f,ir(e,n,f)):(rt&&s&&rd(n),n.flags|=1,Tt(e,n,c,f),n.child)}function ry(e,n,s,c,f){if(e===null){var p=s.type;return typeof p=="function"&&!Yd(p)&&p.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(n.tag=15,n.type=p,oy(e,n,p,c,f)):(e=wl(s.type,null,c,n,n.mode,f),e.ref=n.ref,e.return=n,n.child=e)}if(p=e.child,(e.lanes&f)===0){var x=p.memoizedProps;if(s=s.compare,s=s!==null?s:Xi,s(x,c)&&e.ref===n.ref)return ir(e,n,f)}return n.flags|=1,e=Fr(p,c),e.ref=n.ref,e.return=n,n.child=e}function oy(e,n,s,c,f){if(e!==null){var p=e.memoizedProps;if(Xi(p,c)&&e.ref===n.ref)if(Ft=!1,n.pendingProps=c=p,(e.lanes&f)!==0)(e.flags&131072)!==0&&(Ft=!0);else return n.lanes=e.lanes,ir(e,n,f)}return Od(e,n,s,c,f)}function iy(e,n,s){var c=n.pendingProps,f=c.children,p=e!==null?e.memoizedState:null;if(c.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},Je(ci,qt),qt|=s;else{if((s&1073741824)===0)return e=p!==null?p.baseLanes|s:s,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,Je(ci,qt),qt|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=p!==null?p.baseLanes:s,Je(ci,qt),qt|=c}else p!==null?(c=p.baseLanes|s,n.memoizedState=null):c=s,Je(ci,qt),qt|=c;return Tt(e,n,f,s),n.child}function sy(e,n){var s=n.ref;(e===null&&s!==null||e!==null&&e.ref!==s)&&(n.flags|=512,n.flags|=2097152)}function Od(e,n,s,c,f){var p=zt(s)?so:Ct.current;return p=Jo(n,p),ii(n,f),s=wd(e,n,s,c,p,f),c=Sd(),e!==null&&!Ft?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~f,ir(e,n,f)):(rt&&c&&rd(n),n.flags|=1,Tt(e,n,s,f),n.child)}function ay(e,n,s,c,f){if(zt(s)){var p=!0;Wa(n)}else p=!1;if(ii(n,f),n.stateNode===null)cl(e,n),Gv(n,s,c),Rd(n,s,c,f),c=!0;else if(e===null){var x=n.stateNode,C=n.memoizedProps;x.props=C;var R=x.context,F=s.contextType;typeof F=="object"&&F!==null?F=Jt(F):(F=zt(s)?so:Ct.current,F=Jo(n,F));var Z=s.getDerivedStateFromProps,q=typeof Z=="function"||typeof x.getSnapshotBeforeUpdate=="function";q||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(C!==c||R!==F)&&Qv(n,x,c,F),Ar=!1;var K=n.memoizedState;x.state=K,el(n,c,x,f),R=n.memoizedState,C!==c||K!==R||Mt.current||Ar?(typeof Z=="function"&&(Ed(n,s,Z,c),R=n.memoizedState),(C=Ar||qv(n,s,C,c,K,R,F))?(q||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(n.flags|=4194308)):(typeof x.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=c,n.memoizedState=R),x.props=c,x.state=R,x.context=F,c=C):(typeof x.componentDidMount=="function"&&(n.flags|=4194308),c=!1)}else{x=n.stateNode,kv(e,n),C=n.memoizedProps,F=n.type===n.elementType?C:hn(n.type,C),x.props=F,q=n.pendingProps,K=x.context,R=s.contextType,typeof R=="object"&&R!==null?R=Jt(R):(R=zt(s)?so:Ct.current,R=Jo(n,R));var pe=s.getDerivedStateFromProps;(Z=typeof pe=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(C!==q||K!==R)&&Qv(n,x,c,R),Ar=!1,K=n.memoizedState,x.state=K,el(n,c,x,f);var ye=n.memoizedState;C!==q||K!==ye||Mt.current||Ar?(typeof pe=="function"&&(Ed(n,s,pe,c),ye=n.memoizedState),(F=Ar||qv(n,s,F,c,K,ye,R)||!1)?(Z||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(c,ye,R),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(c,ye,R)),typeof x.componentDidUpdate=="function"&&(n.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof x.componentDidUpdate!="function"||C===e.memoizedProps&&K===e.memoizedState||(n.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||C===e.memoizedProps&&K===e.memoizedState||(n.flags|=1024),n.memoizedProps=c,n.memoizedState=ye),x.props=c,x.state=ye,x.context=R,c=F):(typeof x.componentDidUpdate!="function"||C===e.memoizedProps&&K===e.memoizedState||(n.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||C===e.memoizedProps&&K===e.memoizedState||(n.flags|=1024),c=!1)}return Nd(e,n,s,c,p,f)}function Nd(e,n,s,c,f,p){sy(e,n);var x=(n.flags&128)!==0;if(!c&&!x)return f&&fv(n,s,!1),ir(e,n,p);c=n.stateNode,$E.current=n;var C=x&&typeof s.getDerivedStateFromError!="function"?null:c.render();return n.flags|=1,e!==null&&x?(n.child=ri(n,e.child,null,p),n.child=ri(n,null,C,p)):Tt(e,n,C,p),n.memoizedState=c.state,f&&fv(n,s,!0),n.child}function ly(e){var n=e.stateNode;n.pendingContext?uv(e,n.pendingContext,n.pendingContext!==n.context):n.context&&uv(e,n.context,!1),hd(e,n.containerInfo)}function cy(e,n,s,c,f){return ni(),ad(f),n.flags|=256,Tt(e,n,s,c),n.child}var Td={dehydrated:null,treeContext:null,retryLane:0};function Ad(e){return{baseLanes:e,cachePool:null,transitions:null}}function uy(e,n,s){var c=n.pendingProps,f=ot.current,p=!1,x=(n.flags&128)!==0,C;if((C=x)||(C=e!==null&&e.memoizedState===null?!1:(f&2)!==0),C?(p=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(f|=1),Je(ot,f&1),e===null)return sd(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((n.mode&1)===0?n.lanes=1:e.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(x=c.children,e=c.fallback,p?(c=n.mode,p=n.child,x={mode:"hidden",children:x},(c&1)===0&&p!==null?(p.childLanes=0,p.pendingProps=x):p=Sl(x,c,0,null),e=vo(e,c,s,null),p.return=n,e.return=n,p.sibling=e,n.child=p,n.child.memoizedState=Ad(s),n.memoizedState=Td,e):Dd(n,x));if(f=e.memoizedState,f!==null&&(C=f.dehydrated,C!==null))return jE(e,n,x,c,C,f,s);if(p){p=c.fallback,x=n.mode,f=e.child,C=f.sibling;var R={mode:"hidden",children:c.children};return(x&1)===0&&n.child!==f?(c=n.child,c.childLanes=0,c.pendingProps=R,n.deletions=null):(c=Fr(f,R),c.subtreeFlags=f.subtreeFlags&14680064),C!==null?p=Fr(C,p):(p=vo(p,x,s,null),p.flags|=2),p.return=n,c.return=n,c.sibling=p,n.child=c,c=p,p=n.child,x=e.child.memoizedState,x=x===null?Ad(s):{baseLanes:x.baseLanes|s,cachePool:null,transitions:x.transitions},p.memoizedState=x,p.childLanes=e.childLanes&~s,n.memoizedState=Td,c}return p=e.child,e=p.sibling,c=Fr(p,{mode:"visible",children:c.children}),(n.mode&1)===0&&(c.lanes=s),c.return=n,c.sibling=null,e!==null&&(s=n.deletions,s===null?(n.deletions=[e],n.flags|=16):s.push(e)),n.child=c,n.memoizedState=null,c}function Dd(e,n){return n=Sl({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function ll(e,n,s,c){return c!==null&&ad(c),ri(n,e.child,null,s),e=Dd(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function jE(e,n,s,c,f,p,x){if(s)return n.flags&256?(n.flags&=-257,c=Pd(Error(o(422))),ll(e,n,x,c)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(p=c.fallback,f=n.mode,c=Sl({mode:"visible",children:c.children},f,0,null),p=vo(p,f,x,null),p.flags|=2,c.return=n,p.return=n,c.sibling=p,n.child=c,(n.mode&1)!==0&&ri(n,e.child,null,x),n.child.memoizedState=Ad(x),n.memoizedState=Td,p);if((n.mode&1)===0)return ll(e,n,x,null);if(f.data==="$!"){if(c=f.nextSibling&&f.nextSibling.dataset,c)var C=c.dgst;return c=C,p=Error(o(419)),c=Pd(p,c,void 0),ll(e,n,x,c)}if(C=(x&e.childLanes)!==0,Ft||C){if(c=wt,c!==null){switch(x&-x){case 4:f=2;break;case 16:f=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:f=32;break;case 536870912:f=268435456;break;default:f=0}f=(f&(c.suspendedLanes|x))!==0?0:f,f!==0&&f!==p.retryLane&&(p.retryLane=f,rr(e,f),vn(c,e,f,-1))}return Qd(),c=Pd(Error(o(421))),ll(e,n,x,c)}return f.data==="$?"?(n.flags|=128,n.child=e.child,n=QE.bind(null,e),f._reactRetry=n,null):(e=p.treeContext,Zt=Ir(f.nextSibling),Kt=n,rt=!0,pn=null,e!==null&&(Yt[Xt++]=tr,Yt[Xt++]=nr,Yt[Xt++]=ao,tr=e.id,nr=e.overflow,ao=n),n=Dd(n,c.children),n.flags|=4096,n)}function dy(e,n,s){e.lanes|=n;var c=e.alternate;c!==null&&(c.lanes|=n),dd(e.return,n,s)}function Ld(e,n,s,c,f){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:f}:(p.isBackwards=n,p.rendering=null,p.renderingStartTime=0,p.last=c,p.tail=s,p.tailMode=f)}function fy(e,n,s){var c=n.pendingProps,f=c.revealOrder,p=c.tail;if(Tt(e,n,c.children,s),c=ot.current,(c&2)!==0)c=c&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&dy(e,s,n);else if(e.tag===19)dy(e,s,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}c&=1}if(Je(ot,c),(n.mode&1)===0)n.memoizedState=null;else switch(f){case"forwards":for(s=n.child,f=null;s!==null;)e=s.alternate,e!==null&&tl(e)===null&&(f=s),s=s.sibling;s=f,s===null?(f=n.child,n.child=null):(f=s.sibling,s.sibling=null),Ld(n,!1,f,s,p);break;case"backwards":for(s=null,f=n.child,n.child=null;f!==null;){if(e=f.alternate,e!==null&&tl(e)===null){n.child=f;break}e=f.sibling,f.sibling=s,s=f,f=e}Ld(n,!0,s,null,p);break;case"together":Ld(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function cl(e,n){(n.mode&1)===0&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function ir(e,n,s){if(e!==null&&(n.dependencies=e.dependencies),po|=n.lanes,(s&n.childLanes)===0)return null;if(e!==null&&n.child!==e.child)throw Error(o(153));if(n.child!==null){for(e=n.child,s=Fr(e,e.pendingProps),n.child=s,s.return=n;e.sibling!==null;)e=e.sibling,s=s.sibling=Fr(e,e.pendingProps),s.return=n;s.sibling=null}return n.child}function ME(e,n,s){switch(n.tag){case 3:ly(n),ni();break;case 5:Ev(n);break;case 1:zt(n.type)&&Wa(n);break;case 4:hd(n,n.stateNode.containerInfo);break;case 10:var c=n.type._context,f=n.memoizedProps.value;Je(Ya,c._currentValue),c._currentValue=f;break;case 13:if(c=n.memoizedState,c!==null)return c.dehydrated!==null?(Je(ot,ot.current&1),n.flags|=128,null):(s&n.child.childLanes)!==0?uy(e,n,s):(Je(ot,ot.current&1),e=ir(e,n,s),e!==null?e.sibling:null);Je(ot,ot.current&1);break;case 19:if(c=(s&n.childLanes)!==0,(e.flags&128)!==0){if(c)return fy(e,n,s);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),Je(ot,ot.current),c)break;return null;case 22:case 23:return n.lanes=0,iy(e,n,s)}return ir(e,n,s)}var py,$d,hy,my;py=function(e,n){for(var s=n.child;s!==null;){if(s.tag===5||s.tag===6)e.appendChild(s.stateNode);else if(s.tag!==4&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===n)break;for(;s.sibling===null;){if(s.return===null||s.return===n)return;s=s.return}s.sibling.return=s.return,s=s.sibling}},$d=function(){},hy=function(e,n,s,c){var f=e.memoizedProps;if(f!==c){e=n.stateNode,uo(Tn.current);var p=null;switch(s){case"input":f=oe(e,f),c=oe(e,c),p=[];break;case"select":f=z({},f,{value:void 0}),c=z({},c,{value:void 0}),p=[];break;case"textarea":f=hu(e,f),c=hu(e,c),p=[];break;default:typeof f.onClick!="function"&&typeof c.onClick=="function"&&(e.onclick=Ua)}gu(s,c);var x;s=null;for(F in f)if(!c.hasOwnProperty(F)&&f.hasOwnProperty(F)&&f[F]!=null)if(F==="style"){var C=f[F];for(x in C)C.hasOwnProperty(x)&&(s||(s={}),s[x]="")}else F!=="dangerouslySetInnerHTML"&&F!=="children"&&F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&F!=="autoFocus"&&(a.hasOwnProperty(F)?p||(p=[]):(p=p||[]).push(F,null));for(F in c){var R=c[F];if(C=f?.[F],c.hasOwnProperty(F)&&R!==C&&(R!=null||C!=null))if(F==="style")if(C){for(x in C)!C.hasOwnProperty(x)||R&&R.hasOwnProperty(x)||(s||(s={}),s[x]="");for(x in R)R.hasOwnProperty(x)&&C[x]!==R[x]&&(s||(s={}),s[x]=R[x])}else s||(p||(p=[]),p.push(F,s)),s=R;else F==="dangerouslySetInnerHTML"?(R=R?R.__html:void 0,C=C?C.__html:void 0,R!=null&&C!==R&&(p=p||[]).push(F,R)):F==="children"?typeof R!="string"&&typeof R!="number"||(p=p||[]).push(F,""+R):F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&(a.hasOwnProperty(F)?(R!=null&&F==="onScroll"&&et("scroll",e),p||C===R||(p=[])):(p=p||[]).push(F,R))}s&&(p=p||[]).push("style",s);var F=p;(n.updateQueue=F)&&(n.flags|=4)}},my=function(e,n,s,c){s!==c&&(n.flags|=4)};function ps(e,n){if(!rt)switch(e.tailMode){case"hidden":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:c.sibling=null}}function Et(e){var n=e.alternate!==null&&e.alternate.child===e.child,s=0,c=0;if(n)for(var f=e.child;f!==null;)s|=f.lanes|f.childLanes,c|=f.subtreeFlags&14680064,c|=f.flags&14680064,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)s|=f.lanes|f.childLanes,c|=f.subtreeFlags,c|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=c,e.childLanes=s,n}function zE(e,n,s){var c=n.pendingProps;switch(od(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Et(n),null;case 1:return zt(n.type)&&Ha(),Et(n),null;case 3:return c=n.stateNode,si(),tt(Mt),tt(Ct),vd(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(e===null||e.child===null)&&(Ga(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,pn!==null&&(Zd(pn),pn=null))),$d(e,n),Et(n),null;case 5:md(n);var f=uo(ls.current);if(s=n.type,e!==null&&n.stateNode!=null)hy(e,n,s,c,f),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!c){if(n.stateNode===null)throw Error(o(166));return Et(n),null}if(e=uo(Tn.current),Ga(n)){c=n.stateNode,s=n.type;var p=n.memoizedProps;switch(c[Nn]=n,c[rs]=p,e=(n.mode&1)!==0,s){case"dialog":et("cancel",c),et("close",c);break;case"iframe":case"object":case"embed":et("load",c);break;case"video":case"audio":for(f=0;f<es.length;f++)et(es[f],c);break;case"source":et("error",c);break;case"img":case"image":case"link":et("error",c),et("load",c);break;case"details":et("toggle",c);break;case"input":Ie(c,p),et("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!p.multiple},et("invalid",c);break;case"textarea":Xm(c,p),et("invalid",c)}gu(s,p),f=null;for(var x in p)if(p.hasOwnProperty(x)){var C=p[x];x==="children"?typeof C=="string"?c.textContent!==C&&(p.suppressHydrationWarning!==!0&&Va(c.textContent,C,e),f=["children",C]):typeof C=="number"&&c.textContent!==""+C&&(p.suppressHydrationWarning!==!0&&Va(c.textContent,C,e),f=["children",""+C]):a.hasOwnProperty(x)&&C!=null&&x==="onScroll"&&et("scroll",c)}switch(s){case"input":$e(c),Ye(c,p,!0);break;case"textarea":$e(c),eg(c);break;case"select":case"option":break;default:typeof p.onClick=="function"&&(c.onclick=Ua)}c=f,n.updateQueue=c,c!==null&&(n.flags|=4)}else{x=f.nodeType===9?f:f.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=tg(s)),e==="http://www.w3.org/1999/xhtml"?s==="script"?(e=x.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof c.is=="string"?e=x.createElement(s,{is:c.is}):(e=x.createElement(s),s==="select"&&(x=e,c.multiple?x.multiple=!0:c.size&&(x.size=c.size))):e=x.createElementNS(e,s),e[Nn]=n,e[rs]=c,py(e,n,!1,!1),n.stateNode=e;e:{switch(x=vu(s,c),s){case"dialog":et("cancel",e),et("close",e),f=c;break;case"iframe":case"object":case"embed":et("load",e),f=c;break;case"video":case"audio":for(f=0;f<es.length;f++)et(es[f],e);f=c;break;case"source":et("error",e),f=c;break;case"img":case"image":case"link":et("error",e),et("load",e),f=c;break;case"details":et("toggle",e),f=c;break;case"input":Ie(e,c),f=oe(e,c),et("invalid",e);break;case"option":f=c;break;case"select":e._wrapperState={wasMultiple:!!c.multiple},f=z({},c,{value:void 0}),et("invalid",e);break;case"textarea":Xm(e,c),f=hu(e,c),et("invalid",e);break;default:f=c}gu(s,f),C=f;for(p in C)if(C.hasOwnProperty(p)){var R=C[p];p==="style"?og(e,R):p==="dangerouslySetInnerHTML"?(R=R?R.__html:void 0,R!=null&&ng(e,R)):p==="children"?typeof R=="string"?(s!=="textarea"||R!=="")&&Li(e,R):typeof R=="number"&&Li(e,""+R):p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&p!=="autoFocus"&&(a.hasOwnProperty(p)?R!=null&&p==="onScroll"&&et("scroll",e):R!=null&&N(e,p,R,x))}switch(s){case"input":$e(e),Ye(e,c,!1);break;case"textarea":$e(e),eg(e);break;case"option":c.value!=null&&e.setAttribute("value",""+ee(c.value));break;case"select":e.multiple=!!c.multiple,p=c.value,p!=null?un(e,!!c.multiple,p,!1):c.defaultValue!=null&&un(e,!!c.multiple,c.defaultValue,!0);break;default:typeof f.onClick=="function"&&(e.onclick=Ua)}switch(s){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return Et(n),null;case 6:if(e&&n.stateNode!=null)my(e,n,e.memoizedProps,c);else{if(typeof c!="string"&&n.stateNode===null)throw Error(o(166));if(s=uo(ls.current),uo(Tn.current),Ga(n)){if(c=n.stateNode,s=n.memoizedProps,c[Nn]=n,(p=c.nodeValue!==s)&&(e=Kt,e!==null))switch(e.tag){case 3:Va(c.nodeValue,s,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Va(c.nodeValue,s,(e.mode&1)!==0)}p&&(n.flags|=4)}else c=(s.nodeType===9?s:s.ownerDocument).createTextNode(c),c[Nn]=n,n.stateNode=c}return Et(n),null;case 13:if(tt(ot),c=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(rt&&Zt!==null&&(n.mode&1)!==0&&(n.flags&128)===0)yv(),ni(),n.flags|=98560,p=!1;else if(p=Ga(n),c!==null&&c.dehydrated!==null){if(e===null){if(!p)throw Error(o(318));if(p=n.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(o(317));p[Nn]=n}else ni(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Et(n),p=!1}else pn!==null&&(Zd(pn),pn=null),p=!0;if(!p)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=s,n):(c=c!==null,c!==(e!==null&&e.memoizedState!==null)&&c&&(n.child.flags|=8192,(n.mode&1)!==0&&(e===null||(ot.current&1)!==0?mt===0&&(mt=3):Qd())),n.updateQueue!==null&&(n.flags|=4),Et(n),null);case 4:return si(),$d(e,n),e===null&&ts(n.stateNode.containerInfo),Et(n),null;case 10:return ud(n.type._context),Et(n),null;case 17:return zt(n.type)&&Ha(),Et(n),null;case 19:if(tt(ot),p=n.memoizedState,p===null)return Et(n),null;if(c=(n.flags&128)!==0,x=p.rendering,x===null)if(c)ps(p,!1);else{if(mt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(x=tl(e),x!==null){for(n.flags|=128,ps(p,!1),c=x.updateQueue,c!==null&&(n.updateQueue=c,n.flags|=4),n.subtreeFlags=0,c=s,s=n.child;s!==null;)p=s,e=c,p.flags&=14680066,x=p.alternate,x===null?(p.childLanes=0,p.lanes=e,p.child=null,p.subtreeFlags=0,p.memoizedProps=null,p.memoizedState=null,p.updateQueue=null,p.dependencies=null,p.stateNode=null):(p.childLanes=x.childLanes,p.lanes=x.lanes,p.child=x.child,p.subtreeFlags=0,p.deletions=null,p.memoizedProps=x.memoizedProps,p.memoizedState=x.memoizedState,p.updateQueue=x.updateQueue,p.type=x.type,e=x.dependencies,p.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),s=s.sibling;return Je(ot,ot.current&1|2),n.child}e=e.sibling}p.tail!==null&&at()>ui&&(n.flags|=128,c=!0,ps(p,!1),n.lanes=4194304)}else{if(!c)if(e=tl(x),e!==null){if(n.flags|=128,c=!0,s=e.updateQueue,s!==null&&(n.updateQueue=s,n.flags|=4),ps(p,!0),p.tail===null&&p.tailMode==="hidden"&&!x.alternate&&!rt)return Et(n),null}else 2*at()-p.renderingStartTime>ui&&s!==1073741824&&(n.flags|=128,c=!0,ps(p,!1),n.lanes=4194304);p.isBackwards?(x.sibling=n.child,n.child=x):(s=p.last,s!==null?s.sibling=x:n.child=x,p.last=x)}return p.tail!==null?(n=p.tail,p.rendering=n,p.tail=n.sibling,p.renderingStartTime=at(),n.sibling=null,s=ot.current,Je(ot,c?s&1|2:s&1),n):(Et(n),null);case 22:case 23:return Gd(),c=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==c&&(n.flags|=8192),c&&(n.mode&1)!==0?(qt&1073741824)!==0&&(Et(n),n.subtreeFlags&6&&(n.flags|=8192)):Et(n),null;case 24:return null;case 25:return null}throw Error(o(156,n.tag))}function FE(e,n){switch(od(n),n.tag){case 1:return zt(n.type)&&Ha(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return si(),tt(Mt),tt(Ct),vd(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return md(n),null;case 13:if(tt(ot),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(o(340));ni()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return tt(ot),null;case 4:return si(),null;case 10:return ud(n.type._context),null;case 22:case 23:return Gd(),null;case 24:return null;default:return null}}var ul=!1,Rt=!1,VE=typeof WeakSet=="function"?WeakSet:Set,ve=null;function li(e,n){var s=e.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(c){st(e,n,c)}else s.current=null}function jd(e,n,s){try{s()}catch(c){st(e,n,c)}}var gy=!1;function UE(e,n){if(Gu=Oa,e=qg(),Vu(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var c=s.getSelection&&s.getSelection();if(c&&c.rangeCount!==0){s=c.anchorNode;var f=c.anchorOffset,p=c.focusNode;c=c.focusOffset;try{s.nodeType,p.nodeType}catch{s=null;break e}var x=0,C=-1,R=-1,F=0,Z=0,q=e,K=null;t:for(;;){for(var pe;q!==s||f!==0&&q.nodeType!==3||(C=x+f),q!==p||c!==0&&q.nodeType!==3||(R=x+c),q.nodeType===3&&(x+=q.nodeValue.length),(pe=q.firstChild)!==null;)K=q,q=pe;for(;;){if(q===e)break t;if(K===s&&++F===f&&(C=x),K===p&&++Z===c&&(R=x),(pe=q.nextSibling)!==null)break;q=K,K=q.parentNode}q=pe}s=C===-1||R===-1?null:{start:C,end:R}}else s=null}s=s||{start:0,end:0}}else s=null;for(Qu={focusedElem:e,selectionRange:s},Oa=!1,ve=n;ve!==null;)if(n=ve,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,ve=e;else for(;ve!==null;){n=ve;try{var ye=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(ye!==null){var xe=ye.memoizedProps,lt=ye.memoizedState,$=n.stateNode,O=$.getSnapshotBeforeUpdate(n.elementType===n.type?xe:hn(n.type,xe),lt);$.__reactInternalSnapshotBeforeUpdate=O}break;case 3:var M=n.stateNode.containerInfo;M.nodeType===1?M.textContent="":M.nodeType===9&&M.documentElement&&M.removeChild(M.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(te){st(n,n.return,te)}if(e=n.sibling,e!==null){e.return=n.return,ve=e;break}ve=n.return}return ye=gy,gy=!1,ye}function hs(e,n,s){var c=n.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var f=c=c.next;do{if((f.tag&e)===e){var p=f.destroy;f.destroy=void 0,p!==void 0&&jd(n,s,p)}f=f.next}while(f!==c)}}function dl(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var s=n=n.next;do{if((s.tag&e)===e){var c=s.create;s.destroy=c()}s=s.next}while(s!==n)}}function Md(e){var n=e.ref;if(n!==null){var s=e.stateNode;e.tag,e=s,typeof n=="function"?n(e):n.current=e}}function vy(e){var n=e.alternate;n!==null&&(e.alternate=null,vy(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Nn],delete n[rs],delete n[ed],delete n[CE],delete n[_E])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function yy(e){return e.tag===5||e.tag===3||e.tag===4}function xy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yy(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function zd(e,n,s){var c=e.tag;if(c===5||c===6)e=e.stateNode,n?s.nodeType===8?s.parentNode.insertBefore(e,n):s.insertBefore(e,n):(s.nodeType===8?(n=s.parentNode,n.insertBefore(e,s)):(n=s,n.appendChild(e)),s=s._reactRootContainer,s!=null||n.onclick!==null||(n.onclick=Ua));else if(c!==4&&(e=e.child,e!==null))for(zd(e,n,s),e=e.sibling;e!==null;)zd(e,n,s),e=e.sibling}function Fd(e,n,s){var c=e.tag;if(c===5||c===6)e=e.stateNode,n?s.insertBefore(e,n):s.appendChild(e);else if(c!==4&&(e=e.child,e!==null))for(Fd(e,n,s),e=e.sibling;e!==null;)Fd(e,n,s),e=e.sibling}var bt=null,mn=!1;function Lr(e,n,s){for(s=s.child;s!==null;)wy(e,n,s),s=s.sibling}function wy(e,n,s){if(On&&typeof On.onCommitFiberUnmount=="function")try{On.onCommitFiberUnmount(Ca,s)}catch{}switch(s.tag){case 5:Rt||li(s,n);case 6:var c=bt,f=mn;bt=null,Lr(e,n,s),bt=c,mn=f,bt!==null&&(mn?(e=bt,s=s.stateNode,e.nodeType===8?e.parentNode.removeChild(s):e.removeChild(s)):bt.removeChild(s.stateNode));break;case 18:bt!==null&&(mn?(e=bt,s=s.stateNode,e.nodeType===8?Ju(e.parentNode,s):e.nodeType===1&&Ju(e,s),Ki(e)):Ju(bt,s.stateNode));break;case 4:c=bt,f=mn,bt=s.stateNode.containerInfo,mn=!0,Lr(e,n,s),bt=c,mn=f;break;case 0:case 11:case 14:case 15:if(!Rt&&(c=s.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){f=c=c.next;do{var p=f,x=p.destroy;p=p.tag,x!==void 0&&((p&2)!==0||(p&4)!==0)&&jd(s,n,x),f=f.next}while(f!==c)}Lr(e,n,s);break;case 1:if(!Rt&&(li(s,n),c=s.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=s.memoizedProps,c.state=s.memoizedState,c.componentWillUnmount()}catch(C){st(s,n,C)}Lr(e,n,s);break;case 21:Lr(e,n,s);break;case 22:s.mode&1?(Rt=(c=Rt)||s.memoizedState!==null,Lr(e,n,s),Rt=c):Lr(e,n,s);break;default:Lr(e,n,s)}}function Sy(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var s=e.stateNode;s===null&&(s=e.stateNode=new VE),n.forEach(function(c){var f=YE.bind(null,e,c);s.has(c)||(s.add(c),c.then(f,f))})}}function gn(e,n){var s=n.deletions;if(s!==null)for(var c=0;c<s.length;c++){var f=s[c];try{var p=e,x=n,C=x;e:for(;C!==null;){switch(C.tag){case 5:bt=C.stateNode,mn=!1;break e;case 3:bt=C.stateNode.containerInfo,mn=!0;break e;case 4:bt=C.stateNode.containerInfo,mn=!0;break e}C=C.return}if(bt===null)throw Error(o(160));wy(p,x,f),bt=null,mn=!1;var R=f.alternate;R!==null&&(R.return=null),f.return=null}catch(F){st(f,n,F)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)by(n,e),n=n.sibling}function by(e,n){var s=e.alternate,c=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gn(n,e),Dn(e),c&4){try{hs(3,e,e.return),dl(3,e)}catch(xe){st(e,e.return,xe)}try{hs(5,e,e.return)}catch(xe){st(e,e.return,xe)}}break;case 1:gn(n,e),Dn(e),c&512&&s!==null&&li(s,s.return);break;case 5:if(gn(n,e),Dn(e),c&512&&s!==null&&li(s,s.return),e.flags&32){var f=e.stateNode;try{Li(f,"")}catch(xe){st(e,e.return,xe)}}if(c&4&&(f=e.stateNode,f!=null)){var p=e.memoizedProps,x=s!==null?s.memoizedProps:p,C=e.type,R=e.updateQueue;if(e.updateQueue=null,R!==null)try{C==="input"&&p.type==="radio"&&p.name!=null&&qe(f,p),vu(C,x);var F=vu(C,p);for(x=0;x<R.length;x+=2){var Z=R[x],q=R[x+1];Z==="style"?og(f,q):Z==="dangerouslySetInnerHTML"?ng(f,q):Z==="children"?Li(f,q):N(f,Z,q,F)}switch(C){case"input":Ke(f,p);break;case"textarea":Jm(f,p);break;case"select":var K=f._wrapperState.wasMultiple;f._wrapperState.wasMultiple=!!p.multiple;var pe=p.value;pe!=null?un(f,!!p.multiple,pe,!1):K!==!!p.multiple&&(p.defaultValue!=null?un(f,!!p.multiple,p.defaultValue,!0):un(f,!!p.multiple,p.multiple?[]:"",!1))}f[rs]=p}catch(xe){st(e,e.return,xe)}}break;case 6:if(gn(n,e),Dn(e),c&4){if(e.stateNode===null)throw Error(o(162));f=e.stateNode,p=e.memoizedProps;try{f.nodeValue=p}catch(xe){st(e,e.return,xe)}}break;case 3:if(gn(n,e),Dn(e),c&4&&s!==null&&s.memoizedState.isDehydrated)try{Ki(n.containerInfo)}catch(xe){st(e,e.return,xe)}break;case 4:gn(n,e),Dn(e);break;case 13:gn(n,e),Dn(e),f=e.child,f.flags&8192&&(p=f.memoizedState!==null,f.stateNode.isHidden=p,!p||f.alternate!==null&&f.alternate.memoizedState!==null||(Bd=at())),c&4&&Sy(e);break;case 22:if(Z=s!==null&&s.memoizedState!==null,e.mode&1?(Rt=(F=Rt)||Z,gn(n,e),Rt=F):gn(n,e),Dn(e),c&8192){if(F=e.memoizedState!==null,(e.stateNode.isHidden=F)&&!Z&&(e.mode&1)!==0)for(ve=e,Z=e.child;Z!==null;){for(q=ve=Z;ve!==null;){switch(K=ve,pe=K.child,K.tag){case 0:case 11:case 14:case 15:hs(4,K,K.return);break;case 1:li(K,K.return);var ye=K.stateNode;if(typeof ye.componentWillUnmount=="function"){c=K,s=K.return;try{n=c,ye.props=n.memoizedProps,ye.state=n.memoizedState,ye.componentWillUnmount()}catch(xe){st(c,s,xe)}}break;case 5:li(K,K.return);break;case 22:if(K.memoizedState!==null){_y(q);continue}}pe!==null?(pe.return=K,ve=pe):_y(q)}Z=Z.sibling}e:for(Z=null,q=e;;){if(q.tag===5){if(Z===null){Z=q;try{f=q.stateNode,F?(p=f.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none"):(C=q.stateNode,R=q.memoizedProps.style,x=R!=null&&R.hasOwnProperty("display")?R.display:null,C.style.display=rg("display",x))}catch(xe){st(e,e.return,xe)}}}else if(q.tag===6){if(Z===null)try{q.stateNode.nodeValue=F?"":q.memoizedProps}catch(xe){st(e,e.return,xe)}}else if((q.tag!==22&&q.tag!==23||q.memoizedState===null||q===e)&&q.child!==null){q.child.return=q,q=q.child;continue}if(q===e)break e;for(;q.sibling===null;){if(q.return===null||q.return===e)break e;Z===q&&(Z=null),q=q.return}Z===q&&(Z=null),q.sibling.return=q.return,q=q.sibling}}break;case 19:gn(n,e),Dn(e),c&4&&Sy(e);break;case 21:break;default:gn(n,e),Dn(e)}}function Dn(e){var n=e.flags;if(n&2){try{e:{for(var s=e.return;s!==null;){if(yy(s)){var c=s;break e}s=s.return}throw Error(o(160))}switch(c.tag){case 5:var f=c.stateNode;c.flags&32&&(Li(f,""),c.flags&=-33);var p=xy(e);Fd(e,p,f);break;case 3:case 4:var x=c.stateNode.containerInfo,C=xy(e);zd(e,C,x);break;default:throw Error(o(161))}}catch(R){st(e,e.return,R)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function BE(e,n,s){ve=e,ky(e)}function ky(e,n,s){for(var c=(e.mode&1)!==0;ve!==null;){var f=ve,p=f.child;if(f.tag===22&&c){var x=f.memoizedState!==null||ul;if(!x){var C=f.alternate,R=C!==null&&C.memoizedState!==null||Rt;C=ul;var F=Rt;if(ul=x,(Rt=R)&&!F)for(ve=f;ve!==null;)x=ve,R=x.child,x.tag===22&&x.memoizedState!==null?Ey(f):R!==null?(R.return=x,ve=R):Ey(f);for(;p!==null;)ve=p,ky(p),p=p.sibling;ve=f,ul=C,Rt=F}Cy(e)}else(f.subtreeFlags&8772)!==0&&p!==null?(p.return=f,ve=p):Cy(e)}}function Cy(e){for(;ve!==null;){var n=ve;if((n.flags&8772)!==0){var s=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:Rt||dl(5,n);break;case 1:var c=n.stateNode;if(n.flags&4&&!Rt)if(s===null)c.componentDidMount();else{var f=n.elementType===n.type?s.memoizedProps:hn(n.type,s.memoizedProps);c.componentDidUpdate(f,s.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var p=n.updateQueue;p!==null&&_v(n,p,c);break;case 3:var x=n.updateQueue;if(x!==null){if(s=null,n.child!==null)switch(n.child.tag){case 5:s=n.child.stateNode;break;case 1:s=n.child.stateNode}_v(n,x,s)}break;case 5:var C=n.stateNode;if(s===null&&n.flags&4){s=C;var R=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":R.autoFocus&&s.focus();break;case"img":R.src&&(s.src=R.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var F=n.alternate;if(F!==null){var Z=F.memoizedState;if(Z!==null){var q=Z.dehydrated;q!==null&&Ki(q)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}Rt||n.flags&512&&Md(n)}catch(K){st(n,n.return,K)}}if(n===e){ve=null;break}if(s=n.sibling,s!==null){s.return=n.return,ve=s;break}ve=n.return}}function _y(e){for(;ve!==null;){var n=ve;if(n===e){ve=null;break}var s=n.sibling;if(s!==null){s.return=n.return,ve=s;break}ve=n.return}}function Ey(e){for(;ve!==null;){var n=ve;try{switch(n.tag){case 0:case 11:case 15:var s=n.return;try{dl(4,n)}catch(R){st(n,s,R)}break;case 1:var c=n.stateNode;if(typeof c.componentDidMount=="function"){var f=n.return;try{c.componentDidMount()}catch(R){st(n,f,R)}}var p=n.return;try{Md(n)}catch(R){st(n,p,R)}break;case 5:var x=n.return;try{Md(n)}catch(R){st(n,x,R)}}}catch(R){st(n,n.return,R)}if(n===e){ve=null;break}var C=n.sibling;if(C!==null){C.return=n.return,ve=C;break}ve=n.return}}var HE=Math.ceil,fl=I.ReactCurrentDispatcher,Vd=I.ReactCurrentOwner,tn=I.ReactCurrentBatchConfig,Ve=0,wt=null,dt=null,kt=0,qt=0,ci=Or(0),mt=0,ms=null,po=0,pl=0,Ud=0,gs=null,Vt=null,Bd=0,ui=1/0,sr=null,hl=!1,Hd=null,$r=null,ml=!1,jr=null,gl=0,vs=0,Wd=null,vl=-1,yl=0;function At(){return(Ve&6)!==0?at():vl!==-1?vl:vl=at()}function Mr(e){return(e.mode&1)===0?1:(Ve&2)!==0&&kt!==0?kt&-kt:RE.transition!==null?(yl===0&&(yl=xg()),yl):(e=Ge,e!==0||(e=window.event,e=e===void 0?16:Pg(e.type)),e)}function vn(e,n,s,c){if(50<vs)throw vs=0,Wd=null,Error(o(185));Vi(e,s,c),((Ve&2)===0||e!==wt)&&(e===wt&&((Ve&2)===0&&(pl|=s),mt===4&&zr(e,kt)),Ut(e,c),s===1&&Ve===0&&(n.mode&1)===0&&(ui=at()+500,Ka&&Tr()))}function Ut(e,n){var s=e.callbackNode;R_(e,n);var c=Ra(e,e===wt?kt:0);if(c===0)s!==null&&gg(s),e.callbackNode=null,e.callbackPriority=0;else if(n=c&-c,e.callbackPriority!==n){if(s!=null&&gg(s),n===1)e.tag===0?EE(Py.bind(null,e)):pv(Py.bind(null,e)),bE(function(){(Ve&6)===0&&Tr()}),s=null;else{switch(wg(c)){case 1:s=Cu;break;case 4:s=vg;break;case 16:s=ka;break;case 536870912:s=yg;break;default:s=ka}s=$y(s,Ry.bind(null,e))}e.callbackPriority=n,e.callbackNode=s}}function Ry(e,n){if(vl=-1,yl=0,(Ve&6)!==0)throw Error(o(327));var s=e.callbackNode;if(di()&&e.callbackNode!==s)return null;var c=Ra(e,e===wt?kt:0);if(c===0)return null;if((c&30)!==0||(c&e.expiredLanes)!==0||n)n=xl(e,c);else{n=c;var f=Ve;Ve|=2;var p=Oy();(wt!==e||kt!==n)&&(sr=null,ui=at()+500,mo(e,n));do try{ZE();break}catch(C){Iy(e,C)}while(!0);cd(),fl.current=p,Ve=f,dt!==null?n=0:(wt=null,kt=0,n=mt)}if(n!==0){if(n===2&&(f=_u(e),f!==0&&(c=f,n=Kd(e,f))),n===1)throw s=ms,mo(e,0),zr(e,c),Ut(e,at()),s;if(n===6)zr(e,c);else{if(f=e.current.alternate,(c&30)===0&&!WE(f)&&(n=xl(e,c),n===2&&(p=_u(e),p!==0&&(c=p,n=Kd(e,p))),n===1))throw s=ms,mo(e,0),zr(e,c),Ut(e,at()),s;switch(e.finishedWork=f,e.finishedLanes=c,n){case 0:case 1:throw Error(o(345));case 2:go(e,Vt,sr);break;case 3:if(zr(e,c),(c&130023424)===c&&(n=Bd+500-at(),10<n)){if(Ra(e,0)!==0)break;if(f=e.suspendedLanes,(f&c)!==c){At(),e.pingedLanes|=e.suspendedLanes&f;break}e.timeoutHandle=Xu(go.bind(null,e,Vt,sr),n);break}go(e,Vt,sr);break;case 4:if(zr(e,c),(c&4194240)===c)break;for(n=e.eventTimes,f=-1;0<c;){var x=31-dn(c);p=1<<x,x=n[x],x>f&&(f=x),c&=~p}if(c=f,c=at()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*HE(c/1960))-c,10<c){e.timeoutHandle=Xu(go.bind(null,e,Vt,sr),c);break}go(e,Vt,sr);break;case 5:go(e,Vt,sr);break;default:throw Error(o(329))}}}return Ut(e,at()),e.callbackNode===s?Ry.bind(null,e):null}function Kd(e,n){var s=gs;return e.current.memoizedState.isDehydrated&&(mo(e,n).flags|=256),e=xl(e,n),e!==2&&(n=Vt,Vt=s,n!==null&&Zd(n)),e}function Zd(e){Vt===null?Vt=e:Vt.push.apply(Vt,e)}function WE(e){for(var n=e;;){if(n.flags&16384){var s=n.updateQueue;if(s!==null&&(s=s.stores,s!==null))for(var c=0;c<s.length;c++){var f=s[c],p=f.getSnapshot;f=f.value;try{if(!fn(p(),f))return!1}catch{return!1}}}if(s=n.child,n.subtreeFlags&16384&&s!==null)s.return=n,n=s;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function zr(e,n){for(n&=~Ud,n&=~pl,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var s=31-dn(n),c=1<<s;e[s]=-1,n&=~c}}function Py(e){if((Ve&6)!==0)throw Error(o(327));di();var n=Ra(e,0);if((n&1)===0)return Ut(e,at()),null;var s=xl(e,n);if(e.tag!==0&&s===2){var c=_u(e);c!==0&&(n=c,s=Kd(e,c))}if(s===1)throw s=ms,mo(e,0),zr(e,n),Ut(e,at()),s;if(s===6)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,go(e,Vt,sr),Ut(e,at()),null}function qd(e,n){var s=Ve;Ve|=1;try{return e(n)}finally{Ve=s,Ve===0&&(ui=at()+500,Ka&&Tr())}}function ho(e){jr!==null&&jr.tag===0&&(Ve&6)===0&&di();var n=Ve;Ve|=1;var s=tn.transition,c=Ge;try{if(tn.transition=null,Ge=1,e)return e()}finally{Ge=c,tn.transition=s,Ve=n,(Ve&6)===0&&Tr()}}function Gd(){qt=ci.current,tt(ci)}function mo(e,n){e.finishedWork=null,e.finishedLanes=0;var s=e.timeoutHandle;if(s!==-1&&(e.timeoutHandle=-1,SE(s)),dt!==null)for(s=dt.return;s!==null;){var c=s;switch(od(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Ha();break;case 3:si(),tt(Mt),tt(Ct),vd();break;case 5:md(c);break;case 4:si();break;case 13:tt(ot);break;case 19:tt(ot);break;case 10:ud(c.type._context);break;case 22:case 23:Gd()}s=s.return}if(wt=e,dt=e=Fr(e.current,null),kt=qt=n,mt=0,ms=null,Ud=pl=po=0,Vt=gs=null,co!==null){for(n=0;n<co.length;n++)if(s=co[n],c=s.interleaved,c!==null){s.interleaved=null;var f=c.next,p=s.pending;if(p!==null){var x=p.next;p.next=f,c.next=x}s.pending=c}co=null}return e}function Iy(e,n){do{var s=dt;try{if(cd(),nl.current=sl,rl){for(var c=it.memoizedState;c!==null;){var f=c.queue;f!==null&&(f.pending=null),c=c.next}rl=!1}if(fo=0,xt=ht=it=null,cs=!1,us=0,Vd.current=null,s===null||s.return===null){mt=1,ms=n,dt=null;break}e:{var p=e,x=s.return,C=s,R=n;if(n=kt,C.flags|=32768,R!==null&&typeof R=="object"&&typeof R.then=="function"){var F=R,Z=C,q=Z.tag;if((Z.mode&1)===0&&(q===0||q===11||q===15)){var K=Z.alternate;K?(Z.updateQueue=K.updateQueue,Z.memoizedState=K.memoizedState,Z.lanes=K.lanes):(Z.updateQueue=null,Z.memoizedState=null)}var pe=ey(x);if(pe!==null){pe.flags&=-257,ty(pe,x,C,p,n),pe.mode&1&&Jv(p,F,n),n=pe,R=F;var ye=n.updateQueue;if(ye===null){var xe=new Set;xe.add(R),n.updateQueue=xe}else ye.add(R);break e}else{if((n&1)===0){Jv(p,F,n),Qd();break e}R=Error(o(426))}}else if(rt&&C.mode&1){var lt=ey(x);if(lt!==null){(lt.flags&65536)===0&&(lt.flags|=256),ty(lt,x,C,p,n),ad(ai(R,C));break e}}p=R=ai(R,C),mt!==4&&(mt=2),gs===null?gs=[p]:gs.push(p),p=x;do{switch(p.tag){case 3:p.flags|=65536,n&=-n,p.lanes|=n;var $=Yv(p,R,n);Cv(p,$);break e;case 1:C=R;var O=p.type,M=p.stateNode;if((p.flags&128)===0&&(typeof O.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&($r===null||!$r.has(M)))){p.flags|=65536,n&=-n,p.lanes|=n;var te=Xv(p,C,n);Cv(p,te);break e}}p=p.return}while(p!==null)}Ty(s)}catch(be){n=be,dt===s&&s!==null&&(dt=s=s.return);continue}break}while(!0)}function Oy(){var e=fl.current;return fl.current=sl,e===null?sl:e}function Qd(){(mt===0||mt===3||mt===2)&&(mt=4),wt===null||(po&268435455)===0&&(pl&268435455)===0||zr(wt,kt)}function xl(e,n){var s=Ve;Ve|=2;var c=Oy();(wt!==e||kt!==n)&&(sr=null,mo(e,n));do try{KE();break}catch(f){Iy(e,f)}while(!0);if(cd(),Ve=s,fl.current=c,dt!==null)throw Error(o(261));return wt=null,kt=0,mt}function KE(){for(;dt!==null;)Ny(dt)}function ZE(){for(;dt!==null&&!y_();)Ny(dt)}function Ny(e){var n=Ly(e.alternate,e,qt);e.memoizedProps=e.pendingProps,n===null?Ty(e):dt=n,Vd.current=null}function Ty(e){var n=e;do{var s=n.alternate;if(e=n.return,(n.flags&32768)===0){if(s=zE(s,n,qt),s!==null){dt=s;return}}else{if(s=FE(s,n),s!==null){s.flags&=32767,dt=s;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{mt=6,dt=null;return}}if(n=n.sibling,n!==null){dt=n;return}dt=n=e}while(n!==null);mt===0&&(mt=5)}function go(e,n,s){var c=Ge,f=tn.transition;try{tn.transition=null,Ge=1,qE(e,n,s,c)}finally{tn.transition=f,Ge=c}return null}function qE(e,n,s,c){do di();while(jr!==null);if((Ve&6)!==0)throw Error(o(327));s=e.finishedWork;var f=e.finishedLanes;if(s===null)return null;if(e.finishedWork=null,e.finishedLanes=0,s===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var p=s.lanes|s.childLanes;if(P_(e,p),e===wt&&(dt=wt=null,kt=0),(s.subtreeFlags&2064)===0&&(s.flags&2064)===0||ml||(ml=!0,$y(ka,function(){return di(),null})),p=(s.flags&15990)!==0,(s.subtreeFlags&15990)!==0||p){p=tn.transition,tn.transition=null;var x=Ge;Ge=1;var C=Ve;Ve|=4,Vd.current=null,UE(e,s),by(s,e),hE(Qu),Oa=!!Gu,Qu=Gu=null,e.current=s,BE(s),x_(),Ve=C,Ge=x,tn.transition=p}else e.current=s;if(ml&&(ml=!1,jr=e,gl=f),p=e.pendingLanes,p===0&&($r=null),b_(s.stateNode),Ut(e,at()),n!==null)for(c=e.onRecoverableError,s=0;s<n.length;s++)f=n[s],c(f.value,{componentStack:f.stack,digest:f.digest});if(hl)throw hl=!1,e=Hd,Hd=null,e;return(gl&1)!==0&&e.tag!==0&&di(),p=e.pendingLanes,(p&1)!==0?e===Wd?vs++:(vs=0,Wd=e):vs=0,Tr(),null}function di(){if(jr!==null){var e=wg(gl),n=tn.transition,s=Ge;try{if(tn.transition=null,Ge=16>e?16:e,jr===null)var c=!1;else{if(e=jr,jr=null,gl=0,(Ve&6)!==0)throw Error(o(331));var f=Ve;for(Ve|=4,ve=e.current;ve!==null;){var p=ve,x=p.child;if((ve.flags&16)!==0){var C=p.deletions;if(C!==null){for(var R=0;R<C.length;R++){var F=C[R];for(ve=F;ve!==null;){var Z=ve;switch(Z.tag){case 0:case 11:case 15:hs(8,Z,p)}var q=Z.child;if(q!==null)q.return=Z,ve=q;else for(;ve!==null;){Z=ve;var K=Z.sibling,pe=Z.return;if(vy(Z),Z===F){ve=null;break}if(K!==null){K.return=pe,ve=K;break}ve=pe}}}var ye=p.alternate;if(ye!==null){var xe=ye.child;if(xe!==null){ye.child=null;do{var lt=xe.sibling;xe.sibling=null,xe=lt}while(xe!==null)}}ve=p}}if((p.subtreeFlags&2064)!==0&&x!==null)x.return=p,ve=x;else e:for(;ve!==null;){if(p=ve,(p.flags&2048)!==0)switch(p.tag){case 0:case 11:case 15:hs(9,p,p.return)}var $=p.sibling;if($!==null){$.return=p.return,ve=$;break e}ve=p.return}}var O=e.current;for(ve=O;ve!==null;){x=ve;var M=x.child;if((x.subtreeFlags&2064)!==0&&M!==null)M.return=x,ve=M;else e:for(x=O;ve!==null;){if(C=ve,(C.flags&2048)!==0)try{switch(C.tag){case 0:case 11:case 15:dl(9,C)}}catch(be){st(C,C.return,be)}if(C===x){ve=null;break e}var te=C.sibling;if(te!==null){te.return=C.return,ve=te;break e}ve=C.return}}if(Ve=f,Tr(),On&&typeof On.onPostCommitFiberRoot=="function")try{On.onPostCommitFiberRoot(Ca,e)}catch{}c=!0}return c}finally{Ge=s,tn.transition=n}}return!1}function Ay(e,n,s){n=ai(s,n),n=Yv(e,n,1),e=Dr(e,n,1),n=At(),e!==null&&(Vi(e,1,n),Ut(e,n))}function st(e,n,s){if(e.tag===3)Ay(e,e,s);else for(;n!==null;){if(n.tag===3){Ay(n,e,s);break}else if(n.tag===1){var c=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&($r===null||!$r.has(c))){e=ai(s,e),e=Xv(n,e,1),n=Dr(n,e,1),e=At(),n!==null&&(Vi(n,1,e),Ut(n,e));break}}n=n.return}}function GE(e,n,s){var c=e.pingCache;c!==null&&c.delete(n),n=At(),e.pingedLanes|=e.suspendedLanes&s,wt===e&&(kt&s)===s&&(mt===4||mt===3&&(kt&130023424)===kt&&500>at()-Bd?mo(e,0):Ud|=s),Ut(e,n)}function Dy(e,n){n===0&&((e.mode&1)===0?n=1:(n=Ea,Ea<<=1,(Ea&130023424)===0&&(Ea=4194304)));var s=At();e=rr(e,n),e!==null&&(Vi(e,n,s),Ut(e,s))}function QE(e){var n=e.memoizedState,s=0;n!==null&&(s=n.retryLane),Dy(e,s)}function YE(e,n){var s=0;switch(e.tag){case 13:var c=e.stateNode,f=e.memoizedState;f!==null&&(s=f.retryLane);break;case 19:c=e.stateNode;break;default:throw Error(o(314))}c!==null&&c.delete(n),Dy(e,s)}var Ly;Ly=function(e,n,s){if(e!==null)if(e.memoizedProps!==n.pendingProps||Mt.current)Ft=!0;else{if((e.lanes&s)===0&&(n.flags&128)===0)return Ft=!1,ME(e,n,s);Ft=(e.flags&131072)!==0}else Ft=!1,rt&&(n.flags&1048576)!==0&&hv(n,qa,n.index);switch(n.lanes=0,n.tag){case 2:var c=n.type;cl(e,n),e=n.pendingProps;var f=Jo(n,Ct.current);ii(n,s),f=wd(null,n,c,e,f,s);var p=Sd();return n.flags|=1,typeof f=="object"&&f!==null&&typeof f.render=="function"&&f.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,zt(c)?(p=!0,Wa(n)):p=!1,n.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,pd(n),f.updater=al,n.stateNode=f,f._reactInternals=n,Rd(n,c,e,s),n=Nd(null,n,c,!0,p,s)):(n.tag=0,rt&&p&&rd(n),Tt(null,n,f,s),n=n.child),n;case 16:c=n.elementType;e:{switch(cl(e,n),e=n.pendingProps,f=c._init,c=f(c._payload),n.type=c,f=n.tag=JE(c),e=hn(c,e),f){case 0:n=Od(null,n,c,e,s);break e;case 1:n=ay(null,n,c,e,s);break e;case 11:n=ny(null,n,c,e,s);break e;case 14:n=ry(null,n,c,hn(c.type,e),s);break e}throw Error(o(306,c,""))}return n;case 0:return c=n.type,f=n.pendingProps,f=n.elementType===c?f:hn(c,f),Od(e,n,c,f,s);case 1:return c=n.type,f=n.pendingProps,f=n.elementType===c?f:hn(c,f),ay(e,n,c,f,s);case 3:e:{if(ly(n),e===null)throw Error(o(387));c=n.pendingProps,p=n.memoizedState,f=p.element,kv(e,n),el(n,c,null,s);var x=n.memoizedState;if(c=x.element,p.isDehydrated)if(p={element:c,isDehydrated:!1,cache:x.cache,pendingSuspenseBoundaries:x.pendingSuspenseBoundaries,transitions:x.transitions},n.updateQueue.baseState=p,n.memoizedState=p,n.flags&256){f=ai(Error(o(423)),n),n=cy(e,n,c,s,f);break e}else if(c!==f){f=ai(Error(o(424)),n),n=cy(e,n,c,s,f);break e}else for(Zt=Ir(n.stateNode.containerInfo.firstChild),Kt=n,rt=!0,pn=null,s=Sv(n,null,c,s),n.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(ni(),c===f){n=ir(e,n,s);break e}Tt(e,n,c,s)}n=n.child}return n;case 5:return Ev(n),e===null&&sd(n),c=n.type,f=n.pendingProps,p=e!==null?e.memoizedProps:null,x=f.children,Yu(c,f)?x=null:p!==null&&Yu(c,p)&&(n.flags|=32),sy(e,n),Tt(e,n,x,s),n.child;case 6:return e===null&&sd(n),null;case 13:return uy(e,n,s);case 4:return hd(n,n.stateNode.containerInfo),c=n.pendingProps,e===null?n.child=ri(n,null,c,s):Tt(e,n,c,s),n.child;case 11:return c=n.type,f=n.pendingProps,f=n.elementType===c?f:hn(c,f),ny(e,n,c,f,s);case 7:return Tt(e,n,n.pendingProps,s),n.child;case 8:return Tt(e,n,n.pendingProps.children,s),n.child;case 12:return Tt(e,n,n.pendingProps.children,s),n.child;case 10:e:{if(c=n.type._context,f=n.pendingProps,p=n.memoizedProps,x=f.value,Je(Ya,c._currentValue),c._currentValue=x,p!==null)if(fn(p.value,x)){if(p.children===f.children&&!Mt.current){n=ir(e,n,s);break e}}else for(p=n.child,p!==null&&(p.return=n);p!==null;){var C=p.dependencies;if(C!==null){x=p.child;for(var R=C.firstContext;R!==null;){if(R.context===c){if(p.tag===1){R=or(-1,s&-s),R.tag=2;var F=p.updateQueue;if(F!==null){F=F.shared;var Z=F.pending;Z===null?R.next=R:(R.next=Z.next,Z.next=R),F.pending=R}}p.lanes|=s,R=p.alternate,R!==null&&(R.lanes|=s),dd(p.return,s,n),C.lanes|=s;break}R=R.next}}else if(p.tag===10)x=p.type===n.type?null:p.child;else if(p.tag===18){if(x=p.return,x===null)throw Error(o(341));x.lanes|=s,C=x.alternate,C!==null&&(C.lanes|=s),dd(x,s,n),x=p.sibling}else x=p.child;if(x!==null)x.return=p;else for(x=p;x!==null;){if(x===n){x=null;break}if(p=x.sibling,p!==null){p.return=x.return,x=p;break}x=x.return}p=x}Tt(e,n,f.children,s),n=n.child}return n;case 9:return f=n.type,c=n.pendingProps.children,ii(n,s),f=Jt(f),c=c(f),n.flags|=1,Tt(e,n,c,s),n.child;case 14:return c=n.type,f=hn(c,n.pendingProps),f=hn(c.type,f),ry(e,n,c,f,s);case 15:return oy(e,n,n.type,n.pendingProps,s);case 17:return c=n.type,f=n.pendingProps,f=n.elementType===c?f:hn(c,f),cl(e,n),n.tag=1,zt(c)?(e=!0,Wa(n)):e=!1,ii(n,s),Gv(n,c,f),Rd(n,c,f,s),Nd(null,n,c,!0,e,s);case 19:return fy(e,n,s);case 22:return iy(e,n,s)}throw Error(o(156,n.tag))};function $y(e,n){return mg(e,n)}function XE(e,n,s,c){this.tag=e,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nn(e,n,s,c){return new XE(e,n,s,c)}function Yd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function JE(e){if(typeof e=="function")return Yd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ce)return 11;if(e===ke)return 14}return 2}function Fr(e,n){var s=e.alternate;return s===null?(s=nn(e.tag,n,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=n,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&14680064,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,n=e.dependencies,s.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s}function wl(e,n,s,c,f,p){var x=2;if(c=e,typeof e=="function")Yd(e)&&(x=1);else if(typeof e=="string")x=5;else e:switch(e){case B:return vo(s.children,f,p,n);case j:x=8,f|=8;break;case Q:return e=nn(12,s,n,f|2),e.elementType=Q,e.lanes=p,e;case le:return e=nn(13,s,n,f),e.elementType=le,e.lanes=p,e;case fe:return e=nn(19,s,n,f),e.elementType=fe,e.lanes=p,e;case se:return Sl(s,f,p,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ae:x=10;break e;case Ce:x=9;break e;case ce:x=11;break e;case ke:x=14;break e;case re:x=16,c=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return n=nn(x,s,n,f),n.elementType=e,n.type=c,n.lanes=p,n}function vo(e,n,s,c){return e=nn(7,e,c,n),e.lanes=s,e}function Sl(e,n,s,c){return e=nn(22,e,c,n),e.elementType=se,e.lanes=s,e.stateNode={isHidden:!1},e}function Xd(e,n,s){return e=nn(6,e,null,n),e.lanes=s,e}function Jd(e,n,s){return n=nn(4,e.children!==null?e.children:[],e.key,n),n.lanes=s,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function eR(e,n,s,c,f){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Eu(0),this.expirationTimes=Eu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Eu(0),this.identifierPrefix=c,this.onRecoverableError=f,this.mutableSourceEagerHydrationData=null}function ef(e,n,s,c,f,p,x,C,R){return e=new eR(e,n,s,C,R),n===1?(n=1,p===!0&&(n|=8)):n=0,p=nn(3,null,null,n),e.current=p,p.stateNode=e,p.memoizedState={element:c,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},pd(p),e}function tR(e,n,s){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:c==null?null:""+c,children:e,containerInfo:n,implementation:s}}function jy(e){if(!e)return Nr;e=e._reactInternals;e:{if(oo(e)!==e||e.tag!==1)throw Error(o(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(zt(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(o(171))}if(e.tag===1){var s=e.type;if(zt(s))return dv(e,s,n)}return n}function My(e,n,s,c,f,p,x,C,R){return e=ef(s,c,!0,e,f,p,x,C,R),e.context=jy(null),s=e.current,c=At(),f=Mr(s),p=or(c,f),p.callback=n??null,Dr(s,p,f),e.current.lanes=f,Vi(e,f,c),Ut(e,c),e}function bl(e,n,s,c){var f=n.current,p=At(),x=Mr(f);return s=jy(s),n.context===null?n.context=s:n.pendingContext=s,n=or(p,x),n.payload={element:e},c=c===void 0?null:c,c!==null&&(n.callback=c),e=Dr(f,n,x),e!==null&&(vn(e,f,x,p),Ja(e,f,x)),x}function kl(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function zy(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<n?s:n}}function tf(e,n){zy(e,n),(e=e.alternate)&&zy(e,n)}function nR(){return null}var Fy=typeof reportError=="function"?reportError:function(e){console.error(e)};function nf(e){this._internalRoot=e}Cl.prototype.render=nf.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(o(409));bl(e,n,null,null)},Cl.prototype.unmount=nf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;ho(function(){bl(null,e,null,null)}),n[Jn]=null}};function Cl(e){this._internalRoot=e}Cl.prototype.unstable_scheduleHydration=function(e){if(e){var n=kg();e={blockedOn:null,target:e,priority:n};for(var s=0;s<Er.length&&n!==0&&n<Er[s].priority;s++);Er.splice(s,0,e),s===0&&Eg(e)}};function rf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function _l(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Vy(){}function rR(e,n,s,c,f){if(f){if(typeof c=="function"){var p=c;c=function(){var F=kl(x);p.call(F)}}var x=My(n,c,e,0,null,!1,!1,"",Vy);return e._reactRootContainer=x,e[Jn]=x.current,ts(e.nodeType===8?e.parentNode:e),ho(),x}for(;f=e.lastChild;)e.removeChild(f);if(typeof c=="function"){var C=c;c=function(){var F=kl(R);C.call(F)}}var R=ef(e,0,!1,null,null,!1,!1,"",Vy);return e._reactRootContainer=R,e[Jn]=R.current,ts(e.nodeType===8?e.parentNode:e),ho(function(){bl(n,R,s,c)}),R}function El(e,n,s,c,f){var p=s._reactRootContainer;if(p){var x=p;if(typeof f=="function"){var C=f;f=function(){var R=kl(x);C.call(R)}}bl(n,x,e,f)}else x=rR(s,n,e,f,c);return kl(x)}Sg=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var s=Fi(n.pendingLanes);s!==0&&(Ru(n,s|1),Ut(n,at()),(Ve&6)===0&&(ui=at()+500,Tr()))}break;case 13:ho(function(){var c=rr(e,1);if(c!==null){var f=At();vn(c,e,1,f)}}),tf(e,1)}},Pu=function(e){if(e.tag===13){var n=rr(e,134217728);if(n!==null){var s=At();vn(n,e,134217728,s)}tf(e,134217728)}},bg=function(e){if(e.tag===13){var n=Mr(e),s=rr(e,n);if(s!==null){var c=At();vn(s,e,n,c)}tf(e,n)}},kg=function(){return Ge},Cg=function(e,n){var s=Ge;try{return Ge=e,n()}finally{Ge=s}},wu=function(e,n,s){switch(n){case"input":if(Ke(e,s),n=s.name,s.type==="radio"&&n!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<s.length;n++){var c=s[n];if(c!==e&&c.form===e.form){var f=Ba(c);if(!f)throw Error(o(90));Me(c),Ke(c,f)}}}break;case"textarea":Jm(e,s);break;case"select":n=s.value,n!=null&&un(e,!!s.multiple,n,!1)}},lg=qd,cg=ho;var oR={usingClientEntryPoint:!1,Events:[os,Yo,Ba,sg,ag,qd]},ys={findFiberByHostInstance:io,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},iR={bundleType:ys.bundleType,version:ys.version,rendererPackageName:ys.rendererPackageName,rendererConfig:ys.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:I.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=pg(e),e===null?null:e.stateNode},findFiberByHostInstance:ys.findFiberByHostInstance||nR,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Rl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rl.isDisabled&&Rl.supportsFiber)try{Ca=Rl.inject(iR),On=Rl}catch{}}return Dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oR,Dt.createPortal=function(e,n){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!rf(n))throw Error(o(200));return tR(e,n,null,s)},Dt.createRoot=function(e,n){if(!rf(e))throw Error(o(299));var s=!1,c="",f=Fy;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onRecoverableError!==void 0&&(f=n.onRecoverableError)),n=ef(e,1,!1,null,null,s,!1,c,f),e[Jn]=n.current,ts(e.nodeType===8?e.parentNode:e),new nf(n)},Dt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=pg(n),e=e===null?null:e.stateNode,e},Dt.flushSync=function(e){return ho(e)},Dt.hydrate=function(e,n,s){if(!_l(n))throw Error(o(200));return El(null,e,n,!0,s)},Dt.hydrateRoot=function(e,n,s){if(!rf(e))throw Error(o(405));var c=s!=null&&s.hydratedSources||null,f=!1,p="",x=Fy;if(s!=null&&(s.unstable_strictMode===!0&&(f=!0),s.identifierPrefix!==void 0&&(p=s.identifierPrefix),s.onRecoverableError!==void 0&&(x=s.onRecoverableError)),n=My(n,null,e,1,s??null,f,!1,p,x),e[Jn]=n.current,ts(e),c)for(e=0;e<c.length;e++)s=c[e],f=s._getVersion,f=f(s._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[s,f]:n.mutableSourceEagerHydrationData.push(s,f);return new Cl(n)},Dt.render=function(e,n,s){if(!_l(n))throw Error(o(200));return El(null,e,n,!1,s)},Dt.unmountComponentAtNode=function(e){if(!_l(e))throw Error(o(40));return e._reactRootContainer?(ho(function(){El(null,null,e,!1,function(){e._reactRootContainer=null,e[Jn]=null})}),!0):!1},Dt.unstable_batchedUpdates=qd,Dt.unstable_renderSubtreeIntoContainer=function(e,n,s,c){if(!_l(s))throw Error(o(200));if(e==null||e._reactInternals===void 0)throw Error(o(38));return El(e,n,s,!1,c)},Dt.version="18.3.1-next-f1338f8080-20240426",Dt}var uf;function df(){if(uf)return Ol.exports;uf=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(t){console.error(t)}}return r(),Ol.exports=Zy(),Ol.exports}var ff;function qy(){if(ff)return xs;ff=1;var r=df();return xs.createRoot=r.createRoot,xs.hydrateRoot=r.hydrateRoot,xs}var Gy=qy(),ze;(function(r){r.assertEqual=a=>{};function t(a){}r.assertIs=t;function o(a){throw new Error}r.assertNever=o,r.arrayToEnum=a=>{const l={};for(const u of a)l[u]=u;return l},r.getValidEnumValues=a=>{const l=r.objectKeys(a).filter(d=>typeof a[a[d]]!="number"),u={};for(const d of l)u[d]=a[d];return r.objectValues(u)},r.objectValues=a=>r.objectKeys(a).map(function(l){return a[l]}),r.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const l=[];for(const u in a)Object.prototype.hasOwnProperty.call(a,u)&&l.push(u);return l},r.find=(a,l)=>{for(const u of a)if(l(u))return u},r.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function i(a,l=" | "){return a.map(u=>typeof u=="string"?`'${u}'`:u).join(l)}r.joinValues=i,r.jsonStringifyReplacer=(a,l)=>typeof l=="bigint"?l.toString():l})(ze||(ze={}));var pf;(function(r){r.mergeShapes=(t,o)=>({...t,...o})})(pf||(pf={}));const me=ze.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ar=r=>{switch(typeof r){case"undefined":return me.undefined;case"string":return me.string;case"number":return Number.isNaN(r)?me.nan:me.number;case"boolean":return me.boolean;case"function":return me.function;case"bigint":return me.bigint;case"symbol":return me.symbol;case"object":return Array.isArray(r)?me.array:r===null?me.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?me.promise:typeof Map<"u"&&r instanceof Map?me.map:typeof Set<"u"&&r instanceof Set?me.set:typeof Date<"u"&&r instanceof Date?me.date:me.object;default:return me.unknown}},Y=ze.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Ln extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const o=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,o):this.__proto__=o,this.name="ZodError",this.issues=t}format(t){const o=t||function(l){return l.message},i={_errors:[]},a=l=>{for(const u of l.issues)if(u.code==="invalid_union")u.unionErrors.map(a);else if(u.code==="invalid_return_type")a(u.returnTypeError);else if(u.code==="invalid_arguments")a(u.argumentsError);else if(u.path.length===0)i._errors.push(o(u));else{let d=i,h=0;for(;h<u.path.length;){const g=u.path[h];h===u.path.length-1?(d[g]=d[g]||{_errors:[]},d[g]._errors.push(o(u))):d[g]=d[g]||{_errors:[]},d=d[g],h++}}};return a(this),i}static assert(t){if(!(t instanceof Ln))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ze.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=o=>o.message){const o={},i=[];for(const a of this.issues)a.path.length>0?(o[a.path[0]]=o[a.path[0]]||[],o[a.path[0]].push(t(a))):i.push(t(a));return{formErrors:i,fieldErrors:o}}get formErrors(){return this.flatten()}}Ln.create=r=>new Ln(r);const Al=(r,t)=>{let o;switch(r.code){case Y.invalid_type:r.received===me.undefined?o="Required":o=`Expected ${r.expected}, received ${r.received}`;break;case Y.invalid_literal:o=`Invalid literal value, expected ${JSON.stringify(r.expected,ze.jsonStringifyReplacer)}`;break;case Y.unrecognized_keys:o=`Unrecognized key(s) in object: ${ze.joinValues(r.keys,", ")}`;break;case Y.invalid_union:o="Invalid input";break;case Y.invalid_union_discriminator:o=`Invalid discriminator value. Expected ${ze.joinValues(r.options)}`;break;case Y.invalid_enum_value:o=`Invalid enum value. Expected ${ze.joinValues(r.options)}, received '${r.received}'`;break;case Y.invalid_arguments:o="Invalid function arguments";break;case Y.invalid_return_type:o="Invalid function return type";break;case Y.invalid_date:o="Invalid date";break;case Y.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(o=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(o=`${o} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?o=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?o=`Invalid input: must end with "${r.validation.endsWith}"`:ze.assertNever(r.validation):r.validation!=="regex"?o=`Invalid ${r.validation}`:o="Invalid";break;case Y.too_small:r.type==="array"?o=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?o=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?o=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?o=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:o="Invalid input";break;case Y.too_big:r.type==="array"?o=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?o=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?o=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?o=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?o=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:o="Invalid input";break;case Y.custom:o="Invalid input";break;case Y.invalid_intersection_types:o="Intersection results could not be merged";break;case Y.not_multiple_of:o=`Number must be a multiple of ${r.multipleOf}`;break;case Y.not_finite:o="Number must be finite";break;default:o=t.defaultError,ze.assertNever(r)}return{message:o}};let Qy=Al;function Yy(){return Qy}const Xy=r=>{const{data:t,path:o,errorMaps:i,issueData:a}=r,l=[...o,...a.path||[]],u={...a,path:l};if(a.message!==void 0)return{...a,path:l,message:a.message};let d="";const h=i.filter(g=>!!g).slice().reverse();for(const g of h)d=g(u,{data:t,defaultError:d}).message;return{...a,path:l,message:d}};function de(r,t){const o=Yy(),i=Xy({issueData:t,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,o,o===Al?void 0:Al].filter(a=>!!a)});r.common.issues.push(i)}class Pt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,o){const i=[];for(const a of o){if(a.status==="aborted")return Re;a.status==="dirty"&&t.dirty(),i.push(a.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,o){const i=[];for(const a of o){const l=await a.key,u=await a.value;i.push({key:l,value:u})}return Pt.mergeObjectSync(t,i)}static mergeObjectSync(t,o){const i={};for(const a of o){const{key:l,value:u}=a;if(l.status==="aborted"||u.status==="aborted")return Re;l.status==="dirty"&&t.dirty(),u.status==="dirty"&&t.dirty(),l.value!=="__proto__"&&(typeof u.value<"u"||a.alwaysSet)&&(i[l.value]=u.value)}return{status:t.value,value:i}}}const Re=Object.freeze({status:"aborted"}),pi=r=>({status:"dirty",value:r}),Gt=r=>({status:"valid",value:r}),hf=r=>r.status==="aborted",mf=r=>r.status==="dirty",yo=r=>r.status==="valid",ws=r=>typeof Promise<"u"&&r instanceof Promise;var Se;(function(r){r.errToObj=t=>typeof t=="string"?{message:t}:t||{},r.toString=t=>typeof t=="string"?t:t?.message})(Se||(Se={}));class yn{constructor(t,o,i,a){this._cachedPath=[],this.parent=t,this.data=o,this._path=i,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const gf=(r,t)=>{if(yo(t))return{success:!0,data:t.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const o=new Ln(r.common.issues);return this._error=o,this._error}}};function Te(r){if(!r)return{};const{errorMap:t,invalid_type_error:o,required_error:i,description:a}=r;if(t&&(o||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(u,d)=>{const{message:h}=r;return u.code==="invalid_enum_value"?{message:h??d.defaultError}:typeof d.data>"u"?{message:h??i??d.defaultError}:u.code!=="invalid_type"?{message:d.defaultError}:{message:h??o??d.defaultError}},description:a}}class je{get description(){return this._def.description}_getType(t){return ar(t.data)}_getOrReturnCtx(t,o){return o||{common:t.parent.common,data:t.data,parsedType:ar(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Pt,ctx:{common:t.parent.common,data:t.data,parsedType:ar(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const o=this._parse(t);if(ws(o))throw new Error("Synchronous parse encountered promise.");return o}_parseAsync(t){const o=this._parse(t);return Promise.resolve(o)}parse(t,o){const i=this.safeParse(t,o);if(i.success)return i.data;throw i.error}safeParse(t,o){const i={common:{issues:[],async:o?.async??!1,contextualErrorMap:o?.errorMap},path:o?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ar(t)},a=this._parseSync({data:t,path:i.path,parent:i});return gf(i,a)}"~validate"(t){const o={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ar(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:o});return yo(i)?{value:i.value}:{issues:o.common.issues}}catch(i){i?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),o.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:o}).then(i=>yo(i)?{value:i.value}:{issues:o.common.issues})}async parseAsync(t,o){const i=await this.safeParseAsync(t,o);if(i.success)return i.data;throw i.error}async safeParseAsync(t,o){const i={common:{issues:[],contextualErrorMap:o?.errorMap,async:!0},path:o?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ar(t)},a=this._parse({data:t,path:i.path,parent:i}),l=await(ws(a)?a:Promise.resolve(a));return gf(i,l)}refine(t,o){const i=a=>typeof o=="string"||typeof o>"u"?{message:o}:typeof o=="function"?o(a):o;return this._refinement((a,l)=>{const u=t(a),d=()=>l.addIssue({code:Y.custom,...i(a)});return typeof Promise<"u"&&u instanceof Promise?u.then(h=>h?!0:(d(),!1)):u?!0:(d(),!1)})}refinement(t,o){return this._refinement((i,a)=>t(i)?!0:(a.addIssue(typeof o=="function"?o(i,a):o),!1))}_refinement(t){return new Wr({schema:this,typeName:Pe.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:o=>this["~validate"](o)}}optional(){return Mn.create(this,this._def)}nullable(){return Kr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return xn.create(this)}promise(){return Ps.create(this,this._def)}or(t){return ks.create([this,t],this._def)}and(t){return Cs.create(this,t,this._def)}transform(t){return new Wr({...Te(this._def),schema:this,typeName:Pe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const o=typeof t=="function"?t:()=>t;return new Is({...Te(this._def),innerType:this,defaultValue:o,typeName:Pe.ZodDefault})}brand(){return new _f({typeName:Pe.ZodBranded,type:this,...Te(this._def)})}catch(t){const o=typeof t=="function"?t:()=>t;return new Os({...Te(this._def),innerType:this,catchValue:o,typeName:Pe.ZodCatch})}describe(t){const o=this.constructor;return new o({...this._def,description:t})}pipe(t){return Vl.create(this,t)}readonly(){return Ns.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Jy=/^c[^\s-]{8,}$/i,ex=/^[0-9a-z]+$/,tx=/^[0-9A-HJKMNP-TV-Z]{26}$/i,nx=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,rx=/^[a-z0-9_-]{21}$/i,ox=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ix=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,sx=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ax="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Dl;const lx=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,cx=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ux=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,dx=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,fx=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,px=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,vf="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",hx=new RegExp(`^${vf}$`);function yf(r){let t="[0-5]\\d";r.precision?t=`${t}\\.\\d{${r.precision}}`:r.precision==null&&(t=`${t}(\\.\\d+)?`);const o=r.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${o}`}function mx(r){return new RegExp(`^${yf(r)}$`)}function gx(r){let t=`${vf}T${yf(r)}`;const o=[];return o.push(r.local?"Z?":"Z"),r.offset&&o.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${o.join("|")})`,new RegExp(`^${t}$`)}function vx(r,t){return!!((t==="v4"||!t)&&lx.test(r)||(t==="v6"||!t)&&ux.test(r))}function yx(r,t){if(!ox.test(r))return!1;try{const[o]=r.split("."),i=o.replace(/-/g,"+").replace(/_/g,"/").padEnd(o.length+(4-o.length%4)%4,"="),a=JSON.parse(atob(i));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||t&&a.alg!==t)}catch{return!1}}function xx(r,t){return!!((t==="v4"||!t)&&cx.test(r)||(t==="v6"||!t)&&dx.test(r))}class $n extends je{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==me.string){const l=this._getOrReturnCtx(t);return de(l,{code:Y.invalid_type,expected:me.string,received:l.parsedType}),Re}const i=new Pt;let a;for(const l of this._def.checks)if(l.kind==="min")t.data.length<l.value&&(a=this._getOrReturnCtx(t,a),de(a,{code:Y.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),i.dirty());else if(l.kind==="max")t.data.length>l.value&&(a=this._getOrReturnCtx(t,a),de(a,{code:Y.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),i.dirty());else if(l.kind==="length"){const u=t.data.length>l.value,d=t.data.length<l.value;(u||d)&&(a=this._getOrReturnCtx(t,a),u?de(a,{code:Y.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}):d&&de(a,{code:Y.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}),i.dirty())}else if(l.kind==="email")sx.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"email",code:Y.invalid_string,message:l.message}),i.dirty());else if(l.kind==="emoji")Dl||(Dl=new RegExp(ax,"u")),Dl.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"emoji",code:Y.invalid_string,message:l.message}),i.dirty());else if(l.kind==="uuid")nx.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"uuid",code:Y.invalid_string,message:l.message}),i.dirty());else if(l.kind==="nanoid")rx.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"nanoid",code:Y.invalid_string,message:l.message}),i.dirty());else if(l.kind==="cuid")Jy.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"cuid",code:Y.invalid_string,message:l.message}),i.dirty());else if(l.kind==="cuid2")ex.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"cuid2",code:Y.invalid_string,message:l.message}),i.dirty());else if(l.kind==="ulid")tx.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"ulid",code:Y.invalid_string,message:l.message}),i.dirty());else if(l.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),de(a,{validation:"url",code:Y.invalid_string,message:l.message}),i.dirty()}else l.kind==="regex"?(l.regex.lastIndex=0,l.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"regex",code:Y.invalid_string,message:l.message}),i.dirty())):l.kind==="trim"?t.data=t.data.trim():l.kind==="includes"?t.data.includes(l.value,l.position)||(a=this._getOrReturnCtx(t,a),de(a,{code:Y.invalid_string,validation:{includes:l.value,position:l.position},message:l.message}),i.dirty()):l.kind==="toLowerCase"?t.data=t.data.toLowerCase():l.kind==="toUpperCase"?t.data=t.data.toUpperCase():l.kind==="startsWith"?t.data.startsWith(l.value)||(a=this._getOrReturnCtx(t,a),de(a,{code:Y.invalid_string,validation:{startsWith:l.value},message:l.message}),i.dirty()):l.kind==="endsWith"?t.data.endsWith(l.value)||(a=this._getOrReturnCtx(t,a),de(a,{code:Y.invalid_string,validation:{endsWith:l.value},message:l.message}),i.dirty()):l.kind==="datetime"?gx(l).test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{code:Y.invalid_string,validation:"datetime",message:l.message}),i.dirty()):l.kind==="date"?hx.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{code:Y.invalid_string,validation:"date",message:l.message}),i.dirty()):l.kind==="time"?mx(l).test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{code:Y.invalid_string,validation:"time",message:l.message}),i.dirty()):l.kind==="duration"?ix.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"duration",code:Y.invalid_string,message:l.message}),i.dirty()):l.kind==="ip"?vx(t.data,l.version)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"ip",code:Y.invalid_string,message:l.message}),i.dirty()):l.kind==="jwt"?yx(t.data,l.alg)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"jwt",code:Y.invalid_string,message:l.message}),i.dirty()):l.kind==="cidr"?xx(t.data,l.version)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"cidr",code:Y.invalid_string,message:l.message}),i.dirty()):l.kind==="base64"?fx.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"base64",code:Y.invalid_string,message:l.message}),i.dirty()):l.kind==="base64url"?px.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"base64url",code:Y.invalid_string,message:l.message}),i.dirty()):ze.assertNever(l);return{status:i.value,value:t.data}}_regex(t,o,i){return this.refinement(a=>t.test(a),{validation:o,code:Y.invalid_string,...Se.errToObj(i)})}_addCheck(t){return new $n({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Se.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Se.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Se.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Se.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Se.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Se.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Se.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Se.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Se.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Se.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Se.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Se.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Se.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...Se.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...Se.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...Se.errToObj(t)})}regex(t,o){return this._addCheck({kind:"regex",regex:t,...Se.errToObj(o)})}includes(t,o){return this._addCheck({kind:"includes",value:t,position:o?.position,...Se.errToObj(o?.message)})}startsWith(t,o){return this._addCheck({kind:"startsWith",value:t,...Se.errToObj(o)})}endsWith(t,o){return this._addCheck({kind:"endsWith",value:t,...Se.errToObj(o)})}min(t,o){return this._addCheck({kind:"min",value:t,...Se.errToObj(o)})}max(t,o){return this._addCheck({kind:"max",value:t,...Se.errToObj(o)})}length(t,o){return this._addCheck({kind:"length",value:t,...Se.errToObj(o)})}nonempty(t){return this.min(1,Se.errToObj(t))}trim(){return new $n({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new $n({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new $n({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const o of this._def.checks)o.kind==="min"&&(t===null||o.value>t)&&(t=o.value);return t}get maxLength(){let t=null;for(const o of this._def.checks)o.kind==="max"&&(t===null||o.value<t)&&(t=o.value);return t}}$n.create=r=>new $n({checks:[],typeName:Pe.ZodString,coerce:r?.coerce??!1,...Te(r)});function wx(r,t){const o=(r.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,a=o>i?o:i,l=Number.parseInt(r.toFixed(a).replace(".","")),u=Number.parseInt(t.toFixed(a).replace(".",""));return l%u/10**a}class xo extends je{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==me.number){const l=this._getOrReturnCtx(t);return de(l,{code:Y.invalid_type,expected:me.number,received:l.parsedType}),Re}let i;const a=new Pt;for(const l of this._def.checks)l.kind==="int"?ze.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),de(i,{code:Y.invalid_type,expected:"integer",received:"float",message:l.message}),a.dirty()):l.kind==="min"?(l.inclusive?t.data<l.value:t.data<=l.value)&&(i=this._getOrReturnCtx(t,i),de(i,{code:Y.too_small,minimum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),a.dirty()):l.kind==="max"?(l.inclusive?t.data>l.value:t.data>=l.value)&&(i=this._getOrReturnCtx(t,i),de(i,{code:Y.too_big,maximum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),a.dirty()):l.kind==="multipleOf"?wx(t.data,l.value)!==0&&(i=this._getOrReturnCtx(t,i),de(i,{code:Y.not_multiple_of,multipleOf:l.value,message:l.message}),a.dirty()):l.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),de(i,{code:Y.not_finite,message:l.message}),a.dirty()):ze.assertNever(l);return{status:a.value,value:t.data}}gte(t,o){return this.setLimit("min",t,!0,Se.toString(o))}gt(t,o){return this.setLimit("min",t,!1,Se.toString(o))}lte(t,o){return this.setLimit("max",t,!0,Se.toString(o))}lt(t,o){return this.setLimit("max",t,!1,Se.toString(o))}setLimit(t,o,i,a){return new xo({...this._def,checks:[...this._def.checks,{kind:t,value:o,inclusive:i,message:Se.toString(a)}]})}_addCheck(t){return new xo({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Se.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Se.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Se.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Se.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Se.toString(t)})}multipleOf(t,o){return this._addCheck({kind:"multipleOf",value:t,message:Se.toString(o)})}finite(t){return this._addCheck({kind:"finite",message:Se.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Se.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Se.toString(t)})}get minValue(){let t=null;for(const o of this._def.checks)o.kind==="min"&&(t===null||o.value>t)&&(t=o.value);return t}get maxValue(){let t=null;for(const o of this._def.checks)o.kind==="max"&&(t===null||o.value<t)&&(t=o.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ze.isInteger(t.value))}get isFinite(){let t=null,o=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(o===null||i.value>o)&&(o=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(o)&&Number.isFinite(t)}}xo.create=r=>new xo({checks:[],typeName:Pe.ZodNumber,coerce:r?.coerce||!1,...Te(r)});class hi extends je{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==me.bigint)return this._getInvalidInput(t);let i;const a=new Pt;for(const l of this._def.checks)l.kind==="min"?(l.inclusive?t.data<l.value:t.data<=l.value)&&(i=this._getOrReturnCtx(t,i),de(i,{code:Y.too_small,type:"bigint",minimum:l.value,inclusive:l.inclusive,message:l.message}),a.dirty()):l.kind==="max"?(l.inclusive?t.data>l.value:t.data>=l.value)&&(i=this._getOrReturnCtx(t,i),de(i,{code:Y.too_big,type:"bigint",maximum:l.value,inclusive:l.inclusive,message:l.message}),a.dirty()):l.kind==="multipleOf"?t.data%l.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),de(i,{code:Y.not_multiple_of,multipleOf:l.value,message:l.message}),a.dirty()):ze.assertNever(l);return{status:a.value,value:t.data}}_getInvalidInput(t){const o=this._getOrReturnCtx(t);return de(o,{code:Y.invalid_type,expected:me.bigint,received:o.parsedType}),Re}gte(t,o){return this.setLimit("min",t,!0,Se.toString(o))}gt(t,o){return this.setLimit("min",t,!1,Se.toString(o))}lte(t,o){return this.setLimit("max",t,!0,Se.toString(o))}lt(t,o){return this.setLimit("max",t,!1,Se.toString(o))}setLimit(t,o,i,a){return new hi({...this._def,checks:[...this._def.checks,{kind:t,value:o,inclusive:i,message:Se.toString(a)}]})}_addCheck(t){return new hi({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Se.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Se.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Se.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Se.toString(t)})}multipleOf(t,o){return this._addCheck({kind:"multipleOf",value:t,message:Se.toString(o)})}get minValue(){let t=null;for(const o of this._def.checks)o.kind==="min"&&(t===null||o.value>t)&&(t=o.value);return t}get maxValue(){let t=null;for(const o of this._def.checks)o.kind==="max"&&(t===null||o.value<t)&&(t=o.value);return t}}hi.create=r=>new hi({checks:[],typeName:Pe.ZodBigInt,coerce:r?.coerce??!1,...Te(r)});class Ll extends je{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==me.boolean){const i=this._getOrReturnCtx(t);return de(i,{code:Y.invalid_type,expected:me.boolean,received:i.parsedType}),Re}return Gt(t.data)}}Ll.create=r=>new Ll({typeName:Pe.ZodBoolean,coerce:r?.coerce||!1,...Te(r)});class Ss extends je{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==me.date){const l=this._getOrReturnCtx(t);return de(l,{code:Y.invalid_type,expected:me.date,received:l.parsedType}),Re}if(Number.isNaN(t.data.getTime())){const l=this._getOrReturnCtx(t);return de(l,{code:Y.invalid_date}),Re}const i=new Pt;let a;for(const l of this._def.checks)l.kind==="min"?t.data.getTime()<l.value&&(a=this._getOrReturnCtx(t,a),de(a,{code:Y.too_small,message:l.message,inclusive:!0,exact:!1,minimum:l.value,type:"date"}),i.dirty()):l.kind==="max"?t.data.getTime()>l.value&&(a=this._getOrReturnCtx(t,a),de(a,{code:Y.too_big,message:l.message,inclusive:!0,exact:!1,maximum:l.value,type:"date"}),i.dirty()):ze.assertNever(l);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Ss({...this._def,checks:[...this._def.checks,t]})}min(t,o){return this._addCheck({kind:"min",value:t.getTime(),message:Se.toString(o)})}max(t,o){return this._addCheck({kind:"max",value:t.getTime(),message:Se.toString(o)})}get minDate(){let t=null;for(const o of this._def.checks)o.kind==="min"&&(t===null||o.value>t)&&(t=o.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const o of this._def.checks)o.kind==="max"&&(t===null||o.value<t)&&(t=o.value);return t!=null?new Date(t):null}}Ss.create=r=>new Ss({checks:[],coerce:r?.coerce||!1,typeName:Pe.ZodDate,...Te(r)});class xf extends je{_parse(t){if(this._getType(t)!==me.symbol){const i=this._getOrReturnCtx(t);return de(i,{code:Y.invalid_type,expected:me.symbol,received:i.parsedType}),Re}return Gt(t.data)}}xf.create=r=>new xf({typeName:Pe.ZodSymbol,...Te(r)});class $l extends je{_parse(t){if(this._getType(t)!==me.undefined){const i=this._getOrReturnCtx(t);return de(i,{code:Y.invalid_type,expected:me.undefined,received:i.parsedType}),Re}return Gt(t.data)}}$l.create=r=>new $l({typeName:Pe.ZodUndefined,...Te(r)});class bs extends je{_parse(t){if(this._getType(t)!==me.null){const i=this._getOrReturnCtx(t);return de(i,{code:Y.invalid_type,expected:me.null,received:i.parsedType}),Re}return Gt(t.data)}}bs.create=r=>new bs({typeName:Pe.ZodNull,...Te(r)});class wf extends je{constructor(){super(...arguments),this._any=!0}_parse(t){return Gt(t.data)}}wf.create=r=>new wf({typeName:Pe.ZodAny,...Te(r)});class jl extends je{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Gt(t.data)}}jl.create=r=>new jl({typeName:Pe.ZodUnknown,...Te(r)});class lr extends je{_parse(t){const o=this._getOrReturnCtx(t);return de(o,{code:Y.invalid_type,expected:me.never,received:o.parsedType}),Re}}lr.create=r=>new lr({typeName:Pe.ZodNever,...Te(r)});class Sf extends je{_parse(t){if(this._getType(t)!==me.undefined){const i=this._getOrReturnCtx(t);return de(i,{code:Y.invalid_type,expected:me.void,received:i.parsedType}),Re}return Gt(t.data)}}Sf.create=r=>new Sf({typeName:Pe.ZodVoid,...Te(r)});class xn extends je{_parse(t){const{ctx:o,status:i}=this._processInputParams(t),a=this._def;if(o.parsedType!==me.array)return de(o,{code:Y.invalid_type,expected:me.array,received:o.parsedType}),Re;if(a.exactLength!==null){const u=o.data.length>a.exactLength.value,d=o.data.length<a.exactLength.value;(u||d)&&(de(o,{code:u?Y.too_big:Y.too_small,minimum:d?a.exactLength.value:void 0,maximum:u?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),i.dirty())}if(a.minLength!==null&&o.data.length<a.minLength.value&&(de(o,{code:Y.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),i.dirty()),a.maxLength!==null&&o.data.length>a.maxLength.value&&(de(o,{code:Y.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),i.dirty()),o.common.async)return Promise.all([...o.data].map((u,d)=>a.type._parseAsync(new yn(o,u,o.path,d)))).then(u=>Pt.mergeArray(i,u));const l=[...o.data].map((u,d)=>a.type._parseSync(new yn(o,u,o.path,d)));return Pt.mergeArray(i,l)}get element(){return this._def.type}min(t,o){return new xn({...this._def,minLength:{value:t,message:Se.toString(o)}})}max(t,o){return new xn({...this._def,maxLength:{value:t,message:Se.toString(o)}})}length(t,o){return new xn({...this._def,exactLength:{value:t,message:Se.toString(o)}})}nonempty(t){return this.min(1,t)}}xn.create=(r,t)=>new xn({type:r,minLength:null,maxLength:null,exactLength:null,typeName:Pe.ZodArray,...Te(t)});function wo(r){if(r instanceof ct){const t={};for(const o in r.shape){const i=r.shape[o];t[o]=Mn.create(wo(i))}return new ct({...r._def,shape:()=>t})}else return r instanceof xn?new xn({...r._def,type:wo(r.element)}):r instanceof Mn?Mn.create(wo(r.unwrap())):r instanceof Kr?Kr.create(wo(r.unwrap())):r instanceof Br?Br.create(r.items.map(t=>wo(t))):r}class ct extends je{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),o=ze.objectKeys(t);return this._cached={shape:t,keys:o},this._cached}_parse(t){if(this._getType(t)!==me.object){const g=this._getOrReturnCtx(t);return de(g,{code:Y.invalid_type,expected:me.object,received:g.parsedType}),Re}const{status:i,ctx:a}=this._processInputParams(t),{shape:l,keys:u}=this._getCached(),d=[];if(!(this._def.catchall instanceof lr&&this._def.unknownKeys==="strip"))for(const g in a.data)u.includes(g)||d.push(g);const h=[];for(const g of u){const v=l[g],y=a.data[g];h.push({key:{status:"valid",value:g},value:v._parse(new yn(a,y,a.path,g)),alwaysSet:g in a.data})}if(this._def.catchall instanceof lr){const g=this._def.unknownKeys;if(g==="passthrough")for(const v of d)h.push({key:{status:"valid",value:v},value:{status:"valid",value:a.data[v]}});else if(g==="strict")d.length>0&&(de(a,{code:Y.unrecognized_keys,keys:d}),i.dirty());else if(g!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const g=this._def.catchall;for(const v of d){const y=a.data[v];h.push({key:{status:"valid",value:v},value:g._parse(new yn(a,y,a.path,v)),alwaysSet:v in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const g=[];for(const v of h){const y=await v.key,w=await v.value;g.push({key:y,value:w,alwaysSet:v.alwaysSet})}return g}).then(g=>Pt.mergeObjectSync(i,g)):Pt.mergeObjectSync(i,h)}get shape(){return this._def.shape()}strict(t){return Se.errToObj,new ct({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(o,i)=>{const a=this._def.errorMap?.(o,i).message??i.defaultError;return o.code==="unrecognized_keys"?{message:Se.errToObj(t).message??a}:{message:a}}}:{}})}strip(){return new ct({...this._def,unknownKeys:"strip"})}passthrough(){return new ct({...this._def,unknownKeys:"passthrough"})}extend(t){return new ct({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new ct({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Pe.ZodObject})}setKey(t,o){return this.augment({[t]:o})}catchall(t){return new ct({...this._def,catchall:t})}pick(t){const o={};for(const i of ze.objectKeys(t))t[i]&&this.shape[i]&&(o[i]=this.shape[i]);return new ct({...this._def,shape:()=>o})}omit(t){const o={};for(const i of ze.objectKeys(this.shape))t[i]||(o[i]=this.shape[i]);return new ct({...this._def,shape:()=>o})}deepPartial(){return wo(this)}partial(t){const o={};for(const i of ze.objectKeys(this.shape)){const a=this.shape[i];t&&!t[i]?o[i]=a:o[i]=a.optional()}return new ct({...this._def,shape:()=>o})}required(t){const o={};for(const i of ze.objectKeys(this.shape))if(t&&!t[i])o[i]=this.shape[i];else{let l=this.shape[i];for(;l instanceof Mn;)l=l._def.innerType;o[i]=l}return new ct({...this._def,shape:()=>o})}keyof(){return kf(ze.objectKeys(this.shape))}}ct.create=(r,t)=>new ct({shape:()=>r,unknownKeys:"strip",catchall:lr.create(),typeName:Pe.ZodObject,...Te(t)}),ct.strictCreate=(r,t)=>new ct({shape:()=>r,unknownKeys:"strict",catchall:lr.create(),typeName:Pe.ZodObject,...Te(t)}),ct.lazycreate=(r,t)=>new ct({shape:r,unknownKeys:"strip",catchall:lr.create(),typeName:Pe.ZodObject,...Te(t)});class ks extends je{_parse(t){const{ctx:o}=this._processInputParams(t),i=this._def.options;function a(l){for(const d of l)if(d.result.status==="valid")return d.result;for(const d of l)if(d.result.status==="dirty")return o.common.issues.push(...d.ctx.common.issues),d.result;const u=l.map(d=>new Ln(d.ctx.common.issues));return de(o,{code:Y.invalid_union,unionErrors:u}),Re}if(o.common.async)return Promise.all(i.map(async l=>{const u={...o,common:{...o.common,issues:[]},parent:null};return{result:await l._parseAsync({data:o.data,path:o.path,parent:u}),ctx:u}})).then(a);{let l;const u=[];for(const h of i){const g={...o,common:{...o.common,issues:[]},parent:null},v=h._parseSync({data:o.data,path:o.path,parent:g});if(v.status==="valid")return v;v.status==="dirty"&&!l&&(l={result:v,ctx:g}),g.common.issues.length&&u.push(g.common.issues)}if(l)return o.common.issues.push(...l.ctx.common.issues),l.result;const d=u.map(h=>new Ln(h));return de(o,{code:Y.invalid_union,unionErrors:d}),Re}}get options(){return this._def.options}}ks.create=(r,t)=>new ks({options:r,typeName:Pe.ZodUnion,...Te(t)});const jn=r=>r instanceof Es?jn(r.schema):r instanceof Wr?jn(r.innerType()):r instanceof Rs?[r.value]:r instanceof Hr?r.options:r instanceof Fl?ze.objectValues(r.enum):r instanceof Is?jn(r._def.innerType):r instanceof $l?[void 0]:r instanceof bs?[null]:r instanceof Mn?[void 0,...jn(r.unwrap())]:r instanceof Kr?[null,...jn(r.unwrap())]:r instanceof _f||r instanceof Ns?jn(r.unwrap()):r instanceof Os?jn(r._def.innerType):[];class Ml extends je{_parse(t){const{ctx:o}=this._processInputParams(t);if(o.parsedType!==me.object)return de(o,{code:Y.invalid_type,expected:me.object,received:o.parsedType}),Re;const i=this.discriminator,a=o.data[i],l=this.optionsMap.get(a);return l?o.common.async?l._parseAsync({data:o.data,path:o.path,parent:o}):l._parseSync({data:o.data,path:o.path,parent:o}):(de(o,{code:Y.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),Re)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,o,i){const a=new Map;for(const l of o){const u=jn(l.shape[t]);if(!u.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const d of u){if(a.has(d))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(d)}`);a.set(d,l)}}return new Ml({typeName:Pe.ZodDiscriminatedUnion,discriminator:t,options:o,optionsMap:a,...Te(i)})}}function zl(r,t){const o=ar(r),i=ar(t);if(r===t)return{valid:!0,data:r};if(o===me.object&&i===me.object){const a=ze.objectKeys(t),l=ze.objectKeys(r).filter(d=>a.indexOf(d)!==-1),u={...r,...t};for(const d of l){const h=zl(r[d],t[d]);if(!h.valid)return{valid:!1};u[d]=h.data}return{valid:!0,data:u}}else if(o===me.array&&i===me.array){if(r.length!==t.length)return{valid:!1};const a=[];for(let l=0;l<r.length;l++){const u=r[l],d=t[l],h=zl(u,d);if(!h.valid)return{valid:!1};a.push(h.data)}return{valid:!0,data:a}}else return o===me.date&&i===me.date&&+r==+t?{valid:!0,data:r}:{valid:!1}}class Cs extends je{_parse(t){const{status:o,ctx:i}=this._processInputParams(t),a=(l,u)=>{if(hf(l)||hf(u))return Re;const d=zl(l.value,u.value);return d.valid?((mf(l)||mf(u))&&o.dirty(),{status:o.value,value:d.data}):(de(i,{code:Y.invalid_intersection_types}),Re)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([l,u])=>a(l,u)):a(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}Cs.create=(r,t,o)=>new Cs({left:r,right:t,typeName:Pe.ZodIntersection,...Te(o)});class Br extends je{_parse(t){const{status:o,ctx:i}=this._processInputParams(t);if(i.parsedType!==me.array)return de(i,{code:Y.invalid_type,expected:me.array,received:i.parsedType}),Re;if(i.data.length<this._def.items.length)return de(i,{code:Y.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Re;!this._def.rest&&i.data.length>this._def.items.length&&(de(i,{code:Y.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),o.dirty());const l=[...i.data].map((u,d)=>{const h=this._def.items[d]||this._def.rest;return h?h._parse(new yn(i,u,i.path,d)):null}).filter(u=>!!u);return i.common.async?Promise.all(l).then(u=>Pt.mergeArray(o,u)):Pt.mergeArray(o,l)}get items(){return this._def.items}rest(t){return new Br({...this._def,rest:t})}}Br.create=(r,t)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Br({items:r,typeName:Pe.ZodTuple,rest:null,...Te(t)})};class _s extends je{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:o,ctx:i}=this._processInputParams(t);if(i.parsedType!==me.object)return de(i,{code:Y.invalid_type,expected:me.object,received:i.parsedType}),Re;const a=[],l=this._def.keyType,u=this._def.valueType;for(const d in i.data)a.push({key:l._parse(new yn(i,d,i.path,d)),value:u._parse(new yn(i,i.data[d],i.path,d)),alwaysSet:d in i.data});return i.common.async?Pt.mergeObjectAsync(o,a):Pt.mergeObjectSync(o,a)}get element(){return this._def.valueType}static create(t,o,i){return o instanceof je?new _s({keyType:t,valueType:o,typeName:Pe.ZodRecord,...Te(i)}):new _s({keyType:$n.create(),valueType:t,typeName:Pe.ZodRecord,...Te(o)})}}class bf extends je{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:o,ctx:i}=this._processInputParams(t);if(i.parsedType!==me.map)return de(i,{code:Y.invalid_type,expected:me.map,received:i.parsedType}),Re;const a=this._def.keyType,l=this._def.valueType,u=[...i.data.entries()].map(([d,h],g)=>({key:a._parse(new yn(i,d,i.path,[g,"key"])),value:l._parse(new yn(i,h,i.path,[g,"value"]))}));if(i.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const h of u){const g=await h.key,v=await h.value;if(g.status==="aborted"||v.status==="aborted")return Re;(g.status==="dirty"||v.status==="dirty")&&o.dirty(),d.set(g.value,v.value)}return{status:o.value,value:d}})}else{const d=new Map;for(const h of u){const g=h.key,v=h.value;if(g.status==="aborted"||v.status==="aborted")return Re;(g.status==="dirty"||v.status==="dirty")&&o.dirty(),d.set(g.value,v.value)}return{status:o.value,value:d}}}}bf.create=(r,t,o)=>new bf({valueType:t,keyType:r,typeName:Pe.ZodMap,...Te(o)});class mi extends je{_parse(t){const{status:o,ctx:i}=this._processInputParams(t);if(i.parsedType!==me.set)return de(i,{code:Y.invalid_type,expected:me.set,received:i.parsedType}),Re;const a=this._def;a.minSize!==null&&i.data.size<a.minSize.value&&(de(i,{code:Y.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),o.dirty()),a.maxSize!==null&&i.data.size>a.maxSize.value&&(de(i,{code:Y.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),o.dirty());const l=this._def.valueType;function u(h){const g=new Set;for(const v of h){if(v.status==="aborted")return Re;v.status==="dirty"&&o.dirty(),g.add(v.value)}return{status:o.value,value:g}}const d=[...i.data.values()].map((h,g)=>l._parse(new yn(i,h,i.path,g)));return i.common.async?Promise.all(d).then(h=>u(h)):u(d)}min(t,o){return new mi({...this._def,minSize:{value:t,message:Se.toString(o)}})}max(t,o){return new mi({...this._def,maxSize:{value:t,message:Se.toString(o)}})}size(t,o){return this.min(t,o).max(t,o)}nonempty(t){return this.min(1,t)}}mi.create=(r,t)=>new mi({valueType:r,minSize:null,maxSize:null,typeName:Pe.ZodSet,...Te(t)});class Es extends je{get schema(){return this._def.getter()}_parse(t){const{ctx:o}=this._processInputParams(t);return this._def.getter()._parse({data:o.data,path:o.path,parent:o})}}Es.create=(r,t)=>new Es({getter:r,typeName:Pe.ZodLazy,...Te(t)});class Rs extends je{_parse(t){if(t.data!==this._def.value){const o=this._getOrReturnCtx(t);return de(o,{received:o.data,code:Y.invalid_literal,expected:this._def.value}),Re}return{status:"valid",value:t.data}}get value(){return this._def.value}}Rs.create=(r,t)=>new Rs({value:r,typeName:Pe.ZodLiteral,...Te(t)});function kf(r,t){return new Hr({values:r,typeName:Pe.ZodEnum,...Te(t)})}class Hr extends je{_parse(t){if(typeof t.data!="string"){const o=this._getOrReturnCtx(t),i=this._def.values;return de(o,{expected:ze.joinValues(i),received:o.parsedType,code:Y.invalid_type}),Re}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const o=this._getOrReturnCtx(t),i=this._def.values;return de(o,{received:o.data,code:Y.invalid_enum_value,options:i}),Re}return Gt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const o of this._def.values)t[o]=o;return t}get Values(){const t={};for(const o of this._def.values)t[o]=o;return t}get Enum(){const t={};for(const o of this._def.values)t[o]=o;return t}extract(t,o=this._def){return Hr.create(t,{...this._def,...o})}exclude(t,o=this._def){return Hr.create(this.options.filter(i=>!t.includes(i)),{...this._def,...o})}}Hr.create=kf;class Fl extends je{_parse(t){const o=ze.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==me.string&&i.parsedType!==me.number){const a=ze.objectValues(o);return de(i,{expected:ze.joinValues(a),received:i.parsedType,code:Y.invalid_type}),Re}if(this._cache||(this._cache=new Set(ze.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const a=ze.objectValues(o);return de(i,{received:i.data,code:Y.invalid_enum_value,options:a}),Re}return Gt(t.data)}get enum(){return this._def.values}}Fl.create=(r,t)=>new Fl({values:r,typeName:Pe.ZodNativeEnum,...Te(t)});class Ps extends je{unwrap(){return this._def.type}_parse(t){const{ctx:o}=this._processInputParams(t);if(o.parsedType!==me.promise&&o.common.async===!1)return de(o,{code:Y.invalid_type,expected:me.promise,received:o.parsedType}),Re;const i=o.parsedType===me.promise?o.data:Promise.resolve(o.data);return Gt(i.then(a=>this._def.type.parseAsync(a,{path:o.path,errorMap:o.common.contextualErrorMap})))}}Ps.create=(r,t)=>new Ps({type:r,typeName:Pe.ZodPromise,...Te(t)});class Wr extends je{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Pe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:o,ctx:i}=this._processInputParams(t),a=this._def.effect||null,l={addIssue:u=>{de(i,u),u.fatal?o.abort():o.dirty()},get path(){return i.path}};if(l.addIssue=l.addIssue.bind(l),a.type==="preprocess"){const u=a.transform(i.data,l);if(i.common.async)return Promise.resolve(u).then(async d=>{if(o.value==="aborted")return Re;const h=await this._def.schema._parseAsync({data:d,path:i.path,parent:i});return h.status==="aborted"?Re:h.status==="dirty"||o.value==="dirty"?pi(h.value):h});{if(o.value==="aborted")return Re;const d=this._def.schema._parseSync({data:u,path:i.path,parent:i});return d.status==="aborted"?Re:d.status==="dirty"||o.value==="dirty"?pi(d.value):d}}if(a.type==="refinement"){const u=d=>{const h=a.refinement(d,l);if(i.common.async)return Promise.resolve(h);if(h instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return d};if(i.common.async===!1){const d=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return d.status==="aborted"?Re:(d.status==="dirty"&&o.dirty(),u(d.value),{status:o.value,value:d.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(d=>d.status==="aborted"?Re:(d.status==="dirty"&&o.dirty(),u(d.value).then(()=>({status:o.value,value:d.value}))))}if(a.type==="transform")if(i.common.async===!1){const u=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!yo(u))return Re;const d=a.transform(u.value,l);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:o.value,value:d}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(u=>yo(u)?Promise.resolve(a.transform(u.value,l)).then(d=>({status:o.value,value:d})):Re);ze.assertNever(a)}}Wr.create=(r,t,o)=>new Wr({schema:r,typeName:Pe.ZodEffects,effect:t,...Te(o)}),Wr.createWithPreprocess=(r,t,o)=>new Wr({schema:t,effect:{type:"preprocess",transform:r},typeName:Pe.ZodEffects,...Te(o)});class Mn extends je{_parse(t){return this._getType(t)===me.undefined?Gt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Mn.create=(r,t)=>new Mn({innerType:r,typeName:Pe.ZodOptional,...Te(t)});class Kr extends je{_parse(t){return this._getType(t)===me.null?Gt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Kr.create=(r,t)=>new Kr({innerType:r,typeName:Pe.ZodNullable,...Te(t)});class Is extends je{_parse(t){const{ctx:o}=this._processInputParams(t);let i=o.data;return o.parsedType===me.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:o.path,parent:o})}removeDefault(){return this._def.innerType}}Is.create=(r,t)=>new Is({innerType:r,typeName:Pe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Te(t)});class Os extends je{_parse(t){const{ctx:o}=this._processInputParams(t),i={...o,common:{...o.common,issues:[]}},a=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return ws(a)?a.then(l=>({status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new Ln(i.common.issues)},input:i.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Ln(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}Os.create=(r,t)=>new Os({innerType:r,typeName:Pe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Te(t)});class Cf extends je{_parse(t){if(this._getType(t)!==me.nan){const i=this._getOrReturnCtx(t);return de(i,{code:Y.invalid_type,expected:me.nan,received:i.parsedType}),Re}return{status:"valid",value:t.data}}}Cf.create=r=>new Cf({typeName:Pe.ZodNaN,...Te(r)});class _f extends je{_parse(t){const{ctx:o}=this._processInputParams(t),i=o.data;return this._def.type._parse({data:i,path:o.path,parent:o})}unwrap(){return this._def.type}}class Vl extends je{_parse(t){const{status:o,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{const l=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return l.status==="aborted"?Re:l.status==="dirty"?(o.dirty(),pi(l.value)):this._def.out._parseAsync({data:l.value,path:i.path,parent:i})})();{const a=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?Re:a.status==="dirty"?(o.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:i.path,parent:i})}}static create(t,o){return new Vl({in:t,out:o,typeName:Pe.ZodPipeline})}}class Ns extends je{_parse(t){const o=this._def.innerType._parse(t),i=a=>(yo(a)&&(a.value=Object.freeze(a.value)),a);return ws(o)?o.then(a=>i(a)):i(o)}unwrap(){return this._def.innerType}}Ns.create=(r,t)=>new Ns({innerType:r,typeName:Pe.ZodReadonly,...Te(t)});var Pe;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline",r.ZodReadonly="ZodReadonly"})(Pe||(Pe={}));const ne=$n.create,ft=xo.create,Lt=Ll.create,cr=bs.create,Zr=jl.create;lr.create;const nt=xn.create,we=ct.create,zn=ks.create,Ef=Ml.create;Cs.create,Br.create;const ur=_s.create,Sx=Es.create,Xe=Rs.create,Fn=Hr.create;Ps.create,Mn.create,Kr.create;function Rf(r){var t,o,i="";if(typeof r=="string"||typeof r=="number")i+=r;else if(typeof r=="object")if(Array.isArray(r)){var a=r.length;for(t=0;t<a;t++)r[t]&&(o=Rf(r[t]))&&(i&&(i+=" "),i+=o)}else for(o in r)r[o]&&(i&&(i+=" "),i+=o);return i}function Pf(){for(var r,t,o=0,i="",a=arguments.length;o<a;o++)(r=arguments[o])&&(t=Rf(r))&&(i&&(i+=" "),i+=t);return i}const bx=(r,t)=>{const o=new Array(r.length+t.length);for(let i=0;i<r.length;i++)o[i]=r[i];for(let i=0;i<t.length;i++)o[r.length+i]=t[i];return o},kx=(r,t)=>({classGroupId:r,validator:t}),If=(r=new Map,t=null,o)=>({nextPart:r,validators:t,classGroupId:o}),Ts="-",Of=[],Cx="arbitrary..",_x=r=>{const t=Rx(r),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=r;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return Ex(u);const d=u.split(Ts),h=d[0]===""&&d.length>1?1:0;return Nf(d,h,t)},getConflictingClassGroupIds:(u,d)=>{if(d){const h=i[u],g=o[u];return h?g?bx(g,h):h:g||Of}return o[u]||Of}}},Nf=(r,t,o)=>{if(r.length-t===0)return o.classGroupId;const a=r[t],l=o.nextPart.get(a);if(l){const g=Nf(r,t+1,l);if(g)return g}const u=o.validators;if(u===null)return;const d=t===0?r.join(Ts):r.slice(t).join(Ts),h=u.length;for(let g=0;g<h;g++){const v=u[g];if(v.validator(d))return v.classGroupId}},Ex=r=>r.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=r.slice(1,-1),o=t.indexOf(":"),i=t.slice(0,o);return i?Cx+i:void 0})(),Rx=r=>{const{theme:t,classGroups:o}=r;return Px(o,t)},Px=(r,t)=>{const o=If();for(const i in r){const a=r[i];Ul(a,o,i,t)}return o},Ul=(r,t,o,i)=>{const a=r.length;for(let l=0;l<a;l++){const u=r[l];Ix(u,t,o,i)}},Ix=(r,t,o,i)=>{if(typeof r=="string"){Ox(r,t,o);return}if(typeof r=="function"){Nx(r,t,o,i);return}Tx(r,t,o,i)},Ox=(r,t,o)=>{const i=r===""?t:Tf(t,r);i.classGroupId=o},Nx=(r,t,o,i)=>{if(Ax(r)){Ul(r(i),t,o,i);return}t.validators===null&&(t.validators=[]),t.validators.push(kx(o,r))},Tx=(r,t,o,i)=>{const a=Object.entries(r),l=a.length;for(let u=0;u<l;u++){const[d,h]=a[u];Ul(h,Tf(t,d),o,i)}},Tf=(r,t)=>{let o=r;const i=t.split(Ts),a=i.length;for(let l=0;l<a;l++){const u=i[l];let d=o.nextPart.get(u);d||(d=If(),o.nextPart.set(u,d)),o=d}return o},Ax=r=>"isThemeGetter"in r&&r.isThemeGetter===!0,Dx=r=>{if(r<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),i=Object.create(null);const a=(l,u)=>{o[l]=u,t++,t>r&&(t=0,i=o,o=Object.create(null))};return{get(l){let u=o[l];if(u!==void 0)return u;if((u=i[l])!==void 0)return a(l,u),u},set(l,u){l in o?o[l]=u:a(l,u)}}},Bl="!",Af=":",Lx=[],Df=(r,t,o,i,a)=>({modifiers:r,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:i,isExternal:a}),$x=r=>{const{prefix:t,experimentalParseClassName:o}=r;let i=a=>{const l=[];let u=0,d=0,h=0,g;const v=a.length;for(let _=0;_<v;_++){const k=a[_];if(u===0&&d===0){if(k===Af){l.push(a.slice(h,_)),h=_+1;continue}if(k==="/"){g=_;continue}}k==="["?u++:k==="]"?u--:k==="("?d++:k===")"&&d--}const y=l.length===0?a:a.slice(h);let w=y,b=!1;y.endsWith(Bl)?(w=y.slice(0,-1),b=!0):y.startsWith(Bl)&&(w=y.slice(1),b=!0);const S=g&&g>h?g-h:void 0;return Df(l,b,w,S)};if(t){const a=t+Af,l=i;i=u=>u.startsWith(a)?l(u.slice(a.length)):Df(Lx,!1,u,void 0,!0)}if(o){const a=i;i=l=>o({className:l,parseClassName:a})}return i},jx=r=>{const t=new Map;return r.orderSensitiveModifiers.forEach((o,i)=>{t.set(o,1e6+i)}),o=>{const i=[];let a=[];for(let l=0;l<o.length;l++){const u=o[l],d=u[0]==="[",h=t.has(u);d||h?(a.length>0&&(a.sort(),i.push(...a),a=[]),i.push(u)):a.push(u)}return a.length>0&&(a.sort(),i.push(...a)),i}},Mx=r=>({cache:Dx(r.cacheSize),parseClassName:$x(r),sortModifiers:jx(r),postfixLookupClassGroupIds:zx(r),..._x(r)}),zx=r=>{const t=Object.create(null),o=r.postfixLookupClassGroups;if(o)for(let i=0;i<o.length;i++)t[o[i]]=!0;return t},Fx=/\s+/,Vx=(r,t)=>{const{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:a,sortModifiers:l,postfixLookupClassGroupIds:u}=t,d=[],h=r.trim().split(Fx);let g="";for(let v=h.length-1;v>=0;v-=1){const y=h[v],{isExternal:w,modifiers:b,hasImportantModifier:S,baseClassName:_,maybePostfixModifierPosition:k}=o(y);if(w){g=y+(g.length>0?" "+g:g);continue}let T=!!k,D;if(T){const B=_.substring(0,k);D=i(B);const j=D&&u[D]?i(_):void 0;j&&j!==D&&(D=j,T=!1)}else D=i(_);if(!D){if(!T){g=y+(g.length>0?" "+g:g);continue}if(D=i(_),!D){g=y+(g.length>0?" "+g:g);continue}T=!1}const N=b.length===0?"":b.length===1?b[0]:l(b).join(":"),I=S?N+Bl:N,V=I+D;if(d.indexOf(V)>-1)continue;d.push(V);const L=a(D,T);for(let B=0;B<L.length;++B){const j=L[B];d.push(I+j)}g=y+(g.length>0?" "+g:g)}return g},Ux=(...r)=>{let t=0,o,i,a="";for(;t<r.length;)(o=r[t++])&&(i=Lf(o))&&(a&&(a+=" "),a+=i);return a},Lf=r=>{if(typeof r=="string")return r;let t,o="";for(let i=0;i<r.length;i++)r[i]&&(t=Lf(r[i]))&&(o&&(o+=" "),o+=t);return o},Bx=(r,...t)=>{let o,i,a,l;const u=h=>{const g=t.reduce((v,y)=>y(v),r());return o=Mx(g),i=o.cache.get,a=o.cache.set,l=d,d(h)},d=h=>{const g=i(h);if(g)return g;const v=Vx(h,o);return a(h,v),v};return l=u,(...h)=>l(Ux(...h))},Hx=[],pt=r=>{const t=o=>o[r]||Hx;return t.isThemeGetter=!0,t},$f=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,jf=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Wx=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Kx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Zx=/\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$/,qx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Gx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,dr=r=>Wx.test(r),De=r=>!!r&&!Number.isNaN(Number(r)),wn=r=>!!r&&Number.isInteger(Number(r)),Hl=r=>r.endsWith("%")&&De(r.slice(0,-1)),Vn=r=>Kx.test(r),Mf=()=>!0,Yx=r=>Zx.test(r)&&!qx.test(r),Wl=()=>!1,Xx=r=>Gx.test(r),Jx=r=>Qx.test(r),e0=r=>!he(r)&&!ge(r),t0=r=>r.startsWith("@container")&&(r[10]==="/"&&r[11]!==void 0||r[11]==="s"&&r[16]!==void 0&&r.startsWith("-size/",10)||r[11]==="n"&&r[18]!==void 0&&r.startsWith("-normal/",10)),n0=r=>fr(r,Hf,Wl),he=r=>$f.test(r),qr=r=>fr(r,Wf,Yx),zf=r=>fr(r,u0,De),r0=r=>fr(r,Zf,Mf),o0=r=>fr(r,Kf,Wl),Ff=r=>fr(r,Uf,Wl),i0=r=>fr(r,Bf,Jx),As=r=>fr(r,qf,Xx),ge=r=>jf.test(r),gi=r=>Gr(r,Wf),s0=r=>Gr(r,Kf),Vf=r=>Gr(r,Uf),a0=r=>Gr(r,Hf),l0=r=>Gr(r,Bf),Ds=r=>Gr(r,qf,!0),c0=r=>Gr(r,Zf,!0),fr=(r,t,o)=>{const i=$f.exec(r);return i?i[1]?t(i[1]):o(i[2]):!1},Gr=(r,t,o=!1)=>{const i=jf.exec(r);return i?i[1]?t(i[1]):o:!1},Uf=r=>r==="position"||r==="percentage",Bf=r=>r==="image"||r==="url",Hf=r=>r==="length"||r==="size"||r==="bg-size",Wf=r=>r==="length",u0=r=>r==="number",Kf=r=>r==="family-name",Zf=r=>r==="number"||r==="weight",qf=r=>r==="shadow",d0=Bx(()=>{const r=pt("color"),t=pt("font"),o=pt("text"),i=pt("font-weight"),a=pt("tracking"),l=pt("leading"),u=pt("breakpoint"),d=pt("container"),h=pt("spacing"),g=pt("radius"),v=pt("shadow"),y=pt("inset-shadow"),w=pt("text-shadow"),b=pt("drop-shadow"),S=pt("blur"),_=pt("perspective"),k=pt("aspect"),T=pt("ease"),D=pt("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],V=()=>[...I(),ge,he],L=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],j=()=>[ge,he,h],Q=()=>[dr,"full","auto",...j()],ae=()=>[wn,"none","subgrid",ge,he],Ce=()=>["auto",{span:["full",wn,ge,he]},wn,ge,he],ce=()=>[wn,"auto",ge,he],le=()=>["auto","min","max","fr",ge,he],fe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ke=()=>["start","end","center","stretch","center-safe","end-safe"],re=()=>["auto",...j()],se=()=>[dr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],U=()=>[dr,"screen","full","dvw","lvw","svw","min","max","fit",...j()],G=()=>[dr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...j()],z=()=>[r,ge,he],P=()=>[...I(),Vf,Ff,{position:[ge,he]}],E=()=>["no-repeat",{repeat:["","x","y","space","round"]}],W=()=>["auto","cover","contain",a0,n0,{size:[ge,he]}],X=()=>[Hl,gi,qr],H=()=>["","none","full",g,ge,he],J=()=>["",De,gi,qr],ue=()=>["solid","dashed","dotted","double"],ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ie=()=>[De,Hl,Vf,Ff],Ae=()=>["","none",S,ge,he],$e=()=>["none",De,ge,he],Me=()=>["none",De,ge,he],Ue=()=>[De,ge,he],oe=()=>[dr,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Vn],breakpoint:[Vn],color:[Mf],container:[Vn],"drop-shadow":[Vn],ease:["in","out","in-out"],font:[e0],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Vn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Vn],shadow:[Vn],spacing:["px",De],text:[Vn],"text-shadow":[Vn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",dr,he,ge,k]}],container:["container"],"container-type":[{"@container":["","normal","size",ge,he]}],"container-named":[t0],columns:[{columns:[De,he,ge,d]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"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:V()}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Q()}],"inset-x":[{"inset-x":Q()}],"inset-y":[{"inset-y":Q()}],start:[{"inset-s":Q(),start:Q()}],end:[{"inset-e":Q(),end:Q()}],"inset-bs":[{"inset-bs":Q()}],"inset-be":[{"inset-be":Q()}],top:[{top:Q()}],right:[{right:Q()}],bottom:[{bottom:Q()}],left:[{left:Q()}],visibility:["visible","invisible","collapse"],z:[{z:[wn,"auto",ge,he]}],basis:[{basis:[dr,"full","auto",d,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[De,dr,"auto","initial","none",he]}],grow:[{grow:["",De,ge,he]}],shrink:[{shrink:["",De,ge,he]}],order:[{order:[wn,"first","last","none",ge,he]}],"grid-cols":[{"grid-cols":ae()}],"col-start-end":[{col:Ce()}],"col-start":[{"col-start":ce()}],"col-end":[{"col-end":ce()}],"grid-rows":[{"grid-rows":ae()}],"row-start-end":[{row:Ce()}],"row-start":[{"row-start":ce()}],"row-end":[{"row-end":ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...fe(),"normal"]}],"justify-items":[{"justify-items":[...ke(),"normal"]}],"justify-self":[{"justify-self":["auto",...ke()]}],"align-content":[{content:["normal",...fe()]}],"align-items":[{items:[...ke(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ke(),{baseline:["","last"]}]}],"place-content":[{"place-content":fe()}],"place-items":[{"place-items":[...ke(),"baseline"]}],"place-self":[{"place-self":["auto",...ke()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pbs:[{pbs:j()}],pbe:[{pbe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:re()}],mx:[{mx:re()}],my:[{my:re()}],ms:[{ms:re()}],me:[{me:re()}],mbs:[{mbs:re()}],mbe:[{mbe:re()}],mt:[{mt:re()}],mr:[{mr:re()}],mb:[{mb:re()}],ml:[{ml:re()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:se()}],"inline-size":[{inline:["auto",...U()]}],"min-inline-size":[{"min-inline":["auto",...U()]}],"max-inline-size":[{"max-inline":["none",...U()]}],"block-size":[{block:["auto",...G()]}],"min-block-size":[{"min-block":["auto",...G()]}],"max-block-size":[{"max-block":["none",...G()]}],w:[{w:[d,"screen",...se()]}],"min-w":[{"min-w":[d,"screen","none",...se()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[u]},...se()]}],h:[{h:["screen","lh",...se()]}],"min-h":[{"min-h":["screen","lh","none",...se()]}],"max-h":[{"max-h":["screen","lh",...se()]}],"font-size":[{text:["base",o,gi,qr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,c0,r0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Hl,he]}],"font-family":[{font:[s0,o0,t]}],"font-features":[{"font-features":[he]}],"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:[a,ge,he]}],"line-clamp":[{"line-clamp":[De,"none",ge,zf]}],leading:[{leading:[l,...j()]}],"list-image":[{"list-image":["none",ge,he]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ge,he]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:z()}],"text-color":[{text:z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ue(),"wavy"]}],"text-decoration-thickness":[{decoration:[De,"from-font","auto",ge,qr]}],"text-decoration-color":[{decoration:z()}],"underline-offset":[{"underline-offset":[De,"auto",ge,he]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"tab-size":[{tab:[wn,ge,he]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge,he]}],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",ge,he]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:E()}],"bg-size":[{bg:W()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},wn,ge,he],radial:["",ge,he],conic:[wn,ge,he]},l0,i0]}],"bg-color":[{bg:z()}],"gradient-from-pos":[{from:X()}],"gradient-via-pos":[{via:X()}],"gradient-to-pos":[{to:X()}],"gradient-from":[{from:z()}],"gradient-via":[{via:z()}],"gradient-to":[{to:z()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-bs":[{"border-bs":J()}],"border-w-be":[{"border-be":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ue(),"hidden","none"]}],"divide-style":[{divide:[...ue(),"hidden","none"]}],"border-color":[{border:z()}],"border-color-x":[{"border-x":z()}],"border-color-y":[{"border-y":z()}],"border-color-s":[{"border-s":z()}],"border-color-e":[{"border-e":z()}],"border-color-bs":[{"border-bs":z()}],"border-color-be":[{"border-be":z()}],"border-color-t":[{"border-t":z()}],"border-color-r":[{"border-r":z()}],"border-color-b":[{"border-b":z()}],"border-color-l":[{"border-l":z()}],"divide-color":[{divide:z()}],"outline-style":[{outline:[...ue(),"none","hidden"]}],"outline-offset":[{"outline-offset":[De,ge,he]}],"outline-w":[{outline:["",De,gi,qr]}],"outline-color":[{outline:z()}],shadow:[{shadow:["","none",v,Ds,As]}],"shadow-color":[{shadow:z()}],"inset-shadow":[{"inset-shadow":["none",y,Ds,As]}],"inset-shadow-color":[{"inset-shadow":z()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:z()}],"ring-offset-w":[{"ring-offset":[De,qr]}],"ring-offset-color":[{"ring-offset":z()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":z()}],"text-shadow":[{"text-shadow":["none",w,Ds,As]}],"text-shadow-color":[{"text-shadow":z()}],opacity:[{opacity:[De,ge,he]}],"mix-blend":[{"mix-blend":[...ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ee()}],"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":[De]}],"mask-image-linear-from-pos":[{"mask-linear-from":ie()}],"mask-image-linear-to-pos":[{"mask-linear-to":ie()}],"mask-image-linear-from-color":[{"mask-linear-from":z()}],"mask-image-linear-to-color":[{"mask-linear-to":z()}],"mask-image-t-from-pos":[{"mask-t-from":ie()}],"mask-image-t-to-pos":[{"mask-t-to":ie()}],"mask-image-t-from-color":[{"mask-t-from":z()}],"mask-image-t-to-color":[{"mask-t-to":z()}],"mask-image-r-from-pos":[{"mask-r-from":ie()}],"mask-image-r-to-pos":[{"mask-r-to":ie()}],"mask-image-r-from-color":[{"mask-r-from":z()}],"mask-image-r-to-color":[{"mask-r-to":z()}],"mask-image-b-from-pos":[{"mask-b-from":ie()}],"mask-image-b-to-pos":[{"mask-b-to":ie()}],"mask-image-b-from-color":[{"mask-b-from":z()}],"mask-image-b-to-color":[{"mask-b-to":z()}],"mask-image-l-from-pos":[{"mask-l-from":ie()}],"mask-image-l-to-pos":[{"mask-l-to":ie()}],"mask-image-l-from-color":[{"mask-l-from":z()}],"mask-image-l-to-color":[{"mask-l-to":z()}],"mask-image-x-from-pos":[{"mask-x-from":ie()}],"mask-image-x-to-pos":[{"mask-x-to":ie()}],"mask-image-x-from-color":[{"mask-x-from":z()}],"mask-image-x-to-color":[{"mask-x-to":z()}],"mask-image-y-from-pos":[{"mask-y-from":ie()}],"mask-image-y-to-pos":[{"mask-y-to":ie()}],"mask-image-y-from-color":[{"mask-y-from":z()}],"mask-image-y-to-color":[{"mask-y-to":z()}],"mask-image-radial":[{"mask-radial":[ge,he]}],"mask-image-radial-from-pos":[{"mask-radial-from":ie()}],"mask-image-radial-to-pos":[{"mask-radial-to":ie()}],"mask-image-radial-from-color":[{"mask-radial-from":z()}],"mask-image-radial-to-color":[{"mask-radial-to":z()}],"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":I()}],"mask-image-conic-pos":[{"mask-conic":[De]}],"mask-image-conic-from-pos":[{"mask-conic-from":ie()}],"mask-image-conic-to-pos":[{"mask-conic-to":ie()}],"mask-image-conic-from-color":[{"mask-conic-from":z()}],"mask-image-conic-to-color":[{"mask-conic-to":z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:E()}],"mask-size":[{mask:W()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,he]}],filter:[{filter:["","none",ge,he]}],blur:[{blur:Ae()}],brightness:[{brightness:[De,ge,he]}],contrast:[{contrast:[De,ge,he]}],"drop-shadow":[{"drop-shadow":["","none",b,Ds,As]}],"drop-shadow-color":[{"drop-shadow":z()}],grayscale:[{grayscale:["",De,ge,he]}],"hue-rotate":[{"hue-rotate":[De,ge,he]}],invert:[{invert:["",De,ge,he]}],saturate:[{saturate:[De,ge,he]}],sepia:[{sepia:["",De,ge,he]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,he]}],"backdrop-blur":[{"backdrop-blur":Ae()}],"backdrop-brightness":[{"backdrop-brightness":[De,ge,he]}],"backdrop-contrast":[{"backdrop-contrast":[De,ge,he]}],"backdrop-grayscale":[{"backdrop-grayscale":["",De,ge,he]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[De,ge,he]}],"backdrop-invert":[{"backdrop-invert":["",De,ge,he]}],"backdrop-opacity":[{"backdrop-opacity":[De,ge,he]}],"backdrop-saturate":[{"backdrop-saturate":[De,ge,he]}],"backdrop-sepia":[{"backdrop-sepia":["",De,ge,he]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ge,he]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[De,"initial",ge,he]}],ease:[{ease:["linear","initial",T,ge,he]}],delay:[{delay:[De,ge,he]}],animate:[{animate:["none",D,ge,he]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,ge,he]}],"perspective-origin":[{"perspective-origin":V()}],rotate:[{rotate:$e()}],"rotate-x":[{"rotate-x":$e()}],"rotate-y":[{"rotate-y":$e()}],"rotate-z":[{"rotate-z":$e()}],scale:[{scale:Me()}],"scale-x":[{"scale-x":Me()}],"scale-y":[{"scale-y":Me()}],"scale-z":[{"scale-z":Me()}],"scale-3d":["scale-3d"],skew:[{skew:Ue()}],"skew-x":[{"skew-x":Ue()}],"skew-y":[{"skew-y":Ue()}],transform:[{transform:[ge,he,"","none","gpu","cpu"]}],"transform-origin":[{origin:V()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:oe()}],"translate-x":[{"translate-x":oe()}],"translate-y":[{"translate-y":oe()}],"translate-z":[{"translate-z":oe()}],"translate-none":["translate-none"],zoom:[{zoom:[wn,ge,he]}],accent:[{accent:z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:z()}],"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",ge,he]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":z()}],"scrollbar-track-color":[{"scrollbar-track":z()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mbs":[{"scroll-mbs":j()}],"scroll-mbe":[{"scroll-mbe":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pbs":[{"scroll-pbs":j()}],"scroll-pbe":[{"scroll-pbe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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",ge,he]}],fill:[{fill:["none",...z()]}],"stroke-w":[{stroke:[De,gi,qr,zf]}],stroke:[{stroke:["none",...z()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function f0(r={}){const t=r.styleId??"xpert-shadcn-ui-theme-vars";if(typeof document>"u")return;r.density==="compact"?document.documentElement.dataset.xuiDensity="compact":r.density==="default"&&delete document.documentElement.dataset.xuiDensity;let o=document.getElementById(t);o||(o=document.createElement("style"),o.id=t,document.head.appendChild(o)),o.textContent=`
|
|
8
|
+
`+p.stack}return{value:e,source:n,stack:f,digest:null}}function Ad(e,n,s){return{value:e,source:null,stack:s??null,digest:n??null}}function Ld(e,n){try{console.error(n.value)}catch(s){setTimeout(function(){throw s})}}var $E=typeof WeakMap=="function"?WeakMap:Map;function iy(e,n,s){s=cr(-1,s),s.tag=3,s.payload={element:null};var c=n.value;return s.callback=function(){bl||(bl=!0,Qd=c),Ld(e,n)},s}function sy(e,n,s){s=cr(-1,s),s.tag=3;var c=e.type.getDerivedStateFromError;if(typeof c=="function"){var f=n.value;s.payload=function(){return c(f)},s.callback=function(){Ld(e,n)}}var p=e.stateNode;return p!==null&&typeof p.componentDidCatch=="function"&&(s.callback=function(){Ld(e,n),typeof c!="function"&&(Ur===null?Ur=new Set([this]):Ur.add(this));var x=n.stack;this.componentDidCatch(n.value,{componentStack:x!==null?x:""})}),s}function ay(e,n,s){var c=e.pingCache;if(c===null){c=e.pingCache=new $E;var f=new Set;c.set(n,f)}else f=c.get(n),f===void 0&&(f=new Set,c.set(n,f));f.has(s)||(f.add(s),e=QE.bind(null,e,n,s),n.then(e,e))}function ly(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function cy(e,n,s,c,f){return(e.mode&1)===0?(e===n?e.flags|=65536:(e.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(n=cr(-1,1),n.tag=2,Fr(s,n,1))),s.lanes|=1),e):(e.flags|=65536,e.lanes=f,e)}var jE=O.ReactCurrentOwner,Bt=!1;function Lt(e,n,s,c){n.child=e===null?Iv(n,null,s,c):fi(n,e.child,s,c)}function uy(e,n,s,c,f){s=s.render;var p=n.ref;return hi(n,f),c=Ed(e,n,s,c,p,f),s=Rd(),e!==null&&!Bt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~f,ur(e,n,f)):(rt&&s&&cd(n),n.flags|=1,Lt(e,n,c,f),n.child)}function dy(e,n,s,c,f){if(e===null){var p=s.type;return typeof p=="function"&&!rf(p)&&p.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(n.tag=15,n.type=p,fy(e,n,p,c,f)):(e=Pl(s.type,null,c,n,n.mode,f),e.ref=n.ref,e.return=n,n.child=e)}if(p=e.child,(e.lanes&f)===0){var x=p.memoizedProps;if(s=s.compare,s=s!==null?s:as,s(x,c)&&e.ref===n.ref)return ur(e,n,f)}return n.flags|=1,e=Kr(p,c),e.ref=n.ref,e.return=n,n.child=e}function fy(e,n,s,c,f){if(e!==null){var p=e.memoizedProps;if(as(p,c)&&e.ref===n.ref)if(Bt=!1,n.pendingProps=c=p,(e.lanes&f)!==0)(e.flags&131072)!==0&&(Bt=!0);else return n.lanes=e.lanes,ur(e,n,f)}return $d(e,n,s,c,f)}function py(e,n,s){var c=n.pendingProps,f=c.children,p=e!==null?e.memoizedState:null;if(c.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},Je(yi,Yt),Yt|=s;else{if((s&1073741824)===0)return e=p!==null?p.baseLanes|s:s,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,Je(yi,Yt),Yt|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=p!==null?p.baseLanes:s,Je(yi,Yt),Yt|=c}else p!==null?(c=p.baseLanes|s,n.memoizedState=null):c=s,Je(yi,Yt),Yt|=c;return Lt(e,n,f,s),n.child}function hy(e,n){var s=n.ref;(e===null&&s!==null||e!==null&&e.ref!==s)&&(n.flags|=512,n.flags|=2097152)}function $d(e,n,s,c,f){var p=Ut(s)?ho:Rt.current;return p=li(n,p),hi(n,f),s=Ed(e,n,s,c,p,f),c=Rd(),e!==null&&!Bt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~f,ur(e,n,f)):(rt&&c&&cd(n),n.flags|=1,Lt(e,n,s,f),n.child)}function my(e,n,s,c,f){if(Ut(s)){var p=!0;Ja(n)}else p=!1;if(hi(n,f),n.stateNode===null)vl(e,n),ry(n,s,c),Dd(n,s,c,f),c=!0;else if(e===null){var x=n.stateNode,C=n.memoizedProps;x.props=C;var P=x.context,F=s.contextType;typeof F=="object"&&F!==null?F=on(F):(F=Ut(s)?ho:Rt.current,F=li(n,F));var Z=s.getDerivedStateFromProps,q=typeof Z=="function"||typeof x.getSnapshotBeforeUpdate=="function";q||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(C!==c||P!==F)&&oy(n,x,c,F),zr=!1;var K=n.memoizedState;x.state=K,ll(n,c,x,f),P=n.memoizedState,C!==c||K!==P||Vt.current||zr?(typeof Z=="function"&&(Td(n,s,Z,c),P=n.memoizedState),(C=zr||ny(n,s,C,c,K,P,F))?(q||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(n.flags|=4194308)):(typeof x.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=c,n.memoizedState=P),x.props=c,x.state=P,x.context=F,c=C):(typeof x.componentDidMount=="function"&&(n.flags|=4194308),c=!1)}else{x=n.stateNode,Nv(e,n),C=n.memoizedProps,F=n.type===n.elementType?C:gn(n.type,C),x.props=F,q=n.pendingProps,K=x.context,P=s.contextType,typeof P=="object"&&P!==null?P=on(P):(P=Ut(s)?ho:Rt.current,P=li(n,P));var fe=s.getDerivedStateFromProps;(Z=typeof fe=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(C!==q||K!==P)&&oy(n,x,c,P),zr=!1,K=n.memoizedState,x.state=K,ll(n,c,x,f);var ye=n.memoizedState;C!==q||K!==ye||Vt.current||zr?(typeof fe=="function"&&(Td(n,s,fe,c),ye=n.memoizedState),(F=zr||ny(n,s,F,c,K,ye,P)||!1)?(Z||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(c,ye,P),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(c,ye,P)),typeof x.componentDidUpdate=="function"&&(n.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof x.componentDidUpdate!="function"||C===e.memoizedProps&&K===e.memoizedState||(n.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||C===e.memoizedProps&&K===e.memoizedState||(n.flags|=1024),n.memoizedProps=c,n.memoizedState=ye),x.props=c,x.state=ye,x.context=P,c=F):(typeof x.componentDidUpdate!="function"||C===e.memoizedProps&&K===e.memoizedState||(n.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||C===e.memoizedProps&&K===e.memoizedState||(n.flags|=1024),c=!1)}return jd(e,n,s,c,p,f)}function jd(e,n,s,c,f,p){hy(e,n);var x=(n.flags&128)!==0;if(!c&&!x)return f&&wv(n,s,!1),ur(e,n,p);c=n.stateNode,jE.current=n;var C=x&&typeof s.getDerivedStateFromError!="function"?null:c.render();return n.flags|=1,e!==null&&x?(n.child=fi(n,e.child,null,p),n.child=fi(n,null,C,p)):Lt(e,n,C,p),n.memoizedState=c.state,f&&wv(n,s,!0),n.child}function gy(e){var n=e.stateNode;n.pendingContext?yv(e,n.pendingContext,n.pendingContext!==n.context):n.context&&yv(e,n.context,!1),wd(e,n.containerInfo)}function vy(e,n,s,c,f){return di(),pd(f),n.flags|=256,Lt(e,n,s,c),n.child}var Md={dehydrated:null,treeContext:null,retryLane:0};function zd(e){return{baseLanes:e,cachePool:null,transitions:null}}function yy(e,n,s){var c=n.pendingProps,f=st.current,p=!1,x=(n.flags&128)!==0,C;if((C=x)||(C=e!==null&&e.memoizedState===null?!1:(f&2)!==0),C?(p=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(f|=1),Je(st,f&1),e===null)return fd(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((n.mode&1)===0?n.lanes=1:e.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(x=c.children,e=c.fallback,p?(c=n.mode,p=n.child,x={mode:"hidden",children:x},(c&1)===0&&p!==null?(p.childLanes=0,p.pendingProps=x):p=Il(x,c,0,null),e=Co(e,c,s,null),p.return=n,e.return=n,p.sibling=e,n.child=p,n.child.memoizedState=zd(s),n.memoizedState=Md,e):Fd(n,x));if(f=e.memoizedState,f!==null&&(C=f.dehydrated,C!==null))return ME(e,n,x,c,C,f,s);if(p){p=c.fallback,x=n.mode,f=e.child,C=f.sibling;var P={mode:"hidden",children:c.children};return(x&1)===0&&n.child!==f?(c=n.child,c.childLanes=0,c.pendingProps=P,n.deletions=null):(c=Kr(f,P),c.subtreeFlags=f.subtreeFlags&14680064),C!==null?p=Kr(C,p):(p=Co(p,x,s,null),p.flags|=2),p.return=n,c.return=n,c.sibling=p,n.child=c,c=p,p=n.child,x=e.child.memoizedState,x=x===null?zd(s):{baseLanes:x.baseLanes|s,cachePool:null,transitions:x.transitions},p.memoizedState=x,p.childLanes=e.childLanes&~s,n.memoizedState=Md,c}return p=e.child,e=p.sibling,c=Kr(p,{mode:"visible",children:c.children}),(n.mode&1)===0&&(c.lanes=s),c.return=n,c.sibling=null,e!==null&&(s=n.deletions,s===null?(n.deletions=[e],n.flags|=16):s.push(e)),n.child=c,n.memoizedState=null,c}function Fd(e,n){return n=Il({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function gl(e,n,s,c){return c!==null&&pd(c),fi(n,e.child,null,s),e=Fd(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function ME(e,n,s,c,f,p,x){if(s)return n.flags&256?(n.flags&=-257,c=Ad(Error(o(422))),gl(e,n,x,c)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(p=c.fallback,f=n.mode,c=Il({mode:"visible",children:c.children},f,0,null),p=Co(p,f,x,null),p.flags|=2,c.return=n,p.return=n,c.sibling=p,n.child=c,(n.mode&1)!==0&&fi(n,e.child,null,x),n.child.memoizedState=zd(x),n.memoizedState=Md,p);if((n.mode&1)===0)return gl(e,n,x,null);if(f.data==="$!"){if(c=f.nextSibling&&f.nextSibling.dataset,c)var C=c.dgst;return c=C,p=Error(o(419)),c=Ad(p,c,void 0),gl(e,n,x,c)}if(C=(x&e.childLanes)!==0,Bt||C){if(c=kt,c!==null){switch(x&-x){case 4:f=2;break;case 16:f=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:f=32;break;case 536870912:f=268435456;break;default:f=0}f=(f&(c.suspendedLanes|x))!==0?0:f,f!==0&&f!==p.retryLane&&(p.retryLane=f,lr(e,f),xn(c,e,f,-1))}return nf(),c=Ad(Error(o(421))),gl(e,n,x,c)}return f.data==="$?"?(n.flags|=128,n.child=e.child,n=YE.bind(null,e),f._reactRetry=n,null):(e=p.treeContext,Qt=Lr(f.nextSibling),Gt=n,rt=!0,mn=null,e!==null&&(nn[rn++]=sr,nn[rn++]=ar,nn[rn++]=mo,sr=e.id,ar=e.overflow,mo=n),n=Fd(n,c.children),n.flags|=4096,n)}function xy(e,n,s){e.lanes|=n;var c=e.alternate;c!==null&&(c.lanes|=n),vd(e.return,n,s)}function Vd(e,n,s,c,f){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:f}:(p.isBackwards=n,p.rendering=null,p.renderingStartTime=0,p.last=c,p.tail=s,p.tailMode=f)}function wy(e,n,s){var c=n.pendingProps,f=c.revealOrder,p=c.tail;if(Lt(e,n,c.children,s),c=st.current,(c&2)!==0)c=c&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&xy(e,s,n);else if(e.tag===19)xy(e,s,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}c&=1}if(Je(st,c),(n.mode&1)===0)n.memoizedState=null;else switch(f){case"forwards":for(s=n.child,f=null;s!==null;)e=s.alternate,e!==null&&cl(e)===null&&(f=s),s=s.sibling;s=f,s===null?(f=n.child,n.child=null):(f=s.sibling,s.sibling=null),Vd(n,!1,f,s,p);break;case"backwards":for(s=null,f=n.child,n.child=null;f!==null;){if(e=f.alternate,e!==null&&cl(e)===null){n.child=f;break}e=f.sibling,f.sibling=s,s=f,f=e}Vd(n,!0,s,null,p);break;case"together":Vd(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function vl(e,n){(n.mode&1)===0&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function ur(e,n,s){if(e!==null&&(n.dependencies=e.dependencies),wo|=n.lanes,(s&n.childLanes)===0)return null;if(e!==null&&n.child!==e.child)throw Error(o(153));if(n.child!==null){for(e=n.child,s=Kr(e,e.pendingProps),n.child=s,s.return=n;e.sibling!==null;)e=e.sibling,s=s.sibling=Kr(e,e.pendingProps),s.return=n;s.sibling=null}return n.child}function zE(e,n,s){switch(n.tag){case 3:gy(n),di();break;case 5:Av(n);break;case 1:Ut(n.type)&&Ja(n);break;case 4:wd(n,n.stateNode.containerInfo);break;case 10:var c=n.type._context,f=n.memoizedProps.value;Je(il,c._currentValue),c._currentValue=f;break;case 13:if(c=n.memoizedState,c!==null)return c.dehydrated!==null?(Je(st,st.current&1),n.flags|=128,null):(s&n.child.childLanes)!==0?yy(e,n,s):(Je(st,st.current&1),e=ur(e,n,s),e!==null?e.sibling:null);Je(st,st.current&1);break;case 19:if(c=(s&n.childLanes)!==0,(e.flags&128)!==0){if(c)return wy(e,n,s);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),Je(st,st.current),c)break;return null;case 22:case 23:return n.lanes=0,py(e,n,s)}return ur(e,n,s)}var Sy,Ud,by,ky;Sy=function(e,n){for(var s=n.child;s!==null;){if(s.tag===5||s.tag===6)e.appendChild(s.stateNode);else if(s.tag!==4&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===n)break;for(;s.sibling===null;){if(s.return===null||s.return===n)return;s=s.return}s.sibling.return=s.return,s=s.sibling}},Ud=function(){},by=function(e,n,s,c){var f=e.memoizedProps;if(f!==c){e=n.stateNode,yo($n.current);var p=null;switch(s){case"input":f=ot(e,f),c=ot(e,c),p=[];break;case"select":f=z({},f,{value:void 0}),c=z({},c,{value:void 0}),p=[];break;case"textarea":f=Qo(e,f),c=Qo(e,c),p=[];break;default:typeof f.onClick!="function"&&typeof c.onClick=="function"&&(e.onclick=Qa)}bu(s,c);var x;s=null;for(F in f)if(!c.hasOwnProperty(F)&&f.hasOwnProperty(F)&&f[F]!=null)if(F==="style"){var C=f[F];for(x in C)C.hasOwnProperty(x)&&(s||(s={}),s[x]="")}else F!=="dangerouslySetInnerHTML"&&F!=="children"&&F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&F!=="autoFocus"&&(a.hasOwnProperty(F)?p||(p=[]):(p=p||[]).push(F,null));for(F in c){var P=c[F];if(C=f?.[F],c.hasOwnProperty(F)&&P!==C&&(P!=null||C!=null))if(F==="style")if(C){for(x in C)!C.hasOwnProperty(x)||P&&P.hasOwnProperty(x)||(s||(s={}),s[x]="");for(x in P)P.hasOwnProperty(x)&&C[x]!==P[x]&&(s||(s={}),s[x]=P[x])}else s||(p||(p=[]),p.push(F,s)),s=P;else F==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,C=C?C.__html:void 0,P!=null&&C!==P&&(p=p||[]).push(F,P)):F==="children"?typeof P!="string"&&typeof P!="number"||(p=p||[]).push(F,""+P):F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&(a.hasOwnProperty(F)?(P!=null&&F==="onScroll"&&et("scroll",e),p||C===P||(p=[])):(p=p||[]).push(F,P))}s&&(p=p||[]).push("style",s);var F=p;(n.updateQueue=F)&&(n.flags|=4)}},ky=function(e,n,s,c){s!==c&&(n.flags|=4)};function bs(e,n){if(!rt)switch(e.tailMode){case"hidden":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:c.sibling=null}}function It(e){var n=e.alternate!==null&&e.alternate.child===e.child,s=0,c=0;if(n)for(var f=e.child;f!==null;)s|=f.lanes|f.childLanes,c|=f.subtreeFlags&14680064,c|=f.flags&14680064,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)s|=f.lanes|f.childLanes,c|=f.subtreeFlags,c|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=c,e.childLanes=s,n}function FE(e,n,s){var c=n.pendingProps;switch(ud(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return It(n),null;case 1:return Ut(n.type)&&Xa(),It(n),null;case 3:return c=n.stateNode,mi(),tt(Vt),tt(Rt),kd(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(e===null||e.child===null)&&(rl(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,mn!==null&&(Jd(mn),mn=null))),Ud(e,n),It(n),null;case 5:Sd(n);var f=yo(vs.current);if(s=n.type,e!==null&&n.stateNode!=null)by(e,n,s,c,f),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!c){if(n.stateNode===null)throw Error(o(166));return It(n),null}if(e=yo($n.current),rl(n)){c=n.stateNode,s=n.type;var p=n.memoizedProps;switch(c[Ln]=n,c[fs]=p,e=(n.mode&1)!==0,s){case"dialog":et("cancel",c),et("close",c);break;case"iframe":case"object":case"embed":et("load",c);break;case"video":case"audio":for(f=0;f<cs.length;f++)et(cs[f],c);break;case"source":et("error",c);break;case"img":case"image":case"link":et("error",c),et("load",c);break;case"details":et("toggle",c);break;case"input":it(c,p),et("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!p.multiple},et("invalid",c);break;case"textarea":Wi(c,p),et("invalid",c)}bu(s,p),f=null;for(var x in p)if(p.hasOwnProperty(x)){var C=p[x];x==="children"?typeof C=="string"?c.textContent!==C&&(p.suppressHydrationWarning!==!0&&Ga(c.textContent,C,e),f=["children",C]):typeof C=="number"&&c.textContent!==""+C&&(p.suppressHydrationWarning!==!0&&Ga(c.textContent,C,e),f=["children",""+C]):a.hasOwnProperty(x)&&C!=null&&x==="onScroll"&&et("scroll",c)}switch(s){case"input":$e(c),rr(c,p,!0);break;case"textarea":$e(c),Ne(c);break;case"select":case"option":break;default:typeof p.onClick=="function"&&(c.onclick=Qa)}c=f,n.updateQueue=c,c!==null&&(n.flags|=4)}else{x=f.nodeType===9?f:f.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ye(s)),e==="http://www.w3.org/1999/xhtml"?s==="script"?(e=x.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof c.is=="string"?e=x.createElement(s,{is:c.is}):(e=x.createElement(s),s==="select"&&(x=e,c.multiple?x.multiple=!0:c.size&&(x.size=c.size))):e=x.createElementNS(e,s),e[Ln]=n,e[fs]=c,Sy(e,n,!1,!1),n.stateNode=e;e:{switch(x=ku(s,c),s){case"dialog":et("cancel",e),et("close",e),f=c;break;case"iframe":case"object":case"embed":et("load",e),f=c;break;case"video":case"audio":for(f=0;f<cs.length;f++)et(cs[f],e);f=c;break;case"source":et("error",e),f=c;break;case"img":case"image":case"link":et("error",e),et("load",e),f=c;break;case"details":et("toggle",e),f=c;break;case"input":it(e,c),f=ot(e,c),et("invalid",e);break;case"option":f=c;break;case"select":e._wrapperState={wasMultiple:!!c.multiple},f=z({},c,{value:void 0}),et("invalid",e);break;case"textarea":Wi(e,c),f=Qo(e,c),et("invalid",e);break;default:f=c}bu(s,f),C=f;for(p in C)if(C.hasOwnProperty(p)){var P=C[p];p==="style"?fg(e,P):p==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,P!=null&&Ft(e,P)):p==="children"?typeof P=="string"?(s!=="textarea"||P!=="")&&Pr(e,P):typeof P=="number"&&Pr(e,""+P):p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&p!=="autoFocus"&&(a.hasOwnProperty(p)?P!=null&&p==="onScroll"&&et("scroll",e):P!=null&&T(e,p,P,x))}switch(s){case"input":$e(e),rr(e,c,!1);break;case"textarea":$e(e),Ne(e);break;case"option":c.value!=null&&e.setAttribute("value",""+X(c.value));break;case"select":e.multiple=!!c.multiple,p=c.value,p!=null?Rr(e,!!c.multiple,p,!1):c.defaultValue!=null&&Rr(e,!!c.multiple,c.defaultValue,!0);break;default:typeof f.onClick=="function"&&(e.onclick=Qa)}switch(s){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return It(n),null;case 6:if(e&&n.stateNode!=null)ky(e,n,e.memoizedProps,c);else{if(typeof c!="string"&&n.stateNode===null)throw Error(o(166));if(s=yo(vs.current),yo($n.current),rl(n)){if(c=n.stateNode,s=n.memoizedProps,c[Ln]=n,(p=c.nodeValue!==s)&&(e=Gt,e!==null))switch(e.tag){case 3:Ga(c.nodeValue,s,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ga(c.nodeValue,s,(e.mode&1)!==0)}p&&(n.flags|=4)}else c=(s.nodeType===9?s:s.ownerDocument).createTextNode(c),c[Ln]=n,n.stateNode=c}return It(n),null;case 13:if(tt(st),c=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(rt&&Qt!==null&&(n.mode&1)!==0&&(n.flags&128)===0)Ev(),di(),n.flags|=98560,p=!1;else if(p=rl(n),c!==null&&c.dehydrated!==null){if(e===null){if(!p)throw Error(o(318));if(p=n.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(o(317));p[Ln]=n}else di(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;It(n),p=!1}else mn!==null&&(Jd(mn),mn=null),p=!0;if(!p)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=s,n):(c=c!==null,c!==(e!==null&&e.memoizedState!==null)&&c&&(n.child.flags|=8192,(n.mode&1)!==0&&(e===null||(st.current&1)!==0?yt===0&&(yt=3):nf())),n.updateQueue!==null&&(n.flags|=4),It(n),null);case 4:return mi(),Ud(e,n),e===null&&us(n.stateNode.containerInfo),It(n),null;case 10:return gd(n.type._context),It(n),null;case 17:return Ut(n.type)&&Xa(),It(n),null;case 19:if(tt(st),p=n.memoizedState,p===null)return It(n),null;if(c=(n.flags&128)!==0,x=p.rendering,x===null)if(c)bs(p,!1);else{if(yt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(x=cl(e),x!==null){for(n.flags|=128,bs(p,!1),c=x.updateQueue,c!==null&&(n.updateQueue=c,n.flags|=4),n.subtreeFlags=0,c=s,s=n.child;s!==null;)p=s,e=c,p.flags&=14680066,x=p.alternate,x===null?(p.childLanes=0,p.lanes=e,p.child=null,p.subtreeFlags=0,p.memoizedProps=null,p.memoizedState=null,p.updateQueue=null,p.dependencies=null,p.stateNode=null):(p.childLanes=x.childLanes,p.lanes=x.lanes,p.child=x.child,p.subtreeFlags=0,p.deletions=null,p.memoizedProps=x.memoizedProps,p.memoizedState=x.memoizedState,p.updateQueue=x.updateQueue,p.type=x.type,e=x.dependencies,p.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),s=s.sibling;return Je(st,st.current&1|2),n.child}e=e.sibling}p.tail!==null&&ct()>xi&&(n.flags|=128,c=!0,bs(p,!1),n.lanes=4194304)}else{if(!c)if(e=cl(x),e!==null){if(n.flags|=128,c=!0,s=e.updateQueue,s!==null&&(n.updateQueue=s,n.flags|=4),bs(p,!0),p.tail===null&&p.tailMode==="hidden"&&!x.alternate&&!rt)return It(n),null}else 2*ct()-p.renderingStartTime>xi&&s!==1073741824&&(n.flags|=128,c=!0,bs(p,!1),n.lanes=4194304);p.isBackwards?(x.sibling=n.child,n.child=x):(s=p.last,s!==null?s.sibling=x:n.child=x,p.last=x)}return p.tail!==null?(n=p.tail,p.rendering=n,p.tail=n.sibling,p.renderingStartTime=ct(),n.sibling=null,s=st.current,Je(st,c?s&1|2:s&1),n):(It(n),null);case 22:case 23:return tf(),c=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==c&&(n.flags|=8192),c&&(n.mode&1)!==0?(Yt&1073741824)!==0&&(It(n),n.subtreeFlags&6&&(n.flags|=8192)):It(n),null;case 24:return null;case 25:return null}throw Error(o(156,n.tag))}function VE(e,n){switch(ud(n),n.tag){case 1:return Ut(n.type)&&Xa(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return mi(),tt(Vt),tt(Rt),kd(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return Sd(n),null;case 13:if(tt(st),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(o(340));di()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return tt(st),null;case 4:return mi(),null;case 10:return gd(n.type._context),null;case 22:case 23:return tf(),null;case 24:return null;default:return null}}var yl=!1,Ot=!1,UE=typeof WeakSet=="function"?WeakSet:Set,ve=null;function vi(e,n){var s=e.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(c){lt(e,n,c)}else s.current=null}function Bd(e,n,s){try{s()}catch(c){lt(e,n,c)}}var Cy=!1;function BE(e,n){if(td=Ma,e=nv(),Zu(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var c=s.getSelection&&s.getSelection();if(c&&c.rangeCount!==0){s=c.anchorNode;var f=c.anchorOffset,p=c.focusNode;c=c.focusOffset;try{s.nodeType,p.nodeType}catch{s=null;break e}var x=0,C=-1,P=-1,F=0,Z=0,q=e,K=null;t:for(;;){for(var fe;q!==s||f!==0&&q.nodeType!==3||(C=x+f),q!==p||c!==0&&q.nodeType!==3||(P=x+c),q.nodeType===3&&(x+=q.nodeValue.length),(fe=q.firstChild)!==null;)K=q,q=fe;for(;;){if(q===e)break t;if(K===s&&++F===f&&(C=x),K===p&&++Z===c&&(P=x),(fe=q.nextSibling)!==null)break;q=K,K=q.parentNode}q=fe}s=C===-1||P===-1?null:{start:C,end:P}}else s=null}s=s||{start:0,end:0}}else s=null;for(nd={focusedElem:e,selectionRange:s},Ma=!1,ve=n;ve!==null;)if(n=ve,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,ve=e;else for(;ve!==null;){n=ve;try{var ye=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(ye!==null){var we=ye.memoizedProps,ut=ye.memoizedState,$=n.stateNode,N=$.getSnapshotBeforeUpdate(n.elementType===n.type?we:gn(n.type,we),ut);$.__reactInternalSnapshotBeforeUpdate=N}break;case 3:var M=n.stateNode.containerInfo;M.nodeType===1?M.textContent="":M.nodeType===9&&M.documentElement&&M.removeChild(M.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(ee){lt(n,n.return,ee)}if(e=n.sibling,e!==null){e.return=n.return,ve=e;break}ve=n.return}return ye=Cy,Cy=!1,ye}function ks(e,n,s){var c=n.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var f=c=c.next;do{if((f.tag&e)===e){var p=f.destroy;f.destroy=void 0,p!==void 0&&Bd(n,s,p)}f=f.next}while(f!==c)}}function xl(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var s=n=n.next;do{if((s.tag&e)===e){var c=s.create;s.destroy=c()}s=s.next}while(s!==n)}}function Hd(e){var n=e.ref;if(n!==null){var s=e.stateNode;e.tag,e=s,typeof n=="function"?n(e):n.current=e}}function _y(e){var n=e.alternate;n!==null&&(e.alternate=null,_y(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Ln],delete n[fs],delete n[sd],delete n[_E],delete n[EE])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ey(e){return e.tag===5||e.tag===3||e.tag===4}function Ry(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ey(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Wd(e,n,s){var c=e.tag;if(c===5||c===6)e=e.stateNode,n?s.nodeType===8?s.parentNode.insertBefore(e,n):s.insertBefore(e,n):(s.nodeType===8?(n=s.parentNode,n.insertBefore(e,s)):(n=s,n.appendChild(e)),s=s._reactRootContainer,s!=null||n.onclick!==null||(n.onclick=Qa));else if(c!==4&&(e=e.child,e!==null))for(Wd(e,n,s),e=e.sibling;e!==null;)Wd(e,n,s),e=e.sibling}function Kd(e,n,s){var c=e.tag;if(c===5||c===6)e=e.stateNode,n?s.insertBefore(e,n):s.appendChild(e);else if(c!==4&&(e=e.child,e!==null))for(Kd(e,n,s),e=e.sibling;e!==null;)Kd(e,n,s),e=e.sibling}var _t=null,vn=!1;function Vr(e,n,s){for(s=s.child;s!==null;)Py(e,n,s),s=s.sibling}function Py(e,n,s){if(An&&typeof An.onCommitFiberUnmount=="function")try{An.onCommitFiberUnmount(Ta,s)}catch{}switch(s.tag){case 5:Ot||vi(s,n);case 6:var c=_t,f=vn;_t=null,Vr(e,n,s),_t=c,vn=f,_t!==null&&(vn?(e=_t,s=s.stateNode,e.nodeType===8?e.parentNode.removeChild(s):e.removeChild(s)):_t.removeChild(s.stateNode));break;case 18:_t!==null&&(vn?(e=_t,s=s.stateNode,e.nodeType===8?id(e.parentNode,s):e.nodeType===1&&id(e,s),ts(e)):id(_t,s.stateNode));break;case 4:c=_t,f=vn,_t=s.stateNode.containerInfo,vn=!0,Vr(e,n,s),_t=c,vn=f;break;case 0:case 11:case 14:case 15:if(!Ot&&(c=s.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){f=c=c.next;do{var p=f,x=p.destroy;p=p.tag,x!==void 0&&((p&2)!==0||(p&4)!==0)&&Bd(s,n,x),f=f.next}while(f!==c)}Vr(e,n,s);break;case 1:if(!Ot&&(vi(s,n),c=s.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=s.memoizedProps,c.state=s.memoizedState,c.componentWillUnmount()}catch(C){lt(s,n,C)}Vr(e,n,s);break;case 21:Vr(e,n,s);break;case 22:s.mode&1?(Ot=(c=Ot)||s.memoizedState!==null,Vr(e,n,s),Ot=c):Vr(e,n,s);break;default:Vr(e,n,s)}}function Iy(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var s=e.stateNode;s===null&&(s=e.stateNode=new UE),n.forEach(function(c){var f=XE.bind(null,e,c);s.has(c)||(s.add(c),c.then(f,f))})}}function yn(e,n){var s=n.deletions;if(s!==null)for(var c=0;c<s.length;c++){var f=s[c];try{var p=e,x=n,C=x;e:for(;C!==null;){switch(C.tag){case 5:_t=C.stateNode,vn=!1;break e;case 3:_t=C.stateNode.containerInfo,vn=!0;break e;case 4:_t=C.stateNode.containerInfo,vn=!0;break e}C=C.return}if(_t===null)throw Error(o(160));Py(p,x,f),_t=null,vn=!1;var P=f.alternate;P!==null&&(P.return=null),f.return=null}catch(F){lt(f,n,F)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)Oy(n,e),n=n.sibling}function Oy(e,n){var s=e.alternate,c=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(yn(n,e),Mn(e),c&4){try{ks(3,e,e.return),xl(3,e)}catch(we){lt(e,e.return,we)}try{ks(5,e,e.return)}catch(we){lt(e,e.return,we)}}break;case 1:yn(n,e),Mn(e),c&512&&s!==null&&vi(s,s.return);break;case 5:if(yn(n,e),Mn(e),c&512&&s!==null&&vi(s,s.return),e.flags&32){var f=e.stateNode;try{Pr(f,"")}catch(we){lt(e,e.return,we)}}if(c&4&&(f=e.stateNode,f!=null)){var p=e.memoizedProps,x=s!==null?s.memoizedProps:p,C=e.type,P=e.updateQueue;if(e.updateQueue=null,P!==null)try{C==="input"&&p.type==="radio"&&p.name!=null&&St(f,p),ku(C,x);var F=ku(C,p);for(x=0;x<P.length;x+=2){var Z=P[x],q=P[x+1];Z==="style"?fg(f,q):Z==="dangerouslySetInnerHTML"?Ft(f,q):Z==="children"?Pr(f,q):T(f,Z,q,F)}switch(C){case"input":Tn(f,p);break;case"textarea":ie(f,p);break;case"select":var K=f._wrapperState.wasMultiple;f._wrapperState.wasMultiple=!!p.multiple;var fe=p.value;fe!=null?Rr(f,!!p.multiple,fe,!1):K!==!!p.multiple&&(p.defaultValue!=null?Rr(f,!!p.multiple,p.defaultValue,!0):Rr(f,!!p.multiple,p.multiple?[]:"",!1))}f[fs]=p}catch(we){lt(e,e.return,we)}}break;case 6:if(yn(n,e),Mn(e),c&4){if(e.stateNode===null)throw Error(o(162));f=e.stateNode,p=e.memoizedProps;try{f.nodeValue=p}catch(we){lt(e,e.return,we)}}break;case 3:if(yn(n,e),Mn(e),c&4&&s!==null&&s.memoizedState.isDehydrated)try{ts(n.containerInfo)}catch(we){lt(e,e.return,we)}break;case 4:yn(n,e),Mn(e);break;case 13:yn(n,e),Mn(e),f=e.child,f.flags&8192&&(p=f.memoizedState!==null,f.stateNode.isHidden=p,!p||f.alternate!==null&&f.alternate.memoizedState!==null||(Gd=ct())),c&4&&Iy(e);break;case 22:if(Z=s!==null&&s.memoizedState!==null,e.mode&1?(Ot=(F=Ot)||Z,yn(n,e),Ot=F):yn(n,e),Mn(e),c&8192){if(F=e.memoizedState!==null,(e.stateNode.isHidden=F)&&!Z&&(e.mode&1)!==0)for(ve=e,Z=e.child;Z!==null;){for(q=ve=Z;ve!==null;){switch(K=ve,fe=K.child,K.tag){case 0:case 11:case 14:case 15:ks(4,K,K.return);break;case 1:vi(K,K.return);var ye=K.stateNode;if(typeof ye.componentWillUnmount=="function"){c=K,s=K.return;try{n=c,ye.props=n.memoizedProps,ye.state=n.memoizedState,ye.componentWillUnmount()}catch(we){lt(c,s,we)}}break;case 5:vi(K,K.return);break;case 22:if(K.memoizedState!==null){Dy(q);continue}}fe!==null?(fe.return=K,ve=fe):Dy(q)}Z=Z.sibling}e:for(Z=null,q=e;;){if(q.tag===5){if(Z===null){Z=q;try{f=q.stateNode,F?(p=f.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none"):(C=q.stateNode,P=q.memoizedProps.style,x=P!=null&&P.hasOwnProperty("display")?P.display:null,C.style.display=dg("display",x))}catch(we){lt(e,e.return,we)}}}else if(q.tag===6){if(Z===null)try{q.stateNode.nodeValue=F?"":q.memoizedProps}catch(we){lt(e,e.return,we)}}else if((q.tag!==22&&q.tag!==23||q.memoizedState===null||q===e)&&q.child!==null){q.child.return=q,q=q.child;continue}if(q===e)break e;for(;q.sibling===null;){if(q.return===null||q.return===e)break e;Z===q&&(Z=null),q=q.return}Z===q&&(Z=null),q.sibling.return=q.return,q=q.sibling}}break;case 19:yn(n,e),Mn(e),c&4&&Iy(e);break;case 21:break;default:yn(n,e),Mn(e)}}function Mn(e){var n=e.flags;if(n&2){try{e:{for(var s=e.return;s!==null;){if(Ey(s)){var c=s;break e}s=s.return}throw Error(o(160))}switch(c.tag){case 5:var f=c.stateNode;c.flags&32&&(Pr(f,""),c.flags&=-33);var p=Ry(e);Kd(e,p,f);break;case 3:case 4:var x=c.stateNode.containerInfo,C=Ry(e);Wd(e,C,x);break;default:throw Error(o(161))}}catch(P){lt(e,e.return,P)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function HE(e,n,s){ve=e,Ny(e)}function Ny(e,n,s){for(var c=(e.mode&1)!==0;ve!==null;){var f=ve,p=f.child;if(f.tag===22&&c){var x=f.memoizedState!==null||yl;if(!x){var C=f.alternate,P=C!==null&&C.memoizedState!==null||Ot;C=yl;var F=Ot;if(yl=x,(Ot=P)&&!F)for(ve=f;ve!==null;)x=ve,P=x.child,x.tag===22&&x.memoizedState!==null?Ay(f):P!==null?(P.return=x,ve=P):Ay(f);for(;p!==null;)ve=p,Ny(p),p=p.sibling;ve=f,yl=C,Ot=F}Ty(e)}else(f.subtreeFlags&8772)!==0&&p!==null?(p.return=f,ve=p):Ty(e)}}function Ty(e){for(;ve!==null;){var n=ve;if((n.flags&8772)!==0){var s=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:Ot||xl(5,n);break;case 1:var c=n.stateNode;if(n.flags&4&&!Ot)if(s===null)c.componentDidMount();else{var f=n.elementType===n.type?s.memoizedProps:gn(n.type,s.memoizedProps);c.componentDidUpdate(f,s.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var p=n.updateQueue;p!==null&&Dv(n,p,c);break;case 3:var x=n.updateQueue;if(x!==null){if(s=null,n.child!==null)switch(n.child.tag){case 5:s=n.child.stateNode;break;case 1:s=n.child.stateNode}Dv(n,x,s)}break;case 5:var C=n.stateNode;if(s===null&&n.flags&4){s=C;var P=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":P.autoFocus&&s.focus();break;case"img":P.src&&(s.src=P.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var F=n.alternate;if(F!==null){var Z=F.memoizedState;if(Z!==null){var q=Z.dehydrated;q!==null&&ts(q)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}Ot||n.flags&512&&Hd(n)}catch(K){lt(n,n.return,K)}}if(n===e){ve=null;break}if(s=n.sibling,s!==null){s.return=n.return,ve=s;break}ve=n.return}}function Dy(e){for(;ve!==null;){var n=ve;if(n===e){ve=null;break}var s=n.sibling;if(s!==null){s.return=n.return,ve=s;break}ve=n.return}}function Ay(e){for(;ve!==null;){var n=ve;try{switch(n.tag){case 0:case 11:case 15:var s=n.return;try{xl(4,n)}catch(P){lt(n,s,P)}break;case 1:var c=n.stateNode;if(typeof c.componentDidMount=="function"){var f=n.return;try{c.componentDidMount()}catch(P){lt(n,f,P)}}var p=n.return;try{Hd(n)}catch(P){lt(n,p,P)}break;case 5:var x=n.return;try{Hd(n)}catch(P){lt(n,x,P)}}}catch(P){lt(n,n.return,P)}if(n===e){ve=null;break}var C=n.sibling;if(C!==null){C.return=n.return,ve=C;break}ve=n.return}}var WE=Math.ceil,wl=O.ReactCurrentDispatcher,Zd=O.ReactCurrentOwner,an=O.ReactCurrentBatchConfig,Ue=0,kt=null,ht=null,Et=0,Yt=0,yi=$r(0),yt=0,Cs=null,wo=0,Sl=0,qd=0,_s=null,Ht=null,Gd=0,xi=1/0,dr=null,bl=!1,Qd=null,Ur=null,kl=!1,Br=null,Cl=0,Es=0,Yd=null,_l=-1,El=0;function $t(){return(Ue&6)!==0?ct():_l!==-1?_l:_l=ct()}function Hr(e){return(e.mode&1)===0?1:(Ue&2)!==0&&Et!==0?Et&-Et:PE.transition!==null?(El===0&&(El=Rg()),El):(e=qe,e!==0||(e=window.event,e=e===void 0?16:$g(e.type)),e)}function xn(e,n,s,c){if(50<Es)throw Es=0,Yd=null,Error(o(185));Qi(e,s,c),((Ue&2)===0||e!==kt)&&(e===kt&&((Ue&2)===0&&(Sl|=s),yt===4&&Wr(e,Et)),Wt(e,c),s===1&&Ue===0&&(n.mode&1)===0&&(xi=ct()+500,el&&Mr()))}function Wt(e,n){var s=e.callbackNode;P_(e,n);var c=La(e,e===kt?Et:0);if(c===0)s!==null&&Cg(s),e.callbackNode=null,e.callbackPriority=0;else if(n=c&-c,e.callbackPriority!==n){if(s!=null&&Cg(s),n===1)e.tag===0?RE($y.bind(null,e)):Sv($y.bind(null,e)),kE(function(){(Ue&6)===0&&Mr()}),s=null;else{switch(Pg(c)){case 1:s=Ou;break;case 4:s=_g;break;case 16:s=Na;break;case 536870912:s=Eg;break;default:s=Na}s=Hy(s,Ly.bind(null,e))}e.callbackPriority=n,e.callbackNode=s}}function Ly(e,n){if(_l=-1,El=0,(Ue&6)!==0)throw Error(o(327));var s=e.callbackNode;if(wi()&&e.callbackNode!==s)return null;var c=La(e,e===kt?Et:0);if(c===0)return null;if((c&30)!==0||(c&e.expiredLanes)!==0||n)n=Rl(e,c);else{n=c;var f=Ue;Ue|=2;var p=My();(kt!==e||Et!==n)&&(dr=null,xi=ct()+500,bo(e,n));do try{qE();break}catch(C){jy(e,C)}while(!0);md(),wl.current=p,Ue=f,ht!==null?n=0:(kt=null,Et=0,n=yt)}if(n!==0){if(n===2&&(f=Nu(e),f!==0&&(c=f,n=Xd(e,f))),n===1)throw s=Cs,bo(e,0),Wr(e,c),Wt(e,ct()),s;if(n===6)Wr(e,c);else{if(f=e.current.alternate,(c&30)===0&&!KE(f)&&(n=Rl(e,c),n===2&&(p=Nu(e),p!==0&&(c=p,n=Xd(e,p))),n===1))throw s=Cs,bo(e,0),Wr(e,c),Wt(e,ct()),s;switch(e.finishedWork=f,e.finishedLanes=c,n){case 0:case 1:throw Error(o(345));case 2:ko(e,Ht,dr);break;case 3:if(Wr(e,c),(c&130023424)===c&&(n=Gd+500-ct(),10<n)){if(La(e,0)!==0)break;if(f=e.suspendedLanes,(f&c)!==c){$t(),e.pingedLanes|=e.suspendedLanes&f;break}e.timeoutHandle=od(ko.bind(null,e,Ht,dr),n);break}ko(e,Ht,dr);break;case 4:if(Wr(e,c),(c&4194240)===c)break;for(n=e.eventTimes,f=-1;0<c;){var x=31-pn(c);p=1<<x,x=n[x],x>f&&(f=x),c&=~p}if(c=f,c=ct()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*WE(c/1960))-c,10<c){e.timeoutHandle=od(ko.bind(null,e,Ht,dr),c);break}ko(e,Ht,dr);break;case 5:ko(e,Ht,dr);break;default:throw Error(o(329))}}}return Wt(e,ct()),e.callbackNode===s?Ly.bind(null,e):null}function Xd(e,n){var s=_s;return e.current.memoizedState.isDehydrated&&(bo(e,n).flags|=256),e=Rl(e,n),e!==2&&(n=Ht,Ht=s,n!==null&&Jd(n)),e}function Jd(e){Ht===null?Ht=e:Ht.push.apply(Ht,e)}function KE(e){for(var n=e;;){if(n.flags&16384){var s=n.updateQueue;if(s!==null&&(s=s.stores,s!==null))for(var c=0;c<s.length;c++){var f=s[c],p=f.getSnapshot;f=f.value;try{if(!hn(p(),f))return!1}catch{return!1}}}if(s=n.child,n.subtreeFlags&16384&&s!==null)s.return=n,n=s;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Wr(e,n){for(n&=~qd,n&=~Sl,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var s=31-pn(n),c=1<<s;e[s]=-1,n&=~c}}function $y(e){if((Ue&6)!==0)throw Error(o(327));wi();var n=La(e,0);if((n&1)===0)return Wt(e,ct()),null;var s=Rl(e,n);if(e.tag!==0&&s===2){var c=Nu(e);c!==0&&(n=c,s=Xd(e,c))}if(s===1)throw s=Cs,bo(e,0),Wr(e,n),Wt(e,ct()),s;if(s===6)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,ko(e,Ht,dr),Wt(e,ct()),null}function ef(e,n){var s=Ue;Ue|=1;try{return e(n)}finally{Ue=s,Ue===0&&(xi=ct()+500,el&&Mr())}}function So(e){Br!==null&&Br.tag===0&&(Ue&6)===0&&wi();var n=Ue;Ue|=1;var s=an.transition,c=qe;try{if(an.transition=null,qe=1,e)return e()}finally{qe=c,an.transition=s,Ue=n,(Ue&6)===0&&Mr()}}function tf(){Yt=yi.current,tt(yi)}function bo(e,n){e.finishedWork=null,e.finishedLanes=0;var s=e.timeoutHandle;if(s!==-1&&(e.timeoutHandle=-1,bE(s)),ht!==null)for(s=ht.return;s!==null;){var c=s;switch(ud(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Xa();break;case 3:mi(),tt(Vt),tt(Rt),kd();break;case 5:Sd(c);break;case 4:mi();break;case 13:tt(st);break;case 19:tt(st);break;case 10:gd(c.type._context);break;case 22:case 23:tf()}s=s.return}if(kt=e,ht=e=Kr(e.current,null),Et=Yt=n,yt=0,Cs=null,qd=Sl=wo=0,Ht=_s=null,vo!==null){for(n=0;n<vo.length;n++)if(s=vo[n],c=s.interleaved,c!==null){s.interleaved=null;var f=c.next,p=s.pending;if(p!==null){var x=p.next;p.next=f,c.next=x}s.pending=c}vo=null}return e}function jy(e,n){do{var s=ht;try{if(md(),ul.current=hl,dl){for(var c=at.memoizedState;c!==null;){var f=c.queue;f!==null&&(f.pending=null),c=c.next}dl=!1}if(xo=0,bt=vt=at=null,ys=!1,xs=0,Zd.current=null,s===null||s.return===null){yt=1,Cs=n,ht=null;break}e:{var p=e,x=s.return,C=s,P=n;if(n=Et,C.flags|=32768,P!==null&&typeof P=="object"&&typeof P.then=="function"){var F=P,Z=C,q=Z.tag;if((Z.mode&1)===0&&(q===0||q===11||q===15)){var K=Z.alternate;K?(Z.updateQueue=K.updateQueue,Z.memoizedState=K.memoizedState,Z.lanes=K.lanes):(Z.updateQueue=null,Z.memoizedState=null)}var fe=ly(x);if(fe!==null){fe.flags&=-257,cy(fe,x,C,p,n),fe.mode&1&&ay(p,F,n),n=fe,P=F;var ye=n.updateQueue;if(ye===null){var we=new Set;we.add(P),n.updateQueue=we}else ye.add(P);break e}else{if((n&1)===0){ay(p,F,n),nf();break e}P=Error(o(426))}}else if(rt&&C.mode&1){var ut=ly(x);if(ut!==null){(ut.flags&65536)===0&&(ut.flags|=256),cy(ut,x,C,p,n),pd(gi(P,C));break e}}p=P=gi(P,C),yt!==4&&(yt=2),_s===null?_s=[p]:_s.push(p),p=x;do{switch(p.tag){case 3:p.flags|=65536,n&=-n,p.lanes|=n;var $=iy(p,P,n);Tv(p,$);break e;case 1:C=P;var N=p.type,M=p.stateNode;if((p.flags&128)===0&&(typeof N.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(Ur===null||!Ur.has(M)))){p.flags|=65536,n&=-n,p.lanes|=n;var ee=sy(p,C,n);Tv(p,ee);break e}}p=p.return}while(p!==null)}Fy(s)}catch(ke){n=ke,ht===s&&s!==null&&(ht=s=s.return);continue}break}while(!0)}function My(){var e=wl.current;return wl.current=hl,e===null?hl:e}function nf(){(yt===0||yt===3||yt===2)&&(yt=4),kt===null||(wo&268435455)===0&&(Sl&268435455)===0||Wr(kt,Et)}function Rl(e,n){var s=Ue;Ue|=2;var c=My();(kt!==e||Et!==n)&&(dr=null,bo(e,n));do try{ZE();break}catch(f){jy(e,f)}while(!0);if(md(),Ue=s,wl.current=c,ht!==null)throw Error(o(261));return kt=null,Et=0,yt}function ZE(){for(;ht!==null;)zy(ht)}function qE(){for(;ht!==null&&!x_();)zy(ht)}function zy(e){var n=By(e.alternate,e,Yt);e.memoizedProps=e.pendingProps,n===null?Fy(e):ht=n,Zd.current=null}function Fy(e){var n=e;do{var s=n.alternate;if(e=n.return,(n.flags&32768)===0){if(s=FE(s,n,Yt),s!==null){ht=s;return}}else{if(s=VE(s,n),s!==null){s.flags&=32767,ht=s;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{yt=6,ht=null;return}}if(n=n.sibling,n!==null){ht=n;return}ht=n=e}while(n!==null);yt===0&&(yt=5)}function ko(e,n,s){var c=qe,f=an.transition;try{an.transition=null,qe=1,GE(e,n,s,c)}finally{an.transition=f,qe=c}return null}function GE(e,n,s,c){do wi();while(Br!==null);if((Ue&6)!==0)throw Error(o(327));s=e.finishedWork;var f=e.finishedLanes;if(s===null)return null;if(e.finishedWork=null,e.finishedLanes=0,s===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var p=s.lanes|s.childLanes;if(I_(e,p),e===kt&&(ht=kt=null,Et=0),(s.subtreeFlags&2064)===0&&(s.flags&2064)===0||kl||(kl=!0,Hy(Na,function(){return wi(),null})),p=(s.flags&15990)!==0,(s.subtreeFlags&15990)!==0||p){p=an.transition,an.transition=null;var x=qe;qe=1;var C=Ue;Ue|=4,Zd.current=null,BE(e,s),Oy(s,e),mE(nd),Ma=!!td,nd=td=null,e.current=s,HE(s),w_(),Ue=C,qe=x,an.transition=p}else e.current=s;if(kl&&(kl=!1,Br=e,Cl=f),p=e.pendingLanes,p===0&&(Ur=null),k_(s.stateNode),Wt(e,ct()),n!==null)for(c=e.onRecoverableError,s=0;s<n.length;s++)f=n[s],c(f.value,{componentStack:f.stack,digest:f.digest});if(bl)throw bl=!1,e=Qd,Qd=null,e;return(Cl&1)!==0&&e.tag!==0&&wi(),p=e.pendingLanes,(p&1)!==0?e===Yd?Es++:(Es=0,Yd=e):Es=0,Mr(),null}function wi(){if(Br!==null){var e=Pg(Cl),n=an.transition,s=qe;try{if(an.transition=null,qe=16>e?16:e,Br===null)var c=!1;else{if(e=Br,Br=null,Cl=0,(Ue&6)!==0)throw Error(o(331));var f=Ue;for(Ue|=4,ve=e.current;ve!==null;){var p=ve,x=p.child;if((ve.flags&16)!==0){var C=p.deletions;if(C!==null){for(var P=0;P<C.length;P++){var F=C[P];for(ve=F;ve!==null;){var Z=ve;switch(Z.tag){case 0:case 11:case 15:ks(8,Z,p)}var q=Z.child;if(q!==null)q.return=Z,ve=q;else for(;ve!==null;){Z=ve;var K=Z.sibling,fe=Z.return;if(_y(Z),Z===F){ve=null;break}if(K!==null){K.return=fe,ve=K;break}ve=fe}}}var ye=p.alternate;if(ye!==null){var we=ye.child;if(we!==null){ye.child=null;do{var ut=we.sibling;we.sibling=null,we=ut}while(we!==null)}}ve=p}}if((p.subtreeFlags&2064)!==0&&x!==null)x.return=p,ve=x;else e:for(;ve!==null;){if(p=ve,(p.flags&2048)!==0)switch(p.tag){case 0:case 11:case 15:ks(9,p,p.return)}var $=p.sibling;if($!==null){$.return=p.return,ve=$;break e}ve=p.return}}var N=e.current;for(ve=N;ve!==null;){x=ve;var M=x.child;if((x.subtreeFlags&2064)!==0&&M!==null)M.return=x,ve=M;else e:for(x=N;ve!==null;){if(C=ve,(C.flags&2048)!==0)try{switch(C.tag){case 0:case 11:case 15:xl(9,C)}}catch(ke){lt(C,C.return,ke)}if(C===x){ve=null;break e}var ee=C.sibling;if(ee!==null){ee.return=C.return,ve=ee;break e}ve=C.return}}if(Ue=f,Mr(),An&&typeof An.onPostCommitFiberRoot=="function")try{An.onPostCommitFiberRoot(Ta,e)}catch{}c=!0}return c}finally{qe=s,an.transition=n}}return!1}function Vy(e,n,s){n=gi(s,n),n=iy(e,n,1),e=Fr(e,n,1),n=$t(),e!==null&&(Qi(e,1,n),Wt(e,n))}function lt(e,n,s){if(e.tag===3)Vy(e,e,s);else for(;n!==null;){if(n.tag===3){Vy(n,e,s);break}else if(n.tag===1){var c=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Ur===null||!Ur.has(c))){e=gi(s,e),e=sy(n,e,1),n=Fr(n,e,1),e=$t(),n!==null&&(Qi(n,1,e),Wt(n,e));break}}n=n.return}}function QE(e,n,s){var c=e.pingCache;c!==null&&c.delete(n),n=$t(),e.pingedLanes|=e.suspendedLanes&s,kt===e&&(Et&s)===s&&(yt===4||yt===3&&(Et&130023424)===Et&&500>ct()-Gd?bo(e,0):qd|=s),Wt(e,n)}function Uy(e,n){n===0&&((e.mode&1)===0?n=1:(n=Aa,Aa<<=1,(Aa&130023424)===0&&(Aa=4194304)));var s=$t();e=lr(e,n),e!==null&&(Qi(e,n,s),Wt(e,s))}function YE(e){var n=e.memoizedState,s=0;n!==null&&(s=n.retryLane),Uy(e,s)}function XE(e,n){var s=0;switch(e.tag){case 13:var c=e.stateNode,f=e.memoizedState;f!==null&&(s=f.retryLane);break;case 19:c=e.stateNode;break;default:throw Error(o(314))}c!==null&&c.delete(n),Uy(e,s)}var By;By=function(e,n,s){if(e!==null)if(e.memoizedProps!==n.pendingProps||Vt.current)Bt=!0;else{if((e.lanes&s)===0&&(n.flags&128)===0)return Bt=!1,zE(e,n,s);Bt=(e.flags&131072)!==0}else Bt=!1,rt&&(n.flags&1048576)!==0&&bv(n,nl,n.index);switch(n.lanes=0,n.tag){case 2:var c=n.type;vl(e,n),e=n.pendingProps;var f=li(n,Rt.current);hi(n,s),f=Ed(null,n,c,e,f,s);var p=Rd();return n.flags|=1,typeof f=="object"&&f!==null&&typeof f.render=="function"&&f.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,Ut(c)?(p=!0,Ja(n)):p=!1,n.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,xd(n),f.updater=ml,n.stateNode=f,f._reactInternals=n,Dd(n,c,e,s),n=jd(null,n,c,!0,p,s)):(n.tag=0,rt&&p&&cd(n),Lt(null,n,f,s),n=n.child),n;case 16:c=n.elementType;e:{switch(vl(e,n),e=n.pendingProps,f=c._init,c=f(c._payload),n.type=c,f=n.tag=eR(c),e=gn(c,e),f){case 0:n=$d(null,n,c,e,s);break e;case 1:n=my(null,n,c,e,s);break e;case 11:n=uy(null,n,c,e,s);break e;case 14:n=dy(null,n,c,gn(c.type,e),s);break e}throw Error(o(306,c,""))}return n;case 0:return c=n.type,f=n.pendingProps,f=n.elementType===c?f:gn(c,f),$d(e,n,c,f,s);case 1:return c=n.type,f=n.pendingProps,f=n.elementType===c?f:gn(c,f),my(e,n,c,f,s);case 3:e:{if(gy(n),e===null)throw Error(o(387));c=n.pendingProps,p=n.memoizedState,f=p.element,Nv(e,n),ll(n,c,null,s);var x=n.memoizedState;if(c=x.element,p.isDehydrated)if(p={element:c,isDehydrated:!1,cache:x.cache,pendingSuspenseBoundaries:x.pendingSuspenseBoundaries,transitions:x.transitions},n.updateQueue.baseState=p,n.memoizedState=p,n.flags&256){f=gi(Error(o(423)),n),n=vy(e,n,c,s,f);break e}else if(c!==f){f=gi(Error(o(424)),n),n=vy(e,n,c,s,f);break e}else for(Qt=Lr(n.stateNode.containerInfo.firstChild),Gt=n,rt=!0,mn=null,s=Iv(n,null,c,s),n.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(di(),c===f){n=ur(e,n,s);break e}Lt(e,n,c,s)}n=n.child}return n;case 5:return Av(n),e===null&&fd(n),c=n.type,f=n.pendingProps,p=e!==null?e.memoizedProps:null,x=f.children,rd(c,f)?x=null:p!==null&&rd(c,p)&&(n.flags|=32),hy(e,n),Lt(e,n,x,s),n.child;case 6:return e===null&&fd(n),null;case 13:return yy(e,n,s);case 4:return wd(n,n.stateNode.containerInfo),c=n.pendingProps,e===null?n.child=fi(n,null,c,s):Lt(e,n,c,s),n.child;case 11:return c=n.type,f=n.pendingProps,f=n.elementType===c?f:gn(c,f),uy(e,n,c,f,s);case 7:return Lt(e,n,n.pendingProps,s),n.child;case 8:return Lt(e,n,n.pendingProps.children,s),n.child;case 12:return Lt(e,n,n.pendingProps.children,s),n.child;case 10:e:{if(c=n.type._context,f=n.pendingProps,p=n.memoizedProps,x=f.value,Je(il,c._currentValue),c._currentValue=x,p!==null)if(hn(p.value,x)){if(p.children===f.children&&!Vt.current){n=ur(e,n,s);break e}}else for(p=n.child,p!==null&&(p.return=n);p!==null;){var C=p.dependencies;if(C!==null){x=p.child;for(var P=C.firstContext;P!==null;){if(P.context===c){if(p.tag===1){P=cr(-1,s&-s),P.tag=2;var F=p.updateQueue;if(F!==null){F=F.shared;var Z=F.pending;Z===null?P.next=P:(P.next=Z.next,Z.next=P),F.pending=P}}p.lanes|=s,P=p.alternate,P!==null&&(P.lanes|=s),vd(p.return,s,n),C.lanes|=s;break}P=P.next}}else if(p.tag===10)x=p.type===n.type?null:p.child;else if(p.tag===18){if(x=p.return,x===null)throw Error(o(341));x.lanes|=s,C=x.alternate,C!==null&&(C.lanes|=s),vd(x,s,n),x=p.sibling}else x=p.child;if(x!==null)x.return=p;else for(x=p;x!==null;){if(x===n){x=null;break}if(p=x.sibling,p!==null){p.return=x.return,x=p;break}x=x.return}p=x}Lt(e,n,f.children,s),n=n.child}return n;case 9:return f=n.type,c=n.pendingProps.children,hi(n,s),f=on(f),c=c(f),n.flags|=1,Lt(e,n,c,s),n.child;case 14:return c=n.type,f=gn(c,n.pendingProps),f=gn(c.type,f),dy(e,n,c,f,s);case 15:return fy(e,n,n.type,n.pendingProps,s);case 17:return c=n.type,f=n.pendingProps,f=n.elementType===c?f:gn(c,f),vl(e,n),n.tag=1,Ut(c)?(e=!0,Ja(n)):e=!1,hi(n,s),ry(n,c,f),Dd(n,c,f,s),jd(null,n,c,!0,e,s);case 19:return wy(e,n,s);case 22:return py(e,n,s)}throw Error(o(156,n.tag))};function Hy(e,n){return kg(e,n)}function JE(e,n,s,c){this.tag=e,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ln(e,n,s,c){return new JE(e,n,s,c)}function rf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function eR(e){if(typeof e=="function")return rf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===le)return 11;if(e===be)return 14}return 2}function Kr(e,n){var s=e.alternate;return s===null?(s=ln(e.tag,n,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=n,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&14680064,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,n=e.dependencies,s.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s}function Pl(e,n,s,c,f,p){var x=2;if(c=e,typeof e=="function")rf(e)&&(x=1);else if(typeof e=="string")x=5;else e:switch(e){case B:return Co(s.children,f,p,n);case j:x=8,f|=8;break;case Y:return e=ln(12,s,n,f|2),e.elementType=Y,e.lanes=p,e;case ue:return e=ln(13,s,n,f),e.elementType=ue,e.lanes=p,e;case se:return e=ln(19,s,n,f),e.elementType=se,e.lanes=p,e;case oe:return Il(s,f,p,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ce:x=10;break e;case Ce:x=9;break e;case le:x=11;break e;case be:x=14;break e;case ae:x=16,c=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return n=ln(x,s,n,f),n.elementType=e,n.type=c,n.lanes=p,n}function Co(e,n,s,c){return e=ln(7,e,c,n),e.lanes=s,e}function Il(e,n,s,c){return e=ln(22,e,c,n),e.elementType=oe,e.lanes=s,e.stateNode={isHidden:!1},e}function of(e,n,s){return e=ln(6,e,null,n),e.lanes=s,e}function sf(e,n,s){return n=ln(4,e.children!==null?e.children:[],e.key,n),n.lanes=s,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function tR(e,n,s,c,f){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Tu(0),this.expirationTimes=Tu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tu(0),this.identifierPrefix=c,this.onRecoverableError=f,this.mutableSourceEagerHydrationData=null}function af(e,n,s,c,f,p,x,C,P){return e=new tR(e,n,s,C,P),n===1?(n=1,p===!0&&(n|=8)):n=0,p=ln(3,null,null,n),e.current=p,p.stateNode=e,p.memoizedState={element:c,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},xd(p),e}function nR(e,n,s){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:c==null?null:""+c,children:e,containerInfo:n,implementation:s}}function Wy(e){if(!e)return jr;e=e._reactInternals;e:{if(fo(e)!==e||e.tag!==1)throw Error(o(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(Ut(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(o(171))}if(e.tag===1){var s=e.type;if(Ut(s))return xv(e,s,n)}return n}function Ky(e,n,s,c,f,p,x,C,P){return e=af(s,c,!0,e,f,p,x,C,P),e.context=Wy(null),s=e.current,c=$t(),f=Hr(s),p=cr(c,f),p.callback=n??null,Fr(s,p,f),e.current.lanes=f,Qi(e,f,c),Wt(e,c),e}function Ol(e,n,s,c){var f=n.current,p=$t(),x=Hr(f);return s=Wy(s),n.context===null?n.context=s:n.pendingContext=s,n=cr(p,x),n.payload={element:e},c=c===void 0?null:c,c!==null&&(n.callback=c),e=Fr(f,n,x),e!==null&&(xn(e,f,x,p),al(e,f,x)),x}function Nl(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function Zy(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<n?s:n}}function lf(e,n){Zy(e,n),(e=e.alternate)&&Zy(e,n)}function rR(){return null}var qy=typeof reportError=="function"?reportError:function(e){console.error(e)};function cf(e){this._internalRoot=e}Tl.prototype.render=cf.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(o(409));Ol(e,n,null,null)},Tl.prototype.unmount=cf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;So(function(){Ol(null,e,null,null)}),n[or]=null}};function Tl(e){this._internalRoot=e}Tl.prototype.unstable_scheduleHydration=function(e){if(e){var n=Ng();e={blockedOn:null,target:e,priority:n};for(var s=0;s<Tr.length&&n!==0&&n<Tr[s].priority;s++);Tr.splice(s,0,e),s===0&&Ag(e)}};function uf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Dl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Gy(){}function oR(e,n,s,c,f){if(f){if(typeof c=="function"){var p=c;c=function(){var F=Nl(x);p.call(F)}}var x=Ky(n,c,e,0,null,!1,!1,"",Gy);return e._reactRootContainer=x,e[or]=x.current,us(e.nodeType===8?e.parentNode:e),So(),x}for(;f=e.lastChild;)e.removeChild(f);if(typeof c=="function"){var C=c;c=function(){var F=Nl(P);C.call(F)}}var P=af(e,0,!1,null,null,!1,!1,"",Gy);return e._reactRootContainer=P,e[or]=P.current,us(e.nodeType===8?e.parentNode:e),So(function(){Ol(n,P,s,c)}),P}function Al(e,n,s,c,f){var p=s._reactRootContainer;if(p){var x=p;if(typeof f=="function"){var C=f;f=function(){var P=Nl(x);C.call(P)}}Ol(n,x,e,f)}else x=oR(s,n,e,f,c);return Nl(x)}Ig=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var s=Gi(n.pendingLanes);s!==0&&(Du(n,s|1),Wt(n,ct()),(Ue&6)===0&&(xi=ct()+500,Mr()))}break;case 13:So(function(){var c=lr(e,1);if(c!==null){var f=$t();xn(c,e,1,f)}}),lf(e,1)}},Au=function(e){if(e.tag===13){var n=lr(e,134217728);if(n!==null){var s=$t();xn(n,e,134217728,s)}lf(e,134217728)}},Og=function(e){if(e.tag===13){var n=Hr(e),s=lr(e,n);if(s!==null){var c=$t();xn(s,e,n,c)}lf(e,n)}},Ng=function(){return qe},Tg=function(e,n){var s=qe;try{return qe=e,n()}finally{qe=s}},Eu=function(e,n,s){switch(n){case"input":if(Tn(e,s),n=s.name,s.type==="radio"&&n!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<s.length;n++){var c=s[n];if(c!==e&&c.form===e.form){var f=Ya(c);if(!f)throw Error(o(90));je(c),Tn(c,f)}}}break;case"textarea":ie(e,s);break;case"select":n=s.value,n!=null&&Rr(e,!!s.multiple,n,!1)}},gg=ef,vg=So;var iR={usingClientEntryPoint:!1,Events:[ps,si,Ya,hg,mg,ef]},Rs={findFiberByHostInstance:po,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},sR={bundleType:Rs.bundleType,version:Rs.version,rendererPackageName:Rs.rendererPackageName,rendererConfig:Rs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:O.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Sg(e),e===null?null:e.stateNode},findFiberByHostInstance:Rs.findFiberByHostInstance||rR,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ll=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ll.isDisabled&&Ll.supportsFiber)try{Ta=Ll.inject(sR),An=Ll}catch{}}return jt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=iR,jt.createPortal=function(e,n){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!uf(n))throw Error(o(200));return nR(e,n,null,s)},jt.createRoot=function(e,n){if(!uf(e))throw Error(o(299));var s=!1,c="",f=qy;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onRecoverableError!==void 0&&(f=n.onRecoverableError)),n=af(e,1,!1,null,null,s,!1,c,f),e[or]=n.current,us(e.nodeType===8?e.parentNode:e),new cf(n)},jt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=Sg(n),e=e===null?null:e.stateNode,e},jt.flushSync=function(e){return So(e)},jt.hydrate=function(e,n,s){if(!Dl(n))throw Error(o(200));return Al(null,e,n,!0,s)},jt.hydrateRoot=function(e,n,s){if(!uf(e))throw Error(o(405));var c=s!=null&&s.hydratedSources||null,f=!1,p="",x=qy;if(s!=null&&(s.unstable_strictMode===!0&&(f=!0),s.identifierPrefix!==void 0&&(p=s.identifierPrefix),s.onRecoverableError!==void 0&&(x=s.onRecoverableError)),n=Ky(n,null,e,1,s??null,f,!1,p,x),e[or]=n.current,us(e),c)for(e=0;e<c.length;e++)s=c[e],f=s._getVersion,f=f(s._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[s,f]:n.mutableSourceEagerHydrationData.push(s,f);return new Tl(n)},jt.render=function(e,n,s){if(!Dl(n))throw Error(o(200));return Al(null,e,n,!1,s)},jt.unmountComponentAtNode=function(e){if(!Dl(e))throw Error(o(40));return e._reactRootContainer?(So(function(){Al(null,null,e,!1,function(){e._reactRootContainer=null,e[or]=null})}),!0):!1},jt.unstable_batchedUpdates=ef,jt.unstable_renderSubtreeIntoContainer=function(e,n,s,c){if(!Dl(s))throw Error(o(200));if(e==null||e._reactInternals===void 0)throw Error(o(38));return Al(e,n,s,!1,c)},jt.version="18.3.1-next-f1338f8080-20240426",jt}var gf;function vf(){if(gf)return Ml.exports;gf=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(t){console.error(t)}}return r(),Ml.exports=tx(),Ml.exports}var yf;function nx(){if(yf)return Ps;yf=1;var r=vf();return Ps.createRoot=r.createRoot,Ps.hydrateRoot=r.hydrateRoot,Ps}var rx=nx(),Fe;(function(r){r.assertEqual=a=>{};function t(a){}r.assertIs=t;function o(a){throw new Error}r.assertNever=o,r.arrayToEnum=a=>{const l={};for(const u of a)l[u]=u;return l},r.getValidEnumValues=a=>{const l=r.objectKeys(a).filter(d=>typeof a[a[d]]!="number"),u={};for(const d of l)u[d]=a[d];return r.objectValues(u)},r.objectValues=a=>r.objectKeys(a).map(function(l){return a[l]}),r.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const l=[];for(const u in a)Object.prototype.hasOwnProperty.call(a,u)&&l.push(u);return l},r.find=(a,l)=>{for(const u of a)if(l(u))return u},r.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function i(a,l=" | "){return a.map(u=>typeof u=="string"?`'${u}'`:u).join(l)}r.joinValues=i,r.jsonStringifyReplacer=(a,l)=>typeof l=="bigint"?l.toString():l})(Fe||(Fe={}));var xf;(function(r){r.mergeShapes=(t,o)=>({...t,...o})})(xf||(xf={}));const me=Fe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),fr=r=>{switch(typeof r){case"undefined":return me.undefined;case"string":return me.string;case"number":return Number.isNaN(r)?me.nan:me.number;case"boolean":return me.boolean;case"function":return me.function;case"bigint":return me.bigint;case"symbol":return me.symbol;case"object":return Array.isArray(r)?me.array:r===null?me.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?me.promise:typeof Map<"u"&&r instanceof Map?me.map:typeof Set<"u"&&r instanceof Set?me.set:typeof Date<"u"&&r instanceof Date?me.date:me.object;default:return me.unknown}},Q=Fe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class zn extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const o=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,o):this.__proto__=o,this.name="ZodError",this.issues=t}format(t){const o=t||function(l){return l.message},i={_errors:[]},a=l=>{for(const u of l.issues)if(u.code==="invalid_union")u.unionErrors.map(a);else if(u.code==="invalid_return_type")a(u.returnTypeError);else if(u.code==="invalid_arguments")a(u.argumentsError);else if(u.path.length===0)i._errors.push(o(u));else{let d=i,h=0;for(;h<u.path.length;){const g=u.path[h];h===u.path.length-1?(d[g]=d[g]||{_errors:[]},d[g]._errors.push(o(u))):d[g]=d[g]||{_errors:[]},d=d[g],h++}}};return a(this),i}static assert(t){if(!(t instanceof zn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Fe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=o=>o.message){const o={},i=[];for(const a of this.issues)a.path.length>0?(o[a.path[0]]=o[a.path[0]]||[],o[a.path[0]].push(t(a))):i.push(t(a));return{formErrors:i,fieldErrors:o}}get formErrors(){return this.flatten()}}zn.create=r=>new zn(r);const Vl=(r,t)=>{let o;switch(r.code){case Q.invalid_type:r.received===me.undefined?o="Required":o=`Expected ${r.expected}, received ${r.received}`;break;case Q.invalid_literal:o=`Invalid literal value, expected ${JSON.stringify(r.expected,Fe.jsonStringifyReplacer)}`;break;case Q.unrecognized_keys:o=`Unrecognized key(s) in object: ${Fe.joinValues(r.keys,", ")}`;break;case Q.invalid_union:o="Invalid input";break;case Q.invalid_union_discriminator:o=`Invalid discriminator value. Expected ${Fe.joinValues(r.options)}`;break;case Q.invalid_enum_value:o=`Invalid enum value. Expected ${Fe.joinValues(r.options)}, received '${r.received}'`;break;case Q.invalid_arguments:o="Invalid function arguments";break;case Q.invalid_return_type:o="Invalid function return type";break;case Q.invalid_date:o="Invalid date";break;case Q.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(o=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(o=`${o} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?o=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?o=`Invalid input: must end with "${r.validation.endsWith}"`:Fe.assertNever(r.validation):r.validation!=="regex"?o=`Invalid ${r.validation}`:o="Invalid";break;case Q.too_small:r.type==="array"?o=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?o=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?o=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?o=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:o="Invalid input";break;case Q.too_big:r.type==="array"?o=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?o=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?o=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?o=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?o=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:o="Invalid input";break;case Q.custom:o="Invalid input";break;case Q.invalid_intersection_types:o="Intersection results could not be merged";break;case Q.not_multiple_of:o=`Number must be a multiple of ${r.multipleOf}`;break;case Q.not_finite:o="Number must be finite";break;default:o=t.defaultError,Fe.assertNever(r)}return{message:o}};let ox=Vl;function ix(){return ox}const sx=r=>{const{data:t,path:o,errorMaps:i,issueData:a}=r,l=[...o,...a.path||[]],u={...a,path:l};if(a.message!==void 0)return{...a,path:l,message:a.message};let d="";const h=i.filter(g=>!!g).slice().reverse();for(const g of h)d=g(u,{data:t,defaultError:d}).message;return{...a,path:l,message:d}};function de(r,t){const o=ix(),i=sx({issueData:t,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,o,o===Vl?void 0:Vl].filter(a=>!!a)});r.common.issues.push(i)}class Nt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,o){const i=[];for(const a of o){if(a.status==="aborted")return Re;a.status==="dirty"&&t.dirty(),i.push(a.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,o){const i=[];for(const a of o){const l=await a.key,u=await a.value;i.push({key:l,value:u})}return Nt.mergeObjectSync(t,i)}static mergeObjectSync(t,o){const i={};for(const a of o){const{key:l,value:u}=a;if(l.status==="aborted"||u.status==="aborted")return Re;l.status==="dirty"&&t.dirty(),u.status==="dirty"&&t.dirty(),l.value!=="__proto__"&&(typeof u.value<"u"||a.alwaysSet)&&(i[l.value]=u.value)}return{status:t.value,value:i}}}const Re=Object.freeze({status:"aborted"}),bi=r=>({status:"dirty",value:r}),Xt=r=>({status:"valid",value:r}),wf=r=>r.status==="aborted",Sf=r=>r.status==="dirty",_o=r=>r.status==="valid",Is=r=>typeof Promise<"u"&&r instanceof Promise;var Se;(function(r){r.errToObj=t=>typeof t=="string"?{message:t}:t||{},r.toString=t=>typeof t=="string"?t:t?.message})(Se||(Se={}));class wn{constructor(t,o,i,a){this._cachedPath=[],this.parent=t,this.data=o,this._path=i,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const bf=(r,t)=>{if(_o(t))return{success:!0,data:t.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const o=new zn(r.common.issues);return this._error=o,this._error}}};function De(r){if(!r)return{};const{errorMap:t,invalid_type_error:o,required_error:i,description:a}=r;if(t&&(o||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(u,d)=>{const{message:h}=r;return u.code==="invalid_enum_value"?{message:h??d.defaultError}:typeof d.data>"u"?{message:h??i??d.defaultError}:u.code!=="invalid_type"?{message:d.defaultError}:{message:h??o??d.defaultError}},description:a}}class Me{get description(){return this._def.description}_getType(t){return fr(t.data)}_getOrReturnCtx(t,o){return o||{common:t.parent.common,data:t.data,parsedType:fr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Nt,ctx:{common:t.parent.common,data:t.data,parsedType:fr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const o=this._parse(t);if(Is(o))throw new Error("Synchronous parse encountered promise.");return o}_parseAsync(t){const o=this._parse(t);return Promise.resolve(o)}parse(t,o){const i=this.safeParse(t,o);if(i.success)return i.data;throw i.error}safeParse(t,o){const i={common:{issues:[],async:o?.async??!1,contextualErrorMap:o?.errorMap},path:o?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:fr(t)},a=this._parseSync({data:t,path:i.path,parent:i});return bf(i,a)}"~validate"(t){const o={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:fr(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:o});return _o(i)?{value:i.value}:{issues:o.common.issues}}catch(i){i?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),o.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:o}).then(i=>_o(i)?{value:i.value}:{issues:o.common.issues})}async parseAsync(t,o){const i=await this.safeParseAsync(t,o);if(i.success)return i.data;throw i.error}async safeParseAsync(t,o){const i={common:{issues:[],contextualErrorMap:o?.errorMap,async:!0},path:o?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:fr(t)},a=this._parse({data:t,path:i.path,parent:i}),l=await(Is(a)?a:Promise.resolve(a));return bf(i,l)}refine(t,o){const i=a=>typeof o=="string"||typeof o>"u"?{message:o}:typeof o=="function"?o(a):o;return this._refinement((a,l)=>{const u=t(a),d=()=>l.addIssue({code:Q.custom,...i(a)});return typeof Promise<"u"&&u instanceof Promise?u.then(h=>h?!0:(d(),!1)):u?!0:(d(),!1)})}refinement(t,o){return this._refinement((i,a)=>t(i)?!0:(a.addIssue(typeof o=="function"?o(i,a):o),!1))}_refinement(t){return new Yr({schema:this,typeName:Pe.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:o=>this["~validate"](o)}}optional(){return Un.create(this,this._def)}nullable(){return Xr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Sn.create(this)}promise(){return js.create(this,this._def)}or(t){return Ts.create([this,t],this._def)}and(t){return Ds.create(this,t,this._def)}transform(t){return new Yr({...De(this._def),schema:this,typeName:Pe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const o=typeof t=="function"?t:()=>t;return new Ms({...De(this._def),innerType:this,defaultValue:o,typeName:Pe.ZodDefault})}brand(){return new Nf({typeName:Pe.ZodBranded,type:this,...De(this._def)})}catch(t){const o=typeof t=="function"?t:()=>t;return new zs({...De(this._def),innerType:this,catchValue:o,typeName:Pe.ZodCatch})}describe(t){const o=this.constructor;return new o({...this._def,description:t})}pipe(t){return Gl.create(this,t)}readonly(){return Fs.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const ax=/^c[^\s-]{8,}$/i,lx=/^[0-9a-z]+$/,cx=/^[0-9A-HJKMNP-TV-Z]{26}$/i,ux=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,dx=/^[a-z0-9_-]{21}$/i,fx=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,px=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,hx=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,mx="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Ul;const gx=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,vx=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,yx=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,xx=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,wx=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Sx=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,kf="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",bx=new RegExp(`^${kf}$`);function Cf(r){let t="[0-5]\\d";r.precision?t=`${t}\\.\\d{${r.precision}}`:r.precision==null&&(t=`${t}(\\.\\d+)?`);const o=r.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${o}`}function kx(r){return new RegExp(`^${Cf(r)}$`)}function Cx(r){let t=`${kf}T${Cf(r)}`;const o=[];return o.push(r.local?"Z?":"Z"),r.offset&&o.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${o.join("|")})`,new RegExp(`^${t}$`)}function _x(r,t){return!!((t==="v4"||!t)&&gx.test(r)||(t==="v6"||!t)&&yx.test(r))}function Ex(r,t){if(!fx.test(r))return!1;try{const[o]=r.split("."),i=o.replace(/-/g,"+").replace(/_/g,"/").padEnd(o.length+(4-o.length%4)%4,"="),a=JSON.parse(atob(i));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||t&&a.alg!==t)}catch{return!1}}function Rx(r,t){return!!((t==="v4"||!t)&&vx.test(r)||(t==="v6"||!t)&&xx.test(r))}class Fn extends Me{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==me.string){const l=this._getOrReturnCtx(t);return de(l,{code:Q.invalid_type,expected:me.string,received:l.parsedType}),Re}const i=new Nt;let a;for(const l of this._def.checks)if(l.kind==="min")t.data.length<l.value&&(a=this._getOrReturnCtx(t,a),de(a,{code:Q.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),i.dirty());else if(l.kind==="max")t.data.length>l.value&&(a=this._getOrReturnCtx(t,a),de(a,{code:Q.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),i.dirty());else if(l.kind==="length"){const u=t.data.length>l.value,d=t.data.length<l.value;(u||d)&&(a=this._getOrReturnCtx(t,a),u?de(a,{code:Q.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}):d&&de(a,{code:Q.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}),i.dirty())}else if(l.kind==="email")hx.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"email",code:Q.invalid_string,message:l.message}),i.dirty());else if(l.kind==="emoji")Ul||(Ul=new RegExp(mx,"u")),Ul.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"emoji",code:Q.invalid_string,message:l.message}),i.dirty());else if(l.kind==="uuid")ux.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"uuid",code:Q.invalid_string,message:l.message}),i.dirty());else if(l.kind==="nanoid")dx.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"nanoid",code:Q.invalid_string,message:l.message}),i.dirty());else if(l.kind==="cuid")ax.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"cuid",code:Q.invalid_string,message:l.message}),i.dirty());else if(l.kind==="cuid2")lx.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"cuid2",code:Q.invalid_string,message:l.message}),i.dirty());else if(l.kind==="ulid")cx.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"ulid",code:Q.invalid_string,message:l.message}),i.dirty());else if(l.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),de(a,{validation:"url",code:Q.invalid_string,message:l.message}),i.dirty()}else l.kind==="regex"?(l.regex.lastIndex=0,l.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"regex",code:Q.invalid_string,message:l.message}),i.dirty())):l.kind==="trim"?t.data=t.data.trim():l.kind==="includes"?t.data.includes(l.value,l.position)||(a=this._getOrReturnCtx(t,a),de(a,{code:Q.invalid_string,validation:{includes:l.value,position:l.position},message:l.message}),i.dirty()):l.kind==="toLowerCase"?t.data=t.data.toLowerCase():l.kind==="toUpperCase"?t.data=t.data.toUpperCase():l.kind==="startsWith"?t.data.startsWith(l.value)||(a=this._getOrReturnCtx(t,a),de(a,{code:Q.invalid_string,validation:{startsWith:l.value},message:l.message}),i.dirty()):l.kind==="endsWith"?t.data.endsWith(l.value)||(a=this._getOrReturnCtx(t,a),de(a,{code:Q.invalid_string,validation:{endsWith:l.value},message:l.message}),i.dirty()):l.kind==="datetime"?Cx(l).test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{code:Q.invalid_string,validation:"datetime",message:l.message}),i.dirty()):l.kind==="date"?bx.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{code:Q.invalid_string,validation:"date",message:l.message}),i.dirty()):l.kind==="time"?kx(l).test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{code:Q.invalid_string,validation:"time",message:l.message}),i.dirty()):l.kind==="duration"?px.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"duration",code:Q.invalid_string,message:l.message}),i.dirty()):l.kind==="ip"?_x(t.data,l.version)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"ip",code:Q.invalid_string,message:l.message}),i.dirty()):l.kind==="jwt"?Ex(t.data,l.alg)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"jwt",code:Q.invalid_string,message:l.message}),i.dirty()):l.kind==="cidr"?Rx(t.data,l.version)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"cidr",code:Q.invalid_string,message:l.message}),i.dirty()):l.kind==="base64"?wx.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"base64",code:Q.invalid_string,message:l.message}),i.dirty()):l.kind==="base64url"?Sx.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"base64url",code:Q.invalid_string,message:l.message}),i.dirty()):Fe.assertNever(l);return{status:i.value,value:t.data}}_regex(t,o,i){return this.refinement(a=>t.test(a),{validation:o,code:Q.invalid_string,...Se.errToObj(i)})}_addCheck(t){return new Fn({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Se.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Se.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Se.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Se.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Se.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Se.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Se.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Se.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Se.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Se.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Se.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Se.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Se.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...Se.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...Se.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...Se.errToObj(t)})}regex(t,o){return this._addCheck({kind:"regex",regex:t,...Se.errToObj(o)})}includes(t,o){return this._addCheck({kind:"includes",value:t,position:o?.position,...Se.errToObj(o?.message)})}startsWith(t,o){return this._addCheck({kind:"startsWith",value:t,...Se.errToObj(o)})}endsWith(t,o){return this._addCheck({kind:"endsWith",value:t,...Se.errToObj(o)})}min(t,o){return this._addCheck({kind:"min",value:t,...Se.errToObj(o)})}max(t,o){return this._addCheck({kind:"max",value:t,...Se.errToObj(o)})}length(t,o){return this._addCheck({kind:"length",value:t,...Se.errToObj(o)})}nonempty(t){return this.min(1,Se.errToObj(t))}trim(){return new Fn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Fn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Fn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const o of this._def.checks)o.kind==="min"&&(t===null||o.value>t)&&(t=o.value);return t}get maxLength(){let t=null;for(const o of this._def.checks)o.kind==="max"&&(t===null||o.value<t)&&(t=o.value);return t}}Fn.create=r=>new Fn({checks:[],typeName:Pe.ZodString,coerce:r?.coerce??!1,...De(r)});function Px(r,t){const o=(r.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,a=o>i?o:i,l=Number.parseInt(r.toFixed(a).replace(".","")),u=Number.parseInt(t.toFixed(a).replace(".",""));return l%u/10**a}class Eo extends Me{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==me.number){const l=this._getOrReturnCtx(t);return de(l,{code:Q.invalid_type,expected:me.number,received:l.parsedType}),Re}let i;const a=new Nt;for(const l of this._def.checks)l.kind==="int"?Fe.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),de(i,{code:Q.invalid_type,expected:"integer",received:"float",message:l.message}),a.dirty()):l.kind==="min"?(l.inclusive?t.data<l.value:t.data<=l.value)&&(i=this._getOrReturnCtx(t,i),de(i,{code:Q.too_small,minimum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),a.dirty()):l.kind==="max"?(l.inclusive?t.data>l.value:t.data>=l.value)&&(i=this._getOrReturnCtx(t,i),de(i,{code:Q.too_big,maximum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),a.dirty()):l.kind==="multipleOf"?Px(t.data,l.value)!==0&&(i=this._getOrReturnCtx(t,i),de(i,{code:Q.not_multiple_of,multipleOf:l.value,message:l.message}),a.dirty()):l.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),de(i,{code:Q.not_finite,message:l.message}),a.dirty()):Fe.assertNever(l);return{status:a.value,value:t.data}}gte(t,o){return this.setLimit("min",t,!0,Se.toString(o))}gt(t,o){return this.setLimit("min",t,!1,Se.toString(o))}lte(t,o){return this.setLimit("max",t,!0,Se.toString(o))}lt(t,o){return this.setLimit("max",t,!1,Se.toString(o))}setLimit(t,o,i,a){return new Eo({...this._def,checks:[...this._def.checks,{kind:t,value:o,inclusive:i,message:Se.toString(a)}]})}_addCheck(t){return new Eo({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Se.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Se.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Se.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Se.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Se.toString(t)})}multipleOf(t,o){return this._addCheck({kind:"multipleOf",value:t,message:Se.toString(o)})}finite(t){return this._addCheck({kind:"finite",message:Se.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Se.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Se.toString(t)})}get minValue(){let t=null;for(const o of this._def.checks)o.kind==="min"&&(t===null||o.value>t)&&(t=o.value);return t}get maxValue(){let t=null;for(const o of this._def.checks)o.kind==="max"&&(t===null||o.value<t)&&(t=o.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Fe.isInteger(t.value))}get isFinite(){let t=null,o=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(o===null||i.value>o)&&(o=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(o)&&Number.isFinite(t)}}Eo.create=r=>new Eo({checks:[],typeName:Pe.ZodNumber,coerce:r?.coerce||!1,...De(r)});class ki extends Me{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==me.bigint)return this._getInvalidInput(t);let i;const a=new Nt;for(const l of this._def.checks)l.kind==="min"?(l.inclusive?t.data<l.value:t.data<=l.value)&&(i=this._getOrReturnCtx(t,i),de(i,{code:Q.too_small,type:"bigint",minimum:l.value,inclusive:l.inclusive,message:l.message}),a.dirty()):l.kind==="max"?(l.inclusive?t.data>l.value:t.data>=l.value)&&(i=this._getOrReturnCtx(t,i),de(i,{code:Q.too_big,type:"bigint",maximum:l.value,inclusive:l.inclusive,message:l.message}),a.dirty()):l.kind==="multipleOf"?t.data%l.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),de(i,{code:Q.not_multiple_of,multipleOf:l.value,message:l.message}),a.dirty()):Fe.assertNever(l);return{status:a.value,value:t.data}}_getInvalidInput(t){const o=this._getOrReturnCtx(t);return de(o,{code:Q.invalid_type,expected:me.bigint,received:o.parsedType}),Re}gte(t,o){return this.setLimit("min",t,!0,Se.toString(o))}gt(t,o){return this.setLimit("min",t,!1,Se.toString(o))}lte(t,o){return this.setLimit("max",t,!0,Se.toString(o))}lt(t,o){return this.setLimit("max",t,!1,Se.toString(o))}setLimit(t,o,i,a){return new ki({...this._def,checks:[...this._def.checks,{kind:t,value:o,inclusive:i,message:Se.toString(a)}]})}_addCheck(t){return new ki({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Se.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Se.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Se.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Se.toString(t)})}multipleOf(t,o){return this._addCheck({kind:"multipleOf",value:t,message:Se.toString(o)})}get minValue(){let t=null;for(const o of this._def.checks)o.kind==="min"&&(t===null||o.value>t)&&(t=o.value);return t}get maxValue(){let t=null;for(const o of this._def.checks)o.kind==="max"&&(t===null||o.value<t)&&(t=o.value);return t}}ki.create=r=>new ki({checks:[],typeName:Pe.ZodBigInt,coerce:r?.coerce??!1,...De(r)});class Bl extends Me{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==me.boolean){const i=this._getOrReturnCtx(t);return de(i,{code:Q.invalid_type,expected:me.boolean,received:i.parsedType}),Re}return Xt(t.data)}}Bl.create=r=>new Bl({typeName:Pe.ZodBoolean,coerce:r?.coerce||!1,...De(r)});class Os extends Me{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==me.date){const l=this._getOrReturnCtx(t);return de(l,{code:Q.invalid_type,expected:me.date,received:l.parsedType}),Re}if(Number.isNaN(t.data.getTime())){const l=this._getOrReturnCtx(t);return de(l,{code:Q.invalid_date}),Re}const i=new Nt;let a;for(const l of this._def.checks)l.kind==="min"?t.data.getTime()<l.value&&(a=this._getOrReturnCtx(t,a),de(a,{code:Q.too_small,message:l.message,inclusive:!0,exact:!1,minimum:l.value,type:"date"}),i.dirty()):l.kind==="max"?t.data.getTime()>l.value&&(a=this._getOrReturnCtx(t,a),de(a,{code:Q.too_big,message:l.message,inclusive:!0,exact:!1,maximum:l.value,type:"date"}),i.dirty()):Fe.assertNever(l);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Os({...this._def,checks:[...this._def.checks,t]})}min(t,o){return this._addCheck({kind:"min",value:t.getTime(),message:Se.toString(o)})}max(t,o){return this._addCheck({kind:"max",value:t.getTime(),message:Se.toString(o)})}get minDate(){let t=null;for(const o of this._def.checks)o.kind==="min"&&(t===null||o.value>t)&&(t=o.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const o of this._def.checks)o.kind==="max"&&(t===null||o.value<t)&&(t=o.value);return t!=null?new Date(t):null}}Os.create=r=>new Os({checks:[],coerce:r?.coerce||!1,typeName:Pe.ZodDate,...De(r)});class _f extends Me{_parse(t){if(this._getType(t)!==me.symbol){const i=this._getOrReturnCtx(t);return de(i,{code:Q.invalid_type,expected:me.symbol,received:i.parsedType}),Re}return Xt(t.data)}}_f.create=r=>new _f({typeName:Pe.ZodSymbol,...De(r)});class Hl extends Me{_parse(t){if(this._getType(t)!==me.undefined){const i=this._getOrReturnCtx(t);return de(i,{code:Q.invalid_type,expected:me.undefined,received:i.parsedType}),Re}return Xt(t.data)}}Hl.create=r=>new Hl({typeName:Pe.ZodUndefined,...De(r)});class Ns extends Me{_parse(t){if(this._getType(t)!==me.null){const i=this._getOrReturnCtx(t);return de(i,{code:Q.invalid_type,expected:me.null,received:i.parsedType}),Re}return Xt(t.data)}}Ns.create=r=>new Ns({typeName:Pe.ZodNull,...De(r)});class Ef extends Me{constructor(){super(...arguments),this._any=!0}_parse(t){return Xt(t.data)}}Ef.create=r=>new Ef({typeName:Pe.ZodAny,...De(r)});class Wl extends Me{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Xt(t.data)}}Wl.create=r=>new Wl({typeName:Pe.ZodUnknown,...De(r)});class pr extends Me{_parse(t){const o=this._getOrReturnCtx(t);return de(o,{code:Q.invalid_type,expected:me.never,received:o.parsedType}),Re}}pr.create=r=>new pr({typeName:Pe.ZodNever,...De(r)});class Rf extends Me{_parse(t){if(this._getType(t)!==me.undefined){const i=this._getOrReturnCtx(t);return de(i,{code:Q.invalid_type,expected:me.void,received:i.parsedType}),Re}return Xt(t.data)}}Rf.create=r=>new Rf({typeName:Pe.ZodVoid,...De(r)});class Sn extends Me{_parse(t){const{ctx:o,status:i}=this._processInputParams(t),a=this._def;if(o.parsedType!==me.array)return de(o,{code:Q.invalid_type,expected:me.array,received:o.parsedType}),Re;if(a.exactLength!==null){const u=o.data.length>a.exactLength.value,d=o.data.length<a.exactLength.value;(u||d)&&(de(o,{code:u?Q.too_big:Q.too_small,minimum:d?a.exactLength.value:void 0,maximum:u?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),i.dirty())}if(a.minLength!==null&&o.data.length<a.minLength.value&&(de(o,{code:Q.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),i.dirty()),a.maxLength!==null&&o.data.length>a.maxLength.value&&(de(o,{code:Q.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),i.dirty()),o.common.async)return Promise.all([...o.data].map((u,d)=>a.type._parseAsync(new wn(o,u,o.path,d)))).then(u=>Nt.mergeArray(i,u));const l=[...o.data].map((u,d)=>a.type._parseSync(new wn(o,u,o.path,d)));return Nt.mergeArray(i,l)}get element(){return this._def.type}min(t,o){return new Sn({...this._def,minLength:{value:t,message:Se.toString(o)}})}max(t,o){return new Sn({...this._def,maxLength:{value:t,message:Se.toString(o)}})}length(t,o){return new Sn({...this._def,exactLength:{value:t,message:Se.toString(o)}})}nonempty(t){return this.min(1,t)}}Sn.create=(r,t)=>new Sn({type:r,minLength:null,maxLength:null,exactLength:null,typeName:Pe.ZodArray,...De(t)});function Ro(r){if(r instanceof dt){const t={};for(const o in r.shape){const i=r.shape[o];t[o]=Un.create(Ro(i))}return new dt({...r._def,shape:()=>t})}else return r instanceof Sn?new Sn({...r._def,type:Ro(r.element)}):r instanceof Un?Un.create(Ro(r.unwrap())):r instanceof Xr?Xr.create(Ro(r.unwrap())):r instanceof Gr?Gr.create(r.items.map(t=>Ro(t))):r}class dt extends Me{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),o=Fe.objectKeys(t);return this._cached={shape:t,keys:o},this._cached}_parse(t){if(this._getType(t)!==me.object){const g=this._getOrReturnCtx(t);return de(g,{code:Q.invalid_type,expected:me.object,received:g.parsedType}),Re}const{status:i,ctx:a}=this._processInputParams(t),{shape:l,keys:u}=this._getCached(),d=[];if(!(this._def.catchall instanceof pr&&this._def.unknownKeys==="strip"))for(const g in a.data)u.includes(g)||d.push(g);const h=[];for(const g of u){const v=l[g],y=a.data[g];h.push({key:{status:"valid",value:g},value:v._parse(new wn(a,y,a.path,g)),alwaysSet:g in a.data})}if(this._def.catchall instanceof pr){const g=this._def.unknownKeys;if(g==="passthrough")for(const v of d)h.push({key:{status:"valid",value:v},value:{status:"valid",value:a.data[v]}});else if(g==="strict")d.length>0&&(de(a,{code:Q.unrecognized_keys,keys:d}),i.dirty());else if(g!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const g=this._def.catchall;for(const v of d){const y=a.data[v];h.push({key:{status:"valid",value:v},value:g._parse(new wn(a,y,a.path,v)),alwaysSet:v in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const g=[];for(const v of h){const y=await v.key,S=await v.value;g.push({key:y,value:S,alwaysSet:v.alwaysSet})}return g}).then(g=>Nt.mergeObjectSync(i,g)):Nt.mergeObjectSync(i,h)}get shape(){return this._def.shape()}strict(t){return Se.errToObj,new dt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(o,i)=>{const a=this._def.errorMap?.(o,i).message??i.defaultError;return o.code==="unrecognized_keys"?{message:Se.errToObj(t).message??a}:{message:a}}}:{}})}strip(){return new dt({...this._def,unknownKeys:"strip"})}passthrough(){return new dt({...this._def,unknownKeys:"passthrough"})}extend(t){return new dt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new dt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Pe.ZodObject})}setKey(t,o){return this.augment({[t]:o})}catchall(t){return new dt({...this._def,catchall:t})}pick(t){const o={};for(const i of Fe.objectKeys(t))t[i]&&this.shape[i]&&(o[i]=this.shape[i]);return new dt({...this._def,shape:()=>o})}omit(t){const o={};for(const i of Fe.objectKeys(this.shape))t[i]||(o[i]=this.shape[i]);return new dt({...this._def,shape:()=>o})}deepPartial(){return Ro(this)}partial(t){const o={};for(const i of Fe.objectKeys(this.shape)){const a=this.shape[i];t&&!t[i]?o[i]=a:o[i]=a.optional()}return new dt({...this._def,shape:()=>o})}required(t){const o={};for(const i of Fe.objectKeys(this.shape))if(t&&!t[i])o[i]=this.shape[i];else{let l=this.shape[i];for(;l instanceof Un;)l=l._def.innerType;o[i]=l}return new dt({...this._def,shape:()=>o})}keyof(){return If(Fe.objectKeys(this.shape))}}dt.create=(r,t)=>new dt({shape:()=>r,unknownKeys:"strip",catchall:pr.create(),typeName:Pe.ZodObject,...De(t)}),dt.strictCreate=(r,t)=>new dt({shape:()=>r,unknownKeys:"strict",catchall:pr.create(),typeName:Pe.ZodObject,...De(t)}),dt.lazycreate=(r,t)=>new dt({shape:r,unknownKeys:"strip",catchall:pr.create(),typeName:Pe.ZodObject,...De(t)});class Ts extends Me{_parse(t){const{ctx:o}=this._processInputParams(t),i=this._def.options;function a(l){for(const d of l)if(d.result.status==="valid")return d.result;for(const d of l)if(d.result.status==="dirty")return o.common.issues.push(...d.ctx.common.issues),d.result;const u=l.map(d=>new zn(d.ctx.common.issues));return de(o,{code:Q.invalid_union,unionErrors:u}),Re}if(o.common.async)return Promise.all(i.map(async l=>{const u={...o,common:{...o.common,issues:[]},parent:null};return{result:await l._parseAsync({data:o.data,path:o.path,parent:u}),ctx:u}})).then(a);{let l;const u=[];for(const h of i){const g={...o,common:{...o.common,issues:[]},parent:null},v=h._parseSync({data:o.data,path:o.path,parent:g});if(v.status==="valid")return v;v.status==="dirty"&&!l&&(l={result:v,ctx:g}),g.common.issues.length&&u.push(g.common.issues)}if(l)return o.common.issues.push(...l.ctx.common.issues),l.result;const d=u.map(h=>new zn(h));return de(o,{code:Q.invalid_union,unionErrors:d}),Re}}get options(){return this._def.options}}Ts.create=(r,t)=>new Ts({options:r,typeName:Pe.ZodUnion,...De(t)});const Vn=r=>r instanceof Ls?Vn(r.schema):r instanceof Yr?Vn(r.innerType()):r instanceof $s?[r.value]:r instanceof Qr?r.options:r instanceof ql?Fe.objectValues(r.enum):r instanceof Ms?Vn(r._def.innerType):r instanceof Hl?[void 0]:r instanceof Ns?[null]:r instanceof Un?[void 0,...Vn(r.unwrap())]:r instanceof Xr?[null,...Vn(r.unwrap())]:r instanceof Nf||r instanceof Fs?Vn(r.unwrap()):r instanceof zs?Vn(r._def.innerType):[];class Kl extends Me{_parse(t){const{ctx:o}=this._processInputParams(t);if(o.parsedType!==me.object)return de(o,{code:Q.invalid_type,expected:me.object,received:o.parsedType}),Re;const i=this.discriminator,a=o.data[i],l=this.optionsMap.get(a);return l?o.common.async?l._parseAsync({data:o.data,path:o.path,parent:o}):l._parseSync({data:o.data,path:o.path,parent:o}):(de(o,{code:Q.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),Re)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,o,i){const a=new Map;for(const l of o){const u=Vn(l.shape[t]);if(!u.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const d of u){if(a.has(d))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(d)}`);a.set(d,l)}}return new Kl({typeName:Pe.ZodDiscriminatedUnion,discriminator:t,options:o,optionsMap:a,...De(i)})}}function Zl(r,t){const o=fr(r),i=fr(t);if(r===t)return{valid:!0,data:r};if(o===me.object&&i===me.object){const a=Fe.objectKeys(t),l=Fe.objectKeys(r).filter(d=>a.indexOf(d)!==-1),u={...r,...t};for(const d of l){const h=Zl(r[d],t[d]);if(!h.valid)return{valid:!1};u[d]=h.data}return{valid:!0,data:u}}else if(o===me.array&&i===me.array){if(r.length!==t.length)return{valid:!1};const a=[];for(let l=0;l<r.length;l++){const u=r[l],d=t[l],h=Zl(u,d);if(!h.valid)return{valid:!1};a.push(h.data)}return{valid:!0,data:a}}else return o===me.date&&i===me.date&&+r==+t?{valid:!0,data:r}:{valid:!1}}class Ds extends Me{_parse(t){const{status:o,ctx:i}=this._processInputParams(t),a=(l,u)=>{if(wf(l)||wf(u))return Re;const d=Zl(l.value,u.value);return d.valid?((Sf(l)||Sf(u))&&o.dirty(),{status:o.value,value:d.data}):(de(i,{code:Q.invalid_intersection_types}),Re)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([l,u])=>a(l,u)):a(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}Ds.create=(r,t,o)=>new Ds({left:r,right:t,typeName:Pe.ZodIntersection,...De(o)});class Gr extends Me{_parse(t){const{status:o,ctx:i}=this._processInputParams(t);if(i.parsedType!==me.array)return de(i,{code:Q.invalid_type,expected:me.array,received:i.parsedType}),Re;if(i.data.length<this._def.items.length)return de(i,{code:Q.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Re;!this._def.rest&&i.data.length>this._def.items.length&&(de(i,{code:Q.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),o.dirty());const l=[...i.data].map((u,d)=>{const h=this._def.items[d]||this._def.rest;return h?h._parse(new wn(i,u,i.path,d)):null}).filter(u=>!!u);return i.common.async?Promise.all(l).then(u=>Nt.mergeArray(o,u)):Nt.mergeArray(o,l)}get items(){return this._def.items}rest(t){return new Gr({...this._def,rest:t})}}Gr.create=(r,t)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Gr({items:r,typeName:Pe.ZodTuple,rest:null,...De(t)})};class As extends Me{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:o,ctx:i}=this._processInputParams(t);if(i.parsedType!==me.object)return de(i,{code:Q.invalid_type,expected:me.object,received:i.parsedType}),Re;const a=[],l=this._def.keyType,u=this._def.valueType;for(const d in i.data)a.push({key:l._parse(new wn(i,d,i.path,d)),value:u._parse(new wn(i,i.data[d],i.path,d)),alwaysSet:d in i.data});return i.common.async?Nt.mergeObjectAsync(o,a):Nt.mergeObjectSync(o,a)}get element(){return this._def.valueType}static create(t,o,i){return o instanceof Me?new As({keyType:t,valueType:o,typeName:Pe.ZodRecord,...De(i)}):new As({keyType:Fn.create(),valueType:t,typeName:Pe.ZodRecord,...De(o)})}}class Pf extends Me{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:o,ctx:i}=this._processInputParams(t);if(i.parsedType!==me.map)return de(i,{code:Q.invalid_type,expected:me.map,received:i.parsedType}),Re;const a=this._def.keyType,l=this._def.valueType,u=[...i.data.entries()].map(([d,h],g)=>({key:a._parse(new wn(i,d,i.path,[g,"key"])),value:l._parse(new wn(i,h,i.path,[g,"value"]))}));if(i.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const h of u){const g=await h.key,v=await h.value;if(g.status==="aborted"||v.status==="aborted")return Re;(g.status==="dirty"||v.status==="dirty")&&o.dirty(),d.set(g.value,v.value)}return{status:o.value,value:d}})}else{const d=new Map;for(const h of u){const g=h.key,v=h.value;if(g.status==="aborted"||v.status==="aborted")return Re;(g.status==="dirty"||v.status==="dirty")&&o.dirty(),d.set(g.value,v.value)}return{status:o.value,value:d}}}}Pf.create=(r,t,o)=>new Pf({valueType:t,keyType:r,typeName:Pe.ZodMap,...De(o)});class Ci extends Me{_parse(t){const{status:o,ctx:i}=this._processInputParams(t);if(i.parsedType!==me.set)return de(i,{code:Q.invalid_type,expected:me.set,received:i.parsedType}),Re;const a=this._def;a.minSize!==null&&i.data.size<a.minSize.value&&(de(i,{code:Q.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),o.dirty()),a.maxSize!==null&&i.data.size>a.maxSize.value&&(de(i,{code:Q.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),o.dirty());const l=this._def.valueType;function u(h){const g=new Set;for(const v of h){if(v.status==="aborted")return Re;v.status==="dirty"&&o.dirty(),g.add(v.value)}return{status:o.value,value:g}}const d=[...i.data.values()].map((h,g)=>l._parse(new wn(i,h,i.path,g)));return i.common.async?Promise.all(d).then(h=>u(h)):u(d)}min(t,o){return new Ci({...this._def,minSize:{value:t,message:Se.toString(o)}})}max(t,o){return new Ci({...this._def,maxSize:{value:t,message:Se.toString(o)}})}size(t,o){return this.min(t,o).max(t,o)}nonempty(t){return this.min(1,t)}}Ci.create=(r,t)=>new Ci({valueType:r,minSize:null,maxSize:null,typeName:Pe.ZodSet,...De(t)});class Ls extends Me{get schema(){return this._def.getter()}_parse(t){const{ctx:o}=this._processInputParams(t);return this._def.getter()._parse({data:o.data,path:o.path,parent:o})}}Ls.create=(r,t)=>new Ls({getter:r,typeName:Pe.ZodLazy,...De(t)});class $s extends Me{_parse(t){if(t.data!==this._def.value){const o=this._getOrReturnCtx(t);return de(o,{received:o.data,code:Q.invalid_literal,expected:this._def.value}),Re}return{status:"valid",value:t.data}}get value(){return this._def.value}}$s.create=(r,t)=>new $s({value:r,typeName:Pe.ZodLiteral,...De(t)});function If(r,t){return new Qr({values:r,typeName:Pe.ZodEnum,...De(t)})}class Qr extends Me{_parse(t){if(typeof t.data!="string"){const o=this._getOrReturnCtx(t),i=this._def.values;return de(o,{expected:Fe.joinValues(i),received:o.parsedType,code:Q.invalid_type}),Re}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const o=this._getOrReturnCtx(t),i=this._def.values;return de(o,{received:o.data,code:Q.invalid_enum_value,options:i}),Re}return Xt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const o of this._def.values)t[o]=o;return t}get Values(){const t={};for(const o of this._def.values)t[o]=o;return t}get Enum(){const t={};for(const o of this._def.values)t[o]=o;return t}extract(t,o=this._def){return Qr.create(t,{...this._def,...o})}exclude(t,o=this._def){return Qr.create(this.options.filter(i=>!t.includes(i)),{...this._def,...o})}}Qr.create=If;class ql extends Me{_parse(t){const o=Fe.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==me.string&&i.parsedType!==me.number){const a=Fe.objectValues(o);return de(i,{expected:Fe.joinValues(a),received:i.parsedType,code:Q.invalid_type}),Re}if(this._cache||(this._cache=new Set(Fe.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const a=Fe.objectValues(o);return de(i,{received:i.data,code:Q.invalid_enum_value,options:a}),Re}return Xt(t.data)}get enum(){return this._def.values}}ql.create=(r,t)=>new ql({values:r,typeName:Pe.ZodNativeEnum,...De(t)});class js extends Me{unwrap(){return this._def.type}_parse(t){const{ctx:o}=this._processInputParams(t);if(o.parsedType!==me.promise&&o.common.async===!1)return de(o,{code:Q.invalid_type,expected:me.promise,received:o.parsedType}),Re;const i=o.parsedType===me.promise?o.data:Promise.resolve(o.data);return Xt(i.then(a=>this._def.type.parseAsync(a,{path:o.path,errorMap:o.common.contextualErrorMap})))}}js.create=(r,t)=>new js({type:r,typeName:Pe.ZodPromise,...De(t)});class Yr extends Me{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Pe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:o,ctx:i}=this._processInputParams(t),a=this._def.effect||null,l={addIssue:u=>{de(i,u),u.fatal?o.abort():o.dirty()},get path(){return i.path}};if(l.addIssue=l.addIssue.bind(l),a.type==="preprocess"){const u=a.transform(i.data,l);if(i.common.async)return Promise.resolve(u).then(async d=>{if(o.value==="aborted")return Re;const h=await this._def.schema._parseAsync({data:d,path:i.path,parent:i});return h.status==="aborted"?Re:h.status==="dirty"||o.value==="dirty"?bi(h.value):h});{if(o.value==="aborted")return Re;const d=this._def.schema._parseSync({data:u,path:i.path,parent:i});return d.status==="aborted"?Re:d.status==="dirty"||o.value==="dirty"?bi(d.value):d}}if(a.type==="refinement"){const u=d=>{const h=a.refinement(d,l);if(i.common.async)return Promise.resolve(h);if(h instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return d};if(i.common.async===!1){const d=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return d.status==="aborted"?Re:(d.status==="dirty"&&o.dirty(),u(d.value),{status:o.value,value:d.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(d=>d.status==="aborted"?Re:(d.status==="dirty"&&o.dirty(),u(d.value).then(()=>({status:o.value,value:d.value}))))}if(a.type==="transform")if(i.common.async===!1){const u=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!_o(u))return Re;const d=a.transform(u.value,l);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:o.value,value:d}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(u=>_o(u)?Promise.resolve(a.transform(u.value,l)).then(d=>({status:o.value,value:d})):Re);Fe.assertNever(a)}}Yr.create=(r,t,o)=>new Yr({schema:r,typeName:Pe.ZodEffects,effect:t,...De(o)}),Yr.createWithPreprocess=(r,t,o)=>new Yr({schema:t,effect:{type:"preprocess",transform:r},typeName:Pe.ZodEffects,...De(o)});class Un extends Me{_parse(t){return this._getType(t)===me.undefined?Xt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Un.create=(r,t)=>new Un({innerType:r,typeName:Pe.ZodOptional,...De(t)});class Xr extends Me{_parse(t){return this._getType(t)===me.null?Xt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Xr.create=(r,t)=>new Xr({innerType:r,typeName:Pe.ZodNullable,...De(t)});class Ms extends Me{_parse(t){const{ctx:o}=this._processInputParams(t);let i=o.data;return o.parsedType===me.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:o.path,parent:o})}removeDefault(){return this._def.innerType}}Ms.create=(r,t)=>new Ms({innerType:r,typeName:Pe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...De(t)});class zs extends Me{_parse(t){const{ctx:o}=this._processInputParams(t),i={...o,common:{...o.common,issues:[]}},a=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return Is(a)?a.then(l=>({status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new zn(i.common.issues)},input:i.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new zn(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}zs.create=(r,t)=>new zs({innerType:r,typeName:Pe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...De(t)});class Of extends Me{_parse(t){if(this._getType(t)!==me.nan){const i=this._getOrReturnCtx(t);return de(i,{code:Q.invalid_type,expected:me.nan,received:i.parsedType}),Re}return{status:"valid",value:t.data}}}Of.create=r=>new Of({typeName:Pe.ZodNaN,...De(r)});class Nf extends Me{_parse(t){const{ctx:o}=this._processInputParams(t),i=o.data;return this._def.type._parse({data:i,path:o.path,parent:o})}unwrap(){return this._def.type}}class Gl extends Me{_parse(t){const{status:o,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{const l=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return l.status==="aborted"?Re:l.status==="dirty"?(o.dirty(),bi(l.value)):this._def.out._parseAsync({data:l.value,path:i.path,parent:i})})();{const a=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?Re:a.status==="dirty"?(o.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:i.path,parent:i})}}static create(t,o){return new Gl({in:t,out:o,typeName:Pe.ZodPipeline})}}class Fs extends Me{_parse(t){const o=this._def.innerType._parse(t),i=a=>(_o(a)&&(a.value=Object.freeze(a.value)),a);return Is(o)?o.then(a=>i(a)):i(o)}unwrap(){return this._def.innerType}}Fs.create=(r,t)=>new Fs({innerType:r,typeName:Pe.ZodReadonly,...De(t)});var Pe;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline",r.ZodReadonly="ZodReadonly"})(Pe||(Pe={}));const te=Fn.create,mt=Eo.create,Tt=Bl.create,hr=Ns.create,Jr=Wl.create;pr.create;const nt=Sn.create,xe=dt.create,Bn=Ts.create,Tf=Kl.create;Ds.create,Gr.create;const mr=As.create,Ix=Ls.create,Qe=$s.create,Hn=Qr.create;js.create,Un.create,Xr.create;function Df(r){var t,o,i="";if(typeof r=="string"||typeof r=="number")i+=r;else if(typeof r=="object")if(Array.isArray(r)){var a=r.length;for(t=0;t<a;t++)r[t]&&(o=Df(r[t]))&&(i&&(i+=" "),i+=o)}else for(o in r)r[o]&&(i&&(i+=" "),i+=o);return i}function Af(){for(var r,t,o=0,i="",a=arguments.length;o<a;o++)(r=arguments[o])&&(t=Df(r))&&(i&&(i+=" "),i+=t);return i}const Ox=(r,t)=>{const o=new Array(r.length+t.length);for(let i=0;i<r.length;i++)o[i]=r[i];for(let i=0;i<t.length;i++)o[r.length+i]=t[i];return o},Nx=(r,t)=>({classGroupId:r,validator:t}),Lf=(r=new Map,t=null,o)=>({nextPart:r,validators:t,classGroupId:o}),Vs="-",$f=[],Tx="arbitrary..",Dx=r=>{const t=Lx(r),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=r;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return Ax(u);const d=u.split(Vs),h=d[0]===""&&d.length>1?1:0;return jf(d,h,t)},getConflictingClassGroupIds:(u,d)=>{if(d){const h=i[u],g=o[u];return h?g?Ox(g,h):h:g||$f}return o[u]||$f}}},jf=(r,t,o)=>{if(r.length-t===0)return o.classGroupId;const a=r[t],l=o.nextPart.get(a);if(l){const g=jf(r,t+1,l);if(g)return g}const u=o.validators;if(u===null)return;const d=t===0?r.join(Vs):r.slice(t).join(Vs),h=u.length;for(let g=0;g<h;g++){const v=u[g];if(v.validator(d))return v.classGroupId}},Ax=r=>r.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=r.slice(1,-1),o=t.indexOf(":"),i=t.slice(0,o);return i?Tx+i:void 0})(),Lx=r=>{const{theme:t,classGroups:o}=r;return $x(o,t)},$x=(r,t)=>{const o=Lf();for(const i in r){const a=r[i];Ql(a,o,i,t)}return o},Ql=(r,t,o,i)=>{const a=r.length;for(let l=0;l<a;l++){const u=r[l];jx(u,t,o,i)}},jx=(r,t,o,i)=>{if(typeof r=="string"){Mx(r,t,o);return}if(typeof r=="function"){zx(r,t,o,i);return}Fx(r,t,o,i)},Mx=(r,t,o)=>{const i=r===""?t:Mf(t,r);i.classGroupId=o},zx=(r,t,o,i)=>{if(Vx(r)){Ql(r(i),t,o,i);return}t.validators===null&&(t.validators=[]),t.validators.push(Nx(o,r))},Fx=(r,t,o,i)=>{const a=Object.entries(r),l=a.length;for(let u=0;u<l;u++){const[d,h]=a[u];Ql(h,Mf(t,d),o,i)}},Mf=(r,t)=>{let o=r;const i=t.split(Vs),a=i.length;for(let l=0;l<a;l++){const u=i[l];let d=o.nextPart.get(u);d||(d=Lf(),o.nextPart.set(u,d)),o=d}return o},Vx=r=>"isThemeGetter"in r&&r.isThemeGetter===!0,Ux=r=>{if(r<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),i=Object.create(null);const a=(l,u)=>{o[l]=u,t++,t>r&&(t=0,i=o,o=Object.create(null))};return{get(l){let u=o[l];if(u!==void 0)return u;if((u=i[l])!==void 0)return a(l,u),u},set(l,u){l in o?o[l]=u:a(l,u)}}},Yl="!",zf=":",Bx=[],Ff=(r,t,o,i,a)=>({modifiers:r,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:i,isExternal:a}),Hx=r=>{const{prefix:t,experimentalParseClassName:o}=r;let i=a=>{const l=[];let u=0,d=0,h=0,g;const v=a.length;for(let _=0;_<v;_++){const k=a[_];if(u===0&&d===0){if(k===zf){l.push(a.slice(h,_)),h=_+1;continue}if(k==="/"){g=_;continue}}k==="["?u++:k==="]"?u--:k==="("?d++:k===")"&&d--}const y=l.length===0?a:a.slice(h);let S=y,b=!1;y.endsWith(Yl)?(S=y.slice(0,-1),b=!0):y.startsWith(Yl)&&(S=y.slice(1),b=!0);const w=g&&g>h?g-h:void 0;return Ff(l,b,S,w)};if(t){const a=t+zf,l=i;i=u=>u.startsWith(a)?l(u.slice(a.length)):Ff(Bx,!1,u,void 0,!0)}if(o){const a=i;i=l=>o({className:l,parseClassName:a})}return i},Wx=r=>{const t=new Map;return r.orderSensitiveModifiers.forEach((o,i)=>{t.set(o,1e6+i)}),o=>{const i=[];let a=[];for(let l=0;l<o.length;l++){const u=o[l],d=u[0]==="[",h=t.has(u);d||h?(a.length>0&&(a.sort(),i.push(...a),a=[]),i.push(u)):a.push(u)}return a.length>0&&(a.sort(),i.push(...a)),i}},Kx=r=>({cache:Ux(r.cacheSize),parseClassName:Hx(r),sortModifiers:Wx(r),postfixLookupClassGroupIds:Zx(r),...Dx(r)}),Zx=r=>{const t=Object.create(null),o=r.postfixLookupClassGroups;if(o)for(let i=0;i<o.length;i++)t[o[i]]=!0;return t},qx=/\s+/,Gx=(r,t)=>{const{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:a,sortModifiers:l,postfixLookupClassGroupIds:u}=t,d=[],h=r.trim().split(qx);let g="";for(let v=h.length-1;v>=0;v-=1){const y=h[v],{isExternal:S,modifiers:b,hasImportantModifier:w,baseClassName:_,maybePostfixModifierPosition:k}=o(y);if(S){g=y+(g.length>0?" "+g:g);continue}let R=!!k,D;if(R){const B=_.substring(0,k);D=i(B);const j=D&&u[D]?i(_):void 0;j&&j!==D&&(D=j,R=!1)}else D=i(_);if(!D){if(!R){g=y+(g.length>0?" "+g:g);continue}if(D=i(_),!D){g=y+(g.length>0?" "+g:g);continue}R=!1}const T=b.length===0?"":b.length===1?b[0]:l(b).join(":"),O=w?T+Yl:T,V=O+D;if(d.indexOf(V)>-1)continue;d.push(V);const L=a(D,R);for(let B=0;B<L.length;++B){const j=L[B];d.push(O+j)}g=y+(g.length>0?" "+g:g)}return g},Qx=(...r)=>{let t=0,o,i,a="";for(;t<r.length;)(o=r[t++])&&(i=Vf(o))&&(a&&(a+=" "),a+=i);return a},Vf=r=>{if(typeof r=="string")return r;let t,o="";for(let i=0;i<r.length;i++)r[i]&&(t=Vf(r[i]))&&(o&&(o+=" "),o+=t);return o},Yx=(r,...t)=>{let o,i,a,l;const u=h=>{const g=t.reduce((v,y)=>y(v),r());return o=Kx(g),i=o.cache.get,a=o.cache.set,l=d,d(h)},d=h=>{const g=i(h);if(g)return g;const v=Gx(h,o);return a(h,v),v};return l=u,(...h)=>l(Qx(...h))},Xx=[],gt=r=>{const t=o=>o[r]||Xx;return t.isThemeGetter=!0,t},Uf=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Bf=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Jx=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,e0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,t0=/\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$/,n0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,r0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,o0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,gr=r=>Jx.test(r),Ae=r=>!!r&&!Number.isNaN(Number(r)),bn=r=>!!r&&Number.isInteger(Number(r)),Xl=r=>r.endsWith("%")&&Ae(r.slice(0,-1)),Wn=r=>e0.test(r),Hf=()=>!0,i0=r=>t0.test(r)&&!n0.test(r),Jl=()=>!1,s0=r=>r0.test(r),a0=r=>o0.test(r),l0=r=>!he(r)&&!ge(r),c0=r=>r.startsWith("@container")&&(r[10]==="/"&&r[11]!==void 0||r[11]==="s"&&r[16]!==void 0&&r.startsWith("-size/",10)||r[11]==="n"&&r[18]!==void 0&&r.startsWith("-normal/",10)),u0=r=>vr(r,Qf,Jl),he=r=>Uf.test(r),eo=r=>vr(r,Yf,i0),Wf=r=>vr(r,y0,Ae),d0=r=>vr(r,Jf,Hf),f0=r=>vr(r,Xf,Jl),Kf=r=>vr(r,qf,Jl),p0=r=>vr(r,Gf,a0),Us=r=>vr(r,ep,s0),ge=r=>Bf.test(r),_i=r=>to(r,Yf),h0=r=>to(r,Xf),Zf=r=>to(r,qf),m0=r=>to(r,Qf),g0=r=>to(r,Gf),Bs=r=>to(r,ep,!0),v0=r=>to(r,Jf,!0),vr=(r,t,o)=>{const i=Uf.exec(r);return i?i[1]?t(i[1]):o(i[2]):!1},to=(r,t,o=!1)=>{const i=Bf.exec(r);return i?i[1]?t(i[1]):o:!1},qf=r=>r==="position"||r==="percentage",Gf=r=>r==="image"||r==="url",Qf=r=>r==="length"||r==="size"||r==="bg-size",Yf=r=>r==="length",y0=r=>r==="number",Xf=r=>r==="family-name",Jf=r=>r==="number"||r==="weight",ep=r=>r==="shadow",x0=Yx(()=>{const r=gt("color"),t=gt("font"),o=gt("text"),i=gt("font-weight"),a=gt("tracking"),l=gt("leading"),u=gt("breakpoint"),d=gt("container"),h=gt("spacing"),g=gt("radius"),v=gt("shadow"),y=gt("inset-shadow"),S=gt("text-shadow"),b=gt("drop-shadow"),w=gt("blur"),_=gt("perspective"),k=gt("aspect"),R=gt("ease"),D=gt("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],V=()=>[...O(),ge,he],L=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],j=()=>[ge,he,h],Y=()=>[gr,"full","auto",...j()],ce=()=>[bn,"none","subgrid",ge,he],Ce=()=>["auto",{span:["full",bn,ge,he]},bn,ge,he],le=()=>[bn,"auto",ge,he],ue=()=>["auto","min","max","fr",ge,he],se=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],be=()=>["start","end","center","stretch","center-safe","end-safe"],ae=()=>["auto",...j()],oe=()=>[gr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],U=()=>[gr,"screen","full","dvw","lvw","svw","min","max","fit",...j()],G=()=>[gr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...j()],z=()=>[r,ge,he],I=()=>[...O(),Zf,Kf,{position:[ge,he]}],E=()=>["no-repeat",{repeat:["","x","y","space","round"]}],W=()=>["auto","cover","contain",m0,u0,{size:[ge,he]}],J=()=>[Xl,_i,eo],H=()=>["","none","full",g,ge,he],re=()=>["",Ae,_i,eo],pe=()=>["solid","dashed","dotted","double"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>[Ae,Xl,Zf,Kf],Te=()=>["","none",w,ge,he],$e=()=>["none",Ae,ge,he],je=()=>["none",Ae,ge,he],ze=()=>[Ae,ge,he],ot=()=>[gr,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Wn],breakpoint:[Wn],color:[Hf],container:[Wn],"drop-shadow":[Wn],ease:["in","out","in-out"],font:[l0],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Wn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Wn],shadow:[Wn],spacing:["px",Ae],text:[Wn],"text-shadow":[Wn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",gr,he,ge,k]}],container:["container"],"container-type":[{"@container":["","normal","size",ge,he]}],"container-named":[c0],columns:[{columns:[Ae,he,ge,d]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"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:V()}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Y()}],"inset-x":[{"inset-x":Y()}],"inset-y":[{"inset-y":Y()}],start:[{"inset-s":Y(),start:Y()}],end:[{"inset-e":Y(),end:Y()}],"inset-bs":[{"inset-bs":Y()}],"inset-be":[{"inset-be":Y()}],top:[{top:Y()}],right:[{right:Y()}],bottom:[{bottom:Y()}],left:[{left:Y()}],visibility:["visible","invisible","collapse"],z:[{z:[bn,"auto",ge,he]}],basis:[{basis:[gr,"full","auto",d,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ae,gr,"auto","initial","none",he]}],grow:[{grow:["",Ae,ge,he]}],shrink:[{shrink:["",Ae,ge,he]}],order:[{order:[bn,"first","last","none",ge,he]}],"grid-cols":[{"grid-cols":ce()}],"col-start-end":[{col:Ce()}],"col-start":[{"col-start":le()}],"col-end":[{"col-end":le()}],"grid-rows":[{"grid-rows":ce()}],"row-start-end":[{row:Ce()}],"row-start":[{"row-start":le()}],"row-end":[{"row-end":le()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ue()}],"auto-rows":[{"auto-rows":ue()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...se(),"normal"]}],"justify-items":[{"justify-items":[...be(),"normal"]}],"justify-self":[{"justify-self":["auto",...be()]}],"align-content":[{content:["normal",...se()]}],"align-items":[{items:[...be(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...be(),{baseline:["","last"]}]}],"place-content":[{"place-content":se()}],"place-items":[{"place-items":[...be(),"baseline"]}],"place-self":[{"place-self":["auto",...be()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pbs:[{pbs:j()}],pbe:[{pbe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:ae()}],mx:[{mx:ae()}],my:[{my:ae()}],ms:[{ms:ae()}],me:[{me:ae()}],mbs:[{mbs:ae()}],mbe:[{mbe:ae()}],mt:[{mt:ae()}],mr:[{mr:ae()}],mb:[{mb:ae()}],ml:[{ml:ae()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:oe()}],"inline-size":[{inline:["auto",...U()]}],"min-inline-size":[{"min-inline":["auto",...U()]}],"max-inline-size":[{"max-inline":["none",...U()]}],"block-size":[{block:["auto",...G()]}],"min-block-size":[{"min-block":["auto",...G()]}],"max-block-size":[{"max-block":["none",...G()]}],w:[{w:[d,"screen",...oe()]}],"min-w":[{"min-w":[d,"screen","none",...oe()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[u]},...oe()]}],h:[{h:["screen","lh",...oe()]}],"min-h":[{"min-h":["screen","lh","none",...oe()]}],"max-h":[{"max-h":["screen","lh",...oe()]}],"font-size":[{text:["base",o,_i,eo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,v0,d0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Xl,he]}],"font-family":[{font:[h0,f0,t]}],"font-features":[{"font-features":[he]}],"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:[a,ge,he]}],"line-clamp":[{"line-clamp":[Ae,"none",ge,Wf]}],leading:[{leading:[l,...j()]}],"list-image":[{"list-image":["none",ge,he]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ge,he]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:z()}],"text-color":[{text:z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...pe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ae,"from-font","auto",ge,eo]}],"text-decoration-color":[{decoration:z()}],"underline-offset":[{"underline-offset":[Ae,"auto",ge,he]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"tab-size":[{tab:[bn,ge,he]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge,he]}],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",ge,he]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:E()}],"bg-size":[{bg:W()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},bn,ge,he],radial:["",ge,he],conic:[bn,ge,he]},g0,p0]}],"bg-color":[{bg:z()}],"gradient-from-pos":[{from:J()}],"gradient-via-pos":[{via:J()}],"gradient-to-pos":[{to:J()}],"gradient-from":[{from:z()}],"gradient-via":[{via:z()}],"gradient-to":[{to:z()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-bs":[{"border-bs":re()}],"border-w-be":[{"border-be":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...pe(),"hidden","none"]}],"divide-style":[{divide:[...pe(),"hidden","none"]}],"border-color":[{border:z()}],"border-color-x":[{"border-x":z()}],"border-color-y":[{"border-y":z()}],"border-color-s":[{"border-s":z()}],"border-color-e":[{"border-e":z()}],"border-color-bs":[{"border-bs":z()}],"border-color-be":[{"border-be":z()}],"border-color-t":[{"border-t":z()}],"border-color-r":[{"border-r":z()}],"border-color-b":[{"border-b":z()}],"border-color-l":[{"border-l":z()}],"divide-color":[{divide:z()}],"outline-style":[{outline:[...pe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ae,ge,he]}],"outline-w":[{outline:["",Ae,_i,eo]}],"outline-color":[{outline:z()}],shadow:[{shadow:["","none",v,Bs,Us]}],"shadow-color":[{shadow:z()}],"inset-shadow":[{"inset-shadow":["none",y,Bs,Us]}],"inset-shadow-color":[{"inset-shadow":z()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:z()}],"ring-offset-w":[{"ring-offset":[Ae,eo]}],"ring-offset-color":[{"ring-offset":z()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":z()}],"text-shadow":[{"text-shadow":["none",S,Bs,Us]}],"text-shadow-color":[{"text-shadow":z()}],opacity:[{opacity:[Ae,ge,he]}],"mix-blend":[{"mix-blend":[...X(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":X()}],"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":[Ae]}],"mask-image-linear-from-pos":[{"mask-linear-from":ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":ne()}],"mask-image-linear-from-color":[{"mask-linear-from":z()}],"mask-image-linear-to-color":[{"mask-linear-to":z()}],"mask-image-t-from-pos":[{"mask-t-from":ne()}],"mask-image-t-to-pos":[{"mask-t-to":ne()}],"mask-image-t-from-color":[{"mask-t-from":z()}],"mask-image-t-to-color":[{"mask-t-to":z()}],"mask-image-r-from-pos":[{"mask-r-from":ne()}],"mask-image-r-to-pos":[{"mask-r-to":ne()}],"mask-image-r-from-color":[{"mask-r-from":z()}],"mask-image-r-to-color":[{"mask-r-to":z()}],"mask-image-b-from-pos":[{"mask-b-from":ne()}],"mask-image-b-to-pos":[{"mask-b-to":ne()}],"mask-image-b-from-color":[{"mask-b-from":z()}],"mask-image-b-to-color":[{"mask-b-to":z()}],"mask-image-l-from-pos":[{"mask-l-from":ne()}],"mask-image-l-to-pos":[{"mask-l-to":ne()}],"mask-image-l-from-color":[{"mask-l-from":z()}],"mask-image-l-to-color":[{"mask-l-to":z()}],"mask-image-x-from-pos":[{"mask-x-from":ne()}],"mask-image-x-to-pos":[{"mask-x-to":ne()}],"mask-image-x-from-color":[{"mask-x-from":z()}],"mask-image-x-to-color":[{"mask-x-to":z()}],"mask-image-y-from-pos":[{"mask-y-from":ne()}],"mask-image-y-to-pos":[{"mask-y-to":ne()}],"mask-image-y-from-color":[{"mask-y-from":z()}],"mask-image-y-to-color":[{"mask-y-to":z()}],"mask-image-radial":[{"mask-radial":[ge,he]}],"mask-image-radial-from-pos":[{"mask-radial-from":ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":ne()}],"mask-image-radial-from-color":[{"mask-radial-from":z()}],"mask-image-radial-to-color":[{"mask-radial-to":z()}],"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":O()}],"mask-image-conic-pos":[{"mask-conic":[Ae]}],"mask-image-conic-from-pos":[{"mask-conic-from":ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":ne()}],"mask-image-conic-from-color":[{"mask-conic-from":z()}],"mask-image-conic-to-color":[{"mask-conic-to":z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:E()}],"mask-size":[{mask:W()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,he]}],filter:[{filter:["","none",ge,he]}],blur:[{blur:Te()}],brightness:[{brightness:[Ae,ge,he]}],contrast:[{contrast:[Ae,ge,he]}],"drop-shadow":[{"drop-shadow":["","none",b,Bs,Us]}],"drop-shadow-color":[{"drop-shadow":z()}],grayscale:[{grayscale:["",Ae,ge,he]}],"hue-rotate":[{"hue-rotate":[Ae,ge,he]}],invert:[{invert:["",Ae,ge,he]}],saturate:[{saturate:[Ae,ge,he]}],sepia:[{sepia:["",Ae,ge,he]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,he]}],"backdrop-blur":[{"backdrop-blur":Te()}],"backdrop-brightness":[{"backdrop-brightness":[Ae,ge,he]}],"backdrop-contrast":[{"backdrop-contrast":[Ae,ge,he]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ae,ge,he]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ae,ge,he]}],"backdrop-invert":[{"backdrop-invert":["",Ae,ge,he]}],"backdrop-opacity":[{"backdrop-opacity":[Ae,ge,he]}],"backdrop-saturate":[{"backdrop-saturate":[Ae,ge,he]}],"backdrop-sepia":[{"backdrop-sepia":["",Ae,ge,he]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ge,he]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ae,"initial",ge,he]}],ease:[{ease:["linear","initial",R,ge,he]}],delay:[{delay:[Ae,ge,he]}],animate:[{animate:["none",D,ge,he]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,ge,he]}],"perspective-origin":[{"perspective-origin":V()}],rotate:[{rotate:$e()}],"rotate-x":[{"rotate-x":$e()}],"rotate-y":[{"rotate-y":$e()}],"rotate-z":[{"rotate-z":$e()}],scale:[{scale:je()}],"scale-x":[{"scale-x":je()}],"scale-y":[{"scale-y":je()}],"scale-z":[{"scale-z":je()}],"scale-3d":["scale-3d"],skew:[{skew:ze()}],"skew-x":[{"skew-x":ze()}],"skew-y":[{"skew-y":ze()}],transform:[{transform:[ge,he,"","none","gpu","cpu"]}],"transform-origin":[{origin:V()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ot()}],"translate-x":[{"translate-x":ot()}],"translate-y":[{"translate-y":ot()}],"translate-z":[{"translate-z":ot()}],"translate-none":["translate-none"],zoom:[{zoom:[bn,ge,he]}],accent:[{accent:z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:z()}],"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",ge,he]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":z()}],"scrollbar-track-color":[{"scrollbar-track":z()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mbs":[{"scroll-mbs":j()}],"scroll-mbe":[{"scroll-mbe":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pbs":[{"scroll-pbs":j()}],"scroll-pbe":[{"scroll-pbe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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",ge,he]}],fill:[{fill:["none",...z()]}],"stroke-w":[{stroke:[Ae,_i,eo,Wf]}],stroke:[{stroke:["none",...z()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function w0(r={}){const t=r.styleId??"xpert-shadcn-ui-theme-vars";if(typeof document>"u")return;r.density==="compact"?document.documentElement.dataset.xuiDensity="compact":r.density==="default"&&delete document.documentElement.dataset.xuiDensity;let o=document.getElementById(t);o||(o=document.createElement("style"),o.id=t,document.head.appendChild(o)),o.textContent=`
|
|
9
9
|
:root {
|
|
10
10
|
--background: var(--xui-color-background, #ffffff);
|
|
11
11
|
--foreground: var(--xui-color-foreground, #18181b);
|
|
@@ -60,12 +60,12 @@ Error generating stack: `+p.message+`
|
|
|
60
60
|
--border: var(--xui-color-border, #27272a);
|
|
61
61
|
--input: var(--xui-color-input, var(--border));
|
|
62
62
|
}
|
|
63
|
-
`}const Gf=(...r)=>r.filter((t,o,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===o).join(" ").trim();const p0=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const h0=r=>r.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,o,i)=>i?i.toUpperCase():o.toLowerCase());const Qf=r=>{const t=h0(r);return t.charAt(0).toUpperCase()+t.slice(1)};var Kl={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"};const m0=r=>{for(const t in r)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},g0=m.createContext({}),v0=()=>m.useContext(g0),y0=m.forwardRef(({color:r,size:t,strokeWidth:o,absoluteStrokeWidth:i,className:a="",children:l,iconNode:u,...d},h)=>{const{size:g=24,strokeWidth:v=2,absoluteStrokeWidth:y=!1,color:w="currentColor",className:b=""}=v0()??{},S=i??y?Number(o??v)*24/Number(t??g):o??v;return m.createElement("svg",{ref:h,...Kl,width:t??g??Kl.width,height:t??g??Kl.height,stroke:r??w,strokeWidth:S,className:Gf("lucide",b,a),...!l&&!m0(d)&&{"aria-hidden":"true"},...d},[...u.map(([_,k])=>m.createElement(_,k)),...Array.isArray(l)?l:[l]])});const rn=(r,t)=>{const o=m.forwardRef(({className:i,...a},l)=>m.createElement(y0,{ref:l,iconNode:t,className:Gf(`lucide-${p0(Qf(r))}`,`lucide-${r}`,i),...a}));return o.displayName=Qf(r),o};const Yf=rn("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const Zl=rn("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const Xf=rn("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);const x0=rn("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"}]]);const w0=rn("file-braces",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]);const S0=rn("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const ql=rn("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);const Jf=rn("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);const b0=rn("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);const k0=rn("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);const C0=rn("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var Gl={exports:{}},vi={};var ep;function _0(){if(ep)return vi;ep=1;var r=Il(),t=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(d,h,g){var v,y={},w=null,b=null;g!==void 0&&(w=""+g),h.key!==void 0&&(w=""+h.key),h.ref!==void 0&&(b=h.ref);for(v in h)i.call(h,v)&&!l.hasOwnProperty(v)&&(y[v]=h[v]);if(d&&d.defaultProps)for(v in h=d.defaultProps,h)y[v]===void 0&&(y[v]=h[v]);return{$$typeof:t,type:d,key:w,ref:b,props:y,_owner:a.current}}return vi.Fragment=o,vi.jsx=u,vi.jsxs=u,vi}var tp;function E0(){return tp||(tp=1,Gl.exports=_0()),Gl.exports}var A=E0(),yi=df(),R0=Object.defineProperty,Ql=(r,t)=>R0(r,"name",{value:t,configurable:!0});function Yl(r,t){if(typeof r=="function")return r(t);r!=null&&(r.current=t)}Ql(Yl,"setRef");function Qr(...r){return t=>{let o=!1;const i=r.map(a=>{const l=Yl(a,t);return!o&&typeof l=="function"&&(o=!0),l});if(o)return()=>{for(let a=0;a<i.length;a++){const l=i[a];typeof l=="function"?l():Yl(r[a],null)}}}}Ql(Qr,"composeRefs");function Qe(...r){return m.useCallback(Qr(...r),r)}Ql(Qe,"useComposedRefs");var P0=Object.defineProperty,on=(r,t)=>P0(r,"name",{value:t,configurable:!0});function Sn(r){const t=m.forwardRef((o,i)=>{let{children:a,...l}=o,u=null,d=!1;const h=[];Xl(a)&&typeof Ls=="function"&&(a=Ls(a._payload)),m.Children.forEach(a,w=>{if(ip(w)){d=!0;const b=w;let S="child"in b.props?b.props.child:b.props.children;Xl(S)&&typeof Ls=="function"&&(S=Ls(S._payload)),u=N0(b,S),h.push(u?.props?.children)}else h.push(w)}),u?u=m.cloneElement(u,void 0,h):!d&&m.Children.count(a)===1&&m.isValidElement(a)&&(u=a);const g=u?op(u):void 0,v=Qe(i,g);if(!u){if(a||a===0)throw new Error(d?D0(r):A0(r));return a}const y=rp(l,u.props??{});return u.type!==m.Fragment&&(y.ref=i?v:g),m.cloneElement(u,y)});return t.displayName=`${r}.Slot`,t}on(Sn,"createSlot");var I0=Sn("Slot"),np=Symbol.for("radix.slottable");function O0(r){const t=on(o=>"child"in o?o.children(o.child):o.children,"Slottable");return t.displayName=`${r}.Slottable`,t.__radixId=np,t}on(O0,"createSlottable");var N0=on((r,t)=>{if("child"in r.props){const o=r.props.child;return m.isValidElement(o)?m.cloneElement(o,void 0,r.props.children(o.props.children)):null}return m.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function rp(r,t){const o={...t};for(const i in t){const a=r[i],l=t[i];/^on[A-Z]/.test(i)?a&&l?o[i]=(...d)=>{const h=l(...d);return a(...d),h}:a&&(o[i]=a):i==="style"?o[i]={...a,...l}:i==="className"&&(o[i]=[a,l].filter(Boolean).join(" "))}return{...r,...o}}on(rp,"mergeProps");function op(r){let t=Object.getOwnPropertyDescriptor(r.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?r.ref:(t=Object.getOwnPropertyDescriptor(r,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?r.props.ref:r.props.ref||r.ref)}on(op,"getElementRef");function ip(r){return m.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===np}on(ip,"isSlottable");var T0=Symbol.for("react.lazy");function Xl(r){return r!=null&&typeof r=="object"&&"$$typeof"in r&&r.$$typeof===T0&&"_payload"in r&&sp(r._payload)}on(Xl,"isLazyComponent");function sp(r){return typeof r=="object"&&r!==null&&"then"in r}on(sp,"isPromiseLike");var A0=on(r=>`${r} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),D0=on(r=>`${r} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Ls=fi[" use ".trim().toString()],L0=Object.defineProperty,$0=(r,t)=>L0(r,"name",{value:t,configurable:!0}),j0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ze=j0.reduce((r,t)=>{const o=Sn(`Primitive.${t}`),i=m.forwardRef((a,l)=>{const{asChild:u,...d}=a,h=u?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),A.jsx(h,{...d,ref:l})});return i.displayName=`Primitive.${t}`,{...r,[t]:i}},{});function ap(r,t){r&&yi.flushSync(()=>r.dispatchEvent(t))}$0(ap,"dispatchDiscreteCustomEvent");var M0=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"}),z0=Object.defineProperty,Qt=(r,t)=>z0(r,"name",{value:t,configurable:!0});function F0(r,t){const o=m.createContext(t);o.displayName=r+"Context";const i=Qt(l=>{const{children:u,...d}=l,h=m.useMemo(()=>d,Object.values(d));return A.jsx(o.Provider,{value:h,children:u})},"Provider");i.displayName=r+"Provider";function a(l,u={}){const{optional:d=!1}=u,h=m.useContext(o);if(h)return h;if(t!==void 0)return t;if(!d)throw new Error(`\`${l}\` must be used within \`${r}\``)}return Qt(a,"useContext"),[i,a]}Qt(F0,"createContext");function pr(r,t=[]){let o=[];function i(l,u){const d=m.createContext(u);d.displayName=l+"Context";const h=o.length;o=[...o,u];const g=Qt(y=>{const{scope:w,children:b,...S}=y,_=w?.[r]?.[h]||d,k=m.useMemo(()=>S,Object.values(S));return A.jsx(_.Provider,{value:k,children:b})},"Provider");g.displayName=l+"Provider";function v(y,w,b={}){const{optional:S=!1}=b,_=w?.[r]?.[h]||d,k=m.useContext(_);if(k)return k;if(u!==void 0)return u;if(!S)throw new Error(`\`${y}\` must be used within \`${l}\``)}return Qt(v,"useContext"),[g,v]}Qt(i,"createContext");const a=Qt(()=>{const l=o.map(u=>m.createContext(u));return Qt(function(d){const h=d?.[r]||l;return m.useMemo(()=>({[`__scope${r}`]:{...d,[r]:h}}),[d,h])},"useScope")},"createScope");return a.scopeName=r,[i,lp(a,...t)]}Qt(pr,"createContextScope");function lp(...r){const t=r[0];if(r.length===1)return t;const o=Qt(()=>{const i=r.map(a=>({useScope:a(),scopeName:a.scopeName}));return Qt(function(l){const u=i.reduce((d,{useScope:h,scopeName:g})=>{const y=h(l)[`__scope${g}`];return{...d,...y}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])},"useComposedScopes")},"createScope");return o.scopeName=t.scopeName,o}Qt(lp,"composeContextScopes");var V0=Object.defineProperty,gt=(r,t)=>V0(r,"name",{value:t,configurable:!0});function cp(r){const t=r+"CollectionProvider",[o,i]=pr(t),[a,l]=o(t,{collectionRef:{current:null},itemMap:new Map}),u=gt(_=>{const{scope:k,children:T}=_,D=m.useRef(null),N=m.useRef(new Map).current;return A.jsx(a,{scope:k,itemMap:N,collectionRef:D,children:T})},"CollectionProvider");u.displayName=t;const d=r+"CollectionSlot",h=Sn(d),g=m.forwardRef((_,k)=>{const{scope:T,children:D}=_,N=l(d,T),I=Qe(k,N.collectionRef);return A.jsx(h,{ref:I,children:D})});g.displayName=d;const v=r+"CollectionItemSlot",y="data-radix-collection-item",w=Sn(v),b=m.forwardRef((_,k)=>{const{scope:T,children:D,...N}=_,I=m.useRef(null),V=Qe(k,I),L=l(v,T);return m.useEffect(()=>(L.itemMap.set(I,{ref:I,...N}),()=>{L.itemMap.delete(I)})),A.jsx(w,{[y]:"",ref:V,children:D})});b.displayName=v;function S(_){const k=l(r+"CollectionConsumer",_);return m.useCallback(()=>{const D=k.collectionRef.current;if(!D)return[];const N=Array.from(D.querySelectorAll(`[${y}]`));return Array.from(k.itemMap.values()).sort((L,B)=>N.indexOf(L.ref.current)-N.indexOf(B.ref.current))},[k.collectionRef,k.itemMap])}return gt(S,"useCollection"),[{Provider:u,Slot:g,ItemSlot:b},S,i]}gt(cp,"createCollection");var up=new WeakMap,Jl=class Ur extends Map{static{gt(this,"OrderedDict")}#e;constructor(t){super(t),this.#e=[...super.keys()],up.set(this,!0)}set(t,o){return up.get(this)&&(this.has(t)?this.#e[this.#e.indexOf(t)]=t:this.#e.push(t)),super.set(t,o),this}insert(t,o,i){const a=this.has(o),l=this.#e.length,u=ec(t);let d=u>=0?u:l+u;const h=d<0||d>=l?-1:d;if(h===this.size||a&&h===this.size-1||h===-1)return this.set(o,i),this;const g=this.size+(a?0:1);u<0&&d++;const v=[...this.#e];let y,w=!1;for(let b=d;b<g;b++)if(d===b){let S=v[b];v[b]===o&&(S=v[b+1]),a&&this.delete(o),y=this.get(S),this.set(o,i)}else{!w&&v[b-1]===o&&(w=!0);const S=v[w?b:b-1],_=y;y=this.get(S),this.delete(S),this.set(S,_)}return this}with(t,o,i){const a=new Ur(this);return a.insert(t,o,i),a}before(t){const o=this.#e.indexOf(t)-1;if(!(o<0))return this.entryAt(o)}setBefore(t,o,i){const a=this.#e.indexOf(t);return a===-1?this:this.insert(a,o,i)}after(t){let o=this.#e.indexOf(t);if(o=o===-1||o===this.size-1?-1:o+1,o!==-1)return this.entryAt(o)}setAfter(t,o,i){const a=this.#e.indexOf(t);return a===-1?this:this.insert(a+1,o,i)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(t){const o=super.delete(t);return o&&this.#e.splice(this.#e.indexOf(t),1),o}deleteAt(t){const o=this.keyAt(t);return o!==void 0?this.delete(o):!1}at(t){const o=$s(this.#e,t);if(o!==void 0)return this.get(o)}entryAt(t){const o=$s(this.#e,t);if(o!==void 0)return[o,this.get(o)]}indexOf(t){return this.#e.indexOf(t)}keyAt(t){return $s(this.#e,t)}from(t,o){const i=this.indexOf(t);if(i===-1)return;let a=i+o;return a<0&&(a=0),a>=this.size&&(a=this.size-1),this.at(a)}keyFrom(t,o){const i=this.indexOf(t);if(i===-1)return;let a=i+o;return a<0&&(a=0),a>=this.size&&(a=this.size-1),this.keyAt(a)}find(t,o){let i=0;for(const a of this){if(Reflect.apply(t,o,[a,i,this]))return a;i++}}findIndex(t,o){let i=0;for(const a of this){if(Reflect.apply(t,o,[a,i,this]))return i;i++}return-1}filter(t,o){const i=[];let a=0;for(const l of this)Reflect.apply(t,o,[l,a,this])&&i.push(l),a++;return new Ur(i)}map(t,o){const i=[];let a=0;for(const l of this)i.push([l[0],Reflect.apply(t,o,[l,a,this])]),a++;return new Ur(i)}reduce(...t){const[o,i]=t;let a=0,l=i??this.at(0);for(const u of this)a===0&&t.length===1?l=u:l=Reflect.apply(o,this,[l,u,a,this]),a++;return l}reduceRight(...t){const[o,i]=t;let a=i??this.at(-1);for(let l=this.size-1;l>=0;l--){const u=this.at(l);l===this.size-1&&t.length===1?a=u:a=Reflect.apply(o,this,[a,u,l,this])}return a}toSorted(t){const o=[...this.entries()].sort(t);return new Ur(o)}toReversed(){const t=new Ur;for(let o=this.size-1;o>=0;o--){const i=this.keyAt(o),a=this.get(i);t.set(i,a)}return t}toSpliced(...t){const o=[...this.entries()];return o.splice(...t),new Ur(o)}slice(t,o){const i=new Ur;let a=this.size-1;if(t===void 0)return i;t<0&&(t=t+this.size),o!==void 0&&o>0&&(a=o-1);for(let l=t;l<=a;l++){const u=this.keyAt(l),d=this.get(u);i.set(u,d)}return i}every(t,o){let i=0;for(const a of this){if(!Reflect.apply(t,o,[a,i,this]))return!1;i++}return!0}some(t,o){let i=0;for(const a of this){if(Reflect.apply(t,o,[a,i,this]))return!0;i++}return!1}};function $s(r,t){if("at"in Array.prototype)return Array.prototype.at.call(r,t);const o=dp(r,t);return o===-1?void 0:r[o]}gt($s,"at");function dp(r,t){const o=r.length,i=ec(t),a=i>=0?i:o+i;return a<0||a>=o?-1:a}gt(dp,"toSafeIndex");function ec(r){return r!==r||r===0?0:Math.trunc(r)}gt(ec,"toSafeInteger");function U0(r){const t=r+"CollectionProvider",[o,i]=pr(t),[a,l]=o(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Jl,setItemMap:gt(()=>{},"setItemMap")}),u=gt(({state:N,...I})=>N?A.jsx(h,{...I,state:N}):A.jsx(d,{...I}),"CollectionProvider");u.displayName=t;const d=gt(N=>{const I=k();return A.jsx(h,{...N,state:I})},"CollectionInit");d.displayName=t+"Init";const h=gt(N=>{const{scope:I,children:V,state:L}=N,B=m.useRef(null),[j,Q]=m.useState(null),ae=Qe(B,Q),[Ce,ce]=L;return m.useEffect(()=>{if(!j)return;const le=hp(()=>{});return le.observe(j,{childList:!0,subtree:!0}),()=>{le.disconnect()}},[j]),A.jsx(a,{scope:I,itemMap:Ce,setItemMap:ce,collectionRef:ae,collectionRefObject:B,collectionElement:j,children:V})},"CollectionProviderImpl");h.displayName=t+"Impl";const g=r+"CollectionSlot",v=Sn(g),y=m.forwardRef((N,I)=>{const{scope:V,children:L}=N,B=l(g,V),j=Qe(I,B.collectionRef);return A.jsx(v,{ref:j,children:L})});y.displayName=g;const w=r+"CollectionItemSlot",b="data-radix-collection-item",S=Sn(w),_=m.forwardRef((N,I)=>{const{scope:V,children:L,...B}=N,j=m.useRef(null),[Q,ae]=m.useState(null),Ce=Qe(I,j,ae),ce=l(w,V),{setItemMap:le}=ce,fe=m.useRef(B);fp(fe.current,B)||(fe.current=B);const ke=fe.current;return m.useEffect(()=>{const re=ke;return le(se=>Q?se.has(Q)?se.set(Q,{...re,element:Q}).toSorted(tc):(se.set(Q,{...re,element:Q}),se.toSorted(tc)):se),()=>{le(se=>!Q||!se.has(Q)?se:(se.delete(Q),new Jl(se)))}},[Q,ke,le]),A.jsx(S,{[b]:"",ref:Ce,children:L})});_.displayName=w;function k(){return m.useState(new Jl)}gt(k,"useInitCollection");function T(N){const{itemMap:I}=l(r+"CollectionConsumer",N);return I}return gt(T,"useCollection"),[{Provider:u,Slot:y,ItemSlot:_},{createCollectionScope:i,useCollection:T,useInitCollection:k}]}gt(U0,"createCollection");function fp(r,t){if(r===t)return!0;if(typeof r!="object"||typeof t!="object"||r==null||t==null)return!1;const o=Object.keys(r),i=Object.keys(t);if(o.length!==i.length)return!1;for(const a of o)if(!Object.prototype.hasOwnProperty.call(t,a)||r[a]!==t[a])return!1;return!0}gt(fp,"shallowEqual");function pp(r,t){return!!(t.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_PRECEDING)}gt(pp,"isElementPreceding");function tc(r,t){return!r[1].element||!t[1].element?0:pp(r[1].element,t[1].element)?-1:1}gt(tc,"sortByDocumentPosition");function hp(r){return new MutationObserver(o=>{for(const i of o)if(i.type==="childList"){r();return}})}gt(hp,"getChildListObserver");var B0=Object.defineProperty,So=(r,t)=>B0(r,"name",{value:t,configurable:!0}),mp=!!(typeof window<"u"&&window.document&&window.document.createElement);function He(r,t,{checkForDefaultPrevented:o=!0}={}){return So(function(a){if(r?.(a),o===!1||!a||!a.defaultPrevented)return t?.(a)},"handleEvent")}So(He,"composeEventHandlers");function H0(r){if(!mp)throw new Error("Cannot access window outside of the DOM");return r?.ownerDocument?.defaultView??window}So(H0,"getOwnerWindow");function nc(r){if(!mp)throw new Error("Cannot access document outside of the DOM");return r?.ownerDocument??document}So(nc,"getOwnerDocument");function gp(r,t=!1){const{activeElement:o}=nc(r);if(!o?.nodeName)return null;if(vp(o)&&o.contentDocument)return gp(o.contentDocument.body,t);if(t){const i=o.getAttribute("aria-activedescendant");if(i){const a=nc(o).getElementById(i);if(a)return a}}return o}So(gp,"getActiveElement");function vp(r){return r.tagName==="IFRAME"}So(vp,"isFrame");var ut=globalThis?.document?m.useLayoutEffect:()=>{},W0=Object.defineProperty,K0=(r,t)=>W0(r,"name",{value:t,configurable:!0}),yp=fi[" useEffectEvent ".trim().toString()],xp=fi[" useInsertionEffect ".trim().toString()];function wp(r){if(typeof yp=="function")return yp(r);const t=m.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof xp=="function"?xp(()=>{t.current=r}):ut(()=>{t.current=r}),m.useMemo(()=>((...o)=>t.current?.(...o)),[])}K0(wp,"useEffectEvent");var Z0=Object.defineProperty,xi=(r,t)=>Z0(r,"name",{value:t,configurable:!0}),q0=fi[" useInsertionEffect ".trim().toString()]||ut;function wi({prop:r,defaultProp:t,onChange:o=xi(()=>{},"onChange"),caller:i}){const[a,l,u]=Sp({defaultProp:t,onChange:o}),d=r!==void 0,h=d?r:a,g=m.useCallback(v=>{if(d){const y=bp(v)?v(r):v;y!==r&&u.current?.(y)}else l(v)},[d,r,l,u]);return[h,g]}xi(wi,"useControllableState");function Sp({defaultProp:r,onChange:t}){const[o,i]=m.useState(r),a=m.useRef(o),l=m.useRef(t);return q0(()=>{l.current=t},[t]),m.useEffect(()=>{a.current!==o&&(l.current?.(o),a.current=o)},[o,a]),[o,i,l]}xi(Sp,"useUncontrolledState");function bp(r){return typeof r=="function"}xi(bp,"isFunction");var kp=Symbol("RADIX:SYNC_STATE");function G0(r,t,o,i){const{prop:a,defaultProp:l,onChange:u,caller:d}=t,h=a!==void 0,g=wp(u),v=[{...o,state:l}];i&&v.push(i);const[y,w]=m.useReducer((k,T)=>{if(T.type===kp)return{...k,state:T.state};const D=r(k,T);return h&&!Object.is(D.state,k.state)&&g(D.state),D},...v),b=y.state,S=m.useRef(b);m.useEffect(()=>{S.current!==b&&(S.current=b,h||g(b))},[b,S,h]);const _=m.useMemo(()=>a!==void 0?{...y,state:a}:y,[y,a]);return m.useEffect(()=>{h&&!Object.is(a,y.state)&&w({type:kp,state:a})},[a,y.state,h]),[_,w]}xi(G0,"useControllableStateReducer");var Q0=Object.defineProperty,Un=(r,t)=>Q0(r,"name",{value:t,configurable:!0});function Cp(r,t){return m.useReducer((o,i)=>t[o][i]??o,r)}Un(Cp,"useStateMachine");var bo=Un(r=>{const{present:t,children:o}=r,i=_p(t),a=typeof o=="function"?o({present:i.isPresent}):m.Children.only(o),l=Ep(i.ref,Rp(a));return typeof o=="function"||i.isPresent?m.cloneElement(a,{ref:l}):null},"Presence");function _p(r){const[t,o]=m.useState(),i=m.useRef(null),a=m.useRef(r),l=m.useRef("none"),u=m.useRef(void 0),d=r?"mounted":"unmounted",[h,g]=Cp(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{h==="mounted"?(l.current=u.current??ko(i.current),u.current=void 0):l.current="none"},[h]),ut(()=>{const v=i.current,y=a.current;if(y!==r){const b=l.current,S=ko(v);r?(u.current=S,g("MOUNT")):S==="none"||v?.display==="none"?g("UNMOUNT"):g(y&&b!==S?"ANIMATION_OUT":"UNMOUNT"),a.current=r}},[r,g]),ut(()=>{if(t){let v;const y=t.ownerDocument.defaultView??window,w=Un(S=>{const k=ko(i.current).includes(CSS.escape(S.animationName));if(S.target===t&&k&&(g("ANIMATION_END"),!a.current)){const T=t.style.animationFillMode;t.style.animationFillMode="forwards",v=y.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=T)})}},"handleAnimationEnd"),b=Un(S=>{S.target===t&&(l.current=ko(i.current))},"handleAnimationStart");return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",w),t.addEventListener("animationend",w),()=>{y.clearTimeout(v),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",w),t.removeEventListener("animationend",w)}}else g("ANIMATION_END")},[t,g]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:m.useCallback(v=>{if(v){const y=getComputedStyle(v);i.current=y,u.current=ko(y)}else i.current=null;o(v)},[])}}Un(_p,"usePresence");function rc(r,t){if(typeof r=="function")return r(t);r!=null&&(r.current=t)}Un(rc,"setRef");function Ep(...r){const t=m.useRef(r);return t.current=r,m.useCallback(o=>{const i=t.current;let a=!1;const l=i.map(u=>{const d=rc(u,o);return!a&&typeof d=="function"&&(a=!0),d});if(a)return()=>{for(let u=0;u<l.length;u++){const d=l[u];typeof d=="function"?d():rc(i[u],null)}}},[])}Un(Ep,"useStableComposedRefs");function ko(r){return r?.animationName||"none"}Un(ko,"getAnimationName");function Rp(r){let t=Object.getOwnPropertyDescriptor(r.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?r.ref:(t=Object.getOwnPropertyDescriptor(r,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?r.props.ref:r.props.ref||r.ref)}Un(Rp,"getElementRef");var Y0=Object.defineProperty,X0=(r,t)=>Y0(r,"name",{value:t,configurable:!0}),J0=fi[" useId ".trim().toString()]||(()=>{}),ew=0;function Bt(r){const[t,o]=m.useState(J0());return ut(()=>{r||o(i=>i??String(ew++))},[r]),r||(t?`radix-${t}`:"")}X0(Bt,"useId");var tw=Object.defineProperty,nw=(r,t)=>tw(r,"name",{value:t,configurable:!0}),rw=m.createContext(void 0);function Pp(r){const t=m.useContext(rw);return r||t||"ltr"}nw(Pp,"useDirection");var ow=Object.defineProperty,iw=(r,t)=>ow(r,"name",{value:t,configurable:!0});function bn(r){const t=m.useRef(r);return m.useEffect(()=>{t.current=r}),m.useMemo(()=>((...o)=>t.current?.(...o)),[])}iw(bn,"useCallbackRef");var sw=Object.defineProperty,vt=(r,t)=>sw(r,"name",{value:t,configurable:!0}),oc="dismissableLayer.update",aw="dismissableLayer.pointerDownOutside",lw="dismissableLayer.focusOutside",Ip,Op=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),ic=m.forwardRef(vt(function(t,o){const{disableOutsidePointerEvents:i=!1,deferPointerDownOutside:a=!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:h,onDismiss:g,...v}=t,y=m.useContext(Op),[w,b]=m.useState(null),S=w?.ownerDocument??globalThis?.document,[,_]=m.useState({}),k=Qe(o,b),T=Array.from(y.layers),[D]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),N=D?T.indexOf(D):-1,I=w?T.indexOf(w):-1,V=y.layersWithOutsidePointerEventsDisabled.size>0,L=I>=N,B=m.useRef(!1),j=Tp(ce=>{u?.(ce),h?.(ce),ce.defaultPrevented||g?.()},{ownerDocument:S,deferPointerDownOutside:a,isDeferredPointerDownOutsideRef:B,dismissableSurfaces:y.dismissableSurfaces,shouldHandlePointerDownOutside:m.useCallback(ce=>{if(!(ce instanceof Node))return!1;const le=[...y.branches].some(fe=>fe.contains(ce));return L&&!le},[y.branches,L])}),Q=Ap(ce=>{if(a&&B.current)return;const le=ce.target;[...y.branches].some(ke=>ke.contains(le))||(d?.(ce),h?.(ce),ce.defaultPrevented||g?.())},S),ae=w?I===T.length-1:!1,Ce=bn(ce=>{ce.key==="Escape"&&(l?.(ce),!ce.defaultPrevented&&g&&(ce.preventDefault(),g()))});return m.useEffect(()=>{if(ae)return S.addEventListener("keydown",Ce,{capture:!0}),()=>S.removeEventListener("keydown",Ce,{capture:!0})},[S,ae,Ce]),m.useEffect(()=>{if(w)return i&&(y.layersWithOutsidePointerEventsDisabled.size===0&&(Ip=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(w)),y.layers.add(w),sc(),()=>{i&&(y.layersWithOutsidePointerEventsDisabled.delete(w),y.layersWithOutsidePointerEventsDisabled.size===0&&(S.body.style.pointerEvents=Ip))}},[w,S,i,y]),m.useEffect(()=>()=>{w&&(y.layers.delete(w),y.layersWithOutsidePointerEventsDisabled.delete(w),sc())},[w,y]),m.useEffect(()=>{const ce=vt(()=>_({}),"handleUpdate");return document.addEventListener(oc,ce),()=>document.removeEventListener(oc,ce)},[]),A.jsx(Ze.div,{...v,ref:k,style:{pointerEvents:V?L?"auto":"none":void 0,...t.style},onFocusCapture:He(t.onFocusCapture,Q.onFocusCapture),onBlurCapture:He(t.onBlurCapture,Q.onBlurCapture),onPointerDownCapture:He(t.onPointerDownCapture,j.onPointerDownCapture)})},"DismissableLayer"));function Np(){const r=m.useContext(Op),[t,o]=m.useState(null);return m.useEffect(()=>{if(t)return r.dismissableSurfaces.add(t),()=>{r.dismissableSurfaces.delete(t)}},[t,r.dismissableSurfaces]),o}vt(Np,"useDismissableLayerSurface");var cw=vt(()=>!0,"IS_TRUE");function Tp(r,t){const{ownerDocument:o=globalThis?.document,deferPointerDownOutside:i=!1,isDeferredPointerDownOutsideRef:a,dismissableSurfaces:l,shouldHandlePointerDownOutside:u=cw}=t,d=bn(r),h=m.useRef(!1),g=m.useRef(!1),v=m.useRef(new Map),y=m.useRef(()=>{});return m.useEffect(()=>{function w(){g.current=!1,a.current=!1,v.current.clear()}vt(w,"resetOutsideInteraction");function b(){return Array.from(v.current.values()).some(Boolean)}vt(b,"isOutsideInteractionIntercepted");function S(N){if(!g.current)return;const I=N.target;I instanceof Node&&[...l].some(L=>L.contains(I))||v.current.set(N.type,!0),N.type==="click"&&window.setTimeout(()=>{g.current&&y.current()},0)}vt(S,"handleInteractionCapture");function _(N){g.current&&v.current.set(N.type,!1)}vt(_,"handleInteractionBubble");const k=vt(N=>{if(N.target&&!h.current){let I=function(){o.removeEventListener("click",y.current);const L=b();w(),L||ac(aw,d,V,{discrete:!0})};if(vt(I,"handleAndDispatchPointerDownOutsideEvent"),!u(N.target)){o.removeEventListener("click",y.current),w(),h.current=!1;return}const V={originalEvent:N};g.current=!0,a.current=i&&N.button===0,v.current.clear(),!i||N.button!==0?I():(o.removeEventListener("click",y.current),y.current=I,o.addEventListener("click",y.current,{once:!0}))}else o.removeEventListener("click",y.current),w();h.current=!1},"handlePointerDown"),T=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const N of T)o.addEventListener(N,S,!0),o.addEventListener(N,_);const D=window.setTimeout(()=>{o.addEventListener("pointerdown",k)},0);return()=>{window.clearTimeout(D),o.removeEventListener("pointerdown",k),o.removeEventListener("click",y.current);for(const N of T)o.removeEventListener(N,S,!0),o.removeEventListener(N,_)}},[o,d,i,a,l,u]),{onPointerDownCapture:vt(()=>h.current=!0,"onPointerDownCapture")}}vt(Tp,"usePointerDownOutside");function Ap(r,t=globalThis?.document){const o=bn(r),i=m.useRef(!1);return m.useEffect(()=>{const a=vt(l=>{l.target&&!i.current&&ac(lw,o,{originalEvent:l},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,o]),{onFocusCapture:vt(()=>i.current=!0,"onFocusCapture"),onBlurCapture:vt(()=>i.current=!1,"onBlurCapture")}}vt(Ap,"useFocusOutside");function sc(){const r=new CustomEvent(oc);document.dispatchEvent(r)}vt(sc,"dispatchUpdate");function ac(r,t,o,{discrete:i}){const a=o.originalEvent.target,l=new CustomEvent(r,{bubbles:!1,cancelable:!0,detail:o});t&&a.addEventListener(r,t,{once:!0}),i?ap(a,l):a.dispatchEvent(l)}vt(ac,"handleAndDispatchCustomEvent");var uw=Object.defineProperty,It=(r,t)=>uw(r,"name",{value:t,configurable:!0}),lc="focusScope.autoFocusOnMount",cc="focusScope.autoFocusOnUnmount",Dp={bubbles:!1,cancelable:!0},uc=m.forwardRef(It(function(t,o){const{loop:i=!1,trapped:a=!1,onMountAutoFocus:l,onUnmountAutoFocus:u,...d}=t,[h,g]=m.useState(null),v=bn(l),y=bn(u),w=m.useRef(null),b=Qe(o,g),S=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(a){let k=function(I){if(S.paused||!h)return;const V=I.target;h.contains(V)?w.current=V:Bn(w.current,{select:!0})},T=function(I){if(S.paused||!h)return;const V=I.relatedTarget;V!==null&&(h.contains(V)||Bn(w.current,{select:!0}))},D=function(I){if(document.activeElement===document.body)for(const L of I)L.removedNodes.length>0&&Bn(h)};It(k,"handleFocusIn"),It(T,"handleFocusOut"),It(D,"handleMutations"),document.addEventListener("focusin",k),document.addEventListener("focusout",T);const N=new MutationObserver(D);return h&&N.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",T),N.disconnect()}}},[a,h,S.paused]),m.useEffect(()=>{if(h){zp.add(S);const k=document.activeElement;if(!h.contains(k)){const D=new CustomEvent(lc,Dp);h.addEventListener(lc,v),h.dispatchEvent(D),D.defaultPrevented||(Lp(Vp(dc(h)),{select:!0}),document.activeElement===k&&Bn(h))}return()=>{h.removeEventListener(lc,v),setTimeout(()=>{const D=new CustomEvent(cc,Dp);h.addEventListener(cc,y),h.dispatchEvent(D),D.defaultPrevented||Bn(k??document.body,{select:!0}),h.removeEventListener(cc,y),zp.remove(S)},0)}}},[h,v,y,S]);const _=m.useCallback(k=>{if(!i&&!a||S.paused)return;const T=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,D=document.activeElement;if(T&&D){const N=k.currentTarget,[I,V]=$p(N);I&&V?!k.shiftKey&&D===V?(k.preventDefault(),i&&Bn(I,{select:!0})):k.shiftKey&&D===I&&(k.preventDefault(),i&&Bn(V,{select:!0})):D===N&&k.preventDefault()}},[i,a,S.paused]);return A.jsx(Ze.div,{tabIndex:-1,...d,ref:b,onKeyDown:_})},"FocusScope"));function Lp(r,{select:t=!1}={}){const o=document.activeElement;for(const i of r)if(Bn(i,{select:t}),document.activeElement!==o)return}It(Lp,"focusFirst");function $p(r){const t=dc(r),o=fc(t,r),i=fc(t.reverse(),r);return[o,i]}It($p,"getTabbableEdges");function dc(r){const t=[],o=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,{acceptNode:It(i=>{const a=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||a?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;o.nextNode();)t.push(o.currentNode);return t}It(dc,"getTabbableCandidates");function fc(r,t){const o=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const i of r)if(!(o?!i.checkVisibility({checkVisibilityCSS:!0}):jp(i,{upTo:t})))return i}It(fc,"findVisible");function jp(r,{upTo:t}){if(getComputedStyle(r).visibility==="hidden")return!0;for(;r;){if(t!==void 0&&r===t)return!1;if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1}It(jp,"isHidden");function Mp(r){return r instanceof HTMLInputElement&&"select"in r}It(Mp,"isSelectableInput");function Bn(r,{select:t=!1}={}){if(r&&r.focus){const o=document.activeElement;r.focus({preventScroll:!0}),r!==o&&Mp(r)&&t&&r.select()}}It(Bn,"focus");var zp=Fp();function Fp(){let r=[];return{add(t){const o=r[0];t!==o&&o?.pause(),r=pc(r,t),r.unshift(t)},remove(t){r=pc(r,t),r[0]?.resume()}}}It(Fp,"createFocusScopesStack");function pc(r,t){const o=[...r],i=o.indexOf(t);return i!==-1&&o.splice(i,1),o}It(pc,"arrayRemove");function Vp(r){return r.filter(t=>t.tagName!=="A")}It(Vp,"removeLinks");var dw=Object.defineProperty,fw=(r,t)=>dw(r,"name",{value:t,configurable:!0}),hc=m.forwardRef(fw(function(t,o){const{container:i,...a}=t,[l,u]=m.useState(!1);ut(()=>u(!0),[]);const d=i||l&&globalThis?.document?.body;return d?yi.createPortal(A.jsx(Ze.div,{...a,ref:o}),d):null},"Portal")),pw=Object.defineProperty,mc=(r,t)=>pw(r,"name",{value:t,configurable:!0}),js=0,Co=null;function hw(r){return Si(),r.children}mc(hw,"FocusGuards");function Si(){m.useEffect(()=>{Co||(Co={start:gc(),end:gc()});const{start:r,end:t}=Co;return document.body.firstElementChild!==r&&document.body.insertAdjacentElement("afterbegin",r),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),js++,()=>{js===1&&(Co?.start.remove(),Co?.end.remove(),Co=null),js=Math.max(0,js-1)}},[])}mc(Si,"useFocusGuards");function gc(){const r=document.createElement("span");return r.setAttribute("data-radix-focus-guard",""),r.tabIndex=0,r.style.outline="none",r.style.opacity="0",r.style.position="fixed",r.style.pointerEvents="none",r}mc(gc,"createFocusGuard");var kn=function(){return kn=Object.assign||function(t){for(var o,i=1,a=arguments.length;i<a;i++){o=arguments[i];for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(t[l]=o[l])}return t},kn.apply(this,arguments)};function Up(r,t){var o={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&t.indexOf(i)<0&&(o[i]=r[i]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(r);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(r,i[a])&&(o[i[a]]=r[i[a]]);return o}function mw(r,t,o){if(o||arguments.length===2)for(var i=0,a=t.length,l;i<a;i++)(l||!(i in t))&&(l||(l=Array.prototype.slice.call(t,0,i)),l[i]=t[i]);return r.concat(l||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Ms="right-scroll-bar-position",zs="width-before-scroll-bar",gw="with-scroll-bars-hidden",vw="--removed-body-scroll-bar-size";function vc(r,t){return typeof r=="function"?r(t):r&&(r.current=t),r}function yw(r,t){var o=m.useState(function(){return{value:r,callback:t,facade:{get current(){return o.value},set current(i){var a=o.value;a!==i&&(o.value=i,o.callback(i,a))}}}})[0];return o.callback=t,o.facade}var xw=typeof window<"u"?m.useLayoutEffect:m.useEffect,Bp=new WeakMap;function ww(r,t){var o=yw(null,function(i){return r.forEach(function(a){return vc(a,i)})});return xw(function(){var i=Bp.get(o);if(i){var a=new Set(i),l=new Set(r),u=o.current;a.forEach(function(d){l.has(d)||vc(d,null)}),l.forEach(function(d){a.has(d)||vc(d,u)})}Bp.set(o,r)},[r]),o}function Sw(r){return r}function bw(r,t){t===void 0&&(t=Sw);var o=[],i=!1,a={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:r},useMedium:function(l){var u=t(l,i);return o.push(u),function(){o=o.filter(function(d){return d!==u})}},assignSyncMedium:function(l){for(i=!0;o.length;){var u=o;o=[],u.forEach(l)}o={push:function(d){return l(d)},filter:function(){return o}}},assignMedium:function(l){i=!0;var u=[];if(o.length){var d=o;o=[],d.forEach(l),u=o}var h=function(){var v=u;u=[],v.forEach(l)},g=function(){return Promise.resolve().then(h)};g(),o={push:function(v){u.push(v),g()},filter:function(v){return u=u.filter(v),o}}}};return a}function kw(r){r===void 0&&(r={});var t=bw(null);return t.options=kn({async:!0,ssr:!1},r),t}var Hp=function(r){var t=r.sideCar,o=Up(r,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return m.createElement(i,kn({},o))};Hp.isSideCarExport=!0;function Cw(r,t){return r.useMedium(t),Hp}var Wp=kw(),yc=function(){},Fs=m.forwardRef(function(r,t){var o=m.useRef(null),i=m.useState({onScrollCapture:yc,onWheelCapture:yc,onTouchMoveCapture:yc}),a=i[0],l=i[1],u=r.forwardProps,d=r.children,h=r.className,g=r.removeScrollBar,v=r.enabled,y=r.shards,w=r.sideCar,b=r.noRelative,S=r.noIsolation,_=r.inert,k=r.allowPinchZoom,T=r.as,D=T===void 0?"div":T,N=r.gapMode,I=Up(r,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),V=w,L=ww([o,t]),B=kn(kn({},I),a);return m.createElement(m.Fragment,null,v&&m.createElement(V,{sideCar:Wp,removeScrollBar:g,shards:y,noRelative:b,noIsolation:S,inert:_,setCallbacks:l,allowPinchZoom:!!k,lockRef:o,gapMode:N}),u?m.cloneElement(m.Children.only(d),kn(kn({},B),{ref:L})):m.createElement(D,kn({},B,{className:h,ref:L}),d))});Fs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Fs.classNames={fullWidth:zs,zeroRight:Ms};var _w=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ew(){if(!document)return null;var r=document.createElement("style");r.type="text/css";var t=_w();return t&&r.setAttribute("nonce",t),r}function Rw(r,t){r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}function Pw(r){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(r)}var Iw=function(){var r=0,t=null;return{add:function(o){r==0&&(t=Ew())&&(Rw(t,o),Pw(t)),r++},remove:function(){r--,!r&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ow=function(){var r=Iw();return function(t,o){m.useEffect(function(){return r.add(t),function(){r.remove()}},[t&&o])}},Kp=function(){var r=Ow(),t=function(o){var i=o.styles,a=o.dynamic;return r(i,a),null};return t},Nw={left:0,top:0,right:0,gap:0},xc=function(r){return parseInt(r||"",10)||0},Tw=function(r){var t=window.getComputedStyle(document.body),o=t[r==="padding"?"paddingLeft":"marginLeft"],i=t[r==="padding"?"paddingTop":"marginTop"],a=t[r==="padding"?"paddingRight":"marginRight"];return[xc(o),xc(i),xc(a)]},Aw=function(r){if(r===void 0&&(r="margin"),typeof window>"u")return Nw;var t=Tw(r),o=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-o+t[2]-t[0])}},Dw=Kp(),_o="data-scroll-locked",Lw=function(r,t,o,i){var a=r.left,l=r.top,u=r.right,d=r.gap;return o===void 0&&(o="margin"),`
|
|
64
|
-
.`.concat(
|
|
63
|
+
`}const tp=(...r)=>r.filter((t,o,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===o).join(" ").trim();const S0=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const b0=r=>r.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,o,i)=>i?i.toUpperCase():o.toLowerCase());const np=r=>{const t=b0(r);return t.charAt(0).toUpperCase()+t.slice(1)};var ec={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"};const k0=r=>{for(const t in r)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},C0=m.createContext({}),_0=()=>m.useContext(C0),E0=m.forwardRef(({color:r,size:t,strokeWidth:o,absoluteStrokeWidth:i,className:a="",children:l,iconNode:u,...d},h)=>{const{size:g=24,strokeWidth:v=2,absoluteStrokeWidth:y=!1,color:S="currentColor",className:b=""}=_0()??{},w=i??y?Number(o??v)*24/Number(t??g):o??v;return m.createElement("svg",{ref:h,...ec,width:t??g??ec.width,height:t??g??ec.height,stroke:r??S,strokeWidth:w,className:tp("lucide",b,a),...!l&&!k0(d)&&{"aria-hidden":"true"},...d},[...u.map(([_,k])=>m.createElement(_,k)),...Array.isArray(l)?l:[l]])});const Jt=(r,t)=>{const o=m.forwardRef(({className:i,...a},l)=>m.createElement(E0,{ref:l,iconNode:t,className:tp(`lucide-${S0(np(r))}`,`lucide-${r}`,i),...a}));return o.displayName=np(r),o};const rp=Jt("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const tc=Jt("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const op=Jt("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);const R0=Jt("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"}]]);const P0=Jt("file-braces",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]);const I0=Jt("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const nc=Jt("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);const ip=Jt("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);const O0=Jt("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);const N0=Jt("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);const T0=Jt("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);const D0=Jt("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var rc={exports:{}},Ei={};var sp;function A0(){if(sp)return Ei;sp=1;var r=jl(),t=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(d,h,g){var v,y={},S=null,b=null;g!==void 0&&(S=""+g),h.key!==void 0&&(S=""+h.key),h.ref!==void 0&&(b=h.ref);for(v in h)i.call(h,v)&&!l.hasOwnProperty(v)&&(y[v]=h[v]);if(d&&d.defaultProps)for(v in h=d.defaultProps,h)y[v]===void 0&&(y[v]=h[v]);return{$$typeof:t,type:d,key:S,ref:b,props:y,_owner:a.current}}return Ei.Fragment=o,Ei.jsx=u,Ei.jsxs=u,Ei}var ap;function L0(){return ap||(ap=1,rc.exports=A0()),rc.exports}var A=L0(),Ri=vf(),$0=Object.defineProperty,oc=(r,t)=>$0(r,"name",{value:t,configurable:!0});function ic(r,t){if(typeof r=="function")return r(t);r!=null&&(r.current=t)}oc(ic,"setRef");function no(...r){return t=>{let o=!1;const i=r.map(a=>{const l=ic(a,t);return!o&&typeof l=="function"&&(o=!0),l});if(o)return()=>{for(let a=0;a<i.length;a++){const l=i[a];typeof l=="function"?l():ic(r[a],null)}}}}oc(no,"composeRefs");function Ge(...r){return m.useCallback(no(...r),r)}oc(Ge,"useComposedRefs");var j0=Object.defineProperty,cn=(r,t)=>j0(r,"name",{value:t,configurable:!0});function kn(r){const t=m.forwardRef((o,i)=>{let{children:a,...l}=o,u=null,d=!1;const h=[];sc(a)&&typeof Hs=="function"&&(a=Hs(a._payload)),m.Children.forEach(a,S=>{if(dp(S)){d=!0;const b=S;let w="child"in b.props?b.props.child:b.props.children;sc(w)&&typeof Hs=="function"&&(w=Hs(w._payload)),u=F0(b,w),h.push(u?.props?.children)}else h.push(S)}),u?u=m.cloneElement(u,void 0,h):!d&&m.Children.count(a)===1&&m.isValidElement(a)&&(u=a);const g=u?up(u):void 0,v=Ge(i,g);if(!u){if(a||a===0)throw new Error(d?B0(r):U0(r));return a}const y=cp(l,u.props??{});return u.type!==m.Fragment&&(y.ref=i?v:g),m.cloneElement(u,y)});return t.displayName=`${r}.Slot`,t}cn(kn,"createSlot");var M0=kn("Slot"),lp=Symbol.for("radix.slottable");function z0(r){const t=cn(o=>"child"in o?o.children(o.child):o.children,"Slottable");return t.displayName=`${r}.Slottable`,t.__radixId=lp,t}cn(z0,"createSlottable");var F0=cn((r,t)=>{if("child"in r.props){const o=r.props.child;return m.isValidElement(o)?m.cloneElement(o,void 0,r.props.children(o.props.children)):null}return m.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function cp(r,t){const o={...t};for(const i in t){const a=r[i],l=t[i];/^on[A-Z]/.test(i)?a&&l?o[i]=(...d)=>{const h=l(...d);return a(...d),h}:a&&(o[i]=a):i==="style"?o[i]={...a,...l}:i==="className"&&(o[i]=[a,l].filter(Boolean).join(" "))}return{...r,...o}}cn(cp,"mergeProps");function up(r){let t=Object.getOwnPropertyDescriptor(r.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?r.ref:(t=Object.getOwnPropertyDescriptor(r,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?r.props.ref:r.props.ref||r.ref)}cn(up,"getElementRef");function dp(r){return m.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===lp}cn(dp,"isSlottable");var V0=Symbol.for("react.lazy");function sc(r){return r!=null&&typeof r=="object"&&"$$typeof"in r&&r.$$typeof===V0&&"_payload"in r&&fp(r._payload)}cn(sc,"isLazyComponent");function fp(r){return typeof r=="object"&&r!==null&&"then"in r}cn(fp,"isPromiseLike");var U0=cn(r=>`${r} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),B0=cn(r=>`${r} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Hs=Si[" use ".trim().toString()],H0=Object.defineProperty,W0=(r,t)=>H0(r,"name",{value:t,configurable:!0}),K0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ze=K0.reduce((r,t)=>{const o=kn(`Primitive.${t}`),i=m.forwardRef((a,l)=>{const{asChild:u,...d}=a,h=u?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),A.jsx(h,{...d,ref:l})});return i.displayName=`Primitive.${t}`,{...r,[t]:i}},{});function pp(r,t){r&&Ri.flushSync(()=>r.dispatchEvent(t))}W0(pp,"dispatchDiscreteCustomEvent");var Z0=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"}),q0=Object.defineProperty,en=(r,t)=>q0(r,"name",{value:t,configurable:!0});function G0(r,t){const o=m.createContext(t);o.displayName=r+"Context";const i=en(l=>{const{children:u,...d}=l,h=m.useMemo(()=>d,Object.values(d));return A.jsx(o.Provider,{value:h,children:u})},"Provider");i.displayName=r+"Provider";function a(l,u={}){const{optional:d=!1}=u,h=m.useContext(o);if(h)return h;if(t!==void 0)return t;if(!d)throw new Error(`\`${l}\` must be used within \`${r}\``)}return en(a,"useContext"),[i,a]}en(G0,"createContext");function yr(r,t=[]){let o=[];function i(l,u){const d=m.createContext(u);d.displayName=l+"Context";const h=o.length;o=[...o,u];const g=en(y=>{const{scope:S,children:b,...w}=y,_=S?.[r]?.[h]||d,k=m.useMemo(()=>w,Object.values(w));return A.jsx(_.Provider,{value:k,children:b})},"Provider");g.displayName=l+"Provider";function v(y,S,b={}){const{optional:w=!1}=b,_=S?.[r]?.[h]||d,k=m.useContext(_);if(k)return k;if(u!==void 0)return u;if(!w)throw new Error(`\`${y}\` must be used within \`${l}\``)}return en(v,"useContext"),[g,v]}en(i,"createContext");const a=en(()=>{const l=o.map(u=>m.createContext(u));return en(function(d){const h=d?.[r]||l;return m.useMemo(()=>({[`__scope${r}`]:{...d,[r]:h}}),[d,h])},"useScope")},"createScope");return a.scopeName=r,[i,hp(a,...t)]}en(yr,"createContextScope");function hp(...r){const t=r[0];if(r.length===1)return t;const o=en(()=>{const i=r.map(a=>({useScope:a(),scopeName:a.scopeName}));return en(function(l){const u=i.reduce((d,{useScope:h,scopeName:g})=>{const y=h(l)[`__scope${g}`];return{...d,...y}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])},"useComposedScopes")},"createScope");return o.scopeName=t.scopeName,o}en(hp,"composeContextScopes");var Q0=Object.defineProperty,xt=(r,t)=>Q0(r,"name",{value:t,configurable:!0});function mp(r){const t=r+"CollectionProvider",[o,i]=yr(t),[a,l]=o(t,{collectionRef:{current:null},itemMap:new Map}),u=xt(_=>{const{scope:k,children:R}=_,D=m.useRef(null),T=m.useRef(new Map).current;return A.jsx(a,{scope:k,itemMap:T,collectionRef:D,children:R})},"CollectionProvider");u.displayName=t;const d=r+"CollectionSlot",h=kn(d),g=m.forwardRef((_,k)=>{const{scope:R,children:D}=_,T=l(d,R),O=Ge(k,T.collectionRef);return A.jsx(h,{ref:O,children:D})});g.displayName=d;const v=r+"CollectionItemSlot",y="data-radix-collection-item",S=kn(v),b=m.forwardRef((_,k)=>{const{scope:R,children:D,...T}=_,O=m.useRef(null),V=Ge(k,O),L=l(v,R);return m.useEffect(()=>(L.itemMap.set(O,{ref:O,...T}),()=>{L.itemMap.delete(O)})),A.jsx(S,{[y]:"",ref:V,children:D})});b.displayName=v;function w(_){const k=l(r+"CollectionConsumer",_);return m.useCallback(()=>{const D=k.collectionRef.current;if(!D)return[];const T=Array.from(D.querySelectorAll(`[${y}]`));return Array.from(k.itemMap.values()).sort((L,B)=>T.indexOf(L.ref.current)-T.indexOf(B.ref.current))},[k.collectionRef,k.itemMap])}return xt(w,"useCollection"),[{Provider:u,Slot:g,ItemSlot:b},w,i]}xt(mp,"createCollection");var gp=new WeakMap,ac=class qr extends Map{static{xt(this,"OrderedDict")}#e;constructor(t){super(t),this.#e=[...super.keys()],gp.set(this,!0)}set(t,o){return gp.get(this)&&(this.has(t)?this.#e[this.#e.indexOf(t)]=t:this.#e.push(t)),super.set(t,o),this}insert(t,o,i){const a=this.has(o),l=this.#e.length,u=lc(t);let d=u>=0?u:l+u;const h=d<0||d>=l?-1:d;if(h===this.size||a&&h===this.size-1||h===-1)return this.set(o,i),this;const g=this.size+(a?0:1);u<0&&d++;const v=[...this.#e];let y,S=!1;for(let b=d;b<g;b++)if(d===b){let w=v[b];v[b]===o&&(w=v[b+1]),a&&this.delete(o),y=this.get(w),this.set(o,i)}else{!S&&v[b-1]===o&&(S=!0);const w=v[S?b:b-1],_=y;y=this.get(w),this.delete(w),this.set(w,_)}return this}with(t,o,i){const a=new qr(this);return a.insert(t,o,i),a}before(t){const o=this.#e.indexOf(t)-1;if(!(o<0))return this.entryAt(o)}setBefore(t,o,i){const a=this.#e.indexOf(t);return a===-1?this:this.insert(a,o,i)}after(t){let o=this.#e.indexOf(t);if(o=o===-1||o===this.size-1?-1:o+1,o!==-1)return this.entryAt(o)}setAfter(t,o,i){const a=this.#e.indexOf(t);return a===-1?this:this.insert(a+1,o,i)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(t){const o=super.delete(t);return o&&this.#e.splice(this.#e.indexOf(t),1),o}deleteAt(t){const o=this.keyAt(t);return o!==void 0?this.delete(o):!1}at(t){const o=Ws(this.#e,t);if(o!==void 0)return this.get(o)}entryAt(t){const o=Ws(this.#e,t);if(o!==void 0)return[o,this.get(o)]}indexOf(t){return this.#e.indexOf(t)}keyAt(t){return Ws(this.#e,t)}from(t,o){const i=this.indexOf(t);if(i===-1)return;let a=i+o;return a<0&&(a=0),a>=this.size&&(a=this.size-1),this.at(a)}keyFrom(t,o){const i=this.indexOf(t);if(i===-1)return;let a=i+o;return a<0&&(a=0),a>=this.size&&(a=this.size-1),this.keyAt(a)}find(t,o){let i=0;for(const a of this){if(Reflect.apply(t,o,[a,i,this]))return a;i++}}findIndex(t,o){let i=0;for(const a of this){if(Reflect.apply(t,o,[a,i,this]))return i;i++}return-1}filter(t,o){const i=[];let a=0;for(const l of this)Reflect.apply(t,o,[l,a,this])&&i.push(l),a++;return new qr(i)}map(t,o){const i=[];let a=0;for(const l of this)i.push([l[0],Reflect.apply(t,o,[l,a,this])]),a++;return new qr(i)}reduce(...t){const[o,i]=t;let a=0,l=i??this.at(0);for(const u of this)a===0&&t.length===1?l=u:l=Reflect.apply(o,this,[l,u,a,this]),a++;return l}reduceRight(...t){const[o,i]=t;let a=i??this.at(-1);for(let l=this.size-1;l>=0;l--){const u=this.at(l);l===this.size-1&&t.length===1?a=u:a=Reflect.apply(o,this,[a,u,l,this])}return a}toSorted(t){const o=[...this.entries()].sort(t);return new qr(o)}toReversed(){const t=new qr;for(let o=this.size-1;o>=0;o--){const i=this.keyAt(o),a=this.get(i);t.set(i,a)}return t}toSpliced(...t){const o=[...this.entries()];return o.splice(...t),new qr(o)}slice(t,o){const i=new qr;let a=this.size-1;if(t===void 0)return i;t<0&&(t=t+this.size),o!==void 0&&o>0&&(a=o-1);for(let l=t;l<=a;l++){const u=this.keyAt(l),d=this.get(u);i.set(u,d)}return i}every(t,o){let i=0;for(const a of this){if(!Reflect.apply(t,o,[a,i,this]))return!1;i++}return!0}some(t,o){let i=0;for(const a of this){if(Reflect.apply(t,o,[a,i,this]))return!0;i++}return!1}};function Ws(r,t){if("at"in Array.prototype)return Array.prototype.at.call(r,t);const o=vp(r,t);return o===-1?void 0:r[o]}xt(Ws,"at");function vp(r,t){const o=r.length,i=lc(t),a=i>=0?i:o+i;return a<0||a>=o?-1:a}xt(vp,"toSafeIndex");function lc(r){return r!==r||r===0?0:Math.trunc(r)}xt(lc,"toSafeInteger");function Y0(r){const t=r+"CollectionProvider",[o,i]=yr(t),[a,l]=o(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new ac,setItemMap:xt(()=>{},"setItemMap")}),u=xt(({state:T,...O})=>T?A.jsx(h,{...O,state:T}):A.jsx(d,{...O}),"CollectionProvider");u.displayName=t;const d=xt(T=>{const O=k();return A.jsx(h,{...T,state:O})},"CollectionInit");d.displayName=t+"Init";const h=xt(T=>{const{scope:O,children:V,state:L}=T,B=m.useRef(null),[j,Y]=m.useState(null),ce=Ge(B,Y),[Ce,le]=L;return m.useEffect(()=>{if(!j)return;const ue=wp(()=>{});return ue.observe(j,{childList:!0,subtree:!0}),()=>{ue.disconnect()}},[j]),A.jsx(a,{scope:O,itemMap:Ce,setItemMap:le,collectionRef:ce,collectionRefObject:B,collectionElement:j,children:V})},"CollectionProviderImpl");h.displayName=t+"Impl";const g=r+"CollectionSlot",v=kn(g),y=m.forwardRef((T,O)=>{const{scope:V,children:L}=T,B=l(g,V),j=Ge(O,B.collectionRef);return A.jsx(v,{ref:j,children:L})});y.displayName=g;const S=r+"CollectionItemSlot",b="data-radix-collection-item",w=kn(S),_=m.forwardRef((T,O)=>{const{scope:V,children:L,...B}=T,j=m.useRef(null),[Y,ce]=m.useState(null),Ce=Ge(O,j,ce),le=l(S,V),{setItemMap:ue}=le,se=m.useRef(B);yp(se.current,B)||(se.current=B);const be=se.current;return m.useEffect(()=>{const ae=be;return ue(oe=>Y?oe.has(Y)?oe.set(Y,{...ae,element:Y}).toSorted(cc):(oe.set(Y,{...ae,element:Y}),oe.toSorted(cc)):oe),()=>{ue(oe=>!Y||!oe.has(Y)?oe:(oe.delete(Y),new ac(oe)))}},[Y,be,ue]),A.jsx(w,{[b]:"",ref:Ce,children:L})});_.displayName=S;function k(){return m.useState(new ac)}xt(k,"useInitCollection");function R(T){const{itemMap:O}=l(r+"CollectionConsumer",T);return O}return xt(R,"useCollection"),[{Provider:u,Slot:y,ItemSlot:_},{createCollectionScope:i,useCollection:R,useInitCollection:k}]}xt(Y0,"createCollection");function yp(r,t){if(r===t)return!0;if(typeof r!="object"||typeof t!="object"||r==null||t==null)return!1;const o=Object.keys(r),i=Object.keys(t);if(o.length!==i.length)return!1;for(const a of o)if(!Object.prototype.hasOwnProperty.call(t,a)||r[a]!==t[a])return!1;return!0}xt(yp,"shallowEqual");function xp(r,t){return!!(t.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_PRECEDING)}xt(xp,"isElementPreceding");function cc(r,t){return!r[1].element||!t[1].element?0:xp(r[1].element,t[1].element)?-1:1}xt(cc,"sortByDocumentPosition");function wp(r){return new MutationObserver(o=>{for(const i of o)if(i.type==="childList"){r();return}})}xt(wp,"getChildListObserver");var X0=Object.defineProperty,Po=(r,t)=>X0(r,"name",{value:t,configurable:!0}),Sp=!!(typeof window<"u"&&window.document&&window.document.createElement);function We(r,t,{checkForDefaultPrevented:o=!0}={}){return Po(function(a){if(r?.(a),o===!1||!a||!a.defaultPrevented)return t?.(a)},"handleEvent")}Po(We,"composeEventHandlers");function J0(r){if(!Sp)throw new Error("Cannot access window outside of the DOM");return r?.ownerDocument?.defaultView??window}Po(J0,"getOwnerWindow");function uc(r){if(!Sp)throw new Error("Cannot access document outside of the DOM");return r?.ownerDocument??document}Po(uc,"getOwnerDocument");function bp(r,t=!1){const{activeElement:o}=uc(r);if(!o?.nodeName)return null;if(kp(o)&&o.contentDocument)return bp(o.contentDocument.body,t);if(t){const i=o.getAttribute("aria-activedescendant");if(i){const a=uc(o).getElementById(i);if(a)return a}}return o}Po(bp,"getActiveElement");function kp(r){return r.tagName==="IFRAME"}Po(kp,"isFrame");var ft=globalThis?.document?m.useLayoutEffect:()=>{},ew=Object.defineProperty,tw=(r,t)=>ew(r,"name",{value:t,configurable:!0}),Cp=Si[" useEffectEvent ".trim().toString()],_p=Si[" useInsertionEffect ".trim().toString()];function Ep(r){if(typeof Cp=="function")return Cp(r);const t=m.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof _p=="function"?_p(()=>{t.current=r}):ft(()=>{t.current=r}),m.useMemo(()=>((...o)=>t.current?.(...o)),[])}tw(Ep,"useEffectEvent");var nw=Object.defineProperty,Pi=(r,t)=>nw(r,"name",{value:t,configurable:!0}),rw=Si[" useInsertionEffect ".trim().toString()]||ft;function Ii({prop:r,defaultProp:t,onChange:o=Pi(()=>{},"onChange"),caller:i}){const[a,l,u]=Rp({defaultProp:t,onChange:o}),d=r!==void 0,h=d?r:a,g=m.useCallback(v=>{if(d){const y=Pp(v)?v(r):v;y!==r&&u.current?.(y)}else l(v)},[d,r,l,u]);return[h,g]}Pi(Ii,"useControllableState");function Rp({defaultProp:r,onChange:t}){const[o,i]=m.useState(r),a=m.useRef(o),l=m.useRef(t);return rw(()=>{l.current=t},[t]),m.useEffect(()=>{a.current!==o&&(l.current?.(o),a.current=o)},[o,a]),[o,i,l]}Pi(Rp,"useUncontrolledState");function Pp(r){return typeof r=="function"}Pi(Pp,"isFunction");var Ip=Symbol("RADIX:SYNC_STATE");function ow(r,t,o,i){const{prop:a,defaultProp:l,onChange:u,caller:d}=t,h=a!==void 0,g=Ep(u),v=[{...o,state:l}];i&&v.push(i);const[y,S]=m.useReducer((k,R)=>{if(R.type===Ip)return{...k,state:R.state};const D=r(k,R);return h&&!Object.is(D.state,k.state)&&g(D.state),D},...v),b=y.state,w=m.useRef(b);m.useEffect(()=>{w.current!==b&&(w.current=b,h||g(b))},[b,w,h]);const _=m.useMemo(()=>a!==void 0?{...y,state:a}:y,[y,a]);return m.useEffect(()=>{h&&!Object.is(a,y.state)&&S({type:Ip,state:a})},[a,y.state,h]),[_,S]}Pi(ow,"useControllableStateReducer");var iw=Object.defineProperty,Kn=(r,t)=>iw(r,"name",{value:t,configurable:!0});function Op(r,t){return m.useReducer((o,i)=>t[o][i]??o,r)}Kn(Op,"useStateMachine");var Io=Kn(r=>{const{present:t,children:o}=r,i=Np(t),a=typeof o=="function"?o({present:i.isPresent}):m.Children.only(o),l=Tp(i.ref,Dp(a));return typeof o=="function"||i.isPresent?m.cloneElement(a,{ref:l}):null},"Presence");function Np(r){const[t,o]=m.useState(),i=m.useRef(null),a=m.useRef(r),l=m.useRef("none"),u=m.useRef(void 0),d=r?"mounted":"unmounted",[h,g]=Op(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{h==="mounted"?(l.current=u.current??Oo(i.current),u.current=void 0):l.current="none"},[h]),ft(()=>{const v=i.current,y=a.current;if(y!==r){const b=l.current,w=Oo(v);r?(u.current=w,g("MOUNT")):w==="none"||v?.display==="none"?g("UNMOUNT"):g(y&&b!==w?"ANIMATION_OUT":"UNMOUNT"),a.current=r}},[r,g]),ft(()=>{if(t){let v;const y=t.ownerDocument.defaultView??window,S=Kn(w=>{const k=Oo(i.current).includes(CSS.escape(w.animationName));if(w.target===t&&k&&(g("ANIMATION_END"),!a.current)){const R=t.style.animationFillMode;t.style.animationFillMode="forwards",v=y.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=R)})}},"handleAnimationEnd"),b=Kn(w=>{w.target===t&&(l.current=Oo(i.current))},"handleAnimationStart");return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",S),t.addEventListener("animationend",S),()=>{y.clearTimeout(v),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",S),t.removeEventListener("animationend",S)}}else g("ANIMATION_END")},[t,g]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:m.useCallback(v=>{if(v){const y=getComputedStyle(v);i.current=y,u.current=Oo(y)}else i.current=null;o(v)},[])}}Kn(Np,"usePresence");function dc(r,t){if(typeof r=="function")return r(t);r!=null&&(r.current=t)}Kn(dc,"setRef");function Tp(...r){const t=m.useRef(r);return t.current=r,m.useCallback(o=>{const i=t.current;let a=!1;const l=i.map(u=>{const d=dc(u,o);return!a&&typeof d=="function"&&(a=!0),d});if(a)return()=>{for(let u=0;u<l.length;u++){const d=l[u];typeof d=="function"?d():dc(i[u],null)}}},[])}Kn(Tp,"useStableComposedRefs");function Oo(r){return r?.animationName||"none"}Kn(Oo,"getAnimationName");function Dp(r){let t=Object.getOwnPropertyDescriptor(r.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?r.ref:(t=Object.getOwnPropertyDescriptor(r,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?r.props.ref:r.props.ref||r.ref)}Kn(Dp,"getElementRef");var sw=Object.defineProperty,aw=(r,t)=>sw(r,"name",{value:t,configurable:!0}),lw=Si[" useId ".trim().toString()]||(()=>{}),cw=0;function Kt(r){const[t,o]=m.useState(lw());return ft(()=>{r||o(i=>i??String(cw++))},[r]),r||(t?`radix-${t}`:"")}aw(Kt,"useId");var uw=Object.defineProperty,dw=(r,t)=>uw(r,"name",{value:t,configurable:!0}),fw=m.createContext(void 0);function Ap(r){const t=m.useContext(fw);return r||t||"ltr"}dw(Ap,"useDirection");var pw=Object.defineProperty,hw=(r,t)=>pw(r,"name",{value:t,configurable:!0});function Cn(r){const t=m.useRef(r);return m.useEffect(()=>{t.current=r}),m.useMemo(()=>((...o)=>t.current?.(...o)),[])}hw(Cn,"useCallbackRef");var mw=Object.defineProperty,wt=(r,t)=>mw(r,"name",{value:t,configurable:!0}),fc="dismissableLayer.update",gw="dismissableLayer.pointerDownOutside",vw="dismissableLayer.focusOutside",Lp,$p=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),pc=m.forwardRef(wt(function(t,o){const{disableOutsidePointerEvents:i=!1,deferPointerDownOutside:a=!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:h,onDismiss:g,...v}=t,y=m.useContext($p),[S,b]=m.useState(null),w=S?.ownerDocument??globalThis?.document,[,_]=m.useState({}),k=Ge(o,b),R=Array.from(y.layers),[D]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),T=D?R.indexOf(D):-1,O=S?R.indexOf(S):-1,V=y.layersWithOutsidePointerEventsDisabled.size>0,L=O>=T,B=m.useRef(!1),j=Mp(le=>{u?.(le),h?.(le),le.defaultPrevented||g?.()},{ownerDocument:w,deferPointerDownOutside:a,isDeferredPointerDownOutsideRef:B,dismissableSurfaces:y.dismissableSurfaces,shouldHandlePointerDownOutside:m.useCallback(le=>{if(!(le instanceof Node))return!1;const ue=[...y.branches].some(se=>se.contains(le));return L&&!ue},[y.branches,L])}),Y=zp(le=>{if(a&&B.current)return;const ue=le.target;[...y.branches].some(be=>be.contains(ue))||(d?.(le),h?.(le),le.defaultPrevented||g?.())},w),ce=S?O===R.length-1:!1,Ce=Cn(le=>{le.key==="Escape"&&(l?.(le),!le.defaultPrevented&&g&&(le.preventDefault(),g()))});return m.useEffect(()=>{if(ce)return w.addEventListener("keydown",Ce,{capture:!0}),()=>w.removeEventListener("keydown",Ce,{capture:!0})},[w,ce,Ce]),m.useEffect(()=>{if(S)return i&&(y.layersWithOutsidePointerEventsDisabled.size===0&&(Lp=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(S)),y.layers.add(S),hc(),()=>{i&&(y.layersWithOutsidePointerEventsDisabled.delete(S),y.layersWithOutsidePointerEventsDisabled.size===0&&(w.body.style.pointerEvents=Lp))}},[S,w,i,y]),m.useEffect(()=>()=>{S&&(y.layers.delete(S),y.layersWithOutsidePointerEventsDisabled.delete(S),hc())},[S,y]),m.useEffect(()=>{const le=wt(()=>_({}),"handleUpdate");return document.addEventListener(fc,le),()=>document.removeEventListener(fc,le)},[]),A.jsx(Ze.div,{...v,ref:k,style:{pointerEvents:V?L?"auto":"none":void 0,...t.style},onFocusCapture:We(t.onFocusCapture,Y.onFocusCapture),onBlurCapture:We(t.onBlurCapture,Y.onBlurCapture),onPointerDownCapture:We(t.onPointerDownCapture,j.onPointerDownCapture)})},"DismissableLayer"));function jp(){const r=m.useContext($p),[t,o]=m.useState(null);return m.useEffect(()=>{if(t)return r.dismissableSurfaces.add(t),()=>{r.dismissableSurfaces.delete(t)}},[t,r.dismissableSurfaces]),o}wt(jp,"useDismissableLayerSurface");var yw=wt(()=>!0,"IS_TRUE");function Mp(r,t){const{ownerDocument:o=globalThis?.document,deferPointerDownOutside:i=!1,isDeferredPointerDownOutsideRef:a,dismissableSurfaces:l,shouldHandlePointerDownOutside:u=yw}=t,d=Cn(r),h=m.useRef(!1),g=m.useRef(!1),v=m.useRef(new Map),y=m.useRef(()=>{});return m.useEffect(()=>{function S(){g.current=!1,a.current=!1,v.current.clear()}wt(S,"resetOutsideInteraction");function b(){return Array.from(v.current.values()).some(Boolean)}wt(b,"isOutsideInteractionIntercepted");function w(T){if(!g.current)return;const O=T.target;O instanceof Node&&[...l].some(L=>L.contains(O))||v.current.set(T.type,!0),T.type==="click"&&window.setTimeout(()=>{g.current&&y.current()},0)}wt(w,"handleInteractionCapture");function _(T){g.current&&v.current.set(T.type,!1)}wt(_,"handleInteractionBubble");const k=wt(T=>{if(T.target&&!h.current){let O=function(){o.removeEventListener("click",y.current);const L=b();S(),L||mc(gw,d,V,{discrete:!0})};if(wt(O,"handleAndDispatchPointerDownOutsideEvent"),!u(T.target)){o.removeEventListener("click",y.current),S(),h.current=!1;return}const V={originalEvent:T};g.current=!0,a.current=i&&T.button===0,v.current.clear(),!i||T.button!==0?O():(o.removeEventListener("click",y.current),y.current=O,o.addEventListener("click",y.current,{once:!0}))}else o.removeEventListener("click",y.current),S();h.current=!1},"handlePointerDown"),R=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const T of R)o.addEventListener(T,w,!0),o.addEventListener(T,_);const D=window.setTimeout(()=>{o.addEventListener("pointerdown",k)},0);return()=>{window.clearTimeout(D),o.removeEventListener("pointerdown",k),o.removeEventListener("click",y.current);for(const T of R)o.removeEventListener(T,w,!0),o.removeEventListener(T,_)}},[o,d,i,a,l,u]),{onPointerDownCapture:wt(()=>h.current=!0,"onPointerDownCapture")}}wt(Mp,"usePointerDownOutside");function zp(r,t=globalThis?.document){const o=Cn(r),i=m.useRef(!1);return m.useEffect(()=>{const a=wt(l=>{l.target&&!i.current&&mc(vw,o,{originalEvent:l},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,o]),{onFocusCapture:wt(()=>i.current=!0,"onFocusCapture"),onBlurCapture:wt(()=>i.current=!1,"onBlurCapture")}}wt(zp,"useFocusOutside");function hc(){const r=new CustomEvent(fc);document.dispatchEvent(r)}wt(hc,"dispatchUpdate");function mc(r,t,o,{discrete:i}){const a=o.originalEvent.target,l=new CustomEvent(r,{bubbles:!1,cancelable:!0,detail:o});t&&a.addEventListener(r,t,{once:!0}),i?pp(a,l):a.dispatchEvent(l)}wt(mc,"handleAndDispatchCustomEvent");var xw=Object.defineProperty,Dt=(r,t)=>xw(r,"name",{value:t,configurable:!0}),gc="focusScope.autoFocusOnMount",vc="focusScope.autoFocusOnUnmount",Fp={bubbles:!1,cancelable:!0},yc=m.forwardRef(Dt(function(t,o){const{loop:i=!1,trapped:a=!1,onMountAutoFocus:l,onUnmountAutoFocus:u,...d}=t,[h,g]=m.useState(null),v=Cn(l),y=Cn(u),S=m.useRef(null),b=Ge(o,g),w=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(a){let k=function(O){if(w.paused||!h)return;const V=O.target;h.contains(V)?S.current=V:Zn(S.current,{select:!0})},R=function(O){if(w.paused||!h)return;const V=O.relatedTarget;V!==null&&(h.contains(V)||Zn(S.current,{select:!0}))},D=function(O){if(document.activeElement===document.body)for(const L of O)L.removedNodes.length>0&&Zn(h)};Dt(k,"handleFocusIn"),Dt(R,"handleFocusOut"),Dt(D,"handleMutations"),document.addEventListener("focusin",k),document.addEventListener("focusout",R);const T=new MutationObserver(D);return h&&T.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",R),T.disconnect()}}},[a,h,w.paused]),m.useEffect(()=>{if(h){Wp.add(w);const k=document.activeElement;if(!h.contains(k)){const D=new CustomEvent(gc,Fp);h.addEventListener(gc,v),h.dispatchEvent(D),D.defaultPrevented||(Vp(Zp(xc(h)),{select:!0}),document.activeElement===k&&Zn(h))}return()=>{h.removeEventListener(gc,v),setTimeout(()=>{const D=new CustomEvent(vc,Fp);h.addEventListener(vc,y),h.dispatchEvent(D),D.defaultPrevented||Zn(k??document.body,{select:!0}),h.removeEventListener(vc,y),Wp.remove(w)},0)}}},[h,v,y,w]);const _=m.useCallback(k=>{if(!i&&!a||w.paused)return;const R=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,D=document.activeElement;if(R&&D){const T=k.currentTarget,[O,V]=Up(T);O&&V?!k.shiftKey&&D===V?(k.preventDefault(),i&&Zn(O,{select:!0})):k.shiftKey&&D===O&&(k.preventDefault(),i&&Zn(V,{select:!0})):D===T&&k.preventDefault()}},[i,a,w.paused]);return A.jsx(Ze.div,{tabIndex:-1,...d,ref:b,onKeyDown:_})},"FocusScope"));function Vp(r,{select:t=!1}={}){const o=document.activeElement;for(const i of r)if(Zn(i,{select:t}),document.activeElement!==o)return}Dt(Vp,"focusFirst");function Up(r){const t=xc(r),o=wc(t,r),i=wc(t.reverse(),r);return[o,i]}Dt(Up,"getTabbableEdges");function xc(r){const t=[],o=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,{acceptNode:Dt(i=>{const a=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||a?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;o.nextNode();)t.push(o.currentNode);return t}Dt(xc,"getTabbableCandidates");function wc(r,t){const o=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const i of r)if(!(o?!i.checkVisibility({checkVisibilityCSS:!0}):Bp(i,{upTo:t})))return i}Dt(wc,"findVisible");function Bp(r,{upTo:t}){if(getComputedStyle(r).visibility==="hidden")return!0;for(;r;){if(t!==void 0&&r===t)return!1;if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1}Dt(Bp,"isHidden");function Hp(r){return r instanceof HTMLInputElement&&"select"in r}Dt(Hp,"isSelectableInput");function Zn(r,{select:t=!1}={}){if(r&&r.focus){const o=document.activeElement;r.focus({preventScroll:!0}),r!==o&&Hp(r)&&t&&r.select()}}Dt(Zn,"focus");var Wp=Kp();function Kp(){let r=[];return{add(t){const o=r[0];t!==o&&o?.pause(),r=Sc(r,t),r.unshift(t)},remove(t){r=Sc(r,t),r[0]?.resume()}}}Dt(Kp,"createFocusScopesStack");function Sc(r,t){const o=[...r],i=o.indexOf(t);return i!==-1&&o.splice(i,1),o}Dt(Sc,"arrayRemove");function Zp(r){return r.filter(t=>t.tagName!=="A")}Dt(Zp,"removeLinks");var ww=Object.defineProperty,Sw=(r,t)=>ww(r,"name",{value:t,configurable:!0}),bc=m.forwardRef(Sw(function(t,o){const{container:i,...a}=t,[l,u]=m.useState(!1);ft(()=>u(!0),[]);const d=i||l&&globalThis?.document?.body;return d?Ri.createPortal(A.jsx(Ze.div,{...a,ref:o}),d):null},"Portal")),bw=Object.defineProperty,kc=(r,t)=>bw(r,"name",{value:t,configurable:!0}),Ks=0,No=null;function kw(r){return Oi(),r.children}kc(kw,"FocusGuards");function Oi(){m.useEffect(()=>{No||(No={start:Cc(),end:Cc()});const{start:r,end:t}=No;return document.body.firstElementChild!==r&&document.body.insertAdjacentElement("afterbegin",r),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Ks++,()=>{Ks===1&&(No?.start.remove(),No?.end.remove(),No=null),Ks=Math.max(0,Ks-1)}},[])}kc(Oi,"useFocusGuards");function Cc(){const r=document.createElement("span");return r.setAttribute("data-radix-focus-guard",""),r.tabIndex=0,r.style.outline="none",r.style.opacity="0",r.style.position="fixed",r.style.pointerEvents="none",r}kc(Cc,"createFocusGuard");var _n=function(){return _n=Object.assign||function(t){for(var o,i=1,a=arguments.length;i<a;i++){o=arguments[i];for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(t[l]=o[l])}return t},_n.apply(this,arguments)};function qp(r,t){var o={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&t.indexOf(i)<0&&(o[i]=r[i]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(r);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(r,i[a])&&(o[i[a]]=r[i[a]]);return o}function Cw(r,t,o){if(o||arguments.length===2)for(var i=0,a=t.length,l;i<a;i++)(l||!(i in t))&&(l||(l=Array.prototype.slice.call(t,0,i)),l[i]=t[i]);return r.concat(l||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Zs="right-scroll-bar-position",qs="width-before-scroll-bar",_w="with-scroll-bars-hidden",Ew="--removed-body-scroll-bar-size";function _c(r,t){return typeof r=="function"?r(t):r&&(r.current=t),r}function Rw(r,t){var o=m.useState(function(){return{value:r,callback:t,facade:{get current(){return o.value},set current(i){var a=o.value;a!==i&&(o.value=i,o.callback(i,a))}}}})[0];return o.callback=t,o.facade}var Pw=typeof window<"u"?m.useLayoutEffect:m.useEffect,Gp=new WeakMap;function Iw(r,t){var o=Rw(null,function(i){return r.forEach(function(a){return _c(a,i)})});return Pw(function(){var i=Gp.get(o);if(i){var a=new Set(i),l=new Set(r),u=o.current;a.forEach(function(d){l.has(d)||_c(d,null)}),l.forEach(function(d){a.has(d)||_c(d,u)})}Gp.set(o,r)},[r]),o}function Ow(r){return r}function Nw(r,t){t===void 0&&(t=Ow);var o=[],i=!1,a={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:r},useMedium:function(l){var u=t(l,i);return o.push(u),function(){o=o.filter(function(d){return d!==u})}},assignSyncMedium:function(l){for(i=!0;o.length;){var u=o;o=[],u.forEach(l)}o={push:function(d){return l(d)},filter:function(){return o}}},assignMedium:function(l){i=!0;var u=[];if(o.length){var d=o;o=[],d.forEach(l),u=o}var h=function(){var v=u;u=[],v.forEach(l)},g=function(){return Promise.resolve().then(h)};g(),o={push:function(v){u.push(v),g()},filter:function(v){return u=u.filter(v),o}}}};return a}function Tw(r){r===void 0&&(r={});var t=Nw(null);return t.options=_n({async:!0,ssr:!1},r),t}var Qp=function(r){var t=r.sideCar,o=qp(r,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return m.createElement(i,_n({},o))};Qp.isSideCarExport=!0;function Dw(r,t){return r.useMedium(t),Qp}var Yp=Tw(),Ec=function(){},Gs=m.forwardRef(function(r,t){var o=m.useRef(null),i=m.useState({onScrollCapture:Ec,onWheelCapture:Ec,onTouchMoveCapture:Ec}),a=i[0],l=i[1],u=r.forwardProps,d=r.children,h=r.className,g=r.removeScrollBar,v=r.enabled,y=r.shards,S=r.sideCar,b=r.noRelative,w=r.noIsolation,_=r.inert,k=r.allowPinchZoom,R=r.as,D=R===void 0?"div":R,T=r.gapMode,O=qp(r,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),V=S,L=Iw([o,t]),B=_n(_n({},O),a);return m.createElement(m.Fragment,null,v&&m.createElement(V,{sideCar:Yp,removeScrollBar:g,shards:y,noRelative:b,noIsolation:w,inert:_,setCallbacks:l,allowPinchZoom:!!k,lockRef:o,gapMode:T}),u?m.cloneElement(m.Children.only(d),_n(_n({},B),{ref:L})):m.createElement(D,_n({},B,{className:h,ref:L}),d))});Gs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Gs.classNames={fullWidth:qs,zeroRight:Zs};var Aw=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Lw(){if(!document)return null;var r=document.createElement("style");r.type="text/css";var t=Aw();return t&&r.setAttribute("nonce",t),r}function $w(r,t){r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}function jw(r){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(r)}var Mw=function(){var r=0,t=null;return{add:function(o){r==0&&(t=Lw())&&($w(t,o),jw(t)),r++},remove:function(){r--,!r&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},zw=function(){var r=Mw();return function(t,o){m.useEffect(function(){return r.add(t),function(){r.remove()}},[t&&o])}},Xp=function(){var r=zw(),t=function(o){var i=o.styles,a=o.dynamic;return r(i,a),null};return t},Fw={left:0,top:0,right:0,gap:0},Rc=function(r){return parseInt(r||"",10)||0},Vw=function(r){var t=window.getComputedStyle(document.body),o=t[r==="padding"?"paddingLeft":"marginLeft"],i=t[r==="padding"?"paddingTop":"marginTop"],a=t[r==="padding"?"paddingRight":"marginRight"];return[Rc(o),Rc(i),Rc(a)]},Uw=function(r){if(r===void 0&&(r="margin"),typeof window>"u")return Fw;var t=Vw(r),o=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-o+t[2]-t[0])}},Bw=Xp(),To="data-scroll-locked",Hw=function(r,t,o,i){var a=r.left,l=r.top,u=r.right,d=r.gap;return o===void 0&&(o="margin"),`
|
|
64
|
+
.`.concat(_w,` {
|
|
65
65
|
overflow: hidden `).concat(i,`;
|
|
66
66
|
padding-right: `).concat(d,"px ").concat(i,`;
|
|
67
67
|
}
|
|
68
|
-
body[`).concat(
|
|
68
|
+
body[`).concat(To,`] {
|
|
69
69
|
overflow: hidden `).concat(i,`;
|
|
70
70
|
overscroll-behavior: contain;
|
|
71
71
|
`).concat([t&&"position: relative ".concat(i,";"),o==="margin"&&`
|
|
@@ -78,29 +78,29 @@ Error generating stack: `+p.message+`
|
|
|
78
78
|
`),o==="padding"&&"padding-right: ".concat(d,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
.`).concat(
|
|
81
|
+
.`).concat(Zs,` {
|
|
82
82
|
right: `).concat(d,"px ").concat(i,`;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
.`).concat(
|
|
85
|
+
.`).concat(qs,` {
|
|
86
86
|
margin-right: `).concat(d,"px ").concat(i,`;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
.`).concat(
|
|
89
|
+
.`).concat(Zs," .").concat(Zs,` {
|
|
90
90
|
right: 0 `).concat(i,`;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
.`).concat(
|
|
93
|
+
.`).concat(qs," .").concat(qs,` {
|
|
94
94
|
margin-right: 0 `).concat(i,`;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
body[`).concat(
|
|
98
|
-
`).concat(
|
|
97
|
+
body[`).concat(To,`] {
|
|
98
|
+
`).concat(Ew,": ").concat(d,`px;
|
|
99
99
|
}
|
|
100
|
-
`)},
|
|
100
|
+
`)},Jp=function(){var r=parseInt(document.body.getAttribute(To)||"0",10);return isFinite(r)?r:0},Ww=function(){m.useEffect(function(){return document.body.setAttribute(To,(Jp()+1).toString()),function(){var r=Jp()-1;r<=0?document.body.removeAttribute(To):document.body.setAttribute(To,r.toString())}},[])},Kw=function(r){var t=r.noRelative,o=r.noImportant,i=r.gapMode,a=i===void 0?"margin":i;Ww();var l=m.useMemo(function(){return Uw(a)},[a]);return m.createElement(Bw,{styles:Hw(l,!t,a,o?"":"!important")})},Pc=!1;if(typeof window<"u")try{var Qs=Object.defineProperty({},"passive",{get:function(){return Pc=!0,!0}});window.addEventListener("test",Qs,Qs),window.removeEventListener("test",Qs,Qs)}catch{Pc=!1}var Do=Pc?{passive:!1}:!1,Zw=function(r){return r.tagName==="TEXTAREA"},eh=function(r,t){if(!(r instanceof Element))return!1;var o=window.getComputedStyle(r);return o[t]!=="hidden"&&!(o.overflowY===o.overflowX&&!Zw(r)&&o[t]==="visible")},qw=function(r){return eh(r,"overflowY")},Gw=function(r){return eh(r,"overflowX")},th=function(r,t){var o=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var a=nh(r,i);if(a){var l=rh(r,i),u=l[1],d=l[2];if(u>d)return!0}i=i.parentNode}while(i&&i!==o.body);return!1},Qw=function(r){var t=r.scrollTop,o=r.scrollHeight,i=r.clientHeight;return[t,o,i]},Yw=function(r){var t=r.scrollLeft,o=r.scrollWidth,i=r.clientWidth;return[t,o,i]},nh=function(r,t){return r==="v"?qw(t):Gw(t)},rh=function(r,t){return r==="v"?Qw(t):Yw(t)},Xw=function(r,t){return r==="h"&&t==="rtl"?-1:1},Jw=function(r,t,o,i,a){var l=Xw(r,window.getComputedStyle(t).direction),u=l*i,d=o.target,h=t.contains(d),g=!1,v=u>0,y=0,S=0;do{if(!d)break;var b=rh(r,d),w=b[0],_=b[1],k=b[2],R=_-k-l*w;(w||R)&&nh(r,d)&&(y+=R,S+=w);var D=d.parentNode;d=D&&D.nodeType===Node.DOCUMENT_FRAGMENT_NODE?D.host:D}while(!h&&d!==document.body||h&&(t.contains(d)||t===d));return(v&&Math.abs(y)<1||!v&&Math.abs(S)<1)&&(g=!0),g},Ys=function(r){return"changedTouches"in r?[r.changedTouches[0].clientX,r.changedTouches[0].clientY]:[0,0]},oh=function(r){return[r.deltaX,r.deltaY]},ih=function(r){return r&&"current"in r?r.current:r},eS=function(r,t){return r[0]===t[0]&&r[1]===t[1]},tS=function(r){return`
|
|
101
101
|
.block-interactivity-`.concat(r,` {pointer-events: none;}
|
|
102
102
|
.allow-interactivity-`).concat(r,` {pointer-events: all;}
|
|
103
|
-
`)},Zw=0,Ro=[];function qw(r){var t=m.useRef([]),o=m.useRef([0,0]),i=m.useRef(),a=m.useState(Zw++)[0],l=m.useState(Kp)[0],u=m.useRef(r);m.useEffect(function(){u.current=r},[r]),m.useEffect(function(){if(r.inert){document.body.classList.add("block-interactivity-".concat(a));var _=mw([r.lockRef.current],(r.shards||[]).map(Jp),!0).filter(Boolean);return _.forEach(function(k){return k.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),_.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(a))})}}},[r.inert,r.lockRef.current,r.shards]);var d=m.useCallback(function(_,k){if("touches"in _&&_.touches.length===2||_.type==="wheel"&&_.ctrlKey)return!u.current.allowPinchZoom;var T=Us(_),D=o.current,N="deltaX"in _?_.deltaX:D[0]-T[0],I="deltaY"in _?_.deltaY:D[1]-T[1],V,L=_.target,B=Math.abs(N)>Math.abs(I)?"h":"v";if("touches"in _&&B==="h"&&L.type==="range")return!1;var j=window.getSelection(),Q=j&&j.anchorNode,ae=Q?Q===L||Q.contains(L):!1;if(ae)return!1;var Ce=Gp(B,L);if(!Ce)return!0;if(Ce?V=B:(V=B==="v"?"h":"v",Ce=Gp(B,L)),!Ce)return!1;if(!i.current&&"changedTouches"in _&&(N||I)&&(i.current=V),!V)return!0;var ce=i.current||V;return Hw(ce,k,_,ce==="h"?N:I)},[]),h=m.useCallback(function(_){var k=_;if(!(!Ro.length||Ro[Ro.length-1]!==l)){var T="deltaY"in k?Xp(k):Us(k),D=t.current.filter(function(V){return V.name===k.type&&(V.target===k.target||k.target===V.shadowParent)&&Ww(V.delta,T)})[0];if(D&&D.should){k.cancelable&&k.preventDefault();return}if(!D){var N=(u.current.shards||[]).map(Jp).filter(Boolean).filter(function(V){return V.contains(k.target)}),I=N.length>0?d(k,N[0]):!u.current.noIsolation;I&&k.cancelable&&k.preventDefault()}}},[]),g=m.useCallback(function(_,k,T,D){var N={name:_,delta:k,target:T,should:D,shadowParent:Gw(T)};t.current.push(N),setTimeout(function(){t.current=t.current.filter(function(I){return I!==N})},1)},[]),v=m.useCallback(function(_){o.current=Us(_),i.current=void 0},[]),y=m.useCallback(function(_){g(_.type,Xp(_),_.target,d(_,r.lockRef.current))},[]),w=m.useCallback(function(_){g(_.type,Us(_),_.target,d(_,r.lockRef.current))},[]);m.useEffect(function(){return Ro.push(l),r.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:w}),document.addEventListener("wheel",h,Eo),document.addEventListener("touchmove",h,Eo),document.addEventListener("touchstart",v,Eo),function(){Ro=Ro.filter(function(_){return _!==l}),document.removeEventListener("wheel",h,Eo),document.removeEventListener("touchmove",h,Eo),document.removeEventListener("touchstart",v,Eo)}},[]);var b=r.removeScrollBar,S=r.inert;return m.createElement(m.Fragment,null,S?m.createElement(l,{styles:Kw(a)}):null,b?m.createElement(jw,{noRelative:r.noRelative,gapMode:r.gapMode}):null)}function Gw(r){for(var t=null;r!==null;)r instanceof ShadowRoot&&(t=r.host,r=r.host),r=r.parentNode;return t}const Qw=Cw(Wp,qw);var Bs=m.forwardRef(function(r,t){return m.createElement(Fs,kn({},r,{ref:t,sideCar:Qw}))});Bs.classNames=Fs.classNames;var Yw=function(r){if(typeof document>"u")return null;var t=Array.isArray(r)?r[0]:r;return t.ownerDocument.body},Po=new WeakMap,Hs=new WeakMap,Ws={},Sc=0,eh=function(r){return r&&(r.host||eh(r.parentNode))},Xw=function(r,t){return t.map(function(o){if(r.contains(o))return o;var i=eh(o);return i&&r.contains(i)?i:(console.error("aria-hidden",o,"in not contained inside",r,". Doing nothing"),null)}).filter(function(o){return!!o})},Jw=function(r,t,o,i){var a=Xw(t,Array.isArray(r)?r:[r]);Ws[o]||(Ws[o]=new WeakMap);var l=Ws[o],u=[],d=new Set,h=new Set(a),g=function(y){!y||d.has(y)||(d.add(y),g(y.parentNode))};a.forEach(g);var v=function(y){!y||h.has(y)||Array.prototype.forEach.call(y.children,function(w){if(d.has(w))v(w);else try{var b=w.getAttribute(i),S=b!==null&&b!=="false",_=(Po.get(w)||0)+1,k=(l.get(w)||0)+1;Po.set(w,_),l.set(w,k),u.push(w),_===1&&S&&Hs.set(w,!0),k===1&&w.setAttribute(o,"true"),S||w.setAttribute(i,"true")}catch(T){console.error("aria-hidden: cannot operate on ",w,T)}})};return v(t),d.clear(),Sc++,function(){u.forEach(function(y){var w=Po.get(y)-1,b=l.get(y)-1;Po.set(y,w),l.set(y,b),w||(Hs.has(y)||y.removeAttribute(i),Hs.delete(y)),b||y.removeAttribute(o)}),Sc--,Sc||(Po=new WeakMap,Po=new WeakMap,Hs=new WeakMap,Ws={})}},bc=function(r,t,o){o===void 0&&(o="data-aria-hidden");var i=Array.from(Array.isArray(r)?r:[r]),a=Yw(r);return a?(i.push.apply(i,Array.from(a.querySelectorAll("[aria-live], script"))),Jw(i,a,o,"aria-hidden")):function(){return null}},eS=Object.defineProperty,Ht=(r,t)=>eS(r,"name",{value:t,configurable:!0}),kc="Dialog",[th,nh]=pr(kc),[tS,sn]=th(kc),Cc=Ht(r=>{const{__scopeDialog:t,children:o,open:i,defaultOpen:a,onOpenChange:l,modal:u=!0}=r,d=m.useRef(null),h=m.useRef(null),[g,v]=wi({prop:i,defaultProp:a??!1,onChange:l,caller:kc}),[y,w]=m.useState(0),[b,S]=m.useState(0);return A.jsx(tS,{scope:t,triggerRef:d,contentRef:h,contentId:Bt(),titleId:Bt(),descriptionId:Bt(),titlePresent:y>0,descriptionPresent:b>0,setTitleCount:w,setDescriptionCount:S,open:g,onOpenChange:v,onOpenToggle:m.useCallback(()=>v(_=>!_),[v]),modal:u,children:o})},"Dialog"),nS="DialogTrigger",rS=m.forwardRef(Ht(function(t,o){const{__scopeDialog:i,...a}=t,l=sn(nS,i),u=Qe(o,l.triggerRef);return A.jsx(Ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":Zs(l.open),...a,ref:u,onClick:He(t.onClick,l.onOpenToggle)})},"DialogTrigger")),rh="DialogPortal",[oS,oh]=th(rh,{forceMount:void 0}),_c=Ht(r=>{const{__scopeDialog:t,forceMount:o,children:i,container:a}=r,l=sn(rh,t);return A.jsx(oS,{scope:t,forceMount:o,children:m.Children.map(i,u=>A.jsx(bo,{present:o||l.open,children:A.jsx(hc,{asChild:!0,container:a,children:u})}))})},"DialogPortal"),Ec="DialogOverlay",Rc=m.forwardRef(Ht(function(t,o){const i=oh(Ec,t.__scopeDialog),{forceMount:a=i.forceMount,...l}=t,u=sn(Ec,t.__scopeDialog);return u.modal?A.jsx(bo,{present:a||u.open,children:A.jsx(sS,{...l,ref:o})}):null},"DialogOverlay")),iS=Sn("DialogOverlay.RemoveScroll"),sS=m.forwardRef(Ht(function(t,o){const{__scopeDialog:i,...a}=t,l=sn(Ec,i),u=Np(),d=Qe(o,u);return A.jsx(Bs,{as:iS,allowPinchZoom:!0,shards:[l.contentRef],children:A.jsx(Ze.div,{"data-state":Zs(l.open),...a,ref:d,style:{pointerEvents:"auto",...a.style}})})},"DialogOverlayImpl")),bi="DialogContent",Pc=m.forwardRef(Ht(function(t,o){const i=oh(bi,t.__scopeDialog),{forceMount:a=i.forceMount,...l}=t,u=sn(bi,t.__scopeDialog);return A.jsx(bo,{present:a||u.open,children:u.modal?A.jsx(aS,{...l,ref:o}):A.jsx(lS,{...l,ref:o})})},"DialogContent")),aS=m.forwardRef(Ht(function(t,o){const i=sn(bi,t.__scopeDialog),a=m.useRef(null),l=Qe(o,i.contentRef,a);return m.useEffect(()=>{const u=a.current;if(u)return bc(u)},[]),A.jsx(ih,{...t,ref:l,trapFocus:i.open,disableOutsidePointerEvents:i.open,onCloseAutoFocus:He(t.onCloseAutoFocus,u=>{u.preventDefault(),i.triggerRef.current?.focus()}),onPointerDownOutside:He(t.onPointerDownOutside,u=>{const d=u.detail.originalEvent,h=d.button===0&&d.ctrlKey===!0;(d.button===2||h)&&u.preventDefault()}),onFocusOutside:He(t.onFocusOutside,u=>u.preventDefault())})},"DialogContentModal")),lS=m.forwardRef(Ht(function(t,o){const i=sn(bi,t.__scopeDialog),a=m.useRef(!1),l=m.useRef(!1);return A.jsx(ih,{...t,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{t.onCloseAutoFocus?.(u),u.defaultPrevented||(a.current||i.triggerRef.current?.focus(),u.preventDefault()),a.current=!1,l.current=!1},onInteractOutside:u=>{t.onInteractOutside?.(u),u.defaultPrevented||(a.current=!0,u.detail.originalEvent.type==="pointerdown"&&(l.current=!0));const d=u.target;i.triggerRef.current?.contains(d)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&l.current&&u.preventDefault()}})},"DialogContentNonModal")),ih=m.forwardRef(Ht(function(t,o){const{__scopeDialog:i,trapFocus:a,onOpenAutoFocus:l,onCloseAutoFocus:u,...d}=t,h=sn(bi,i);return Si(),A.jsx(A.Fragment,{children:A.jsx(uc,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:l,onUnmountAutoFocus:u,children:A.jsx(ic,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionPresent?h.descriptionId:void 0,"aria-labelledby":h.titlePresent?h.titleId:void 0,"data-state":Zs(h.open),...d,ref:o,deferPointerDownOutside:!0,onDismiss:()=>h.onOpenChange(!1)})})})},"DialogContentImpl")),cS="DialogTitle",sh=m.forwardRef(Ht(function(t,o){const{__scopeDialog:i,...a}=t,l=sn(cS,i),{setTitleCount:u}=l;return ut(()=>(u(d=>d+1),()=>u(d=>d-1)),[u]),A.jsx(Ze.h2,{id:l.titleId,...a,ref:o})},"DialogTitle")),uS="DialogDescription",ah=m.forwardRef(Ht(function(t,o){const{__scopeDialog:i,...a}=t,l=sn(uS,i),{setDescriptionCount:u}=l;return ut(()=>(u(d=>d+1),()=>u(d=>d-1)),[u]),A.jsx(Ze.p,{id:l.descriptionId,...a,ref:o})},"DialogDescription")),dS="DialogClose",Ks=m.forwardRef(Ht(function(t,o){const{__scopeDialog:i,...a}=t,l=sn(dS,i);return A.jsx(Ze.button,{type:"button",...a,ref:o,onClick:He(t.onClick,()=>l.onOpenChange(!1))})},"DialogClose"));function Zs(r){return r?"open":"closed"}Ht(Zs,"getState");var fS=Object.defineProperty,Hn=(r,t)=>fS(r,"name",{value:t,configurable:!0}),pS="AlertDialog",[hS,wR]=pr(pS,[nh]),Wn=nh(),mS=Hn(r=>{const{__scopeAlertDialog:t,...o}=r,i=Wn(t);return A.jsx(Cc,{...i,...o,modal:!0})},"AlertDialog");m.forwardRef(Hn(function(t,o){const{__scopeAlertDialog:i,...a}=t,l=Wn(i);return A.jsx(rS,{...l,...a,ref:o})},"AlertDialogTrigger"));var gS=Hn(r=>{const{__scopeAlertDialog:t,...o}=r,i=Wn(t);return A.jsx(_c,{...i,...o})},"AlertDialogPortal"),vS=m.forwardRef(Hn(function(t,o){const{__scopeAlertDialog:i,...a}=t,l=Wn(i);return A.jsx(Rc,{...l,...a,ref:o})},"AlertDialogOverlay")),yS="AlertDialogContent",[xS,wS]=hS(yS),SS=m.forwardRef(Hn(function(t,o){const{__scopeAlertDialog:i,children:a,...l}=t,u=Wn(i),d=m.useRef(null),h=Qe(o,d),g=m.useRef(null);return A.jsx(xS,{scope:i,cancelRef:g,children:A.jsx(Pc,{role:"alertdialog",...u,...l,ref:h,onOpenAutoFocus:He(l.onOpenAutoFocus,v=>{v.preventDefault(),g.current?.focus({preventScroll:!0})}),onPointerDownOutside:v=>v.preventDefault(),onInteractOutside:v=>v.preventDefault(),children:a})})},"AlertDialogContent")),bS=m.forwardRef(Hn(function(t,o){const{__scopeAlertDialog:i,...a}=t,l=Wn(i);return A.jsx(sh,{...l,...a,ref:o})},"AlertDialogTitle")),kS=m.forwardRef(Hn(function(t,o){const{__scopeAlertDialog:i,...a}=t,l=Wn(i);return A.jsx(ah,{...l,...a,ref:o})},"AlertDialogDescription"));m.forwardRef(Hn(function(t,o){const{__scopeAlertDialog:i,...a}=t,l=Wn(i);return A.jsx(Ks,{...l,...a,ref:o})},"AlertDialogAction"));var CS="AlertDialogCancel",_S=m.forwardRef(Hn(function(t,o){const{__scopeAlertDialog:i,...a}=t,{cancelRef:l}=wS(CS,i),u=Wn(i),d=Qe(o,l);return A.jsx(Ks,{...u,...a,ref:d})},"AlertDialogCancel")),ES=mS,RS=gS,PS=vS,IS=SS,OS=_S,NS=bS,TS=kS,AS=Object.defineProperty,DS=(r,t)=>AS(r,"name",{value:t,configurable:!0});function lh(r){const[t,o]=m.useState(void 0);return ut(()=>{if(r){o({width:r.offsetWidth,height:r.offsetHeight});const i=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const l=a[0];let u,d;if("borderBoxSize"in l){const h=l.borderBoxSize,g=Array.isArray(h)?h[0]:h;u=g.inlineSize,d=g.blockSize}else u=r.offsetWidth,d=r.offsetHeight;o({width:u,height:d})});return i.observe(r,{box:"border-box"}),()=>i.unobserve(r)}else o(void 0)},[r]),t}DS(lh,"useSize");const LS=["top","right","bottom","left"],hr=Math.min,Kn=Math.max,qs=Math.round,Gs=Math.floor,Zn=r=>({x:r,y:r}),$S={left:"right",right:"left",bottom:"top",top:"bottom"};function ch(r,t,o){return Kn(r,hr(t,o))}function qn(r,t){return typeof r=="function"?r(t):r}function mr(r){return r.split("-")[0]}function Io(r){return r.split("-")[1]}function Ic(r){return r==="x"?"y":"x"}function Oc(r){return r==="y"?"height":"width"}function Cn(r){const t=r[0];return t==="t"||t==="b"?"y":"x"}function Nc(r){return Ic(Cn(r))}function jS(r,t,o){o===void 0&&(o=!1);const i=Io(r),a=Nc(r),l=Oc(a);let u=a==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=Qs(u)),[u,Qs(u)]}function MS(r){const t=Qs(r);return[Tc(r),t,Tc(t)]}function Tc(r){return r.includes("start")?r.replace("start","end"):r.replace("end","start")}const uh=["left","right"],dh=["right","left"],zS=["top","bottom"],FS=["bottom","top"];function VS(r,t,o){switch(r){case"top":case"bottom":return o?t?dh:uh:t?uh:dh;case"left":case"right":return t?zS:FS;default:return[]}}function US(r,t,o,i){const a=Io(r);let l=VS(mr(r),o==="start",i);return a&&(l=l.map(u=>u+"-"+a),t&&(l=l.concat(l.map(Tc)))),l}function Qs(r){const t=mr(r);return $S[t]+r.slice(t.length)}function BS(r){var t,o,i,a;return{top:(t=r.top)!=null?t:0,right:(o=r.right)!=null?o:0,bottom:(i=r.bottom)!=null?i:0,left:(a=r.left)!=null?a:0}}function fh(r){return typeof r!="number"?BS(r):{top:r,right:r,bottom:r,left:r}}function Ys(r){const{x:t,y:o,width:i,height:a}=r;return{width:i,height:a,top:o,left:t,right:t+i,bottom:o+a,x:t,y:o}}function ph(r,t,o){let{reference:i,floating:a}=r;const l=Cn(t),u=Nc(t),d=Oc(u),h=mr(t),g=l==="y",v=i.x+i.width/2-a.width/2,y=i.y+i.height/2-a.height/2,w=i[d]/2-a[d]/2;let b;switch(h){case"top":b={x:v,y:i.y-a.height};break;case"bottom":b={x:v,y:i.y+i.height};break;case"right":b={x:i.x+i.width,y};break;case"left":b={x:i.x-a.width,y};break;default:b={x:i.x,y:i.y}}const S=Io(t);return S&&(b[u]+=w*(S==="end"?1:-1)*(o&&g?-1:1)),b}async function HS(r,t){var o;t===void 0&&(t={});const{x:i,y:a,platform:l,rects:u,elements:d,strategy:h}=r,{boundary:g="clippingAncestors",rootBoundary:v="viewport",elementContext:y="floating",altBoundary:w=!1,padding:b=0}=qn(t,r),S=fh(b),k=d[w?y==="floating"?"reference":"floating":y],T=Ys(await l.getClippingRect({element:(o=await(l.isElement==null?void 0:l.isElement(k)))==null||o?k:k.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(d.floating)),boundary:g,rootBoundary:v,strategy:h})),D=y==="floating"?{x:i,y:a,width:u.floating.width,height:u.floating.height}:u.reference,N=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d.floating)),I=await(l.isElement==null?void 0:l.isElement(N))&&await(l.getScale==null?void 0:l.getScale(N))||{x:1,y:1},V=Ys(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:D,offsetParent:N,strategy:h}):D);return{top:(T.top-V.top+S.top)/I.y,bottom:(V.bottom-T.bottom+S.bottom)/I.y,left:(T.left-V.left+S.left)/I.x,right:(V.right-T.right+S.right)/I.x}}const WS=50,KS=async(r,t,o)=>{const{placement:i="bottom",strategy:a="absolute",middleware:l=[],platform:u}=o,d=u.detectOverflow?u:{...u,detectOverflow:HS},h=await(u.isRTL==null?void 0:u.isRTL(t));let g=await u.getElementRects({reference:r,floating:t,strategy:a}),{x:v,y}=ph(g,i,h),w=i,b=0;const S={};for(let _=0;_<l.length;_++){const k=l[_];if(!k)continue;const{name:T,fn:D}=k,{x:N,y:I,data:V,reset:L}=await D({x:v,y,initialPlacement:i,placement:w,strategy:a,middlewareData:S,rects:g,platform:d,elements:{reference:r,floating:t}});v=N??v,y=I??y,S[T]={...S[T],...V},L&&b<WS&&(b++,typeof L=="object"&&(L.placement&&(w=L.placement),L.rects&&(g=L.rects===!0?await u.getElementRects({reference:r,floating:t,strategy:a}):L.rects),{x:v,y}=ph(g,w,h)),_=-1)}return{x:v,y,placement:w,strategy:a,middlewareData:S}},ZS=r=>({name:"arrow",options:r,async fn(t){const{x:o,y:i,placement:a,rects:l,platform:u,elements:d,middlewareData:h}=t,{element:g,padding:v=0}=qn(r,t)||{};if(g==null)return{};const y=fh(v),w={x:o,y:i},b=Nc(a),S=Oc(b),_=await u.getDimensions(g),k=b==="y",T=k?"top":"left",D=k?"bottom":"right",N=k?"clientHeight":"clientWidth",I=l.reference[S]+l.reference[b]-w[b]-l.floating[S],V=w[b]-l.reference[b],L=await(u.getOffsetParent==null?void 0:u.getOffsetParent(g));let B=L?L[N]:0;(!B||!await(u.isElement==null?void 0:u.isElement(L)))&&(B=d.floating[N]||l.floating[S]);const j=I/2-V/2,Q=B/2-_[S]/2-1,ae=hr(y[T],Q),Ce=hr(y[D],Q),ce=B-_[S]-Ce,le=B/2-_[S]/2+j,fe=ch(ae,le,ce),ke=!h.arrow&&Io(a)!=null&&le!==fe&&l.reference[S]/2-(le<ae?ae:Ce)-_[S]/2<0,re=ke?le<ae?le-ae:le-ce:0;return{[b]:w[b]+re,data:{[b]:fe,centerOffset:le-fe-re,...ke&&{alignmentOffset:re}},reset:ke}}}),qS=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(t){var o,i;const{placement:a,middlewareData:l,rects:u,initialPlacement:d,platform:h,elements:g}=t,{mainAxis:v=!0,crossAxis:y=!0,fallbackPlacements:w,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:_=!0,...k}=qn(r,t);if((o=l.arrow)!=null&&o.alignmentOffset)return{};const T=mr(a),D=Cn(d),N=mr(d)===d,I=await(h.isRTL==null?void 0:h.isRTL(g.floating)),V=w||(N||!_?[Qs(d)]:MS(d)),L=S!=="none";!w&&L&&V.push(...US(d,_,S,I));const B=[d,...V],j=await h.detectOverflow(t,k),Q=[];let ae=((i=l.flip)==null?void 0:i.overflows)||[];if(v&&Q.push(j[T]),y){const fe=jS(a,u,I);Q.push(j[fe[0]],j[fe[1]])}if(ae=[...ae,{placement:a,overflows:Q}],!Q.every(fe=>fe<=0)){var Ce,ce;const fe=(((Ce=l.flip)==null?void 0:Ce.index)||0)+1,ke=B[fe];if(ke&&(!(y==="alignment"?D!==Cn(ke):!1)||ae.every(U=>Cn(U.placement)===D?U.overflows[0]>0:!0)))return{data:{index:fe,overflows:ae},reset:{placement:ke}};let re=(ce=ae.filter(se=>se.overflows[0]<=0).sort((se,U)=>se.overflows[1]-U.overflows[1])[0])==null?void 0:ce.placement;if(!re)switch(b){case"bestFit":{var le;const se=(le=ae.filter(U=>{if(L){const G=Cn(U.placement);return G===D||G==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(G=>G>0).reduce((G,z)=>G+z,0)]).sort((U,G)=>U[1]-G[1])[0])==null?void 0:le[0];se&&(re=se);break}case"initialPlacement":re=d;break}if(a!==re)return{reset:{placement:re}}}return{}}}};function hh(r,t){return{top:r.top-t.height,right:r.right-t.width,bottom:r.bottom-t.height,left:r.left-t.width}}function mh(r){return LS.some(t=>r[t]>=0)}const GS=function(r){return r===void 0&&(r={}),{name:"hide",options:r,async fn(t){const{rects:o,platform:i}=t,{strategy:a="referenceHidden",...l}=qn(r,t);switch(a){case"referenceHidden":{const u=await i.detectOverflow(t,{...l,elementContext:"reference"}),d=hh(u,o.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:mh(d)}}}case"escaped":{const u=await i.detectOverflow(t,{...l,altBoundary:!0}),d=hh(u,o.floating);return{data:{escapedOffsets:d,escaped:mh(d)}}}default:return{}}}}},gh=new Set(["left","top"]);async function QS(r,t){const{placement:o,platform:i,elements:a}=r,l=await(i.isRTL==null?void 0:i.isRTL(a.floating)),u=mr(o),d=Io(o),h=Cn(o)==="y",g=gh.has(u)?-1:1,v=l&&h?-1:1,y=qn(t,r);let{mainAxis:w,crossAxis:b,alignmentAxis:S}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return d&&typeof S=="number"&&(b=d==="end"?S*-1:S),h?{x:b*v,y:w*g}:{x:w*g,y:b*v}}const YS=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(t){var o,i;const{x:a,y:l,placement:u,middlewareData:d}=t,h=await QS(t,r);return u===((o=d.offset)==null?void 0:o.placement)&&(i=d.arrow)!=null&&i.alignmentOffset?{}:{x:a+h.x,y:l+h.y,data:{...h,placement:u}}}}},XS=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(t){const{x:o,y:i,placement:a,platform:l}=t,{mainAxis:u=!0,crossAxis:d=!1,limiter:h={fn:D=>{let{x:N,y:I}=D;return{x:N,y:I}}},...g}=qn(r,t),v={x:o,y:i},y=await l.detectOverflow(t,g),w=Cn(a),b=Ic(w);let S=v[b],_=v[w];const k=(D,N)=>ch(N+y[D==="y"?"top":"left"],N,N-y[D==="y"?"bottom":"right"]);u&&(S=k(b,S)),d&&(_=k(w,_));const T=h.fn({...t,[b]:S,[w]:_});return{...T,data:{x:T.x-o,y:T.y-i,enabled:{[b]:u,[w]:d}}}}}},JS=function(r){return r===void 0&&(r={}),{options:r,fn(t){var o,i;const{x:a,y:l,placement:u,rects:d,middlewareData:h}=t,{offset:g=0,mainAxis:v=!0,crossAxis:y=!0}=qn(r,t),w={x:a,y:l},b=Cn(u),S=Ic(b);let _=w[S],k=w[b];const T=qn(g,t),D=typeof T=="number"?{mainAxis:T,crossAxis:0}:{mainAxis:(o=T.mainAxis)!=null?o:0,crossAxis:(i=T.crossAxis)!=null?i:0};if(v){const V=S==="y"?"height":"width",L=d.reference[S]-d.floating[V]+D.mainAxis,B=d.reference[S]+d.reference[V]-D.mainAxis;_<L?_=L:_>B&&(_=B)}if(y){var N,I;const V=S==="y"?"width":"height",L=gh.has(mr(u)),B=d.reference[b]-d.floating[V]+(L&&((N=h.offset)==null?void 0:N[b])||0)+(L?0:D.crossAxis),j=d.reference[b]+d.reference[V]+(L?0:((I=h.offset)==null?void 0:I[b])||0)-(L?D.crossAxis:0);k<B?k=B:k>j&&(k=j)}return{[S]:_,[b]:k}}}},e1=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(t){const{placement:o,rects:i,platform:a,elements:l}=t,{apply:u=()=>{},...d}=qn(r,t),h=await a.detectOverflow(t,d),g=mr(o),v=Io(o),y=Cn(o)==="y",{width:w,height:b}=i.floating;let S,_;g==="top"||g==="bottom"?(S=g,_=v===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(_=g,S=v==="end"?"top":"bottom");const k=b-h.top-h.bottom,T=w-h.left-h.right,D=hr(b-h[S],k),N=hr(w-h[_],T),I=t.middlewareData.shift,V=!I;let L=D,B=N;I!=null&&I.enabled.x&&(B=T),I!=null&&I.enabled.y&&(L=k),V&&!v&&(y?B=w-2*Kn(h.left,h.right):L=b-2*Kn(h.top,h.bottom)),await u({...t,availableWidth:B,availableHeight:L});const j=await a.getDimensions(l.floating);return w!==j.width||b!==j.height?{reset:{rects:!0}}:{}}}};function Xs(){return typeof window<"u"}function Oo(r){return vh(r)?(r.nodeName||"").toLowerCase():"#document"}function $t(r){var t;return(r==null||(t=r.ownerDocument)==null?void 0:t.defaultView)||window}function Gn(r){var t;return(t=(vh(r)?r.ownerDocument:r.document)||window.document)==null?void 0:t.documentElement}function vh(r){return Xs()?r instanceof Node||r instanceof $t(r).Node:!1}function _n(r){return Xs()?r instanceof Element||r instanceof $t(r).Element:!1}function gr(r){return Xs()?r instanceof HTMLElement||r instanceof $t(r).HTMLElement:!1}function yh(r){return!Xs()||typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof $t(r).ShadowRoot}function Js(r){const{overflow:t,overflowX:o,overflowY:i,display:a}=En(r);return/auto|scroll|overlay|hidden|clip/.test(t+i+o)&&a!=="inline"&&a!=="contents"}function t1(r){return/^(table|td|th)$/.test(Oo(r))}function ea(r){try{if(r.matches(":popover-open"))return!0}catch{}try{return r.matches(":modal")}catch{return!1}}const n1=/transform|translate|scale|rotate|perspective|filter/,r1=/paint|layout|strict|content/,Yr=r=>!!r&&r!=="none";let Ac;function Dc(r){const t=_n(r)?En(r):r;return Yr(t.transform)||Yr(t.translate)||Yr(t.scale)||Yr(t.rotate)||Yr(t.perspective)||!Lc()&&(Yr(t.backdropFilter)||Yr(t.filter))||n1.test(t.willChange||"")||r1.test(t.contain||"")}function o1(r){let t=Xr(r);for(;gr(t)&&!ki(t);){if(Dc(t))return t;if(ea(t))return null;t=Xr(t)}return null}function Lc(){return Ac==null&&(Ac=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ac}function ki(r){return/^(html|body|#document)$/.test(Oo(r))}function En(r){return $t(r).getComputedStyle(r)}function ta(r){return _n(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function Xr(r){if(Oo(r)==="html")return r;const t=r.assignedSlot||r.parentNode||yh(r)&&r.host||Gn(r);return yh(t)?t.host:t}function xh(r){const t=Xr(r);return ki(t)?(r.ownerDocument||r).body:gr(t)&&Js(t)?t:xh(t)}function Ci(r,t,o){var i;t===void 0&&(t=[]),o===void 0&&(o=!0);const a=xh(r),l=a===((i=r.ownerDocument)==null?void 0:i.body),u=$t(a);if(l){const d=$c(u);return t.concat(u,u.visualViewport||[],Js(a)?a:[],d&&o?Ci(d):[])}else return t.concat(a,Ci(a,[],o))}function $c(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}function wh(r){const t=En(r);let o=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const a=gr(r),l=a?r.offsetWidth:o,u=a?r.offsetHeight:i,d=qs(o)!==l||qs(i)!==u;return d&&(o=l,i=u),{width:o,height:i,$:d}}function jc(r){return _n(r)?r:r.contextElement}function No(r){const t=jc(r);if(!gr(t))return Zn(1);const o=t.getBoundingClientRect(),{width:i,height:a,$:l}=wh(t);let u=(l?qs(o.width):o.width)/i,d=(l?qs(o.height):o.height)/a;return(!u||!Number.isFinite(u))&&(u=1),(!d||!Number.isFinite(d))&&(d=1),{x:u,y:d}}const i1=Zn(0);function Sh(r){const t=$t(r);return!Lc()||!t.visualViewport?i1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function s1(r,t,o){return t===void 0&&(t=!1),!!o&&t&&o===$t(r)}function Jr(r,t,o,i){t===void 0&&(t=!1),o===void 0&&(o=!1);const a=r.getBoundingClientRect(),l=jc(r);let u=Zn(1);t&&(i?_n(i)&&(u=No(i)):u=No(r));const d=s1(l,o,i)?Sh(l):Zn(0);let h=(a.left+d.x)/u.x,g=(a.top+d.y)/u.y,v=a.width/u.x,y=a.height/u.y;if(l&&i){const w=$t(l),b=_n(i)?$t(i):i;let S=w,_=$c(S);for(;_&&b!==S;){const k=No(_),T=_.getBoundingClientRect(),D=En(_),N=T.left+(_.clientLeft+parseFloat(D.paddingLeft))*k.x,I=T.top+(_.clientTop+parseFloat(D.paddingTop))*k.y;h*=k.x,g*=k.y,v*=k.x,y*=k.y,h+=N,g+=I,S=$t(_),_=$c(S)}}return Ys({width:v,height:y,x:h,y:g})}function na(r,t){const o=ta(r).scrollLeft;return t?t.left+o:Jr(Gn(r)).left+o}function bh(r,t){const o=r.getBoundingClientRect(),i=o.left+t.scrollLeft-na(r,o),a=o.top+t.scrollTop;return{x:i,y:a}}function a1(r){let{elements:t,rect:o,offsetParent:i,strategy:a}=r;const l=a==="fixed",u=Gn(i),d=t?ea(t.floating):!1;if(i===u||d&&l)return o;let h={scrollLeft:0,scrollTop:0},g=Zn(1);const v=Zn(0),y=gr(i);if((y||!l)&&((Oo(i)!=="body"||Js(u))&&(h=ta(i)),y)){const b=Jr(i);g=No(i),v.x=b.x+i.clientLeft,v.y=b.y+i.clientTop}const w=u&&!y&&!l?bh(u,h):Zn(0);return{width:o.width*g.x,height:o.height*g.y,x:o.x*g.x-h.scrollLeft*g.x+v.x+w.x,y:o.y*g.y-h.scrollTop*g.y+v.y+w.y}}function l1(r){return r.getClientRects?Array.from(r.getClientRects()):[]}function c1(r){const t=ta(r),o=r.ownerDocument.body,i=Kn(r.scrollWidth,r.clientWidth,o.scrollWidth,o.clientWidth),a=Kn(r.scrollHeight,r.clientHeight,o.scrollHeight,o.clientHeight);let l=-t.scrollLeft+na(r);const u=-t.scrollTop;return En(o).direction==="rtl"&&(l+=Kn(r.clientWidth,o.clientWidth)-i),{width:i,height:a,x:l,y:u}}const u1=25;function d1(r,t,o){o===void 0&&(o="viewport");const i=o==="layoutViewport",a=$t(r),l=Gn(r),u=a.visualViewport;let d=l.clientWidth,h=l.clientHeight,g=0,v=0;if(u){const w=!Lc()||t==="fixed";i?w||(g=-u.offsetLeft,v=-u.offsetTop):(d=u.width,h=u.height,w&&(g=u.offsetLeft,v=u.offsetTop))}if(na(l)<=0){const w=l.ownerDocument,b=w.body,S=getComputedStyle(b),_=w.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,k=Math.abs(l.clientWidth-b.clientWidth-_),T=getComputedStyle(l).scrollbarGutter==="stable both-edges"?k/2:k;T<=u1&&(d-=T)}return{width:d,height:h,x:g,y:v}}function f1(r,t){const o=Jr(r,!0,t==="fixed"),i=o.top+r.clientTop,a=o.left+r.clientLeft,l=No(r),u=r.clientWidth*l.x,d=r.clientHeight*l.y,h=a*l.x,g=i*l.y;return{width:u,height:d,x:h,y:g}}function kh(r,t,o){let i;if(t==="viewport"||t==="layoutViewport")i=d1(r,o,t);else if(t==="document")i=c1(Gn(r));else if(_n(t))i=f1(t,o);else{const a=Sh(r);i={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Ys(i)}function p1(r,t){const o=t.get(r);if(o)return o;let i=Ci(r,[],!1).filter(d=>_n(d)&&Oo(d)!=="body"),a=null;const l=En(r).position==="fixed";let u=l?Xr(r):r;for(;_n(u)&&!ki(u);){const d=En(u),h=Dc(u),g=a?a.position:l?"fixed":"";!h&&(g==="fixed"||g==="absolute"&&d.position==="static")?i=i.filter(y=>y!==u):a=d,u=Xr(u)}return t.set(r,i),i}function h1(r){let{element:t,boundary:o,rootBoundary:i,strategy:a}=r;const u=[...o==="clippingAncestors"?ea(t)?[]:p1(t,this._c):[].concat(o),i],d=kh(t,u[0],a);let h=d.top,g=d.right,v=d.bottom,y=d.left;for(let w=1;w<u.length;w++){const b=kh(t,u[w],a);h=Kn(b.top,h),g=hr(b.right,g),v=hr(b.bottom,v),y=Kn(b.left,y)}return{width:g-y,height:v-h,x:y,y:h}}function m1(r){const{width:t,height:o}=wh(r);return{width:t,height:o}}function g1(r,t,o){const i=gr(t),a=Gn(t),l=o==="fixed",u=Jr(r,!0,l,t);let d={scrollLeft:0,scrollTop:0};const h=Zn(0);if((i||!l)&&((Oo(t)!=="body"||Js(a))&&(d=ta(t)),i)){const w=Jr(t,!0,l,t);h.x=w.x+t.clientLeft,h.y=w.y+t.clientTop}!i&&a&&(h.x=na(a));const g=a&&!i&&!l?bh(a,d):Zn(0),v=u.left+d.scrollLeft-h.x-g.x,y=u.top+d.scrollTop-h.y-g.y;return{x:v,y,width:u.width,height:u.height}}function Mc(r){return En(r).position==="static"}function Ch(r,t){if(!gr(r)||En(r).position==="fixed")return null;if(t)return t(r);let o=r.offsetParent;return Gn(r)===o&&(o=o.ownerDocument.body),o}function _h(r,t){const o=$t(r);if(ea(r))return o;if(!gr(r)){let a=Xr(r);for(;a&&!ki(a);){if(_n(a)&&!Mc(a))return a;a=Xr(a)}return o}let i=Ch(r,t);for(;i&&t1(i)&&Mc(i);)i=Ch(i,t);return i&&ki(i)&&Mc(i)&&!Dc(i)?o:i||o1(r)||o}const v1=async function(r){const t=this.getOffsetParent||_h,o=this.getDimensions,i=await o(r.floating);return{reference:g1(r.reference,await t(r.floating),r.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function y1(r){return En(r).direction==="rtl"}const x1={convertOffsetParentRelativeRectToViewportRelativeRect:a1,getDocumentElement:Gn,getClippingRect:h1,getOffsetParent:_h,getElementRects:v1,getClientRects:l1,getDimensions:m1,getScale:No,isElement:_n,isRTL:y1};function Eh(r,t){return r.x===t.x&&r.y===t.y&&r.width===t.width&&r.height===t.height}function w1(r,t,o){let i=null,a;const l=Gn(r);function u(){var v;clearTimeout(a),(v=i)==null||v.disconnect(),i=null}function d(v,y){v===void 0&&(v=!1),y===void 0&&(y=1),u();const w=r.getBoundingClientRect(),{left:b,top:S,width:_,height:k}=w;if(v||t(),!_||!k)return;const T=Gs(S),D=Gs(l.clientWidth-(b+_)),N=Gs(l.clientHeight-(S+k)),I=Gs(b),L={rootMargin:-T+"px "+-D+"px "+-N+"px "+-I+"px",threshold:Kn(0,hr(1,y))||1};let B=!0;function j(Q){const ae=Q[0].intersectionRatio;if(!Eh(w,r.getBoundingClientRect()))return d();if(ae!==y){if(!B)return d();ae?d(!1,ae):a=setTimeout(()=>{d(!1,1e-7)},1e3)}B=!1}try{i=new IntersectionObserver(j,{...L,root:l.ownerDocument})}catch{i=new IntersectionObserver(j,L)}i.observe(r)}const h=$t(r),g=()=>d(o);return h.addEventListener("resize",g),d(!0),()=>{h.removeEventListener("resize",g),u()}}function S1(r,t,o,i){i===void 0&&(i={});const{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=i,g=jc(r),v=a||l?[...g?Ci(g):[],...t?Ci(t):[]]:[];v.forEach(T=>{a&&T.addEventListener("scroll",o),l&&T.addEventListener("resize",o)});const y=g&&d?w1(g,o,l):null;let w=-1,b=null;u&&(b=new ResizeObserver(T=>{let[D]=T;D&&D.target===g&&b&&t&&(b.unobserve(t),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var N;(N=b)==null||N.observe(t)})),o()}),g&&!h&&b.observe(g),t&&b.observe(t));let S,_=h?Jr(r):null;h&&k();function k(){const T=Jr(r);_&&!Eh(_,T)&&o(),_=T,S=requestAnimationFrame(k)}return o(),()=>{var T;v.forEach(D=>{a&&D.removeEventListener("scroll",o),l&&D.removeEventListener("resize",o)}),y?.(),(T=b)==null||T.disconnect(),b=null,h&&cancelAnimationFrame(S)}}const b1=YS,k1=XS,C1=qS,_1=e1,E1=GS,Rh=ZS,R1=JS,P1=(r,t,o)=>{const i=new Map,a=o??{},l={...x1,...a.platform,_c:i};return KS(r,t,{...a,platform:l})};var I1=typeof document<"u",O1=function(){},ra=I1?m.useLayoutEffect:O1;function oa(r,t){if(r===t)return!0;if(typeof r!=typeof t)return!1;if(typeof r=="function"&&r.toString()===t.toString())return!0;let o,i,a;if(r&&t&&typeof r=="object"){if(Array.isArray(r)){if(o=r.length,o!==t.length)return!1;for(i=o;i--!==0;)if(!oa(r[i],t[i]))return!1;return!0}if(a=Object.keys(r),o=a.length,o!==Object.keys(t).length)return!1;for(i=o;i--!==0;)if(!{}.hasOwnProperty.call(t,a[i]))return!1;for(i=o;i--!==0;){const l=a[i];if(!(l==="_owner"&&r.$$typeof)&&!oa(r[l],t[l]))return!1}return!0}return r!==r&&t!==t}function Ph(r){return typeof window>"u"?1:(r.ownerDocument.defaultView||window).devicePixelRatio||1}function Ih(r,t){const o=Ph(r);return Math.round(t*o)/o}function zc(r){const t=m.useRef(r);return ra(()=>{t.current=r}),t}function N1(r){r===void 0&&(r={});const{placement:t="bottom",strategy:o="absolute",middleware:i=[],platform:a,elements:{reference:l,floating:u}={},transform:d=!0,whileElementsMounted:h,open:g}=r,[v,y]=m.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[w,b]=m.useState(i);oa(w,i)||b(i);const[S,_]=m.useState(null),[k,T]=m.useState(null),D=m.useCallback(U=>{U!==L.current&&(L.current=U,_(U))},[]),N=m.useCallback(U=>{U!==B.current&&(B.current=U,T(U))},[]),I=l||S,V=u||k,L=m.useRef(null),B=m.useRef(null),j=m.useRef(v),Q=h!=null,ae=zc(h),Ce=zc(a),ce=zc(g),le=m.useCallback(()=>{if(!L.current||!B.current)return;const U={placement:t,strategy:o,middleware:w};Ce.current&&(U.platform=Ce.current),P1(L.current,B.current,U).then(G=>{const z={...G,isPositioned:ce.current!==!1};fe.current&&!oa(j.current,z)&&(j.current=z,yi.flushSync(()=>{y(z)}))})},[w,t,o,Ce,ce]);ra(()=>{g===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,y(U=>({...U,isPositioned:!1})))},[g]);const fe=m.useRef(!1);ra(()=>(fe.current=!0,()=>{fe.current=!1}),[]),ra(()=>{if(I&&(L.current=I),V&&(B.current=V),I&&V){if(ae.current)return ae.current(I,V,le);le()}},[I,V,le,ae,Q]);const ke=m.useMemo(()=>({reference:L,floating:B,setReference:D,setFloating:N}),[D,N]),re=m.useMemo(()=>({reference:I,floating:V}),[I,V]),se=m.useMemo(()=>{const U={position:o,left:0,top:0};if(!re.floating)return U;const G=Ih(re.floating,v.x),z=Ih(re.floating,v.y);return d?{...U,transform:"translate("+G+"px, "+z+"px)",...Ph(re.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:G,top:z}},[o,d,re.floating,v.x,v.y]);return m.useMemo(()=>({...v,update:le,refs:ke,elements:re,floatingStyles:se}),[v,le,ke,re,se])}const T1=r=>{function t(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:r,fn(o){const{element:i,padding:a}=typeof r=="function"?r(o):r;return i&&t(i)?i.current!=null?Rh({element:i.current,padding:a}).fn(o):{}:i?Rh({element:i,padding:a}).fn(o):{}}}},A1=(r,t)=>{const o=b1(r);return{name:o.name,fn:o.fn,options:[r,t]}},D1=(r,t)=>{const o=k1(r);return{name:o.name,fn:o.fn,options:[r,t]}},L1=(r,t)=>({fn:R1(r).fn,options:[r,t]}),$1=(r,t)=>{const o=C1(r);return{name:o.name,fn:o.fn,options:[r,t]}},j1=(r,t)=>{const o=_1(r);return{name:o.name,fn:o.fn,options:[r,t]}},M1=(r,t)=>{const o=E1(r);return{name:o.name,fn:o.fn,options:[r,t]}},z1=(r,t)=>{const o=T1(r);return{name:o.name,fn:o.fn,options:[r,t]}};var F1=Object.defineProperty,vr=(r,t)=>F1(r,"name",{value:t,configurable:!0}),Oh="Popper",[Nh,ia]=pr(Oh),[V1,Th]=Nh(Oh),U1=vr(r=>{const{__scopePopper:t,children:o}=r,[i,a]=m.useState(null),[l,u]=m.useState(void 0);return A.jsx(V1,{scope:t,anchor:i,onAnchorChange:a,placementState:l,setPlacementState:u,children:o})},"Popper"),B1="PopperAnchor",H1=m.forwardRef(vr(function(t,o){const{__scopePopper:i,virtualRef:a,...l}=t,u=Th(B1,i),d=m.useRef(null),h=u.onAnchorChange,g=m.useCallback(_=>{d.current=_,_&&h(_)},[h]),v=Qe(o,g),y=m.useRef(null);m.useEffect(()=>{if(!a)return;const _=y.current;y.current=a.current,_!==y.current&&h(y.current)});const w=u.placementState&&sa(u.placementState),b=w?.[0],S=w?.[1];return a?null:A.jsx(Ze.div,{"data-radix-popper-side":b,"data-radix-popper-align":S,...l,ref:v})},"PopperAnchor")),Ah="PopperContent",[W1,SR]=Nh(Ah),K1=m.forwardRef(vr(function(t,o){const{__scopePopper:i,side:a="bottom",sideOffset:l=0,align:u="center",alignOffset:d=0,arrowPadding:h=0,avoidCollisions:g=!0,collisionBoundary:v=[],collisionPadding:y=0,sticky:w="partial",hideWhenDetached:b=!1,updatePositionStrategy:S="optimized",onPlaced:_,...k}=t,T=Th(Ah,i),[D,N]=m.useState(null),I=Qe(o,N),[V,L]=m.useState(null),B=lh(V),j=B?.width??0,Q=B?.height??0,ae=a+(u!=="center"?"-"+u:""),Ce=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},ce=Array.isArray(v)?v:[v],le=ce.length>0,fe={padding:Ce,boundary:ce.filter(Dh),altBoundary:le},{refs:ke,floatingStyles:re,placement:se,isPositioned:U,middlewareData:G}=N1({strategy:"fixed",placement:ae,whileElementsMounted:vr((...ie)=>S1(...ie,{animationFrame:S==="always"}),"whileElementsMounted"),elements:{reference:T.anchor},middleware:[A1({mainAxis:l+Q,alignmentAxis:d}),g&&D1({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?L1():void 0,...fe}),g&&$1({...fe}),j1({...fe,apply:vr(({elements:ie,rects:Ae,availableWidth:$e,availableHeight:Me})=>{const{width:Ue,height:oe}=Ae.reference,Ie=ie.floating.style;Ie.setProperty("--radix-popper-available-width",`${$e}px`),Ie.setProperty("--radix-popper-available-height",`${Me}px`),Ie.setProperty("--radix-popper-anchor-width",`${Ue}px`),Ie.setProperty("--radix-popper-anchor-height",`${oe}px`)},"apply")}),V&&z1({element:V,padding:h}),Z1({arrowWidth:j,arrowHeight:Q}),b&&M1({strategy:"referenceHidden",...fe,boundary:le?fe.boundary:void 0})]}),z=T.setPlacementState;ut(()=>(z(se),()=>{z(void 0)}),[se,z]);const[P,E]=sa(se),W=bn(_);ut(()=>{U&&W?.()},[U,W]);const X=G.arrow?.x,H=G.arrow?.y,J=G.arrow?.centerOffset!==0,[ue,ee]=m.useState();return ut(()=>{D&&ee(window.getComputedStyle(D).zIndex)},[D]),A.jsx("div",{ref:ke.setFloating,"data-radix-popper-content-wrapper":"",style:{...re,transform:U?re.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ue,"--radix-popper-transform-origin":[G.transformOrigin?.x,G.transformOrigin?.y].join(" "),...G.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:A.jsx(W1,{scope:i,placedSide:P,placedAlign:E,onArrowChange:L,arrowX:X,arrowY:H,shouldHideArrow:J,children:A.jsx(Ze.div,{"data-side":P,"data-align":E,...k,ref:I,style:{...k.style,animation:U?k.style?.animation:"none"}})})})},"PopperContent"));function Dh(r){return r!==null}vr(Dh,"isNotNull");var Z1=vr(r=>({name:"transformOrigin",options:r,fn(t){const{placement:o,rects:i,middlewareData:a}=t,u=a.arrow?.centerOffset!==0,d=u?0:r.arrowWidth,h=u?0:r.arrowHeight,[g,v]=sa(o),y={start:"0%",center:"50%",end:"100%"}[v],w=(a.arrow?.x??0)+d/2,b=(a.arrow?.y??0)+h/2;let S="",_="";return g==="bottom"?(S=u?y:`${w}px`,_=`${-h}px`):g==="top"?(S=u?y:`${w}px`,_=`${i.floating.height+h}px`):g==="right"?(S=`${-h}px`,_=u?y:`${b}px`):g==="left"&&(S=`${i.floating.width+h}px`,_=u?y:`${b}px`),{data:{x:S,y:_}}}}),"transformOrigin");function sa(r){const[t,o="center"]=r.split("-");return[t,o]}vr(sa,"getSideAndAlignFromPlacement");var Lh=U1,$h=H1,jh=K1,q1=Object.defineProperty,G1=(r,t)=>q1(r,"name",{value:t,configurable:!0});function Mh(r){const t=m.useRef({value:r,previous:r});return m.useMemo(()=>(t.current.value!==r&&(t.current.previous=t.current.value,t.current.value=r),t.current.previous),[r])}G1(Mh,"usePrevious");var Q1=Object.defineProperty,Y1=(r,t)=>Q1(r,"name",{value:t,configurable:!0});function Fc(r,[t,o]){return Math.min(o,Math.max(t,r))}Y1(Fc,"clamp");var X1=Object.defineProperty,yr=(r,t)=>X1(r,"name",{value:t,configurable:!0}),Vc="Popover",[zh,bR]=pr(Vc,[ia]),Uc=ia(),[J1,To]=zh(Vc),eb=yr(r=>{const{__scopePopover:t,children:o,open:i,defaultOpen:a,onOpenChange:l,modal:u=!1}=r,d=Uc(t),h=m.useRef(null),[g,v]=m.useState(!1),[y,w]=wi({prop:i,defaultProp:a??!1,onChange:l,caller:Vc});return A.jsx(Lh,{...d,children:A.jsx(J1,{scope:t,contentId:Bt(),triggerRef:h,open:y,onOpenChange:w,onOpenToggle:m.useCallback(()=>w(b=>!b),[w]),hasCustomAnchor:g,onCustomAnchorAdd:m.useCallback(()=>v(!0),[]),onCustomAnchorRemove:m.useCallback(()=>v(!1),[]),modal:u,children:o})})},"Popover"),tb="PopoverTrigger",nb=m.forwardRef(yr(function(t,o){const{__scopePopover:i,...a}=t,l=To(tb,i),u=Uc(i),d=Qe(o,l.triggerRef),h=A.jsx(Ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":Bc(l.open),...a,ref:d,onClick:He(t.onClick,l.onOpenToggle)});return l.hasCustomAnchor?h:A.jsx($h,{asChild:!0,...u,children:h})},"PopoverTrigger")),Fh="PopoverPortal",[rb,ob]=zh(Fh,{forceMount:void 0}),ib=yr(r=>{const{__scopePopover:t,forceMount:o,children:i,container:a}=r,l=To(Fh,t);return A.jsx(rb,{scope:t,forceMount:o,children:A.jsx(bo,{present:o||l.open,children:A.jsx(hc,{asChild:!0,container:a,children:i})})})},"PopoverPortal"),_i="PopoverContent",sb=m.forwardRef(yr(function(t,o){const i=ob(_i,t.__scopePopover),{forceMount:a=i.forceMount,...l}=t,u=To(_i,t.__scopePopover);return A.jsx(bo,{present:a||u.open,children:u.modal?A.jsx(lb,{...l,ref:o}):A.jsx(cb,{...l,ref:o})})},"PopoverContent")),ab=Sn("PopoverContent.RemoveScroll"),lb=m.forwardRef(yr(function(t,o){const i=To(_i,t.__scopePopover),a=m.useRef(null),l=Qe(o,a),u=m.useRef(!1);return m.useEffect(()=>{const d=a.current;if(d)return bc(d)},[]),A.jsx(Bs,{as:ab,allowPinchZoom:!0,children:A.jsx(Vh,{...t,ref:l,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:He(t.onCloseAutoFocus,d=>{d.preventDefault(),u.current||i.triggerRef.current?.focus()}),onPointerDownOutside:He(t.onPointerDownOutside,d=>{const h=d.detail.originalEvent,g=h.button===0&&h.ctrlKey===!0,v=h.button===2||g;u.current=v},{checkForDefaultPrevented:!1}),onFocusOutside:He(t.onFocusOutside,d=>d.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),cb=m.forwardRef(yr(function(t,o){const i=To(_i,t.__scopePopover),a=m.useRef(!1),l=m.useRef(!1);return A.jsx(Vh,{...t,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{t.onCloseAutoFocus?.(u),u.defaultPrevented||(a.current||i.triggerRef.current?.focus(),u.preventDefault()),a.current=!1,l.current=!1},onInteractOutside:u=>{t.onInteractOutside?.(u),u.defaultPrevented||(a.current=!0,u.detail.originalEvent.type==="pointerdown"&&(l.current=!0));const d=u.target;i.triggerRef.current?.contains(d)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&l.current&&u.preventDefault()}})},"PopoverContentNonModal")),Vh=m.forwardRef(yr(function(t,o){const{__scopePopover:i,trapFocus:a,onOpenAutoFocus:l,onCloseAutoFocus:u,disableOutsidePointerEvents:d,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:v,onInteractOutside:y,...w}=t,b=To(_i,i),S=Uc(i);return Si(),A.jsx(uc,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:l,onUnmountAutoFocus:u,children:A.jsx(ic,{asChild:!0,disableOutsidePointerEvents:d,onInteractOutside:y,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:v,onDismiss:()=>b.onOpenChange(!1),deferPointerDownOutside:!0,children:A.jsx(jh,{"data-state":Bc(b.open),role:"dialog",id:b.contentId,...S,...w,ref:o,style:{...w.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})},"PopoverContentImpl"));function Bc(r){return r?"open":"closed"}yr(Bc,"getState");var ub=eb,db=nb,fb=ib,pb=sb,hb=Object.defineProperty,Fe=(r,t)=>hb(r,"name",{value:t,configurable:!0}),mb=[" ","Enter","ArrowUp","ArrowDown"],gb=[" ","Enter"],Ao="Select",[aa,la,vb]=cp(Ao),[eo,kR]=pr(Ao,[vb,ia]),Hc=ia(),[yb,xr]=eo(Ao),[xb,wb]=eo(Ao);function Uh(r){const{__scopeSelect:t,children:o,open:i,defaultOpen:a,onOpenChange:l,value:u,defaultValue:d,onValueChange:h,dir:g,name:v,autoComplete:y,disabled:w,required:b,form:S,internal_do_not_use_render:_}=r,k=Hc(t),[T,D]=m.useState(null),[N,I]=m.useState(null),[V,L]=m.useState(!1),B=Pp(g),[j,Q]=wi({prop:i,defaultProp:a??!1,onChange:l,caller:Ao}),[ae,Ce]=wi({prop:u,defaultProp:d,onChange:h,caller:Ao}),ce=m.useRef(null),le=m.useRef(ae);m.useEffect(()=>{const E=S?T?.ownerDocument.getElementById(S):T?.form;if(E instanceof HTMLFormElement){const W=Fe(()=>Ce(le.current),"reset");return E.addEventListener("reset",W),()=>E.removeEventListener("reset",W)}},[S,T,Ce]);const fe=T?!!S||!!T.closest("form"):!0,[ke,re]=m.useState(new Set),se=Bt(),U=Array.from(ke).map(E=>E.props.value).join(";"),G=m.useCallback(E=>{re(W=>new Set(W).add(E))},[]),z=m.useCallback(E=>{re(W=>{const X=new Set(W);return X.delete(E),X})},[]),P={required:b,trigger:T,onTriggerChange:D,valueNode:N,onValueNodeChange:I,valueNodeHasChildren:V,onValueNodeHasChildrenChange:L,contentId:se,value:ae,onValueChange:Ce,open:j,onOpenChange:Q,dir:B,triggerPointerDownPosRef:ce,disabled:w,name:v,autoComplete:y,form:S,nativeOptions:ke,nativeSelectKey:U,isFormControl:fe};return A.jsx(Lh,{...k,children:A.jsx(yb,{scope:t,...P,children:A.jsx(aa.Provider,{scope:t,children:A.jsx(xb,{scope:t,onNativeOptionAdd:G,onNativeOptionRemove:z,children:Qh(_)?_(P):o})})})})}Fe(Uh,"SelectProvider");var Sb=Fe(r=>{const{__scopeSelect:t,children:o,...i}=r;return A.jsx(Uh,{__scopeSelect:t,...i,internal_do_not_use_render:({isFormControl:a})=>A.jsxs(A.Fragment,{children:[o,a?A.jsx(Zb,{__scopeSelect:t}):null]})})},"Select"),bb="SelectTrigger",kb=m.forwardRef(Fe(function(t,o){const{__scopeSelect:i,disabled:a=!1,...l}=t,u=Hc(i),d=xr(bb,i),h=d.disabled||a,g=Qe(o,d.onTriggerChange),v=la(i),y=m.useRef("touch"),[w,b,S]=Zc(k=>{const T=v().filter(I=>!I.disabled),D=T.find(I=>I.value===d.value),N=qc(T,k,D);N!==void 0&&d.onValueChange(N.value)}),_=Fe(k=>{h||(d.onOpenChange(!0),S()),k&&(d.triggerPointerDownPosRef.current={x:Math.round(k.pageX),y:Math.round(k.pageY)})},"handleOpen");return A.jsx($h,{asChild:!0,...u,children:A.jsx(Ze.button,{type:"button",role:"combobox","aria-controls":d.open?d.contentId:void 0,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":Ei(d.value)?"":void 0,...l,ref:g,onClick:He(l.onClick,k=>{k.currentTarget.focus(),y.current!=="mouse"&&_(k)}),onPointerDown:He(l.onPointerDown,k=>{y.current=k.pointerType;const T=k.target;T.hasPointerCapture(k.pointerId)&&T.releasePointerCapture(k.pointerId),k.button===0&&k.ctrlKey===!1&&k.pointerType==="mouse"&&(_(k),k.preventDefault())}),onKeyDown:He(l.onKeyDown,k=>{const T=w.current!=="";!(k.ctrlKey||k.altKey||k.metaKey)&&k.key.length===1&&b(k.key),!(T&&k.key===" ")&&mb.includes(k.key)&&(_(),k.preventDefault())})})})},"SelectTrigger")),Cb="SelectValue",_b=m.forwardRef(Fe(function(t,o){const{__scopeSelect:i,className:a,style:l,children:u,placeholder:d="",...h}=t,g=xr(Cb,i),{onValueNodeHasChildrenChange:v}=g,y=u!==void 0,w=Qe(o,g.onValueNodeChange);ut(()=>{v(y)},[v,y]);const b=Ei(g.value);return A.jsx(Ze.span,{...h,asChild:b?!1:h.asChild,ref:w,style:{pointerEvents:"none"},children:A.jsx(m.Fragment,{children:b?d:u},b?"placeholder":"value")})},"SelectValue")),Eb=m.forwardRef(Fe(function(t,o){const{__scopeSelect:i,children:a,...l}=t;return A.jsx(Ze.span,{"aria-hidden":!0,...l,ref:o,children:a||"▼"})},"SelectIcon")),Rb="SelectPortal",[Pb,Ib]=eo(Rb,{forceMount:void 0}),Ob=Fe(r=>{const{__scopeSelect:t,forceMount:o,...i}=r;return A.jsx(Pb,{scope:r.__scopeSelect,forceMount:o,children:A.jsx(hc,{asChild:!0,...i})})},"SelectPortal"),to="SelectContent",Nb=m.forwardRef(Fe(function(t,o){const i=Ib(to,t.__scopeSelect),{forceMount:a=i.forceMount,...l}=t,u=xr(to,t.__scopeSelect),[d,h]=m.useState();return ut(()=>{h(new DocumentFragment)},[]),A.jsx(bo,{present:a||u.open,children:({present:g})=>g?A.jsx(Db,{...l,ref:o}):A.jsx(Tb,{...l,fragment:d})})},"SelectContent")),Tb=m.forwardRef(Fe(function(t,o){const{__scopeSelect:i,children:a,fragment:l}=t;return l?yi.createPortal(A.jsx(Bh,{scope:i,children:A.jsx(aa.Slot,{scope:i,children:A.jsx("div",{ref:o,children:a})})}),l):null},"SelectContentFragment")),an=10,[Bh,no]=eo(to),Ab=Sn("SelectContent.RemoveScroll"),Db=m.forwardRef(Fe(function(t,o){const{__scopeSelect:i}=t,{position:a="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:u,onPointerDownOutside:d,side:h,sideOffset:g,align:v,alignOffset:y,arrowPadding:w,collisionBoundary:b,collisionPadding:S,sticky:_,hideWhenDetached:k,avoidCollisions:T,...D}=t,N=xr(to,i),[I,V]=m.useState(null),[L,B]=m.useState(null),j=Qe(o,V),[Q,ae]=m.useState(null),[Ce,ce]=m.useState(null),le=la(i),[fe,ke]=m.useState(!1),re=m.useRef(!1);m.useEffect(()=>{if(I)return bc(I)},[I]),Si();const se=m.useCallback(ee=>{const[ie,...Ae]=le().map(Ue=>Ue.ref.current),[$e]=Ae.slice(-1),Me=document.activeElement;for(const Ue of ee)if(Ue===Me||(Ue?.scrollIntoView({block:"nearest"}),Ue===ie&&L&&(L.scrollTop=0),Ue===$e&&L&&(L.scrollTop=L.scrollHeight),Ue?.focus(),document.activeElement!==Me))return},[le,L]),U=m.useCallback(()=>se([Q,I]),[se,Q,I]);m.useEffect(()=>{fe&&U()},[fe,U]);const{onOpenChange:G,triggerPointerDownPosRef:z}=N;m.useEffect(()=>{if(I){let ee={x:0,y:0};const ie=Fe($e=>{ee={x:Math.abs(Math.round($e.pageX)-(z.current?.x??0)),y:Math.abs(Math.round($e.pageY)-(z.current?.y??0))}},"handlePointerMove"),Ae=Fe($e=>{ee.x<=10&&ee.y<=10?$e.preventDefault():$e.composedPath().includes(I)||G(!1),document.removeEventListener("pointermove",ie),z.current=null},"handlePointerUp");return z.current!==null&&(document.addEventListener("pointermove",ie),document.addEventListener("pointerup",Ae,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ie),document.removeEventListener("pointerup",Ae,{capture:!0})}}},[I,G,z]),m.useEffect(()=>{const ee=Fe(()=>G(!1),"close");return window.addEventListener("blur",ee),window.addEventListener("resize",ee),()=>{window.removeEventListener("blur",ee),window.removeEventListener("resize",ee)}},[G]);const[P,E]=Zc(ee=>{const ie=le().filter(Me=>!Me.disabled),Ae=ie.find(Me=>Me.ref.current===document.activeElement),$e=qc(ie,ee,Ae);$e&&setTimeout(()=>$e.ref.current?.focus())}),W=m.useCallback((ee,ie,Ae)=>{const $e=!re.current&&!Ae;(N.value!==void 0&&N.value===ie||$e)&&(ae(ee),$e&&(re.current=!0))},[N.value]),X=m.useCallback(()=>I?.focus(),[I]),H=m.useCallback((ee,ie,Ae)=>{const $e=!re.current&&!Ae;(N.value!==void 0&&N.value===ie||$e)&&ce(ee)},[N.value]),J=a==="popper"?Hh:Lb,ue=J===Hh?{side:h,sideOffset:g,align:v,alignOffset:y,arrowPadding:w,collisionBoundary:b,collisionPadding:S,sticky:_,hideWhenDetached:k,avoidCollisions:T}:{};return A.jsx(Bh,{scope:i,content:I,viewport:L,onViewportChange:B,itemRefCallback:W,selectedItem:Q,onItemLeave:X,itemTextRefCallback:H,focusSelectedItem:U,selectedItemText:Ce,position:a,isPositioned:fe,searchRef:P,children:A.jsx(Bs,{as:Ab,allowPinchZoom:!0,children:A.jsx(uc,{asChild:!0,trapped:N.open,onMountAutoFocus:ee=>{ee.preventDefault()},onUnmountAutoFocus:He(l,ee=>{N.trigger?.focus({preventScroll:!0}),ee.preventDefault()}),children:A.jsx(ic,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:ee=>ee.preventDefault(),onDismiss:()=>N.onOpenChange(!1),children:A.jsx(J,{role:"listbox",id:N.contentId,"data-state":N.open?"open":"closed",dir:N.dir,onContextMenu:ee=>ee.preventDefault(),...D,...ue,onPlaced:()=>ke(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...D.style},onKeyDown:He(D.onKeyDown,ee=>{const ie=ee.ctrlKey||ee.altKey||ee.metaKey;if(ee.key==="Tab"&&ee.preventDefault(),!ie&&ee.key.length===1&&E(ee.key),["ArrowUp","ArrowDown","Home","End"].includes(ee.key)){let $e=le().filter(Me=>!Me.disabled).map(Me=>Me.ref.current);if(["ArrowUp","End"].includes(ee.key)&&($e=$e.slice().reverse()),["ArrowUp","ArrowDown"].includes(ee.key)){const Me=ee.target,Ue=$e.indexOf(Me);$e=$e.slice(Ue+1)}setTimeout(()=>se($e)),ee.preventDefault()}})})})})})})},"SelectContentImpl")),Lb=m.forwardRef(Fe(function(t,o){const{__scopeSelect:i,onPlaced:a,...l}=t,u=xr(to,i),d=no(to,i),[h,g]=m.useState(null),[v,y]=m.useState(null),w=Qe(o,y),b=la(i),S=m.useRef(!1),_=m.useRef(!0),{viewport:k,selectedItem:T,selectedItemText:D,focusSelectedItem:N}=d,I=m.useCallback(()=>{if(u.trigger&&u.valueNode&&h&&v&&k&&T&&D){const j=u.trigger.getBoundingClientRect(),Q=v.getBoundingClientRect(),ae=u.valueNode.getBoundingClientRect(),Ce=D.getBoundingClientRect();if(u.dir!=="rtl"){const Me=Ce.left-Q.left,Ue=ae.left-Me,oe=j.left-Ue,Ie=j.width+oe,qe=Math.max(Ie,Q.width),Ke=window.innerWidth-an,Ye=Fc(Ue,[an,Math.max(an,Ke-qe)]);h.style.minWidth=Ie+"px",h.style.left=Ye+"px"}else{const Me=Q.right-Ce.right,Ue=window.innerWidth-ae.right-Me,oe=window.innerWidth-j.right-Ue,Ie=j.width+oe,qe=Math.max(Ie,Q.width),Ke=window.innerWidth-an,Ye=Fc(Ue,[an,Math.max(an,Ke-qe)]);h.style.minWidth=Ie+"px",h.style.right=Ye+"px"}const ce=b(),le=window.innerHeight-an*2,fe=k.scrollHeight,ke=window.getComputedStyle(v),re=parseInt(ke.borderTopWidth,10),se=parseInt(ke.paddingTop,10),U=parseInt(ke.borderBottomWidth,10),G=parseInt(ke.paddingBottom,10),z=re+se+fe+G+U,P=Math.min(T.offsetHeight*5,z),E=window.getComputedStyle(k),W=parseInt(E.paddingTop,10),X=parseInt(E.paddingBottom,10),H=j.top+j.height/2-an,J=le-H,ue=T.offsetHeight/2,ee=T.offsetTop+ue,ie=re+se+ee,Ae=z-ie;if(ie<=H){const Me=ce.length>0&&T===ce[ce.length-1].ref.current;h.style.bottom="0px";const Ue=v.clientHeight-k.offsetTop-k.offsetHeight,oe=Math.max(J,ue+(Me?X:0)+Ue+U),Ie=ie+oe;h.style.height=Ie+"px"}else{const Me=ce.length>0&&T===ce[0].ref.current;h.style.top="0px";const oe=Math.max(H,re+k.offsetTop+(Me?W:0)+ue)+Ae;h.style.height=oe+"px",k.scrollTop=ie-H+k.offsetTop}h.style.margin=`${an}px 0`,h.style.minHeight=P+"px",h.style.maxHeight=le+"px",a?.(),requestAnimationFrame(()=>S.current=!0)}},[b,u.trigger,u.valueNode,h,v,k,T,D,u.dir,a]);ut(()=>I(),[I]);const[V,L]=m.useState();ut(()=>{v&&L(window.getComputedStyle(v).zIndex)},[v]);const B=m.useCallback(j=>{j&&_.current===!0&&(I(),N?.(),_.current=!1)},[I,N]);return A.jsx($b,{scope:i,contentWrapper:h,shouldExpandOnScrollRef:S,onScrollButtonChange:B,children:A.jsx("div",{ref:g,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:V},children:A.jsx(Ze.div,{...l,ref:w,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})},"SelectItemAlignedPosition")),Hh=m.forwardRef(Fe(function(t,o){const{__scopeSelect:i,align:a="start",collisionPadding:l=an,...u}=t,d=Hc(i);return A.jsx(jh,{...d,...u,ref:o,align:a,collisionPadding:l,style:{boxSizing:"border-box",...u.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)"}})},"SelectPopperPosition")),[$b,Wc]=eo(to,{}),Wh="SelectViewport",jb=m.forwardRef(Fe(function(t,o){const{__scopeSelect:i,nonce:a,...l}=t,u=no(Wh,i),d=Wc(Wh,i),h=Qe(o,u.onViewportChange),g=m.useRef(0);return A.jsxs(A.Fragment,{children:[A.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:a}),A.jsx(aa.Slot,{scope:i,children:A.jsx(Ze.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:He(l.onScroll,v=>{const y=v.currentTarget,{contentWrapper:w,shouldExpandOnScrollRef:b}=d;if(b?.current&&w){const S=Math.abs(g.current-y.scrollTop);if(S>0){const _=window.innerHeight-an*2,k=parseFloat(w.style.minHeight),T=parseFloat(w.style.height),D=Math.max(k,T);if(D<_){const N=D+S,I=Math.min(_,N),V=N-I;w.style.height=I+"px",w.style.bottom==="0px"&&(y.scrollTop=V>0?V:0,w.style.justifyContent="flex-end")}}}g.current=y.scrollTop})})})]})},"SelectViewport")),Mb="SelectGroup",[CR,_R]=eo(Mb),Kc="SelectItem",[zb,Kh]=eo(Kc),Fb=m.forwardRef(Fe(function(t,o){const{__scopeSelect:i,value:a,disabled:l=!1,textValue:u,...d}=t,h=xr(Kc,i),g=no(Kc,i),v=h.value===a,[y,w]=m.useState(u??""),[b,S]=m.useState(!1),_=bn(I=>g.itemRefCallback?.(I,a,l)),k=Qe(o,_),T=Bt(),D=m.useRef("touch"),N=Fe(()=>{l||(h.onValueChange(a),h.onOpenChange(!1))},"handleSelect");return A.jsx(zb,{scope:i,value:a,disabled:l,textId:T,isSelected:v,onItemTextChange:m.useCallback(I=>{w(V=>V||(I?.textContent??"").trim())},[]),children:A.jsx(aa.ItemSlot,{scope:i,value:a,disabled:l,textValue:y,children:A.jsx(Ze.div,{role:"option","aria-labelledby":T,"data-highlighted":b?"":void 0,"aria-selected":v&&b,"data-state":v?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...d,ref:k,onFocus:He(d.onFocus,()=>S(!0)),onBlur:He(d.onBlur,()=>S(!1)),onClick:He(d.onClick,()=>{D.current!=="mouse"&&N()}),onPointerUp:He(d.onPointerUp,()=>{D.current==="mouse"&&N()}),onPointerDown:He(d.onPointerDown,I=>{D.current=I.pointerType}),onPointerMove:He(d.onPointerMove,I=>{D.current=I.pointerType,l?g.onItemLeave?.():D.current==="mouse"&&I.currentTarget.focus({preventScroll:!0})}),onPointerLeave:He(d.onPointerLeave,I=>{I.currentTarget===document.activeElement&&g.onItemLeave?.()}),onKeyDown:He(d.onKeyDown,I=>{l||I.target!==I.currentTarget||g.searchRef?.current!==""&&I.key===" "||(gb.includes(I.key)&&N(),I.key===" "&&I.preventDefault())})})})})},"SelectItem")),ca="SelectItemText",Vb=m.forwardRef(Fe(function(t,o){const{__scopeSelect:i,className:a,style:l,...u}=t,d=xr(ca,i),h=no(ca,i),g=Kh(ca,i),v=wb(ca,i),[y,w]=m.useState(null),b=bn(N=>h.itemTextRefCallback?.(N,g.value,g.disabled)),S=Qe(o,w,g.onItemTextChange,b),_=y?.textContent,k=m.useMemo(()=>A.jsx("option",{value:g.value,disabled:g.disabled,children:_},g.value),[g.disabled,g.value,_]),{onNativeOptionAdd:T,onNativeOptionRemove:D}=v;return ut(()=>(T(k),()=>D(k)),[T,D,k]),A.jsxs(A.Fragment,{children:[A.jsx(Ze.span,{id:g.textId,...u,ref:S}),g.isSelected&&d.valueNode&&!d.valueNodeHasChildren&&!Ei(d.value)?yi.createPortal(u.children,d.valueNode):null]})},"SelectItemText")),Ub="SelectItemIndicator",Bb=m.forwardRef(Fe(function(t,o){const{__scopeSelect:i,...a}=t;return Kh(Ub,i).isSelected?A.jsx(Ze.span,{"aria-hidden":!0,...a,ref:o}):null},"SelectItemIndicator")),Zh="SelectScrollUpButton",Hb=m.forwardRef(Fe(function(t,o){const i=no(Zh,t.__scopeSelect),a=Wc(Zh,t.__scopeSelect),[l,u]=m.useState(!1),d=Qe(o,a.onScrollButtonChange);return ut(()=>{if(i.viewport&&i.isPositioned){let h=function(){const v=g.scrollTop>0;u(v)};Fe(h,"handleScroll");const g=i.viewport;return h(),g.addEventListener("scroll",h),()=>g.removeEventListener("scroll",h)}},[i.viewport,i.isPositioned]),l?A.jsx(Gh,{...t,ref:d,onAutoScroll:()=>{const{viewport:h,selectedItem:g}=i;h&&g&&(h.scrollTop=h.scrollTop-g.offsetHeight)}}):null},"SelectScrollUpButton")),qh="SelectScrollDownButton",Wb=m.forwardRef(Fe(function(t,o){const i=no(qh,t.__scopeSelect),a=Wc(qh,t.__scopeSelect),[l,u]=m.useState(!1),d=Qe(o,a.onScrollButtonChange);return ut(()=>{if(i.viewport&&i.isPositioned){let h=function(){const v=g.scrollHeight-g.clientHeight,y=Math.ceil(g.scrollTop)<v;u(y)};Fe(h,"handleScroll");const g=i.viewport;return h(),g.addEventListener("scroll",h),()=>g.removeEventListener("scroll",h)}},[i.viewport,i.isPositioned]),l?A.jsx(Gh,{...t,ref:d,onAutoScroll:()=>{const{viewport:h,selectedItem:g}=i;h&&g&&(h.scrollTop=h.scrollTop+g.offsetHeight)}}):null},"SelectScrollDownButton")),Gh=m.forwardRef(Fe(function(t,o){const{__scopeSelect:i,onAutoScroll:a,...l}=t,u=no("SelectScrollButton",i),d=m.useRef(null),h=la(i),g=m.useCallback(()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null)},[]);return m.useEffect(()=>()=>g(),[g]),ut(()=>{h().find(y=>y.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[h]),A.jsx(Ze.div,{"aria-hidden":!0,...l,ref:o,style:{flexShrink:0,...l.style},onPointerDown:He(l.onPointerDown,()=>{d.current===null&&(d.current=window.setInterval(a,50))}),onPointerMove:He(l.onPointerMove,()=>{u.onItemLeave?.(),d.current===null&&(d.current=window.setInterval(a,50))}),onPointerLeave:He(l.onPointerLeave,()=>{g()})})},"SelectScrollButtonImpl")),Kb="SelectBubbleInput",Zb=m.forwardRef(Fe(function({__scopeSelect:t,...o},i){const a=xr(Kb,t),{value:l,onValueChange:u,required:d,disabled:h,name:g,autoComplete:v,form:y}=a,{nativeOptions:w,nativeSelectKey:b}=a,S=m.useRef(null),_=Qe(i,S),k=l??"",T=Mh(k),D=Array.from(w).some(N=>(N.props.value??"")==="");return m.useEffect(()=>{const N=S.current;if(!N)return;const I=window.HTMLSelectElement.prototype,L=Object.getOwnPropertyDescriptor(I,"value").set;if(T!==k&&L){const B=new Event("change",{bubbles:!0});L.call(N,k),N.dispatchEvent(B)}},[T,k]),A.jsxs(Ze.select,{"aria-hidden":!0,required:d,tabIndex:-1,name:g,autoComplete:v,disabled:h,form:y,onChange:N=>u(N.target.value),...o,style:{...M0,...o.style},ref:_,defaultValue:k,children:[Ei(l)&&!D?A.jsx("option",{value:""}):null,Array.from(w)]},b)},"SelectBubbleInput"));function Qh(r){return typeof r=="function"}Fe(Qh,"isFunction");function Ei(r){return r===""||r===void 0}Fe(Ei,"shouldShowPlaceholder");function Zc(r){const t=bn(r),o=m.useRef(""),i=m.useRef(0),a=m.useCallback(u=>{const d=o.current+u;t(d),Fe((function h(g){o.current=g,window.clearTimeout(i.current),g!==""&&(i.current=window.setTimeout(()=>h(""),1e3))}),"updateSearch")(d)},[t]),l=m.useCallback(()=>{o.current="",window.clearTimeout(i.current)},[]);return m.useEffect(()=>()=>window.clearTimeout(i.current),[]),[o,a,l]}Fe(Zc,"useTypeaheadSearch");function qc(r,t,o){const a=t.length>1&&Array.from(t).every(g=>g===t[0])?t[0]:t,l=o?r.indexOf(o):-1;let u=Yh(r,Math.max(l,0));a.length===1&&(u=u.filter(g=>g!==o));const h=u.find(g=>g.textValue.toLowerCase().startsWith(a.toLowerCase()));return h!==o?h:void 0}Fe(qc,"findNextItem");function Yh(r,t){return r.map((o,i)=>r[(t+i)%r.length])}Fe(Yh,"wrapArray");const Xh=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,Jh=Pf,em=(r,t)=>o=>{var i;if(t?.variants==null)return Jh(r,o?.class,o?.className);const{variants:a,defaultVariants:l}=t,u=Object.keys(a).map(g=>{const v=o?.[g],y=l?.[g];if(v===null)return null;const w=Xh(v)||Xh(y);return a[g][w]}),d=o&&Object.entries(o).reduce((g,v)=>{let[y,w]=v;return w===void 0||(g[y]=w),g},{}),h=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((g,v)=>{let{class:y,className:w,...b}=v;return Object.entries(b).every(S=>{let[_,k]=S;return Array.isArray(k)?k.includes({...l,...d}[_]):{...l,...d}[_]===k})?[...g,y,w]:g},[]);return Jh(r,u,h,o?.class,o?.className)};var tm=1,qb=.9,Gb=.8,Qb=.17,Gc=.1,Qc=.999,Yb=.9999,Xb=.99,Jb=/[\\\/_+.#"@\[\(\{&]/,ek=/[\\\/_+.#"@\[\(\{&]/g,tk=/[\s-]/,nm=/[\s-]/g;function Yc(r,t,o,i,a,l,u){if(l===t.length)return a===r.length?tm:Xb;var d=`${a},${l}`;if(u[d]!==void 0)return u[d];for(var h=i.charAt(l),g=o.indexOf(h,a),v=0,y,w,b,S;g>=0;)y=Yc(r,t,o,i,g+1,l+1,u),y>v&&(g===a?y*=tm:Jb.test(r.charAt(g-1))?(y*=Gb,b=r.slice(a,g-1).match(ek),b&&a>0&&(y*=Math.pow(Qc,b.length))):tk.test(r.charAt(g-1))?(y*=qb,S=r.slice(a,g-1).match(nm),S&&a>0&&(y*=Math.pow(Qc,S.length))):(y*=Qb,a>0&&(y*=Math.pow(Qc,g-a))),r.charAt(g)!==t.charAt(l)&&(y*=Yb)),(y<Gc&&o.charAt(g-1)===i.charAt(l+1)||i.charAt(l+1)===i.charAt(l)&&o.charAt(g-1)!==i.charAt(l))&&(w=Yc(r,t,o,i,g+1,l+2,u),w*Gc>y&&(y=w*Gc)),y>v&&(v=y),g=o.indexOf(h,g+1);return u[d]=v,v}function rm(r){return r.toLowerCase().replace(nm," ")}function nk(r,t,o){return r=o&&o.length>0?`${r+" "+o.join(" ")}`:r,Yc(r,t,rm(r),rm(t),0,0,{})}var Ri='[cmdk-group=""]',Xc='[cmdk-group-items=""]',rk='[cmdk-group-heading=""]',om='[cmdk-item=""]',im=`${om}:not([aria-disabled="true"])`,Jc="cmdk-item-select",Do="data-value",ok=(r,t,o)=>nk(r,t,o),sm=m.createContext(void 0),Pi=()=>m.useContext(sm),am=m.createContext(void 0),eu=()=>m.useContext(am),lm=m.createContext(void 0),cm=m.forwardRef((r,t)=>{let o=Lo(()=>{var E,W;return{search:"",value:(W=(E=r.value)!=null?E:r.defaultValue)!=null?W:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),i=Lo(()=>new Set),a=Lo(()=>new Map),l=Lo(()=>new Map),u=Lo(()=>new Set),d=um(r),{label:h,children:g,value:v,onValueChange:y,filter:w,shouldFilter:b,loop:S,disablePointerSelection:_=!1,vimBindings:k=!0,...T}=r,D=Bt(),N=Bt(),I=Bt(),V=m.useRef(null),L=mk();ro(()=>{if(v!==void 0){let E=v.trim();o.current.value=E,B.emit()}},[v]),ro(()=>{L(6,le)},[]);let B=m.useMemo(()=>({subscribe:E=>(u.current.add(E),()=>u.current.delete(E)),snapshot:()=>o.current,setState:(E,W,X)=>{var H,J,ue,ee;if(!Object.is(o.current[E],W)){if(o.current[E]=W,E==="search")ce(),ae(),L(1,Ce);else if(E==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ie=document.getElementById(I);ie?ie.focus():(H=document.getElementById(D))==null||H.focus()}if(L(7,()=>{var ie;o.current.selectedItemId=(ie=fe())==null?void 0:ie.id,B.emit()}),X||L(5,le),((J=d.current)==null?void 0:J.value)!==void 0){let ie=W??"";(ee=(ue=d.current).onValueChange)==null||ee.call(ue,ie);return}}B.emit()}},emit:()=>{u.current.forEach(E=>E())}}),[]),j=m.useMemo(()=>({value:(E,W,X)=>{var H;W!==((H=l.current.get(E))==null?void 0:H.value)&&(l.current.set(E,{value:W,keywords:X}),o.current.filtered.items.set(E,Q(W,X)),L(2,()=>{ae(),B.emit()}))},item:(E,W)=>(i.current.add(E),W&&(a.current.has(W)?a.current.get(W).add(E):a.current.set(W,new Set([E]))),L(3,()=>{ce(),ae(),o.current.value||Ce(),B.emit()}),()=>{l.current.delete(E),i.current.delete(E),o.current.filtered.items.delete(E);let X=fe();L(4,()=>{ce(),X?.getAttribute("id")===E&&Ce(),B.emit()})}),group:E=>(a.current.has(E)||a.current.set(E,new Set),()=>{l.current.delete(E),a.current.delete(E)}),filter:()=>d.current.shouldFilter,label:h||r["aria-label"],getDisablePointerSelection:()=>d.current.disablePointerSelection,listId:D,inputId:I,labelId:N,listInnerRef:V}),[]);function Q(E,W){var X,H;let J=(H=(X=d.current)==null?void 0:X.filter)!=null?H:ok;return E?J(E,o.current.search,W):0}function ae(){if(!o.current.search||d.current.shouldFilter===!1)return;let E=o.current.filtered.items,W=[];o.current.filtered.groups.forEach(H=>{let J=a.current.get(H),ue=0;J.forEach(ee=>{let ie=E.get(ee);ue=Math.max(ie,ue)}),W.push([H,ue])});let X=V.current;ke().sort((H,J)=>{var ue,ee;let ie=H.getAttribute("id"),Ae=J.getAttribute("id");return((ue=E.get(Ae))!=null?ue:0)-((ee=E.get(ie))!=null?ee:0)}).forEach(H=>{let J=H.closest(Xc);J?J.appendChild(H.parentElement===J?H:H.closest(`${Xc} > *`)):X.appendChild(H.parentElement===X?H:H.closest(`${Xc} > *`))}),W.sort((H,J)=>J[1]-H[1]).forEach(H=>{var J;let ue=(J=V.current)==null?void 0:J.querySelector(`${Ri}[${Do}="${encodeURIComponent(H[0])}"]`);ue?.parentElement.appendChild(ue)})}function Ce(){let E=ke().find(X=>X.getAttribute("aria-disabled")!=="true"),W=E?.getAttribute(Do);B.setState("value",W||void 0)}function ce(){var E,W,X,H;if(!o.current.search||d.current.shouldFilter===!1){o.current.filtered.count=i.current.size;return}o.current.filtered.groups=new Set;let J=0;for(let ue of i.current){let ee=(W=(E=l.current.get(ue))==null?void 0:E.value)!=null?W:"",ie=(H=(X=l.current.get(ue))==null?void 0:X.keywords)!=null?H:[],Ae=Q(ee,ie);o.current.filtered.items.set(ue,Ae),Ae>0&&J++}for(let[ue,ee]of a.current)for(let ie of ee)if(o.current.filtered.items.get(ie)>0){o.current.filtered.groups.add(ue);break}o.current.filtered.count=J}function le(){var E,W,X;let H=fe();H&&(((E=H.parentElement)==null?void 0:E.firstChild)===H&&((X=(W=H.closest(Ri))==null?void 0:W.querySelector(rk))==null||X.scrollIntoView({block:"nearest"})),H.scrollIntoView({block:"nearest"}))}function fe(){var E;return(E=V.current)==null?void 0:E.querySelector(`${om}[aria-selected="true"]`)}function ke(){var E;return Array.from(((E=V.current)==null?void 0:E.querySelectorAll(im))||[])}function re(E){let W=ke()[E];W&&B.setState("value",W.getAttribute(Do))}function se(E){var W;let X=fe(),H=ke(),J=H.findIndex(ee=>ee===X),ue=H[J+E];(W=d.current)!=null&&W.loop&&(ue=J+E<0?H[H.length-1]:J+E===H.length?H[0]:H[J+E]),ue&&B.setState("value",ue.getAttribute(Do))}function U(E){let W=fe(),X=W?.closest(Ri),H;for(;X&&!H;)X=E>0?pk(X,Ri):hk(X,Ri),H=X?.querySelector(im);H?B.setState("value",H.getAttribute(Do)):se(E)}let G=()=>re(ke().length-1),z=E=>{E.preventDefault(),E.metaKey?G():E.altKey?U(1):se(1)},P=E=>{E.preventDefault(),E.metaKey?re(0):E.altKey?U(-1):se(-1)};return m.createElement(Ze.div,{ref:t,tabIndex:-1,...T,"cmdk-root":"",onKeyDown:E=>{var W;(W=T.onKeyDown)==null||W.call(T,E);let X=E.nativeEvent.isComposing||E.keyCode===229;if(!(E.defaultPrevented||X))switch(E.key){case"n":case"j":{k&&E.ctrlKey&&z(E);break}case"ArrowDown":{z(E);break}case"p":case"k":{k&&E.ctrlKey&&P(E);break}case"ArrowUp":{P(E);break}case"Home":{E.preventDefault(),re(0);break}case"End":{E.preventDefault(),G();break}case"Enter":{E.preventDefault();let H=fe();if(H){let J=new Event(Jc);H.dispatchEvent(J)}}}}},m.createElement("label",{"cmdk-label":"",htmlFor:j.inputId,id:j.labelId,style:vk},h),ua(r,E=>m.createElement(am.Provider,{value:B},m.createElement(sm.Provider,{value:j},E))))}),ik=m.forwardRef((r,t)=>{var o,i;let a=Bt(),l=m.useRef(null),u=m.useContext(lm),d=Pi(),h=um(r),g=(i=(o=h.current)==null?void 0:o.forceMount)!=null?i:u?.forceMount;ro(()=>{if(!g)return d.item(a,u?.id)},[g]);let v=dm(a,l,[r.value,r.children,l],r.keywords),y=eu(),w=wr(L=>L.value&&L.value===v.current),b=wr(L=>g||d.filter()===!1?!0:L.search?L.filtered.items.get(a)>0:!0);m.useEffect(()=>{let L=l.current;if(!(!L||r.disabled))return L.addEventListener(Jc,S),()=>L.removeEventListener(Jc,S)},[b,r.onSelect,r.disabled]);function S(){var L,B;_(),(B=(L=h.current).onSelect)==null||B.call(L,v.current)}function _(){y.setState("value",v.current,!0)}if(!b)return null;let{disabled:k,value:T,onSelect:D,forceMount:N,keywords:I,...V}=r;return m.createElement(Ze.div,{ref:Qr(l,t),...V,id:a,"cmdk-item":"",role:"option","aria-disabled":!!k,"aria-selected":!!w,"data-disabled":!!k,"data-selected":!!w,onPointerMove:k||d.getDisablePointerSelection()?void 0:_,onClick:k?void 0:S},r.children)}),sk=m.forwardRef((r,t)=>{let{heading:o,children:i,forceMount:a,...l}=r,u=Bt(),d=m.useRef(null),h=m.useRef(null),g=Bt(),v=Pi(),y=wr(b=>a||v.filter()===!1?!0:b.search?b.filtered.groups.has(u):!0);ro(()=>v.group(u),[]),dm(u,d,[r.value,r.heading,h]);let w=m.useMemo(()=>({id:u,forceMount:a}),[a]);return m.createElement(Ze.div,{ref:Qr(d,t),...l,"cmdk-group":"",role:"presentation",hidden:y?void 0:!0},o&&m.createElement("div",{ref:h,"cmdk-group-heading":"","aria-hidden":!0,id:g},o),ua(r,b=>m.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":o?g:void 0},m.createElement(lm.Provider,{value:w},b))))}),ak=m.forwardRef((r,t)=>{let{alwaysRender:o,...i}=r,a=m.useRef(null),l=wr(u=>!u.search);return!o&&!l?null:m.createElement(Ze.div,{ref:Qr(a,t),...i,"cmdk-separator":"",role:"separator"})}),lk=m.forwardRef((r,t)=>{let{onValueChange:o,...i}=r,a=r.value!=null,l=eu(),u=wr(g=>g.search),d=wr(g=>g.selectedItemId),h=Pi();return m.useEffect(()=>{r.value!=null&&l.setState("search",r.value)},[r.value]),m.createElement(Ze.input,{ref:t,...i,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":h.listId,"aria-labelledby":h.labelId,"aria-activedescendant":d,id:h.inputId,type:"text",value:a?r.value:u,onChange:g=>{a||l.setState("search",g.target.value),o?.(g.target.value)}})}),ck=m.forwardRef((r,t)=>{let{children:o,label:i="Suggestions",...a}=r,l=m.useRef(null),u=m.useRef(null),d=wr(g=>g.selectedItemId),h=Pi();return m.useEffect(()=>{if(u.current&&l.current){let g=u.current,v=l.current,y,w=new ResizeObserver(()=>{y=requestAnimationFrame(()=>{let b=g.offsetHeight;v.style.setProperty("--cmdk-list-height",b.toFixed(1)+"px")})});return w.observe(g),()=>{cancelAnimationFrame(y),w.unobserve(g)}}},[]),m.createElement(Ze.div,{ref:Qr(l,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":d,"aria-label":i,id:h.listId},ua(r,g=>m.createElement("div",{ref:Qr(u,h.listInnerRef),"cmdk-list-sizer":""},g)))}),uk=m.forwardRef((r,t)=>{let{open:o,onOpenChange:i,overlayClassName:a,contentClassName:l,container:u,...d}=r;return m.createElement(Cc,{open:o,onOpenChange:i},m.createElement(_c,{container:u},m.createElement(Rc,{"cmdk-overlay":"",className:a}),m.createElement(Pc,{"aria-label":r.label,"cmdk-dialog":"",className:l},m.createElement(cm,{ref:t,...d}))))}),dk=m.forwardRef((r,t)=>wr(o=>o.filtered.count===0)?m.createElement(Ze.div,{ref:t,...r,"cmdk-empty":"",role:"presentation"}):null),fk=m.forwardRef((r,t)=>{let{progress:o,children:i,label:a="Loading...",...l}=r;return m.createElement(Ze.div,{ref:t,...l,"cmdk-loading":"",role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},ua(r,u=>m.createElement("div",{"aria-hidden":!0},u)))}),Ii=Object.assign(cm,{List:ck,Item:ik,Input:lk,Group:sk,Separator:ak,Dialog:uk,Empty:dk,Loading:fk});function pk(r,t){let o=r.nextElementSibling;for(;o;){if(o.matches(t))return o;o=o.nextElementSibling}}function hk(r,t){let o=r.previousElementSibling;for(;o;){if(o.matches(t))return o;o=o.previousElementSibling}}function um(r){let t=m.useRef(r);return ro(()=>{t.current=r}),t}var ro=typeof window>"u"?m.useEffect:m.useLayoutEffect;function Lo(r){let t=m.useRef();return t.current===void 0&&(t.current=r()),t}function wr(r){let t=eu(),o=()=>r(t.snapshot());return m.useSyncExternalStore(t.subscribe,o,o)}function dm(r,t,o,i=[]){let a=m.useRef(),l=Pi();return ro(()=>{var u;let d=(()=>{var g;for(let v of o){if(typeof v=="string")return v.trim();if(typeof v=="object"&&"current"in v)return v.current?(g=v.current.textContent)==null?void 0:g.trim():a.current}})(),h=i.map(g=>g.trim());l.value(r,d,h),(u=t.current)==null||u.setAttribute(Do,d),a.current=d}),a}var mk=()=>{let[r,t]=m.useState(),o=Lo(()=>new Map);return ro(()=>{o.current.forEach(i=>i()),o.current=new Map},[r]),(i,a)=>{o.current.set(i,a),t({})}};function gk(r){let t=r.type;return typeof t=="function"?t(r.props):"render"in t?t.render(r.props):r}function ua({asChild:r,children:t},o){return r&&m.isValidElement(t)?m.cloneElement(gk(t),{ref:t.ref},o(t.props.children)):o(t)}var vk={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Ne=r=>typeof r=="string",Oi=()=>{let r,t;const o=new Promise((i,a)=>{r=i,t=a});return o.resolve=r,o.reject=t,o},fm=r=>r==null?"":""+r,yk=(r,t,o)=>{r.forEach(i=>{t[i]&&(o[i]=t[i])})},xk=/###/g,pm=r=>r&&r.indexOf("###")>-1?r.replace(xk,"."):r,hm=r=>!r||Ne(r),Ni=(r,t,o)=>{const i=Ne(t)?t.split("."):t;let a=0;for(;a<i.length-1;){if(hm(r))return{};const l=pm(i[a]);!r[l]&&o&&(r[l]=new o),Object.prototype.hasOwnProperty.call(r,l)?r=r[l]:r={},++a}return hm(r)?{}:{obj:r,k:pm(i[a])}},mm=(r,t,o)=>{const{obj:i,k:a}=Ni(r,t,Object);if(i!==void 0||t.length===1){i[a]=o;return}let l=t[t.length-1],u=t.slice(0,t.length-1),d=Ni(r,u,Object);for(;d.obj===void 0&&u.length;)l=`${u[u.length-1]}.${l}`,u=u.slice(0,u.length-1),d=Ni(r,u,Object),d?.obj&&typeof d.obj[`${d.k}.${l}`]<"u"&&(d.obj=void 0);d.obj[`${d.k}.${l}`]=o},wk=(r,t,o,i)=>{const{obj:a,k:l}=Ni(r,t,Object);a[l]=a[l]||[],a[l].push(o)},da=(r,t)=>{const{obj:o,k:i}=Ni(r,t);if(o&&Object.prototype.hasOwnProperty.call(o,i))return o[i]},Sk=(r,t,o)=>{const i=da(r,o);return i!==void 0?i:da(t,o)},gm=(r,t,o)=>{for(const i in t)i!=="__proto__"&&i!=="constructor"&&(i in r?Ne(r[i])||r[i]instanceof String||Ne(t[i])||t[i]instanceof String?o&&(r[i]=t[i]):gm(r[i],t[i],o):r[i]=t[i]);return r},$o=r=>r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var bk={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const kk=r=>Ne(r)?r.replace(/[&<>"'\/]/g,t=>bk[t]):r;class Ck{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const o=this.regExpMap.get(t);if(o!==void 0)return o;const i=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,i),this.regExpQueue.push(t),i}}const _k=[" ",",","?","!",";"],Ek=new Ck(20),Rk=(r,t,o)=>{t=t||"",o=o||"";const i=_k.filter(u=>t.indexOf(u)<0&&o.indexOf(u)<0);if(i.length===0)return!0;const a=Ek.getRegExp(`(${i.map(u=>u==="?"?"\\?":u).join("|")})`);let l=!a.test(r);if(!l){const u=r.indexOf(o);u>0&&!a.test(r.substring(0,u))&&(l=!0)}return l},tu=(r,t,o=".")=>{if(!r)return;if(r[t])return Object.prototype.hasOwnProperty.call(r,t)?r[t]:void 0;const i=t.split(o);let a=r;for(let l=0;l<i.length;){if(!a||typeof a!="object")return;let u,d="";for(let h=l;h<i.length;++h)if(h!==l&&(d+=o),d+=i[h],u=a[d],u!==void 0){if(["string","number","boolean"].indexOf(typeof u)>-1&&h<i.length-1)continue;l+=h-l+1;break}a=u}return a},Ti=r=>r?.replace("_","-"),Pk={type:"logger",log(r){this.output("log",r)},warn(r){this.output("warn",r)},error(r){this.output("error",r)},output(r,t){console?.[r]?.apply?.(console,t)}};class fa{constructor(t,o={}){this.init(t,o)}init(t,o={}){this.prefix=o.prefix||"i18next:",this.logger=t||Pk,this.options=o,this.debug=o.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,o,i,a){return a&&!this.debug?null:(Ne(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[o](t))}create(t){return new fa(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new fa(this.logger,t)}}var Rn=new fa;class pa{constructor(){this.observers={}}on(t,o){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const a=this.observers[i].get(o)||0;this.observers[i].set(o,a+1)}),this}off(t,o){if(this.observers[t]){if(!o){delete this.observers[t];return}this.observers[t].delete(o)}}emit(t,...o){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([a,l])=>{for(let u=0;u<l;u++)a(...o)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([a,l])=>{for(let u=0;u<l;u++)a.apply(a,[t,...o])})}}class vm extends pa{constructor(t,o={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const o=this.options.ns.indexOf(t);o>-1&&this.options.ns.splice(o,1)}getResource(t,o,i,a={}){const l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,u=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let d;t.indexOf(".")>-1?d=t.split("."):(d=[t,o],i&&(Array.isArray(i)?d.push(...i):Ne(i)&&l?d.push(...i.split(l)):d.push(i)));const h=da(this.data,d);return!h&&!o&&!i&&t.indexOf(".")>-1&&(t=d[0],o=d[1],i=d.slice(2).join(".")),h||!u||!Ne(i)?h:tu(this.data?.[t]?.[o],i,l)}addResource(t,o,i,a,l={silent:!1}){const u=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator;let d=[t,o];i&&(d=d.concat(u?i.split(u):i)),t.indexOf(".")>-1&&(d=t.split("."),a=o,o=d[1]),this.addNamespaces(o),mm(this.data,d,a),l.silent||this.emit("added",t,o,i,a)}addResources(t,o,i,a={silent:!1}){for(const l in i)(Ne(i[l])||Array.isArray(i[l]))&&this.addResource(t,o,l,i[l],{silent:!0});a.silent||this.emit("added",t,o,i)}addResourceBundle(t,o,i,a,l,u={silent:!1,skipCopy:!1}){let d=[t,o];t.indexOf(".")>-1&&(d=t.split("."),a=i,i=o,o=d[1]),this.addNamespaces(o);let h=da(this.data,d)||{};u.skipCopy||(i=JSON.parse(JSON.stringify(i))),a?gm(h,i,l):h={...h,...i},mm(this.data,d,h),u.silent||this.emit("added",t,o,i)}removeResourceBundle(t,o){this.hasResourceBundle(t,o)&&delete this.data[t][o],this.removeNamespaces(o),this.emit("removed",t,o)}hasResourceBundle(t,o){return this.getResource(t,o)!==void 0}getResourceBundle(t,o){return o||(o=this.options.defaultNS),this.getResource(t,o)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const o=this.getDataByLanguage(t);return!!(o&&Object.keys(o)||[]).find(a=>o[a]&&Object.keys(o[a]).length>0)}toJSON(){return this.data}}var ym={processors:{},addPostProcessor(r){this.processors[r.name]=r},handle(r,t,o,i,a){return r.forEach(l=>{t=this.processors[l]?.process(t,o,i,a)??t}),t}};const xm=Symbol("i18next/PATH_KEY");function Ik(){const r=[],t=Object.create(null);let o;return t.get=(i,a)=>(o?.revoke?.(),a===xm?r:(r.push(a),o=Proxy.revocable(i,t),o.proxy)),Proxy.revocable(Object.create(null),t).proxy}function nu(r,t){const{[xm]:o}=r(Ik());return o.join(t?.keySeparator??".")}const wm={},ru=r=>!Ne(r)&&typeof r!="boolean"&&typeof r!="number";class ha extends pa{constructor(t,o={}){super(),yk(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Rn.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,o={interpolation:{}}){const i={...o};if(t==null)return!1;const a=this.resolve(t,i);if(a?.res===void 0)return!1;const l=ru(a.res);return!(i.returnObjects===!1&&l)}extractFromKey(t,o){let i=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let l=o.ns||this.options.defaultNS||[];const u=i&&t.indexOf(i)>-1,d=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!Rk(t,i,a);if(u&&!d){const h=t.match(this.interpolator.nestingRegexp);if(h&&h.length>0)return{key:t,namespaces:Ne(l)?[l]:l};const g=t.split(i);(i!==a||i===a&&this.options.ns.indexOf(g[0])>-1)&&(l=g.shift()),t=g.join(a)}return{key:t,namespaces:Ne(l)?[l]:l}}translate(t,o,i){let a=typeof o=="object"?{...o}:o;if(typeof a!="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),typeof a=="object"&&(a={...a}),a||(a={}),t==null)return"";typeof t=="function"&&(t=nu(t,{...this.options,...a})),Array.isArray(t)||(t=[String(t)]);const l=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,u=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,{key:d,namespaces:h}=this.extractFromKey(t[t.length-1],a),g=h[h.length-1];let v=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;v===void 0&&(v=":");const y=a.lng||this.language,w=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(y?.toLowerCase()==="cimode")return w?l?{res:`${g}${v}${d}`,usedKey:d,exactUsedKey:d,usedLng:y,usedNS:g,usedParams:this.getUsedParamsDetails(a)}:`${g}${v}${d}`:l?{res:d,usedKey:d,exactUsedKey:d,usedLng:y,usedNS:g,usedParams:this.getUsedParamsDetails(a)}:d;const b=this.resolve(t,a);let S=b?.res;const _=b?.usedKey||d,k=b?.exactUsedKey||d,T=["[object Number]","[object Function]","[object RegExp]"],D=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,N=!this.i18nFormat||this.i18nFormat.handleAsObject,I=a.count!==void 0&&!Ne(a.count),V=ha.hasDefaultValue(a),L=I?this.pluralResolver.getSuffix(y,a.count,a):"",B=a.ordinal&&I?this.pluralResolver.getSuffix(y,a.count,{ordinal:!1}):"",j=I&&!a.ordinal&&a.count===0,Q=j&&a[`defaultValue${this.options.pluralSeparator}zero`]||a[`defaultValue${L}`]||a[`defaultValue${B}`]||a.defaultValue;let ae=S;N&&!S&&V&&(ae=Q);const Ce=ru(ae),ce=Object.prototype.toString.apply(ae);if(N&&ae&&Ce&&T.indexOf(ce)<0&&!(Ne(D)&&Array.isArray(ae))){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const le=this.options.returnedObjectHandler?this.options.returnedObjectHandler(_,ae,{...a,ns:h}):`key '${d} (${this.language})' returned an object instead of string.`;return l?(b.res=le,b.usedParams=this.getUsedParamsDetails(a),b):le}if(u){const le=Array.isArray(ae),fe=le?[]:{},ke=le?k:_;for(const re in ae)if(Object.prototype.hasOwnProperty.call(ae,re)){const se=`${ke}${u}${re}`;V&&!S?fe[re]=this.translate(se,{...a,defaultValue:ru(Q)?Q[re]:void 0,joinArrays:!1,ns:h}):fe[re]=this.translate(se,{...a,joinArrays:!1,ns:h}),fe[re]===se&&(fe[re]=ae[re])}S=fe}}else if(N&&Ne(D)&&Array.isArray(S))S=S.join(D),S&&(S=this.extendTranslation(S,t,a,i));else{let le=!1,fe=!1;!this.isValidLookup(S)&&V&&(le=!0,S=Q),this.isValidLookup(S)||(fe=!0,S=d);const re=(a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&fe?void 0:S,se=V&&Q!==S&&this.options.updateMissing;if(fe||le||se){if(this.logger.log(se?"updateKey":"missingKey",y,g,d,se?Q:S),u){const P=this.resolve(d,{...a,keySeparator:!1});P&&P.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let U=[];const G=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&G&&G[0])for(let P=0;P<G.length;P++)U.push(G[P]);else this.options.saveMissingTo==="all"?U=this.languageUtils.toResolveHierarchy(a.lng||this.language):U.push(a.lng||this.language);const z=(P,E,W)=>{const X=V&&W!==S?W:re;this.options.missingKeyHandler?this.options.missingKeyHandler(P,g,E,X,se,a):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(P,g,E,X,se,a),this.emit("missingKey",P,g,E,S)};this.options.saveMissing&&(this.options.saveMissingPlurals&&I?U.forEach(P=>{const E=this.pluralResolver.getSuffixes(P,a);j&&a[`defaultValue${this.options.pluralSeparator}zero`]&&E.indexOf(`${this.options.pluralSeparator}zero`)<0&&E.push(`${this.options.pluralSeparator}zero`),E.forEach(W=>{z([P],d+W,a[`defaultValue${W}`]||Q)})}):z(U,d,Q))}S=this.extendTranslation(S,t,a,b,i),fe&&S===d&&this.options.appendNamespaceToMissingKey&&(S=`${g}${v}${d}`),(fe||le)&&this.options.parseMissingKeyHandler&&(S=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${g}${v}${d}`:d,le?S:void 0,a))}return l?(b.res=S,b.usedParams=this.getUsedParamsDetails(a),b):S}extendTranslation(t,o,i,a,l){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const h=Ne(t)&&(i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let g;if(h){const y=t.match(this.interpolator.nestingRegexp);g=y&&y.length}let v=i.replace&&!Ne(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(v={...this.options.interpolation.defaultVariables,...v}),t=this.interpolator.interpolate(t,v,i.lng||this.language||a.usedLng,i),h){const y=t.match(this.interpolator.nestingRegexp),w=y&&y.length;g<w&&(i.nest=!1)}!i.lng&&a&&a.res&&(i.lng=this.language||a.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,(...y)=>l?.[0]===y[0]&&!i.context?(this.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${o[0]}`),null):this.translate(...y,o),i)),i.interpolation&&this.interpolator.reset()}const u=i.postProcess||this.options.postProcess,d=Ne(u)?[u]:u;return t!=null&&d?.length&&i.applyPostProcessor!==!1&&(t=ym.handle(d,t,o,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t,o={}){let i,a,l,u,d;return Ne(t)&&(t=[t]),t.forEach(h=>{if(this.isValidLookup(i))return;const g=this.extractFromKey(h,o),v=g.key;a=v;let y=g.namespaces;this.options.fallbackNS&&(y=y.concat(this.options.fallbackNS));const w=o.count!==void 0&&!Ne(o.count),b=w&&!o.ordinal&&o.count===0,S=o.context!==void 0&&(Ne(o.context)||typeof o.context=="number")&&o.context!=="",_=o.lngs?o.lngs:this.languageUtils.toResolveHierarchy(o.lng||this.language,o.fallbackLng);y.forEach(k=>{this.isValidLookup(i)||(d=k,!wm[`${_[0]}-${k}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(d)&&(wm[`${_[0]}-${k}`]=!0,this.logger.warn(`key "${a}" for languages "${_.join(", ")}" won't get resolved as namespace "${d}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),_.forEach(T=>{if(this.isValidLookup(i))return;u=T;const D=[v];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(D,v,T,k,o);else{let I;w&&(I=this.pluralResolver.getSuffix(T,o.count,o));const V=`${this.options.pluralSeparator}zero`,L=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(w&&(o.ordinal&&I.indexOf(L)===0&&D.push(v+I.replace(L,this.options.pluralSeparator)),D.push(v+I),b&&D.push(v+V)),S){const B=`${v}${this.options.contextSeparator||"_"}${o.context}`;D.push(B),w&&(o.ordinal&&I.indexOf(L)===0&&D.push(B+I.replace(L,this.options.pluralSeparator)),D.push(B+I),b&&D.push(B+V))}}let N;for(;N=D.pop();)this.isValidLookup(i)||(l=N,i=this.getResource(T,k,N,o))}))})}),{res:i,usedKey:a,exactUsedKey:l,usedLng:u,usedNS:d}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,o,i,a={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,o,i,a):this.resourceStore.getResource(t,o,i,a)}getUsedParamsDetails(t={}){const o=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!Ne(t.replace);let a=i?t.replace:t;if(i&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!i){a={...a};for(const l of o)delete a[l]}return a}static hasDefaultValue(t){const o="defaultValue";for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&o===i.substring(0,o.length)&&t[i]!==void 0)return!0;return!1}}class Sm{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Rn.create("languageUtils")}getScriptPartFromCode(t){if(t=Ti(t),!t||t.indexOf("-")<0)return null;const o=t.split("-");return o.length===2||(o.pop(),o[o.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(o.join("-"))}getLanguagePartFromCode(t){if(t=Ti(t),!t||t.indexOf("-")<0)return t;const o=t.split("-");return this.formatLanguageCode(o[0])}formatLanguageCode(t){if(Ne(t)&&t.indexOf("-")>-1){let o;try{o=Intl.getCanonicalLocales(t)[0]}catch{}return o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let o;return t.forEach(i=>{if(o)return;const a=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(a))&&(o=a)}),!o&&this.options.supportedLngs&&t.forEach(i=>{if(o)return;const a=this.getScriptPartFromCode(i);if(this.isSupportedCode(a))return o=a;const l=this.getLanguagePartFromCode(i);if(this.isSupportedCode(l))return o=l;o=this.options.supportedLngs.find(u=>{if(u===l)return u;if(!(u.indexOf("-")<0&&l.indexOf("-")<0)&&(u.indexOf("-")>0&&l.indexOf("-")<0&&u.substring(0,u.indexOf("-"))===l||u.indexOf(l)===0&&l.length>1))return u})}),o||(o=this.getFallbackCodes(this.options.fallbackLng)[0]),o}getFallbackCodes(t,o){if(!t)return[];if(typeof t=="function"&&(t=t(o)),Ne(t)&&(t=[t]),Array.isArray(t))return t;if(!o)return t.default||[];let i=t[o];return i||(i=t[this.getScriptPartFromCode(o)]),i||(i=t[this.formatLanguageCode(o)]),i||(i=t[this.getLanguagePartFromCode(o)]),i||(i=t.default),i||[]}toResolveHierarchy(t,o){const i=this.getFallbackCodes((o===!1?[]:o)||this.options.fallbackLng||[],t),a=[],l=u=>{u&&(this.isSupportedCode(u)?a.push(u):this.logger.warn(`rejecting language code not found in supportedLngs: ${u}`))};return Ne(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(t))):Ne(t)&&l(this.formatLanguageCode(t)),i.forEach(u=>{a.indexOf(u)<0&&l(this.formatLanguageCode(u))}),a}}const bm={zero:0,one:1,two:2,few:3,many:4,other:5},km={select:r=>r===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Ok{constructor(t,o={}){this.languageUtils=t,this.options=o,this.logger=Rn.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,o){this.rules[t]=o}clearCache(){this.pluralRulesCache={}}getRule(t,o={}){const i=Ti(t==="dev"?"en":t),a=o.ordinal?"ordinal":"cardinal",l=JSON.stringify({cleanedCode:i,type:a});if(l in this.pluralRulesCache)return this.pluralRulesCache[l];let u;try{u=new Intl.PluralRules(i,{type:a})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),km;if(!t.match(/-|_/))return km;const h=this.languageUtils.getLanguagePartFromCode(t);u=this.getRule(h,o)}return this.pluralRulesCache[l]=u,u}needsPlural(t,o={}){let i=this.getRule(t,o);return i||(i=this.getRule("dev",o)),i?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,o,i={}){return this.getSuffixes(t,i).map(a=>`${o}${a}`)}getSuffixes(t,o={}){let i=this.getRule(t,o);return i||(i=this.getRule("dev",o)),i?i.resolvedOptions().pluralCategories.sort((a,l)=>bm[a]-bm[l]).map(a=>`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(t,o,i={}){const a=this.getRule(t,i);return a?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${a.select(o)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",o,i))}}const Cm=(r,t,o,i=".",a=!0)=>{let l=Sk(r,t,o);return!l&&a&&Ne(o)&&(l=tu(r,o,i),l===void 0&&(l=tu(t,o,i))),l},ou=r=>r.replace(/\$/g,"$$$$");class Nk{constructor(t={}){this.logger=Rn.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(o=>o),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:o,escapeValue:i,useRawValueToEscape:a,prefix:l,prefixEscaped:u,suffix:d,suffixEscaped:h,formatSeparator:g,unescapeSuffix:v,unescapePrefix:y,nestingPrefix:w,nestingPrefixEscaped:b,nestingSuffix:S,nestingSuffixEscaped:_,nestingOptionsSeparator:k,maxReplaces:T,alwaysFormat:D}=t.interpolation;this.escape=o!==void 0?o:kk,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=l?$o(l):u||"{{",this.suffix=d?$o(d):h||"}}",this.formatSeparator=g||",",this.unescapePrefix=v?"":y||"-",this.unescapeSuffix=this.unescapePrefix?"":v||"",this.nestingPrefix=w?$o(w):b||$o("$t("),this.nestingSuffix=S?$o(S):_||$o(")"),this.nestingOptionsSeparator=k||",",this.maxReplaces=T||1e3,this.alwaysFormat=D!==void 0?D:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(o,i)=>o?.source===i?(o.lastIndex=0,o):new RegExp(i,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,o,i,a){let l,u,d;const h=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},g=b=>{if(b.indexOf(this.formatSeparator)<0){const T=Cm(o,h,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(T,void 0,i,{...a,...o,interpolationkey:b}):T}const S=b.split(this.formatSeparator),_=S.shift().trim(),k=S.join(this.formatSeparator).trim();return this.format(Cm(o,h,_,this.options.keySeparator,this.options.ignoreJSONStructure),k,i,{...a,...o,interpolationkey:_})};this.resetRegExp();const v=a?.missingInterpolationHandler||this.options.missingInterpolationHandler,y=a?.interpolation?.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>ou(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?ou(this.escape(b)):ou(b)}].forEach(b=>{for(d=0;l=b.regex.exec(t);){const S=l[1].trim();if(u=g(S),u===void 0)if(typeof v=="function"){const k=v(t,l,a);u=Ne(k)?k:""}else if(a&&Object.prototype.hasOwnProperty.call(a,S))u="";else if(y){u=l[0];continue}else this.logger.warn(`missed to pass in variable ${S} for interpolating ${t}`),u="";else!Ne(u)&&!this.useRawValueToEscape&&(u=fm(u));const _=b.safeValue(u);if(t=t.replace(l[0],_),y?(b.regex.lastIndex+=u.length,b.regex.lastIndex-=l[0].length):b.regex.lastIndex=0,d++,d>=this.maxReplaces)break}}),t}nest(t,o,i={}){let a,l,u;const d=(h,g)=>{const v=this.nestingOptionsSeparator;if(h.indexOf(v)<0)return h;const y=h.split(new RegExp(`${v}[ ]*{`));let w=`{${y[1]}`;h=y[0],w=this.interpolate(w,u);const b=w.match(/'/g),S=w.match(/"/g);((b?.length??0)%2===0&&!S||S.length%2!==0)&&(w=w.replace(/'/g,'"'));try{u=JSON.parse(w),g&&(u={...g,...u})}catch(_){return this.logger.warn(`failed parsing options string in nesting for key ${h}`,_),`${h}${v}${w}`}return u.defaultValue&&u.defaultValue.indexOf(this.prefix)>-1&&delete u.defaultValue,h};for(;a=this.nestingRegexp.exec(t);){let h=[];u={...i},u=u.replace&&!Ne(u.replace)?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;const g=/{.*}/.test(a[1])?a[1].lastIndexOf("}")+1:a[1].indexOf(this.formatSeparator);if(g!==-1&&(h=a[1].slice(g).split(this.formatSeparator).map(v=>v.trim()).filter(Boolean),a[1]=a[1].slice(0,g)),l=o(d.call(this,a[1].trim(),u),u),l&&a[0]===t&&!Ne(l))return l;Ne(l)||(l=fm(l)),l||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),l=""),h.length&&(l=h.reduce((v,y)=>this.format(v,y,i.lng,{...i,interpolationkey:a[1].trim()}),l.trim())),t=t.replace(a[0],l),this.regexp.lastIndex=0}return t}}const Tk=r=>{let t=r.toLowerCase().trim();const o={};if(r.indexOf("(")>-1){const i=r.split("(");t=i[0].toLowerCase().trim();const a=i[1].substring(0,i[1].length-1);t==="currency"&&a.indexOf(":")<0?o.currency||(o.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?o.range||(o.range=a.trim()):a.split(";").forEach(u=>{if(u){const[d,...h]=u.split(":"),g=h.join(":").trim().replace(/^'+|'+$/g,""),v=d.trim();o[v]||(o[v]=g),g==="false"&&(o[v]=!1),g==="true"&&(o[v]=!0),isNaN(g)||(o[v]=parseInt(g,10))}})}return{formatName:t,formatOptions:o}},_m=r=>{const t={};return(o,i,a)=>{let l=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(l={...l,[a.interpolationkey]:void 0});const u=i+JSON.stringify(l);let d=t[u];return d||(d=r(Ti(i),a),t[u]=d),d(o)}},Ak=r=>(t,o,i)=>r(Ti(o),i)(t);class Dk{constructor(t={}){this.logger=Rn.create("formatter"),this.options=t,this.init(t)}init(t,o={interpolation:{}}){this.formatSeparator=o.interpolation.formatSeparator||",";const i=o.cacheInBuiltFormats?_m:Ak;this.formats={number:i((a,l)=>{const u=new Intl.NumberFormat(a,{...l});return d=>u.format(d)}),currency:i((a,l)=>{const u=new Intl.NumberFormat(a,{...l,style:"currency"});return d=>u.format(d)}),datetime:i((a,l)=>{const u=new Intl.DateTimeFormat(a,{...l});return d=>u.format(d)}),relativetime:i((a,l)=>{const u=new Intl.RelativeTimeFormat(a,{...l});return d=>u.format(d,l.range||"day")}),list:i((a,l)=>{const u=new Intl.ListFormat(a,{...l});return d=>u.format(d)})}}add(t,o){this.formats[t.toLowerCase().trim()]=o}addCached(t,o){this.formats[t.toLowerCase().trim()]=_m(o)}format(t,o,i,a={}){const l=o.split(this.formatSeparator);if(l.length>1&&l[0].indexOf("(")>1&&l[0].indexOf(")")<0&&l.find(d=>d.indexOf(")")>-1)){const d=l.findIndex(h=>h.indexOf(")")>-1);l[0]=[l[0],...l.splice(1,d)].join(this.formatSeparator)}return l.reduce((d,h)=>{const{formatName:g,formatOptions:v}=Tk(h);if(this.formats[g]){let y=d;try{const w=a?.formatParams?.[a.interpolationkey]||{},b=w.locale||w.lng||a.locale||a.lng||i;y=this.formats[g](d,b,{...v,...a,...w})}catch(w){this.logger.warn(w)}return y}else this.logger.warn(`there was no format function for ${g}`);return d},t)}}const Lk=(r,t)=>{r.pending[t]!==void 0&&(delete r.pending[t],r.pendingCount--)};class $k extends pa{constructor(t,o,i,a={}){super(),this.backend=t,this.store=o,this.services=i,this.languageUtils=i.languageUtils,this.options=a,this.logger=Rn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(i,a.backend,a)}queueLoad(t,o,i,a){const l={},u={},d={},h={};return t.forEach(g=>{let v=!0;o.forEach(y=>{const w=`${g}|${y}`;!i.reload&&this.store.hasResourceBundle(g,y)?this.state[w]=2:this.state[w]<0||(this.state[w]===1?u[w]===void 0&&(u[w]=!0):(this.state[w]=1,v=!1,u[w]===void 0&&(u[w]=!0),l[w]===void 0&&(l[w]=!0),h[y]===void 0&&(h[y]=!0)))}),v||(d[g]=!0)}),(Object.keys(l).length||Object.keys(u).length)&&this.queue.push({pending:u,pendingCount:Object.keys(u).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(l),pending:Object.keys(u),toLoadLanguages:Object.keys(d),toLoadNamespaces:Object.keys(h)}}loaded(t,o,i){const a=t.split("|"),l=a[0],u=a[1];o&&this.emit("failedLoading",l,u,o),!o&&i&&this.store.addResourceBundle(l,u,i,void 0,void 0,{skipCopy:!0}),this.state[t]=o?-1:2,o&&i&&(this.state[t]=0);const d={};this.queue.forEach(h=>{wk(h.loaded,[l],u),Lk(h,t),o&&h.errors.push(o),h.pendingCount===0&&!h.done&&(Object.keys(h.loaded).forEach(g=>{d[g]||(d[g]={});const v=h.loaded[g];v.length&&v.forEach(y=>{d[g][y]===void 0&&(d[g][y]=!0)})}),h.done=!0,h.errors.length?h.callback(h.errors):h.callback())}),this.emit("loaded",d),this.queue=this.queue.filter(h=>!h.done)}read(t,o,i,a=0,l=this.retryTimeout,u){if(!t.length)return u(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:o,fcName:i,tried:a,wait:l,callback:u});return}this.readingCalls++;const d=(g,v)=>{if(this.readingCalls--,this.waitingReads.length>0){const y=this.waitingReads.shift();this.read(y.lng,y.ns,y.fcName,y.tried,y.wait,y.callback)}if(g&&v&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,t,o,i,a+1,l*2,u)},l);return}u(g,v)},h=this.backend[i].bind(this.backend);if(h.length===2){try{const g=h(t,o);g&&typeof g.then=="function"?g.then(v=>d(null,v)).catch(d):d(null,g)}catch(g){d(g)}return}return h(t,o,d)}prepareLoading(t,o,i={},a){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();Ne(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Ne(o)&&(o=[o]);const l=this.queueLoad(t,o,i,a);if(!l.toLoad.length)return l.pending.length||a(),null;l.toLoad.forEach(u=>{this.loadOne(u)})}load(t,o,i){this.prepareLoading(t,o,{},i)}reload(t,o,i){this.prepareLoading(t,o,{reload:!0},i)}loadOne(t,o=""){const i=t.split("|"),a=i[0],l=i[1];this.read(a,l,"read",void 0,void 0,(u,d)=>{u&&this.logger.warn(`${o}loading namespace ${l} for language ${a} failed`,u),!u&&d&&this.logger.log(`${o}loaded namespace ${l} for language ${a}`,d),this.loaded(t,u,d)})}saveMissing(t,o,i,a,l,u={},d=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(o)){this.logger.warn(`did not save key "${i}" as the namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend?.create){const h={...u,isUpdate:l},g=this.backend.create.bind(this.backend);if(g.length<6)try{let v;g.length===5?v=g(t,o,i,a,h):v=g(t,o,i,a),v&&typeof v.then=="function"?v.then(y=>d(null,y)).catch(d):d(null,v)}catch(v){d(v)}else g(t,o,i,a,d,h)}!t||!t[0]||this.store.addResource(t[0],o,i,a)}}}const Em=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:r=>{let t={};if(typeof r[1]=="object"&&(t=r[1]),Ne(r[1])&&(t.defaultValue=r[1]),Ne(r[2])&&(t.tDescription=r[2]),typeof r[2]=="object"||typeof r[3]=="object"){const o=r[3]||r[2];Object.keys(o).forEach(i=>{t[i]=o[i]})}return t},interpolation:{escapeValue:!0,format:r=>r,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Rm=r=>(Ne(r.ns)&&(r.ns=[r.ns]),Ne(r.fallbackLng)&&(r.fallbackLng=[r.fallbackLng]),Ne(r.fallbackNS)&&(r.fallbackNS=[r.fallbackNS]),r.supportedLngs?.indexOf?.("cimode")<0&&(r.supportedLngs=r.supportedLngs.concat(["cimode"])),typeof r.initImmediate=="boolean"&&(r.initAsync=r.initImmediate),r),ma=()=>{},jk=r=>{Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(o=>{typeof r[o]=="function"&&(r[o]=r[o].bind(r))})};class Ai extends pa{constructor(t={},o){if(super(),this.options=Rm(t),this.services={},this.logger=Rn,this.modules={external:[]},jk(this),o&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,o),this;setTimeout(()=>{this.init(t,o)},0)}}init(t={},o){this.isInitializing=!0,typeof t=="function"&&(o=t,t={}),t.defaultNS==null&&t.ns&&(Ne(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const i=Em();this.options={...i,...this.options,...Rm(t)},this.options.interpolation={...i.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const a=g=>g?typeof g=="function"?new g:g:null;if(!this.options.isClone){this.modules.logger?Rn.init(a(this.modules.logger),this.options):Rn.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:g=Dk;const v=new Sm(this.options);this.store=new vm(this.options.resources,this.options);const y=this.services;y.logger=Rn,y.resourceStore=this.store,y.languageUtils=v,y.pluralResolver=new Ok(v,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),g&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(y.formatter=a(g),y.formatter.init&&y.formatter.init(y,this.options),this.options.interpolation.format=y.formatter.format.bind(y.formatter)),y.interpolator=new Nk(this.options),y.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},y.backendConnector=new $k(a(this.modules.backend),y.resourceStore,y,this.options),y.backendConnector.on("*",(b,...S)=>{this.emit(b,...S)}),this.modules.languageDetector&&(y.languageDetector=a(this.modules.languageDetector),y.languageDetector.init&&y.languageDetector.init(y,this.options.detection,this.options)),this.modules.i18nFormat&&(y.i18nFormat=a(this.modules.i18nFormat),y.i18nFormat.init&&y.i18nFormat.init(this)),this.translator=new ha(this.services,this.options),this.translator.on("*",(b,...S)=>{this.emit(b,...S)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,o||(o=ma),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(g=>{this[g]=(...v)=>this.store[g](...v)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=(...v)=>(this.store[g](...v),this)});const d=Oi(),h=()=>{const g=(v,y)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),d.resolve(y),o(v,y)};if(this.languages&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)};return this.options.resources||!this.options.initAsync?h():setTimeout(h,0),d}loadResources(t,o=ma){let i=o;const a=Ne(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(a?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const l=[],u=d=>{if(!d||d==="cimode")return;this.services.languageUtils.toResolveHierarchy(d).forEach(g=>{g!=="cimode"&&l.indexOf(g)<0&&l.push(g)})};a?u(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(h=>u(h)),this.options.preload?.forEach?.(d=>u(d)),this.services.backendConnector.load(l,this.options.ns,d=>{!d&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(d)})}else i(null)}reloadResources(t,o,i){const a=Oi();return typeof t=="function"&&(i=t,t=void 0),typeof o=="function"&&(i=o,o=void 0),t||(t=this.languages),o||(o=this.options.ns),i||(i=ma),this.services.backendConnector.reload(t,o,l=>{a.resolve(),i(l)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ym.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let o=0;o<this.languages.length;o++){const i=this.languages[o];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,o){this.isLanguageChangingTo=t;const i=Oi();this.emit("languageChanging",t);const a=d=>{this.language=d,this.languages=this.services.languageUtils.toResolveHierarchy(d),this.resolvedLanguage=void 0,this.setResolvedLanguage(d)},l=(d,h)=>{h?this.isLanguageChangingTo===t&&(a(h),this.translator.changeLanguage(h),this.isLanguageChangingTo=void 0,this.emit("languageChanged",h),this.logger.log("languageChanged",h)):this.isLanguageChangingTo=void 0,i.resolve((...g)=>this.t(...g)),o&&o(d,(...g)=>this.t(...g))},u=d=>{!t&&!d&&this.services.languageDetector&&(d=[]);const h=Ne(d)?d:d&&d[0],g=this.store.hasLanguageSomeTranslations(h)?h:this.services.languageUtils.getBestMatchFromCodes(Ne(d)?[d]:d);g&&(this.language||a(g),this.translator.language||this.translator.changeLanguage(g),this.services.languageDetector?.cacheUserLanguage?.(g)),this.loadResources(g,v=>{l(v,g)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(t),i}getFixedT(t,o,i){const a=(l,u,...d)=>{let h;typeof u!="object"?h=this.options.overloadTranslationOptionHandler([l,u].concat(d)):h={...u},h.lng=h.lng||a.lng,h.lngs=h.lngs||a.lngs,h.ns=h.ns||a.ns,h.keyPrefix!==""&&(h.keyPrefix=h.keyPrefix||i||a.keyPrefix);const g=this.options.keySeparator||".";let v;return h.keyPrefix&&Array.isArray(l)?v=l.map(y=>(typeof y=="function"&&(y=nu(y,{...this.options,...u})),`${h.keyPrefix}${g}${y}`)):(typeof l=="function"&&(l=nu(l,{...this.options,...u})),v=h.keyPrefix?`${h.keyPrefix}${g}${l}`:l),this.t(v,h)};return Ne(t)?a.lng=t:a.lngs=t,a.ns=o,a.keyPrefix=i,a}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,o={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const i=o.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const u=(d,h)=>{const g=this.services.backendConnector.state[`${d}|${h}`];return g===-1||g===0||g===2};if(o.precheck){const d=o.precheck(this,u);if(d!==void 0)return d}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||u(i,t)&&(!a||u(l,t)))}loadNamespaces(t,o){const i=Oi();return this.options.ns?(Ne(t)&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{i.resolve(),o&&o(a)}),i):(o&&o(),Promise.resolve())}loadLanguages(t,o){const i=Oi();Ne(t)&&(t=[t]);const a=this.options.preload||[],l=t.filter(u=>a.indexOf(u)<0&&this.services.languageUtils.isSupportedCode(u));return l.length?(this.options.preload=a.concat(l),this.loadResources(u=>{i.resolve(),o&&o(u)}),i):(o&&o(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{const a=new Intl.Locale(t);if(a&&a.getTextInfo){const l=a.getTextInfo();if(l&&l.direction)return l.direction}}catch{}const o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services?.languageUtils||new Sm(Em());return t.toLowerCase().indexOf("-latn")>1?"ltr":o.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},o){return new Ai(t,o)}cloneInstance(t={},o=ma){const i=t.forkResourceStore;i&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},l=new Ai(a);if((t.debug!==void 0||t.prefix!==void 0)&&(l.logger=l.logger.clone(t)),["store","services","language"].forEach(d=>{l[d]=this[d]}),l.services={...this.services},l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},i){const d=Object.keys(this.store.data).reduce((h,g)=>(h[g]={...this.store.data[g]},h[g]=Object.keys(h[g]).reduce((v,y)=>(v[y]={...h[g][y]},v),h[g]),h),{});l.store=new vm(d,a),l.services.resourceStore=l.store}return l.translator=new ha(l.services,a),l.translator.on("*",(d,...h)=>{l.emit(d,...h)}),l.init(a,o),l.translator.options=a,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ot=Ai.createInstance();Ot.createInstance=Ai.createInstance;const Mk=Ot.createInstance;Ot.dir,Ot.init,Ot.loadResources,Ot.reloadResources,Ot.use,Ot.changeLanguage,Ot.getFixedT,Ot.t,Ot.exists,Ot.setDefaultNamespace,Ot.hasLoadedNamespace,Ot.loadNamespaces,Ot.loadLanguages;const zk=Symbol("remote-view.message");class Fk extends Error{constructor(t,o,i){super(),this.key=t,this.values=o,Object.defineProperty(this,"message",{configurable:!0,get:()=>i(t,o)}),this.name="ViewMessageError"}key;values}const iu={en:{close:"Close",commandTitle:"Command palette",commandDescription:"Search for a command to run…"},"zh-Hans":{close:"关闭",commandTitle:"命令面板",commandDescription:"搜索要运行的命令…"},"zh-Hant":{close:"關閉",commandTitle:"命令面板",commandDescription:"搜尋要執行的命令…"}};function Pm(r){try{const t=new Intl.Locale((r||"en").replaceAll("_","-"));return t.language==="zh"?t.maximize().script==="Hant"?"zh-Hant":"zh-Hans":"en"}catch{return"en"}}function Im(r,t=typeof navigator>"u"?"en":navigator.language){const o=d=>{const h=Pm(d);return h==="zh-Hant"&&!r["zh-Hant"]?"zh-Hans":h},i=Mk();i.init({lng:o(t),fallbackLng:"en",supportedLngs:["en","zh-Hans","zh-Hant"],load:"currentOnly",initAsync:!1,keySeparator:!1,defaultNS:"view",interpolation:{escapeValue:!1},resources:{en:{view:r.en,ui:iu.en},"zh-Hans":{view:r["zh-Hans"],ui:iu["zh-Hans"]},"zh-Hant":{view:r["zh-Hant"]??r["zh-Hans"],ui:iu["zh-Hant"]}}});const a=()=>o(i.resolvedLanguage??i.language),l=d=>(i.on("languageChanged",d),()=>{i.off("languageChanged",d)}),u=(d,h)=>String(i.t(d,h));return{getLocale:a,subscribe:l,setLocale(d){d!==void 0&&i.changeLanguage(o(d)),typeof document<"u"&&(document.documentElement.lang=a())},t:(d,h)=>u(d,h),message:(d,h)=>({[zk]:!0,key:d,values:h}),error:(d,h)=>new Fk(d,h,u),format(d){return typeof d=="string"?d:d instanceof Error?d.message:u(d.key,d.values)},ui:d=>String(i.t(d,{ns:"ui"})),date(d,h={}){const g=new Date(d);return Number.isNaN(g.getTime())?"":new Intl.DateTimeFormat(a(),h).format(g)},number(d,h){return new Intl.NumberFormat(a(),h).format(d)},label(d,h=""){if(typeof d=="string")return d;const g=Object.entries(d),v=a();return g.find(([y])=>Pm(y)===v&&/^(en|zh)([-_]|$)/i.test(y))?.[1]??d.en_US??d.en??d["en-US"]??h}}}const Vk=Im({en:{},"zh-Hans":{}},"en"),Om=m.createContext(Vk);function Uk({i18n:r,children:t}){return A.jsx(Om.Provider,{value:r,children:t})}function Bk(r){return m.useSyncExternalStore(r.subscribe,r.getLocale,r.getLocale)}function Nm(){const r=m.useContext(Om);return Bk(r),r.ui}m.createContext(null);function We(...r){return d0(Pf(r))}const su=em("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}}),yt=m.forwardRef(function({className:r,variant:t="default",size:o="default",asChild:i=!1,...a},l){const u=i?I0:"button";return A.jsx(u,{ref:l,"data-slot":"button","data-variant":t,"data-size":o,className:We(su({variant:t,size:o,className:r})),...a})});function Hk({...r}){return A.jsx(ES,{"data-slot":"alert-dialog",...r})}function Wk({...r}){return A.jsx(RS,{"data-slot":"alert-dialog-portal",...r})}function Kk({className:r,...t}){return A.jsx(PS,{"data-slot":"alert-dialog-overlay",className:We("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",r),...t})}function Zk({className:r,size:t="default",...o}){return A.jsxs(Wk,{children:[A.jsx(Kk,{}),A.jsx(IS,{"data-slot":"alert-dialog-content","data-size":t,className:We("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",r),...o})]})}function qk({className:r,...t}){return A.jsx("div",{"data-slot":"alert-dialog-footer",className:We("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",r),...t})}function Gk({className:r,...t}){return A.jsx(NS,{"data-slot":"alert-dialog-title",className:We("text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",r),...t})}function Qk({className:r,...t}){return A.jsx(TS,{"data-slot":"alert-dialog-description",className:We("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",r),...t})}function Yk({className:r,variant:t="outline",size:o="default",...i}){return A.jsx(yt,{variant:t,size:o,asChild:!0,children:A.jsx(OS,{"data-slot":"alert-dialog-cancel",className:We(r),...i})})}function Xk({...r}){return A.jsx(Cc,{"data-slot":"dialog",...r})}function Jk({...r}){return A.jsx(_c,{"data-slot":"dialog-portal",...r})}function eC({className:r,...t}){return A.jsx(Rc,{"data-slot":"dialog-overlay",className:We("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",r),...t})}function tC({className:r,children:t,showCloseButton:o=!0,...i}){const a=Nm();return A.jsxs(Jk,{children:[A.jsx(eC,{}),A.jsxs(Pc,{"data-slot":"dialog-content",className:We("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",r),...i,children:[t,o&&A.jsx(Ks,{"data-slot":"dialog-close",asChild:!0,children:A.jsxs(yt,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm",children:[A.jsx(C0,{}),A.jsx("span",{className:"sr-only",children:a("close")})]})})]})]})}function nC({className:r,...t}){return A.jsx("div",{"data-slot":"dialog-header",className:We("flex flex-col gap-2",r),...t})}function rC({className:r,showCloseButton:t=!1,children:o,...i}){const a=Nm();return A.jsxs("div",{"data-slot":"dialog-footer",className:We("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",r),...i,children:[o,t&&A.jsx(Ks,{asChild:!0,children:A.jsx(yt,{variant:"outline",children:a("close")})})]})}function oC({className:r,...t}){return A.jsx(sh,{"data-slot":"dialog-title",className:We("text-base leading-none font-medium",r),...t})}function iC({className:r,...t}){return A.jsx(ah,{"data-slot":"dialog-description",className:We("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",r),...t})}function Tm({className:r,type:t,...o}){return A.jsx("input",{type:t,"data-slot":"input",className:We("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",r),...o})}function sC({className:r,...t}){return A.jsx("textarea",{"data-slot":"textarea",className:We("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",r),...t})}function aC({className:r,...t}){return A.jsx("div",{"data-slot":"input-group",role:"group",className:We("group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5",r),...t})}const lC=em("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]","inline-end":"order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]","block-start":"order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2","block-end":"order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"}},defaultVariants:{align:"inline-start"}});function cC({className:r,align:t="inline-start",...o}){return A.jsx("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:We(lC({align:t}),r),onClick:i=>{i.target.closest("button")||i.currentTarget.parentElement?.querySelector("input")?.focus()},...o})}function uC({className:r,...t}){return A.jsx(Ii,{"data-slot":"command",className:We("flex size-full flex-col overflow-hidden rounded-xl! bg-popover p-1 text-popover-foreground",r),...t})}function dC({className:r,...t}){return A.jsx("div",{"data-slot":"command-input-wrapper",className:"p-1 pb-0",children:A.jsxs(aC,{className:"h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!",children:[A.jsx(Ii.Input,{"data-slot":"command-input",className:We("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",r),...t}),A.jsx(cC,{children:A.jsx(b0,{className:"size-4 shrink-0 opacity-50"})})]})})}function fC({className:r,...t}){return A.jsx(Ii.List,{"data-slot":"command-list",className:We("no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none",r),...t})}function pC({className:r,...t}){return A.jsx(Ii.Empty,{"data-slot":"command-empty",className:We("py-6 text-center text-sm",r),...t})}function hC({className:r,children:t,...o}){return A.jsxs(Ii.Item,{"data-slot":"command-item",className:We("group/command-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-selected:*:[svg]:text-foreground",r),...o,children:[t,A.jsx(Yf,{className:"ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100"})]})}function Am({...r}){return A.jsx(ub,{"data-slot":"popover",...r})}function Dm({...r}){return A.jsx(db,{"data-slot":"popover-trigger",...r})}function Lm({className:r,align:t="center",sideOffset:o=4,...i}){return A.jsx(fb,{children:A.jsx(pb,{"data-slot":"popover-content",align:t,sideOffset:o,className:We("z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",r),...i})})}function jo({...r}){return A.jsx(Sb,{"data-slot":"select",...r})}function Mo({...r}){return A.jsx(_b,{"data-slot":"select-value",...r})}function zo({className:r,size:t="default",children:o,...i}){return A.jsxs(kb,{"data-slot":"select-trigger","data-size":t,className:We("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",r),...i,children:[o,A.jsx(Eb,{asChild:!0,children:A.jsx(Zl,{className:"pointer-events-none size-4 text-muted-foreground"})})]})}function Fo({className:r,children:t,position:o="item-aligned",align:i="center",...a}){return A.jsx(Ob,{children:A.jsxs(Nb,{"data-slot":"select-content","data-align-trigger":o==="item-aligned",className:We("relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",o==="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",r),position:o,align:i,...a,children:[A.jsx(mC,{}),A.jsx(jb,{"data-position":o,className:We("data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)",o==="popper"&&""),children:t}),A.jsx(gC,{})]})})}function ln({className:r,children:t,...o}){return A.jsxs(Fb,{"data-slot":"select-item",className:We("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground 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",r),...o,children:[A.jsx("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center",children:A.jsx(Bb,{children:A.jsx(Yf,{className:"pointer-events-none"})})}),A.jsx(Vb,{children:t})]})}function mC({className:r,...t}){return A.jsx(Hb,{"data-slot":"select-scroll-up-button",className:We("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",r),...t,children:A.jsx(Xf,{})})}function gC({className:r,...t}){return A.jsx(Wb,{"data-slot":"select-scroll-down-button",className:We("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",r),...t,children:A.jsx(Zl,{})})}m.createContext(null),m.createContext({size:"default",variant:"default",spacing:2,orientation:"horizontal"});const Qn=ne().regex(/^[A-Za-z][A-Za-z0-9_.-]{0,79}$/),au=zn([ne().max(4e3),ft().finite(),Lt(),cr()]),Yn=Sx(()=>zn([ne().max(32e3),ft().finite(),Lt(),cr(),nt(Yn).max(1e3),ur(Yn)])),lu=Ef("kind",[we({kind:Xe("data-source"),dataSourceId:ne().uuid()}).strict(),we({kind:Xe("definition"),definitionId:ne().uuid(),versionId:ne().uuid()}).strict(),we({kind:Xe("artifact"),artifactId:ne().uuid(),versionId:ne().uuid()}).strict()]);ur(Yn);const vC=we({id:Qn,sourceField:ne().min(1).max(256),label:ne().min(1).max(160),logicalType:Fn(["string","boolean","int64","float64","decimal","date","timestamp"]),nullable:Lt(),role:Fn(["dimension","measure","time","identifier"]),semanticRef:ne().max(512).optional(),unit:ne().max(80).optional()}).strict(),yC=we({name:Qn,controlId:Qn,type:Fn(["string","number","boolean","date"]),required:Lt(),defaultValue:au.optional(),allowedValues:nt(au).max(200).optional()}).strict(),xC=we({id:Qn,source:lu,providerId:ne().min(1).max(160),operation:Qn,contractVersion:ft().int().positive(),payload:Yn,parameters:nt(yC).max(24),output:we({datasetId:Qn,fields:nt(vC).min(1).max(80),grain:nt(Qn).max(20)}).strict()}).strict();function wC(r,t){const o=r.output.fields.map(a=>a.id),i=r.parameters.map(a=>a.name);(new Set(o).size!==o.length||new Set(i).size!==i.length)&&t.addIssue({code:"custom",message:"Duplicate field or parameter identifier"}),(new Set(r.output.grain).size!==r.output.grain.length||r.output.grain.some(a=>!o.includes(a)))&&t.addIssue({code:"custom",message:"Grain references an undeclared field"}),new TextEncoder().encode(JSON.stringify(r.payload)).byteLength>64e3&&t.addIssue({code:"custom",message:"Query payload exceeds limit"})}const $m=xC.superRefine(wC),SC=ur(Qn,au).default({});we({binding:$m,controls:SC}).strict(),we({source:lu,providerId:ne().min(1).max(160),request:Yn.default({})}).strict().refine(r=>new TextEncoder().encode(JSON.stringify(r)).byteLength<=16e3,"Discovery request exceeds limit"),we({items:nt(we({id:ne().min(1).max(512),name:ne().min(1).max(512),kind:Fn(["collection","dataset"]),description:ne().max(4e3).optional(),inspectRequest:Yn.optional(),metadata:Yn}).strict()).max(50),nextRequest:Yn.optional(),queryContract:we({operation:Qn,contractVersion:ft().int().positive(),payloadSchema:Yn,instructions:ne().max(8e3)}).strict()}).strict().refine(r=>new TextEncoder().encode(JSON.stringify(r)).byteLength<=128e3,"Discovery response exceeds limit");function bC(r,t){if(r==null)return{};var o={},i=Object.keys(r),a,l;for(l=0;l<i.length;l++)a=i[l],!(t.indexOf(a)>=0)&&(o[a]=r[a]);return o}const jm="xpert.artifact-document",Mm=1,ga=ne().regex(/^[A-Za-z][A-Za-z0-9_.-]{0,79}$/),kC=zn([ne().max(4e3),ft().finite(),Lt(),cr()]),zm=ur(ga,kC).refine(r=>Object.keys(r).length<=24,"Too many controls"),CC=we({type:Xe("query"),requestId:ne().min(1).max(80),bindingId:ga,controls:zm}).strict(),_C=we({bindingIds:nt(ga).max(64).refine(r=>new Set(r).size===r.length,"Duplicate binding IDs"),defaults:zm,theme:Fn(["light","dark"]),locale:ne().min(1).max(80)}).strict(),Fm=ne().min(1).max(3e5).superRefine((r,t)=>{(new TextEncoder().encode(r).byteLength>3e5||!/<html[\s>]/i.test(r)||!/<body[\s>]/i.test(r))&&t.addIssue({code:"custom",message:"Supply a complete UTF-8 HTML document, at most 300 KB"})}),EC=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Pn=(r,t)=>r>>>t|r<<32-t;function RC(r){const t=new Uint8Array(Math.ceil((r.length+9)/64)*64);t.set(r),t[r.length]=128;const o=new DataView(t.buffer);o.setUint32(t.length-8,Math.floor(r.length/536870912)),o.setUint32(t.length-4,r.length*8>>>0);const i=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),a=new Uint32Array(64);for(let l=0;l<t.length;l+=64){for(let S=0;S<16;S++)a[S]=o.getUint32(l+S*4);for(let S=16;S<64;S++){const _=a[S-15],k=a[S-2],T=Pn(_,7)^Pn(_,18)^_>>>3,D=Pn(k,17)^Pn(k,19)^k>>>10;a[S]=a[S-16]+T+a[S-7]+D>>>0}let[u,d,h,g,v,y,w,b]=i;for(let S=0;S<64;S++){const _=Pn(v,6)^Pn(v,11)^Pn(v,25),k=v&y^~v&w,T=b+_+k+EC[S]+a[S]>>>0,D=Pn(u,2)^Pn(u,13)^Pn(u,22),N=u&d^u&h^d&h,I=D+N>>>0;b=w,w=y,y=v,v=g+T>>>0,g=h,h=d,d=u,u=T+I>>>0}i[0]=i[0]+u>>>0,i[1]=i[1]+d>>>0,i[2]=i[2]+h>>>0,i[3]=i[3]+g>>>0,i[4]=i[4]+v>>>0,i[5]=i[5]+y>>>0,i[6]=i[6]+w>>>0,i[7]=i[7]+b>>>0}return Array.from(i,l=>l.toString(16).padStart(8,"0")).join("")}const Vm=we({id:ga,version:ne().regex(/^\d+\.\d+\.\d+(?:-[A-Za-z0-9.-]+)?$/),format:Xe("classic-script"),global:ne().regex(/^[A-Za-z_$][A-Za-z0-9_$]{0,79}$/).refine(r=>!["window","self","globalThis","document","parent","top","location","xpertLiveArtifact","__proto__","constructor","prototype"].includes(r)),sha256:ne().regex(/^[a-f0-9]{64}$/)}).strict(),PC=Vm.transform(r=>({id:r.id,version:r.version,format:"classic-script",global:r.global,sha256:r.sha256})),cu=nt(PC).max(8).superRefine((r,t)=>{(new Set(r.map(o=>o.id)).size!==r.length||new Set(r.map(o=>o.global)).size!==r.length)&&t.addIssue({code:"custom",message:"Duplicate dependency ID or global"})}),Um=nt(Vm.extend({source:ne().min(1).max(4e6)}).strict().transform(r=>({id:r.id,version:r.version,format:"classic-script",global:r.global,sha256:r.sha256,source:r.source}))).max(8);function Bm(r,t){const o=Um.parse(r),i=cu.parse(o.map(l=>{var{source:u}=l,d=bC(l,["source"]);return d}));let a=0;for(const l of o){const u=new TextEncoder().encode(l.source);if(a+=u.length,u.length>4e6||a>8e6)throw new Error("DOCUMENT_DEPENDENCY_TOO_LARGE");if(RC(u)!==l.sha256)throw new Error("DOCUMENT_DEPENDENCY_INTEGRITY_FAILED")}if(t&&JSON.stringify(cu.parse(t))!==JSON.stringify(i))throw new Error("DOCUMENT_DEPENDENCY_LOCK_MISMATCH");return o.map(l=>({id:l.id,version:l.version,global:l.global,sha256:l.sha256,source:l.source,format:"classic-script"}))}function IC(r){const t=o=>JSON.stringify(o).replace(/</g,"\\u003c").replace(/>/g,"\\u003e");return Bm(r).map(o=>`<script>(()=>{const s=document.createElement('script');s.textContent=${t(o.source)};document.head.appendChild(s);s.remove();if(typeof window[${t(o.global)}]==='undefined')throw new Error('DOCUMENT_DEPENDENCY_GLOBAL_MISSING');})();<\/script>`).join("")}const OC=ne().max(250).refine(r=>{try{const t=new URL(r);return t.protocol==="https:"&&t.origin===r&&!t.username&&!t.password&&/^(?:[a-z0-9.-]+|\[[a-f0-9:]+\])$/i.test(t.hostname)}catch{return!1}},"Use an exact HTTPS origin without a path, credentials or wildcard"),va=nt(OC).max(16),NC=we({scripts:va.optional(),styles:va.optional(),fonts:va.optional(),images:va.optional()}).strict();function Hm(r){const t=NC.parse(r??{}),o=i=>i?.length?` ${[...new Set(i)].join(" ")}`:"";return["default-src 'none'",`script-src 'unsafe-inline'${o(t.scripts)}`,`style-src 'unsafe-inline'${o(t.styles)}`,`img-src data: blob:${o(t.images)}`,`font-src data:${o(t.fonts)}`,"connect-src 'none'","frame-src 'none'","worker-src 'none'","object-src 'none'","base-uri 'none'","form-action 'none'"].join("; ")}Hm();function TC(r,t,o=[],i){if(Fm.parse(r),!/^[a-f0-9]{32}$/.test(t))throw new Error("Invalid Artifact document session ID");return`<!doctype html><meta charset="utf-8"><meta http-equiv="Content-Security-Policy" content="${Hm(i)}"><script>${AC.replace("__XPERT_DOCUMENT_SESSION__",t)}<\/script>${IC(o)}${r}`}const AC=String.raw`
|
|
103
|
+
`)},nS=0,Ao=[];function rS(r){var t=m.useRef([]),o=m.useRef([0,0]),i=m.useRef(),a=m.useState(nS++)[0],l=m.useState(Xp)[0],u=m.useRef(r);m.useEffect(function(){u.current=r},[r]),m.useEffect(function(){if(r.inert){document.body.classList.add("block-interactivity-".concat(a));var _=Cw([r.lockRef.current],(r.shards||[]).map(ih),!0).filter(Boolean);return _.forEach(function(k){return k.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),_.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(a))})}}},[r.inert,r.lockRef.current,r.shards]);var d=m.useCallback(function(_,k){if("touches"in _&&_.touches.length===2||_.type==="wheel"&&_.ctrlKey)return!u.current.allowPinchZoom;var R=Ys(_),D=o.current,T="deltaX"in _?_.deltaX:D[0]-R[0],O="deltaY"in _?_.deltaY:D[1]-R[1],V,L=_.target,B=Math.abs(T)>Math.abs(O)?"h":"v";if("touches"in _&&B==="h"&&L.type==="range")return!1;var j=window.getSelection(),Y=j&&j.anchorNode,ce=Y?Y===L||Y.contains(L):!1;if(ce)return!1;var Ce=th(B,L);if(!Ce)return!0;if(Ce?V=B:(V=B==="v"?"h":"v",Ce=th(B,L)),!Ce)return!1;if(!i.current&&"changedTouches"in _&&(T||O)&&(i.current=V),!V)return!0;var le=i.current||V;return Jw(le,k,_,le==="h"?T:O)},[]),h=m.useCallback(function(_){var k=_;if(!(!Ao.length||Ao[Ao.length-1]!==l)){var R="deltaY"in k?oh(k):Ys(k),D=t.current.filter(function(V){return V.name===k.type&&(V.target===k.target||k.target===V.shadowParent)&&eS(V.delta,R)})[0];if(D&&D.should){k.cancelable&&k.preventDefault();return}if(!D){var T=(u.current.shards||[]).map(ih).filter(Boolean).filter(function(V){return V.contains(k.target)}),O=T.length>0?d(k,T[0]):!u.current.noIsolation;O&&k.cancelable&&k.preventDefault()}}},[]),g=m.useCallback(function(_,k,R,D){var T={name:_,delta:k,target:R,should:D,shadowParent:oS(R)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(O){return O!==T})},1)},[]),v=m.useCallback(function(_){o.current=Ys(_),i.current=void 0},[]),y=m.useCallback(function(_){g(_.type,oh(_),_.target,d(_,r.lockRef.current))},[]),S=m.useCallback(function(_){g(_.type,Ys(_),_.target,d(_,r.lockRef.current))},[]);m.useEffect(function(){return Ao.push(l),r.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:S}),document.addEventListener("wheel",h,Do),document.addEventListener("touchmove",h,Do),document.addEventListener("touchstart",v,Do),function(){Ao=Ao.filter(function(_){return _!==l}),document.removeEventListener("wheel",h,Do),document.removeEventListener("touchmove",h,Do),document.removeEventListener("touchstart",v,Do)}},[]);var b=r.removeScrollBar,w=r.inert;return m.createElement(m.Fragment,null,w?m.createElement(l,{styles:tS(a)}):null,b?m.createElement(Kw,{noRelative:r.noRelative,gapMode:r.gapMode}):null)}function oS(r){for(var t=null;r!==null;)r instanceof ShadowRoot&&(t=r.host,r=r.host),r=r.parentNode;return t}const iS=Dw(Yp,rS);var Xs=m.forwardRef(function(r,t){return m.createElement(Gs,_n({},r,{ref:t,sideCar:iS}))});Xs.classNames=Gs.classNames;var sS=function(r){if(typeof document>"u")return null;var t=Array.isArray(r)?r[0]:r;return t.ownerDocument.body},Lo=new WeakMap,Js=new WeakMap,ea={},Ic=0,sh=function(r){return r&&(r.host||sh(r.parentNode))},aS=function(r,t){return t.map(function(o){if(r.contains(o))return o;var i=sh(o);return i&&r.contains(i)?i:(console.error("aria-hidden",o,"in not contained inside",r,". Doing nothing"),null)}).filter(function(o){return!!o})},lS=function(r,t,o,i){var a=aS(t,Array.isArray(r)?r:[r]);ea[o]||(ea[o]=new WeakMap);var l=ea[o],u=[],d=new Set,h=new Set(a),g=function(y){!y||d.has(y)||(d.add(y),g(y.parentNode))};a.forEach(g);var v=function(y){!y||h.has(y)||Array.prototype.forEach.call(y.children,function(S){if(d.has(S))v(S);else try{var b=S.getAttribute(i),w=b!==null&&b!=="false",_=(Lo.get(S)||0)+1,k=(l.get(S)||0)+1;Lo.set(S,_),l.set(S,k),u.push(S),_===1&&w&&Js.set(S,!0),k===1&&S.setAttribute(o,"true"),w||S.setAttribute(i,"true")}catch(R){console.error("aria-hidden: cannot operate on ",S,R)}})};return v(t),d.clear(),Ic++,function(){u.forEach(function(y){var S=Lo.get(y)-1,b=l.get(y)-1;Lo.set(y,S),l.set(y,b),S||(Js.has(y)||y.removeAttribute(i),Js.delete(y)),b||y.removeAttribute(o)}),Ic--,Ic||(Lo=new WeakMap,Lo=new WeakMap,Js=new WeakMap,ea={})}},Oc=function(r,t,o){o===void 0&&(o="data-aria-hidden");var i=Array.from(Array.isArray(r)?r:[r]),a=sS(r);return a?(i.push.apply(i,Array.from(a.querySelectorAll("[aria-live], script"))),lS(i,a,o,"aria-hidden")):function(){return null}},cS=Object.defineProperty,Zt=(r,t)=>cS(r,"name",{value:t,configurable:!0}),Nc="Dialog",[ah,lh]=yr(Nc),[uS,un]=ah(Nc),Tc=Zt(r=>{const{__scopeDialog:t,children:o,open:i,defaultOpen:a,onOpenChange:l,modal:u=!0}=r,d=m.useRef(null),h=m.useRef(null),[g,v]=Ii({prop:i,defaultProp:a??!1,onChange:l,caller:Nc}),[y,S]=m.useState(0),[b,w]=m.useState(0);return A.jsx(uS,{scope:t,triggerRef:d,contentRef:h,contentId:Kt(),titleId:Kt(),descriptionId:Kt(),titlePresent:y>0,descriptionPresent:b>0,setTitleCount:S,setDescriptionCount:w,open:g,onOpenChange:v,onOpenToggle:m.useCallback(()=>v(_=>!_),[v]),modal:u,children:o})},"Dialog"),dS="DialogTrigger",fS=m.forwardRef(Zt(function(t,o){const{__scopeDialog:i,...a}=t,l=un(dS,i),u=Ge(o,l.triggerRef);return A.jsx(Ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":na(l.open),...a,ref:u,onClick:We(t.onClick,l.onOpenToggle)})},"DialogTrigger")),ch="DialogPortal",[pS,uh]=ah(ch,{forceMount:void 0}),Dc=Zt(r=>{const{__scopeDialog:t,forceMount:o,children:i,container:a}=r,l=un(ch,t);return A.jsx(pS,{scope:t,forceMount:o,children:m.Children.map(i,u=>A.jsx(Io,{present:o||l.open,children:A.jsx(bc,{asChild:!0,container:a,children:u})}))})},"DialogPortal"),Ac="DialogOverlay",Lc=m.forwardRef(Zt(function(t,o){const i=uh(Ac,t.__scopeDialog),{forceMount:a=i.forceMount,...l}=t,u=un(Ac,t.__scopeDialog);return u.modal?A.jsx(Io,{present:a||u.open,children:A.jsx(mS,{...l,ref:o})}):null},"DialogOverlay")),hS=kn("DialogOverlay.RemoveScroll"),mS=m.forwardRef(Zt(function(t,o){const{__scopeDialog:i,...a}=t,l=un(Ac,i),u=jp(),d=Ge(o,u);return A.jsx(Xs,{as:hS,allowPinchZoom:!0,shards:[l.contentRef],children:A.jsx(Ze.div,{"data-state":na(l.open),...a,ref:d,style:{pointerEvents:"auto",...a.style}})})},"DialogOverlayImpl")),Ni="DialogContent",$c=m.forwardRef(Zt(function(t,o){const i=uh(Ni,t.__scopeDialog),{forceMount:a=i.forceMount,...l}=t,u=un(Ni,t.__scopeDialog);return A.jsx(Io,{present:a||u.open,children:u.modal?A.jsx(gS,{...l,ref:o}):A.jsx(vS,{...l,ref:o})})},"DialogContent")),gS=m.forwardRef(Zt(function(t,o){const i=un(Ni,t.__scopeDialog),a=m.useRef(null),l=Ge(o,i.contentRef,a);return m.useEffect(()=>{const u=a.current;if(u)return Oc(u)},[]),A.jsx(dh,{...t,ref:l,trapFocus:i.open,disableOutsidePointerEvents:i.open,onCloseAutoFocus:We(t.onCloseAutoFocus,u=>{u.preventDefault(),i.triggerRef.current?.focus()}),onPointerDownOutside:We(t.onPointerDownOutside,u=>{const d=u.detail.originalEvent,h=d.button===0&&d.ctrlKey===!0;(d.button===2||h)&&u.preventDefault()}),onFocusOutside:We(t.onFocusOutside,u=>u.preventDefault())})},"DialogContentModal")),vS=m.forwardRef(Zt(function(t,o){const i=un(Ni,t.__scopeDialog),a=m.useRef(!1),l=m.useRef(!1);return A.jsx(dh,{...t,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{t.onCloseAutoFocus?.(u),u.defaultPrevented||(a.current||i.triggerRef.current?.focus(),u.preventDefault()),a.current=!1,l.current=!1},onInteractOutside:u=>{t.onInteractOutside?.(u),u.defaultPrevented||(a.current=!0,u.detail.originalEvent.type==="pointerdown"&&(l.current=!0));const d=u.target;i.triggerRef.current?.contains(d)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&l.current&&u.preventDefault()}})},"DialogContentNonModal")),dh=m.forwardRef(Zt(function(t,o){const{__scopeDialog:i,trapFocus:a,onOpenAutoFocus:l,onCloseAutoFocus:u,...d}=t,h=un(Ni,i);return Oi(),A.jsx(A.Fragment,{children:A.jsx(yc,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:l,onUnmountAutoFocus:u,children:A.jsx(pc,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionPresent?h.descriptionId:void 0,"aria-labelledby":h.titlePresent?h.titleId:void 0,"data-state":na(h.open),...d,ref:o,deferPointerDownOutside:!0,onDismiss:()=>h.onOpenChange(!1)})})})},"DialogContentImpl")),yS="DialogTitle",fh=m.forwardRef(Zt(function(t,o){const{__scopeDialog:i,...a}=t,l=un(yS,i),{setTitleCount:u}=l;return ft(()=>(u(d=>d+1),()=>u(d=>d-1)),[u]),A.jsx(Ze.h2,{id:l.titleId,...a,ref:o})},"DialogTitle")),xS="DialogDescription",ph=m.forwardRef(Zt(function(t,o){const{__scopeDialog:i,...a}=t,l=un(xS,i),{setDescriptionCount:u}=l;return ft(()=>(u(d=>d+1),()=>u(d=>d-1)),[u]),A.jsx(Ze.p,{id:l.descriptionId,...a,ref:o})},"DialogDescription")),wS="DialogClose",ta=m.forwardRef(Zt(function(t,o){const{__scopeDialog:i,...a}=t,l=un(wS,i);return A.jsx(Ze.button,{type:"button",...a,ref:o,onClick:We(t.onClick,()=>l.onOpenChange(!1))})},"DialogClose"));function na(r){return r?"open":"closed"}Zt(na,"getState");var SS=Object.defineProperty,qn=(r,t)=>SS(r,"name",{value:t,configurable:!0}),bS="AlertDialog",[kS,bR]=yr(bS,[lh]),Gn=lh(),CS=qn(r=>{const{__scopeAlertDialog:t,...o}=r,i=Gn(t);return A.jsx(Tc,{...i,...o,modal:!0})},"AlertDialog");m.forwardRef(qn(function(t,o){const{__scopeAlertDialog:i,...a}=t,l=Gn(i);return A.jsx(fS,{...l,...a,ref:o})},"AlertDialogTrigger"));var _S=qn(r=>{const{__scopeAlertDialog:t,...o}=r,i=Gn(t);return A.jsx(Dc,{...i,...o})},"AlertDialogPortal"),ES=m.forwardRef(qn(function(t,o){const{__scopeAlertDialog:i,...a}=t,l=Gn(i);return A.jsx(Lc,{...l,...a,ref:o})},"AlertDialogOverlay")),RS="AlertDialogContent",[PS,IS]=kS(RS),OS=m.forwardRef(qn(function(t,o){const{__scopeAlertDialog:i,children:a,...l}=t,u=Gn(i),d=m.useRef(null),h=Ge(o,d),g=m.useRef(null);return A.jsx(PS,{scope:i,cancelRef:g,children:A.jsx($c,{role:"alertdialog",...u,...l,ref:h,onOpenAutoFocus:We(l.onOpenAutoFocus,v=>{v.preventDefault(),g.current?.focus({preventScroll:!0})}),onPointerDownOutside:v=>v.preventDefault(),onInteractOutside:v=>v.preventDefault(),children:a})})},"AlertDialogContent")),NS=m.forwardRef(qn(function(t,o){const{__scopeAlertDialog:i,...a}=t,l=Gn(i);return A.jsx(fh,{...l,...a,ref:o})},"AlertDialogTitle")),TS=m.forwardRef(qn(function(t,o){const{__scopeAlertDialog:i,...a}=t,l=Gn(i);return A.jsx(ph,{...l,...a,ref:o})},"AlertDialogDescription"));m.forwardRef(qn(function(t,o){const{__scopeAlertDialog:i,...a}=t,l=Gn(i);return A.jsx(ta,{...l,...a,ref:o})},"AlertDialogAction"));var DS="AlertDialogCancel",AS=m.forwardRef(qn(function(t,o){const{__scopeAlertDialog:i,...a}=t,{cancelRef:l}=IS(DS,i),u=Gn(i),d=Ge(o,l);return A.jsx(ta,{...u,...a,ref:d})},"AlertDialogCancel")),LS=CS,$S=_S,jS=ES,MS=OS,zS=AS,FS=NS,VS=TS,US=Object.defineProperty,BS=(r,t)=>US(r,"name",{value:t,configurable:!0});function hh(r){const[t,o]=m.useState(void 0);return ft(()=>{if(r){o({width:r.offsetWidth,height:r.offsetHeight});const i=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const l=a[0];let u,d;if("borderBoxSize"in l){const h=l.borderBoxSize,g=Array.isArray(h)?h[0]:h;u=g.inlineSize,d=g.blockSize}else u=r.offsetWidth,d=r.offsetHeight;o({width:u,height:d})});return i.observe(r,{box:"border-box"}),()=>i.unobserve(r)}else o(void 0)},[r]),t}BS(hh,"useSize");const HS=["top","right","bottom","left"],xr=Math.min,Qn=Math.max,ra=Math.round,oa=Math.floor,Yn=r=>({x:r,y:r}),WS={left:"right",right:"left",bottom:"top",top:"bottom"};function mh(r,t,o){return Qn(r,xr(t,o))}function Xn(r,t){return typeof r=="function"?r(t):r}function wr(r){return r.split("-")[0]}function $o(r){return r.split("-")[1]}function jc(r){return r==="x"?"y":"x"}function Mc(r){return r==="y"?"height":"width"}function En(r){const t=r[0];return t==="t"||t==="b"?"y":"x"}function zc(r){return jc(En(r))}function KS(r,t,o){o===void 0&&(o=!1);const i=$o(r),a=zc(r),l=Mc(a);let u=a==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=ia(u)),[u,ia(u)]}function ZS(r){const t=ia(r);return[Fc(r),t,Fc(t)]}function Fc(r){return r.includes("start")?r.replace("start","end"):r.replace("end","start")}const gh=["left","right"],vh=["right","left"],qS=["top","bottom"],GS=["bottom","top"];function QS(r,t,o){switch(r){case"top":case"bottom":return o?t?vh:gh:t?gh:vh;case"left":case"right":return t?qS:GS;default:return[]}}function YS(r,t,o,i){const a=$o(r);let l=QS(wr(r),o==="start",i);return a&&(l=l.map(u=>u+"-"+a),t&&(l=l.concat(l.map(Fc)))),l}function ia(r){const t=wr(r);return WS[t]+r.slice(t.length)}function XS(r){var t,o,i,a;return{top:(t=r.top)!=null?t:0,right:(o=r.right)!=null?o:0,bottom:(i=r.bottom)!=null?i:0,left:(a=r.left)!=null?a:0}}function yh(r){return typeof r!="number"?XS(r):{top:r,right:r,bottom:r,left:r}}function sa(r){const{x:t,y:o,width:i,height:a}=r;return{width:i,height:a,top:o,left:t,right:t+i,bottom:o+a,x:t,y:o}}function xh(r,t,o){let{reference:i,floating:a}=r;const l=En(t),u=zc(t),d=Mc(u),h=wr(t),g=l==="y",v=i.x+i.width/2-a.width/2,y=i.y+i.height/2-a.height/2,S=i[d]/2-a[d]/2;let b;switch(h){case"top":b={x:v,y:i.y-a.height};break;case"bottom":b={x:v,y:i.y+i.height};break;case"right":b={x:i.x+i.width,y};break;case"left":b={x:i.x-a.width,y};break;default:b={x:i.x,y:i.y}}const w=$o(t);return w&&(b[u]+=S*(w==="end"?1:-1)*(o&&g?-1:1)),b}async function JS(r,t){var o;t===void 0&&(t={});const{x:i,y:a,platform:l,rects:u,elements:d,strategy:h}=r,{boundary:g="clippingAncestors",rootBoundary:v="viewport",elementContext:y="floating",altBoundary:S=!1,padding:b=0}=Xn(t,r),w=yh(b),k=d[S?y==="floating"?"reference":"floating":y],R=sa(await l.getClippingRect({element:(o=await(l.isElement==null?void 0:l.isElement(k)))==null||o?k:k.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(d.floating)),boundary:g,rootBoundary:v,strategy:h})),D=y==="floating"?{x:i,y:a,width:u.floating.width,height:u.floating.height}:u.reference,T=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d.floating)),O=await(l.isElement==null?void 0:l.isElement(T))&&await(l.getScale==null?void 0:l.getScale(T))||{x:1,y:1},V=sa(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:D,offsetParent:T,strategy:h}):D);return{top:(R.top-V.top+w.top)/O.y,bottom:(V.bottom-R.bottom+w.bottom)/O.y,left:(R.left-V.left+w.left)/O.x,right:(V.right-R.right+w.right)/O.x}}const e1=50,t1=async(r,t,o)=>{const{placement:i="bottom",strategy:a="absolute",middleware:l=[],platform:u}=o,d=u.detectOverflow?u:{...u,detectOverflow:JS},h=await(u.isRTL==null?void 0:u.isRTL(t));let g=await u.getElementRects({reference:r,floating:t,strategy:a}),{x:v,y}=xh(g,i,h),S=i,b=0;const w={};for(let _=0;_<l.length;_++){const k=l[_];if(!k)continue;const{name:R,fn:D}=k,{x:T,y:O,data:V,reset:L}=await D({x:v,y,initialPlacement:i,placement:S,strategy:a,middlewareData:w,rects:g,platform:d,elements:{reference:r,floating:t}});v=T??v,y=O??y,w[R]={...w[R],...V},L&&b<e1&&(b++,typeof L=="object"&&(L.placement&&(S=L.placement),L.rects&&(g=L.rects===!0?await u.getElementRects({reference:r,floating:t,strategy:a}):L.rects),{x:v,y}=xh(g,S,h)),_=-1)}return{x:v,y,placement:S,strategy:a,middlewareData:w}},n1=r=>({name:"arrow",options:r,async fn(t){const{x:o,y:i,placement:a,rects:l,platform:u,elements:d,middlewareData:h}=t,{element:g,padding:v=0}=Xn(r,t)||{};if(g==null)return{};const y=yh(v),S={x:o,y:i},b=zc(a),w=Mc(b),_=await u.getDimensions(g),k=b==="y",R=k?"top":"left",D=k?"bottom":"right",T=k?"clientHeight":"clientWidth",O=l.reference[w]+l.reference[b]-S[b]-l.floating[w],V=S[b]-l.reference[b],L=await(u.getOffsetParent==null?void 0:u.getOffsetParent(g));let B=L?L[T]:0;(!B||!await(u.isElement==null?void 0:u.isElement(L)))&&(B=d.floating[T]||l.floating[w]);const j=O/2-V/2,Y=B/2-_[w]/2-1,ce=xr(y[R],Y),Ce=xr(y[D],Y),le=B-_[w]-Ce,ue=B/2-_[w]/2+j,se=mh(ce,ue,le),be=!h.arrow&&$o(a)!=null&&ue!==se&&l.reference[w]/2-(ue<ce?ce:Ce)-_[w]/2<0,ae=be?ue<ce?ue-ce:ue-le:0;return{[b]:S[b]+ae,data:{[b]:se,centerOffset:ue-se-ae,...be&&{alignmentOffset:ae}},reset:be}}}),r1=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(t){var o,i;const{placement:a,middlewareData:l,rects:u,initialPlacement:d,platform:h,elements:g}=t,{mainAxis:v=!0,crossAxis:y=!0,fallbackPlacements:S,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:_=!0,...k}=Xn(r,t);if((o=l.arrow)!=null&&o.alignmentOffset)return{};const R=wr(a),D=En(d),T=wr(d)===d,O=await(h.isRTL==null?void 0:h.isRTL(g.floating)),V=S||(T||!_?[ia(d)]:ZS(d)),L=w!=="none";!S&&L&&V.push(...YS(d,_,w,O));const B=[d,...V],j=await h.detectOverflow(t,k),Y=[];let ce=((i=l.flip)==null?void 0:i.overflows)||[];if(v&&Y.push(j[R]),y){const se=KS(a,u,O);Y.push(j[se[0]],j[se[1]])}if(ce=[...ce,{placement:a,overflows:Y}],!Y.every(se=>se<=0)){var Ce,le;const se=(((Ce=l.flip)==null?void 0:Ce.index)||0)+1,be=B[se];if(be&&(!(y==="alignment"?D!==En(be):!1)||ce.every(U=>En(U.placement)===D?U.overflows[0]>0:!0)))return{data:{index:se,overflows:ce},reset:{placement:be}};let ae=(le=ce.filter(oe=>oe.overflows[0]<=0).sort((oe,U)=>oe.overflows[1]-U.overflows[1])[0])==null?void 0:le.placement;if(!ae)switch(b){case"bestFit":{var ue;const oe=(ue=ce.filter(U=>{if(L){const G=En(U.placement);return G===D||G==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(G=>G>0).reduce((G,z)=>G+z,0)]).sort((U,G)=>U[1]-G[1])[0])==null?void 0:ue[0];oe&&(ae=oe);break}case"initialPlacement":ae=d;break}if(a!==ae)return{reset:{placement:ae}}}return{}}}};function wh(r,t){return{top:r.top-t.height,right:r.right-t.width,bottom:r.bottom-t.height,left:r.left-t.width}}function Sh(r){return HS.some(t=>r[t]>=0)}const o1=function(r){return r===void 0&&(r={}),{name:"hide",options:r,async fn(t){const{rects:o,platform:i}=t,{strategy:a="referenceHidden",...l}=Xn(r,t);switch(a){case"referenceHidden":{const u=await i.detectOverflow(t,{...l,elementContext:"reference"}),d=wh(u,o.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:Sh(d)}}}case"escaped":{const u=await i.detectOverflow(t,{...l,altBoundary:!0}),d=wh(u,o.floating);return{data:{escapedOffsets:d,escaped:Sh(d)}}}default:return{}}}}},bh=new Set(["left","top"]);async function i1(r,t){const{placement:o,platform:i,elements:a}=r,l=await(i.isRTL==null?void 0:i.isRTL(a.floating)),u=wr(o),d=$o(o),h=En(o)==="y",g=bh.has(u)?-1:1,v=l&&h?-1:1,y=Xn(t,r);let{mainAxis:S,crossAxis:b,alignmentAxis:w}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return d&&typeof w=="number"&&(b=d==="end"?w*-1:w),h?{x:b*v,y:S*g}:{x:S*g,y:b*v}}const s1=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(t){var o,i;const{x:a,y:l,placement:u,middlewareData:d}=t,h=await i1(t,r);return u===((o=d.offset)==null?void 0:o.placement)&&(i=d.arrow)!=null&&i.alignmentOffset?{}:{x:a+h.x,y:l+h.y,data:{...h,placement:u}}}}},a1=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(t){const{x:o,y:i,placement:a,platform:l}=t,{mainAxis:u=!0,crossAxis:d=!1,limiter:h={fn:D=>{let{x:T,y:O}=D;return{x:T,y:O}}},...g}=Xn(r,t),v={x:o,y:i},y=await l.detectOverflow(t,g),S=En(a),b=jc(S);let w=v[b],_=v[S];const k=(D,T)=>mh(T+y[D==="y"?"top":"left"],T,T-y[D==="y"?"bottom":"right"]);u&&(w=k(b,w)),d&&(_=k(S,_));const R=h.fn({...t,[b]:w,[S]:_});return{...R,data:{x:R.x-o,y:R.y-i,enabled:{[b]:u,[S]:d}}}}}},l1=function(r){return r===void 0&&(r={}),{options:r,fn(t){var o,i;const{x:a,y:l,placement:u,rects:d,middlewareData:h}=t,{offset:g=0,mainAxis:v=!0,crossAxis:y=!0}=Xn(r,t),S={x:a,y:l},b=En(u),w=jc(b);let _=S[w],k=S[b];const R=Xn(g,t),D=typeof R=="number"?{mainAxis:R,crossAxis:0}:{mainAxis:(o=R.mainAxis)!=null?o:0,crossAxis:(i=R.crossAxis)!=null?i:0};if(v){const V=w==="y"?"height":"width",L=d.reference[w]-d.floating[V]+D.mainAxis,B=d.reference[w]+d.reference[V]-D.mainAxis;_<L?_=L:_>B&&(_=B)}if(y){var T,O;const V=w==="y"?"width":"height",L=bh.has(wr(u)),B=d.reference[b]-d.floating[V]+(L&&((T=h.offset)==null?void 0:T[b])||0)+(L?0:D.crossAxis),j=d.reference[b]+d.reference[V]+(L?0:((O=h.offset)==null?void 0:O[b])||0)-(L?D.crossAxis:0);k<B?k=B:k>j&&(k=j)}return{[w]:_,[b]:k}}}},c1=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(t){const{placement:o,rects:i,platform:a,elements:l}=t,{apply:u=()=>{},...d}=Xn(r,t),h=await a.detectOverflow(t,d),g=wr(o),v=$o(o),y=En(o)==="y",{width:S,height:b}=i.floating;let w,_;g==="top"||g==="bottom"?(w=g,_=v===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(_=g,w=v==="end"?"top":"bottom");const k=b-h.top-h.bottom,R=S-h.left-h.right,D=xr(b-h[w],k),T=xr(S-h[_],R),O=t.middlewareData.shift,V=!O;let L=D,B=T;O!=null&&O.enabled.x&&(B=R),O!=null&&O.enabled.y&&(L=k),V&&!v&&(y?B=S-2*Qn(h.left,h.right):L=b-2*Qn(h.top,h.bottom)),await u({...t,availableWidth:B,availableHeight:L});const j=await a.getDimensions(l.floating);return S!==j.width||b!==j.height?{reset:{rects:!0}}:{}}}};function aa(){return typeof window<"u"}function jo(r){return kh(r)?(r.nodeName||"").toLowerCase():"#document"}function Mt(r){var t;return(r==null||(t=r.ownerDocument)==null?void 0:t.defaultView)||window}function Jn(r){var t;return(t=(kh(r)?r.ownerDocument:r.document)||window.document)==null?void 0:t.documentElement}function kh(r){return aa()?r instanceof Node||r instanceof Mt(r).Node:!1}function Rn(r){return aa()?r instanceof Element||r instanceof Mt(r).Element:!1}function Sr(r){return aa()?r instanceof HTMLElement||r instanceof Mt(r).HTMLElement:!1}function Ch(r){return!aa()||typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof Mt(r).ShadowRoot}function la(r){const{overflow:t,overflowX:o,overflowY:i,display:a}=Pn(r);return/auto|scroll|overlay|hidden|clip/.test(t+i+o)&&a!=="inline"&&a!=="contents"}function u1(r){return/^(table|td|th)$/.test(jo(r))}function ca(r){try{if(r.matches(":popover-open"))return!0}catch{}try{return r.matches(":modal")}catch{return!1}}const d1=/transform|translate|scale|rotate|perspective|filter/,f1=/paint|layout|strict|content/,ro=r=>!!r&&r!=="none";let Vc;function Uc(r){const t=Rn(r)?Pn(r):r;return ro(t.transform)||ro(t.translate)||ro(t.scale)||ro(t.rotate)||ro(t.perspective)||!Bc()&&(ro(t.backdropFilter)||ro(t.filter))||d1.test(t.willChange||"")||f1.test(t.contain||"")}function p1(r){let t=oo(r);for(;Sr(t)&&!Ti(t);){if(Uc(t))return t;if(ca(t))return null;t=oo(t)}return null}function Bc(){return Vc==null&&(Vc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Vc}function Ti(r){return/^(html|body|#document)$/.test(jo(r))}function Pn(r){return Mt(r).getComputedStyle(r)}function ua(r){return Rn(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function oo(r){if(jo(r)==="html")return r;const t=r.assignedSlot||r.parentNode||Ch(r)&&r.host||Jn(r);return Ch(t)?t.host:t}function _h(r){const t=oo(r);return Ti(t)?(r.ownerDocument||r).body:Sr(t)&&la(t)?t:_h(t)}function Di(r,t,o){var i;t===void 0&&(t=[]),o===void 0&&(o=!0);const a=_h(r),l=a===((i=r.ownerDocument)==null?void 0:i.body),u=Mt(a);if(l){const d=Hc(u);return t.concat(u,u.visualViewport||[],la(a)?a:[],d&&o?Di(d):[])}else return t.concat(a,Di(a,[],o))}function Hc(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}function Eh(r){const t=Pn(r);let o=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const a=Sr(r),l=a?r.offsetWidth:o,u=a?r.offsetHeight:i,d=ra(o)!==l||ra(i)!==u;return d&&(o=l,i=u),{width:o,height:i,$:d}}function Wc(r){return Rn(r)?r:r.contextElement}function Mo(r){const t=Wc(r);if(!Sr(t))return Yn(1);const o=t.getBoundingClientRect(),{width:i,height:a,$:l}=Eh(t);let u=(l?ra(o.width):o.width)/i,d=(l?ra(o.height):o.height)/a;return(!u||!Number.isFinite(u))&&(u=1),(!d||!Number.isFinite(d))&&(d=1),{x:u,y:d}}const h1=Yn(0);function Rh(r){const t=Mt(r);return!Bc()||!t.visualViewport?h1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function m1(r,t,o){return t===void 0&&(t=!1),!!o&&t&&o===Mt(r)}function io(r,t,o,i){t===void 0&&(t=!1),o===void 0&&(o=!1);const a=r.getBoundingClientRect(),l=Wc(r);let u=Yn(1);t&&(i?Rn(i)&&(u=Mo(i)):u=Mo(r));const d=m1(l,o,i)?Rh(l):Yn(0);let h=(a.left+d.x)/u.x,g=(a.top+d.y)/u.y,v=a.width/u.x,y=a.height/u.y;if(l&&i){const S=Mt(l),b=Rn(i)?Mt(i):i;let w=S,_=Hc(w);for(;_&&b!==w;){const k=Mo(_),R=_.getBoundingClientRect(),D=Pn(_),T=R.left+(_.clientLeft+parseFloat(D.paddingLeft))*k.x,O=R.top+(_.clientTop+parseFloat(D.paddingTop))*k.y;h*=k.x,g*=k.y,v*=k.x,y*=k.y,h+=T,g+=O,w=Mt(_),_=Hc(w)}}return sa({width:v,height:y,x:h,y:g})}function da(r,t){const o=ua(r).scrollLeft;return t?t.left+o:io(Jn(r)).left+o}function Ph(r,t){const o=r.getBoundingClientRect(),i=o.left+t.scrollLeft-da(r,o),a=o.top+t.scrollTop;return{x:i,y:a}}function g1(r){let{elements:t,rect:o,offsetParent:i,strategy:a}=r;const l=a==="fixed",u=Jn(i),d=t?ca(t.floating):!1;if(i===u||d&&l)return o;let h={scrollLeft:0,scrollTop:0},g=Yn(1);const v=Yn(0),y=Sr(i);if((y||!l)&&((jo(i)!=="body"||la(u))&&(h=ua(i)),y)){const b=io(i);g=Mo(i),v.x=b.x+i.clientLeft,v.y=b.y+i.clientTop}const S=u&&!y&&!l?Ph(u,h):Yn(0);return{width:o.width*g.x,height:o.height*g.y,x:o.x*g.x-h.scrollLeft*g.x+v.x+S.x,y:o.y*g.y-h.scrollTop*g.y+v.y+S.y}}function v1(r){return r.getClientRects?Array.from(r.getClientRects()):[]}function y1(r){const t=ua(r),o=r.ownerDocument.body,i=Qn(r.scrollWidth,r.clientWidth,o.scrollWidth,o.clientWidth),a=Qn(r.scrollHeight,r.clientHeight,o.scrollHeight,o.clientHeight);let l=-t.scrollLeft+da(r);const u=-t.scrollTop;return Pn(o).direction==="rtl"&&(l+=Qn(r.clientWidth,o.clientWidth)-i),{width:i,height:a,x:l,y:u}}const x1=25;function w1(r,t,o){o===void 0&&(o="viewport");const i=o==="layoutViewport",a=Mt(r),l=Jn(r),u=a.visualViewport;let d=l.clientWidth,h=l.clientHeight,g=0,v=0;if(u){const S=!Bc()||t==="fixed";i?S||(g=-u.offsetLeft,v=-u.offsetTop):(d=u.width,h=u.height,S&&(g=u.offsetLeft,v=u.offsetTop))}if(da(l)<=0){const S=l.ownerDocument,b=S.body,w=getComputedStyle(b),_=S.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,k=Math.abs(l.clientWidth-b.clientWidth-_),R=getComputedStyle(l).scrollbarGutter==="stable both-edges"?k/2:k;R<=x1&&(d-=R)}return{width:d,height:h,x:g,y:v}}function S1(r,t){const o=io(r,!0,t==="fixed"),i=o.top+r.clientTop,a=o.left+r.clientLeft,l=Mo(r),u=r.clientWidth*l.x,d=r.clientHeight*l.y,h=a*l.x,g=i*l.y;return{width:u,height:d,x:h,y:g}}function Ih(r,t,o){let i;if(t==="viewport"||t==="layoutViewport")i=w1(r,o,t);else if(t==="document")i=y1(Jn(r));else if(Rn(t))i=S1(t,o);else{const a=Rh(r);i={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return sa(i)}function b1(r,t){const o=t.get(r);if(o)return o;let i=Di(r,[],!1).filter(d=>Rn(d)&&jo(d)!=="body"),a=null;const l=Pn(r).position==="fixed";let u=l?oo(r):r;for(;Rn(u)&&!Ti(u);){const d=Pn(u),h=Uc(u),g=a?a.position:l?"fixed":"";!h&&(g==="fixed"||g==="absolute"&&d.position==="static")?i=i.filter(y=>y!==u):a=d,u=oo(u)}return t.set(r,i),i}function k1(r){let{element:t,boundary:o,rootBoundary:i,strategy:a}=r;const u=[...o==="clippingAncestors"?ca(t)?[]:b1(t,this._c):[].concat(o),i],d=Ih(t,u[0],a);let h=d.top,g=d.right,v=d.bottom,y=d.left;for(let S=1;S<u.length;S++){const b=Ih(t,u[S],a);h=Qn(b.top,h),g=xr(b.right,g),v=xr(b.bottom,v),y=Qn(b.left,y)}return{width:g-y,height:v-h,x:y,y:h}}function C1(r){const{width:t,height:o}=Eh(r);return{width:t,height:o}}function _1(r,t,o){const i=Sr(t),a=Jn(t),l=o==="fixed",u=io(r,!0,l,t);let d={scrollLeft:0,scrollTop:0};const h=Yn(0);if((i||!l)&&((jo(t)!=="body"||la(a))&&(d=ua(t)),i)){const S=io(t,!0,l,t);h.x=S.x+t.clientLeft,h.y=S.y+t.clientTop}!i&&a&&(h.x=da(a));const g=a&&!i&&!l?Ph(a,d):Yn(0),v=u.left+d.scrollLeft-h.x-g.x,y=u.top+d.scrollTop-h.y-g.y;return{x:v,y,width:u.width,height:u.height}}function Kc(r){return Pn(r).position==="static"}function Oh(r,t){if(!Sr(r)||Pn(r).position==="fixed")return null;if(t)return t(r);let o=r.offsetParent;return Jn(r)===o&&(o=o.ownerDocument.body),o}function Nh(r,t){const o=Mt(r);if(ca(r))return o;if(!Sr(r)){let a=oo(r);for(;a&&!Ti(a);){if(Rn(a)&&!Kc(a))return a;a=oo(a)}return o}let i=Oh(r,t);for(;i&&u1(i)&&Kc(i);)i=Oh(i,t);return i&&Ti(i)&&Kc(i)&&!Uc(i)?o:i||p1(r)||o}const E1=async function(r){const t=this.getOffsetParent||Nh,o=this.getDimensions,i=await o(r.floating);return{reference:_1(r.reference,await t(r.floating),r.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function R1(r){return Pn(r).direction==="rtl"}const P1={convertOffsetParentRelativeRectToViewportRelativeRect:g1,getDocumentElement:Jn,getClippingRect:k1,getOffsetParent:Nh,getElementRects:E1,getClientRects:v1,getDimensions:C1,getScale:Mo,isElement:Rn,isRTL:R1};function Th(r,t){return r.x===t.x&&r.y===t.y&&r.width===t.width&&r.height===t.height}function I1(r,t,o){let i=null,a;const l=Jn(r);function u(){var v;clearTimeout(a),(v=i)==null||v.disconnect(),i=null}function d(v,y){v===void 0&&(v=!1),y===void 0&&(y=1),u();const S=r.getBoundingClientRect(),{left:b,top:w,width:_,height:k}=S;if(v||t(),!_||!k)return;const R=oa(w),D=oa(l.clientWidth-(b+_)),T=oa(l.clientHeight-(w+k)),O=oa(b),L={rootMargin:-R+"px "+-D+"px "+-T+"px "+-O+"px",threshold:Qn(0,xr(1,y))||1};let B=!0;function j(Y){const ce=Y[0].intersectionRatio;if(!Th(S,r.getBoundingClientRect()))return d();if(ce!==y){if(!B)return d();ce?d(!1,ce):a=setTimeout(()=>{d(!1,1e-7)},1e3)}B=!1}try{i=new IntersectionObserver(j,{...L,root:l.ownerDocument})}catch{i=new IntersectionObserver(j,L)}i.observe(r)}const h=Mt(r),g=()=>d(o);return h.addEventListener("resize",g),d(!0),()=>{h.removeEventListener("resize",g),u()}}function O1(r,t,o,i){i===void 0&&(i={});const{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=i,g=Wc(r),v=a||l?[...g?Di(g):[],...t?Di(t):[]]:[];v.forEach(R=>{a&&R.addEventListener("scroll",o),l&&R.addEventListener("resize",o)});const y=g&&d?I1(g,o,l):null;let S=-1,b=null;u&&(b=new ResizeObserver(R=>{let[D]=R;D&&D.target===g&&b&&t&&(b.unobserve(t),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var T;(T=b)==null||T.observe(t)})),o()}),g&&!h&&b.observe(g),t&&b.observe(t));let w,_=h?io(r):null;h&&k();function k(){const R=io(r);_&&!Th(_,R)&&o(),_=R,w=requestAnimationFrame(k)}return o(),()=>{var R;v.forEach(D=>{a&&D.removeEventListener("scroll",o),l&&D.removeEventListener("resize",o)}),y?.(),(R=b)==null||R.disconnect(),b=null,h&&cancelAnimationFrame(w)}}const N1=s1,T1=a1,D1=r1,A1=c1,L1=o1,Dh=n1,$1=l1,j1=(r,t,o)=>{const i=new Map,a=o??{},l={...P1,...a.platform,_c:i};return t1(r,t,{...a,platform:l})};var M1=typeof document<"u",z1=function(){},fa=M1?m.useLayoutEffect:z1;function pa(r,t){if(r===t)return!0;if(typeof r!=typeof t)return!1;if(typeof r=="function"&&r.toString()===t.toString())return!0;let o,i,a;if(r&&t&&typeof r=="object"){if(Array.isArray(r)){if(o=r.length,o!==t.length)return!1;for(i=o;i--!==0;)if(!pa(r[i],t[i]))return!1;return!0}if(a=Object.keys(r),o=a.length,o!==Object.keys(t).length)return!1;for(i=o;i--!==0;)if(!{}.hasOwnProperty.call(t,a[i]))return!1;for(i=o;i--!==0;){const l=a[i];if(!(l==="_owner"&&r.$$typeof)&&!pa(r[l],t[l]))return!1}return!0}return r!==r&&t!==t}function Ah(r){return typeof window>"u"?1:(r.ownerDocument.defaultView||window).devicePixelRatio||1}function Lh(r,t){const o=Ah(r);return Math.round(t*o)/o}function Zc(r){const t=m.useRef(r);return fa(()=>{t.current=r}),t}function F1(r){r===void 0&&(r={});const{placement:t="bottom",strategy:o="absolute",middleware:i=[],platform:a,elements:{reference:l,floating:u}={},transform:d=!0,whileElementsMounted:h,open:g}=r,[v,y]=m.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[S,b]=m.useState(i);pa(S,i)||b(i);const[w,_]=m.useState(null),[k,R]=m.useState(null),D=m.useCallback(U=>{U!==L.current&&(L.current=U,_(U))},[]),T=m.useCallback(U=>{U!==B.current&&(B.current=U,R(U))},[]),O=l||w,V=u||k,L=m.useRef(null),B=m.useRef(null),j=m.useRef(v),Y=h!=null,ce=Zc(h),Ce=Zc(a),le=Zc(g),ue=m.useCallback(()=>{if(!L.current||!B.current)return;const U={placement:t,strategy:o,middleware:S};Ce.current&&(U.platform=Ce.current),j1(L.current,B.current,U).then(G=>{const z={...G,isPositioned:le.current!==!1};se.current&&!pa(j.current,z)&&(j.current=z,Ri.flushSync(()=>{y(z)}))})},[S,t,o,Ce,le]);fa(()=>{g===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,y(U=>({...U,isPositioned:!1})))},[g]);const se=m.useRef(!1);fa(()=>(se.current=!0,()=>{se.current=!1}),[]),fa(()=>{if(O&&(L.current=O),V&&(B.current=V),O&&V){if(ce.current)return ce.current(O,V,ue);ue()}},[O,V,ue,ce,Y]);const be=m.useMemo(()=>({reference:L,floating:B,setReference:D,setFloating:T}),[D,T]),ae=m.useMemo(()=>({reference:O,floating:V}),[O,V]),oe=m.useMemo(()=>{const U={position:o,left:0,top:0};if(!ae.floating)return U;const G=Lh(ae.floating,v.x),z=Lh(ae.floating,v.y);return d?{...U,transform:"translate("+G+"px, "+z+"px)",...Ah(ae.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:G,top:z}},[o,d,ae.floating,v.x,v.y]);return m.useMemo(()=>({...v,update:ue,refs:be,elements:ae,floatingStyles:oe}),[v,ue,be,ae,oe])}const V1=r=>{function t(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:r,fn(o){const{element:i,padding:a}=typeof r=="function"?r(o):r;return i&&t(i)?i.current!=null?Dh({element:i.current,padding:a}).fn(o):{}:i?Dh({element:i,padding:a}).fn(o):{}}}},U1=(r,t)=>{const o=N1(r);return{name:o.name,fn:o.fn,options:[r,t]}},B1=(r,t)=>{const o=T1(r);return{name:o.name,fn:o.fn,options:[r,t]}},H1=(r,t)=>({fn:$1(r).fn,options:[r,t]}),W1=(r,t)=>{const o=D1(r);return{name:o.name,fn:o.fn,options:[r,t]}},K1=(r,t)=>{const o=A1(r);return{name:o.name,fn:o.fn,options:[r,t]}},Z1=(r,t)=>{const o=L1(r);return{name:o.name,fn:o.fn,options:[r,t]}},q1=(r,t)=>{const o=V1(r);return{name:o.name,fn:o.fn,options:[r,t]}};var G1=Object.defineProperty,br=(r,t)=>G1(r,"name",{value:t,configurable:!0}),$h="Popper",[jh,ha]=yr($h),[Q1,Mh]=jh($h),Y1=br(r=>{const{__scopePopper:t,children:o}=r,[i,a]=m.useState(null),[l,u]=m.useState(void 0);return A.jsx(Q1,{scope:t,anchor:i,onAnchorChange:a,placementState:l,setPlacementState:u,children:o})},"Popper"),X1="PopperAnchor",J1=m.forwardRef(br(function(t,o){const{__scopePopper:i,virtualRef:a,...l}=t,u=Mh(X1,i),d=m.useRef(null),h=u.onAnchorChange,g=m.useCallback(_=>{d.current=_,_&&h(_)},[h]),v=Ge(o,g),y=m.useRef(null);m.useEffect(()=>{if(!a)return;const _=y.current;y.current=a.current,_!==y.current&&h(y.current)});const S=u.placementState&&ma(u.placementState),b=S?.[0],w=S?.[1];return a?null:A.jsx(Ze.div,{"data-radix-popper-side":b,"data-radix-popper-align":w,...l,ref:v})},"PopperAnchor")),zh="PopperContent",[eb,kR]=jh(zh),tb=m.forwardRef(br(function(t,o){const{__scopePopper:i,side:a="bottom",sideOffset:l=0,align:u="center",alignOffset:d=0,arrowPadding:h=0,avoidCollisions:g=!0,collisionBoundary:v=[],collisionPadding:y=0,sticky:S="partial",hideWhenDetached:b=!1,updatePositionStrategy:w="optimized",onPlaced:_,...k}=t,R=Mh(zh,i),[D,T]=m.useState(null),O=Ge(o,T),[V,L]=m.useState(null),B=hh(V),j=B?.width??0,Y=B?.height??0,ce=a+(u!=="center"?"-"+u:""),Ce=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},le=Array.isArray(v)?v:[v],ue=le.length>0,se={padding:Ce,boundary:le.filter(Fh),altBoundary:ue},{refs:be,floatingStyles:ae,placement:oe,isPositioned:U,middlewareData:G}=F1({strategy:"fixed",placement:ce,whileElementsMounted:br((...ne)=>O1(...ne,{animationFrame:w==="always"}),"whileElementsMounted"),elements:{reference:R.anchor},middleware:[U1({mainAxis:l+Y,alignmentAxis:d}),g&&B1({mainAxis:!0,crossAxis:!1,limiter:S==="partial"?H1():void 0,...se}),g&&W1({...se}),K1({...se,apply:br(({elements:ne,rects:Te,availableWidth:$e,availableHeight:je})=>{const{width:ze,height:ot}=Te.reference,it=ne.floating.style;it.setProperty("--radix-popper-available-width",`${$e}px`),it.setProperty("--radix-popper-available-height",`${je}px`),it.setProperty("--radix-popper-anchor-width",`${ze}px`),it.setProperty("--radix-popper-anchor-height",`${ot}px`)},"apply")}),V&&q1({element:V,padding:h}),nb({arrowWidth:j,arrowHeight:Y}),b&&Z1({strategy:"referenceHidden",...se,boundary:ue?se.boundary:void 0})]}),z=R.setPlacementState;ft(()=>(z(oe),()=>{z(void 0)}),[oe,z]);const[I,E]=ma(oe),W=Cn(_);ft(()=>{U&&W?.()},[U,W]);const J=G.arrow?.x,H=G.arrow?.y,re=G.arrow?.centerOffset!==0,[pe,X]=m.useState();return ft(()=>{D&&X(window.getComputedStyle(D).zIndex)},[D]),A.jsx("div",{ref:be.setFloating,"data-radix-popper-content-wrapper":"",style:{...ae,transform:U?ae.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:pe,"--radix-popper-transform-origin":[G.transformOrigin?.x,G.transformOrigin?.y].join(" "),...G.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:A.jsx(eb,{scope:i,placedSide:I,placedAlign:E,onArrowChange:L,arrowX:J,arrowY:H,shouldHideArrow:re,children:A.jsx(Ze.div,{"data-side":I,"data-align":E,...k,ref:O,style:{...k.style,animation:U?k.style?.animation:"none"}})})})},"PopperContent"));function Fh(r){return r!==null}br(Fh,"isNotNull");var nb=br(r=>({name:"transformOrigin",options:r,fn(t){const{placement:o,rects:i,middlewareData:a}=t,u=a.arrow?.centerOffset!==0,d=u?0:r.arrowWidth,h=u?0:r.arrowHeight,[g,v]=ma(o),y={start:"0%",center:"50%",end:"100%"}[v],S=(a.arrow?.x??0)+d/2,b=(a.arrow?.y??0)+h/2;let w="",_="";return g==="bottom"?(w=u?y:`${S}px`,_=`${-h}px`):g==="top"?(w=u?y:`${S}px`,_=`${i.floating.height+h}px`):g==="right"?(w=`${-h}px`,_=u?y:`${b}px`):g==="left"&&(w=`${i.floating.width+h}px`,_=u?y:`${b}px`),{data:{x:w,y:_}}}}),"transformOrigin");function ma(r){const[t,o="center"]=r.split("-");return[t,o]}br(ma,"getSideAndAlignFromPlacement");var Vh=Y1,Uh=J1,Bh=tb,rb=Object.defineProperty,ob=(r,t)=>rb(r,"name",{value:t,configurable:!0});function Hh(r){const t=m.useRef({value:r,previous:r});return m.useMemo(()=>(t.current.value!==r&&(t.current.previous=t.current.value,t.current.value=r),t.current.previous),[r])}ob(Hh,"usePrevious");var ib=Object.defineProperty,sb=(r,t)=>ib(r,"name",{value:t,configurable:!0});function qc(r,[t,o]){return Math.min(o,Math.max(t,r))}sb(qc,"clamp");var ab=Object.defineProperty,kr=(r,t)=>ab(r,"name",{value:t,configurable:!0}),Gc="Popover",[Wh,CR]=yr(Gc,[ha]),Qc=ha(),[lb,zo]=Wh(Gc),cb=kr(r=>{const{__scopePopover:t,children:o,open:i,defaultOpen:a,onOpenChange:l,modal:u=!1}=r,d=Qc(t),h=m.useRef(null),[g,v]=m.useState(!1),[y,S]=Ii({prop:i,defaultProp:a??!1,onChange:l,caller:Gc});return A.jsx(Vh,{...d,children:A.jsx(lb,{scope:t,contentId:Kt(),triggerRef:h,open:y,onOpenChange:S,onOpenToggle:m.useCallback(()=>S(b=>!b),[S]),hasCustomAnchor:g,onCustomAnchorAdd:m.useCallback(()=>v(!0),[]),onCustomAnchorRemove:m.useCallback(()=>v(!1),[]),modal:u,children:o})})},"Popover"),ub="PopoverTrigger",db=m.forwardRef(kr(function(t,o){const{__scopePopover:i,...a}=t,l=zo(ub,i),u=Qc(i),d=Ge(o,l.triggerRef),h=A.jsx(Ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":Yc(l.open),...a,ref:d,onClick:We(t.onClick,l.onOpenToggle)});return l.hasCustomAnchor?h:A.jsx(Uh,{asChild:!0,...u,children:h})},"PopoverTrigger")),Kh="PopoverPortal",[fb,pb]=Wh(Kh,{forceMount:void 0}),hb=kr(r=>{const{__scopePopover:t,forceMount:o,children:i,container:a}=r,l=zo(Kh,t);return A.jsx(fb,{scope:t,forceMount:o,children:A.jsx(Io,{present:o||l.open,children:A.jsx(bc,{asChild:!0,container:a,children:i})})})},"PopoverPortal"),Ai="PopoverContent",mb=m.forwardRef(kr(function(t,o){const i=pb(Ai,t.__scopePopover),{forceMount:a=i.forceMount,...l}=t,u=zo(Ai,t.__scopePopover);return A.jsx(Io,{present:a||u.open,children:u.modal?A.jsx(vb,{...l,ref:o}):A.jsx(yb,{...l,ref:o})})},"PopoverContent")),gb=kn("PopoverContent.RemoveScroll"),vb=m.forwardRef(kr(function(t,o){const i=zo(Ai,t.__scopePopover),a=m.useRef(null),l=Ge(o,a),u=m.useRef(!1);return m.useEffect(()=>{const d=a.current;if(d)return Oc(d)},[]),A.jsx(Xs,{as:gb,allowPinchZoom:!0,children:A.jsx(Zh,{...t,ref:l,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:We(t.onCloseAutoFocus,d=>{d.preventDefault(),u.current||i.triggerRef.current?.focus()}),onPointerDownOutside:We(t.onPointerDownOutside,d=>{const h=d.detail.originalEvent,g=h.button===0&&h.ctrlKey===!0,v=h.button===2||g;u.current=v},{checkForDefaultPrevented:!1}),onFocusOutside:We(t.onFocusOutside,d=>d.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),yb=m.forwardRef(kr(function(t,o){const i=zo(Ai,t.__scopePopover),a=m.useRef(!1),l=m.useRef(!1);return A.jsx(Zh,{...t,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{t.onCloseAutoFocus?.(u),u.defaultPrevented||(a.current||i.triggerRef.current?.focus(),u.preventDefault()),a.current=!1,l.current=!1},onInteractOutside:u=>{t.onInteractOutside?.(u),u.defaultPrevented||(a.current=!0,u.detail.originalEvent.type==="pointerdown"&&(l.current=!0));const d=u.target;i.triggerRef.current?.contains(d)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&l.current&&u.preventDefault()}})},"PopoverContentNonModal")),Zh=m.forwardRef(kr(function(t,o){const{__scopePopover:i,trapFocus:a,onOpenAutoFocus:l,onCloseAutoFocus:u,disableOutsidePointerEvents:d,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:v,onInteractOutside:y,...S}=t,b=zo(Ai,i),w=Qc(i);return Oi(),A.jsx(yc,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:l,onUnmountAutoFocus:u,children:A.jsx(pc,{asChild:!0,disableOutsidePointerEvents:d,onInteractOutside:y,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:v,onDismiss:()=>b.onOpenChange(!1),deferPointerDownOutside:!0,children:A.jsx(Bh,{"data-state":Yc(b.open),role:"dialog",id:b.contentId,...w,...S,ref:o,style:{...S.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})},"PopoverContentImpl"));function Yc(r){return r?"open":"closed"}kr(Yc,"getState");var xb=cb,wb=db,Sb=hb,bb=mb,kb=Object.defineProperty,Ve=(r,t)=>kb(r,"name",{value:t,configurable:!0}),Cb=[" ","Enter","ArrowUp","ArrowDown"],_b=[" ","Enter"],Fo="Select",[ga,va,Eb]=mp(Fo),[so,_R]=yr(Fo,[Eb,ha]),Xc=ha(),[Rb,Cr]=so(Fo),[Pb,Ib]=so(Fo);function qh(r){const{__scopeSelect:t,children:o,open:i,defaultOpen:a,onOpenChange:l,value:u,defaultValue:d,onValueChange:h,dir:g,name:v,autoComplete:y,disabled:S,required:b,form:w,internal_do_not_use_render:_}=r,k=Xc(t),[R,D]=m.useState(null),[T,O]=m.useState(null),[V,L]=m.useState(!1),B=Ap(g),[j,Y]=Ii({prop:i,defaultProp:a??!1,onChange:l,caller:Fo}),[ce,Ce]=Ii({prop:u,defaultProp:d,onChange:h,caller:Fo}),le=m.useRef(null),ue=m.useRef(ce);m.useEffect(()=>{const E=w?R?.ownerDocument.getElementById(w):R?.form;if(E instanceof HTMLFormElement){const W=Ve(()=>Ce(ue.current),"reset");return E.addEventListener("reset",W),()=>E.removeEventListener("reset",W)}},[w,R,Ce]);const se=R?!!w||!!R.closest("form"):!0,[be,ae]=m.useState(new Set),oe=Kt(),U=Array.from(be).map(E=>E.props.value).join(";"),G=m.useCallback(E=>{ae(W=>new Set(W).add(E))},[]),z=m.useCallback(E=>{ae(W=>{const J=new Set(W);return J.delete(E),J})},[]),I={required:b,trigger:R,onTriggerChange:D,valueNode:T,onValueNodeChange:O,valueNodeHasChildren:V,onValueNodeHasChildrenChange:L,contentId:oe,value:ce,onValueChange:Ce,open:j,onOpenChange:Y,dir:B,triggerPointerDownPosRef:le,disabled:S,name:v,autoComplete:y,form:w,nativeOptions:be,nativeSelectKey:U,isFormControl:se};return A.jsx(Vh,{...k,children:A.jsx(Rb,{scope:t,...I,children:A.jsx(ga.Provider,{scope:t,children:A.jsx(Pb,{scope:t,onNativeOptionAdd:G,onNativeOptionRemove:z,children:nm(_)?_(I):o})})})})}Ve(qh,"SelectProvider");var Ob=Ve(r=>{const{__scopeSelect:t,children:o,...i}=r;return A.jsx(qh,{__scopeSelect:t,...i,internal_do_not_use_render:({isFormControl:a})=>A.jsxs(A.Fragment,{children:[o,a?A.jsx(nk,{__scopeSelect:t}):null]})})},"Select"),Nb="SelectTrigger",Tb=m.forwardRef(Ve(function(t,o){const{__scopeSelect:i,disabled:a=!1,...l}=t,u=Xc(i),d=Cr(Nb,i),h=d.disabled||a,g=Ge(o,d.onTriggerChange),v=va(i),y=m.useRef("touch"),[S,b,w]=tu(k=>{const R=v().filter(O=>!O.disabled),D=R.find(O=>O.value===d.value),T=nu(R,k,D);T!==void 0&&d.onValueChange(T.value)}),_=Ve(k=>{h||(d.onOpenChange(!0),w()),k&&(d.triggerPointerDownPosRef.current={x:Math.round(k.pageX),y:Math.round(k.pageY)})},"handleOpen");return A.jsx(Uh,{asChild:!0,...u,children:A.jsx(Ze.button,{type:"button",role:"combobox","aria-controls":d.open?d.contentId:void 0,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":Li(d.value)?"":void 0,...l,ref:g,onClick:We(l.onClick,k=>{k.currentTarget.focus(),y.current!=="mouse"&&_(k)}),onPointerDown:We(l.onPointerDown,k=>{y.current=k.pointerType;const R=k.target;R.hasPointerCapture(k.pointerId)&&R.releasePointerCapture(k.pointerId),k.button===0&&k.ctrlKey===!1&&k.pointerType==="mouse"&&(_(k),k.preventDefault())}),onKeyDown:We(l.onKeyDown,k=>{const R=S.current!=="";!(k.ctrlKey||k.altKey||k.metaKey)&&k.key.length===1&&b(k.key),!(R&&k.key===" ")&&Cb.includes(k.key)&&(_(),k.preventDefault())})})})},"SelectTrigger")),Db="SelectValue",Ab=m.forwardRef(Ve(function(t,o){const{__scopeSelect:i,className:a,style:l,children:u,placeholder:d="",...h}=t,g=Cr(Db,i),{onValueNodeHasChildrenChange:v}=g,y=u!==void 0,S=Ge(o,g.onValueNodeChange);ft(()=>{v(y)},[v,y]);const b=Li(g.value);return A.jsx(Ze.span,{...h,asChild:b?!1:h.asChild,ref:S,style:{pointerEvents:"none"},children:A.jsx(m.Fragment,{children:b?d:u},b?"placeholder":"value")})},"SelectValue")),Lb=m.forwardRef(Ve(function(t,o){const{__scopeSelect:i,children:a,...l}=t;return A.jsx(Ze.span,{"aria-hidden":!0,...l,ref:o,children:a||"▼"})},"SelectIcon")),$b="SelectPortal",[jb,Mb]=so($b,{forceMount:void 0}),zb=Ve(r=>{const{__scopeSelect:t,forceMount:o,...i}=r;return A.jsx(jb,{scope:r.__scopeSelect,forceMount:o,children:A.jsx(bc,{asChild:!0,...i})})},"SelectPortal"),ao="SelectContent",Fb=m.forwardRef(Ve(function(t,o){const i=Mb(ao,t.__scopeSelect),{forceMount:a=i.forceMount,...l}=t,u=Cr(ao,t.__scopeSelect),[d,h]=m.useState();return ft(()=>{h(new DocumentFragment)},[]),A.jsx(Io,{present:a||u.open,children:({present:g})=>g?A.jsx(Bb,{...l,ref:o}):A.jsx(Vb,{...l,fragment:d})})},"SelectContent")),Vb=m.forwardRef(Ve(function(t,o){const{__scopeSelect:i,children:a,fragment:l}=t;return l?Ri.createPortal(A.jsx(Gh,{scope:i,children:A.jsx(ga.Slot,{scope:i,children:A.jsx("div",{ref:o,children:a})})}),l):null},"SelectContentFragment")),dn=10,[Gh,lo]=so(ao),Ub=kn("SelectContent.RemoveScroll"),Bb=m.forwardRef(Ve(function(t,o){const{__scopeSelect:i}=t,{position:a="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:u,onPointerDownOutside:d,side:h,sideOffset:g,align:v,alignOffset:y,arrowPadding:S,collisionBoundary:b,collisionPadding:w,sticky:_,hideWhenDetached:k,avoidCollisions:R,...D}=t,T=Cr(ao,i),[O,V]=m.useState(null),[L,B]=m.useState(null),j=Ge(o,V),[Y,ce]=m.useState(null),[Ce,le]=m.useState(null),ue=va(i),[se,be]=m.useState(!1),ae=m.useRef(!1);m.useEffect(()=>{if(O)return Oc(O)},[O]),Oi();const oe=m.useCallback(X=>{const[ne,...Te]=ue().map(ze=>ze.ref.current),[$e]=Te.slice(-1),je=document.activeElement;for(const ze of X)if(ze===je||(ze?.scrollIntoView({block:"nearest"}),ze===ne&&L&&(L.scrollTop=0),ze===$e&&L&&(L.scrollTop=L.scrollHeight),ze?.focus(),document.activeElement!==je))return},[ue,L]),U=m.useCallback(()=>oe([Y,O]),[oe,Y,O]);m.useEffect(()=>{se&&U()},[se,U]);const{onOpenChange:G,triggerPointerDownPosRef:z}=T;m.useEffect(()=>{if(O){let X={x:0,y:0};const ne=Ve($e=>{X={x:Math.abs(Math.round($e.pageX)-(z.current?.x??0)),y:Math.abs(Math.round($e.pageY)-(z.current?.y??0))}},"handlePointerMove"),Te=Ve($e=>{X.x<=10&&X.y<=10?$e.preventDefault():$e.composedPath().includes(O)||G(!1),document.removeEventListener("pointermove",ne),z.current=null},"handlePointerUp");return z.current!==null&&(document.addEventListener("pointermove",ne),document.addEventListener("pointerup",Te,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ne),document.removeEventListener("pointerup",Te,{capture:!0})}}},[O,G,z]),m.useEffect(()=>{const X=Ve(()=>G(!1),"close");return window.addEventListener("blur",X),window.addEventListener("resize",X),()=>{window.removeEventListener("blur",X),window.removeEventListener("resize",X)}},[G]);const[I,E]=tu(X=>{const ne=ue().filter(je=>!je.disabled),Te=ne.find(je=>je.ref.current===document.activeElement),$e=nu(ne,X,Te);$e&&setTimeout(()=>$e.ref.current?.focus())}),W=m.useCallback((X,ne,Te)=>{const $e=!ae.current&&!Te;(T.value!==void 0&&T.value===ne||$e)&&(ce(X),$e&&(ae.current=!0))},[T.value]),J=m.useCallback(()=>O?.focus(),[O]),H=m.useCallback((X,ne,Te)=>{const $e=!ae.current&&!Te;(T.value!==void 0&&T.value===ne||$e)&&le(X)},[T.value]),re=a==="popper"?Qh:Hb,pe=re===Qh?{side:h,sideOffset:g,align:v,alignOffset:y,arrowPadding:S,collisionBoundary:b,collisionPadding:w,sticky:_,hideWhenDetached:k,avoidCollisions:R}:{};return A.jsx(Gh,{scope:i,content:O,viewport:L,onViewportChange:B,itemRefCallback:W,selectedItem:Y,onItemLeave:J,itemTextRefCallback:H,focusSelectedItem:U,selectedItemText:Ce,position:a,isPositioned:se,searchRef:I,children:A.jsx(Xs,{as:Ub,allowPinchZoom:!0,children:A.jsx(yc,{asChild:!0,trapped:T.open,onMountAutoFocus:X=>{X.preventDefault()},onUnmountAutoFocus:We(l,X=>{T.trigger?.focus({preventScroll:!0}),X.preventDefault()}),children:A.jsx(pc,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:X=>X.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:A.jsx(re,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:X=>X.preventDefault(),...D,...pe,onPlaced:()=>be(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...D.style},onKeyDown:We(D.onKeyDown,X=>{const ne=X.ctrlKey||X.altKey||X.metaKey;if(X.key==="Tab"&&X.preventDefault(),!ne&&X.key.length===1&&E(X.key),["ArrowUp","ArrowDown","Home","End"].includes(X.key)){let $e=ue().filter(je=>!je.disabled).map(je=>je.ref.current);if(["ArrowUp","End"].includes(X.key)&&($e=$e.slice().reverse()),["ArrowUp","ArrowDown"].includes(X.key)){const je=X.target,ze=$e.indexOf(je);$e=$e.slice(ze+1)}setTimeout(()=>oe($e)),X.preventDefault()}})})})})})})},"SelectContentImpl")),Hb=m.forwardRef(Ve(function(t,o){const{__scopeSelect:i,onPlaced:a,...l}=t,u=Cr(ao,i),d=lo(ao,i),[h,g]=m.useState(null),[v,y]=m.useState(null),S=Ge(o,y),b=va(i),w=m.useRef(!1),_=m.useRef(!0),{viewport:k,selectedItem:R,selectedItemText:D,focusSelectedItem:T}=d,O=m.useCallback(()=>{if(u.trigger&&u.valueNode&&h&&v&&k&&R&&D){const j=u.trigger.getBoundingClientRect(),Y=v.getBoundingClientRect(),ce=u.valueNode.getBoundingClientRect(),Ce=D.getBoundingClientRect();if(u.dir!=="rtl"){const je=Ce.left-Y.left,ze=ce.left-je,ot=j.left-ze,it=j.width+ot,St=Math.max(it,Y.width),Tn=window.innerWidth-dn,rr=qc(ze,[dn,Math.max(dn,Tn-St)]);h.style.minWidth=it+"px",h.style.left=rr+"px"}else{const je=Y.right-Ce.right,ze=window.innerWidth-ce.right-je,ot=window.innerWidth-j.right-ze,it=j.width+ot,St=Math.max(it,Y.width),Tn=window.innerWidth-dn,rr=qc(ze,[dn,Math.max(dn,Tn-St)]);h.style.minWidth=it+"px",h.style.right=rr+"px"}const le=b(),ue=window.innerHeight-dn*2,se=k.scrollHeight,be=window.getComputedStyle(v),ae=parseInt(be.borderTopWidth,10),oe=parseInt(be.paddingTop,10),U=parseInt(be.borderBottomWidth,10),G=parseInt(be.paddingBottom,10),z=ae+oe+se+G+U,I=Math.min(R.offsetHeight*5,z),E=window.getComputedStyle(k),W=parseInt(E.paddingTop,10),J=parseInt(E.paddingBottom,10),H=j.top+j.height/2-dn,re=ue-H,pe=R.offsetHeight/2,X=R.offsetTop+pe,ne=ae+oe+X,Te=z-ne;if(ne<=H){const je=le.length>0&&R===le[le.length-1].ref.current;h.style.bottom="0px";const ze=v.clientHeight-k.offsetTop-k.offsetHeight,ot=Math.max(re,pe+(je?J:0)+ze+U),it=ne+ot;h.style.height=it+"px"}else{const je=le.length>0&&R===le[0].ref.current;h.style.top="0px";const ot=Math.max(H,ae+k.offsetTop+(je?W:0)+pe)+Te;h.style.height=ot+"px",k.scrollTop=ne-H+k.offsetTop}h.style.margin=`${dn}px 0`,h.style.minHeight=I+"px",h.style.maxHeight=ue+"px",a?.(),requestAnimationFrame(()=>w.current=!0)}},[b,u.trigger,u.valueNode,h,v,k,R,D,u.dir,a]);ft(()=>O(),[O]);const[V,L]=m.useState();ft(()=>{v&&L(window.getComputedStyle(v).zIndex)},[v]);const B=m.useCallback(j=>{j&&_.current===!0&&(O(),T?.(),_.current=!1)},[O,T]);return A.jsx(Wb,{scope:i,contentWrapper:h,shouldExpandOnScrollRef:w,onScrollButtonChange:B,children:A.jsx("div",{ref:g,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:V},children:A.jsx(Ze.div,{...l,ref:S,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})},"SelectItemAlignedPosition")),Qh=m.forwardRef(Ve(function(t,o){const{__scopeSelect:i,align:a="start",collisionPadding:l=dn,...u}=t,d=Xc(i);return A.jsx(Bh,{...d,...u,ref:o,align:a,collisionPadding:l,style:{boxSizing:"border-box",...u.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)"}})},"SelectPopperPosition")),[Wb,Jc]=so(ao,{}),Yh="SelectViewport",Kb=m.forwardRef(Ve(function(t,o){const{__scopeSelect:i,nonce:a,...l}=t,u=lo(Yh,i),d=Jc(Yh,i),h=Ge(o,u.onViewportChange),g=m.useRef(0);return A.jsxs(A.Fragment,{children:[A.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:a}),A.jsx(ga.Slot,{scope:i,children:A.jsx(Ze.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:We(l.onScroll,v=>{const y=v.currentTarget,{contentWrapper:S,shouldExpandOnScrollRef:b}=d;if(b?.current&&S){const w=Math.abs(g.current-y.scrollTop);if(w>0){const _=window.innerHeight-dn*2,k=parseFloat(S.style.minHeight),R=parseFloat(S.style.height),D=Math.max(k,R);if(D<_){const T=D+w,O=Math.min(_,T),V=T-O;S.style.height=O+"px",S.style.bottom==="0px"&&(y.scrollTop=V>0?V:0,S.style.justifyContent="flex-end")}}}g.current=y.scrollTop})})})]})},"SelectViewport")),Zb="SelectGroup",[ER,RR]=so(Zb),eu="SelectItem",[qb,Xh]=so(eu),Gb=m.forwardRef(Ve(function(t,o){const{__scopeSelect:i,value:a,disabled:l=!1,textValue:u,...d}=t,h=Cr(eu,i),g=lo(eu,i),v=h.value===a,[y,S]=m.useState(u??""),[b,w]=m.useState(!1),_=Cn(O=>g.itemRefCallback?.(O,a,l)),k=Ge(o,_),R=Kt(),D=m.useRef("touch"),T=Ve(()=>{l||(h.onValueChange(a),h.onOpenChange(!1))},"handleSelect");return A.jsx(qb,{scope:i,value:a,disabled:l,textId:R,isSelected:v,onItemTextChange:m.useCallback(O=>{S(V=>V||(O?.textContent??"").trim())},[]),children:A.jsx(ga.ItemSlot,{scope:i,value:a,disabled:l,textValue:y,children:A.jsx(Ze.div,{role:"option","aria-labelledby":R,"data-highlighted":b?"":void 0,"aria-selected":v&&b,"data-state":v?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...d,ref:k,onFocus:We(d.onFocus,()=>w(!0)),onBlur:We(d.onBlur,()=>w(!1)),onClick:We(d.onClick,()=>{D.current!=="mouse"&&T()}),onPointerUp:We(d.onPointerUp,()=>{D.current==="mouse"&&T()}),onPointerDown:We(d.onPointerDown,O=>{D.current=O.pointerType}),onPointerMove:We(d.onPointerMove,O=>{D.current=O.pointerType,l?g.onItemLeave?.():D.current==="mouse"&&O.currentTarget.focus({preventScroll:!0})}),onPointerLeave:We(d.onPointerLeave,O=>{O.currentTarget===document.activeElement&&g.onItemLeave?.()}),onKeyDown:We(d.onKeyDown,O=>{l||O.target!==O.currentTarget||g.searchRef?.current!==""&&O.key===" "||(_b.includes(O.key)&&T(),O.key===" "&&O.preventDefault())})})})})},"SelectItem")),ya="SelectItemText",Qb=m.forwardRef(Ve(function(t,o){const{__scopeSelect:i,className:a,style:l,...u}=t,d=Cr(ya,i),h=lo(ya,i),g=Xh(ya,i),v=Ib(ya,i),[y,S]=m.useState(null),b=Cn(T=>h.itemTextRefCallback?.(T,g.value,g.disabled)),w=Ge(o,S,g.onItemTextChange,b),_=y?.textContent,k=m.useMemo(()=>A.jsx("option",{value:g.value,disabled:g.disabled,children:_},g.value),[g.disabled,g.value,_]),{onNativeOptionAdd:R,onNativeOptionRemove:D}=v;return ft(()=>(R(k),()=>D(k)),[R,D,k]),A.jsxs(A.Fragment,{children:[A.jsx(Ze.span,{id:g.textId,...u,ref:w}),g.isSelected&&d.valueNode&&!d.valueNodeHasChildren&&!Li(d.value)?Ri.createPortal(u.children,d.valueNode):null]})},"SelectItemText")),Yb="SelectItemIndicator",Xb=m.forwardRef(Ve(function(t,o){const{__scopeSelect:i,...a}=t;return Xh(Yb,i).isSelected?A.jsx(Ze.span,{"aria-hidden":!0,...a,ref:o}):null},"SelectItemIndicator")),Jh="SelectScrollUpButton",Jb=m.forwardRef(Ve(function(t,o){const i=lo(Jh,t.__scopeSelect),a=Jc(Jh,t.__scopeSelect),[l,u]=m.useState(!1),d=Ge(o,a.onScrollButtonChange);return ft(()=>{if(i.viewport&&i.isPositioned){let h=function(){const v=g.scrollTop>0;u(v)};Ve(h,"handleScroll");const g=i.viewport;return h(),g.addEventListener("scroll",h),()=>g.removeEventListener("scroll",h)}},[i.viewport,i.isPositioned]),l?A.jsx(tm,{...t,ref:d,onAutoScroll:()=>{const{viewport:h,selectedItem:g}=i;h&&g&&(h.scrollTop=h.scrollTop-g.offsetHeight)}}):null},"SelectScrollUpButton")),em="SelectScrollDownButton",ek=m.forwardRef(Ve(function(t,o){const i=lo(em,t.__scopeSelect),a=Jc(em,t.__scopeSelect),[l,u]=m.useState(!1),d=Ge(o,a.onScrollButtonChange);return ft(()=>{if(i.viewport&&i.isPositioned){let h=function(){const v=g.scrollHeight-g.clientHeight,y=Math.ceil(g.scrollTop)<v;u(y)};Ve(h,"handleScroll");const g=i.viewport;return h(),g.addEventListener("scroll",h),()=>g.removeEventListener("scroll",h)}},[i.viewport,i.isPositioned]),l?A.jsx(tm,{...t,ref:d,onAutoScroll:()=>{const{viewport:h,selectedItem:g}=i;h&&g&&(h.scrollTop=h.scrollTop+g.offsetHeight)}}):null},"SelectScrollDownButton")),tm=m.forwardRef(Ve(function(t,o){const{__scopeSelect:i,onAutoScroll:a,...l}=t,u=lo("SelectScrollButton",i),d=m.useRef(null),h=va(i),g=m.useCallback(()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null)},[]);return m.useEffect(()=>()=>g(),[g]),ft(()=>{h().find(y=>y.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[h]),A.jsx(Ze.div,{"aria-hidden":!0,...l,ref:o,style:{flexShrink:0,...l.style},onPointerDown:We(l.onPointerDown,()=>{d.current===null&&(d.current=window.setInterval(a,50))}),onPointerMove:We(l.onPointerMove,()=>{u.onItemLeave?.(),d.current===null&&(d.current=window.setInterval(a,50))}),onPointerLeave:We(l.onPointerLeave,()=>{g()})})},"SelectScrollButtonImpl")),tk="SelectBubbleInput",nk=m.forwardRef(Ve(function({__scopeSelect:t,...o},i){const a=Cr(tk,t),{value:l,onValueChange:u,required:d,disabled:h,name:g,autoComplete:v,form:y}=a,{nativeOptions:S,nativeSelectKey:b}=a,w=m.useRef(null),_=Ge(i,w),k=l??"",R=Hh(k),D=Array.from(S).some(T=>(T.props.value??"")==="");return m.useEffect(()=>{const T=w.current;if(!T)return;const O=window.HTMLSelectElement.prototype,L=Object.getOwnPropertyDescriptor(O,"value").set;if(R!==k&&L){const B=new Event("change",{bubbles:!0});L.call(T,k),T.dispatchEvent(B)}},[R,k]),A.jsxs(Ze.select,{"aria-hidden":!0,required:d,tabIndex:-1,name:g,autoComplete:v,disabled:h,form:y,onChange:T=>u(T.target.value),...o,style:{...Z0,...o.style},ref:_,defaultValue:k,children:[Li(l)&&!D?A.jsx("option",{value:""}):null,Array.from(S)]},b)},"SelectBubbleInput"));function nm(r){return typeof r=="function"}Ve(nm,"isFunction");function Li(r){return r===""||r===void 0}Ve(Li,"shouldShowPlaceholder");function tu(r){const t=Cn(r),o=m.useRef(""),i=m.useRef(0),a=m.useCallback(u=>{const d=o.current+u;t(d),Ve((function h(g){o.current=g,window.clearTimeout(i.current),g!==""&&(i.current=window.setTimeout(()=>h(""),1e3))}),"updateSearch")(d)},[t]),l=m.useCallback(()=>{o.current="",window.clearTimeout(i.current)},[]);return m.useEffect(()=>()=>window.clearTimeout(i.current),[]),[o,a,l]}Ve(tu,"useTypeaheadSearch");function nu(r,t,o){const a=t.length>1&&Array.from(t).every(g=>g===t[0])?t[0]:t,l=o?r.indexOf(o):-1;let u=rm(r,Math.max(l,0));a.length===1&&(u=u.filter(g=>g!==o));const h=u.find(g=>g.textValue.toLowerCase().startsWith(a.toLowerCase()));return h!==o?h:void 0}Ve(nu,"findNextItem");function rm(r,t){return r.map((o,i)=>r[(t+i)%r.length])}Ve(rm,"wrapArray");const om=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,im=Af,sm=(r,t)=>o=>{var i;if(t?.variants==null)return im(r,o?.class,o?.className);const{variants:a,defaultVariants:l}=t,u=Object.keys(a).map(g=>{const v=o?.[g],y=l?.[g];if(v===null)return null;const S=om(v)||om(y);return a[g][S]}),d=o&&Object.entries(o).reduce((g,v)=>{let[y,S]=v;return S===void 0||(g[y]=S),g},{}),h=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((g,v)=>{let{class:y,className:S,...b}=v;return Object.entries(b).every(w=>{let[_,k]=w;return Array.isArray(k)?k.includes({...l,...d}[_]):{...l,...d}[_]===k})?[...g,y,S]:g},[]);return im(r,u,h,o?.class,o?.className)};var am=1,rk=.9,ok=.8,ik=.17,ru=.1,ou=.999,sk=.9999,ak=.99,lk=/[\\\/_+.#"@\[\(\{&]/,ck=/[\\\/_+.#"@\[\(\{&]/g,uk=/[\s-]/,lm=/[\s-]/g;function iu(r,t,o,i,a,l,u){if(l===t.length)return a===r.length?am:ak;var d=`${a},${l}`;if(u[d]!==void 0)return u[d];for(var h=i.charAt(l),g=o.indexOf(h,a),v=0,y,S,b,w;g>=0;)y=iu(r,t,o,i,g+1,l+1,u),y>v&&(g===a?y*=am:lk.test(r.charAt(g-1))?(y*=ok,b=r.slice(a,g-1).match(ck),b&&a>0&&(y*=Math.pow(ou,b.length))):uk.test(r.charAt(g-1))?(y*=rk,w=r.slice(a,g-1).match(lm),w&&a>0&&(y*=Math.pow(ou,w.length))):(y*=ik,a>0&&(y*=Math.pow(ou,g-a))),r.charAt(g)!==t.charAt(l)&&(y*=sk)),(y<ru&&o.charAt(g-1)===i.charAt(l+1)||i.charAt(l+1)===i.charAt(l)&&o.charAt(g-1)!==i.charAt(l))&&(S=iu(r,t,o,i,g+1,l+2,u),S*ru>y&&(y=S*ru)),y>v&&(v=y),g=o.indexOf(h,g+1);return u[d]=v,v}function cm(r){return r.toLowerCase().replace(lm," ")}function dk(r,t,o){return r=o&&o.length>0?`${r+" "+o.join(" ")}`:r,iu(r,t,cm(r),cm(t),0,0,{})}var $i='[cmdk-group=""]',su='[cmdk-group-items=""]',fk='[cmdk-group-heading=""]',um='[cmdk-item=""]',dm=`${um}:not([aria-disabled="true"])`,au="cmdk-item-select",Vo="data-value",pk=(r,t,o)=>dk(r,t,o),fm=m.createContext(void 0),ji=()=>m.useContext(fm),pm=m.createContext(void 0),lu=()=>m.useContext(pm),hm=m.createContext(void 0),mm=m.forwardRef((r,t)=>{let o=Uo(()=>{var E,W;return{search:"",value:(W=(E=r.value)!=null?E:r.defaultValue)!=null?W:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),i=Uo(()=>new Set),a=Uo(()=>new Map),l=Uo(()=>new Map),u=Uo(()=>new Set),d=gm(r),{label:h,children:g,value:v,onValueChange:y,filter:S,shouldFilter:b,loop:w,disablePointerSelection:_=!1,vimBindings:k=!0,...R}=r,D=Kt(),T=Kt(),O=Kt(),V=m.useRef(null),L=Ck();co(()=>{if(v!==void 0){let E=v.trim();o.current.value=E,B.emit()}},[v]),co(()=>{L(6,ue)},[]);let B=m.useMemo(()=>({subscribe:E=>(u.current.add(E),()=>u.current.delete(E)),snapshot:()=>o.current,setState:(E,W,J)=>{var H,re,pe,X;if(!Object.is(o.current[E],W)){if(o.current[E]=W,E==="search")le(),ce(),L(1,Ce);else if(E==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ne=document.getElementById(O);ne?ne.focus():(H=document.getElementById(D))==null||H.focus()}if(L(7,()=>{var ne;o.current.selectedItemId=(ne=se())==null?void 0:ne.id,B.emit()}),J||L(5,ue),((re=d.current)==null?void 0:re.value)!==void 0){let ne=W??"";(X=(pe=d.current).onValueChange)==null||X.call(pe,ne);return}}B.emit()}},emit:()=>{u.current.forEach(E=>E())}}),[]),j=m.useMemo(()=>({value:(E,W,J)=>{var H;W!==((H=l.current.get(E))==null?void 0:H.value)&&(l.current.set(E,{value:W,keywords:J}),o.current.filtered.items.set(E,Y(W,J)),L(2,()=>{ce(),B.emit()}))},item:(E,W)=>(i.current.add(E),W&&(a.current.has(W)?a.current.get(W).add(E):a.current.set(W,new Set([E]))),L(3,()=>{le(),ce(),o.current.value||Ce(),B.emit()}),()=>{l.current.delete(E),i.current.delete(E),o.current.filtered.items.delete(E);let J=se();L(4,()=>{le(),J?.getAttribute("id")===E&&Ce(),B.emit()})}),group:E=>(a.current.has(E)||a.current.set(E,new Set),()=>{l.current.delete(E),a.current.delete(E)}),filter:()=>d.current.shouldFilter,label:h||r["aria-label"],getDisablePointerSelection:()=>d.current.disablePointerSelection,listId:D,inputId:O,labelId:T,listInnerRef:V}),[]);function Y(E,W){var J,H;let re=(H=(J=d.current)==null?void 0:J.filter)!=null?H:pk;return E?re(E,o.current.search,W):0}function ce(){if(!o.current.search||d.current.shouldFilter===!1)return;let E=o.current.filtered.items,W=[];o.current.filtered.groups.forEach(H=>{let re=a.current.get(H),pe=0;re.forEach(X=>{let ne=E.get(X);pe=Math.max(ne,pe)}),W.push([H,pe])});let J=V.current;be().sort((H,re)=>{var pe,X;let ne=H.getAttribute("id"),Te=re.getAttribute("id");return((pe=E.get(Te))!=null?pe:0)-((X=E.get(ne))!=null?X:0)}).forEach(H=>{let re=H.closest(su);re?re.appendChild(H.parentElement===re?H:H.closest(`${su} > *`)):J.appendChild(H.parentElement===J?H:H.closest(`${su} > *`))}),W.sort((H,re)=>re[1]-H[1]).forEach(H=>{var re;let pe=(re=V.current)==null?void 0:re.querySelector(`${$i}[${Vo}="${encodeURIComponent(H[0])}"]`);pe?.parentElement.appendChild(pe)})}function Ce(){let E=be().find(J=>J.getAttribute("aria-disabled")!=="true"),W=E?.getAttribute(Vo);B.setState("value",W||void 0)}function le(){var E,W,J,H;if(!o.current.search||d.current.shouldFilter===!1){o.current.filtered.count=i.current.size;return}o.current.filtered.groups=new Set;let re=0;for(let pe of i.current){let X=(W=(E=l.current.get(pe))==null?void 0:E.value)!=null?W:"",ne=(H=(J=l.current.get(pe))==null?void 0:J.keywords)!=null?H:[],Te=Y(X,ne);o.current.filtered.items.set(pe,Te),Te>0&&re++}for(let[pe,X]of a.current)for(let ne of X)if(o.current.filtered.items.get(ne)>0){o.current.filtered.groups.add(pe);break}o.current.filtered.count=re}function ue(){var E,W,J;let H=se();H&&(((E=H.parentElement)==null?void 0:E.firstChild)===H&&((J=(W=H.closest($i))==null?void 0:W.querySelector(fk))==null||J.scrollIntoView({block:"nearest"})),H.scrollIntoView({block:"nearest"}))}function se(){var E;return(E=V.current)==null?void 0:E.querySelector(`${um}[aria-selected="true"]`)}function be(){var E;return Array.from(((E=V.current)==null?void 0:E.querySelectorAll(dm))||[])}function ae(E){let W=be()[E];W&&B.setState("value",W.getAttribute(Vo))}function oe(E){var W;let J=se(),H=be(),re=H.findIndex(X=>X===J),pe=H[re+E];(W=d.current)!=null&&W.loop&&(pe=re+E<0?H[H.length-1]:re+E===H.length?H[0]:H[re+E]),pe&&B.setState("value",pe.getAttribute(Vo))}function U(E){let W=se(),J=W?.closest($i),H;for(;J&&!H;)J=E>0?bk(J,$i):kk(J,$i),H=J?.querySelector(dm);H?B.setState("value",H.getAttribute(Vo)):oe(E)}let G=()=>ae(be().length-1),z=E=>{E.preventDefault(),E.metaKey?G():E.altKey?U(1):oe(1)},I=E=>{E.preventDefault(),E.metaKey?ae(0):E.altKey?U(-1):oe(-1)};return m.createElement(Ze.div,{ref:t,tabIndex:-1,...R,"cmdk-root":"",onKeyDown:E=>{var W;(W=R.onKeyDown)==null||W.call(R,E);let J=E.nativeEvent.isComposing||E.keyCode===229;if(!(E.defaultPrevented||J))switch(E.key){case"n":case"j":{k&&E.ctrlKey&&z(E);break}case"ArrowDown":{z(E);break}case"p":case"k":{k&&E.ctrlKey&&I(E);break}case"ArrowUp":{I(E);break}case"Home":{E.preventDefault(),ae(0);break}case"End":{E.preventDefault(),G();break}case"Enter":{E.preventDefault();let H=se();if(H){let re=new Event(au);H.dispatchEvent(re)}}}}},m.createElement("label",{"cmdk-label":"",htmlFor:j.inputId,id:j.labelId,style:Ek},h),xa(r,E=>m.createElement(pm.Provider,{value:B},m.createElement(fm.Provider,{value:j},E))))}),hk=m.forwardRef((r,t)=>{var o,i;let a=Kt(),l=m.useRef(null),u=m.useContext(hm),d=ji(),h=gm(r),g=(i=(o=h.current)==null?void 0:o.forceMount)!=null?i:u?.forceMount;co(()=>{if(!g)return d.item(a,u?.id)},[g]);let v=vm(a,l,[r.value,r.children,l],r.keywords),y=lu(),S=_r(L=>L.value&&L.value===v.current),b=_r(L=>g||d.filter()===!1?!0:L.search?L.filtered.items.get(a)>0:!0);m.useEffect(()=>{let L=l.current;if(!(!L||r.disabled))return L.addEventListener(au,w),()=>L.removeEventListener(au,w)},[b,r.onSelect,r.disabled]);function w(){var L,B;_(),(B=(L=h.current).onSelect)==null||B.call(L,v.current)}function _(){y.setState("value",v.current,!0)}if(!b)return null;let{disabled:k,value:R,onSelect:D,forceMount:T,keywords:O,...V}=r;return m.createElement(Ze.div,{ref:no(l,t),...V,id:a,"cmdk-item":"",role:"option","aria-disabled":!!k,"aria-selected":!!S,"data-disabled":!!k,"data-selected":!!S,onPointerMove:k||d.getDisablePointerSelection()?void 0:_,onClick:k?void 0:w},r.children)}),mk=m.forwardRef((r,t)=>{let{heading:o,children:i,forceMount:a,...l}=r,u=Kt(),d=m.useRef(null),h=m.useRef(null),g=Kt(),v=ji(),y=_r(b=>a||v.filter()===!1?!0:b.search?b.filtered.groups.has(u):!0);co(()=>v.group(u),[]),vm(u,d,[r.value,r.heading,h]);let S=m.useMemo(()=>({id:u,forceMount:a}),[a]);return m.createElement(Ze.div,{ref:no(d,t),...l,"cmdk-group":"",role:"presentation",hidden:y?void 0:!0},o&&m.createElement("div",{ref:h,"cmdk-group-heading":"","aria-hidden":!0,id:g},o),xa(r,b=>m.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":o?g:void 0},m.createElement(hm.Provider,{value:S},b))))}),gk=m.forwardRef((r,t)=>{let{alwaysRender:o,...i}=r,a=m.useRef(null),l=_r(u=>!u.search);return!o&&!l?null:m.createElement(Ze.div,{ref:no(a,t),...i,"cmdk-separator":"",role:"separator"})}),vk=m.forwardRef((r,t)=>{let{onValueChange:o,...i}=r,a=r.value!=null,l=lu(),u=_r(g=>g.search),d=_r(g=>g.selectedItemId),h=ji();return m.useEffect(()=>{r.value!=null&&l.setState("search",r.value)},[r.value]),m.createElement(Ze.input,{ref:t,...i,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":h.listId,"aria-labelledby":h.labelId,"aria-activedescendant":d,id:h.inputId,type:"text",value:a?r.value:u,onChange:g=>{a||l.setState("search",g.target.value),o?.(g.target.value)}})}),yk=m.forwardRef((r,t)=>{let{children:o,label:i="Suggestions",...a}=r,l=m.useRef(null),u=m.useRef(null),d=_r(g=>g.selectedItemId),h=ji();return m.useEffect(()=>{if(u.current&&l.current){let g=u.current,v=l.current,y,S=new ResizeObserver(()=>{y=requestAnimationFrame(()=>{let b=g.offsetHeight;v.style.setProperty("--cmdk-list-height",b.toFixed(1)+"px")})});return S.observe(g),()=>{cancelAnimationFrame(y),S.unobserve(g)}}},[]),m.createElement(Ze.div,{ref:no(l,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":d,"aria-label":i,id:h.listId},xa(r,g=>m.createElement("div",{ref:no(u,h.listInnerRef),"cmdk-list-sizer":""},g)))}),xk=m.forwardRef((r,t)=>{let{open:o,onOpenChange:i,overlayClassName:a,contentClassName:l,container:u,...d}=r;return m.createElement(Tc,{open:o,onOpenChange:i},m.createElement(Dc,{container:u},m.createElement(Lc,{"cmdk-overlay":"",className:a}),m.createElement($c,{"aria-label":r.label,"cmdk-dialog":"",className:l},m.createElement(mm,{ref:t,...d}))))}),wk=m.forwardRef((r,t)=>_r(o=>o.filtered.count===0)?m.createElement(Ze.div,{ref:t,...r,"cmdk-empty":"",role:"presentation"}):null),Sk=m.forwardRef((r,t)=>{let{progress:o,children:i,label:a="Loading...",...l}=r;return m.createElement(Ze.div,{ref:t,...l,"cmdk-loading":"",role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},xa(r,u=>m.createElement("div",{"aria-hidden":!0},u)))}),Mi=Object.assign(mm,{List:yk,Item:hk,Input:vk,Group:mk,Separator:gk,Dialog:xk,Empty:wk,Loading:Sk});function bk(r,t){let o=r.nextElementSibling;for(;o;){if(o.matches(t))return o;o=o.nextElementSibling}}function kk(r,t){let o=r.previousElementSibling;for(;o;){if(o.matches(t))return o;o=o.previousElementSibling}}function gm(r){let t=m.useRef(r);return co(()=>{t.current=r}),t}var co=typeof window>"u"?m.useEffect:m.useLayoutEffect;function Uo(r){let t=m.useRef();return t.current===void 0&&(t.current=r()),t}function _r(r){let t=lu(),o=()=>r(t.snapshot());return m.useSyncExternalStore(t.subscribe,o,o)}function vm(r,t,o,i=[]){let a=m.useRef(),l=ji();return co(()=>{var u;let d=(()=>{var g;for(let v of o){if(typeof v=="string")return v.trim();if(typeof v=="object"&&"current"in v)return v.current?(g=v.current.textContent)==null?void 0:g.trim():a.current}})(),h=i.map(g=>g.trim());l.value(r,d,h),(u=t.current)==null||u.setAttribute(Vo,d),a.current=d}),a}var Ck=()=>{let[r,t]=m.useState(),o=Uo(()=>new Map);return co(()=>{o.current.forEach(i=>i()),o.current=new Map},[r]),(i,a)=>{o.current.set(i,a),t({})}};function _k(r){let t=r.type;return typeof t=="function"?t(r.props):"render"in t?t.render(r.props):r}function xa({asChild:r,children:t},o){return r&&m.isValidElement(t)?m.cloneElement(_k(t),{ref:t.ref},o(t.props.children)):o(t)}var Ek={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Oe=r=>typeof r=="string",zi=()=>{let r,t;const o=new Promise((i,a)=>{r=i,t=a});return o.resolve=r,o.reject=t,o},ym=r=>r==null?"":""+r,Rk=(r,t,o)=>{r.forEach(i=>{t[i]&&(o[i]=t[i])})},Pk=/###/g,xm=r=>r&&r.indexOf("###")>-1?r.replace(Pk,"."):r,wm=r=>!r||Oe(r),Fi=(r,t,o)=>{const i=Oe(t)?t.split("."):t;let a=0;for(;a<i.length-1;){if(wm(r))return{};const l=xm(i[a]);!r[l]&&o&&(r[l]=new o),Object.prototype.hasOwnProperty.call(r,l)?r=r[l]:r={},++a}return wm(r)?{}:{obj:r,k:xm(i[a])}},Sm=(r,t,o)=>{const{obj:i,k:a}=Fi(r,t,Object);if(i!==void 0||t.length===1){i[a]=o;return}let l=t[t.length-1],u=t.slice(0,t.length-1),d=Fi(r,u,Object);for(;d.obj===void 0&&u.length;)l=`${u[u.length-1]}.${l}`,u=u.slice(0,u.length-1),d=Fi(r,u,Object),d?.obj&&typeof d.obj[`${d.k}.${l}`]<"u"&&(d.obj=void 0);d.obj[`${d.k}.${l}`]=o},Ik=(r,t,o,i)=>{const{obj:a,k:l}=Fi(r,t,Object);a[l]=a[l]||[],a[l].push(o)},wa=(r,t)=>{const{obj:o,k:i}=Fi(r,t);if(o&&Object.prototype.hasOwnProperty.call(o,i))return o[i]},Ok=(r,t,o)=>{const i=wa(r,o);return i!==void 0?i:wa(t,o)},bm=(r,t,o)=>{for(const i in t)i!=="__proto__"&&i!=="constructor"&&(i in r?Oe(r[i])||r[i]instanceof String||Oe(t[i])||t[i]instanceof String?o&&(r[i]=t[i]):bm(r[i],t[i],o):r[i]=t[i]);return r},Bo=r=>r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Nk={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Tk=r=>Oe(r)?r.replace(/[&<>"'\/]/g,t=>Nk[t]):r;class Dk{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const o=this.regExpMap.get(t);if(o!==void 0)return o;const i=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,i),this.regExpQueue.push(t),i}}const Ak=[" ",",","?","!",";"],Lk=new Dk(20),$k=(r,t,o)=>{t=t||"",o=o||"";const i=Ak.filter(u=>t.indexOf(u)<0&&o.indexOf(u)<0);if(i.length===0)return!0;const a=Lk.getRegExp(`(${i.map(u=>u==="?"?"\\?":u).join("|")})`);let l=!a.test(r);if(!l){const u=r.indexOf(o);u>0&&!a.test(r.substring(0,u))&&(l=!0)}return l},cu=(r,t,o=".")=>{if(!r)return;if(r[t])return Object.prototype.hasOwnProperty.call(r,t)?r[t]:void 0;const i=t.split(o);let a=r;for(let l=0;l<i.length;){if(!a||typeof a!="object")return;let u,d="";for(let h=l;h<i.length;++h)if(h!==l&&(d+=o),d+=i[h],u=a[d],u!==void 0){if(["string","number","boolean"].indexOf(typeof u)>-1&&h<i.length-1)continue;l+=h-l+1;break}a=u}return a},Vi=r=>r?.replace("_","-"),jk={type:"logger",log(r){this.output("log",r)},warn(r){this.output("warn",r)},error(r){this.output("error",r)},output(r,t){console?.[r]?.apply?.(console,t)}};class Sa{constructor(t,o={}){this.init(t,o)}init(t,o={}){this.prefix=o.prefix||"i18next:",this.logger=t||jk,this.options=o,this.debug=o.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,o,i,a){return a&&!this.debug?null:(Oe(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[o](t))}create(t){return new Sa(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Sa(this.logger,t)}}var In=new Sa;class ba{constructor(){this.observers={}}on(t,o){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const a=this.observers[i].get(o)||0;this.observers[i].set(o,a+1)}),this}off(t,o){if(this.observers[t]){if(!o){delete this.observers[t];return}this.observers[t].delete(o)}}emit(t,...o){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([a,l])=>{for(let u=0;u<l;u++)a(...o)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([a,l])=>{for(let u=0;u<l;u++)a.apply(a,[t,...o])})}}class km extends ba{constructor(t,o={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const o=this.options.ns.indexOf(t);o>-1&&this.options.ns.splice(o,1)}getResource(t,o,i,a={}){const l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,u=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let d;t.indexOf(".")>-1?d=t.split("."):(d=[t,o],i&&(Array.isArray(i)?d.push(...i):Oe(i)&&l?d.push(...i.split(l)):d.push(i)));const h=wa(this.data,d);return!h&&!o&&!i&&t.indexOf(".")>-1&&(t=d[0],o=d[1],i=d.slice(2).join(".")),h||!u||!Oe(i)?h:cu(this.data?.[t]?.[o],i,l)}addResource(t,o,i,a,l={silent:!1}){const u=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator;let d=[t,o];i&&(d=d.concat(u?i.split(u):i)),t.indexOf(".")>-1&&(d=t.split("."),a=o,o=d[1]),this.addNamespaces(o),Sm(this.data,d,a),l.silent||this.emit("added",t,o,i,a)}addResources(t,o,i,a={silent:!1}){for(const l in i)(Oe(i[l])||Array.isArray(i[l]))&&this.addResource(t,o,l,i[l],{silent:!0});a.silent||this.emit("added",t,o,i)}addResourceBundle(t,o,i,a,l,u={silent:!1,skipCopy:!1}){let d=[t,o];t.indexOf(".")>-1&&(d=t.split("."),a=i,i=o,o=d[1]),this.addNamespaces(o);let h=wa(this.data,d)||{};u.skipCopy||(i=JSON.parse(JSON.stringify(i))),a?bm(h,i,l):h={...h,...i},Sm(this.data,d,h),u.silent||this.emit("added",t,o,i)}removeResourceBundle(t,o){this.hasResourceBundle(t,o)&&delete this.data[t][o],this.removeNamespaces(o),this.emit("removed",t,o)}hasResourceBundle(t,o){return this.getResource(t,o)!==void 0}getResourceBundle(t,o){return o||(o=this.options.defaultNS),this.getResource(t,o)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const o=this.getDataByLanguage(t);return!!(o&&Object.keys(o)||[]).find(a=>o[a]&&Object.keys(o[a]).length>0)}toJSON(){return this.data}}var Cm={processors:{},addPostProcessor(r){this.processors[r.name]=r},handle(r,t,o,i,a){return r.forEach(l=>{t=this.processors[l]?.process(t,o,i,a)??t}),t}};const _m=Symbol("i18next/PATH_KEY");function Mk(){const r=[],t=Object.create(null);let o;return t.get=(i,a)=>(o?.revoke?.(),a===_m?r:(r.push(a),o=Proxy.revocable(i,t),o.proxy)),Proxy.revocable(Object.create(null),t).proxy}function uu(r,t){const{[_m]:o}=r(Mk());return o.join(t?.keySeparator??".")}const Em={},du=r=>!Oe(r)&&typeof r!="boolean"&&typeof r!="number";class ka extends ba{constructor(t,o={}){super(),Rk(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=In.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,o={interpolation:{}}){const i={...o};if(t==null)return!1;const a=this.resolve(t,i);if(a?.res===void 0)return!1;const l=du(a.res);return!(i.returnObjects===!1&&l)}extractFromKey(t,o){let i=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let l=o.ns||this.options.defaultNS||[];const u=i&&t.indexOf(i)>-1,d=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!$k(t,i,a);if(u&&!d){const h=t.match(this.interpolator.nestingRegexp);if(h&&h.length>0)return{key:t,namespaces:Oe(l)?[l]:l};const g=t.split(i);(i!==a||i===a&&this.options.ns.indexOf(g[0])>-1)&&(l=g.shift()),t=g.join(a)}return{key:t,namespaces:Oe(l)?[l]:l}}translate(t,o,i){let a=typeof o=="object"?{...o}:o;if(typeof a!="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),typeof a=="object"&&(a={...a}),a||(a={}),t==null)return"";typeof t=="function"&&(t=uu(t,{...this.options,...a})),Array.isArray(t)||(t=[String(t)]);const l=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,u=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,{key:d,namespaces:h}=this.extractFromKey(t[t.length-1],a),g=h[h.length-1];let v=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;v===void 0&&(v=":");const y=a.lng||this.language,S=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(y?.toLowerCase()==="cimode")return S?l?{res:`${g}${v}${d}`,usedKey:d,exactUsedKey:d,usedLng:y,usedNS:g,usedParams:this.getUsedParamsDetails(a)}:`${g}${v}${d}`:l?{res:d,usedKey:d,exactUsedKey:d,usedLng:y,usedNS:g,usedParams:this.getUsedParamsDetails(a)}:d;const b=this.resolve(t,a);let w=b?.res;const _=b?.usedKey||d,k=b?.exactUsedKey||d,R=["[object Number]","[object Function]","[object RegExp]"],D=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,T=!this.i18nFormat||this.i18nFormat.handleAsObject,O=a.count!==void 0&&!Oe(a.count),V=ka.hasDefaultValue(a),L=O?this.pluralResolver.getSuffix(y,a.count,a):"",B=a.ordinal&&O?this.pluralResolver.getSuffix(y,a.count,{ordinal:!1}):"",j=O&&!a.ordinal&&a.count===0,Y=j&&a[`defaultValue${this.options.pluralSeparator}zero`]||a[`defaultValue${L}`]||a[`defaultValue${B}`]||a.defaultValue;let ce=w;T&&!w&&V&&(ce=Y);const Ce=du(ce),le=Object.prototype.toString.apply(ce);if(T&&ce&&Ce&&R.indexOf(le)<0&&!(Oe(D)&&Array.isArray(ce))){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ue=this.options.returnedObjectHandler?this.options.returnedObjectHandler(_,ce,{...a,ns:h}):`key '${d} (${this.language})' returned an object instead of string.`;return l?(b.res=ue,b.usedParams=this.getUsedParamsDetails(a),b):ue}if(u){const ue=Array.isArray(ce),se=ue?[]:{},be=ue?k:_;for(const ae in ce)if(Object.prototype.hasOwnProperty.call(ce,ae)){const oe=`${be}${u}${ae}`;V&&!w?se[ae]=this.translate(oe,{...a,defaultValue:du(Y)?Y[ae]:void 0,joinArrays:!1,ns:h}):se[ae]=this.translate(oe,{...a,joinArrays:!1,ns:h}),se[ae]===oe&&(se[ae]=ce[ae])}w=se}}else if(T&&Oe(D)&&Array.isArray(w))w=w.join(D),w&&(w=this.extendTranslation(w,t,a,i));else{let ue=!1,se=!1;!this.isValidLookup(w)&&V&&(ue=!0,w=Y),this.isValidLookup(w)||(se=!0,w=d);const ae=(a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&se?void 0:w,oe=V&&Y!==w&&this.options.updateMissing;if(se||ue||oe){if(this.logger.log(oe?"updateKey":"missingKey",y,g,d,oe?Y:w),u){const I=this.resolve(d,{...a,keySeparator:!1});I&&I.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let U=[];const G=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&G&&G[0])for(let I=0;I<G.length;I++)U.push(G[I]);else this.options.saveMissingTo==="all"?U=this.languageUtils.toResolveHierarchy(a.lng||this.language):U.push(a.lng||this.language);const z=(I,E,W)=>{const J=V&&W!==w?W:ae;this.options.missingKeyHandler?this.options.missingKeyHandler(I,g,E,J,oe,a):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(I,g,E,J,oe,a),this.emit("missingKey",I,g,E,w)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?U.forEach(I=>{const E=this.pluralResolver.getSuffixes(I,a);j&&a[`defaultValue${this.options.pluralSeparator}zero`]&&E.indexOf(`${this.options.pluralSeparator}zero`)<0&&E.push(`${this.options.pluralSeparator}zero`),E.forEach(W=>{z([I],d+W,a[`defaultValue${W}`]||Y)})}):z(U,d,Y))}w=this.extendTranslation(w,t,a,b,i),se&&w===d&&this.options.appendNamespaceToMissingKey&&(w=`${g}${v}${d}`),(se||ue)&&this.options.parseMissingKeyHandler&&(w=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${g}${v}${d}`:d,ue?w:void 0,a))}return l?(b.res=w,b.usedParams=this.getUsedParamsDetails(a),b):w}extendTranslation(t,o,i,a,l){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const h=Oe(t)&&(i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let g;if(h){const y=t.match(this.interpolator.nestingRegexp);g=y&&y.length}let v=i.replace&&!Oe(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(v={...this.options.interpolation.defaultVariables,...v}),t=this.interpolator.interpolate(t,v,i.lng||this.language||a.usedLng,i),h){const y=t.match(this.interpolator.nestingRegexp),S=y&&y.length;g<S&&(i.nest=!1)}!i.lng&&a&&a.res&&(i.lng=this.language||a.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,(...y)=>l?.[0]===y[0]&&!i.context?(this.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${o[0]}`),null):this.translate(...y,o),i)),i.interpolation&&this.interpolator.reset()}const u=i.postProcess||this.options.postProcess,d=Oe(u)?[u]:u;return t!=null&&d?.length&&i.applyPostProcessor!==!1&&(t=Cm.handle(d,t,o,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t,o={}){let i,a,l,u,d;return Oe(t)&&(t=[t]),t.forEach(h=>{if(this.isValidLookup(i))return;const g=this.extractFromKey(h,o),v=g.key;a=v;let y=g.namespaces;this.options.fallbackNS&&(y=y.concat(this.options.fallbackNS));const S=o.count!==void 0&&!Oe(o.count),b=S&&!o.ordinal&&o.count===0,w=o.context!==void 0&&(Oe(o.context)||typeof o.context=="number")&&o.context!=="",_=o.lngs?o.lngs:this.languageUtils.toResolveHierarchy(o.lng||this.language,o.fallbackLng);y.forEach(k=>{this.isValidLookup(i)||(d=k,!Em[`${_[0]}-${k}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(d)&&(Em[`${_[0]}-${k}`]=!0,this.logger.warn(`key "${a}" for languages "${_.join(", ")}" won't get resolved as namespace "${d}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),_.forEach(R=>{if(this.isValidLookup(i))return;u=R;const D=[v];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(D,v,R,k,o);else{let O;S&&(O=this.pluralResolver.getSuffix(R,o.count,o));const V=`${this.options.pluralSeparator}zero`,L=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(S&&(o.ordinal&&O.indexOf(L)===0&&D.push(v+O.replace(L,this.options.pluralSeparator)),D.push(v+O),b&&D.push(v+V)),w){const B=`${v}${this.options.contextSeparator||"_"}${o.context}`;D.push(B),S&&(o.ordinal&&O.indexOf(L)===0&&D.push(B+O.replace(L,this.options.pluralSeparator)),D.push(B+O),b&&D.push(B+V))}}let T;for(;T=D.pop();)this.isValidLookup(i)||(l=T,i=this.getResource(R,k,T,o))}))})}),{res:i,usedKey:a,exactUsedKey:l,usedLng:u,usedNS:d}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,o,i,a={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,o,i,a):this.resourceStore.getResource(t,o,i,a)}getUsedParamsDetails(t={}){const o=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!Oe(t.replace);let a=i?t.replace:t;if(i&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!i){a={...a};for(const l of o)delete a[l]}return a}static hasDefaultValue(t){const o="defaultValue";for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&o===i.substring(0,o.length)&&t[i]!==void 0)return!0;return!1}}class Rm{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=In.create("languageUtils")}getScriptPartFromCode(t){if(t=Vi(t),!t||t.indexOf("-")<0)return null;const o=t.split("-");return o.length===2||(o.pop(),o[o.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(o.join("-"))}getLanguagePartFromCode(t){if(t=Vi(t),!t||t.indexOf("-")<0)return t;const o=t.split("-");return this.formatLanguageCode(o[0])}formatLanguageCode(t){if(Oe(t)&&t.indexOf("-")>-1){let o;try{o=Intl.getCanonicalLocales(t)[0]}catch{}return o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let o;return t.forEach(i=>{if(o)return;const a=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(a))&&(o=a)}),!o&&this.options.supportedLngs&&t.forEach(i=>{if(o)return;const a=this.getScriptPartFromCode(i);if(this.isSupportedCode(a))return o=a;const l=this.getLanguagePartFromCode(i);if(this.isSupportedCode(l))return o=l;o=this.options.supportedLngs.find(u=>{if(u===l)return u;if(!(u.indexOf("-")<0&&l.indexOf("-")<0)&&(u.indexOf("-")>0&&l.indexOf("-")<0&&u.substring(0,u.indexOf("-"))===l||u.indexOf(l)===0&&l.length>1))return u})}),o||(o=this.getFallbackCodes(this.options.fallbackLng)[0]),o}getFallbackCodes(t,o){if(!t)return[];if(typeof t=="function"&&(t=t(o)),Oe(t)&&(t=[t]),Array.isArray(t))return t;if(!o)return t.default||[];let i=t[o];return i||(i=t[this.getScriptPartFromCode(o)]),i||(i=t[this.formatLanguageCode(o)]),i||(i=t[this.getLanguagePartFromCode(o)]),i||(i=t.default),i||[]}toResolveHierarchy(t,o){const i=this.getFallbackCodes((o===!1?[]:o)||this.options.fallbackLng||[],t),a=[],l=u=>{u&&(this.isSupportedCode(u)?a.push(u):this.logger.warn(`rejecting language code not found in supportedLngs: ${u}`))};return Oe(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(t))):Oe(t)&&l(this.formatLanguageCode(t)),i.forEach(u=>{a.indexOf(u)<0&&l(this.formatLanguageCode(u))}),a}}const Pm={zero:0,one:1,two:2,few:3,many:4,other:5},Im={select:r=>r===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class zk{constructor(t,o={}){this.languageUtils=t,this.options=o,this.logger=In.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,o){this.rules[t]=o}clearCache(){this.pluralRulesCache={}}getRule(t,o={}){const i=Vi(t==="dev"?"en":t),a=o.ordinal?"ordinal":"cardinal",l=JSON.stringify({cleanedCode:i,type:a});if(l in this.pluralRulesCache)return this.pluralRulesCache[l];let u;try{u=new Intl.PluralRules(i,{type:a})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Im;if(!t.match(/-|_/))return Im;const h=this.languageUtils.getLanguagePartFromCode(t);u=this.getRule(h,o)}return this.pluralRulesCache[l]=u,u}needsPlural(t,o={}){let i=this.getRule(t,o);return i||(i=this.getRule("dev",o)),i?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,o,i={}){return this.getSuffixes(t,i).map(a=>`${o}${a}`)}getSuffixes(t,o={}){let i=this.getRule(t,o);return i||(i=this.getRule("dev",o)),i?i.resolvedOptions().pluralCategories.sort((a,l)=>Pm[a]-Pm[l]).map(a=>`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(t,o,i={}){const a=this.getRule(t,i);return a?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${a.select(o)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",o,i))}}const Om=(r,t,o,i=".",a=!0)=>{let l=Ok(r,t,o);return!l&&a&&Oe(o)&&(l=cu(r,o,i),l===void 0&&(l=cu(t,o,i))),l},fu=r=>r.replace(/\$/g,"$$$$");class Fk{constructor(t={}){this.logger=In.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(o=>o),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:o,escapeValue:i,useRawValueToEscape:a,prefix:l,prefixEscaped:u,suffix:d,suffixEscaped:h,formatSeparator:g,unescapeSuffix:v,unescapePrefix:y,nestingPrefix:S,nestingPrefixEscaped:b,nestingSuffix:w,nestingSuffixEscaped:_,nestingOptionsSeparator:k,maxReplaces:R,alwaysFormat:D}=t.interpolation;this.escape=o!==void 0?o:Tk,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=l?Bo(l):u||"{{",this.suffix=d?Bo(d):h||"}}",this.formatSeparator=g||",",this.unescapePrefix=v?"":y||"-",this.unescapeSuffix=this.unescapePrefix?"":v||"",this.nestingPrefix=S?Bo(S):b||Bo("$t("),this.nestingSuffix=w?Bo(w):_||Bo(")"),this.nestingOptionsSeparator=k||",",this.maxReplaces=R||1e3,this.alwaysFormat=D!==void 0?D:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(o,i)=>o?.source===i?(o.lastIndex=0,o):new RegExp(i,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,o,i,a){let l,u,d;const h=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},g=b=>{if(b.indexOf(this.formatSeparator)<0){const R=Om(o,h,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(R,void 0,i,{...a,...o,interpolationkey:b}):R}const w=b.split(this.formatSeparator),_=w.shift().trim(),k=w.join(this.formatSeparator).trim();return this.format(Om(o,h,_,this.options.keySeparator,this.options.ignoreJSONStructure),k,i,{...a,...o,interpolationkey:_})};this.resetRegExp();const v=a?.missingInterpolationHandler||this.options.missingInterpolationHandler,y=a?.interpolation?.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>fu(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?fu(this.escape(b)):fu(b)}].forEach(b=>{for(d=0;l=b.regex.exec(t);){const w=l[1].trim();if(u=g(w),u===void 0)if(typeof v=="function"){const k=v(t,l,a);u=Oe(k)?k:""}else if(a&&Object.prototype.hasOwnProperty.call(a,w))u="";else if(y){u=l[0];continue}else this.logger.warn(`missed to pass in variable ${w} for interpolating ${t}`),u="";else!Oe(u)&&!this.useRawValueToEscape&&(u=ym(u));const _=b.safeValue(u);if(t=t.replace(l[0],_),y?(b.regex.lastIndex+=u.length,b.regex.lastIndex-=l[0].length):b.regex.lastIndex=0,d++,d>=this.maxReplaces)break}}),t}nest(t,o,i={}){let a,l,u;const d=(h,g)=>{const v=this.nestingOptionsSeparator;if(h.indexOf(v)<0)return h;const y=h.split(new RegExp(`${v}[ ]*{`));let S=`{${y[1]}`;h=y[0],S=this.interpolate(S,u);const b=S.match(/'/g),w=S.match(/"/g);((b?.length??0)%2===0&&!w||w.length%2!==0)&&(S=S.replace(/'/g,'"'));try{u=JSON.parse(S),g&&(u={...g,...u})}catch(_){return this.logger.warn(`failed parsing options string in nesting for key ${h}`,_),`${h}${v}${S}`}return u.defaultValue&&u.defaultValue.indexOf(this.prefix)>-1&&delete u.defaultValue,h};for(;a=this.nestingRegexp.exec(t);){let h=[];u={...i},u=u.replace&&!Oe(u.replace)?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;const g=/{.*}/.test(a[1])?a[1].lastIndexOf("}")+1:a[1].indexOf(this.formatSeparator);if(g!==-1&&(h=a[1].slice(g).split(this.formatSeparator).map(v=>v.trim()).filter(Boolean),a[1]=a[1].slice(0,g)),l=o(d.call(this,a[1].trim(),u),u),l&&a[0]===t&&!Oe(l))return l;Oe(l)||(l=ym(l)),l||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),l=""),h.length&&(l=h.reduce((v,y)=>this.format(v,y,i.lng,{...i,interpolationkey:a[1].trim()}),l.trim())),t=t.replace(a[0],l),this.regexp.lastIndex=0}return t}}const Vk=r=>{let t=r.toLowerCase().trim();const o={};if(r.indexOf("(")>-1){const i=r.split("(");t=i[0].toLowerCase().trim();const a=i[1].substring(0,i[1].length-1);t==="currency"&&a.indexOf(":")<0?o.currency||(o.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?o.range||(o.range=a.trim()):a.split(";").forEach(u=>{if(u){const[d,...h]=u.split(":"),g=h.join(":").trim().replace(/^'+|'+$/g,""),v=d.trim();o[v]||(o[v]=g),g==="false"&&(o[v]=!1),g==="true"&&(o[v]=!0),isNaN(g)||(o[v]=parseInt(g,10))}})}return{formatName:t,formatOptions:o}},Nm=r=>{const t={};return(o,i,a)=>{let l=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(l={...l,[a.interpolationkey]:void 0});const u=i+JSON.stringify(l);let d=t[u];return d||(d=r(Vi(i),a),t[u]=d),d(o)}},Uk=r=>(t,o,i)=>r(Vi(o),i)(t);class Bk{constructor(t={}){this.logger=In.create("formatter"),this.options=t,this.init(t)}init(t,o={interpolation:{}}){this.formatSeparator=o.interpolation.formatSeparator||",";const i=o.cacheInBuiltFormats?Nm:Uk;this.formats={number:i((a,l)=>{const u=new Intl.NumberFormat(a,{...l});return d=>u.format(d)}),currency:i((a,l)=>{const u=new Intl.NumberFormat(a,{...l,style:"currency"});return d=>u.format(d)}),datetime:i((a,l)=>{const u=new Intl.DateTimeFormat(a,{...l});return d=>u.format(d)}),relativetime:i((a,l)=>{const u=new Intl.RelativeTimeFormat(a,{...l});return d=>u.format(d,l.range||"day")}),list:i((a,l)=>{const u=new Intl.ListFormat(a,{...l});return d=>u.format(d)})}}add(t,o){this.formats[t.toLowerCase().trim()]=o}addCached(t,o){this.formats[t.toLowerCase().trim()]=Nm(o)}format(t,o,i,a={}){const l=o.split(this.formatSeparator);if(l.length>1&&l[0].indexOf("(")>1&&l[0].indexOf(")")<0&&l.find(d=>d.indexOf(")")>-1)){const d=l.findIndex(h=>h.indexOf(")")>-1);l[0]=[l[0],...l.splice(1,d)].join(this.formatSeparator)}return l.reduce((d,h)=>{const{formatName:g,formatOptions:v}=Vk(h);if(this.formats[g]){let y=d;try{const S=a?.formatParams?.[a.interpolationkey]||{},b=S.locale||S.lng||a.locale||a.lng||i;y=this.formats[g](d,b,{...v,...a,...S})}catch(S){this.logger.warn(S)}return y}else this.logger.warn(`there was no format function for ${g}`);return d},t)}}const Hk=(r,t)=>{r.pending[t]!==void 0&&(delete r.pending[t],r.pendingCount--)};class Wk extends ba{constructor(t,o,i,a={}){super(),this.backend=t,this.store=o,this.services=i,this.languageUtils=i.languageUtils,this.options=a,this.logger=In.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(i,a.backend,a)}queueLoad(t,o,i,a){const l={},u={},d={},h={};return t.forEach(g=>{let v=!0;o.forEach(y=>{const S=`${g}|${y}`;!i.reload&&this.store.hasResourceBundle(g,y)?this.state[S]=2:this.state[S]<0||(this.state[S]===1?u[S]===void 0&&(u[S]=!0):(this.state[S]=1,v=!1,u[S]===void 0&&(u[S]=!0),l[S]===void 0&&(l[S]=!0),h[y]===void 0&&(h[y]=!0)))}),v||(d[g]=!0)}),(Object.keys(l).length||Object.keys(u).length)&&this.queue.push({pending:u,pendingCount:Object.keys(u).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(l),pending:Object.keys(u),toLoadLanguages:Object.keys(d),toLoadNamespaces:Object.keys(h)}}loaded(t,o,i){const a=t.split("|"),l=a[0],u=a[1];o&&this.emit("failedLoading",l,u,o),!o&&i&&this.store.addResourceBundle(l,u,i,void 0,void 0,{skipCopy:!0}),this.state[t]=o?-1:2,o&&i&&(this.state[t]=0);const d={};this.queue.forEach(h=>{Ik(h.loaded,[l],u),Hk(h,t),o&&h.errors.push(o),h.pendingCount===0&&!h.done&&(Object.keys(h.loaded).forEach(g=>{d[g]||(d[g]={});const v=h.loaded[g];v.length&&v.forEach(y=>{d[g][y]===void 0&&(d[g][y]=!0)})}),h.done=!0,h.errors.length?h.callback(h.errors):h.callback())}),this.emit("loaded",d),this.queue=this.queue.filter(h=>!h.done)}read(t,o,i,a=0,l=this.retryTimeout,u){if(!t.length)return u(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:o,fcName:i,tried:a,wait:l,callback:u});return}this.readingCalls++;const d=(g,v)=>{if(this.readingCalls--,this.waitingReads.length>0){const y=this.waitingReads.shift();this.read(y.lng,y.ns,y.fcName,y.tried,y.wait,y.callback)}if(g&&v&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,t,o,i,a+1,l*2,u)},l);return}u(g,v)},h=this.backend[i].bind(this.backend);if(h.length===2){try{const g=h(t,o);g&&typeof g.then=="function"?g.then(v=>d(null,v)).catch(d):d(null,g)}catch(g){d(g)}return}return h(t,o,d)}prepareLoading(t,o,i={},a){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();Oe(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Oe(o)&&(o=[o]);const l=this.queueLoad(t,o,i,a);if(!l.toLoad.length)return l.pending.length||a(),null;l.toLoad.forEach(u=>{this.loadOne(u)})}load(t,o,i){this.prepareLoading(t,o,{},i)}reload(t,o,i){this.prepareLoading(t,o,{reload:!0},i)}loadOne(t,o=""){const i=t.split("|"),a=i[0],l=i[1];this.read(a,l,"read",void 0,void 0,(u,d)=>{u&&this.logger.warn(`${o}loading namespace ${l} for language ${a} failed`,u),!u&&d&&this.logger.log(`${o}loaded namespace ${l} for language ${a}`,d),this.loaded(t,u,d)})}saveMissing(t,o,i,a,l,u={},d=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(o)){this.logger.warn(`did not save key "${i}" as the namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend?.create){const h={...u,isUpdate:l},g=this.backend.create.bind(this.backend);if(g.length<6)try{let v;g.length===5?v=g(t,o,i,a,h):v=g(t,o,i,a),v&&typeof v.then=="function"?v.then(y=>d(null,y)).catch(d):d(null,v)}catch(v){d(v)}else g(t,o,i,a,d,h)}!t||!t[0]||this.store.addResource(t[0],o,i,a)}}}const Tm=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:r=>{let t={};if(typeof r[1]=="object"&&(t=r[1]),Oe(r[1])&&(t.defaultValue=r[1]),Oe(r[2])&&(t.tDescription=r[2]),typeof r[2]=="object"||typeof r[3]=="object"){const o=r[3]||r[2];Object.keys(o).forEach(i=>{t[i]=o[i]})}return t},interpolation:{escapeValue:!0,format:r=>r,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Dm=r=>(Oe(r.ns)&&(r.ns=[r.ns]),Oe(r.fallbackLng)&&(r.fallbackLng=[r.fallbackLng]),Oe(r.fallbackNS)&&(r.fallbackNS=[r.fallbackNS]),r.supportedLngs?.indexOf?.("cimode")<0&&(r.supportedLngs=r.supportedLngs.concat(["cimode"])),typeof r.initImmediate=="boolean"&&(r.initAsync=r.initImmediate),r),Ca=()=>{},Kk=r=>{Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(o=>{typeof r[o]=="function"&&(r[o]=r[o].bind(r))})};class Ui extends ba{constructor(t={},o){if(super(),this.options=Dm(t),this.services={},this.logger=In,this.modules={external:[]},Kk(this),o&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,o),this;setTimeout(()=>{this.init(t,o)},0)}}init(t={},o){this.isInitializing=!0,typeof t=="function"&&(o=t,t={}),t.defaultNS==null&&t.ns&&(Oe(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const i=Tm();this.options={...i,...this.options,...Dm(t)},this.options.interpolation={...i.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const a=g=>g?typeof g=="function"?new g:g:null;if(!this.options.isClone){this.modules.logger?In.init(a(this.modules.logger),this.options):In.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:g=Bk;const v=new Rm(this.options);this.store=new km(this.options.resources,this.options);const y=this.services;y.logger=In,y.resourceStore=this.store,y.languageUtils=v,y.pluralResolver=new zk(v,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),g&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(y.formatter=a(g),y.formatter.init&&y.formatter.init(y,this.options),this.options.interpolation.format=y.formatter.format.bind(y.formatter)),y.interpolator=new Fk(this.options),y.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},y.backendConnector=new Wk(a(this.modules.backend),y.resourceStore,y,this.options),y.backendConnector.on("*",(b,...w)=>{this.emit(b,...w)}),this.modules.languageDetector&&(y.languageDetector=a(this.modules.languageDetector),y.languageDetector.init&&y.languageDetector.init(y,this.options.detection,this.options)),this.modules.i18nFormat&&(y.i18nFormat=a(this.modules.i18nFormat),y.i18nFormat.init&&y.i18nFormat.init(this)),this.translator=new ka(this.services,this.options),this.translator.on("*",(b,...w)=>{this.emit(b,...w)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,o||(o=Ca),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(g=>{this[g]=(...v)=>this.store[g](...v)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=(...v)=>(this.store[g](...v),this)});const d=zi(),h=()=>{const g=(v,y)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),d.resolve(y),o(v,y)};if(this.languages&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)};return this.options.resources||!this.options.initAsync?h():setTimeout(h,0),d}loadResources(t,o=Ca){let i=o;const a=Oe(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(a?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const l=[],u=d=>{if(!d||d==="cimode")return;this.services.languageUtils.toResolveHierarchy(d).forEach(g=>{g!=="cimode"&&l.indexOf(g)<0&&l.push(g)})};a?u(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(h=>u(h)),this.options.preload?.forEach?.(d=>u(d)),this.services.backendConnector.load(l,this.options.ns,d=>{!d&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(d)})}else i(null)}reloadResources(t,o,i){const a=zi();return typeof t=="function"&&(i=t,t=void 0),typeof o=="function"&&(i=o,o=void 0),t||(t=this.languages),o||(o=this.options.ns),i||(i=Ca),this.services.backendConnector.reload(t,o,l=>{a.resolve(),i(l)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Cm.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let o=0;o<this.languages.length;o++){const i=this.languages[o];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,o){this.isLanguageChangingTo=t;const i=zi();this.emit("languageChanging",t);const a=d=>{this.language=d,this.languages=this.services.languageUtils.toResolveHierarchy(d),this.resolvedLanguage=void 0,this.setResolvedLanguage(d)},l=(d,h)=>{h?this.isLanguageChangingTo===t&&(a(h),this.translator.changeLanguage(h),this.isLanguageChangingTo=void 0,this.emit("languageChanged",h),this.logger.log("languageChanged",h)):this.isLanguageChangingTo=void 0,i.resolve((...g)=>this.t(...g)),o&&o(d,(...g)=>this.t(...g))},u=d=>{!t&&!d&&this.services.languageDetector&&(d=[]);const h=Oe(d)?d:d&&d[0],g=this.store.hasLanguageSomeTranslations(h)?h:this.services.languageUtils.getBestMatchFromCodes(Oe(d)?[d]:d);g&&(this.language||a(g),this.translator.language||this.translator.changeLanguage(g),this.services.languageDetector?.cacheUserLanguage?.(g)),this.loadResources(g,v=>{l(v,g)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(t),i}getFixedT(t,o,i){const a=(l,u,...d)=>{let h;typeof u!="object"?h=this.options.overloadTranslationOptionHandler([l,u].concat(d)):h={...u},h.lng=h.lng||a.lng,h.lngs=h.lngs||a.lngs,h.ns=h.ns||a.ns,h.keyPrefix!==""&&(h.keyPrefix=h.keyPrefix||i||a.keyPrefix);const g=this.options.keySeparator||".";let v;return h.keyPrefix&&Array.isArray(l)?v=l.map(y=>(typeof y=="function"&&(y=uu(y,{...this.options,...u})),`${h.keyPrefix}${g}${y}`)):(typeof l=="function"&&(l=uu(l,{...this.options,...u})),v=h.keyPrefix?`${h.keyPrefix}${g}${l}`:l),this.t(v,h)};return Oe(t)?a.lng=t:a.lngs=t,a.ns=o,a.keyPrefix=i,a}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,o={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const i=o.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const u=(d,h)=>{const g=this.services.backendConnector.state[`${d}|${h}`];return g===-1||g===0||g===2};if(o.precheck){const d=o.precheck(this,u);if(d!==void 0)return d}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||u(i,t)&&(!a||u(l,t)))}loadNamespaces(t,o){const i=zi();return this.options.ns?(Oe(t)&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{i.resolve(),o&&o(a)}),i):(o&&o(),Promise.resolve())}loadLanguages(t,o){const i=zi();Oe(t)&&(t=[t]);const a=this.options.preload||[],l=t.filter(u=>a.indexOf(u)<0&&this.services.languageUtils.isSupportedCode(u));return l.length?(this.options.preload=a.concat(l),this.loadResources(u=>{i.resolve(),o&&o(u)}),i):(o&&o(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{const a=new Intl.Locale(t);if(a&&a.getTextInfo){const l=a.getTextInfo();if(l&&l.direction)return l.direction}}catch{}const o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services?.languageUtils||new Rm(Tm());return t.toLowerCase().indexOf("-latn")>1?"ltr":o.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},o){return new Ui(t,o)}cloneInstance(t={},o=Ca){const i=t.forkResourceStore;i&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},l=new Ui(a);if((t.debug!==void 0||t.prefix!==void 0)&&(l.logger=l.logger.clone(t)),["store","services","language"].forEach(d=>{l[d]=this[d]}),l.services={...this.services},l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},i){const d=Object.keys(this.store.data).reduce((h,g)=>(h[g]={...this.store.data[g]},h[g]=Object.keys(h[g]).reduce((v,y)=>(v[y]={...h[g][y]},v),h[g]),h),{});l.store=new km(d,a),l.services.resourceStore=l.store}return l.translator=new ka(l.services,a),l.translator.on("*",(d,...h)=>{l.emit(d,...h)}),l.init(a,o),l.translator.options=a,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const At=Ui.createInstance();At.createInstance=Ui.createInstance;const Zk=At.createInstance;At.dir,At.init,At.loadResources,At.reloadResources,At.use,At.changeLanguage,At.getFixedT,At.t,At.exists,At.setDefaultNamespace,At.hasLoadedNamespace,At.loadNamespaces,At.loadLanguages;const qk=Symbol("remote-view.message");class Gk extends Error{constructor(t,o,i){super(),this.key=t,this.values=o,Object.defineProperty(this,"message",{configurable:!0,get:()=>i(t,o)}),this.name="ViewMessageError"}key;values}const pu={en:{close:"Close",commandTitle:"Command palette",commandDescription:"Search for a command to run…"},"zh-Hans":{close:"关闭",commandTitle:"命令面板",commandDescription:"搜索要运行的命令…"},"zh-Hant":{close:"關閉",commandTitle:"命令面板",commandDescription:"搜尋要執行的命令…"}};function Am(r){try{const t=new Intl.Locale((r||"en").replaceAll("_","-"));return t.language==="zh"?t.maximize().script==="Hant"?"zh-Hant":"zh-Hans":"en"}catch{return"en"}}function Lm(r,t=typeof navigator>"u"?"en":navigator.language){const o=d=>{const h=Am(d);return h==="zh-Hant"&&!r["zh-Hant"]?"zh-Hans":h},i=Zk();i.init({lng:o(t),fallbackLng:"en",supportedLngs:["en","zh-Hans","zh-Hant"],load:"currentOnly",initAsync:!1,keySeparator:!1,defaultNS:"view",interpolation:{escapeValue:!1},resources:{en:{view:r.en,ui:pu.en},"zh-Hans":{view:r["zh-Hans"],ui:pu["zh-Hans"]},"zh-Hant":{view:r["zh-Hant"]??r["zh-Hans"],ui:pu["zh-Hant"]}}});const a=()=>o(i.resolvedLanguage??i.language),l=d=>(i.on("languageChanged",d),()=>{i.off("languageChanged",d)}),u=(d,h)=>String(i.t(d,h));return{getLocale:a,subscribe:l,setLocale(d){d!==void 0&&i.changeLanguage(o(d)),typeof document<"u"&&(document.documentElement.lang=a())},t:(d,h)=>u(d,h),message:(d,h)=>({[qk]:!0,key:d,values:h}),error:(d,h)=>new Gk(d,h,u),format(d){return typeof d=="string"?d:d instanceof Error?d.message:u(d.key,d.values)},ui:d=>String(i.t(d,{ns:"ui"})),date(d,h={}){const g=new Date(d);return Number.isNaN(g.getTime())?"":new Intl.DateTimeFormat(a(),h).format(g)},number(d,h){return new Intl.NumberFormat(a(),h).format(d)},label(d,h=""){if(typeof d=="string")return d;const g=Object.entries(d),v=a();return g.find(([y])=>Am(y)===v&&/^(en|zh)([-_]|$)/i.test(y))?.[1]??d.en_US??d.en??d["en-US"]??h}}}const Qk=Lm({en:{},"zh-Hans":{}},"en"),$m=m.createContext(Qk);function Yk({i18n:r,children:t}){return A.jsx($m.Provider,{value:r,children:t})}function Xk(r){return m.useSyncExternalStore(r.subscribe,r.getLocale,r.getLocale)}function jm(){const r=m.useContext($m);return Xk(r),r.ui}m.createContext(null);function Ke(...r){return x0(Af(r))}const hu=sm("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}}),pt=m.forwardRef(function({className:r,variant:t="default",size:o="default",asChild:i=!1,...a},l){const u=i?M0:"button";return A.jsx(u,{ref:l,"data-slot":"button","data-variant":t,"data-size":o,className:Ke(hu({variant:t,size:o,className:r})),...a})});function Mm({...r}){return A.jsx(LS,{"data-slot":"alert-dialog",...r})}function Jk({...r}){return A.jsx($S,{"data-slot":"alert-dialog-portal",...r})}function eC({className:r,...t}){return A.jsx(jS,{"data-slot":"alert-dialog-overlay",className:Ke("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",r),...t})}function zm({className:r,size:t="default",...o}){return A.jsxs(Jk,{children:[A.jsx(eC,{}),A.jsx(MS,{"data-slot":"alert-dialog-content","data-size":t,className:Ke("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",r),...o})]})}function Fm({className:r,...t}){return A.jsx("div",{"data-slot":"alert-dialog-footer",className:Ke("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",r),...t})}function Vm({className:r,...t}){return A.jsx(FS,{"data-slot":"alert-dialog-title",className:Ke("text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",r),...t})}function Um({className:r,...t}){return A.jsx(VS,{"data-slot":"alert-dialog-description",className:Ke("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",r),...t})}function Bm({className:r,variant:t="outline",size:o="default",...i}){return A.jsx(pt,{variant:t,size:o,asChild:!0,children:A.jsx(zS,{"data-slot":"alert-dialog-cancel",className:Ke(r),...i})})}function tC({...r}){return A.jsx(Tc,{"data-slot":"dialog",...r})}function nC({...r}){return A.jsx(Dc,{"data-slot":"dialog-portal",...r})}function rC({className:r,...t}){return A.jsx(Lc,{"data-slot":"dialog-overlay",className:Ke("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",r),...t})}function oC({className:r,children:t,showCloseButton:o=!0,...i}){const a=jm();return A.jsxs(nC,{children:[A.jsx(rC,{}),A.jsxs($c,{"data-slot":"dialog-content",className:Ke("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",r),...i,children:[t,o&&A.jsx(ta,{"data-slot":"dialog-close",asChild:!0,children:A.jsxs(pt,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm",children:[A.jsx(D0,{}),A.jsx("span",{className:"sr-only",children:a("close")})]})})]})]})}function iC({className:r,...t}){return A.jsx("div",{"data-slot":"dialog-header",className:Ke("flex flex-col gap-2",r),...t})}function sC({className:r,showCloseButton:t=!1,children:o,...i}){const a=jm();return A.jsxs("div",{"data-slot":"dialog-footer",className:Ke("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",r),...i,children:[o,t&&A.jsx(ta,{asChild:!0,children:A.jsx(pt,{variant:"outline",children:a("close")})})]})}function aC({className:r,...t}){return A.jsx(fh,{"data-slot":"dialog-title",className:Ke("text-base leading-none font-medium",r),...t})}function lC({className:r,...t}){return A.jsx(ph,{"data-slot":"dialog-description",className:Ke("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",r),...t})}function Hm({className:r,type:t,...o}){return A.jsx("input",{type:t,"data-slot":"input",className:Ke("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",r),...o})}function cC({className:r,...t}){return A.jsx("textarea",{"data-slot":"textarea",className:Ke("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",r),...t})}function uC({className:r,...t}){return A.jsx("div",{"data-slot":"input-group",role:"group",className:Ke("group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5",r),...t})}const dC=sm("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]","inline-end":"order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]","block-start":"order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2","block-end":"order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"}},defaultVariants:{align:"inline-start"}});function fC({className:r,align:t="inline-start",...o}){return A.jsx("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:Ke(dC({align:t}),r),onClick:i=>{i.target.closest("button")||i.currentTarget.parentElement?.querySelector("input")?.focus()},...o})}function pC({className:r,...t}){return A.jsx(Mi,{"data-slot":"command",className:Ke("flex size-full flex-col overflow-hidden rounded-xl! bg-popover p-1 text-popover-foreground",r),...t})}function hC({className:r,...t}){return A.jsx("div",{"data-slot":"command-input-wrapper",className:"p-1 pb-0",children:A.jsxs(uC,{className:"h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!",children:[A.jsx(Mi.Input,{"data-slot":"command-input",className:Ke("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",r),...t}),A.jsx(fC,{children:A.jsx(O0,{className:"size-4 shrink-0 opacity-50"})})]})})}function mC({className:r,...t}){return A.jsx(Mi.List,{"data-slot":"command-list",className:Ke("no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none",r),...t})}function gC({className:r,...t}){return A.jsx(Mi.Empty,{"data-slot":"command-empty",className:Ke("py-6 text-center text-sm",r),...t})}function vC({className:r,children:t,...o}){return A.jsxs(Mi.Item,{"data-slot":"command-item",className:Ke("group/command-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-selected:*:[svg]:text-foreground",r),...o,children:[t,A.jsx(rp,{className:"ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100"})]})}function Wm({...r}){return A.jsx(xb,{"data-slot":"popover",...r})}function Km({...r}){return A.jsx(wb,{"data-slot":"popover-trigger",...r})}function Zm({className:r,align:t="center",sideOffset:o=4,...i}){return A.jsx(Sb,{children:A.jsx(bb,{"data-slot":"popover-content",align:t,sideOffset:o,className:Ke("z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",r),...i})})}function Ho({...r}){return A.jsx(Ob,{"data-slot":"select",...r})}function Wo({...r}){return A.jsx(Ab,{"data-slot":"select-value",...r})}function Ko({className:r,size:t="default",children:o,...i}){return A.jsxs(Tb,{"data-slot":"select-trigger","data-size":t,className:Ke("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",r),...i,children:[o,A.jsx(Lb,{asChild:!0,children:A.jsx(tc,{className:"pointer-events-none size-4 text-muted-foreground"})})]})}function Zo({className:r,children:t,position:o="item-aligned",align:i="center",...a}){return A.jsx(zb,{children:A.jsxs(Fb,{"data-slot":"select-content","data-align-trigger":o==="item-aligned",className:Ke("relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",o==="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",r),position:o,align:i,...a,children:[A.jsx(yC,{}),A.jsx(Kb,{"data-position":o,className:Ke("data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)",o==="popper"&&""),children:t}),A.jsx(xC,{})]})})}function fn({className:r,children:t,...o}){return A.jsxs(Gb,{"data-slot":"select-item",className:Ke("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground 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",r),...o,children:[A.jsx("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center",children:A.jsx(Xb,{children:A.jsx(rp,{className:"pointer-events-none"})})}),A.jsx(Qb,{children:t})]})}function yC({className:r,...t}){return A.jsx(Jb,{"data-slot":"select-scroll-up-button",className:Ke("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",r),...t,children:A.jsx(op,{})})}function xC({className:r,...t}){return A.jsx(ek,{"data-slot":"select-scroll-down-button",className:Ke("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",r),...t,children:A.jsx(tc,{})})}m.createContext(null),m.createContext({size:"default",variant:"default",spacing:2,orientation:"horizontal"});const er=te().regex(/^[A-Za-z][A-Za-z0-9_.-]{0,79}$/),mu=Bn([te().max(4e3),mt().finite(),Tt(),hr()]),tr=Ix(()=>Bn([te().max(32e3),mt().finite(),Tt(),hr(),nt(tr).max(1e3),mr(tr)])),gu=Tf("kind",[xe({kind:Qe("data-source"),dataSourceId:te().uuid()}).strict(),xe({kind:Qe("definition"),definitionId:te().uuid(),versionId:te().uuid()}).strict(),xe({kind:Qe("artifact"),artifactId:te().uuid(),versionId:te().uuid()}).strict()]);mr(tr);const wC=xe({id:er,sourceField:te().min(1).max(256),label:te().min(1).max(160),logicalType:Hn(["string","boolean","int64","float64","decimal","date","timestamp"]),nullable:Tt(),role:Hn(["dimension","measure","time","identifier"]),semanticRef:te().max(512).optional(),unit:te().max(80).optional()}).strict(),SC=xe({name:er,controlId:er,type:Hn(["string","number","boolean","date"]),required:Tt(),defaultValue:mu.optional(),allowedValues:nt(mu).max(200).optional()}).strict(),bC=xe({id:er,source:gu,providerId:te().min(1).max(160),operation:er,contractVersion:mt().int().positive(),payload:tr,parameters:nt(SC).max(24),output:xe({datasetId:er,fields:nt(wC).min(1).max(80),grain:nt(er).max(20)}).strict()}).strict();function kC(r,t){const o=r.output.fields.map(a=>a.id),i=r.parameters.map(a=>a.name);(new Set(o).size!==o.length||new Set(i).size!==i.length)&&t.addIssue({code:"custom",message:"Duplicate field or parameter identifier"}),(new Set(r.output.grain).size!==r.output.grain.length||r.output.grain.some(a=>!o.includes(a)))&&t.addIssue({code:"custom",message:"Grain references an undeclared field"}),new TextEncoder().encode(JSON.stringify(r.payload)).byteLength>64e3&&t.addIssue({code:"custom",message:"Query payload exceeds limit"})}const qm=bC.superRefine(kC),CC=mr(er,mu).default({});xe({binding:qm,controls:CC}).strict(),xe({source:gu,providerId:te().min(1).max(160),request:tr.default({})}).strict().refine(r=>new TextEncoder().encode(JSON.stringify(r)).byteLength<=16e3,"Discovery request exceeds limit"),xe({items:nt(xe({id:te().min(1).max(512),name:te().min(1).max(512),kind:Hn(["collection","dataset"]),description:te().max(4e3).optional(),inspectRequest:tr.optional(),metadata:tr}).strict()).max(50),nextRequest:tr.optional(),queryContract:xe({operation:er,contractVersion:mt().int().positive(),payloadSchema:tr,instructions:te().max(8e3)}).strict()}).strict().refine(r=>new TextEncoder().encode(JSON.stringify(r)).byteLength<=128e3,"Discovery response exceeds limit");function _C(r,t){if(r==null)return{};var o={},i=Object.keys(r),a,l;for(l=0;l<i.length;l++)a=i[l],!(t.indexOf(a)>=0)&&(o[a]=r[a]);return o}const Gm="xpert.artifact-document",Qm=1,_a=te().regex(/^[A-Za-z][A-Za-z0-9_.-]{0,79}$/),EC=Bn([te().max(4e3),mt().finite(),Tt(),hr()]),Ym=mr(_a,EC).refine(r=>Object.keys(r).length<=24,"Too many controls"),RC=xe({type:Qe("query"),requestId:te().min(1).max(80),bindingId:_a,controls:Ym}).strict(),PC=xe({bindingIds:nt(_a).max(64).refine(r=>new Set(r).size===r.length,"Duplicate binding IDs"),defaults:Ym,theme:Hn(["light","dark"]),locale:te().min(1).max(80)}).strict(),Xm=te().min(1).max(3e5).superRefine((r,t)=>{(new TextEncoder().encode(r).byteLength>3e5||!/<html[\s>]/i.test(r)||!/<body[\s>]/i.test(r))&&t.addIssue({code:"custom",message:"Supply a complete UTF-8 HTML document, at most 300 KB"})}),IC=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),On=(r,t)=>r>>>t|r<<32-t;function OC(r){const t=new Uint8Array(Math.ceil((r.length+9)/64)*64);t.set(r),t[r.length]=128;const o=new DataView(t.buffer);o.setUint32(t.length-8,Math.floor(r.length/536870912)),o.setUint32(t.length-4,r.length*8>>>0);const i=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),a=new Uint32Array(64);for(let l=0;l<t.length;l+=64){for(let w=0;w<16;w++)a[w]=o.getUint32(l+w*4);for(let w=16;w<64;w++){const _=a[w-15],k=a[w-2],R=On(_,7)^On(_,18)^_>>>3,D=On(k,17)^On(k,19)^k>>>10;a[w]=a[w-16]+R+a[w-7]+D>>>0}let[u,d,h,g,v,y,S,b]=i;for(let w=0;w<64;w++){const _=On(v,6)^On(v,11)^On(v,25),k=v&y^~v&S,R=b+_+k+IC[w]+a[w]>>>0,D=On(u,2)^On(u,13)^On(u,22),T=u&d^u&h^d&h,O=D+T>>>0;b=S,S=y,y=v,v=g+R>>>0,g=h,h=d,d=u,u=R+O>>>0}i[0]=i[0]+u>>>0,i[1]=i[1]+d>>>0,i[2]=i[2]+h>>>0,i[3]=i[3]+g>>>0,i[4]=i[4]+v>>>0,i[5]=i[5]+y>>>0,i[6]=i[6]+S>>>0,i[7]=i[7]+b>>>0}return Array.from(i,l=>l.toString(16).padStart(8,"0")).join("")}const Jm=xe({id:_a,version:te().regex(/^\d+\.\d+\.\d+(?:-[A-Za-z0-9.-]+)?$/),format:Qe("classic-script"),global:te().regex(/^[A-Za-z_$][A-Za-z0-9_$]{0,79}$/).refine(r=>!["window","self","globalThis","document","parent","top","location","xpertLiveArtifact","__proto__","constructor","prototype"].includes(r)),sha256:te().regex(/^[a-f0-9]{64}$/)}).strict(),NC=Jm.transform(r=>({id:r.id,version:r.version,format:"classic-script",global:r.global,sha256:r.sha256})),vu=nt(NC).max(8).superRefine((r,t)=>{(new Set(r.map(o=>o.id)).size!==r.length||new Set(r.map(o=>o.global)).size!==r.length)&&t.addIssue({code:"custom",message:"Duplicate dependency ID or global"})}),eg=nt(Jm.extend({source:te().min(1).max(4e6)}).strict().transform(r=>({id:r.id,version:r.version,format:"classic-script",global:r.global,sha256:r.sha256,source:r.source}))).max(8);function tg(r,t){const o=eg.parse(r),i=vu.parse(o.map(l=>{var{source:u}=l,d=_C(l,["source"]);return d}));let a=0;for(const l of o){const u=new TextEncoder().encode(l.source);if(a+=u.length,u.length>4e6||a>8e6)throw new Error("DOCUMENT_DEPENDENCY_TOO_LARGE");if(OC(u)!==l.sha256)throw new Error("DOCUMENT_DEPENDENCY_INTEGRITY_FAILED")}if(t&&JSON.stringify(vu.parse(t))!==JSON.stringify(i))throw new Error("DOCUMENT_DEPENDENCY_LOCK_MISMATCH");return o.map(l=>({id:l.id,version:l.version,global:l.global,sha256:l.sha256,source:l.source,format:"classic-script"}))}function TC(r){const t=o=>JSON.stringify(o).replace(/</g,"\\u003c").replace(/>/g,"\\u003e");return tg(r).map(o=>`<script>(()=>{const s=document.createElement('script');s.textContent=${t(o.source)};document.head.appendChild(s);s.remove();if(typeof window[${t(o.global)}]==='undefined')throw new Error('DOCUMENT_DEPENDENCY_GLOBAL_MISSING');})();<\/script>`).join("")}const DC=te().max(250).refine(r=>{try{const t=new URL(r);return t.protocol==="https:"&&t.origin===r&&!t.username&&!t.password&&/^(?:[a-z0-9.-]+|\[[a-f0-9:]+\])$/i.test(t.hostname)}catch{return!1}},"Use an exact HTTPS origin without a path, credentials or wildcard"),Ea=nt(DC).max(16),AC=xe({scripts:Ea.optional(),styles:Ea.optional(),fonts:Ea.optional(),images:Ea.optional()}).strict();function ng(r){const t=AC.parse(r??{}),o=i=>i?.length?` ${[...new Set(i)].join(" ")}`:"";return["default-src 'none'",`script-src 'unsafe-inline'${o(t.scripts)}`,`style-src 'unsafe-inline'${o(t.styles)}`,`img-src data: blob:${o(t.images)}`,`font-src data:${o(t.fonts)}`,"connect-src 'none'","frame-src 'none'","worker-src 'none'","object-src 'none'","base-uri 'none'","form-action 'none'"].join("; ")}ng();function LC(r,t,o=[],i){if(Xm.parse(r),!/^[a-f0-9]{32}$/.test(t))throw new Error("Invalid Artifact document session ID");return`<!doctype html><meta charset="utf-8"><meta http-equiv="Content-Security-Policy" content="${ng(i)}"><script>${$C.replace("__XPERT_DOCUMENT_SESSION__",t)}<\/script>${TC(o)}${r}`}const $C=String.raw`
|
|
104
104
|
;(() => {
|
|
105
105
|
'use strict'
|
|
106
106
|
const SESSION_ID = '__XPERT_DOCUMENT_SESSION__'
|
|
@@ -248,6 +248,6 @@ Error generating stack: `+p.message+`
|
|
|
248
248
|
})
|
|
249
249
|
parent.postMessage({ channel: CHANNEL, version: VERSION, type: 'ready', sessionId: SESSION_ID }, '*')
|
|
250
250
|
})()
|
|
251
|
-
`,DC=we({channel:Xe(jm),version:Xe(Mm),type:Xe("ready"),sessionId:ne().regex(/^[a-f0-9]{32}$/)}).strict(),LC=we({type:Xe("diagnostic"),code:Xe("DOCUMENT_BINDING_DENIED")}).strict();function $C(r,t){if(!r.ownerDocument.querySelector("meta[data-xpert-document-policy]"))throw new Error("Install the Artifact document frame policy before mounting a document");const o=_C.parse(t.context),i=Array.from(crypto.getRandomValues(new Uint8Array(16)),N=>N.toString(16).padStart(2,"0")).join(""),a=TC(t.html,i,t.dependencies,t.networkPolicy),l=new MessageChannel,u=new Set(o.bindingIds),d=new Set,h=new Set,g=new Map,v=r.ownerDocument.defaultView;let y=!1,w=!1,b=0,S=Date.now();r.setAttribute("sandbox","allow-scripts"),r.referrerPolicy="no-referrer";const _=(N,I)=>{try{N?.(I)}catch{}},k=N=>{w||l.port1.postMessage(N)},T=(N,I)=>{k({type:"result",requestId:N,ok:!1,code:I}),_(t.onError,I)};l.port1.onmessage=async N=>{if(w)return;const I=LC.safeParse(N.data);if(I.success){_(t.onError,I.data.code);return}const V=CC.safeParse(N.data);if(!V.success){_(t.onError,"DOCUMENT_INVALID_REQUEST");return}const L={type:V.data.type,requestId:V.data.requestId,bindingId:V.data.bindingId,controls:V.data.controls};if(!u.has(L.bindingId)){T(L.requestId,"DOCUMENT_BINDING_DENIED");return}if(Date.now()-S>=6e4&&(b=0,S=Date.now(),d.clear()),h.has(L.requestId)||d.has(L.requestId)){T(L.requestId,"DOCUMENT_REQUEST_REPLAY");return}if(h.size>=8||++b>60){T(L.requestId,"DOCUMENT_QUERY_LIMIT");return}d.add(L.requestId),h.add(L.requestId),g.set(L.bindingId,L.requestId),_(t.onBusy,!0);try{const B=await t.query(L);w||(k({type:"result",requestId:L.requestId,ok:!0,dataset:B}),g.get(L.bindingId)===L.requestId&&_(t.onResult,B))}catch{w||(k({type:"result",requestId:L.requestId,ok:!1,code:"DOCUMENT_QUERY_FAILED"}),g.get(L.bindingId)===L.requestId&&_(t.onError,"DOCUMENT_QUERY_FAILED"))}finally{h.delete(L.requestId),w||_(t.onBusy,h.size>0)}};const D=N=>{var I;if(w||y||N.source!==r.contentWindow)return;const V=DC.safeParse(N.data);!V.success||V.data.sessionId!==i||(y=!0,(I=r.contentWindow)==null||I.postMessage({channel:jm,version:Mm,type:"init",sessionId:i,context:o},"*",[l.port2]))};return v.addEventListener("message",D),l.port1.start(),r.srcdoc=a,{refresh(){k({type:"refresh"})},dispose(){w||(w=!0,v.removeEventListener("message",D),l.port1.close(),l.port2.close(),_(t.onBusy,!1))}}}function jC(r){if(r.querySelector("meta[data-xpert-document-policy]"))return;const t=r.createElement("meta");t.httpEquiv="Content-Security-Policy",t.content="frame-src 'none'",t.dataset.xpertDocumentPolicy="1",r.head.prepend(t)}const In=ne().regex(/^[A-Za-z][A-Za-z0-9_.-]{0,79}$/),ya=we({schema:Xe("xpert.live-dashboard"),id:ne().uuid(),title:ne().min(1).max(160),bindings:nt($m).max(8),presentation:we({type:Xe("html"),html:Fm,dependencies:cu.optional()}).strict().optional(),controls:nt(we({controlId:In,type:Fn(["string","number","boolean","date"]),defaultValue:zn([ne(),ft(),Lt(),cr()]).optional(),allowedValues:nt(zn([ne(),ft(),Lt(),cr()])).max(200).optional(),label:ne().min(1).max(160)}).strict()).max(24),charts:nt(we({id:In,title:ne().min(1).max(160),type:Fn(["bar","line","area","pie","scatter"]),datasetId:In,x:In,y:In,color:In.optional()}).strict()).max(20),tables:nt(we({id:In,title:ne().min(1).max(160),datasetId:In,fields:nt(In).min(1).max(30)}).strict()).max(20)}).strict().superRefine((r,t)=>{const o=(i,a)=>{new Set(i).size!==i.length&&t.addIssue({code:"custom",message:`Duplicate ${a}`})};!r.bindings.length&&(r.presentation||r.controls.length||r.charts.length||r.tables.length)&&t.addIssue({code:"custom",message:"An unconfigured draft must contain no views or controls"}),o(r.bindings.map(i=>i.id),"binding"),o(r.bindings.map(i=>i.output.datasetId),"dataset"),o(r.controls.map(i=>i.controlId),"control"),o([...r.charts,...r.tables].map(i=>i.id),"view"),r.bindings.length&&!r.presentation&&!r.charts.length&&!r.tables.length&&t.addIssue({code:"custom",message:"At least one chart or table is required"}),r.presentation&&(r.charts.length||r.tables.length)&&t.addIssue({code:"custom",message:"HTML presentation owns its charts; use empty charts/tables arrays"});for(const i of r.controls){const a=r.bindings.flatMap(u=>u.parameters.filter(d=>d.controlId===i.controlId));a.length||t.addIssue({code:"custom",message:"Control is not bound to a query parameter"});const l=[...i.defaultValue!==void 0?[i.defaultValue]:[],...i.allowedValues??[]];l.some(u=>u!==null&&(i.type==="number"?typeof u!="number"||!Number.isFinite(u):i.type==="boolean"?typeof u!="boolean":typeof u!="string"))&&t.addIssue({code:"custom",message:"Control value has an incompatible type"}),i.allowedValues&&i.defaultValue!==void 0&&!i.allowedValues.includes(i.defaultValue)&&t.addIssue({code:"custom",message:"Default control value is not allowed"});for(const u of a)u.defaultValue!==void 0&&i.defaultValue!==void 0&&u.defaultValue!==i.defaultValue&&t.addIssue({code:"custom",message:"Control and parameter defaults disagree"}),l.some(d=>d===null?u.required:u.allowedValues&&!u.allowedValues.includes(d))&&t.addIssue({code:"custom",message:"Control values conflict with parameter restrictions"})}for(const i of r.bindings)for(const a of i.parameters){const l=r.controls.find(u=>u.controlId===a.controlId);(!l||l.type!==a.type)&&t.addIssue({code:"custom",message:"Control mapping is missing or has an incompatible type"})}for(const i of[...r.charts,...r.tables]){const a=r.bindings.find(u=>u.output.datasetId===i.datasetId)?.output,l="fields"in i?i.fields:[i.x,i.y,...i.color?[i.color]:[]];(!a||l.some(u=>!a.fields.some(d=>d.id===u)))&&t.addIssue({code:"custom",message:"View references an undeclared Dataset field"}),"y"in i&&!a?.fields.some(u=>u.id===i.y&&["float64","int64","decimal"].includes(u.logicalType))&&t.addIssue({code:"custom",message:"Chart measure must be numeric"}),"y"in i&&i.type!=="scatter"&&a?.grain.some(u=>u!==i.x&&u!==i.color)&&t.addIssue({code:"custom",message:"Chart must encode every Dataset grain dimension in x/color; use another aggregated binding for totals"})}});ya.innerType().pick({title:!0,bindings:!0,controls:!0,charts:!0,tables:!0,presentation:!0}).partial().strict();const MC=ur(zn([ne().max(4e3),ft().finite(),Lt(),cr()]));we({manifest:ya,expectedVersionId:ne().uuid().nullable(),expectedRevision:ft().int().nonnegative().default(0)}).strict(),we({artifactId:ne().uuid(),versionId:ne().uuid().optional(),draftRevision:ft().int().positive().optional(),controls:MC.default({})}).strict().extend({bindingId:In}).strict();const Wm="live-dashboard__live-dashboard",Km=Ef("target",[we({target:Xe("workbench.view"),viewKey:Xe(Wm)}).strict(),we({target:Xe("assistant.project"),projectId:ne().uuid(),viewKey:Xe(Wm)}).strict()]),zC=we({selectionId:ne().uuid().optional(),parameters:we({contentProvider:ne().optional(),contentId:ne().uuid().optional(),contentTitle:ne().optional(),contentEditor:ne().optional(),artifactId:ne().uuid().optional(),versionId:ne().uuid().optional()}).strict().optional()}).transform((r,t)=>{const o=r.selectionId??r.parameters?.artifactId,i=r.parameters?.versionId;return(r.selectionId&&r.parameters?.artifactId&&r.selectionId!==r.parameters.artifactId||i&&!o)&&t.addIssue({code:Y.custom,message:"DASHBOARD_NAVIGATION_INVALID: provide one Artifact identity and an optional version"}),{artifactId:o,versionId:i}}),Zm=r=>JSON.stringify([r.artifactId??null,r.versionId??null]),Di=we({artifactId:ne(),versionId:ne().nullish(),versionNumber:ft().optional(),title:ne().nullish(),updatedAt:ne().optional(),draftRevision:ft().optional(),isDraft:Lt().optional(),baseVersionId:ne().nullish()}),FC=Di.extend({manifest:ya,dependencies:Um.optional()}),VC=we({meta:we({navigationTarget:Km.optional(),dashboards:nt(Di),sources:nt(we({source:lu,name:ne()})),saved:FC.optional(),versions:nt(Di).optional()})}),UC=["dashboard_create","dashboard_create_html","dashboard_update"],BC=we({dashboard:we({artifactId:ne().uuid(),draftRevision:ft().int().positive(),status:Xe("draft")})});function HC(r){let t=r;if(typeof t=="string")try{t=JSON.parse(t)}catch{return null}const o=BC.safeParse(t);return o.success?o.data.dashboard:null}const WC=we({channel:Xe("xpertai.remote_component"),protocolVersion:Xe(1),type:ne(),visible:Lt().optional(),scopeRevision:ft().optional(),kind:ne().optional(),resourceId:ne().optional(),instanceId:ne().optional(),requestId:ne().optional(),locale:ne().optional(),initialQuery:Zr(),data:Zr(),result:Zr(),message:ne().optional(),event:we({type:ne(),toolName:ne().optional(),data:we({output:Zr(),revision:ft().int().nonnegative().optional()}).optional()}).optional(),theme:we({mode:ne().optional(),density:Fn(["default","compact"]).optional(),tokens:ur(zn([ne(),ft()])).optional()}).optional()});let Xn,Vo,qm,uu=!0;const KC=()=>uu&&!document.hidden,du=new Set,ZC=r=>(du.add(r),()=>{du.delete(r)});function Gm(){for(const r of Sr.values())clearTimeout(r.timer),r.reject(new Error("Context changed"));Sr.clear()}let qC=0;const Sr=new Map;function fu(r,t={}){window.parent.postMessage({channel:"xpertai.remote_component",protocolVersion:1,instanceId:Xn,scopeRevision:Vo,type:r,...t},"*")}function GC(r,t){let o;const i=a=>{if(a.source!==window.parent)return;const l=WC.safeParse(a.data);if(!l.success)return;const u=l.data;if(u.type==="init"){if(Xn&&u.instanceId!==Xn)return;Vo!==u.scopeRevision&&Gm(),Xn=u.instanceId,Vo=u.scopeRevision,qm=u.initialQuery,uu=u.visible??!0,document.documentElement.classList.toggle("dark",u.theme?.mode==="dark");for(const[h,g]of Object.entries(u.theme?.tokens??{})){const v=h.startsWith("--")?h:`--xui-${h.replace(/[._]/g,"-").replace(/[A-Z]/g,y=>`-${y.toLowerCase()}`)}`;document.documentElement.style.setProperty(v,String(g))}f0({density:u.theme?.density}),r(u.locale??"en-US",u.initialQuery);return}if(u.type==="hostEvent"&&Xn&&u.instanceId===Xn&&u.event?.type==="view.context.changed"){const h=u.event.data?.revision;h!==void 0&&h>(Vo??-1)&&(Gm(),Vo=h);return}if(!Xn||u.instanceId!==Xn||u.scopeRevision!==Vo&&u.type!=="error")return;if(u.type==="visibility"){uu=u.visible===!0;return}if(u.type==="editorEvent"&&u.kind==="prepareClose"&&u.resourceId&&u.requestId){fu("closePrepared",{requestId:u.requestId,ready:[...du].every(h=>h(u.resourceId))});return}if(u.type==="hostEvent"&&u.event?.type==="assistant.tool.completed"&&UC.includes(u.event.toolName??"")){const h=HC(u.event.data?.output);h&&`${h.artifactId}:${h.draftRevision}`!==o&&(o=`${h.artifactId}:${h.draftRevision}`,t(h.artifactId));return}if(!u.requestId)return;const d=Sr.get(u.requestId);d&&(Sr.delete(u.requestId),clearTimeout(d.timer),u.type==="error"?d.reject(new Error(u.message??"Request failed")):d.resolve(u.data??u.result))};return window.addEventListener("message",i),fu("ready"),()=>{window.removeEventListener("message",i);for(const a of Sr.values())clearTimeout(a.timer),a.reject(new Error("View closed"));Sr.clear()}}function cn(r,t){if(!Xn)return Promise.reject(new Error("View is not connected"));const o=`dashboard-${++qC}`;return new Promise((i,a)=>{const l=window.setTimeout(()=>{Sr.delete(o),a(new Error("Request timed out"))},27e4);Sr.set(o,{resolve:i,reject:a,timer:l}),fu(r,{requestId:o,...t})})}function QC(r){return cn("invokeClientCommand",{commandKey:"assistant.context.set",payload:{key:"live_dashboard",...r?{context:{schemaVersion:1,...r}}:{clear:!0}}})}async function YC(r,t,o){const i=Km.parse(r),a=we({selectionId:ne().optional(),parameters:we({contentId:ne().uuid().optional(),contentProvider:ne().optional(),contentTitle:ne().optional(),contentEditor:ne().optional()}).optional()}).safeParse(qm);let l={};if(a.success&&a.data.parameters?.contentId)if(a.data.selectionId===t)l={...a.data.parameters};else{const u=await cn("invokeClientCommand",{commandKey:"workbench.content.resolve",payload:{providerKey:"live-dashboard.content",resourceId:t}});l=we({success:Xe(!0),navigation:we({parameters:ur(Zr()).optional()})}).parse(u).navigation.parameters??{}}return cn("invokeClientCommand",{commandKey:"workbench.navigation.open",payload:{...i,selectionId:t,parameters:{...l,...o?{versionId:o}:{}}}})}const Qm={bindingUnavailable:"Some views could not load. Check your data access or retry. Available views are shown below.",publishShareBlocked:"This draft contains private or unavailable data sources and cannot replace the version used by the active team share. Remove those bindings or revoke the share before publishing. The published version and link are unchanged.",viewerControls:"Dashboard controls",hideViewerControls:"Hide dashboard controls",share:"Team sharing",teamReadOnly:"Team · read only",shareHint:"Share published versions with signed-in members of this organization. Drafts remain private.",sharePermissions:"Each viewer needs their own data source permissions. Sharing does not grant file or source access.",shareVersion:"Version policy",shareLatest:"Follow latest published version",shareFixed:"Pin a published version",shareLink:"Share link",copyLink:"Copy link",copied:"Copied",openShared:"Open page",enableShare:"Enable sharing",updateShare:"Update sharing",revokeShare:"Revoke link",publishBeforeShare:"Publish a version before sharing.",privateDependencies:"This provider uses private script or file dependencies. Team access must be supported and granted separately before sharing.",sourceUnavailable:"A declared data source or provider is unavailable.",draft:"Working draft",publish:"Publish draft",confirm:"Confirm publication",confirmPublish:"Publish this saved revision as a new immutable version?",title:"Live dashboards",empty:"Create a dashboard with your Assistant, or import a definition.",import:"Import definition",save:"Save",cancel:"Cancel",refresh:"Refresh",apply:"Apply filters",loading:"Loading…",saved:"Saved",refreshed:"Updated",definition:"Dashboard definition",sources:"Available sources",version:"Version",partial:"Partial result — narrow the filters to retrieve all rows.",select:"Choose a dashboard",error:"The operation failed. Check your access and query definition.",all:"All",edit:"Edit working draft",history:"Version history",search:"Search dashboards…",noResults:"No dashboards found.",autoRefresh:"Auto refresh",off:"Off",seconds30:"Every 30 seconds",minute1:"Every minute"},xa=Im({en:Qm,"zh-Hans":{bindingUnavailable:"部分视图未能加载,请检查数据权限或重试。已成功查询的视图仍可查看。",publishShareBlocked:"草稿包含私有或不可用的数据源,无法更新当前团队分享。请移除这些数据绑定,或先撤销分享再发布。已发布版本和共享链接保持不变。",viewerControls:"看板操作",hideViewerControls:"收起看板操作",share:"团队分享",teamReadOnly:"团队 · 只读",shareHint:"向本组织已登录成员分享正式版本,草稿保持私有。",sharePermissions:"每位访问者仍需自己的数据源权限。分享不会授予文件或数据源访问权。",shareVersion:"版本策略",shareLatest:"跟随最新正式版本",shareFixed:"固定正式版本",shareLink:"分享链接",copyLink:"复制链接",copied:"已复制",openShared:"打开独立页面",enableShare:"开启分享",updateShare:"更新分享",revokeShare:"撤销链接",publishBeforeShare:"请先发布一个正式版本。",privateDependencies:"此数据源使用私有脚本或文件依赖,需要单独支持并授予团队访问权限后才能分享。",sourceUnavailable:"声明的数据源或适配器不可用。",draft:"工作草稿",publish:"发布草稿",confirm:"确认发布",confirmPublish:"将这份已保存草稿发布为新的正式版本?",title:"实时看板",empty:"让 Assistant 创建看板,或导入看板定义。",import:"导入定义",save:"保存",cancel:"取消",refresh:"刷新",apply:"应用筛选",loading:"加载中…",saved:"已保存",refreshed:"已更新",definition:"看板定义",sources:"可用数据源",version:"版本",partial:"结果不完整,请缩小筛选范围以获取全部数据。",select:"选择看板",error:"操作失败,请检查访问权限和查询定义。",all:"全部",edit:"编辑工作草稿",history:"版本历史",search:"搜索看板…",noResults:"未找到匹配的看板。",autoRefresh:"自动刷新",off:"关闭",seconds30:"每 30 秒",minute1:"每分钟"},"zh-Hant":{bindingUnavailable:"部分視圖未能載入,請檢查資料權限或重試。成功查詢的視圖仍可查看。",publishShareBlocked:"草稿包含私有或無法使用的資料來源,無法更新目前的團隊分享。請移除這些資料繫結,或先撤銷分享再發佈。已發佈版本與分享連結保持不變。",viewerControls:"看板操作",hideViewerControls:"收起看板操作",share:"團隊分享",teamReadOnly:"團隊 · 唯讀",shareHint:"向本組織已登入成員分享正式版本,草稿保持私有。",sharePermissions:"每位訪問者仍需自己的資料來源權限。分享不會授予檔案或資料來源存取權。",shareVersion:"版本策略",shareLatest:"跟隨最新正式版本",shareFixed:"固定正式版本",shareLink:"分享連結",copyLink:"複製連結",copied:"已複製",openShared:"開啟獨立頁面",enableShare:"開啟分享",updateShare:"更新分享",revokeShare:"撤銷連結",publishBeforeShare:"請先發佈一個正式版本。",privateDependencies:"此資料來源使用私有腳本或檔案依賴,需要單獨支援並授予團隊存取權後才能分享。",sourceUnavailable:"聲明的資料來源或適配器不可用。",draft:"工作草稿",publish:"發佈草稿",confirm:"確認發佈",confirmPublish:"將這份已儲存草稿發佈為新的正式版本?",title:"即時看板",empty:"讓 Assistant 建立看板,或匯入看板定義。",import:"匯入定義",save:"儲存",cancel:"取消",refresh:"重新整理",apply:"套用篩選",loading:"載入中…",saved:"已儲存",refreshed:"已更新",definition:"看板定義",sources:"可用資料來源",version:"版本",partial:"結果不完整,請縮小篩選範圍以取得全部資料。",select:"選擇看板",error:"操作失敗,請檢查存取權限和查詢定義。",all:"全部",edit:"編輯工作草稿",history:"版本歷史",search:"搜尋看板…",noResults:"找不到符合的看板。",autoRefresh:"自動重新整理",off:"關閉",seconds30:"每 30 秒",minute1:"每分鐘"}},"en");function Ym(r){return xa.setLocale(r),document.documentElement.lang=xa.getLocale(),Object.fromEntries(Object.keys(Qm).map(t=>[t,xa.t(t)]))}const XC={scripts:["https://cdn.tailwindcss.com","https://cdn.jsdelivr.net","https://cdnjs.cloudflare.com","https://unpkg.com"],styles:["https://cdn.jsdelivr.net","https://cdnjs.cloudflare.com","https://unpkg.com","https://fonts.googleapis.com"],fonts:["https://cdn.jsdelivr.net","https://cdnjs.cloudflare.com","https://unpkg.com","https://fonts.gstatic.com"]};function JC(r,t){return $C(r,{...t,networkPolicy:XC})}const e_=we({success:Xe(!0),data:we({schema:Xe("xpert.analytics.dataset"),datasetId:ne(),fields:nt(we({id:ne()}).passthrough()),rows:nt(ur(zn([ne(),ft(),Lt(),cr()]))),completeness:we({truncated:Lt()}).passthrough(),freshness:we({sourceFetchedAt:ne()}).passthrough(),provenance:we({executionId:ne()}).passthrough()}).passthrough()}),t_=m.forwardRef(function(t,o){const i=m.useRef(null),a=m.useRef(null),l=m.useRef(t);return l.current=t,m.useImperativeHandle(o,()=>({refresh(){a.current?.refresh()}}),[]),m.useEffect(()=>{const u=i.current;if(!u||!t.manifest.presentation)return;const d=t.manifest;let h;try{h=Bm(t.dependencies,d.presentation?.dependencies??[])}catch{l.current.onError("DOCUMENT_DEPENDENCY_INTEGRITY_FAILED"),l.current.onBusy(!1);return}const g=JC(u,{html:t.manifest.presentation.html,dependencies:h,context:{bindingIds:d.bindings.map(v=>v.id),defaults:Object.fromEntries(d.controls.filter(v=>v.defaultValue!==void 0).map(v=>[v.controlId,v.defaultValue??null])),locale:document.documentElement.lang||"en-US",theme:document.documentElement.classList.contains("dark")?"dark":"light"},query:async v=>e_.parse(await cn("executeAction",{actionKey:"query-binding",input:{artifactId:t.artifactId,versionId:t.versionId,draftRevision:t.draftRevision,bindingId:v.bindingId,controls:v.controls}})).data,onBusy:v=>l.current.onBusy(v),onError:v=>l.current.onError(v),onResult:v=>l.current.onResult({partial:v.completeness.truncated,fetchedAt:v.freshness.sourceFetchedAt})});return a.current=g,()=>{g.dispose(),a.current=null}},[t.artifactId,t.versionId,t.draftRevision]),m.createElement("iframe",{ref:i,title:t.manifest.title,sandbox:"allow-scripts",className:"h-full w-full border-0"})});function n_({items:r,value:t,disabled:o,label:i,searchLabel:a,emptyLabel:l,onChange:u}){const[d,h]=m.useState(!1),g=m.useId(),v=r.find(w=>w.artifactId===t),y=v?.title??v?.artifactId??i;return m.createElement(Am,{open:d,onOpenChange:h},m.createElement(Dm,{role:"combobox","aria-label":i,"aria-expanded":d,"aria-controls":d?g:void 0,"aria-haspopup":"listbox",disabled:o,className:We(su({variant:"outline"}),"dashboard-picker justify-between font-normal"),title:y},m.createElement("span",{className:"truncate"},y),m.createElement(Zl,{className:"shrink-0 opacity-50"})),m.createElement(Lm,{align:"start",className:"dashboard-picker-menu p-0"},m.createElement(uC,null,m.createElement(dC,{"aria-label":a,placeholder:a}),m.createElement(fC,{id:g,"aria-label":i},m.createElement(pC,null,l),r.map(w=>m.createElement(hC,{key:w.artifactId,value:w.artifactId,keywords:[w.title??w.artifactId],"data-checked":w.artifactId===t,onSelect:()=>{h(!1),w.artifactId!==t&&u(w.artifactId)}},m.createElement("span",{className:"min-w-0 truncate",title:w.title??w.artifactId},w.title??w.artifactId)))))))}const r_=we({published:we({versionId:ne(),versionNumber:ft(),title:ne().nullish()}).nullable(),issues:nt(we({code:ne(),bindingId:ne().optional()})),link:we({status:ne(),versionMode:Fn(["latest","version"]),versionId:ne().nullish(),url:ne().url().optional()}).nullable()}),o_=we({success:Xe(!0),data:r_});function i_({artifactId:r,versionId:t,versions:o,t:i,onClose:a}){const[l,u]=m.useState(null),[d,h]=m.useState("latest"),[g,v]=m.useState(t??o[0]?.versionId??""),[y,w]=m.useState(!1),[b,S]=m.useState(""),[_,k]=m.useState(!1),T=m.useRef(null),D=m.useRef(0),N=m.useRef(!1);async function I(j){const Q=++D.current;w(!0),S(""),k(!1);try{const ae=o_.parse(await cn("executeAction",{actionKey:j,input:{artifactId:r,...j==="share"?{versionMode:d}:{},...j!=="revoke-share"&&d==="version"&&g?{versionId:g}:{}}})).data;Q===D.current&&(u(ae),N.current||(N.current=!0,ae.link?.status==="active"&&(h(ae.link.versionMode),ae.link.versionId&&v(ae.link.versionId))))}catch{Q===D.current&&S(i.error)}finally{Q===D.current&&w(!1)}}m.useEffect(()=>(I("share-status"),()=>{++D.current}),[r,d,g]);const V=l?.link?.status==="active"?l.link:null,L=V&&V.versionMode===d&&(d==="latest"||V.versionId===g),B=j=>j==="DASHBOARD_PUBLISH_BEFORE_SHARING"?i.publishBeforeShare:j==="WORKSPACE_SCRIPT_PRIVATE_DEPENDENCIES"||j==="DASHBOARD_PRIVATE_DEPENDENCY"?i.privateDependencies:i.sourceUnavailable;return m.createElement(Xk,{open:!0,onOpenChange:j=>{!j&&!y&&a()}},m.createElement(tC,null,m.createElement(nC,null,m.createElement(oC,null,i.share),m.createElement(iC,null,i.shareHint)),m.createElement("div",{className:"grid gap-4 py-2"},m.createElement("label",{className:"grid gap-2 text-sm"},i.shareVersion,m.createElement(jo,{value:d,disabled:y,onValueChange:j=>h(j==="version"?"version":"latest")},m.createElement(zo,{"aria-label":i.shareVersion},m.createElement(Mo,null)),m.createElement(Fo,null,m.createElement(ln,{value:"latest"},i.shareLatest),m.createElement(ln,{value:"version"},i.shareFixed)))),d==="version"&&m.createElement(jo,{value:g,disabled:y,onValueChange:v},m.createElement(zo,{"aria-label":i.version},m.createElement(Mo,{placeholder:i.version})),m.createElement(Fo,null,o.filter(j=>j.versionId).map(j=>m.createElement(ln,{key:j.versionId,value:j.versionId},i.version," ",j.versionNumber)))),l?.published&&m.createElement("p",{className:"text-sm text-muted-foreground"},l.published.title," · ",i.version," ",l.published.versionNumber),!!l?.issues.length&&m.createElement("ul",{className:"grid gap-2 text-sm text-destructive",role:"alert"},l.issues.map((j,Q)=>m.createElement("li",{key:Q},B(j.code),j.bindingId?` (${j.bindingId})`:""))),m.createElement("p",{className:"text-xs text-muted-foreground"},i.sharePermissions),V?.url&&m.createElement("div",{className:"grid gap-2"},m.createElement("label",{htmlFor:"dashboard-share-url",className:"text-sm"},i.shareLink),m.createElement(Tm,{id:"dashboard-share-url",ref:T,readOnly:!0,value:V.url,onFocus:j=>j.target.select()}),m.createElement("div",{className:"flex gap-2"},m.createElement(yt,{variant:"outline",onClick:()=>{T.current?.focus(),T.current?.select(),k(document.execCommand("copy"))}},_?i.copied:i.copyLink),m.createElement(yt,{variant:"outline",onClick:async()=>{if(V.url){S("");try{we({success:Xe(!0)}).parse(await cn("invokeClientCommand",{commandKey:"artifact.presentation.open",payload:{url:V.url}}))}catch{S(i.error)}}}},i.openShared))),b&&m.createElement("p",{role:"alert",className:"text-sm text-destructive"},b)),m.createElement(rC,null,V&&m.createElement(yt,{variant:"outline",disabled:y,onClick:()=>{I("revoke-share")}},i.revokeShare),m.createElement(yt,{variant:"outline",disabled:y,onClick:a},i.cancel),m.createElement(yt,{disabled:y||!l||!!l.issues.length||!!L,onClick:()=>{I("share")}},V?i.updateShare:i.enableShare))))}function s_({children:r,busy:t,t:o}){const[i,a]=m.useState(!1),l=m.useRef(!1),u=m.useRef(null),d=m.useRef(!1),h=m.useRef(),g=()=>{clearTimeout(h.current)},v=b=>{g(),b||(l.current=!1),a(b)},y=b=>{b.pointerType==="mouse"&&(g(),a(!0))},w=b=>{b.pointerType!=="mouse"||l.current||(g(),h.current=setTimeout(()=>{l.current||a(!1)},180))};return m.useEffect(()=>()=>clearTimeout(h.current),[]),m.useEffect(()=>{if(!i)return;let b;const S=()=>{b=setTimeout(()=>{document.activeElement instanceof HTMLIFrameElement&&v(!1)},0)};return window.addEventListener("blur",S),()=>{window.removeEventListener("blur",S),clearTimeout(b)}},[i]),m.createElement(Am,{open:i,onOpenChange:v},m.createElement("div",{className:"viewer-controls-trigger"},m.createElement(Dm,{asChild:!0},m.createElement("button",{ref:u,type:"button",className:We(su({variant:"outline",size:"icon"}),"viewer-controls-button"),"aria-label":o.viewerControls,title:o.viewerControls,onPointerEnter:y,onPointerLeave:w,onClick:b=>{b.preventDefault(),g(),l.current?v(!1):(l.current=!0,a(!0))}},t?m.createElement(ql,{className:"motion-safe:animate-spin","aria-hidden":"true"}):m.createElement(x0,{"aria-hidden":"true"}),t&&m.createElement("span",{role:"status",className:"sr-only"},o.loading)))),m.createElement(Lm,{align:"end",side:"bottom",sideOffset:8,collisionPadding:12,"aria-label":o.viewerControls,className:"viewer-controls-panel w-[min(44rem,calc(100vw-24px))] gap-0 p-0",onPointerEnter:y,onPointerLeave:w,onPointerDownCapture:()=>{l.current=!0},onFocusCapture:()=>{l.current=!0},onOpenAutoFocus:b=>{l.current||b.preventDefault()},onEscapeKeyDown:()=>{d.current=!0},onCloseAutoFocus:b=>{b.preventDefault(),d.current&&u.current?.focus({preventScroll:!0}),d.current=!1}},r,m.createElement(yt,{variant:"ghost",size:"icon",className:"viewer-controls-close","aria-label":o.hideViewerControls,title:o.hideViewerControls,onClick:()=>{d.current=!0,v(!1)}},m.createElement(Xf,{"aria-hidden":"true"}))))}jC(document);const jt=window.__DASHBOARD_READ_ONLY__===!0,pu=we({success:Xe(!0),data:Zr()}),a_=we({payload:Zr(),failures:nt(we({bindingId:ne(),datasetId:ne(),reason:Xe("unavailable")})).default([]),datasets:nt(we({completeness:we({truncated:Lt()}),freshness:we({sourceFetchedAt:ne()})}))});function l_(){const[r,t]=m.useState(()=>Ym("en-US")),[o,i]=m.useState([]),[a,l]=m.useState([]),[u,d]=m.useState(null),[h,g]=m.useState([]),[v,y]=m.useState({}),[w,b]=m.useState(""),[S,_]=m.useState(!0),[k,T]=m.useState(""),[D,N]=m.useState(""),[I,V]=m.useState("off"),[L,B]=m.useState(null),[j,Q]=m.useState(null),[ae,Ce]=m.useState(!1),[ce,le]=m.useState([]),[fe,ke]=m.useState(!1),re=m.useRef(0),se=m.useRef(0),U=m.useRef(),G=m.useRef(null),z=m.useRef({dirty:!1,resourceId:""}),P=L!==null&&L!==JSON.stringify(u?.manifest,null,2);z.current={dirty:P||S&&L!==null,resourceId:u?.artifactId??""};const E=oe=>{u&&cn("invokeClientCommand",{commandKey:"workbench.content.status",payload:{resourceId:u.artifactId,title:u.title,dirty:oe}}).catch(()=>{})};m.useEffect(()=>{E(P||S&&L!==null)},[P,S,L===null,u?.artifactId,u?.title]),m.useEffect(()=>ZC(oe=>oe!==z.current.resourceId||!z.current.dirty),[]);function W(){b(""),le([]),d(null),B(null),g([]),ke(!1),Q(null)}async function X(oe,Ie){const qe=re.current,Ke=VC.parse(await cn("requestData",{query:{parameters:oe?{artifactId:oe,...Ie?{versionId:Ie}:{}}:{}}})).meta;return qe===re.current&&(i(Ke.dashboards),l(Ke.sources)),Ke}async function H(oe,Ie){const qe=++re.current;if(!oe.versionId&&!oe.draftRevision)throw new Error("Missing saved definition");if(b(""),le([]),N(""),Ce(!1),!oe.manifest.bindings.length)return;const Ke=a_.parse(pu.parse(await cn("executeAction",{actionKey:"query",input:{artifactId:oe.artifactId,versionId:oe.versionId??void 0,...oe.isDraft?{draftRevision:oe.draftRevision}:{},controls:Ie}})).data);qe===re.current&&(le(Ke.failures.map(Ye=>Ye.datasetId)),b(Ke.datasets.length?u_(Ke.payload):""),Ce(Ke.datasets.some(Ye=>Ye.completeness.truncated)),N(Ke.datasets.map(Ye=>Ye.freshness.sourceFetchedAt).sort()[0]??""))}async function J(oe,Ie,qe=!0){const Ke=++re.current;W();const Ye=await X(oe,Ie),Nt=Ye.saved;if(Ke!==re.current)return;if(!Nt||!Nt.versionId&&!Nt.draftRevision)throw new Error("Dashboard is unavailable");const br=Object.fromEntries(Nt.manifest.controls.filter(un=>un.defaultValue!==void 0).map(un=>[un.controlId,un.defaultValue??null]));d(Nt),g(Ye.versions??[]),y(br),N(""),Ce(!1),!(!jt&&qe&&(U.current=Zm({artifactId:oe,versionId:Ie}),await YC(Ye.navigationTarget,oe,Ie),Ke!==re.current))&&(jt||await QC({artifactId:Nt.artifactId,versionId:Nt.versionId??void 0,draftRevision:Nt.draftRevision}),Ke===re.current&&!Nt.manifest.presentation&&Nt.manifest.bindings.length&&await H(Nt,br))}async function ue(oe){const Ie=++se.current;_(!0),T("");try{await oe()}catch(qe){Ie===se.current&&T(qe instanceof Error?qe.message:r.error)}finally{Ie===se.current&&_(!1)}}const ee=m.useRef({saved:u,controls:v,busy:S,editor:L});ee.current={saved:u,controls:v,busy:S,editor:L},m.useEffect(()=>{if(I==="off")return;let oe=!1,Ie=!1;const qe=async()=>{const Ye=ee.current;if(!(oe||!KC()||Ie||Ye.busy||Ye.editor!==null||!Ye.saved?.manifest.bindings.length)){Ie=!0;try{Ye.saved.manifest.presentation?G.current?.refresh():await H(Ye.saved,Ye.controls)}catch{oe||T(r.error)}finally{Ie=!1}}},Ke=window.setInterval(()=>{qe()},Number(I)*1e3);return document.addEventListener("visibilitychange",qe),()=>{oe=!0,window.clearInterval(Ke),document.removeEventListener("visibilitychange",qe)}},[I,u?.artifactId,r.error]);async function ie(){const oe=++re.current;W();const Ie=await X();if(oe!==re.current)return;const qe=[...Ie.dashboards].sort((Ke,Ye)=>(Ye.updatedAt??"").localeCompare(Ke.updatedAt??""))[0];qe&&await J(qe.artifactId,void 0,!1)}m.useEffect(()=>GC((oe,Ie)=>{t(Ym(oe));const qe=zC.safeParse(Ie??{});if(!qe.success){++re.current,U.current=void 0,W(),ue(async()=>{throw new Error("DASHBOARD_NAVIGATION_INVALID")});return}const Ke=qe.data,Ye=Zm(Ke);Ye!==U.current&&(U.current=Ye,ue(()=>Ke.artifactId?J(Ke.artifactId,Ke.versionId,!1):ie()))},oe=>{ue(()=>J(oe))}),[]);async function Ae(){const oe=ya.parse(JSON.parse(L??"")),Ie=u?.manifest.id===oe.id?u.versionId??null:null,qe=Di.parse(pu.parse(await cn("executeAction",{actionKey:"save",input:{manifest:oe,expectedVersionId:Ie,expectedRevision:u?.manifest.id===oe.id?u.draftRevision??0:0}})).data);await J(qe.artifactId)}async function $e(){if(!j?.draftRevision)return;const oe=Di.parse(pu.parse(await cn("executeAction",{actionKey:"publish",input:{artifactId:j.artifactId,expectedRevision:j.draftRevision,expectedCurrentVersionId:j.baseVersionId??j.versionId??null,confirmed:!0}}).catch(Ie=>{throw Ie instanceof Error&&Ie.message==="DASHBOARD_PUBLISH_SHARE_BLOCKED"?(Q(null),new Error(r.publishShareBlocked)):Ie})).data);Q(null),await J(oe.artifactId,oe.versionId??void 0)}const Me=m.createElement("header",{className:"dashboard-toolbar border-b"},m.createElement("h1",{className:"toolbar-title text-base font-semibold"},jt?u?.title??r.title:r.title),!jt&&m.createElement(n_,{items:o,value:u?.artifactId??"",disabled:S||L!==null,label:r.select,searchLabel:r.search,emptyLabel:r.noResults,onChange:oe=>{ue(()=>J(oe))}}),jt&&u&&m.createElement("span",{className:"text-xs text-muted-foreground"},r.teamReadOnly," · ",r.version," ",u.versionNumber),m.createElement("span",{className:"toolbar-loading text-muted-foreground",role:"status",title:S?r.loading:void 0},S&&m.createElement(m.Fragment,null,m.createElement(ql,{className:"size-4 motion-safe:animate-spin","aria-hidden":"true"}),m.createElement("span",{className:"sr-only"},r.loading))),!jt&&u&&m.createElement(jo,{value:u.isDraft?"draft":u.versionId??"draft",onValueChange:oe=>{ue(()=>J(u.artifactId,oe==="draft"?void 0:oe))},disabled:S||L!==null},m.createElement(zo,{className:"toolbar-version","aria-label":r.history},m.createElement(Mo,{placeholder:r.history})),m.createElement(Fo,null,m.createElement(ln,{value:"draft"},r.draft,u.isDraft?` · r${u.draftRevision}`:""),h.filter(oe=>oe.versionId).map(oe=>m.createElement(ln,{key:oe.versionId,value:oe.versionId},r.version," ",oe.versionNumber)))),u&&D&&m.createElement("time",{className:"toolbar-updated text-xs text-muted-foreground",dateTime:D,title:`${r.refreshed}: ${new Date(D).toLocaleString(document.documentElement.lang)}`},m.createElement("span",{className:"toolbar-full-date"},new Date(D).toLocaleString(document.documentElement.lang)),m.createElement("span",{className:"toolbar-short-date"},new Date(D).toLocaleTimeString(document.documentElement.lang))),m.createElement("div",{className:"toolbar-actions"},!jt&&u?.isDraft&&m.createElement(yt,{disabled:S||L!==null||!u.manifest.bindings.length,onClick:()=>Q(u),"aria-label":r.publish,title:r.publish},m.createElement(Jf,null),m.createElement("span",null,r.publish)),!jt&&u&&m.createElement(yt,{variant:"outline",disabled:S||L!==null,"aria-label":r.edit,title:r.edit,onClick:()=>{ue(async()=>{const oe=await X(u.artifactId);if(!oe.saved)throw new Error(r.error);d(oe.saved),g(oe.versions??[]),B(JSON.stringify(oe.saved.manifest,null,2))})}},m.createElement(w0,null),m.createElement("span",null,r.edit)),!jt&&m.createElement(yt,{variant:"outline",disabled:S||L!==null,"aria-label":r.import,title:r.import,onClick:()=>B("")},m.createElement(S0,null),m.createElement("span",null,r.import)),!jt&&u&&m.createElement(yt,{variant:"outline",onClick:()=>ke(!0),disabled:S,"aria-label":r.share,title:r.share},m.createElement(k0,null),m.createElement("span",null,r.share)),m.createElement(jo,{value:I,onValueChange:V,disabled:!u||L!==null},m.createElement(zo,{"aria-label":r.autoRefresh},m.createElement(Mo,null)),m.createElement(Fo,null,m.createElement(ln,{value:"off"},r.off),m.createElement(ln,{value:"30"},r.seconds30),m.createElement(ln,{value:"60"},r.minute1))),m.createElement(yt,{disabled:S||L!==null,"aria-label":r.refresh,title:r.refresh,onClick:()=>{u?.manifest.presentation?(T(""),G.current?.refresh()):ue(async()=>{u?(await X(),await H(u,v)):await ie()})}},m.createElement(ql,null),m.createElement("span",null,r.refresh)))),Ue=u&&!u.manifest.presentation&&!!u.manifest.controls.length&&m.createElement("section",{className:"flex flex-wrap items-end gap-3 border-b px-4 py-3"},u.manifest.controls.map(oe=>m.createElement(c_,{key:oe.controlId,control:oe,value:v[oe.controlId]??null,disabled:S,onChange:Ie=>y(qe=>({...qe,[oe.controlId]:Ie}))})),m.createElement(yt,{type:"button",variant:"outline",disabled:S,onClick:()=>{ue(()=>H(u,v))}},r.apply));return m.createElement("main",{className:"dashboard-shell","data-read-only":jt||void 0},jt?m.createElement(s_,{busy:S,t:r},Me,Ue):Me,!jt&&fe&&u&&m.createElement(i_,{artifactId:u.artifactId,versionId:u.versionId??void 0,versions:h,t:r,onClose:()=>ke(!1)}),m.createElement(Hk,{open:!!j,onOpenChange:oe=>{!oe&&!S&&Q(null)}},m.createElement(Zk,null,m.createElement(Gk,null,r.publish),m.createElement(Qk,null,r.confirmPublish," ",j?.manifest.title," · r",j?.draftRevision),m.createElement(qk,null,m.createElement(Yk,{disabled:S},r.cancel),m.createElement(yt,{disabled:S,onClick:()=>{ue($e)}},r.confirm)))),k&&m.createElement("div",{role:"alert",className:"border-b px-4 py-3 text-destructive"},k),L!==null?m.createElement("section",{className:"editor-panel p-4"},m.createElement("label",{className:"text-sm font-medium",htmlFor:"definition"},r.definition),m.createElement(sC,{id:"definition",className:"min-h-0 flex-1 font-mono text-xs",value:L,onChange:oe=>{z.current.dirty=!0,E(!0),B(oe.target.value)},disabled:S}),m.createElement("details",{className:"text-xs"},m.createElement("summary",null,r.sources),m.createElement("pre",{className:"max-h-32 overflow-auto"},JSON.stringify(a,null,2))),m.createElement("div",{className:"flex justify-end gap-2"},m.createElement(yt,{variant:"outline",onClick:()=>B(null),disabled:S},r.cancel),m.createElement(yt,{onClick:()=>{ue(Ae)},disabled:S||!L.trim()},m.createElement(Jf,null),r.save))):m.createElement(m.Fragment,null,!jt&&Ue,ce.length>0&&m.createElement("div",{role:"alert",className:"px-4 py-2 text-sm"},m.createElement("p",null,r.bindingUnavailable),m.createElement("ul",null,ce.map(oe=>m.createElement("li",{key:oe},[...u?.manifest.charts??[],...u?.manifest.tables??[]].filter(Ie=>Ie.datasetId===oe).map(Ie=>Ie.title).join(" · ")||oe)))),ae&&m.createElement("p",{role:"status",className:"px-4 py-2 text-sm"},r.partial),m.createElement("section",{className:"canvas-panel","aria-busy":S},!S&&!w&&!u?.manifest.presentation&&!k&&!ce.length&&m.createElement("p",{className:"p-6 text-muted-foreground"},r.empty),u?.manifest.presentation&&m.createElement(t_,{ref:G,artifactId:u.artifactId,versionId:u.versionId??void 0,draftRevision:u.isDraft?u.draftRevision:void 0,manifest:u.manifest,dependencies:u.dependencies??[],onBusy:_,onError:T,onResult:oe=>{T(""),Ce(oe.partial),N(oe.fetchedAt)}}),w&&m.createElement("iframe",{title:u?.manifest.title??r.title,sandbox:"allow-scripts",srcDoc:w,className:"h-full w-full border-0"}))))}function c_({control:r,value:t,onChange:o,disabled:i}){return m.createElement("div",{className:"grid gap-1.5"},m.createElement("label",{htmlFor:r.controlId,className:"text-xs text-muted-foreground"},r.label),r.allowedValues?m.createElement(jo,{value:JSON.stringify(t),onValueChange:a=>o(zn([ne(),ft(),Lt(),cr()]).parse(JSON.parse(a))),disabled:i},m.createElement(zo,{id:r.controlId,className:"w-44"},m.createElement(Mo,null)),m.createElement(Fo,null,r.allowedValues.map(a=>m.createElement(ln,{key:JSON.stringify(a),value:JSON.stringify(a)},String(a??"—"))))):r.type==="boolean"?m.createElement(jo,{value:String(t),onValueChange:a=>o(a==="true"),disabled:i},m.createElement(zo,{id:r.controlId,className:"w-44"},m.createElement(Mo,null)),m.createElement(Fo,null,m.createElement(ln,{value:"true"},"true"),m.createElement(ln,{value:"false"},"false"))):m.createElement(Tm,{id:r.controlId,className:"w-44",disabled:i,type:r.type==="date"?"date":r.type==="number"?"number":"text",value:t===null?"":String(t),onChange:a=>o(a.target.value===""?null:r.type==="number"?Number(a.target.value):a.target.value)}))}function u_(r){const t=i=>JSON.stringify(i).replace(/</g,"\\u003c").replace(/>/g,"\\u003e"),o=`<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'unsafe-inline'; style-src 'unsafe-inline'; img-src data: blob:; font-src data:; connect-src 'none'; frame-src 'none'; base-uri 'none'; form-action 'none'"><script>window.__DATASCIENCE_ARTIFACT_HOSTING__={mode:'site_creator',readOnly:true,controls:{edit:false,exportHostedLink:false,hostedLink:false}};window.xpertai={toolOutput:${t(r)},toolResponseMetadata:${t(r)},availableDisplayModes:['inline','fullscreen'],displayMode:'fullscreen',hostContext:{availableDisplayModes:['inline','fullscreen'],displayMode:'fullscreen'}};
|
|
251
|
+
`,jC=xe({channel:Qe(Gm),version:Qe(Qm),type:Qe("ready"),sessionId:te().regex(/^[a-f0-9]{32}$/)}).strict(),MC=xe({type:Qe("diagnostic"),code:Qe("DOCUMENT_BINDING_DENIED")}).strict();function zC(r,t){if(!r.ownerDocument.querySelector("meta[data-xpert-document-policy]"))throw new Error("Install the Artifact document frame policy before mounting a document");const o=PC.parse(t.context),i=Array.from(crypto.getRandomValues(new Uint8Array(16)),T=>T.toString(16).padStart(2,"0")).join(""),a=LC(t.html,i,t.dependencies,t.networkPolicy),l=new MessageChannel,u=new Set(o.bindingIds),d=new Set,h=new Set,g=new Map,v=r.ownerDocument.defaultView;let y=!1,S=!1,b=0,w=Date.now();r.setAttribute("sandbox","allow-scripts"),r.referrerPolicy="no-referrer";const _=(T,O)=>{try{T?.(O)}catch{}},k=T=>{S||l.port1.postMessage(T)},R=(T,O)=>{k({type:"result",requestId:T,ok:!1,code:O}),_(t.onError,O)};l.port1.onmessage=async T=>{if(S)return;const O=MC.safeParse(T.data);if(O.success){_(t.onError,O.data.code);return}const V=RC.safeParse(T.data);if(!V.success){_(t.onError,"DOCUMENT_INVALID_REQUEST");return}const L={type:V.data.type,requestId:V.data.requestId,bindingId:V.data.bindingId,controls:V.data.controls};if(!u.has(L.bindingId)){R(L.requestId,"DOCUMENT_BINDING_DENIED");return}if(Date.now()-w>=6e4&&(b=0,w=Date.now(),d.clear()),h.has(L.requestId)||d.has(L.requestId)){R(L.requestId,"DOCUMENT_REQUEST_REPLAY");return}if(h.size>=8||++b>60){R(L.requestId,"DOCUMENT_QUERY_LIMIT");return}d.add(L.requestId),h.add(L.requestId),g.set(L.bindingId,L.requestId),_(t.onBusy,!0);try{const B=await t.query(L);S||(k({type:"result",requestId:L.requestId,ok:!0,dataset:B}),g.get(L.bindingId)===L.requestId&&_(t.onResult,B))}catch{S||(k({type:"result",requestId:L.requestId,ok:!1,code:"DOCUMENT_QUERY_FAILED"}),g.get(L.bindingId)===L.requestId&&_(t.onError,"DOCUMENT_QUERY_FAILED"))}finally{h.delete(L.requestId),S||_(t.onBusy,h.size>0)}};const D=T=>{var O;if(S||y||T.source!==r.contentWindow)return;const V=jC.safeParse(T.data);!V.success||V.data.sessionId!==i||(y=!0,(O=r.contentWindow)==null||O.postMessage({channel:Gm,version:Qm,type:"init",sessionId:i,context:o},"*",[l.port2]))};return v.addEventListener("message",D),l.port1.start(),r.srcdoc=a,{refresh(){k({type:"refresh"})},dispose(){S||(S=!0,v.removeEventListener("message",D),l.port1.close(),l.port2.close(),_(t.onBusy,!1))}}}function FC(r){if(r.querySelector("meta[data-xpert-document-policy]"))return;const t=r.createElement("meta");t.httpEquiv="Content-Security-Policy",t.content="frame-src 'none'",t.dataset.xpertDocumentPolicy="1",r.head.prepend(t)}const Nn=te().regex(/^[A-Za-z][A-Za-z0-9_.-]{0,79}$/),Ra=xe({schema:Qe("xpert.live-dashboard"),id:te().uuid(),title:te().min(1).max(160),bindings:nt(qm).max(8),presentation:xe({type:Qe("html"),html:Xm,dependencies:vu.optional()}).strict().optional(),controls:nt(xe({controlId:Nn,type:Hn(["string","number","boolean","date"]),defaultValue:Bn([te(),mt(),Tt(),hr()]).optional(),allowedValues:nt(Bn([te(),mt(),Tt(),hr()])).max(200).optional(),label:te().min(1).max(160)}).strict()).max(24),charts:nt(xe({id:Nn,title:te().min(1).max(160),type:Hn(["bar","line","area","pie","scatter"]),datasetId:Nn,x:Nn,y:Nn,color:Nn.optional()}).strict()).max(20),tables:nt(xe({id:Nn,title:te().min(1).max(160),datasetId:Nn,fields:nt(Nn).min(1).max(30)}).strict()).max(20)}).strict().superRefine((r,t)=>{const o=(i,a)=>{new Set(i).size!==i.length&&t.addIssue({code:"custom",message:`Duplicate ${a}`})};!r.bindings.length&&(r.presentation||r.controls.length||r.charts.length||r.tables.length)&&t.addIssue({code:"custom",message:"An unconfigured draft must contain no views or controls"}),o(r.bindings.map(i=>i.id),"binding"),o(r.bindings.map(i=>i.output.datasetId),"dataset"),o(r.controls.map(i=>i.controlId),"control"),o([...r.charts,...r.tables].map(i=>i.id),"view"),r.bindings.length&&!r.presentation&&!r.charts.length&&!r.tables.length&&t.addIssue({code:"custom",message:"At least one chart or table is required"}),r.presentation&&(r.charts.length||r.tables.length)&&t.addIssue({code:"custom",message:"HTML presentation owns its charts; use empty charts/tables arrays"});for(const i of r.controls){const a=r.bindings.flatMap(u=>u.parameters.filter(d=>d.controlId===i.controlId));a.length||t.addIssue({code:"custom",message:"Control is not bound to a query parameter"});const l=[...i.defaultValue!==void 0?[i.defaultValue]:[],...i.allowedValues??[]];l.some(u=>u!==null&&(i.type==="number"?typeof u!="number"||!Number.isFinite(u):i.type==="boolean"?typeof u!="boolean":typeof u!="string"))&&t.addIssue({code:"custom",message:"Control value has an incompatible type"}),i.allowedValues&&i.defaultValue!==void 0&&!i.allowedValues.includes(i.defaultValue)&&t.addIssue({code:"custom",message:"Default control value is not allowed"});for(const u of a)u.defaultValue!==void 0&&i.defaultValue!==void 0&&u.defaultValue!==i.defaultValue&&t.addIssue({code:"custom",message:"Control and parameter defaults disagree"}),l.some(d=>d===null?u.required:u.allowedValues&&!u.allowedValues.includes(d))&&t.addIssue({code:"custom",message:"Control values conflict with parameter restrictions"})}for(const i of r.bindings)for(const a of i.parameters){const l=r.controls.find(u=>u.controlId===a.controlId);(!l||l.type!==a.type)&&t.addIssue({code:"custom",message:"Control mapping is missing or has an incompatible type"})}for(const i of[...r.charts,...r.tables]){const a=r.bindings.find(u=>u.output.datasetId===i.datasetId)?.output,l="fields"in i?i.fields:[i.x,i.y,...i.color?[i.color]:[]];(!a||l.some(u=>!a.fields.some(d=>d.id===u)))&&t.addIssue({code:"custom",message:"View references an undeclared Dataset field"}),"y"in i&&!a?.fields.some(u=>u.id===i.y&&["float64","int64","decimal"].includes(u.logicalType))&&t.addIssue({code:"custom",message:"Chart measure must be numeric"}),"y"in i&&i.type!=="scatter"&&a?.grain.some(u=>u!==i.x&&u!==i.color)&&t.addIssue({code:"custom",message:"Chart must encode every Dataset grain dimension in x/color; use another aggregated binding for totals"})}});Ra.innerType().pick({title:!0,bindings:!0,controls:!0,charts:!0,tables:!0,presentation:!0}).partial().strict();const VC=mr(Bn([te().max(4e3),mt().finite(),Tt(),hr()]));xe({manifest:Ra,expectedVersionId:te().uuid().nullable(),expectedRevision:mt().int().nonnegative().default(0)}).strict(),xe({artifactId:te().uuid(),versionId:te().uuid().optional(),draftRevision:mt().int().positive().optional(),controls:VC.default({})}).strict().extend({bindingId:Nn}).strict();const rg="live-dashboard__live-dashboard",og=Tf("target",[xe({target:Qe("workbench.view"),viewKey:Qe(rg)}).strict(),xe({target:Qe("assistant.project"),projectId:te().uuid(),viewKey:Qe(rg)}).strict()]),UC=xe({selectionId:te().uuid().optional(),parameters:xe({contentProvider:te().optional(),contentId:te().uuid().optional(),contentTitle:te().optional(),contentEditor:te().optional(),artifactId:te().uuid().optional(),versionId:te().uuid().optional()}).strict().optional()}).transform((r,t)=>{const o=r.selectionId??r.parameters?.artifactId,i=r.parameters?.versionId;return(r.selectionId&&r.parameters?.artifactId&&r.selectionId!==r.parameters.artifactId||i&&!o)&&t.addIssue({code:Q.custom,message:"DASHBOARD_NAVIGATION_INVALID: provide one Artifact identity and an optional version"}),{artifactId:o,versionId:i}}),yu=r=>JSON.stringify([r.artifactId??null,r.versionId??null]),Bi=xe({artifactId:te(),versionId:te().nullish(),versionNumber:mt().optional(),title:te().nullish(),updatedAt:te().optional(),draftRevision:mt().optional(),canDelete:Tt().optional(),isDraft:Tt().optional(),baseVersionId:te().nullish()}),BC=Bi.extend({manifest:Ra,dependencies:eg.optional()}),HC=xe({meta:xe({navigationTarget:og.optional(),dashboards:nt(Bi),sources:nt(xe({source:gu,name:te()})),saved:BC.optional(),versions:nt(Bi).optional()})}),WC=["dashboard_create","dashboard_create_html","dashboard_update"],KC=xe({dashboard:xe({artifactId:te().uuid(),draftRevision:mt().int().positive(),status:Qe("draft")})});function ZC(r){let t=r;if(typeof t=="string")try{t=JSON.parse(t)}catch{return null}const o=KC.safeParse(t);return o.success?o.data.dashboard:null}const qC=xe({channel:Qe("xpertai.remote_component"),protocolVersion:Qe(1),type:te(),visible:Tt().optional(),scopeRevision:mt().optional(),kind:te().optional(),resourceId:te().optional(),instanceId:te().optional(),requestId:te().optional(),locale:te().optional(),initialQuery:Jr(),data:Jr(),result:Jr(),message:te().optional(),event:xe({type:te(),toolName:te().optional(),data:xe({output:Jr(),revision:mt().int().nonnegative().optional()}).optional()}).optional(),theme:xe({mode:te().optional(),density:Hn(["default","compact"]).optional(),tokens:mr(Bn([te(),mt()])).optional()}).optional()});let nr,qo,ig,xu=!0;const GC=()=>xu&&!document.hidden,wu=new Set,QC=r=>(wu.add(r),()=>{wu.delete(r)});function sg(){for(const r of Er.values())clearTimeout(r.timer),r.reject(new Error("Context changed"));Er.clear()}let YC=0;const Er=new Map;function Su(r,t={}){window.parent.postMessage({channel:"xpertai.remote_component",protocolVersion:1,instanceId:nr,scopeRevision:qo,type:r,...t},"*")}function XC(r,t){let o;const i=a=>{if(a.source!==window.parent)return;const l=qC.safeParse(a.data);if(!l.success)return;const u=l.data;if(u.type==="init"){if(nr&&u.instanceId!==nr)return;qo!==u.scopeRevision&&sg(),nr=u.instanceId,qo=u.scopeRevision,ig=u.initialQuery,xu=u.visible??!0,document.documentElement.classList.toggle("dark",u.theme?.mode==="dark");for(const[h,g]of Object.entries(u.theme?.tokens??{})){const v=h.startsWith("--")?h:`--xui-${h.replace(/[._]/g,"-").replace(/[A-Z]/g,y=>`-${y.toLowerCase()}`)}`;document.documentElement.style.setProperty(v,String(g))}w0({density:u.theme?.density}),r(u.locale??"en-US",u.initialQuery);return}if(u.type==="hostEvent"&&nr&&u.instanceId===nr&&u.event?.type==="view.context.changed"){const h=u.event.data?.revision;h!==void 0&&h>(qo??-1)&&(sg(),qo=h);return}if(!nr||u.instanceId!==nr||u.scopeRevision!==qo&&u.type!=="error")return;if(u.type==="visibility"){xu=u.visible===!0;return}if(u.type==="editorEvent"&&u.kind==="prepareClose"&&u.resourceId&&u.requestId){Su("closePrepared",{requestId:u.requestId,ready:[...wu].every(h=>h(u.resourceId))});return}if(u.type==="hostEvent"&&u.event?.type==="assistant.tool.completed"&&WC.includes(u.event.toolName??"")){const h=ZC(u.event.data?.output);h&&`${h.artifactId}:${h.draftRevision}`!==o&&(o=`${h.artifactId}:${h.draftRevision}`,t(h.artifactId));return}if(!u.requestId)return;const d=Er.get(u.requestId);d&&(Er.delete(u.requestId),clearTimeout(d.timer),u.type==="error"?d.reject(new Error(u.message??"Request failed")):d.resolve(u.data??u.result))};return window.addEventListener("message",i),Su("ready"),()=>{window.removeEventListener("message",i);for(const a of Er.values())clearTimeout(a.timer),a.reject(new Error("View closed"));Er.clear()}}function tn(r,t){if(!nr)return Promise.reject(new Error("View is not connected"));const o=`dashboard-${++YC}`;return new Promise((i,a)=>{const l=window.setTimeout(()=>{Er.delete(o),a(new Error("Request timed out"))},27e4);Er.set(o,{resolve:i,reject:a,timer:l}),Su(r,{requestId:o,...t})})}function ag(r){return tn("invokeClientCommand",{commandKey:"assistant.context.set",payload:{key:"live_dashboard",...r?{context:{schemaVersion:1,...r}}:{clear:!0}}})}async function lg(r,t,o){const i=og.parse(r),a=xe({selectionId:te().optional(),parameters:xe({contentId:te().uuid().optional(),contentProvider:te().optional(),contentTitle:te().optional(),contentEditor:te().optional()}).optional()}).safeParse(ig);let l={};if(t&&a.success&&a.data.parameters?.contentId)if(a.data.selectionId===t)l={...a.data.parameters};else{const u=await tn("invokeClientCommand",{commandKey:"workbench.content.resolve",payload:{providerKey:"live-dashboard.content",resourceId:t}});l=xe({success:Qe(!0),navigation:xe({parameters:mr(Jr()).optional()})}).parse(u).navigation.parameters??{}}return tn("invokeClientCommand",{commandKey:"workbench.navigation.open",payload:{...i,...t?{selectionId:t}:{},parameters:{...l,...o?{versionId:o}:{}}}})}const cg={bindingUnavailable:"Some views could not load. Check your data access or retry. Available views are shown below.",publishShareBlocked:"This draft contains private or unavailable data sources and cannot replace the version used by the active team share. Remove those bindings or revoke the share before publishing. The published version and link are unchanged.",viewerControls:"Dashboard controls",hideViewerControls:"Hide dashboard controls",share:"Team sharing",teamReadOnly:"Team · read only",shareHint:"Share published versions with signed-in members of this organization. Drafts remain private.",sharePermissions:"Each viewer needs their own data source permissions. Sharing does not grant file or source access.",shareVersion:"Version policy",shareLatest:"Follow latest published version",shareFixed:"Pin a published version",shareLink:"Share link",copyLink:"Copy link",copied:"Copied",openShared:"Open page",enableShare:"Enable sharing",updateShare:"Update sharing",revokeShare:"Revoke link",publishBeforeShare:"Publish a version before sharing.",privateDependencies:"This provider uses private script or file dependencies. Team access must be supported and granted separately before sharing.",sourceUnavailable:"A declared data source or provider is unavailable.",draft:"Working draft",publish:"Publish draft",confirm:"Confirm publication",confirmPublish:"Publish this saved revision as a new immutable version?",title:"Live dashboards",empty:"Create a dashboard with your Assistant, or import a definition.",import:"Import definition",save:"Save",cancel:"Cancel",refresh:"Refresh",apply:"Apply filters",loading:"Loading…",saved:"Saved",refreshed:"Updated",definition:"Dashboard definition",sources:"Available sources",version:"Version",partial:"Partial result — narrow the filters to retrieve all rows.",select:"Choose a dashboard",error:"The operation failed. Check your access and query definition.",all:"All",edit:"Edit working draft",history:"Version history",search:"Search dashboards…",noResults:"No dashboards found.",autoRefresh:"Auto refresh",off:"Off",seconds30:"Every 30 seconds",minute1:"Every minute",deleteDashboard:"Delete dashboard",deleteNamedDashboard:"Delete “{{title}}”",confirmDeleteDashboard:"Delete “{{title}}”? It will be removed from the dashboard list and shared links will stop working. Source data and workspace files will be kept.",deleting:"Deleting…"},Go=Lm({en:cg,"zh-Hans":{bindingUnavailable:"部分视图未能加载,请检查数据权限或重试。已成功查询的视图仍可查看。",publishShareBlocked:"草稿包含私有或不可用的数据源,无法更新当前团队分享。请移除这些数据绑定,或先撤销分享再发布。已发布版本和共享链接保持不变。",viewerControls:"看板操作",hideViewerControls:"收起看板操作",share:"团队分享",teamReadOnly:"团队 · 只读",shareHint:"向本组织已登录成员分享正式版本,草稿保持私有。",sharePermissions:"每位访问者仍需自己的数据源权限。分享不会授予文件或数据源访问权。",shareVersion:"版本策略",shareLatest:"跟随最新正式版本",shareFixed:"固定正式版本",shareLink:"分享链接",copyLink:"复制链接",copied:"已复制",openShared:"打开独立页面",enableShare:"开启分享",updateShare:"更新分享",revokeShare:"撤销链接",publishBeforeShare:"请先发布一个正式版本。",privateDependencies:"此数据源使用私有脚本或文件依赖,需要单独支持并授予团队访问权限后才能分享。",sourceUnavailable:"声明的数据源或适配器不可用。",draft:"工作草稿",publish:"发布草稿",confirm:"确认发布",confirmPublish:"将这份已保存草稿发布为新的正式版本?",title:"实时看板",empty:"让 Assistant 创建看板,或导入看板定义。",import:"导入定义",save:"保存",cancel:"取消",refresh:"刷新",apply:"应用筛选",loading:"加载中…",saved:"已保存",refreshed:"已更新",definition:"看板定义",sources:"可用数据源",version:"版本",partial:"结果不完整,请缩小筛选范围以获取全部数据。",select:"选择看板",error:"操作失败,请检查访问权限和查询定义。",all:"全部",edit:"编辑工作草稿",history:"版本历史",search:"搜索看板…",noResults:"未找到匹配的看板。",autoRefresh:"自动刷新",off:"关闭",seconds30:"每 30 秒",minute1:"每分钟",deleteDashboard:"删除看板",deleteNamedDashboard:"删除“{{title}}”",confirmDeleteDashboard:"确定删除“{{title}}”?看板将从列表移除,共享链接将失效。数据源和工作区文件会保留。",deleting:"正在删除…"},"zh-Hant":{bindingUnavailable:"部分視圖未能載入,請檢查資料權限或重試。成功查詢的視圖仍可查看。",publishShareBlocked:"草稿包含私有或無法使用的資料來源,無法更新目前的團隊分享。請移除這些資料繫結,或先撤銷分享再發佈。已發佈版本與分享連結保持不變。",viewerControls:"看板操作",hideViewerControls:"收起看板操作",share:"團隊分享",teamReadOnly:"團隊 · 唯讀",shareHint:"向本組織已登入成員分享正式版本,草稿保持私有。",sharePermissions:"每位訪問者仍需自己的資料來源權限。分享不會授予檔案或資料來源存取權。",shareVersion:"版本策略",shareLatest:"跟隨最新正式版本",shareFixed:"固定正式版本",shareLink:"分享連結",copyLink:"複製連結",copied:"已複製",openShared:"開啟獨立頁面",enableShare:"開啟分享",updateShare:"更新分享",revokeShare:"撤銷連結",publishBeforeShare:"請先發佈一個正式版本。",privateDependencies:"此資料來源使用私有腳本或檔案依賴,需要單獨支援並授予團隊存取權後才能分享。",sourceUnavailable:"聲明的資料來源或適配器不可用。",draft:"工作草稿",publish:"發佈草稿",confirm:"確認發佈",confirmPublish:"將這份已儲存草稿發佈為新的正式版本?",title:"即時看板",empty:"讓 Assistant 建立看板,或匯入看板定義。",import:"匯入定義",save:"儲存",cancel:"取消",refresh:"重新整理",apply:"套用篩選",loading:"載入中…",saved:"已儲存",refreshed:"已更新",definition:"看板定義",sources:"可用資料來源",version:"版本",partial:"結果不完整,請縮小篩選範圍以取得全部資料。",select:"選擇看板",error:"操作失敗,請檢查存取權限和查詢定義。",all:"全部",edit:"編輯工作草稿",history:"版本歷史",search:"搜尋看板…",noResults:"找不到符合的看板。",autoRefresh:"自動重新整理",off:"關閉",seconds30:"每 30 秒",minute1:"每分鐘",deleteDashboard:"刪除看板",deleteNamedDashboard:"刪除「{{title}}」",confirmDeleteDashboard:"確定刪除「{{title}}」?看板將從清單移除,共享連結將失效。資料來源和工作區檔案會保留。",deleting:"正在刪除…"}},"en");function ug(r){return Go.setLocale(r),document.documentElement.lang=Go.getLocale(),Object.fromEntries(Object.keys(cg).map(t=>[t,Go.t(t)]))}const JC={scripts:["https://cdn.tailwindcss.com","https://cdn.jsdelivr.net","https://cdnjs.cloudflare.com","https://unpkg.com"],styles:["https://cdn.jsdelivr.net","https://cdnjs.cloudflare.com","https://unpkg.com","https://fonts.googleapis.com"],fonts:["https://cdn.jsdelivr.net","https://cdnjs.cloudflare.com","https://unpkg.com","https://fonts.gstatic.com"]};function e_(r,t){return zC(r,{...t,networkPolicy:JC})}const t_=xe({success:Qe(!0),data:xe({schema:Qe("xpert.analytics.dataset"),datasetId:te(),fields:nt(xe({id:te()}).passthrough()),rows:nt(mr(Bn([te(),mt(),Tt(),hr()]))),completeness:xe({truncated:Tt()}).passthrough(),freshness:xe({sourceFetchedAt:te()}).passthrough(),provenance:xe({executionId:te()}).passthrough()}).passthrough()}),n_=m.forwardRef(function(t,o){const i=m.useRef(null),a=m.useRef(null),l=m.useRef(t);return l.current=t,m.useImperativeHandle(o,()=>({refresh(){a.current?.refresh()}}),[]),m.useEffect(()=>{const u=i.current;if(!u||!t.manifest.presentation)return;const d=t.manifest;let h;try{h=tg(t.dependencies,d.presentation?.dependencies??[])}catch{l.current.onError("DOCUMENT_DEPENDENCY_INTEGRITY_FAILED"),l.current.onBusy(!1);return}const g=e_(u,{html:t.manifest.presentation.html,dependencies:h,context:{bindingIds:d.bindings.map(v=>v.id),defaults:Object.fromEntries(d.controls.filter(v=>v.defaultValue!==void 0).map(v=>[v.controlId,v.defaultValue??null])),locale:document.documentElement.lang||"en-US",theme:document.documentElement.classList.contains("dark")?"dark":"light"},query:async v=>t_.parse(await tn("executeAction",{actionKey:"query-binding",input:{artifactId:t.artifactId,versionId:t.versionId,draftRevision:t.draftRevision,bindingId:v.bindingId,controls:v.controls}})).data,onBusy:v=>l.current.onBusy(v),onError:v=>l.current.onError(v),onResult:v=>l.current.onResult({partial:v.completeness.truncated,fetchedAt:v.freshness.sourceFetchedAt})});return a.current=g,()=>{g.dispose(),a.current=null}},[t.artifactId,t.versionId,t.draftRevision]),m.createElement("iframe",{ref:i,title:t.manifest.title,sandbox:"allow-scripts",className:"h-full w-full border-0"})});function r_({items:r,value:t,disabled:o,label:i,searchLabel:a,emptyLabel:l,deleteLabel:u,onChange:d,onDelete:h}){const[g,v]=m.useState(!1),[y,S]=m.useState(""),b=r.filter(R=>`${R.title??""} ${R.artifactId}`.toLocaleLowerCase().includes(y.trim().toLocaleLowerCase())),w=m.useId(),_=r.find(R=>R.artifactId===t),k=_?.title??_?.artifactId??i;return m.createElement(Wm,{open:g,onOpenChange:R=>{v(R),R||S("")}},m.createElement(Km,{role:"combobox","aria-label":i,"aria-expanded":g,"aria-controls":g?w:void 0,"aria-haspopup":"listbox",disabled:o,className:Ke(hu({variant:"outline"}),"dashboard-picker justify-between font-normal"),title:k},m.createElement("span",{className:"truncate"},k),m.createElement(tc,{className:"shrink-0 opacity-50"})),m.createElement(Zm,{align:"start",className:"dashboard-picker-menu p-0"},m.createElement(pC,{shouldFilter:!1},m.createElement(hC,{value:y,onValueChange:S,"aria-label":a,placeholder:a}),m.createElement(mC,{id:w,"aria-label":i},m.createElement(gC,null,l),b.map(R=>m.createElement("div",{key:R.artifactId,className:"flex items-center gap-1"},m.createElement(vC,{value:R.artifactId,className:"min-w-0 flex-1",disabled:o,keywords:[R.title??R.artifactId],"data-checked":R.artifactId===t,onSelect:()=>{v(!1),S(""),R.artifactId!==t&&d(R.artifactId)}},m.createElement("span",{className:"min-w-0 truncate",title:R.title??R.artifactId},R.title??R.artifactId)),R.canDelete&&m.createElement(pt,{variant:"ghost",size:"icon",disabled:o,"aria-label":u(R.title??R.artifactId),title:u(R.title??R.artifactId),onKeyDown:D=>D.stopPropagation(),onClick:()=>{v(!1),S(""),h(R.artifactId)}},m.createElement(T0,{"aria-hidden":"true"}))))))))}const o_=xe({published:xe({versionId:te(),versionNumber:mt(),title:te().nullish()}).nullable(),issues:nt(xe({code:te(),bindingId:te().optional()})),link:xe({status:te(),versionMode:Hn(["latest","version"]),versionId:te().nullish(),url:te().url().optional()}).nullable()}),i_=xe({success:Qe(!0),data:o_});function s_({artifactId:r,versionId:t,versions:o,t:i,onClose:a}){const[l,u]=m.useState(null),[d,h]=m.useState("latest"),[g,v]=m.useState(t??o[0]?.versionId??""),[y,S]=m.useState(!1),[b,w]=m.useState(""),[_,k]=m.useState(!1),R=m.useRef(null),D=m.useRef(0),T=m.useRef(!1);async function O(j){const Y=++D.current;S(!0),w(""),k(!1);try{const ce=i_.parse(await tn("executeAction",{actionKey:j,input:{artifactId:r,...j==="share"?{versionMode:d}:{},...j!=="revoke-share"&&d==="version"&&g?{versionId:g}:{}}})).data;Y===D.current&&(u(ce),T.current||(T.current=!0,ce.link?.status==="active"&&(h(ce.link.versionMode),ce.link.versionId&&v(ce.link.versionId))))}catch{Y===D.current&&w(i.error)}finally{Y===D.current&&S(!1)}}m.useEffect(()=>(O("share-status"),()=>{++D.current}),[r,d,g]);const V=l?.link?.status==="active"?l.link:null,L=V&&V.versionMode===d&&(d==="latest"||V.versionId===g),B=j=>j==="DASHBOARD_PUBLISH_BEFORE_SHARING"?i.publishBeforeShare:j==="WORKSPACE_SCRIPT_PRIVATE_DEPENDENCIES"||j==="DASHBOARD_PRIVATE_DEPENDENCY"?i.privateDependencies:i.sourceUnavailable;return m.createElement(tC,{open:!0,onOpenChange:j=>{!j&&!y&&a()}},m.createElement(oC,null,m.createElement(iC,null,m.createElement(aC,null,i.share),m.createElement(lC,null,i.shareHint)),m.createElement("div",{className:"grid gap-4 py-2"},m.createElement("label",{className:"grid gap-2 text-sm"},i.shareVersion,m.createElement(Ho,{value:d,disabled:y,onValueChange:j=>h(j==="version"?"version":"latest")},m.createElement(Ko,{"aria-label":i.shareVersion},m.createElement(Wo,null)),m.createElement(Zo,null,m.createElement(fn,{value:"latest"},i.shareLatest),m.createElement(fn,{value:"version"},i.shareFixed)))),d==="version"&&m.createElement(Ho,{value:g,disabled:y,onValueChange:v},m.createElement(Ko,{"aria-label":i.version},m.createElement(Wo,{placeholder:i.version})),m.createElement(Zo,null,o.filter(j=>j.versionId).map(j=>m.createElement(fn,{key:j.versionId,value:j.versionId},i.version," ",j.versionNumber)))),l?.published&&m.createElement("p",{className:"text-sm text-muted-foreground"},l.published.title," · ",i.version," ",l.published.versionNumber),!!l?.issues.length&&m.createElement("ul",{className:"grid gap-2 text-sm text-destructive",role:"alert"},l.issues.map((j,Y)=>m.createElement("li",{key:Y},B(j.code),j.bindingId?` (${j.bindingId})`:""))),m.createElement("p",{className:"text-xs text-muted-foreground"},i.sharePermissions),V?.url&&m.createElement("div",{className:"grid gap-2"},m.createElement("label",{htmlFor:"dashboard-share-url",className:"text-sm"},i.shareLink),m.createElement(Hm,{id:"dashboard-share-url",ref:R,readOnly:!0,value:V.url,onFocus:j=>j.target.select()}),m.createElement("div",{className:"flex gap-2"},m.createElement(pt,{variant:"outline",onClick:()=>{R.current?.focus(),R.current?.select(),k(document.execCommand("copy"))}},_?i.copied:i.copyLink),m.createElement(pt,{variant:"outline",onClick:async()=>{if(V.url){w("");try{xe({success:Qe(!0)}).parse(await tn("invokeClientCommand",{commandKey:"artifact.presentation.open",payload:{url:V.url}}))}catch{w(i.error)}}}},i.openShared))),b&&m.createElement("p",{role:"alert",className:"text-sm text-destructive"},b)),m.createElement(sC,null,V&&m.createElement(pt,{variant:"outline",disabled:y,onClick:()=>{O("revoke-share")}},i.revokeShare),m.createElement(pt,{variant:"outline",disabled:y,onClick:a},i.cancel),m.createElement(pt,{disabled:y||!l||!!l.issues.length||!!L,onClick:()=>{O("share")}},V?i.updateShare:i.enableShare))))}function a_({children:r,busy:t,t:o}){const[i,a]=m.useState(!1),l=m.useRef(!1),u=m.useRef(null),d=m.useRef(!1),h=m.useRef(),g=()=>{clearTimeout(h.current)},v=b=>{g(),b||(l.current=!1),a(b)},y=b=>{b.pointerType==="mouse"&&(g(),a(!0))},S=b=>{b.pointerType!=="mouse"||l.current||(g(),h.current=setTimeout(()=>{l.current||a(!1)},180))};return m.useEffect(()=>()=>clearTimeout(h.current),[]),m.useEffect(()=>{if(!i)return;let b;const w=()=>{b=setTimeout(()=>{document.activeElement instanceof HTMLIFrameElement&&v(!1)},0)};return window.addEventListener("blur",w),()=>{window.removeEventListener("blur",w),clearTimeout(b)}},[i]),m.createElement(Wm,{open:i,onOpenChange:v},m.createElement("div",{className:"viewer-controls-trigger"},m.createElement(Km,{asChild:!0},m.createElement("button",{ref:u,type:"button",className:Ke(hu({variant:"outline",size:"icon"}),"viewer-controls-button"),"aria-label":o.viewerControls,title:o.viewerControls,onPointerEnter:y,onPointerLeave:S,onClick:b=>{b.preventDefault(),g(),l.current?v(!1):(l.current=!0,a(!0))}},t?m.createElement(nc,{className:"motion-safe:animate-spin","aria-hidden":"true"}):m.createElement(R0,{"aria-hidden":"true"}),t&&m.createElement("span",{role:"status",className:"sr-only"},o.loading)))),m.createElement(Zm,{align:"end",side:"bottom",sideOffset:8,collisionPadding:12,"aria-label":o.viewerControls,className:"viewer-controls-panel w-[min(44rem,calc(100vw-24px))] gap-0 p-0",onPointerEnter:y,onPointerLeave:S,onPointerDownCapture:()=>{l.current=!0},onFocusCapture:()=>{l.current=!0},onOpenAutoFocus:b=>{l.current||b.preventDefault()},onEscapeKeyDown:()=>{d.current=!0},onCloseAutoFocus:b=>{b.preventDefault(),d.current&&u.current?.focus({preventScroll:!0}),d.current=!1}},r,m.createElement(pt,{variant:"ghost",size:"icon",className:"viewer-controls-close","aria-label":o.hideViewerControls,title:o.hideViewerControls,onClick:()=>{d.current=!0,v(!1)}},m.createElement(op,{"aria-hidden":"true"}))))}FC(document);const zt=window.__DASHBOARD_READ_ONLY__===!0,Pa=xe({success:Qe(!0),data:Jr()}),l_=xe({payload:Jr(),failures:nt(xe({bindingId:te(),datasetId:te(),reason:Qe("unavailable")})).default([]),datasets:nt(xe({completeness:xe({truncated:Tt()}),freshness:xe({sourceFetchedAt:te()})}))});function c_(){const[r,t]=m.useState(()=>ug("en-US")),[o,i]=m.useState([]),[a,l]=m.useState([]),[u,d]=m.useState(null),[h,g]=m.useState([]),[v,y]=m.useState({}),[S,b]=m.useState(""),[w,_]=m.useState(!0),[k,R]=m.useState(""),[D,T]=m.useState(""),[O,V]=m.useState("off"),[L,B]=m.useState(null),[j,Y]=m.useState(null),[ce,Ce]=m.useState(""),[le,ue]=m.useState(!1),[se,be]=m.useState(null),[ae,oe]=m.useState(!1),[U,G]=m.useState([]),[z,I]=m.useState(!1),E=m.useRef(0),W=m.useRef(0),J=m.useRef(0),H=m.useRef(),re=m.useRef(),pe=m.useRef(),X=m.useRef(null),ne=m.useRef({dirty:!1,resourceId:""}),Te=L!==null&&L!==JSON.stringify(u?.manifest,null,2);ne.current={dirty:Te||w&&L!==null,resourceId:u?.artifactId??""};const $e=ie=>{u&&tn("invokeClientCommand",{commandKey:"workbench.content.status",payload:{resourceId:u.artifactId,title:u.title,dirty:ie}}).catch(()=>{})};m.useEffect(()=>{$e(Te||w&&L!==null)},[Te,w,L===null,u?.artifactId,u?.title]),m.useEffect(()=>QC(ie=>ie!==ne.current.resourceId||!ne.current.dirty),[]);function je(){H.current=void 0,b(""),G([]),d(null),B(null),g([]),I(!1),be(null),Y(null),Ce(""),y({}),T(""),oe(!1)}async function ze(ie,Ne){const Ye=E.current,Xe=++J.current,Be=HC.parse(await tn("requestData",{query:{parameters:ie?{artifactId:ie,...Ne?{versionId:Ne}:{}}:{}}})).meta;return Ye===E.current&&Xe===J.current&&(i(Be.dashboards),l(Be.sources),re.current=Be.navigationTarget),Be}async function ot(ie,Ne){const Ye=++E.current;if(!ie.versionId&&!ie.draftRevision)throw new Error("Missing saved definition");if(b(""),G([]),T(""),oe(!1),!ie.manifest.bindings.length)return;const Xe=l_.parse(Pa.parse(await tn("executeAction",{actionKey:"query",input:{artifactId:ie.artifactId,versionId:ie.versionId??void 0,...ie.isDraft?{draftRevision:ie.draftRevision}:{},controls:Ne}})).data);Ye===E.current&&(G(Xe.failures.map(Be=>Be.datasetId)),b(Xe.datasets.length?d_(Xe.payload):""),oe(Xe.datasets.some(Be=>Be.completeness.truncated)),T(Xe.datasets.map(Be=>Be.freshness.sourceFetchedAt).sort()[0]??""))}async function it(ie,Ne,Ye=!0){const Xe=++E.current;je(),H.current=ie;const Be=await ze(ie,Ne),Ft=Be.saved;if(Xe!==E.current)return;if(!Ft||!Ft.versionId&&!Ft.draftRevision)throw new Error("Dashboard is unavailable");const Pr=Object.fromEntries(Ft.manifest.controls.filter(Dn=>Dn.defaultValue!==void 0).map(Dn=>[Dn.controlId,Dn.defaultValue??null]));d(Ft),g(Be.versions??[]),y(Pr),T(""),oe(!1),!(!zt&&Ye&&(pe.current=yu({artifactId:ie,versionId:Ne}),await lg(Be.navigationTarget,ie,Ne),Xe!==E.current))&&(zt||await ag({artifactId:Ft.artifactId,versionId:Ft.versionId??void 0,draftRevision:Ft.draftRevision}),Xe===E.current&&!Ft.manifest.presentation&&Ft.manifest.bindings.length&&await ot(Ft,Pr))}async function St(ie){const Ne=++W.current;_(!0),R("");try{await ie()}catch(Ye){Ne===W.current&&R(Ye instanceof Error?Ye.message:r.error)}finally{Ne===W.current&&_(!1)}}const Tn=m.useRef({saved:u,controls:v,busy:w,editor:L,confirmDelete:j});Tn.current={saved:u,controls:v,busy:w,editor:L,confirmDelete:j},m.useEffect(()=>{if(O==="off")return;let ie=!1,Ne=!1;const Ye=async()=>{const Be=Tn.current;if(!(ie||!GC()||Ne||Be.busy||Be.confirmDelete||Be.editor!==null||!Be.saved?.manifest.bindings.length)){Ne=!0;try{Be.saved.manifest.presentation?X.current?.refresh():await ot(Be.saved,Be.controls)}catch{ie||R(r.error)}finally{Ne=!1}}},Xe=window.setInterval(()=>{Ye()},Number(O)*1e3);return document.addEventListener("visibilitychange",Ye),()=>{ie=!0,window.clearInterval(Xe),document.removeEventListener("visibilitychange",Ye)}},[O,u?.artifactId,r.error]);async function rr(){const ie=++E.current;je();const Ne=await ze();if(ie!==E.current)return;const Ye=[...Ne.dashboards].sort((Xe,Be)=>(Be.updatedAt??"").localeCompare(Xe.updatedAt??""))[0];Ye&&await it(Ye.artifactId,void 0,!1)}m.useEffect(()=>XC((ie,Ne)=>{t(ug(ie));const Ye=UC.safeParse(Ne??{});if(!Ye.success){++E.current,pe.current=void 0,je(),St(async()=>{throw new Error("DASHBOARD_NAVIGATION_INVALID")});return}const Xe=Ye.data,Be=yu(Xe);Be!==pe.current&&(pe.current=Be,St(()=>Xe.artifactId?it(Xe.artifactId,Xe.versionId,!1):rr()))},ie=>{St(()=>it(ie))}),[]);async function Hi(){const ie=Ra.parse(JSON.parse(L??"")),Ne=u?.manifest.id===ie.id?u.versionId??null:null,Ye=Bi.parse(Pa.parse(await tn("executeAction",{actionKey:"save",input:{manifest:ie,expectedVersionId:Ne,expectedRevision:u?.manifest.id===ie.id?u.draftRevision??0:0}})).data);await it(Ye.artifactId)}async function uo(){if(!se?.draftRevision)return;const ie=Bi.parse(Pa.parse(await tn("executeAction",{actionKey:"publish",input:{artifactId:se.artifactId,expectedRevision:se.draftRevision,expectedCurrentVersionId:se.baseVersionId??se.versionId??null,confirmed:!0}}).catch(Ne=>{throw Ne instanceof Error&&Ne.message==="DASHBOARD_PUBLISH_SHARE_BLOCKED"?(be(null),new Error(r.publishShareBlocked)):Ne})).data);be(null),await it(ie.artifactId,ie.versionId??void 0)}async function Rr(){const ie=j;if(!(le||!ie?.canDelete||!ie.draftRevision)){Ce(""),ue(!0);try{const Ne=xe({artifactId:Qe(ie.artifactId)}).parse(Pa.parse(await tn("executeAction",{actionKey:"delete",input:{artifactId:ie.artifactId,expectedRevision:ie.draftRevision,confirmed:!0}})).data);Y(null),i(Ye=>Ye.filter(Xe=>Xe.artifactId!==Ne.artifactId)),H.current===Ne.artifactId&&(++E.current,je(),pe.current=yu({artifactId:void 0,versionId:void 0}),await Promise.all([ag(null),lg(re.current)])),await ze()}catch(Ne){throw Ce(Ne instanceof Error?Ne.message:r.error),Ne}finally{ue(!1)}}}const Qo=m.createElement("header",{className:"dashboard-toolbar border-b"},m.createElement("h1",{className:"toolbar-title text-base font-semibold"},zt?u?.title??r.title:r.title),!zt&&m.createElement(r_,{items:o,value:u?.artifactId??"",disabled:w||le||L!==null,label:r.select,searchLabel:r.search,emptyLabel:r.noResults,deleteLabel:ie=>Go.t("deleteNamedDashboard",{title:ie}),onDelete:ie=>{Ce(""),Y(o.find(Ne=>Ne.artifactId===ie)??null)},onChange:ie=>{St(()=>it(ie))}}),zt&&u&&m.createElement("span",{className:"text-xs text-muted-foreground"},r.teamReadOnly," · ",r.version," ",u.versionNumber),m.createElement("span",{className:"toolbar-loading text-muted-foreground",role:"status",title:w?r.loading:void 0},w&&m.createElement(m.Fragment,null,m.createElement(nc,{className:"size-4 motion-safe:animate-spin","aria-hidden":"true"}),m.createElement("span",{className:"sr-only"},r.loading))),!zt&&u&&m.createElement(Ho,{value:u.isDraft?"draft":u.versionId??"draft",onValueChange:ie=>{St(()=>it(u.artifactId,ie==="draft"?void 0:ie))},disabled:w||L!==null},m.createElement(Ko,{className:"toolbar-version","aria-label":r.history},m.createElement(Wo,{placeholder:r.history})),m.createElement(Zo,null,m.createElement(fn,{value:"draft"},r.draft,u.isDraft?` · r${u.draftRevision}`:""),h.filter(ie=>ie.versionId).map(ie=>m.createElement(fn,{key:ie.versionId,value:ie.versionId},r.version," ",ie.versionNumber)))),u&&D&&m.createElement("time",{className:"toolbar-updated text-xs text-muted-foreground",dateTime:D,title:`${r.refreshed}: ${new Date(D).toLocaleString(document.documentElement.lang)}`},m.createElement("span",{className:"toolbar-full-date"},new Date(D).toLocaleString(document.documentElement.lang)),m.createElement("span",{className:"toolbar-short-date"},new Date(D).toLocaleTimeString(document.documentElement.lang))),m.createElement("div",{className:"toolbar-actions"},!zt&&u?.isDraft&&m.createElement(pt,{disabled:w||L!==null||!u.manifest.bindings.length,onClick:()=>be(u),"aria-label":r.publish,title:r.publish},m.createElement(ip,null),m.createElement("span",null,r.publish)),!zt&&u&&m.createElement(pt,{variant:"outline",disabled:w||L!==null,"aria-label":r.edit,title:r.edit,onClick:()=>{St(async()=>{const ie=await ze(u.artifactId);if(!ie.saved)throw new Error(r.error);d(ie.saved),g(ie.versions??[]),B(JSON.stringify(ie.saved.manifest,null,2))})}},m.createElement(P0,null),m.createElement("span",null,r.edit)),!zt&&m.createElement(pt,{variant:"outline",disabled:w||L!==null,"aria-label":r.import,title:r.import,onClick:()=>B("")},m.createElement(I0,null),m.createElement("span",null,r.import)),!zt&&u&&m.createElement(pt,{variant:"outline",onClick:()=>I(!0),disabled:w,"aria-label":r.share,title:r.share},m.createElement(N0,null),m.createElement("span",null,r.share)),m.createElement(Ho,{value:O,onValueChange:V,disabled:!u||L!==null},m.createElement(Ko,{"aria-label":r.autoRefresh},m.createElement(Wo,null)),m.createElement(Zo,null,m.createElement(fn,{value:"off"},r.off),m.createElement(fn,{value:"30"},r.seconds30),m.createElement(fn,{value:"60"},r.minute1))),m.createElement(pt,{disabled:w||L!==null,"aria-label":r.refresh,title:r.refresh,onClick:()=>{u?.manifest.presentation?(R(""),X.current?.refresh()):St(async()=>{u?(await ze(),await ot(u,v)):await rr()})}},m.createElement(nc,null),m.createElement("span",null,r.refresh)))),Wi=u&&!u.manifest.presentation&&!!u.manifest.controls.length&&m.createElement("section",{className:"flex flex-wrap items-end gap-3 border-b px-4 py-3"},u.manifest.controls.map(ie=>m.createElement(u_,{key:ie.controlId,control:ie,value:v[ie.controlId]??null,disabled:w,onChange:Ne=>y(Ye=>({...Ye,[ie.controlId]:Ne}))})),m.createElement(pt,{type:"button",variant:"outline",disabled:w,onClick:()=>{St(()=>ot(u,v))}},r.apply));return m.createElement("main",{className:"dashboard-shell","data-read-only":zt||void 0},zt?m.createElement(a_,{busy:w,t:r},Qo,Wi):Qo,!zt&&z&&u&&m.createElement(s_,{artifactId:u.artifactId,versionId:u.versionId??void 0,versions:h,t:r,onClose:()=>I(!1)}),m.createElement(Mm,{open:!!j,onOpenChange:ie=>{!ie&&!w&&!le&&Y(null)}},m.createElement(zm,null,m.createElement(Vm,null,r.deleteDashboard),m.createElement(Um,null,Go.t("confirmDeleteDashboard",{title:j?.title??j?.artifactId??""})),m.createElement("p",{className:"break-all text-xs text-muted-foreground"},j?.artifactId),ce&&m.createElement("p",{role:"alert",className:"text-destructive"},ce),m.createElement(Fm,null,m.createElement(Bm,{disabled:w||le},r.cancel),m.createElement(pt,{variant:"destructive",disabled:w||le,onClick:()=>{St(Rr)}},le?r.deleting:r.deleteDashboard)))),m.createElement(Mm,{open:!!se,onOpenChange:ie=>{!ie&&!w&&be(null)}},m.createElement(zm,null,m.createElement(Vm,null,r.publish),m.createElement(Um,null,r.confirmPublish," ",se?.manifest.title," · r",se?.draftRevision),m.createElement(Fm,null,m.createElement(Bm,{disabled:w},r.cancel),m.createElement(pt,{disabled:w,onClick:()=>{St(uo)}},r.confirm)))),k&&m.createElement("div",{role:"alert",className:"border-b px-4 py-3 text-destructive"},k),L!==null?m.createElement("section",{className:"editor-panel p-4"},m.createElement("label",{className:"text-sm font-medium",htmlFor:"definition"},r.definition),m.createElement(cC,{id:"definition",className:"min-h-0 flex-1 font-mono text-xs",value:L,onChange:ie=>{ne.current.dirty=!0,$e(!0),B(ie.target.value)},disabled:w}),m.createElement("details",{className:"text-xs"},m.createElement("summary",null,r.sources),m.createElement("pre",{className:"max-h-32 overflow-auto"},JSON.stringify(a,null,2))),m.createElement("div",{className:"flex justify-end gap-2"},m.createElement(pt,{variant:"outline",onClick:()=>B(null),disabled:w},r.cancel),m.createElement(pt,{onClick:()=>{St(Hi)},disabled:w||!L.trim()},m.createElement(ip,null),r.save))):m.createElement(m.Fragment,null,!zt&&Wi,U.length>0&&m.createElement("div",{role:"alert",className:"px-4 py-2 text-sm"},m.createElement("p",null,r.bindingUnavailable),m.createElement("ul",null,U.map(ie=>m.createElement("li",{key:ie},[...u?.manifest.charts??[],...u?.manifest.tables??[]].filter(Ne=>Ne.datasetId===ie).map(Ne=>Ne.title).join(" · ")||ie)))),ae&&m.createElement("p",{role:"status",className:"px-4 py-2 text-sm"},r.partial),m.createElement("section",{className:"canvas-panel","aria-busy":w},!w&&!S&&!u?.manifest.presentation&&!k&&!U.length&&m.createElement("p",{className:"p-6 text-muted-foreground"},r.empty),u?.manifest.presentation&&m.createElement(n_,{ref:X,artifactId:u.artifactId,versionId:u.versionId??void 0,draftRevision:u.isDraft?u.draftRevision:void 0,manifest:u.manifest,dependencies:u.dependencies??[],onBusy:_,onError:R,onResult:ie=>{R(""),oe(ie.partial),T(ie.fetchedAt)}}),S&&m.createElement("iframe",{title:u?.manifest.title??r.title,sandbox:"allow-scripts",srcDoc:S,className:"h-full w-full border-0"}))))}function u_({control:r,value:t,onChange:o,disabled:i}){return m.createElement("div",{className:"grid gap-1.5"},m.createElement("label",{htmlFor:r.controlId,className:"text-xs text-muted-foreground"},r.label),r.allowedValues?m.createElement(Ho,{value:JSON.stringify(t),onValueChange:a=>o(Bn([te(),mt(),Tt(),hr()]).parse(JSON.parse(a))),disabled:i},m.createElement(Ko,{id:r.controlId,className:"w-44"},m.createElement(Wo,null)),m.createElement(Zo,null,r.allowedValues.map(a=>m.createElement(fn,{key:JSON.stringify(a),value:JSON.stringify(a)},String(a??"—"))))):r.type==="boolean"?m.createElement(Ho,{value:String(t),onValueChange:a=>o(a==="true"),disabled:i},m.createElement(Ko,{id:r.controlId,className:"w-44"},m.createElement(Wo,null)),m.createElement(Zo,null,m.createElement(fn,{value:"true"},"true"),m.createElement(fn,{value:"false"},"false"))):m.createElement(Hm,{id:r.controlId,className:"w-44",disabled:i,type:r.type==="date"?"date":r.type==="number"?"number":"text",value:t===null?"":String(t),onChange:a=>o(a.target.value===""?null:r.type==="number"?Number(a.target.value):a.target.value)}))}function d_(r){const t=i=>JSON.stringify(i).replace(/</g,"\\u003c").replace(/>/g,"\\u003e"),o=`<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'unsafe-inline'; style-src 'unsafe-inline'; img-src data: blob:; font-src data:; connect-src 'none'; frame-src 'none'; base-uri 'none'; form-action 'none'"><script>window.__DATASCIENCE_ARTIFACT_HOSTING__={mode:'site_creator',readOnly:true,controls:{edit:false,exportHostedLink:false,hostedLink:false}};window.xpertai={toolOutput:${t(r)},toolResponseMetadata:${t(r)},availableDisplayModes:['inline','fullscreen'],displayMode:'fullscreen',hostContext:{availableDisplayModes:['inline','fullscreen'],displayMode:'fullscreen'}};
|
|
252
252
|
window.__datascienceArtifactFetchShimInstalled=true;
|
|
253
|
-
window.fetch=async function(input,init){const path=new URL(typeof input==='string'?input:input.url,'https://renderer.invalid').pathname;const payload=window.xpertai.toolOutput;const data={'/api/manifest':payload.manifest,'/api/snapshot':payload.snapshot,'/api/package':{manifestPath:'live dashboard',snapshotPath:'live query'}};const ok=(!init||!init.method||init.method==='GET')&&Object.prototype.hasOwnProperty.call(data,path);return new Response(JSON.stringify(ok?data[path]:{error:'Unavailable in live read-only view'}),{status:ok?200:404,headers:{'Content-Type':'application/json'}})};<\/script>`;return window.__ANALYTICS_RENDERER_HTML__.replace(/<head(\s[^>]*)?>/i,i=>`${i}${o}`)}
|
|
253
|
+
window.fetch=async function(input,init){const path=new URL(typeof input==='string'?input:input.url,'https://renderer.invalid').pathname;const payload=window.xpertai.toolOutput;const data={'/api/manifest':payload.manifest,'/api/snapshot':payload.snapshot,'/api/package':{manifestPath:'live dashboard',snapshotPath:'live query'}};const ok=(!init||!init.method||init.method==='GET')&&Object.prototype.hasOwnProperty.call(data,path);return new Response(JSON.stringify(ok?data[path]:{error:'Unavailable in live read-only view'}),{status:ok?200:404,headers:{'Content-Type':'application/json'}})};<\/script>`;return window.__ANALYTICS_RENDERER_HTML__.replace(/<head(\s[^>]*)?>/i,i=>`${i}${o}`)}rx.createRoot(document.getElementById("root")).render(m.createElement(Yk,{i18n:Go},m.createElement(c_,null)))})();
|