@cyco77/pptb-fast-record-counter 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index-mfopL5m_.js +9 -0
- package/dist/index.html +1 -1
- package/npm-shrinkwrap.json +146 -98
- package/package.json +2 -2
- package/dist/assets/index-RYmw7atp.js +0 -9
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
(function(){"use strict";var Zu=document.createElement("style");Zu.textContent=`*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;line-height:1.6;min-height:100vh}#root{height:100vh}[role=grid] [role=rowgroup]:first-child{position:sticky;top:0;z-index:10;background-color:var(--colorNeutralBackground1, #ffffff)}
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(Zu);function ed(t,o){for(var n=0;n<o.length;n++){const s=o[n];if(typeof s!="string"&&!Array.isArray(s)){for(const l in s)if(l!=="default"&&!(l in t)){const c=Object.getOwnPropertyDescriptor(s,l);c&&Object.defineProperty(t,l,c.get?c:{enumerable:!0,get:()=>s[l]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}function td(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Rl={exports:{}},kn={},Fl={exports:{}},ke={};var rd;function a0(){if(rd)return ke;rd=1;var t=Symbol.for("react.element"),o=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.iterator;function w(F){return F===null||typeof F!="object"?null:(F=v&&F[v]||F["@@iterator"],typeof F=="function"?F:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,y={};function S(F,A,le){this.props=F,this.context=A,this.refs=y,this.updater=le||b}S.prototype.isReactComponent={},S.prototype.setState=function(F,A){if(typeof F!="object"&&typeof F!="function"&&F!=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,F,A,"setState")},S.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function N(){}N.prototype=S.prototype;function E(F,A,le){this.props=F,this.context=A,this.refs=y,this.updater=le||b}var B=E.prototype=new N;B.constructor=E,x(B,S.prototype),B.isPureReactComponent=!0;var T=Array.isArray,R=Object.prototype.hasOwnProperty,O={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function W(F,A,le){var be,Be={},Ne=null,De=null;if(A!=null)for(be in A.ref!==void 0&&(De=A.ref),A.key!==void 0&&(Ne=""+A.key),A)R.call(A,be)&&!L.hasOwnProperty(be)&&(Be[be]=A[be]);var ze=arguments.length-2;if(ze===1)Be.children=le;else if(1<ze){for(var Le=Array(ze),jt=0;jt<ze;jt++)Le[jt]=arguments[jt+2];Be.children=Le}if(F&&F.defaultProps)for(be in ze=F.defaultProps,ze)Be[be]===void 0&&(Be[be]=ze[be]);return{$$typeof:t,type:F,key:Ne,ref:De,props:Be,_owner:O.current}}function H(F,A){return{$$typeof:t,type:F.type,key:A,ref:F.ref,props:F.props,_owner:F._owner}}function Y(F){return typeof F=="object"&&F!==null&&F.$$typeof===t}function ce(F){var A={"=":"=0",":":"=2"};return"$"+F.replace(/[=:]/g,function(le){return A[le]})}var ee=/\/+/g;function M(F,A){return typeof F=="object"&&F!==null&&F.key!=null?ce(""+F.key):A.toString(36)}function J(F,A,le,be,Be){var Ne=typeof F;(Ne==="undefined"||Ne==="boolean")&&(F=null);var De=!1;if(F===null)De=!0;else switch(Ne){case"string":case"number":De=!0;break;case"object":switch(F.$$typeof){case t:case o:De=!0}}if(De)return De=F,Be=Be(De),F=be===""?"."+M(De,0):be,T(Be)?(le="",F!=null&&(le=F.replace(ee,"$&/")+"/"),J(Be,A,le,"",function(jt){return jt})):Be!=null&&(Y(Be)&&(Be=H(Be,le+(!Be.key||De&&De.key===Be.key?"":(""+Be.key).replace(ee,"$&/")+"/")+F)),A.push(Be)),1;if(De=0,be=be===""?".":be+":",T(F))for(var ze=0;ze<F.length;ze++){Ne=F[ze];var Le=be+M(Ne,ze);De+=J(Ne,A,le,Le,Be)}else if(Le=w(F),typeof Le=="function")for(F=Le.call(F),ze=0;!(Ne=F.next()).done;)Ne=Ne.value,Le=be+M(Ne,ze++),De+=J(Ne,A,le,Le,Be);else if(Ne==="object")throw A=String(F),Error("Objects are not valid as a React child (found: "+(A==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":A)+"). If you meant to render a collection of children, use an array instead.");return De}function ge(F,A,le){if(F==null)return F;var be=[],Be=0;return J(F,be,"","",function(Ne){return A.call(le,Ne,Be++)}),be}function ve(F){if(F._status===-1){var A=F._result;A=A(),A.then(function(le){(F._status===0||F._status===-1)&&(F._status=1,F._result=le)},function(le){(F._status===0||F._status===-1)&&(F._status=2,F._result=le)}),F._status===-1&&(F._status=0,F._result=A)}if(F._status===1)return F._result.default;throw F._result}var ue={current:null},U={transition:null},re={ReactCurrentDispatcher:ue,ReactCurrentBatchConfig:U,ReactCurrentOwner:O};function Z(){throw Error("act(...) is not supported in production builds of React.")}return ke.Children={map:ge,forEach:function(F,A,le){ge(F,function(){A.apply(this,arguments)},le)},count:function(F){var A=0;return ge(F,function(){A++}),A},toArray:function(F){return ge(F,function(A){return A})||[]},only:function(F){if(!Y(F))throw Error("React.Children.only expected to receive a single React element child.");return F}},ke.Component=S,ke.Fragment=n,ke.Profiler=l,ke.PureComponent=E,ke.StrictMode=s,ke.Suspense=p,ke.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=re,ke.act=Z,ke.cloneElement=function(F,A,le){if(F==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+F+".");var be=x({},F.props),Be=F.key,Ne=F.ref,De=F._owner;if(A!=null){if(A.ref!==void 0&&(Ne=A.ref,De=O.current),A.key!==void 0&&(Be=""+A.key),F.type&&F.type.defaultProps)var ze=F.type.defaultProps;for(Le in A)R.call(A,Le)&&!L.hasOwnProperty(Le)&&(be[Le]=A[Le]===void 0&&ze!==void 0?ze[Le]:A[Le])}var Le=arguments.length-2;if(Le===1)be.children=le;else if(1<Le){ze=Array(Le);for(var jt=0;jt<Le;jt++)ze[jt]=arguments[jt+2];be.children=ze}return{$$typeof:t,type:F.type,key:Be,ref:Ne,props:be,_owner:De}},ke.createContext=function(F){return F={$$typeof:u,_currentValue:F,_currentValue2:F,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},F.Provider={$$typeof:c,_context:F},F.Consumer=F},ke.createElement=W,ke.createFactory=function(F){var A=W.bind(null,F);return A.type=F,A},ke.createRef=function(){return{current:null}},ke.forwardRef=function(F){return{$$typeof:d,render:F}},ke.isValidElement=Y,ke.lazy=function(F){return{$$typeof:g,_payload:{_status:-1,_result:F},_init:ve}},ke.memo=function(F,A){return{$$typeof:m,type:F,compare:A===void 0?null:A}},ke.startTransition=function(F){var A=U.transition;U.transition={};try{F()}finally{U.transition=A}},ke.unstable_act=Z,ke.useCallback=function(F,A){return ue.current.useCallback(F,A)},ke.useContext=function(F){return ue.current.useContext(F)},ke.useDebugValue=function(){},ke.useDeferredValue=function(F){return ue.current.useDeferredValue(F)},ke.useEffect=function(F,A){return ue.current.useEffect(F,A)},ke.useId=function(){return ue.current.useId()},ke.useImperativeHandle=function(F,A,le){return ue.current.useImperativeHandle(F,A,le)},ke.useInsertionEffect=function(F,A){return ue.current.useInsertionEffect(F,A)},ke.useLayoutEffect=function(F,A){return ue.current.useLayoutEffect(F,A)},ke.useMemo=function(F,A){return ue.current.useMemo(F,A)},ke.useReducer=function(F,A,le){return ue.current.useReducer(F,A,le)},ke.useRef=function(F){return ue.current.useRef(F)},ke.useState=function(F){return ue.current.useState(F)},ke.useSyncExternalStore=function(F,A,le){return ue.current.useSyncExternalStore(F,A,le)},ke.useTransition=function(){return ue.current.useTransition()},ke.version="18.3.1",ke}var od;function Il(){return od||(od=1,Fl.exports=a0()),Fl.exports}var nd;function c0(){if(nd)return kn;nd=1;var t=Il(),o=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,l=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(d,p,m){var g,v={},w=null,b=null;m!==void 0&&(w=""+m),p.key!==void 0&&(w=""+p.key),p.ref!==void 0&&(b=p.ref);for(g in p)s.call(p,g)&&!c.hasOwnProperty(g)&&(v[g]=p[g]);if(d&&d.defaultProps)for(g in p=d.defaultProps,p)v[g]===void 0&&(v[g]=p[g]);return{$$typeof:o,type:d,key:w,ref:b,props:v,_owner:l.current}}return kn.Fragment=n,kn.jsx=u,kn.jsxs=u,kn}var id;function u0(){return id||(id=1,Rl.exports=c0()),Rl.exports}var me=u0();const d0=ed({__proto__:null,default:td(me)},[me]);var _=Il();const Bi=td(_),Ni=ed({__proto__:null,default:Bi},[_]);var Ti={},Dl={exports:{}},xt={},jl={exports:{}},Ol={};var sd;function f0(){return sd||(sd=1,(function(t){function o(U,re){var Z=U.length;U.push(re);e:for(;0<Z;){var F=Z-1>>>1,A=U[F];if(0<l(A,re))U[F]=re,U[Z]=A,Z=F;else break e}}function n(U){return U.length===0?null:U[0]}function s(U){if(U.length===0)return null;var re=U[0],Z=U.pop();if(Z!==re){U[0]=Z;e:for(var F=0,A=U.length,le=A>>>1;F<le;){var be=2*(F+1)-1,Be=U[be],Ne=be+1,De=U[Ne];if(0>l(Be,Z))Ne<A&&0>l(De,Be)?(U[F]=De,U[Ne]=Z,F=Ne):(U[F]=Be,U[be]=Z,F=be);else if(Ne<A&&0>l(De,Z))U[F]=De,U[Ne]=Z,F=Ne;else break e}}return re}function l(U,re){var Z=U.sortIndex-re.sortIndex;return Z!==0?Z:U.id-re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var u=Date,d=u.now();t.unstable_now=function(){return u.now()-d}}var p=[],m=[],g=1,v=null,w=3,b=!1,x=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function B(U){for(var re=n(m);re!==null;){if(re.callback===null)s(m);else if(re.startTime<=U)s(m),re.sortIndex=re.expirationTime,o(p,re);else break;re=n(m)}}function T(U){if(y=!1,B(U),!x)if(n(p)!==null)x=!0,ve(R);else{var re=n(m);re!==null&&ue(T,re.startTime-U)}}function R(U,re){x=!1,y&&(y=!1,N(W),W=-1),b=!0;var Z=w;try{for(B(re),v=n(p);v!==null&&(!(v.expirationTime>re)||U&&!ce());){var F=v.callback;if(typeof F=="function"){v.callback=null,w=v.priorityLevel;var A=F(v.expirationTime<=re);re=t.unstable_now(),typeof A=="function"?v.callback=A:v===n(p)&&s(p),B(re)}else s(p);v=n(p)}if(v!==null)var le=!0;else{var be=n(m);be!==null&&ue(T,be.startTime-re),le=!1}return le}finally{v=null,w=Z,b=!1}}var O=!1,L=null,W=-1,H=5,Y=-1;function ce(){return!(t.unstable_now()-Y<H)}function ee(){if(L!==null){var U=t.unstable_now();Y=U;var re=!0;try{re=L(!0,U)}finally{re?M():(O=!1,L=null)}}else O=!1}var M;if(typeof E=="function")M=function(){E(ee)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,ge=J.port2;J.port1.onmessage=ee,M=function(){ge.postMessage(null)}}else M=function(){S(ee,0)};function ve(U){L=U,O||(O=!0,M())}function ue(U,re){W=S(function(){U(t.unstable_now())},re)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(U){U.callback=null},t.unstable_continueExecution=function(){x||b||(x=!0,ve(R))},t.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"):H=0<U?Math.floor(1e3/U):5},t.unstable_getCurrentPriorityLevel=function(){return w},t.unstable_getFirstCallbackNode=function(){return n(p)},t.unstable_next=function(U){switch(w){case 1:case 2:case 3:var re=3;break;default:re=w}var Z=w;w=re;try{return U()}finally{w=Z}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(U,re){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var Z=w;w=U;try{return re()}finally{w=Z}},t.unstable_scheduleCallback=function(U,re,Z){var F=t.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?F+Z:F):Z=F,U){case 1:var A=-1;break;case 2:A=250;break;case 5:A=1073741823;break;case 4:A=1e4;break;default:A=5e3}return A=Z+A,U={id:g++,callback:re,priorityLevel:U,startTime:Z,expirationTime:A,sortIndex:-1},Z>F?(U.sortIndex=Z,o(m,U),n(p)===null&&U===n(m)&&(y?(N(W),W=-1):y=!0,ue(T,Z-F))):(U.sortIndex=A,o(p,U),x||b||(x=!0,ve(R))),U},t.unstable_shouldYield=ce,t.unstable_wrapCallback=function(U){var re=w;return function(){var Z=w;w=re;try{return U.apply(this,arguments)}finally{w=Z}}}})(Ol)),Ol}var ld;function ad(){return ld||(ld=1,jl.exports=f0()),jl.exports}var cd;function p0(){if(cd)return xt;cd=1;var t=Il(),o=ad();function n(e){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;i<arguments.length;i++)r+="&args[]="+encodeURIComponent(arguments[i]);return"Minified React error #"+e+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,l={};function c(e,r){u(e,r),u(e+"Capture",r)}function u(e,r){for(l[e]=r,e=0;e<r.length;e++)s.add(r[e])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,m=/^[: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]*$/,g={},v={};function w(e){return p.call(v,e)?!0:p.call(g,e)?!1:m.test(e)?v[e]=!0:(g[e]=!0,!1)}function b(e,r,i,a){if(i!==null&&i.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return a?!1:i!==null?!i.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function x(e,r,i,a){if(r===null||typeof r>"u"||b(e,r,i,a))return!0;if(a)return!1;if(i!==null)switch(i.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function y(e,r,i,a,f,h,k){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=a,this.attributeNamespace=f,this.mustUseProperty=i,this.propertyName=e,this.type=r,this.sanitizeURL=h,this.removeEmptyString=k}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){S[e]=new y(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var r=e[0];S[r]=new y(r,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){S[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){S[e]=new y(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){S[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){S[e]=new y(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){S[e]=new y(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){S[e]=new y(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){S[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)});var N=/[\-:]([a-z])/g;function E(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 r=e.replace(N,E);S[r]=new y(r,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var r=e.replace(N,E);S[r]=new y(r,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var r=e.replace(N,E);S[r]=new y(r,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){S[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)}),S.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){S[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)});function B(e,r,i,a){var f=S.hasOwnProperty(r)?S[r]:null;(f!==null?f.type!==0:a||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(x(r,i,f,a)&&(i=null),a||f===null?w(r)&&(i===null?e.removeAttribute(r):e.setAttribute(r,""+i)):f.mustUseProperty?e[f.propertyName]=i===null?f.type===3?!1:"":i:(r=f.attributeName,a=f.attributeNamespace,i===null?e.removeAttribute(r):(f=f.type,i=f===3||f===4&&i===!0?"":""+i,a?e.setAttributeNS(a,r,i):e.setAttribute(r,i))))}var T=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,R=Symbol.for("react.element"),O=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),Y=Symbol.for("react.provider"),ce=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),ge=Symbol.for("react.memo"),ve=Symbol.for("react.lazy"),ue=Symbol.for("react.offscreen"),U=Symbol.iterator;function re(e){return e===null||typeof e!="object"?null:(e=U&&e[U]||e["@@iterator"],typeof e=="function"?e:null)}var Z=Object.assign,F;function A(e){if(F===void 0)try{throw Error()}catch(i){var r=i.stack.trim().match(/\n( *(at )?)/);F=r&&r[1]||""}return`
|
|
3
|
+
`+F+e}var le=!1;function be(e,r){if(!e||le)return"";le=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(r)if(r=function(){throw Error()},Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(r,[])}catch(j){var a=j}Reflect.construct(e,[],r)}else{try{r.call()}catch(j){a=j}e.call(r.prototype)}else{try{throw Error()}catch(j){a=j}e()}}catch(j){if(j&&a&&typeof j.stack=="string"){for(var f=j.stack.split(`
|
|
4
|
+
`),h=a.stack.split(`
|
|
5
|
+
`),k=f.length-1,C=h.length-1;1<=k&&0<=C&&f[k]!==h[C];)C--;for(;1<=k&&0<=C;k--,C--)if(f[k]!==h[C]){if(k!==1||C!==1)do if(k--,C--,0>C||f[k]!==h[C]){var z=`
|
|
6
|
+
`+f[k].replace(" at new "," at ");return e.displayName&&z.includes("<anonymous>")&&(z=z.replace("<anonymous>",e.displayName)),z}while(1<=k&&0<=C);break}}}finally{le=!1,Error.prepareStackTrace=i}return(e=e?e.displayName||e.name:"")?A(e):""}function Be(e){switch(e.tag){case 5:return A(e.type);case 16:return A("Lazy");case 13:return A("Suspense");case 19:return A("SuspenseList");case 0:case 2:case 15:return e=be(e.type,!1),e;case 11:return e=be(e.type.render,!1),e;case 1:return e=be(e.type,!0),e;default:return""}}function Ne(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 L:return"Fragment";case O:return"Portal";case H:return"Profiler";case W:return"StrictMode";case M:return"Suspense";case J:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ce:return(e.displayName||"Context")+".Consumer";case Y:return(e._context.displayName||"Context")+".Provider";case ee:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ge:return r=e.displayName||null,r!==null?r:Ne(e.type)||"Memo";case ve:r=e._payload,e=e._init;try{return Ne(e(r))}catch{}}return null}function De(e){var r=e.type;switch(e.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=r.render,e=e.displayName||e.name||"",r.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ne(r);case 8:return r===W?"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 r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function ze(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Le(e){var r=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function jt(e){var r=Le(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,r),a=""+e[r];if(!e.hasOwnProperty(r)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var f=i.get,h=i.set;return Object.defineProperty(e,r,{configurable:!0,get:function(){return f.call(this)},set:function(k){a=""+k,h.call(this,k)}}),Object.defineProperty(e,r,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(k){a=""+k},stopTracking:function(){e._valueTracker=null,delete e[r]}}}}function xs(e){e._valueTracker||(e._valueTracker=jt(e))}function pm(e){if(!e)return!1;var r=e._valueTracker;if(!r)return!0;var i=r.getValue(),a="";return e&&(a=Le(e)?e.checked?"true":"false":e.value),e=a,e!==i?(r.setValue(e),!0):!1}function _s(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 sc(e,r){var i=r.checked;return Z({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i??e._wrapperState.initialChecked})}function hm(e,r){var i=r.defaultValue==null?"":r.defaultValue,a=r.checked!=null?r.checked:r.defaultChecked;i=ze(r.value!=null?r.value:i),e._wrapperState={initialChecked:a,initialValue:i,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function mm(e,r){r=r.checked,r!=null&&B(e,"checked",r,!1)}function lc(e,r){mm(e,r);var i=ze(r.value),a=r.type;if(i!=null)a==="number"?(i===0&&e.value===""||e.value!=i)&&(e.value=""+i):e.value!==""+i&&(e.value=""+i);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}r.hasOwnProperty("value")?ac(e,r.type,i):r.hasOwnProperty("defaultValue")&&ac(e,r.type,ze(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(e.defaultChecked=!!r.defaultChecked)}function gm(e,r,i){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var a=r.type;if(!(a!=="submit"&&a!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+e._wrapperState.initialValue,i||r===e.value||(e.value=r),e.defaultValue=r}i=e.name,i!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,i!==""&&(e.name=i)}function ac(e,r,i){(r!=="number"||_s(e.ownerDocument)!==e)&&(i==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+i&&(e.defaultValue=""+i))}var qn=Array.isArray;function Xo(e,r,i,a){if(e=e.options,r){r={};for(var f=0;f<i.length;f++)r["$"+i[f]]=!0;for(i=0;i<e.length;i++)f=r.hasOwnProperty("$"+e[i].value),e[i].selected!==f&&(e[i].selected=f),f&&a&&(e[i].defaultSelected=!0)}else{for(i=""+ze(i),r=null,f=0;f<e.length;f++){if(e[f].value===i){e[f].selected=!0,a&&(e[f].defaultSelected=!0);return}r!==null||e[f].disabled||(r=e[f])}r!==null&&(r.selected=!0)}}function cc(e,r){if(r.dangerouslySetInnerHTML!=null)throw Error(n(91));return Z({},r,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function vm(e,r){var i=r.value;if(i==null){if(i=r.children,r=r.defaultValue,i!=null){if(r!=null)throw Error(n(92));if(qn(i)){if(1<i.length)throw Error(n(93));i=i[0]}r=i}r==null&&(r=""),i=r}e._wrapperState={initialValue:ze(i)}}function bm(e,r){var i=ze(r.value),a=ze(r.defaultValue);i!=null&&(i=""+i,i!==e.value&&(e.value=i),r.defaultValue==null&&e.defaultValue!==i&&(e.defaultValue=i)),a!=null&&(e.defaultValue=""+a)}function ym(e){var r=e.textContent;r===e._wrapperState.initialValue&&r!==""&&r!==null&&(e.value=r)}function wm(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 uc(e,r){return e==null||e==="http://www.w3.org/1999/xhtml"?wm(r):e==="http://www.w3.org/2000/svg"&&r==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ss,km=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(r,i,a,f){MSApp.execUnsafeLocalFunction(function(){return e(r,i,a,f)})}:e})(function(e,r){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=r;else{for(Ss=Ss||document.createElement("div"),Ss.innerHTML="<svg>"+r.valueOf().toString()+"</svg>",r=Ss.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;r.firstChild;)e.appendChild(r.firstChild)}});function Hn(e,r){if(r){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=r;return}}e.textContent=r}var Wn={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},_B=["Webkit","ms","Moz","O"];Object.keys(Wn).forEach(function(e){_B.forEach(function(r){r=r+e.charAt(0).toUpperCase()+e.substring(1),Wn[r]=Wn[e]})});function xm(e,r,i){return r==null||typeof r=="boolean"||r===""?"":i||typeof r!="number"||r===0||Wn.hasOwnProperty(e)&&Wn[e]?(""+r).trim():r+"px"}function _m(e,r){e=e.style;for(var i in r)if(r.hasOwnProperty(i)){var a=i.indexOf("--")===0,f=xm(i,r[i],a);i==="float"&&(i="cssFloat"),a?e.setProperty(i,f):e[i]=f}}var SB=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 dc(e,r){if(r){if(SB[e]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(n(137,e));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(n(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(n(61))}if(r.style!=null&&typeof r.style!="object")throw Error(n(62))}}function fc(e,r){if(e.indexOf("-")===-1)return typeof r.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 pc=null;function hc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mc=null,Qo=null,Yo=null;function Sm(e){if(e=di(e)){if(typeof mc!="function")throw Error(n(280));var r=e.stateNode;r&&(r=Gs(r),mc(e.stateNode,e.type,r))}}function Cm(e){Qo?Yo?Yo.push(e):Yo=[e]:Qo=e}function Bm(){if(Qo){var e=Qo,r=Yo;if(Yo=Qo=null,Sm(e),r)for(e=0;e<r.length;e++)Sm(r[e])}}function Nm(e,r){return e(r)}function Tm(){}var gc=!1;function Em(e,r,i){if(gc)return e(r,i);gc=!0;try{return Nm(e,r,i)}finally{gc=!1,(Qo!==null||Yo!==null)&&(Tm(),Bm())}}function $n(e,r){var i=e.stateNode;if(i===null)return null;var a=Gs(i);if(a===null)return null;i=a[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(n(231,r,typeof i));return i}var vc=!1;if(d)try{var Vn={};Object.defineProperty(Vn,"passive",{get:function(){vc=!0}}),window.addEventListener("test",Vn,Vn),window.removeEventListener("test",Vn,Vn)}catch{vc=!1}function CB(e,r,i,a,f,h,k,C,z){var j=Array.prototype.slice.call(arguments,3);try{r.apply(i,j)}catch(G){this.onError(G)}}var Un=!1,Cs=null,Bs=!1,bc=null,BB={onError:function(e){Un=!0,Cs=e}};function NB(e,r,i,a,f,h,k,C,z){Un=!1,Cs=null,CB.apply(BB,arguments)}function TB(e,r,i,a,f,h,k,C,z){if(NB.apply(this,arguments),Un){if(Un){var j=Cs;Un=!1,Cs=null}else throw Error(n(198));Bs||(Bs=!0,bc=j)}}function wo(e){var r=e,i=e;if(e.alternate)for(;r.return;)r=r.return;else{e=r;do r=e,(r.flags&4098)!==0&&(i=r.return),e=r.return;while(e)}return r.tag===3?i:null}function zm(e){if(e.tag===13){var r=e.memoizedState;if(r===null&&(e=e.alternate,e!==null&&(r=e.memoizedState)),r!==null)return r.dehydrated}return null}function Pm(e){if(wo(e)!==e)throw Error(n(188))}function EB(e){var r=e.alternate;if(!r){if(r=wo(e),r===null)throw Error(n(188));return r!==e?null:e}for(var i=e,a=r;;){var f=i.return;if(f===null)break;var h=f.alternate;if(h===null){if(a=f.return,a!==null){i=a;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===i)return Pm(f),e;if(h===a)return Pm(f),r;h=h.sibling}throw Error(n(188))}if(i.return!==a.return)i=f,a=h;else{for(var k=!1,C=f.child;C;){if(C===i){k=!0,i=f,a=h;break}if(C===a){k=!0,a=f,i=h;break}C=C.sibling}if(!k){for(C=h.child;C;){if(C===i){k=!0,i=h,a=f;break}if(C===a){k=!0,a=h,i=f;break}C=C.sibling}if(!k)throw Error(n(189))}}if(i.alternate!==a)throw Error(n(190))}if(i.tag!==3)throw Error(n(188));return i.stateNode.current===i?e:r}function Rm(e){return e=EB(e),e!==null?Fm(e):null}function Fm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var r=Fm(e);if(r!==null)return r;e=e.sibling}return null}var Im=o.unstable_scheduleCallback,Dm=o.unstable_cancelCallback,zB=o.unstable_shouldYield,PB=o.unstable_requestPaint,Ye=o.unstable_now,RB=o.unstable_getCurrentPriorityLevel,yc=o.unstable_ImmediatePriority,jm=o.unstable_UserBlockingPriority,Ns=o.unstable_NormalPriority,FB=o.unstable_LowPriority,Om=o.unstable_IdlePriority,Ts=null,wr=null;function IB(e){if(wr&&typeof wr.onCommitFiberRoot=="function")try{wr.onCommitFiberRoot(Ts,e,void 0,(e.current.flags&128)===128)}catch{}}var sr=Math.clz32?Math.clz32:OB,DB=Math.log,jB=Math.LN2;function OB(e){return e>>>=0,e===0?32:31-(DB(e)/jB|0)|0}var Es=64,zs=4194304;function Gn(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 Ps(e,r){var i=e.pendingLanes;if(i===0)return 0;var a=0,f=e.suspendedLanes,h=e.pingedLanes,k=i&268435455;if(k!==0){var C=k&~f;C!==0?a=Gn(C):(h&=k,h!==0&&(a=Gn(h)))}else k=i&~f,k!==0?a=Gn(k):h!==0&&(a=Gn(h));if(a===0)return 0;if(r!==0&&r!==a&&(r&f)===0&&(f=a&-a,h=r&-r,f>=h||f===16&&(h&4194240)!==0))return r;if((a&4)!==0&&(a|=i&16),r=e.entangledLanes,r!==0)for(e=e.entanglements,r&=a;0<r;)i=31-sr(r),f=1<<i,a|=e[i],r&=~f;return a}function AB(e,r){switch(e){case 1:case 2:case 4:return r+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 r+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 LB(e,r){for(var i=e.suspendedLanes,a=e.pingedLanes,f=e.expirationTimes,h=e.pendingLanes;0<h;){var k=31-sr(h),C=1<<k,z=f[k];z===-1?((C&i)===0||(C&a)!==0)&&(f[k]=AB(C,r)):z<=r&&(e.expiredLanes|=C),h&=~C}}function wc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Am(){var e=Es;return Es<<=1,(Es&4194240)===0&&(Es=64),e}function kc(e){for(var r=[],i=0;31>i;i++)r.push(e);return r}function Kn(e,r,i){e.pendingLanes|=r,r!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,r=31-sr(r),e[r]=i}function MB(e,r){var i=e.pendingLanes&~r;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=r,e.mutableReadLanes&=r,e.entangledLanes&=r,r=e.entanglements;var a=e.eventTimes;for(e=e.expirationTimes;0<i;){var f=31-sr(i),h=1<<f;r[f]=0,a[f]=-1,e[f]=-1,i&=~h}}function xc(e,r){var i=e.entangledLanes|=r;for(e=e.entanglements;i;){var a=31-sr(i),f=1<<a;f&r|e[a]&r&&(e[a]|=r),i&=~f}}var Pe=0;function Lm(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Mm,_c,qm,Hm,Wm,Sc=!1,Rs=[],Qr=null,Yr=null,Jr=null,Xn=new Map,Qn=new Map,Zr=[],qB="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 $m(e,r){switch(e){case"focusin":case"focusout":Qr=null;break;case"dragenter":case"dragleave":Yr=null;break;case"mouseover":case"mouseout":Jr=null;break;case"pointerover":case"pointerout":Xn.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qn.delete(r.pointerId)}}function Yn(e,r,i,a,f,h){return e===null||e.nativeEvent!==h?(e={blockedOn:r,domEventName:i,eventSystemFlags:a,nativeEvent:h,targetContainers:[f]},r!==null&&(r=di(r),r!==null&&_c(r)),e):(e.eventSystemFlags|=a,r=e.targetContainers,f!==null&&r.indexOf(f)===-1&&r.push(f),e)}function HB(e,r,i,a,f){switch(r){case"focusin":return Qr=Yn(Qr,e,r,i,a,f),!0;case"dragenter":return Yr=Yn(Yr,e,r,i,a,f),!0;case"mouseover":return Jr=Yn(Jr,e,r,i,a,f),!0;case"pointerover":var h=f.pointerId;return Xn.set(h,Yn(Xn.get(h)||null,e,r,i,a,f)),!0;case"gotpointercapture":return h=f.pointerId,Qn.set(h,Yn(Qn.get(h)||null,e,r,i,a,f)),!0}return!1}function Vm(e){var r=ko(e.target);if(r!==null){var i=wo(r);if(i!==null){if(r=i.tag,r===13){if(r=zm(i),r!==null){e.blockedOn=r,Wm(e.priority,function(){qm(i)});return}}else if(r===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Fs(e){if(e.blockedOn!==null)return!1;for(var r=e.targetContainers;0<r.length;){var i=Bc(e.domEventName,e.eventSystemFlags,r[0],e.nativeEvent);if(i===null){i=e.nativeEvent;var a=new i.constructor(i.type,i);pc=a,i.target.dispatchEvent(a),pc=null}else return r=di(i),r!==null&&_c(r),e.blockedOn=i,!1;r.shift()}return!0}function Um(e,r,i){Fs(e)&&i.delete(r)}function WB(){Sc=!1,Qr!==null&&Fs(Qr)&&(Qr=null),Yr!==null&&Fs(Yr)&&(Yr=null),Jr!==null&&Fs(Jr)&&(Jr=null),Xn.forEach(Um),Qn.forEach(Um)}function Jn(e,r){e.blockedOn===r&&(e.blockedOn=null,Sc||(Sc=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,WB)))}function Zn(e){function r(f){return Jn(f,e)}if(0<Rs.length){Jn(Rs[0],e);for(var i=1;i<Rs.length;i++){var a=Rs[i];a.blockedOn===e&&(a.blockedOn=null)}}for(Qr!==null&&Jn(Qr,e),Yr!==null&&Jn(Yr,e),Jr!==null&&Jn(Jr,e),Xn.forEach(r),Qn.forEach(r),i=0;i<Zr.length;i++)a=Zr[i],a.blockedOn===e&&(a.blockedOn=null);for(;0<Zr.length&&(i=Zr[0],i.blockedOn===null);)Vm(i),i.blockedOn===null&&Zr.shift()}var Jo=T.ReactCurrentBatchConfig,Is=!0;function $B(e,r,i,a){var f=Pe,h=Jo.transition;Jo.transition=null;try{Pe=1,Cc(e,r,i,a)}finally{Pe=f,Jo.transition=h}}function VB(e,r,i,a){var f=Pe,h=Jo.transition;Jo.transition=null;try{Pe=4,Cc(e,r,i,a)}finally{Pe=f,Jo.transition=h}}function Cc(e,r,i,a){if(Is){var f=Bc(e,r,i,a);if(f===null)Wc(e,r,a,Ds,i),$m(e,a);else if(HB(f,e,r,i,a))a.stopPropagation();else if($m(e,a),r&4&&-1<qB.indexOf(e)){for(;f!==null;){var h=di(f);if(h!==null&&Mm(h),h=Bc(e,r,i,a),h===null&&Wc(e,r,a,Ds,i),h===f)break;f=h}f!==null&&a.stopPropagation()}else Wc(e,r,a,null,i)}}var Ds=null;function Bc(e,r,i,a){if(Ds=null,e=hc(a),e=ko(e),e!==null)if(r=wo(e),r===null)e=null;else if(i=r.tag,i===13){if(e=zm(r),e!==null)return e;e=null}else if(i===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;e=null}else r!==e&&(e=null);return Ds=e,null}function Gm(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(RB()){case yc:return 1;case jm:return 4;case Ns:case FB:return 16;case Om:return 536870912;default:return 16}default:return 16}}var eo=null,Nc=null,js=null;function Km(){if(js)return js;var e,r=Nc,i=r.length,a,f="value"in eo?eo.value:eo.textContent,h=f.length;for(e=0;e<i&&r[e]===f[e];e++);var k=i-e;for(a=1;a<=k&&r[i-a]===f[h-a];a++);return js=f.slice(e,1<a?1-a:void 0)}function Os(e){var r=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&r===13&&(e=13)):e=r,e===10&&(e=13),32<=e||e===13?e:0}function As(){return!0}function Xm(){return!1}function Ot(e){function r(i,a,f,h,k){this._reactName=i,this._targetInst=f,this.type=a,this.nativeEvent=h,this.target=k,this.currentTarget=null;for(var C in e)e.hasOwnProperty(C)&&(i=e[C],this[C]=i?i(h):h[C]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?As:Xm,this.isPropagationStopped=Xm,this}return Z(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=As)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=As)},persist:function(){},isPersistent:As}),r}var Zo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tc=Ot(Zo),ei=Z({},Zo,{view:0,detail:0}),UB=Ot(ei),Ec,zc,ti,Ls=Z({},ei,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rc,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!==ti&&(ti&&e.type==="mousemove"?(Ec=e.screenX-ti.screenX,zc=e.screenY-ti.screenY):zc=Ec=0,ti=e),Ec)},movementY:function(e){return"movementY"in e?e.movementY:zc}}),Qm=Ot(Ls),GB=Z({},Ls,{dataTransfer:0}),KB=Ot(GB),XB=Z({},ei,{relatedTarget:0}),Pc=Ot(XB),QB=Z({},Zo,{animationName:0,elapsedTime:0,pseudoElement:0}),YB=Ot(QB),JB=Z({},Zo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ZB=Ot(JB),e3=Z({},Zo,{data:0}),Ym=Ot(e3),t3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},r3={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"},o3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function n3(e){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(e):(e=o3[e])?!!r[e]:!1}function Rc(){return n3}var i3=Z({},ei,{key:function(e){if(e.key){var r=t3[e.key]||e.key;if(r!=="Unidentified")return r}return e.type==="keypress"?(e=Os(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?r3[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rc,charCode:function(e){return e.type==="keypress"?Os(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Os(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),s3=Ot(i3),l3=Z({},Ls,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jm=Ot(l3),a3=Z({},ei,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rc}),c3=Ot(a3),u3=Z({},Zo,{propertyName:0,elapsedTime:0,pseudoElement:0}),d3=Ot(u3),f3=Z({},Ls,{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}),p3=Ot(f3),h3=[9,13,27,32],Fc=d&&"CompositionEvent"in window,ri=null;d&&"documentMode"in document&&(ri=document.documentMode);var m3=d&&"TextEvent"in window&&!ri,Zm=d&&(!Fc||ri&&8<ri&&11>=ri),eg=" ",tg=!1;function rg(e,r){switch(e){case"keyup":return h3.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function og(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var en=!1;function g3(e,r){switch(e){case"compositionend":return og(r);case"keypress":return r.which!==32?null:(tg=!0,eg);case"textInput":return e=r.data,e===eg&&tg?null:e;default:return null}}function v3(e,r){if(en)return e==="compositionend"||!Fc&&rg(e,r)?(e=Km(),js=Nc=eo=null,en=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Zm&&r.locale!=="ko"?null:r.data;default:return null}}var b3={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 ng(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r==="input"?!!b3[e.type]:r==="textarea"}function ig(e,r,i,a){Cm(a),r=$s(r,"onChange"),0<r.length&&(i=new Tc("onChange","change",null,i,a),e.push({event:i,listeners:r}))}var oi=null,ni=null;function y3(e){_g(e,0)}function Ms(e){var r=sn(e);if(pm(r))return e}function w3(e,r){if(e==="change")return r}var sg=!1;if(d){var Ic;if(d){var Dc="oninput"in document;if(!Dc){var lg=document.createElement("div");lg.setAttribute("oninput","return;"),Dc=typeof lg.oninput=="function"}Ic=Dc}else Ic=!1;sg=Ic&&(!document.documentMode||9<document.documentMode)}function ag(){oi&&(oi.detachEvent("onpropertychange",cg),ni=oi=null)}function cg(e){if(e.propertyName==="value"&&Ms(ni)){var r=[];ig(r,ni,e,hc(e)),Em(y3,r)}}function k3(e,r,i){e==="focusin"?(ag(),oi=r,ni=i,oi.attachEvent("onpropertychange",cg)):e==="focusout"&&ag()}function x3(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ms(ni)}function _3(e,r){if(e==="click")return Ms(r)}function S3(e,r){if(e==="input"||e==="change")return Ms(r)}function C3(e,r){return e===r&&(e!==0||1/e===1/r)||e!==e&&r!==r}var lr=typeof Object.is=="function"?Object.is:C3;function ii(e,r){if(lr(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;var i=Object.keys(e),a=Object.keys(r);if(i.length!==a.length)return!1;for(a=0;a<i.length;a++){var f=i[a];if(!p.call(r,f)||!lr(e[f],r[f]))return!1}return!0}function ug(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dg(e,r){var i=ug(e);e=0;for(var a;i;){if(i.nodeType===3){if(a=e+i.textContent.length,e<=r&&a>=r)return{node:i,offset:r-e};e=a}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=ug(i)}}function fg(e,r){return e&&r?e===r?!0:e&&e.nodeType===3?!1:r&&r.nodeType===3?fg(e,r.parentNode):"contains"in e?e.contains(r):e.compareDocumentPosition?!!(e.compareDocumentPosition(r)&16):!1:!1}function pg(){for(var e=window,r=_s();r instanceof e.HTMLIFrameElement;){try{var i=typeof r.contentWindow.location.href=="string"}catch{i=!1}if(i)e=r.contentWindow;else break;r=_s(e.document)}return r}function jc(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r&&(r==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||r==="textarea"||e.contentEditable==="true")}function B3(e){var r=pg(),i=e.focusedElem,a=e.selectionRange;if(r!==i&&i&&i.ownerDocument&&fg(i.ownerDocument.documentElement,i)){if(a!==null&&jc(i)){if(r=a.start,e=a.end,e===void 0&&(e=r),"selectionStart"in i)i.selectionStart=r,i.selectionEnd=Math.min(e,i.value.length);else if(e=(r=i.ownerDocument||document)&&r.defaultView||window,e.getSelection){e=e.getSelection();var f=i.textContent.length,h=Math.min(a.start,f);a=a.end===void 0?h:Math.min(a.end,f),!e.extend&&h>a&&(f=a,a=h,h=f),f=dg(i,h);var k=dg(i,a);f&&k&&(e.rangeCount!==1||e.anchorNode!==f.node||e.anchorOffset!==f.offset||e.focusNode!==k.node||e.focusOffset!==k.offset)&&(r=r.createRange(),r.setStart(f.node,f.offset),e.removeAllRanges(),h>a?(e.addRange(r),e.extend(k.node,k.offset)):(r.setEnd(k.node,k.offset),e.addRange(r)))}}for(r=[],e=i;e=e.parentNode;)e.nodeType===1&&r.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<r.length;i++)e=r[i],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var N3=d&&"documentMode"in document&&11>=document.documentMode,tn=null,Oc=null,si=null,Ac=!1;function hg(e,r,i){var a=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Ac||tn==null||tn!==_s(a)||(a=tn,"selectionStart"in a&&jc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),si&&ii(si,a)||(si=a,a=$s(Oc,"onSelect"),0<a.length&&(r=new Tc("onSelect","select",null,r,i),e.push({event:r,listeners:a}),r.target=tn)))}function qs(e,r){var i={};return i[e.toLowerCase()]=r.toLowerCase(),i["Webkit"+e]="webkit"+r,i["Moz"+e]="moz"+r,i}var rn={animationend:qs("Animation","AnimationEnd"),animationiteration:qs("Animation","AnimationIteration"),animationstart:qs("Animation","AnimationStart"),transitionend:qs("Transition","TransitionEnd")},Lc={},mg={};d&&(mg=document.createElement("div").style,"AnimationEvent"in window||(delete rn.animationend.animation,delete rn.animationiteration.animation,delete rn.animationstart.animation),"TransitionEvent"in window||delete rn.transitionend.transition);function Hs(e){if(Lc[e])return Lc[e];if(!rn[e])return e;var r=rn[e],i;for(i in r)if(r.hasOwnProperty(i)&&i in mg)return Lc[e]=r[i];return e}var gg=Hs("animationend"),vg=Hs("animationiteration"),bg=Hs("animationstart"),yg=Hs("transitionend"),wg=new Map,kg="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 to(e,r){wg.set(e,r),c(r,[e])}for(var Mc=0;Mc<kg.length;Mc++){var qc=kg[Mc],T3=qc.toLowerCase(),E3=qc[0].toUpperCase()+qc.slice(1);to(T3,"on"+E3)}to(gg,"onAnimationEnd"),to(vg,"onAnimationIteration"),to(bg,"onAnimationStart"),to("dblclick","onDoubleClick"),to("focusin","onFocus"),to("focusout","onBlur"),to(yg,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var li="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(" "),z3=new Set("cancel close invalid load scroll toggle".split(" ").concat(li));function xg(e,r,i){var a=e.type||"unknown-event";e.currentTarget=i,TB(a,r,void 0,e),e.currentTarget=null}function _g(e,r){r=(r&4)!==0;for(var i=0;i<e.length;i++){var a=e[i],f=a.event;a=a.listeners;e:{var h=void 0;if(r)for(var k=a.length-1;0<=k;k--){var C=a[k],z=C.instance,j=C.currentTarget;if(C=C.listener,z!==h&&f.isPropagationStopped())break e;xg(f,C,j),h=z}else for(k=0;k<a.length;k++){if(C=a[k],z=C.instance,j=C.currentTarget,C=C.listener,z!==h&&f.isPropagationStopped())break e;xg(f,C,j),h=z}}}if(Bs)throw e=bc,Bs=!1,bc=null,e}function Oe(e,r){var i=r[Xc];i===void 0&&(i=r[Xc]=new Set);var a=e+"__bubble";i.has(a)||(Sg(r,e,2,!1),i.add(a))}function Hc(e,r,i){var a=0;r&&(a|=4),Sg(i,e,a,r)}var Ws="_reactListening"+Math.random().toString(36).slice(2);function ai(e){if(!e[Ws]){e[Ws]=!0,s.forEach(function(i){i!=="selectionchange"&&(z3.has(i)||Hc(i,!1,e),Hc(i,!0,e))});var r=e.nodeType===9?e:e.ownerDocument;r===null||r[Ws]||(r[Ws]=!0,Hc("selectionchange",!1,r))}}function Sg(e,r,i,a){switch(Gm(r)){case 1:var f=$B;break;case 4:f=VB;break;default:f=Cc}i=f.bind(null,r,i,e),f=void 0,!vc||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(f=!0),a?f!==void 0?e.addEventListener(r,i,{capture:!0,passive:f}):e.addEventListener(r,i,!0):f!==void 0?e.addEventListener(r,i,{passive:f}):e.addEventListener(r,i,!1)}function Wc(e,r,i,a,f){var h=a;if((r&1)===0&&(r&2)===0&&a!==null)e:for(;;){if(a===null)return;var k=a.tag;if(k===3||k===4){var C=a.stateNode.containerInfo;if(C===f||C.nodeType===8&&C.parentNode===f)break;if(k===4)for(k=a.return;k!==null;){var z=k.tag;if((z===3||z===4)&&(z=k.stateNode.containerInfo,z===f||z.nodeType===8&&z.parentNode===f))return;k=k.return}for(;C!==null;){if(k=ko(C),k===null)return;if(z=k.tag,z===5||z===6){a=h=k;continue e}C=C.parentNode}}a=a.return}Em(function(){var j=h,G=hc(i),K=[];e:{var $=wg.get(e);if($!==void 0){var te=Tc,ie=e;switch(e){case"keypress":if(Os(i)===0)break e;case"keydown":case"keyup":te=s3;break;case"focusin":ie="focus",te=Pc;break;case"focusout":ie="blur",te=Pc;break;case"beforeblur":case"afterblur":te=Pc;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":te=Qm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":te=KB;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":te=c3;break;case gg:case vg:case bg:te=YB;break;case yg:te=d3;break;case"scroll":te=UB;break;case"wheel":te=p3;break;case"copy":case"cut":case"paste":te=ZB;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":te=Jm}var se=(r&4)!==0,Je=!se&&e==="scroll",I=se?$!==null?$+"Capture":null:$;se=[];for(var P=j,D;P!==null;){D=P;var X=D.stateNode;if(D.tag===5&&X!==null&&(D=X,I!==null&&(X=$n(P,I),X!=null&&se.push(ci(P,X,D)))),Je)break;P=P.return}0<se.length&&($=new te($,ie,null,i,G),K.push({event:$,listeners:se}))}}if((r&7)===0){e:{if($=e==="mouseover"||e==="pointerover",te=e==="mouseout"||e==="pointerout",$&&i!==pc&&(ie=i.relatedTarget||i.fromElement)&&(ko(ie)||ie[Fr]))break e;if((te||$)&&($=G.window===G?G:($=G.ownerDocument)?$.defaultView||$.parentWindow:window,te?(ie=i.relatedTarget||i.toElement,te=j,ie=ie?ko(ie):null,ie!==null&&(Je=wo(ie),ie!==Je||ie.tag!==5&&ie.tag!==6)&&(ie=null)):(te=null,ie=j),te!==ie)){if(se=Qm,X="onMouseLeave",I="onMouseEnter",P="mouse",(e==="pointerout"||e==="pointerover")&&(se=Jm,X="onPointerLeave",I="onPointerEnter",P="pointer"),Je=te==null?$:sn(te),D=ie==null?$:sn(ie),$=new se(X,P+"leave",te,i,G),$.target=Je,$.relatedTarget=D,X=null,ko(G)===j&&(se=new se(I,P+"enter",ie,i,G),se.target=D,se.relatedTarget=Je,X=se),Je=X,te&&ie)t:{for(se=te,I=ie,P=0,D=se;D;D=on(D))P++;for(D=0,X=I;X;X=on(X))D++;for(;0<P-D;)se=on(se),P--;for(;0<D-P;)I=on(I),D--;for(;P--;){if(se===I||I!==null&&se===I.alternate)break t;se=on(se),I=on(I)}se=null}else se=null;te!==null&&Cg(K,$,te,se,!1),ie!==null&&Je!==null&&Cg(K,Je,ie,se,!0)}}e:{if($=j?sn(j):window,te=$.nodeName&&$.nodeName.toLowerCase(),te==="select"||te==="input"&&$.type==="file")var ae=w3;else if(ng($))if(sg)ae=S3;else{ae=x3;var pe=k3}else(te=$.nodeName)&&te.toLowerCase()==="input"&&($.type==="checkbox"||$.type==="radio")&&(ae=_3);if(ae&&(ae=ae(e,j))){ig(K,ae,i,G);break e}pe&&pe(e,$,j),e==="focusout"&&(pe=$._wrapperState)&&pe.controlled&&$.type==="number"&&ac($,"number",$.value)}switch(pe=j?sn(j):window,e){case"focusin":(ng(pe)||pe.contentEditable==="true")&&(tn=pe,Oc=j,si=null);break;case"focusout":si=Oc=tn=null;break;case"mousedown":Ac=!0;break;case"contextmenu":case"mouseup":case"dragend":Ac=!1,hg(K,i,G);break;case"selectionchange":if(N3)break;case"keydown":case"keyup":hg(K,i,G)}var he;if(Fc)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else en?rg(e,i)&&(ye="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(ye="onCompositionStart");ye&&(Zm&&i.locale!=="ko"&&(en||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&en&&(he=Km()):(eo=G,Nc="value"in eo?eo.value:eo.textContent,en=!0)),pe=$s(j,ye),0<pe.length&&(ye=new Ym(ye,e,null,i,G),K.push({event:ye,listeners:pe}),he?ye.data=he:(he=og(i),he!==null&&(ye.data=he)))),(he=m3?g3(e,i):v3(e,i))&&(j=$s(j,"onBeforeInput"),0<j.length&&(G=new Ym("onBeforeInput","beforeinput",null,i,G),K.push({event:G,listeners:j}),G.data=he))}_g(K,r)})}function ci(e,r,i){return{instance:e,listener:r,currentTarget:i}}function $s(e,r){for(var i=r+"Capture",a=[];e!==null;){var f=e,h=f.stateNode;f.tag===5&&h!==null&&(f=h,h=$n(e,i),h!=null&&a.unshift(ci(e,h,f)),h=$n(e,r),h!=null&&a.push(ci(e,h,f))),e=e.return}return a}function on(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Cg(e,r,i,a,f){for(var h=r._reactName,k=[];i!==null&&i!==a;){var C=i,z=C.alternate,j=C.stateNode;if(z!==null&&z===a)break;C.tag===5&&j!==null&&(C=j,f?(z=$n(i,h),z!=null&&k.unshift(ci(i,z,C))):f||(z=$n(i,h),z!=null&&k.push(ci(i,z,C)))),i=i.return}k.length!==0&&e.push({event:r,listeners:k})}var P3=/\r\n?/g,R3=/\u0000|\uFFFD/g;function Bg(e){return(typeof e=="string"?e:""+e).replace(P3,`
|
|
7
|
+
`).replace(R3,"")}function Vs(e,r,i){if(r=Bg(r),Bg(e)!==r&&i)throw Error(n(425))}function Us(){}var $c=null,Vc=null;function Uc(e,r){return e==="textarea"||e==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var Gc=typeof setTimeout=="function"?setTimeout:void 0,F3=typeof clearTimeout=="function"?clearTimeout:void 0,Ng=typeof Promise=="function"?Promise:void 0,I3=typeof queueMicrotask=="function"?queueMicrotask:typeof Ng<"u"?function(e){return Ng.resolve(null).then(e).catch(D3)}:Gc;function D3(e){setTimeout(function(){throw e})}function Kc(e,r){var i=r,a=0;do{var f=i.nextSibling;if(e.removeChild(i),f&&f.nodeType===8)if(i=f.data,i==="/$"){if(a===0){e.removeChild(f),Zn(r);return}a--}else i!=="$"&&i!=="$?"&&i!=="$!"||a++;i=f}while(i);Zn(r)}function ro(e){for(;e!=null;e=e.nextSibling){var r=e.nodeType;if(r===1||r===3)break;if(r===8){if(r=e.data,r==="$"||r==="$!"||r==="$?")break;if(r==="/$")return null}}return e}function Tg(e){e=e.previousSibling;for(var r=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"){if(r===0)return e;r--}else i==="/$"&&r++}e=e.previousSibling}return null}var nn=Math.random().toString(36).slice(2),kr="__reactFiber$"+nn,ui="__reactProps$"+nn,Fr="__reactContainer$"+nn,Xc="__reactEvents$"+nn,j3="__reactListeners$"+nn,O3="__reactHandles$"+nn;function ko(e){var r=e[kr];if(r)return r;for(var i=e.parentNode;i;){if(r=i[Fr]||i[kr]){if(i=r.alternate,r.child!==null||i!==null&&i.child!==null)for(e=Tg(e);e!==null;){if(i=e[kr])return i;e=Tg(e)}return r}e=i,i=e.parentNode}return null}function di(e){return e=e[kr]||e[Fr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function sn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(n(33))}function Gs(e){return e[ui]||null}var Qc=[],ln=-1;function oo(e){return{current:e}}function Ae(e){0>ln||(e.current=Qc[ln],Qc[ln]=null,ln--)}function je(e,r){ln++,Qc[ln]=e.current,e.current=r}var no={},mt=oo(no),Tt=oo(!1),xo=no;function an(e,r){var i=e.type.contextTypes;if(!i)return no;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===r)return a.__reactInternalMemoizedMaskedChildContext;var f={},h;for(h in i)f[h]=r[h];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=f),f}function Et(e){return e=e.childContextTypes,e!=null}function Ks(){Ae(Tt),Ae(mt)}function Eg(e,r,i){if(mt.current!==no)throw Error(n(168));je(mt,r),je(Tt,i)}function zg(e,r,i){var a=e.stateNode;if(r=r.childContextTypes,typeof a.getChildContext!="function")return i;a=a.getChildContext();for(var f in a)if(!(f in r))throw Error(n(108,De(e)||"Unknown",f));return Z({},i,a)}function Xs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||no,xo=mt.current,je(mt,e),je(Tt,Tt.current),!0}function Pg(e,r,i){var a=e.stateNode;if(!a)throw Error(n(169));i?(e=zg(e,r,xo),a.__reactInternalMemoizedMergedChildContext=e,Ae(Tt),Ae(mt),je(mt,e)):Ae(Tt),je(Tt,i)}var Ir=null,Qs=!1,Yc=!1;function Rg(e){Ir===null?Ir=[e]:Ir.push(e)}function A3(e){Qs=!0,Rg(e)}function io(){if(!Yc&&Ir!==null){Yc=!0;var e=0,r=Pe;try{var i=Ir;for(Pe=1;e<i.length;e++){var a=i[e];do a=a(!0);while(a!==null)}Ir=null,Qs=!1}catch(f){throw Ir!==null&&(Ir=Ir.slice(e+1)),Im(yc,io),f}finally{Pe=r,Yc=!1}}return null}var cn=[],un=0,Ys=null,Js=0,Gt=[],Kt=0,_o=null,Dr=1,jr="";function So(e,r){cn[un++]=Js,cn[un++]=Ys,Ys=e,Js=r}function Fg(e,r,i){Gt[Kt++]=Dr,Gt[Kt++]=jr,Gt[Kt++]=_o,_o=e;var a=Dr;e=jr;var f=32-sr(a)-1;a&=~(1<<f),i+=1;var h=32-sr(r)+f;if(30<h){var k=f-f%5;h=(a&(1<<k)-1).toString(32),a>>=k,f-=k,Dr=1<<32-sr(r)+f|i<<f|a,jr=h+e}else Dr=1<<h|i<<f|a,jr=e}function Jc(e){e.return!==null&&(So(e,1),Fg(e,1,0))}function Zc(e){for(;e===Ys;)Ys=cn[--un],cn[un]=null,Js=cn[--un],cn[un]=null;for(;e===_o;)_o=Gt[--Kt],Gt[Kt]=null,jr=Gt[--Kt],Gt[Kt]=null,Dr=Gt[--Kt],Gt[Kt]=null}var At=null,Lt=null,Me=!1,ar=null;function Ig(e,r){var i=Jt(5,null,null,0);i.elementType="DELETED",i.stateNode=r,i.return=e,r=e.deletions,r===null?(e.deletions=[i],e.flags|=16):r.push(i)}function Dg(e,r){switch(e.tag){case 5:var i=e.type;return r=r.nodeType!==1||i.toLowerCase()!==r.nodeName.toLowerCase()?null:r,r!==null?(e.stateNode=r,At=e,Lt=ro(r.firstChild),!0):!1;case 6:return r=e.pendingProps===""||r.nodeType!==3?null:r,r!==null?(e.stateNode=r,At=e,Lt=null,!0):!1;case 13:return r=r.nodeType!==8?null:r,r!==null?(i=_o!==null?{id:Dr,overflow:jr}:null,e.memoizedState={dehydrated:r,treeContext:i,retryLane:1073741824},i=Jt(18,null,null,0),i.stateNode=r,i.return=e,e.child=i,At=e,Lt=null,!0):!1;default:return!1}}function eu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function tu(e){if(Me){var r=Lt;if(r){var i=r;if(!Dg(e,r)){if(eu(e))throw Error(n(418));r=ro(i.nextSibling);var a=At;r&&Dg(e,r)?Ig(a,i):(e.flags=e.flags&-4097|2,Me=!1,At=e)}}else{if(eu(e))throw Error(n(418));e.flags=e.flags&-4097|2,Me=!1,At=e}}}function jg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;At=e}function Zs(e){if(e!==At)return!1;if(!Me)return jg(e),Me=!0,!1;var r;if((r=e.tag!==3)&&!(r=e.tag!==5)&&(r=e.type,r=r!=="head"&&r!=="body"&&!Uc(e.type,e.memoizedProps)),r&&(r=Lt)){if(eu(e))throw Og(),Error(n(418));for(;r;)Ig(e,r),r=ro(r.nextSibling)}if(jg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(n(317));e:{for(e=e.nextSibling,r=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"){if(r===0){Lt=ro(e.nextSibling);break e}r--}else i!=="$"&&i!=="$!"&&i!=="$?"||r++}e=e.nextSibling}Lt=null}}else Lt=At?ro(e.stateNode.nextSibling):null;return!0}function Og(){for(var e=Lt;e;)e=ro(e.nextSibling)}function dn(){Lt=At=null,Me=!1}function ru(e){ar===null?ar=[e]:ar.push(e)}var L3=T.ReactCurrentBatchConfig;function fi(e,r,i){if(e=i.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(i._owner){if(i=i._owner,i){if(i.tag!==1)throw Error(n(309));var a=i.stateNode}if(!a)throw Error(n(147,e));var f=a,h=""+e;return r!==null&&r.ref!==null&&typeof r.ref=="function"&&r.ref._stringRef===h?r.ref:(r=function(k){var C=f.refs;k===null?delete C[h]:C[h]=k},r._stringRef=h,r)}if(typeof e!="string")throw Error(n(284));if(!i._owner)throw Error(n(290,e))}return e}function el(e,r){throw e=Object.prototype.toString.call(r),Error(n(31,e==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":e))}function Ag(e){var r=e._init;return r(e._payload)}function Lg(e){function r(I,P){if(e){var D=I.deletions;D===null?(I.deletions=[P],I.flags|=16):D.push(P)}}function i(I,P){if(!e)return null;for(;P!==null;)r(I,P),P=P.sibling;return null}function a(I,P){for(I=new Map;P!==null;)P.key!==null?I.set(P.key,P):I.set(P.index,P),P=P.sibling;return I}function f(I,P){return I=ho(I,P),I.index=0,I.sibling=null,I}function h(I,P,D){return I.index=D,e?(D=I.alternate,D!==null?(D=D.index,D<P?(I.flags|=2,P):D):(I.flags|=2,P)):(I.flags|=1048576,P)}function k(I){return e&&I.alternate===null&&(I.flags|=2),I}function C(I,P,D,X){return P===null||P.tag!==6?(P=Gu(D,I.mode,X),P.return=I,P):(P=f(P,D),P.return=I,P)}function z(I,P,D,X){var ae=D.type;return ae===L?G(I,P,D.props.children,X,D.key):P!==null&&(P.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===ve&&Ag(ae)===P.type)?(X=f(P,D.props),X.ref=fi(I,P,D),X.return=I,X):(X=Sl(D.type,D.key,D.props,null,I.mode,X),X.ref=fi(I,P,D),X.return=I,X)}function j(I,P,D,X){return P===null||P.tag!==4||P.stateNode.containerInfo!==D.containerInfo||P.stateNode.implementation!==D.implementation?(P=Ku(D,I.mode,X),P.return=I,P):(P=f(P,D.children||[]),P.return=I,P)}function G(I,P,D,X,ae){return P===null||P.tag!==7?(P=Ro(D,I.mode,X,ae),P.return=I,P):(P=f(P,D),P.return=I,P)}function K(I,P,D){if(typeof P=="string"&&P!==""||typeof P=="number")return P=Gu(""+P,I.mode,D),P.return=I,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case R:return D=Sl(P.type,P.key,P.props,null,I.mode,D),D.ref=fi(I,null,P),D.return=I,D;case O:return P=Ku(P,I.mode,D),P.return=I,P;case ve:var X=P._init;return K(I,X(P._payload),D)}if(qn(P)||re(P))return P=Ro(P,I.mode,D,null),P.return=I,P;el(I,P)}return null}function $(I,P,D,X){var ae=P!==null?P.key:null;if(typeof D=="string"&&D!==""||typeof D=="number")return ae!==null?null:C(I,P,""+D,X);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case R:return D.key===ae?z(I,P,D,X):null;case O:return D.key===ae?j(I,P,D,X):null;case ve:return ae=D._init,$(I,P,ae(D._payload),X)}if(qn(D)||re(D))return ae!==null?null:G(I,P,D,X,null);el(I,D)}return null}function te(I,P,D,X,ae){if(typeof X=="string"&&X!==""||typeof X=="number")return I=I.get(D)||null,C(P,I,""+X,ae);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case R:return I=I.get(X.key===null?D:X.key)||null,z(P,I,X,ae);case O:return I=I.get(X.key===null?D:X.key)||null,j(P,I,X,ae);case ve:var pe=X._init;return te(I,P,D,pe(X._payload),ae)}if(qn(X)||re(X))return I=I.get(D)||null,G(P,I,X,ae,null);el(P,X)}return null}function ie(I,P,D,X){for(var ae=null,pe=null,he=P,ye=P=0,lt=null;he!==null&&ye<D.length;ye++){he.index>ye?(lt=he,he=null):lt=he.sibling;var Te=$(I,he,D[ye],X);if(Te===null){he===null&&(he=lt);break}e&&he&&Te.alternate===null&&r(I,he),P=h(Te,P,ye),pe===null?ae=Te:pe.sibling=Te,pe=Te,he=lt}if(ye===D.length)return i(I,he),Me&&So(I,ye),ae;if(he===null){for(;ye<D.length;ye++)he=K(I,D[ye],X),he!==null&&(P=h(he,P,ye),pe===null?ae=he:pe.sibling=he,pe=he);return Me&&So(I,ye),ae}for(he=a(I,he);ye<D.length;ye++)lt=te(he,I,ye,D[ye],X),lt!==null&&(e&<.alternate!==null&&he.delete(lt.key===null?ye:lt.key),P=h(lt,P,ye),pe===null?ae=lt:pe.sibling=lt,pe=lt);return e&&he.forEach(function(mo){return r(I,mo)}),Me&&So(I,ye),ae}function se(I,P,D,X){var ae=re(D);if(typeof ae!="function")throw Error(n(150));if(D=ae.call(D),D==null)throw Error(n(151));for(var pe=ae=null,he=P,ye=P=0,lt=null,Te=D.next();he!==null&&!Te.done;ye++,Te=D.next()){he.index>ye?(lt=he,he=null):lt=he.sibling;var mo=$(I,he,Te.value,X);if(mo===null){he===null&&(he=lt);break}e&&he&&mo.alternate===null&&r(I,he),P=h(mo,P,ye),pe===null?ae=mo:pe.sibling=mo,pe=mo,he=lt}if(Te.done)return i(I,he),Me&&So(I,ye),ae;if(he===null){for(;!Te.done;ye++,Te=D.next())Te=K(I,Te.value,X),Te!==null&&(P=h(Te,P,ye),pe===null?ae=Te:pe.sibling=Te,pe=Te);return Me&&So(I,ye),ae}for(he=a(I,he);!Te.done;ye++,Te=D.next())Te=te(he,I,ye,Te.value,X),Te!==null&&(e&&Te.alternate!==null&&he.delete(Te.key===null?ye:Te.key),P=h(Te,P,ye),pe===null?ae=Te:pe.sibling=Te,pe=Te);return e&&he.forEach(function(b5){return r(I,b5)}),Me&&So(I,ye),ae}function Je(I,P,D,X){if(typeof D=="object"&&D!==null&&D.type===L&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case R:e:{for(var ae=D.key,pe=P;pe!==null;){if(pe.key===ae){if(ae=D.type,ae===L){if(pe.tag===7){i(I,pe.sibling),P=f(pe,D.props.children),P.return=I,I=P;break e}}else if(pe.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===ve&&Ag(ae)===pe.type){i(I,pe.sibling),P=f(pe,D.props),P.ref=fi(I,pe,D),P.return=I,I=P;break e}i(I,pe);break}else r(I,pe);pe=pe.sibling}D.type===L?(P=Ro(D.props.children,I.mode,X,D.key),P.return=I,I=P):(X=Sl(D.type,D.key,D.props,null,I.mode,X),X.ref=fi(I,P,D),X.return=I,I=X)}return k(I);case O:e:{for(pe=D.key;P!==null;){if(P.key===pe)if(P.tag===4&&P.stateNode.containerInfo===D.containerInfo&&P.stateNode.implementation===D.implementation){i(I,P.sibling),P=f(P,D.children||[]),P.return=I,I=P;break e}else{i(I,P);break}else r(I,P);P=P.sibling}P=Ku(D,I.mode,X),P.return=I,I=P}return k(I);case ve:return pe=D._init,Je(I,P,pe(D._payload),X)}if(qn(D))return ie(I,P,D,X);if(re(D))return se(I,P,D,X);el(I,D)}return typeof D=="string"&&D!==""||typeof D=="number"?(D=""+D,P!==null&&P.tag===6?(i(I,P.sibling),P=f(P,D),P.return=I,I=P):(i(I,P),P=Gu(D,I.mode,X),P.return=I,I=P),k(I)):i(I,P)}return Je}var fn=Lg(!0),Mg=Lg(!1),tl=oo(null),rl=null,pn=null,ou=null;function nu(){ou=pn=rl=null}function iu(e){var r=tl.current;Ae(tl),e._currentValue=r}function su(e,r,i){for(;e!==null;){var a=e.alternate;if((e.childLanes&r)!==r?(e.childLanes|=r,a!==null&&(a.childLanes|=r)):a!==null&&(a.childLanes&r)!==r&&(a.childLanes|=r),e===i)break;e=e.return}}function hn(e,r){rl=e,ou=pn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&r)!==0&&(zt=!0),e.firstContext=null)}function Xt(e){var r=e._currentValue;if(ou!==e)if(e={context:e,memoizedValue:r,next:null},pn===null){if(rl===null)throw Error(n(308));pn=e,rl.dependencies={lanes:0,firstContext:e}}else pn=pn.next=e;return r}var Co=null;function lu(e){Co===null?Co=[e]:Co.push(e)}function qg(e,r,i,a){var f=r.interleaved;return f===null?(i.next=i,lu(r)):(i.next=f.next,f.next=i),r.interleaved=i,Or(e,a)}function Or(e,r){e.lanes|=r;var i=e.alternate;for(i!==null&&(i.lanes|=r),i=e,e=e.return;e!==null;)e.childLanes|=r,i=e.alternate,i!==null&&(i.childLanes|=r),i=e,e=e.return;return i.tag===3?i.stateNode:null}var so=!1;function au(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Hg(e,r){e=e.updateQueue,r.updateQueue===e&&(r.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ar(e,r){return{eventTime:e,lane:r,tag:0,payload:null,callback:null,next:null}}function lo(e,r,i){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(_e&2)!==0){var f=a.pending;return f===null?r.next=r:(r.next=f.next,f.next=r),a.pending=r,Or(e,i)}return f=a.interleaved,f===null?(r.next=r,lu(a)):(r.next=f.next,f.next=r),a.interleaved=r,Or(e,i)}function ol(e,r,i){if(r=r.updateQueue,r!==null&&(r=r.shared,(i&4194240)!==0)){var a=r.lanes;a&=e.pendingLanes,i|=a,r.lanes=i,xc(e,i)}}function Wg(e,r){var i=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,i===a)){var f=null,h=null;if(i=i.firstBaseUpdate,i!==null){do{var k={eventTime:i.eventTime,lane:i.lane,tag:i.tag,payload:i.payload,callback:i.callback,next:null};h===null?f=h=k:h=h.next=k,i=i.next}while(i!==null);h===null?f=h=r:h=h.next=r}else f=h=r;i={baseState:a.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:a.shared,effects:a.effects},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=r:e.next=r,i.lastBaseUpdate=r}function nl(e,r,i,a){var f=e.updateQueue;so=!1;var h=f.firstBaseUpdate,k=f.lastBaseUpdate,C=f.shared.pending;if(C!==null){f.shared.pending=null;var z=C,j=z.next;z.next=null,k===null?h=j:k.next=j,k=z;var G=e.alternate;G!==null&&(G=G.updateQueue,C=G.lastBaseUpdate,C!==k&&(C===null?G.firstBaseUpdate=j:C.next=j,G.lastBaseUpdate=z))}if(h!==null){var K=f.baseState;k=0,G=j=z=null,C=h;do{var $=C.lane,te=C.eventTime;if((a&$)===$){G!==null&&(G=G.next={eventTime:te,lane:0,tag:C.tag,payload:C.payload,callback:C.callback,next:null});e:{var ie=e,se=C;switch($=r,te=i,se.tag){case 1:if(ie=se.payload,typeof ie=="function"){K=ie.call(te,K,$);break e}K=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=se.payload,$=typeof ie=="function"?ie.call(te,K,$):ie,$==null)break e;K=Z({},K,$);break e;case 2:so=!0}}C.callback!==null&&C.lane!==0&&(e.flags|=64,$=f.effects,$===null?f.effects=[C]:$.push(C))}else te={eventTime:te,lane:$,tag:C.tag,payload:C.payload,callback:C.callback,next:null},G===null?(j=G=te,z=K):G=G.next=te,k|=$;if(C=C.next,C===null){if(C=f.shared.pending,C===null)break;$=C,C=$.next,$.next=null,f.lastBaseUpdate=$,f.shared.pending=null}}while(!0);if(G===null&&(z=K),f.baseState=z,f.firstBaseUpdate=j,f.lastBaseUpdate=G,r=f.shared.interleaved,r!==null){f=r;do k|=f.lane,f=f.next;while(f!==r)}else h===null&&(f.shared.lanes=0);To|=k,e.lanes=k,e.memoizedState=K}}function $g(e,r,i){if(e=r.effects,r.effects=null,e!==null)for(r=0;r<e.length;r++){var a=e[r],f=a.callback;if(f!==null){if(a.callback=null,a=i,typeof f!="function")throw Error(n(191,f));f.call(a)}}}var pi={},xr=oo(pi),hi=oo(pi),mi=oo(pi);function Bo(e){if(e===pi)throw Error(n(174));return e}function cu(e,r){switch(je(mi,r),je(hi,e),je(xr,pi),e=r.nodeType,e){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:uc(null,"");break;default:e=e===8?r.parentNode:r,r=e.namespaceURI||null,e=e.tagName,r=uc(r,e)}Ae(xr),je(xr,r)}function mn(){Ae(xr),Ae(hi),Ae(mi)}function Vg(e){Bo(mi.current);var r=Bo(xr.current),i=uc(r,e.type);r!==i&&(je(hi,e),je(xr,i))}function uu(e){hi.current===e&&(Ae(xr),Ae(hi))}var We=oo(0);function il(e){for(var r=e;r!==null;){if(r.tag===13){var i=r.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||i.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var du=[];function fu(){for(var e=0;e<du.length;e++)du[e]._workInProgressVersionPrimary=null;du.length=0}var sl=T.ReactCurrentDispatcher,pu=T.ReactCurrentBatchConfig,No=0,$e=null,rt=null,it=null,ll=!1,gi=!1,vi=0,M3=0;function gt(){throw Error(n(321))}function hu(e,r){if(r===null)return!1;for(var i=0;i<r.length&&i<e.length;i++)if(!lr(e[i],r[i]))return!1;return!0}function mu(e,r,i,a,f,h){if(No=h,$e=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,sl.current=e===null||e.memoizedState===null?$3:V3,e=i(a,f),gi){h=0;do{if(gi=!1,vi=0,25<=h)throw Error(n(301));h+=1,it=rt=null,r.updateQueue=null,sl.current=U3,e=i(a,f)}while(gi)}if(sl.current=ul,r=rt!==null&&rt.next!==null,No=0,it=rt=$e=null,ll=!1,r)throw Error(n(300));return e}function gu(){var e=vi!==0;return vi=0,e}function _r(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return it===null?$e.memoizedState=it=e:it=it.next=e,it}function Qt(){if(rt===null){var e=$e.alternate;e=e!==null?e.memoizedState:null}else e=rt.next;var r=it===null?$e.memoizedState:it.next;if(r!==null)it=r,rt=e;else{if(e===null)throw Error(n(310));rt=e,e={memoizedState:rt.memoizedState,baseState:rt.baseState,baseQueue:rt.baseQueue,queue:rt.queue,next:null},it===null?$e.memoizedState=it=e:it=it.next=e}return it}function bi(e,r){return typeof r=="function"?r(e):r}function vu(e){var r=Qt(),i=r.queue;if(i===null)throw Error(n(311));i.lastRenderedReducer=e;var a=rt,f=a.baseQueue,h=i.pending;if(h!==null){if(f!==null){var k=f.next;f.next=h.next,h.next=k}a.baseQueue=f=h,i.pending=null}if(f!==null){h=f.next,a=a.baseState;var C=k=null,z=null,j=h;do{var G=j.lane;if((No&G)===G)z!==null&&(z=z.next={lane:0,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),a=j.hasEagerState?j.eagerState:e(a,j.action);else{var K={lane:G,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null};z===null?(C=z=K,k=a):z=z.next=K,$e.lanes|=G,To|=G}j=j.next}while(j!==null&&j!==h);z===null?k=a:z.next=C,lr(a,r.memoizedState)||(zt=!0),r.memoizedState=a,r.baseState=k,r.baseQueue=z,i.lastRenderedState=a}if(e=i.interleaved,e!==null){f=e;do h=f.lane,$e.lanes|=h,To|=h,f=f.next;while(f!==e)}else f===null&&(i.lanes=0);return[r.memoizedState,i.dispatch]}function bu(e){var r=Qt(),i=r.queue;if(i===null)throw Error(n(311));i.lastRenderedReducer=e;var a=i.dispatch,f=i.pending,h=r.memoizedState;if(f!==null){i.pending=null;var k=f=f.next;do h=e(h,k.action),k=k.next;while(k!==f);lr(h,r.memoizedState)||(zt=!0),r.memoizedState=h,r.baseQueue===null&&(r.baseState=h),i.lastRenderedState=h}return[h,a]}function Ug(){}function Gg(e,r){var i=$e,a=Qt(),f=r(),h=!lr(a.memoizedState,f);if(h&&(a.memoizedState=f,zt=!0),a=a.queue,yu(Qg.bind(null,i,a,e),[e]),a.getSnapshot!==r||h||it!==null&&it.memoizedState.tag&1){if(i.flags|=2048,yi(9,Xg.bind(null,i,a,f,r),void 0,null),st===null)throw Error(n(349));(No&30)!==0||Kg(i,r,f)}return f}function Kg(e,r,i){e.flags|=16384,e={getSnapshot:r,value:i},r=$e.updateQueue,r===null?(r={lastEffect:null,stores:null},$e.updateQueue=r,r.stores=[e]):(i=r.stores,i===null?r.stores=[e]:i.push(e))}function Xg(e,r,i,a){r.value=i,r.getSnapshot=a,Yg(r)&&Jg(e)}function Qg(e,r,i){return i(function(){Yg(r)&&Jg(e)})}function Yg(e){var r=e.getSnapshot;e=e.value;try{var i=r();return!lr(e,i)}catch{return!0}}function Jg(e){var r=Or(e,1);r!==null&&fr(r,e,1,-1)}function Zg(e){var r=_r();return typeof e=="function"&&(e=e()),r.memoizedState=r.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:bi,lastRenderedState:e},r.queue=e,e=e.dispatch=W3.bind(null,$e,e),[r.memoizedState,e]}function yi(e,r,i,a){return e={tag:e,create:r,destroy:i,deps:a,next:null},r=$e.updateQueue,r===null?(r={lastEffect:null,stores:null},$e.updateQueue=r,r.lastEffect=e.next=e):(i=r.lastEffect,i===null?r.lastEffect=e.next=e:(a=i.next,i.next=e,e.next=a,r.lastEffect=e)),e}function ev(){return Qt().memoizedState}function al(e,r,i,a){var f=_r();$e.flags|=e,f.memoizedState=yi(1|r,i,void 0,a===void 0?null:a)}function cl(e,r,i,a){var f=Qt();a=a===void 0?null:a;var h=void 0;if(rt!==null){var k=rt.memoizedState;if(h=k.destroy,a!==null&&hu(a,k.deps)){f.memoizedState=yi(r,i,h,a);return}}$e.flags|=e,f.memoizedState=yi(1|r,i,h,a)}function tv(e,r){return al(8390656,8,e,r)}function yu(e,r){return cl(2048,8,e,r)}function rv(e,r){return cl(4,2,e,r)}function ov(e,r){return cl(4,4,e,r)}function nv(e,r){if(typeof r=="function")return e=e(),r(e),function(){r(null)};if(r!=null)return e=e(),r.current=e,function(){r.current=null}}function iv(e,r,i){return i=i!=null?i.concat([e]):null,cl(4,4,nv.bind(null,r,e),i)}function wu(){}function sv(e,r){var i=Qt();r=r===void 0?null:r;var a=i.memoizedState;return a!==null&&r!==null&&hu(r,a[1])?a[0]:(i.memoizedState=[e,r],e)}function lv(e,r){var i=Qt();r=r===void 0?null:r;var a=i.memoizedState;return a!==null&&r!==null&&hu(r,a[1])?a[0]:(e=e(),i.memoizedState=[e,r],e)}function av(e,r,i){return(No&21)===0?(e.baseState&&(e.baseState=!1,zt=!0),e.memoizedState=i):(lr(i,r)||(i=Am(),$e.lanes|=i,To|=i,e.baseState=!0),r)}function q3(e,r){var i=Pe;Pe=i!==0&&4>i?i:4,e(!0);var a=pu.transition;pu.transition={};try{e(!1),r()}finally{Pe=i,pu.transition=a}}function cv(){return Qt().memoizedState}function H3(e,r,i){var a=fo(e);if(i={lane:a,action:i,hasEagerState:!1,eagerState:null,next:null},uv(e))dv(r,i);else if(i=qg(e,r,i,a),i!==null){var f=kt();fr(i,e,a,f),fv(i,r,a)}}function W3(e,r,i){var a=fo(e),f={lane:a,action:i,hasEagerState:!1,eagerState:null,next:null};if(uv(e))dv(r,f);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=r.lastRenderedReducer,h!==null))try{var k=r.lastRenderedState,C=h(k,i);if(f.hasEagerState=!0,f.eagerState=C,lr(C,k)){var z=r.interleaved;z===null?(f.next=f,lu(r)):(f.next=z.next,z.next=f),r.interleaved=f;return}}catch{}finally{}i=qg(e,r,f,a),i!==null&&(f=kt(),fr(i,e,a,f),fv(i,r,a))}}function uv(e){var r=e.alternate;return e===$e||r!==null&&r===$e}function dv(e,r){gi=ll=!0;var i=e.pending;i===null?r.next=r:(r.next=i.next,i.next=r),e.pending=r}function fv(e,r,i){if((i&4194240)!==0){var a=r.lanes;a&=e.pendingLanes,i|=a,r.lanes=i,xc(e,i)}}var ul={readContext:Xt,useCallback:gt,useContext:gt,useEffect:gt,useImperativeHandle:gt,useInsertionEffect:gt,useLayoutEffect:gt,useMemo:gt,useReducer:gt,useRef:gt,useState:gt,useDebugValue:gt,useDeferredValue:gt,useTransition:gt,useMutableSource:gt,useSyncExternalStore:gt,useId:gt,unstable_isNewReconciler:!1},$3={readContext:Xt,useCallback:function(e,r){return _r().memoizedState=[e,r===void 0?null:r],e},useContext:Xt,useEffect:tv,useImperativeHandle:function(e,r,i){return i=i!=null?i.concat([e]):null,al(4194308,4,nv.bind(null,r,e),i)},useLayoutEffect:function(e,r){return al(4194308,4,e,r)},useInsertionEffect:function(e,r){return al(4,2,e,r)},useMemo:function(e,r){var i=_r();return r=r===void 0?null:r,e=e(),i.memoizedState=[e,r],e},useReducer:function(e,r,i){var a=_r();return r=i!==void 0?i(r):r,a.memoizedState=a.baseState=r,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},a.queue=e,e=e.dispatch=H3.bind(null,$e,e),[a.memoizedState,e]},useRef:function(e){var r=_r();return e={current:e},r.memoizedState=e},useState:Zg,useDebugValue:wu,useDeferredValue:function(e){return _r().memoizedState=e},useTransition:function(){var e=Zg(!1),r=e[0];return e=q3.bind(null,e[1]),_r().memoizedState=e,[r,e]},useMutableSource:function(){},useSyncExternalStore:function(e,r,i){var a=$e,f=_r();if(Me){if(i===void 0)throw Error(n(407));i=i()}else{if(i=r(),st===null)throw Error(n(349));(No&30)!==0||Kg(a,r,i)}f.memoizedState=i;var h={value:i,getSnapshot:r};return f.queue=h,tv(Qg.bind(null,a,h,e),[e]),a.flags|=2048,yi(9,Xg.bind(null,a,h,i,r),void 0,null),i},useId:function(){var e=_r(),r=st.identifierPrefix;if(Me){var i=jr,a=Dr;i=(a&~(1<<32-sr(a)-1)).toString(32)+i,r=":"+r+"R"+i,i=vi++,0<i&&(r+="H"+i.toString(32)),r+=":"}else i=M3++,r=":"+r+"r"+i.toString(32)+":";return e.memoizedState=r},unstable_isNewReconciler:!1},V3={readContext:Xt,useCallback:sv,useContext:Xt,useEffect:yu,useImperativeHandle:iv,useInsertionEffect:rv,useLayoutEffect:ov,useMemo:lv,useReducer:vu,useRef:ev,useState:function(){return vu(bi)},useDebugValue:wu,useDeferredValue:function(e){var r=Qt();return av(r,rt.memoizedState,e)},useTransition:function(){var e=vu(bi)[0],r=Qt().memoizedState;return[e,r]},useMutableSource:Ug,useSyncExternalStore:Gg,useId:cv,unstable_isNewReconciler:!1},U3={readContext:Xt,useCallback:sv,useContext:Xt,useEffect:yu,useImperativeHandle:iv,useInsertionEffect:rv,useLayoutEffect:ov,useMemo:lv,useReducer:bu,useRef:ev,useState:function(){return bu(bi)},useDebugValue:wu,useDeferredValue:function(e){var r=Qt();return rt===null?r.memoizedState=e:av(r,rt.memoizedState,e)},useTransition:function(){var e=bu(bi)[0],r=Qt().memoizedState;return[e,r]},useMutableSource:Ug,useSyncExternalStore:Gg,useId:cv,unstable_isNewReconciler:!1};function cr(e,r){if(e&&e.defaultProps){r=Z({},r),e=e.defaultProps;for(var i in e)r[i]===void 0&&(r[i]=e[i]);return r}return r}function ku(e,r,i,a){r=e.memoizedState,i=i(a,r),i=i==null?r:Z({},r,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var dl={isMounted:function(e){return(e=e._reactInternals)?wo(e)===e:!1},enqueueSetState:function(e,r,i){e=e._reactInternals;var a=kt(),f=fo(e),h=Ar(a,f);h.payload=r,i!=null&&(h.callback=i),r=lo(e,h,f),r!==null&&(fr(r,e,f,a),ol(r,e,f))},enqueueReplaceState:function(e,r,i){e=e._reactInternals;var a=kt(),f=fo(e),h=Ar(a,f);h.tag=1,h.payload=r,i!=null&&(h.callback=i),r=lo(e,h,f),r!==null&&(fr(r,e,f,a),ol(r,e,f))},enqueueForceUpdate:function(e,r){e=e._reactInternals;var i=kt(),a=fo(e),f=Ar(i,a);f.tag=2,r!=null&&(f.callback=r),r=lo(e,f,a),r!==null&&(fr(r,e,a,i),ol(r,e,a))}};function pv(e,r,i,a,f,h,k){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,h,k):r.prototype&&r.prototype.isPureReactComponent?!ii(i,a)||!ii(f,h):!0}function hv(e,r,i){var a=!1,f=no,h=r.contextType;return typeof h=="object"&&h!==null?h=Xt(h):(f=Et(r)?xo:mt.current,a=r.contextTypes,h=(a=a!=null)?an(e,f):no),r=new r(i,h),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=dl,e.stateNode=r,r._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=f,e.__reactInternalMemoizedMaskedChildContext=h),r}function mv(e,r,i,a){e=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(i,a),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(i,a),r.state!==e&&dl.enqueueReplaceState(r,r.state,null)}function xu(e,r,i,a){var f=e.stateNode;f.props=i,f.state=e.memoizedState,f.refs={},au(e);var h=r.contextType;typeof h=="object"&&h!==null?f.context=Xt(h):(h=Et(r)?xo:mt.current,f.context=an(e,h)),f.state=e.memoizedState,h=r.getDerivedStateFromProps,typeof h=="function"&&(ku(e,r,h,i),f.state=e.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(r=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),r!==f.state&&dl.enqueueReplaceState(f,f.state,null),nl(e,i,f,a),f.state=e.memoizedState),typeof f.componentDidMount=="function"&&(e.flags|=4194308)}function gn(e,r){try{var i="",a=r;do i+=Be(a),a=a.return;while(a);var f=i}catch(h){f=`
|
|
8
|
+
Error generating stack: `+h.message+`
|
|
9
|
+
`+h.stack}return{value:e,source:r,stack:f,digest:null}}function _u(e,r,i){return{value:e,source:null,stack:i??null,digest:r??null}}function Su(e,r){try{console.error(r.value)}catch(i){setTimeout(function(){throw i})}}var G3=typeof WeakMap=="function"?WeakMap:Map;function gv(e,r,i){i=Ar(-1,i),i.tag=3,i.payload={element:null};var a=r.value;return i.callback=function(){bl||(bl=!0,Lu=a),Su(e,r)},i}function vv(e,r,i){i=Ar(-1,i),i.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var f=r.value;i.payload=function(){return a(f)},i.callback=function(){Su(e,r)}}var h=e.stateNode;return h!==null&&typeof h.componentDidCatch=="function"&&(i.callback=function(){Su(e,r),typeof a!="function"&&(co===null?co=new Set([this]):co.add(this));var k=r.stack;this.componentDidCatch(r.value,{componentStack:k!==null?k:""})}),i}function bv(e,r,i){var a=e.pingCache;if(a===null){a=e.pingCache=new G3;var f=new Set;a.set(r,f)}else f=a.get(r),f===void 0&&(f=new Set,a.set(r,f));f.has(i)||(f.add(i),e=l5.bind(null,e,r,i),r.then(e,e))}function yv(e){do{var r;if((r=e.tag===13)&&(r=e.memoizedState,r=r!==null?r.dehydrated!==null:!0),r)return e;e=e.return}while(e!==null);return null}function wv(e,r,i,a,f){return(e.mode&1)===0?(e===r?e.flags|=65536:(e.flags|=128,i.flags|=131072,i.flags&=-52805,i.tag===1&&(i.alternate===null?i.tag=17:(r=Ar(-1,1),r.tag=2,lo(i,r,1))),i.lanes|=1),e):(e.flags|=65536,e.lanes=f,e)}var K3=T.ReactCurrentOwner,zt=!1;function wt(e,r,i,a){r.child=e===null?Mg(r,null,i,a):fn(r,e.child,i,a)}function kv(e,r,i,a,f){i=i.render;var h=r.ref;return hn(r,f),a=mu(e,r,i,a,h,f),i=gu(),e!==null&&!zt?(r.updateQueue=e.updateQueue,r.flags&=-2053,e.lanes&=~f,Lr(e,r,f)):(Me&&i&&Jc(r),r.flags|=1,wt(e,r,a,f),r.child)}function xv(e,r,i,a,f){if(e===null){var h=i.type;return typeof h=="function"&&!Uu(h)&&h.defaultProps===void 0&&i.compare===null&&i.defaultProps===void 0?(r.tag=15,r.type=h,_v(e,r,h,a,f)):(e=Sl(i.type,null,a,r,r.mode,f),e.ref=r.ref,e.return=r,r.child=e)}if(h=e.child,(e.lanes&f)===0){var k=h.memoizedProps;if(i=i.compare,i=i!==null?i:ii,i(k,a)&&e.ref===r.ref)return Lr(e,r,f)}return r.flags|=1,e=ho(h,a),e.ref=r.ref,e.return=r,r.child=e}function _v(e,r,i,a,f){if(e!==null){var h=e.memoizedProps;if(ii(h,a)&&e.ref===r.ref)if(zt=!1,r.pendingProps=a=h,(e.lanes&f)!==0)(e.flags&131072)!==0&&(zt=!0);else return r.lanes=e.lanes,Lr(e,r,f)}return Cu(e,r,i,a,f)}function Sv(e,r,i){var a=r.pendingProps,f=a.children,h=e!==null?e.memoizedState:null;if(a.mode==="hidden")if((r.mode&1)===0)r.memoizedState={baseLanes:0,cachePool:null,transitions:null},je(bn,Mt),Mt|=i;else{if((i&1073741824)===0)return e=h!==null?h.baseLanes|i:i,r.lanes=r.childLanes=1073741824,r.memoizedState={baseLanes:e,cachePool:null,transitions:null},r.updateQueue=null,je(bn,Mt),Mt|=e,null;r.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=h!==null?h.baseLanes:i,je(bn,Mt),Mt|=a}else h!==null?(a=h.baseLanes|i,r.memoizedState=null):a=i,je(bn,Mt),Mt|=a;return wt(e,r,f,i),r.child}function Cv(e,r){var i=r.ref;(e===null&&i!==null||e!==null&&e.ref!==i)&&(r.flags|=512,r.flags|=2097152)}function Cu(e,r,i,a,f){var h=Et(i)?xo:mt.current;return h=an(r,h),hn(r,f),i=mu(e,r,i,a,h,f),a=gu(),e!==null&&!zt?(r.updateQueue=e.updateQueue,r.flags&=-2053,e.lanes&=~f,Lr(e,r,f)):(Me&&a&&Jc(r),r.flags|=1,wt(e,r,i,f),r.child)}function Bv(e,r,i,a,f){if(Et(i)){var h=!0;Xs(r)}else h=!1;if(hn(r,f),r.stateNode===null)pl(e,r),hv(r,i,a),xu(r,i,a,f),a=!0;else if(e===null){var k=r.stateNode,C=r.memoizedProps;k.props=C;var z=k.context,j=i.contextType;typeof j=="object"&&j!==null?j=Xt(j):(j=Et(i)?xo:mt.current,j=an(r,j));var G=i.getDerivedStateFromProps,K=typeof G=="function"||typeof k.getSnapshotBeforeUpdate=="function";K||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(C!==a||z!==j)&&mv(r,k,a,j),so=!1;var $=r.memoizedState;k.state=$,nl(r,a,k,f),z=r.memoizedState,C!==a||$!==z||Tt.current||so?(typeof G=="function"&&(ku(r,i,G,a),z=r.memoizedState),(C=so||pv(r,i,C,a,$,z,j))?(K||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(r.flags|=4194308)):(typeof k.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=a,r.memoizedState=z),k.props=a,k.state=z,k.context=j,a=C):(typeof k.componentDidMount=="function"&&(r.flags|=4194308),a=!1)}else{k=r.stateNode,Hg(e,r),C=r.memoizedProps,j=r.type===r.elementType?C:cr(r.type,C),k.props=j,K=r.pendingProps,$=k.context,z=i.contextType,typeof z=="object"&&z!==null?z=Xt(z):(z=Et(i)?xo:mt.current,z=an(r,z));var te=i.getDerivedStateFromProps;(G=typeof te=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(C!==K||$!==z)&&mv(r,k,a,z),so=!1,$=r.memoizedState,k.state=$,nl(r,a,k,f);var ie=r.memoizedState;C!==K||$!==ie||Tt.current||so?(typeof te=="function"&&(ku(r,i,te,a),ie=r.memoizedState),(j=so||pv(r,i,j,a,$,ie,z)||!1)?(G||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(a,ie,z),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(a,ie,z)),typeof k.componentDidUpdate=="function"&&(r.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof k.componentDidUpdate!="function"||C===e.memoizedProps&&$===e.memoizedState||(r.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||C===e.memoizedProps&&$===e.memoizedState||(r.flags|=1024),r.memoizedProps=a,r.memoizedState=ie),k.props=a,k.state=ie,k.context=z,a=j):(typeof k.componentDidUpdate!="function"||C===e.memoizedProps&&$===e.memoizedState||(r.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||C===e.memoizedProps&&$===e.memoizedState||(r.flags|=1024),a=!1)}return Bu(e,r,i,a,h,f)}function Bu(e,r,i,a,f,h){Cv(e,r);var k=(r.flags&128)!==0;if(!a&&!k)return f&&Pg(r,i,!1),Lr(e,r,h);a=r.stateNode,K3.current=r;var C=k&&typeof i.getDerivedStateFromError!="function"?null:a.render();return r.flags|=1,e!==null&&k?(r.child=fn(r,e.child,null,h),r.child=fn(r,null,C,h)):wt(e,r,C,h),r.memoizedState=a.state,f&&Pg(r,i,!0),r.child}function Nv(e){var r=e.stateNode;r.pendingContext?Eg(e,r.pendingContext,r.pendingContext!==r.context):r.context&&Eg(e,r.context,!1),cu(e,r.containerInfo)}function Tv(e,r,i,a,f){return dn(),ru(f),r.flags|=256,wt(e,r,i,a),r.child}var Nu={dehydrated:null,treeContext:null,retryLane:0};function Tu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ev(e,r,i){var a=r.pendingProps,f=We.current,h=!1,k=(r.flags&128)!==0,C;if((C=k)||(C=e!==null&&e.memoizedState===null?!1:(f&2)!==0),C?(h=!0,r.flags&=-129):(e===null||e.memoizedState!==null)&&(f|=1),je(We,f&1),e===null)return tu(r),e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((r.mode&1)===0?r.lanes=1:e.data==="$!"?r.lanes=8:r.lanes=1073741824,null):(k=a.children,e=a.fallback,h?(a=r.mode,h=r.child,k={mode:"hidden",children:k},(a&1)===0&&h!==null?(h.childLanes=0,h.pendingProps=k):h=Cl(k,a,0,null),e=Ro(e,a,i,null),h.return=r,e.return=r,h.sibling=e,r.child=h,r.child.memoizedState=Tu(i),r.memoizedState=Nu,e):Eu(r,k));if(f=e.memoizedState,f!==null&&(C=f.dehydrated,C!==null))return X3(e,r,k,a,C,f,i);if(h){h=a.fallback,k=r.mode,f=e.child,C=f.sibling;var z={mode:"hidden",children:a.children};return(k&1)===0&&r.child!==f?(a=r.child,a.childLanes=0,a.pendingProps=z,r.deletions=null):(a=ho(f,z),a.subtreeFlags=f.subtreeFlags&14680064),C!==null?h=ho(C,h):(h=Ro(h,k,i,null),h.flags|=2),h.return=r,a.return=r,a.sibling=h,r.child=a,a=h,h=r.child,k=e.child.memoizedState,k=k===null?Tu(i):{baseLanes:k.baseLanes|i,cachePool:null,transitions:k.transitions},h.memoizedState=k,h.childLanes=e.childLanes&~i,r.memoizedState=Nu,a}return h=e.child,e=h.sibling,a=ho(h,{mode:"visible",children:a.children}),(r.mode&1)===0&&(a.lanes=i),a.return=r,a.sibling=null,e!==null&&(i=r.deletions,i===null?(r.deletions=[e],r.flags|=16):i.push(e)),r.child=a,r.memoizedState=null,a}function Eu(e,r){return r=Cl({mode:"visible",children:r},e.mode,0,null),r.return=e,e.child=r}function fl(e,r,i,a){return a!==null&&ru(a),fn(r,e.child,null,i),e=Eu(r,r.pendingProps.children),e.flags|=2,r.memoizedState=null,e}function X3(e,r,i,a,f,h,k){if(i)return r.flags&256?(r.flags&=-257,a=_u(Error(n(422))),fl(e,r,k,a)):r.memoizedState!==null?(r.child=e.child,r.flags|=128,null):(h=a.fallback,f=r.mode,a=Cl({mode:"visible",children:a.children},f,0,null),h=Ro(h,f,k,null),h.flags|=2,a.return=r,h.return=r,a.sibling=h,r.child=a,(r.mode&1)!==0&&fn(r,e.child,null,k),r.child.memoizedState=Tu(k),r.memoizedState=Nu,h);if((r.mode&1)===0)return fl(e,r,k,null);if(f.data==="$!"){if(a=f.nextSibling&&f.nextSibling.dataset,a)var C=a.dgst;return a=C,h=Error(n(419)),a=_u(h,a,void 0),fl(e,r,k,a)}if(C=(k&e.childLanes)!==0,zt||C){if(a=st,a!==null){switch(k&-k){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&(a.suspendedLanes|k))!==0?0:f,f!==0&&f!==h.retryLane&&(h.retryLane=f,Or(e,f),fr(a,e,f,-1))}return Vu(),a=_u(Error(n(421))),fl(e,r,k,a)}return f.data==="$?"?(r.flags|=128,r.child=e.child,r=a5.bind(null,e),f._reactRetry=r,null):(e=h.treeContext,Lt=ro(f.nextSibling),At=r,Me=!0,ar=null,e!==null&&(Gt[Kt++]=Dr,Gt[Kt++]=jr,Gt[Kt++]=_o,Dr=e.id,jr=e.overflow,_o=r),r=Eu(r,a.children),r.flags|=4096,r)}function zv(e,r,i){e.lanes|=r;var a=e.alternate;a!==null&&(a.lanes|=r),su(e.return,r,i)}function zu(e,r,i,a,f){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:a,tail:i,tailMode:f}:(h.isBackwards=r,h.rendering=null,h.renderingStartTime=0,h.last=a,h.tail=i,h.tailMode=f)}function Pv(e,r,i){var a=r.pendingProps,f=a.revealOrder,h=a.tail;if(wt(e,r,a.children,i),a=We.current,(a&2)!==0)a=a&1|2,r.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=r.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zv(e,i,r);else if(e.tag===19)zv(e,i,r);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===r)break e;for(;e.sibling===null;){if(e.return===null||e.return===r)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}if(je(We,a),(r.mode&1)===0)r.memoizedState=null;else switch(f){case"forwards":for(i=r.child,f=null;i!==null;)e=i.alternate,e!==null&&il(e)===null&&(f=i),i=i.sibling;i=f,i===null?(f=r.child,r.child=null):(f=i.sibling,i.sibling=null),zu(r,!1,f,i,h);break;case"backwards":for(i=null,f=r.child,r.child=null;f!==null;){if(e=f.alternate,e!==null&&il(e)===null){r.child=f;break}e=f.sibling,f.sibling=i,i=f,f=e}zu(r,!0,i,null,h);break;case"together":zu(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function pl(e,r){(r.mode&1)===0&&e!==null&&(e.alternate=null,r.alternate=null,r.flags|=2)}function Lr(e,r,i){if(e!==null&&(r.dependencies=e.dependencies),To|=r.lanes,(i&r.childLanes)===0)return null;if(e!==null&&r.child!==e.child)throw Error(n(153));if(r.child!==null){for(e=r.child,i=ho(e,e.pendingProps),r.child=i,i.return=r;e.sibling!==null;)e=e.sibling,i=i.sibling=ho(e,e.pendingProps),i.return=r;i.sibling=null}return r.child}function Q3(e,r,i){switch(r.tag){case 3:Nv(r),dn();break;case 5:Vg(r);break;case 1:Et(r.type)&&Xs(r);break;case 4:cu(r,r.stateNode.containerInfo);break;case 10:var a=r.type._context,f=r.memoizedProps.value;je(tl,a._currentValue),a._currentValue=f;break;case 13:if(a=r.memoizedState,a!==null)return a.dehydrated!==null?(je(We,We.current&1),r.flags|=128,null):(i&r.child.childLanes)!==0?Ev(e,r,i):(je(We,We.current&1),e=Lr(e,r,i),e!==null?e.sibling:null);je(We,We.current&1);break;case 19:if(a=(i&r.childLanes)!==0,(e.flags&128)!==0){if(a)return Pv(e,r,i);r.flags|=128}if(f=r.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),je(We,We.current),a)break;return null;case 22:case 23:return r.lanes=0,Sv(e,r,i)}return Lr(e,r,i)}var Rv,Pu,Fv,Iv;Rv=function(e,r){for(var i=r.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},Pu=function(){},Fv=function(e,r,i,a){var f=e.memoizedProps;if(f!==a){e=r.stateNode,Bo(xr.current);var h=null;switch(i){case"input":f=sc(e,f),a=sc(e,a),h=[];break;case"select":f=Z({},f,{value:void 0}),a=Z({},a,{value:void 0}),h=[];break;case"textarea":f=cc(e,f),a=cc(e,a),h=[];break;default:typeof f.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=Us)}dc(i,a);var k;i=null;for(j in f)if(!a.hasOwnProperty(j)&&f.hasOwnProperty(j)&&f[j]!=null)if(j==="style"){var C=f[j];for(k in C)C.hasOwnProperty(k)&&(i||(i={}),i[k]="")}else j!=="dangerouslySetInnerHTML"&&j!=="children"&&j!=="suppressContentEditableWarning"&&j!=="suppressHydrationWarning"&&j!=="autoFocus"&&(l.hasOwnProperty(j)?h||(h=[]):(h=h||[]).push(j,null));for(j in a){var z=a[j];if(C=f?.[j],a.hasOwnProperty(j)&&z!==C&&(z!=null||C!=null))if(j==="style")if(C){for(k in C)!C.hasOwnProperty(k)||z&&z.hasOwnProperty(k)||(i||(i={}),i[k]="");for(k in z)z.hasOwnProperty(k)&&C[k]!==z[k]&&(i||(i={}),i[k]=z[k])}else i||(h||(h=[]),h.push(j,i)),i=z;else j==="dangerouslySetInnerHTML"?(z=z?z.__html:void 0,C=C?C.__html:void 0,z!=null&&C!==z&&(h=h||[]).push(j,z)):j==="children"?typeof z!="string"&&typeof z!="number"||(h=h||[]).push(j,""+z):j!=="suppressContentEditableWarning"&&j!=="suppressHydrationWarning"&&(l.hasOwnProperty(j)?(z!=null&&j==="onScroll"&&Oe("scroll",e),h||C===z||(h=[])):(h=h||[]).push(j,z))}i&&(h=h||[]).push("style",i);var j=h;(r.updateQueue=j)&&(r.flags|=4)}},Iv=function(e,r,i,a){i!==a&&(r.flags|=4)};function wi(e,r){if(!Me)switch(e.tailMode){case"hidden":r=e.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var a=null;i!==null;)i.alternate!==null&&(a=i),i=i.sibling;a===null?r||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function vt(e){var r=e.alternate!==null&&e.alternate.child===e.child,i=0,a=0;if(r)for(var f=e.child;f!==null;)i|=f.lanes|f.childLanes,a|=f.subtreeFlags&14680064,a|=f.flags&14680064,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)i|=f.lanes|f.childLanes,a|=f.subtreeFlags,a|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=a,e.childLanes=i,r}function Y3(e,r,i){var a=r.pendingProps;switch(Zc(r),r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(r),null;case 1:return Et(r.type)&&Ks(),vt(r),null;case 3:return a=r.stateNode,mn(),Ae(Tt),Ae(mt),fu(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Zs(r)?r.flags|=4:e===null||e.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,ar!==null&&(Hu(ar),ar=null))),Pu(e,r),vt(r),null;case 5:uu(r);var f=Bo(mi.current);if(i=r.type,e!==null&&r.stateNode!=null)Fv(e,r,i,a,f),e.ref!==r.ref&&(r.flags|=512,r.flags|=2097152);else{if(!a){if(r.stateNode===null)throw Error(n(166));return vt(r),null}if(e=Bo(xr.current),Zs(r)){a=r.stateNode,i=r.type;var h=r.memoizedProps;switch(a[kr]=r,a[ui]=h,e=(r.mode&1)!==0,i){case"dialog":Oe("cancel",a),Oe("close",a);break;case"iframe":case"object":case"embed":Oe("load",a);break;case"video":case"audio":for(f=0;f<li.length;f++)Oe(li[f],a);break;case"source":Oe("error",a);break;case"img":case"image":case"link":Oe("error",a),Oe("load",a);break;case"details":Oe("toggle",a);break;case"input":hm(a,h),Oe("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!h.multiple},Oe("invalid",a);break;case"textarea":vm(a,h),Oe("invalid",a)}dc(i,h),f=null;for(var k in h)if(h.hasOwnProperty(k)){var C=h[k];k==="children"?typeof C=="string"?a.textContent!==C&&(h.suppressHydrationWarning!==!0&&Vs(a.textContent,C,e),f=["children",C]):typeof C=="number"&&a.textContent!==""+C&&(h.suppressHydrationWarning!==!0&&Vs(a.textContent,C,e),f=["children",""+C]):l.hasOwnProperty(k)&&C!=null&&k==="onScroll"&&Oe("scroll",a)}switch(i){case"input":xs(a),gm(a,h,!0);break;case"textarea":xs(a),ym(a);break;case"select":case"option":break;default:typeof h.onClick=="function"&&(a.onclick=Us)}a=f,r.updateQueue=a,a!==null&&(r.flags|=4)}else{k=f.nodeType===9?f:f.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=wm(i)),e==="http://www.w3.org/1999/xhtml"?i==="script"?(e=k.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=k.createElement(i,{is:a.is}):(e=k.createElement(i),i==="select"&&(k=e,a.multiple?k.multiple=!0:a.size&&(k.size=a.size))):e=k.createElementNS(e,i),e[kr]=r,e[ui]=a,Rv(e,r,!1,!1),r.stateNode=e;e:{switch(k=fc(i,a),i){case"dialog":Oe("cancel",e),Oe("close",e),f=a;break;case"iframe":case"object":case"embed":Oe("load",e),f=a;break;case"video":case"audio":for(f=0;f<li.length;f++)Oe(li[f],e);f=a;break;case"source":Oe("error",e),f=a;break;case"img":case"image":case"link":Oe("error",e),Oe("load",e),f=a;break;case"details":Oe("toggle",e),f=a;break;case"input":hm(e,a),f=sc(e,a),Oe("invalid",e);break;case"option":f=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},f=Z({},a,{value:void 0}),Oe("invalid",e);break;case"textarea":vm(e,a),f=cc(e,a),Oe("invalid",e);break;default:f=a}dc(i,f),C=f;for(h in C)if(C.hasOwnProperty(h)){var z=C[h];h==="style"?_m(e,z):h==="dangerouslySetInnerHTML"?(z=z?z.__html:void 0,z!=null&&km(e,z)):h==="children"?typeof z=="string"?(i!=="textarea"||z!=="")&&Hn(e,z):typeof z=="number"&&Hn(e,""+z):h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&(l.hasOwnProperty(h)?z!=null&&h==="onScroll"&&Oe("scroll",e):z!=null&&B(e,h,z,k))}switch(i){case"input":xs(e),gm(e,a,!1);break;case"textarea":xs(e),ym(e);break;case"option":a.value!=null&&e.setAttribute("value",""+ze(a.value));break;case"select":e.multiple=!!a.multiple,h=a.value,h!=null?Xo(e,!!a.multiple,h,!1):a.defaultValue!=null&&Xo(e,!!a.multiple,a.defaultValue,!0);break;default:typeof f.onClick=="function"&&(e.onclick=Us)}switch(i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(r.flags|=4)}r.ref!==null&&(r.flags|=512,r.flags|=2097152)}return vt(r),null;case 6:if(e&&r.stateNode!=null)Iv(e,r,e.memoizedProps,a);else{if(typeof a!="string"&&r.stateNode===null)throw Error(n(166));if(i=Bo(mi.current),Bo(xr.current),Zs(r)){if(a=r.stateNode,i=r.memoizedProps,a[kr]=r,(h=a.nodeValue!==i)&&(e=At,e!==null))switch(e.tag){case 3:Vs(a.nodeValue,i,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Vs(a.nodeValue,i,(e.mode&1)!==0)}h&&(r.flags|=4)}else a=(i.nodeType===9?i:i.ownerDocument).createTextNode(a),a[kr]=r,r.stateNode=a}return vt(r),null;case 13:if(Ae(We),a=r.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Me&&Lt!==null&&(r.mode&1)!==0&&(r.flags&128)===0)Og(),dn(),r.flags|=98560,h=!1;else if(h=Zs(r),a!==null&&a.dehydrated!==null){if(e===null){if(!h)throw Error(n(318));if(h=r.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(n(317));h[kr]=r}else dn(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;vt(r),h=!1}else ar!==null&&(Hu(ar),ar=null),h=!0;if(!h)return r.flags&65536?r:null}return(r.flags&128)!==0?(r.lanes=i,r):(a=a!==null,a!==(e!==null&&e.memoizedState!==null)&&a&&(r.child.flags|=8192,(r.mode&1)!==0&&(e===null||(We.current&1)!==0?ot===0&&(ot=3):Vu())),r.updateQueue!==null&&(r.flags|=4),vt(r),null);case 4:return mn(),Pu(e,r),e===null&&ai(r.stateNode.containerInfo),vt(r),null;case 10:return iu(r.type._context),vt(r),null;case 17:return Et(r.type)&&Ks(),vt(r),null;case 19:if(Ae(We),h=r.memoizedState,h===null)return vt(r),null;if(a=(r.flags&128)!==0,k=h.rendering,k===null)if(a)wi(h,!1);else{if(ot!==0||e!==null&&(e.flags&128)!==0)for(e=r.child;e!==null;){if(k=il(e),k!==null){for(r.flags|=128,wi(h,!1),a=k.updateQueue,a!==null&&(r.updateQueue=a,r.flags|=4),r.subtreeFlags=0,a=i,i=r.child;i!==null;)h=i,e=a,h.flags&=14680066,k=h.alternate,k===null?(h.childLanes=0,h.lanes=e,h.child=null,h.subtreeFlags=0,h.memoizedProps=null,h.memoizedState=null,h.updateQueue=null,h.dependencies=null,h.stateNode=null):(h.childLanes=k.childLanes,h.lanes=k.lanes,h.child=k.child,h.subtreeFlags=0,h.deletions=null,h.memoizedProps=k.memoizedProps,h.memoizedState=k.memoizedState,h.updateQueue=k.updateQueue,h.type=k.type,e=k.dependencies,h.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),i=i.sibling;return je(We,We.current&1|2),r.child}e=e.sibling}h.tail!==null&&Ye()>yn&&(r.flags|=128,a=!0,wi(h,!1),r.lanes=4194304)}else{if(!a)if(e=il(k),e!==null){if(r.flags|=128,a=!0,i=e.updateQueue,i!==null&&(r.updateQueue=i,r.flags|=4),wi(h,!0),h.tail===null&&h.tailMode==="hidden"&&!k.alternate&&!Me)return vt(r),null}else 2*Ye()-h.renderingStartTime>yn&&i!==1073741824&&(r.flags|=128,a=!0,wi(h,!1),r.lanes=4194304);h.isBackwards?(k.sibling=r.child,r.child=k):(i=h.last,i!==null?i.sibling=k:r.child=k,h.last=k)}return h.tail!==null?(r=h.tail,h.rendering=r,h.tail=r.sibling,h.renderingStartTime=Ye(),r.sibling=null,i=We.current,je(We,a?i&1|2:i&1),r):(vt(r),null);case 22:case 23:return $u(),a=r.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(r.flags|=8192),a&&(r.mode&1)!==0?(Mt&1073741824)!==0&&(vt(r),r.subtreeFlags&6&&(r.flags|=8192)):vt(r),null;case 24:return null;case 25:return null}throw Error(n(156,r.tag))}function J3(e,r){switch(Zc(r),r.tag){case 1:return Et(r.type)&&Ks(),e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 3:return mn(),Ae(Tt),Ae(mt),fu(),e=r.flags,(e&65536)!==0&&(e&128)===0?(r.flags=e&-65537|128,r):null;case 5:return uu(r),null;case 13:if(Ae(We),e=r.memoizedState,e!==null&&e.dehydrated!==null){if(r.alternate===null)throw Error(n(340));dn()}return e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 19:return Ae(We),null;case 4:return mn(),null;case 10:return iu(r.type._context),null;case 22:case 23:return $u(),null;case 24:return null;default:return null}}var hl=!1,bt=!1,Z3=typeof WeakSet=="function"?WeakSet:Set,ne=null;function vn(e,r){var i=e.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(a){Ge(e,r,a)}else i.current=null}function Ru(e,r,i){try{i()}catch(a){Ge(e,r,a)}}var Dv=!1;function e5(e,r){if($c=Is,e=pg(),jc(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var a=i.getSelection&&i.getSelection();if(a&&a.rangeCount!==0){i=a.anchorNode;var f=a.anchorOffset,h=a.focusNode;a=a.focusOffset;try{i.nodeType,h.nodeType}catch{i=null;break e}var k=0,C=-1,z=-1,j=0,G=0,K=e,$=null;t:for(;;){for(var te;K!==i||f!==0&&K.nodeType!==3||(C=k+f),K!==h||a!==0&&K.nodeType!==3||(z=k+a),K.nodeType===3&&(k+=K.nodeValue.length),(te=K.firstChild)!==null;)$=K,K=te;for(;;){if(K===e)break t;if($===i&&++j===f&&(C=k),$===h&&++G===a&&(z=k),(te=K.nextSibling)!==null)break;K=$,$=K.parentNode}K=te}i=C===-1||z===-1?null:{start:C,end:z}}else i=null}i=i||{start:0,end:0}}else i=null;for(Vc={focusedElem:e,selectionRange:i},Is=!1,ne=r;ne!==null;)if(r=ne,e=r.child,(r.subtreeFlags&1028)!==0&&e!==null)e.return=r,ne=e;else for(;ne!==null;){r=ne;try{var ie=r.alternate;if((r.flags&1024)!==0)switch(r.tag){case 0:case 11:case 15:break;case 1:if(ie!==null){var se=ie.memoizedProps,Je=ie.memoizedState,I=r.stateNode,P=I.getSnapshotBeforeUpdate(r.elementType===r.type?se:cr(r.type,se),Je);I.__reactInternalSnapshotBeforeUpdate=P}break;case 3:var D=r.stateNode.containerInfo;D.nodeType===1?D.textContent="":D.nodeType===9&&D.documentElement&&D.removeChild(D.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(X){Ge(r,r.return,X)}if(e=r.sibling,e!==null){e.return=r.return,ne=e;break}ne=r.return}return ie=Dv,Dv=!1,ie}function ki(e,r,i){var a=r.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var f=a=a.next;do{if((f.tag&e)===e){var h=f.destroy;f.destroy=void 0,h!==void 0&&Ru(r,i,h)}f=f.next}while(f!==a)}}function ml(e,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.create;i.destroy=a()}i=i.next}while(i!==r)}}function Fu(e){var r=e.ref;if(r!==null){var i=e.stateNode;switch(e.tag){case 5:e=i;break;default:e=i}typeof r=="function"?r(e):r.current=e}}function jv(e){var r=e.alternate;r!==null&&(e.alternate=null,jv(r)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(r=e.stateNode,r!==null&&(delete r[kr],delete r[ui],delete r[Xc],delete r[j3],delete r[O3])),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 Ov(e){return e.tag===5||e.tag===3||e.tag===4}function Av(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ov(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 Iu(e,r,i){var a=e.tag;if(a===5||a===6)e=e.stateNode,r?i.nodeType===8?i.parentNode.insertBefore(e,r):i.insertBefore(e,r):(i.nodeType===8?(r=i.parentNode,r.insertBefore(e,i)):(r=i,r.appendChild(e)),i=i._reactRootContainer,i!=null||r.onclick!==null||(r.onclick=Us));else if(a!==4&&(e=e.child,e!==null))for(Iu(e,r,i),e=e.sibling;e!==null;)Iu(e,r,i),e=e.sibling}function Du(e,r,i){var a=e.tag;if(a===5||a===6)e=e.stateNode,r?i.insertBefore(e,r):i.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(Du(e,r,i),e=e.sibling;e!==null;)Du(e,r,i),e=e.sibling}var ct=null,ur=!1;function ao(e,r,i){for(i=i.child;i!==null;)Lv(e,r,i),i=i.sibling}function Lv(e,r,i){if(wr&&typeof wr.onCommitFiberUnmount=="function")try{wr.onCommitFiberUnmount(Ts,i)}catch{}switch(i.tag){case 5:bt||vn(i,r);case 6:var a=ct,f=ur;ct=null,ao(e,r,i),ct=a,ur=f,ct!==null&&(ur?(e=ct,i=i.stateNode,e.nodeType===8?e.parentNode.removeChild(i):e.removeChild(i)):ct.removeChild(i.stateNode));break;case 18:ct!==null&&(ur?(e=ct,i=i.stateNode,e.nodeType===8?Kc(e.parentNode,i):e.nodeType===1&&Kc(e,i),Zn(e)):Kc(ct,i.stateNode));break;case 4:a=ct,f=ur,ct=i.stateNode.containerInfo,ur=!0,ao(e,r,i),ct=a,ur=f;break;case 0:case 11:case 14:case 15:if(!bt&&(a=i.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){f=a=a.next;do{var h=f,k=h.destroy;h=h.tag,k!==void 0&&((h&2)!==0||(h&4)!==0)&&Ru(i,r,k),f=f.next}while(f!==a)}ao(e,r,i);break;case 1:if(!bt&&(vn(i,r),a=i.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=i.memoizedProps,a.state=i.memoizedState,a.componentWillUnmount()}catch(C){Ge(i,r,C)}ao(e,r,i);break;case 21:ao(e,r,i);break;case 22:i.mode&1?(bt=(a=bt)||i.memoizedState!==null,ao(e,r,i),bt=a):ao(e,r,i);break;default:ao(e,r,i)}}function Mv(e){var r=e.updateQueue;if(r!==null){e.updateQueue=null;var i=e.stateNode;i===null&&(i=e.stateNode=new Z3),r.forEach(function(a){var f=c5.bind(null,e,a);i.has(a)||(i.add(a),a.then(f,f))})}}function dr(e,r){var i=r.deletions;if(i!==null)for(var a=0;a<i.length;a++){var f=i[a];try{var h=e,k=r,C=k;e:for(;C!==null;){switch(C.tag){case 5:ct=C.stateNode,ur=!1;break e;case 3:ct=C.stateNode.containerInfo,ur=!0;break e;case 4:ct=C.stateNode.containerInfo,ur=!0;break e}C=C.return}if(ct===null)throw Error(n(160));Lv(h,k,f),ct=null,ur=!1;var z=f.alternate;z!==null&&(z.return=null),f.return=null}catch(j){Ge(f,r,j)}}if(r.subtreeFlags&12854)for(r=r.child;r!==null;)qv(r,e),r=r.sibling}function qv(e,r){var i=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(dr(r,e),Sr(e),a&4){try{ki(3,e,e.return),ml(3,e)}catch(se){Ge(e,e.return,se)}try{ki(5,e,e.return)}catch(se){Ge(e,e.return,se)}}break;case 1:dr(r,e),Sr(e),a&512&&i!==null&&vn(i,i.return);break;case 5:if(dr(r,e),Sr(e),a&512&&i!==null&&vn(i,i.return),e.flags&32){var f=e.stateNode;try{Hn(f,"")}catch(se){Ge(e,e.return,se)}}if(a&4&&(f=e.stateNode,f!=null)){var h=e.memoizedProps,k=i!==null?i.memoizedProps:h,C=e.type,z=e.updateQueue;if(e.updateQueue=null,z!==null)try{C==="input"&&h.type==="radio"&&h.name!=null&&mm(f,h),fc(C,k);var j=fc(C,h);for(k=0;k<z.length;k+=2){var G=z[k],K=z[k+1];G==="style"?_m(f,K):G==="dangerouslySetInnerHTML"?km(f,K):G==="children"?Hn(f,K):B(f,G,K,j)}switch(C){case"input":lc(f,h);break;case"textarea":bm(f,h);break;case"select":var $=f._wrapperState.wasMultiple;f._wrapperState.wasMultiple=!!h.multiple;var te=h.value;te!=null?Xo(f,!!h.multiple,te,!1):$!==!!h.multiple&&(h.defaultValue!=null?Xo(f,!!h.multiple,h.defaultValue,!0):Xo(f,!!h.multiple,h.multiple?[]:"",!1))}f[ui]=h}catch(se){Ge(e,e.return,se)}}break;case 6:if(dr(r,e),Sr(e),a&4){if(e.stateNode===null)throw Error(n(162));f=e.stateNode,h=e.memoizedProps;try{f.nodeValue=h}catch(se){Ge(e,e.return,se)}}break;case 3:if(dr(r,e),Sr(e),a&4&&i!==null&&i.memoizedState.isDehydrated)try{Zn(r.containerInfo)}catch(se){Ge(e,e.return,se)}break;case 4:dr(r,e),Sr(e);break;case 13:dr(r,e),Sr(e),f=e.child,f.flags&8192&&(h=f.memoizedState!==null,f.stateNode.isHidden=h,!h||f.alternate!==null&&f.alternate.memoizedState!==null||(Au=Ye())),a&4&&Mv(e);break;case 22:if(G=i!==null&&i.memoizedState!==null,e.mode&1?(bt=(j=bt)||G,dr(r,e),bt=j):dr(r,e),Sr(e),a&8192){if(j=e.memoizedState!==null,(e.stateNode.isHidden=j)&&!G&&(e.mode&1)!==0)for(ne=e,G=e.child;G!==null;){for(K=ne=G;ne!==null;){switch($=ne,te=$.child,$.tag){case 0:case 11:case 14:case 15:ki(4,$,$.return);break;case 1:vn($,$.return);var ie=$.stateNode;if(typeof ie.componentWillUnmount=="function"){a=$,i=$.return;try{r=a,ie.props=r.memoizedProps,ie.state=r.memoizedState,ie.componentWillUnmount()}catch(se){Ge(a,i,se)}}break;case 5:vn($,$.return);break;case 22:if($.memoizedState!==null){$v(K);continue}}te!==null?(te.return=$,ne=te):$v(K)}G=G.sibling}e:for(G=null,K=e;;){if(K.tag===5){if(G===null){G=K;try{f=K.stateNode,j?(h=f.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none"):(C=K.stateNode,z=K.memoizedProps.style,k=z!=null&&z.hasOwnProperty("display")?z.display:null,C.style.display=xm("display",k))}catch(se){Ge(e,e.return,se)}}}else if(K.tag===6){if(G===null)try{K.stateNode.nodeValue=j?"":K.memoizedProps}catch(se){Ge(e,e.return,se)}}else if((K.tag!==22&&K.tag!==23||K.memoizedState===null||K===e)&&K.child!==null){K.child.return=K,K=K.child;continue}if(K===e)break e;for(;K.sibling===null;){if(K.return===null||K.return===e)break e;G===K&&(G=null),K=K.return}G===K&&(G=null),K.sibling.return=K.return,K=K.sibling}}break;case 19:dr(r,e),Sr(e),a&4&&Mv(e);break;case 21:break;default:dr(r,e),Sr(e)}}function Sr(e){var r=e.flags;if(r&2){try{e:{for(var i=e.return;i!==null;){if(Ov(i)){var a=i;break e}i=i.return}throw Error(n(160))}switch(a.tag){case 5:var f=a.stateNode;a.flags&32&&(Hn(f,""),a.flags&=-33);var h=Av(e);Du(e,h,f);break;case 3:case 4:var k=a.stateNode.containerInfo,C=Av(e);Iu(e,C,k);break;default:throw Error(n(161))}}catch(z){Ge(e,e.return,z)}e.flags&=-3}r&4096&&(e.flags&=-4097)}function t5(e,r,i){ne=e,Hv(e)}function Hv(e,r,i){for(var a=(e.mode&1)!==0;ne!==null;){var f=ne,h=f.child;if(f.tag===22&&a){var k=f.memoizedState!==null||hl;if(!k){var C=f.alternate,z=C!==null&&C.memoizedState!==null||bt;C=hl;var j=bt;if(hl=k,(bt=z)&&!j)for(ne=f;ne!==null;)k=ne,z=k.child,k.tag===22&&k.memoizedState!==null?Vv(f):z!==null?(z.return=k,ne=z):Vv(f);for(;h!==null;)ne=h,Hv(h),h=h.sibling;ne=f,hl=C,bt=j}Wv(e)}else(f.subtreeFlags&8772)!==0&&h!==null?(h.return=f,ne=h):Wv(e)}}function Wv(e){for(;ne!==null;){var r=ne;if((r.flags&8772)!==0){var i=r.alternate;try{if((r.flags&8772)!==0)switch(r.tag){case 0:case 11:case 15:bt||ml(5,r);break;case 1:var a=r.stateNode;if(r.flags&4&&!bt)if(i===null)a.componentDidMount();else{var f=r.elementType===r.type?i.memoizedProps:cr(r.type,i.memoizedProps);a.componentDidUpdate(f,i.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var h=r.updateQueue;h!==null&&$g(r,h,a);break;case 3:var k=r.updateQueue;if(k!==null){if(i=null,r.child!==null)switch(r.child.tag){case 5:i=r.child.stateNode;break;case 1:i=r.child.stateNode}$g(r,k,i)}break;case 5:var C=r.stateNode;if(i===null&&r.flags&4){i=C;var z=r.memoizedProps;switch(r.type){case"button":case"input":case"select":case"textarea":z.autoFocus&&i.focus();break;case"img":z.src&&(i.src=z.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(r.memoizedState===null){var j=r.alternate;if(j!==null){var G=j.memoizedState;if(G!==null){var K=G.dehydrated;K!==null&&Zn(K)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}bt||r.flags&512&&Fu(r)}catch($){Ge(r,r.return,$)}}if(r===e){ne=null;break}if(i=r.sibling,i!==null){i.return=r.return,ne=i;break}ne=r.return}}function $v(e){for(;ne!==null;){var r=ne;if(r===e){ne=null;break}var i=r.sibling;if(i!==null){i.return=r.return,ne=i;break}ne=r.return}}function Vv(e){for(;ne!==null;){var r=ne;try{switch(r.tag){case 0:case 11:case 15:var i=r.return;try{ml(4,r)}catch(z){Ge(r,i,z)}break;case 1:var a=r.stateNode;if(typeof a.componentDidMount=="function"){var f=r.return;try{a.componentDidMount()}catch(z){Ge(r,f,z)}}var h=r.return;try{Fu(r)}catch(z){Ge(r,h,z)}break;case 5:var k=r.return;try{Fu(r)}catch(z){Ge(r,k,z)}}}catch(z){Ge(r,r.return,z)}if(r===e){ne=null;break}var C=r.sibling;if(C!==null){C.return=r.return,ne=C;break}ne=r.return}}var r5=Math.ceil,gl=T.ReactCurrentDispatcher,ju=T.ReactCurrentOwner,Yt=T.ReactCurrentBatchConfig,_e=0,st=null,et=null,ut=0,Mt=0,bn=oo(0),ot=0,xi=null,To=0,vl=0,Ou=0,_i=null,Pt=null,Au=0,yn=1/0,Mr=null,bl=!1,Lu=null,co=null,yl=!1,uo=null,wl=0,Si=0,Mu=null,kl=-1,xl=0;function kt(){return(_e&6)!==0?Ye():kl!==-1?kl:kl=Ye()}function fo(e){return(e.mode&1)===0?1:(_e&2)!==0&&ut!==0?ut&-ut:L3.transition!==null?(xl===0&&(xl=Am()),xl):(e=Pe,e!==0||(e=window.event,e=e===void 0?16:Gm(e.type)),e)}function fr(e,r,i,a){if(50<Si)throw Si=0,Mu=null,Error(n(185));Kn(e,i,a),((_e&2)===0||e!==st)&&(e===st&&((_e&2)===0&&(vl|=i),ot===4&&po(e,ut)),Rt(e,a),i===1&&_e===0&&(r.mode&1)===0&&(yn=Ye()+500,Qs&&io()))}function Rt(e,r){var i=e.callbackNode;LB(e,r);var a=Ps(e,e===st?ut:0);if(a===0)i!==null&&Dm(i),e.callbackNode=null,e.callbackPriority=0;else if(r=a&-a,e.callbackPriority!==r){if(i!=null&&Dm(i),r===1)e.tag===0?A3(Gv.bind(null,e)):Rg(Gv.bind(null,e)),I3(function(){(_e&6)===0&&io()}),i=null;else{switch(Lm(a)){case 1:i=yc;break;case 4:i=jm;break;case 16:i=Ns;break;case 536870912:i=Om;break;default:i=Ns}i=t0(i,Uv.bind(null,e))}e.callbackPriority=r,e.callbackNode=i}}function Uv(e,r){if(kl=-1,xl=0,(_e&6)!==0)throw Error(n(327));var i=e.callbackNode;if(wn()&&e.callbackNode!==i)return null;var a=Ps(e,e===st?ut:0);if(a===0)return null;if((a&30)!==0||(a&e.expiredLanes)!==0||r)r=_l(e,a);else{r=a;var f=_e;_e|=2;var h=Xv();(st!==e||ut!==r)&&(Mr=null,yn=Ye()+500,zo(e,r));do try{i5();break}catch(C){Kv(e,C)}while(!0);nu(),gl.current=h,_e=f,et!==null?r=0:(st=null,ut=0,r=ot)}if(r!==0){if(r===2&&(f=wc(e),f!==0&&(a=f,r=qu(e,f))),r===1)throw i=xi,zo(e,0),po(e,a),Rt(e,Ye()),i;if(r===6)po(e,a);else{if(f=e.current.alternate,(a&30)===0&&!o5(f)&&(r=_l(e,a),r===2&&(h=wc(e),h!==0&&(a=h,r=qu(e,h))),r===1))throw i=xi,zo(e,0),po(e,a),Rt(e,Ye()),i;switch(e.finishedWork=f,e.finishedLanes=a,r){case 0:case 1:throw Error(n(345));case 2:Po(e,Pt,Mr);break;case 3:if(po(e,a),(a&130023424)===a&&(r=Au+500-Ye(),10<r)){if(Ps(e,0)!==0)break;if(f=e.suspendedLanes,(f&a)!==a){kt(),e.pingedLanes|=e.suspendedLanes&f;break}e.timeoutHandle=Gc(Po.bind(null,e,Pt,Mr),r);break}Po(e,Pt,Mr);break;case 4:if(po(e,a),(a&4194240)===a)break;for(r=e.eventTimes,f=-1;0<a;){var k=31-sr(a);h=1<<k,k=r[k],k>f&&(f=k),a&=~h}if(a=f,a=Ye()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*r5(a/1960))-a,10<a){e.timeoutHandle=Gc(Po.bind(null,e,Pt,Mr),a);break}Po(e,Pt,Mr);break;case 5:Po(e,Pt,Mr);break;default:throw Error(n(329))}}}return Rt(e,Ye()),e.callbackNode===i?Uv.bind(null,e):null}function qu(e,r){var i=_i;return e.current.memoizedState.isDehydrated&&(zo(e,r).flags|=256),e=_l(e,r),e!==2&&(r=Pt,Pt=i,r!==null&&Hu(r)),e}function Hu(e){Pt===null?Pt=e:Pt.push.apply(Pt,e)}function o5(e){for(var r=e;;){if(r.flags&16384){var i=r.updateQueue;if(i!==null&&(i=i.stores,i!==null))for(var a=0;a<i.length;a++){var f=i[a],h=f.getSnapshot;f=f.value;try{if(!lr(h(),f))return!1}catch{return!1}}}if(i=r.child,r.subtreeFlags&16384&&i!==null)i.return=r,r=i;else{if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function po(e,r){for(r&=~Ou,r&=~vl,e.suspendedLanes|=r,e.pingedLanes&=~r,e=e.expirationTimes;0<r;){var i=31-sr(r),a=1<<i;e[i]=-1,r&=~a}}function Gv(e){if((_e&6)!==0)throw Error(n(327));wn();var r=Ps(e,0);if((r&1)===0)return Rt(e,Ye()),null;var i=_l(e,r);if(e.tag!==0&&i===2){var a=wc(e);a!==0&&(r=a,i=qu(e,a))}if(i===1)throw i=xi,zo(e,0),po(e,r),Rt(e,Ye()),i;if(i===6)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=r,Po(e,Pt,Mr),Rt(e,Ye()),null}function Wu(e,r){var i=_e;_e|=1;try{return e(r)}finally{_e=i,_e===0&&(yn=Ye()+500,Qs&&io())}}function Eo(e){uo!==null&&uo.tag===0&&(_e&6)===0&&wn();var r=_e;_e|=1;var i=Yt.transition,a=Pe;try{if(Yt.transition=null,Pe=1,e)return e()}finally{Pe=a,Yt.transition=i,_e=r,(_e&6)===0&&io()}}function $u(){Mt=bn.current,Ae(bn)}function zo(e,r){e.finishedWork=null,e.finishedLanes=0;var i=e.timeoutHandle;if(i!==-1&&(e.timeoutHandle=-1,F3(i)),et!==null)for(i=et.return;i!==null;){var a=i;switch(Zc(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&Ks();break;case 3:mn(),Ae(Tt),Ae(mt),fu();break;case 5:uu(a);break;case 4:mn();break;case 13:Ae(We);break;case 19:Ae(We);break;case 10:iu(a.type._context);break;case 22:case 23:$u()}i=i.return}if(st=e,et=e=ho(e.current,null),ut=Mt=r,ot=0,xi=null,Ou=vl=To=0,Pt=_i=null,Co!==null){for(r=0;r<Co.length;r++)if(i=Co[r],a=i.interleaved,a!==null){i.interleaved=null;var f=a.next,h=i.pending;if(h!==null){var k=h.next;h.next=f,a.next=k}i.pending=a}Co=null}return e}function Kv(e,r){do{var i=et;try{if(nu(),sl.current=ul,ll){for(var a=$e.memoizedState;a!==null;){var f=a.queue;f!==null&&(f.pending=null),a=a.next}ll=!1}if(No=0,it=rt=$e=null,gi=!1,vi=0,ju.current=null,i===null||i.return===null){ot=1,xi=r,et=null;break}e:{var h=e,k=i.return,C=i,z=r;if(r=ut,C.flags|=32768,z!==null&&typeof z=="object"&&typeof z.then=="function"){var j=z,G=C,K=G.tag;if((G.mode&1)===0&&(K===0||K===11||K===15)){var $=G.alternate;$?(G.updateQueue=$.updateQueue,G.memoizedState=$.memoizedState,G.lanes=$.lanes):(G.updateQueue=null,G.memoizedState=null)}var te=yv(k);if(te!==null){te.flags&=-257,wv(te,k,C,h,r),te.mode&1&&bv(h,j,r),r=te,z=j;var ie=r.updateQueue;if(ie===null){var se=new Set;se.add(z),r.updateQueue=se}else ie.add(z);break e}else{if((r&1)===0){bv(h,j,r),Vu();break e}z=Error(n(426))}}else if(Me&&C.mode&1){var Je=yv(k);if(Je!==null){(Je.flags&65536)===0&&(Je.flags|=256),wv(Je,k,C,h,r),ru(gn(z,C));break e}}h=z=gn(z,C),ot!==4&&(ot=2),_i===null?_i=[h]:_i.push(h),h=k;do{switch(h.tag){case 3:h.flags|=65536,r&=-r,h.lanes|=r;var I=gv(h,z,r);Wg(h,I);break e;case 1:C=z;var P=h.type,D=h.stateNode;if((h.flags&128)===0&&(typeof P.getDerivedStateFromError=="function"||D!==null&&typeof D.componentDidCatch=="function"&&(co===null||!co.has(D)))){h.flags|=65536,r&=-r,h.lanes|=r;var X=vv(h,C,r);Wg(h,X);break e}}h=h.return}while(h!==null)}Yv(i)}catch(ae){r=ae,et===i&&i!==null&&(et=i=i.return);continue}break}while(!0)}function Xv(){var e=gl.current;return gl.current=ul,e===null?ul:e}function Vu(){(ot===0||ot===3||ot===2)&&(ot=4),st===null||(To&268435455)===0&&(vl&268435455)===0||po(st,ut)}function _l(e,r){var i=_e;_e|=2;var a=Xv();(st!==e||ut!==r)&&(Mr=null,zo(e,r));do try{n5();break}catch(f){Kv(e,f)}while(!0);if(nu(),_e=i,gl.current=a,et!==null)throw Error(n(261));return st=null,ut=0,ot}function n5(){for(;et!==null;)Qv(et)}function i5(){for(;et!==null&&!zB();)Qv(et)}function Qv(e){var r=e0(e.alternate,e,Mt);e.memoizedProps=e.pendingProps,r===null?Yv(e):et=r,ju.current=null}function Yv(e){var r=e;do{var i=r.alternate;if(e=r.return,(r.flags&32768)===0){if(i=Y3(i,r,Mt),i!==null){et=i;return}}else{if(i=J3(i,r),i!==null){i.flags&=32767,et=i;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ot=6,et=null;return}}if(r=r.sibling,r!==null){et=r;return}et=r=e}while(r!==null);ot===0&&(ot=5)}function Po(e,r,i){var a=Pe,f=Yt.transition;try{Yt.transition=null,Pe=1,s5(e,r,i,a)}finally{Yt.transition=f,Pe=a}return null}function s5(e,r,i,a){do wn();while(uo!==null);if((_e&6)!==0)throw Error(n(327));i=e.finishedWork;var f=e.finishedLanes;if(i===null)return null;if(e.finishedWork=null,e.finishedLanes=0,i===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var h=i.lanes|i.childLanes;if(MB(e,h),e===st&&(et=st=null,ut=0),(i.subtreeFlags&2064)===0&&(i.flags&2064)===0||yl||(yl=!0,t0(Ns,function(){return wn(),null})),h=(i.flags&15990)!==0,(i.subtreeFlags&15990)!==0||h){h=Yt.transition,Yt.transition=null;var k=Pe;Pe=1;var C=_e;_e|=4,ju.current=null,e5(e,i),qv(i,e),B3(Vc),Is=!!$c,Vc=$c=null,e.current=i,t5(i),PB(),_e=C,Pe=k,Yt.transition=h}else e.current=i;if(yl&&(yl=!1,uo=e,wl=f),h=e.pendingLanes,h===0&&(co=null),IB(i.stateNode),Rt(e,Ye()),r!==null)for(a=e.onRecoverableError,i=0;i<r.length;i++)f=r[i],a(f.value,{componentStack:f.stack,digest:f.digest});if(bl)throw bl=!1,e=Lu,Lu=null,e;return(wl&1)!==0&&e.tag!==0&&wn(),h=e.pendingLanes,(h&1)!==0?e===Mu?Si++:(Si=0,Mu=e):Si=0,io(),null}function wn(){if(uo!==null){var e=Lm(wl),r=Yt.transition,i=Pe;try{if(Yt.transition=null,Pe=16>e?16:e,uo===null)var a=!1;else{if(e=uo,uo=null,wl=0,(_e&6)!==0)throw Error(n(331));var f=_e;for(_e|=4,ne=e.current;ne!==null;){var h=ne,k=h.child;if((ne.flags&16)!==0){var C=h.deletions;if(C!==null){for(var z=0;z<C.length;z++){var j=C[z];for(ne=j;ne!==null;){var G=ne;switch(G.tag){case 0:case 11:case 15:ki(8,G,h)}var K=G.child;if(K!==null)K.return=G,ne=K;else for(;ne!==null;){G=ne;var $=G.sibling,te=G.return;if(jv(G),G===j){ne=null;break}if($!==null){$.return=te,ne=$;break}ne=te}}}var ie=h.alternate;if(ie!==null){var se=ie.child;if(se!==null){ie.child=null;do{var Je=se.sibling;se.sibling=null,se=Je}while(se!==null)}}ne=h}}if((h.subtreeFlags&2064)!==0&&k!==null)k.return=h,ne=k;else e:for(;ne!==null;){if(h=ne,(h.flags&2048)!==0)switch(h.tag){case 0:case 11:case 15:ki(9,h,h.return)}var I=h.sibling;if(I!==null){I.return=h.return,ne=I;break e}ne=h.return}}var P=e.current;for(ne=P;ne!==null;){k=ne;var D=k.child;if((k.subtreeFlags&2064)!==0&&D!==null)D.return=k,ne=D;else e:for(k=P;ne!==null;){if(C=ne,(C.flags&2048)!==0)try{switch(C.tag){case 0:case 11:case 15:ml(9,C)}}catch(ae){Ge(C,C.return,ae)}if(C===k){ne=null;break e}var X=C.sibling;if(X!==null){X.return=C.return,ne=X;break e}ne=C.return}}if(_e=f,io(),wr&&typeof wr.onPostCommitFiberRoot=="function")try{wr.onPostCommitFiberRoot(Ts,e)}catch{}a=!0}return a}finally{Pe=i,Yt.transition=r}}return!1}function Jv(e,r,i){r=gn(i,r),r=gv(e,r,1),e=lo(e,r,1),r=kt(),e!==null&&(Kn(e,1,r),Rt(e,r))}function Ge(e,r,i){if(e.tag===3)Jv(e,e,i);else for(;r!==null;){if(r.tag===3){Jv(r,e,i);break}else if(r.tag===1){var a=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(co===null||!co.has(a))){e=gn(i,e),e=vv(r,e,1),r=lo(r,e,1),e=kt(),r!==null&&(Kn(r,1,e),Rt(r,e));break}}r=r.return}}function l5(e,r,i){var a=e.pingCache;a!==null&&a.delete(r),r=kt(),e.pingedLanes|=e.suspendedLanes&i,st===e&&(ut&i)===i&&(ot===4||ot===3&&(ut&130023424)===ut&&500>Ye()-Au?zo(e,0):Ou|=i),Rt(e,r)}function Zv(e,r){r===0&&((e.mode&1)===0?r=1:(r=zs,zs<<=1,(zs&130023424)===0&&(zs=4194304)));var i=kt();e=Or(e,r),e!==null&&(Kn(e,r,i),Rt(e,i))}function a5(e){var r=e.memoizedState,i=0;r!==null&&(i=r.retryLane),Zv(e,i)}function c5(e,r){var i=0;switch(e.tag){case 13:var a=e.stateNode,f=e.memoizedState;f!==null&&(i=f.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(n(314))}a!==null&&a.delete(r),Zv(e,i)}var e0;e0=function(e,r,i){if(e!==null)if(e.memoizedProps!==r.pendingProps||Tt.current)zt=!0;else{if((e.lanes&i)===0&&(r.flags&128)===0)return zt=!1,Q3(e,r,i);zt=(e.flags&131072)!==0}else zt=!1,Me&&(r.flags&1048576)!==0&&Fg(r,Js,r.index);switch(r.lanes=0,r.tag){case 2:var a=r.type;pl(e,r),e=r.pendingProps;var f=an(r,mt.current);hn(r,i),f=mu(null,r,a,e,f,i);var h=gu();return r.flags|=1,typeof f=="object"&&f!==null&&typeof f.render=="function"&&f.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,Et(a)?(h=!0,Xs(r)):h=!1,r.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,au(r),f.updater=dl,r.stateNode=f,f._reactInternals=r,xu(r,a,e,i),r=Bu(null,r,a,!0,h,i)):(r.tag=0,Me&&h&&Jc(r),wt(null,r,f,i),r=r.child),r;case 16:a=r.elementType;e:{switch(pl(e,r),e=r.pendingProps,f=a._init,a=f(a._payload),r.type=a,f=r.tag=d5(a),e=cr(a,e),f){case 0:r=Cu(null,r,a,e,i);break e;case 1:r=Bv(null,r,a,e,i);break e;case 11:r=kv(null,r,a,e,i);break e;case 14:r=xv(null,r,a,cr(a.type,e),i);break e}throw Error(n(306,a,""))}return r;case 0:return a=r.type,f=r.pendingProps,f=r.elementType===a?f:cr(a,f),Cu(e,r,a,f,i);case 1:return a=r.type,f=r.pendingProps,f=r.elementType===a?f:cr(a,f),Bv(e,r,a,f,i);case 3:e:{if(Nv(r),e===null)throw Error(n(387));a=r.pendingProps,h=r.memoizedState,f=h.element,Hg(e,r),nl(r,a,null,i);var k=r.memoizedState;if(a=k.element,h.isDehydrated)if(h={element:a,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},r.updateQueue.baseState=h,r.memoizedState=h,r.flags&256){f=gn(Error(n(423)),r),r=Tv(e,r,a,i,f);break e}else if(a!==f){f=gn(Error(n(424)),r),r=Tv(e,r,a,i,f);break e}else for(Lt=ro(r.stateNode.containerInfo.firstChild),At=r,Me=!0,ar=null,i=Mg(r,null,a,i),r.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(dn(),a===f){r=Lr(e,r,i);break e}wt(e,r,a,i)}r=r.child}return r;case 5:return Vg(r),e===null&&tu(r),a=r.type,f=r.pendingProps,h=e!==null?e.memoizedProps:null,k=f.children,Uc(a,f)?k=null:h!==null&&Uc(a,h)&&(r.flags|=32),Cv(e,r),wt(e,r,k,i),r.child;case 6:return e===null&&tu(r),null;case 13:return Ev(e,r,i);case 4:return cu(r,r.stateNode.containerInfo),a=r.pendingProps,e===null?r.child=fn(r,null,a,i):wt(e,r,a,i),r.child;case 11:return a=r.type,f=r.pendingProps,f=r.elementType===a?f:cr(a,f),kv(e,r,a,f,i);case 7:return wt(e,r,r.pendingProps,i),r.child;case 8:return wt(e,r,r.pendingProps.children,i),r.child;case 12:return wt(e,r,r.pendingProps.children,i),r.child;case 10:e:{if(a=r.type._context,f=r.pendingProps,h=r.memoizedProps,k=f.value,je(tl,a._currentValue),a._currentValue=k,h!==null)if(lr(h.value,k)){if(h.children===f.children&&!Tt.current){r=Lr(e,r,i);break e}}else for(h=r.child,h!==null&&(h.return=r);h!==null;){var C=h.dependencies;if(C!==null){k=h.child;for(var z=C.firstContext;z!==null;){if(z.context===a){if(h.tag===1){z=Ar(-1,i&-i),z.tag=2;var j=h.updateQueue;if(j!==null){j=j.shared;var G=j.pending;G===null?z.next=z:(z.next=G.next,G.next=z),j.pending=z}}h.lanes|=i,z=h.alternate,z!==null&&(z.lanes|=i),su(h.return,i,r),C.lanes|=i;break}z=z.next}}else if(h.tag===10)k=h.type===r.type?null:h.child;else if(h.tag===18){if(k=h.return,k===null)throw Error(n(341));k.lanes|=i,C=k.alternate,C!==null&&(C.lanes|=i),su(k,i,r),k=h.sibling}else k=h.child;if(k!==null)k.return=h;else for(k=h;k!==null;){if(k===r){k=null;break}if(h=k.sibling,h!==null){h.return=k.return,k=h;break}k=k.return}h=k}wt(e,r,f.children,i),r=r.child}return r;case 9:return f=r.type,a=r.pendingProps.children,hn(r,i),f=Xt(f),a=a(f),r.flags|=1,wt(e,r,a,i),r.child;case 14:return a=r.type,f=cr(a,r.pendingProps),f=cr(a.type,f),xv(e,r,a,f,i);case 15:return _v(e,r,r.type,r.pendingProps,i);case 17:return a=r.type,f=r.pendingProps,f=r.elementType===a?f:cr(a,f),pl(e,r),r.tag=1,Et(a)?(e=!0,Xs(r)):e=!1,hn(r,i),hv(r,a,f),xu(r,a,f,i),Bu(null,r,a,!0,e,i);case 19:return Pv(e,r,i);case 22:return Sv(e,r,i)}throw Error(n(156,r.tag))};function t0(e,r){return Im(e,r)}function u5(e,r,i,a){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jt(e,r,i,a){return new u5(e,r,i,a)}function Uu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function d5(e){if(typeof e=="function")return Uu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ee)return 11;if(e===ge)return 14}return 2}function ho(e,r){var i=e.alternate;return i===null?(i=Jt(e.tag,r,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=r,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&14680064,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,r=e.dependencies,i.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i}function Sl(e,r,i,a,f,h){var k=2;if(a=e,typeof e=="function")Uu(e)&&(k=1);else if(typeof e=="string")k=5;else e:switch(e){case L:return Ro(i.children,f,h,r);case W:k=8,f|=8;break;case H:return e=Jt(12,i,r,f|2),e.elementType=H,e.lanes=h,e;case M:return e=Jt(13,i,r,f),e.elementType=M,e.lanes=h,e;case J:return e=Jt(19,i,r,f),e.elementType=J,e.lanes=h,e;case ue:return Cl(i,f,h,r);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:k=10;break e;case ce:k=9;break e;case ee:k=11;break e;case ge:k=14;break e;case ve:k=16,a=null;break e}throw Error(n(130,e==null?e:typeof e,""))}return r=Jt(k,i,r,f),r.elementType=e,r.type=a,r.lanes=h,r}function Ro(e,r,i,a){return e=Jt(7,e,a,r),e.lanes=i,e}function Cl(e,r,i,a){return e=Jt(22,e,a,r),e.elementType=ue,e.lanes=i,e.stateNode={isHidden:!1},e}function Gu(e,r,i){return e=Jt(6,e,null,r),e.lanes=i,e}function Ku(e,r,i){return r=Jt(4,e.children!==null?e.children:[],e.key,r),r.lanes=i,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}function f5(e,r,i,a,f){this.tag=r,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=kc(0),this.expirationTimes=kc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kc(0),this.identifierPrefix=a,this.onRecoverableError=f,this.mutableSourceEagerHydrationData=null}function Xu(e,r,i,a,f,h,k,C,z){return e=new f5(e,r,i,C,z),r===1?(r=1,h===!0&&(r|=8)):r=0,h=Jt(3,null,null,r),e.current=h,h.stateNode=e,h.memoizedState={element:a,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},au(h),e}function p5(e,r,i){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:O,key:a==null?null:""+a,children:e,containerInfo:r,implementation:i}}function r0(e){if(!e)return no;e=e._reactInternals;e:{if(wo(e)!==e||e.tag!==1)throw Error(n(170));var r=e;do{switch(r.tag){case 3:r=r.stateNode.context;break e;case 1:if(Et(r.type)){r=r.stateNode.__reactInternalMemoizedMergedChildContext;break e}}r=r.return}while(r!==null);throw Error(n(171))}if(e.tag===1){var i=e.type;if(Et(i))return zg(e,i,r)}return r}function o0(e,r,i,a,f,h,k,C,z){return e=Xu(i,a,!0,e,f,h,k,C,z),e.context=r0(null),i=e.current,a=kt(),f=fo(i),h=Ar(a,f),h.callback=r??null,lo(i,h,f),e.current.lanes=f,Kn(e,f,a),Rt(e,a),e}function Bl(e,r,i,a){var f=r.current,h=kt(),k=fo(f);return i=r0(i),r.context===null?r.context=i:r.pendingContext=i,r=Ar(h,k),r.payload={element:e},a=a===void 0?null:a,a!==null&&(r.callback=a),e=lo(f,r,k),e!==null&&(fr(e,f,k,h),ol(e,f,k)),k}function Nl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function n0(e,r){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<r?i:r}}function Qu(e,r){n0(e,r),(e=e.alternate)&&n0(e,r)}function h5(){return null}var i0=typeof reportError=="function"?reportError:function(e){console.error(e)};function Yu(e){this._internalRoot=e}Tl.prototype.render=Yu.prototype.render=function(e){var r=this._internalRoot;if(r===null)throw Error(n(409));Bl(e,r,null,null)},Tl.prototype.unmount=Yu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var r=e.containerInfo;Eo(function(){Bl(null,e,null,null)}),r[Fr]=null}};function Tl(e){this._internalRoot=e}Tl.prototype.unstable_scheduleHydration=function(e){if(e){var r=Hm();e={blockedOn:null,target:e,priority:r};for(var i=0;i<Zr.length&&r!==0&&r<Zr[i].priority;i++);Zr.splice(i,0,e),i===0&&Vm(e)}};function Ju(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function El(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function s0(){}function m5(e,r,i,a,f){if(f){if(typeof a=="function"){var h=a;a=function(){var j=Nl(k);h.call(j)}}var k=o0(r,a,e,0,null,!1,!1,"",s0);return e._reactRootContainer=k,e[Fr]=k.current,ai(e.nodeType===8?e.parentNode:e),Eo(),k}for(;f=e.lastChild;)e.removeChild(f);if(typeof a=="function"){var C=a;a=function(){var j=Nl(z);C.call(j)}}var z=Xu(e,0,!1,null,null,!1,!1,"",s0);return e._reactRootContainer=z,e[Fr]=z.current,ai(e.nodeType===8?e.parentNode:e),Eo(function(){Bl(r,z,i,a)}),z}function zl(e,r,i,a,f){var h=i._reactRootContainer;if(h){var k=h;if(typeof f=="function"){var C=f;f=function(){var z=Nl(k);C.call(z)}}Bl(r,k,e,f)}else k=m5(i,r,e,f,a);return Nl(k)}Mm=function(e){switch(e.tag){case 3:var r=e.stateNode;if(r.current.memoizedState.isDehydrated){var i=Gn(r.pendingLanes);i!==0&&(xc(r,i|1),Rt(r,Ye()),(_e&6)===0&&(yn=Ye()+500,io()))}break;case 13:Eo(function(){var a=Or(e,1);if(a!==null){var f=kt();fr(a,e,1,f)}}),Qu(e,1)}},_c=function(e){if(e.tag===13){var r=Or(e,134217728);if(r!==null){var i=kt();fr(r,e,134217728,i)}Qu(e,134217728)}},qm=function(e){if(e.tag===13){var r=fo(e),i=Or(e,r);if(i!==null){var a=kt();fr(i,e,r,a)}Qu(e,r)}},Hm=function(){return Pe},Wm=function(e,r){var i=Pe;try{return Pe=e,r()}finally{Pe=i}},mc=function(e,r,i){switch(r){case"input":if(lc(e,i),r=i.name,i.type==="radio"&&r!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),r=0;r<i.length;r++){var a=i[r];if(a!==e&&a.form===e.form){var f=Gs(a);if(!f)throw Error(n(90));pm(a),lc(a,f)}}}break;case"textarea":bm(e,i);break;case"select":r=i.value,r!=null&&Xo(e,!!i.multiple,r,!1)}},Nm=Wu,Tm=Eo;var g5={usingClientEntryPoint:!1,Events:[di,sn,Gs,Cm,Bm,Wu]},Ci={findFiberByHostInstance:ko,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},v5={bundleType:Ci.bundleType,version:Ci.version,rendererPackageName:Ci.rendererPackageName,rendererConfig:Ci.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:T.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Rm(e),e===null?null:e.stateNode},findFiberByHostInstance:Ci.findFiberByHostInstance||h5,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 Pl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pl.isDisabled&&Pl.supportsFiber)try{Ts=Pl.inject(v5),wr=Pl}catch{}}return xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=g5,xt.createPortal=function(e,r){var i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ju(r))throw Error(n(200));return p5(e,r,null,i)},xt.createRoot=function(e,r){if(!Ju(e))throw Error(n(299));var i=!1,a="",f=i0;return r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(f=r.onRecoverableError)),r=Xu(e,1,!1,null,null,i,!1,a,f),e[Fr]=r.current,ai(e.nodeType===8?e.parentNode:e),new Yu(r)},xt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var r=e._reactInternals;if(r===void 0)throw typeof e.render=="function"?Error(n(188)):(e=Object.keys(e).join(","),Error(n(268,e)));return e=Rm(r),e=e===null?null:e.stateNode,e},xt.flushSync=function(e){return Eo(e)},xt.hydrate=function(e,r,i){if(!El(r))throw Error(n(200));return zl(null,e,r,!0,i)},xt.hydrateRoot=function(e,r,i){if(!Ju(e))throw Error(n(405));var a=i!=null&&i.hydratedSources||null,f=!1,h="",k=i0;if(i!=null&&(i.unstable_strictMode===!0&&(f=!0),i.identifierPrefix!==void 0&&(h=i.identifierPrefix),i.onRecoverableError!==void 0&&(k=i.onRecoverableError)),r=o0(r,null,e,1,i??null,f,!1,h,k),e[Fr]=r.current,ai(e),a)for(e=0;e<a.length;e++)i=a[e],f=i._getVersion,f=f(i._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[i,f]:r.mutableSourceEagerHydrationData.push(i,f);return new Tl(r)},xt.render=function(e,r,i){if(!El(r))throw Error(n(200));return zl(null,e,r,!1,i)},xt.unmountComponentAtNode=function(e){if(!El(e))throw Error(n(40));return e._reactRootContainer?(Eo(function(){zl(null,null,e,!1,function(){e._reactRootContainer=null,e[Fr]=null})}),!0):!1},xt.unstable_batchedUpdates=Wu,xt.unstable_renderSubtreeIntoContainer=function(e,r,i,a){if(!El(i))throw Error(n(200));if(e==null||e._reactInternals===void 0)throw Error(n(38));return zl(e,r,i,!1,a)},xt.version="18.3.1-next-f1338f8080-20240426",xt}var ud;function dd(){if(ud)return Dl.exports;ud=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(o){console.error(o)}}return t(),Dl.exports=p0(),Dl.exports}var fd;function h0(){if(fd)return Ti;fd=1;var t=dd();return Ti.createRoot=t.createRoot,Ti.hydrateRoot=t.hydrateRoot,Ti}var m0=h0();class g0{logCallback=null;setLogCallback(o){this.logCallback=o}log(o,n="info"){this.logCallback?this.logCallback(o,n):console.log(`[${n.toUpperCase()}] ${o}`)}info(o){this.log(o,"info")}success(o){this.log(o,"success")}warning(o){this.log(o,"warning")}error(o){this.log(o,"error")}}const Se=new g0,v0=async()=>(await xn("solutions?$select=solutionid,friendlyname,uniquename&$filter=isvisible eq true&$orderby=friendlyname asc")).map(n=>({solutionid:n.solutionid,friendlyname:n.friendlyname,uniquename:n.uniquename})),b0=async t=>{let s=(await xn("EntityDefinitions?$select=LogicalName,DisplayName,EntitySetName,DataProviderId&$filter=IsCustomizable/Value eq true")).filter(l=>!l.DataProviderId).map(l=>({logicalname:l.LogicalName,displayname:l.DisplayName?.UserLocalizedLabel?.Label||l.LogicalName,entitysetname:l.EntitySetName}));if(t){const l=await y0(t);s=s.filter(c=>l.includes(c.logicalname))}return s},y0=async t=>{const o=`solutioncomponents?$select=objectid&$filter=_solutionid_value eq ${t} and componenttype eq 1`,s=(await xn(o)).map(d=>d.objectid);return s.length===0?[]:(await xn("EntityDefinitions?$select=LogicalName,MetadataId&$filter=IsCustomizable/Value eq true")).filter(d=>s.includes(d.MetadataId)).map(d=>d.LogicalName)},w0=async()=>{try{const o=await xn("savedqueries?$select=savedqueryid,name,returnedtypecode,fetchxml&$filter=querytype eq 0&$orderby=returnedtypecode,name asc"),n=new Map;return o.forEach(s=>{const l={savedqueryid:s.savedqueryid,name:s.name,returnedtypecode:s.returnedtypecode,fetchxml:s.fetchxml},c=s.returnedtypecode;n.has(c)||n.set(c,[]),n.get(c).push(l)}),Se.info(`Loaded ${o.length} views for ${n.size} entities`),n}catch(t){return Se.error(`Error loading all views: ${t.message}`),new Map}},k0=async(t,o,n)=>{try{if(!o)return Se.info("No entity logical name provided"),0;if(n){Se.info(`Counting records for ${o} using view FetchXML with simple pagination`);let s=0,l=!0,c=1;for(;l;){let u=n;u=u.replace(/\spage=['"]?\d+['"]?/gi,""),u=u.replace(/\scount=['"]?\d+['"]?/gi,""),u=u.replace(/\spaging-cookie=['"][^'"]*['"]/gi,""),u=u.replace(/<fetch/i,`<fetch page="${c}" count="5000"`),Se.info(`Fetching page ${c} for ${o}...`);const d=`${t}?fetchXml=${encodeURIComponent(u)}`,m=(await window.dataverseAPI.queryData(d)).value?.length||0;if(s+=m,Se.info(`Page ${c} returned ${m} records (total: ${s})`),l=m===5e3,c++,c>1e3){Se.error(`Stopping pagination at 1000 pages for ${o}`);break}}return Se.info(`Final count result for ${o}: ${s}`),s}else return(await pd([o]))[o]||0}catch(s){return Se.error(`Error counting records for ${o}: ${s.message}`),0}},pd=async t=>{if(!t||t.length===0)return{};Se.info(`Counting records for ${t.length} entities using RetrieveTotalRecordCount batch`);const o=JSON.stringify(t),n=`RetrieveTotalRecordCount(EntityNames=@p)?@p=${encodeURIComponent(o)}`,l=(await window.dataverseAPI.queryData(n)).EntityRecordCountCollection,c={};if(l&&l.Keys&&l.Values)for(let u=0;u<l.Keys.length;u++){const d=l.Keys[u],p=l.Values[u]||0;c[d]=p,Se.info(`Count result for ${d}: ${p}`)}return c},xn=async t=>{const o=[];for(;t;){Se.info(`Fetching data from URL: ${t}`);let n=t;if(t.startsWith("http")){const l=new URL(t),c=/^\/api\/data\/v\d+\.\d+\//;n=l.pathname.replace(c,"")+l.search}Se.info(`Cleaned URL: ${n}`);const s=await window.dataverseAPI.queryData(n);o.push(...s.value),t=s["@odata.nextLink"]||null}return o},Al=typeof window>"u"?global:window,Ll="@griffel/";function x0(t,o){return Al[Symbol.for(Ll+t)]||(Al[Symbol.for(Ll+t)]=o),Al[Symbol.for(Ll+t)]}const Ml=x0("DEFINITION_LOOKUP_TABLE",{}),_n="data-make-styles-bucket",_0="data-priority",ql="f",Hl=7,Wl="___",S0=Wl.length+Hl,C0=0,B0=1,N0={all:1,borderColor:1,borderStyle:1,borderWidth:1,borderBlock:1,borderBlockEnd:1,borderBlockStart:1,borderInline:1,borderInlineEnd:1,borderInlineStart:1},$l="DO_NOT_USE_DIRECTLY: @griffel/reset-value";function Sn(t){for(var o=0,n,s=0,l=t.length;l>=4;++s,l-=4)n=t.charCodeAt(s)&255|(t.charCodeAt(++s)&255)<<8|(t.charCodeAt(++s)&255)<<16|(t.charCodeAt(++s)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,o=(n&65535)*1540483477+((n>>>16)*59797<<16)^(o&65535)*1540483477+((o>>>16)*59797<<16);switch(l){case 3:o^=(t.charCodeAt(s+2)&255)<<16;case 2:o^=(t.charCodeAt(s+1)&255)<<8;case 1:o^=t.charCodeAt(s)&255,o=(o&65535)*1540483477+((o>>>16)*59797<<16)}return o^=o>>>13,o=(o&65535)*1540483477+((o>>>16)*59797<<16),((o^o>>>15)>>>0).toString(36)}function T0(t){const o=t.length;if(o===Hl)return t;for(let n=o;n<Hl;n++)t+="0";return t}function hd(t,o,n=[]){return Wl+T0(Sn(t+o))}function md(t,o){let n="",s="";for(const l in t){const c=t[l];if(c===0){s+=l+" ";continue}const u=Array.isArray(c),d=o==="rtl"?(u?c[1]:c)+" ":(u?c[0]:c)+" ";n+=d,s+=d}return[n.slice(0,-1),s.slice(0,-1)]}function Ei(t,o){const n={};for(const s in t){const[l,c]=md(t[s],o);if(c===""){n[s]="";continue}const u=hd(c,o),d=u+(l===""?"":" "+l);Ml[u]=[t[s],o],n[s]=d}return n}const gd={};function oe(){let t=null,o="",n="";const s=new Array(arguments.length);for(let v=0;v<arguments.length;v++){const w=arguments[v];if(typeof w=="string"&&w!==""){const b=w.indexOf(Wl);if(b===-1)o+=w+" ";else{const x=w.substr(b,S0);b>0&&(o+=w.slice(0,b)),n+=x,s[v]=x}}}if(n==="")return o.slice(0,-1);const l=gd[n];if(l!==void 0)return o+l;const c=[];for(let v=0;v<arguments.length;v++){const w=s[v];if(w){const b=Ml[w];b&&(c.push(b[C0]),t=b[B0])}}const u=Object.assign.apply(Object,[{}].concat(c)),[d,p]=md(u,t),m=hd(p,t,s),g=m+" "+d;return gd[n]=g,Ml[m]=[u,t],o+g}function E0(t){return Array.isArray(t)?t:[t]}function z0(t,o,n,s){const l=[];if(s[_n]=o,s[_0]=String(n),t)for(const u in s)t.setAttribute(u,s[u]);function c(u){return t?.sheet?t.sheet.insertRule(u,t.sheet.cssRules.length):l.push(u)}return{elementAttributes:s,insertRule:c,element:t,bucketName:o,cssRules(){return t?.sheet?Array.from(t.sheet.cssRules).map(u=>u.cssText):l}}}const vd=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"].reduce((t,o,n)=>(t[o]=n,t),{});function P0(t,o,n){return(t==="m"?t+o:t)+n}function R0(t,o,n,s,l={}){var c,u;const d=t==="m",p=(c=l.m)!==null&&c!==void 0?c:"0",m=(u=l.p)!==null&&u!==void 0?u:0,g=P0(t,p,m);if(!s.stylesheets[g]){const v=o&&o.createElement("style"),w=z0(v,t,m,Object.assign({},s.styleElementAttributes,d&&{media:p}));s.stylesheets[g]=w,o?.head&&v&&o.head.insertBefore(v,I0(o,n,t,s,l))}return s.stylesheets[g]}function F0(t,o,n){var s,l;const c=o+((s=n.m)!==null&&s!==void 0?s:""),u=t.getAttribute(_n)+((l=t.media)!==null&&l!==void 0?l:"");return c===u}function I0(t,o,n,s,l={}){var c,u;const d=vd[n],p=(c=l.m)!==null&&c!==void 0?c:"",m=(u=l.p)!==null&&u!==void 0?u:0;let g=y=>d-vd[y.getAttribute(_n)],v=t.head.querySelectorAll(`[${_n}]`);if(n==="m"){const y=t.head.querySelectorAll(`[${_n}="${n}"]`);y.length&&(v=y,g=S=>s.compareMediaQueries(p,S.media))}const w=y=>F0(y,n,l)?m-Number(y.getAttribute("data-priority")):g(y),b=v.length;let x=b-1;for(;x>=0;){const y=v.item(x);if(w(y)>0)return y.nextSibling;x--}return b>0?v.item(0):o?o.nextSibling:null}function bd(t,o){try{t.insertRule(o)}catch{}}let D0=0;const j0=(t,o)=>t<o?-1:t>o?1:0;function O0(t=typeof document>"u"?void 0:document,o={}){const{classNameHashSalt:n,unstable_filterCSSRule:s,insertionPoint:l,styleElementAttributes:c,compareMediaQueries:u=j0}=o,d={classNameHashSalt:n,insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(c),compareMediaQueries:u,id:`d${D0++}`,insertCSSRules(p){for(const m in p){const g=p[m];for(let v=0,w=g.length;v<w;v++){const[b,x]=E0(g[v]),y=R0(m,t,l||null,d,x);d.insertionCache[b]||(d.insertionCache[b]=m,s?s(b)&&bd(y,b):bd(y,b))}}}};return d}const Vl=()=>{const t={};return function(n,s){t[n.id]===void 0&&(n.insertCSSRules(s),t[n.id]=!0)}};function yd(t){return t.reduce(function(o,n){var s=n[0],l=n[1];return o[s]=l,o[l]=s,o},{})}function A0(t){return typeof t=="boolean"}function L0(t){return typeof t=="function"}function Cn(t){return typeof t=="number"}function M0(t){return t===null||typeof t>"u"}function q0(t){return t&&typeof t=="object"}function H0(t){return typeof t=="string"}function zi(t,o){return t.indexOf(o)!==-1}function W0(t){return parseFloat(t)===0?t:t[0]==="-"?t.slice(1):"-"+t}function Pi(t,o,n,s){return o+W0(n)+s}function $0(t){var o=t.indexOf(".");if(o===-1)t=100-parseFloat(t)+"%";else{var n=t.length-o-2;t=100-parseFloat(t),t=t.toFixed(n)+"%"}return t}function wd(t){return t.replace(/ +/g," ").split(" ").map(function(o){return o.trim()}).filter(Boolean).reduce(function(o,n){var s=o.list,l=o.state,c=(n.match(/\(/g)||[]).length,u=(n.match(/\)/g)||[]).length;return l.parensDepth>0?s[s.length-1]=s[s.length-1]+" "+n:s.push(n),l.parensDepth+=c-u,{list:s,state:l}},{list:[],state:{parensDepth:0}}).list}function kd(t){var o=wd(t);if(o.length<=3||o.length>4)return t;var n=o[0],s=o[1],l=o[2],c=o[3];return[n,c,l,s].join(" ")}function V0(t){return!A0(t)&&!M0(t)}function U0(t){for(var o=[],n=0,s=0,l=!1;s<t.length;)!l&&t[s]===","?(o.push(t.substring(n,s).trim()),s++,n=s):t[s]==="("?(l=!0,s++):(t[s]===")"&&(l=!1),s++);return n!=s&&o.push(t.substring(n,s+1)),o}var V={padding:function(o){var n=o.value;return Cn(n)?n:kd(n)},textShadow:function(o){var n=o.value,s=U0(n).map(function(l){return l.replace(/(^|\s)(-*)([.|\d]+)/,function(c,u,d,p){if(p==="0")return c;var m=d===""?"-":"";return""+u+m+p})});return s.join(",")},borderColor:function(o){var n=o.value;return kd(n)},borderRadius:function(o){var n=o.value;if(Cn(n))return n;if(zi(n,"/")){var s=n.split("/"),l=s[0],c=s[1],u=V.borderRadius({value:l.trim()}),d=V.borderRadius({value:c.trim()});return u+" / "+d}var p=wd(n);switch(p.length){case 2:return p.reverse().join(" ");case 4:{var m=p[0],g=p[1],v=p[2],w=p[3];return[g,m,w,v].join(" ")}default:return n}},background:function(o){var n=o.value,s=o.valuesToConvert,l=o.isRtl,c=o.bgImgDirectionRegex,u=o.bgPosDirectionRegex;if(Cn(n))return n;var d=n.replace(/(url\(.*?\))|(rgba?\(.*?\))|(hsl\(.*?\))|(#[a-fA-F0-9]+)|((^| )(\D)+( |$))/g,"").trim();return n=n.replace(d,V.backgroundPosition({value:d,valuesToConvert:s,isRtl:l,bgPosDirectionRegex:u})),V.backgroundImage({value:n,valuesToConvert:s,bgImgDirectionRegex:c})},backgroundImage:function(o){var n=o.value,s=o.valuesToConvert,l=o.bgImgDirectionRegex;return!zi(n,"url(")&&!zi(n,"linear-gradient(")?n:n.replace(l,function(c,u,d){return c.replace(d,s[d])})},backgroundPosition:function(o){var n=o.value,s=o.valuesToConvert,l=o.isRtl,c=o.bgPosDirectionRegex;return n.replace(l?/^((-|\d|\.)+%)/:null,function(u,d){return $0(d)}).replace(c,function(u){return s[u]})},backgroundPositionX:function(o){var n=o.value,s=o.valuesToConvert,l=o.isRtl,c=o.bgPosDirectionRegex;return Cn(n)?n:V.backgroundPosition({value:n,valuesToConvert:s,isRtl:l,bgPosDirectionRegex:c})},transition:function(o){var n=o.value,s=o.propertiesToConvert;return n.split(/,\s*/g).map(function(l){var c=l.split(" ");return c[0]=s[c[0]]||c[0],c.join(" ")}).join(", ")},transitionProperty:function(o){var n=o.value,s=o.propertiesToConvert;return n.split(/,\s*/g).map(function(l){return s[l]||l}).join(", ")},transform:function(o){var n=o.value,s="[^\\u0020-\\u007e]",l="(?:(?:(?:\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",c="((?:-?"+("(?:[0-9]*\\.[0-9]+|[0-9]+)(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+s+"|"+l+")")+("(?:[_a-z0-9-]|"+s+"|"+l+")")+"*")+")?")+")|(?:inherit|auto))",u=new RegExp("(translateX\\s*\\(\\s*)"+c+"(\\s*\\))","gi"),d=new RegExp("(translate\\s*\\(\\s*)"+c+"((?:\\s*,\\s*"+c+"){0,1}\\s*\\))","gi"),p=new RegExp("(translate3d\\s*\\(\\s*)"+c+"((?:\\s*,\\s*"+c+"){0,2}\\s*\\))","gi"),m=new RegExp("(rotate[ZY]?\\s*\\(\\s*)"+c+"(\\s*\\))","gi");return n.replace(u,Pi).replace(d,Pi).replace(p,Pi).replace(m,Pi)}};V.objectPosition=V.backgroundPosition,V.margin=V.padding,V.borderWidth=V.padding,V.boxShadow=V.textShadow,V.webkitBoxShadow=V.boxShadow,V.mozBoxShadow=V.boxShadow,V.WebkitBoxShadow=V.boxShadow,V.MozBoxShadow=V.boxShadow,V.borderStyle=V.borderColor,V.webkitTransform=V.transform,V.mozTransform=V.transform,V.WebkitTransform=V.transform,V.MozTransform=V.transform,V.transformOrigin=V.backgroundPosition,V.webkitTransformOrigin=V.transformOrigin,V.mozTransformOrigin=V.transformOrigin,V.WebkitTransformOrigin=V.transformOrigin,V.MozTransformOrigin=V.transformOrigin,V.webkitTransition=V.transition,V.mozTransition=V.transition,V.WebkitTransition=V.transition,V.MozTransition=V.transition,V.webkitTransitionProperty=V.transitionProperty,V.mozTransitionProperty=V.transitionProperty,V.WebkitTransitionProperty=V.transitionProperty,V.MozTransitionProperty=V.transitionProperty,V["text-shadow"]=V.textShadow,V["border-color"]=V.borderColor,V["border-radius"]=V.borderRadius,V["background-image"]=V.backgroundImage,V["background-position"]=V.backgroundPosition,V["background-position-x"]=V.backgroundPositionX,V["object-position"]=V.objectPosition,V["border-width"]=V.padding,V["box-shadow"]=V.textShadow,V["-webkit-box-shadow"]=V.textShadow,V["-moz-box-shadow"]=V.textShadow,V["border-style"]=V.borderColor,V["-webkit-transform"]=V.transform,V["-moz-transform"]=V.transform,V["transform-origin"]=V.transformOrigin,V["-webkit-transform-origin"]=V.transformOrigin,V["-moz-transform-origin"]=V.transformOrigin,V["-webkit-transition"]=V.transition,V["-moz-transition"]=V.transition,V["transition-property"]=V.transitionProperty,V["-webkit-transition-property"]=V.transitionProperty,V["-moz-transition-property"]=V.transitionProperty;var xd=yd([["paddingLeft","paddingRight"],["marginLeft","marginRight"],["left","right"],["borderLeft","borderRight"],["borderLeftColor","borderRightColor"],["borderLeftStyle","borderRightStyle"],["borderLeftWidth","borderRightWidth"],["borderTopLeftRadius","borderTopRightRadius"],["borderBottomLeftRadius","borderBottomRightRadius"],["padding-left","padding-right"],["margin-left","margin-right"],["border-left","border-right"],["border-left-color","border-right-color"],["border-left-style","border-right-style"],["border-left-width","border-right-width"],["border-top-left-radius","border-top-right-radius"],["border-bottom-left-radius","border-bottom-right-radius"]]),G0=["content"],_d=yd([["ltr","rtl"],["left","right"],["w-resize","e-resize"],["sw-resize","se-resize"],["nw-resize","ne-resize"]]),K0=new RegExp("(^|\\W|_)((ltr)|(rtl)|(left)|(right))(\\W|_|$)","g"),X0=new RegExp("(left)|(right)");function Sd(t){return Object.keys(t).reduce(function(o,n){var s=t[n];if(H0(s)&&(s=s.trim()),zi(G0,n))return o[n]=s,o;var l=Ul(n,s),c=l.key,u=l.value;return o[c]=u,o},Array.isArray(t)?[]:{})}function Ul(t,o){var n=/\/\*\s?@noflip\s?\*\//.test(o),s=n?t:Q0(t),l=n?o:Y0(s,o);return{key:s,value:l}}function Q0(t){return xd[t]||t}function Y0(t,o){if(!V0(o))return o;if(q0(o))return Sd(o);var n=Cn(o),s=L0(o),l=n||s?o:o.replace(/ !important.*?$/,""),c=!n&&l.length!==o.length,u=V[t],d;return u?d=u({value:l,valuesToConvert:_d,propertiesToConvert:xd,isRtl:!0,bgImgDirectionRegex:K0,bgPosDirectionRegex:X0}):d=_d[l]||l,c?d+" !important":d}const J0=/[A-Z]/g,Z0=/^ms-/,Gl={};function e1(t){return"-"+t.toLowerCase()}function Fo(t){if(Object.prototype.hasOwnProperty.call(Gl,t))return Gl[t];if(t.substr(0,2)==="--")return t;const o=t.replace(J0,e1);return Gl[t]=Z0.test(o)?"-"+o:o}function Cd(t){return t.charAt(0)==="&"?t.slice(1):t}var Bn="-moz-",Zt="-webkit-",Bd="comm",Ri="rule",Kl="decl",t1="@media",r1="@import",o1="@supports",n1="@namespace",i1="@keyframes",Nd="@layer",Td=Math.abs,Fi=String.fromCharCode,s1=Object.assign;function l1(t,o){return dt(t,0)^45?(((o<<2^dt(t,0))<<2^dt(t,1))<<2^dt(t,2))<<2^dt(t,3):0}function Ed(t){return t.trim()}function zd(t,o){return(t=o.exec(t))?t[0]:t}function _t(t,o,n){return t.replace(o,n)}function Pd(t,o,n){return t.indexOf(o,n)}function dt(t,o){return t.charCodeAt(o)|0}function Io(t,o,n){return t.slice(o,n)}function er(t){return t.length}function Rd(t){return t.length}function go(t,o){return o.push(t),t}function a1(t,o){return t.map(o).join("")}var Ii=1,Do=1,Fd=0,Ft=0,qe=0,jo="";function Di(t,o,n,s,l,c,u,d){return{value:t,root:o,parent:n,type:s,props:l,children:c,line:Ii,column:Do,length:u,return:"",siblings:d}}function Xl(t,o){return s1(Di("",null,null,"",null,null,0,t.siblings),t,{length:-t.length},o)}function c1(){return qe}function u1(){return qe=Ft>0?dt(jo,--Ft):0,Do--,qe===10&&(Do=1,Ii--),qe}function qt(){return qe=Ft<Fd?dt(jo,Ft++):0,Do++,qe===10&&(Do=1,Ii++),qe}function qr(){return dt(jo,Ft)}function ji(){return Ft}function Oi(t,o){return Io(jo,t,o)}function Oo(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Id(t){return Ii=Do=1,Fd=er(jo=t),Ft=0,[]}function Dd(t){return jo="",t}function Ai(t){return Ed(Oi(Ft-1,Ql(t===91?t+2:t===40?t+1:t)))}function d1(t){return Dd(p1(Id(t)))}function f1(t){for(;(qe=qr())&&qe<33;)qt();return Oo(t)>2||Oo(qe)>3?"":" "}function p1(t){for(;qt();)switch(Oo(qe)){case 0:go(jd(Ft-1),t);break;case 2:go(Ai(qe),t);break;default:go(Fi(qe),t)}return t}function h1(t,o){for(;--o&&qt()&&!(qe<48||qe>102||qe>57&&qe<65||qe>70&&qe<97););return Oi(t,ji()+(o<6&&qr()==32&&qt()==32))}function Ql(t){for(;qt();)switch(qe){case t:return Ft;case 34:case 39:t!==34&&t!==39&&Ql(qe);break;case 40:t===41&&Ql(t);break;case 92:qt();break}return Ft}function m1(t,o){for(;qt()&&t+qe!==57;)if(t+qe===84&&qr()===47)break;return"/*"+Oi(o,Ft-1)+"*"+Fi(t===47?t:qt())}function jd(t){for(;!Oo(qr());)qt();return Oi(t,Ft)}function Od(t){return Dd(Li("",null,null,null,[""],t=Id(t),0,[0],t))}function Li(t,o,n,s,l,c,u,d,p){for(var m=0,g=0,v=u,w=0,b=0,x=0,y=1,S=1,N=1,E=0,B="",T=l,R=c,O=s,L=B;S;)switch(x=E,E=qt()){case 40:if(x!=108&&dt(L,v-1)==58){Pd(L+=_t(Ai(E),"&","&\f"),"&\f",Td(m?d[m-1]:0))!=-1&&(N=-1);break}case 34:case 39:case 91:L+=Ai(E);break;case 9:case 10:case 13:case 32:L+=f1(x);break;case 92:L+=h1(ji()-1,7);continue;case 47:switch(qr()){case 42:case 47:go(g1(m1(qt(),ji()),o,n,p),p),(Oo(x||1)==5||Oo(qr()||1)==5)&&er(L)&&Io(L,-1,void 0)!==" "&&(L+=" ");break;default:L+="/"}break;case 123*y:d[m++]=er(L)*N;case 125*y:case 59:case 0:switch(E){case 0:case 125:S=0;case 59+g:N==-1&&(L=_t(L,/\f/g,"")),b>0&&(er(L)-v||y===0&&x===47)&&go(b>32?Ld(L+";",s,n,v-1,p):Ld(_t(L," ","")+";",s,n,v-2,p),p);break;case 59:L+=";";default:if(go(O=Ad(L,o,n,m,g,l,d,B,T=[],R=[],v,c),c),E===123)if(g===0)Li(L,o,O,O,T,c,v,d,R);else{switch(w){case 99:if(dt(L,3)===110)break;case 108:if(dt(L,2)===97)break;default:g=0;case 100:case 109:case 115:}g?Li(t,O,O,s&&go(Ad(t,O,O,0,0,l,d,B,l,T=[],v,R),R),l,R,v,d,s?T:R):Li(L,O,O,O,[""],R,0,d,R)}}m=g=b=0,y=N=1,B=L="",v=u;break;case 58:v=1+er(L),b=x;default:if(y<1){if(E==123)--y;else if(E==125&&y++==0&&u1()==125)continue}switch(L+=Fi(E),E*y){case 38:N=g>0?1:(L+="\f",-1);break;case 44:d[m++]=(er(L)-1)*N,N=1;break;case 64:qr()===45&&(L+=Ai(qt())),w=qr(),g=v=er(B=L+=jd(ji())),E++;break;case 45:x===45&&er(L)==2&&(y=0)}}return c}function Ad(t,o,n,s,l,c,u,d,p,m,g,v){for(var w=l-1,b=l===0?c:[""],x=Rd(b),y=0,S=0,N=0;y<s;++y)for(var E=0,B=Io(t,w+1,w=Td(S=u[y])),T=t;E<x;++E)(T=Ed(S>0?b[E]+" "+B:_t(B,/&\f/g,b[E])))&&(p[N++]=T);return Di(t,o,n,l===0?Ri:d,p,m,g,v)}function g1(t,o,n,s){return Di(t,o,n,Bd,Fi(c1()),Io(t,2,-2),0,s)}function Ld(t,o,n,s,l){return Di(t,o,n,Kl,Io(t,0,s),Io(t,s+1,-1),s,l)}function Ao(t,o){for(var n="",s=0;s<t.length;s++)n+=o(t[s],s,t,o)||"";return n}function Md(t,o,n,s){switch(t.type){case Nd:if(t.children.length)break;case r1:case n1:case Kl:return t.return=t.return||t.value;case Bd:return"";case i1:return t.return=t.value+"{"+Ao(t.children,s)+"}";case Ri:if(!er(t.value=t.props.join(",")))return""}return er(n=Ao(t.children,s))?t.return=t.value+"{"+n+"}":""}function qd(t){var o=Rd(t);return function(n,s,l,c){for(var u="",d=0;d<o;d++)u+=t[d](n,s,l,c)||"";return u}}function Hd(t){return function(o){o.root||(o=o.return)&&t(o)}}const v1=t=>{switch(t.type){case Ri:if(typeof t.props=="string")return;t.props=t.props.map(o=>o.indexOf(":global(")===-1?o:d1(o).reduce((n,s,l,c)=>{if(s==="")return n;if(s===":"&&c[l+1]==="global"){const u=c[l+2].slice(1,-1)+" ";return n.unshift(u),c[l+1]="",c[l+2]="",n}return n.push(s),n},[]).join(""))}};function Wd(t,o,n){switch(l1(t,o)){case 5103:return Zt+"print-"+t+t;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return Zt+t+t;case 4215:if(dt(t,9)===102||dt(t,o+1)===116)return Zt+t+t;break;case 4789:return Bn+t+t;case 5349:case 4246:case 6968:return Zt+t+Bn+t+t;case 6187:if(!zd(t,/grab/))return _t(_t(_t(t,/(zoom-|grab)/,Zt+"$1"),/(image-set)/,Zt+"$1"),t,"")+t;case 5495:case 3959:return _t(t,/(image-set\([^]*)/,Zt+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return _t(t,/(.+)-inline(.+)/,Zt+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(er(t)-1-o>6)switch(dt(t,o+1)){case 102:if(dt(t,o+3)===108)return _t(t,/(.+:)(.+)-([^]+)/,"$1"+Zt+"$2-$3$1"+Bn+(dt(t,o+3)==108?"$3":"$2-$3"))+t;case 115:return~Pd(t,"stretch")?Wd(_t(t,"stretch","fill-available"),o)+t:t}break}return t}function $d(t,o,n,s){if(t.length>-1&&!t.return)switch(t.type){case Kl:t.return=Wd(t.value,t.length);return;case Ri:if(t.length)return a1(t.props,function(l){switch(zd(l,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ao([Xl(t,{props:[_t(l,/:(read-\w+)/,":"+Bn+"$1")]})],s);case"::placeholder":return Ao([Xl(t,{props:[_t(l,/:(plac\w+)/,":"+Zt+"input-$1")]}),Xl(t,{props:[_t(l,/:(plac\w+)/,":"+Bn+"$1")]})],s)}return""})}}function b1(t){switch(t.type){case"@container":case t1:case o1:case Nd:return!0}return!1}const y1=t=>{b1(t)&&Array.isArray(t.children)&&t.children.sort((o,n)=>o.props[0]>n.props[0]?1:-1)};function w1(t,o){const n=[];return Ao(Od(t),qd([v1,y1,$d,Md,Hd(s=>n.push(s))])),n}const k1=/,( *[^ &])/g;function x1(t){return"&"+Cd(t.replace(k1,",&$1"))}function Vd(t,o,n){let s=o;return n.length>0&&(s=n.reduceRight((l,c)=>`${x1(c)} { ${l} }`,o)),`${t}{${s}}`}function Ud(t,o){const{className:n,selectors:s,property:l,rtlClassName:c,rtlProperty:u,rtlValue:d,value:p}=t,{container:m,layer:g,media:v,supports:w}=o,b=`.${n}`,x=Array.isArray(p)?`${p.map(S=>`${Fo(l)}: ${S}`).join(";")};`:`${Fo(l)}: ${p};`;let y=Vd(b,x,s);if(u&&c){const S=`.${c}`,N=Array.isArray(d)?`${d.map(E=>`${Fo(u)}: ${E}`).join(";")};`:`${Fo(u)}: ${d};`;y+=Vd(S,N,s)}return v&&(y=`@media ${v} { ${y} }`),g&&(y=`@layer ${g} { ${y} }`),w&&(y=`@supports ${w} { ${y} }`),m&&(y=`@container ${m} { ${y} }`),w1(y)}function _1(t){let o="";for(const n in t){const s=t[n];if(typeof s=="string"||typeof s=="number"){o+=Fo(n)+":"+s+";";continue}if(Array.isArray(s))for(const l of s)o+=Fo(n)+":"+l+";"}return o}function Gd(t){let o="";for(const n in t)o+=`${n}{${_1(t[n])}}`;return o}function Kd(t,o){const n=`@keyframes ${t} {${o}}`,s=[];return Ao(Od(n),qd([Md,$d,Hd(l=>s.push(l))])),s}const S1={animation:[-1,["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimeline","animationTimingFunction"]],animationRange:[-1,["animationRangeEnd","animationRangeStart"]],background:[-2,["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"]],backgroundPosition:[-1,["backgroundPositionX","backgroundPositionY"]],border:[-2,["borderBottom","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderTop","borderTopColor","borderTopStyle","borderTopWidth"]],borderBottom:[-1,["borderBottomColor","borderBottomStyle","borderBottomWidth"]],borderImage:[-1,["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"]],borderLeft:[-1,["borderLeftColor","borderLeftStyle","borderLeftWidth"]],borderRadius:[-1,["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"]],borderRight:[-1,["borderRightColor","borderRightStyle","borderRightWidth"]],borderTop:[-1,["borderTopColor","borderTopStyle","borderTopWidth"]],caret:[-1,["caretColor","caretShape"]],columnRule:[-1,["columnRuleColor","columnRuleStyle","columnRuleWidth"]],columns:[-1,["columnCount","columnWidth"]],containIntrinsicSize:[-1,["containIntrinsicHeight","containIntrinsicWidth"]],container:[-1,["containerName","containerType"]],flex:[-1,["flexBasis","flexGrow","flexShrink"]],flexFlow:[-1,["flexDirection","flexWrap"]],font:[-1,["fontFamily","fontSize","fontStretch","fontStyle","fontVariant","fontWeight","lineHeight"]],gap:[-1,["columnGap","rowGap"]],grid:[-1,["columnGap","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumnGap","gridRowGap","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","rowGap"]],gridArea:[-1,["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"]],gridColumn:[-1,["gridColumnEnd","gridColumnStart"]],gridRow:[-1,["gridRowEnd","gridRowStart"]],gridTemplate:[-1,["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"]],inset:[-1,["bottom","left","right","top"]],insetBlock:[-1,["insetBlockEnd","insetBlockStart"]],insetInline:[-1,["insetInlineEnd","insetInlineStart"]],listStyle:[-1,["listStyleImage","listStylePosition","listStyleType"]],margin:[-1,["marginBottom","marginLeft","marginRight","marginTop"]],marginBlock:[-1,["marginBlockEnd","marginBlockStart"]],marginInline:[-1,["marginInlineEnd","marginInlineStart"]],mask:[-1,["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPosition","maskRepeat","maskSize"]],maskBorder:[-1,["maskBorderMode","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth"]],offset:[-1,["offsetAnchor","offsetDistance","offsetPath","offsetPosition","offsetRotate"]],outline:[-1,["outlineColor","outlineStyle","outlineWidth"]],overflow:[-1,["overflowX","overflowY"]],overscrollBehavior:[-1,["overscrollBehaviorX","overscrollBehaviorY"]],padding:[-1,["paddingBottom","paddingLeft","paddingRight","paddingTop"]],paddingBlock:[-1,["paddingBlockEnd","paddingBlockStart"]],paddingInline:[-1,["paddingInlineEnd","paddingInlineStart"]],placeContent:[-1,["alignContent","justifyContent"]],placeItems:[-1,["alignItems","justifyItems"]],placeSelf:[-1,["alignSelf","justifySelf"]],scrollMargin:[-1,["scrollMarginBottom","scrollMarginLeft","scrollMarginRight","scrollMarginTop"]],scrollMarginBlock:[-1,["scrollMarginBlockEnd","scrollMarginBlockStart"]],scrollMarginInline:[-1,["scrollMarginInlineEnd","scrollMarginInlineStart"]],scrollPadding:[-1,["scrollPaddingBottom","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop"]],scrollPaddingBlock:[-1,["scrollPaddingBlockEnd","scrollPaddingBlockStart"]],scrollPaddingInline:[-1,["scrollPaddingInlineEnd","scrollPaddingInlineStart"]],scrollTimeline:[-1,["scrollTimelineAxis","scrollTimelineName"]],textDecoration:[-1,["textDecorationColor","textDecorationLine","textDecorationStyle","textDecorationThickness"]],textEmphasis:[-1,["textEmphasisColor","textEmphasisStyle"]],transition:[-1,["transitionBehavior","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"]],viewTimeline:[-1,["viewTimelineAxis","viewTimelineName"]]};function Xd(t,o){return t.length===0?o:`${t} and ${o}`}function C1(t){return t.substr(0,6)==="@media"}function B1(t){return t.substr(0,6)==="@layer"}const N1=/^(:|\[|>|&)/;function T1(t){return N1.test(t)}function E1(t){return t.substr(0,9)==="@supports"}function z1(t){return t.substring(0,10)==="@container"}function P1(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1}const Qd={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function Yd(t,o){if(o.media)return"m";if(o.layer||o.supports)return"t";if(o.container)return"c";if(t.length>0){const n=t[0].trim();if(n.charCodeAt(0)===58)return Qd[n.slice(4,8)]||Qd[n.slice(3,5)]||"d"}return"d"}function Mi(t,o){return t&&o+t}function Jd(t){return Mi(t.container,"c")+Mi(t.media,"m")+Mi(t.layer,"l")+Mi(t.supports,"s")}function Yl(t,o,n){const s=t+Jd(n)+o,l=Sn(s),c=l.charCodeAt(0);return c>=48&&c<=57?String.fromCharCode(c+17)+l.slice(1):l}function qi({property:t,selector:o,salt:n,value:s},l){return ql+Sn(n+o+Jd(l)+t+s.trim())}function R1(t){return t===$l}function Jl(t){return t.replace(/>\s+/g,">")}function k5(t,o){}function Zd(t){return S1[t]}function ef(t){var o;return(o=t?.[0])!==null&&o!==void 0?o:0}function Zl(t,o,n,s){t[o]=s?[n,s]:n}function tf(t,o){return o.length>0?[t,Object.fromEntries(o)]:t}function ea(t,o,n,s,l,c){var u;const d=[];c!==0&&d.push(["p",c]),o==="m"&&l&&d.push(["m",l]),(u=t[o])!==null&&u!==void 0||(t[o]=[]),n&&t[o].push(tf(n,d)),s&&t[o].push(tf(s,d))}function Cr(t,o="",n=[],s={container:"",layer:"",media:"",supports:""},l={},c={},u){for(const d in t){if(N0.hasOwnProperty(d)){t[d];continue}const p=t[d];if(p!=null){if(R1(p)){const m=Jl(n.join("")),g=Yl(m,d,s);Zl(l,g,0,void 0);continue}if(typeof p=="string"||typeof p=="number"){const m=Jl(n.join("")),g=Zd(d);if(g){const T=g[1],R=Object.fromEntries(T.map(O=>[O,$l]));Cr(R,o,n,s,l,c)}const v=Yl(m,d,s),w=qi({value:p.toString(),salt:o,selector:m,property:d},s),b=u&&{key:d,value:u}||Ul(d,p),x=b.key!==d||b.value!==p,y=x?qi({value:b.value.toString(),property:b.key,salt:o,selector:m},s):void 0,S=x?{rtlClassName:y,rtlProperty:b.key,rtlValue:b.value}:void 0,N=Yd(n,s),[E,B]=Ud(Object.assign({className:w,selectors:n,property:d,value:p},S),s);Zl(l,v,w,y),ea(c,N,E,B,s.media,ef(g))}else if(d==="animationName"){const m=Array.isArray(p)?p:[p],g=[],v=[];for(const w of m){const b=Gd(w),x=Gd(Sd(w)),y=ql+Sn(b);let S;const N=Kd(y,b);let E=[];b===x?S=y:(S=ql+Sn(x),E=Kd(S,x));for(let B=0;B<N.length;B++)ea(c,"k",N[B],E[B],s.media,0);g.push(y),v.push(S)}Cr({animationName:g.join(", ")},o,n,s,l,c,v.join(", "))}else if(Array.isArray(p)){if(p.length===0)continue;const m=Jl(n.join("")),g=Zd(d);if(g){const R=g[1],O=Object.fromEntries(R.map(L=>[L,$l]));Cr(O,o,n,s,l,c)}const v=Yl(m,d,s),w=qi({value:p.map(R=>(R??"").toString()).join(";"),salt:o,selector:m,property:d},s),b=p.map(R=>Ul(d,R));if(!!b.some(R=>R.key!==b[0].key))continue;const y=b[0].key!==d||b.some((R,O)=>R.value!==p[O]),S=y?qi({value:b.map(R=>{var O;return((O=R?.value)!==null&&O!==void 0?O:"").toString()}).join(";"),salt:o,property:b[0].key,selector:m},s):void 0,N=y?{rtlClassName:S,rtlProperty:b[0].key,rtlValue:b.map(R=>R.value)}:void 0,E=Yd(n,s),[B,T]=Ud(Object.assign({className:w,selectors:n,property:d,value:p},N),s);Zl(l,v,w,S),ea(c,E,B,T,s.media,ef(g))}else if(P1(p)){if(T1(d))Cr(p,o,n.concat(Cd(d)),s,l,c);else if(C1(d)){const m=Xd(s.media,d.slice(6).trim());Cr(p,o,n,Object.assign({},s,{media:m}),l,c)}else if(B1(d)){const m=(s.layer?`${s.layer}.`:"")+d.slice(6).trim();Cr(p,o,n,Object.assign({},s,{layer:m}),l,c)}else if(E1(d)){const m=Xd(s.supports,d.slice(9).trim());Cr(p,o,n,Object.assign({},s,{supports:m}),l,c)}else if(z1(d)){const m=d.slice(10).trim();Cr(p,o,n,Object.assign({},s,{container:m}),l,c)}}}}return[l,c]}function F1(t,o=""){const n={},s={};for(const l in t){const c=t[l],[u,d]=Cr(c,o);n[l]=u,Object.keys(d).forEach(p=>{s[p]=(s[p]||[]).concat(d[p])})}return[n,s]}function I1(t,o=Vl){const n=o();let s=null,l=null,c=null,u=null;function d(p){const{dir:m,renderer:g}=p;s===null&&([s,l]=F1(t,g.classNameHashSalt));const v=m==="ltr";return v?c===null&&(c=Ei(s,m)):u===null&&(u=Ei(s,m)),n(g,l),v?c:u}return d}function rf(t,o,n=Vl){const s=n();let l=null,c=null;function u(d){const{dir:p,renderer:m}=d,g=p==="ltr";return g?l===null&&(l=Ei(t,p)):c===null&&(c=Ei(t,p)),s(m,o),g?l:c}return u}function D1(t,o,n,s=Vl){const l=s();function c(u){const{dir:d,renderer:p}=u,m=d==="ltr"?t:o||t;return l(p,Array.isArray(n)?{r:n}:n),m}return c}function j1(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const of=Ni.useInsertionEffect?Ni.useInsertionEffect:void 0,ta=()=>{const t={};return function(n,s){if(of&&j1()){of(()=>{n.insertCSSRules(s)},[n,s]);return}t[n.id]===void 0&&(n.insertCSSRules(s),t[n.id]=!0)}},O1=_.createContext(O0());function Nn(){return _.useContext(O1)}const nf=_.createContext("ltr"),A1=({children:t,dir:o})=>_.createElement(nf.Provider,{value:o},t);function ra(){return _.useContext(nf)}function Hi(t){const o=I1(t,ta);return function(){const s=ra(),l=Nn();return o({dir:s,renderer:l})}}function de(t,o){const n=rf(t,o,ta);return function(){const l=ra(),c=Nn();return n({dir:l,renderer:c})}}function ft(t,o,n){const s=D1(t,o,n,ta);return function(){const c=ra(),u=Nn();return s({dir:c,renderer:u})}}function L1(t,o){if(o){const n=Object.keys(o).reduce((s,l)=>`${s}--${l}: ${o[l]}; `,"");return`${t} { ${n} }`}return`${t} {}`}const sf=Symbol.for("fui.slotRenderFunction"),Wi=Symbol.for("fui.slotElementType"),lf=Symbol.for("fui.slotClassNameProp");function Fe(t,o){const{defaultProps:n,elementType:s}=o,l=af(t),c={...n,...l,[Wi]:s,[lf]:l?.className};return l&&typeof l.children=="function"&&(c[sf]=l.children,c.children=n?.children),c}function Ke(t,o){if(!(t===null||t===void 0&&!o.renderByDefault))return Fe(t,o)}function af(t){return typeof t=="string"||typeof t=="number"||M1(t)||_.isValidElement(t)?{children:t}:t}const M1=t=>typeof t=="object"&&t!==null&&Symbol.iterator in t;function cf(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)&&!_.isValidElement(t)}function uf(t){return!!t?.hasOwnProperty(Wi)}const Ie=(...t)=>{const o={};for(const n of t){const s=Array.isArray(n)?n:Object.keys(n);for(const l of s)o[l]=1}return o},q1=Ie(["onAuxClick","onAnimationEnd","onAnimationStart","onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),H1=Ie(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),W1=Ie(["itemID","itemProp","itemRef","itemScope","itemType"]),Ze=Ie(H1,q1,W1),$1=Ie(Ze,["form"]),df=Ie(Ze,["height","loop","muted","preload","src","width"]),V1=Ie(df,["poster"]),U1=Ie(Ze,["start"]),G1=Ie(Ze,["value"]),K1=Ie(Ze,["download","href","hrefLang","media","referrerPolicy","rel","target","type"]),X1=Ie(Ze,["dateTime"]),$i=Ie(Ze,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),Q1=Ie($i,["accept","alt","autoCorrect","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),Y1=Ie($i,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),J1=Ie($i,["form","multiple","required"]),Z1=Ie(Ze,["selected","value"]),eb=Ie(Ze,["cellPadding","cellSpacing"]),tb=Ze,rb=Ie(Ze,["colSpan","rowSpan","scope"]),ob=Ie(Ze,["colSpan","headers","rowSpan","scope"]),nb=Ie(Ze,["span"]),ib=Ie(Ze,["span"]),sb=Ie(Ze,["disabled","form"]),lb=Ie(Ze,["acceptCharset","action","encType","encType","method","noValidate","target"]),ab=Ie(Ze,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),cb=Ie(Ze,["alt","crossOrigin","height","src","srcSet","useMap","width"]),ub=Ie(Ze,["open","onCancel","onClose"]);function db(t,o,n){const s=Array.isArray(o),l={},c=Object.keys(t);for(const u of c)(!s&&o[u]||s&&o.indexOf(u)>=0||u.indexOf("data-")===0||u.indexOf("aria-")===0)&&(!n||n?.indexOf(u)===-1)&&(l[u]=t[u]);return l}const fb={label:$1,audio:df,video:V1,ol:U1,li:G1,a:K1,button:$i,input:Q1,textarea:Y1,select:J1,option:Z1,table:eb,tr:tb,th:rb,td:ob,colGroup:nb,col:ib,fieldset:sb,form:lb,iframe:ab,img:cb,time:X1,dialog:ub};function ff(t,o,n){const s=t&&fb[t]||Ze;return s.as=1,db(o,s,n)}const Vi=({primarySlotTagName:t,props:o,excludedPropNames:n})=>({root:{style:o.style,className:o.className},primary:ff(t,o,[...n||[],"style","className"])}),St=(t,o,n)=>{var s;return ff((s=o.as)!==null&&s!==void 0?s:t,o,n)};function pf(t,o){const n=_.useRef(void 0),s=_.useCallback((c,u)=>(n.current!==void 0&&o(n.current),n.current=t(c,u),n.current),[o,t]),l=_.useCallback(()=>{n.current!==void 0&&(o(n.current),n.current=void 0)},[o]);return _.useEffect(()=>l,[l]),[s,l]}const hf=_.createContext(void 0),pb=hf.Provider,mf=_.createContext(void 0),hb="",mb=mf.Provider;function gb(){var t;return(t=_.useContext(mf))!==null&&t!==void 0?t:hb}const vb=_.createContext(void 0).Provider,gf=_.createContext(void 0),bb={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"},yb=gf.Provider;function at(){var t;return(t=_.useContext(gf))!==null&&t!==void 0?t:bb}const vf=_.createContext(void 0),wb=vf.Provider;function bf(){var t;return(t=_.useContext(vf))!==null&&t!==void 0?t:{}}const oa=_.createContext(void 0),kb=()=>{},xb=oa.Provider,nt=t=>{var o,n;return(n=(o=_.useContext(oa))===null||o===void 0?void 0:o[t])!==null&&n!==void 0?n:kb},yf=_.createContext(void 0);yf.Provider;function _b(){return _.useContext(yf)}const Sb=t=>(t(0),0),Cb=t=>t;function Bb(){const{targetDocument:t}=at(),o=t?.defaultView,n=o?o.requestAnimationFrame:Sb,s=o?o.cancelAnimationFrame:Cb;return pf(n,s)}function Nb(t){return typeof t=="function"}const Hr=t=>{"use no memo";const[o,n]=_.useState(()=>t.defaultState===void 0?t.initialState:Tb(t.defaultState)?t.defaultState():t.defaultState),s=_.useRef(t.state);_.useEffect(()=>{s.current=t.state},[t.state]);const l=_.useCallback(c=>{Nb(c)&&c(s.current)},[]);return Eb(t.state)?[t.state,l]:[o,n]};function Tb(t){return typeof t=="function"}const Eb=t=>{"use no memo";const[o]=_.useState(()=>t!==void 0);return o};function na(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const zb={current:0},Pb=_.createContext(void 0);function Rb(){var t;return(t=_.useContext(Pb))!==null&&t!==void 0?t:zb}const Ht=na()?_.useLayoutEffect:_.useEffect,xe=t=>{const o=_.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return Ht(()=>{o.current=t},[t]),_.useCallback((...n)=>{const s=o.current;return s(...n)},[o])};function Fb(){const t=_.useRef(!0);return _.useEffect(()=>{t.current&&(t.current=!1)},[]),t.current}const wf=_.createContext(void 0);wf.Provider;function Ib(){return _.useContext(wf)||""}function Br(t="fui-",o){"use no memo";const n=Rb(),s=Ib(),l=Ni.useId;if(l){const c=l(),u=_.useMemo(()=>c.replace(/:/g,""),[c]);return o||`${s}${t}${u}`}return _.useMemo(()=>o||`${s}${t}${++n.current}`,[s,t,o,n])}function pt(...t){"use no memo";const o=_.useCallback(n=>{o.current=n;for(const s of t)typeof s=="function"?s(n):s&&(s.current=n)},[...t]);return o}const kf=(t,o)=>!!t?.contains(o),Db=t=>{const{targetDocument:o}=at(),n=o?.defaultView,{refs:s,callback:l,element:c,disabled:u,disabledFocusOnIframe:d,contains:p=kf}=t,m=_.useRef(void 0);Ob({element:c,disabled:d||u,callback:l,refs:s,contains:p});const g=_.useRef(!1),v=xe(b=>{if(g.current){g.current=!1;return}const x=b.composedPath()[0];s.every(S=>!p(S.current||null,x))&&!u&&l(b)}),w=xe(b=>{g.current=s.some(x=>p(x.current||null,b.target))});_.useEffect(()=>{if(u)return;let b=jb(n);const x=y=>{if(y===b){b=void 0;return}v(y)};return c?.addEventListener("click",x,!0),c?.addEventListener("touchstart",x,!0),c?.addEventListener("contextmenu",x,!0),c?.addEventListener("mousedown",w,!0),m.current=n?.setTimeout(()=>{b=void 0},1),()=>{c?.removeEventListener("click",x,!0),c?.removeEventListener("touchstart",x,!0),c?.removeEventListener("contextmenu",x,!0),c?.removeEventListener("mousedown",w,!0),n?.clearTimeout(m.current),b=void 0}},[v,c,u,w,n])},jb=t=>{if(t){var o,n;if(typeof t.window=="object"&&t.window===t)return t.event;var s;return(s=(n=t.ownerDocument)===null||n===void 0||(o=n.defaultView)===null||o===void 0?void 0:o.event)!==null&&s!==void 0?s:void 0}},ia="fuiframefocus",Ob=t=>{const{disabled:o,element:n,callback:s,contains:l=kf,pollDuration:c=100,refs:u}=t,d=_.useRef(void 0),p=xe(m=>{u.every(v=>!l(v.current||null,m.target))&&!o&&s(m)});_.useEffect(()=>{if(!o)return n?.addEventListener(ia,p,!0),()=>{n?.removeEventListener(ia,p,!0)}},[n,o,p]),_.useEffect(()=>{var m;if(!o)return d.current=n==null||(m=n.defaultView)===null||m===void 0?void 0:m.setInterval(()=>{const g=n?.activeElement;if(g?.tagName==="IFRAME"||g?.tagName==="WEBVIEW"){const v=new CustomEvent(ia,{bubbles:!0});g.dispatchEvent(v)}},c),()=>{var g;n==null||(g=n.defaultView)===null||g===void 0||g.clearInterval(d.current)}},[n,o,c])},Ab=t=>-1,Lb=t=>{};function xf(){const{targetDocument:t}=at(),o=t?.defaultView,n=o?o.setTimeout:Ab,s=o?o.clearTimeout:Lb;return pf(n,s)}function Ct(t,o){return(...n)=>{t?.(...n),o?.(...n)}}function Nr(t,o){var n;const s=t;var l;return!!(!(s==null||(n=s.ownerDocument)===null||n===void 0)&&n.defaultView&&s instanceof s.ownerDocument.defaultView[(l=void 0)!==null&&l!==void 0?l:"HTMLElement"])}function Mb(t){if(!Nr(t))return!1;const{tagName:o}=t;switch(o){case"BUTTON":case"A":case"INPUT":case"TEXTAREA":return!0}return t.isContentEditable}function sa(t){return t.type.startsWith("touch")}function la(t){return t.type.startsWith("mouse")||["click","contextmenu","dblclick"].indexOf(t.type)>-1}function _f(t){return la(t)?{clientX:t.clientX,clientY:t.clientY}:sa(t)?{clientX:t.touches[0].clientX,clientY:t.touches[0].clientY}:{clientX:0,clientY:0}}function Sf(t){return t instanceof Set?t:new Set(t)}function Cf(t){const[o,n]=Hr({initialState:new Set,defaultState:_.useMemo(()=>t.defaultSelectedItems&&Sf(t.defaultSelectedItems),[t.defaultSelectedItems]),state:_.useMemo(()=>t.selectedItems&&Sf(t.selectedItems),[t.selectedItems])});return[o,(l,c)=>{var u;(u=t.onSelectionChange)===null||u===void 0||u.call(t,l,{selectedItems:c}),n(c)}]}function qb(t){const[o,n]=Cf(t);return[o,{deselectItem:l=>n(l,new Set),selectItem:(l,c)=>n(l,new Set([c])),toggleAllItems:()=>{},toggleItem:(l,c)=>n(l,new Set([c])),clearItems:l=>n(l,new Set),isSelected:l=>{var c;return(c=o.has(l))!==null&&c!==void 0?c:!1}}]}function Hb(t){const[o,n]=Cf(t);return[o,{toggleItem:(l,c)=>{const u=new Set(o);o.has(c)?u.delete(c):u.add(c),n(l,u)},selectItem:(l,c)=>{const u=new Set(o);u.add(c),n(l,u)},deselectItem:(l,c)=>{const u=new Set(o);u.delete(c),n(l,u)},clearItems:l=>{n(l,new Set)},isSelected:l=>o.has(l),toggleAllItems:(l,c)=>{const u=c.every(p=>o.has(p)),d=new Set(o);u?d.clear():c.forEach(p=>d.add(p)),n(l,d)}}]}function Wb(t){"use no memo";return t.selectionMode==="multiselect"?Hb(t):qb(t)}function $b(t){return t&&!!t._virtual}function Vb(t){return $b(t)&&t._virtual.parent||null}function Ub(t,o={}){if(!t)return null;if(!o.skipVirtual){const s=Vb(t);if(s)return s}const n=t.parentNode;return n&&n.nodeType===11?n.host:n}function Bf(t,o){t&&Object.assign(t,{_virtual:{parent:o}})}function Gb(t,o){return{...o,[Wi]:t}}var aa={exports:{}},Re={};var Nf;function Kb(){if(Nf)return Re;Nf=1;var t=60103,o=60106,n=60107,s=60108,l=60114,c=60109,u=60110,d=60112,p=60113,m=60120,g=60115,v=60116,w=60121,b=60122,x=60117,y=60129,S=60131;if(typeof Symbol=="function"&&Symbol.for){var N=Symbol.for;t=N("react.element"),o=N("react.portal"),n=N("react.fragment"),s=N("react.strict_mode"),l=N("react.profiler"),c=N("react.provider"),u=N("react.context"),d=N("react.forward_ref"),p=N("react.suspense"),m=N("react.suspense_list"),g=N("react.memo"),v=N("react.lazy"),w=N("react.block"),b=N("react.server.block"),x=N("react.fundamental"),y=N("react.debug_trace_mode"),S=N("react.legacy_hidden")}function E(M){if(typeof M=="object"&&M!==null){var J=M.$$typeof;switch(J){case t:switch(M=M.type,M){case n:case l:case s:case p:case m:return M;default:switch(M=M&&M.$$typeof,M){case u:case d:case v:case g:case c:return M;default:return J}}case o:return J}}}var B=c,T=t,R=d,O=n,L=v,W=g,H=o,Y=l,ce=s,ee=p;return Re.ContextConsumer=u,Re.ContextProvider=B,Re.Element=T,Re.ForwardRef=R,Re.Fragment=O,Re.Lazy=L,Re.Memo=W,Re.Portal=H,Re.Profiler=Y,Re.StrictMode=ce,Re.Suspense=ee,Re.isAsyncMode=function(){return!1},Re.isConcurrentMode=function(){return!1},Re.isContextConsumer=function(M){return E(M)===u},Re.isContextProvider=function(M){return E(M)===c},Re.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===t},Re.isForwardRef=function(M){return E(M)===d},Re.isFragment=function(M){return E(M)===n},Re.isLazy=function(M){return E(M)===v},Re.isMemo=function(M){return E(M)===g},Re.isPortal=function(M){return E(M)===o},Re.isProfiler=function(M){return E(M)===l},Re.isStrictMode=function(M){return E(M)===s},Re.isSuspense=function(M){return E(M)===p},Re.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===n||M===l||M===y||M===s||M===p||M===m||M===S||typeof M=="object"&&M!==null&&(M.$$typeof===v||M.$$typeof===g||M.$$typeof===c||M.$$typeof===u||M.$$typeof===d||M.$$typeof===x||M.$$typeof===w||M[0]===b)},Re.typeOf=E,Re}var Tf;function Xb(){return Tf||(Tf=1,aa.exports=Kb()),aa.exports}Xb();function Ef(t,o){return function(s,l,c,u,d){return uf(l)?o(Gb(s,l),null,c,u,d):uf(s)?o(s,l,c,u,d):t(s,l,c,u,d)}}function zf(t){const{as:o,[lf]:n,[Wi]:s,[sf]:l,...c}=t,u=c,d=typeof s=="string"?o??s:s;return typeof d!="string"&&o&&(u.as=o),{elementType:d,props:u,renderFunction:l}}const vo=d0,Qb=(t,o,n)=>{const{elementType:s,renderFunction:l,props:c}=zf(t),u={...c,...o};return l?vo.jsx(_.Fragment,{children:l(s,u)},n):vo.jsx(s,u,n)},Yb=(t,o,n)=>{const{elementType:s,renderFunction:l,props:c}=zf(t),u={...c,...o};return l?vo.jsx(_.Fragment,{children:l(s,{...u,children:vo.jsxs(_.Fragment,{children:u.children},void 0)})},n):vo.jsxs(s,u,n)},fe=Ef(vo.jsx,Qb),yt=Ef(vo.jsxs,Yb),Pf=_.createContext(void 0),Jb={},Zb=Pf.Provider,ey=()=>{const t=_.useContext(Pf);return t??Jb},ty=(t,o)=>fe(yb,{value:o.provider,children:fe(pb,{value:o.theme,children:fe(mb,{value:o.themeClassName,children:fe(xb,{value:o.customStyleHooks_unstable,children:fe(vb,{value:o.tooltip,children:fe(A1,{dir:o.textDirection,children:fe(Zb,{value:o.iconDirection,children:fe(wb,{value:o.overrides_unstable,children:yt(t.root,{children:[na()?null:fe("style",{dangerouslySetInnerHTML:{__html:t.serverStyleProps.cssRule},...t.serverStyleProps.attributes}),t.root.children]})})})})})})})})});var ry=typeof WeakRef<"u",Rf=class{constructor(t){ry&&typeof t=="object"?this._weakRef=new WeakRef(t):this._instance=t}deref(){var t,o;let n;return this._weakRef?(n=(t=this._weakRef)==null?void 0:t.deref(),n||delete this._weakRef):(n=this._instance,(o=n?.isDisposed)!=null&&o.call(n)&&delete this._instance),n}},tr="keyborg:focusin",Tn="keyborg:focusout";function oy(t){const o=t.HTMLElement,n=o.prototype.focus;let s=!1;return o.prototype.focus=function(){s=!0},t.document.createElement("button").focus(),o.prototype.focus=n,s}var ca=!1;function Tr(t){const o=t.focus;o.__keyborgNativeFocus?o.__keyborgNativeFocus.call(t):t.focus()}function ny(t){const o=t;ca||(ca=oy(o));const n=o.HTMLElement.prototype.focus;if(n.__keyborgNativeFocus)return;o.HTMLElement.prototype.focus=p;const s=new Set,l=g=>{const v=g.target;if(!v)return;const w=new CustomEvent(Tn,{cancelable:!0,bubbles:!0,composed:!0,detail:{originalEvent:g}});v.dispatchEvent(w)},c=g=>{const v=g.target;if(!v)return;let w=g.composedPath()[0];const b=new Set;for(;w;)w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?(b.add(w),w=w.host):w=w.parentNode;for(const x of s){const y=x.deref();(!y||!b.has(y))&&(s.delete(x),y&&(y.removeEventListener("focusin",c,!0),y.removeEventListener("focusout",l,!0)))}u(v,g.relatedTarget||void 0)},u=(g,v,w)=>{var b;const x=g.shadowRoot;if(x){for(const N of s)if(N.deref()===x)return;x.addEventListener("focusin",c,!0),x.addEventListener("focusout",l,!0),s.add(new Rf(x));return}const y={relatedTarget:v,originalEvent:w},S=new CustomEvent(tr,{cancelable:!0,bubbles:!0,composed:!0,detail:y});S.details=y,(ca||d.lastFocusedProgrammatically)&&(y.isFocusedProgrammatically=g===((b=d.lastFocusedProgrammatically)==null?void 0:b.deref()),d.lastFocusedProgrammatically=void 0),g.dispatchEvent(S)},d=o.__keyborgData={focusInHandler:c,focusOutHandler:l,shadowTargets:s};o.document.addEventListener("focusin",o.__keyborgData.focusInHandler,!0),o.document.addEventListener("focusout",o.__keyborgData.focusOutHandler,!0);function p(){const g=o.__keyborgData;return g&&(g.lastFocusedProgrammatically=new Rf(this)),n.apply(this,arguments)}let m=o.document.activeElement;for(;m&&m.shadowRoot;)u(m),m=m.shadowRoot.activeElement;p.__keyborgNativeFocus=n}function iy(t){const o=t,n=o.HTMLElement.prototype,s=n.focus.__keyborgNativeFocus,l=o.__keyborgData;if(l){o.document.removeEventListener("focusin",l.focusInHandler,!0),o.document.removeEventListener("focusout",l.focusOutHandler,!0);for(const c of l.shadowTargets){const u=c.deref();u&&(u.removeEventListener("focusin",l.focusInHandler,!0),u.removeEventListener("focusout",l.focusOutHandler,!0))}l.shadowTargets.clear(),delete o.__keyborgData}s&&(n.focus=s)}var sy=500,Ff=0,ly=class{constructor(t,o){this._isNavigatingWithKeyboard_DO_NOT_USE=!1,this._onFocusIn=s=>{if(this._isMouseOrTouchUsedTimer||this.isNavigatingWithKeyboard)return;const l=s.detail;l.relatedTarget&&(l.isFocusedProgrammatically||l.isFocusedProgrammatically===void 0||(this.isNavigatingWithKeyboard=!0))},this._onMouseDown=s=>{s.buttons===0||s.clientX===0&&s.clientY===0&&s.screenX===0&&s.screenY===0||this._onMouseOrTouch()},this._onMouseOrTouch=()=>{const s=this._win;s&&(this._isMouseOrTouchUsedTimer&&s.clearTimeout(this._isMouseOrTouchUsedTimer),this._isMouseOrTouchUsedTimer=s.setTimeout(()=>{delete this._isMouseOrTouchUsedTimer},1e3)),this.isNavigatingWithKeyboard=!1},this._onKeyDown=s=>{this.isNavigatingWithKeyboard?this._shouldDismissKeyboardNavigation(s)&&this._scheduleDismiss():this._shouldTriggerKeyboardNavigation(s)&&(this.isNavigatingWithKeyboard=!0)},this.id="c"+ ++Ff,this._win=t;const n=t.document;if(o){const s=o.triggerKeys,l=o.dismissKeys;s?.length&&(this._triggerKeys=new Set(s)),l?.length&&(this._dismissKeys=new Set(l))}n.addEventListener(tr,this._onFocusIn,!0),n.addEventListener("mousedown",this._onMouseDown,!0),t.addEventListener("keydown",this._onKeyDown,!0),n.addEventListener("touchstart",this._onMouseOrTouch,!0),n.addEventListener("touchend",this._onMouseOrTouch,!0),n.addEventListener("touchcancel",this._onMouseOrTouch,!0),ny(t)}get isNavigatingWithKeyboard(){return this._isNavigatingWithKeyboard_DO_NOT_USE}set isNavigatingWithKeyboard(t){this._isNavigatingWithKeyboard_DO_NOT_USE!==t&&(this._isNavigatingWithKeyboard_DO_NOT_USE=t,this.update())}dispose(){const t=this._win;if(t){this._isMouseOrTouchUsedTimer&&(t.clearTimeout(this._isMouseOrTouchUsedTimer),this._isMouseOrTouchUsedTimer=void 0),this._dismissTimer&&(t.clearTimeout(this._dismissTimer),this._dismissTimer=void 0),iy(t);const o=t.document;o.removeEventListener(tr,this._onFocusIn,!0),o.removeEventListener("mousedown",this._onMouseDown,!0),t.removeEventListener("keydown",this._onKeyDown,!0),o.removeEventListener("touchstart",this._onMouseOrTouch,!0),o.removeEventListener("touchend",this._onMouseOrTouch,!0),o.removeEventListener("touchcancel",this._onMouseOrTouch,!0),delete this._win}}isDisposed(){return!!this._win}update(){var t,o;const n=(o=(t=this._win)==null?void 0:t.__keyborg)==null?void 0:o.refs;if(n)for(const s of Object.keys(n))ua.update(n[s],this.isNavigatingWithKeyboard)}_shouldTriggerKeyboardNavigation(t){var o;if(t.key==="Tab")return!0;const n=(o=this._win)==null?void 0:o.document.activeElement,s=!this._triggerKeys||this._triggerKeys.has(t.keyCode),l=n&&(n.tagName==="INPUT"||n.tagName==="TEXTAREA"||n.isContentEditable);return s&&!l}_shouldDismissKeyboardNavigation(t){var o;return(o=this._dismissKeys)==null?void 0:o.has(t.keyCode)}_scheduleDismiss(){const t=this._win;if(t){this._dismissTimer&&(t.clearTimeout(this._dismissTimer),this._dismissTimer=void 0);const o=t.document.activeElement;this._dismissTimer=t.setTimeout(()=>{this._dismissTimer=void 0;const n=t.document.activeElement;o&&n&&o===n&&(this.isNavigatingWithKeyboard=!1)},sy)}}},ua=class l0{constructor(o,n){this._cb=[],this._id="k"+ ++Ff,this._win=o;const s=o.__keyborg;s?(this._core=s.core,s.refs[this._id]=this):(this._core=new ly(o,n),o.__keyborg={core:this._core,refs:{[this._id]:this}})}static create(o,n){return new l0(o,n)}static dispose(o){o.dispose()}static update(o,n){o._cb.forEach(s=>s(n))}dispose(){var o;const n=(o=this._win)==null?void 0:o.__keyborg;n?.refs[this._id]&&(delete n.refs[this._id],Object.keys(n.refs).length===0&&(n.core.dispose(),delete this._win.__keyborg)),this._cb=[],delete this._core,delete this._win}isNavigatingWithKeyboard(){var o;return!!((o=this._core)!=null&&o.isNavigatingWithKeyboard)}subscribe(o){this._cb.push(o)}unsubscribe(o){const n=this._cb.indexOf(o);n>=0&&this._cb.splice(n,1)}setVal(o){this._core&&(this._core.isNavigatingWithKeyboard=o)}};function Ui(t,o){return ua.create(t,o)}function Gi(t){ua.dispose(t)}const rr="data-tabster",ay="data-tabster-dummy",If=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","*[tabindex]","*[contenteditable]","details > summary","audio[controls]","video[controls]"].join(", "),Lo={EscapeGroupper:1,Restorer:2,Deloser:3},Wr={Invisible:0,PartiallyVisible:1,Visible:2},or={Both:0,Vertical:1,Horizontal:2,Grid:3,GridLinear:4},Ve={ArrowUp:1,ArrowDown:2,ArrowLeft:3,ArrowRight:4,PageUp:5,PageDown:6,Home:7,End:8},Ki={Unlimited:0,Limited:1,LimitedTrapFocus:2},Xi={Enter:1,Escape:2},cy={Outside:2};function Wt(t,o){var n;return(n=t.storageEntry(o))===null||n===void 0?void 0:n.tabster}function Df(t,o,n){var s,l;const c=n||t._noop?void 0:o.getAttribute(rr);let u=t.storageEntry(o),d;if(c)if(c!==((s=u?.attr)===null||s===void 0?void 0:s.string))try{const v=JSON.parse(c);if(typeof v!="object")throw new Error(`Value is not a JSON object, got '${c}'.`);d={string:c,object:v}}catch{}else return;else if(!u)return;u||(u=t.storageEntry(o,!0)),u.tabster||(u.tabster={});const p=u.tabster||{},m=((l=u.attr)===null||l===void 0?void 0:l.object)||{},g=d?.object||{};for(const v of Object.keys(m))if(!g[v]){if(v==="root"){const w=p[v];w&&t.root.onRoot(w,!0)}switch(v){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const w=p[v];w&&(w.dispose(),delete p[v]);break;case"observed":delete p[v],t.observedElement&&t.observedElement.onObservedElementUpdate(o);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete p[v];break}}for(const v of Object.keys(g)){const w=g.sys;switch(v){case"deloser":p.deloser?p.deloser.setProps(g.deloser):t.deloser&&(p.deloser=t.deloser.createDeloser(o,g.deloser));break;case"root":p.root?p.root.setProps(g.root):p.root=t.root.createRoot(o,g.root,w),t.root.onRoot(p.root);break;case"modalizer":p.modalizer?p.modalizer.setProps(g.modalizer):t.modalizer&&(p.modalizer=t.modalizer.createModalizer(o,g.modalizer,w));break;case"restorer":p.restorer?p.restorer.setProps(g.restorer):t.restorer&&g.restorer&&(p.restorer=t.restorer.createRestorer(o,g.restorer));break;case"focusable":p.focusable=g.focusable;break;case"groupper":p.groupper?p.groupper.setProps(g.groupper):t.groupper&&(p.groupper=t.groupper.createGroupper(o,g.groupper,w));break;case"mover":p.mover?p.mover.setProps(g.mover):t.mover&&(p.mover=t.mover.createMover(o,g.mover,w));break;case"observed":t.observedElement&&(p.observed=g.observed,t.observedElement.onObservedElementUpdate(o));break;case"uncontrolled":p.uncontrolled=g.uncontrolled;break;case"outline":t.outline&&(p.outline=g.outline);break;case"sys":p.sys=g.sys;break;default:console.error(`Unknown key '${v}' in data-tabster attribute value.`)}}d?u.attr=d:(Object.keys(p).length===0&&(delete u.tabster,delete u.attr),t.storageEntry(o,!1))}const uy="tabster:focusin",dy="tabster:focusout",fy="tabster:movefocus",py="tabster:mover:state",da="tabster:mover:movefocus",jf="tabster:mover:memorized-element",fa="tabster:groupper:movefocus",hy="tabster:root:focus",my="tabster:root:blur",gy=typeof CustomEvent<"u"?CustomEvent:function(){};class $r extends gy{constructor(o,n){super(o,{bubbles:!0,cancelable:!0,composed:!0,detail:n}),this.details=n}}class vy extends $r{constructor(o){super(uy,o)}}class by extends $r{constructor(o){super(dy,o)}}class Vr extends $r{constructor(o){super(fy,o)}}class Of extends $r{constructor(o){super(py,o)}}class yy extends $r{constructor(o){super(da,o)}}class Af extends $r{constructor(o){super(fa,o)}}class wy extends $r{constructor(o){super(hy,o)}}class ky extends $r{constructor(o){super(my,o)}}const Q={createMutationObserver:t=>new MutationObserver(t),createTreeWalker:(t,o,n,s)=>t.createTreeWalker(o,n,s),getParentNode:t=>t?t.parentNode:null,getParentElement:t=>t?t.parentElement:null,nodeContains:(t,o)=>!!(o&&t?.contains(o)),getActiveElement:t=>t.activeElement,querySelector:(t,o)=>t.querySelector(o),querySelectorAll:(t,o)=>Array.prototype.slice.call(t.querySelectorAll(o),0),getElementById:(t,o)=>t.getElementById(o),getFirstChild:t=>t?.firstChild||null,getLastChild:t=>t?.lastChild||null,getNextSibling:t=>t?.nextSibling||null,getPreviousSibling:t=>t?.previousSibling||null,getFirstElementChild:t=>t?.firstElementChild||null,getLastElementChild:t=>t?.lastElementChild||null,getNextElementSibling:t=>t?.nextElementSibling||null,getPreviousElementSibling:t=>t?.previousElementSibling||null,appendChild:(t,o)=>t.appendChild(o),insertBefore:(t,o,n)=>t.insertBefore(o,n),getSelection:t=>{var o;return((o=t.ownerDocument)===null||o===void 0?void 0:o.getSelection())||null},getElementsByName:(t,o)=>t.ownerDocument.getElementsByName(o)};function xy(t){for(const o of Object.keys(t))Q[o]=t[o]}let pa;const Lf=typeof DOMRect<"u"?DOMRect:class{constructor(t,o,n,s){this.left=t||0,this.top=o||0,this.right=(t||0)+(n||0),this.bottom=(o||0)+(s||0)}};let _y=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),pa=!1}catch{pa=!0}const ha=100;function Er(t){const o=t();let n=o.__tabsterInstanceContext;return n||(n={elementByUId:{},basics:{Promise:o.Promise||void 0,WeakRef:o.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},o.__tabsterInstanceContext=n),n}function Sy(t){const o=t.__tabsterInstanceContext;o&&(o.elementByUId={},delete o.WeakRef,o.containerBoundingRectCache={},o.containerBoundingRectCacheTimer&&t.clearTimeout(o.containerBoundingRectCacheTimer),o.fakeWeakRefsTimer&&t.clearTimeout(o.fakeWeakRefsTimer),o.fakeWeakRefs=[],delete t.__tabsterInstanceContext)}function Cy(t){const o=t.__tabsterInstanceContext;return new(o?.basics.WeakMap||WeakMap)}function By(t){return!!t.querySelector(If)}class Mf{constructor(o){this._target=o}deref(){return this._target}static cleanup(o,n){return o._target?n||!ga(o._target.ownerDocument,o._target)?(delete o._target,!0):!1:!0}}class pr{constructor(o,n,s){const l=Er(o);let c;l.WeakRef?c=new l.WeakRef(n):(c=new Mf(n),l.fakeWeakRefs.push(c)),this._ref=c,this._data=s}get(){const o=this._ref;let n;return o&&(n=o.deref(),n||delete this._ref),n}getData(){return this._data}}function qf(t,o){const n=Er(t);n.fakeWeakRefs=n.fakeWeakRefs.filter(s=>!Mf.cleanup(s,o))}function Hf(t){const o=Er(t);o.fakeWeakRefsStarted||(o.fakeWeakRefsStarted=!0,o.WeakRef=Ry(o)),o.fakeWeakRefsTimer||(o.fakeWeakRefsTimer=t().setTimeout(()=>{o.fakeWeakRefsTimer=void 0,qf(t),Hf(t)},120*1e3))}function Ny(t){const o=Er(t);o.fakeWeakRefsStarted=!1,o.fakeWeakRefsTimer&&(t().clearTimeout(o.fakeWeakRefsTimer),o.fakeWeakRefsTimer=void 0,o.fakeWeakRefs=[])}function ma(t,o,n){if(o.nodeType!==Node.ELEMENT_NODE)return;const s=pa?n:{acceptNode:n};return Q.createTreeWalker(t,o,NodeFilter.SHOW_ELEMENT,s,!1)}function Wf(t,o){let n=o.__tabsterCacheId;const s=Er(t),l=n?s.containerBoundingRectCache[n]:void 0;if(l)return l.rect;const c=o.ownerDocument&&o.ownerDocument.documentElement;if(!c)return new Lf;let u=0,d=0,p=c.clientWidth,m=c.clientHeight;if(o!==c){const v=o.getBoundingClientRect();u=Math.max(u,v.left),d=Math.max(d,v.top),p=Math.min(p,v.right),m=Math.min(m,v.bottom)}const g=new Lf(u<p?u:-1,d<m?d:-1,u<p?p-u:0,d<m?m-d:0);return n||(n="r-"+ ++s.lastContainerBoundingRectCacheId,o.__tabsterCacheId=n),s.containerBoundingRectCache[n]={rect:g,element:o},s.containerBoundingRectCacheTimer||(s.containerBoundingRectCacheTimer=window.setTimeout(()=>{s.containerBoundingRectCacheTimer=void 0;for(const v of Object.keys(s.containerBoundingRectCache))delete s.containerBoundingRectCache[v].element.__tabsterCacheId;s.containerBoundingRectCache={}},50)),g}function $f(t,o,n){const s=Vf(o);if(!s)return!1;const l=Wf(t,s),c=o.getBoundingClientRect(),u=c.height*(1-n),d=Math.max(0,l.top-c.top),p=Math.max(0,c.bottom-l.bottom),m=d+p;return m===0||m<=u}function Ty(t,o,n){const s=Vf(o);if(s){const l=Wf(t,s),c=o.getBoundingClientRect();n?s.scrollTop+=c.top-l.top:s.scrollTop+=c.bottom-l.bottom}}function Vf(t){const o=t.ownerDocument;if(o){for(let n=Q.getParentElement(t);n;n=Q.getParentElement(n))if(n.scrollWidth>n.clientWidth||n.scrollHeight>n.clientHeight)return n;return o.documentElement}return null}function Ey(t){t.__shouldIgnoreFocus=!0}function Uf(t){return!!t.__shouldIgnoreFocus}function zy(t){const o=new Uint32Array(4);if(t.crypto&&t.crypto.getRandomValues)t.crypto.getRandomValues(o);else if(t.msCrypto&&t.msCrypto.getRandomValues)t.msCrypto.getRandomValues(o);else for(let s=0;s<o.length;s++)o[s]=4294967295*Math.random();const n=[];for(let s=0;s<o.length;s++)n.push(o[s].toString(36));return n.push("|"),n.push((++_y).toString(36)),n.push("|"),n.push(Date.now().toString(36)),n.join("")}function Qi(t,o){const n=Er(t);let s=o.__tabsterElementUID;return s||(s=o.__tabsterElementUID=zy(t())),!n.elementByUId[s]&&ga(o.ownerDocument,o)&&(n.elementByUId[s]=new pr(t,o)),s}function Gf(t,o){const n=Er(t);for(const s of Object.keys(n.elementByUId)){const l=n.elementByUId[s],c=l&&l.get();c&&o&&!Q.nodeContains(o,c)||delete n.elementByUId[s]}}function ga(t,o){return Q.nodeContains(t?.body,o)}function Kf(t,o){const n=t.matches||t.matchesSelector||t.msMatchesSelector||t.webkitMatchesSelector;return n&&n.call(t,o)}function Py(t){const o=Er(t);if(o.basics.Promise)return o.basics.Promise;throw new Error("No Promise defined.")}function Ry(t){return t.basics.WeakRef}let Fy=0;class va{constructor(o,n,s){const l=o.getWindow;this._tabster=o,this._element=new pr(l,n),this._props={...s},this.id="i"+ ++Fy}getElement(){return this._element.get()}getProps(){return this._props}setProps(o){this._props={...o}}}class Yi{constructor(o,n,s,l,c){var u;this._focusIn=g=>{if(this._fixedTarget){const w=this._fixedTarget.get();w&&Tr(w);return}const v=this.input;if(this.onFocusIn&&v){const w=g.relatedTarget;this.onFocusIn(this,this._isBackward(!0,v,w),w)}},this._focusOut=g=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const v=this.input;if(this.onFocusOut&&v){const w=g.relatedTarget;this.onFocusOut(this,this._isBackward(!1,v,w),w)}};const d=o(),p=d.document.createElement("i");p.tabIndex=0,p.setAttribute("role","none"),p.setAttribute(ay,""),p.setAttribute("aria-hidden","true");const m=p.style;m.position="fixed",m.width=m.height="1px",m.opacity="0.001",m.zIndex="-1",m.setProperty("content-visibility","hidden"),Ey(p),this.input=p,this.isFirst=s.isFirst,this.isOutside=n,this._isPhantom=(u=s.isPhantom)!==null&&u!==void 0?u:!1,this._fixedTarget=c,p.addEventListener("focusin",this._focusIn),p.addEventListener("focusout",this._focusOut),p.__tabsterDummyContainer=l,this._isPhantom&&(this._disposeTimer=d.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(d.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var o;this._clearDisposeTimeout&&this._clearDisposeTimeout();const n=this.input;n&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,n.removeEventListener("focusin",this._focusIn),n.removeEventListener("focusout",this._focusOut),delete n.__tabsterDummyContainer,(o=Q.getParentNode(n))===null||o===void 0||o.removeChild(n))}setTopLeft(o,n){var s;const l=(s=this.input)===null||s===void 0?void 0:s.style;l&&(l.top=`${o}px`,l.left=`${n}px`)}_isBackward(o,n,s){return o&&!s?!this.isFirst:!!(s&&n.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING)}}const ba={Root:1,Mover:3,Groupper:4};class En{constructor(o,n,s,l,c,u){this._element=n,this._instance=new Dy(o,n,this,s,l,c,u)}_setHandlers(o,n){this._onFocusIn=o,this._onFocusOut=n}moveOut(o){var n;(n=this._instance)===null||n===void 0||n.moveOut(o)}moveOutWithDefaultAction(o,n){var s;(s=this._instance)===null||s===void 0||s.moveOutWithDefaultAction(o,n)}getHandler(o){return o?this._onFocusIn:this._onFocusOut}setTabbable(o){var n;(n=this._instance)===null||n===void 0||n.setTabbable(this,o)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(o,n,s,l,c){const d=new Yi(o.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(d){let p,m;if(n.tagName==="BODY")p=n,m=s&&l||!s&&!l?Q.getFirstElementChild(n):null;else{s&&(!l||l&&!o.focusable.isFocusable(n,!1,!0,!0))?(p=n,m=l?n.firstElementChild:null):(p=Q.getParentElement(n),m=s&&l||!s&&!l?n:Q.getNextElementSibling(n));let g,v;do g=s&&l||!s&&!l?Q.getPreviousElementSibling(m):m,v=zn(g),v===n?m=s&&l||!s&&!l?g:Q.getNextElementSibling(g):v=null;while(v)}p?.dispatchEvent(new Vr({by:"root",owner:p,next:null,relatedEvent:c}))&&(Q.insertBefore(p,d,m),Tr(d))}}static addPhantomDummyWithTarget(o,n,s,l){const u=new Yi(o.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new pr(o.getWindow,l)).input;if(u){let d,p;By(n)&&!s?(d=n,p=Q.getFirstElementChild(n)):(d=Q.getParentElement(n),p=s?n:Q.getNextElementSibling(n)),d&&Q.insertBefore(d,u,p)}}}class Iy{constructor(o){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=n=>{var s;this._changedParents.has(n)||(this._changedParents.add(n),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=(s=this._win)===null||s===void 0?void 0:s.call(this).setTimeout(()=>{delete this._updateDummyInputsTimer;for(const l of this._dummyElements){const c=l.get();if(c){const u=this._dummyCallbacks.get(c);if(u){const d=Q.getParentNode(c);(!d||this._changedParents.has(d))&&u()}}}this._changedParents=new WeakSet},ha)))},this._win=o}add(o,n){!this._dummyCallbacks.has(o)&&this._win&&(this._dummyElements.push(new pr(this._win,o)),this._dummyCallbacks.set(o,n),this.domChanged=this._domChanged)}remove(o){this._dummyElements=this._dummyElements.filter(n=>{const s=n.get();return s&&s!==o}),this._dummyCallbacks.delete(o),this._dummyElements.length===0&&delete this.domChanged}dispose(){var o;const n=(o=this._win)===null||o===void 0?void 0:o.call(this);this._updateTimer&&(n?.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(n?.clearTimeout(this._updateDummyInputsTimer),delete this._updateDummyInputsTimer),this._changedParents=new WeakSet,this._dummyCallbacks=new WeakMap,this._dummyElements=[],this._updateQueue.clear(),delete this.domChanged,delete this._win}updatePositions(o){this._win&&(this._updateQueue.add(o),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){var o;this._updateTimer||(this._updateTimer=(o=this._win)===null||o===void 0?void 0:o.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+ha<=Date.now()){const n=new Map,s=[];for(const l of this._updateQueue)s.push(l(n));this._updateQueue.clear();for(const l of s)l();n.clear()}else this._scheduledUpdatePositions()},ha))}}class Dy{constructor(o,n,s,l,c,u,d){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(b,x,y)=>{this._onFocus(!0,b,x,y)},this._onFocusOut=(b,x,y)=>{this._onFocus(!1,b,x,y)},this.moveOut=b=>{var x;const y=this._firstDummy,S=this._lastDummy;if(y&&S){this._ensurePosition();const N=y.input,E=S.input,B=(x=this._element)===null||x===void 0?void 0:x.get();if(N&&E&&B){let T;b?(N.tabIndex=0,T=N):(E.tabIndex=0,T=E),T&&Tr(T)}}},this.moveOutWithDefaultAction=(b,x)=>{var y;const S=this._firstDummy,N=this._lastDummy;if(S&&N){this._ensurePosition();const E=S.input,B=N.input,T=(y=this._element)===null||y===void 0?void 0:y.get();if(E&&B&&T){let R;b?!S.isOutside&&this._tabster.focusable.isFocusable(T,!0,!0,!0)?R=T:(S.useDefaultAction=!0,E.tabIndex=0,R=E):(N.useDefaultAction=!0,B.tabIndex=0,R=B),R&&T.dispatchEvent(new Vr({by:"root",owner:T,next:null,relatedEvent:x}))&&Tr(R)}}},this.setTabbable=(b,x)=>{var y,S;for(const E of this._wrappers)if(E.manager===b){E.tabbable=x;break}const N=this._getCurrent();if(N){const E=N.tabbable?0:-1;let B=(y=this._firstDummy)===null||y===void 0?void 0:y.input;B&&(B.tabIndex=E),B=(S=this._lastDummy)===null||S===void 0?void 0:S.input,B&&(B.tabIndex=E)}},this._addDummyInputs=()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),this._addTransformOffsets()},0))},this._addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)},this._computeTransformOffsets=b=>{var x,y;const S=((x=this._firstDummy)===null||x===void 0?void 0:x.input)||((y=this._lastDummy)===null||y===void 0?void 0:y.input),N=this._transformElements,E=new Set;let B=0,T=0;const R=this._getWindow();for(let O=S;O&&O.nodeType===Node.ELEMENT_NODE;O=Q.getParentElement(O)){let L=b.get(O);if(L===void 0){const W=R.getComputedStyle(O).transform;W&&W!=="none"&&(L={scrollTop:O.scrollTop,scrollLeft:O.scrollLeft}),b.set(O,L||null)}L&&(E.add(O),N.has(O)||O.addEventListener("scroll",this._addTransformOffsets),B+=L.scrollTop,T+=L.scrollLeft)}for(const O of N)E.has(O)||O.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=E,()=>{var O,L;(O=this._firstDummy)===null||O===void 0||O.setTopLeft(B,T),(L=this._lastDummy)===null||L===void 0||L.setTopLeft(B,T)}};const p=n.get();if(!p)throw new Error("No element");this._tabster=o,this._getWindow=o.getWindow,this._callForDefaultAction=d;const m=p.__tabsterDummy;if((m||this)._wrappers.push({manager:s,priority:l,tabbable:!0}),m)return m;p.__tabsterDummy=this;const g=c?.dummyInputsPosition,v=p.tagName;this._isOutside=g?g===cy.Outside:(u||v==="UL"||v==="OL"||v==="TABLE")&&!(v==="LI"||v==="TD"||v==="TH"),this._firstDummy=new Yi(this._getWindow,this._isOutside,{isFirst:!0},n),this._lastDummy=new Yi(this._getWindow,this._isOutside,{isFirst:!1},n);const w=this._firstDummy.input;w&&o._dummyObserver.add(w,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=n,this._addDummyInputs()}dispose(o,n){var s,l,c,u;if((this._wrappers=this._wrappers.filter(p=>p.manager!==o&&!n)).length===0){delete((s=this._element)===null||s===void 0?void 0:s.get()).__tabsterDummy;for(const g of this._transformElements)g.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const p=this._getWindow();this._addTimer&&(p.clearTimeout(this._addTimer),delete this._addTimer);const m=(l=this._firstDummy)===null||l===void 0?void 0:l.input;m&&this._tabster._dummyObserver.remove(m),(c=this._firstDummy)===null||c===void 0||c.dispose(),(u=this._lastDummy)===null||u===void 0||u.dispose()}}_onFocus(o,n,s,l){var c;const u=this._getCurrent();u&&(!n.useDefaultAction||this._callForDefaultAction)&&((c=u.manager.getHandler(o))===null||c===void 0||c(n,s,l))}_getCurrent(){return this._wrappers.sort((o,n)=>o.tabbable!==n.tabbable?o.tabbable?-1:1:o.priority-n.priority),this._wrappers[0]}_ensurePosition(){var o,n,s;const l=(o=this._element)===null||o===void 0?void 0:o.get(),c=(n=this._firstDummy)===null||n===void 0?void 0:n.input,u=(s=this._lastDummy)===null||s===void 0?void 0:s.input;if(!(!l||!c||!u))if(this._isOutside){const d=Q.getParentNode(l);if(d){const p=Q.getNextSibling(l);p!==u&&Q.insertBefore(d,u,p),Q.getPreviousElementSibling(l)!==c&&Q.insertBefore(d,c,l)}}else{Q.getLastElementChild(l)!==u&&Q.appendChild(l,u);const d=Q.getFirstElementChild(l);d&&d!==c&&d.parentNode&&Q.insertBefore(d.parentNode,c,d)}}}function Xf(t){let o=null;for(let n=Q.getLastElementChild(t);n;n=Q.getLastElementChild(n))o=n;return o||void 0}function jy(t,o){let n=t,s=null;for(;n&&!s;)s=o?Q.getPreviousElementSibling(n):Q.getNextElementSibling(n),n=Q.getParentElement(n);return s||void 0}function Oy(t){var o,n;const s=t.ownerDocument,l=(o=s.defaultView)===null||o===void 0?void 0:o.getComputedStyle(t);return t.offsetParent===null&&s.body!==t&&l?.position!=="fixed"||l?.visibility==="hidden"||l?.position==="fixed"&&(l.display==="none"||((n=t.parentElement)===null||n===void 0?void 0:n.offsetParent)===null&&s.body!==t.parentElement)}function ya(t){return t.tagName==="INPUT"&&!!t.name&&t.type==="radio"}function Ay(t){if(!ya(t))return;const o=t.name;let n=Array.from(Q.getElementsByName(t,o)),s;return n=n.filter(l=>ya(l)?(l.checked&&(s=l),!0):!1),{name:o,buttons:new Set(n),checked:s}}function zn(t){var o;return((o=t?.__tabsterDummyContainer)===null||o===void 0?void 0:o.get())||null}function Qf(t,o){return JSON.stringify(t)}function Ly(t,o){for(const n of Object.keys(o)){const s=o[n];s?t[n]=s:delete t[n]}}function My(t,o,n){let s;{const l=t.getAttribute(rr);if(l)try{s=JSON.parse(l)}catch{}}s||(s={}),Ly(s,o),Object.keys(s).length>0?t.setAttribute(rr,Qf(s)):t.removeAttribute(rr)}class Yf extends En{constructor(o,n,s,l){super(o,n,ba.Root,l,void 0,!0),this._onDummyInputFocus=c=>{var u;if(c.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const d=this._element.get();if(d){this._setFocused(!0);const p=this._tabster.focusedElement.getFirstOrLastTabbable(c.isFirst,{container:d,ignoreAccessibility:!0});if(p){Tr(p);return}}(u=c.input)===null||u===void 0||u.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=o,this._setFocused=s}}class qy extends va{constructor(o,n,s,l,c){super(o,n,l),this._isFocused=!1,this._setFocused=m=>{var g;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===m)return;const v=this._element.get();v&&(m?(this._isFocused=!0,(g=this._dummyManager)===null||g===void 0||g.setTabbable(!1),v.dispatchEvent(new wy({element:v}))):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var w;delete this._setFocusedTimer,this._isFocused=!1,(w=this._dummyManager)===null||w===void 0||w.setTabbable(!0),v.dispatchEvent(new ky({element:v}))},0))},this._onFocusIn=m=>{const g=this._tabster.getParent,v=this._element.get();let w=m.composedPath()[0];do{if(w===v){this._setFocused(!0);return}w=w&&g(w)}while(w)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=s;const u=o.getWindow;this.uid=Qi(u,n),this._sys=c,(o.controlTab||o.rootDummyInputs)&&this.addDummyInputs();const p=u().document;p.addEventListener(tr,this._onFocusIn),p.addEventListener(Tn,this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new Yf(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var o;this._onDispose(this);const n=this._tabster.getWindow(),s=n.document;s.removeEventListener(tr,this._onFocusIn),s.removeEventListener(Tn,this._onFocusOut),this._setFocusedTimer&&(n.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),(o=this._dummyManager)===null||o===void 0||o.dispose(),this._remove()}moveOutWithDefaultAction(o,n){const s=this._dummyManager;if(s)s.moveOutWithDefaultAction(o,n);else{const l=this.getElement();l&&Yf.moveWithPhantomDummy(this._tabster,l,!0,o,n)}}_add(){}_remove(){}}class tt{constructor(o,n){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var s;const l=this._win().document,c=l.body;if(c){this._autoRootUnwait(l);const u=this._autoRoot;if(u)return My(c,{root:u}),Df(this._tabster,c),(s=Wt(this._tabster,c))===null||s===void 0?void 0:s.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,l.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=s=>{delete this._roots[s.id]},this._tabster=o,this._win=o.getWindow,this._autoRoot=n,o.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(o){o.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const o=this._win();this._autoRootUnwait(o.document),delete this._autoRoot,Object.keys(this._roots).forEach(n=>{this._roots[n]&&(this._roots[n].dispose(),delete this._roots[n])}),this.rootById={}}createRoot(o,n,s){const l=new qy(this._tabster,o,this._onRootDispose,n,s);return this._roots[l.id]=l,this._forceDummy&&l.addDummyInputs(),l}addDummyInputs(){this._forceDummy=!0;const o=this._roots;for(const n of Object.keys(o))o[n].addDummyInputs()}static getRootByUId(o,n){const s=o().__tabsterInstance;return s&&s.root.rootById[n]}static getTabsterContext(o,n,s){s===void 0&&(s={});var l,c,u,d;if(!n.ownerDocument)return;const{checkRtl:p,referenceElement:m}=s,g=o.getParent;o.drainInitQueue();let v,w,b,x,y=!1,S,N,E,B,T=m||n;const R={};for(;T&&(!v||p);){const L=Wt(o,T);if(p&&E===void 0){const ee=T.dir;ee&&(E=ee.toLowerCase()==="rtl")}if(!L){T=g(T);continue}const W=T.tagName;(L.uncontrolled||W==="IFRAME"||W==="WEBVIEW")&&o.focusable.isVisible(T)&&(B=T),!x&&(!((l=L.focusable)===null||l===void 0)&&l.excludeFromMover)&&!b&&(y=!0);const H=L.modalizer,Y=L.groupper,ce=L.mover;!w&&H&&(w=H),!b&&Y&&(!w||H)&&(w?(!Y.isActive()&&Y.getProps().tabbability&&w.userId!==((c=o.modalizer)===null||c===void 0?void 0:c.activeId)&&(w=void 0,b=Y),N=Y):b=Y),!x&&ce&&(!w||H)&&(!Y||T!==n)&&T.contains(n)&&(x=ce,S=!!b&&b!==Y),L.root&&(v=L.root),!((u=L.focusable)===null||u===void 0)&&u.ignoreKeydown&&Object.assign(R,L.focusable.ignoreKeydown),T=g(T)}if(!v){const L=o.root;L._autoRoot&&!((d=n.ownerDocument)===null||d===void 0)&&d.body&&(v=L._autoRootCreate())}return b&&!x&&(S=!0),v?{root:v,modalizer:w,groupper:b,mover:x,groupperBeforeMover:S,modalizerInGroupper:N,rtl:p?!!E:void 0,uncontrolled:B,excludedFromMover:y,ignoreKeydown:L=>!!R[L.key]}:void 0}static getRoot(o,n){var s;const l=o.getParent;for(let c=n;c;c=l(c)){const u=(s=Wt(o,c))===null||s===void 0?void 0:s.root;if(u)return u}}onRoot(o,n){n?delete this.rootById[o.uid]:this.rootById[o.uid]=o}}class Jf{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(o){const n=this._callbacks;n.indexOf(o)<0&&n.push(o)}subscribeFirst(o){const n=this._callbacks,s=n.indexOf(o);s>=0&&n.splice(s,1),n.unshift(o)}unsubscribe(o){const n=this._callbacks.indexOf(o);n>=0&&this._callbacks.splice(n,1)}setVal(o,n){this._val!==o&&(this._val=o,this._callCallbacks(o,n))}getVal(){return this._val}trigger(o,n){this._callCallbacks(o,n)}_callCallbacks(o,n){this._callbacks.forEach(s=>s(o,n))}}class Hy{constructor(o){this._tabster=o}dispose(){}getProps(o){const n=Wt(this._tabster,o);return n&&n.focusable||{}}isFocusable(o,n,s,l){return Kf(o,If)&&(n||o.tabIndex!==-1)?(s||this.isVisible(o))&&(l||this.isAccessible(o)):!1}isVisible(o){if(!o.ownerDocument||o.nodeType!==Node.ELEMENT_NODE||Oy(o))return!1;const n=o.ownerDocument.body.getBoundingClientRect();return!(n.width===0&&n.height===0)}isAccessible(o){var n;for(let s=o;s;s=Q.getParentElement(s)){const l=Wt(this._tabster,s);if(this._isHidden(s)||!((n=l?.focusable)===null||n===void 0?void 0:n.ignoreAriaDisabled)&&this._isDisabled(s))return!1}return!0}_isDisabled(o){return o.hasAttribute("disabled")}_isHidden(o){var n;const s=o.getAttribute("aria-hidden");return!!(s&&s.toLowerCase()==="true"&&!(!((n=this._tabster.modalizer)===null||n===void 0)&&n.isAugmented(o)))}findFirst(o,n){return this.findElement({...o},n)}findLast(o,n){return this.findElement({isBackward:!0,...o},n)}findNext(o,n){return this.findElement({...o},n)}findPrev(o,n){return this.findElement({...o,isBackward:!0},n)}findDefault(o,n){return this.findElement({...o,acceptCondition:s=>this.isFocusable(s,o.includeProgrammaticallyFocusable)&&!!this.getProps(s).isDefault},n)||null}findAll(o){return this._findElements(!0,o)||[]}findElement(o,n){const s=this._findElements(!1,o,n);return s&&s[0]}_findElements(o,n,s){var l,c,u;const{container:d,currentElement:p=null,includeProgrammaticallyFocusable:m,useActiveModalizer:g,ignoreAccessibility:v,modalizerId:w,isBackward:b,onElement:x}=n;s||(s={});const y=[];let{acceptCondition:S}=n;const N=!!S;if(!d)return null;S||(S=R=>this.isFocusable(R,m,!1,v));const E={container:d,modalizerUserId:w===void 0&&g?(l=this._tabster.modalizer)===null||l===void 0?void 0:l.activeId:w||((u=(c=tt.getTabsterContext(this._tabster,d))===null||c===void 0?void 0:c.modalizer)===null||u===void 0?void 0:u.userId),from:p||d,isBackward:b,isFindAll:o,acceptCondition:S,hasCustomCondition:N,includeProgrammaticallyFocusable:m,ignoreAccessibility:v,cachedGrouppers:{},cachedRadioGroups:{}},B=ma(d.ownerDocument,d,R=>this._acceptElement(R,E));if(!B)return null;const T=R=>{var O,L;const W=(O=E.foundElement)!==null&&O!==void 0?O:E.foundBackward;return W&&y.push(W),o?W&&(E.found=!1,delete E.foundElement,delete E.foundBackward,delete E.fromCtx,E.from=W,x&&!x(W))?!1:!!(W||R):(W&&s&&(s.uncontrolled=(L=tt.getTabsterContext(this._tabster,W))===null||L===void 0?void 0:L.uncontrolled),!!(R&&!W))};if(p||(s.outOfDOMOrder=!0),p&&Q.nodeContains(d,p))B.currentNode=p;else if(b){const R=Xf(d);if(!R)return null;if(this._acceptElement(R,E)===NodeFilter.FILTER_ACCEPT&&!T(!0))return E.skippedFocusable&&(s.outOfDOMOrder=!0),y;B.currentNode=R}do b?B.previousNode():B.nextNode();while(T());return E.skippedFocusable&&(s.outOfDOMOrder=!0),y.length?y:null}_acceptElement(o,n){var s,l,c;if(n.found)return NodeFilter.FILTER_ACCEPT;const u=n.foundBackward;if(u&&(o===u||!Q.nodeContains(u,o)))return n.found=!0,n.foundElement=u,NodeFilter.FILTER_ACCEPT;const d=n.container;if(o===d)return NodeFilter.FILTER_SKIP;if(!Q.nodeContains(d,o)||zn(o)||Q.nodeContains(n.rejectElementsFrom,o))return NodeFilter.FILTER_REJECT;const p=n.currentCtx=tt.getTabsterContext(this._tabster,o);if(!p)return NodeFilter.FILTER_SKIP;if(Uf(o))return this.isFocusable(o,void 0,!0,!0)&&(n.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!n.hasCustomCondition&&(o.tagName==="IFRAME"||o.tagName==="WEBVIEW"))return this.isVisible(o)&&((s=p.modalizer)===null||s===void 0?void 0:s.userId)===((l=this._tabster.modalizer)===null||l===void 0?void 0:l.activeId)?(n.found=!0,n.rejectElementsFrom=n.foundElement=o,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!n.ignoreAccessibility&&!this.isAccessible(o))return this.isFocusable(o,!1,!0,!0)&&(n.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let m,g=n.fromCtx;g||(g=n.fromCtx=tt.getTabsterContext(this._tabster,n.from));const v=g?.mover;let w=p.groupper,b=p.mover;if(m=(c=this._tabster.modalizer)===null||c===void 0?void 0:c.acceptElement(o,n),m!==void 0&&(n.skippedFocusable=!0),m===void 0&&(w||b||v)){const x=w?.getElement(),y=v?.getElement();let S=b?.getElement();if(S&&Q.nodeContains(y,S)&&Q.nodeContains(d,y)&&(!x||!b||Q.nodeContains(y,x))&&(b=v,S=y),x){if(x===d||!Q.nodeContains(d,x))w=void 0;else if(!Q.nodeContains(x,o))return NodeFilter.FILTER_REJECT}if(S){if(!Q.nodeContains(d,S))b=void 0;else if(!Q.nodeContains(S,o))return NodeFilter.FILTER_REJECT}w&&b&&(S&&x&&!Q.nodeContains(x,S)?b=void 0:w=void 0),w&&(m=w.acceptElement(o,n)),b&&(m=b.acceptElement(o,n))}if(m===void 0&&(m=n.acceptCondition(o)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,m===NodeFilter.FILTER_SKIP&&this.isFocusable(o,!1,!0,!0)&&(n.skippedFocusable=!0)),m===NodeFilter.FILTER_ACCEPT&&!n.found){if(!n.isFindAll&&ya(o)&&!o.checked){const x=o.name;let y=n.cachedRadioGroups[x];if(y||(y=Ay(o),y&&(n.cachedRadioGroups[x]=y)),y?.checked&&y.checked!==o)return NodeFilter.FILTER_SKIP}n.isBackward?(n.foundBackward=o,m=NodeFilter.FILTER_SKIP):(n.found=!0,n.foundElement=o)}return m}}const Xe={Tab:"Tab",Enter:"Enter",Escape:"Escape",PageUp:"PageUp",PageDown:"PageDown",End:"End",Home:"Home",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown"};function Wy(t,o){var n;const s=t.getParent;let l=o;do{const c=(n=Wt(t,l))===null||n===void 0?void 0:n.uncontrolled;if(c&&t.uncontrolled.isUncontrolledCompletely(l,!!c.completely))return l;l=s(l)}while(l)}const Zf={[Lo.Restorer]:0,[Lo.Deloser]:1,[Lo.EscapeGroupper]:2};class Qe extends Jf{constructor(o,n){super(),this._init=()=>{const s=this._win(),l=s.document;l.addEventListener(tr,this._onFocusIn,!0),l.addEventListener(Tn,this._onFocusOut,!0),s.addEventListener("keydown",this._onKeyDown,!0);const c=Q.getActiveElement(l);c&&c!==l.body&&this._setFocusedElement(c),this.subscribe(this._onChanged)},this._onFocusIn=s=>{const l=s.composedPath()[0];l&&this._setFocusedElement(l,s.detail.relatedTarget,s.detail.isFocusedProgrammatically)},this._onFocusOut=s=>{var l;this._setFocusedElement(void 0,(l=s.detail)===null||l===void 0?void 0:l.originalEvent.relatedTarget)},this._validateFocusedElement=s=>{},this._onKeyDown=s=>{if(s.key!==Xe.Tab||s.ctrlKey)return;const l=this.getVal();if(!l||!l.ownerDocument||l.contentEditable==="true")return;const c=this._tabster,u=c.controlTab,d=tt.getTabsterContext(c,l);if(!d||d.ignoreKeydown(s))return;const p=s.shiftKey,m=Qe.findNextTabbable(c,d,void 0,l,void 0,p,!0),g=d.root.getElement();if(!g)return;const v=m?.element,w=Wy(c,l);if(v){const b=m.uncontrolled;if(d.uncontrolled||Q.nodeContains(b,l)){if(!m.outOfDOMOrder&&b===d.uncontrolled||w&&!Q.nodeContains(w,v))return;En.addPhantomDummyWithTarget(c,l,p,v);return}if(b&&c.focusable.isVisible(b)||v.tagName==="IFRAME"&&c.focusable.isVisible(v)){g.dispatchEvent(new Vr({by:"root",owner:g,next:v,relatedEvent:s}))&&En.moveWithPhantomDummy(c,b??v,!1,p,s);return}(u||m?.outOfDOMOrder)&&g.dispatchEvent(new Vr({by:"root",owner:g,next:v,relatedEvent:s}))&&(s.preventDefault(),s.stopImmediatePropagation(),Tr(v))}else!w&&g.dispatchEvent(new Vr({by:"root",owner:g,next:null,relatedEvent:s}))&&d.root.moveOutWithDefaultAction(p,s)},this._onChanged=(s,l)=>{var c,u;if(s)s.dispatchEvent(new vy(l));else{const d=(c=this._lastVal)===null||c===void 0?void 0:c.get();if(d){const p={...l},m=tt.getTabsterContext(this._tabster,d),g=(u=m?.modalizer)===null||u===void 0?void 0:u.userId;g&&(p.modalizerId=g),d.dispatchEvent(new by(p))}}},this._tabster=o,this._win=n,o.queueInit(this._init)}dispose(){super.dispose();const o=this._win(),n=o.document;n.removeEventListener(tr,this._onFocusIn,!0),n.removeEventListener(Tn,this._onFocusOut,!0),o.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged);const s=this._asyncFocus;s&&(o.clearTimeout(s.timeout),delete this._asyncFocus),delete Qe._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(o,n){var s,l;let c=Qe._lastResetElement,u=c&&c.get();u&&Q.nodeContains(n,u)&&delete Qe._lastResetElement,u=(l=(s=o._nextVal)===null||s===void 0?void 0:s.element)===null||l===void 0?void 0:l.get(),u&&Q.nodeContains(n,u)&&delete o._nextVal,c=o._lastVal,u=c&&c.get(),u&&Q.nodeContains(n,u)&&delete o._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var o;let n=(o=this._lastVal)===null||o===void 0?void 0:o.get();return(!n||n&&!ga(n.ownerDocument,n))&&(this._lastVal=n=void 0),n}focus(o,n,s,l){return this._tabster.focusable.isFocusable(o,n,!1,s)?(o.focus({preventScroll:l}),!0):!1}focusDefault(o){const n=this._tabster.focusable.findDefault({container:o});return n?(this._tabster.focusedElement.focus(n),!0):!1}getFirstOrLastTabbable(o,n){var s;const{container:l,ignoreAccessibility:c}=n;let u;if(l){const d=tt.getTabsterContext(this._tabster,l);d&&(u=(s=Qe.findNextTabbable(this._tabster,d,l,void 0,void 0,!o,c))===null||s===void 0?void 0:s.element)}return u&&!Q.nodeContains(l,u)&&(u=void 0),u||void 0}_focusFirstOrLast(o,n){const s=this.getFirstOrLastTabbable(o,n);return s?(this.focus(s,!1,!0),!0):!1}focusFirst(o){return this._focusFirstOrLast(!0,o)}focusLast(o){return this._focusFirstOrLast(!1,o)}resetFocus(o){if(!this._tabster.focusable.isVisible(o))return!1;if(this._tabster.focusable.isFocusable(o,!0,!0,!0))this.focus(o);else{const n=o.getAttribute("tabindex"),s=o.getAttribute("aria-hidden");o.tabIndex=-1,o.setAttribute("aria-hidden","true"),Qe._lastResetElement=new pr(this._win,o),this.focus(o,!0,!0),this._setOrRemoveAttribute(o,"tabindex",n),this._setOrRemoveAttribute(o,"aria-hidden",s)}return!0}requestAsyncFocus(o,n,s){const l=this._tabster.getWindow(),c=this._asyncFocus;if(c){if(Zf[o]>Zf[c.source])return;l.clearTimeout(c.timeout)}this._asyncFocus={source:o,callback:n,timeout:l.setTimeout(()=>{this._asyncFocus=void 0,n()},s)}}cancelAsyncFocus(o){const n=this._asyncFocus;n?.source===o&&(this._tabster.getWindow().clearTimeout(n.timeout),this._asyncFocus=void 0)}_setOrRemoveAttribute(o,n,s){s===null?o.removeAttribute(n):o.setAttribute(n,s)}_setFocusedElement(o,n,s){var l,c;if(this._tabster._noop)return;const u={relatedTarget:n};if(o){const p=(l=Qe._lastResetElement)===null||l===void 0?void 0:l.get();if(Qe._lastResetElement=void 0,p===o||Uf(o))return;u.isFocusedProgrammatically=s;const m=tt.getTabsterContext(this._tabster,o),g=(c=m?.modalizer)===null||c===void 0?void 0:c.userId;g&&(u.modalizerId=g)}const d=this._nextVal={element:o?new pr(this._win,o):void 0,detail:u};o&&o!==this._val&&this._validateFocusedElement(o),this._nextVal===d&&this.setVal(o,u),this._nextVal=void 0}setVal(o,n){super.setVal(o,n),o&&(this._lastVal=new pr(this._win,o))}static findNextTabbable(o,n,s,l,c,u,d){const p=s||n.root.getElement();if(!p)return null;let m=null;const g=Qe._isTabbingTimer,v=o.getWindow();g&&v.clearTimeout(g),Qe.isTabbing=!0,Qe._isTabbingTimer=v.setTimeout(()=>{delete Qe._isTabbingTimer,Qe.isTabbing=!1},0);const w=n.modalizer,b=n.groupper,x=n.mover,y=S=>{if(m=S.findNextTabbable(l,c,u,d),l&&!m?.element){const N=S!==w&&Q.getParentElement(S.getElement());if(N){const E=tt.getTabsterContext(o,l,{referenceElement:N});if(E){const B=S.getElement(),T=u?B:B&&Xf(B)||B;T&&(m=Qe.findNextTabbable(o,E,s,T,N,u,d),m&&(m.outOfDOMOrder=!0))}}}};if(b&&x)y(n.groupperBeforeMover?b:x);else if(b)y(b);else if(x)y(x);else if(w)y(w);else{const S={container:p,currentElement:l,referenceElement:c,ignoreAccessibility:d,useActiveModalizer:!0},N={};m={element:o.focusable[u?"findPrev":"findNext"](S,N),outOfDOMOrder:N.outOfDOMOrder,uncontrolled:N.uncontrolled}}return m}}Qe.isTabbing=!1;class $y extends En{constructor(o,n,s,l){super(s,o,ba.Groupper,l,!0),this._setHandlers((c,u,d)=>{var p,m;const g=o.get(),v=c.input;if(g&&v){const w=tt.getTabsterContext(s,v);if(w){let b;b=(p=n.findNextTabbable(d||void 0,void 0,u,!0))===null||p===void 0?void 0:p.element,b||(b=(m=Qe.findNextTabbable(s,w,void 0,c.isOutside?v:jy(g,!u),void 0,u,!0))===null||m===void 0?void 0:m.element),b&&Tr(b)}}})}}class Vy extends va{constructor(o,n,s,l,c){super(o,n,l),this._shouldTabInside=!1,this.makeTabbable(!1),this._onDispose=s,o.controlTab||(this.dummyManager=new $y(this._element,this,o,c))}dispose(){var o;this._onDispose(this),this._element.get(),(o=this.dummyManager)===null||o===void 0||o.dispose(),delete this.dummyManager,delete this._first}findNextTabbable(o,n,s,l){const c=this.getElement();if(!c)return null;const u=zn(o)===c;if(!this._shouldTabInside&&o&&Q.nodeContains(c,o)&&!u)return{element:void 0,outOfDOMOrder:!0};const d=this.getFirst(!0);if(!o||!Q.nodeContains(c,o)||u)return{element:d,outOfDOMOrder:!0};const p=this._tabster;let m=null,g=!1,v;if(this._shouldTabInside&&d){const w={container:c,currentElement:o,referenceElement:n,ignoreAccessibility:l,useActiveModalizer:!0},b={};m=p.focusable[s?"findPrev":"findNext"](w,b),g=!!b.outOfDOMOrder,!m&&this._props.tabbability===Ki.LimitedTrapFocus&&(m=p.focusable[s?"findLast":"findFirst"]({container:c,ignoreAccessibility:l,useActiveModalizer:!0},b),g=!0),v=b.uncontrolled}return{element:m,uncontrolled:v,outOfDOMOrder:g}}makeTabbable(o){this._shouldTabInside=o||!this._props.tabbability}isActive(o){var n;const s=this.getElement()||null;let l=!0;for(let u=Q.getParentElement(s);u;u=Q.getParentElement(u)){const d=(n=Wt(this._tabster,u))===null||n===void 0?void 0:n.groupper;d&&(d._shouldTabInside||(l=!1))}let c=l?this._props.tabbability?this._shouldTabInside:!1:void 0;if(c&&o){const u=this._tabster.focusedElement.getFocusedElement();u&&(c=u!==this.getFirst(!0))}return c}getFirst(o){var n;const s=this.getElement();let l;if(s){if(o&&this._tabster.focusable.isFocusable(s))return s;l=(n=this._first)===null||n===void 0?void 0:n.get(),l||(l=this._tabster.focusable.findFirst({container:s,useActiveModalizer:!0})||void 0,l&&this.setFirst(l))}return l}setFirst(o){o?this._first=new pr(this._tabster.getWindow,o):delete this._first}acceptElement(o,n){const s=n.cachedGrouppers,l=Q.getParentElement(this.getElement()),c=l&&tt.getTabsterContext(this._tabster,l),u=c?.groupper,d=c?.groupperBeforeMover?u:void 0;let p;const m=w=>{let b=s[w.id],x;return b?x=b.isActive:(x=this.isActive(!0),b=s[w.id]={isActive:x}),x};if(d&&(p=d.getElement(),!m(d)&&p&&n.container!==p&&Q.nodeContains(n.container,p)))return n.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const g=m(this),v=this.getElement();if(v&&g!==!0){if(v===o&&u&&(p||(p=u.getElement()),p&&!m(u)&&Q.nodeContains(n.container,p)&&p!==n.container)||v!==o&&Q.nodeContains(v,o))return n.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const w=s[this.id];let b;if("first"in w?b=w.first:b=w.first=this.getFirst(!0),b&&n.acceptCondition(b))return n.rejectElementsFrom=v,n.skippedFocusable=!0,b!==n.from?(n.found=!0,n.foundElement=b,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT}}}class Uy{constructor(o,n){this._current={},this._grouppers={},this._init=()=>{const s=this._win();this._tabster.focusedElement.subscribeFirst(this._onFocus);const l=s.document,c=Q.getActiveElement(l);c&&this._onFocus(c),l.addEventListener("mousedown",this._onMouseDown,!0),s.addEventListener("keydown",this._onKeyDown,!0),s.addEventListener(fa,this._onMoveFocus)},this._onGroupperDispose=s=>{delete this._grouppers[s.id]},this._onFocus=s=>{s&&this._updateCurrent(s)},this._onMouseDown=s=>{let l=s.target;for(;l&&!this._tabster.focusable.isFocusable(l);)l=this._tabster.getParent(l);l&&this._updateCurrent(l)},this._onKeyDown=s=>{if(s.key!==Xe.Enter&&s.key!==Xe.Escape||s.ctrlKey||s.altKey||s.shiftKey||s.metaKey)return;const l=this._tabster.focusedElement.getFocusedElement();l&&this.handleKeyPress(l,s)},this._onMoveFocus=s=>{var l;const c=s.composedPath()[0],u=(l=s.detail)===null||l===void 0?void 0:l.action;c&&u!==void 0&&!s.defaultPrevented&&(u===Xi.Enter?this._enterGroupper(c):this._escapeGroupper(c),s.stopImmediatePropagation())},this._tabster=o,this._win=n,o.queueInit(this._init)}dispose(){const o=this._win();this._tabster.focusedElement.cancelAsyncFocus(Lo.EscapeGroupper),this._current={},this._updateTimer&&(o.clearTimeout(this._updateTimer),delete this._updateTimer),this._tabster.focusedElement.unsubscribe(this._onFocus),o.document.removeEventListener("mousedown",this._onMouseDown,!0),o.removeEventListener("keydown",this._onKeyDown,!0),o.removeEventListener(fa,this._onMoveFocus),Object.keys(this._grouppers).forEach(n=>{this._grouppers[n]&&(this._grouppers[n].dispose(),delete this._grouppers[n])})}createGroupper(o,n,s){const l=this._tabster,c=new Vy(l,o,this._onGroupperDispose,n,s);this._grouppers[c.id]=c;const u=l.focusedElement.getFocusedElement();return u&&Q.nodeContains(o,u)&&!this._updateTimer&&(this._updateTimer=this._win().setTimeout(()=>{delete this._updateTimer,u===l.focusedElement.getFocusedElement()&&this._updateCurrent(u)},0)),c}forgetCurrentGrouppers(){this._current={}}_updateCurrent(o){var n;this._updateTimer&&(this._win().clearTimeout(this._updateTimer),delete this._updateTimer);const s=this._tabster,l={};for(let c=s.getParent(o);c;c=s.getParent(c)){const u=(n=Wt(s,c))===null||n===void 0?void 0:n.groupper;if(u){l[u.id]=!0,this._current[u.id]=u;const d=u.isActive()||o!==c&&(!u.getProps().delegated||u.getFirst(!1)!==o);u.makeTabbable(d)}}for(const c of Object.keys(this._current)){const u=this._current[c];u.id in l||(u.makeTabbable(!1),u.setFirst(void 0),delete this._current[c])}}_enterGroupper(o,n){const s=this._tabster,l=tt.getTabsterContext(s,o),c=l?.groupper||l?.modalizerInGroupper,u=c?.getElement();if(c&&u&&(o===u||c.getProps().delegated&&o===c.getFirst(!1))){const d=s.focusable.findNext({container:u,currentElement:o,useActiveModalizer:!0});if(d&&(!n||n&&u.dispatchEvent(new Vr({by:"groupper",owner:u,next:d,relatedEvent:n}))))return n&&(n.preventDefault(),n.stopImmediatePropagation()),d.focus(),d}return null}_escapeGroupper(o,n,s){const l=this._tabster,c=tt.getTabsterContext(l,o);let u=c?.groupper||c?.modalizerInGroupper;const d=u?.getElement();if(u&&d&&Q.nodeContains(d,o)){let p;if(o!==d||s)p=u.getFirst(!0);else{const m=Q.getParentElement(d),g=m?tt.getTabsterContext(l,m):void 0;u=g?.groupper,p=u?.getFirst(!0)}if(p&&(!n||n&&d.dispatchEvent(new Vr({by:"groupper",owner:d,next:p,relatedEvent:n}))))return u&&u.makeTabbable(!1),p.focus(),p}return null}moveFocus(o,n){return n===Xi.Enter?this._enterGroupper(o):this._escapeGroupper(o)}handleKeyPress(o,n,s){const l=this._tabster,c=tt.getTabsterContext(l,o);if(c&&(c?.groupper||c?.modalizerInGroupper)){if(l.focusedElement.cancelAsyncFocus(Lo.EscapeGroupper),c.ignoreKeydown(n))return;if(n.key===Xe.Enter)this._enterGroupper(o,n);else if(n.key===Xe.Escape){const u=l.focusedElement.getFocusedElement();l.focusedElement.requestAsyncFocus(Lo.EscapeGroupper,()=>{u!==l.focusedElement.getFocusedElement()&&(s&&!u||!s)||this._escapeGroupper(o,n,s)},0)}}}}class Gy extends Jf{constructor(o){super(),this._onChange=n=>{this.setVal(n,void 0)},this._keyborg=Ui(o()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),Gi(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(o){var n;(n=this._keyborg)===null||n===void 0||n.setVal(o)}isNavigatingWithKeyboard(){var o;return!!(!((o=this._keyborg)===null||o===void 0)&&o.isNavigatingWithKeyboard())}}const Ky=["input","textarea","*[contenteditable]"].join(", ");class Xy extends En{constructor(o,n,s,l){super(n,o,ba.Mover,l),this._onFocusDummyInput=c=>{var u,d;const p=this._element.get(),m=c.input;if(p&&m){const g=tt.getTabsterContext(this._tabster,p);let v;g&&(v=(u=Qe.findNextTabbable(this._tabster,g,void 0,m,void 0,!c.isFirst,!0))===null||u===void 0?void 0:u.element);const w=(d=this._getMemorized())===null||d===void 0?void 0:d.get();w&&this._tabster.focusable.isFocusable(w)&&(v=w),v&&Tr(v)}},this._tabster=n,this._getMemorized=s,this._setHandlers(this._onFocusDummyInput)}}const wa=1,ep=2,tp=3;class Qy extends va{constructor(o,n,s,l,c){var u;super(o,n,l),this._visible={},this._onIntersection=p=>{for(const m of p){const g=m.target,v=Qi(this._win,g);let w,b=this._fullyVisible;if(m.intersectionRatio>=.25?(w=m.intersectionRatio>=.75?Wr.Visible:Wr.PartiallyVisible,w===Wr.Visible&&(b=v)):w=Wr.Invisible,this._visible[v]!==w){w===void 0?(delete this._visible[v],b===v&&delete this._fullyVisible):(this._visible[v]=w,this._fullyVisible=b);const x=this.getState(g);x&&g.dispatchEvent(new Of(x))}}},this._win=o.getWindow,this.visibilityTolerance=(u=l.visibilityTolerance)!==null&&u!==void 0?u:.8,(this._props.trackState||this._props.visibilityAware)&&(this._intersectionObserver=new IntersectionObserver(this._onIntersection,{threshold:[0,.25,.5,.75,1]}),this._observeState()),this._onDispose=s;const d=()=>l.memorizeCurrent?this._current:void 0;o.controlTab||(this.dummyManager=new Xy(this._element,o,d,c))}dispose(){var o;this._onDispose(this),this._intersectionObserver&&(this._intersectionObserver.disconnect(),delete this._intersectionObserver),delete this._current,delete this._fullyVisible,delete this._allElements,delete this._updateQueue,this._unobserve&&(this._unobserve(),delete this._unobserve);const n=this._win();this._setCurrentTimer&&(n.clearTimeout(this._setCurrentTimer),delete this._setCurrentTimer),this._updateTimer&&(n.clearTimeout(this._updateTimer),delete this._updateTimer),(o=this.dummyManager)===null||o===void 0||o.dispose(),delete this.dummyManager}setCurrent(o){o?this._current=new pr(this._win,o):this._current=void 0,(this._props.trackState||this._props.visibilityAware)&&!this._setCurrentTimer&&(this._setCurrentTimer=this._win().setTimeout(()=>{var n;delete this._setCurrentTimer;const s=[];this._current!==this._prevCurrent&&(s.push(this._current),s.push(this._prevCurrent),this._prevCurrent=this._current);for(const l of s){const c=l?.get();if(c&&((n=this._allElements)===null||n===void 0?void 0:n.get(c))===this){const u=this._props;if(c&&(u.visibilityAware!==void 0||u.trackState)){const d=this.getState(c);d&&c.dispatchEvent(new Of(d))}}}}))}getCurrent(){var o;return((o=this._current)===null||o===void 0?void 0:o.get())||null}findNextTabbable(o,n,s,l){const c=this.getElement(),u=c&&zn(o)===c;if(!c)return null;let d=null,p=!1,m;if(this._props.tabbable||u||o&&!Q.nodeContains(c,o)){const g={currentElement:o,referenceElement:n,container:c,ignoreAccessibility:l,useActiveModalizer:!0},v={};d=this._tabster.focusable[s?"findPrev":"findNext"](g,v),p=!!v.outOfDOMOrder,m=v.uncontrolled}return{element:d,uncontrolled:m,outOfDOMOrder:p}}acceptElement(o,n){var s,l;if(!Qe.isTabbing)return!((s=n.currentCtx)===null||s===void 0)&&s.excludedFromMover?NodeFilter.FILTER_REJECT:void 0;const{memorizeCurrent:c,visibilityAware:u,hasDefault:d=!0}=this._props,p=this.getElement();if(p&&(c||u||d)&&(!Q.nodeContains(p,n.from)||zn(n.from)===p)){let m;if(c){const g=(l=this._current)===null||l===void 0?void 0:l.get();g&&n.acceptCondition(g)&&(m=g)}if(!m&&d&&(m=this._tabster.focusable.findDefault({container:p,useActiveModalizer:!0})),!m&&u&&(m=this._tabster.focusable.findElement({container:p,useActiveModalizer:!0,isBackward:n.isBackward,acceptCondition:g=>{var v;const w=Qi(this._win,g),b=this._visible[w];return p!==g&&!!(!((v=this._allElements)===null||v===void 0)&&v.get(g))&&n.acceptCondition(g)&&(b===Wr.Visible||b===Wr.PartiallyVisible&&(u===Wr.PartiallyVisible||!this._fullyVisible))}})),m)return n.found=!0,n.foundElement=m,n.rejectElementsFrom=p,n.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}}_observeState(){const o=this.getElement();if(this._unobserve||!o||typeof MutationObserver>"u")return;const n=this._win(),s=this._allElements=new WeakMap,l=this._tabster.focusable;let c=this._updateQueue=[];const u=Q.createMutationObserver(b=>{for(const x of b){const y=x.target,S=x.removedNodes,N=x.addedNodes;if(x.type==="attributes")x.attributeName==="tabindex"&&c.push({element:y,type:ep});else{for(let E=0;E<S.length;E++)c.push({element:S[E],type:tp});for(let E=0;E<N.length;E++)c.push({element:N[E],type:wa})}}v()}),d=(b,x)=>{var y,S;const N=s.get(b);N&&x&&((y=this._intersectionObserver)===null||y===void 0||y.unobserve(b),s.delete(b)),!N&&!x&&(s.set(b,this),(S=this._intersectionObserver)===null||S===void 0||S.observe(b))},p=b=>{const x=l.isFocusable(b);s.get(b)?x||d(b,!0):x&&d(b)},m=b=>{const{mover:x}=w(b);if(x&&x!==this)if(x.getElement()===b&&l.isFocusable(b))d(b);else return;const y=ma(n.document,b,S=>{const{mover:N,groupper:E}=w(S);if(N&&N!==this)return NodeFilter.FILTER_REJECT;const B=E?.getFirst(!0);return E&&E.getElement()!==S&&B&&B!==S?NodeFilter.FILTER_REJECT:(l.isFocusable(S)&&d(S),NodeFilter.FILTER_SKIP)});if(y)for(y.currentNode=b;y.nextNode(););},g=b=>{s.get(b)&&d(b,!0);for(let y=Q.getFirstElementChild(b);y;y=Q.getNextElementSibling(y))g(y)},v=()=>{!this._updateTimer&&c.length&&(this._updateTimer=n.setTimeout(()=>{delete this._updateTimer;for(const{element:b,type:x}of c)switch(x){case ep:p(b);break;case wa:m(b);break;case tp:g(b);break}c=this._updateQueue=[]},0))},w=b=>{const x={};for(let y=b;y;y=Q.getParentElement(y)){const S=Wt(this._tabster,y);if(S&&(S.groupper&&!x.groupper&&(x.groupper=S.groupper),S.mover)){x.mover=S.mover;break}}return x};c.push({element:o,type:wa}),v(),u.observe(o,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),this._unobserve=()=>{u.disconnect()}}getState(o){const n=Qi(this._win,o);if(n in this._visible){const s=this._visible[n]||Wr.Invisible;return{isCurrent:this._current?this._current.get()===o:void 0,visibility:s}}}}function Yy(t,o,n,s,l,c,u,d){const p=n<l?l-n:u<t?t-u:0,m=s<c?c-s:d<o?o-d:0;return p===0?m:m===0?p:Math.sqrt(p*p+m*m)}class Jy{constructor(o,n){this._init=()=>{const s=this._win();s.addEventListener("keydown",this._onKeyDown,!0),s.addEventListener(da,this._onMoveFocus),s.addEventListener(jf,this._onMemorizedElement),this._tabster.focusedElement.subscribe(this._onFocus)},this._onMoverDispose=s=>{delete this._movers[s.id]},this._onFocus=s=>{var l;let c=s,u=s;for(let d=Q.getParentElement(s);d;d=Q.getParentElement(d)){const p=(l=Wt(this._tabster,d))===null||l===void 0?void 0:l.mover;p&&(p.setCurrent(u),c=void 0),!c&&this._tabster.focusable.isFocusable(d)&&(c=u=d)}},this._onKeyDown=async s=>{var l;if(this._ignoredInputTimer&&(this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),(l=this._ignoredInputResolve)===null||l===void 0||l.call(this,!1),s.ctrlKey||s.altKey||s.shiftKey||s.metaKey)return;const c=s.key;let u;if(c===Xe.ArrowDown?u=Ve.ArrowDown:c===Xe.ArrowRight?u=Ve.ArrowRight:c===Xe.ArrowUp?u=Ve.ArrowUp:c===Xe.ArrowLeft?u=Ve.ArrowLeft:c===Xe.PageDown?u=Ve.PageDown:c===Xe.PageUp?u=Ve.PageUp:c===Xe.Home?u=Ve.Home:c===Xe.End&&(u=Ve.End),!u)return;const d=this._tabster.focusedElement.getFocusedElement();!d||await this._isIgnoredInput(d,c)||this._moveFocus(d,u,s)},this._onMoveFocus=s=>{var l;const c=s.composedPath()[0],u=(l=s.detail)===null||l===void 0?void 0:l.key;c&&u!==void 0&&!s.defaultPrevented&&(this._moveFocus(c,u),s.stopImmediatePropagation())},this._onMemorizedElement=s=>{var l;const c=s.composedPath()[0];let u=(l=s.detail)===null||l===void 0?void 0:l.memorizedElement;if(c){const d=tt.getTabsterContext(this._tabster,c),p=d?.mover;p&&(u&&!Q.nodeContains(p.getElement(),u)&&(u=void 0),p.setCurrent(u),s.stopImmediatePropagation())}},this._tabster=o,this._win=n,this._movers={},o.queueInit(this._init)}dispose(){var o;const n=this._win();this._tabster.focusedElement.unsubscribe(this._onFocus),(o=this._ignoredInputResolve)===null||o===void 0||o.call(this,!1),this._ignoredInputTimer&&(n.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),n.removeEventListener("keydown",this._onKeyDown,!0),n.removeEventListener(da,this._onMoveFocus),n.removeEventListener(jf,this._onMemorizedElement),Object.keys(this._movers).forEach(s=>{this._movers[s]&&(this._movers[s].dispose(),delete this._movers[s])})}createMover(o,n,s){const l=new Qy(this._tabster,o,this._onMoverDispose,n,s);return this._movers[l.id]=l,l}moveFocus(o,n){return this._moveFocus(o,n)}_moveFocus(o,n,s){var l,c;const u=this._tabster,d=tt.getTabsterContext(u,o,{checkRtl:!0});if(!d||!d.mover||d.excludedFromMover||s&&d.ignoreKeydown(s))return null;const p=d.mover,m=p.getElement();if(d.groupperBeforeMover){const W=d.groupper;if(W&&!W.isActive(!0)){for(let H=Q.getParentElement(W.getElement());H&&H!==m;H=Q.getParentElement(H))if(!((c=(l=Wt(u,H))===null||l===void 0?void 0:l.groupper)===null||c===void 0)&&c.isActive(!0))return null}else return null}if(!m)return null;const g=u.focusable,v=p.getProps(),w=v.direction||or.Both,b=w===or.Both,x=b||w===or.Vertical,y=b||w===or.Horizontal,S=w===or.GridLinear,N=S||w===or.Grid,E=v.cyclic;let B,T,R,O=0,L=0;if(N&&(R=o.getBoundingClientRect(),O=Math.ceil(R.left),L=Math.floor(R.right)),d.rtl&&(n===Ve.ArrowRight?n=Ve.ArrowLeft:n===Ve.ArrowLeft&&(n=Ve.ArrowRight)),n===Ve.ArrowDown&&x||n===Ve.ArrowRight&&(y||N))if(B=g.findNext({currentElement:o,container:m,useActiveModalizer:!0}),B&&N){const W=Math.ceil(B.getBoundingClientRect().left);!S&&L>W&&(B=void 0)}else!B&&E&&(B=g.findFirst({container:m,useActiveModalizer:!0}));else if(n===Ve.ArrowUp&&x||n===Ve.ArrowLeft&&(y||N))if(B=g.findPrev({currentElement:o,container:m,useActiveModalizer:!0}),B&&N){const W=Math.floor(B.getBoundingClientRect().right);!S&&W>O&&(B=void 0)}else!B&&E&&(B=g.findLast({container:m,useActiveModalizer:!0}));else if(n===Ve.Home)N?g.findElement({container:m,currentElement:o,useActiveModalizer:!0,isBackward:!0,acceptCondition:W=>{var H;if(!g.isFocusable(W))return!1;const Y=Math.ceil((H=W.getBoundingClientRect().left)!==null&&H!==void 0?H:0);return W!==o&&O<=Y?!0:(B=W,!1)}}):B=g.findFirst({container:m,useActiveModalizer:!0});else if(n===Ve.End)N?g.findElement({container:m,currentElement:o,useActiveModalizer:!0,acceptCondition:W=>{var H;if(!g.isFocusable(W))return!1;const Y=Math.ceil((H=W.getBoundingClientRect().left)!==null&&H!==void 0?H:0);return W!==o&&O>=Y?!0:(B=W,!1)}}):B=g.findLast({container:m,useActiveModalizer:!0});else if(n===Ve.PageUp){if(g.findElement({currentElement:o,container:m,useActiveModalizer:!0,isBackward:!0,acceptCondition:W=>g.isFocusable(W)?$f(this._win,W,p.visibilityTolerance)?(B=W,!1):!0:!1}),N&&B){const W=Math.ceil(B.getBoundingClientRect().left);g.findElement({currentElement:B,container:m,useActiveModalizer:!0,acceptCondition:H=>{if(!g.isFocusable(H))return!1;const Y=Math.ceil(H.getBoundingClientRect().left);return O<Y||W>=Y?!0:(B=H,!1)}})}T=!1}else if(n===Ve.PageDown){if(g.findElement({currentElement:o,container:m,useActiveModalizer:!0,acceptCondition:W=>g.isFocusable(W)?$f(this._win,W,p.visibilityTolerance)?(B=W,!1):!0:!1}),N&&B){const W=Math.ceil(B.getBoundingClientRect().left);g.findElement({currentElement:B,container:m,useActiveModalizer:!0,isBackward:!0,acceptCondition:H=>{if(!g.isFocusable(H))return!1;const Y=Math.ceil(H.getBoundingClientRect().left);return O>Y||W<=Y?!0:(B=H,!1)}})}T=!0}else if(N){const W=n===Ve.ArrowUp,H=O,Y=Math.ceil(R.top),ce=L,ee=Math.floor(R.bottom);let M,J,ge=0;g.findAll({container:m,currentElement:o,isBackward:W,onElement:ve=>{const ue=ve.getBoundingClientRect(),U=Math.ceil(ue.left),re=Math.ceil(ue.top),Z=Math.floor(ue.right),F=Math.floor(ue.bottom);if(W&&Y<F||!W&&ee>re)return!0;const A=Math.ceil(Math.min(ce,Z))-Math.floor(Math.max(H,U)),le=Math.ceil(Math.min(ce-H,Z-U));if(A>0&&le>=A){const be=A/le;be>ge&&(M=ve,ge=be)}else if(ge===0){const be=Yy(H,Y,ce,ee,U,re,Z,F);(J===void 0||be<J)&&(J=be,M=ve)}else if(ge>0)return!1;return!0}}),B=M}return B&&(!s||s&&m.dispatchEvent(new Vr({by:"mover",owner:m,next:B,relatedEvent:s})))?(T!==void 0&&Ty(this._win,B,T),s&&(s.preventDefault(),s.stopImmediatePropagation()),Tr(B),B):null}async _isIgnoredInput(o,n){if(o.getAttribute("aria-expanded")==="true"&&o.hasAttribute("aria-activedescendant"))return!0;if(Kf(o,Ky)){let s=0,l=0,c=0,u;if(o.tagName==="INPUT"||o.tagName==="TEXTAREA"){const d=o.type;if(c=(o.value||"").length,d==="email"||d==="number"){if(c){const m=Q.getSelection(o);if(m){const g=m.toString().length,v=n===Xe.ArrowLeft||n===Xe.ArrowUp;if(m.modify("extend",v?"backward":"forward","character"),g!==m.toString().length)return m.modify("extend",v?"forward":"backward","character"),!0;c=0}}}else{const m=o.selectionStart;if(m===null)return d==="hidden";s=m||0,l=o.selectionEnd||0}}else o.contentEditable==="true"&&(u=new(Py(this._win))(d=>{this._ignoredInputResolve=b=>{delete this._ignoredInputResolve,d(b)};const p=this._win();this._ignoredInputTimer&&p.clearTimeout(this._ignoredInputTimer);const{anchorNode:m,focusNode:g,anchorOffset:v,focusOffset:w}=Q.getSelection(o)||{};this._ignoredInputTimer=p.setTimeout(()=>{var b,x,y;delete this._ignoredInputTimer;const{anchorNode:S,focusNode:N,anchorOffset:E,focusOffset:B}=Q.getSelection(o)||{};if(S!==m||N!==g||E!==v||B!==w){(b=this._ignoredInputResolve)===null||b===void 0||b.call(this,!1);return}if(s=E||0,l=B||0,c=((x=o.textContent)===null||x===void 0?void 0:x.length)||0,S&&N&&Q.nodeContains(o,S)&&Q.nodeContains(o,N)&&S!==o){let T=!1;const R=O=>{if(O===S)T=!0;else if(O===N)return!0;const L=O.textContent;if(L&&!Q.getFirstChild(O)){const H=L.length;T?N!==S&&(l+=H):(s+=H,l+=H)}let W=!1;for(let H=Q.getFirstChild(O);H&&!W;H=H.nextSibling)W=R(H);return W};R(o)}(y=this._ignoredInputResolve)===null||y===void 0||y.call(this,!0)},0)}));if(u&&!await u||s!==l||s>0&&(n===Xe.ArrowLeft||n===Xe.ArrowUp||n===Xe.Home)||s<c&&(n===Xe.ArrowRight||n===Xe.ArrowDown||n===Xe.End))return!0}return!1}}function Zy(t,o,n,s){if(typeof MutationObserver>"u")return()=>{};const l=o.getWindow;let c;const u=g=>{var v,w,b,x,y;const S=new Set;for(const N of g){const E=N.target,B=N.removedNodes,T=N.addedNodes;if(N.type==="attributes")N.attributeName===rr&&(S.has(E)||n(o,E));else{for(let R=0;R<B.length;R++){const O=B[R];S.add(O),d(O,!0),(w=(v=o._dummyObserver).domChanged)===null||w===void 0||w.call(v,E)}for(let R=0;R<T.length;R++)d(T[R]),(x=(b=o._dummyObserver).domChanged)===null||x===void 0||x.call(b,E)}}S.clear(),(y=o.modalizer)===null||y===void 0||y.hiddenUpdate()};function d(g,v){c||(c=Er(l).elementByUId),p(g,v);const w=ma(t,g,b=>p(b,v));if(w)for(;w.nextNode(););}function p(g,v){var w;if(!g.getAttribute)return NodeFilter.FILTER_SKIP;const b=g.__tabsterElementUID;return b&&c&&(v?delete c[b]:(w=c[b])!==null&&w!==void 0||(c[b]=new pr(l,g))),(Wt(o,g)||g.hasAttribute(rr))&&n(o,g,v),NodeFilter.FILTER_SKIP}const m=Q.createMutationObserver(u);return s&&d(l().document.body),m.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[rr]}),()=>{m.disconnect()}}class ew{constructor(o){this._isUncontrolledCompletely=o}isUncontrolledCompletely(o,n){var s;const l=(s=this._isUncontrolledCompletely)===null||s===void 0?void 0:s.call(this,o,n);return l===void 0?n:l}}class tw{constructor(o){this.keyboardNavigation=o.keyboardNavigation,this.focusedElement=o.focusedElement,this.focusable=o.focusable,this.root=o.root,this.uncontrolled=o.uncontrolled,this.core=o}}class rw{constructor(o,n){var s,l;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="8.5.6",this._noop=!1,this.getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win},this._storage=Cy(o),this._win=o;const c=this.getWindow;n?.DOMAPI&&xy({...n.DOMAPI}),this.keyboardNavigation=new Gy(c),this.focusedElement=new Qe(this,c),this.focusable=new Hy(this),this.root=new tt(this,n?.autoRoot),this.uncontrolled=new ew(n?.checkUncontrolledCompletely||n?.checkUncontrolledTrappingFocus),this.controlTab=(s=n?.controlTab)!==null&&s!==void 0?s:!0,this.rootDummyInputs=!!n?.rootDummyInputs,this._dummyObserver=new Iy(c),this.getParent=(l=n?.getParent)!==null&&l!==void 0?l:Q.getParentNode,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:u=>{if(!this._unobserve){const d=c().document;this._unobserve=Zy(d,this,Df,u)}}},Hf(c),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(o){var n;o&&(this.getParent=(n=o.getParent)!==null&&n!==void 0?n:this.getParent)}createTabster(o,n){const s=new tw(this);return o||this._wrappers.add(s),this._mergeProps(n),s}disposeTabster(o,n){n?this._wrappers.clear():this._wrappers.delete(o),this._wrappers.size===0&&this.dispose()}dispose(){var o,n,s,l,c,u,d,p;this.internal.stopObserver();const m=this._win;m?.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],m&&this._forgetMemorizedTimer&&(m.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),(o=this.outline)===null||o===void 0||o.dispose(),(n=this.crossOrigin)===null||n===void 0||n.dispose(),(s=this.deloser)===null||s===void 0||s.dispose(),(l=this.groupper)===null||l===void 0||l.dispose(),(c=this.mover)===null||c===void 0||c.dispose(),(u=this.modalizer)===null||u===void 0||u.dispose(),(d=this.observedElement)===null||d===void 0||d.dispose(),(p=this.restorer)===null||p===void 0||p.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),Ny(this.getWindow),Gf(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),m&&(Sy(m),delete m.__tabsterInstance,delete this._win)}storageEntry(o,n){const s=this._storage;let l=s.get(o);return l?n===!1&&Object.keys(l).length===0&&s.delete(o):n===!0&&(l={},s.set(o,l)),l}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let o=this._forgetMemorizedElements.shift();o;o=this._forgetMemorizedElements.shift())Gf(this.getWindow,o),Qe.forgetMemorized(this.focusedElement,o)},0),qf(this.getWindow,!0)))}queueInit(o){var n;this._win&&(this._initQueue.push(o),this._initTimer||(this._initTimer=(n=this._win)===null||n===void 0?void 0:n.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const o=this._initQueue;this._initQueue=[],o.forEach(n=>n())}}function ow(t,o){let n=lw(t);return n?n.createTabster(!1,o):(n=new rw(t,o),t.__tabsterInstance=n,n.createTabster())}function nw(t){const o=t.core;return o.groupper||(o.groupper=new Uy(o,o.getWindow)),o.groupper}function iw(t){const o=t.core;return o.mover||(o.mover=new Jy(o,o.getWindow)),o.mover}function sw(t,o){t.core.disposeTabster(t,o)}function lw(t){return t.__tabsterInstance}const aw=t=>t;function cw(t){const o=t?.defaultView||void 0,n=o?.__tabsterShadowDOMAPI;if(o)return ow(o,{autoRoot:{},controlTab:!1,getParent:Ub,checkUncontrolledCompletely:s=>{var l;return((l=s.firstElementChild)===null||l===void 0?void 0:l.hasAttribute("data-is-focus-trap-zone-bumper"))===!0||void 0},DOMAPI:n})}function Ji(t=aw){const{targetDocument:o}=at(),n=_.useRef(null);return Ht(()=>{const s=cw(o);if(s)return n.current=t(s),()=>{sw(s),n.current=null}},[o,t]),n}const ka=t=>{Ji();const o=Qf(t);return _.useMemo(()=>({[rr]:o}),[o])},xa=(t={})=>{const{circular:o,axis:n,memorizeCurrent:s=!0,tabbable:l,ignoreDefaultKeydown:c,unstable_hasDefault:u}=t;return Ji(iw),ka({mover:{cyclic:!!o,direction:uw(n??"vertical"),memorizeCurrent:s,tabbable:l,hasDefault:u},...c&&{focusable:{ignoreKeydown:c}}})};function uw(t){switch(t){case"horizontal":return or.Horizontal;case"grid":return or.Grid;case"grid-linear":return or.GridLinear;case"both":return or.Both;case"vertical":default:return or.Vertical}}const _a=t=>(Ji(nw),ka({groupper:{tabbability:dw(t?.tabBehavior)},focusable:{ignoreKeydown:t?.ignoreDefaultKeydown}})),dw=t=>{switch(t){case"unlimited":return Ki.Unlimited;case"limited":return Ki.Limited;case"limited-trap-focus":return Ki.LimitedTrapFocus;default:return}},Sa=()=>{const t=Ji(),{targetDocument:o}=at(),n=_.useCallback((d,p)=>{var m;return d&&((m=t.current)===null||m===void 0?void 0:m.focusable.findAll({container:d,acceptCondition:p}))||[]},[t]),s=_.useCallback(d=>{var p;return d&&((p=t.current)===null||p===void 0?void 0:p.focusable.findFirst({container:d}))},[t]),l=_.useCallback(d=>{var p;return d&&((p=t.current)===null||p===void 0?void 0:p.focusable.findLast({container:d}))},[t]),c=_.useCallback((d,p={})=>{if(!t.current||!o||!d)return null;const{container:m=o.body}=p;return t.current.focusable.findNext({currentElement:d,container:m})},[t,o]),u=_.useCallback((d,p={})=>{if(!t.current||!o||!d)return null;const{container:m=o.body}=p;return t.current.focusable.findPrev({currentElement:d,container:m})},[t,o]);return{findAllFocusable:n,findFirstFocusable:s,findLastFocusable:l,findNextFocusable:c,findPrevFocusable:u}},rp="data-fui-focus-visible",op="data-fui-focus-within";function fw(t,o){if(np(t))return()=>{};const n={current:void 0},s=Ui(o);function l(p){s.isNavigatingWithKeyboard()&&Nr(p)&&(n.current=p,p.setAttribute(rp,""))}function c(){n.current&&(n.current.removeAttribute(rp),n.current=void 0)}s.subscribe(p=>{p?l(o.document.activeElement):c()});const u=p=>{c();const m=p.composedPath()[0];l(m)},d=p=>{(!p.relatedTarget||Nr(p.relatedTarget)&&!t.contains(p.relatedTarget))&&c()};return t.addEventListener(tr,u),t.addEventListener("focusout",d),t.focusVisible=!0,t.contains(o.document.activeElement)&&l(o.document.activeElement),()=>{c(),t.removeEventListener(tr,u),t.removeEventListener("focusout",d),t.focusVisible=void 0,Gi(s)}}function np(t){return t?t.focusVisible?!0:np(t?.parentElement):!1}function Ca(t={}){const o=at(),n=_.useRef(null);var s;const l=(s=t.targetDocument)!==null&&s!==void 0?s:o.targetDocument;return _.useEffect(()=>{if(l?.defaultView&&n.current)return fw(n.current,l.defaultView)},[n,l]),n}function pw(t,o){const n=Ui(o);n.subscribe(c=>{c||ip(t)});const s=c=>{n.isNavigatingWithKeyboard()&&sp(c.target)&&hw(t)},l=c=>{(!c.relatedTarget||sp(c.relatedTarget)&&!t.contains(c.relatedTarget))&&ip(t)};return t.addEventListener(tr,s),t.addEventListener("focusout",l),()=>{t.removeEventListener(tr,s),t.removeEventListener("focusout",l),Gi(n)}}function hw(t){t.setAttribute(op,"")}function ip(t){t.removeAttribute(op)}function sp(t){return t?!!(t&&typeof t=="object"&&"classList"in t&&"contains"in t):!1}function Pn(){const{targetDocument:t}=at(),o=_.useRef(null);return _.useEffect(()=>{if(t?.defaultView&&o.current)return pw(o.current,t.defaultView)},[o,t]),o}function lp(){const{targetDocument:t}=at(),o=_.useRef(null);return _.useEffect(()=>{const n=t?.defaultView;if(n){const s=Ui(n);return o.current=s,()=>{Gi(s),o.current=null}}},[t]),o}function ap(t){const o=lp(),n=xe(t);_.useEffect(()=>{const s=o.current;if(s){const l=c=>{n(c)};return s.subscribe(l),l(s.isNavigatingWithKeyboard()),()=>{s.unsubscribe(l)}}},[o,n])}const mw=(...t)=>{"use no memo";const o=t.reduce((n,s)=>(s?.[rr]&&n.push(s[rr]),n),[]);return _.useMemo(()=>({[rr]:o.length>0?o.reduce(gw):void 0}),o)},gw=(t,o)=>JSON.stringify(Object.assign(cp(t),cp(o))),cp=t=>{try{return JSON.parse(t)}catch{return{}}};function vw(){const t=lp();return _.useCallback(o=>{var n;(n=t.current)===null||n===void 0||n.setVal(o)},[t])}const q={4:"#0a0a0a",8:"#141414",10:"#1a1a1a",12:"#1f1f1f",14:"#242424",16:"#292929",18:"#2e2e2e",20:"#333333",22:"#383838",24:"#3d3d3d",26:"#424242",30:"#4d4d4d",32:"#525252",34:"#575757",36:"#5c5c5c",38:"#616161",40:"#666666",42:"#6b6b6b",44:"#707070",46:"#757575",60:"#999999",68:"#adadad",70:"#b3b3b3",74:"#bdbdbd",78:"#c7c7c7",82:"#d1d1d1",84:"#d6d6d6",86:"#dbdbdb",88:"#e0e0e0",90:"#e6e6e6",92:"#ebebeb",94:"#f0f0f0",96:"#f5f5f5",98:"#fafafa"},ht={5:"rgba(255, 255, 255, 0.05)",10:"rgba(255, 255, 255, 0.1)",20:"rgba(255, 255, 255, 0.2)",40:"rgba(255, 255, 255, 0.4)",50:"rgba(255, 255, 255, 0.5)",60:"rgba(255, 255, 255, 0.6)",70:"rgba(255, 255, 255, 0.7)",80:"rgba(255, 255, 255, 0.8)"},$t={5:"rgba(0, 0, 0, 0.05)",10:"rgba(0, 0, 0, 0.1)",20:"rgba(0, 0, 0, 0.2)",30:"rgba(0, 0, 0, 0.3)",40:"rgba(0, 0, 0, 0.4)",50:"rgba(0, 0, 0, 0.5)"},bw={50:"rgba(26, 26, 26, 0.5)"},yw={70:"rgba(31, 31, 31, 0.7)"},up={50:"rgba(36, 36, 36, 0.5)",80:"rgba(36, 36, 36, 0.8)"},we="#ffffff",Ba="#000000",ww={shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"},dp={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},kw={shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},xw={shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"},_w={shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},Sw={shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"},Cw={shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},Bw={shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"},Nw={shade50:"#282400",shade40:"#4c4400",shade30:"#817400",shade20:"#c0ad00",shade10:"#e4cc00",primary:"#fde300",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},Tw={shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},Ew={shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},zw={shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"},Pw={shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},Rw={shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},Fw={shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},fp={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},Iw={shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},Dw={shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},jw={shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"},Ow={shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"},Aw={shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},Lw={shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"},Mw={shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},qw={shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},Hw={shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},Ww={shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"},$w={shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},Vw={shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},Uw={shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},Gw={shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"},Kw={shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"},Xw={shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},Qw={shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},Yw={shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"},Jw={shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},Zw={shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"},Ee={red:kw,green:fp,darkOrange:xw,yellow:Nw,berry:Vw,lightGreen:Fw,marigold:Bw},Ur={darkRed:ww,cranberry:dp,pumpkin:_w,peach:Cw,gold:Tw,brass:Ew,brown:zw,forest:Pw,seafoam:Rw,darkGreen:Iw,lightTeal:Dw,teal:jw,steel:Ow,blue:Aw,royalBlue:Lw,cornflower:Mw,navy:qw,lavender:Hw,purple:Ww,grape:$w,lilac:Uw,pink:Gw,magenta:Kw,plum:Xw,beige:Qw,mink:Yw,platinum:Jw,anchor:Zw},Ce={cranberry:dp,green:fp,orange:Sw},pp=["red","green","darkOrange","yellow","berry","lightGreen","marigold"],hp=["darkRed","cranberry","pumpkin","peach","gold","brass","brown","forest","seafoam","darkGreen","lightTeal","teal","steel","blue","royalBlue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"],Bt={success:"green",warning:"orange",danger:"cranberry"},Rn=pp.reduce((t,o)=>{const n=o.slice(0,1).toUpperCase()+o.slice(1),s={[`colorPalette${n}Background1`]:Ee[o].tint60,[`colorPalette${n}Background2`]:Ee[o].tint40,[`colorPalette${n}Background3`]:Ee[o].primary,[`colorPalette${n}Foreground1`]:Ee[o].shade10,[`colorPalette${n}Foreground2`]:Ee[o].shade30,[`colorPalette${n}Foreground3`]:Ee[o].primary,[`colorPalette${n}BorderActive`]:Ee[o].primary,[`colorPalette${n}Border1`]:Ee[o].tint40,[`colorPalette${n}Border2`]:Ee[o].primary};return Object.assign(t,s)},{});Rn.colorPaletteYellowForeground1=Ee.yellow.shade30,Rn.colorPaletteRedForegroundInverted=Ee.red.tint20,Rn.colorPaletteGreenForegroundInverted=Ee.green.tint20,Rn.colorPaletteYellowForegroundInverted=Ee.yellow.tint40;const ek=hp.reduce((t,o)=>{const n=o.slice(0,1).toUpperCase()+o.slice(1),s={[`colorPalette${n}Background2`]:Ur[o].tint40,[`colorPalette${n}Foreground2`]:Ur[o].shade30,[`colorPalette${n}BorderActive`]:Ur[o].primary};return Object.assign(t,s)},{}),tk={...Rn,...ek},Mo=Object.entries(Bt).reduce((t,[o,n])=>{const s=o.slice(0,1).toUpperCase()+o.slice(1),l={[`colorStatus${s}Background1`]:Ce[n].tint60,[`colorStatus${s}Background2`]:Ce[n].tint40,[`colorStatus${s}Background3`]:Ce[n].primary,[`colorStatus${s}Foreground1`]:Ce[n].shade10,[`colorStatus${s}Foreground2`]:Ce[n].shade30,[`colorStatus${s}Foreground3`]:Ce[n].primary,[`colorStatus${s}ForegroundInverted`]:Ce[n].tint30,[`colorStatus${s}BorderActive`]:Ce[n].primary,[`colorStatus${s}Border1`]:Ce[n].tint40,[`colorStatus${s}Border2`]:Ce[n].primary};return Object.assign(t,l)},{});Mo.colorStatusDangerBackground3Hover=Ce[Bt.danger].shade10,Mo.colorStatusDangerBackground3Pressed=Ce[Bt.danger].shade20,Mo.colorStatusWarningForeground1=Ce[Bt.warning].shade20,Mo.colorStatusWarningForeground3=Ce[Bt.warning].shade20,Mo.colorStatusWarningBorder2=Ce[Bt.warning].shade20;const rk=t=>({colorNeutralForeground1:q[14],colorNeutralForeground1Hover:q[14],colorNeutralForeground1Pressed:q[14],colorNeutralForeground1Selected:q[14],colorNeutralForeground2:q[26],colorNeutralForeground2Hover:q[14],colorNeutralForeground2Pressed:q[14],colorNeutralForeground2Selected:q[14],colorNeutralForeground2BrandHover:t[80],colorNeutralForeground2BrandPressed:t[70],colorNeutralForeground2BrandSelected:t[80],colorNeutralForeground3:q[38],colorNeutralForeground3Hover:q[26],colorNeutralForeground3Pressed:q[26],colorNeutralForeground3Selected:q[26],colorNeutralForeground3BrandHover:t[80],colorNeutralForeground3BrandPressed:t[70],colorNeutralForeground3BrandSelected:t[80],colorNeutralForeground4:q[44],colorNeutralForegroundDisabled:q[74],colorNeutralForegroundInvertedDisabled:ht[40],colorBrandForegroundLink:t[70],colorBrandForegroundLinkHover:t[60],colorBrandForegroundLinkPressed:t[40],colorBrandForegroundLinkSelected:t[70],colorNeutralForeground2Link:q[26],colorNeutralForeground2LinkHover:q[14],colorNeutralForeground2LinkPressed:q[14],colorNeutralForeground2LinkSelected:q[14],colorCompoundBrandForeground1:t[80],colorCompoundBrandForeground1Hover:t[70],colorCompoundBrandForeground1Pressed:t[60],colorBrandForeground1:t[80],colorBrandForeground2:t[70],colorBrandForeground2Hover:t[60],colorBrandForeground2Pressed:t[30],colorNeutralForeground1Static:q[14],colorNeutralForegroundStaticInverted:we,colorNeutralForegroundInverted:we,colorNeutralForegroundInvertedHover:we,colorNeutralForegroundInvertedPressed:we,colorNeutralForegroundInvertedSelected:we,colorNeutralForegroundInverted2:we,colorNeutralForegroundOnBrand:we,colorNeutralForegroundInvertedLink:we,colorNeutralForegroundInvertedLinkHover:we,colorNeutralForegroundInvertedLinkPressed:we,colorNeutralForegroundInvertedLinkSelected:we,colorBrandForegroundInverted:t[100],colorBrandForegroundInvertedHover:t[110],colorBrandForegroundInvertedPressed:t[100],colorBrandForegroundOnLight:t[80],colorBrandForegroundOnLightHover:t[70],colorBrandForegroundOnLightPressed:t[50],colorBrandForegroundOnLightSelected:t[60],colorNeutralBackground1:we,colorNeutralBackground1Hover:q[96],colorNeutralBackground1Pressed:q[88],colorNeutralBackground1Selected:q[92],colorNeutralBackground2:q[98],colorNeutralBackground2Hover:q[94],colorNeutralBackground2Pressed:q[86],colorNeutralBackground2Selected:q[90],colorNeutralBackground3:q[96],colorNeutralBackground3Hover:q[92],colorNeutralBackground3Pressed:q[84],colorNeutralBackground3Selected:q[88],colorNeutralBackground4:q[94],colorNeutralBackground4Hover:q[98],colorNeutralBackground4Pressed:q[96],colorNeutralBackground4Selected:we,colorNeutralBackground5:q[92],colorNeutralBackground5Hover:q[96],colorNeutralBackground5Pressed:q[94],colorNeutralBackground5Selected:q[98],colorNeutralBackground6:q[90],colorNeutralBackgroundInverted:q[16],colorNeutralBackgroundStatic:q[20],colorNeutralBackgroundAlpha:ht[50],colorNeutralBackgroundAlpha2:ht[80],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:q[96],colorSubtleBackgroundPressed:q[88],colorSubtleBackgroundSelected:q[92],colorSubtleBackgroundLightAlphaHover:ht[70],colorSubtleBackgroundLightAlphaPressed:ht[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:$t[10],colorSubtleBackgroundInvertedPressed:$t[30],colorSubtleBackgroundInvertedSelected:$t[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:q[94],colorNeutralBackgroundInvertedDisabled:ht[10],colorNeutralStencil1:q[90],colorNeutralStencil2:q[98],colorNeutralStencil1Alpha:$t[10],colorNeutralStencil2Alpha:$t[5],colorBackgroundOverlay:$t[40],colorScrollbarOverlay:$t[50],colorBrandBackground:t[80],colorBrandBackgroundHover:t[70],colorBrandBackgroundPressed:t[40],colorBrandBackgroundSelected:t[60],colorCompoundBrandBackground:t[80],colorCompoundBrandBackgroundHover:t[70],colorCompoundBrandBackgroundPressed:t[60],colorBrandBackgroundStatic:t[80],colorBrandBackground2:t[160],colorBrandBackground2Hover:t[150],colorBrandBackground2Pressed:t[130],colorBrandBackground3Static:t[60],colorBrandBackground4Static:t[40],colorBrandBackgroundInverted:we,colorBrandBackgroundInvertedHover:t[160],colorBrandBackgroundInvertedPressed:t[140],colorBrandBackgroundInvertedSelected:t[150],colorNeutralCardBackground:q[98],colorNeutralCardBackgroundHover:we,colorNeutralCardBackgroundPressed:q[96],colorNeutralCardBackgroundSelected:q[92],colorNeutralCardBackgroundDisabled:q[94],colorNeutralStrokeAccessible:q[38],colorNeutralStrokeAccessibleHover:q[34],colorNeutralStrokeAccessiblePressed:q[30],colorNeutralStrokeAccessibleSelected:t[80],colorNeutralStroke1:q[82],colorNeutralStroke1Hover:q[78],colorNeutralStroke1Pressed:q[70],colorNeutralStroke1Selected:q[74],colorNeutralStroke2:q[88],colorNeutralStroke3:q[94],colorNeutralStrokeSubtle:q[88],colorNeutralStrokeOnBrand:we,colorNeutralStrokeOnBrand2:we,colorNeutralStrokeOnBrand2Hover:we,colorNeutralStrokeOnBrand2Pressed:we,colorNeutralStrokeOnBrand2Selected:we,colorBrandStroke1:t[80],colorBrandStroke2:t[140],colorBrandStroke2Hover:t[120],colorBrandStroke2Pressed:t[80],colorBrandStroke2Contrast:t[140],colorCompoundBrandStroke:t[80],colorCompoundBrandStrokeHover:t[70],colorCompoundBrandStrokePressed:t[60],colorNeutralStrokeDisabled:q[88],colorNeutralStrokeInvertedDisabled:ht[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:$t[5],colorNeutralStrokeAlpha2:ht[20],colorStrokeFocus1:we,colorStrokeFocus2:Ba,colorNeutralShadowAmbient:"rgba(0,0,0,0.12)",colorNeutralShadowKey:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.06)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.07)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.20)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.24)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),mp={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadiusCircular:"10000px"},gp={curveAccelerateMax:"cubic-bezier(0.9,0.1,1,0.2)",curveAccelerateMid:"cubic-bezier(1,0,1,1)",curveAccelerateMin:"cubic-bezier(0.8,0,0.78,1)",curveDecelerateMax:"cubic-bezier(0.1,0.9,0.2,1)",curveDecelerateMid:"cubic-bezier(0,0,0,1)",curveDecelerateMin:"cubic-bezier(0.33,0,0.1,1)",curveEasyEaseMax:"cubic-bezier(0.8,0,0.2,1)",curveEasyEase:"cubic-bezier(0.33,0,0.67,1)",curveLinear:"cubic-bezier(0,0,1,1)"},vp={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"},bp={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},yp={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},wp={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},Na={fontFamilyBase:"'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif",fontFamilyMonospace:"Consolas, 'Courier New', Courier, monospace",fontFamilyNumeric:"Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif"},Ue={none:"0",xxs:"2px",xs:"4px",sNudge:"6px",s:"8px",mNudge:"10px",m:"12px",l:"16px",xl:"20px",xxl:"24px",xxxl:"32px"},kp={spacingHorizontalNone:Ue.none,spacingHorizontalXXS:Ue.xxs,spacingHorizontalXS:Ue.xs,spacingHorizontalSNudge:Ue.sNudge,spacingHorizontalS:Ue.s,spacingHorizontalMNudge:Ue.mNudge,spacingHorizontalM:Ue.m,spacingHorizontalL:Ue.l,spacingHorizontalXL:Ue.xl,spacingHorizontalXXL:Ue.xxl,spacingHorizontalXXXL:Ue.xxxl},xp={spacingVerticalNone:Ue.none,spacingVerticalXXS:Ue.xxs,spacingVerticalXS:Ue.xs,spacingVerticalSNudge:Ue.sNudge,spacingVerticalS:Ue.s,spacingVerticalMNudge:Ue.mNudge,spacingVerticalM:Ue.m,spacingVerticalL:Ue.l,spacingVerticalXL:Ue.xl,spacingVerticalXXL:Ue.xxl,spacingVerticalXXXL:Ue.xxxl},_p={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"},hr={colorNeutralForeground3:"var(--colorNeutralForeground3)",colorNeutralBackground1:"var(--colorNeutralBackground1)",colorNeutralStroke1:"var(--colorNeutralStroke1)",fontSizeBase300:"var(--fontSizeBase300)",spacingHorizontalM:"var(--spacingHorizontalM)",spacingVerticalXXS:"var(--spacingVerticalXXS)",spacingVerticalS:"var(--spacingVerticalS)",spacingVerticalL:"var(--spacingVerticalL)"};function Zi(t,o,n=""){return{[`shadow2${n}`]:`0 0 2px ${t}, 0 1px 2px ${o}`,[`shadow4${n}`]:`0 0 2px ${t}, 0 2px 4px ${o}`,[`shadow8${n}`]:`0 0 2px ${t}, 0 4px 8px ${o}`,[`shadow16${n}`]:`0 0 2px ${t}, 0 8px 16px ${o}`,[`shadow28${n}`]:`0 0 8px ${t}, 0 14px 28px ${o}`,[`shadow64${n}`]:`0 0 8px ${t}, 0 32px 64px ${o}`}}const Sp=t=>{const o=rk(t);return{...mp,...bp,...yp,...Na,...wp,..._p,...kp,...xp,...vp,...gp,...o,...tk,...Mo,...Zi(o.colorNeutralShadowAmbient,o.colorNeutralShadowKey),...Zi(o.colorBrandShadowAmbient,o.colorBrandShadowKey,"Brand")}},Cp={10:"#2b2b40",20:"#2f2f4a",30:"#333357",40:"#383966",50:"#3d3e78",60:"#444791",70:"#4f52b2",80:"#5b5fc7",90:"#7579eb",100:"#7f85f5",110:"#9299f7",120:"#aab1fa",130:"#b6bcfa",140:"#c5cbfa",150:"#dce0fa",160:"#e8ebfa"},Bp={10:"#29274f",20:"#2f2a5e",30:"#352e70",40:"#3b3185",50:"#44359e",60:"#4d3aba",70:"#5a40db",80:"#654cf5",90:"#7769fa",100:"#887dff",110:"#9791ff",120:"#aba8ff",130:"#bab8ff",140:"#c8c7ff",150:"#dcdbff",160:"#e8e8ff"},Np={...Na,fontFamilyBase:'-apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif'},ok={...Sp(Cp),...Np};({...Sp(Bp)});const mr=pp.reduce((t,o)=>{const n=o.slice(0,1).toUpperCase()+o.slice(1),s={[`colorPalette${n}Background1`]:Ee[o].shade40,[`colorPalette${n}Background2`]:Ee[o].shade30,[`colorPalette${n}Background3`]:Ee[o].primary,[`colorPalette${n}Foreground1`]:Ee[o].tint30,[`colorPalette${n}Foreground2`]:Ee[o].tint40,[`colorPalette${n}Foreground3`]:Ee[o].tint20,[`colorPalette${n}BorderActive`]:Ee[o].tint30,[`colorPalette${n}Border1`]:Ee[o].primary,[`colorPalette${n}Border2`]:Ee[o].tint20};return Object.assign(t,s)},{});mr.colorPaletteRedForeground3=Ee.red.tint30,mr.colorPaletteRedBorder2=Ee.red.tint30,mr.colorPaletteGreenForeground3=Ee.green.tint40,mr.colorPaletteGreenBorder2=Ee.green.tint40,mr.colorPaletteDarkOrangeForeground3=Ee.darkOrange.tint30,mr.colorPaletteDarkOrangeBorder2=Ee.darkOrange.tint30,mr.colorPaletteRedForegroundInverted=Ee.red.primary,mr.colorPaletteGreenForegroundInverted=Ee.green.primary,mr.colorPaletteYellowForegroundInverted=Ee.yellow.shade30;const Ta=hp.reduce((t,o)=>{const n=o.slice(0,1).toUpperCase()+o.slice(1),s={[`colorPalette${n}Background2`]:Ur[o].shade30,[`colorPalette${n}Foreground2`]:Ur[o].tint40,[`colorPalette${n}BorderActive`]:Ur[o].tint30};return Object.assign(t,s)},{});Ta.colorPaletteDarkRedBackground2=Ur.darkRed.shade20,Ta.colorPalettePlumBackground2=Ur.plum.shade20;const nk={...mr,...Ta},Gr=Object.entries(Bt).reduce((t,[o,n])=>{const s=o.slice(0,1).toUpperCase()+o.slice(1),l={[`colorStatus${s}Background1`]:Ce[n].shade40,[`colorStatus${s}Background2`]:Ce[n].shade30,[`colorStatus${s}Background3`]:Ce[n].primary,[`colorStatus${s}Foreground1`]:Ce[n].tint30,[`colorStatus${s}Foreground2`]:Ce[n].tint40,[`colorStatus${s}Foreground3`]:Ce[n].tint20,[`colorStatus${s}BorderActive`]:Ce[n].tint30,[`colorStatus${s}ForegroundInverted`]:Ce[n].shade10,[`colorStatus${s}Border1`]:Ce[n].primary,[`colorStatus${s}Border2`]:Ce[n].tint20};return Object.assign(t,l)},{});Gr.colorStatusDangerBackground3Hover=Ce[Bt.danger].shade10,Gr.colorStatusDangerBackground3Pressed=Ce[Bt.danger].shade20,Gr.colorStatusDangerForeground3=Ce[Bt.danger].tint40,Gr.colorStatusDangerBorder2=Ce[Bt.danger].tint30,Gr.colorStatusSuccessForeground3=Ce[Bt.success].tint40,Gr.colorStatusSuccessBorder2=Ce[Bt.success].tint40,Gr.colorStatusWarningForegroundInverted=Ce[Bt.warning].shade20;const ik=t=>({colorNeutralForeground1:we,colorNeutralForeground1Hover:we,colorNeutralForeground1Pressed:we,colorNeutralForeground1Selected:we,colorNeutralForeground2:q[84],colorNeutralForeground2Hover:we,colorNeutralForeground2Pressed:we,colorNeutralForeground2Selected:we,colorNeutralForeground2BrandHover:t[100],colorNeutralForeground2BrandPressed:t[90],colorNeutralForeground2BrandSelected:t[100],colorNeutralForeground3:q[68],colorNeutralForeground3Hover:q[84],colorNeutralForeground3Pressed:q[84],colorNeutralForeground3Selected:q[84],colorNeutralForeground3BrandHover:t[100],colorNeutralForeground3BrandPressed:t[90],colorNeutralForeground3BrandSelected:t[100],colorNeutralForeground4:q[60],colorNeutralForegroundDisabled:q[36],colorNeutralForegroundInvertedDisabled:ht[40],colorBrandForegroundLink:t[100],colorBrandForegroundLinkHover:t[110],colorBrandForegroundLinkPressed:t[90],colorBrandForegroundLinkSelected:t[100],colorNeutralForeground2Link:q[84],colorNeutralForeground2LinkHover:we,colorNeutralForeground2LinkPressed:we,colorNeutralForeground2LinkSelected:we,colorCompoundBrandForeground1:t[100],colorCompoundBrandForeground1Hover:t[110],colorCompoundBrandForeground1Pressed:t[90],colorBrandForeground1:t[100],colorBrandForeground2:t[120],colorBrandForeground2Hover:t[130],colorBrandForeground2Pressed:t[160],colorNeutralForeground1Static:q[14],colorNeutralForegroundStaticInverted:we,colorNeutralForegroundInverted:q[14],colorNeutralForegroundInvertedHover:q[14],colorNeutralForegroundInvertedPressed:q[14],colorNeutralForegroundInvertedSelected:q[14],colorNeutralForegroundInverted2:q[14],colorNeutralForegroundOnBrand:we,colorNeutralForegroundInvertedLink:we,colorNeutralForegroundInvertedLinkHover:we,colorNeutralForegroundInvertedLinkPressed:we,colorNeutralForegroundInvertedLinkSelected:we,colorBrandForegroundInverted:t[80],colorBrandForegroundInvertedHover:t[70],colorBrandForegroundInvertedPressed:t[60],colorBrandForegroundOnLight:t[80],colorBrandForegroundOnLightHover:t[70],colorBrandForegroundOnLightPressed:t[50],colorBrandForegroundOnLightSelected:t[60],colorNeutralBackground1:q[16],colorNeutralBackground1Hover:q[24],colorNeutralBackground1Pressed:q[12],colorNeutralBackground1Selected:q[22],colorNeutralBackground2:q[14],colorNeutralBackground2Hover:q[22],colorNeutralBackground2Pressed:q[10],colorNeutralBackground2Selected:q[20],colorNeutralBackground3:q[12],colorNeutralBackground3Hover:q[20],colorNeutralBackground3Pressed:q[8],colorNeutralBackground3Selected:q[18],colorNeutralBackground4:q[8],colorNeutralBackground4Hover:q[16],colorNeutralBackground4Pressed:q[4],colorNeutralBackground4Selected:q[14],colorNeutralBackground5:q[4],colorNeutralBackground5Hover:q[12],colorNeutralBackground5Pressed:Ba,colorNeutralBackground5Selected:q[10],colorNeutralBackground6:q[20],colorNeutralBackgroundInverted:we,colorNeutralBackgroundStatic:q[24],colorNeutralBackgroundAlpha:bw[50],colorNeutralBackgroundAlpha2:yw[70],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:q[22],colorSubtleBackgroundPressed:q[18],colorSubtleBackgroundSelected:q[20],colorSubtleBackgroundLightAlphaHover:up[80],colorSubtleBackgroundLightAlphaPressed:up[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:$t[10],colorSubtleBackgroundInvertedPressed:$t[30],colorSubtleBackgroundInvertedSelected:$t[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:q[8],colorNeutralBackgroundInvertedDisabled:ht[10],colorNeutralStencil1:q[34],colorNeutralStencil2:q[20],colorNeutralStencil1Alpha:ht[10],colorNeutralStencil2Alpha:ht[5],colorBackgroundOverlay:$t[50],colorScrollbarOverlay:ht[60],colorBrandBackground:t[70],colorBrandBackgroundHover:t[80],colorBrandBackgroundPressed:t[40],colorBrandBackgroundSelected:t[60],colorCompoundBrandBackground:t[100],colorCompoundBrandBackgroundHover:t[110],colorCompoundBrandBackgroundPressed:t[90],colorBrandBackgroundStatic:t[80],colorBrandBackground2:t[20],colorBrandBackground2Hover:t[40],colorBrandBackground2Pressed:t[10],colorBrandBackground3Static:t[60],colorBrandBackground4Static:t[40],colorBrandBackgroundInverted:we,colorBrandBackgroundInvertedHover:t[160],colorBrandBackgroundInvertedPressed:t[140],colorBrandBackgroundInvertedSelected:t[150],colorNeutralCardBackground:q[20],colorNeutralCardBackgroundHover:q[24],colorNeutralCardBackgroundPressed:q[18],colorNeutralCardBackgroundSelected:q[22],colorNeutralCardBackgroundDisabled:q[8],colorNeutralStrokeAccessible:q[68],colorNeutralStrokeAccessibleHover:q[74],colorNeutralStrokeAccessiblePressed:q[70],colorNeutralStrokeAccessibleSelected:t[100],colorNeutralStroke1:q[40],colorNeutralStroke1Hover:q[46],colorNeutralStroke1Pressed:q[42],colorNeutralStroke1Selected:q[44],colorNeutralStroke2:q[32],colorNeutralStroke3:q[24],colorNeutralStrokeSubtle:q[4],colorNeutralStrokeOnBrand:q[16],colorNeutralStrokeOnBrand2:we,colorNeutralStrokeOnBrand2Hover:we,colorNeutralStrokeOnBrand2Pressed:we,colorNeutralStrokeOnBrand2Selected:we,colorBrandStroke1:t[100],colorBrandStroke2:t[50],colorBrandStroke2Hover:t[50],colorBrandStroke2Pressed:t[30],colorBrandStroke2Contrast:t[50],colorCompoundBrandStroke:t[90],colorCompoundBrandStrokeHover:t[100],colorCompoundBrandStrokePressed:t[80],colorNeutralStrokeDisabled:q[26],colorNeutralStrokeInvertedDisabled:ht[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:ht[10],colorNeutralStrokeAlpha2:ht[20],colorStrokeFocus1:Ba,colorStrokeFocus2:we,colorNeutralShadowAmbient:"rgba(0,0,0,0.24)",colorNeutralShadowKey:"rgba(0,0,0,0.28)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.12)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.40)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.48)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),Tp=t=>{const o=ik(t);return{...mp,...bp,...yp,...Na,...wp,..._p,...kp,...xp,...vp,...gp,...o,...nk,...Gr,...Zi(o.colorNeutralShadowAmbient,o.colorNeutralShadowKey),...Zi(o.colorBrandShadowAmbient,o.colorBrandShadowKey,"Brand")}},Ep={...Tp(Cp),...Np};({...Tp(Bp)});const zp={root:"fui-FluentProvider"},sk=rf({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",fsow6f:["f1o700av","fes3tcz"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),lk=t=>{"use no memo";const o=Nn(),n=sk({dir:t.dir,renderer:o});return t.root.className=oe(zp.root,t.themeClassName,n.root,t.root.className),t},ak=_.useInsertionEffect?_.useInsertionEffect:Ht,ck=(t,o)=>{if(!t?.head)return;const n=t.createElement("style");return Object.keys(o).forEach(s=>{n.setAttribute(s,o[s])}),t.head.appendChild(n),n},uk=(t,o)=>{const n=t.sheet;n&&(n.cssRules.length>0&&n.deleteRule(0),n.insertRule(o,0))},dk=t=>{"use no memo";const{targetDocument:o,theme:n,rendererAttributes:s}=t,l=_.useRef(void 0),c=Br(zp.root),u=s,d=_.useMemo(()=>L1(`.${c}`,n),[n,c]);return fk(o,c),ak(()=>{const p=o?.getElementById(c);return p?l.current=p:(l.current=ck(o,{...u,id:c}),l.current&&uk(l.current,d)),()=>{var m;(m=l.current)===null||m===void 0||m.remove()}},[c,o,d,u]),{styleTagId:c,rule:d}};function fk(t,o){_.useState(()=>{if(!t)return;const n=t.getElementById(o);n&&t.head.append(n)})}const pk={},hk={},mk=(t,o)=>{"use no memo";const n=at(),s=gk(),l=bf(),c=_.useContext(oa)||pk,{applyStylesToPortals:u=!0,customStyleHooks_unstable:d,dir:p=n.dir,targetDocument:m=n.targetDocument,theme:g,overrides_unstable:v={}}=t,w=Ea(s,g),b=Ea(l,v),x=Ea(c,d),y=Nn();var S;const{styleTagId:N,rule:E}=dk({theme:w,targetDocument:m,rendererAttributes:(S=y.styleElementAttributes)!==null&&S!==void 0?S:hk});return{applyStylesToPortals:u,customStyleHooks_unstable:x,dir:p,targetDocument:m,theme:w,overrides_unstable:b,themeClassName:N,components:{root:"div"},root:Fe(St("div",{...t,dir:p,ref:pt(o,Ca({targetDocument:m}))}),{elementType:"div"}),serverStyleProps:{cssRule:E,attributes:{...y.styleElementAttributes,id:N}}}};function Ea(t,o){return t&&o?{...t,...o}:t||o}function gk(){return _.useContext(hf)}function vk(t){const{applyStylesToPortals:o,customStyleHooks_unstable:n,dir:s,root:l,targetDocument:c,theme:u,themeClassName:d,overrides_unstable:p}=t,m=_.useMemo(()=>({dir:s,targetDocument:c}),[s,c]),[g]=_.useState(()=>({})),v=_.useMemo(()=>({textDirection:s}),[s]);return{customStyleHooks_unstable:n,overrides_unstable:p,provider:m,textDirection:s,iconDirection:v,tooltip:g,theme:u,themeClassName:o?l.className:d}}const Pp=_.forwardRef((t,o)=>{const n=mk(t,o);lk(n);const s=vk(n);return ty(n,s)});Pp.displayName="FluentProvider";var Rp=ad();const bk=t=>n=>{const s=_.useRef(n.value),l=_.useRef(0),c=_.useRef(null);return c.current||(c.current={value:s,version:l,listeners:[]}),Ht(()=>{s.current=n.value,l.current+=1,Rp.unstable_runWithPriority(Rp.unstable_NormalPriority,()=>{c.current.listeners.forEach(u=>{u([l.current,n.value])})})},[n.value]),_.createElement(t,{value:c.current},n.children)},za=t=>{const o=_.createContext({value:{current:t},version:{current:-1},listeners:[]});return o.Provider=bk(o.Provider),delete o.Consumer,o},Fp=(t,o)=>{const n=_.useContext(t),{value:{current:s},version:{current:l},listeners:c}=n,u=o(s),[d,p]=_.useState([s,u]),m=v=>{p(w=>{if(!v)return[s,u];if(v[0]<=l)return Object.is(w[1],u)?w:[s,u];try{if(Object.is(w[0],v[1]))return w;const b=o(v[1]);return Object.is(w[1],b)?w:[v[1],b]}catch{}return[w[0],w[1]]})};Object.is(d[1],u)||m(void 0);const g=xe(m);return Ht(()=>(c.push(g),()=>{const v=c.indexOf(g);c.splice(v,1)}),[g,c]),d[1]};function Ip(t){const o=_.useContext(t);return o.version?o.version.current!==-1:!1}const yk="Shift",qo="Enter",gr=" ",wk="Tab",Pa="ArrowDown",Dp="ArrowLeft",jp="ArrowRight",es="ArrowUp",Op="End",Ap="Home",kk="PageDown",xk="PageUp",Lp="Escape";function Mp(t,o){const{disabled:n,disabledFocusable:s=!1,["aria-disabled"]:l,onClick:c,onKeyDown:u,onKeyUp:d,...p}=o??{},m=typeof l=="string"?l==="true":l,g=n||s||m,v=xe(x=>{g?(x.preventDefault(),x.stopPropagation()):c?.(x)}),w=xe(x=>{if(u?.(x),x.isDefaultPrevented())return;const y=x.key;if(g&&(y===qo||y===gr)){x.preventDefault(),x.stopPropagation();return}if(y===gr){x.preventDefault();return}else y===qo&&(x.preventDefault(),x.currentTarget.click())}),b=xe(x=>{if(d?.(x),x.isDefaultPrevented())return;const y=x.key;if(g&&(y===qo||y===gr)){x.preventDefault(),x.stopPropagation();return}y===gr&&(x.preventDefault(),x.currentTarget.click())});if(t==="button"||t===void 0)return{...p,disabled:n&&!s,"aria-disabled":s?!0:m,onClick:s?void 0:v,onKeyUp:s?void 0:d,onKeyDown:s?void 0:u};{const x=!!p.href;let y=x?void 0:"button";!y&&g&&(y="link");const S={role:y,tabIndex:s||!x&&!n?0:void 0,...p,onClick:v,onKeyUp:b,onKeyDown:w,"aria-disabled":g};return t==="a"&&g&&(S.href=void 0),S}}const Nt=()=>{},_k={controller:{active:Nt,blur:Nt,find:Nt,first:Nt,focus:Nt,focusLastActive:Nt,scrollActiveIntoView:Nt,last:Nt,next:Nt,prev:Nt,showAttributes:Nt,hideAttributes:Nt,showFocusVisibleAttributes:Nt,hideFocusVisibleAttributes:Nt}},Ra=_.createContext(void 0),qp=Ra.Provider,Hp=()=>{var t;return(t=_.useContext(Ra))!==null&&t!==void 0?t:_k},Sk=()=>!!_.useContext(Ra);function Ck(t){const{matchOption:o}=t,{targetDocument:n}=at(),s=_.useRef(null),l=_.useRef(null),c=_.useCallback(p=>Nr(p)&&o(p)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,[o]),u=_.useCallback(p=>{p&&n?(l.current=p,s.current=n.createTreeWalker(p,NodeFilter.SHOW_ELEMENT,c)):(l.current=null,s.current=null)},[n,c]);return{optionWalker:_.useMemo(()=>({first:()=>!s.current||!l.current?null:(s.current.currentNode=l.current,s.current.firstChild()),last:()=>!s.current||!l.current?null:(s.current.currentNode=l.current,s.current.lastChild()),next:()=>s.current?s.current.nextNode():null,prev:()=>s.current?s.current.previousNode():null,find:(p,m)=>{if(!s.current||!l.current)return null;const g=m?n?.getElementById(m):null;s.current.currentNode=g??l.current;let v=s.current.currentNode;for(;v&&!p(v.id);)v=s.current.nextNode();return v},setCurrent:p=>{s.current&&(s.current.currentNode=p)}}),[n]),listboxCallbackRef:u}}const Wp="data-activedescendant",Ho="data-activedescendant-focusvisible",$p=t=>{if(!t)return;const o=Vp(t.parentElement);if(!o)return;const{offsetHeight:n}=t,s=Up(t,o),{scrollMarginTop:l,scrollMarginBottom:c}=Bk(t),{offsetHeight:u,scrollTop:d}=o,p=s-l<d,m=s+n+c>d+u,g=2;p?o.scrollTo(0,s-l-g):m&&o.scrollTo(0,s+n+c-u+g)},Vp=t=>t?t.scrollHeight>t.offsetHeight?t:Vp(t.parentElement):null,Up=(t,o)=>!t||t===o?0:t.contains(o)?o.offsetTop*-1:t.offsetTop+Up(t.offsetParent,o),Bk=t=>{var o;const n=(o=t.ownerDocument)===null||o===void 0?void 0:o.defaultView;if(!n)return{scrollMarginTop:0,scrollMarginBottom:0};const s=n.getComputedStyle(t);var l;const c=(l=ts(s.scrollMarginTop))!==null&&l!==void 0?l:ts(s.scrollMarginBlockStart);var u;const d=(u=ts(s.scrollMarginBottom))!==null&&u!==void 0?u:ts(s.scrollMarginBlockEnd);return{scrollMarginTop:c,scrollMarginBottom:d}},ts=t=>t?parseInt(t,10):0,Nk=t=>new CustomEvent("activedescendantchange",{bubbles:!0,cancelable:!1,composed:!0,detail:t});function Gp(t){const{imperativeRef:o,matchOption:n}=t,s=_.useRef(!1),l=_.useRef(!0),c=_.useRef(null),u=_.useRef(null),d=_.useRef(null),p=_.useRef(!0),m=_.useCallback(()=>{var T;(T=d.current)===null||T===void 0||T.removeAttribute("aria-activedescendant")},[]),g=_.useCallback(T=>{if(T&&(c.current=T),p.current&&c.current){var R;(R=d.current)===null||R===void 0||R.setAttribute("aria-activedescendant",c.current)}},[]);ap(T=>{s.current=T;const R=y();R&&(T&&l.current?R.setAttribute(Ho,""):R.removeAttribute(Ho))});const v=xe(n),w=_.useRef(null),{optionWalker:b,listboxCallbackRef:x}=Ck({matchOption:v}),y=_.useCallback(()=>{var T;return(T=w.current)===null||T===void 0?void 0:T.querySelector(`#${c.current}`)},[w]),S=_.useCallback(T=>{l.current=T;const R=y();R&&(T&&s.current?R.setAttribute(Ho,""):R.removeAttribute(Ho))},[y]),N=_.useCallback(()=>{const T=y();T&&(T.removeAttribute(Wp),T.removeAttribute(Ho)),m(),u.current=c.current,c.current=null;var R;return(R=T?.id)!==null&&R!==void 0?R:null},[y,m]),E=_.useCallback(T=>{if(!T)return;const R=N();$p(T),g(T.id),T.setAttribute(Wp,""),s.current&&l.current&&T.setAttribute(Ho,"");const O=Nk({id:T.id,previousId:R});T.dispatchEvent(O)},[N,g]),B=_.useMemo(()=>({first:({passive:T}={})=>{const R=b.first();return T||E(R),R?.id},last:({passive:T}={})=>{const R=b.last();return T||E(R),R?.id},next:({passive:T}={})=>{const R=y();if(!R)return;b.setCurrent(R);const O=b.next();return T||E(O),O?.id},prev:({passive:T}={})=>{const R=y();if(!R)return;b.setCurrent(R);const O=b.prev();return T||E(O),O?.id},blur:()=>{N()},active:()=>{var T;return(T=y())===null||T===void 0?void 0:T.id},focus:T=>{if(!w.current)return;const R=w.current.querySelector(`#${T}`);R&&E(R)},focusLastActive:()=>{if(!w.current||!u.current)return;const T=w.current.querySelector(`#${u.current}`);if(T)return E(T),!0},find(T,{passive:R,startFrom:O}={}){const L=b.find(T,O);return R||E(L),L?.id},scrollActiveIntoView:()=>{if(!w.current)return;const T=y();T&&$p(T)},showAttributes(){p.current=!0,g()},hideAttributes(){p.current=!1,m()},showFocusVisibleAttributes(){S(!0)},hideFocusVisibleAttributes(){S(!1)}}),[b,w,g,m,E,N,y,S]);return _.useImperativeHandle(o,()=>B),{listboxRef:pt(w,x),activeParentRef:d,controller:B}}const Tk=de({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{transform:scaleX(-1);}"]}),Ek=(t,o)=>{const{title:n,primaryFill:s="currentColor",...l}=t,c={...l,title:void 0,fill:s},u=Tk(),d=ey();return c.className=oe(u.root,o?.flipInRtl&&d?.textDirection==="rtl"&&u.rtl,c.className),n&&(c["aria-label"]=n),!c["aria-label"]&&!c["aria-labelledby"]?c["aria-hidden"]=!0:c.role="img",c},zk=de({root:{B8gzw0y:"f1dd5bof"}},{m:[["@media (forced-colors: active){.f1dd5bof{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]]}),Vt=(t,o,n,s)=>{const l=o==="1em"?"20":o,c=_.forwardRef((u,d)=>{const p=zk(),m=Ek(u,{flipInRtl:s?.flipInRtl}),g={...m,className:oe(m.className,p.root),ref:d,width:o,height:o,viewBox:`0 0 ${l} ${l}`,xmlns:"http://www.w3.org/2000/svg"};return typeof n=="string"?_.createElement("svg",{...g,dangerouslySetInnerHTML:{__html:n}}):_.createElement("svg",g,...n.map(v=>_.createElement("path",{d:v,fill:g.fill})))});return c.displayName=t,c},Pk=Vt("ArrowDownRegular","1em",["M16.87 10.84a.5.5 0 1 0-.74-.68l-5.63 6.17V2.5a.5.5 0 0 0-1 0v13.83l-5.63-6.17a.5.5 0 0 0-.74.68l6.31 6.91a.75.75 0 0 0 1.11 0l6.32-6.91Z"]),Rk=Vt("ArrowUpRegular","1em",["M3.13 9.16a.5.5 0 1 0 .74.68L9.5 3.67V17.5a.5.5 0 1 0 1 0V3.67l5.63 6.17a.5.5 0 0 0 .74-.68l-6.32-6.92a.75.75 0 0 0-1.1 0L3.13 9.16Z"],{flipInRtl:!0}),Fk=Vt("CheckmarkFilled","1em",["M7.03 13.9 3.56 10a.75.75 0 0 0-1.12 1l4 4.5c.29.32.79.34 1.09.03l10.5-10.5a.75.75 0 0 0-1.06-1.06l-9.94 9.94Z"]),Ik=Vt("ChevronDownRegular","1em",["M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z"]),Dk=Vt("CircleFilled","1em",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),Kp=Vt("DismissRegular","1em",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),jk=Vt("PlayRegular","1em",["M17.22 8.69a1.5 1.5 0 0 1 0 2.62l-10 5.5A1.5 1.5 0 0 1 5 15.5v-11A1.5 1.5 0 0 1 7.22 3.2l10 5.5Zm-.48 1.75a.5.5 0 0 0 0-.88l-10-5.5A.5.5 0 0 0 6 4.5v11c0 .38.4.62.74.44l10-5.5Z"]),Ok=Vt("SearchRegular","1em",["M13.73 14.44a6.5 6.5 0 1 1 .7-.7l3.42 3.4a.5.5 0 0 1-.63.77l-.07-.06-3.42-3.41Zm-.71-.71A5.54 5.54 0 0 0 15 9.5a5.5 5.5 0 1 0-1.98 4.23Z"]),Xp=Vt("Checkmark12Filled","12",["M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z"]),Ak=Vt("Checkmark16Filled","16",["M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 0 1 4.9 12L2.22 9.28a.75.75 0 1 1 1.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 0 1 1.06.04Z"]),Lk=Vt("Square12Filled","12",["M2 4c0-1.1.9-2 2-2h4a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4Z"]),Mk=Vt("Square16Filled","16",["M2 4.5A2.5 2.5 0 0 1 4.5 2h7A2.5 2.5 0 0 1 14 4.5v7a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 11.5v-7Z"]),Qp="data-popper-is-intersecting",Yp="data-popper-escaped",Jp="data-popper-reference-hidden",qk="data-popper-placement",Fa="fui-positioningend",Hk=({options:t})=>t,Zp=_.createContext(void 0);Zp.Provider;const Wk=()=>{var t;return(t=_.useContext(Zp))!==null&&t!==void 0?t:Hk},$k=["top","right","bottom","left"],bo=Math.min,Ut=Math.max,rs=Math.round,vr=t=>({x:t,y:t}),Vk={left:"right",right:"left",bottom:"top",top:"bottom"},Uk={start:"end",end:"start"};function Ia(t,o,n){return Ut(t,bo(o,n))}function zr(t,o){return typeof t=="function"?t(o):t}function Pr(t){return t.split("-")[0]}function Wo(t){return t.split("-")[1]}function Da(t){return t==="x"?"y":"x"}function ja(t){return t==="y"?"height":"width"}const Gk=new Set(["top","bottom"]);function br(t){return Gk.has(Pr(t))?"y":"x"}function Oa(t){return Da(br(t))}function Kk(t,o,n){n===void 0&&(n=!1);const s=Wo(t),l=Oa(t),c=ja(l);let u=l==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return o.reference[c]>o.floating[c]&&(u=os(u)),[u,os(u)]}function Xk(t){const o=os(t);return[Aa(t),o,Aa(o)]}function Aa(t){return t.replace(/start|end/g,o=>Uk[o])}const eh=["left","right"],th=["right","left"],Qk=["top","bottom"],Yk=["bottom","top"];function Jk(t,o,n){switch(t){case"top":case"bottom":return n?o?th:eh:o?eh:th;case"left":case"right":return o?Qk:Yk;default:return[]}}function Zk(t,o,n,s){const l=Wo(t);let c=Jk(Pr(t),n==="start",s);return l&&(c=c.map(u=>u+"-"+l),o&&(c=c.concat(c.map(Aa)))),c}function os(t){return t.replace(/left|right|bottom|top/g,o=>Vk[o])}function ex(t){return{top:0,right:0,bottom:0,left:0,...t}}function rh(t){return typeof t!="number"?ex(t):{top:t,right:t,bottom:t,left:t}}function ns(t){const{x:o,y:n,width:s,height:l}=t;return{width:s,height:l,top:n,left:o,right:o+s,bottom:n+l,x:o,y:n}}function oh(t,o,n){let{reference:s,floating:l}=t;const c=br(o),u=Oa(o),d=ja(u),p=Pr(o),m=c==="y",g=s.x+s.width/2-l.width/2,v=s.y+s.height/2-l.height/2,w=s[d]/2-l[d]/2;let b;switch(p){case"top":b={x:g,y:s.y-l.height};break;case"bottom":b={x:g,y:s.y+s.height};break;case"right":b={x:s.x+s.width,y:v};break;case"left":b={x:s.x-l.width,y:v};break;default:b={x:s.x,y:s.y}}switch(Wo(o)){case"start":b[u]-=w*(n&&m?-1:1);break;case"end":b[u]+=w*(n&&m?-1:1);break}return b}const tx=async(t,o,n)=>{const{placement:s="bottom",strategy:l="absolute",middleware:c=[],platform:u}=n,d=c.filter(Boolean),p=await(u.isRTL==null?void 0:u.isRTL(o));let m=await u.getElementRects({reference:t,floating:o,strategy:l}),{x:g,y:v}=oh(m,s,p),w=s,b={},x=0;for(let y=0;y<d.length;y++){const{name:S,fn:N}=d[y],{x:E,y:B,data:T,reset:R}=await N({x:g,y:v,initialPlacement:s,placement:w,strategy:l,middlewareData:b,rects:m,platform:u,elements:{reference:t,floating:o}});g=E??g,v=B??v,b={...b,[S]:{...b[S],...T}},R&&x<=50&&(x++,typeof R=="object"&&(R.placement&&(w=R.placement),R.rects&&(m=R.rects===!0?await u.getElementRects({reference:t,floating:o,strategy:l}):R.rects),{x:g,y:v}=oh(m,w,p)),y=-1)}return{x:g,y:v,placement:w,strategy:l,middlewareData:b}};async function $o(t,o){var n;o===void 0&&(o={});const{x:s,y:l,platform:c,rects:u,elements:d,strategy:p}=t,{boundary:m="clippingAncestors",rootBoundary:g="viewport",elementContext:v="floating",altBoundary:w=!1,padding:b=0}=zr(o,t),x=rh(b),S=d[w?v==="floating"?"reference":"floating":v],N=ns(await c.getClippingRect({element:(n=await(c.isElement==null?void 0:c.isElement(S)))==null||n?S:S.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:m,rootBoundary:g,strategy:p})),E=v==="floating"?{x:s,y:l,width:u.floating.width,height:u.floating.height}:u.reference,B=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),T=await(c.isElement==null?void 0:c.isElement(B))?await(c.getScale==null?void 0:c.getScale(B))||{x:1,y:1}:{x:1,y:1},R=ns(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:E,offsetParent:B,strategy:p}):E);return{top:(N.top-R.top+x.top)/T.y,bottom:(R.bottom-N.bottom+x.bottom)/T.y,left:(N.left-R.left+x.left)/T.x,right:(R.right-N.right+x.right)/T.x}}const rx=t=>({name:"arrow",options:t,async fn(o){const{x:n,y:s,placement:l,rects:c,platform:u,elements:d,middlewareData:p}=o,{element:m,padding:g=0}=zr(t,o)||{};if(m==null)return{};const v=rh(g),w={x:n,y:s},b=Oa(l),x=ja(b),y=await u.getDimensions(m),S=b==="y",N=S?"top":"left",E=S?"bottom":"right",B=S?"clientHeight":"clientWidth",T=c.reference[x]+c.reference[b]-w[b]-c.floating[x],R=w[b]-c.reference[b],O=await(u.getOffsetParent==null?void 0:u.getOffsetParent(m));let L=O?O[B]:0;(!L||!await(u.isElement==null?void 0:u.isElement(O)))&&(L=d.floating[B]||c.floating[x]);const W=T/2-R/2,H=L/2-y[x]/2-1,Y=bo(v[N],H),ce=bo(v[E],H),ee=Y,M=L-y[x]-ce,J=L/2-y[x]/2+W,ge=Ia(ee,J,M),ve=!p.arrow&&Wo(l)!=null&&J!==ge&&c.reference[x]/2-(J<ee?Y:ce)-y[x]/2<0,ue=ve?J<ee?J-ee:J-M:0;return{[b]:w[b]+ue,data:{[b]:ge,centerOffset:J-ge-ue,...ve&&{alignmentOffset:ue}},reset:ve}}}),ox=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(o){var n,s;const{placement:l,middlewareData:c,rects:u,initialPlacement:d,platform:p,elements:m}=o,{mainAxis:g=!0,crossAxis:v=!0,fallbackPlacements:w,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:y=!0,...S}=zr(t,o);if((n=c.arrow)!=null&&n.alignmentOffset)return{};const N=Pr(l),E=br(d),B=Pr(d)===d,T=await(p.isRTL==null?void 0:p.isRTL(m.floating)),R=w||(B||!y?[os(d)]:Xk(d)),O=x!=="none";!w&&O&&R.push(...Zk(d,y,x,T));const L=[d,...R],W=await $o(o,S),H=[];let Y=((s=c.flip)==null?void 0:s.overflows)||[];if(g&&H.push(W[N]),v){const J=Kk(l,u,T);H.push(W[J[0]],W[J[1]])}if(Y=[...Y,{placement:l,overflows:H}],!H.every(J=>J<=0)){var ce,ee;const J=(((ce=c.flip)==null?void 0:ce.index)||0)+1,ge=L[J];if(ge&&(!(v==="alignment"?E!==br(ge):!1)||Y.every(U=>br(U.placement)===E?U.overflows[0]>0:!0)))return{data:{index:J,overflows:Y},reset:{placement:ge}};let ve=(ee=Y.filter(ue=>ue.overflows[0]<=0).sort((ue,U)=>ue.overflows[1]-U.overflows[1])[0])==null?void 0:ee.placement;if(!ve)switch(b){case"bestFit":{var M;const ue=(M=Y.filter(U=>{if(O){const re=br(U.placement);return re===E||re==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(re=>re>0).reduce((re,Z)=>re+Z,0)]).sort((U,re)=>U[1]-re[1])[0])==null?void 0:M[0];ue&&(ve=ue);break}case"initialPlacement":ve=d;break}if(l!==ve)return{reset:{placement:ve}}}return{}}}};function nh(t,o){return{top:t.top-o.height,right:t.right-o.width,bottom:t.bottom-o.height,left:t.left-o.width}}function ih(t){return $k.some(o=>t[o]>=0)}const nx=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(o){const{rects:n}=o,{strategy:s="referenceHidden",...l}=zr(t,o);switch(s){case"referenceHidden":{const c=await $o(o,{...l,elementContext:"reference"}),u=nh(c,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:ih(u)}}}case"escaped":{const c=await $o(o,{...l,altBoundary:!0}),u=nh(c,n.floating);return{data:{escapedOffsets:u,escaped:ih(u)}}}default:return{}}}}},sh=new Set(["left","top"]);async function ix(t,o){const{placement:n,platform:s,elements:l}=t,c=await(s.isRTL==null?void 0:s.isRTL(l.floating)),u=Pr(n),d=Wo(n),p=br(n)==="y",m=sh.has(u)?-1:1,g=c&&p?-1:1,v=zr(o,t);let{mainAxis:w,crossAxis:b,alignmentAxis:x}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return d&&typeof x=="number"&&(b=d==="end"?x*-1:x),p?{x:b*g,y:w*m}:{x:w*m,y:b*g}}const sx=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(o){var n,s;const{x:l,y:c,placement:u,middlewareData:d}=o,p=await ix(o,t);return u===((n=d.offset)==null?void 0:n.placement)&&(s=d.arrow)!=null&&s.alignmentOffset?{}:{x:l+p.x,y:c+p.y,data:{...p,placement:u}}}}},lx=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(o){const{x:n,y:s,placement:l}=o,{mainAxis:c=!0,crossAxis:u=!1,limiter:d={fn:S=>{let{x:N,y:E}=S;return{x:N,y:E}}},...p}=zr(t,o),m={x:n,y:s},g=await $o(o,p),v=br(Pr(l)),w=Da(v);let b=m[w],x=m[v];if(c){const S=w==="y"?"top":"left",N=w==="y"?"bottom":"right",E=b+g[S],B=b-g[N];b=Ia(E,b,B)}if(u){const S=v==="y"?"top":"left",N=v==="y"?"bottom":"right",E=x+g[S],B=x-g[N];x=Ia(E,x,B)}const y=d.fn({...o,[w]:b,[v]:x});return{...y,data:{x:y.x-n,y:y.y-s,enabled:{[w]:c,[v]:u}}}}}},ax=function(t){return t===void 0&&(t={}),{options:t,fn(o){const{x:n,y:s,placement:l,rects:c,middlewareData:u}=o,{offset:d=0,mainAxis:p=!0,crossAxis:m=!0}=zr(t,o),g={x:n,y:s},v=br(l),w=Da(v);let b=g[w],x=g[v];const y=zr(d,o),S=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(p){const B=w==="y"?"height":"width",T=c.reference[w]-c.floating[B]+S.mainAxis,R=c.reference[w]+c.reference[B]-S.mainAxis;b<T?b=T:b>R&&(b=R)}if(m){var N,E;const B=w==="y"?"width":"height",T=sh.has(Pr(l)),R=c.reference[v]-c.floating[B]+(T&&((N=u.offset)==null?void 0:N[v])||0)+(T?0:S.crossAxis),O=c.reference[v]+c.reference[B]+(T?0:((E=u.offset)==null?void 0:E[v])||0)-(T?S.crossAxis:0);x<R?x=R:x>O&&(x=O)}return{[w]:b,[v]:x}}}},cx=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(o){var n,s;const{placement:l,rects:c,platform:u,elements:d}=o,{apply:p=()=>{},...m}=zr(t,o),g=await $o(o,m),v=Pr(l),w=Wo(l),b=br(l)==="y",{width:x,height:y}=c.floating;let S,N;v==="top"||v==="bottom"?(S=v,N=w===(await(u.isRTL==null?void 0:u.isRTL(d.floating))?"start":"end")?"left":"right"):(N=v,S=w==="end"?"top":"bottom");const E=y-g.top-g.bottom,B=x-g.left-g.right,T=bo(y-g[S],E),R=bo(x-g[N],B),O=!o.middlewareData.shift;let L=T,W=R;if((n=o.middlewareData.shift)!=null&&n.enabled.x&&(W=B),(s=o.middlewareData.shift)!=null&&s.enabled.y&&(L=E),O&&!w){const Y=Ut(g.left,0),ce=Ut(g.right,0),ee=Ut(g.top,0),M=Ut(g.bottom,0);b?W=x-2*(Y!==0||ce!==0?Y+ce:Ut(g.left,g.right)):L=y-2*(ee!==0||M!==0?ee+M:Ut(g.top,g.bottom))}await p({...o,availableWidth:W,availableHeight:L});const H=await u.getDimensions(d.floating);return x!==H.width||y!==H.height?{reset:{rects:!0}}:{}}}};function is(){return typeof window<"u"}function Vo(t){return lh(t)?(t.nodeName||"").toLowerCase():"#document"}function It(t){var o;return(t==null||(o=t.ownerDocument)==null?void 0:o.defaultView)||window}function Rr(t){var o;return(o=(lh(t)?t.ownerDocument:t.document)||window.document)==null?void 0:o.documentElement}function lh(t){return is()?t instanceof Node||t instanceof It(t).Node:!1}function nr(t){return is()?t instanceof Element||t instanceof It(t).Element:!1}function yr(t){return is()?t instanceof HTMLElement||t instanceof It(t).HTMLElement:!1}function ah(t){return!is()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof It(t).ShadowRoot}const ux=new Set(["inline","contents"]);function Fn(t){const{overflow:o,overflowX:n,overflowY:s,display:l}=ir(t);return/auto|scroll|overlay|hidden|clip/.test(o+s+n)&&!ux.has(l)}const dx=new Set(["table","td","th"]);function fx(t){return dx.has(Vo(t))}const px=[":popover-open",":modal"];function ss(t){return px.some(o=>{try{return t.matches(o)}catch{return!1}})}const hx=["transform","translate","scale","rotate","perspective"],mx=["transform","translate","scale","rotate","perspective","filter"],gx=["paint","layout","strict","content"];function La(t){const o=Ma(),n=nr(t)?ir(t):t;return hx.some(s=>n[s]?n[s]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!o&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!o&&(n.filter?n.filter!=="none":!1)||mx.some(s=>(n.willChange||"").includes(s))||gx.some(s=>(n.contain||"").includes(s))}function vx(t){let o=Kr(t);for(;yr(o)&&!Uo(o);){if(La(o))return o;if(ss(o))return null;o=Kr(o)}return null}function Ma(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const bx=new Set(["html","body","#document"]);function Uo(t){return bx.has(Vo(t))}function ir(t){return It(t).getComputedStyle(t)}function ls(t){return nr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Kr(t){if(Vo(t)==="html")return t;const o=t.assignedSlot||t.parentNode||ah(t)&&t.host||Rr(t);return ah(o)?o.host:o}function ch(t){const o=Kr(t);return Uo(o)?t.ownerDocument?t.ownerDocument.body:t.body:yr(o)&&Fn(o)?o:ch(o)}function uh(t,o,n){var s;o===void 0&&(o=[]);const l=ch(t),c=l===((s=t.ownerDocument)==null?void 0:s.body),u=It(l);return c?(qa(u),o.concat(u,u.visualViewport||[],Fn(l)?l:[],[])):o.concat(l,uh(l,[]))}function qa(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function dh(t){const o=ir(t);let n=parseFloat(o.width)||0,s=parseFloat(o.height)||0;const l=yr(t),c=l?t.offsetWidth:n,u=l?t.offsetHeight:s,d=rs(n)!==c||rs(s)!==u;return d&&(n=c,s=u),{width:n,height:s,$:d}}function fh(t){return nr(t)?t:t.contextElement}function Go(t){const o=fh(t);if(!yr(o))return vr(1);const n=o.getBoundingClientRect(),{width:s,height:l,$:c}=dh(o);let u=(c?rs(n.width):n.width)/s,d=(c?rs(n.height):n.height)/l;return(!u||!Number.isFinite(u))&&(u=1),(!d||!Number.isFinite(d))&&(d=1),{x:u,y:d}}const yx=vr(0);function ph(t){const o=It(t);return!Ma()||!o.visualViewport?yx:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function wx(t,o,n){return o===void 0&&(o=!1),!n||o&&n!==It(t)?!1:o}function In(t,o,n,s){o===void 0&&(o=!1),n===void 0&&(n=!1);const l=t.getBoundingClientRect(),c=fh(t);let u=vr(1);o&&(s?nr(s)&&(u=Go(s)):u=Go(t));const d=wx(c,n,s)?ph(c):vr(0);let p=(l.left+d.x)/u.x,m=(l.top+d.y)/u.y,g=l.width/u.x,v=l.height/u.y;if(c){const w=It(c),b=s&&nr(s)?It(s):s;let x=w,y=qa(x);for(;y&&s&&b!==x;){const S=Go(y),N=y.getBoundingClientRect(),E=ir(y),B=N.left+(y.clientLeft+parseFloat(E.paddingLeft))*S.x,T=N.top+(y.clientTop+parseFloat(E.paddingTop))*S.y;p*=S.x,m*=S.y,g*=S.x,v*=S.y,p+=B,m+=T,x=It(y),y=qa(x)}}return ns({width:g,height:v,x:p,y:m})}function as(t,o){const n=ls(t).scrollLeft;return o?o.left+n:In(Rr(t)).left+n}function hh(t,o){const n=t.getBoundingClientRect(),s=n.left+o.scrollLeft-as(t,n),l=n.top+o.scrollTop;return{x:s,y:l}}function kx(t){let{elements:o,rect:n,offsetParent:s,strategy:l}=t;const c=l==="fixed",u=Rr(s),d=o?ss(o.floating):!1;if(s===u||d&&c)return n;let p={scrollLeft:0,scrollTop:0},m=vr(1);const g=vr(0),v=yr(s);if((v||!v&&!c)&&((Vo(s)!=="body"||Fn(u))&&(p=ls(s)),yr(s))){const b=In(s);m=Go(s),g.x=b.x+s.clientLeft,g.y=b.y+s.clientTop}const w=u&&!v&&!c?hh(u,p):vr(0);return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-p.scrollLeft*m.x+g.x+w.x,y:n.y*m.y-p.scrollTop*m.y+g.y+w.y}}function xx(t){return Array.from(t.getClientRects())}function _x(t){const o=Rr(t),n=ls(t),s=t.ownerDocument.body,l=Ut(o.scrollWidth,o.clientWidth,s.scrollWidth,s.clientWidth),c=Ut(o.scrollHeight,o.clientHeight,s.scrollHeight,s.clientHeight);let u=-n.scrollLeft+as(t);const d=-n.scrollTop;return ir(s).direction==="rtl"&&(u+=Ut(o.clientWidth,s.clientWidth)-l),{width:l,height:c,x:u,y:d}}const mh=25;function Sx(t,o){const n=It(t),s=Rr(t),l=n.visualViewport;let c=s.clientWidth,u=s.clientHeight,d=0,p=0;if(l){c=l.width,u=l.height;const g=Ma();(!g||g&&o==="fixed")&&(d=l.offsetLeft,p=l.offsetTop)}const m=as(s);if(m<=0){const g=s.ownerDocument,v=g.body,w=getComputedStyle(v),b=g.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,x=Math.abs(s.clientWidth-v.clientWidth-b);x<=mh&&(c-=x)}else m<=mh&&(c+=m);return{width:c,height:u,x:d,y:p}}const Cx=new Set(["absolute","fixed"]);function Bx(t,o){const n=In(t,!0,o==="fixed"),s=n.top+t.clientTop,l=n.left+t.clientLeft,c=yr(t)?Go(t):vr(1),u=t.clientWidth*c.x,d=t.clientHeight*c.y,p=l*c.x,m=s*c.y;return{width:u,height:d,x:p,y:m}}function gh(t,o,n){let s;if(o==="viewport")s=Sx(t,n);else if(o==="document")s=_x(Rr(t));else if(nr(o))s=Bx(o,n);else{const l=ph(t);s={x:o.x-l.x,y:o.y-l.y,width:o.width,height:o.height}}return ns(s)}function vh(t,o){const n=Kr(t);return n===o||!nr(n)||Uo(n)?!1:ir(n).position==="fixed"||vh(n,o)}function Nx(t,o){const n=o.get(t);if(n)return n;let s=uh(t,[]).filter(d=>nr(d)&&Vo(d)!=="body"),l=null;const c=ir(t).position==="fixed";let u=c?Kr(t):t;for(;nr(u)&&!Uo(u);){const d=ir(u),p=La(u);!p&&d.position==="fixed"&&(l=null),(c?!p&&!l:!p&&d.position==="static"&&!!l&&Cx.has(l.position)||Fn(u)&&!p&&vh(t,u))?s=s.filter(g=>g!==u):l=d,u=Kr(u)}return o.set(t,s),s}function Tx(t){let{element:o,boundary:n,rootBoundary:s,strategy:l}=t;const u=[...n==="clippingAncestors"?ss(o)?[]:Nx(o,this._c):[].concat(n),s],d=u[0],p=u.reduce((m,g)=>{const v=gh(o,g,l);return m.top=Ut(v.top,m.top),m.right=bo(v.right,m.right),m.bottom=bo(v.bottom,m.bottom),m.left=Ut(v.left,m.left),m},gh(o,d,l));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function Ex(t){const{width:o,height:n}=dh(t);return{width:o,height:n}}function zx(t,o,n){const s=yr(o),l=Rr(o),c=n==="fixed",u=In(t,!0,c,o);let d={scrollLeft:0,scrollTop:0};const p=vr(0);function m(){p.x=as(l)}if(s||!s&&!c)if((Vo(o)!=="body"||Fn(l))&&(d=ls(o)),s){const b=In(o,!0,c,o);p.x=b.x+o.clientLeft,p.y=b.y+o.clientTop}else l&&m();c&&!s&&l&&m();const g=l&&!s&&!c?hh(l,d):vr(0),v=u.left+d.scrollLeft-p.x-g.x,w=u.top+d.scrollTop-p.y-g.y;return{x:v,y:w,width:u.width,height:u.height}}function Ha(t){return ir(t).position==="static"}function bh(t,o){if(!yr(t)||ir(t).position==="fixed")return null;if(o)return o(t);let n=t.offsetParent;return Rr(t)===n&&(n=n.ownerDocument.body),n}function yh(t,o){const n=It(t);if(ss(t))return n;if(!yr(t)){let l=Kr(t);for(;l&&!Uo(l);){if(nr(l)&&!Ha(l))return l;l=Kr(l)}return n}let s=bh(t,o);for(;s&&fx(s)&&Ha(s);)s=bh(s,o);return s&&Uo(s)&&Ha(s)&&!La(s)?n:s||vx(t)||n}const Px=async function(t){const o=this.getOffsetParent||yh,n=this.getDimensions,s=await n(t.floating);return{reference:zx(t.reference,await o(t.floating),t.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Rx(t){return ir(t).direction==="rtl"}const Fx={convertOffsetParentRelativeRectToViewportRelativeRect:kx,getDocumentElement:Rr,getClippingRect:Tx,getOffsetParent:yh,getElementRects:Px,getClientRects:xx,getDimensions:Ex,getScale:Go,isElement:nr,isRTL:Rx},Ix=$o,Dx=sx,jx=lx,Ox=ox,Ax=cx,wh=nx,Lx=rx,kh=ax,Mx=(t,o,n)=>{const s=new Map,l={platform:Fx,...n},c={...l.platform,_c:s};return tx(t,o,{...l,platform:c})};function xh(t){const o=t.split("-");return{side:o[0],alignment:o[1]}}const qx=t=>t.nodeName==="HTML"?t:t.parentNode||t.host,Hx=t=>{var o;if(t.nodeType!==1)return{};const n=(o=t.ownerDocument)===null||o===void 0?void 0:o.defaultView;return n?n.getComputedStyle(t,null):{}},cs=t=>{const o=t&&qx(t);if(!o)return document.body;switch(o.nodeName){case"HTML":case"BODY":return o.ownerDocument.body;case"#document":return o.body}const{overflow:n,overflowX:s,overflowY:l}=Hx(o);return/(auto|scroll|overlay)/.test(n+l+s)?o:cs(o)},Wx=t=>{var o;const n=cs(t);return n?n!==((o=n.ownerDocument)===null||o===void 0?void 0:o.body):!1};function Wa(t,o){if(o==="window")return t?.ownerDocument.documentElement;if(o==="clippingParents")return"clippingAncestors";if(o==="scrollParent"){let n=cs(t);return n.nodeName==="BODY"&&(n=t?.ownerDocument.documentElement),n}return o}function _h(t,o){if(typeof t=="number")return t;const{start:n,end:s,...l}=t,c=l,u=o?"end":"start",d=o?"start":"end";return t[u]&&(c.left=t[u]),t[d]&&(c.right=t[d]),c}const $x=t=>({above:"top",below:"bottom",before:t?"right":"left",after:t?"left":"right"}),Vx=()=>({start:"start",end:"end",top:"start",bottom:"end",center:void 0}),Ux=(t,o)=>{const n=t==="above"||t==="below",s=o==="top"||o==="bottom";return n&&s||!n&&!s},Sh=(t,o,n)=>{const s=Ux(o,t)?"center":t,l=o&&$x(n)[o],c=s&&Vx()[s];return l&&c?`${l}-${c}`:l},Gx=()=>({top:"above",bottom:"below",right:"after",left:"before"}),Kx=t=>t==="above"||t==="below"?{start:"start",end:"end"}:{start:"top",end:"bottom"},Xx=t=>{const{side:o,alignment:n}=xh(t),s=Gx()[o],l=n&&Kx(s)[n];return{position:s,alignment:l}},Qx={above:{position:"above",align:"center"},"above-start":{position:"above",align:"start"},"above-end":{position:"above",align:"end"},below:{position:"below",align:"center"},"below-start":{position:"below",align:"start"},"below-end":{position:"below",align:"end"},before:{position:"before",align:"center"},"before-top":{position:"before",align:"top"},"before-bottom":{position:"before",align:"bottom"},after:{position:"after",align:"center"},"after-top":{position:"after",align:"top"},"after-bottom":{position:"after",align:"bottom"}};function Ch(t){return t==null?{}:typeof t=="string"?Qx[t]:t}function $a(t,o,n){const s=_.useRef(!0),[l]=_.useState(()=>({value:t,callback:o,facade:{get current(){return l.value},set current(c){const u=l.value;u!==c&&(l.value=c,l.callback(c,u))}}}));return Ht(()=>{s.current=!1},[]),l.callback=o,l.facade}function Yx(t){let o;return()=>(o||(o=new Promise(n=>{Promise.resolve().then(()=>{o=void 0,n(t())})})),o)}function Jx(t){const{arrow:o,middlewareData:n}=t;if(!n.arrow||!o)return;const{x:s,y:l}=n.arrow;Object.assign(o.style,{left:s!=null?`${s}px`:"",top:l!=null?`${l}px`:""})}function Zx(t){var o,n,s;const{container:l,placement:c,middlewareData:u,strategy:d,lowPPI:p,coordinates:m,useTransform:g=!0}=t;if(!l)return;l.setAttribute(qk,c),l.removeAttribute(Qp),u.intersectionObserver.intersecting&&l.setAttribute(Qp,""),l.removeAttribute(Yp),!((o=u.hide)===null||o===void 0)&&o.escaped&&l.setAttribute(Yp,""),l.removeAttribute(Jp),!((n=u.hide)===null||n===void 0)&&n.referenceHidden&&l.setAttribute(Jp,"");const v=((s=l.ownerDocument.defaultView)===null||s===void 0?void 0:s.devicePixelRatio)||1,w=Math.round(m.x*v)/v,b=Math.round(m.y*v)/v;if(Object.assign(l.style,{position:d}),g){Object.assign(l.style,{transform:p?`translate(${w}px, ${b}px)`:`translate3d(${w}px, ${b}px, 0)`});return}Object.assign(l.style,{left:`${w}px`,top:`${b}px`})}const e_=t=>{switch(t){case"always":case!0:return{applyMaxWidth:!0,applyMaxHeight:!0};case"width-always":case"width":return{applyMaxWidth:!0,applyMaxHeight:!1};case"height-always":case"height":return{applyMaxWidth:!1,applyMaxHeight:!0};default:return!1}};function Bh(t){const o=[];let n=t;for(;n;){const s=cs(n);if(t.ownerDocument.body===s){o.push(s);break}if(s.nodeName==="BODY"&&s!==t.ownerDocument.body)break;o.push(s),n=s}return o}function t_(t,o){return new t.ResizeObserver(o)}function r_(t){let o=!1;const{container:n,target:s,arrow:l,strategy:c,middleware:u,placement:d,useTransform:p=!0,disableUpdateOnResize:m=!1}=t,g=n.ownerDocument.defaultView;if(!s||!n||!g)return{updatePosition:()=>{},dispose:()=>{}};const v=m?null:t_(g,N=>{N.every(B=>B.contentRect.width>0&&B.contentRect.height>0)&&y()});let w=!0;const b=new Set;Object.assign(n.style,{position:"fixed",left:0,top:0,margin:0});const x=()=>{o||(w&&(Bh(n).forEach(N=>b.add(N)),Nr(s)&&Bh(s).forEach(N=>b.add(N)),b.forEach(N=>{N.addEventListener("scroll",y,{passive:!0})}),v?.observe(n),Nr(s)&&v?.observe(s),w=!1),Object.assign(n.style,{position:c}),Mx(s,n,{placement:d,middleware:u,strategy:c}).then(({x:N,y:E,middlewareData:B,placement:T})=>{o||(Jx({arrow:l,middlewareData:B}),Zx({container:n,middlewareData:B,placement:T,coordinates:{x:N,y:E},lowPPI:(g?.devicePixelRatio||1)<=1,strategy:c,useTransform:p}),n.dispatchEvent(new CustomEvent(Fa)))}).catch(N=>{}))},y=Yx(()=>x()),S=()=>{o=!0,g&&(g.removeEventListener("scroll",y),g.removeEventListener("resize",y)),b.forEach(N=>{N.removeEventListener("scroll",y)}),b.clear(),v?.disconnect()};return g&&(g.addEventListener("scroll",y,{passive:!0}),g.addEventListener("resize",y)),y(),{updatePosition:y,dispose:S}}function o_(){return{name:"coverTarget",fn:t=>{const{placement:o,rects:n,x:s,y:l}=t,c=xh(o).side,u={x:s,y:l};switch(c){case"bottom":u.y-=n.reference.height;break;case"top":u.y+=n.reference.height;break;case"left":u.x+=n.reference.width;break;case"right":u.x-=n.reference.width;break}return u}}}function n_(t){const{hasScrollableElement:o,flipBoundary:n,container:s,fallbackPositions:l=[],isRtl:c}=t,u=l.reduce((d,p)=>{const{position:m,align:g}=Ch(p),v=Sh(g,m,c);return v&&d.push(v),d},[]);return Ox({...o&&{boundary:"clippingAncestors"},...n&&{altBoundary:!0,boundary:Wa(s,n)},fallbackStrategy:"bestFit",...u.length&&{fallbackPlacements:u}})}function i_(){return{name:"intersectionObserver",fn:async t=>{const o=t.rects.floating,n=await Ix(t,{altBoundary:!0}),s=n.top<o.height&&n.top>0,l=n.bottom<o.height&&n.bottom>0;return{data:{intersecting:s||l}}}}}const s_=t=>({name:"resetMaxSize",fn({middlewareData:o,elements:n}){var s;if(!((s=o.resetMaxSize)===null||s===void 0)&&s.maxSizeAlreadyReset)return{};const{applyMaxWidth:l,applyMaxHeight:c}=t;return l&&(n.floating.style.removeProperty("box-sizing"),n.floating.style.removeProperty("max-width"),n.floating.style.removeProperty("width")),c&&(n.floating.style.removeProperty("box-sizing"),n.floating.style.removeProperty("max-height"),n.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function l_(t,o){const{container:n,overflowBoundary:s,overflowBoundaryPadding:l,isRtl:c}=o;return Ax({...l&&{padding:_h(l,c)},...s&&{altBoundary:!0,boundary:Wa(n,s)},apply({availableHeight:u,availableWidth:d,elements:p,rects:m}){const g=(b,x,y)=>{if(b&&(p.floating.style.setProperty("box-sizing","border-box"),p.floating.style.setProperty(`max-${x}`,`${y}px`),m.floating[x]>y)){p.floating.style.setProperty(x,`${y}px`);const S=x==="width"?"x":"y";p.floating.style.getPropertyValue(`overflow-${S}`)||p.floating.style.setProperty(`overflow-${S}`,"auto")}},{applyMaxWidth:v,applyMaxHeight:w}=t;g(v,"width",d),g(w,"height",u)}})}function a_(t){return!t||typeof t=="number"||typeof t=="object"?t:({rects:{floating:o,reference:n},placement:s})=>{const{position:l,alignment:c}=Xx(s);return t({positionedRect:o,targetRect:n,position:l,alignment:c})}}function c_(t){const o=a_(t);return Dx(o)}function u_(t){const{hasScrollableElement:o,shiftToCoverTarget:n,disableTether:s,overflowBoundary:l,container:c,overflowBoundaryPadding:u,isRtl:d}=t;return jx({...o&&{boundary:"clippingAncestors"},...n&&{crossAxis:!0,limiter:kh({crossAxis:!0,mainAxis:!1})},...s&&{crossAxis:s==="all",limiter:kh({crossAxis:s!=="all",mainAxis:!1})},...u&&{padding:_h(u,d)},...l&&{altBoundary:!0,boundary:Wa(c,l)}})}const Nh="--fui-match-target-size";function d_(){return{name:"matchTargetSize",fn:async t=>{const{rects:{reference:o,floating:n},elements:{floating:s},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:l=!1}={}}}=t;if(o.width===n.width||l)return{};const{width:c}=o;return s.style.setProperty(Nh,`${c}px`),s.style.width||(s.style.width=`var(${Nh})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}}}function f_(t,o){const{align:n,arrowPadding:s,autoSize:l,coverTarget:c,disableUpdateOnResize:u,flipBoundary:d,offset:p,overflowBoundary:m,pinned:g,position:v,unstable_disableTether:w,strategy:b,overflowBoundaryPadding:x,fallbackPositions:y,useTransform:S,matchTargetSize:N,shiftToCoverTarget:E}=o;return _.useCallback((B,T)=>t({container:B,arrow:T,options:{autoSize:l,disableUpdateOnResize:u,matchTargetSize:N,offset:p,strategy:b,coverTarget:c,flipBoundary:d,overflowBoundary:m,useTransform:S,overflowBoundaryPadding:x,pinned:g,arrowPadding:s,align:n,fallbackPositions:y,shiftToCoverTarget:E,position:v,unstable_disableTether:w}}),[l,u,N,p,b,c,d,m,S,x,g,s,n,y,E,v,w,t])}function p_(t){const{dir:o,targetDocument:n}=at(),s=o==="rtl",l=f_(Wk(),t),{positionFixed:c}=t;return _.useCallback((u,d)=>{const p=Wx(u),m=l(u,d),{autoSize:g,disableUpdateOnResize:v,matchTargetSize:w,offset:b,coverTarget:x,flipBoundary:y,overflowBoundary:S,useTransform:N,overflowBoundaryPadding:E,pinned:B,position:T,arrowPadding:R,strategy:O,align:L,fallbackPositions:W,shiftToCoverTarget:H,unstable_disableTether:Y}=m,ce=e_(g),ee=[ce&&s_(ce),w&&d_(),b&&c_(b),x&&o_(),!B&&n_({container:u,flipBoundary:y,hasScrollableElement:p,isRtl:s,fallbackPositions:W}),u_({container:u,hasScrollableElement:p,overflowBoundary:S,disableTether:Y,overflowBoundaryPadding:E,isRtl:s,shiftToCoverTarget:H}),ce&&l_(ce,{container:u,overflowBoundary:S,overflowBoundaryPadding:E,isRtl:s}),i_(),d&&Lx({element:d,padding:R}),wh({strategy:"referenceHidden"}),wh({strategy:"escaped"}),!1].filter(Boolean);return{placement:Sh(L,T,s),middleware:ee,strategy:O??c?"fixed":"absolute",disableUpdateOnResize:v,useTransform:N}},[l,s,n,c])}function h_(t){"use no memo";const o=_.useRef(null),n=_.useRef(null),s=_.useRef(null),l=_.useRef(null),c=_.useRef(null),{enabled:u=!0}=t,d=p_(t),p=_.useCallback(()=>{o.current&&o.current.dispose(),o.current=null;var x;const y=(x=s.current)!==null&&x!==void 0?x:n.current;u&&na()&&y&&l.current&&(o.current=r_({container:l.current,target:y,arrow:c.current,...d(l.current,c.current)}))},[u,d]),m=xe(x=>{s.current=x,p()});_.useImperativeHandle(t.positioningRef,()=>({updatePosition:()=>{var x;return(x=o.current)===null||x===void 0?void 0:x.updatePosition()},setTarget:x=>{t.target,m(x)}}),[t.target,m]),Ht(()=>{var x;m((x=t.target)!==null&&x!==void 0?x:null)},[t.target,m]),Ht(()=>{p()},[p]);const g=$a(null,x=>{n.current!==x&&(n.current=x,p())}),v=xe(()=>{var x;return(x=t.onPositioningEnd)===null||x===void 0?void 0:x.call(t)}),w=$a(null,x=>{if(l.current!==x){var y;(y=l.current)===null||y===void 0||y.removeEventListener(Fa,v),x?.addEventListener(Fa,v),l.current=x,p()}}),b=$a(null,x=>{c.current!==x&&(c.current=x,p())});return{targetRef:g,containerRef:w,arrowRef:b}}function m_(t){return Nr(t)?{element:t}:typeof t=="object"?t===null?{element:null}:t:{}}const g_=de({root:{qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["f1e31b4d","f1vgc2s3"],Bj3rh1h:"f494woh"}},{d:[".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f494woh{z-index:1000000;}"]}),Th=Ni.useInsertionEffect,v_=t=>{"use no memo";const{className:o,dir:n,focusVisibleRef:s,targetNode:l}=t,c=_.useMemo(()=>{if(l===void 0||t.disabled)return null;const u=l.ownerDocument.createElement("div");return l.appendChild(u),u},[l,t.disabled]);return _.useMemo(()=>{c&&(c.className=o,c.setAttribute("dir",n),c.setAttribute("data-portal-node","true"),s.current=c)},[o,n,c,s]),_.useEffect(()=>()=>{c?.remove()},[c]),c},b_=()=>{let t;function o(s,l){return t||(l&&(t=s.ownerDocument.createElement("div"),s.appendChild(t)),t)}function n(){t&&(t.remove(),t=void 0)}return{get:o,dispose:n}},y_=Th?t=>{"use no memo";const{className:o,dir:n,focusVisibleRef:s,targetNode:l}=t,[c]=_.useState(b_),u=_.useMemo(()=>l===void 0||t.disabled?null:new Proxy({},{get(d,p){if(p==="nodeType")return 1;if(p==="remove"){const v=c.get(l,!1);return v&&v.childNodes.length===0&&c.dispose(),()=>{}}const m=c.get(l,!0),g=m?m[p]:void 0;return typeof g=="function"?g.bind(m):g},set(d,p,m){const g=p==="_virtual"||p==="focusVisible",v=g?c.get(l,!1):c.get(l,!0);return g&&!v?!0:v?(Object.assign(v,{[p]:m}),!0):!1}}),[c,l,t.disabled]);return Th(()=>{if(!u)return;const d=o.split(" ").filter(Boolean);return u.classList.add(...d),u.setAttribute("dir",n),u.setAttribute("data-portal-node","true"),s.current=u,()=>{u.classList.remove(...d),u.removeAttribute("dir")}},[o,n,u,s]),_.useEffect(()=>()=>{u?.remove()},[u]),u}:v_,w_=t=>{"use no memo";const{targetDocument:o,dir:n}=at(),s=_b(),l=Ca(),c=g_(),u=gb(),d={dir:n,disabled:t.disabled,focusVisibleRef:l,className:oe(u,c.root,t.className),targetNode:s??o?.body};return y_(d)},k_=t=>{const{element:o,className:n}=m_(t.mountNode),s=_.useRef(null),l=w_({disabled:!!o,className:n}),c=o??l,u={children:t.children,mountNode:c,virtualParentRootRef:s};return _.useEffect(()=>{if(!c)return;const d=s.current,p=c.contains(d);if(d&&!p)return Bf(c,d),()=>{Bf(c,void 0)}},[s,c]),u};var Va=dd();const x_=t=>_.createElement("span",{hidden:!0,ref:t.virtualParentRootRef},t.mountNode&&Va.createPortal(_.createElement(_.Fragment,null,t.children,_.createElement("span",{hidden:!0})),t.mountNode)),Eh=t=>{const o=k_(t);return x_(o)};Eh.displayName="Portal";const __=t=>{const{iconOnly:o,iconPosition:n}=t;return yt(t.root,{children:[n!=="after"&&t.icon&&fe(t.icon,{}),!o&&t.root.children,n==="after"&&t.icon&&fe(t.icon,{})]})},zh=_.createContext(void 0),S_={};zh.Provider;const C_=()=>{var t;return(t=_.useContext(zh))!==null&&t!==void 0?t:S_},B_=(t,o)=>{const{size:n}=C_(),{appearance:s="secondary",as:l="button",disabled:c=!1,disabledFocusable:u=!1,icon:d,iconPosition:p="before",shape:m="rounded",size:g=n??"medium"}=t,v=Ke(d,{elementType:"span"});return{appearance:s,disabled:c,disabledFocusable:u,iconPosition:p,shape:m,size:g,iconOnly:!!(v?.children&&!t.children),components:{root:"button",icon:"span"},root:Fe(St(l,Mp(t.as,t)),{elementType:"button",defaultProps:{ref:o,type:l==="button"?"button":void 0}}),icon:v}},Ph={root:"fui-Button",icon:"fui-Button__icon"},N_=ft("r1alrhcs",null,{r:[".r1alrhcs{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;text-decoration-line:none;vertical-align:middle;margin:0;overflow:hidden;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);font-family:var(--fontFamilyBase);outline-style:none;padding:5px var(--spacingHorizontalM);min-width:96px;border-radius:var(--borderRadiusMedium);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);transition-duration:var(--durationFaster);transition-property:background,border,color;transition-timing-function:var(--curveEasyEase);}",".r1alrhcs:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}",".r1alrhcs:hover:active{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}",".r1alrhcs[data-fui-focus-visible]{border-color:var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);border-width:1px;outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);box-shadow:0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;z-index:1;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1alrhcs{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1alrhcs:focus{border-color:ButtonText;}.r1alrhcs:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1alrhcs:hover:active{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}","@supports (-moz-appearance:button){.r1alrhcs[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),T_=ft("rywnvv2",null,[".rywnvv2{align-items:center;display:inline-flex;justify-content:center;font-size:20px;height:20px;width:20px;--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}"]),E_=de({outline:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",iro3zm:"fwiml72"},primary:{De3pzq:"ffp7eso",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",iro3zm:"fnp9lpt",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1d6v5y2",By8wz76:"f1nz3ub2",Bcq6wej:"fag2qd2",Jcjdmf:["fmvhcg7","f14bpyus"],sc4o1m:"f1o3dhpw",Bosien3:["f14bpyus","fmvhcg7"],B7iucu3:"fqc85l4",B8gzw0y:"f1h3a8gf",Bbkh6qg:"fkiggi6",F230oe:"f8gmj8i",Bdw8ktp:["f1ap8nzx","fjag8bx"],Bj1xduy:"f1igan7k",Bhh2cfd:["fjag8bx","f1ap8nzx"],Bahaeuw:"f1v3eptx",rxnm8d:"fpelvsg",Bso50sa:"f1r9enuy",B65bq0w:["fdvt4n0","f1grx941"],Buont6p:"f1l34yyb",B0o9ejx:["f1grx941","fdvt4n0"],Dcq74g:"fqfbdvs"},secondary:{},subtle:{De3pzq:"fhovq9v",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bbdnnc7:"fy5bs14",iro3zm:"fsv2rcd",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1omzyqd",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",x3br3k:"fj8yq94",Bahaeuw:"f1v3eptx",Buhizc3:"fivsta0",Dcq74g:"fqfbdvs",zyxd5v:"f1wfsnb3"},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1fg1p5m",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",Bbkh6qg:"fxoo9op",Bahaeuw:"f1v3eptx",rxnm8d:"f11slz88",Dcq74g:"fqfbdvs"},circular:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9"},rounded:{},square:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1fabniw"},small:{Bf4jedk:"fh7ncta",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fneth5b",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},smallWithIcon:{Byoj8tv:"f1brlhvm",z8tnut:"f1sl3k7w"},medium:{},large:{Bf4jedk:"f14es27b",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f4db1ww",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},largeWithIcon:{Byoj8tv:"fy7v416",z8tnut:"f1a1bwwz"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".f1fabniw{border-radius:var(--borderRadiusNone);}",{p:-1}],".fh7ncta{min-width:64px;}",[".fneth5b{padding:3px var(--spacingHorizontalS);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1brlhvm{padding-bottom:1px;}",".f1sl3k7w{padding-top:1px;}",".f14es27b{min-width:96px;}",[".f4db1ww{padding:8px var(--spacingHorizontalL);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fy7v416{padding-bottom:7px;}",".f1a1bwwz{padding-top:7px;}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".ft1hn21:hover .fui-Icon-filled{display:inline;}",".fuxngvv:hover .fui-Icon-regular{display:none;}",".fy5bs14:hover .fui-Button__icon{color:var(--colorNeutralForeground2BrandHover);}",".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}",".f1dfjoow:hover:active .fui-Icon-filled{display:inline;}",".f1j98vj9:hover:active .fui-Icon-regular{display:none;}",".fj8yq94:hover:active .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1nz3ub2{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fag2qd2{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14bpyus{border-left-color:HighlightText;}.fmvhcg7{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o3dhpw{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fqc85l4{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkiggi6:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f8gmj8i:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ap8nzx:hover{border-right-color:Highlight;}.fjag8bx:hover{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1igan7k:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1v3eptx:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fpelvsg:hover:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1r9enuy:hover:active{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1grx941:hover:active{border-left-color:Highlight;}.fdvt4n0:hover:active{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1l34yyb:hover:active{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fqfbdvs:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fivsta0:hover .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wfsnb3:hover:active .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fxoo9op:hover{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f11slz88:hover:active{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}]]}),z_=de({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bfinmwp:"f15x8b5r",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bbdnnc7:"f1al02dq",iro3zm:"f1t6o4dc",b661bw:"f10ztigi",Bk6r4ia:["f1ft5sdu","f1gzf82w"],B9zn80p:"f12zbtn2",Bpld233:["f1gzf82w","f1ft5sdu"],B2d53fq:"fcvwxyo",c3iz72:"f8w4c43",em6i61:"f1ol4fw6",vm6p8p:"f1q1lw4e",x3br3k:"f1dwjv2g"},highContrast:{By8wz76:"f14ptb23",Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"],B7iucu3:"f1cyfu5x",Grqk0h:"f127ot8j",h3ptyc:"f19etb0b",Buw724y:["f4f984j","fw441p0"],Buk7464:"f3d22hf",Hwei09:["fw441p0","f4f984j"],Bbkh6qg:"fj8k9ua",F230oe:"fifrq0d",Bdw8ktp:["f196mwp7","fnekfq"],Bj1xduy:"f1l6uprw",Bhh2cfd:["fnekfq","f196mwp7"],Bahaeuw:"fa9u7a5",Buhizc3:"f1m71e0y",rxnm8d:"f1xxg0vq",Bso50sa:"f16oldlo",B65bq0w:["f17g64ui","fqbrke7"],Buont6p:"fjvf891",B0o9ejx:["fqbrke7","f17g64ui"],Dcq74g:"f1efp33f",zyxd5v:"f1gue8i"},outline:{De3pzq:"f1c21dwh",Jwef8y:"f9ql6rf",iro3zm:"f3h1zc4"},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f15x8b5r .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1al02dq:hover .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}",".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f8w4c43:hover:active{cursor:not-allowed;}",".f1ol4fw6:hover:active .fui-Icon-filled{display:none;}",".f1q1lw4e:hover:active .fui-Icon-regular{display:inline;}",".f1dwjv2g:hover:active .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f3h1zc4:hover:active{background-color:var(--colorTransparentBackground);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}"],m:[["@media (forced-colors: active){.f14ptb23{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f127ot8j .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f19etb0b:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4f984j:focus{border-right-color:GrayText;}.fw441p0:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3d22hf:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fj8k9ua:hover{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fifrq0d:hover{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f196mwp7:hover{border-right-color:GrayText;}.fnekfq:hover{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1l6uprw:hover{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fa9u7a5:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1m71e0y:hover .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1xxg0vq:hover:active{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16oldlo:hover:active{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f17g64ui:hover:active{border-right-color:GrayText;}.fqbrke7:hover:active{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjvf891:hover:active{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1efp33f:hover:active{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1gue8i:hover:active .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),P_=de({circular:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f1062rbf"},rounded:{},square:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"fj0ryk1"},primary:{B8q5s1w:"f17t0x8g",Bci5o5g:["f194v5ow","fk7jm04"],n8qw10:"f1qgg65p",Bdrgwmp:["fk7jm04","f194v5ow"],j6ew2k:["fhgccpy","fjo7pq6"],he4mth:"f32wu9k",Byr4aka:"fu5nqqq",lks7q5:["f13prjl2","f1nl83rv"],Bnan3qt:"f1czftr5",k1dn9:["f1nl83rv","f13prjl2"],Bqsb82s:["fixhny3","f18mfu3r"],jg1oma:"feygou5"},small:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"fazmxh"},medium:{},large:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f1b6alqh"}},{d:[[".f1062rbf[data-fui-focus-visible]{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".fj0ryk1[data-fui-focus-visible]{border-radius:var(--borderRadiusNone);}",{p:-1}],".f17t0x8g[data-fui-focus-visible]{border-top-color:var(--colorStrokeFocus2);}",".f194v5ow[data-fui-focus-visible]{border-right-color:var(--colorStrokeFocus2);}",".fk7jm04[data-fui-focus-visible]{border-left-color:var(--colorStrokeFocus2);}",".f1qgg65p[data-fui-focus-visible]{border-bottom-color:var(--colorStrokeFocus2);}",".fhgccpy[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".fjo7pq6[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".f32wu9k[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;}",".fu5nqqq[data-fui-focus-visible]:hover{border-top-color:var(--colorStrokeFocus2);}",".f13prjl2[data-fui-focus-visible]:hover{border-right-color:var(--colorStrokeFocus2);}",".f1nl83rv[data-fui-focus-visible]:hover{border-left-color:var(--colorStrokeFocus2);}",".f1czftr5[data-fui-focus-visible]:hover{border-bottom-color:var(--colorStrokeFocus2);}",[".fazmxh[data-fui-focus-visible]{border-radius:var(--borderRadiusSmall);}",{p:-1}],[".f1b6alqh[data-fui-focus-visible]{border-radius:var(--borderRadiusLarge);}",{p:-1}]],t:["@supports (-moz-appearance:button){.f18mfu3r[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}.fixhny3[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}}","@supports (-moz-appearance:button){.feygou5[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),R_=de({small:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fu97m5z",Bf4jedk:"f17fgpbq",B2u0y6b:"f1jt17bm"},medium:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f18ktai2",Bf4jedk:"fwbmr0d",B2u0y6b:"f44c6la"},large:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1hbd1aw",Bf4jedk:"f12clzc2",B2u0y6b:"fjy1crr"}},{d:[[".fu97m5z{padding:1px;}",{p:-1}],".f17fgpbq{min-width:24px;}",".f1jt17bm{max-width:24px;}",[".f18ktai2{padding:5px;}",{p:-1}],".fwbmr0d{min-width:32px;}",".f44c6la{max-width:32px;}",[".f1hbd1aw{padding:7px;}",{p:-1}],".f12clzc2{min-width:40px;}",".fjy1crr{max-width:40px;}"]}),F_=de({small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3",Bqrlyyl:"fbaiahx"},medium:{},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun",Bqrlyyl:"f1exjqw5"},before:{t21cq0:["f1nizpg2","f1a695kz"]},after:{Frg6f3:["f1a695kz","f1nizpg2"]}},{d:[".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".fbaiahx{--fui-Button__icon--spacing:var(--spacingHorizontalXS);}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".f1exjqw5{--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}",".f1nizpg2{margin-right:var(--fui-Button__icon--spacing);}",".f1a695kz{margin-left:var(--fui-Button__icon--spacing);}"]}),I_=t=>{"use no memo";const o=N_(),n=T_(),s=E_(),l=z_(),c=P_(),u=R_(),d=F_(),{appearance:p,disabled:m,disabledFocusable:g,icon:v,iconOnly:w,iconPosition:b,shape:x,size:y}=t;return t.root.className=oe(Ph.root,o,p&&s[p],s[y],v&&y==="small"&&s.smallWithIcon,v&&y==="large"&&s.largeWithIcon,s[x],(m||g)&&l.base,(m||g)&&l.highContrast,p&&(m||g)&&l[p],p==="primary"&&c.primary,c[y],c[x],w&&u[y],t.root.className),t.icon&&(t.icon.className=oe(Ph.icon,n,!!t.root.children&&d[b],d[y],t.icon.className)),t},Rh=_.forwardRef((t,o)=>{const n=B_(t,o);return I_(n),nt("useButtonStyles_unstable")(n),__(n)});Rh.displayName="Button";const Fh=_.createContext(void 0);Fh.Provider;const D_=()=>_.useContext(Fh);function us(t,o){return j_(D_(),t,o)}function j_(t,o,n){if(!t)return o;o={...o};const{generatedControlId:s,hintId:l,labelFor:c,labelId:u,required:d,validationMessageId:p,validationState:m}=t;if(s){var g,v;(v=(g=o).id)!==null&&v!==void 0||(g.id=s)}if(u&&(!n?.supportsLabelFor||c!==o.id)){var w,b,x;(x=(w=o)[b="aria-labelledby"])!==null&&x!==void 0||(w[b]=u)}if((p||l)&&(o["aria-describedby"]=[p,l,o?.["aria-describedby"]].filter(Boolean).join(" ")),m==="error"){var y,S,N;(N=(y=o)[S="aria-invalid"])!==null&&N!==void 0||(y[S]=!0)}if(d)if(n?.supportsRequired){var E,B;(B=(E=o).required)!==null&&B!==void 0||(E.required=!0)}else{var T,R,O;(O=(T=o)[R="aria-required"])!==null&&O!==void 0||(T[R]=!0)}if(n?.supportsSize){var L,W;(W=(L=o).size)!==null&&W!==void 0||(L.size=t.size)}return o}const O_=(t,o)=>{const{disabled:n=!1,required:s=!1,weight:l="regular",size:c="medium"}=t;return{disabled:n,required:Ke(s===!0?"*":s||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:l,size:c,components:{root:"label",required:"span"},root:Fe(St("label",{ref:o,...t}),{elementType:"label"})}},A_=t=>yt(t.root,{children:[t.root.children,t.required&&fe(t.required,{})]}),Ih={root:"fui-Label",required:"fui-Label__required"},L_=de({root:{Bahqtrf:"fk6fouc",sj55zd:"f19n0e5"},disabled:{sj55zd:"f1s2aq7o",B7iucu3:"f1cyfu5x"},required:{sj55zd:"f1whyuy6",uwmqm3:["fruq291","f7x41pl"]},small:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},medium:{Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi"},large:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k",Bhrd7zp:"fl43uef"},semibold:{Bhrd7zp:"fl43uef"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),M_=t=>{"use no memo";const o=L_();return t.root.className=oe(Ih.root,o.root,t.disabled&&o.disabled,o[t.size],t.weight==="semibold"&&o.semibold,t.root.className),t.required&&(t.required.className=oe(Ih.required,o.required,t.disabled&&o.disabled,t.required.className)),t},yo=_.forwardRef((t,o)=>{const n=O_(t,o);return M_(n),nt("useLabelStyles_unstable")(n),A_(n)});yo.displayName="Label";const q_=(t,o)=>{"use no memo";t=us(t,{supportsLabelFor:!0,supportsRequired:!0});const{disabled:n=!1,required:s,shape:l="square",size:c="medium",labelPosition:u="after",onChange:d}=t,[p,m]=Hr({defaultState:t.defaultChecked,state:t.checked,initialState:!1}),g=Vi({props:t,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","size","onChange"]}),v=p==="mixed",w=Br("checkbox-",g.primary.id);let b;v?l==="circular"?b=_.createElement(Dk,null):b=c==="large"?_.createElement(Mk,null):_.createElement(Lk,null):p&&(b=c==="large"?_.createElement(Ak,null):_.createElement(Xp,null));const x={shape:l,checked:p,disabled:n,size:c,labelPosition:u,components:{root:"span",input:"input",indicator:"div",label:yo},root:Fe(t.root,{defaultProps:{ref:Pn(),...g.root},elementType:"span"}),input:Fe(t.input,{defaultProps:{type:"checkbox",id:w,ref:o,checked:p===!0,...g.primary},elementType:"input"}),label:Ke(t.label,{defaultProps:{htmlFor:w,disabled:n,required:s,size:"medium"},elementType:yo}),indicator:Ke(t.indicator,{renderByDefault:!0,defaultProps:{"aria-hidden":!0,children:b},elementType:"div"})};x.input.onChange=xe(S=>{const N=S.currentTarget.indeterminate?"mixed":S.currentTarget.checked;d?.(S,{checked:N}),m(N)});const y=pt(x.input.ref);return x.input.ref=y,Ht(()=>{y.current&&(y.current.indeterminate=v)},[y,v]),x},H_=t=>yt(t.root,{children:[fe(t.input,{}),t.labelPosition==="before"&&t.label&&fe(t.label,{}),t.indicator&&fe(t.indicator,{}),t.labelPosition==="after"&&t.label&&fe(t.label,{})]}),ds={root:"fui-Checkbox",label:"fui-Checkbox__label",input:"fui-Checkbox__input",indicator:"fui-Checkbox__indicator"},W_=ft("r1nzur1d","r128arqq",{r:[".r1nzur1d{position:relative;display:inline-flex;cursor:pointer;max-width:fit-content;vertical-align:middle;color:var(--colorNeutralForeground3);}",".r1nzur1d:focus{outline-style:none;}",".r1nzur1d:focus-visible{outline-style:none;}",".r1nzur1d[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1nzur1d[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r128arqq{position:relative;display:inline-flex;cursor:pointer;max-width:fit-content;vertical-align:middle;color:var(--colorNeutralForeground3);}",".r128arqq:focus{outline-style:none;}",".r128arqq:focus-visible{outline-style:none;}",".r128arqq[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r128arqq[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1nzur1d[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.r128arqq[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),$_=de({unchecked:{Bi91k9c:"f3p8bqa",pv5h1i:"fium13f",lj723h:"f1r2dosr",Hnthvo:"f1729es6"},checked:{sj55zd:"f19n0e5",wkncrt:"f35ds98",zxk7z7:"f12mnkne",Hmsnfy:"fei9a8h",e6czan:"fix56y3",pv5h1i:"f1bcv2js",qbydtz:"f7dr4go",Hnthvo:"f1r5cpua"},mixed:{sj55zd:"f19n0e5",Hmsnfy:"f1l27tf0",zxk7z7:"fcilktj",pv5h1i:"f1lphd54",Bunfa6h:"f1obkvq7",Hnthvo:"f2gmbuh",B15ykmv:"f1oy4fa1"},disabled:{Bceei9c:"f158kwzp",sj55zd:"f1s2aq7o",Hmsnfy:"f1w7mfl5",zxk7z7:"fcoafq6",B7iucu3:"f1cyfu5x",Bptavk6:"f1lwde8o"}},{h:[".f3p8bqa:hover{color:var(--colorNeutralForeground2);}",".fium13f:hover{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessibleHover);}",".fix56y3:hover{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundHover);}",".f1bcv2js:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundHover);}",".f1lphd54:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokeHover);}",".f1obkvq7:hover{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Hover);}"],a:[".f1r2dosr:active{color:var(--colorNeutralForeground1);}",".f1729es6:active{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessiblePressed);}",".f7dr4go:active{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundPressed);}",".f1r5cpua:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundPressed);}",".f2gmbuh:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokePressed);}",".f1oy4fa1:active{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Pressed);}"],d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".f35ds98{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackground);}",".f12mnkne{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundInverted);}",".fei9a8h{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackground);}",".f1l27tf0{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStroke);}",".fcilktj{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1);}",".f158kwzp{cursor:default;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1w7mfl5{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeDisabled);}",".fcoafq6{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lwde8o{--fui-Checkbox__indicator--color:GrayText;}}",{m:"(forced-colors: active)"}]]}),V_=ft("ruo9svu",null,[".ruo9svu{box-sizing:border-box;cursor:inherit;height:100%;margin:0;opacity:0;position:absolute;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));}"]),U_=de({before:{j35jbq:["f1e31b4d","f1vgc2s3"]},after:{oyh7mz:["f1vgc2s3","f1e31b4d"]},large:{a9b677:"f1mq5jt6"}},{d:[".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f1mq5jt6{width:calc(20px + 2 * var(--spacingHorizontalS));}"]}),G_=ft("rl7ci6d",null,[".rl7ci6d{align-self:flex-start;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--fui-Checkbox__indicator--color);background-color:var(--fui-Checkbox__indicator--backgroundColor);border-color:var(--fui-Checkbox__indicator--borderColor, var(--colorNeutralStrokeAccessible));border-style:solid;border-width:var(--strokeWidthThin);border-radius:var(--borderRadiusSmall);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;font-size:12px;height:16px;width:16px;}"]),K_=de({large:{Be2twd7:"f4ybsrx",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},circular:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9"}},{d:[".f4ybsrx{font-size:16px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}]]}),X_=de({base:{qb2dma:"f7nlbp4",sj55zd:"f1ym3bx4",Bceei9c:"fpo1scq",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1f5q0n8"},before:{z189sj:["f7x41pl","fruq291"]},after:{uwmqm3:["fruq291","f7x41pl"]},medium:{B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},large:{B6of3ja:"f1xlvstr",jrapky:"f49ad5g"}},{d:[".f7nlbp4{align-self:center;}",".f1ym3bx4{color:inherit;}",".fpo1scq{cursor:inherit;}",[".f1f5q0n8{padding:var(--spacingVerticalS) var(--spacingHorizontalS);}",{p:-1}],".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}",".fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}",".f1xlvstr{margin-top:calc((20px - var(--lineHeightBase300)) / 2);}",".f49ad5g{margin-bottom:calc((20px - var(--lineHeightBase300)) / 2);}"]}),Q_=t=>{"use no memo";const{checked:o,disabled:n,labelPosition:s,shape:l,size:c}=t,u=W_(),d=$_();t.root.className=oe(ds.root,u,n?d.disabled:o==="mixed"?d.mixed:o?d.checked:d.unchecked,t.root.className);const p=V_(),m=U_();t.input.className=oe(ds.input,p,c==="large"&&m.large,m[s],t.input.className);const g=G_(),v=K_();t.indicator&&(t.indicator.className=oe(ds.indicator,g,c==="large"&&v.large,l==="circular"&&v.circular,t.indicator.className));const w=X_();return t.label&&(t.label.className=oe(ds.label,w.base,w[c],w[s],t.label.className)),t},Ua=_.forwardRef((t,o)=>{const n=q_(t,o);return Q_(n),nt("useCheckboxStyles_unstable")(n),H_(n)});Ua.displayName="Checkbox";const Dh=za({activeOption:void 0,appearance:"outline",focusVisible:!1,open:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){},setOpen(){},size:"medium"});Dh.Provider;const Y_={activeOption:void 0,focusVisible:!1,multiselect:!1,getOptionById(){},getOptionsMatchingValue(){return[]},registerOption(){return()=>{}},selectedOptions:[],onOptionClick(){},onActiveDescendantChange(){},selectOption(){},setActiveOption(){}},Ko=za(void 0),Dt=t=>Fp(Ko,(o=Y_)=>t(o));Ko.Provider;function J_(t){const{appearance:o,open:n,getOptionById:s,getOptionsMatchingValue:l,registerOption:c,selectedOptions:u,selectOption:d,setOpen:p,size:m,activeDescendantController:g,onOptionClick:v,onActiveDescendantChange:w}=t,b={activeOption:void 0,appearance:o,focusVisible:!1,open:n,registerOption:c,selectedOptions:u,selectOption:d,setActiveOption:()=>null,setOpen:p,size:m},x={activeOption:void 0,focusVisible:!1,getOptionById:s,getOptionsMatchingValue:l,registerOption:c,selectedOptions:u,selectOption:d,setActiveOption:()=>null,onOptionClick:v,onActiveDescendantChange:w},y=_.useMemo(()=>({controller:g}),[g]);return{combobox:b,activeDescendant:y,listbox:x}}function Z_(t){const o=Ip(Ko),{getOptionById:n,getOptionsMatchingValue:s,multiselect:l,registerOption:c,selectedOptions:u,selectOption:d,activeDescendantController:p}=t,m=Dt(y=>y.registerOption),g=Dt(y=>y.onOptionClick),v=Dt(y=>y.onActiveDescendantChange),b={activeOption:void 0,focusVisible:!1,getOptionById:n,getOptionsMatchingValue:s,multiselect:l,registerOption:o?m:c,selectedOptions:u,selectOption:d,setActiveOption:()=>{},onOptionClick:g,onActiveDescendantChange:v},x=_.useMemo(()=>({controller:p}),[p]);return{listbox:b,activeDescendant:x}}function Ga(t,o={}){const{open:n=!0,multiselect:s=!1}=o,l=t.key,{altKey:c,ctrlKey:u,key:d,metaKey:p}=t;return d.length===1&&l!==gr&&!c&&!u&&!p?"Type":n?l===es&&c||l===qo||!s&&l===gr?"CloseSelect":s&&l===gr?"Select":l===Lp?"Close":l===Pa?"Next":l===es?"Previous":l===Ap?"First":l===Op?"Last":l===xk?"PageUp":l===kk?"PageDown":l===wk?"Tab":"None":l===Pa||l===es||l===qo||l===gr?"Open":"None"}const jh=()=>{const t=_.useRef(new Map),o=_.useMemo(()=>({getCount:()=>t.current.size,getOptionAtIndex:()=>{},getIndexOfId:()=>-1,getOptionById:m=>t.current.get(m),getOptionsMatchingText:m=>Array.from(t.current.values()).filter(({text:g})=>m(g)),getOptionsMatchingValue:m=>{const g=[];for(const v of t.current.values())m(v.value)&&g.push(v);return g}}),[]),n=_.useCallback(s=>(t.current.set(s.id,s),()=>t.current.delete(s.id)),[]);return{...o,options:Array.from(t.current.values()),registerOption:n}},Oh=t=>{const{defaultSelectedOptions:o,multiselect:n,onOptionSelect:s}=t,[l,c]=Hr({state:t.selectedOptions,defaultState:o,initialState:[]}),u=_.useCallback((p,m)=>{if(m.disabled)return;let g=[m.value];if(n){const v=l.findIndex(w=>w===m.value);v>-1?g=[...l.slice(0,v),...l.slice(v+1)]:g=[...l,m.value]}c(g),s?.(p,{optionValue:m.value,optionText:m.text,selectedOptions:g})},[s,n,l,c]);return{clearSelection:p=>{c([]),s?.(p,{optionValue:void 0,optionText:void 0,selectedOptions:[]})},selectOption:u,selectedOptions:l}},fs={root:"fui-Option",checkIcon:"fui-Option__checkIcon"},eS=de({root:{Bt984gj:"f122n59",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",sj55zd:"f19n0e5",i8kkvl:"f1ufnopg",Bceei9c:"f1k6fduh",mc9l5x:"f22iagw",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fm5eomj",qhf8xq:"f10pi13n",Jwef8y:"f1knas48",Bi91k9c:"feu1g3u",zqbkvg:"fo79ri9",h82x05:["f1osiabc","f1e8le25"],cqj998:"f1yusjty",j3hlsh:["f1e8le25","f1osiabc"],ecr2s2:"fb40n2d",lj723h:"f1g4hkjv",Btxx2vb:"f1lnr2zp",sltcwy:["f1ogfk9z","f1g7j8ec"],dnwvvm:"fiuf46r",Blyvkvs:["f1g7j8ec","f1ogfk9z"]},active:{Bowz1zl:"f11vrvdw",oxogb1:"f17hxjb7",Ix2sn8:"f1dha69c",q7v32p:"f1lm7500",B7cbj04:0,Bewtojm:0,b50fsz:0,B1wzb3v:0,Bqwk70n:0,B37u8z8:0,avt0cx:0,f0sref:0,B9fkznv:0,Be3o27t:0,Bertapg:0,B53xpsf:0,Bsv72rj:0,B39dzdd:0,Btq9bd3:0,Bqfxd14:0,atup0s:"fo7xqb",Fffuxt:0,Bttcd12:0,Beitzug:0,Bqougee:0,B86i8pi:"f1kurthe",Bhijsxg:"fwq15dy",kktds4:"f1pb3wry",Bmau3bo:["ftjv2f4","f1flhb1f"],npektv:["f1flhb1f","ftjv2f4"]},disabled:{sj55zd:"f1s2aq7o",Jwef8y:"f9ql6rf",Bi91k9c:"fvgxktp",zqbkvg:"f185j3qj",h82x05:["f1dligi3","f1vydzie"],cqj998:"fjw1di3",j3hlsh:["f1vydzie","f1dligi3"],ecr2s2:"fgj9um3",lj723h:"f19wldhg",Btxx2vb:"f1ss0kt2",sltcwy:["f1t6oli3","fjy9ci8"],dnwvvm:"fresaxk",Blyvkvs:["fjy9ci8","f1t6oli3"],B7iucu3:"f1cyfu5x"},selected:{},checkIcon:{Bnnss6s:"fi64zpg",Be2twd7:"fod5ikn",Frg6f3:["f18b9hdq","fn6qj8t"],t21cq0:["f1xk557c","f1h9en5y"],Bcdw1i0:"fd7fpy0",Bo70h7d:"fvc9v3g"},selectedCheck:{Bcdw1i0:"f1022m68"},multiselectCheck:{Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f1l3cf7o",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fq9zq91",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bkfmm31:"f1w9h62z",Be2twd7:"f1ugzwwg",Bqenvij:"fd461yt",a9b677:"fjw5fx7",Bcdw1i0:"f1022m68"},selectedMultiselectCheck:{De3pzq:"ftywsgz",sj55zd:"fqpbvvt",g2u3we:"f3xi7mh",h3c5rm:["ftovhe4","f1wczvin"],B9xav0g:"f68vbr6",zhjwy3:["f1wczvin","ftovhe4"]},checkDisabled:{sj55zd:"f1s2aq7o",B7iucu3:"f1cyfu5x"},multiselectCheckDisabled:{g2u3we:"f1r1t4y1",h3c5rm:["fmj8ijw","figx54m"],B9xav0g:"f360ss8",zhjwy3:["figx54m","fmj8ijw"]}},{d:[".f122n59{align-items:center;}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".f1k6fduh{cursor:pointer;}",".f22iagw{display:flex;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".fm5eomj{padding:var(--spacingVerticalSNudge) var(--spacingHorizontalS);}",{p:-1}],".f10pi13n{position:relative;}",'.f11vrvdw[data-activedescendant-focusvisible]::after{content:"";}',".f17hxjb7[data-activedescendant-focusvisible]::after{position:absolute;}",".f1dha69c[data-activedescendant-focusvisible]::after{pointer-events:none;}",".f1lm7500[data-activedescendant-focusvisible]::after{z-index:1;}",[".fo7xqb[data-activedescendant-focusvisible]::after{border:2px solid var(--colorStrokeFocus2);}",{p:-2}],[".f1kurthe[data-activedescendant-focusvisible]::after{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fwq15dy[data-activedescendant-focusvisible]::after{top:-2px;}",".f1pb3wry[data-activedescendant-focusvisible]::after{bottom:-2px;}",".ftjv2f4[data-activedescendant-focusvisible]::after{left:-2px;}",".f1flhb1f[data-activedescendant-focusvisible]::after{right:-2px;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fi64zpg{flex-shrink:0;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f18b9hdq{margin-left:calc(var(--spacingHorizontalXXS) * -1);}",".fn6qj8t{margin-right:calc(var(--spacingHorizontalXXS) * -1);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".fd7fpy0{visibility:hidden;}",".fvc9v3g svg{display:block;}",".f1022m68{visibility:visible;}",[".f1l3cf7o{border:var(--strokeWidthThin) solid var(--colorNeutralStrokeAccessible);}",{p:-2}],[".fq9zq91{border-radius:var(--borderRadiusSmall);}",{p:-1}],".f1ewtqcl{box-sizing:border-box;}",".f4d9j23{justify-content:center;}",".f1w9h62z{fill:currentColor;}",".f1ugzwwg{font-size:12px;}",".fd461yt{height:16px;}",".fjw5fx7{width:16px;}",".ftywsgz{background-color:var(--colorCompoundBrandBackground);}",".fqpbvvt{color:var(--colorNeutralForegroundInverted);}",".f3xi7mh{border-top-color:var(--colorCompoundBrandBackground);}",".ftovhe4{border-right-color:var(--colorCompoundBrandBackground);}",".f1wczvin{border-left-color:var(--colorCompoundBrandBackground);}",".f68vbr6{border-bottom-color:var(--colorCompoundBrandBackground);}",".f1r1t4y1{border-top-color:var(--colorNeutralForegroundDisabled);}",".fmj8ijw{border-right-color:var(--colorNeutralForegroundDisabled);}",".figx54m{border-left-color:var(--colorNeutralForegroundDisabled);}",".f360ss8{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".fo79ri9:hover .fui-Option__checkIcon{border-top-color:var(--colorNeutralForeground1Hover);}",".f1osiabc:hover .fui-Option__checkIcon{border-right-color:var(--colorNeutralForeground1Hover);}",".f1e8le25:hover .fui-Option__checkIcon{border-left-color:var(--colorNeutralForeground1Hover);}",".f1yusjty:hover .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForeground1Hover);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f185j3qj:hover .fui-Option__checkIcon{border-top-color:var(--colorNeutralForegroundDisabled);}",".f1dligi3:hover .fui-Option__checkIcon{border-right-color:var(--colorNeutralForegroundDisabled);}",".f1vydzie:hover .fui-Option__checkIcon{border-left-color:var(--colorNeutralForegroundDisabled);}",".fjw1di3:hover .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".f1g4hkjv:active{color:var(--colorNeutralForeground1Pressed);}",".f1lnr2zp:active .fui-Option__checkIcon{border-top-color:var(--colorNeutralForeground1Hover);}",".f1ogfk9z:active .fui-Option__checkIcon{border-right-color:var(--colorNeutralForeground1Hover);}",".f1g7j8ec:active .fui-Option__checkIcon{border-left-color:var(--colorNeutralForeground1Hover);}",".fiuf46r:active .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForeground1Hover);}",".fgj9um3:active{background-color:var(--colorTransparentBackground);}",".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}",".f1ss0kt2:active .fui-Option__checkIcon{border-top-color:var(--colorNeutralForegroundDisabled);}",".f1t6oli3:active .fui-Option__checkIcon{border-right-color:var(--colorNeutralForegroundDisabled);}",".fjy9ci8:active .fui-Option__checkIcon{border-left-color:var(--colorNeutralForegroundDisabled);}",".fresaxk:active .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),tS=t=>{"use no memo";const{disabled:o,multiselect:n,selected:s}=t,l=eS();return t.root.className=oe(fs.root,l.root,l.active,o&&l.disabled,s&&l.selected,t.root.className),t.checkIcon&&(t.checkIcon.className=oe(fs.checkIcon,l.checkIcon,n&&l.multiselectCheck,s&&l.selectedCheck,s&&n&&l.selectedMultiselectCheck,o&&l.checkDisabled,o&&n&&l.multiselectCheckDisabled,t.checkIcon.className)),t},Ah={activeOption:void 0,focusVisible:!1,setActiveOption:()=>null},rS=(t,o)=>{"use no memo";const{multiselect:n,disableAutoFocus:s=!1}=t,l=jh(),{listboxRef:c,activeParentRef:u,controller:d}=Gp({matchOption:J=>J.classList.contains(fs.root)}),p=Ip(Ko),m=Dt(J=>J.onActiveDescendantChange),g=Dt(J=>J.getOptionById),v=Dt(J=>J.getOptionsMatchingValue),w=p?g:l.getOptionById,b=p?v:l.getOptionsMatchingValue,x=_.useMemo(()=>{let J=null;const ge=ve=>{m?.(ve)};return ve=>{if(!ve){J?.removeEventListener("activedescendantchange",ge);return}J=ve,J.addEventListener("activedescendantchange",ge)}},[m]),[y,S]=_.useState(!1);ap(S);const N=Hp(),E=Sk(),B=E?N.controller:d,{clearSelection:T,selectedOptions:R,selectOption:O}=Oh(t),L=J=>{const ge=Ga(J,{open:!0}),ve=B.active(),ue=ve?w(ve):null;switch(ge){case"First":case"Last":case"Next":case"Previous":case"PageDown":case"PageUp":case"CloseSelect":case"Select":J.preventDefault();break}switch(ge){case"Next":ue?B.next():B.first();break;case"Previous":ue?B.prev():B.first();break;case"PageUp":case"First":B.first();break;case"PageDown":case"Last":B.last();break;case"Select":case"CloseSelect":ue&&O(J,ue);break}},W=Dt(J=>J.selectedOptions),H=Dt(J=>J.selectOption),Y=p?{selectedOptions:W,selectOption:H,...Ah}:{selectedOptions:R,selectOption:O,...Ah};_.useEffect(()=>{if(!E){if(B.hideFocusVisibleAttributes(),!s)if(!n&&Y.selectedOptions.length>0){const J=b(ge=>ge===Y.selectedOptions[0]).pop();J?.id&&B.focus(J.id)}else B.first();return()=>{B.blur()}}},[]);const ce=_.useCallback(()=>{E||(B.showFocusVisibleAttributes(),y&&B.scrollActiveIntoView())},[B,E,y]),ee=_.useCallback(()=>{E||B.hideFocusVisibleAttributes()},[B,E]),M={components:{root:"div"},root:Fe(St("div",{ref:pt(o,u,c,x),role:n?"menu":"listbox",tabIndex:0,...t}),{elementType:"div"}),standalone:!p,multiselect:n,clearSelection:T,activeDescendantController:B,onActiveDescendantChange:m,...l,...Y};return M.root.onKeyDown=xe(Ct(M.root.onKeyDown,L)),M.root.onFocus=xe(Ct(M.root.onFocus,ce)),M.root.onBlur=xe(Ct(M.root.onBlur,ee)),M},oS=(t,o)=>fe(qp,{value:o.activeDescendant,children:fe(Ko.Provider,{value:o.listbox,children:fe(t.root,{})})}),nS={root:"fui-Listbox"},iS=de({root:{De3pzq:"fxugw4r",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Bf4jedk:"f3hsy1e",Bmxbyg5:"f5zp4f",Bw0xxkn:0,oeaueh:0,Bpd4iqm:0,Befb4lg:"f1iepc6i",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1t35pdg",Belr9w4:"fiut8dr"}},{d:[".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f3hsy1e{min-width:160px;}",".f5zp4f{overflow-y:auto;}",[".f1iepc6i{outline:1px solid var(--colorTransparentStroke);}",{p:-1}],[".f1t35pdg{padding:var(--spacingHorizontalXS);}",{p:-1}],".fiut8dr{row-gap:var(--spacingHorizontalXXS);}"]}),sS=t=>{"use no memo";const o=iS();return t.root.className=oe(nS.root,o.root,t.root.className),t},Ka=_.forwardRef((t,o)=>{const n=rS(t,o),s=Z_(n);return sS(n),nt("useListboxStyles_unstable")(n),oS(n,s)});Ka.displayName="Listbox";function lS(t,o){if(t!==void 0)return t;let n="",s=!1;return _.Children.forEach(o,l=>{typeof l=="string"?n+=l:s=!0}),s&&console.warn("Provide a `text` prop to Option components when they contain non-string children."),n}const aS=(t,o)=>{const{children:n,disabled:s,text:l,value:c}=t,u=_.useRef(null),d=lS(l,n),p=c??d,m=Br("fluent-option",t.id),g=_.useMemo(()=>({id:m,disabled:s,text:d,value:p}),[m,s,d,p]),{controller:v}=Hp(),w=Dt(T=>T.multiselect),b=Dt(T=>T.registerOption),x=Dt(T=>{const R=T.selectedOptions;return p!==void 0&&R.find(O=>O===p)!==void 0}),y=Dt(T=>T.selectOption),S=Dt(T=>T.onOptionClick);let N=_.createElement(Fk,null);w&&(N=x?_.createElement(Xp,null):"");const E=T=>{var R;if(s){T.preventDefault();return}v.focus(m),y(T,g),S(T),(R=t.onClick)===null||R===void 0||R.call(t,T)};_.useEffect(()=>{if(m&&u.current)return b(g,u.current)},[m,g,b]);const B=w?{role:"menuitemcheckbox","aria-checked":x}:{role:"option","aria-selected":x};return{components:{root:"div",checkIcon:"span"},root:Fe(St("div",{ref:pt(o,u),"aria-disabled":s?"true":void 0,id:m,...B,...t,onClick:E}),{elementType:"div"}),checkIcon:Ke(t.checkIcon,{renderByDefault:!0,defaultProps:{"aria-hidden":"true",children:N},elementType:"span"}),disabled:s,multiselect:w,selected:x,focusVisible:!1,active:!1}},cS=t=>yt(t.root,{children:[t.checkIcon&&fe(t.checkIcon,{}),t.root.children]}),ps=_.forwardRef((t,o)=>{const n=aS(t,o);return tS(n),nt("useOptionStyles_unstable")(n),cS(n)});ps.displayName="Option";const uS=t=>{"use no memo";const{appearance:o="outline",disableAutoFocus:n,children:s,clearable:l=!1,editable:c=!1,inlinePopup:u=!1,mountNode:d=void 0,multiselect:p,onOpenChange:m,size:g="medium",activeDescendantController:v,freeform:w=!1,disabled:b=!1,onActiveOptionChange:x=null}=t,y=jh(),{getOptionsMatchingValue:S}=y,{getOptionById:N}=y,E=_.useCallback(()=>{const A=v.active();return A?N(A):void 0},[v,N]),B=E(),T=_.useCallback(A=>{let le;if(typeof A=="function"){const be=E();le=A(be)}le?v.focus(le.id):v.blur()},[v,E]),[R,O]=_.useState(!1),[L,W]=_.useState(!1),H=_.useRef(!1),Y=Fb(),[ce,ee]=Hr({state:t.value,initialState:void 0}),{selectedOptions:M,selectOption:J,clearSelection:ge}=Oh(t),ve=_.useCallback((A,le)=>{Va.unstable_batchedUpdates(()=>{ee(void 0),J(A,le)})},[ee,J]),ue=_.useMemo(()=>{if(ce!==void 0)return ce;if(Y&&t.defaultValue!==void 0)return t.defaultValue;const A=S(le=>M.includes(le)).map(le=>le.text);return p?c?"":A.join(", "):A[0]},[ce,c,S,p,M]),[U,re]=Hr({state:t.open,defaultState:t.defaultOpen,initialState:!1}),Z=_.useCallback((A,le)=>{b||(m?.(A,{open:le}),Va.unstable_batchedUpdates(()=>{!le&&!w&&ee(void 0),re(le)}))},[m,re,ee,w,b]);_.useEffect(()=>{if(U){if(!p&&M.length>0){const A=S(le=>le===M[0]).pop();A?.id&&v.focus(A.id)}}else v.blur()},[U,v]),_.useEffect(()=>{U&&!n&&!v.active()&&v.first()},[U,s,n,v,N]);const F=xe(A=>{const le=A.detail.previousId?y.getOptionById(A.detail.previousId):null,be=y.getOptionById(A.detail.id);x?.(A,{event:A,type:"change",previousOption:le,nextOption:be})});return{...y,freeform:w,disabled:b,selectOption:ve,clearSelection:ge,selectedOptions:M,activeOption:B,appearance:o,clearable:l,focusVisible:R,ignoreNextBlur:H,inlinePopup:u,mountNode:d,open:U,hasFocus:L,setActiveOption:T,setFocusVisible:O,setHasFocus:W,setOpen:Z,setValue:ee,size:g,value:ue,multiselect:p,onOptionClick:xe(A=>{p||Z(A,!1)}),onActiveDescendantChange:F}};function dS(t){const{positioning:o}=t,s={position:"below",align:"start",offset:{crossAxis:0,mainAxis:2},fallbackPositions:["above","after","after-top","before","before-top"],matchTargetSize:"width",autoSize:!0,...Ch(o)},{targetRef:l,containerRef:c}=h_(s);return[c,l]}function fS(t,o,n){const{state:{multiselect:s},triggerRef:l,defaultProps:c}=n,u=Br("fluent-listbox",cf(t)?t.id:void 0),d=Ke(t,{renderByDefault:!0,elementType:Ka,defaultProps:{id:u,multiselect:s,tabIndex:void 0,...c}}),p=us({id:u},{supportsLabelFor:!0});d&&!d["aria-label"]&&!d["aria-labelledby"]&&p["aria-labelledby"]&&(d["aria-labelledby"]=p["aria-labelledby"]);const m=xe(Ct(w=>{w.preventDefault()},d?.onMouseDown)),g=xe(Ct(w=>{var b;w.preventDefault(),(b=l.current)===null||b===void 0||b.focus()},d?.onClick)),v=pt(d?.ref,o);return d&&(d.ref=v,d.onMouseDown=m,d.onClick=g),d}function pS(t,o,n){const{state:{open:s,setOpen:l,setHasFocus:c},defaultProps:u,elementType:d,activeDescendantController:p}=n,m=Fe(t,{defaultProps:{type:"text","aria-expanded":s,role:"combobox",...typeof u=="object"&&u},elementType:d}),g=_.useRef(null);return m.ref=pt(g,m.ref,o),m.onBlur=Ct(v=>{l(v,!1),c(!1)},m.onBlur),m.onFocus=Ct(v=>{v.target===v.currentTarget&&c(!0)},m.onFocus),m.onClick=Ct(v=>{l(v,!s)},m.onClick),m.onKeyDown=Ct(hS({activeDescendantController:p,...n.state}),m.onKeyDown),m}function hS(t){const{activeDescendantController:o,getOptionById:n,setOpen:s,selectOption:l,multiselect:c,open:u}=t,d=_.useCallback(()=>{const y=o.active();return y?n(y):void 0},[o,n]),p=()=>{o.first()},m=()=>{o.last()},g=y=>{y?o.next():o.first()},v=y=>{y?o.prev():o.first()},w=()=>{for(let y=0;y<10;y++)o.prev()},b=()=>{for(let y=0;y<10;y++)o.next()},x=vw();return xe(y=>{const S=Ga(y,{open:u,multiselect:c}),N=d();switch(S){case"First":case"Last":case"Next":case"Previous":case"PageDown":case"PageUp":case"Open":case"Close":case"CloseSelect":case"Select":y.preventDefault();break}switch(x(!0),S){case"First":p();break;case"Last":m();break;case"Next":g(N);break;case"Previous":v(N);break;case"PageDown":b();break;case"PageUp":w();break;case"Open":s(y,!0);break;case"Close":y.stopPropagation(),s(y,!1);break;case"CloseSelect":!c&&!N?.disabled&&s(y,!1);case"Select":N&&l(y,N);break;case"Tab":!c&&N&&l(y,N);break}})}function mS(t,o,n){"use no memo";const{state:{open:s,setOpen:l,getOptionById:c},defaultProps:u,activeDescendantController:d}=n,p=_.useRef(""),[m,g]=xf(),v=(y,S={startFromNext:!1})=>{const{startFromNext:N}=S,E=d.active(),B=d.find(T=>{const R=c(T);return!!R&&y(R.text)},{startFrom:N?d.next({passive:!0}):E});return B||d.find(T=>{const R=c(T);return!!R&&y(R.text)})},w=()=>{v(y=>y.toLocaleLowerCase().indexOf(p.current)===0,{startFromNext:p.current.length===1})||gS(p.current)&&v(y=>y.toLocaleLowerCase().indexOf(p.current[0])===0,{startFromNext:!0})||d.blur()},b=y=>{g(),Ga(y)==="Type"&&(p.current+=y.key.toLowerCase(),m(()=>{p.current=""},500),s&&w(),!s&&l(y,!0))},x=pS(t,o,{state:n.state,defaultProps:u,elementType:"button",activeDescendantController:d});return x.onKeyDown=Ct(b,x.onKeyDown),x}function gS(t){for(let o=1;o<t.length;o++)if(t[o]!==t[o-1])return!1;return!0}const vS=(t,o)=>{"use no memo";var n;t=us(t,{supportsLabelFor:!0,supportsSize:!0});const{listboxRef:s,activeParentRef:l,controller:c}=Gp({matchOption:ee=>ee.classList.contains(fs.root)}),u=uS({...t,activeDescendantController:c,freeform:!1}),{clearable:d,clearSelection:p,disabled:m,hasFocus:g,multiselect:v,open:w,selectedOptions:b,setOpen:x}=u,{primary:y,root:S}=Vi({props:t,primarySlotTagName:"button",excludedPropNames:["children"]}),[N,E]=dS(t),B=_.useRef(null),T=fS(t.listbox,pt(N,s),{state:u,triggerRef:B,defaultProps:{children:t.children}}),{targetDocument:R}=at();Db({element:R,callback:ee=>x(ee,!1),refs:[B,N,E],disabled:!w});var O;const L=mS((O=t.button)!==null&&O!==void 0?O:{},pt(B,l,o),{state:u,defaultProps:{type:"button",tabIndex:y.disabled?void 0:0,children:u.value||t.placeholder,"aria-controls":w?T?.id:void 0,...y},activeDescendantController:c}),W=Fe(t.root,{defaultProps:{"aria-owns":!t.inlinePopup&&w?T?.id:void 0,children:t.children,...S},elementType:"div"});W.ref=pt(W.ref,E);const H=b.length>0&&!m&&d&&!v,Y={components:{root:"div",button:"button",clearButton:"button",expandIcon:"span",listbox:Ka},root:W,button:L,listbox:w||g?T:void 0,clearButton:Ke(t.clearButton,{defaultProps:{"aria-label":"Clear selection",children:_.createElement(Kp,null),tabIndex:H?0:void 0,type:"button"},elementType:"button",renderByDefault:!0}),expandIcon:Ke(t.expandIcon,{renderByDefault:!0,defaultProps:{children:_.createElement(Ik,null)},elementType:"span"}),placeholderVisible:!u.value&&!!t.placeholder,showClearButton:H,activeDescendantController:c,...u},ce=xe(Ct((n=Y.clearButton)===null||n===void 0?void 0:n.onClick,ee=>{var M;p(ee),(M=B.current)===null||M===void 0||M.focus()}));return Y.clearButton&&(Y.clearButton.onClick=ce),v&&(Y.clearButton=void 0),Y},bS=(t,o)=>fe(t.root,{children:fe(qp,{value:o.activeDescendant,children:fe(Ko.Provider,{value:o.listbox,children:yt(Dh.Provider,{value:o.combobox,children:[yt(t.button,{children:[t.button.children,t.expandIcon&&fe(t.expandIcon,{})]}),t.clearButton&&fe(t.clearButton,{}),t.listbox&&(t.inlinePopup?fe(t.listbox,{}):fe(Eh,{mountNode:t.mountNode,children:fe(t.listbox,{})}))]})})})}),Dn={root:"fui-Dropdown",button:"fui-Dropdown__button",clearButton:"fui-Dropdown__clearButton",expandIcon:"fui-Dropdown__expandIcon",listbox:"fui-Dropdown__listbox"},yS=de({root:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",B7ck84d:"f1ewtqcl",mc9l5x:"ftuwxu6",Bf4jedk:"f1exfvgq",qhf8xq:"f10pi13n",ha4doy:"fmrv4ls",Bbr2w1p:"f14a1fxs",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7",li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"ffyw7fx",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],B1q35kw:0,Bw17bha:0,Bcgy8vk:0,Bjuhk93:"f1mnjydx",Gjdm7m:"f13evtba",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",wi16st:"fsrmcvb",ywj3b2:"f1t3k7v9",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",Bnupc0a:"fx04xgm",bing71:"f1c7in40",Bercvud:"f1ibeo51",Br277j9:"f18qfb8s",Btis473:"f1m082s7"},listbox:{B7ck84d:"f1ewtqcl",E5pizo:"f1hg901r",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bxyxcbc:"fmmk62d"},listboxCollapsed:{mc9l5x:"fjseox"},inlineListbox:{Bj3rh1h:"f19g0ac"},button:{Bt984gj:"f122n59",De3pzq:"f1c21dwh",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f3bhgqh",B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",i8kkvl:"f14mj54c",Bceei9c:"f1k6fduh",mc9l5x:"f13qh94s",Bahqtrf:"fk6fouc",Budl1dq:"f12nh0o2",Brf1p80:"f1869bpl",fsow6f:["f1o700av","fes3tcz"],a9b677:"fly5x3f",Brovlpu:"ftqa4ok"},placeholder:{sj55zd:"fxc4j92"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["fye6m5k","f3cq2dl"]},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["f14ev680","f58uxzw"]},large:{i8kkvl:"f1rjii52",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["f139mn7i","f1v3q0m"]},outline:{De3pzq:"fxugw4r",Bgfg5da:0,B9xav0g:"f1c1zstj",oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fhz96rm"},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"f1z0osm6",B50zh58:["f4ruux4","f1assf6x"],Bvq3b66:"f1b473iu",Brahy3i:["f381qr8","ft4skwv"],zoxjo1:"f1qzcrsd",an54nd:["ft4skwv","f381qr8"]},underline:{De3pzq:"f1c21dwh",B9xav0g:0,oivjwe:0,Bn0qgzm:0,Bgfg5da:"f9ez7ne",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fokr779"},"filled-lighter":{De3pzq:"fxugw4r",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fs2rfia"},"filled-darker":{De3pzq:"f16xq7d1",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fs2rfia"},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},invalidUnderline:{hhx65j:"f1fgmyf4"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"]},disabledText:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr"},hidden:{mc9l5x:"fjseox"}},{d:[[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f1ewtqcl{box-sizing:border-box;}",".ftuwxu6{display:inline-flex;}",".f1exfvgq{min-width:250px;}",".f10pi13n{position:relative;}",".fmrv4ls{vertical-align:middle;}",".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".ffyw7fx::after{height:max(var(--strokeWidthThick), var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",[".f1mnjydx::after{border-bottom:var(--strokeWidthThick) solid var(--colorCompoundBrandStroke);}",{p:-1}],".f13evtba::after{clip-path:inset(calc(100% - 2px) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",".f1hg901r{box-shadow:var(--shadow16);}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fmmk62d{max-height:80vh;}",".fjseox{display:none;}",".f19g0ac{z-index:1;}",".f122n59{align-items:center;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".f3bhgqh{border:none;}",{p:-2}],".f19n0e5{color:var(--colorNeutralForeground1);}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".f1k6fduh{cursor:pointer;}",".f13qh94s{display:grid;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f12nh0o2{grid-template-columns:[content] 1fr [icon] auto [end];}",".f1869bpl{justify-content:space-between;}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fly5x3f{width:100%;}",".fxc4j92{color:var(--colorNeutralForeground4);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",[".fye6m5k{padding:3px var(--spacingHorizontalSNudge) 3px calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",{p:-1}],[".f3cq2dl{padding:3px calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS)) 3px var(--spacingHorizontalSNudge);}",{p:-1}],".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".f14ev680{padding:5px var(--spacingHorizontalMNudge) 5px calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",{p:-1}],[".f58uxzw{padding:5px calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS)) 5px var(--spacingHorizontalMNudge);}",{p:-1}],".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",[".f139mn7i{padding:7px var(--spacingHorizontalM) 7px calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",{p:-1}],[".f1v3q0m{padding:7px calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge)) 7px var(--spacingHorizontalM);}",{p:-1}],".fxugw4r{background-color:var(--colorNeutralBackground1);}",[".fhz96rm{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);}",{p:-2}],".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",[".f9ez7ne{border-bottom:var(--strokeWidthThin) solid var(--colorNeutralStrokeAccessible);}",{p:-1}],[".fokr779{border-radius:0;}",{p:-1}],[".fs2rfia{border:var(--strokeWidthThin) solid transparent;}",{p:-2}],".f16xq7d1{background-color:var(--colorNeutralBackground3);}",[".fs2rfia{border:var(--strokeWidthThin) solid transparent;}",{p:-2}],".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],w:[".f14a1fxs:focus-within{outline-width:2px;}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".f1b473iu:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".f381qr8:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".ft4skwv:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1qzcrsd:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.fsrmcvb::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1t3k7v9::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.fx04xgm:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1c7in40:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],t:["@supports selector(:has(*)){.f18qfb8s:has(.fui-Dropdown__clearButton:focus)::after{border-bottom-color:initial;}}","@supports selector(:has(*)){.f1m082s7:has(.fui-Dropdown__clearButton:focus)::after{transform:scaleX(0);}}"],f:[".ftqa4ok:focus{outline-style:none;}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}"],a:[".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1z0osm6:active{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"]}),wS=de({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",mc9l5x:"ftgm304",Be2twd7:"f1pp30po",Br312pm:"f12w6cgp",Bw0ie65:"f8bv1bt",Bo70h7d:"fvc9v3g"},small:{Be2twd7:"f4ybsrx",Frg6f3:["f1h9en5y","f1xk557c"]},medium:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"]},large:{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"]},disabled:{sj55zd:"f1s2aq7o"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".ftgm304{display:block;}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f12w6cgp{grid-column-start:icon;}",".f8bv1bt{grid-column-end:end;}",".fvc9v3g svg{display:block;}",".f4ybsrx{font-size:16px;}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"]}),kS=ft("rticfuj","r1vp6jef",{r:[".rticfuj{align-self:center;background-color:var(--colorTransparentBackground);border:none;cursor:pointer;height:fit-content;margin:0;margin-right:var(--spacingHorizontalMNudge);padding:0;position:relative;}",".rticfuj:focus{outline-style:none;}",".rticfuj:focus-visible{outline-style:none;}",".rticfuj[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rticfuj[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r1vp6jef{align-self:center;background-color:var(--colorTransparentBackground);border:none;cursor:pointer;height:fit-content;margin:0;margin-left:var(--spacingHorizontalMNudge);padding:0;position:relative;}",".r1vp6jef:focus{outline-style:none;}",".r1vp6jef:focus-visible{outline-style:none;}",".r1vp6jef[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r1vp6jef[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.rticfuj[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.r1vp6jef[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),xS=t=>{"use no memo";const{appearance:o,open:n,placeholderVisible:s,showClearButton:l,size:c}=t,u=`${t.button["aria-invalid"]}`=="true",d=t.button.disabled,p=yS(),m=wS(),g=kS();return t.root.className=oe(Dn.root,p.root,p[o],!d&&o==="outline"&&p.outlineInteractive,u&&o!=="underline"&&p.invalid,u&&o==="underline"&&p.invalidUnderline,d&&p.disabled,t.root.className),t.button.className=oe(Dn.button,p.button,p[c],s&&p.placeholder,d&&p.disabledText,t.button.className),t.listbox&&(t.listbox.className=oe(Dn.listbox,p.listbox,t.inlinePopup&&p.inlineListbox,!n&&p.listboxCollapsed,t.listbox.className)),t.expandIcon&&(t.expandIcon.className=oe(Dn.expandIcon,m.icon,m[c],d&&m.disabled,l&&p.hidden,t.expandIcon.className)),t.clearButton&&(t.clearButton.className=oe(Dn.clearButton,g,m.icon,m[c],d&&m.disabled,!l&&p.hidden,t.clearButton.className)),t},Xa=_.forwardRef((t,o)=>{const n=vS(t,o),s=J_(n);return xS(n),nt("useDropdownStyles_unstable")(n),bS(n,s)});Xa.displayName="Dropdown";const _S=(t,o)=>{t=us(t,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const n=bf();var s;const{size:l="medium",appearance:c=(s=n.inputDefaultAppearance)!==null&&s!==void 0?s:"outline",onChange:u}=t,[d,p]=Hr({state:t.value,defaultState:t.defaultValue,initialState:""}),m=Vi({props:t,primarySlotTagName:"input",excludedPropNames:["size","onChange","value","defaultValue"]}),g={size:l,appearance:c,components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:Fe(t.input,{defaultProps:{type:"text",ref:o,...m.primary},elementType:"input"}),contentAfter:Ke(t.contentAfter,{elementType:"span"}),contentBefore:Ke(t.contentBefore,{elementType:"span"}),root:Fe(t.root,{defaultProps:m.root,elementType:"span"})};return g.input.value=d,g.input.onChange=xe(v=>{const w=v.target.value;u?.(v,{value:w}),p(w)}),g},hs={root:"fui-Input",input:"fui-Input__input",contentBefore:"fui-Input__contentBefore",contentAfter:"fui-Input__contentAfter"},SS=ft("r1oeeo9n","r9sxh5",{r:[".r1oeeo9n{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;vertical-align:middle;min-height:32px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r1oeeo9n::after{box-sizing:border-box;content:"";position:absolute;left:-1px;bottom:-1px;right:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r1oeeo9n:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1oeeo9n:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1oeeo9n:focus-within{outline:2px solid transparent;}",".r9sxh5{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;vertical-align:middle;min-height:32px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r9sxh5::after{box-sizing:border-box;content:"";position:absolute;right:-1px;bottom:-1px;left:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r9sxh5:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r9sxh5:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r9sxh5:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1oeeo9n::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1oeeo9n:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r9sxh5::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r9sxh5:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),CS=de({small:{sshi5w:"f1pha7fy",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{},large:{sshi5w:"f1w5jphr",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",i8kkvl:0,Belr9w4:0,rmohyg:"f1eyhf9v"},outline:{},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],Drbcw7:"f8vnjqi",udz0bu:["fz1etlk","f1hc16gm"],Be8ivqh:"f1klwx88",ofdepl:["f1hc16gm","fz1etlk"]},underline:{De3pzq:"f1c21dwh",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fokr779",icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],wvpqe5:["f1deefiw","f1n71otn"],Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"]},underlineInteractive:{oetu4i:"f1l4zc64",Be8ivqh:"f1klwx88",d9w3h3:0,B3778ie:0,B4j8arr:0,Bl18szs:0,Blrzh8d:"f2ale1x"},filled:{g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},filledInteractive:{q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",E5pizo:"fyed02w"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"],Bsft5z2:"fhr9occ",Bduesf4:"f99w1ws"},smallWithContentBefore:{uwmqm3:["fk8j09s","fdw0yi8"]},smallWithContentAfter:{z189sj:["fdw0yi8","fk8j09s"]},mediumWithContentBefore:{uwmqm3:["f1ng84yb","f11gcy0p"]},mediumWithContentAfter:{z189sj:["f11gcy0p","f1ng84yb"]},largeWithContentBefore:{uwmqm3:["f1uw59to","fw5db7e"]},largeWithContentAfter:{z189sj:["fw5db7e","f1uw59to"]}},{d:[".f1pha7fy{min-height:24px;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1w5jphr{min-height:40px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",[".f1eyhf9v{gap:var(--spacingHorizontalSNudge);}",{p:-1}],".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".fokr779{border-radius:0;}",{p:-1}],".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",[".f2ale1x::after{border-radius:0;}",{p:-1}],".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".fyed02w{box-shadow:var(--shadow2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fhr9occ::after{content:unset;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],a:[".f8vnjqi:active,.f8vnjqi:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".fz1etlk:active,.fz1etlk:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1hc16gm:active,.f1hc16gm:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1klwx88:active,.f1klwx88:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],w:[".f99w1ws:focus-within{outline-style:none;}"]}),BS=ft("r12stul0",null,[".r12stul0{align-self:stretch;box-sizing:border-box;flex-grow:1;min-width:0;border-style:none;padding:0 var(--spacingHorizontalM);color:var(--colorNeutralForeground1);background-color:transparent;outline-style:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;}",".r12stul0::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r12stul0::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r12stul0::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),NS=de({small:{uwmqm3:["f1f5gg8d","f1vdfbxk"],z189sj:["f1vdfbxk","f1f5gg8d"]},medium:{},large:{uwmqm3:["fnphzt9","flt1dlf"],z189sj:["flt1dlf","fnphzt9"]},smallWithContentBefore:{uwmqm3:["fgiv446","ffczdla"]},smallWithContentAfter:{z189sj:["ffczdla","fgiv446"]},mediumWithContentBefore:{uwmqm3:["fgiv446","ffczdla"]},mediumWithContentAfter:{z189sj:["ffczdla","fgiv446"]},largeWithContentBefore:{uwmqm3:["fk8j09s","fdw0yi8"]},largeWithContentAfter:{z189sj:["fdw0yi8","fk8j09s"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"]}),TS=ft("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),ES=de({disabled:{sj55zd:"f1s2aq7o"},small:{Duoase:"f3qv9w"},medium:{},large:{Duoase:"f16u2scb"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3qv9w>svg{font-size:16px;}",".f16u2scb>svg{font-size:24px;}"]}),zS=t=>{"use no memo";const{size:o,appearance:n}=t,s=t.input.disabled,l=`${t.input["aria-invalid"]}`=="true",c=n.startsWith("filled"),u=CS(),d=NS(),p=ES();t.root.className=oe(hs.root,SS(),u[o],t.contentBefore&&u[`${o}WithContentBefore`],t.contentAfter&&u[`${o}WithContentAfter`],u[n],!s&&n==="outline"&&u.outlineInteractive,!s&&n==="underline"&&u.underlineInteractive,!s&&c&&u.filledInteractive,c&&u.filled,!s&&l&&u.invalid,s&&u.disabled,t.root.className),t.input.className=oe(hs.input,BS(),d[o],t.contentBefore&&d[`${o}WithContentBefore`],t.contentAfter&&d[`${o}WithContentAfter`],s&&d.disabled,t.input.className);const m=[TS(),s&&p.disabled,p[o]];return t.contentBefore&&(t.contentBefore.className=oe(hs.contentBefore,...m,t.contentBefore.className)),t.contentAfter&&(t.contentAfter.className=oe(hs.contentAfter,...m,t.contentAfter.className)),t},Lh=_.createContext(void 0),PS={};Lh.Provider;const RS=()=>_.useContext(Lh)||PS,FS=t=>yt(t.root,{children:[fe(t.input,{}),fe(t.indicator,{}),t.label&&fe(t.label,{})]}),IS=(t,o)=>{const n=RS(),{name:s=n.name,checked:l=n.value!==void 0?n.value===t.value:void 0,defaultChecked:c=n.defaultValue!==void 0?n.defaultValue===t.value:void 0,labelPosition:u=n.layout==="horizontal-stacked"?"below":"after",disabled:d=n.disabled,required:p=n.required,"aria-describedby":m=n["aria-describedby"],onChange:g}=t,v=Vi({props:t,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),w=Fe(t.root,{defaultProps:{ref:Pn(),...v.root},elementType:"span"}),b=Fe(t.input,{defaultProps:{ref:o,type:"radio",id:Br("radio-",v.primary.id),name:s,checked:l,defaultChecked:c,disabled:d,required:p,"aria-describedby":m,...v.primary},elementType:"input"});b.onChange=Ct(b.onChange,S=>g?.(S,{value:S.currentTarget.value}));const x=Ke(t.label,{defaultProps:{htmlFor:b.id,disabled:b.disabled},elementType:yo}),y=Fe(t.indicator,{defaultProps:{"aria-hidden":!0},elementType:"div"});return{labelPosition:u,components:{root:"span",input:"input",label:yo,indicator:"div"},root:w,input:b,label:x,indicator:y}},ms={root:"fui-Radio",indicator:"fui-Radio__indicator",input:"fui-Radio__input",label:"fui-Radio__label"},DS=ft("r1siqwd8","rmnplyc",{r:[".r1siqwd8{display:inline-flex;position:relative;}",".r1siqwd8:focus{outline-style:none;}",".r1siqwd8:focus-visible{outline-style:none;}",".r1siqwd8[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1siqwd8[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rmnplyc{display:inline-flex;position:relative;}",".rmnplyc:focus{outline-style:none;}",".rmnplyc:focus-visible{outline-style:none;}",".rmnplyc[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rmnplyc[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1siqwd8[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rmnplyc[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),jS=de({vertical:{Beiy3e4:"f1vx9l62",Bt984gj:"f122n59"}},{d:[".f1vx9l62{flex-direction:column;}",".f122n59{align-items:center;}"]}),OS=ft("rg1upok","rzwdzb4",{r:[".rg1upok{position:absolute;left:0;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));height:100%;box-sizing:border-box;margin:0;opacity:0;}",".rg1upok:enabled{cursor:pointer;}",".rg1upok:enabled~.fui-Radio__label{cursor:pointer;}",".rg1upok:enabled:not(:checked)~.fui-Radio__label{color:var(--colorNeutralForeground3);}",".rg1upok:enabled:not(:checked)~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessible);}",".rg1upok:enabled:not(:checked):hover~.fui-Radio__label{color:var(--colorNeutralForeground2);}",".rg1upok:enabled:not(:checked):hover~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessibleHover);}",".rg1upok:enabled:not(:checked):hover:active~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rg1upok:enabled:not(:checked):hover:active~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessiblePressed);}",".rg1upok:enabled:checked~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rg1upok:enabled:checked~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStroke);color:var(--colorCompoundBrandForeground1);}",".rg1upok:enabled:checked:hover~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokeHover);color:var(--colorCompoundBrandForeground1Hover);}",".rg1upok:enabled:checked:hover:active~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokePressed);color:var(--colorCompoundBrandForeground1Pressed);}",".rg1upok:disabled~.fui-Radio__label{color:var(--colorNeutralForegroundDisabled);cursor:default;}",".rg1upok:disabled~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeDisabled);color:var(--colorNeutralForegroundDisabled);}",".rzwdzb4{position:absolute;right:0;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));height:100%;box-sizing:border-box;margin:0;opacity:0;}",".rzwdzb4:enabled{cursor:pointer;}",".rzwdzb4:enabled~.fui-Radio__label{cursor:pointer;}",".rzwdzb4:enabled:not(:checked)~.fui-Radio__label{color:var(--colorNeutralForeground3);}",".rzwdzb4:enabled:not(:checked)~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessible);}",".rzwdzb4:enabled:not(:checked):hover~.fui-Radio__label{color:var(--colorNeutralForeground2);}",".rzwdzb4:enabled:not(:checked):hover~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessibleHover);}",".rzwdzb4:enabled:not(:checked):hover:active~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rzwdzb4:enabled:not(:checked):hover:active~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessiblePressed);}",".rzwdzb4:enabled:checked~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rzwdzb4:enabled:checked~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStroke);color:var(--colorCompoundBrandForeground1);}",".rzwdzb4:enabled:checked:hover~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokeHover);color:var(--colorCompoundBrandForeground1Hover);}",".rzwdzb4:enabled:checked:hover:active~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokePressed);color:var(--colorCompoundBrandForeground1Pressed);}",".rzwdzb4:disabled~.fui-Radio__label{color:var(--colorNeutralForegroundDisabled);cursor:default;}",".rzwdzb4:disabled~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeDisabled);color:var(--colorNeutralForegroundDisabled);}"],s:["@media (forced-colors: active){.rg1upok:enabled:not(:checked)~.fui-Radio__indicator{border-color:ButtonBorder;}}","@media (forced-colors: active){.rg1upok:enabled:checked~.fui-Radio__indicator{border-color:Highlight;color:Highlight;}.rg1upok:enabled:checked~.fui-Radio__indicator::after{background-color:Highlight;}}","@media (forced-colors: active){.rg1upok:disabled~.fui-Radio__label{color:GrayText;}}","@media (forced-colors: active){.rg1upok:disabled~.fui-Radio__indicator{border-color:GrayText;color:GrayText;}.rg1upok:disabled~.fui-Radio__indicator::after{background-color:GrayText;}}","@media (forced-colors: active){.rzwdzb4:enabled:not(:checked)~.fui-Radio__indicator{border-color:ButtonBorder;}}","@media (forced-colors: active){.rzwdzb4:enabled:checked~.fui-Radio__indicator{border-color:Highlight;color:Highlight;}.rzwdzb4:enabled:checked~.fui-Radio__indicator::after{background-color:Highlight;}}","@media (forced-colors: active){.rzwdzb4:disabled~.fui-Radio__label{color:GrayText;}}","@media (forced-colors: active){.rzwdzb4:disabled~.fui-Radio__indicator{border-color:GrayText;color:GrayText;}.rzwdzb4:disabled~.fui-Radio__indicator::after{background-color:GrayText;}}"]}),AS=de({below:{a9b677:"fly5x3f",Bqenvij:"f1je6zif"},defaultIndicator:{Blbys7f:"f9ma1gx"},customIndicator:{Bj53wkj:"f12zxao0"}},{d:[".fly5x3f{width:100%;}",".f1je6zif{height:calc(16px + 2 * var(--spacingVerticalS));}",'.f9ma1gx:checked~.fui-Radio__indicator::after{content:"";}',".f12zxao0:not(:checked)~.fui-Radio__indicator>*{opacity:0;}"]}),LS=ft("rwtekvw",null,[".rwtekvw{position:relative;width:16px;height:16px;font-size:12px;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;border:var(--strokeWidthThin) solid;border-radius:var(--borderRadiusCircular);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;}",".rwtekvw::after{position:absolute;width:16px;height:16px;border-radius:var(--borderRadiusCircular);transform:scale(0.625);background-color:currentColor;}"]),MS=de({base:{qb2dma:"f7nlbp4",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1f5q0n8"},after:{uwmqm3:["fruq291","f7x41pl"],B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},below:{z8tnut:"f1ywm7hm",fsow6f:"f17mccla"}},{d:[".f7nlbp4{align-self:center;}",[".f1f5q0n8{padding:var(--spacingVerticalS) var(--spacingHorizontalS);}",{p:-1}],".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}",".fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f17mccla{text-align:center;}"]}),qS=t=>{"use no memo";const{labelPosition:o}=t,n=DS(),s=jS();t.root.className=oe(ms.root,n,o==="below"&&s.vertical,t.root.className);const l=OS(),c=AS();t.input.className=oe(ms.input,l,o==="below"&&c.below,t.indicator.children?c.customIndicator:c.defaultIndicator,t.input.className);const u=LS();t.indicator.className=oe(ms.indicator,u,t.indicator.className);const d=MS();return t.label&&(t.label.className=oe(ms.label,d.base,d[o],t.label.className)),t},Qa=_.forwardRef((t,o)=>{const n=IS(t,o);return qS(n),nt("useRadioStyles_unstable")(n),FS(n)});Qa.displayName="Radio";const Mh=_.createContext(void 0),HS={};Mh.Provider;const WS=()=>{var t;return(t=_.useContext(Mh))!==null&&t!==void 0?t:HS},$S=(t,o)=>{const{size:n}=WS(),{appearance:s="primary",labelPosition:l="after",size:c=n??"medium",delay:u=0}=t,d=Br("spinner"),{role:p="progressbar",...m}=t,g=Fe(St("div",{ref:o,role:p,...m},["size"]),{elementType:"div"}),[v,w]=_.useState(!1),[b,x]=xf();_.useEffect(()=>{if(!(u<=0))return b(()=>{w(!0)},u),()=>{x()}},[b,x,u]);const y=Ke(t.label,{defaultProps:{id:d},renderByDefault:!1,elementType:yo}),S=Ke(t.spinner,{renderByDefault:!0,elementType:"span"});return y&&g&&!g["aria-labelledby"]&&(g["aria-labelledby"]=y.id),{appearance:s,delay:u,labelPosition:l,size:c,shouldRenderSpinner:!u||v,components:{root:"div",spinner:"span",spinnerTail:"span",label:yo},root:g,spinner:S,spinnerTail:Fe(t.spinnerTail,{elementType:"span"}),label:y}},VS=t=>{const{labelPosition:o,shouldRenderSpinner:n}=t;return yt(t.root,{children:[t.label&&n&&(o==="above"||o==="before")&&fe(t.label,{}),t.spinner&&n&&fe(t.spinner,{children:t.spinnerTail&&fe(t.spinnerTail,{})}),t.label&&n&&(o==="below"||o==="after")&&fe(t.label,{})]})},gs={root:"fui-Spinner",spinner:"fui-Spinner__spinner",spinnerTail:"fui-Spinner__spinnerTail",label:"fui-Spinner__label"},US=ft("rpp59a7",null,[".rpp59a7{display:flex;align-items:center;justify-content:center;line-height:0;gap:8px;overflow:hidden;min-width:min-content;}"]),GS=de({vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f1vx9l62{flex-direction:column;}"]}),KS=ft("rvgcg50","r15nd2jo",{r:[".rvgcg50{position:relative;flex-shrink:0;-webkit-mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);background-color:var(--colorBrandStroke2Contrast);color:var(--colorBrandStroke1);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:rb7n1on;}","@keyframes rb7n1on{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}",".r15nd2jo{position:relative;flex-shrink:0;-webkit-mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);background-color:var(--colorBrandStroke2Contrast);color:var(--colorBrandStroke1);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:r1gx3jof;}","@keyframes r1gx3jof{0%{transform:rotate(0deg);}100%{transform:rotate(-360deg);}}"],s:["@media screen and (forced-colors: active){.rvgcg50{background-color:HighlightText;color:Highlight;forced-color-adjust:none;}}","@media screen and (prefers-reduced-motion: reduce){.rvgcg50{animation-duration:1.8s;}}","@media screen and (forced-colors: active){.r15nd2jo{background-color:HighlightText;color:Highlight;forced-color-adjust:none;}}","@media screen and (prefers-reduced-motion: reduce){.r15nd2jo{animation-duration:1.8s;}}"]}),XS=ft("rxov3xa","r1o544mv",{r:[".rxov3xa{position:absolute;display:block;width:100%;height:100%;-webkit-mask-image:conic-gradient(transparent 105deg, white 105deg);mask-image:conic-gradient(transparent 105deg, white 105deg);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:var(--curveEasyEase);animation-name:r15mim6k;}",'.rxov3xa::before,.rxov3xa::after{content:"";position:absolute;display:block;width:100%;height:100%;animation:inherit;background-image:conic-gradient(currentcolor 135deg, transparent 135deg);}',"@keyframes r15mim6k{0%{transform:rotate(-135deg);}50%{transform:rotate(0deg);}100%{transform:rotate(225deg);}}",".rxov3xa::before{animation-name:r18vhmn8;}","@keyframes r18vhmn8{0%{transform:rotate(0deg);}50%{transform:rotate(105deg);}100%{transform:rotate(0deg);}}",".rxov3xa::after{animation-name:rkgrvoi;}","@keyframes rkgrvoi{0%{transform:rotate(0deg);}50%{transform:rotate(225deg);}100%{transform:rotate(0deg);}}",".r1o544mv{position:absolute;display:block;width:100%;height:100%;-webkit-mask-image:conic-gradient(transparent 105deg, white 105deg);mask-image:conic-gradient(transparent 105deg, white 105deg);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:var(--curveEasyEase);animation-name:r109gmi5;}",'.r1o544mv::before,.r1o544mv::after{content:"";position:absolute;display:block;width:100%;height:100%;animation:inherit;background-image:conic-gradient(currentcolor 135deg, transparent 135deg);}',"@keyframes r109gmi5{0%{transform:rotate(135deg);}50%{transform:rotate(0deg);}100%{transform:rotate(-225deg);}}",".r1o544mv::before{animation-name:r17whflh;}","@keyframes r17whflh{0%{transform:rotate(0deg);}50%{transform:rotate(-105deg);}100%{transform:rotate(0deg);}}",".r1o544mv::after{animation-name:re4odhl;}","@keyframes re4odhl{0%{transform:rotate(0deg);}50%{transform:rotate(-225deg);}100%{transform:rotate(0deg);}}"],s:["@media screen and (prefers-reduced-motion: reduce){.rxov3xa{animation-iteration-count:0;background-image:conic-gradient(transparent 120deg, currentcolor 360deg);}.rxov3xa::before,.rxov3xa::after{content:none;}}","@media screen and (prefers-reduced-motion: reduce){.r1o544mv{animation-iteration-count:0;background-image:conic-gradient(transparent 120deg, currentcolor 360deg);}.r1o544mv::before,.r1o544mv::after{content:none;}}"]}),QS=de({inverted:{De3pzq:"fr407j0",sj55zd:"f1f7voed"},rtlTail:{btxmck:"f179dep3",gb5jj2:"fbz9ihp",Bdya8wy:"f1pme1qz"},"extra-tiny":{Bqenvij:"fd461yt",a9b677:"fjw5fx7",qmp6fs:"f1v3ph3m"},tiny:{Bqenvij:"fjamq6b",a9b677:"f64fuq3",qmp6fs:"f1v3ph3m"},"extra-small":{Bqenvij:"frvgh55",a9b677:"fq4mcun",qmp6fs:"f1v3ph3m"},small:{Bqenvij:"fxldao9",a9b677:"f1w9dchk",qmp6fs:"f1v3ph3m"},medium:{Bqenvij:"f1d2rq10",a9b677:"f1szoe96",qmp6fs:"fb52u90"},large:{Bqenvij:"f8ljn23",a9b677:"fpdz1er",qmp6fs:"fb52u90"},"extra-large":{Bqenvij:"fbhnoac",a9b677:"feqmc2u",qmp6fs:"fb52u90"},huge:{Bqenvij:"f1ft4266",a9b677:"fksc0bp",qmp6fs:"fa3u9ii"}},{d:[".fr407j0{background-color:var(--colorNeutralStrokeAlpha2);}",".f1f7voed{color:var(--colorNeutralStrokeOnBrand2);}",".f179dep3{-webkit-mask-image:conic-gradient(white 255deg, transparent 255deg);mask-image:conic-gradient(white 255deg, transparent 255deg);}",".fbz9ihp::before,.fbz9ihp::after{background-image:conic-gradient(transparent 225deg, currentcolor 225deg);}",".fd461yt{height:16px;}",".fjw5fx7{width:16px;}",".f1v3ph3m{--fui-Spinner--strokeWidth:var(--strokeWidthThick);}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".fxldao9{height:28px;}",".f1w9dchk{width:28px;}",".f1d2rq10{height:32px;}",".f1szoe96{width:32px;}",".fb52u90{--fui-Spinner--strokeWidth:var(--strokeWidthThicker);}",".f8ljn23{height:36px;}",".fpdz1er{width:36px;}",".fbhnoac{height:40px;}",".feqmc2u{width:40px;}",".f1ft4266{height:44px;}",".fksc0bp{width:44px;}",".fa3u9ii{--fui-Spinner--strokeWidth:var(--strokeWidthThickest);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1pme1qz{background-image:conic-gradient(currentcolor 0deg, transparent 240deg);}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),YS=de({inverted:{sj55zd:"fonrgv7"},"extra-tiny":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},tiny:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},"extra-small":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},"extra-large":{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},huge:{Bahqtrf:"fk6fouc",Be2twd7:"f1pp30po",Bhrd7zp:"fl43uef",Bg96gwp:"f106mvju"}},{d:[".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}"]}),JS=t=>{"use no memo";const{labelPosition:o,size:n,appearance:s}=t,{dir:l}=at(),c=US(),u=GS(),d=KS(),p=QS(),m=XS(),g=YS();return t.root.className=oe(gs.root,c,(o==="above"||o==="below")&&u.vertical,t.root.className),t.spinner&&(t.spinner.className=oe(gs.spinner,d,p[n],s==="inverted"&&p.inverted,t.spinner.className)),t.spinnerTail&&(t.spinnerTail.className=oe(gs.spinnerTail,m,l==="rtl"&&p.rtlTail,t.spinnerTail.className)),t.label&&(t.label.className=oe(gs.label,g[n],s==="inverted"&&g.inverted,t.label.className)),t},Ya=_.forwardRef((t,o)=>{const n=$S(t,o);return JS(n),nt("useSpinnerStyles_unstable")(n),VS(n)});Ya.displayName="Spinner";const qh=(t,o)=>{const{wrap:n,truncate:s,block:l,italic:c,underline:u,strikethrough:d,size:p,font:m,weight:g,align:v}=t;return{align:v??"start",block:l??!1,font:m??"base",italic:c??!1,size:p??300,strikethrough:d??!1,truncate:s??!1,underline:u??!1,weight:g??"regular",wrap:n??!0,components:{root:"span"},root:Fe(St("span",{ref:o,...t}),{elementType:"span"})}},Hh=t=>fe(t.root,{}),ZS={root:"fui-Text"},e2=de({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",Bhrd7zp:"figsok6",fsow6f:"fpgzoln",mc9l5x:"f1w7gpdv",Huce71:"f6juhto",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg",ygn44y:"f2jf649"},nowrap:{Huce71:"fz5stix",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp"},truncate:{ygn44y:"f1cmbuwj"},block:{mc9l5x:"ftgm304"},italic:{B80ckks:"f1j4dglz"},underline:{w71qe1:"f13mvf36"},strikethrough:{w71qe1:"fv5q2k7"},strikethroughUnderline:{w71qe1:"f1drk4o6"},base100:{Be2twd7:"f13mqy1h",Bg96gwp:"fcpl73t"},base200:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},base400:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k"},base500:{Be2twd7:"f1pp30po",Bg96gwp:"f106mvju"},base600:{Be2twd7:"f1x0m3f5",Bg96gwp:"fb86gi6"},hero700:{Be2twd7:"fojgt09",Bg96gwp:"fcen8rp"},hero800:{Be2twd7:"fccw675",Bg96gwp:"f1ebx5kk"},hero900:{Be2twd7:"f15afnhw",Bg96gwp:"fr3w3wp"},hero1000:{Be2twd7:"fpyltcb",Bg96gwp:"f1ivgwrt"},monospace:{Bahqtrf:"f1fedwem"},numeric:{Bahqtrf:"f1uq0ln5"},weightMedium:{Bhrd7zp:"fdj6btp"},weightSemibold:{Bhrd7zp:"fl43uef"},weightBold:{Bhrd7zp:"flh3ekv"},alignCenter:{fsow6f:"f17mccla"},alignEnd:{fsow6f:"f12ymhq5"},alignJustify:{fsow6f:"f1j59e10"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fpgzoln{text-align:start;}",".f1w7gpdv{display:inline;}",".f6juhto{white-space:normal;}",[".f1gl81tg{overflow:visible;}",{p:-1}],".f2jf649{text-overflow:clip;}",".fz5stix{white-space:nowrap;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],".f1cmbuwj{text-overflow:ellipsis;}",".ftgm304{display:block;}",".f1j4dglz{font-style:italic;}",".f13mvf36{text-decoration-line:underline;}",".fv5q2k7{text-decoration-line:line-through;}",".f1drk4o6{text-decoration-line:line-through underline;}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",".fb86gi6{line-height:var(--lineHeightBase600);}",".fojgt09{font-size:var(--fontSizeHero700);}",".fcen8rp{line-height:var(--lineHeightHero700);}",".fccw675{font-size:var(--fontSizeHero800);}",".f1ebx5kk{line-height:var(--lineHeightHero800);}",".f15afnhw{font-size:var(--fontSizeHero900);}",".fr3w3wp{line-height:var(--lineHeightHero900);}",".fpyltcb{font-size:var(--fontSizeHero1000);}",".f1ivgwrt{line-height:var(--lineHeightHero1000);}",".f1fedwem{font-family:var(--fontFamilyMonospace);}",".f1uq0ln5{font-family:var(--fontFamilyNumeric);}",".fdj6btp{font-weight:var(--fontWeightMedium);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".flh3ekv{font-weight:var(--fontWeightBold);}",".f17mccla{text-align:center;}",".f12ymhq5{text-align:end;}",".f1j59e10{text-align:justify;}"]}),Wh=t=>{"use no memo";const o=e2();return t.root.className=oe(ZS.root,o.root,t.wrap===!1&&o.nowrap,t.truncate&&o.truncate,t.block&&o.block,t.italic&&o.italic,t.underline&&o.underline,t.strikethrough&&o.strikethrough,t.underline&&t.strikethrough&&o.strikethroughUnderline,t.size===100&&o.base100,t.size===200&&o.base200,t.size===400&&o.base400,t.size===500&&o.base500,t.size===600&&o.base600,t.size===700&&o.hero700,t.size===800&&o.hero800,t.size===900&&o.hero900,t.size===1e3&&o.hero1000,t.font==="monospace"&&o.monospace,t.font==="numeric"&&o.numeric,t.weight==="medium"&&o.weightMedium,t.weight==="semibold"&&o.weightSemibold,t.weight==="bold"&&o.weightBold,t.align==="center"&&o.alignCenter,t.align==="end"&&o.alignEnd,t.align==="justify"&&o.alignJustify,t.root.className),t},$h=_.forwardRef((t,o)=>{const n=qh(t,o);return Wh(n),nt("useTextStyles_unstable")(n),Hh(n)});$h.displayName="Text";function t2(t){const{useStyles:o,className:n,displayName:s}=t,l=_.forwardRef((c,u)=>{"use no memo";const d=o(),p=qh(c,u);return Wh(p),p.root.className=oe(n,p.root.className,d.root,c.className),Hh(p)});return l.displayName=s,l}const r2=t2({useStyles:de({root:{Bahqtrf:"fk6fouc",Be2twd7:"f1x0m3f5",Bhrd7zp:"fl43uef",Bg96gwp:"fb86gi6"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fb86gi6{line-height:var(--lineHeightBase600);}"]}),className:{root:"fui-Title3"}.root,displayName:"Title3"}),jn=()=>{},Vh={allRowsSelected:!1,clearRows:jn,deselectRow:jn,isRowSelected:()=>!1,selectRow:jn,selectedRows:new Set,someRowsSelected:!1,toggleAllRows:jn,toggleRow:jn,selectionMode:"multiselect"};function o2(t){"use no memo";return o=>n2(o,t)}function n2(t,o){const{items:n,getRowId:s}=t,{selectionMode:l,defaultSelectedItems:c,selectedItems:u,onSelectionChange:d}=o,[p,m]=Wb({selectionMode:l,defaultSelectedItems:c,selectedItems:u,onSelectionChange:d}),g=_.useMemo(()=>{const B=new Set;for(let R=0;R<n.length;R++){var T;B.add((T=s?.(n[R]))!==null&&T!==void 0?T:R)}return B},[n,s]),v=_.useMemo(()=>{if(l==="single"){const T=Array.from(p)[0];return g.has(T)}if(p.size<g.size||g.size===0)return!1;let B=!0;return g.forEach(T=>{p.has(T)||(B=!1)}),B},[g,p,l]),w=_.useMemo(()=>{if(p.size<=0)return!1;let B=!1;return g.forEach(T=>{p.has(T)&&(B=!0)}),B},[g,p]),b=xe(B=>{m.toggleAllItems(B,n.map((T,R)=>{var O;return(O=s?.(T))!==null&&O!==void 0?O:R}))}),x=xe((B,T)=>m.toggleItem(B,T)),y=xe((B,T)=>m.deselectItem(B,T)),S=xe((B,T)=>m.selectItem(B,T)),N=B=>m.isSelected(B),E=xe(B=>m.clearItems(B));return{...t,selection:{selectionMode:l,someRowsSelected:w,allRowsSelected:v,selectedRows:p,toggleRow:x,toggleAllRows:b,clearRows:E,deselectRow:y,selectRow:S,isRowSelected:N}}}const Ja=()=>{},Uh={getSortDirection:()=>"ascending",setColumnSort:Ja,sort:t=>[...t],sortColumn:void 0,sortDirection:"ascending",toggleColumnSort:Ja};function i2(t){"use no memo";return o=>s2(o,t)}function s2(t,o){const{columns:n}=t,{sortState:s,defaultSortState:l,onSortChange:c=Ja}=o,[u,d]=Hr({initialState:{sortDirection:"ascending",sortColumn:void 0},defaultState:l,state:s}),{sortColumn:p,sortDirection:m}=u,g=xe(c),v=_.useCallback((y,S)=>{d(N=>{const E={...N,sortColumn:S};return N.sortColumn===S?E.sortDirection=N.sortDirection==="ascending"?"descending":"ascending":E.sortDirection="ascending",g?.(y,E),E})},[g,d]),w=(y,S,N)=>{const E={sortColumn:S,sortDirection:N};g?.(y,E),d(E)},b=_.useCallback(y=>y.slice().sort((S,N)=>{const E=n.find(T=>T.columnId===p);if(!E?.compare)return 0;const B=m==="ascending"?1:-1;return E.compare(S.item,N.item)*B}),[n,p,m]);return{...t,sort:{sort:b,sortColumn:p,sortDirection:m,setColumnSort:w,toggleColumnSort:v,getSortDirection:y=>p===y?m:void 0}}}const l2=(t,o)=>{const n=xe(s=>{var l;(l=t.onClick)===null||l===void 0||l.call(t,s),s.stopPropagation()});return{components:{root:"div"},root:Fe(St("div",{ref:o,...t,onClick:n}),{elementType:"div"})}},a2=t=>fe(t.root,{}),c2={root:"fui-TableResizeHandle"},u2=de({root:{qhf8xq:"f1euv43f",j35jbq:["f1e31b4d","f1vgc2s3"],Bhzewxz:"f15twtuk",B5kzvoi:"f1yab3r1",a9b677:"fjw5fx7",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"fg06o1j",Bceei9c:"fc3en1c",abs64n:"fk73vx1",Bmy1vo4:"f13u1uyl",B3o57yi:"fezquic",Bj3rh1h:"f19g0ac",B3cna0y:"f1tkae59",Brovlpu:"ftqa4ok",B7zu5sd:"f15pjodv",Bsft5z2:"f1rcdj94",ap17g6:"f2gz7yw",a2br6o:"ff2ryt5",E3zdtr:"f1mdlcz9",Eqx8gd:["f10awi5f","f1nzedbg"],bn5sak:"frwkxtg",By385i5:"fo72kxq",Bjyk6c5:"fdlpgxj"}},{d:[".f1euv43f{position:absolute;}",".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f15twtuk{top:0;}",".f1yab3r1{bottom:0;}",".fjw5fx7{width:16px;}",[".fg06o1j{margin:0 -8px;}",{p:-1}],".fc3en1c{cursor:col-resize;}",".fk73vx1{opacity:0;}",".f13u1uyl{transition-property:opacity;}",".fezquic{transition-duration:.2s;}",".f19g0ac{z-index:1;}",'.f1rcdj94::after{content:" ";}',".f2gz7yw::after{display:block;}",".ff2ryt5::after{width:1px;}",".f1mdlcz9::after{position:absolute;}",".f10awi5f::after{left:50%;}",".f1nzedbg::after{right:50%;}",".frwkxtg::after{top:0;}",".fo72kxq::after{bottom:0;}",".fdlpgxj::after{background-color:var(--colorNeutralStroke1);}"],f:[".f1tkae59:focus{opacity:1;}",".ftqa4ok:focus{outline-style:none;}"],h:[".f15pjodv:hover{opacity:1;}"]}),d2=t=>{"use no memo";const o=u2();return t.root.className=oe(c2.root,o.root,t.root.className),t},Gh=_.forwardRef((t,o)=>{const n=l2(t,o);return d2(n),nt("useTableResizeHandleStyles_unstable")(n),a2(n)});Gh.displayName="TableResizeHandle";function f2(){const[t,o]=_.useState(0),n=_.useRef(void 0),s=_.useRef(null),{targetDocument:l}=at(),c=_.useCallback(()=>{var d;const p=(d=n.current)===null||d===void 0?void 0:d.getBoundingClientRect().width;o(p||0)},[]),u=_.useCallback(d=>{if(l&&(!d&&s.current&&n.current&&s.current.unobserve(n.current),n.current=void 0,d?.parentElement)){var p;n.current=d.parentElement,c(),(p=s.current)===null||p===void 0||p.observe(n.current)}},[l,c]);return _.useEffect(()=>{if(s.current=p2(l,c),!(!n.current||!s.current))return s.current.observe(n.current),()=>{var d;(d=s.current)===null||d===void 0||d.disconnect()}},[c,l]),{width:t,measureElementRef:u}}function p2(t,o){var n;return!(t==null||(n=t.defaultView)===null||n===void 0)&&n.ResizeObserver?new t.defaultView.ResizeObserver(o):null}function h2(t){const o=_.useRef(0),n=_.useRef(0),s=_.useRef(void 0),[l,c]=_.useState(!1),{targetDocument:u}=at(),{getColumnWidth:d,setColumnWidth:p}=t,m=_.useCallback(x=>{const{clientX:y}=_f(x),S=y-o.current;n.current+=S,s.current&&p(x,{columnId:s.current,width:n.current}),o.current=y},[p]),[g]=Bb(),v=_.useCallback(x=>{g(()=>m(x))},[g,m]),w=_.useCallback(x=>{la(x)&&(u?.removeEventListener("mouseup",w),u?.removeEventListener("mousemove",v)),sa(x)&&(u?.removeEventListener("touchend",w),u?.removeEventListener("touchmove",v)),c(!1)},[v,u]);return{getOnMouseDown:_.useCallback(x=>y=>{if(n.current=d(x),o.current=_f(y).clientX,s.current=x,la(y)){if(y.target!==y.currentTarget||y.button!==0)return;u?.addEventListener("mouseup",w),u?.addEventListener("mousemove",v),c(!0)}sa(y)&&(u?.addEventListener("touchend",w),u?.addEventListener("touchmove",v),c(!0))},[d,v,w,u]),dragging:l}}const m2=150,g2=100;function Za(t,o=[],n={}){let s=!1;const l=new Map(o.map(u=>[u.columnId,u])),c=t.map(u=>{const d=l.get(u.columnId);if(d){var p;const{idealWidth:x=d.idealWidth,minWidth:y=d.minWidth,padding:S=d.padding}=(p=n[u.columnId])!==null&&p!==void 0?p:{};return x!==d.idealWidth||y!==d.minWidth||S!==d.padding?(s=!0,{...d,idealWidth:x,width:x,minWidth:y,padding:S}):d}var m;const{defaultWidth:g,idealWidth:v=m2,minWidth:w=g2,padding:b}=(m=n[u.columnId])!==null&&m!==void 0?m:{};return s=!0,{columnId:u.columnId,width:Math.max(g??v,w),minWidth:w,idealWidth:Math.max(g??v,w),padding:b??16}});if(c.length!==o.length||s){const u=c.find(d=>d.width>d.idealWidth);u&&(u.width=u.idealWidth),s=!0}return s?c:o}function On(t,o){return t.find(n=>n.columnId===o)}function ec(t,o){return t[o]}function v2(t){return t.reduce((o,n)=>o+n.width+n.padding,0)}function b2(t,o){const n=On(t,o);var s;return(s=n?.width)!==null&&s!==void 0?s:0}function An(t,o,n,s){const l=On(t,o);if(!l||l?.[n]===s)return t;const c={...l,[n]:s};return t.reduce((d,p)=>p.columnId===c.columnId?[...d,c]:[...d,p],[])}function vs(t,o){let n=t;const s=v2(n);if(s<o){let l=o-s,c=0;for(;c<n.length&&l>0;){const u=ec(n,c);if(!u)break;const d=Math.min(u.idealWidth-u.width,l);if(n=An(n,u.columnId,"width",u.width+d),l-=d,c===n.length-1&&l!==0){const p=ec(n,c);p&&(n=An(n,p.columnId,"width",p.width+l))}c++}}else if(s>=o){let l=s-o,c=n.length-1;for(;c>=0&&l>0;){const u=ec(n,c);if(!u){c--;continue}if(u.width>u.minWidth){const d=Math.min(u.width-u.minWidth,l);l-=d,n=An(n,u.columnId,"width",u.width-d)}c--}}return n}const y2=t=>(o,n)=>{switch(n.type){case"CONTAINER_WIDTH_UPDATED":return{...o,containerWidth:n.containerWidth,columnWidthState:t?vs(o.columnWidthState,n.containerWidth):o.columnWidthState};case"COLUMNS_UPDATED":const s=Za(n.columns,o.columnWidthState,o.columnSizingOptions);return{...o,columns:n.columns,columnWidthState:t?vs(s,o.containerWidth):s};case"COLUMN_SIZING_OPTIONS_UPDATED":const l=Za(o.columns,o.columnWidthState,n.columnSizingOptions);return{...o,columnSizingOptions:n.columnSizingOptions,columnWidthState:t?vs(l,o.containerWidth):l};case"SET_COLUMN_WIDTH":const{columnId:c,width:u}=n,{containerWidth:d}=o,p=On(o.columnWidthState,c);let m=[...o.columnWidthState];return p?(m=An(m,c,"width",u),m=An(m,c,"idealWidth",u),t&&(m=vs(m,d)),{...o,columnWidthState:m}):o}};function w2(t,o,n={}){const{onColumnResize:s,columnSizingOptions:l,autoFitColumns:c=!0}=n,u=_.useMemo(()=>y2(c),[c]),[d,p]=_.useReducer(u,{columns:t,containerWidth:0,columnWidthState:Za(t,void 0,l),columnSizingOptions:l});Ht(()=>{p({type:"CONTAINER_WIDTH_UPDATED",containerWidth:o})},[o]),Ht(()=>{p({type:"COLUMNS_UPDATED",columns:t})},[t]),Ht(()=>{p({type:"COLUMN_SIZING_OPTIONS_UPDATED",columnSizingOptions:l})},[l]);const m=xe((g,v)=>{let{width:w}=v;const{columnId:b}=v,x=On(d.columnWidthState,b);x&&(w=Math.max(x.minWidth||0,w),s&&s(g,{columnId:b,width:w}),p({type:"SET_COLUMN_WIDTH",columnId:b,width:w}))});return{getColumnById:_.useCallback(g=>On(d.columnWidthState,g),[d.columnWidthState]),getColumns:_.useCallback(()=>d.columnWidthState,[d.columnWidthState]),getColumnWidth:_.useCallback(g=>b2(d.columnWidthState,g),[d.columnWidthState]),setColumnWidth:m}}const bs=20,k2=yk,Kh=1/4;function x2(t){const[o,n]=_.useState(),s=_.useRef(void 0),{findPrevFocusable:l}=Sa(),c=_.useRef(t);_.useEffect(()=>{c.current=t},[t]);const[u]=_.useState(()=>new Map),d=xe(b=>{if(!o)return;const x=c.current.getColumnWidth(o),y=b.getModifierState(k2),S=()=>{b.preventDefault(),b.stopPropagation()};switch(b.key){case Dp:S(),c.current.setColumnWidth(b.nativeEvent,{columnId:o,width:x-(y?bs*Kh:bs)});return;case jp:S(),c.current.setColumnWidth(b.nativeEvent,{columnId:o,width:x+(y?bs*Kh:bs)});return;case gr:case qo:case Lp:var N,E;S(),(E=u.get(o))===null||E===void 0||(N=E.current)===null||N===void 0||N.blur();break}}),p=_.useCallback(b=>{var x,y;n(b),(x=s.current)===null||x===void 0||x.call(s,b,!0);const S=(y=u.get(b))===null||y===void 0?void 0:y.current;S&&(S.setAttribute("tabindex","-1"),S.tabIndex=-1,S.focus())},[u]),m=_.useCallback(()=>{var b,x;if(!o)return;(b=s.current)===null||b===void 0||b.call(s,o,!1);const y=(x=u.get(o))===null||x===void 0?void 0:x.current;if(y){var S;(S=l(y))===null||S===void 0||S.focus(),y.removeAttribute("tabindex")}n(void 0)},[o,l,u]),g=(b,x)=>{s.current=x,o?b&&o!==b?(p(b),n(b)):m():p(b)},v=_.useCallback(b=>{const x=u.get(b)||_.createRef();return u.set(b,x),x},[u]),w=ka({focusable:{ignoreKeydown:{ArrowLeft:!0,ArrowRight:!0}}});return{toggleInteractiveMode:g,columnId:o,getKeyboardResizingProps:_.useCallback((b,x)=>({onKeyDown:d,onBlur:m,ref:v(b),role:"separator","aria-label":"Resize column","aria-valuetext":`${x} pixels`,"aria-hidden":b!==o,tabIndex:b===o?0:void 0,...w}),[o,m,v,d,w])}}const Xh={getColumnWidths:()=>[],getOnMouseDown:()=>()=>null,setColumnWidth:()=>null,getTableProps:()=>({}),getTableHeaderCellProps:()=>({style:{},columnId:""}),getTableCellProps:()=>({style:{},columnId:""}),enableKeyboardMode:()=>()=>null};function _2(t){"use no memo";return o=>S2(o,{autoFitColumns:!0,...t})}function Qh(t,o){const n=t.width;return{width:n,minWidth:n,maxWidth:n,...o?{pointerEvents:"none"}:{}}}function S2(t,o={}){const{columns:n}=t,{width:s,measureElementRef:l}=f2(),c=w2(n,s+(o?.containerWidthOffset||0),o),u=h2(c),{toggleInteractiveMode:d,getKeyboardResizingProps:p}=x2(c),{autoFitColumns:m}=o,g=_.useCallback((S,N)=>E=>{E.preventDefault(),E.nativeEvent.stopPropagation(),d(S,N)},[d]),{getColumnById:v,setColumnWidth:w,getColumns:b}=c,{getOnMouseDown:x,dragging:y}=u;return{...t,tableRef:l,columnSizing_unstable:{getOnMouseDown:x,setColumnWidth:(S,N)=>w(void 0,{columnId:S,width:N}),getColumnWidths:b,getTableProps:(S={})=>({...S,style:{minWidth:"fit-content",...S.style||{}}}),getTableHeaderCellProps:_.useCallback(S=>{var N;const E=v(S),T=((N=n[n.length-1])===null||N===void 0?void 0:N.columnId)===S&&m?null:_.createElement(Gh,{onMouseDown:x(S),onTouchStart:x(S),...p(S,E?.width||0)});return E?{style:Qh(E,y),aside:T}:{}},[v,n,y,p,x,m]),getTableCellProps:_.useCallback(S=>{const N=v(S);return N?{style:Qh(N)}:{}},[v]),enableKeyboardMode:g}}}const C2=t=>t,B2={selection:Vh,sort:Uh,getRows:()=>[],getRowId:()=>"",items:[],columns:[],columnSizing_unstable:Xh,tableRef:_.createRef()};function N2(t,o=[]){const{items:n,getRowId:s,columns:l}=t,c=_.useCallback((d=C2)=>n.map((p,m)=>{var g;return d({item:p,rowId:(g=s?.(p))!==null&&g!==void 0?g:m})}),[n,s]),u={getRowId:s,items:n,columns:l,getRows:c,selection:Vh,sort:Uh,columnSizing_unstable:Xh,tableRef:_.createRef()};return o.reduce((d,p)=>p(d),u)}const T2=()=>0,E2=()=>null,z2=()=>null;function ys(t){const{columnId:o,renderCell:n=E2,renderHeaderCell:s=z2,compare:l=T2}=t;return{columnId:o,renderCell:n,renderHeaderCell:s,compare:l}}function P2(){const t=xa({axis:"horizontal"}),o=xa({axis:"grid"}),n=_a({tabBehavior:"limited-trap-focus"}),{findFirstFocusable:s}=Sa(),{targetDocument:l}=at(),c=mw(t,n);return{onTableKeyDown:_.useCallback(d=>{if(!l)return;let p=l.activeElement;if(!p||!d.currentTarget.contains(p))return;const m=p.getAttribute("role");if(d.key===jp&&m==="row"&&Nr(p)){var g;(g=s(p))===null||g===void 0||g.focus()}if(m==="row")return;const v=(()=>{let w=Nr(p)?p:null;for(;w;){const b=w.getAttribute("role");if(b==="cell"||b==="gridcell")return!0;w=w.parentElement}return!1})();if(d.key===Dp&&v){p.dispatchEvent(new Af({action:Xi.Escape}));return}(d.key===Pa||d.key===es)&&v&&(p.dispatchEvent(new Af({action:Xi.Escape})),p=l.activeElement,p&&p.dispatchEvent(new yy({key:Ve[d.key]})))},[l,s]),tableTabsterAttribute:o,tableRowTabsterAttribute:c}}const Yh=_.createContext(void 0),R2={size:"medium",noNativeElements:!1,sortable:!1},F2=Yh.Provider,Xr=()=>{var t;return(t=_.useContext(Yh))!==null&&t!==void 0?t:R2},Jh=(t,o)=>{const{noNativeElements:n,size:s}=Xr();var l;const c=((l=t.as)!==null&&l!==void 0?l:n)?"div":"td";return{components:{root:c},root:Fe(St(c,{ref:o,role:c==="div"?"cell":void 0,...t}),{elementType:c}),noNativeElements:n,size:s}},I2=t=>fe(t.root,{}),D2={root:"fui-TableCell"},j2=de({root:{mc9l5x:"f15pt5es",ha4doy:"fmrv4ls"},medium:{Bqenvij:"f1ft4266"},small:{Bqenvij:"fbsu25e"},"extra-small":{Bqenvij:"frvgh55"}},{d:[".f15pt5es{display:table-cell;}",".fmrv4ls{vertical-align:middle;}",".f1ft4266{height:44px;}",".fbsu25e{height:34px;}",".frvgh55{height:24px;}"]}),O2=de({root:{mc9l5x:"f22iagw",Bf4jedk:"f10tiqix",Bt984gj:"f122n59",xawz:0,Bh6795r:0,Bnnss6s:0,fkmc3a:"f1izfyrr"},medium:{sshi5w:"f5pgtk9"},small:{sshi5w:"fcep9tg"},"extra-small":{sshi5w:"f1pha7fy"}},{d:[".f22iagw{display:flex;}",".f10tiqix{min-width:0px;}",".f122n59{align-items:center;}",[".f1izfyrr{flex:1 1 0px;}",{p:-1}],".f5pgtk9{min-height:44px;}",".fcep9tg{min-height:34px;}",".f1pha7fy{min-height:24px;}"]}),A2=de({root:{qhf8xq:"f10pi13n",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f3gpkru",Bfpq7zp:0,g9k6zt:0,Bn4voq9:0,giviqs:"f1dxfoyt",Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f2krc9w"}},{d:[".f10pi13n{position:relative;}",[".f3gpkru{padding:0px var(--spacingHorizontalS);}",{p:-1}],[".f1dxfoyt[data-fui-focus-visible]{outline:2px solid var(--colorStrokeFocus2);}",{p:-1}],[".f2krc9w[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);}",{p:-1}]]}),L2=t=>{"use no memo";const o=A2(),n={table:j2(),flex:O2()};return t.root.className=oe(D2.root,o.root,t.noNativeElements?n.flex.root:n.table.root,t.noNativeElements?n.flex[t.size]:n.table[t.size],t.root.className),t},Zh=_.createContext(void 0),M2="",q2=Zh.Provider,tc=()=>_.useContext(Zh)===M2,H2=(t,o)=>{const{noNativeElements:n,size:s}=Xr();var l;const c=((l=t.as)!==null&&l!==void 0?l:n)?"div":"tr",u=Ca(),d=Pn(),p=tc();var m;return{components:{root:c},root:Fe(St(c,{ref:pt(o,u,d),role:c==="div"?"row":void 0,...t}),{elementType:c}),size:s,noNativeElements:n,appearance:(m=t.appearance)!==null&&m!==void 0?m:"none",isHeaderRow:p}},rc={root:"fui-TableSelectionCell",checkboxIndicator:"fui-TableSelectionCell__checkboxIndicator",radioIndicator:"fui-TableSelectionCell__radioIndicator"},W2=de({root:{mc9l5x:"f15pt5es",a9b677:"fksc0bp"}},{d:[".f15pt5es{display:table-cell;}",".fksc0bp{width:44px;}"]}),$2=de({root:{mc9l5x:"f22iagw",xawz:0,Bh6795r:0,Bnnss6s:0,fkmc3a:"f1izfyrr",Bf4jedk:"fvrlu0f",B2u0y6b:"f1c71y05",Brf1p80:"f4d9j23"}},{d:[".f22iagw{display:flex;}",[".f1izfyrr{flex:1 1 0px;}",{p:-1}],".fvrlu0f{min-width:44px;}",".f1c71y05{max-width:44px;}",".f4d9j23{justify-content:center;}"]}),V2=de({root:{fsow6f:"f17mccla",Huce71:"fz5stix",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",Bfpq7zp:0,g9k6zt:0,Bn4voq9:0,giviqs:"f1dxfoyt",Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f2krc9w"},radioIndicator:{mc9l5x:"f22iagw",Bh6795r:"fqerorx",Bt984gj:"f122n59",Brf1p80:"f4d9j23"},subtle:{abs64n:"fk73vx1",B8a84jv:"f1y7ij6c"},hidden:{abs64n:"fk73vx1"}},{d:[".f17mccla{text-align:center;}",".fz5stix{white-space:nowrap;}",[".f1mk8lai{padding:0;}",{p:-1}],[".f1dxfoyt[data-fui-focus-visible]{outline:2px solid var(--colorStrokeFocus2);}",{p:-1}],[".f2krc9w[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f22iagw{display:flex;}",".fqerorx{flex-grow:1;}",".f122n59{align-items:center;}",".f4d9j23{justify-content:center;}",".fk73vx1{opacity:0;}",".f1y7ij6c[data-fui-focus-within]:focus-within{opacity:1;}"]}),U2=t=>{"use no memo";const o=V2(),n={table:W2(),flex:$2()};return t.root.className=oe(rc.root,o.root,t.noNativeElements?n.flex.root:n.table.root,t.subtle&&t.checked===!1&&o.subtle,t.hidden&&o.hidden,t.root.className),t.checkboxIndicator&&(t.checkboxIndicator.className=oe(rc.checkboxIndicator,t.checkboxIndicator.className)),t.radioIndicator&&(t.radioIndicator.className=oe(rc.radioIndicator,o.radioIndicator,t.radioIndicator.className)),t},G2={root:"fui-TableRow"},K2=de({root:{mc9l5x:"f1u0rzck"}},{d:[".f1u0rzck{display:table-row;}"]}),X2=de({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}"]}),Q2=de({root:{sj55zd:"f19n0e5",B7ck84d:"f1ewtqcl",Bconypa:"f1jazu75",B6guboy:"f1xeqee6",Bfpq7zp:0,g9k6zt:0,Bn4voq9:0,giviqs:"f1dxfoyt",Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f2krc9w"},rootInteractive:{B6guboy:"f1xeqee6",ecr2s2:"f1wfn5kd",lj723h:"f1g4hkjv",B43xm9u:"f15ngxrw",i921ia:"fjbbrdp",Jwef8y:"f1t94bn6",Bi91k9c:"feu1g3u",Bpt6rm4:"f1uorfem",ff6mpl:"fw60kww",Bahaeuw:"f1v3eptx",F230oe:"f8gmj8i",Bdw8ktp:["f1ap8nzx","fjag8bx"],Bj1xduy:"f1igan7k",Bhh2cfd:["fjag8bx","f1ap8nzx"]},medium:{B9xav0g:0,oivjwe:0,Bn0qgzm:0,Bgfg5da:"f1facbz3"},small:{B9xav0g:0,oivjwe:0,Bn0qgzm:0,Bgfg5da:"f1facbz3"},"extra-small":{Be2twd7:"fy9rknc"},brand:{De3pzq:"f16xkysk",g2u3we:"f1bh3yvw",h3c5rm:["fmi79ni","f11fozsx"],B9xav0g:"fnzw4c6",zhjwy3:["f11fozsx","fmi79ni"],ecr2s2:"f7tkmfy",lj723h:"f1r2dosr",wmvzou:0,sc4o1m:0,wymq9i:0,u9orzk:0,puiv5t:0,Bosien3:0,b2z72d:0,Beulxaw:0,B57pkaw:0,Jcjdmf:0,B8qgbzl:0,Bbmb0sr:0,B14q8qp:0,Bcq6wej:0,Byz1pjr:0,kr9cjb:0,Ff9ifp:"f1msmgpi",Bmclvqj:0,psczho:0,B0tx59b:0,sk7i8k:0,zlwzm7:"fbo0xvd",Bkp2nk:"fjuvmhu",gy0h4g:"f1kvufhq"},neutral:{wmvzou:0,sc4o1m:0,wymq9i:0,u9orzk:0,puiv5t:0,Bosien3:0,b2z72d:0,Beulxaw:0,B57pkaw:0,Jcjdmf:0,B8qgbzl:0,Bbmb0sr:0,B14q8qp:0,Bcq6wej:0,Byz1pjr:0,kr9cjb:0,Ff9ifp:"f1msmgpi",Bmclvqj:0,psczho:0,B0tx59b:0,sk7i8k:0,zlwzm7:"fbo0xvd",Bkp2nk:"fjuvmhu",gy0h4g:"f1kvufhq",De3pzq:"fq5gl1p",sj55zd:"f1cgsbmv",Jwef8y:"f1uqaxdt",ecr2s2:"fa9o754",g2u3we:"frmsihh",h3c5rm:["frttxa5","f11o2r7f"],B9xav0g:"fem5et0",zhjwy3:["f11o2r7f","frttxa5"]},none:{}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ewtqcl{box-sizing:border-box;}",".f1jazu75[data-fui-focus-within]:focus-within .fui-TableSelectionCell{opacity:1;}",".f1xeqee6[data-fui-focus-within]:focus-within .fui-TableCellActions{opacity:1;}",[".f1dxfoyt[data-fui-focus-visible]{outline:2px solid var(--colorStrokeFocus2);}",{p:-1}],[".f2krc9w[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f1facbz3{border-bottom:var(--strokeWidthThin) solid var(--colorNeutralStroke2);}",{p:-1}],[".f1facbz3{border-bottom:var(--strokeWidthThin) solid var(--colorNeutralStroke2);}",{p:-1}],".fy9rknc{font-size:var(--fontSizeBase200);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".f1bh3yvw{border-top-color:var(--colorTransparentStrokeInteractive);}",".fmi79ni{border-right-color:var(--colorTransparentStrokeInteractive);}",".f11fozsx{border-left-color:var(--colorTransparentStrokeInteractive);}",".fnzw4c6{border-bottom-color:var(--colorTransparentStrokeInteractive);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1cgsbmv{color:var(--colorNeutralForeground1Hover);}",".frmsihh{border-top-color:var(--colorNeutralStrokeOnBrand);}",".frttxa5{border-right-color:var(--colorNeutralStrokeOnBrand);}",".f11o2r7f{border-left-color:var(--colorNeutralStrokeOnBrand);}",".fem5et0{border-bottom-color:var(--colorNeutralStrokeOnBrand);}"],a:[".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1g4hkjv:active{color:var(--colorNeutralForeground1Pressed);}",".f15ngxrw:active .fui-TableCellActions{opacity:1;}",".fjbbrdp:active .fui-TableSelectionCell{opacity:1;}",".f7tkmfy:active{background-color:var(--colorBrandBackground2);}",".f1r2dosr:active{color:var(--colorNeutralForeground1);}",".fa9o754:active{background-color:var(--colorSubtleBackgroundSelected);}"],h:[".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".f1uorfem:hover .fui-TableCellActions{opacity:1;}",".fw60kww:hover .fui-TableSelectionCell{opacity:1;}",".f1uqaxdt:hover{background-color:var(--colorSubtleBackgroundSelected);}"],m:[["@media (forced-colors: active){.f1v3eptx:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f8gmj8i:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ap8nzx:hover{border-right-color:Highlight;}.fjag8bx:hover{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1igan7k:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1msmgpi{border:2px solid transparent;}}",{p:-2,m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbo0xvd{border-radius:var(--borderRadiusMedium);}}",{p:-1,m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjuvmhu{box-sizing:border-box;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kvufhq:focus-visible{outline-offset:-4px;}}",{m:"(forced-colors: active)"}]]}),Y2=t=>{"use no memo";const o=Q2(),n={table:K2(),flex:X2()};return t.root.className=oe(G2.root,o.root,!t.isHeaderRow&&o.rootInteractive,o[t.size],t.noNativeElements?n.flex.root:n.table.root,o[t.appearance],t.root.className),t},J2=(t,o)=>{const{noNativeElements:n}=Xr();var s;const l=((s=t.as)!==null&&s!==void 0?s:n)?"div":"tbody";return{components:{root:l},root:Fe(St(l,{ref:o,role:l==="div"?"rowgroup":void 0,...t}),{elementType:l}),noNativeElements:n}},Z2=de({root:{mc9l5x:"f1tp1avn"}},{d:[".f1tp1avn{display:table-row-group;}"]}),eC=de({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),tC="fui-TableBody",rC=t=>{"use no memo";const o={table:Z2(),flex:eC()};return t.root.className=oe(tC,t.noNativeElements?o.flex.root:o.table.root,t.root.className),t},oC=(t,o)=>{var n;const s=((n=t.as)!==null&&n!==void 0?n:t.noNativeElements)?"div":"table";var l,c,u;return{components:{root:s},root:Fe(St(s,{ref:o,role:s==="div"?"table":void 0,...t}),{elementType:s}),size:(l=t.size)!==null&&l!==void 0?l:"medium",noNativeElements:(c=t.noNativeElements)!==null&&c!==void 0?c:!1,sortable:(u=t.sortable)!==null&&u!==void 0?u:!1}},nC=(t,o)=>fe(F2,{value:o.table,children:fe(t.root,{})}),iC="fui-Table",sC=de({root:{mc9l5x:"f1w4nmp0",ha4doy:"fmrv4ls",a9b677:"fly5x3f",B73mfa3:"f14m3nip"}},{d:[".f1w4nmp0{display:table;}",".fmrv4ls{vertical-align:middle;}",".fly5x3f{width:100%;}",".f14m3nip{table-layout:fixed;}"]}),lC=de({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),aC=de({root:{po53p8:"fgkb47j",De3pzq:"fhovq9v"}},{d:[".fgkb47j{border-collapse:collapse;}",".fhovq9v{background-color:var(--colorSubtleBackground);}"]}),cC=t=>{"use no memo";const o=aC(),n={table:sC(),flex:lC()};return t.root.className=oe(iC,o.root,t.noNativeElements?n.flex.root:n.table.root,t.root.className),t};function uC(t){const{size:o,noNativeElements:n,sortable:s}=t;return{table:_.useMemo(()=>({noNativeElements:n,size:o,sortable:s}),[n,o,s])}}const dC=(t,o)=>{const{noNativeElements:n}=Xr();var s;const l=((s=t.as)!==null&&s!==void 0?s:n)?"div":"thead";return{components:{root:l},root:Fe(St(l,{ref:o,role:l==="div"?"rowgroup":void 0,...t}),{elementType:l}),noNativeElements:n}},fC=t=>fe(q2,{value:"",children:fe(t.root,{})}),pC="fui-TableHeader",hC=de({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),mC=de({root:{mc9l5x:"f1tp1avn"}},{d:[".f1tp1avn{display:table-row-group;}"]}),gC=t=>{"use no memo";const o={table:mC(),flex:hC()};return t.root.className=oe(pC,t.noNativeElements?o.flex.root:o.table.root,t.root.className),t},vC={ascending:_.createElement(Rk,{fontSize:12}),descending:_.createElement(Pk,{fontSize:12})},bC=(t,o)=>{const{noNativeElements:n,sortable:s}=Xr(),{sortable:l=s}=t;var c;const u=((c=t.as)!==null&&c!==void 0?c:n)?"div":"th",d=Fe(t.button,{elementType:"div",defaultProps:{as:"div"}}),p=Mp(d.as,d);var m;return{components:{root:u,button:"div",sortIcon:"span",aside:"span"},root:Fe(St(u,{ref:pt(o,Pn()),role:u==="div"?"columnheader":void 0,"aria-sort":l?(m=t.sortDirection)!==null&&m!==void 0?m:"none":void 0,...t}),{elementType:u}),aside:Ke(t.aside,{elementType:"span"}),sortIcon:Ke(t.sortIcon,{renderByDefault:!!t.sortDirection,defaultProps:{children:t.sortDirection?vC[t.sortDirection]:void 0},elementType:"span"}),button:l?p:d,sortable:l,noNativeElements:n}},yC=t=>yt(t.root,{children:[yt(t.button,{children:[t.root.children,t.sortIcon&&fe(t.sortIcon,{})]}),t.aside&&fe(t.aside,{})]}),ws={root:"fui-TableHeaderCell",button:"fui-TableHeaderCell__button",sortIcon:"fui-TableHeaderCell__sortIcon",aside:"fui-TableHeaderCell__aside"},wC=de({root:{mc9l5x:"f15pt5es",ha4doy:"fmrv4ls"}},{d:[".f15pt5es{display:table-cell;}",".fmrv4ls{vertical-align:middle;}"]}),kC=de({root:{mc9l5x:"f22iagw",xawz:0,Bh6795r:0,Bnnss6s:0,fkmc3a:"f1izfyrr",Bf4jedk:"f10tiqix"}},{d:[".f22iagw{display:flex;}",[".f1izfyrr{flex:1 1 0px;}",{p:-1}],".f10tiqix{min-width:0px;}"]}),xC=de({root:{Bhrd7zp:"figsok6",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f3gpkru",robkg1:0,Bmvh20x:0,B3nxjsc:0,Bmkhcsx:"f14ym4q2",B8osjzx:0,pehzd3:0,Blsv9te:0,u7xebq:0,Bsvwmf7:"f1euou18",qhf8xq:"f10pi13n"},rootInteractive:{Bi91k9c:"feu1g3u",Jwef8y:"f1t94bn6",lj723h:"f1g4hkjv",ecr2s2:"f1wfn5kd"},resetButton:{B3rzk8w:"fq6nmtn",B7ck84d:"f1e4lqlz",De3pzq:"f1u2r49w",sj55zd:"f1ym3bx4",Bahqtrf:"f1mo0ibp",Be2twd7:"fjoy568",Bg96gwp:"fytdu2e",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f3bhgqh",fsow6f:"fgusgyc"},button:{qhf8xq:"f10pi13n",a9b677:"fly5x3f",mc9l5x:"f22iagw",Bh6795r:0,Bqenvij:"f1l02sjl",Bt984gj:"f122n59",i8kkvl:0,Belr9w4:0,rmohyg:"fkln5zr",sshi5w:"f1nxs5xn",xawz:0,Bnnss6s:0,fkmc3a:"f1izfyrr",oeaueh:"f1s6fcnf"},sortable:{Bceei9c:"f1k6fduh"},sortIcon:{mc9l5x:"f22iagw",Bt984gj:"f122n59",z8tnut:"fclwglc"},resizeHandle:{}},{d:[".figsok6{font-weight:var(--fontWeightRegular);}",[".f3gpkru{padding:0px var(--spacingHorizontalS);}",{p:-1}],[".f14ym4q2[data-fui-focus-within]:focus-within{outline:2px solid var(--colorStrokeFocus2);}",{p:-1}],[".f1euou18[data-fui-focus-within]:focus-within{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f10pi13n{position:relative;}",".fq6nmtn{resize:horizontal;}",".f1e4lqlz{box-sizing:content-box;}",".f1u2r49w{background-color:inherit;}",".f1ym3bx4{color:inherit;}",".f1mo0ibp{font-family:inherit;}",".fjoy568{font-size:inherit;}",".fytdu2e{line-height:normal;}",[".f1gl81tg{overflow:visible;}",{p:-1}],[".f1mk8lai{padding:0;}",{p:-1}],[".f3bhgqh{border:none;}",{p:-2}],".fgusgyc{text-align:unset;}",".fly5x3f{width:100%;}",".f22iagw{display:flex;}",".fqerorx{flex-grow:1;}",".f1l02sjl{height:100%;}",".f122n59{align-items:center;}",[".fkln5zr{gap:var(--spacingHorizontalXS);}",{p:-1}],".f1nxs5xn{min-height:32px;}",[".f1izfyrr{flex:1 1 0px;}",{p:-1}],".f1s6fcnf{outline-style:none;}",".f1k6fduh{cursor:pointer;}",".fclwglc{padding-top:var(--spacingVerticalXXS);}"],h:[".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}"],a:[".f1g4hkjv:active{color:var(--colorNeutralForeground1Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}"]}),_C=t=>{"use no memo";const o=xC(),n={table:wC(),flex:kC()};return t.root.className=oe(ws.root,o.root,t.sortable&&o.rootInteractive,t.noNativeElements?n.flex.root:n.table.root,t.root.className),t.button.className=oe(ws.button,o.resetButton,o.button,t.sortable&&o.sortable,t.button.className),t.sortIcon&&(t.sortIcon.className=oe(ws.sortIcon,o.sortIcon,t.sortIcon.className)),t.aside&&(t.aside.className=oe(ws.aside,o.resizeHandle,t.aside.className)),t},em=_.createContext(void 0),SC="",tm=()=>{var t;return(t=_.useContext(em))!==null&&t!==void 0?t:SC},CC=em.Provider,rm=_.createContext(void 0),BC="",om=()=>{var t;return(t=_.useContext(rm))!==null&&t!==void 0?t:BC},NC=rm.Provider,TC=(t,o)=>{const n=Jh(t,pt(o,Pn())),{noNativeElements:s}=Xr(),{type:l="checkbox",checked:c=!1,subtle:u=!1,hidden:d=!1,invisible:p=!1}=t;return{...n,components:{...n.components,checkboxIndicator:Ua,radioIndicator:Qa},checkboxIndicator:Ke(t.checkboxIndicator,{renderByDefault:l==="checkbox",defaultProps:{checked:t.checked},elementType:Ua}),radioIndicator:Ke(t.radioIndicator,{renderByDefault:l==="radio",defaultProps:{checked:!!c,input:{name:Br("table-selection-radio")}},elementType:Qa}),type:l,checked:c,noNativeElements:s,subtle:u,hidden:p||d}},EC=t=>yt(t.root,{children:[t.type==="checkbox"&&t.checkboxIndicator&&fe(t.checkboxIndicator,{}),t.type==="radio"&&t.radioIndicator&&fe(t.radioIndicator,{})]}),nm=za(void 0),im={...B2,subtleSelection:!1,selectableRows:!1,selectionAppearance:"brand",focusMode:"none",compositeRowTabsterAttribute:{}},zC=nm.Provider,He=t=>Fp(nm,(o=im)=>t(o)),PC=(t,o)=>{const{focusMode:n="cell"}=t,s=tm(),l=He(p=>(p.focusMode==="cell"||p.focusMode==="composite")&&n!=="none"),c=He(p=>p.resizableColumns),u=He(p=>p.columnSizing_unstable.getTableCellProps),d=_a({tabBehavior:"limited-trap-focus"});return Jh({as:"div",role:"gridcell",...n==="group"&&d,tabIndex:l?0:void 0,...c?u(s):{},...t},o)},RC=t=>I2(t),FC={root:"fui-DataGridCell"},IC=t=>{"use no memo";return L2(t),t.root.className=oe(FC.root,t.root.className),t},sm=_.forwardRef((t,o)=>{const n=PC(t,o);return IC(n),nt("useDataGridCellStyles_unstable")(n),RC(n)});sm.displayName="DataGridCell";const DC=(t,o)=>{const n=tc(),s=om(),l=He(m=>m.subtleSelection),c=He(m=>n&&m.selection.selectionMode==="multiselect"?m.selection.allRowsSelected?!0:m.selection.someRowsSelected?"mixed":!1:m.selection.isRowSelected(s)),u=He(m=>m.selection.toggleAllRows),d=He(m=>m.selection.selectionMode==="multiselect"?"checkbox":"radio"),p=xe(m=>{var g;n&&u(m),(g=t.onClick)===null||g===void 0||g.call(t,m)});return TC({as:"div",role:"gridcell",checked:c,type:d,invisible:n&&d==="radio","aria-selected":c==="mixed"?void 0:c,subtle:l,radioIndicator:n?null:void 0,...t,onClick:p},o)},jC=t=>EC(t),oc={root:"fui-DataGridSelectionCell",checkboxIndicator:"fui-DataGridSelectionCell__checkboxIndicator",radioIndicator:"fui-DataGridSelectionCell__radioIndicator"},OC=t=>{"use no memo";return U2(t),t.root.className=oe(oc.root,t.root.className),t.checkboxIndicator&&(t.checkboxIndicator.className=oe(oc.checkboxIndicator,t.checkboxIndicator.className)),t.radioIndicator&&(t.radioIndicator.className=oe(oc.radioIndicator,t.radioIndicator.className)),t},nc=_.forwardRef((t,o)=>{const n=DC(t,o);return OC(n),nt("useDataGridSelectionCellStyles_unstable")(n),jC(n)});nc.displayName="DataGridSelectionCell";const AC=(t,o)=>{const n=om(),s=tc(),l=He(y=>y.columns),c=He(y=>y.selectableRows),u=He(y=>y.selection.isRowSelected(n)),d=He(y=>y.focusMode),p=He(y=>y.compositeRowTabsterAttribute),m=d==="row_unstable"||d==="composite",g=He(y=>!s&&c&&y.selection.isRowSelected(n)?y.selectionAppearance:"none"),v=He(y=>y.selection.toggleRow),w=xe(y=>{var S;c&&!s&&v(y,n),(S=t.onClick)===null||S===void 0||S.call(t,y)}),b=xe(y=>{var S;c&&!s&&y.key===gr&&!Mb(y.target)&&(y.preventDefault(),v(y,n)),(S=t.onKeyDown)===null||S===void 0||S.call(t,y)}),x=H2({appearance:g,"aria-selected":c?u:void 0,tabIndex:m&&!s?0:void 0,...d==="composite"&&!s&&p,...t,onClick:w,onKeyDown:b,children:null,as:"div"},o);return{...x,components:{...x.components,selectionCell:nc},selectionCell:Ke(t.selectionCell,{renderByDefault:c,elementType:nc}),renderCell:t.children,columnDefs:l,dataGridContextValue:LC()}};function LC(){const t=_.useRef(im);return He(o=>(t.current=o,null)),t.current}const MC=t=>yt(t.root,{children:[t.selectionCell&&fe(t.selectionCell,{}),t.columnDefs.map(o=>fe(CC,{value:o.columnId,children:t.renderCell(o,t.dataGridContextValue)},o.columnId))]}),lm={root:"fui-DataGridRow",selectionCell:"fui-DataGridRow__selectionCell"},qC=de({subtleSelection:{Bconypa:"f1jazu75",ff6mpl:"fw60kww"}},{d:[".f1jazu75[data-fui-focus-within]:focus-within .fui-TableSelectionCell{opacity:1;}"],h:[".fw60kww:hover .fui-TableSelectionCell{opacity:1;}"]}),HC=t=>{"use no memo";const o=He(s=>s.subtleSelection),n=qC();return Y2(t),t.root.className=oe(lm.root,t.root.className,o&&n.subtleSelection),t.selectionCell&&(t.selectionCell.className=oe(lm.selectionCell,t.selectionCell.className)),t},ic=_.forwardRef((t,o)=>{const n=AC(t,o);return HC(n),nt("useDataGridRowStyles_unstable")(n),MC(n)});ic.displayName="DataGridRow";const WC=(t,o)=>{const{sortable:n}=Xr(),s=He(d=>d.getRows),l=He(d=>d.sort.sort),c=n?l(s()):s();return{...J2({...t,children:null,as:"div"},o),rows:c,renderRow:t.children}},$C=t=>fe(t.root,{children:t.rows.map(o=>fe(NC,{value:o.rowId,children:t.renderRow(o)},o.rowId))}),VC={root:"fui-DataGridBody"},UC=t=>{"use no memo";return rC(t),t.root.className=oe(VC.root,t.root.className),t},am=_.forwardRef((t,o)=>{const n=WC(t,o);return UC(n),nt("useDataGridBodyStyles_unstable")(n),$C(n)});am.displayName="DataGridBody";const GC=(t,o)=>{const{items:n,columns:s,focusMode:l="cell",selectionMode:c,onSortChange:u,onSelectionChange:d,defaultSortState:p,sortState:m,selectedItems:g,defaultSelectedItems:v,subtleSelection:w=!1,selectionAppearance:b="brand",getRowId:x,resizableColumns:y,columnSizingOptions:S,onColumnResize:N,containerWidthOffset:E,resizableColumnsOptions:B={}}=t,T=E??(c?-44:0),R=xa({axis:"grid"}),{onTableKeyDown:O,tableTabsterAttribute:L,tableRowTabsterAttribute:W}=P2();var H;const Y=N2({items:n,columns:s,getRowId:x},[i2({defaultSortState:p,sortState:m,onSortChange:u}),o2({defaultSelectedItems:v,selectedItems:g,onSelectionChange:d,selectionMode:c??"multiselect"}),_2({onColumnResize:N,columnSizingOptions:S,containerWidthOffset:T,autoFitColumns:(H=B.autoFitColumns)!==null&&H!==void 0?H:!0})]),ce=_.useRef(null),{findFirstFocusable:ee,findLastFocusable:M}=Sa(),J=xe(ve=>{var ue;if((ue=t.onKeyDown)===null||ue===void 0||ue.call(t,ve),l==="composite"&&O(ve),!(!ce.current||!ve.ctrlKey||ve.defaultPrevented)){if(ve.key===Ap){const Z=ce.current.querySelector('[role="row"]');if(Z){var U;(U=ee(Z))===null||U===void 0||U.focus()}}if(ve.key===Op){const Z=ce.current.querySelectorAll('[role="row"]');if(Z.length){var re;const F=Z.item(Z.length-1);(re=M(F))===null||re===void 0||re.focus()}}}});return{...oC({role:"grid",as:"div",noNativeElements:!0,...l==="cell"&&R,...l==="composite"&&L,...t,onKeyDown:J,...y?Y.columnSizing_unstable.getTableProps(t):{}},pt(o,Y.tableRef,ce)),focusMode:l,tableState:Y,selectableRows:!!c,subtleSelection:w,selectionAppearance:b,resizableColumns:y,compositeRowTabsterAttribute:W}},KC=(t,o)=>_.createElement(zC,{value:o.dataGrid},nC(t,o)),XC={root:"fui-DataGrid"},QC=t=>{"use no memo";return cC(t),t.root.className=oe(XC.root,t.root.className),t};function YC(t){const o=uC(t),{tableState:n,focusMode:s,selectableRows:l,subtleSelection:c,selectionAppearance:u,resizableColumns:d,compositeRowTabsterAttribute:p}=t;return{...o,dataGrid:{...n,focusMode:s,selectableRows:l,subtleSelection:c,selectionAppearance:u,resizableColumns:d,compositeRowTabsterAttribute:p}}}const cm=_.forwardRef((t,o)=>{const n=GC(t,o);return QC(n),nt("useDataGridStyles_unstable")(n),KC(n,YC(n))});cm.displayName="DataGrid";const JC=(t,o)=>dC({...t,as:"div"},o),ZC=t=>fC(t),eB={root:"fui-DataGridHeader"},tB=t=>{"use no memo";return gC(t),t.root.className=oe(eB.root,t.root.className),t},um=_.forwardRef((t,o)=>{const n=JC(t,o);return tB(n),nt("useDataGridHeaderStyles_unstable")(n),ZC(n)});um.displayName="DataGridHeader";function rB(t){return t.compare.length>0}const oB=(t,o)=>{const n=tm(),{sortable:s}=Xr(),l=He(w=>w.sort.toggleColumnSort),c=He(w=>{const b=!!w.columns.find(x=>x.columnId===n&&rB(x));return s?b:!1}),u=He(w=>c?w.sort.getSortDirection(n):void 0),d=He(w=>w.resizableColumns),p=He(w=>w.columnSizing_unstable.getTableHeaderCellProps),{focusMode:m=c?"none":"cell"}=t,g=_a({tabBehavior:"limited-trap-focus"}),v=xe(w=>{var b;c&&l(w,n),(b=t.onClick)===null||b===void 0||b.call(t,w)});return bC({sortable:c,sortDirection:u,as:"div",tabIndex:m!=="none"?0:void 0,...m==="group"&&g,...d?p(n):{},...t,onClick:v},o)},nB=t=>yC(t),ks={root:"fui-DataGridHeaderCell",button:"fui-DataGridHeaderCell__button",sortIcon:"fui-DataGridHeaderCell__sortIcon",aside:"fui-DataGridHeaderCell__aside"},iB=t=>{"use no memo";return _C(t),t.root.className=oe(ks.root,t.root.className),t.button&&(t.button.className=oe(ks.button,t.button.className)),t.sortIcon&&(t.sortIcon.className=oe(ks.sortIcon,t.sortIcon.className)),t.aside&&(t.aside.className=oe(ks.aside,t.aside.className)),t},dm=_.forwardRef((t,o)=>{const n=oB(t,o);return iB(n),nt("useDataGridHeaderCellStyles_unstable")(n),nB(n)});dm.displayName="DataGridHeaderCell";const sB=(t,o)=>{const{size:n="medium",disabled:s=!1,root:l,contentBefore:c,dismiss:u,contentAfter:d,value:p,defaultValue:m,...g}=t,v=_.useRef(null),w=_.useRef(null),[b,x]=Hr({state:p,defaultState:m,initialState:""}),[y,S]=_.useState(!1),N=_.useCallback(()=>{S(!0)},[S]),E=_.useCallback(L=>{var W;S(!!(!((W=v.current)===null||W===void 0)&&W.contains(L.relatedTarget)))},[S]),B=af(l),T=xe(L=>{var W,H;if(cf(u)){var Y;(Y=u.onClick)===null||Y===void 0||Y.call(u,L)}const ce="";x(ce),(W=t.onChange)===null||W===void 0||W.call(t,L,{value:ce}),(H=w.current)===null||H===void 0||H.focus()}),R=_S({type:"search",disabled:s,size:n,value:b,root:Fe({...B,ref:pt(B?.ref,v),onFocus:Ct(B?.onFocus,N),onBlur:Ct(B?.onBlur,E)},{elementType:"span"}),contentBefore:Ke(c,{renderByDefault:!0,defaultProps:{children:_.createElement(Ok,null)},elementType:"span"}),contentAfter:Ke(d,{renderByDefault:!0,elementType:"span"}),...g,onChange:xe(L=>{var W;const H=L.target.value;(W=t.onChange)===null||W===void 0||W.call(t,L,{value:H}),x(H)})},pt(w,o)),O={...R,components:{...R.components,dismiss:"span"},dismiss:Ke(u,{defaultProps:{children:_.createElement(Kp,null),role:"button","aria-label":"clear",tabIndex:-1},renderByDefault:!0,elementType:"span"}),disabled:s,focused:y,size:n};return O.dismiss&&(O.dismiss.onClick=T),O},lB=t=>yt(t.root,{children:[t.contentBefore&&fe(t.contentBefore,{}),fe(t.input,{}),t.contentAfter&&yt(t.contentAfter,{children:[t.contentAfter.children,t.dismiss&&fe(t.dismiss,{})]})]}),Ln={root:"fui-SearchBox",dismiss:"fui-SearchBox__dismiss",contentAfter:"fui-SearchBox__contentAfter",contentBefore:"fui-SearchBox__contentBefore",input:"fui-SearchBox__input"},aB=de({small:{i8kkvl:"fjuset5",B2u0y6b:"f1xzfw5u",uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"]},medium:{i8kkvl:"fjuset5",B2u0y6b:"f1xzfw5u",uwmqm3:["f1f5gg8d","f1vdfbxk"],z189sj:["f1vdfbxk","f1f5gg8d"]},large:{i8kkvl:"fjuset5",B2u0y6b:"f1xzfw5u",uwmqm3:["f1ng84yb","f11gcy0p"],z189sj:["f11gcy0p","f1ng84yb"]},input:{uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fhxju0i","f1cnd47f"],Boqhc8c:"f18izjht",B8uat0v:"fcoa6sg"},unfocusedNoContentAfter:{z189sj:["fhxju0i","f1cnd47f"]}},{d:[".fjuset5{column-gap:0;}",".f1xzfw5u{max-width:468px;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f18izjht::-webkit-search-decoration{display:none;}",".fcoa6sg::-webkit-search-cancel-button{display:none;}"]}),cB=de({small:{z189sj:["fdw0yi8","fk8j09s"]},medium:{z189sj:["f1vdfbxk","f1f5gg8d"]},large:{z189sj:["f11gcy0p","f1ng84yb"]}},{d:[".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}"]}),uB=de({contentAfter:{uwmqm3:["f1uw59to","fw5db7e"],i8kkvl:"f1ufnopg"},rest:{Bqenvij:"fniina8",a9b677:"f3tsq5r",uwmqm3:["f1cnd47f","fhxju0i"],B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp"}},{d:[".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".fniina8{height:0;}",".f3tsq5r{width:0;}",".f1cnd47f{padding-left:0;}",".fhxju0i{padding-right:0;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}]]}),dB=ft("r1pvzcuu",null,[".r1pvzcuu{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;cursor:pointer;}",".r1pvzcuu>svg{font-size:20px;}"]),fB=de({disabled:{sj55zd:"f1s2aq7o"},small:{Duoase:"f3qv9w"},medium:{},large:{Duoase:"f16u2scb"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3qv9w>svg{font-size:16px;}",".f16u2scb>svg{font-size:24px;}"]}),pB=t=>{"use no memo";const{disabled:o,focused:n,size:s}=t,l=aB(),c=cB(),u=uB(),d=dB(),p=fB();return t.root.className=oe(Ln.root,l[s],!n&&l.unfocusedNoContentAfter,t.root.className),t.input.className=oe(Ln.input,l.input,!n&&c[s],t.input.className),t.dismiss&&(t.dismiss.className=oe(Ln.dismiss,d,o&&p.disabled,p[s],t.dismiss.className)),t.contentBefore&&(t.contentBefore.className=oe(Ln.contentBefore,t.contentBefore.className)),t.contentAfter?t.contentAfter.className=oe(Ln.contentAfter,u.contentAfter,!n&&u.rest,t.contentAfter.className):t.dismiss&&(t.dismiss.className=oe(t.dismiss.className,u.contentAfter)),zS(t),t},fm=_.forwardRef((t,o)=>{const n=sB(t,o);return pB(n),nt("useSearchBoxStyles_unstable")(n),lB(n)});fm.displayName="SearchBox";const hB=t=>{const o=Br("solution-dropdown"),n=Br("search-input"),s=()=>{if(!t.selectedSolutionId)return"";const p=t.solutions.find(m=>m.solutionid===t.selectedSolutionId);return p?p.friendlyname:""},l=(p,m)=>{const g=m.optionValue;t.onSolutionFilterChanged(g||void 0)},c=(p,m)=>{t.onTextFilterChanged(m.value)},d=Hi({root:{display:"flex",gap:"12px",alignItems:"flex-end"},field:{display:"grid",justifyItems:"start",gap:"2px"},dropdown:{minWidth:"350px"},searchInput:{minWidth:"300px"}})();return me.jsxs("div",{className:d.root,children:[me.jsxs("div",{className:d.field,children:[me.jsx("label",{htmlFor:o,children:"Solution"}),me.jsx(Xa,{id:o,placeholder:"Select a solution",value:s(),selectedOptions:t.selectedSolutionId?[t.selectedSolutionId]:[],onOptionSelect:l,className:d.dropdown,children:t.solutions.map(p=>me.jsx(ps,{value:p.solutionid,children:p.friendlyname},p.solutionid))})]}),me.jsxs("div",{className:d.field,children:[me.jsx("label",{htmlFor:n,children:"Filter Entities"}),me.jsx(fm,{id:n,placeholder:"Search by display name or logical name...",value:t.textFilter,onChange:c,className:d.searchInput})]}),me.jsx(Rh,{appearance:"primary",icon:me.jsx(jk,{}),onClick:t.onCountRecords,disabled:t.isCountingRecords,children:t.isCountingRecords?"Counting...":"Count Records"})]})},mB=Hi({scrollWrapper:{height:"100%",overflow:"auto",position:"relative"},gridContainer:{minWidth:"max-content"},stickyHeader:{position:"sticky",top:0,zIndex:10,backgroundColor:hr.colorNeutralBackground1},cellStyles:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},cellStylesRight:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",textAlign:"right"},viewDropdown:{width:"100%"}}),gB=t=>{const o=mB(),[n,s]=Bi.useState({sortColumn:"displayname",sortDirection:"ascending"}),l=[ys({columnId:"displayname",compare:(d,p)=>d.displayname.localeCompare(p.displayname),renderHeaderCell:()=>"Display Name",renderCell:d=>me.jsx("span",{title:d.displayname,className:o.cellStyles,children:d.displayname})}),ys({columnId:"logicalname",compare:(d,p)=>d.logicalname.localeCompare(p.logicalname),renderHeaderCell:()=>"Logical Name",renderCell:d=>me.jsx("span",{title:d.logicalname,className:o.cellStyles,children:d.logicalname})}),ys({columnId:"views",compare:()=>0,renderHeaderCell:()=>"View",renderCell:d=>{const m=d.views?.find(w=>w.savedqueryid===d.selectedViewId),g=m?m.name:"All",v=(w,b)=>{const x=b.optionValue==="All"?void 0:b.optionValue;t.onViewChange(d.logicalname,x)};return me.jsxs(Xa,{value:g,selectedOptions:[d.selectedViewId||"All"],onOptionSelect:v,className:o.viewDropdown,size:"medium",children:[me.jsx(ps,{value:"All",children:"All"},"all"),d.views?.map(w=>me.jsx(ps,{value:w.savedqueryid,children:w.name},w.savedqueryid))]})}}),ys({columnId:"recordCount",compare:(d,p)=>{const m=d.recordCount??-1,g=p.recordCount??-1;return m-g},renderHeaderCell:()=>me.jsx("div",{style:{textAlign:"right"},children:"Record Count"}),renderCell:d=>d.isLoading?me.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"8px"},children:[me.jsx(Ya,{size:"tiny"}),me.jsx("span",{children:"Progressing..."})]}):me.jsx("div",{style:{textAlign:"right"},children:d.recordCount!==void 0?d.recordCount.toLocaleString():"-"})})],c=Bi.useMemo(()=>[...t.items].sort((p,m)=>{const g=l.find(w=>w.columnId===n.sortColumn);if(!g||!g.compare)return 0;const v=g.compare(p,m);return n.sortDirection==="ascending"?v:-v}),[t.items,n]),u={displayname:{minWidth:300,defaultWidth:300},logicalname:{minWidth:300,defaultWidth:300},views:{minWidth:450,defaultWidth:450}};return me.jsx("div",{className:o.scrollWrapper,children:me.jsxs(cm,{items:c,columns:l,sortable:!0,sortState:n,onSortChange:(d,p)=>s(p),getRowId:d=>d.logicalname,className:o.gridContainer,resizableColumns:!0,columnSizingOptions:u,children:[me.jsx(um,{className:o.stickyHeader,children:me.jsx(ic,{children:({renderHeaderCell:d})=>me.jsx(dm,{children:d()})})}),me.jsx(am,{children:({item:d,rowId:p})=>me.jsx(ic,{children:({renderCell:m})=>me.jsx(sm,{children:m(d)})},p)})]})})},vB=({connection:t})=>{const[o,n]=_.useState([]),[s,l]=_.useState([]),[c,u]=_.useState(void 0),[d,p]=_.useState(""),[m,g]=_.useState(!1),[v,w]=_.useState(!1),[b,x]=_.useState(!1),[y,S]=_.useState(new Map),E=Hi({overviewRoot:{height:"100%",display:"flex",flexDirection:"column",gap:"16px",overflow:"hidden"},filterSection:{flexShrink:0},loadingContainer:{display:"flex",justifyContent:"center",alignItems:"center",padding:"40px"},dataGridSection:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",minHeight:0},eventLogSection:{flexShrink:0,height:"200px",overflow:"hidden"}})();_.useEffect(()=>{(async()=>{t&&(await T(),w0().then(Y=>{S(Y),Se.info(`Loaded views for ${Y.size} entities in background`)}).catch(Y=>{Se.error(`Error loading views in background: ${Y.message}`)}))})()},[t]),_.useEffect(()=>{t&&R()},[c]);const B=_.useCallback(async(H,Y,ce)=>{try{await window.toolboxAPI.utils.showNotification({title:H,body:Y,type:ce,duration:3e3})}catch(ee){console.error("Error showing notification:",ee)}},[]),T=_.useCallback(async()=>{try{w(!0);const H=await v0();n(H),Se.info(`Fetched ${H.length} solutions`)}catch(H){Se.error(`Error querying solutions: ${H.message}`),await B("Error",`Failed to load solutions: ${H.message}`,"error")}finally{w(!1)}},[B]),R=_.useCallback(async()=>{try{g(!0);const H=await b0(c);console.log("Loaded Entities:",H),console.log("Views By Entity:",y);const Y=H.map(ee=>{const M=y.get(ee.logicalname)||[];return{...ee,views:M}});l(Y),Se.info(`Fetched ${Y.length} entities with views`);const ce=c?" for selected solution":"";await B("Entities Loaded",`Successfully loaded ${Y.length} entities${ce}`,"success")}catch(H){Se.error(`Error querying entities: ${H.message}`),await B("Error",`Failed to load entities: ${H.message}`,"error")}finally{g(!1)}},[c,B]),O=Bi.useMemo(()=>{if(!d)return s;const H=d.toLowerCase();return s.filter(Y=>Y.displayname?.toLowerCase().includes(H)||Y.logicalname?.toLowerCase().includes(H))},[s,d]),L=_.useCallback(async()=>{try{x(!0),Se.info("Starting record count for all entities...");const H=O;l(ee=>ee.map(M=>H.find(J=>J.logicalname===M.logicalname)?{...M,isLoading:!0,recordCount:void 0}:M));const Y=H.filter(ee=>ee.views?.find(J=>J.savedqueryid===ee.selectedViewId)?.fetchxml),ce=H.filter(ee=>!ee.views?.find(J=>J.savedqueryid===ee.selectedViewId)?.fetchxml);if(ce.length>0){Se.info(`Batch counting ${ce.length} entities without views`);try{const ee=ce.map(J=>J.logicalname),M=await pd(ee);l(J=>J.map(ge=>M.hasOwnProperty(ge.logicalname)?{...ge,recordCount:M[ge.logicalname],isLoading:!1}:ge)),Se.info(`Batch count completed for ${ce.length} entities`)}catch(ee){Se.error(`Error in batch counting: ${ee.message}`),l(M=>M.map(J=>ce.find(ge=>ge.logicalname===J.logicalname)?{...J,recordCount:0,isLoading:!1}:J)),await B("Error",`Failed to count records: ${ee.message}`,"error");return}}for(const ee of Y)try{const M=ee.views?.find(ue=>ue.savedqueryid===ee.selectedViewId),J=M?.fetchxml,ge=await k0(ee.entitysetname,ee.logicalname,J);l(ue=>ue.map(U=>U.logicalname===ee.logicalname?{...U,recordCount:ge,isLoading:!1}:U));const ve=M?` (view: ${M.name})`:"";Se.info(`Counted ${ge} records for ${ee.logicalname}${ve}`),await B("Record Count Complete",`Successfully counted records for ${H.length} entities`,"success"),Se.info("Record count completed")}catch(M){Se.error(`Error counting records for ${ee.logicalname}: ${M.message}`),l(J=>J.map(ge=>ge.logicalname===ee.logicalname?{...ge,recordCount:0,isLoading:!1}:ge)),Se.error(`Error counting records: ${M.message}`),await B("Error",`Failed to count records: ${M.message}`,"error")}}finally{x(!1)}},[O,B]),W=_.useCallback((H,Y)=>{Se.info(`View changed for ${H} to: ${Y||"All"}`),l(ce=>ce.map(ee=>ee.logicalname===H?{...ee,selectedViewId:Y,recordCount:void 0}:ee))},[]);return me.jsx("div",{className:E.overviewRoot,children:m||v?me.jsx("div",{className:E.loadingContainer,children:me.jsx(Ya,{label:v?"Loading solutions...":"Loading entities..."})}):me.jsxs(me.Fragment,{children:[me.jsx("div",{className:E.filterSection,children:me.jsx(hB,{solutions:o,selectedSolutionId:c,textFilter:d,onSolutionFilterChanged:H=>{Se.info(`Solution filter changed to: ${H||"All"}`),u(H)},onTextFilterChanged:H=>{p(H)},onCountRecords:L,isCountingRecords:b})}),s.length>0&&me.jsx("div",{className:E.dataGridSection,children:me.jsx(gB,{items:O,onViewChange:W})})]})})};function bB(){const[t,o]=_.useState(null),[n,s]=_.useState(!0),l=_.useCallback(async()=>{try{const c=await window.toolboxAPI.connections.getActiveConnection();o(c)}catch(c){console.error("Error refreshing connection:",c)}finally{s(!1)}},[]);return _.useEffect(()=>{l()},[l]),{connection:t,isLoading:n,refreshConnection:l}}function yB(t){_.useEffect(()=>{const o=(n,s)=>{console.log(`Toolbox event received: ${s.event}`,s.data),t(s.event,s.data)};return window.toolboxAPI.events.on(o),()=>{}},[t])}const wB=""+new URL("fast-record-counter_small-CcFp3TaT.png",document.currentScript&&document.currentScript.tagName.toUpperCase()==="SCRIPT"&&document.currentScript.src||document.baseURI).href,kB=Hi({container:{backgroundColor:hr.colorNeutralBackground1,height:"100vh",display:"flex",flexDirection:"column",overflow:"hidden"},header:{padding:hr.spacingVerticalL,paddingBottom:hr.spacingVerticalS,borderBottom:`1px solid ${hr.colorNeutralStroke1}`,gap:hr.spacingVerticalXXS,flexShrink:0},headerTitle:{display:"flex",alignItems:"center",gap:hr.spacingHorizontalM},headerIcon:{height:"50px",objectFit:"contain"},subtitle:{color:hr.colorNeutralForeground3,fontSize:hr.fontSizeBase300},content:{padding:hr.spacingVerticalL,flex:1,overflow:"hidden",minHeight:0}});function xB(){const{connection:t,refreshConnection:o}=bB(),[n,s]=_.useState(Ep),l=kB(),c=_.useCallback((d,p)=>{switch(console.log(`Received event: ${d}`),d){case"connection:updated":case"connection:created":o();break;case"connection:deleted":o();break;case"terminal:output":case"terminal:command:completed":case"terminal:error":break;case"settings:updated":u(),Se.info("Settings updated");break}},[o]);async function u(){const d=await window.toolboxAPI.utils.getCurrentTheme();s(d==="dark"?Ep:ok),Se.info(`Theme updated:${d}`)}return yB(c),_.useEffect(()=>{(async()=>{await u(),Se.info("Initialized")})()},[]),me.jsx(Pp,{theme:n,children:me.jsxs("div",{className:l.container,children:[me.jsx("div",{className:l.header,children:me.jsxs("div",{className:l.headerTitle,children:[me.jsx("img",{src:wB,alt:"Fast Record Counter Icon",className:l.headerIcon}),me.jsx(r2,{children:"Fast Record Counter"}),me.jsx($h,{className:l.subtitle,children:"Count records across all entities in your environment"})]})}),me.jsx("div",{className:l.content,children:me.jsx(vB,{connection:t})})]})})}const Mn=document.getElementById("root");Mn&&!Mn.hasAttribute("data-reactroot-initialized")?(Mn.setAttribute("data-reactroot-initialized","true"),m0.createRoot(Mn).render(me.jsx(_.StrictMode,{children:me.jsx(xB,{})}))):Mn||console.error('Root element not found. Make sure the HTML contains <div id="root"></div>')})();
|