@_neronotte/theme-studio 0.1.2

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.
@@ -0,0 +1,29 @@
1
+ (function(){"use strict";var sp=document.createElement("style");sp.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}
2
+ /*$vite$:1*/`,document.head.appendChild(sp);function lp(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in e)){const s=Object.getOwnPropertyDescriptor(n,a);s&&Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function cp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qc={exports:{}},Gi={},Zc={exports:{}},Fe={};var up;function c5(){if(up)return Fe;up=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.iterator;function x(F){return F===null||typeof F!="object"?null:(F=v&&F[v]||F["@@iterator"],typeof F=="function"?F:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,k={};function B(F,V,ue){this.props=F,this.context=V,this.refs=k,this.updater=ue||w}B.prototype.isReactComponent={},B.prototype.setState=function(F,V){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,V,"setState")},B.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function z(){}z.prototype=B.prototype;function P(F,V,ue){this.props=F,this.context=V,this.refs=k,this.updater=ue||w}var j=P.prototype=new z;j.constructor=P,S(j,B.prototype),j.isPureReactComponent=!0;var N=Array.isArray,M=Object.prototype.hasOwnProperty,C={current:null},I={key:!0,ref:!0,__self:!0,__source:!0};function A(F,V,ue){var xe,Ee={},we=null,Be=null;if(V!=null)for(xe in V.ref!==void 0&&(Be=V.ref),V.key!==void 0&&(we=""+V.key),V)M.call(V,xe)&&!I.hasOwnProperty(xe)&&(Ee[xe]=V[xe]);var Te=arguments.length-2;if(Te===1)Ee.children=ue;else if(1<Te){for(var Ae=Array(Te),Ke=0;Ke<Te;Ke++)Ae[Ke]=arguments[Ke+2];Ee.children=Ae}if(F&&F.defaultProps)for(xe in Te=F.defaultProps,Te)Ee[xe]===void 0&&(Ee[xe]=Te[xe]);return{$$typeof:e,type:F,key:we,ref:Be,props:Ee,_owner:C.current}}function ae(F,V){return{$$typeof:e,type:F.type,key:V,ref:F.ref,props:F.props,_owner:F._owner}}function de(F){return typeof F=="object"&&F!==null&&F.$$typeof===e}function ee(F){var V={"=":"=0",":":"=2"};return"$"+F.replace(/[=:]/g,function(ue){return V[ue]})}var te=/\/+/g;function W(F,V){return typeof F=="object"&&F!==null&&F.key!=null?ee(""+F.key):V.toString(36)}function Y(F,V,ue,xe,Ee){var we=typeof F;(we==="undefined"||we==="boolean")&&(F=null);var Be=!1;if(F===null)Be=!0;else switch(we){case"string":case"number":Be=!0;break;case"object":switch(F.$$typeof){case e:case t:Be=!0}}if(Be)return Be=F,Ee=Ee(Be),F=xe===""?"."+W(Be,0):xe,N(Ee)?(ue="",F!=null&&(ue=F.replace(te,"$&/")+"/"),Y(Ee,V,ue,"",function(Ke){return Ke})):Ee!=null&&(de(Ee)&&(Ee=ae(Ee,ue+(!Ee.key||Be&&Be.key===Ee.key?"":(""+Ee.key).replace(te,"$&/")+"/")+F)),V.push(Ee)),1;if(Be=0,xe=xe===""?".":xe+":",N(F))for(var Te=0;Te<F.length;Te++){we=F[Te];var Ae=xe+W(we,Te);Be+=Y(we,V,ue,Ae,Ee)}else if(Ae=x(F),typeof Ae=="function")for(F=Ae.call(F),Te=0;!(we=F.next()).done;)we=we.value,Ae=xe+W(we,Te++),Be+=Y(we,V,ue,Ae,Ee);else if(we==="object")throw V=String(F),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.");return Be}function X(F,V,ue){if(F==null)return F;var xe=[],Ee=0;return Y(F,xe,"","",function(we){return V.call(ue,we,Ee++)}),xe}function O(F){if(F._status===-1){var V=F._result;V=V(),V.then(function(ue){(F._status===0||F._status===-1)&&(F._status=1,F._result=ue)},function(ue){(F._status===0||F._status===-1)&&(F._status=2,F._result=ue)}),F._status===-1&&(F._status=0,F._result=V)}if(F._status===1)return F._result.default;throw F._result}var Z={current:null},q={transition:null},G={ReactCurrentDispatcher:Z,ReactCurrentBatchConfig:q,ReactCurrentOwner:C};function K(){throw Error("act(...) is not supported in production builds of React.")}return Fe.Children={map:X,forEach:function(F,V,ue){X(F,function(){V.apply(this,arguments)},ue)},count:function(F){var V=0;return X(F,function(){V++}),V},toArray:function(F){return X(F,function(V){return V})||[]},only:function(F){if(!de(F))throw Error("React.Children.only expected to receive a single React element child.");return F}},Fe.Component=B,Fe.Fragment=r,Fe.Profiler=a,Fe.PureComponent=P,Fe.StrictMode=n,Fe.Suspense=f,Fe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=G,Fe.act=K,Fe.cloneElement=function(F,V,ue){if(F==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+F+".");var xe=S({},F.props),Ee=F.key,we=F.ref,Be=F._owner;if(V!=null){if(V.ref!==void 0&&(we=V.ref,Be=C.current),V.key!==void 0&&(Ee=""+V.key),F.type&&F.type.defaultProps)var Te=F.type.defaultProps;for(Ae in V)M.call(V,Ae)&&!I.hasOwnProperty(Ae)&&(xe[Ae]=V[Ae]===void 0&&Te!==void 0?Te[Ae]:V[Ae])}var Ae=arguments.length-2;if(Ae===1)xe.children=ue;else if(1<Ae){Te=Array(Ae);for(var Ke=0;Ke<Ae;Ke++)Te[Ke]=arguments[Ke+2];xe.children=Te}return{$$typeof:e,type:F.type,key:Ee,ref:we,props:xe,_owner:Be}},Fe.createContext=function(F){return F={$$typeof:c,_currentValue:F,_currentValue2:F,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},F.Provider={$$typeof:s,_context:F},F.Consumer=F},Fe.createElement=A,Fe.createFactory=function(F){var V=A.bind(null,F);return V.type=F,V},Fe.createRef=function(){return{current:null}},Fe.forwardRef=function(F){return{$$typeof:u,render:F}},Fe.isValidElement=de,Fe.lazy=function(F){return{$$typeof:g,_payload:{_status:-1,_result:F},_init:O}},Fe.memo=function(F,V){return{$$typeof:p,type:F,compare:V===void 0?null:V}},Fe.startTransition=function(F){var V=q.transition;q.transition={};try{F()}finally{q.transition=V}},Fe.unstable_act=K,Fe.useCallback=function(F,V){return Z.current.useCallback(F,V)},Fe.useContext=function(F){return Z.current.useContext(F)},Fe.useDebugValue=function(){},Fe.useDeferredValue=function(F){return Z.current.useDeferredValue(F)},Fe.useEffect=function(F,V){return Z.current.useEffect(F,V)},Fe.useId=function(){return Z.current.useId()},Fe.useImperativeHandle=function(F,V,ue){return Z.current.useImperativeHandle(F,V,ue)},Fe.useInsertionEffect=function(F,V){return Z.current.useInsertionEffect(F,V)},Fe.useLayoutEffect=function(F,V){return Z.current.useLayoutEffect(F,V)},Fe.useMemo=function(F,V){return Z.current.useMemo(F,V)},Fe.useReducer=function(F,V,ue){return Z.current.useReducer(F,V,ue)},Fe.useRef=function(F){return Z.current.useRef(F)},Fe.useState=function(F){return Z.current.useState(F)},Fe.useSyncExternalStore=function(F,V,ue){return Z.current.useSyncExternalStore(F,V,ue)},Fe.useTransition=function(){return Z.current.useTransition()},Fe.version="18.3.1",Fe}var dp;function vs(){return dp||(dp=1,Zc.exports=c5()),Zc.exports}var fp;function u5(){if(fp)return Gi;fp=1;var e=vs(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(u,f,p){var g,v={},x=null,w=null;p!==void 0&&(x=""+p),f.key!==void 0&&(x=""+f.key),f.ref!==void 0&&(w=f.ref);for(g in f)n.call(f,g)&&!s.hasOwnProperty(g)&&(v[g]=f[g]);if(u&&u.defaultProps)for(g in f=u.defaultProps,f)v[g]===void 0&&(v[g]=f[g]);return{$$typeof:t,type:u,key:x,ref:w,props:v,_owner:a.current}}return Gi.Fragment=r,Gi.jsx=c,Gi.jsxs=c,Gi}var pp;function d5(){return pp||(pp=1,Qc.exports=u5()),Qc.exports}var m=d5();const f5=lp({__proto__:null,default:cp(m)},[m]);var y=vs();const Jc=cp(y),hp=lp({__proto__:null,default:Jc},[y]);var bs={},eu={exports:{}},$t={},tu={exports:{}},ru={};var gp;function p5(){return gp||(gp=1,(function(e){function t(q,G){var K=q.length;q.push(G);e:for(;0<K;){var F=K-1>>>1,V=q[F];if(0<a(V,G))q[F]=G,q[K]=V,K=F;else break e}}function r(q){return q.length===0?null:q[0]}function n(q){if(q.length===0)return null;var G=q[0],K=q.pop();if(K!==G){q[0]=K;e:for(var F=0,V=q.length,ue=V>>>1;F<ue;){var xe=2*(F+1)-1,Ee=q[xe],we=xe+1,Be=q[we];if(0>a(Ee,K))we<V&&0>a(Be,Ee)?(q[F]=Be,q[we]=K,F=we):(q[F]=Ee,q[xe]=K,F=xe);else if(we<V&&0>a(Be,K))q[F]=Be,q[we]=K,F=we;else break e}}return G}function a(q,G){var K=q.sortIndex-G.sortIndex;return K!==0?K:q.id-G.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,u=c.now();e.unstable_now=function(){return c.now()-u}}var f=[],p=[],g=1,v=null,x=3,w=!1,S=!1,k=!1,B=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(q){for(var G=r(p);G!==null;){if(G.callback===null)n(p);else if(G.startTime<=q)n(p),G.sortIndex=G.expirationTime,t(f,G);else break;G=r(p)}}function N(q){if(k=!1,j(q),!S)if(r(f)!==null)S=!0,O(M);else{var G=r(p);G!==null&&Z(N,G.startTime-q)}}function M(q,G){S=!1,k&&(k=!1,z(A),A=-1),w=!0;var K=x;try{for(j(G),v=r(f);v!==null&&(!(v.expirationTime>G)||q&&!ee());){var F=v.callback;if(typeof F=="function"){v.callback=null,x=v.priorityLevel;var V=F(v.expirationTime<=G);G=e.unstable_now(),typeof V=="function"?v.callback=V:v===r(f)&&n(f),j(G)}else n(f);v=r(f)}if(v!==null)var ue=!0;else{var xe=r(p);xe!==null&&Z(N,xe.startTime-G),ue=!1}return ue}finally{v=null,x=K,w=!1}}var C=!1,I=null,A=-1,ae=5,de=-1;function ee(){return!(e.unstable_now()-de<ae)}function te(){if(I!==null){var q=e.unstable_now();de=q;var G=!0;try{G=I(!0,q)}finally{G?W():(C=!1,I=null)}}else C=!1}var W;if(typeof P=="function")W=function(){P(te)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,X=Y.port2;Y.port1.onmessage=te,W=function(){X.postMessage(null)}}else W=function(){B(te,0)};function O(q){I=q,C||(C=!0,W())}function Z(q,G){A=B(function(){q(e.unstable_now())},G)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(q){q.callback=null},e.unstable_continueExecution=function(){S||w||(S=!0,O(M))},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_getFirstCallbackNode=function(){return r(f)},e.unstable_next=function(q){switch(x){case 1:case 2:case 3:var G=3;break;default:G=x}var K=x;x=G;try{return q()}finally{x=K}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(q,G){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var K=x;x=q;try{return G()}finally{x=K}},e.unstable_scheduleCallback=function(q,G,K){var F=e.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?F+K:F):K=F,q){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=K+V,q={id:g++,callback:G,priorityLevel:q,startTime:K,expirationTime:V,sortIndex:-1},K>F?(q.sortIndex=K,t(p,q),r(f)===null&&q===r(p)&&(k?(z(A),A=-1):k=!0,Z(N,K-F))):(q.sortIndex=V,t(f,q),S||w||(S=!0,O(M))),q},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(q){var G=x;return function(){var K=x;x=G;try{return q.apply(this,arguments)}finally{x=K}}}})(ru)),ru}var mp;function h5(){return mp||(mp=1,tu.exports=p5()),tu.exports}var vp;function g5(){if(vp)return $t;vp=1;var e=vs(),t=h5();function r(o){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+o,l=1;l<arguments.length;l++)i+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+o+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,a={};function s(o,i){c(o,i),c(o+"Capture",i)}function c(o,i){for(a[o]=i,o=0;o<i.length;o++)n.add(i[o])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,p=/^[: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 x(o){return f.call(v,o)?!0:f.call(g,o)?!1:p.test(o)?v[o]=!0:(g[o]=!0,!1)}function w(o,i,l,d){if(l!==null&&l.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return d?!1:l!==null?!l.acceptsBooleans:(o=o.toLowerCase().slice(0,5),o!=="data-"&&o!=="aria-");default:return!1}}function S(o,i,l,d){if(i===null||typeof i>"u"||w(o,i,l,d))return!0;if(d)return!1;if(l!==null)switch(l.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function k(o,i,l,d,h,b,_){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=d,this.attributeNamespace=h,this.mustUseProperty=l,this.propertyName=o,this.type=i,this.sanitizeURL=b,this.removeEmptyString=_}var B={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){B[o]=new k(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var i=o[0];B[i]=new k(i,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){B[o]=new k(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){B[o]=new k(o,2,!1,o,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(o){B[o]=new k(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){B[o]=new k(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){B[o]=new k(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){B[o]=new k(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){B[o]=new k(o,5,!1,o.toLowerCase(),null,!1,!1)});var z=/[\-:]([a-z])/g;function P(o){return o[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(o){var i=o.replace(z,P);B[i]=new k(i,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var i=o.replace(z,P);B[i]=new k(i,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var i=o.replace(z,P);B[i]=new k(i,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){B[o]=new k(o,1,!1,o.toLowerCase(),null,!1,!1)}),B.xlinkHref=new k("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){B[o]=new k(o,1,!1,o.toLowerCase(),null,!0,!0)});function j(o,i,l,d){var h=B.hasOwnProperty(i)?B[i]:null;(h!==null?h.type!==0:d||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(S(i,l,h,d)&&(l=null),d||h===null?x(i)&&(l===null?o.removeAttribute(i):o.setAttribute(i,""+l)):h.mustUseProperty?o[h.propertyName]=l===null?h.type===3?!1:"":l:(i=h.attributeName,d=h.attributeNamespace,l===null?o.removeAttribute(i):(h=h.type,l=h===3||h===4&&l===!0?"":""+l,d?o.setAttributeNS(d,i,l):o.setAttribute(i,l))))}var N=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,M=Symbol.for("react.element"),C=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),de=Symbol.for("react.provider"),ee=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),Z=Symbol.for("react.offscreen"),q=Symbol.iterator;function G(o){return o===null||typeof o!="object"?null:(o=q&&o[q]||o["@@iterator"],typeof o=="function"?o:null)}var K=Object.assign,F;function V(o){if(F===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);F=i&&i[1]||""}return`
3
+ `+F+o}var ue=!1;function xe(o,i){if(!o||ue)return"";ue=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(U){var d=U}Reflect.construct(o,[],i)}else{try{i.call()}catch(U){d=U}o.call(i.prototype)}else{try{throw Error()}catch(U){d=U}o()}}catch(U){if(U&&d&&typeof U.stack=="string"){for(var h=U.stack.split(`
4
+ `),b=d.stack.split(`
5
+ `),_=h.length-1,R=b.length-1;1<=_&&0<=R&&h[_]!==b[R];)R--;for(;1<=_&&0<=R;_--,R--)if(h[_]!==b[R]){if(_!==1||R!==1)do if(_--,R--,0>R||h[_]!==b[R]){var E=`
6
+ `+h[_].replace(" at new "," at ");return o.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",o.displayName)),E}while(1<=_&&0<=R);break}}}finally{ue=!1,Error.prepareStackTrace=l}return(o=o?o.displayName||o.name:"")?V(o):""}function Ee(o){switch(o.tag){case 5:return V(o.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return o=xe(o.type,!1),o;case 11:return o=xe(o.type.render,!1),o;case 1:return o=xe(o.type,!0),o;default:return""}}function we(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case I:return"Fragment";case C:return"Portal";case ae:return"Profiler";case A:return"StrictMode";case W:return"Suspense";case Y:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case ee:return(o.displayName||"Context")+".Consumer";case de:return(o._context.displayName||"Context")+".Provider";case te:var i=o.render;return o=o.displayName,o||(o=i.displayName||i.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case X:return i=o.displayName||null,i!==null?i:we(o.type)||"Memo";case O:i=o._payload,o=o._init;try{return we(o(i))}catch{}}return null}function Be(o){var i=o.type;switch(o.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=i.render,o=o.displayName||o.name||"",i.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return we(i);case 8:return i===A?"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 i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function Te(o){switch(typeof o){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Ae(o){var i=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Ke(o){var i=Ae(o)?"checked":"value",l=Object.getOwnPropertyDescriptor(o.constructor.prototype,i),d=""+o[i];if(!o.hasOwnProperty(i)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var h=l.get,b=l.set;return Object.defineProperty(o,i,{configurable:!0,get:function(){return h.call(this)},set:function(_){d=""+_,b.call(this,_)}}),Object.defineProperty(o,i,{enumerable:l.enumerable}),{getValue:function(){return d},setValue:function(_){d=""+_},stopTracking:function(){o._valueTracker=null,delete o[i]}}}}function Ur(o){o._valueTracker||(o._valueTracker=Ke(o))}function jn(o){if(!o)return!1;var i=o._valueTracker;if(!i)return!0;var l=i.getValue(),d="";return o&&(d=Ae(o)?o.checked?"true":"false":o.value),o=d,o!==l?(i.setValue(o),!0):!1}function wi(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}function Pa(o,i){var l=i.checked;return K({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??o._wrapperState.initialChecked})}function _e(o,i){var l=i.defaultValue==null?"":i.defaultValue,d=i.checked!=null?i.checked:i.defaultChecked;l=Te(i.value!=null?i.value:l),o._wrapperState={initialChecked:d,initialValue:l,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function qe(o,i){i=i.checked,i!=null&&j(o,"checked",i,!1)}function Ft(o,i){qe(o,i);var l=Te(i.value),d=i.type;if(l!=null)d==="number"?(l===0&&o.value===""||o.value!=l)&&(o.value=""+l):o.value!==""+l&&(o.value=""+l);else if(d==="submit"||d==="reset"){o.removeAttribute("value");return}i.hasOwnProperty("value")?qo(o,i.type,l):i.hasOwnProperty("defaultValue")&&qo(o,i.type,Te(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(o.defaultChecked=!!i.defaultChecked)}function Do(o,i,l){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var d=i.type;if(!(d!=="submit"&&d!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+o._wrapperState.initialValue,l||i===o.value||(o.value=i),o.defaultValue=i}l=o.name,l!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,l!==""&&(o.name=l)}function qo(o,i,l){(i!=="number"||wi(o.ownerDocument)!==o)&&(l==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+l&&(o.defaultValue=""+l))}var Ra=Array.isArray;function ki(o,i,l,d){if(o=o.options,i){i={};for(var h=0;h<l.length;h++)i["$"+l[h]]=!0;for(l=0;l<o.length;l++)h=i.hasOwnProperty("$"+o[l].value),o[l].selected!==h&&(o[l].selected=h),h&&d&&(o[l].defaultSelected=!0)}else{for(l=""+Te(l),i=null,h=0;h<o.length;h++){if(o[h].value===l){o[h].selected=!0,d&&(o[h].defaultSelected=!0);return}i!==null||o[h].disabled||(i=o[h])}i!==null&&(i.selected=!0)}}function vf(o,i){if(i.dangerouslySetInnerHTML!=null)throw Error(r(91));return K({},i,{value:void 0,defaultValue:void 0,children:""+o._wrapperState.initialValue})}function yy(o,i){var l=i.value;if(l==null){if(l=i.children,i=i.defaultValue,l!=null){if(i!=null)throw Error(r(92));if(Ra(l)){if(1<l.length)throw Error(r(93));l=l[0]}i=l}i==null&&(i=""),l=i}o._wrapperState={initialValue:Te(l)}}function xy(o,i){var l=Te(i.value),d=Te(i.defaultValue);l!=null&&(l=""+l,l!==o.value&&(o.value=l),i.defaultValue==null&&o.defaultValue!==l&&(o.defaultValue=l)),d!=null&&(o.defaultValue=""+d)}function wy(o){var i=o.textContent;i===o._wrapperState.initialValue&&i!==""&&i!==null&&(o.value=i)}function ky(o){switch(o){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 bf(o,i){return o==null||o==="http://www.w3.org/1999/xhtml"?ky(i):o==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":o}var Vl,Sy=(function(o){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,l,d,h){MSApp.execUnsafeLocalFunction(function(){return o(i,l,d,h)})}:o})(function(o,i){if(o.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in o)o.innerHTML=i;else{for(Vl=Vl||document.createElement("div"),Vl.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=Vl.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;i.firstChild;)o.appendChild(i.firstChild)}});function Ma(o,i){if(i){var l=o.firstChild;if(l&&l===o.lastChild&&l.nodeType===3){l.nodeValue=i;return}}o.textContent=i}var Ea={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},lI=["Webkit","ms","Moz","O"];Object.keys(Ea).forEach(function(o){lI.forEach(function(i){i=i+o.charAt(0).toUpperCase()+o.substring(1),Ea[i]=Ea[o]})});function By(o,i,l){return i==null||typeof i=="boolean"||i===""?"":l||typeof i!="number"||i===0||Ea.hasOwnProperty(o)&&Ea[o]?(""+i).trim():i+"px"}function zy(o,i){o=o.style;for(var l in i)if(i.hasOwnProperty(l)){var d=l.indexOf("--")===0,h=By(l,i[l],d);l==="float"&&(l="cssFloat"),d?o.setProperty(l,h):o[l]=h}}var cI=K({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 yf(o,i){if(i){if(cI[o]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(r(137,o));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(r(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(r(61))}if(i.style!=null&&typeof i.style!="object")throw Error(r(62))}}function xf(o,i){if(o.indexOf("-")===-1)return typeof i.is=="string";switch(o){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 wf=null;function kf(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Sf=null,Si=null,Bi=null;function jy(o){if(o=rs(o)){if(typeof Sf!="function")throw Error(r(280));var i=o.stateNode;i&&(i=fc(i),Sf(o.stateNode,o.type,i))}}function _y(o){Si?Bi?Bi.push(o):Bi=[o]:Si=o}function Cy(){if(Si){var o=Si,i=Bi;if(Bi=Si=null,jy(o),i)for(o=0;o<i.length;o++)jy(i[o])}}function Ny(o,i){return o(i)}function Ty(){}var Bf=!1;function Py(o,i,l){if(Bf)return o(i,l);Bf=!0;try{return Ny(o,i,l)}finally{Bf=!1,(Si!==null||Bi!==null)&&(Ty(),Cy())}}function Ia(o,i){var l=o.stateNode;if(l===null)return null;var d=fc(l);if(d===null)return null;l=d[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(o=o.type,d=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!d;break e;default:o=!1}if(o)return null;if(l&&typeof l!="function")throw Error(r(231,i,typeof l));return l}var zf=!1;if(u)try{var Fa={};Object.defineProperty(Fa,"passive",{get:function(){zf=!0}}),window.addEventListener("test",Fa,Fa),window.removeEventListener("test",Fa,Fa)}catch{zf=!1}function uI(o,i,l,d,h,b,_,R,E){var U=Array.prototype.slice.call(arguments,3);try{i.apply(l,U)}catch(ie){this.onError(ie)}}var Aa=!1,Wl=null,$l=!1,jf=null,dI={onError:function(o){Aa=!0,Wl=o}};function fI(o,i,l,d,h,b,_,R,E){Aa=!1,Wl=null,uI.apply(dI,arguments)}function pI(o,i,l,d,h,b,_,R,E){if(fI.apply(this,arguments),Aa){if(Aa){var U=Wl;Aa=!1,Wl=null}else throw Error(r(198));$l||($l=!0,jf=U)}}function _n(o){var i=o,l=o;if(o.alternate)for(;i.return;)i=i.return;else{o=i;do i=o,(i.flags&4098)!==0&&(l=i.return),o=i.return;while(o)}return i.tag===3?l:null}function Ry(o){if(o.tag===13){var i=o.memoizedState;if(i===null&&(o=o.alternate,o!==null&&(i=o.memoizedState)),i!==null)return i.dehydrated}return null}function My(o){if(_n(o)!==o)throw Error(r(188))}function hI(o){var i=o.alternate;if(!i){if(i=_n(o),i===null)throw Error(r(188));return i!==o?null:o}for(var l=o,d=i;;){var h=l.return;if(h===null)break;var b=h.alternate;if(b===null){if(d=h.return,d!==null){l=d;continue}break}if(h.child===b.child){for(b=h.child;b;){if(b===l)return My(h),o;if(b===d)return My(h),i;b=b.sibling}throw Error(r(188))}if(l.return!==d.return)l=h,d=b;else{for(var _=!1,R=h.child;R;){if(R===l){_=!0,l=h,d=b;break}if(R===d){_=!0,d=h,l=b;break}R=R.sibling}if(!_){for(R=b.child;R;){if(R===l){_=!0,l=b,d=h;break}if(R===d){_=!0,d=b,l=h;break}R=R.sibling}if(!_)throw Error(r(189))}}if(l.alternate!==d)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?o:i}function Ey(o){return o=hI(o),o!==null?Iy(o):null}function Iy(o){if(o.tag===5||o.tag===6)return o;for(o=o.child;o!==null;){var i=Iy(o);if(i!==null)return i;o=o.sibling}return null}var Fy=t.unstable_scheduleCallback,Ay=t.unstable_cancelCallback,gI=t.unstable_shouldYield,mI=t.unstable_requestPaint,gt=t.unstable_now,vI=t.unstable_getCurrentPriorityLevel,_f=t.unstable_ImmediatePriority,Dy=t.unstable_UserBlockingPriority,Ul=t.unstable_NormalPriority,bI=t.unstable_LowPriority,qy=t.unstable_IdlePriority,Gl=null,Gr=null;function yI(o){if(Gr&&typeof Gr.onCommitFiberRoot=="function")try{Gr.onCommitFiberRoot(Gl,o,void 0,(o.current.flags&128)===128)}catch{}}var Rr=Math.clz32?Math.clz32:kI,xI=Math.log,wI=Math.LN2;function kI(o){return o>>>=0,o===0?32:31-(xI(o)/wI|0)|0}var Xl=64,Kl=4194304;function Da(o){switch(o&-o){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 o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function Yl(o,i){var l=o.pendingLanes;if(l===0)return 0;var d=0,h=o.suspendedLanes,b=o.pingedLanes,_=l&268435455;if(_!==0){var R=_&~h;R!==0?d=Da(R):(b&=_,b!==0&&(d=Da(b)))}else _=l&~h,_!==0?d=Da(_):b!==0&&(d=Da(b));if(d===0)return 0;if(i!==0&&i!==d&&(i&h)===0&&(h=d&-d,b=i&-i,h>=b||h===16&&(b&4194240)!==0))return i;if((d&4)!==0&&(d|=l&16),i=o.entangledLanes,i!==0)for(o=o.entanglements,i&=d;0<i;)l=31-Rr(i),h=1<<l,d|=o[l],i&=~h;return d}function SI(o,i){switch(o){case 1:case 2:case 4:return i+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 i+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 BI(o,i){for(var l=o.suspendedLanes,d=o.pingedLanes,h=o.expirationTimes,b=o.pendingLanes;0<b;){var _=31-Rr(b),R=1<<_,E=h[_];E===-1?((R&l)===0||(R&d)!==0)&&(h[_]=SI(R,i)):E<=i&&(o.expiredLanes|=R),b&=~R}}function Cf(o){return o=o.pendingLanes&-1073741825,o!==0?o:o&1073741824?1073741824:0}function Oy(){var o=Xl;return Xl<<=1,(Xl&4194240)===0&&(Xl=64),o}function Nf(o){for(var i=[],l=0;31>l;l++)i.push(o);return i}function qa(o,i,l){o.pendingLanes|=i,i!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,i=31-Rr(i),o[i]=l}function zI(o,i){var l=o.pendingLanes&~i;o.pendingLanes=i,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=i,o.mutableReadLanes&=i,o.entangledLanes&=i,i=o.entanglements;var d=o.eventTimes;for(o=o.expirationTimes;0<l;){var h=31-Rr(l),b=1<<h;i[h]=0,d[h]=-1,o[h]=-1,l&=~b}}function Tf(o,i){var l=o.entangledLanes|=i;for(o=o.entanglements;l;){var d=31-Rr(l),h=1<<d;h&i|o[d]&i&&(o[d]|=i),l&=~h}}var Ye=0;function Hy(o){return o&=-o,1<o?4<o?(o&268435455)!==0?16:536870912:4:1}var Ly,Pf,Vy,Wy,$y,Rf=!1,Ql=[],Oo=null,Ho=null,Lo=null,Oa=new Map,Ha=new Map,Vo=[],jI="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 Uy(o,i){switch(o){case"focusin":case"focusout":Oo=null;break;case"dragenter":case"dragleave":Ho=null;break;case"mouseover":case"mouseout":Lo=null;break;case"pointerover":case"pointerout":Oa.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ha.delete(i.pointerId)}}function La(o,i,l,d,h,b){return o===null||o.nativeEvent!==b?(o={blockedOn:i,domEventName:l,eventSystemFlags:d,nativeEvent:b,targetContainers:[h]},i!==null&&(i=rs(i),i!==null&&Pf(i)),o):(o.eventSystemFlags|=d,i=o.targetContainers,h!==null&&i.indexOf(h)===-1&&i.push(h),o)}function _I(o,i,l,d,h){switch(i){case"focusin":return Oo=La(Oo,o,i,l,d,h),!0;case"dragenter":return Ho=La(Ho,o,i,l,d,h),!0;case"mouseover":return Lo=La(Lo,o,i,l,d,h),!0;case"pointerover":var b=h.pointerId;return Oa.set(b,La(Oa.get(b)||null,o,i,l,d,h)),!0;case"gotpointercapture":return b=h.pointerId,Ha.set(b,La(Ha.get(b)||null,o,i,l,d,h)),!0}return!1}function Gy(o){var i=Cn(o.target);if(i!==null){var l=_n(i);if(l!==null){if(i=l.tag,i===13){if(i=Ry(l),i!==null){o.blockedOn=i,$y(o.priority,function(){Vy(l)});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){o.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Zl(o){if(o.blockedOn!==null)return!1;for(var i=o.targetContainers;0<i.length;){var l=Ef(o.domEventName,o.eventSystemFlags,i[0],o.nativeEvent);if(l===null){l=o.nativeEvent;var d=new l.constructor(l.type,l);wf=d,l.target.dispatchEvent(d),wf=null}else return i=rs(l),i!==null&&Pf(i),o.blockedOn=l,!1;i.shift()}return!0}function Xy(o,i,l){Zl(o)&&l.delete(i)}function CI(){Rf=!1,Oo!==null&&Zl(Oo)&&(Oo=null),Ho!==null&&Zl(Ho)&&(Ho=null),Lo!==null&&Zl(Lo)&&(Lo=null),Oa.forEach(Xy),Ha.forEach(Xy)}function Va(o,i){o.blockedOn===i&&(o.blockedOn=null,Rf||(Rf=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,CI)))}function Wa(o){function i(h){return Va(h,o)}if(0<Ql.length){Va(Ql[0],o);for(var l=1;l<Ql.length;l++){var d=Ql[l];d.blockedOn===o&&(d.blockedOn=null)}}for(Oo!==null&&Va(Oo,o),Ho!==null&&Va(Ho,o),Lo!==null&&Va(Lo,o),Oa.forEach(i),Ha.forEach(i),l=0;l<Vo.length;l++)d=Vo[l],d.blockedOn===o&&(d.blockedOn=null);for(;0<Vo.length&&(l=Vo[0],l.blockedOn===null);)Gy(l),l.blockedOn===null&&Vo.shift()}var zi=N.ReactCurrentBatchConfig,Jl=!0;function NI(o,i,l,d){var h=Ye,b=zi.transition;zi.transition=null;try{Ye=1,Mf(o,i,l,d)}finally{Ye=h,zi.transition=b}}function TI(o,i,l,d){var h=Ye,b=zi.transition;zi.transition=null;try{Ye=4,Mf(o,i,l,d)}finally{Ye=h,zi.transition=b}}function Mf(o,i,l,d){if(Jl){var h=Ef(o,i,l,d);if(h===null)Qf(o,i,d,ec,l),Uy(o,d);else if(_I(h,o,i,l,d))d.stopPropagation();else if(Uy(o,d),i&4&&-1<jI.indexOf(o)){for(;h!==null;){var b=rs(h);if(b!==null&&Ly(b),b=Ef(o,i,l,d),b===null&&Qf(o,i,d,ec,l),b===h)break;h=b}h!==null&&d.stopPropagation()}else Qf(o,i,d,null,l)}}var ec=null;function Ef(o,i,l,d){if(ec=null,o=kf(d),o=Cn(o),o!==null)if(i=_n(o),i===null)o=null;else if(l=i.tag,l===13){if(o=Ry(i),o!==null)return o;o=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null);return ec=o,null}function Ky(o){switch(o){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(vI()){case _f:return 1;case Dy:return 4;case Ul:case bI:return 16;case qy:return 536870912;default:return 16}default:return 16}}var Wo=null,If=null,tc=null;function Yy(){if(tc)return tc;var o,i=If,l=i.length,d,h="value"in Wo?Wo.value:Wo.textContent,b=h.length;for(o=0;o<l&&i[o]===h[o];o++);var _=l-o;for(d=1;d<=_&&i[l-d]===h[b-d];d++);return tc=h.slice(o,1<d?1-d:void 0)}function rc(o){var i=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&i===13&&(o=13)):o=i,o===10&&(o=13),32<=o||o===13?o:0}function oc(){return!0}function Qy(){return!1}function ar(o){function i(l,d,h,b,_){this._reactName=l,this._targetInst=h,this.type=d,this.nativeEvent=b,this.target=_,this.currentTarget=null;for(var R in o)o.hasOwnProperty(R)&&(l=o[R],this[R]=l?l(b):b[R]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?oc:Qy,this.isPropagationStopped=Qy,this}return K(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=oc)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=oc)},persist:function(){},isPersistent:oc}),i}var ji={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ff=ar(ji),$a=K({},ji,{view:0,detail:0}),PI=ar($a),Af,Df,Ua,nc=K({},$a,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Of,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Ua&&(Ua&&o.type==="mousemove"?(Af=o.screenX-Ua.screenX,Df=o.screenY-Ua.screenY):Df=Af=0,Ua=o),Af)},movementY:function(o){return"movementY"in o?o.movementY:Df}}),Zy=ar(nc),RI=K({},nc,{dataTransfer:0}),MI=ar(RI),EI=K({},$a,{relatedTarget:0}),qf=ar(EI),II=K({},ji,{animationName:0,elapsedTime:0,pseudoElement:0}),FI=ar(II),AI=K({},ji,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),DI=ar(AI),qI=K({},ji,{data:0}),Jy=ar(qI),OI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},HI={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"},LI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function VI(o){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(o):(o=LI[o])?!!i[o]:!1}function Of(){return VI}var WI=K({},$a,{key:function(o){if(o.key){var i=OI[o.key]||o.key;if(i!=="Unidentified")return i}return o.type==="keypress"?(o=rc(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?HI[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Of,charCode:function(o){return o.type==="keypress"?rc(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?rc(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),$I=ar(WI),UI=K({},nc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ex=ar(UI),GI=K({},$a,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Of}),XI=ar(GI),KI=K({},ji,{propertyName:0,elapsedTime:0,pseudoElement:0}),YI=ar(KI),QI=K({},nc,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),ZI=ar(QI),JI=[9,13,27,32],Hf=u&&"CompositionEvent"in window,Ga=null;u&&"documentMode"in document&&(Ga=document.documentMode);var eF=u&&"TextEvent"in window&&!Ga,tx=u&&(!Hf||Ga&&8<Ga&&11>=Ga),rx=" ",ox=!1;function nx(o,i){switch(o){case"keyup":return JI.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ix(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var _i=!1;function tF(o,i){switch(o){case"compositionend":return ix(i);case"keypress":return i.which!==32?null:(ox=!0,rx);case"textInput":return o=i.data,o===rx&&ox?null:o;default:return null}}function rF(o,i){if(_i)return o==="compositionend"||!Hf&&nx(o,i)?(o=Yy(),tc=If=Wo=null,_i=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return tx&&i.locale!=="ko"?null:i.data;default:return null}}var oF={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 ax(o){var i=o&&o.nodeName&&o.nodeName.toLowerCase();return i==="input"?!!oF[o.type]:i==="textarea"}function sx(o,i,l,d){_y(d),i=cc(i,"onChange"),0<i.length&&(l=new Ff("onChange","change",null,l,d),o.push({event:l,listeners:i}))}var Xa=null,Ka=null;function nF(o){zx(o,0)}function ic(o){var i=Ri(o);if(jn(i))return o}function iF(o,i){if(o==="change")return i}var lx=!1;if(u){var Lf;if(u){var Vf="oninput"in document;if(!Vf){var cx=document.createElement("div");cx.setAttribute("oninput","return;"),Vf=typeof cx.oninput=="function"}Lf=Vf}else Lf=!1;lx=Lf&&(!document.documentMode||9<document.documentMode)}function ux(){Xa&&(Xa.detachEvent("onpropertychange",dx),Ka=Xa=null)}function dx(o){if(o.propertyName==="value"&&ic(Ka)){var i=[];sx(i,Ka,o,kf(o)),Py(nF,i)}}function aF(o,i,l){o==="focusin"?(ux(),Xa=i,Ka=l,Xa.attachEvent("onpropertychange",dx)):o==="focusout"&&ux()}function sF(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return ic(Ka)}function lF(o,i){if(o==="click")return ic(i)}function cF(o,i){if(o==="input"||o==="change")return ic(i)}function uF(o,i){return o===i&&(o!==0||1/o===1/i)||o!==o&&i!==i}var Mr=typeof Object.is=="function"?Object.is:uF;function Ya(o,i){if(Mr(o,i))return!0;if(typeof o!="object"||o===null||typeof i!="object"||i===null)return!1;var l=Object.keys(o),d=Object.keys(i);if(l.length!==d.length)return!1;for(d=0;d<l.length;d++){var h=l[d];if(!f.call(i,h)||!Mr(o[h],i[h]))return!1}return!0}function fx(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function px(o,i){var l=fx(o);o=0;for(var d;l;){if(l.nodeType===3){if(d=o+l.textContent.length,o<=i&&d>=i)return{node:l,offset:i-o};o=d}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=fx(l)}}function hx(o,i){return o&&i?o===i?!0:o&&o.nodeType===3?!1:i&&i.nodeType===3?hx(o,i.parentNode):"contains"in o?o.contains(i):o.compareDocumentPosition?!!(o.compareDocumentPosition(i)&16):!1:!1}function gx(){for(var o=window,i=wi();i instanceof o.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)o=i.contentWindow;else break;i=wi(o.document)}return i}function Wf(o){var i=o&&o.nodeName&&o.nodeName.toLowerCase();return i&&(i==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||i==="textarea"||o.contentEditable==="true")}function dF(o){var i=gx(),l=o.focusedElem,d=o.selectionRange;if(i!==l&&l&&l.ownerDocument&&hx(l.ownerDocument.documentElement,l)){if(d!==null&&Wf(l)){if(i=d.start,o=d.end,o===void 0&&(o=i),"selectionStart"in l)l.selectionStart=i,l.selectionEnd=Math.min(o,l.value.length);else if(o=(i=l.ownerDocument||document)&&i.defaultView||window,o.getSelection){o=o.getSelection();var h=l.textContent.length,b=Math.min(d.start,h);d=d.end===void 0?b:Math.min(d.end,h),!o.extend&&b>d&&(h=d,d=b,b=h),h=px(l,b);var _=px(l,d);h&&_&&(o.rangeCount!==1||o.anchorNode!==h.node||o.anchorOffset!==h.offset||o.focusNode!==_.node||o.focusOffset!==_.offset)&&(i=i.createRange(),i.setStart(h.node,h.offset),o.removeAllRanges(),b>d?(o.addRange(i),o.extend(_.node,_.offset)):(i.setEnd(_.node,_.offset),o.addRange(i)))}}for(i=[],o=l;o=o.parentNode;)o.nodeType===1&&i.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<i.length;l++)o=i[l],o.element.scrollLeft=o.left,o.element.scrollTop=o.top}}var fF=u&&"documentMode"in document&&11>=document.documentMode,Ci=null,$f=null,Qa=null,Uf=!1;function mx(o,i,l){var d=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Uf||Ci==null||Ci!==wi(d)||(d=Ci,"selectionStart"in d&&Wf(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Qa&&Ya(Qa,d)||(Qa=d,d=cc($f,"onSelect"),0<d.length&&(i=new Ff("onSelect","select",null,i,l),o.push({event:i,listeners:d}),i.target=Ci)))}function ac(o,i){var l={};return l[o.toLowerCase()]=i.toLowerCase(),l["Webkit"+o]="webkit"+i,l["Moz"+o]="moz"+i,l}var Ni={animationend:ac("Animation","AnimationEnd"),animationiteration:ac("Animation","AnimationIteration"),animationstart:ac("Animation","AnimationStart"),transitionend:ac("Transition","TransitionEnd")},Gf={},vx={};u&&(vx=document.createElement("div").style,"AnimationEvent"in window||(delete Ni.animationend.animation,delete Ni.animationiteration.animation,delete Ni.animationstart.animation),"TransitionEvent"in window||delete Ni.transitionend.transition);function sc(o){if(Gf[o])return Gf[o];if(!Ni[o])return o;var i=Ni[o],l;for(l in i)if(i.hasOwnProperty(l)&&l in vx)return Gf[o]=i[l];return o}var bx=sc("animationend"),yx=sc("animationiteration"),xx=sc("animationstart"),wx=sc("transitionend"),kx=new Map,Sx="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 $o(o,i){kx.set(o,i),s(i,[o])}for(var Xf=0;Xf<Sx.length;Xf++){var Kf=Sx[Xf],pF=Kf.toLowerCase(),hF=Kf[0].toUpperCase()+Kf.slice(1);$o(pF,"on"+hF)}$o(bx,"onAnimationEnd"),$o(yx,"onAnimationIteration"),$o(xx,"onAnimationStart"),$o("dblclick","onDoubleClick"),$o("focusin","onFocus"),$o("focusout","onBlur"),$o(wx,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Za="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(" "),gF=new Set("cancel close invalid load scroll toggle".split(" ").concat(Za));function Bx(o,i,l){var d=o.type||"unknown-event";o.currentTarget=l,pI(d,i,void 0,o),o.currentTarget=null}function zx(o,i){i=(i&4)!==0;for(var l=0;l<o.length;l++){var d=o[l],h=d.event;d=d.listeners;e:{var b=void 0;if(i)for(var _=d.length-1;0<=_;_--){var R=d[_],E=R.instance,U=R.currentTarget;if(R=R.listener,E!==b&&h.isPropagationStopped())break e;Bx(h,R,U),b=E}else for(_=0;_<d.length;_++){if(R=d[_],E=R.instance,U=R.currentTarget,R=R.listener,E!==b&&h.isPropagationStopped())break e;Bx(h,R,U),b=E}}}if($l)throw o=jf,$l=!1,jf=null,o}function et(o,i){var l=i[o0];l===void 0&&(l=i[o0]=new Set);var d=o+"__bubble";l.has(d)||(jx(i,o,2,!1),l.add(d))}function Yf(o,i,l){var d=0;i&&(d|=4),jx(l,o,d,i)}var lc="_reactListening"+Math.random().toString(36).slice(2);function Ja(o){if(!o[lc]){o[lc]=!0,n.forEach(function(l){l!=="selectionchange"&&(gF.has(l)||Yf(l,!1,o),Yf(l,!0,o))});var i=o.nodeType===9?o:o.ownerDocument;i===null||i[lc]||(i[lc]=!0,Yf("selectionchange",!1,i))}}function jx(o,i,l,d){switch(Ky(i)){case 1:var h=NI;break;case 4:h=TI;break;default:h=Mf}l=h.bind(null,i,l,o),h=void 0,!zf||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(h=!0),d?h!==void 0?o.addEventListener(i,l,{capture:!0,passive:h}):o.addEventListener(i,l,!0):h!==void 0?o.addEventListener(i,l,{passive:h}):o.addEventListener(i,l,!1)}function Qf(o,i,l,d,h){var b=d;if((i&1)===0&&(i&2)===0&&d!==null)e:for(;;){if(d===null)return;var _=d.tag;if(_===3||_===4){var R=d.stateNode.containerInfo;if(R===h||R.nodeType===8&&R.parentNode===h)break;if(_===4)for(_=d.return;_!==null;){var E=_.tag;if((E===3||E===4)&&(E=_.stateNode.containerInfo,E===h||E.nodeType===8&&E.parentNode===h))return;_=_.return}for(;R!==null;){if(_=Cn(R),_===null)return;if(E=_.tag,E===5||E===6){d=b=_;continue e}R=R.parentNode}}d=d.return}Py(function(){var U=b,ie=kf(l),se=[];e:{var oe=kx.get(o);if(oe!==void 0){var he=Ff,ve=o;switch(o){case"keypress":if(rc(l)===0)break e;case"keydown":case"keyup":he=$I;break;case"focusin":ve="focus",he=qf;break;case"focusout":ve="blur",he=qf;break;case"beforeblur":case"afterblur":he=qf;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":he=Zy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":he=MI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":he=XI;break;case bx:case yx:case xx:he=FI;break;case wx:he=YI;break;case"scroll":he=PI;break;case"wheel":he=ZI;break;case"copy":case"cut":case"paste":he=DI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":he=ex}var be=(i&4)!==0,mt=!be&&o==="scroll",H=be?oe!==null?oe+"Capture":null:oe;be=[];for(var D=U,L;D!==null;){L=D;var pe=L.stateNode;if(L.tag===5&&pe!==null&&(L=pe,H!==null&&(pe=Ia(D,H),pe!=null&&be.push(es(D,pe,L)))),mt)break;D=D.return}0<be.length&&(oe=new he(oe,ve,null,l,ie),se.push({event:oe,listeners:be}))}}if((i&7)===0){e:{if(oe=o==="mouseover"||o==="pointerover",he=o==="mouseout"||o==="pointerout",oe&&l!==wf&&(ve=l.relatedTarget||l.fromElement)&&(Cn(ve)||ve[co]))break e;if((he||oe)&&(oe=ie.window===ie?ie:(oe=ie.ownerDocument)?oe.defaultView||oe.parentWindow:window,he?(ve=l.relatedTarget||l.toElement,he=U,ve=ve?Cn(ve):null,ve!==null&&(mt=_n(ve),ve!==mt||ve.tag!==5&&ve.tag!==6)&&(ve=null)):(he=null,ve=U),he!==ve)){if(be=Zy,pe="onMouseLeave",H="onMouseEnter",D="mouse",(o==="pointerout"||o==="pointerover")&&(be=ex,pe="onPointerLeave",H="onPointerEnter",D="pointer"),mt=he==null?oe:Ri(he),L=ve==null?oe:Ri(ve),oe=new be(pe,D+"leave",he,l,ie),oe.target=mt,oe.relatedTarget=L,pe=null,Cn(ie)===U&&(be=new be(H,D+"enter",ve,l,ie),be.target=L,be.relatedTarget=mt,pe=be),mt=pe,he&&ve)t:{for(be=he,H=ve,D=0,L=be;L;L=Ti(L))D++;for(L=0,pe=H;pe;pe=Ti(pe))L++;for(;0<D-L;)be=Ti(be),D--;for(;0<L-D;)H=Ti(H),L--;for(;D--;){if(be===H||H!==null&&be===H.alternate)break t;be=Ti(be),H=Ti(H)}be=null}else be=null;he!==null&&_x(se,oe,he,be,!1),ve!==null&&mt!==null&&_x(se,mt,ve,be,!0)}}e:{if(oe=U?Ri(U):window,he=oe.nodeName&&oe.nodeName.toLowerCase(),he==="select"||he==="input"&&oe.type==="file")var ye=iF;else if(ax(oe))if(lx)ye=cF;else{ye=sF;var ke=aF}else(he=oe.nodeName)&&he.toLowerCase()==="input"&&(oe.type==="checkbox"||oe.type==="radio")&&(ye=lF);if(ye&&(ye=ye(o,U))){sx(se,ye,l,ie);break e}ke&&ke(o,oe,U),o==="focusout"&&(ke=oe._wrapperState)&&ke.controlled&&oe.type==="number"&&qo(oe,"number",oe.value)}switch(ke=U?Ri(U):window,o){case"focusin":(ax(ke)||ke.contentEditable==="true")&&(Ci=ke,$f=U,Qa=null);break;case"focusout":Qa=$f=Ci=null;break;case"mousedown":Uf=!0;break;case"contextmenu":case"mouseup":case"dragend":Uf=!1,mx(se,l,ie);break;case"selectionchange":if(fF)break;case"keydown":case"keyup":mx(se,l,ie)}var Se;if(Hf)e:{switch(o){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else _i?nx(o,l)&&(Ce="onCompositionEnd"):o==="keydown"&&l.keyCode===229&&(Ce="onCompositionStart");Ce&&(tx&&l.locale!=="ko"&&(_i||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&_i&&(Se=Yy()):(Wo=ie,If="value"in Wo?Wo.value:Wo.textContent,_i=!0)),ke=cc(U,Ce),0<ke.length&&(Ce=new Jy(Ce,o,null,l,ie),se.push({event:Ce,listeners:ke}),Se?Ce.data=Se:(Se=ix(l),Se!==null&&(Ce.data=Se)))),(Se=eF?tF(o,l):rF(o,l))&&(U=cc(U,"onBeforeInput"),0<U.length&&(ie=new Jy("onBeforeInput","beforeinput",null,l,ie),se.push({event:ie,listeners:U}),ie.data=Se))}zx(se,i)})}function es(o,i,l){return{instance:o,listener:i,currentTarget:l}}function cc(o,i){for(var l=i+"Capture",d=[];o!==null;){var h=o,b=h.stateNode;h.tag===5&&b!==null&&(h=b,b=Ia(o,l),b!=null&&d.unshift(es(o,b,h)),b=Ia(o,i),b!=null&&d.push(es(o,b,h))),o=o.return}return d}function Ti(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5);return o||null}function _x(o,i,l,d,h){for(var b=i._reactName,_=[];l!==null&&l!==d;){var R=l,E=R.alternate,U=R.stateNode;if(E!==null&&E===d)break;R.tag===5&&U!==null&&(R=U,h?(E=Ia(l,b),E!=null&&_.unshift(es(l,E,R))):h||(E=Ia(l,b),E!=null&&_.push(es(l,E,R)))),l=l.return}_.length!==0&&o.push({event:i,listeners:_})}var mF=/\r\n?/g,vF=/\u0000|\uFFFD/g;function Cx(o){return(typeof o=="string"?o:""+o).replace(mF,`
7
+ `).replace(vF,"")}function uc(o,i,l){if(i=Cx(i),Cx(o)!==i&&l)throw Error(r(425))}function dc(){}var Zf=null,Jf=null;function e0(o,i){return o==="textarea"||o==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var t0=typeof setTimeout=="function"?setTimeout:void 0,bF=typeof clearTimeout=="function"?clearTimeout:void 0,Nx=typeof Promise=="function"?Promise:void 0,yF=typeof queueMicrotask=="function"?queueMicrotask:typeof Nx<"u"?function(o){return Nx.resolve(null).then(o).catch(xF)}:t0;function xF(o){setTimeout(function(){throw o})}function r0(o,i){var l=i,d=0;do{var h=l.nextSibling;if(o.removeChild(l),h&&h.nodeType===8)if(l=h.data,l==="/$"){if(d===0){o.removeChild(h),Wa(i);return}d--}else l!=="$"&&l!=="$?"&&l!=="$!"||d++;l=h}while(l);Wa(i)}function Uo(o){for(;o!=null;o=o.nextSibling){var i=o.nodeType;if(i===1||i===3)break;if(i===8){if(i=o.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return o}function Tx(o){o=o.previousSibling;for(var i=0;o;){if(o.nodeType===8){var l=o.data;if(l==="$"||l==="$!"||l==="$?"){if(i===0)return o;i--}else l==="/$"&&i++}o=o.previousSibling}return null}var Pi=Math.random().toString(36).slice(2),Xr="__reactFiber$"+Pi,ts="__reactProps$"+Pi,co="__reactContainer$"+Pi,o0="__reactEvents$"+Pi,wF="__reactListeners$"+Pi,kF="__reactHandles$"+Pi;function Cn(o){var i=o[Xr];if(i)return i;for(var l=o.parentNode;l;){if(i=l[co]||l[Xr]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(o=Tx(o);o!==null;){if(l=o[Xr])return l;o=Tx(o)}return i}o=l,l=o.parentNode}return null}function rs(o){return o=o[Xr]||o[co],!o||o.tag!==5&&o.tag!==6&&o.tag!==13&&o.tag!==3?null:o}function Ri(o){if(o.tag===5||o.tag===6)return o.stateNode;throw Error(r(33))}function fc(o){return o[ts]||null}var n0=[],Mi=-1;function Go(o){return{current:o}}function tt(o){0>Mi||(o.current=n0[Mi],n0[Mi]=null,Mi--)}function Je(o,i){Mi++,n0[Mi]=o.current,o.current=i}var Xo={},At=Go(Xo),Kt=Go(!1),Nn=Xo;function Ei(o,i){var l=o.type.contextTypes;if(!l)return Xo;var d=o.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===i)return d.__reactInternalMemoizedMaskedChildContext;var h={},b;for(b in l)h[b]=i[b];return d&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=i,o.__reactInternalMemoizedMaskedChildContext=h),h}function Yt(o){return o=o.childContextTypes,o!=null}function pc(){tt(Kt),tt(At)}function Px(o,i,l){if(At.current!==Xo)throw Error(r(168));Je(At,i),Je(Kt,l)}function Rx(o,i,l){var d=o.stateNode;if(i=i.childContextTypes,typeof d.getChildContext!="function")return l;d=d.getChildContext();for(var h in d)if(!(h in i))throw Error(r(108,Be(o)||"Unknown",h));return K({},l,d)}function hc(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||Xo,Nn=At.current,Je(At,o),Je(Kt,Kt.current),!0}function Mx(o,i,l){var d=o.stateNode;if(!d)throw Error(r(169));l?(o=Rx(o,i,Nn),d.__reactInternalMemoizedMergedChildContext=o,tt(Kt),tt(At),Je(At,o)):tt(Kt),Je(Kt,l)}var uo=null,gc=!1,i0=!1;function Ex(o){uo===null?uo=[o]:uo.push(o)}function SF(o){gc=!0,Ex(o)}function Ko(){if(!i0&&uo!==null){i0=!0;var o=0,i=Ye;try{var l=uo;for(Ye=1;o<l.length;o++){var d=l[o];do d=d(!0);while(d!==null)}uo=null,gc=!1}catch(h){throw uo!==null&&(uo=uo.slice(o+1)),Fy(_f,Ko),h}finally{Ye=i,i0=!1}}return null}var Ii=[],Fi=0,mc=null,vc=0,mr=[],vr=0,Tn=null,fo=1,po="";function Pn(o,i){Ii[Fi++]=vc,Ii[Fi++]=mc,mc=o,vc=i}function Ix(o,i,l){mr[vr++]=fo,mr[vr++]=po,mr[vr++]=Tn,Tn=o;var d=fo;o=po;var h=32-Rr(d)-1;d&=~(1<<h),l+=1;var b=32-Rr(i)+h;if(30<b){var _=h-h%5;b=(d&(1<<_)-1).toString(32),d>>=_,h-=_,fo=1<<32-Rr(i)+h|l<<h|d,po=b+o}else fo=1<<b|l<<h|d,po=o}function a0(o){o.return!==null&&(Pn(o,1),Ix(o,1,0))}function s0(o){for(;o===mc;)mc=Ii[--Fi],Ii[Fi]=null,vc=Ii[--Fi],Ii[Fi]=null;for(;o===Tn;)Tn=mr[--vr],mr[vr]=null,po=mr[--vr],mr[vr]=null,fo=mr[--vr],mr[vr]=null}var sr=null,lr=null,ot=!1,Er=null;function Fx(o,i){var l=wr(5,null,null,0);l.elementType="DELETED",l.stateNode=i,l.return=o,i=o.deletions,i===null?(o.deletions=[l],o.flags|=16):i.push(l)}function Ax(o,i){switch(o.tag){case 5:var l=o.type;return i=i.nodeType!==1||l.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(o.stateNode=i,sr=o,lr=Uo(i.firstChild),!0):!1;case 6:return i=o.pendingProps===""||i.nodeType!==3?null:i,i!==null?(o.stateNode=i,sr=o,lr=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(l=Tn!==null?{id:fo,overflow:po}:null,o.memoizedState={dehydrated:i,treeContext:l,retryLane:1073741824},l=wr(18,null,null,0),l.stateNode=i,l.return=o,o.child=l,sr=o,lr=null,!0):!1;default:return!1}}function l0(o){return(o.mode&1)!==0&&(o.flags&128)===0}function c0(o){if(ot){var i=lr;if(i){var l=i;if(!Ax(o,i)){if(l0(o))throw Error(r(418));i=Uo(l.nextSibling);var d=sr;i&&Ax(o,i)?Fx(d,l):(o.flags=o.flags&-4097|2,ot=!1,sr=o)}}else{if(l0(o))throw Error(r(418));o.flags=o.flags&-4097|2,ot=!1,sr=o}}}function Dx(o){for(o=o.return;o!==null&&o.tag!==5&&o.tag!==3&&o.tag!==13;)o=o.return;sr=o}function bc(o){if(o!==sr)return!1;if(!ot)return Dx(o),ot=!0,!1;var i;if((i=o.tag!==3)&&!(i=o.tag!==5)&&(i=o.type,i=i!=="head"&&i!=="body"&&!e0(o.type,o.memoizedProps)),i&&(i=lr)){if(l0(o))throw qx(),Error(r(418));for(;i;)Fx(o,i),i=Uo(i.nextSibling)}if(Dx(o),o.tag===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));e:{for(o=o.nextSibling,i=0;o;){if(o.nodeType===8){var l=o.data;if(l==="/$"){if(i===0){lr=Uo(o.nextSibling);break e}i--}else l!=="$"&&l!=="$!"&&l!=="$?"||i++}o=o.nextSibling}lr=null}}else lr=sr?Uo(o.stateNode.nextSibling):null;return!0}function qx(){for(var o=lr;o;)o=Uo(o.nextSibling)}function Ai(){lr=sr=null,ot=!1}function u0(o){Er===null?Er=[o]:Er.push(o)}var BF=N.ReactCurrentBatchConfig;function os(o,i,l){if(o=l.ref,o!==null&&typeof o!="function"&&typeof o!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(r(309));var d=l.stateNode}if(!d)throw Error(r(147,o));var h=d,b=""+o;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===b?i.ref:(i=function(_){var R=h.refs;_===null?delete R[b]:R[b]=_},i._stringRef=b,i)}if(typeof o!="string")throw Error(r(284));if(!l._owner)throw Error(r(290,o))}return o}function yc(o,i){throw o=Object.prototype.toString.call(i),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":o))}function Ox(o){var i=o._init;return i(o._payload)}function Hx(o){function i(H,D){if(o){var L=H.deletions;L===null?(H.deletions=[D],H.flags|=16):L.push(D)}}function l(H,D){if(!o)return null;for(;D!==null;)i(H,D),D=D.sibling;return null}function d(H,D){for(H=new Map;D!==null;)D.key!==null?H.set(D.key,D):H.set(D.index,D),D=D.sibling;return H}function h(H,D){return H=on(H,D),H.index=0,H.sibling=null,H}function b(H,D,L){return H.index=L,o?(L=H.alternate,L!==null?(L=L.index,L<D?(H.flags|=2,D):L):(H.flags|=2,D)):(H.flags|=1048576,D)}function _(H){return o&&H.alternate===null&&(H.flags|=2),H}function R(H,D,L,pe){return D===null||D.tag!==6?(D=tp(L,H.mode,pe),D.return=H,D):(D=h(D,L),D.return=H,D)}function E(H,D,L,pe){var ye=L.type;return ye===I?ie(H,D,L.props.children,pe,L.key):D!==null&&(D.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===O&&Ox(ye)===D.type)?(pe=h(D,L.props),pe.ref=os(H,D,L),pe.return=H,pe):(pe=Vc(L.type,L.key,L.props,null,H.mode,pe),pe.ref=os(H,D,L),pe.return=H,pe)}function U(H,D,L,pe){return D===null||D.tag!==4||D.stateNode.containerInfo!==L.containerInfo||D.stateNode.implementation!==L.implementation?(D=rp(L,H.mode,pe),D.return=H,D):(D=h(D,L.children||[]),D.return=H,D)}function ie(H,D,L,pe,ye){return D===null||D.tag!==7?(D=qn(L,H.mode,pe,ye),D.return=H,D):(D=h(D,L),D.return=H,D)}function se(H,D,L){if(typeof D=="string"&&D!==""||typeof D=="number")return D=tp(""+D,H.mode,L),D.return=H,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case M:return L=Vc(D.type,D.key,D.props,null,H.mode,L),L.ref=os(H,null,D),L.return=H,L;case C:return D=rp(D,H.mode,L),D.return=H,D;case O:var pe=D._init;return se(H,pe(D._payload),L)}if(Ra(D)||G(D))return D=qn(D,H.mode,L,null),D.return=H,D;yc(H,D)}return null}function oe(H,D,L,pe){var ye=D!==null?D.key:null;if(typeof L=="string"&&L!==""||typeof L=="number")return ye!==null?null:R(H,D,""+L,pe);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case M:return L.key===ye?E(H,D,L,pe):null;case C:return L.key===ye?U(H,D,L,pe):null;case O:return ye=L._init,oe(H,D,ye(L._payload),pe)}if(Ra(L)||G(L))return ye!==null?null:ie(H,D,L,pe,null);yc(H,L)}return null}function he(H,D,L,pe,ye){if(typeof pe=="string"&&pe!==""||typeof pe=="number")return H=H.get(L)||null,R(D,H,""+pe,ye);if(typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case M:return H=H.get(pe.key===null?L:pe.key)||null,E(D,H,pe,ye);case C:return H=H.get(pe.key===null?L:pe.key)||null,U(D,H,pe,ye);case O:var ke=pe._init;return he(H,D,L,ke(pe._payload),ye)}if(Ra(pe)||G(pe))return H=H.get(L)||null,ie(D,H,pe,ye,null);yc(D,pe)}return null}function ve(H,D,L,pe){for(var ye=null,ke=null,Se=D,Ce=D=0,Ct=null;Se!==null&&Ce<L.length;Ce++){Se.index>Ce?(Ct=Se,Se=null):Ct=Se.sibling;var Ge=oe(H,Se,L[Ce],pe);if(Ge===null){Se===null&&(Se=Ct);break}o&&Se&&Ge.alternate===null&&i(H,Se),D=b(Ge,D,Ce),ke===null?ye=Ge:ke.sibling=Ge,ke=Ge,Se=Ct}if(Ce===L.length)return l(H,Se),ot&&Pn(H,Ce),ye;if(Se===null){for(;Ce<L.length;Ce++)Se=se(H,L[Ce],pe),Se!==null&&(D=b(Se,D,Ce),ke===null?ye=Se:ke.sibling=Se,ke=Se);return ot&&Pn(H,Ce),ye}for(Se=d(H,Se);Ce<L.length;Ce++)Ct=he(Se,H,Ce,L[Ce],pe),Ct!==null&&(o&&Ct.alternate!==null&&Se.delete(Ct.key===null?Ce:Ct.key),D=b(Ct,D,Ce),ke===null?ye=Ct:ke.sibling=Ct,ke=Ct);return o&&Se.forEach(function(nn){return i(H,nn)}),ot&&Pn(H,Ce),ye}function be(H,D,L,pe){var ye=G(L);if(typeof ye!="function")throw Error(r(150));if(L=ye.call(L),L==null)throw Error(r(151));for(var ke=ye=null,Se=D,Ce=D=0,Ct=null,Ge=L.next();Se!==null&&!Ge.done;Ce++,Ge=L.next()){Se.index>Ce?(Ct=Se,Se=null):Ct=Se.sibling;var nn=oe(H,Se,Ge.value,pe);if(nn===null){Se===null&&(Se=Ct);break}o&&Se&&nn.alternate===null&&i(H,Se),D=b(nn,D,Ce),ke===null?ye=nn:ke.sibling=nn,ke=nn,Se=Ct}if(Ge.done)return l(H,Se),ot&&Pn(H,Ce),ye;if(Se===null){for(;!Ge.done;Ce++,Ge=L.next())Ge=se(H,Ge.value,pe),Ge!==null&&(D=b(Ge,D,Ce),ke===null?ye=Ge:ke.sibling=Ge,ke=Ge);return ot&&Pn(H,Ce),ye}for(Se=d(H,Se);!Ge.done;Ce++,Ge=L.next())Ge=he(Se,H,Ce,Ge.value,pe),Ge!==null&&(o&&Ge.alternate!==null&&Se.delete(Ge.key===null?Ce:Ge.key),D=b(Ge,D,Ce),ke===null?ye=Ge:ke.sibling=Ge,ke=Ge);return o&&Se.forEach(function(oA){return i(H,oA)}),ot&&Pn(H,Ce),ye}function mt(H,D,L,pe){if(typeof L=="object"&&L!==null&&L.type===I&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case M:e:{for(var ye=L.key,ke=D;ke!==null;){if(ke.key===ye){if(ye=L.type,ye===I){if(ke.tag===7){l(H,ke.sibling),D=h(ke,L.props.children),D.return=H,H=D;break e}}else if(ke.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===O&&Ox(ye)===ke.type){l(H,ke.sibling),D=h(ke,L.props),D.ref=os(H,ke,L),D.return=H,H=D;break e}l(H,ke);break}else i(H,ke);ke=ke.sibling}L.type===I?(D=qn(L.props.children,H.mode,pe,L.key),D.return=H,H=D):(pe=Vc(L.type,L.key,L.props,null,H.mode,pe),pe.ref=os(H,D,L),pe.return=H,H=pe)}return _(H);case C:e:{for(ke=L.key;D!==null;){if(D.key===ke)if(D.tag===4&&D.stateNode.containerInfo===L.containerInfo&&D.stateNode.implementation===L.implementation){l(H,D.sibling),D=h(D,L.children||[]),D.return=H,H=D;break e}else{l(H,D);break}else i(H,D);D=D.sibling}D=rp(L,H.mode,pe),D.return=H,H=D}return _(H);case O:return ke=L._init,mt(H,D,ke(L._payload),pe)}if(Ra(L))return ve(H,D,L,pe);if(G(L))return be(H,D,L,pe);yc(H,L)}return typeof L=="string"&&L!==""||typeof L=="number"?(L=""+L,D!==null&&D.tag===6?(l(H,D.sibling),D=h(D,L),D.return=H,H=D):(l(H,D),D=tp(L,H.mode,pe),D.return=H,H=D),_(H)):l(H,D)}return mt}var Di=Hx(!0),Lx=Hx(!1),xc=Go(null),wc=null,qi=null,d0=null;function f0(){d0=qi=wc=null}function p0(o){var i=xc.current;tt(xc),o._currentValue=i}function h0(o,i,l){for(;o!==null;){var d=o.alternate;if((o.childLanes&i)!==i?(o.childLanes|=i,d!==null&&(d.childLanes|=i)):d!==null&&(d.childLanes&i)!==i&&(d.childLanes|=i),o===l)break;o=o.return}}function Oi(o,i){wc=o,d0=qi=null,o=o.dependencies,o!==null&&o.firstContext!==null&&((o.lanes&i)!==0&&(Qt=!0),o.firstContext=null)}function br(o){var i=o._currentValue;if(d0!==o)if(o={context:o,memoizedValue:i,next:null},qi===null){if(wc===null)throw Error(r(308));qi=o,wc.dependencies={lanes:0,firstContext:o}}else qi=qi.next=o;return i}var Rn=null;function g0(o){Rn===null?Rn=[o]:Rn.push(o)}function Vx(o,i,l,d){var h=i.interleaved;return h===null?(l.next=l,g0(i)):(l.next=h.next,h.next=l),i.interleaved=l,ho(o,d)}function ho(o,i){o.lanes|=i;var l=o.alternate;for(l!==null&&(l.lanes|=i),l=o,o=o.return;o!==null;)o.childLanes|=i,l=o.alternate,l!==null&&(l.childLanes|=i),l=o,o=o.return;return l.tag===3?l.stateNode:null}var Yo=!1;function m0(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Wx(o,i){o=o.updateQueue,i.updateQueue===o&&(i.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,effects:o.effects})}function go(o,i){return{eventTime:o,lane:i,tag:0,payload:null,callback:null,next:null}}function Qo(o,i,l){var d=o.updateQueue;if(d===null)return null;if(d=d.shared,(We&2)!==0){var h=d.pending;return h===null?i.next=i:(i.next=h.next,h.next=i),d.pending=i,ho(o,l)}return h=d.interleaved,h===null?(i.next=i,g0(d)):(i.next=h.next,h.next=i),d.interleaved=i,ho(o,l)}function kc(o,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194240)!==0)){var d=i.lanes;d&=o.pendingLanes,l|=d,i.lanes=l,Tf(o,l)}}function $x(o,i){var l=o.updateQueue,d=o.alternate;if(d!==null&&(d=d.updateQueue,l===d)){var h=null,b=null;if(l=l.firstBaseUpdate,l!==null){do{var _={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};b===null?h=b=_:b=b.next=_,l=l.next}while(l!==null);b===null?h=b=i:b=b.next=i}else h=b=i;l={baseState:d.baseState,firstBaseUpdate:h,lastBaseUpdate:b,shared:d.shared,effects:d.effects},o.updateQueue=l;return}o=l.lastBaseUpdate,o===null?l.firstBaseUpdate=i:o.next=i,l.lastBaseUpdate=i}function Sc(o,i,l,d){var h=o.updateQueue;Yo=!1;var b=h.firstBaseUpdate,_=h.lastBaseUpdate,R=h.shared.pending;if(R!==null){h.shared.pending=null;var E=R,U=E.next;E.next=null,_===null?b=U:_.next=U,_=E;var ie=o.alternate;ie!==null&&(ie=ie.updateQueue,R=ie.lastBaseUpdate,R!==_&&(R===null?ie.firstBaseUpdate=U:R.next=U,ie.lastBaseUpdate=E))}if(b!==null){var se=h.baseState;_=0,ie=U=E=null,R=b;do{var oe=R.lane,he=R.eventTime;if((d&oe)===oe){ie!==null&&(ie=ie.next={eventTime:he,lane:0,tag:R.tag,payload:R.payload,callback:R.callback,next:null});e:{var ve=o,be=R;switch(oe=i,he=l,be.tag){case 1:if(ve=be.payload,typeof ve=="function"){se=ve.call(he,se,oe);break e}se=ve;break e;case 3:ve.flags=ve.flags&-65537|128;case 0:if(ve=be.payload,oe=typeof ve=="function"?ve.call(he,se,oe):ve,oe==null)break e;se=K({},se,oe);break e;case 2:Yo=!0}}R.callback!==null&&R.lane!==0&&(o.flags|=64,oe=h.effects,oe===null?h.effects=[R]:oe.push(R))}else he={eventTime:he,lane:oe,tag:R.tag,payload:R.payload,callback:R.callback,next:null},ie===null?(U=ie=he,E=se):ie=ie.next=he,_|=oe;if(R=R.next,R===null){if(R=h.shared.pending,R===null)break;oe=R,R=oe.next,oe.next=null,h.lastBaseUpdate=oe,h.shared.pending=null}}while(!0);if(ie===null&&(E=se),h.baseState=E,h.firstBaseUpdate=U,h.lastBaseUpdate=ie,i=h.shared.interleaved,i!==null){h=i;do _|=h.lane,h=h.next;while(h!==i)}else b===null&&(h.shared.lanes=0);In|=_,o.lanes=_,o.memoizedState=se}}function Ux(o,i,l){if(o=i.effects,i.effects=null,o!==null)for(i=0;i<o.length;i++){var d=o[i],h=d.callback;if(h!==null){if(d.callback=null,d=l,typeof h!="function")throw Error(r(191,h));h.call(d)}}}var ns={},Kr=Go(ns),is=Go(ns),as=Go(ns);function Mn(o){if(o===ns)throw Error(r(174));return o}function v0(o,i){switch(Je(as,i),Je(is,o),Je(Kr,ns),o=i.nodeType,o){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:bf(null,"");break;default:o=o===8?i.parentNode:i,i=o.namespaceURI||null,o=o.tagName,i=bf(i,o)}tt(Kr),Je(Kr,i)}function Hi(){tt(Kr),tt(is),tt(as)}function Gx(o){Mn(as.current);var i=Mn(Kr.current),l=bf(i,o.type);i!==l&&(Je(is,o),Je(Kr,l))}function b0(o){is.current===o&&(tt(Kr),tt(is))}var lt=Go(0);function Bc(o){for(var i=o;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break;for(;i.sibling===null;){if(i.return===null||i.return===o)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var y0=[];function x0(){for(var o=0;o<y0.length;o++)y0[o]._workInProgressVersionPrimary=null;y0.length=0}var zc=N.ReactCurrentDispatcher,w0=N.ReactCurrentBatchConfig,En=0,ct=null,kt=null,jt=null,jc=!1,ss=!1,ls=0,zF=0;function Dt(){throw Error(r(321))}function k0(o,i){if(i===null)return!1;for(var l=0;l<i.length&&l<o.length;l++)if(!Mr(o[l],i[l]))return!1;return!0}function S0(o,i,l,d,h,b){if(En=b,ct=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,zc.current=o===null||o.memoizedState===null?NF:TF,o=l(d,h),ss){b=0;do{if(ss=!1,ls=0,25<=b)throw Error(r(301));b+=1,jt=kt=null,i.updateQueue=null,zc.current=PF,o=l(d,h)}while(ss)}if(zc.current=Nc,i=kt!==null&&kt.next!==null,En=0,jt=kt=ct=null,jc=!1,i)throw Error(r(300));return o}function B0(){var o=ls!==0;return ls=0,o}function Yr(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jt===null?ct.memoizedState=jt=o:jt=jt.next=o,jt}function yr(){if(kt===null){var o=ct.alternate;o=o!==null?o.memoizedState:null}else o=kt.next;var i=jt===null?ct.memoizedState:jt.next;if(i!==null)jt=i,kt=o;else{if(o===null)throw Error(r(310));kt=o,o={memoizedState:kt.memoizedState,baseState:kt.baseState,baseQueue:kt.baseQueue,queue:kt.queue,next:null},jt===null?ct.memoizedState=jt=o:jt=jt.next=o}return jt}function cs(o,i){return typeof i=="function"?i(o):i}function z0(o){var i=yr(),l=i.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=o;var d=kt,h=d.baseQueue,b=l.pending;if(b!==null){if(h!==null){var _=h.next;h.next=b.next,b.next=_}d.baseQueue=h=b,l.pending=null}if(h!==null){b=h.next,d=d.baseState;var R=_=null,E=null,U=b;do{var ie=U.lane;if((En&ie)===ie)E!==null&&(E=E.next={lane:0,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),d=U.hasEagerState?U.eagerState:o(d,U.action);else{var se={lane:ie,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null};E===null?(R=E=se,_=d):E=E.next=se,ct.lanes|=ie,In|=ie}U=U.next}while(U!==null&&U!==b);E===null?_=d:E.next=R,Mr(d,i.memoizedState)||(Qt=!0),i.memoizedState=d,i.baseState=_,i.baseQueue=E,l.lastRenderedState=d}if(o=l.interleaved,o!==null){h=o;do b=h.lane,ct.lanes|=b,In|=b,h=h.next;while(h!==o)}else h===null&&(l.lanes=0);return[i.memoizedState,l.dispatch]}function j0(o){var i=yr(),l=i.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=o;var d=l.dispatch,h=l.pending,b=i.memoizedState;if(h!==null){l.pending=null;var _=h=h.next;do b=o(b,_.action),_=_.next;while(_!==h);Mr(b,i.memoizedState)||(Qt=!0),i.memoizedState=b,i.baseQueue===null&&(i.baseState=b),l.lastRenderedState=b}return[b,d]}function Xx(){}function Kx(o,i){var l=ct,d=yr(),h=i(),b=!Mr(d.memoizedState,h);if(b&&(d.memoizedState=h,Qt=!0),d=d.queue,_0(Zx.bind(null,l,d,o),[o]),d.getSnapshot!==i||b||jt!==null&&jt.memoizedState.tag&1){if(l.flags|=2048,us(9,Qx.bind(null,l,d,h,i),void 0,null),_t===null)throw Error(r(349));(En&30)!==0||Yx(l,i,h)}return h}function Yx(o,i,l){o.flags|=16384,o={getSnapshot:i,value:l},i=ct.updateQueue,i===null?(i={lastEffect:null,stores:null},ct.updateQueue=i,i.stores=[o]):(l=i.stores,l===null?i.stores=[o]:l.push(o))}function Qx(o,i,l,d){i.value=l,i.getSnapshot=d,Jx(i)&&ew(o)}function Zx(o,i,l){return l(function(){Jx(i)&&ew(o)})}function Jx(o){var i=o.getSnapshot;o=o.value;try{var l=i();return!Mr(o,l)}catch{return!0}}function ew(o){var i=ho(o,1);i!==null&&Dr(i,o,1,-1)}function tw(o){var i=Yr();return typeof o=="function"&&(o=o()),i.memoizedState=i.baseState=o,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:cs,lastRenderedState:o},i.queue=o,o=o.dispatch=CF.bind(null,ct,o),[i.memoizedState,o]}function us(o,i,l,d){return o={tag:o,create:i,destroy:l,deps:d,next:null},i=ct.updateQueue,i===null?(i={lastEffect:null,stores:null},ct.updateQueue=i,i.lastEffect=o.next=o):(l=i.lastEffect,l===null?i.lastEffect=o.next=o:(d=l.next,l.next=o,o.next=d,i.lastEffect=o)),o}function rw(){return yr().memoizedState}function _c(o,i,l,d){var h=Yr();ct.flags|=o,h.memoizedState=us(1|i,l,void 0,d===void 0?null:d)}function Cc(o,i,l,d){var h=yr();d=d===void 0?null:d;var b=void 0;if(kt!==null){var _=kt.memoizedState;if(b=_.destroy,d!==null&&k0(d,_.deps)){h.memoizedState=us(i,l,b,d);return}}ct.flags|=o,h.memoizedState=us(1|i,l,b,d)}function ow(o,i){return _c(8390656,8,o,i)}function _0(o,i){return Cc(2048,8,o,i)}function nw(o,i){return Cc(4,2,o,i)}function iw(o,i){return Cc(4,4,o,i)}function aw(o,i){if(typeof i=="function")return o=o(),i(o),function(){i(null)};if(i!=null)return o=o(),i.current=o,function(){i.current=null}}function sw(o,i,l){return l=l!=null?l.concat([o]):null,Cc(4,4,aw.bind(null,i,o),l)}function C0(){}function lw(o,i){var l=yr();i=i===void 0?null:i;var d=l.memoizedState;return d!==null&&i!==null&&k0(i,d[1])?d[0]:(l.memoizedState=[o,i],o)}function cw(o,i){var l=yr();i=i===void 0?null:i;var d=l.memoizedState;return d!==null&&i!==null&&k0(i,d[1])?d[0]:(o=o(),l.memoizedState=[o,i],o)}function uw(o,i,l){return(En&21)===0?(o.baseState&&(o.baseState=!1,Qt=!0),o.memoizedState=l):(Mr(l,i)||(l=Oy(),ct.lanes|=l,In|=l,o.baseState=!0),i)}function jF(o,i){var l=Ye;Ye=l!==0&&4>l?l:4,o(!0);var d=w0.transition;w0.transition={};try{o(!1),i()}finally{Ye=l,w0.transition=d}}function dw(){return yr().memoizedState}function _F(o,i,l){var d=tn(o);if(l={lane:d,action:l,hasEagerState:!1,eagerState:null,next:null},fw(o))pw(i,l);else if(l=Vx(o,i,l,d),l!==null){var h=Wt();Dr(l,o,d,h),hw(l,i,d)}}function CF(o,i,l){var d=tn(o),h={lane:d,action:l,hasEagerState:!1,eagerState:null,next:null};if(fw(o))pw(i,h);else{var b=o.alternate;if(o.lanes===0&&(b===null||b.lanes===0)&&(b=i.lastRenderedReducer,b!==null))try{var _=i.lastRenderedState,R=b(_,l);if(h.hasEagerState=!0,h.eagerState=R,Mr(R,_)){var E=i.interleaved;E===null?(h.next=h,g0(i)):(h.next=E.next,E.next=h),i.interleaved=h;return}}catch{}l=Vx(o,i,h,d),l!==null&&(h=Wt(),Dr(l,o,d,h),hw(l,i,d))}}function fw(o){var i=o.alternate;return o===ct||i!==null&&i===ct}function pw(o,i){ss=jc=!0;var l=o.pending;l===null?i.next=i:(i.next=l.next,l.next=i),o.pending=i}function hw(o,i,l){if((l&4194240)!==0){var d=i.lanes;d&=o.pendingLanes,l|=d,i.lanes=l,Tf(o,l)}}var Nc={readContext:br,useCallback:Dt,useContext:Dt,useEffect:Dt,useImperativeHandle:Dt,useInsertionEffect:Dt,useLayoutEffect:Dt,useMemo:Dt,useReducer:Dt,useRef:Dt,useState:Dt,useDebugValue:Dt,useDeferredValue:Dt,useTransition:Dt,useMutableSource:Dt,useSyncExternalStore:Dt,useId:Dt,unstable_isNewReconciler:!1},NF={readContext:br,useCallback:function(o,i){return Yr().memoizedState=[o,i===void 0?null:i],o},useContext:br,useEffect:ow,useImperativeHandle:function(o,i,l){return l=l!=null?l.concat([o]):null,_c(4194308,4,aw.bind(null,i,o),l)},useLayoutEffect:function(o,i){return _c(4194308,4,o,i)},useInsertionEffect:function(o,i){return _c(4,2,o,i)},useMemo:function(o,i){var l=Yr();return i=i===void 0?null:i,o=o(),l.memoizedState=[o,i],o},useReducer:function(o,i,l){var d=Yr();return i=l!==void 0?l(i):i,d.memoizedState=d.baseState=i,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:i},d.queue=o,o=o.dispatch=_F.bind(null,ct,o),[d.memoizedState,o]},useRef:function(o){var i=Yr();return o={current:o},i.memoizedState=o},useState:tw,useDebugValue:C0,useDeferredValue:function(o){return Yr().memoizedState=o},useTransition:function(){var o=tw(!1),i=o[0];return o=jF.bind(null,o[1]),Yr().memoizedState=o,[i,o]},useMutableSource:function(){},useSyncExternalStore:function(o,i,l){var d=ct,h=Yr();if(ot){if(l===void 0)throw Error(r(407));l=l()}else{if(l=i(),_t===null)throw Error(r(349));(En&30)!==0||Yx(d,i,l)}h.memoizedState=l;var b={value:l,getSnapshot:i};return h.queue=b,ow(Zx.bind(null,d,b,o),[o]),d.flags|=2048,us(9,Qx.bind(null,d,b,l,i),void 0,null),l},useId:function(){var o=Yr(),i=_t.identifierPrefix;if(ot){var l=po,d=fo;l=(d&~(1<<32-Rr(d)-1)).toString(32)+l,i=":"+i+"R"+l,l=ls++,0<l&&(i+="H"+l.toString(32)),i+=":"}else l=zF++,i=":"+i+"r"+l.toString(32)+":";return o.memoizedState=i},unstable_isNewReconciler:!1},TF={readContext:br,useCallback:lw,useContext:br,useEffect:_0,useImperativeHandle:sw,useInsertionEffect:nw,useLayoutEffect:iw,useMemo:cw,useReducer:z0,useRef:rw,useState:function(){return z0(cs)},useDebugValue:C0,useDeferredValue:function(o){var i=yr();return uw(i,kt.memoizedState,o)},useTransition:function(){var o=z0(cs)[0],i=yr().memoizedState;return[o,i]},useMutableSource:Xx,useSyncExternalStore:Kx,useId:dw,unstable_isNewReconciler:!1},PF={readContext:br,useCallback:lw,useContext:br,useEffect:_0,useImperativeHandle:sw,useInsertionEffect:nw,useLayoutEffect:iw,useMemo:cw,useReducer:j0,useRef:rw,useState:function(){return j0(cs)},useDebugValue:C0,useDeferredValue:function(o){var i=yr();return kt===null?i.memoizedState=o:uw(i,kt.memoizedState,o)},useTransition:function(){var o=j0(cs)[0],i=yr().memoizedState;return[o,i]},useMutableSource:Xx,useSyncExternalStore:Kx,useId:dw,unstable_isNewReconciler:!1};function Ir(o,i){if(o&&o.defaultProps){i=K({},i),o=o.defaultProps;for(var l in o)i[l]===void 0&&(i[l]=o[l]);return i}return i}function N0(o,i,l,d){i=o.memoizedState,l=l(d,i),l=l==null?i:K({},i,l),o.memoizedState=l,o.lanes===0&&(o.updateQueue.baseState=l)}var Tc={isMounted:function(o){return(o=o._reactInternals)?_n(o)===o:!1},enqueueSetState:function(o,i,l){o=o._reactInternals;var d=Wt(),h=tn(o),b=go(d,h);b.payload=i,l!=null&&(b.callback=l),i=Qo(o,b,h),i!==null&&(Dr(i,o,h,d),kc(i,o,h))},enqueueReplaceState:function(o,i,l){o=o._reactInternals;var d=Wt(),h=tn(o),b=go(d,h);b.tag=1,b.payload=i,l!=null&&(b.callback=l),i=Qo(o,b,h),i!==null&&(Dr(i,o,h,d),kc(i,o,h))},enqueueForceUpdate:function(o,i){o=o._reactInternals;var l=Wt(),d=tn(o),h=go(l,d);h.tag=2,i!=null&&(h.callback=i),i=Qo(o,h,d),i!==null&&(Dr(i,o,d,l),kc(i,o,d))}};function gw(o,i,l,d,h,b,_){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(d,b,_):i.prototype&&i.prototype.isPureReactComponent?!Ya(l,d)||!Ya(h,b):!0}function mw(o,i,l){var d=!1,h=Xo,b=i.contextType;return typeof b=="object"&&b!==null?b=br(b):(h=Yt(i)?Nn:At.current,d=i.contextTypes,b=(d=d!=null)?Ei(o,h):Xo),i=new i(l,b),o.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Tc,o.stateNode=i,i._reactInternals=o,d&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=h,o.__reactInternalMemoizedMaskedChildContext=b),i}function vw(o,i,l,d){o=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,d),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,d),i.state!==o&&Tc.enqueueReplaceState(i,i.state,null)}function T0(o,i,l,d){var h=o.stateNode;h.props=l,h.state=o.memoizedState,h.refs={},m0(o);var b=i.contextType;typeof b=="object"&&b!==null?h.context=br(b):(b=Yt(i)?Nn:At.current,h.context=Ei(o,b)),h.state=o.memoizedState,b=i.getDerivedStateFromProps,typeof b=="function"&&(N0(o,i,b,l),h.state=o.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(i=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),i!==h.state&&Tc.enqueueReplaceState(h,h.state,null),Sc(o,l,h,d),h.state=o.memoizedState),typeof h.componentDidMount=="function"&&(o.flags|=4194308)}function Li(o,i){try{var l="",d=i;do l+=Ee(d),d=d.return;while(d);var h=l}catch(b){h=`
8
+ Error generating stack: `+b.message+`
9
+ `+b.stack}return{value:o,source:i,stack:h,digest:null}}function P0(o,i,l){return{value:o,source:null,stack:l??null,digest:i??null}}function R0(o,i){try{console.error(i.value)}catch(l){setTimeout(function(){throw l})}}var RF=typeof WeakMap=="function"?WeakMap:Map;function bw(o,i,l){l=go(-1,l),l.tag=3,l.payload={element:null};var d=i.value;return l.callback=function(){Ac||(Ac=!0,G0=d),R0(o,i)},l}function yw(o,i,l){l=go(-1,l),l.tag=3;var d=o.type.getDerivedStateFromError;if(typeof d=="function"){var h=i.value;l.payload=function(){return d(h)},l.callback=function(){R0(o,i)}}var b=o.stateNode;return b!==null&&typeof b.componentDidCatch=="function"&&(l.callback=function(){R0(o,i),typeof d!="function"&&(Jo===null?Jo=new Set([this]):Jo.add(this));var _=i.stack;this.componentDidCatch(i.value,{componentStack:_!==null?_:""})}),l}function xw(o,i,l){var d=o.pingCache;if(d===null){d=o.pingCache=new RF;var h=new Set;d.set(i,h)}else h=d.get(i),h===void 0&&(h=new Set,d.set(i,h));h.has(l)||(h.add(l),o=UF.bind(null,o,i,l),i.then(o,o))}function ww(o){do{var i;if((i=o.tag===13)&&(i=o.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return o;o=o.return}while(o!==null);return null}function kw(o,i,l,d,h){return(o.mode&1)===0?(o===i?o.flags|=65536:(o.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(i=go(-1,1),i.tag=2,Qo(l,i,1))),l.lanes|=1),o):(o.flags|=65536,o.lanes=h,o)}var MF=N.ReactCurrentOwner,Qt=!1;function Vt(o,i,l,d){i.child=o===null?Lx(i,null,l,d):Di(i,o.child,l,d)}function Sw(o,i,l,d,h){l=l.render;var b=i.ref;return Oi(i,h),d=S0(o,i,l,d,b,h),l=B0(),o!==null&&!Qt?(i.updateQueue=o.updateQueue,i.flags&=-2053,o.lanes&=~h,mo(o,i,h)):(ot&&l&&a0(i),i.flags|=1,Vt(o,i,d,h),i.child)}function Bw(o,i,l,d,h){if(o===null){var b=l.type;return typeof b=="function"&&!ep(b)&&b.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(i.tag=15,i.type=b,zw(o,i,b,d,h)):(o=Vc(l.type,null,d,i,i.mode,h),o.ref=i.ref,o.return=i,i.child=o)}if(b=o.child,(o.lanes&h)===0){var _=b.memoizedProps;if(l=l.compare,l=l!==null?l:Ya,l(_,d)&&o.ref===i.ref)return mo(o,i,h)}return i.flags|=1,o=on(b,d),o.ref=i.ref,o.return=i,i.child=o}function zw(o,i,l,d,h){if(o!==null){var b=o.memoizedProps;if(Ya(b,d)&&o.ref===i.ref)if(Qt=!1,i.pendingProps=d=b,(o.lanes&h)!==0)(o.flags&131072)!==0&&(Qt=!0);else return i.lanes=o.lanes,mo(o,i,h)}return M0(o,i,l,d,h)}function jw(o,i,l){var d=i.pendingProps,h=d.children,b=o!==null?o.memoizedState:null;if(d.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},Je(Wi,cr),cr|=l;else{if((l&1073741824)===0)return o=b!==null?b.baseLanes|l:l,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:o,cachePool:null,transitions:null},i.updateQueue=null,Je(Wi,cr),cr|=o,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=b!==null?b.baseLanes:l,Je(Wi,cr),cr|=d}else b!==null?(d=b.baseLanes|l,i.memoizedState=null):d=l,Je(Wi,cr),cr|=d;return Vt(o,i,h,l),i.child}function _w(o,i){var l=i.ref;(o===null&&l!==null||o!==null&&o.ref!==l)&&(i.flags|=512,i.flags|=2097152)}function M0(o,i,l,d,h){var b=Yt(l)?Nn:At.current;return b=Ei(i,b),Oi(i,h),l=S0(o,i,l,d,b,h),d=B0(),o!==null&&!Qt?(i.updateQueue=o.updateQueue,i.flags&=-2053,o.lanes&=~h,mo(o,i,h)):(ot&&d&&a0(i),i.flags|=1,Vt(o,i,l,h),i.child)}function Cw(o,i,l,d,h){if(Yt(l)){var b=!0;hc(i)}else b=!1;if(Oi(i,h),i.stateNode===null)Rc(o,i),mw(i,l,d),T0(i,l,d,h),d=!0;else if(o===null){var _=i.stateNode,R=i.memoizedProps;_.props=R;var E=_.context,U=l.contextType;typeof U=="object"&&U!==null?U=br(U):(U=Yt(l)?Nn:At.current,U=Ei(i,U));var ie=l.getDerivedStateFromProps,se=typeof ie=="function"||typeof _.getSnapshotBeforeUpdate=="function";se||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(R!==d||E!==U)&&vw(i,_,d,U),Yo=!1;var oe=i.memoizedState;_.state=oe,Sc(i,d,_,h),E=i.memoizedState,R!==d||oe!==E||Kt.current||Yo?(typeof ie=="function"&&(N0(i,l,ie,d),E=i.memoizedState),(R=Yo||gw(i,l,R,d,oe,E,U))?(se||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(i.flags|=4194308)):(typeof _.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=d,i.memoizedState=E),_.props=d,_.state=E,_.context=U,d=R):(typeof _.componentDidMount=="function"&&(i.flags|=4194308),d=!1)}else{_=i.stateNode,Wx(o,i),R=i.memoizedProps,U=i.type===i.elementType?R:Ir(i.type,R),_.props=U,se=i.pendingProps,oe=_.context,E=l.contextType,typeof E=="object"&&E!==null?E=br(E):(E=Yt(l)?Nn:At.current,E=Ei(i,E));var he=l.getDerivedStateFromProps;(ie=typeof he=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(R!==se||oe!==E)&&vw(i,_,d,E),Yo=!1,oe=i.memoizedState,_.state=oe,Sc(i,d,_,h);var ve=i.memoizedState;R!==se||oe!==ve||Kt.current||Yo?(typeof he=="function"&&(N0(i,l,he,d),ve=i.memoizedState),(U=Yo||gw(i,l,U,d,oe,ve,E)||!1)?(ie||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(d,ve,E),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(d,ve,E)),typeof _.componentDidUpdate=="function"&&(i.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof _.componentDidUpdate!="function"||R===o.memoizedProps&&oe===o.memoizedState||(i.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||R===o.memoizedProps&&oe===o.memoizedState||(i.flags|=1024),i.memoizedProps=d,i.memoizedState=ve),_.props=d,_.state=ve,_.context=E,d=U):(typeof _.componentDidUpdate!="function"||R===o.memoizedProps&&oe===o.memoizedState||(i.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||R===o.memoizedProps&&oe===o.memoizedState||(i.flags|=1024),d=!1)}return E0(o,i,l,d,b,h)}function E0(o,i,l,d,h,b){_w(o,i);var _=(i.flags&128)!==0;if(!d&&!_)return h&&Mx(i,l,!1),mo(o,i,b);d=i.stateNode,MF.current=i;var R=_&&typeof l.getDerivedStateFromError!="function"?null:d.render();return i.flags|=1,o!==null&&_?(i.child=Di(i,o.child,null,b),i.child=Di(i,null,R,b)):Vt(o,i,R,b),i.memoizedState=d.state,h&&Mx(i,l,!0),i.child}function Nw(o){var i=o.stateNode;i.pendingContext?Px(o,i.pendingContext,i.pendingContext!==i.context):i.context&&Px(o,i.context,!1),v0(o,i.containerInfo)}function Tw(o,i,l,d,h){return Ai(),u0(h),i.flags|=256,Vt(o,i,l,d),i.child}var I0={dehydrated:null,treeContext:null,retryLane:0};function F0(o){return{baseLanes:o,cachePool:null,transitions:null}}function Pw(o,i,l){var d=i.pendingProps,h=lt.current,b=!1,_=(i.flags&128)!==0,R;if((R=_)||(R=o!==null&&o.memoizedState===null?!1:(h&2)!==0),R?(b=!0,i.flags&=-129):(o===null||o.memoizedState!==null)&&(h|=1),Je(lt,h&1),o===null)return c0(i),o=i.memoizedState,o!==null&&(o=o.dehydrated,o!==null)?((i.mode&1)===0?i.lanes=1:o.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(_=d.children,o=d.fallback,b?(d=i.mode,b=i.child,_={mode:"hidden",children:_},(d&1)===0&&b!==null?(b.childLanes=0,b.pendingProps=_):b=Wc(_,d,0,null),o=qn(o,d,l,null),b.return=i,o.return=i,b.sibling=o,i.child=b,i.child.memoizedState=F0(l),i.memoizedState=I0,o):A0(i,_));if(h=o.memoizedState,h!==null&&(R=h.dehydrated,R!==null))return EF(o,i,_,d,R,h,l);if(b){b=d.fallback,_=i.mode,h=o.child,R=h.sibling;var E={mode:"hidden",children:d.children};return(_&1)===0&&i.child!==h?(d=i.child,d.childLanes=0,d.pendingProps=E,i.deletions=null):(d=on(h,E),d.subtreeFlags=h.subtreeFlags&14680064),R!==null?b=on(R,b):(b=qn(b,_,l,null),b.flags|=2),b.return=i,d.return=i,d.sibling=b,i.child=d,d=b,b=i.child,_=o.child.memoizedState,_=_===null?F0(l):{baseLanes:_.baseLanes|l,cachePool:null,transitions:_.transitions},b.memoizedState=_,b.childLanes=o.childLanes&~l,i.memoizedState=I0,d}return b=o.child,o=b.sibling,d=on(b,{mode:"visible",children:d.children}),(i.mode&1)===0&&(d.lanes=l),d.return=i,d.sibling=null,o!==null&&(l=i.deletions,l===null?(i.deletions=[o],i.flags|=16):l.push(o)),i.child=d,i.memoizedState=null,d}function A0(o,i){return i=Wc({mode:"visible",children:i},o.mode,0,null),i.return=o,o.child=i}function Pc(o,i,l,d){return d!==null&&u0(d),Di(i,o.child,null,l),o=A0(i,i.pendingProps.children),o.flags|=2,i.memoizedState=null,o}function EF(o,i,l,d,h,b,_){if(l)return i.flags&256?(i.flags&=-257,d=P0(Error(r(422))),Pc(o,i,_,d)):i.memoizedState!==null?(i.child=o.child,i.flags|=128,null):(b=d.fallback,h=i.mode,d=Wc({mode:"visible",children:d.children},h,0,null),b=qn(b,h,_,null),b.flags|=2,d.return=i,b.return=i,d.sibling=b,i.child=d,(i.mode&1)!==0&&Di(i,o.child,null,_),i.child.memoizedState=F0(_),i.memoizedState=I0,b);if((i.mode&1)===0)return Pc(o,i,_,null);if(h.data==="$!"){if(d=h.nextSibling&&h.nextSibling.dataset,d)var R=d.dgst;return d=R,b=Error(r(419)),d=P0(b,d,void 0),Pc(o,i,_,d)}if(R=(_&o.childLanes)!==0,Qt||R){if(d=_t,d!==null){switch(_&-_){case 4:h=2;break;case 16:h=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:h=32;break;case 536870912:h=268435456;break;default:h=0}h=(h&(d.suspendedLanes|_))!==0?0:h,h!==0&&h!==b.retryLane&&(b.retryLane=h,ho(o,h),Dr(d,o,h,-1))}return J0(),d=P0(Error(r(421))),Pc(o,i,_,d)}return h.data==="$?"?(i.flags|=128,i.child=o.child,i=GF.bind(null,o),h._reactRetry=i,null):(o=b.treeContext,lr=Uo(h.nextSibling),sr=i,ot=!0,Er=null,o!==null&&(mr[vr++]=fo,mr[vr++]=po,mr[vr++]=Tn,fo=o.id,po=o.overflow,Tn=i),i=A0(i,d.children),i.flags|=4096,i)}function Rw(o,i,l){o.lanes|=i;var d=o.alternate;d!==null&&(d.lanes|=i),h0(o.return,i,l)}function D0(o,i,l,d,h){var b=o.memoizedState;b===null?o.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:d,tail:l,tailMode:h}:(b.isBackwards=i,b.rendering=null,b.renderingStartTime=0,b.last=d,b.tail=l,b.tailMode=h)}function Mw(o,i,l){var d=i.pendingProps,h=d.revealOrder,b=d.tail;if(Vt(o,i,d.children,l),d=lt.current,(d&2)!==0)d=d&1|2,i.flags|=128;else{if(o!==null&&(o.flags&128)!==0)e:for(o=i.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&Rw(o,l,i);else if(o.tag===19)Rw(o,l,i);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break e;for(;o.sibling===null;){if(o.return===null||o.return===i)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}d&=1}if(Je(lt,d),(i.mode&1)===0)i.memoizedState=null;else switch(h){case"forwards":for(l=i.child,h=null;l!==null;)o=l.alternate,o!==null&&Bc(o)===null&&(h=l),l=l.sibling;l=h,l===null?(h=i.child,i.child=null):(h=l.sibling,l.sibling=null),D0(i,!1,h,l,b);break;case"backwards":for(l=null,h=i.child,i.child=null;h!==null;){if(o=h.alternate,o!==null&&Bc(o)===null){i.child=h;break}o=h.sibling,h.sibling=l,l=h,h=o}D0(i,!0,l,null,b);break;case"together":D0(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Rc(o,i){(i.mode&1)===0&&o!==null&&(o.alternate=null,i.alternate=null,i.flags|=2)}function mo(o,i,l){if(o!==null&&(i.dependencies=o.dependencies),In|=i.lanes,(l&i.childLanes)===0)return null;if(o!==null&&i.child!==o.child)throw Error(r(153));if(i.child!==null){for(o=i.child,l=on(o,o.pendingProps),i.child=l,l.return=i;o.sibling!==null;)o=o.sibling,l=l.sibling=on(o,o.pendingProps),l.return=i;l.sibling=null}return i.child}function IF(o,i,l){switch(i.tag){case 3:Nw(i),Ai();break;case 5:Gx(i);break;case 1:Yt(i.type)&&hc(i);break;case 4:v0(i,i.stateNode.containerInfo);break;case 10:var d=i.type._context,h=i.memoizedProps.value;Je(xc,d._currentValue),d._currentValue=h;break;case 13:if(d=i.memoizedState,d!==null)return d.dehydrated!==null?(Je(lt,lt.current&1),i.flags|=128,null):(l&i.child.childLanes)!==0?Pw(o,i,l):(Je(lt,lt.current&1),o=mo(o,i,l),o!==null?o.sibling:null);Je(lt,lt.current&1);break;case 19:if(d=(l&i.childLanes)!==0,(o.flags&128)!==0){if(d)return Mw(o,i,l);i.flags|=128}if(h=i.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),Je(lt,lt.current),d)break;return null;case 22:case 23:return i.lanes=0,jw(o,i,l)}return mo(o,i,l)}var Ew,q0,Iw,Fw;Ew=function(o,i){for(var l=i.child;l!==null;){if(l.tag===5||l.tag===6)o.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},q0=function(){},Iw=function(o,i,l,d){var h=o.memoizedProps;if(h!==d){o=i.stateNode,Mn(Kr.current);var b=null;switch(l){case"input":h=Pa(o,h),d=Pa(o,d),b=[];break;case"select":h=K({},h,{value:void 0}),d=K({},d,{value:void 0}),b=[];break;case"textarea":h=vf(o,h),d=vf(o,d),b=[];break;default:typeof h.onClick!="function"&&typeof d.onClick=="function"&&(o.onclick=dc)}yf(l,d);var _;l=null;for(U in h)if(!d.hasOwnProperty(U)&&h.hasOwnProperty(U)&&h[U]!=null)if(U==="style"){var R=h[U];for(_ in R)R.hasOwnProperty(_)&&(l||(l={}),l[_]="")}else U!=="dangerouslySetInnerHTML"&&U!=="children"&&U!=="suppressContentEditableWarning"&&U!=="suppressHydrationWarning"&&U!=="autoFocus"&&(a.hasOwnProperty(U)?b||(b=[]):(b=b||[]).push(U,null));for(U in d){var E=d[U];if(R=h?.[U],d.hasOwnProperty(U)&&E!==R&&(E!=null||R!=null))if(U==="style")if(R){for(_ in R)!R.hasOwnProperty(_)||E&&E.hasOwnProperty(_)||(l||(l={}),l[_]="");for(_ in E)E.hasOwnProperty(_)&&R[_]!==E[_]&&(l||(l={}),l[_]=E[_])}else l||(b||(b=[]),b.push(U,l)),l=E;else U==="dangerouslySetInnerHTML"?(E=E?E.__html:void 0,R=R?R.__html:void 0,E!=null&&R!==E&&(b=b||[]).push(U,E)):U==="children"?typeof E!="string"&&typeof E!="number"||(b=b||[]).push(U,""+E):U!=="suppressContentEditableWarning"&&U!=="suppressHydrationWarning"&&(a.hasOwnProperty(U)?(E!=null&&U==="onScroll"&&et("scroll",o),b||R===E||(b=[])):(b=b||[]).push(U,E))}l&&(b=b||[]).push("style",l);var U=b;(i.updateQueue=U)&&(i.flags|=4)}},Fw=function(o,i,l,d){l!==d&&(i.flags|=4)};function ds(o,i){if(!ot)switch(o.tailMode){case"hidden":i=o.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?o.tail=null:l.sibling=null;break;case"collapsed":l=o.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?i||o.tail===null?o.tail=null:o.tail.sibling=null:d.sibling=null}}function qt(o){var i=o.alternate!==null&&o.alternate.child===o.child,l=0,d=0;if(i)for(var h=o.child;h!==null;)l|=h.lanes|h.childLanes,d|=h.subtreeFlags&14680064,d|=h.flags&14680064,h.return=o,h=h.sibling;else for(h=o.child;h!==null;)l|=h.lanes|h.childLanes,d|=h.subtreeFlags,d|=h.flags,h.return=o,h=h.sibling;return o.subtreeFlags|=d,o.childLanes=l,i}function FF(o,i,l){var d=i.pendingProps;switch(s0(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qt(i),null;case 1:return Yt(i.type)&&pc(),qt(i),null;case 3:return d=i.stateNode,Hi(),tt(Kt),tt(At),x0(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(o===null||o.child===null)&&(bc(i)?i.flags|=4:o===null||o.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Er!==null&&(Y0(Er),Er=null))),q0(o,i),qt(i),null;case 5:b0(i);var h=Mn(as.current);if(l=i.type,o!==null&&i.stateNode!=null)Iw(o,i,l,d,h),o.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!d){if(i.stateNode===null)throw Error(r(166));return qt(i),null}if(o=Mn(Kr.current),bc(i)){d=i.stateNode,l=i.type;var b=i.memoizedProps;switch(d[Xr]=i,d[ts]=b,o=(i.mode&1)!==0,l){case"dialog":et("cancel",d),et("close",d);break;case"iframe":case"object":case"embed":et("load",d);break;case"video":case"audio":for(h=0;h<Za.length;h++)et(Za[h],d);break;case"source":et("error",d);break;case"img":case"image":case"link":et("error",d),et("load",d);break;case"details":et("toggle",d);break;case"input":_e(d,b),et("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!b.multiple},et("invalid",d);break;case"textarea":yy(d,b),et("invalid",d)}yf(l,b),h=null;for(var _ in b)if(b.hasOwnProperty(_)){var R=b[_];_==="children"?typeof R=="string"?d.textContent!==R&&(b.suppressHydrationWarning!==!0&&uc(d.textContent,R,o),h=["children",R]):typeof R=="number"&&d.textContent!==""+R&&(b.suppressHydrationWarning!==!0&&uc(d.textContent,R,o),h=["children",""+R]):a.hasOwnProperty(_)&&R!=null&&_==="onScroll"&&et("scroll",d)}switch(l){case"input":Ur(d),Do(d,b,!0);break;case"textarea":Ur(d),wy(d);break;case"select":case"option":break;default:typeof b.onClick=="function"&&(d.onclick=dc)}d=h,i.updateQueue=d,d!==null&&(i.flags|=4)}else{_=h.nodeType===9?h:h.ownerDocument,o==="http://www.w3.org/1999/xhtml"&&(o=ky(l)),o==="http://www.w3.org/1999/xhtml"?l==="script"?(o=_.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild)):typeof d.is=="string"?o=_.createElement(l,{is:d.is}):(o=_.createElement(l),l==="select"&&(_=o,d.multiple?_.multiple=!0:d.size&&(_.size=d.size))):o=_.createElementNS(o,l),o[Xr]=i,o[ts]=d,Ew(o,i,!1,!1),i.stateNode=o;e:{switch(_=xf(l,d),l){case"dialog":et("cancel",o),et("close",o),h=d;break;case"iframe":case"object":case"embed":et("load",o),h=d;break;case"video":case"audio":for(h=0;h<Za.length;h++)et(Za[h],o);h=d;break;case"source":et("error",o),h=d;break;case"img":case"image":case"link":et("error",o),et("load",o),h=d;break;case"details":et("toggle",o),h=d;break;case"input":_e(o,d),h=Pa(o,d),et("invalid",o);break;case"option":h=d;break;case"select":o._wrapperState={wasMultiple:!!d.multiple},h=K({},d,{value:void 0}),et("invalid",o);break;case"textarea":yy(o,d),h=vf(o,d),et("invalid",o);break;default:h=d}yf(l,h),R=h;for(b in R)if(R.hasOwnProperty(b)){var E=R[b];b==="style"?zy(o,E):b==="dangerouslySetInnerHTML"?(E=E?E.__html:void 0,E!=null&&Sy(o,E)):b==="children"?typeof E=="string"?(l!=="textarea"||E!=="")&&Ma(o,E):typeof E=="number"&&Ma(o,""+E):b!=="suppressContentEditableWarning"&&b!=="suppressHydrationWarning"&&b!=="autoFocus"&&(a.hasOwnProperty(b)?E!=null&&b==="onScroll"&&et("scroll",o):E!=null&&j(o,b,E,_))}switch(l){case"input":Ur(o),Do(o,d,!1);break;case"textarea":Ur(o),wy(o);break;case"option":d.value!=null&&o.setAttribute("value",""+Te(d.value));break;case"select":o.multiple=!!d.multiple,b=d.value,b!=null?ki(o,!!d.multiple,b,!1):d.defaultValue!=null&&ki(o,!!d.multiple,d.defaultValue,!0);break;default:typeof h.onClick=="function"&&(o.onclick=dc)}switch(l){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}}d&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return qt(i),null;case 6:if(o&&i.stateNode!=null)Fw(o,i,o.memoizedProps,d);else{if(typeof d!="string"&&i.stateNode===null)throw Error(r(166));if(l=Mn(as.current),Mn(Kr.current),bc(i)){if(d=i.stateNode,l=i.memoizedProps,d[Xr]=i,(b=d.nodeValue!==l)&&(o=sr,o!==null))switch(o.tag){case 3:uc(d.nodeValue,l,(o.mode&1)!==0);break;case 5:o.memoizedProps.suppressHydrationWarning!==!0&&uc(d.nodeValue,l,(o.mode&1)!==0)}b&&(i.flags|=4)}else d=(l.nodeType===9?l:l.ownerDocument).createTextNode(d),d[Xr]=i,i.stateNode=d}return qt(i),null;case 13:if(tt(lt),d=i.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(ot&&lr!==null&&(i.mode&1)!==0&&(i.flags&128)===0)qx(),Ai(),i.flags|=98560,b=!1;else if(b=bc(i),d!==null&&d.dehydrated!==null){if(o===null){if(!b)throw Error(r(318));if(b=i.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(r(317));b[Xr]=i}else Ai(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;qt(i),b=!1}else Er!==null&&(Y0(Er),Er=null),b=!0;if(!b)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=l,i):(d=d!==null,d!==(o!==null&&o.memoizedState!==null)&&d&&(i.child.flags|=8192,(i.mode&1)!==0&&(o===null||(lt.current&1)!==0?St===0&&(St=3):J0())),i.updateQueue!==null&&(i.flags|=4),qt(i),null);case 4:return Hi(),q0(o,i),o===null&&Ja(i.stateNode.containerInfo),qt(i),null;case 10:return p0(i.type._context),qt(i),null;case 17:return Yt(i.type)&&pc(),qt(i),null;case 19:if(tt(lt),b=i.memoizedState,b===null)return qt(i),null;if(d=(i.flags&128)!==0,_=b.rendering,_===null)if(d)ds(b,!1);else{if(St!==0||o!==null&&(o.flags&128)!==0)for(o=i.child;o!==null;){if(_=Bc(o),_!==null){for(i.flags|=128,ds(b,!1),d=_.updateQueue,d!==null&&(i.updateQueue=d,i.flags|=4),i.subtreeFlags=0,d=l,l=i.child;l!==null;)b=l,o=d,b.flags&=14680066,_=b.alternate,_===null?(b.childLanes=0,b.lanes=o,b.child=null,b.subtreeFlags=0,b.memoizedProps=null,b.memoizedState=null,b.updateQueue=null,b.dependencies=null,b.stateNode=null):(b.childLanes=_.childLanes,b.lanes=_.lanes,b.child=_.child,b.subtreeFlags=0,b.deletions=null,b.memoizedProps=_.memoizedProps,b.memoizedState=_.memoizedState,b.updateQueue=_.updateQueue,b.type=_.type,o=_.dependencies,b.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),l=l.sibling;return Je(lt,lt.current&1|2),i.child}o=o.sibling}b.tail!==null&&gt()>$i&&(i.flags|=128,d=!0,ds(b,!1),i.lanes=4194304)}else{if(!d)if(o=Bc(_),o!==null){if(i.flags|=128,d=!0,l=o.updateQueue,l!==null&&(i.updateQueue=l,i.flags|=4),ds(b,!0),b.tail===null&&b.tailMode==="hidden"&&!_.alternate&&!ot)return qt(i),null}else 2*gt()-b.renderingStartTime>$i&&l!==1073741824&&(i.flags|=128,d=!0,ds(b,!1),i.lanes=4194304);b.isBackwards?(_.sibling=i.child,i.child=_):(l=b.last,l!==null?l.sibling=_:i.child=_,b.last=_)}return b.tail!==null?(i=b.tail,b.rendering=i,b.tail=i.sibling,b.renderingStartTime=gt(),i.sibling=null,l=lt.current,Je(lt,d?l&1|2:l&1),i):(qt(i),null);case 22:case 23:return Z0(),d=i.memoizedState!==null,o!==null&&o.memoizedState!==null!==d&&(i.flags|=8192),d&&(i.mode&1)!==0?(cr&1073741824)!==0&&(qt(i),i.subtreeFlags&6&&(i.flags|=8192)):qt(i),null;case 24:return null;case 25:return null}throw Error(r(156,i.tag))}function AF(o,i){switch(s0(i),i.tag){case 1:return Yt(i.type)&&pc(),o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 3:return Hi(),tt(Kt),tt(At),x0(),o=i.flags,(o&65536)!==0&&(o&128)===0?(i.flags=o&-65537|128,i):null;case 5:return b0(i),null;case 13:if(tt(lt),o=i.memoizedState,o!==null&&o.dehydrated!==null){if(i.alternate===null)throw Error(r(340));Ai()}return o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 19:return tt(lt),null;case 4:return Hi(),null;case 10:return p0(i.type._context),null;case 22:case 23:return Z0(),null;case 24:return null;default:return null}}var Mc=!1,Ot=!1,DF=typeof WeakSet=="function"?WeakSet:Set,ge=null;function Vi(o,i){var l=o.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(d){ft(o,i,d)}else l.current=null}function O0(o,i,l){try{l()}catch(d){ft(o,i,d)}}var Aw=!1;function qF(o,i){if(Zf=Jl,o=gx(),Wf(o)){if("selectionStart"in o)var l={start:o.selectionStart,end:o.selectionEnd};else e:{l=(l=o.ownerDocument)&&l.defaultView||window;var d=l.getSelection&&l.getSelection();if(d&&d.rangeCount!==0){l=d.anchorNode;var h=d.anchorOffset,b=d.focusNode;d=d.focusOffset;try{l.nodeType,b.nodeType}catch{l=null;break e}var _=0,R=-1,E=-1,U=0,ie=0,se=o,oe=null;t:for(;;){for(var he;se!==l||h!==0&&se.nodeType!==3||(R=_+h),se!==b||d!==0&&se.nodeType!==3||(E=_+d),se.nodeType===3&&(_+=se.nodeValue.length),(he=se.firstChild)!==null;)oe=se,se=he;for(;;){if(se===o)break t;if(oe===l&&++U===h&&(R=_),oe===b&&++ie===d&&(E=_),(he=se.nextSibling)!==null)break;se=oe,oe=se.parentNode}se=he}l=R===-1||E===-1?null:{start:R,end:E}}else l=null}l=l||{start:0,end:0}}else l=null;for(Jf={focusedElem:o,selectionRange:l},Jl=!1,ge=i;ge!==null;)if(i=ge,o=i.child,(i.subtreeFlags&1028)!==0&&o!==null)o.return=i,ge=o;else for(;ge!==null;){i=ge;try{var ve=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(ve!==null){var be=ve.memoizedProps,mt=ve.memoizedState,H=i.stateNode,D=H.getSnapshotBeforeUpdate(i.elementType===i.type?be:Ir(i.type,be),mt);H.__reactInternalSnapshotBeforeUpdate=D}break;case 3:var L=i.stateNode.containerInfo;L.nodeType===1?L.textContent="":L.nodeType===9&&L.documentElement&&L.removeChild(L.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(pe){ft(i,i.return,pe)}if(o=i.sibling,o!==null){o.return=i.return,ge=o;break}ge=i.return}return ve=Aw,Aw=!1,ve}function fs(o,i,l){var d=i.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var h=d=d.next;do{if((h.tag&o)===o){var b=h.destroy;h.destroy=void 0,b!==void 0&&O0(i,l,b)}h=h.next}while(h!==d)}}function Ec(o,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var l=i=i.next;do{if((l.tag&o)===o){var d=l.create;l.destroy=d()}l=l.next}while(l!==i)}}function H0(o){var i=o.ref;if(i!==null){var l=o.stateNode;o.tag,o=l,typeof i=="function"?i(o):i.current=o}}function Dw(o){var i=o.alternate;i!==null&&(o.alternate=null,Dw(i)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(i=o.stateNode,i!==null&&(delete i[Xr],delete i[ts],delete i[o0],delete i[wF],delete i[kF])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function qw(o){return o.tag===5||o.tag===3||o.tag===4}function Ow(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||qw(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function L0(o,i,l){var d=o.tag;if(d===5||d===6)o=o.stateNode,i?l.nodeType===8?l.parentNode.insertBefore(o,i):l.insertBefore(o,i):(l.nodeType===8?(i=l.parentNode,i.insertBefore(o,l)):(i=l,i.appendChild(o)),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=dc));else if(d!==4&&(o=o.child,o!==null))for(L0(o,i,l),o=o.sibling;o!==null;)L0(o,i,l),o=o.sibling}function V0(o,i,l){var d=o.tag;if(d===5||d===6)o=o.stateNode,i?l.insertBefore(o,i):l.appendChild(o);else if(d!==4&&(o=o.child,o!==null))for(V0(o,i,l),o=o.sibling;o!==null;)V0(o,i,l),o=o.sibling}var Rt=null,Fr=!1;function Zo(o,i,l){for(l=l.child;l!==null;)Hw(o,i,l),l=l.sibling}function Hw(o,i,l){if(Gr&&typeof Gr.onCommitFiberUnmount=="function")try{Gr.onCommitFiberUnmount(Gl,l)}catch{}switch(l.tag){case 5:Ot||Vi(l,i);case 6:var d=Rt,h=Fr;Rt=null,Zo(o,i,l),Rt=d,Fr=h,Rt!==null&&(Fr?(o=Rt,l=l.stateNode,o.nodeType===8?o.parentNode.removeChild(l):o.removeChild(l)):Rt.removeChild(l.stateNode));break;case 18:Rt!==null&&(Fr?(o=Rt,l=l.stateNode,o.nodeType===8?r0(o.parentNode,l):o.nodeType===1&&r0(o,l),Wa(o)):r0(Rt,l.stateNode));break;case 4:d=Rt,h=Fr,Rt=l.stateNode.containerInfo,Fr=!0,Zo(o,i,l),Rt=d,Fr=h;break;case 0:case 11:case 14:case 15:if(!Ot&&(d=l.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){h=d=d.next;do{var b=h,_=b.destroy;b=b.tag,_!==void 0&&((b&2)!==0||(b&4)!==0)&&O0(l,i,_),h=h.next}while(h!==d)}Zo(o,i,l);break;case 1:if(!Ot&&(Vi(l,i),d=l.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=l.memoizedProps,d.state=l.memoizedState,d.componentWillUnmount()}catch(R){ft(l,i,R)}Zo(o,i,l);break;case 21:Zo(o,i,l);break;case 22:l.mode&1?(Ot=(d=Ot)||l.memoizedState!==null,Zo(o,i,l),Ot=d):Zo(o,i,l);break;default:Zo(o,i,l)}}function Lw(o){var i=o.updateQueue;if(i!==null){o.updateQueue=null;var l=o.stateNode;l===null&&(l=o.stateNode=new DF),i.forEach(function(d){var h=XF.bind(null,o,d);l.has(d)||(l.add(d),d.then(h,h))})}}function Ar(o,i){var l=i.deletions;if(l!==null)for(var d=0;d<l.length;d++){var h=l[d];try{var b=o,_=i,R=_;e:for(;R!==null;){switch(R.tag){case 5:Rt=R.stateNode,Fr=!1;break e;case 3:Rt=R.stateNode.containerInfo,Fr=!0;break e;case 4:Rt=R.stateNode.containerInfo,Fr=!0;break e}R=R.return}if(Rt===null)throw Error(r(160));Hw(b,_,h),Rt=null,Fr=!1;var E=h.alternate;E!==null&&(E.return=null),h.return=null}catch(U){ft(h,i,U)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)Vw(i,o),i=i.sibling}function Vw(o,i){var l=o.alternate,d=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:if(Ar(i,o),Qr(o),d&4){try{fs(3,o,o.return),Ec(3,o)}catch(be){ft(o,o.return,be)}try{fs(5,o,o.return)}catch(be){ft(o,o.return,be)}}break;case 1:Ar(i,o),Qr(o),d&512&&l!==null&&Vi(l,l.return);break;case 5:if(Ar(i,o),Qr(o),d&512&&l!==null&&Vi(l,l.return),o.flags&32){var h=o.stateNode;try{Ma(h,"")}catch(be){ft(o,o.return,be)}}if(d&4&&(h=o.stateNode,h!=null)){var b=o.memoizedProps,_=l!==null?l.memoizedProps:b,R=o.type,E=o.updateQueue;if(o.updateQueue=null,E!==null)try{R==="input"&&b.type==="radio"&&b.name!=null&&qe(h,b),xf(R,_);var U=xf(R,b);for(_=0;_<E.length;_+=2){var ie=E[_],se=E[_+1];ie==="style"?zy(h,se):ie==="dangerouslySetInnerHTML"?Sy(h,se):ie==="children"?Ma(h,se):j(h,ie,se,U)}switch(R){case"input":Ft(h,b);break;case"textarea":xy(h,b);break;case"select":var oe=h._wrapperState.wasMultiple;h._wrapperState.wasMultiple=!!b.multiple;var he=b.value;he!=null?ki(h,!!b.multiple,he,!1):oe!==!!b.multiple&&(b.defaultValue!=null?ki(h,!!b.multiple,b.defaultValue,!0):ki(h,!!b.multiple,b.multiple?[]:"",!1))}h[ts]=b}catch(be){ft(o,o.return,be)}}break;case 6:if(Ar(i,o),Qr(o),d&4){if(o.stateNode===null)throw Error(r(162));h=o.stateNode,b=o.memoizedProps;try{h.nodeValue=b}catch(be){ft(o,o.return,be)}}break;case 3:if(Ar(i,o),Qr(o),d&4&&l!==null&&l.memoizedState.isDehydrated)try{Wa(i.containerInfo)}catch(be){ft(o,o.return,be)}break;case 4:Ar(i,o),Qr(o);break;case 13:Ar(i,o),Qr(o),h=o.child,h.flags&8192&&(b=h.memoizedState!==null,h.stateNode.isHidden=b,!b||h.alternate!==null&&h.alternate.memoizedState!==null||(U0=gt())),d&4&&Lw(o);break;case 22:if(ie=l!==null&&l.memoizedState!==null,o.mode&1?(Ot=(U=Ot)||ie,Ar(i,o),Ot=U):Ar(i,o),Qr(o),d&8192){if(U=o.memoizedState!==null,(o.stateNode.isHidden=U)&&!ie&&(o.mode&1)!==0)for(ge=o,ie=o.child;ie!==null;){for(se=ge=ie;ge!==null;){switch(oe=ge,he=oe.child,oe.tag){case 0:case 11:case 14:case 15:fs(4,oe,oe.return);break;case 1:Vi(oe,oe.return);var ve=oe.stateNode;if(typeof ve.componentWillUnmount=="function"){d=oe,l=oe.return;try{i=d,ve.props=i.memoizedProps,ve.state=i.memoizedState,ve.componentWillUnmount()}catch(be){ft(d,l,be)}}break;case 5:Vi(oe,oe.return);break;case 22:if(oe.memoizedState!==null){Uw(se);continue}}he!==null?(he.return=oe,ge=he):Uw(se)}ie=ie.sibling}e:for(ie=null,se=o;;){if(se.tag===5){if(ie===null){ie=se;try{h=se.stateNode,U?(b=h.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none"):(R=se.stateNode,E=se.memoizedProps.style,_=E!=null&&E.hasOwnProperty("display")?E.display:null,R.style.display=By("display",_))}catch(be){ft(o,o.return,be)}}}else if(se.tag===6){if(ie===null)try{se.stateNode.nodeValue=U?"":se.memoizedProps}catch(be){ft(o,o.return,be)}}else if((se.tag!==22&&se.tag!==23||se.memoizedState===null||se===o)&&se.child!==null){se.child.return=se,se=se.child;continue}if(se===o)break e;for(;se.sibling===null;){if(se.return===null||se.return===o)break e;ie===se&&(ie=null),se=se.return}ie===se&&(ie=null),se.sibling.return=se.return,se=se.sibling}}break;case 19:Ar(i,o),Qr(o),d&4&&Lw(o);break;case 21:break;default:Ar(i,o),Qr(o)}}function Qr(o){var i=o.flags;if(i&2){try{e:{for(var l=o.return;l!==null;){if(qw(l)){var d=l;break e}l=l.return}throw Error(r(160))}switch(d.tag){case 5:var h=d.stateNode;d.flags&32&&(Ma(h,""),d.flags&=-33);var b=Ow(o);V0(o,b,h);break;case 3:case 4:var _=d.stateNode.containerInfo,R=Ow(o);L0(o,R,_);break;default:throw Error(r(161))}}catch(E){ft(o,o.return,E)}o.flags&=-3}i&4096&&(o.flags&=-4097)}function OF(o,i,l){ge=o,Ww(o)}function Ww(o,i,l){for(var d=(o.mode&1)!==0;ge!==null;){var h=ge,b=h.child;if(h.tag===22&&d){var _=h.memoizedState!==null||Mc;if(!_){var R=h.alternate,E=R!==null&&R.memoizedState!==null||Ot;R=Mc;var U=Ot;if(Mc=_,(Ot=E)&&!U)for(ge=h;ge!==null;)_=ge,E=_.child,_.tag===22&&_.memoizedState!==null?Gw(h):E!==null?(E.return=_,ge=E):Gw(h);for(;b!==null;)ge=b,Ww(b),b=b.sibling;ge=h,Mc=R,Ot=U}$w(o)}else(h.subtreeFlags&8772)!==0&&b!==null?(b.return=h,ge=b):$w(o)}}function $w(o){for(;ge!==null;){var i=ge;if((i.flags&8772)!==0){var l=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:Ot||Ec(5,i);break;case 1:var d=i.stateNode;if(i.flags&4&&!Ot)if(l===null)d.componentDidMount();else{var h=i.elementType===i.type?l.memoizedProps:Ir(i.type,l.memoizedProps);d.componentDidUpdate(h,l.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var b=i.updateQueue;b!==null&&Ux(i,b,d);break;case 3:var _=i.updateQueue;if(_!==null){if(l=null,i.child!==null)switch(i.child.tag){case 5:l=i.child.stateNode;break;case 1:l=i.child.stateNode}Ux(i,_,l)}break;case 5:var R=i.stateNode;if(l===null&&i.flags&4){l=R;var E=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":E.autoFocus&&l.focus();break;case"img":E.src&&(l.src=E.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var U=i.alternate;if(U!==null){var ie=U.memoizedState;if(ie!==null){var se=ie.dehydrated;se!==null&&Wa(se)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Ot||i.flags&512&&H0(i)}catch(oe){ft(i,i.return,oe)}}if(i===o){ge=null;break}if(l=i.sibling,l!==null){l.return=i.return,ge=l;break}ge=i.return}}function Uw(o){for(;ge!==null;){var i=ge;if(i===o){ge=null;break}var l=i.sibling;if(l!==null){l.return=i.return,ge=l;break}ge=i.return}}function Gw(o){for(;ge!==null;){var i=ge;try{switch(i.tag){case 0:case 11:case 15:var l=i.return;try{Ec(4,i)}catch(E){ft(i,l,E)}break;case 1:var d=i.stateNode;if(typeof d.componentDidMount=="function"){var h=i.return;try{d.componentDidMount()}catch(E){ft(i,h,E)}}var b=i.return;try{H0(i)}catch(E){ft(i,b,E)}break;case 5:var _=i.return;try{H0(i)}catch(E){ft(i,_,E)}}}catch(E){ft(i,i.return,E)}if(i===o){ge=null;break}var R=i.sibling;if(R!==null){R.return=i.return,ge=R;break}ge=i.return}}var HF=Math.ceil,Ic=N.ReactCurrentDispatcher,W0=N.ReactCurrentOwner,xr=N.ReactCurrentBatchConfig,We=0,_t=null,wt=null,Mt=0,cr=0,Wi=Go(0),St=0,ps=null,In=0,Fc=0,$0=0,hs=null,Zt=null,U0=0,$i=1/0,vo=null,Ac=!1,G0=null,Jo=null,Dc=!1,en=null,qc=0,gs=0,X0=null,Oc=-1,Hc=0;function Wt(){return(We&6)!==0?gt():Oc!==-1?Oc:Oc=gt()}function tn(o){return(o.mode&1)===0?1:(We&2)!==0&&Mt!==0?Mt&-Mt:BF.transition!==null?(Hc===0&&(Hc=Oy()),Hc):(o=Ye,o!==0||(o=window.event,o=o===void 0?16:Ky(o.type)),o)}function Dr(o,i,l,d){if(50<gs)throw gs=0,X0=null,Error(r(185));qa(o,l,d),((We&2)===0||o!==_t)&&(o===_t&&((We&2)===0&&(Fc|=l),St===4&&rn(o,Mt)),Jt(o,d),l===1&&We===0&&(i.mode&1)===0&&($i=gt()+500,gc&&Ko()))}function Jt(o,i){var l=o.callbackNode;BI(o,i);var d=Yl(o,o===_t?Mt:0);if(d===0)l!==null&&Ay(l),o.callbackNode=null,o.callbackPriority=0;else if(i=d&-d,o.callbackPriority!==i){if(l!=null&&Ay(l),i===1)o.tag===0?SF(Kw.bind(null,o)):Ex(Kw.bind(null,o)),yF(function(){(We&6)===0&&Ko()}),l=null;else{switch(Hy(d)){case 1:l=_f;break;case 4:l=Dy;break;case 16:l=Ul;break;case 536870912:l=qy;break;default:l=Ul}l=o5(l,Xw.bind(null,o))}o.callbackPriority=i,o.callbackNode=l}}function Xw(o,i){if(Oc=-1,Hc=0,(We&6)!==0)throw Error(r(327));var l=o.callbackNode;if(Ui()&&o.callbackNode!==l)return null;var d=Yl(o,o===_t?Mt:0);if(d===0)return null;if((d&30)!==0||(d&o.expiredLanes)!==0||i)i=Lc(o,d);else{i=d;var h=We;We|=2;var b=Qw();(_t!==o||Mt!==i)&&(vo=null,$i=gt()+500,An(o,i));do try{WF();break}catch(R){Yw(o,R)}while(!0);f0(),Ic.current=b,We=h,wt!==null?i=0:(_t=null,Mt=0,i=St)}if(i!==0){if(i===2&&(h=Cf(o),h!==0&&(d=h,i=K0(o,h))),i===1)throw l=ps,An(o,0),rn(o,d),Jt(o,gt()),l;if(i===6)rn(o,d);else{if(h=o.current.alternate,(d&30)===0&&!LF(h)&&(i=Lc(o,d),i===2&&(b=Cf(o),b!==0&&(d=b,i=K0(o,b))),i===1))throw l=ps,An(o,0),rn(o,d),Jt(o,gt()),l;switch(o.finishedWork=h,o.finishedLanes=d,i){case 0:case 1:throw Error(r(345));case 2:Dn(o,Zt,vo);break;case 3:if(rn(o,d),(d&130023424)===d&&(i=U0+500-gt(),10<i)){if(Yl(o,0)!==0)break;if(h=o.suspendedLanes,(h&d)!==d){Wt(),o.pingedLanes|=o.suspendedLanes&h;break}o.timeoutHandle=t0(Dn.bind(null,o,Zt,vo),i);break}Dn(o,Zt,vo);break;case 4:if(rn(o,d),(d&4194240)===d)break;for(i=o.eventTimes,h=-1;0<d;){var _=31-Rr(d);b=1<<_,_=i[_],_>h&&(h=_),d&=~b}if(d=h,d=gt()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*HF(d/1960))-d,10<d){o.timeoutHandle=t0(Dn.bind(null,o,Zt,vo),d);break}Dn(o,Zt,vo);break;case 5:Dn(o,Zt,vo);break;default:throw Error(r(329))}}}return Jt(o,gt()),o.callbackNode===l?Xw.bind(null,o):null}function K0(o,i){var l=hs;return o.current.memoizedState.isDehydrated&&(An(o,i).flags|=256),o=Lc(o,i),o!==2&&(i=Zt,Zt=l,i!==null&&Y0(i)),o}function Y0(o){Zt===null?Zt=o:Zt.push.apply(Zt,o)}function LF(o){for(var i=o;;){if(i.flags&16384){var l=i.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var d=0;d<l.length;d++){var h=l[d],b=h.getSnapshot;h=h.value;try{if(!Mr(b(),h))return!1}catch{return!1}}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===o)break;for(;i.sibling===null;){if(i.return===null||i.return===o)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function rn(o,i){for(i&=~$0,i&=~Fc,o.suspendedLanes|=i,o.pingedLanes&=~i,o=o.expirationTimes;0<i;){var l=31-Rr(i),d=1<<l;o[l]=-1,i&=~d}}function Kw(o){if((We&6)!==0)throw Error(r(327));Ui();var i=Yl(o,0);if((i&1)===0)return Jt(o,gt()),null;var l=Lc(o,i);if(o.tag!==0&&l===2){var d=Cf(o);d!==0&&(i=d,l=K0(o,d))}if(l===1)throw l=ps,An(o,0),rn(o,i),Jt(o,gt()),l;if(l===6)throw Error(r(345));return o.finishedWork=o.current.alternate,o.finishedLanes=i,Dn(o,Zt,vo),Jt(o,gt()),null}function Q0(o,i){var l=We;We|=1;try{return o(i)}finally{We=l,We===0&&($i=gt()+500,gc&&Ko())}}function Fn(o){en!==null&&en.tag===0&&(We&6)===0&&Ui();var i=We;We|=1;var l=xr.transition,d=Ye;try{if(xr.transition=null,Ye=1,o)return o()}finally{Ye=d,xr.transition=l,We=i,(We&6)===0&&Ko()}}function Z0(){cr=Wi.current,tt(Wi)}function An(o,i){o.finishedWork=null,o.finishedLanes=0;var l=o.timeoutHandle;if(l!==-1&&(o.timeoutHandle=-1,bF(l)),wt!==null)for(l=wt.return;l!==null;){var d=l;switch(s0(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&pc();break;case 3:Hi(),tt(Kt),tt(At),x0();break;case 5:b0(d);break;case 4:Hi();break;case 13:tt(lt);break;case 19:tt(lt);break;case 10:p0(d.type._context);break;case 22:case 23:Z0()}l=l.return}if(_t=o,wt=o=on(o.current,null),Mt=cr=i,St=0,ps=null,$0=Fc=In=0,Zt=hs=null,Rn!==null){for(i=0;i<Rn.length;i++)if(l=Rn[i],d=l.interleaved,d!==null){l.interleaved=null;var h=d.next,b=l.pending;if(b!==null){var _=b.next;b.next=h,d.next=_}l.pending=d}Rn=null}return o}function Yw(o,i){do{var l=wt;try{if(f0(),zc.current=Nc,jc){for(var d=ct.memoizedState;d!==null;){var h=d.queue;h!==null&&(h.pending=null),d=d.next}jc=!1}if(En=0,jt=kt=ct=null,ss=!1,ls=0,W0.current=null,l===null||l.return===null){St=1,ps=i,wt=null;break}e:{var b=o,_=l.return,R=l,E=i;if(i=Mt,R.flags|=32768,E!==null&&typeof E=="object"&&typeof E.then=="function"){var U=E,ie=R,se=ie.tag;if((ie.mode&1)===0&&(se===0||se===11||se===15)){var oe=ie.alternate;oe?(ie.updateQueue=oe.updateQueue,ie.memoizedState=oe.memoizedState,ie.lanes=oe.lanes):(ie.updateQueue=null,ie.memoizedState=null)}var he=ww(_);if(he!==null){he.flags&=-257,kw(he,_,R,b,i),he.mode&1&&xw(b,U,i),i=he,E=U;var ve=i.updateQueue;if(ve===null){var be=new Set;be.add(E),i.updateQueue=be}else ve.add(E);break e}else{if((i&1)===0){xw(b,U,i),J0();break e}E=Error(r(426))}}else if(ot&&R.mode&1){var mt=ww(_);if(mt!==null){(mt.flags&65536)===0&&(mt.flags|=256),kw(mt,_,R,b,i),u0(Li(E,R));break e}}b=E=Li(E,R),St!==4&&(St=2),hs===null?hs=[b]:hs.push(b),b=_;do{switch(b.tag){case 3:b.flags|=65536,i&=-i,b.lanes|=i;var H=bw(b,E,i);$x(b,H);break e;case 1:R=E;var D=b.type,L=b.stateNode;if((b.flags&128)===0&&(typeof D.getDerivedStateFromError=="function"||L!==null&&typeof L.componentDidCatch=="function"&&(Jo===null||!Jo.has(L)))){b.flags|=65536,i&=-i,b.lanes|=i;var pe=yw(b,R,i);$x(b,pe);break e}}b=b.return}while(b!==null)}Jw(l)}catch(ye){i=ye,wt===l&&l!==null&&(wt=l=l.return);continue}break}while(!0)}function Qw(){var o=Ic.current;return Ic.current=Nc,o===null?Nc:o}function J0(){(St===0||St===3||St===2)&&(St=4),_t===null||(In&268435455)===0&&(Fc&268435455)===0||rn(_t,Mt)}function Lc(o,i){var l=We;We|=2;var d=Qw();(_t!==o||Mt!==i)&&(vo=null,An(o,i));do try{VF();break}catch(h){Yw(o,h)}while(!0);if(f0(),We=l,Ic.current=d,wt!==null)throw Error(r(261));return _t=null,Mt=0,St}function VF(){for(;wt!==null;)Zw(wt)}function WF(){for(;wt!==null&&!gI();)Zw(wt)}function Zw(o){var i=r5(o.alternate,o,cr);o.memoizedProps=o.pendingProps,i===null?Jw(o):wt=i,W0.current=null}function Jw(o){var i=o;do{var l=i.alternate;if(o=i.return,(i.flags&32768)===0){if(l=FF(l,i,cr),l!==null){wt=l;return}}else{if(l=AF(l,i),l!==null){l.flags&=32767,wt=l;return}if(o!==null)o.flags|=32768,o.subtreeFlags=0,o.deletions=null;else{St=6,wt=null;return}}if(i=i.sibling,i!==null){wt=i;return}wt=i=o}while(i!==null);St===0&&(St=5)}function Dn(o,i,l){var d=Ye,h=xr.transition;try{xr.transition=null,Ye=1,$F(o,i,l,d)}finally{xr.transition=h,Ye=d}return null}function $F(o,i,l,d){do Ui();while(en!==null);if((We&6)!==0)throw Error(r(327));l=o.finishedWork;var h=o.finishedLanes;if(l===null)return null;if(o.finishedWork=null,o.finishedLanes=0,l===o.current)throw Error(r(177));o.callbackNode=null,o.callbackPriority=0;var b=l.lanes|l.childLanes;if(zI(o,b),o===_t&&(wt=_t=null,Mt=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||Dc||(Dc=!0,o5(Ul,function(){return Ui(),null})),b=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||b){b=xr.transition,xr.transition=null;var _=Ye;Ye=1;var R=We;We|=4,W0.current=null,qF(o,l),Vw(l,o),dF(Jf),Jl=!!Zf,Jf=Zf=null,o.current=l,OF(l),mI(),We=R,Ye=_,xr.transition=b}else o.current=l;if(Dc&&(Dc=!1,en=o,qc=h),b=o.pendingLanes,b===0&&(Jo=null),yI(l.stateNode),Jt(o,gt()),i!==null)for(d=o.onRecoverableError,l=0;l<i.length;l++)h=i[l],d(h.value,{componentStack:h.stack,digest:h.digest});if(Ac)throw Ac=!1,o=G0,G0=null,o;return(qc&1)!==0&&o.tag!==0&&Ui(),b=o.pendingLanes,(b&1)!==0?o===X0?gs++:(gs=0,X0=o):gs=0,Ko(),null}function Ui(){if(en!==null){var o=Hy(qc),i=xr.transition,l=Ye;try{if(xr.transition=null,Ye=16>o?16:o,en===null)var d=!1;else{if(o=en,en=null,qc=0,(We&6)!==0)throw Error(r(331));var h=We;for(We|=4,ge=o.current;ge!==null;){var b=ge,_=b.child;if((ge.flags&16)!==0){var R=b.deletions;if(R!==null){for(var E=0;E<R.length;E++){var U=R[E];for(ge=U;ge!==null;){var ie=ge;switch(ie.tag){case 0:case 11:case 15:fs(8,ie,b)}var se=ie.child;if(se!==null)se.return=ie,ge=se;else for(;ge!==null;){ie=ge;var oe=ie.sibling,he=ie.return;if(Dw(ie),ie===U){ge=null;break}if(oe!==null){oe.return=he,ge=oe;break}ge=he}}}var ve=b.alternate;if(ve!==null){var be=ve.child;if(be!==null){ve.child=null;do{var mt=be.sibling;be.sibling=null,be=mt}while(be!==null)}}ge=b}}if((b.subtreeFlags&2064)!==0&&_!==null)_.return=b,ge=_;else e:for(;ge!==null;){if(b=ge,(b.flags&2048)!==0)switch(b.tag){case 0:case 11:case 15:fs(9,b,b.return)}var H=b.sibling;if(H!==null){H.return=b.return,ge=H;break e}ge=b.return}}var D=o.current;for(ge=D;ge!==null;){_=ge;var L=_.child;if((_.subtreeFlags&2064)!==0&&L!==null)L.return=_,ge=L;else e:for(_=D;ge!==null;){if(R=ge,(R.flags&2048)!==0)try{switch(R.tag){case 0:case 11:case 15:Ec(9,R)}}catch(ye){ft(R,R.return,ye)}if(R===_){ge=null;break e}var pe=R.sibling;if(pe!==null){pe.return=R.return,ge=pe;break e}ge=R.return}}if(We=h,Ko(),Gr&&typeof Gr.onPostCommitFiberRoot=="function")try{Gr.onPostCommitFiberRoot(Gl,o)}catch{}d=!0}return d}finally{Ye=l,xr.transition=i}}return!1}function e5(o,i,l){i=Li(l,i),i=bw(o,i,1),o=Qo(o,i,1),i=Wt(),o!==null&&(qa(o,1,i),Jt(o,i))}function ft(o,i,l){if(o.tag===3)e5(o,o,l);else for(;i!==null;){if(i.tag===3){e5(i,o,l);break}else if(i.tag===1){var d=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Jo===null||!Jo.has(d))){o=Li(l,o),o=yw(i,o,1),i=Qo(i,o,1),o=Wt(),i!==null&&(qa(i,1,o),Jt(i,o));break}}i=i.return}}function UF(o,i,l){var d=o.pingCache;d!==null&&d.delete(i),i=Wt(),o.pingedLanes|=o.suspendedLanes&l,_t===o&&(Mt&l)===l&&(St===4||St===3&&(Mt&130023424)===Mt&&500>gt()-U0?An(o,0):$0|=l),Jt(o,i)}function t5(o,i){i===0&&((o.mode&1)===0?i=1:(i=Kl,Kl<<=1,(Kl&130023424)===0&&(Kl=4194304)));var l=Wt();o=ho(o,i),o!==null&&(qa(o,i,l),Jt(o,l))}function GF(o){var i=o.memoizedState,l=0;i!==null&&(l=i.retryLane),t5(o,l)}function XF(o,i){var l=0;switch(o.tag){case 13:var d=o.stateNode,h=o.memoizedState;h!==null&&(l=h.retryLane);break;case 19:d=o.stateNode;break;default:throw Error(r(314))}d!==null&&d.delete(i),t5(o,l)}var r5;r5=function(o,i,l){if(o!==null)if(o.memoizedProps!==i.pendingProps||Kt.current)Qt=!0;else{if((o.lanes&l)===0&&(i.flags&128)===0)return Qt=!1,IF(o,i,l);Qt=(o.flags&131072)!==0}else Qt=!1,ot&&(i.flags&1048576)!==0&&Ix(i,vc,i.index);switch(i.lanes=0,i.tag){case 2:var d=i.type;Rc(o,i),o=i.pendingProps;var h=Ei(i,At.current);Oi(i,l),h=S0(null,i,d,o,h,l);var b=B0();return i.flags|=1,typeof h=="object"&&h!==null&&typeof h.render=="function"&&h.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,Yt(d)?(b=!0,hc(i)):b=!1,i.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,m0(i),h.updater=Tc,i.stateNode=h,h._reactInternals=i,T0(i,d,o,l),i=E0(null,i,d,!0,b,l)):(i.tag=0,ot&&b&&a0(i),Vt(null,i,h,l),i=i.child),i;case 16:d=i.elementType;e:{switch(Rc(o,i),o=i.pendingProps,h=d._init,d=h(d._payload),i.type=d,h=i.tag=YF(d),o=Ir(d,o),h){case 0:i=M0(null,i,d,o,l);break e;case 1:i=Cw(null,i,d,o,l);break e;case 11:i=Sw(null,i,d,o,l);break e;case 14:i=Bw(null,i,d,Ir(d.type,o),l);break e}throw Error(r(306,d,""))}return i;case 0:return d=i.type,h=i.pendingProps,h=i.elementType===d?h:Ir(d,h),M0(o,i,d,h,l);case 1:return d=i.type,h=i.pendingProps,h=i.elementType===d?h:Ir(d,h),Cw(o,i,d,h,l);case 3:e:{if(Nw(i),o===null)throw Error(r(387));d=i.pendingProps,b=i.memoizedState,h=b.element,Wx(o,i),Sc(i,d,null,l);var _=i.memoizedState;if(d=_.element,b.isDehydrated)if(b={element:d,isDehydrated:!1,cache:_.cache,pendingSuspenseBoundaries:_.pendingSuspenseBoundaries,transitions:_.transitions},i.updateQueue.baseState=b,i.memoizedState=b,i.flags&256){h=Li(Error(r(423)),i),i=Tw(o,i,d,l,h);break e}else if(d!==h){h=Li(Error(r(424)),i),i=Tw(o,i,d,l,h);break e}else for(lr=Uo(i.stateNode.containerInfo.firstChild),sr=i,ot=!0,Er=null,l=Lx(i,null,d,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Ai(),d===h){i=mo(o,i,l);break e}Vt(o,i,d,l)}i=i.child}return i;case 5:return Gx(i),o===null&&c0(i),d=i.type,h=i.pendingProps,b=o!==null?o.memoizedProps:null,_=h.children,e0(d,h)?_=null:b!==null&&e0(d,b)&&(i.flags|=32),_w(o,i),Vt(o,i,_,l),i.child;case 6:return o===null&&c0(i),null;case 13:return Pw(o,i,l);case 4:return v0(i,i.stateNode.containerInfo),d=i.pendingProps,o===null?i.child=Di(i,null,d,l):Vt(o,i,d,l),i.child;case 11:return d=i.type,h=i.pendingProps,h=i.elementType===d?h:Ir(d,h),Sw(o,i,d,h,l);case 7:return Vt(o,i,i.pendingProps,l),i.child;case 8:return Vt(o,i,i.pendingProps.children,l),i.child;case 12:return Vt(o,i,i.pendingProps.children,l),i.child;case 10:e:{if(d=i.type._context,h=i.pendingProps,b=i.memoizedProps,_=h.value,Je(xc,d._currentValue),d._currentValue=_,b!==null)if(Mr(b.value,_)){if(b.children===h.children&&!Kt.current){i=mo(o,i,l);break e}}else for(b=i.child,b!==null&&(b.return=i);b!==null;){var R=b.dependencies;if(R!==null){_=b.child;for(var E=R.firstContext;E!==null;){if(E.context===d){if(b.tag===1){E=go(-1,l&-l),E.tag=2;var U=b.updateQueue;if(U!==null){U=U.shared;var ie=U.pending;ie===null?E.next=E:(E.next=ie.next,ie.next=E),U.pending=E}}b.lanes|=l,E=b.alternate,E!==null&&(E.lanes|=l),h0(b.return,l,i),R.lanes|=l;break}E=E.next}}else if(b.tag===10)_=b.type===i.type?null:b.child;else if(b.tag===18){if(_=b.return,_===null)throw Error(r(341));_.lanes|=l,R=_.alternate,R!==null&&(R.lanes|=l),h0(_,l,i),_=b.sibling}else _=b.child;if(_!==null)_.return=b;else for(_=b;_!==null;){if(_===i){_=null;break}if(b=_.sibling,b!==null){b.return=_.return,_=b;break}_=_.return}b=_}Vt(o,i,h.children,l),i=i.child}return i;case 9:return h=i.type,d=i.pendingProps.children,Oi(i,l),h=br(h),d=d(h),i.flags|=1,Vt(o,i,d,l),i.child;case 14:return d=i.type,h=Ir(d,i.pendingProps),h=Ir(d.type,h),Bw(o,i,d,h,l);case 15:return zw(o,i,i.type,i.pendingProps,l);case 17:return d=i.type,h=i.pendingProps,h=i.elementType===d?h:Ir(d,h),Rc(o,i),i.tag=1,Yt(d)?(o=!0,hc(i)):o=!1,Oi(i,l),mw(i,d,h),T0(i,d,h,l),E0(null,i,d,!0,o,l);case 19:return Mw(o,i,l);case 22:return jw(o,i,l)}throw Error(r(156,i.tag))};function o5(o,i){return Fy(o,i)}function KF(o,i,l,d){this.tag=o,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wr(o,i,l,d){return new KF(o,i,l,d)}function ep(o){return o=o.prototype,!(!o||!o.isReactComponent)}function YF(o){if(typeof o=="function")return ep(o)?1:0;if(o!=null){if(o=o.$$typeof,o===te)return 11;if(o===X)return 14}return 2}function on(o,i){var l=o.alternate;return l===null?(l=wr(o.tag,i,o.key,o.mode),l.elementType=o.elementType,l.type=o.type,l.stateNode=o.stateNode,l.alternate=o,o.alternate=l):(l.pendingProps=i,l.type=o.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=o.flags&14680064,l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,i=o.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},l.sibling=o.sibling,l.index=o.index,l.ref=o.ref,l}function Vc(o,i,l,d,h,b){var _=2;if(d=o,typeof o=="function")ep(o)&&(_=1);else if(typeof o=="string")_=5;else e:switch(o){case I:return qn(l.children,h,b,i);case A:_=8,h|=8;break;case ae:return o=wr(12,l,i,h|2),o.elementType=ae,o.lanes=b,o;case W:return o=wr(13,l,i,h),o.elementType=W,o.lanes=b,o;case Y:return o=wr(19,l,i,h),o.elementType=Y,o.lanes=b,o;case Z:return Wc(l,h,b,i);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case de:_=10;break e;case ee:_=9;break e;case te:_=11;break e;case X:_=14;break e;case O:_=16,d=null;break e}throw Error(r(130,o==null?o:typeof o,""))}return i=wr(_,l,i,h),i.elementType=o,i.type=d,i.lanes=b,i}function qn(o,i,l,d){return o=wr(7,o,d,i),o.lanes=l,o}function Wc(o,i,l,d){return o=wr(22,o,d,i),o.elementType=Z,o.lanes=l,o.stateNode={isHidden:!1},o}function tp(o,i,l){return o=wr(6,o,null,i),o.lanes=l,o}function rp(o,i,l){return i=wr(4,o.children!==null?o.children:[],o.key,i),i.lanes=l,i.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},i}function QF(o,i,l,d,h){this.tag=i,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Nf(0),this.expirationTimes=Nf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nf(0),this.identifierPrefix=d,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null}function op(o,i,l,d,h,b,_,R,E){return o=new QF(o,i,l,R,E),i===1?(i=1,b===!0&&(i|=8)):i=0,b=wr(3,null,null,i),o.current=b,b.stateNode=o,b.memoizedState={element:d,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},m0(b),o}function ZF(o,i,l){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:C,key:d==null?null:""+d,children:o,containerInfo:i,implementation:l}}function n5(o){if(!o)return Xo;o=o._reactInternals;e:{if(_n(o)!==o||o.tag!==1)throw Error(r(170));var i=o;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(Yt(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(r(171))}if(o.tag===1){var l=o.type;if(Yt(l))return Rx(o,l,i)}return i}function i5(o,i,l,d,h,b,_,R,E){return o=op(l,d,!0,o,h,b,_,R,E),o.context=n5(null),l=o.current,d=Wt(),h=tn(l),b=go(d,h),b.callback=i??null,Qo(l,b,h),o.current.lanes=h,qa(o,h,d),Jt(o,d),o}function $c(o,i,l,d){var h=i.current,b=Wt(),_=tn(h);return l=n5(l),i.context===null?i.context=l:i.pendingContext=l,i=go(b,_),i.payload={element:o},d=d===void 0?null:d,d!==null&&(i.callback=d),o=Qo(h,i,_),o!==null&&(Dr(o,h,_,b),kc(o,h,_)),_}function Uc(o){return o=o.current,o.child?(o.child.tag===5,o.child.stateNode):null}function a5(o,i){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var l=o.retryLane;o.retryLane=l!==0&&l<i?l:i}}function np(o,i){a5(o,i),(o=o.alternate)&&a5(o,i)}function JF(){return null}var s5=typeof reportError=="function"?reportError:function(o){console.error(o)};function ip(o){this._internalRoot=o}Gc.prototype.render=ip.prototype.render=function(o){var i=this._internalRoot;if(i===null)throw Error(r(409));$c(o,i,null,null)},Gc.prototype.unmount=ip.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var i=o.containerInfo;Fn(function(){$c(null,o,null,null)}),i[co]=null}};function Gc(o){this._internalRoot=o}Gc.prototype.unstable_scheduleHydration=function(o){if(o){var i=Wy();o={blockedOn:null,target:o,priority:i};for(var l=0;l<Vo.length&&i!==0&&i<Vo[l].priority;l++);Vo.splice(l,0,o),l===0&&Gy(o)}};function ap(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function Xc(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11&&(o.nodeType!==8||o.nodeValue!==" react-mount-point-unstable "))}function l5(){}function eA(o,i,l,d,h){if(h){if(typeof d=="function"){var b=d;d=function(){var U=Uc(_);b.call(U)}}var _=i5(i,d,o,0,null,!1,!1,"",l5);return o._reactRootContainer=_,o[co]=_.current,Ja(o.nodeType===8?o.parentNode:o),Fn(),_}for(;h=o.lastChild;)o.removeChild(h);if(typeof d=="function"){var R=d;d=function(){var U=Uc(E);R.call(U)}}var E=op(o,0,!1,null,null,!1,!1,"",l5);return o._reactRootContainer=E,o[co]=E.current,Ja(o.nodeType===8?o.parentNode:o),Fn(function(){$c(i,E,l,d)}),E}function Kc(o,i,l,d,h){var b=l._reactRootContainer;if(b){var _=b;if(typeof h=="function"){var R=h;h=function(){var E=Uc(_);R.call(E)}}$c(i,_,o,h)}else _=eA(l,i,o,h,d);return Uc(_)}Ly=function(o){switch(o.tag){case 3:var i=o.stateNode;if(i.current.memoizedState.isDehydrated){var l=Da(i.pendingLanes);l!==0&&(Tf(i,l|1),Jt(i,gt()),(We&6)===0&&($i=gt()+500,Ko()))}break;case 13:Fn(function(){var d=ho(o,1);if(d!==null){var h=Wt();Dr(d,o,1,h)}}),np(o,1)}},Pf=function(o){if(o.tag===13){var i=ho(o,134217728);if(i!==null){var l=Wt();Dr(i,o,134217728,l)}np(o,134217728)}},Vy=function(o){if(o.tag===13){var i=tn(o),l=ho(o,i);if(l!==null){var d=Wt();Dr(l,o,i,d)}np(o,i)}},Wy=function(){return Ye},$y=function(o,i){var l=Ye;try{return Ye=o,i()}finally{Ye=l}},Sf=function(o,i,l){switch(i){case"input":if(Ft(o,l),i=l.name,l.type==="radio"&&i!=null){for(l=o;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<l.length;i++){var d=l[i];if(d!==o&&d.form===o.form){var h=fc(d);if(!h)throw Error(r(90));jn(d),Ft(d,h)}}}break;case"textarea":xy(o,l);break;case"select":i=l.value,i!=null&&ki(o,!!l.multiple,i,!1)}},Ny=Q0,Ty=Fn;var tA={usingClientEntryPoint:!1,Events:[rs,Ri,fc,_y,Cy,Q0]},ms={findFiberByHostInstance:Cn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},rA={bundleType:ms.bundleType,version:ms.version,rendererPackageName:ms.rendererPackageName,rendererConfig:ms.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:N.ReactCurrentDispatcher,findHostInstanceByFiber:function(o){return o=Ey(o),o===null?null:o.stateNode},findFiberByHostInstance:ms.findFiberByHostInstance||JF,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 Yc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yc.isDisabled&&Yc.supportsFiber)try{Gl=Yc.inject(rA),Gr=Yc}catch{}}return $t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tA,$t.createPortal=function(o,i){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ap(i))throw Error(r(200));return ZF(o,i,null,l)},$t.createRoot=function(o,i){if(!ap(o))throw Error(r(299));var l=!1,d="",h=s5;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onRecoverableError!==void 0&&(h=i.onRecoverableError)),i=op(o,1,!1,null,null,l,!1,d,h),o[co]=i.current,Ja(o.nodeType===8?o.parentNode:o),new ip(i)},$t.findDOMNode=function(o){if(o==null)return null;if(o.nodeType===1)return o;var i=o._reactInternals;if(i===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=Ey(i),o=o===null?null:o.stateNode,o},$t.flushSync=function(o){return Fn(o)},$t.hydrate=function(o,i,l){if(!Xc(i))throw Error(r(200));return Kc(null,o,i,!0,l)},$t.hydrateRoot=function(o,i,l){if(!ap(o))throw Error(r(405));var d=l!=null&&l.hydratedSources||null,h=!1,b="",_=s5;if(l!=null&&(l.unstable_strictMode===!0&&(h=!0),l.identifierPrefix!==void 0&&(b=l.identifierPrefix),l.onRecoverableError!==void 0&&(_=l.onRecoverableError)),i=i5(i,null,o,1,l??null,h,!1,b,_),o[co]=i.current,Ja(o),d)for(o=0;o<d.length;o++)l=d[o],h=l._getVersion,h=h(l._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[l,h]:i.mutableSourceEagerHydrationData.push(l,h);return new Gc(i)},$t.render=function(o,i,l){if(!Xc(i))throw Error(r(200));return Kc(null,o,i,!1,l)},$t.unmountComponentAtNode=function(o){if(!Xc(o))throw Error(r(40));return o._reactRootContainer?(Fn(function(){Kc(null,null,o,!1,function(){o._reactRootContainer=null,o[co]=null})}),!0):!1},$t.unstable_batchedUpdates=Q0,$t.unstable_renderSubtreeIntoContainer=function(o,i,l,d){if(!Xc(l))throw Error(r(200));if(o==null||o._reactInternals===void 0)throw Error(r(38));return Kc(o,i,l,!1,d)},$t.version="18.3.1-next-f1338f8080-20240426",$t}var bp;function yp(){if(bp)return eu.exports;bp=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),eu.exports=g5(),eu.exports}var xp;function m5(){if(xp)return bs;xp=1;var e=yp();return bs.createRoot=e.createRoot,bs.hydrateRoot=e.hydrateRoot,bs}var v5=m5();const b5=["Top","Right","Bottom","Left"];function Xi(e,t,...r){const[n,a=n,s=n,c=a]=r,u=[n,a,s,c],f={};for(let p=0;p<u.length;p+=1)if(u[p]||u[p]===0){const g=e+b5[p]+t;f[g]=u[p]}return f}function ou(...e){return Xi("border","Width",...e)}function nu(...e){return Xi("border","Style",...e)}function iu(...e){return Xi("border","Color",...e)}const y5=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"];function Ki(e){return y5.includes(e)}function x5(...e){return Ki(e[0])?{...nu(e[0]),...e[1]&&ou(e[1]),...e[2]&&iu(e[2])}:{...ou(e[0]),...e[1]&&nu(e[1]),...e[2]&&iu(e[2])}}function w5(...e){return Ki(e[0])?{borderLeftStyle:e[0],...e[1]&&{borderLeftWidth:e[1]},...e[2]&&{borderLeftColor:e[2]}}:{borderLeftWidth:e[0],...e[1]&&{borderLeftStyle:e[1]},...e[2]&&{borderLeftColor:e[2]}}}function k5(...e){return Ki(e[0])?{borderBottomStyle:e[0],...e[1]&&{borderBottomWidth:e[1]},...e[2]&&{borderBottomColor:e[2]}}:{borderBottomWidth:e[0],...e[1]&&{borderBottomStyle:e[1]},...e[2]&&{borderBottomColor:e[2]}}}function S5(...e){return Ki(e[0])?{borderRightStyle:e[0],...e[1]&&{borderRightWidth:e[1]},...e[2]&&{borderRightColor:e[2]}}:{borderRightWidth:e[0],...e[1]&&{borderRightStyle:e[1]},...e[2]&&{borderRightColor:e[2]}}}function B5(...e){return Ki(e[0])?{borderTopStyle:e[0],...e[1]&&{borderTopWidth:e[1]},...e[2]&&{borderTopColor:e[2]}}:{borderTopWidth:e[0],...e[1]&&{borderTopStyle:e[1]},...e[2]&&{borderTopColor:e[2]}}}function z5(e,t=e,r=e,n=t){return{borderBottomRightRadius:r,borderBottomLeftRadius:n,borderTopRightRadius:t,borderTopLeftRadius:e}}const j5=e=>typeof e=="string"&&/(\d+(\w+|%))/.test(e),ys=e=>typeof e=="number"&&!Number.isNaN(e),_5=e=>e==="initial",wp=e=>e==="auto",C5=e=>e==="none",N5=["content","fit-content","max-content","min-content"],au=e=>N5.some(t=>e===t)||j5(e);function T5(...e){const t=e.length===1,r=e.length===2,n=e.length===3;if(t){const[a]=e;if(_5(a))return{flexGrow:0,flexShrink:1,flexBasis:"auto"};if(wp(a))return{flexGrow:1,flexShrink:1,flexBasis:"auto"};if(C5(a))return{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(ys(a))return{flexGrow:a,flexShrink:1,flexBasis:0};if(au(a))return{flexGrow:1,flexShrink:1,flexBasis:a}}if(r){const[a,s]=e;if(ys(s))return{flexGrow:a,flexShrink:s,flexBasis:0};if(au(s))return{flexGrow:a,flexShrink:1,flexBasis:s}}if(n){const[a,s,c]=e;if(ys(a)&&ys(s)&&(wp(c)||au(c)))return{flexGrow:a,flexShrink:s,flexBasis:c}}return{}}function P5(e,t=e){return{columnGap:e,rowGap:t}}const R5=/var\(.*\)/gi;function M5(e){return e===void 0||typeof e=="number"||typeof e=="string"&&!R5.test(e)}const E5=/^[a-zA-Z0-9\-_\\#;]+$/,I5=/^-moz-initial$|^auto$|^initial$|^inherit$|^revert$|^unset$|^span \d+$|^\d.*/;function su(e){return e!==void 0&&typeof e=="string"&&E5.test(e)&&!I5.test(e)}function F5(...e){if(e.some(s=>!M5(s)))return{};const t=e[0]!==void 0?e[0]:"auto",r=e[1]!==void 0?e[1]:su(t)?t:"auto",n=e[2]!==void 0?e[2]:su(t)?t:"auto",a=e[3]!==void 0?e[3]:su(r)?r:"auto";return{gridRowStart:t,gridColumnStart:r,gridRowEnd:n,gridColumnEnd:a}}function A5(...e){return Xi("margin","",...e)}function D5(e,t=e){return{marginBlockStart:e,marginBlockEnd:t}}function q5(e,t=e){return{marginInlineStart:e,marginInlineEnd:t}}function O5(...e){return Xi("padding","",...e)}function H5(e,t=e){return{paddingBlockStart:e,paddingBlockEnd:t}}function L5(e,t=e){return{paddingInlineStart:e,paddingInlineEnd:t}}function V5(e,t=e){return{overflowX:e,overflowY:t}}function W5(...e){const[t,r=t,n=t,a=r]=e;return{top:t,right:r,bottom:n,left:a}}function $5(e,t,r){return{outlineWidth:e,...t&&{outlineStyle:t},...r&&{outlineColor:r}}}function U5(...e){return X5(e)?{transitionDelay:e[0],transitionDuration:e[0],transitionProperty:e[0],transitionTimingFunction:e[0]}:K5(e).reduce((r,[n,a="0s",s="0s",c="ease"],u)=>(u===0?(r.transitionProperty=n,r.transitionDuration=a,r.transitionDelay=s,r.transitionTimingFunction=c):(r.transitionProperty+=`, ${n}`,r.transitionDuration+=`, ${a}`,r.transitionDelay+=`, ${s}`,r.transitionTimingFunction+=`, ${c}`),r),{})}const G5=["-moz-initial","inherit","initial","revert","unset"];function X5(e){return e.length===1&&G5.includes(e[0])}function K5(e){return e.length===1&&Array.isArray(e[0])?e[0]:[e]}function Y5(e,...t){if(t.length===0)return Z5(e)?{textDecorationStyle:e}:{textDecorationLine:e};const[r,n,a]=t;return{textDecorationLine:e,...r&&{textDecorationStyle:r},...n&&{textDecorationColor:n},...a&&{textDecorationThickness:a}}}const Q5=["dashed","dotted","double","solid","wavy"];function Z5(e){return Q5.includes(e)}const lu=typeof window>"u"?global:window,cu="@griffel/";function J5(e,t){return lu[Symbol.for(cu+e)]||(lu[Symbol.for(cu+e)]=t),lu[Symbol.for(cu+e)]}const uu=J5("DEFINITION_LOOKUP_TABLE",{}),Yi="data-make-styles-bucket",kp="data-priority",du="data-container",fu="f",pu=7,hu="___",ek=hu.length+pu,tk=0,rk=1,ok={all:1,borderColor:1,borderStyle:1,borderWidth:1,borderBlock:1,borderBlockEnd:1,borderBlockStart:1,borderInline:1,borderInlineEnd:1,borderInlineStart:1},gu="DO_NOT_USE_DIRECTLY: @griffel/reset-value";function Qi(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function nk(e){const t=e.length;if(t===pu)return e;for(let r=t;r<pu;r++)e+="0";return e}function Sp(e,t,r=[]){return hu+nk(Qi(e+t))}function Bp(e,t){let r="",n="";for(const a in e){const s=e[a];if(s===0){n+=a+" ";continue}const c=Array.isArray(s),u=t==="rtl"?(c?s[1]:s)+" ":(c?s[0]:s)+" ";r+=u,n+=u}return[r.slice(0,-1),n.slice(0,-1)]}function xs(e,t){const r={};for(const n in e){const[a,s]=Bp(e[n],t);if(s===""){r[n]="";continue}const c=Sp(s,t),u=c+(a===""?"":" "+a);uu[c]=[e[n],t],r[n]=u}return r}const zp={};function Q(){let e=null,t="",r="";const n=new Array(arguments.length);for(let v=0;v<arguments.length;v++){const x=arguments[v];if(typeof x=="string"&&x!==""){const w=x.indexOf(hu);if(w===-1)t+=x+" ";else{const S=x.substr(w,ek);w>0&&(t+=x.slice(0,w)),r+=S,n[v]=S}}}if(r==="")return t.slice(0,-1);const a=zp[r];if(a!==void 0)return t+a;const s=[];for(let v=0;v<arguments.length;v++){const x=n[v];if(x){const w=uu[x];w&&(s.push(w[tk]),e=w[rk])}}const c=Object.assign.apply(Object,[{}].concat(s)),[u,f]=Bp(c,e),p=Sp(f,e,n),g=p+" "+u;return zp[r]=g,uu[p]=[c,e],t+g}function ik(e){return Array.isArray(e)?e:[e]}function ak(e,t,r,n){const a=[];if(n[Yi]=t,n[kp]=String(r),e)for(const c in n)e.setAttribute(c,n[c]);function s(c){return e?.sheet?e.sheet.insertRule(c,e.sheet.cssRules.length):a.push(c)}return{elementAttributes:n,insertRule:s,element:e,bucketName:t,cssRules(){return e?.sheet?Array.from(e.sheet.cssRules).map(c=>c.cssText):a}}}const jp=["r","d","l","v","w","f","i","h","a","s","k","t","m","c","x"].reduce((e,t,r)=>(e[t]=r,e),{});function sk(e,t,r){return e==="m"||e==="x"?e+t+r:e+r}function lk(e,t,r,n,a={}){var s,c;const u=e==="m",f=e==="x",p=a.m,g=a.x,v=(s=a.p)!==null&&s!==void 0?s:0,x=sk(e,(c=g??p)!==null&&c!==void 0?c:"0",v);if(!n.stylesheets[x]){const w=t&&t.createElement("style"),S=ak(w,e,v,{...n.styleElementAttributes,...u&&{media:p},...f&&{[du]:g}});n.stylesheets[x]=S,t?.head&&w&&t.head.insertBefore(w,uk(t,r,e,n,a))}return n.stylesheets[x]}function ck(e,t,r){return e.getAttribute(Yi)===t?t==="m"?r.m===e.media:t==="x"?r.x===e.getAttribute(du):!0:!1}function uk(e,t,r,n,a={}){var s,c,u;const f=jp[r],p=(s=a.m)!==null&&s!==void 0?s:"",g=(c=a.x)!==null&&c!==void 0?c:"",v=(u=a.p)!==null&&u!==void 0?u:0;let x=z=>f-jp[z.getAttribute(Yi)],w=e.head.querySelectorAll(`[${Yi}]`);if(r==="m"||r==="x"){const z=e.head.querySelectorAll(`[${Yi}="${r}"]`);z.length&&(w=z,x=r==="m"?P=>n.compareMediaQueries(p,P.media):P=>{var j;return n.compareContainerQueries(g,(j=P.getAttribute(du))!==null&&j!==void 0?j:"")})}const S=z=>ck(z,r,a)?v-Number(z.getAttribute(kp)):x(z),k=w.length;let B=k-1;for(;B>=0;){const z=w.item(B);if(S(z)>0)return z.nextSibling;B--}return k>0?w.item(0):t?t.nextSibling:null}function _p(e,t){try{e.insertRule(t)}catch{}}let dk=0;const fk=(e,t)=>e<t?-1:e>t?1:0;function pk(e=typeof document>"u"?void 0:document,t={}){const{classNameHashSalt:r,unstable_filterCSSRule:n,insertionPoint:a,styleElementAttributes:s,compareMediaQueries:c=fk,compareContainerQueries:u=c}=t,f={classNameHashSalt:r,insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(s),compareMediaQueries:c,compareContainerQueries:u,id:`d${dk++}`,insertCSSRules(p){for(const g in p){const v=p[g];for(let x=0,w=v.length;x<w;x++){const[S,k]=ik(v[x]),B=lk(g,e,a||null,f,k);f.insertionCache[S]||(f.insertionCache[S]=g,n?n(S)&&_p(B,S):_p(B,S))}}}};return f}const mu=()=>{const e={};return function(r,n){e[r.id]===void 0&&(r.insertCSSRules(n),e[r.id]=!0)}};function Cp(e){return e.reduce(function(t,r){var n=r[0],a=r[1];return t[n]=a,t[a]=n,t},{})}function hk(e){return typeof e=="boolean"}function gk(e){return typeof e=="function"}function Zi(e){return typeof e=="number"}function mk(e){return e===null||typeof e>"u"}function vk(e){return e&&typeof e=="object"}function bk(e){return typeof e=="string"}function ws(e,t){return e.indexOf(t)!==-1}function yk(e){return parseFloat(e)===0?e:e[0]==="-"?e.slice(1):"-"+e}function ks(e,t,r,n){return t+yk(r)+n}function xk(e){var t=e.indexOf(".");if(t===-1)e=100-parseFloat(e)+"%";else{var r=e.length-t-2;e=100-parseFloat(e),e=e.toFixed(r)+"%"}return e}function Np(e){return e.replace(/ +/g," ").split(" ").map(function(t){return t.trim()}).filter(Boolean).reduce(function(t,r){var n=t.list,a=t.state,s=(r.match(/\(/g)||[]).length,c=(r.match(/\)/g)||[]).length;return a.parensDepth>0?n[n.length-1]=n[n.length-1]+" "+r:n.push(r),a.parensDepth+=s-c,{list:n,state:a}},{list:[],state:{parensDepth:0}}).list}function Tp(e){var t=Np(e);if(t.length<=3||t.length>4)return e;var r=t[0],n=t[1],a=t[2],s=t[3];return[r,s,a,n].join(" ")}function wk(e){return!hk(e)&&!mk(e)}function kk(e){for(var t=[],r=0,n=0,a=!1;n<e.length;)!a&&e[n]===","?(t.push(e.substring(r,n).trim()),n++,r=n):e[n]==="("?(a=!0,n++):(e[n]===")"&&(a=!1),n++);return r!=n&&t.push(e.substring(r,n+1)),t}var ne={padding:function(t){var r=t.value;return Zi(r)?r:Tp(r)},textShadow:function(t){var r=t.value,n=kk(r).map(function(a){return a.replace(/(^|\s)(-*)([.|\d]+)/,function(s,c,u,f){if(f==="0")return s;var p=u===""?"-":"";return""+c+p+f})});return n.join(",")},borderColor:function(t){var r=t.value;return Tp(r)},borderRadius:function(t){var r=t.value;if(Zi(r))return r;if(ws(r,"/")){var n=r.split("/"),a=n[0],s=n[1],c=ne.borderRadius({value:a.trim()}),u=ne.borderRadius({value:s.trim()});return c+" / "+u}var f=Np(r);switch(f.length){case 2:return f.reverse().join(" ");case 4:{var p=f[0],g=f[1],v=f[2],x=f[3];return[g,p,x,v].join(" ")}default:return r}},background:function(t){var r=t.value,n=t.valuesToConvert,a=t.isRtl,s=t.bgImgDirectionRegex,c=t.bgPosDirectionRegex;if(Zi(r))return r;var u=r.replace(/(url\(.*?\))|(rgba?\(.*?\))|(hsl\(.*?\))|(#[a-fA-F0-9]+)|((^| )(\D)+( |$))/g,"").trim();return r=r.replace(u,ne.backgroundPosition({value:u,valuesToConvert:n,isRtl:a,bgPosDirectionRegex:c})),ne.backgroundImage({value:r,valuesToConvert:n,bgImgDirectionRegex:s})},backgroundImage:function(t){var r=t.value,n=t.valuesToConvert,a=t.bgImgDirectionRegex;return!ws(r,"url(")&&!ws(r,"linear-gradient(")?r:r.replace(a,function(s,c,u){return s.replace(u,n[u])})},backgroundPosition:function(t){var r=t.value,n=t.valuesToConvert,a=t.isRtl,s=t.bgPosDirectionRegex;return r.replace(a?/^((-|\d|\.)+%)/:null,function(c,u){return xk(u)}).replace(s,function(c){return n[c]})},backgroundPositionX:function(t){var r=t.value,n=t.valuesToConvert,a=t.isRtl,s=t.bgPosDirectionRegex;return Zi(r)?r:ne.backgroundPosition({value:r,valuesToConvert:n,isRtl:a,bgPosDirectionRegex:s})},transition:function(t){var r=t.value,n=t.propertiesToConvert;return r.split(/,\s*/g).map(function(a){var s=a.split(" ");return s[0]=n[s[0]]||s[0],s.join(" ")}).join(", ")},transitionProperty:function(t){var r=t.value,n=t.propertiesToConvert;return r.split(/,\s*/g).map(function(a){return n[a]||a}).join(", ")},transform:function(t){var r=t.value,n="[^\\u0020-\\u007e]",a="(?:(?:(?:\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",s="((?:-?"+("(?:[0-9]*\\.[0-9]+|[0-9]+)(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+n+"|"+a+")")+("(?:[_a-z0-9-]|"+n+"|"+a+")")+"*")+")?")+")|(?:inherit|auto))",c=new RegExp("(translateX\\s*\\(\\s*)"+s+"(\\s*\\))","gi"),u=new RegExp("(translate\\s*\\(\\s*)"+s+"((?:\\s*,\\s*"+s+"){0,1}\\s*\\))","gi"),f=new RegExp("(translate3d\\s*\\(\\s*)"+s+"((?:\\s*,\\s*"+s+"){0,2}\\s*\\))","gi"),p=new RegExp("(rotate[ZY]?\\s*\\(\\s*)"+s+"(\\s*\\))","gi");return r.replace(c,ks).replace(u,ks).replace(f,ks).replace(p,ks)}};ne.objectPosition=ne.backgroundPosition,ne.margin=ne.padding,ne.borderWidth=ne.padding,ne.boxShadow=ne.textShadow,ne.webkitBoxShadow=ne.boxShadow,ne.mozBoxShadow=ne.boxShadow,ne.WebkitBoxShadow=ne.boxShadow,ne.MozBoxShadow=ne.boxShadow,ne.borderStyle=ne.borderColor,ne.webkitTransform=ne.transform,ne.mozTransform=ne.transform,ne.WebkitTransform=ne.transform,ne.MozTransform=ne.transform,ne.transformOrigin=ne.backgroundPosition,ne.webkitTransformOrigin=ne.transformOrigin,ne.mozTransformOrigin=ne.transformOrigin,ne.WebkitTransformOrigin=ne.transformOrigin,ne.MozTransformOrigin=ne.transformOrigin,ne.webkitTransition=ne.transition,ne.mozTransition=ne.transition,ne.WebkitTransition=ne.transition,ne.MozTransition=ne.transition,ne.webkitTransitionProperty=ne.transitionProperty,ne.mozTransitionProperty=ne.transitionProperty,ne.WebkitTransitionProperty=ne.transitionProperty,ne.MozTransitionProperty=ne.transitionProperty,ne["text-shadow"]=ne.textShadow,ne["border-color"]=ne.borderColor,ne["border-radius"]=ne.borderRadius,ne["background-image"]=ne.backgroundImage,ne["background-position"]=ne.backgroundPosition,ne["background-position-x"]=ne.backgroundPositionX,ne["object-position"]=ne.objectPosition,ne["border-width"]=ne.padding,ne["box-shadow"]=ne.textShadow,ne["-webkit-box-shadow"]=ne.textShadow,ne["-moz-box-shadow"]=ne.textShadow,ne["border-style"]=ne.borderColor,ne["-webkit-transform"]=ne.transform,ne["-moz-transform"]=ne.transform,ne["transform-origin"]=ne.transformOrigin,ne["-webkit-transform-origin"]=ne.transformOrigin,ne["-moz-transform-origin"]=ne.transformOrigin,ne["-webkit-transition"]=ne.transition,ne["-moz-transition"]=ne.transition,ne["transition-property"]=ne.transitionProperty,ne["-webkit-transition-property"]=ne.transitionProperty,ne["-moz-transition-property"]=ne.transitionProperty;var Pp=Cp([["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"]]),Sk=["content"],Rp=Cp([["ltr","rtl"],["left","right"],["w-resize","e-resize"],["sw-resize","se-resize"],["nw-resize","ne-resize"]]),Bk=new RegExp("(^|\\W|_)((ltr)|(rtl)|(left)|(right))(\\W|_|$)","g"),zk=new RegExp("(left)|(right)");function Mp(e){return Object.keys(e).reduce(function(t,r){var n=e[r];if(bk(n)&&(n=n.trim()),ws(Sk,r))return t[r]=n,t;var a=vu(r,n),s=a.key,c=a.value;return t[s]=c,t},Array.isArray(e)?[]:{})}function vu(e,t){var r=/\/\*\s?@noflip\s?\*\//.test(t),n=r?e:jk(e),a=r?t:_k(n,t);return{key:n,value:a}}function jk(e){return Pp[e]||e}function _k(e,t){if(!wk(t))return t;if(vk(t))return Mp(t);var r=Zi(t),n=gk(t),a=r||n?t:t.replace(/ !important.*?$/,""),s=!r&&a.length!==t.length,c=ne[e],u;return c?u=c({value:a,valuesToConvert:Rp,propertiesToConvert:Pp,isRtl:!0,bgImgDirectionRegex:Bk,bgPosDirectionRegex:zk}):u=Rp[a]||a,s?u+" !important":u}var Ji="-moz-",kr="-webkit-",Ep="comm",Ss="rule",bu="decl",Ck="@media",Nk="@import",Tk="@supports",Pk="@namespace",Rk="@keyframes",Ip="@layer",Mk=Math.abs,On=String.fromCharCode,Ek=Object.assign;function Ik(e,t){return Et(e,0)^45?(((t<<2^Et(e,0))<<2^Et(e,1))<<2^Et(e,2))<<2^Et(e,3):0}function Fp(e){return e.trim()}function Ap(e,t){return(e=t.exec(e))?e[0]:e}function er(e,t,r){return e.replace(t,r)}function Fk(e,t){return e.indexOf(t)}function Et(e,t){return e.charCodeAt(t)|0}function Hn(e,t,r){return e.slice(t,r)}function Sr(e){return e.length}function Dp(e){return e.length}function an(e,t){return t.push(e),e}function Ak(e,t){return e.map(t).join("")}var Bs=1,Ln=1,qp=0,tr=0,nt=0,Vn="";function zs(e,t,r,n,a,s,c,u){return{value:e,root:t,parent:r,type:n,props:a,children:s,line:Bs,column:Ln,length:c,return:"",siblings:u}}function yu(e,t){return Ek(zs("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Dk(){return nt}function qk(){return nt=tr>0?Et(Vn,--tr):0,Ln--,nt===10&&(Ln=1,Bs--),nt}function ur(){return nt=tr<qp?Et(Vn,tr++):0,Ln++,nt===10&&(Ln=1,Bs++),nt}function bo(){return Et(Vn,tr)}function js(){return tr}function _s(e,t){return Hn(Vn,e,t)}function Wn(e){switch(e){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 Op(e){return Bs=Ln=1,qp=Sr(Vn=e),tr=0,[]}function Hp(e){return Vn="",e}function Cs(e){return Fp(_s(tr-1,xu(e===91?e+2:e===40?e+1:e)))}function Ok(e){return Hp(Lk(Op(e)))}function Hk(e){for(;(nt=bo())&&nt<33;)ur();return Wn(e)>2||Wn(nt)>3?"":" "}function Lk(e){for(;ur();)switch(Wn(nt)){case 0:an(Lp(tr-1),e);break;case 2:an(Cs(nt),e);break;default:an(On(nt),e)}return e}function Vk(e,t){for(;--t&&ur()&&!(nt<48||nt>102||nt>57&&nt<65||nt>70&&nt<97););return _s(e,js()+(t<6&&bo()==32&&ur()==32))}function xu(e){for(;ur();)switch(nt){case e:return tr;case 34:case 39:e!==34&&e!==39&&xu(nt);break;case 40:e===41&&xu(e);break;case 92:ur();break}return tr}function Wk(e,t){for(;ur()&&e+nt!==57;)if(e+nt===84&&bo()===47)break;return"/*"+_s(t,tr-1)+"*"+On(e===47?e:ur())}function Lp(e){for(;!Wn(bo());)ur();return _s(e,tr)}function Vp(e){return Hp(Ns("",null,null,null,[""],e=Op(e),0,[0],e))}function Ns(e,t,r,n,a,s,c,u,f){for(var p=0,g=0,v=c,x=0,w=0,S=0,k=1,B=1,z=1,P=0,j=0,N="",M=a,C=s,I=n,A=N;B;)switch(S=j,j=ur()){case 40:S!=108&&Et(A,v-1)==58?(P++,A+="("):A+=Cs(j);break;case 41:P--,A+=")";break;case 34:case 39:case 91:A+=Cs(j);break;case 9:case 10:case 13:case 32:if(P>0){A+=On(j);break}A+=Hk(S);break;case 92:A+=Vk(js()-1,7);continue;case 47:switch(bo()){case 42:case 47:an($k(Wk(ur(),js()),t,r,f),f),(Wn(S||1)==5||Wn(bo()||1)==5)&&Sr(A)&&Hn(A,-1,void 0)!==" "&&(A+=" ");break;default:A+="/"}break;case 123*k:u[p++]=Sr(A)*z;case 125*k:case 59:case 0:if(P>0&&j){A+=On(j);break}switch(j){case 0:case 125:B=0;case 59+g:z==-1&&(A=er(A,/\f/g,"")),w>0&&(Sr(A)-v||k===0)&&an(w>32?$p(A+";",n,r,v-1,f):$p(er(A," ","")+";",n,r,v-2,f),f);break;case 59:A+=";";default:if(an(I=Wp(A,t,r,p,g,a,u,N,M=[],C=[],v,s),s),j===123)if(g===0)Ns(A,t,I,I,M,s,v,u,C);else{switch(x){case 99:if(Et(A,3)===110)break;case 108:if(Et(A,2)===97)break;default:g=0;case 100:case 109:case 115:}g?Ns(e,I,I,n&&an(Wp(e,I,I,0,0,a,u,N,a,M=[],v,C),C),a,C,v,u,n?M:C):Ns(A,I,I,I,[""],C,0,u,C)}}p=g=w=0,k=z=1,N=A="",v=c;break;case 58:v=1+Sr(A),w=S;default:if(k<1){if(j==123)--k;else if(j==125&&k++==0&&qk()==125)continue}switch(A+=On(j),j*k){case 38:z=g>0?1:(A+="\f",-1);break;case 44:if(P>0)break;u[p++]=(Sr(A)-1)*z,z=1;break;case 64:bo()===45&&(A+=Cs(ur())),x=bo(),g=v=Sr(N=A+=Lp(js())),j++;break;case 45:S===45&&Sr(A)==2&&(k=0)}}return s}function Wp(e,t,r,n,a,s,c,u,f,p,g,v){for(var x=a-1,w=a===0?s:[""],S=Dp(w),k=0,B=0,z=0;k<n;++k)for(var P=0,j=Hn(e,x+1,x=Mk(B=c[k])),N=e;P<S;++P)(N=Fp(B>0?w[P]+" "+j:er(j,/&\f/g,w[P])))&&(f[z++]=N);return zs(e,t,r,a===0?Ss:u,f,p,g,v)}function $k(e,t,r,n){return zs(e,t,r,Ep,On(Dk()),Hn(e,2,-2),0,n)}function $p(e,t,r,n,a){return zs(e,t,r,bu,Hn(e,0,n),Hn(e,n+1,-1),n,a)}function $n(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Up(e,t,r,n){switch(e.type){case Ip:if(e.children.length)break;case Nk:case Pk:case bu:return e.return=e.return||e.value;case Ep:return"";case Rk:return e.return=e.value+"{"+$n(e.children,n)+"}";case Ss:if(!Sr(e.value=e.props.join(",")))return""}return Sr(r=$n(e.children,n))?e.return=e.value+"{"+r+"}":""}function Gp(e){var t=Dp(e);return function(r,n,a,s){for(var c="",u=0;u<t;u++)c+=e[u](r,n,a,s)||"";return c}}function Xp(e){return function(t){t.root||(t=t.return)&&e(t)}}const Uk=e=>{switch(e.type){case Ss:if(typeof e.props=="string")return;e.props=e.props.map(t=>t.indexOf(":global(")===-1?t:Ok(t).reduce((r,n,a,s)=>{if(n==="")return r;if(n===":"&&s[a+1]==="global"){const c=s[a+2].slice(1,-1)+" ";return r.unshift(c),s[a+1]="",s[a+2]="",r}return r.push(n),r},[]).join(""))}};function Kp(e,t,r){switch(Ik(e,t)){case 5103:return kr+"print-"+e+e;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return kr+e+e;case 4215:if(Et(e,9)===102||Et(e,t+1)===116)return kr+e+e;break;case 4789:return Ji+e+e;case 5349:case 4246:case 6968:return kr+e+Ji+e+e;case 6187:if(!Ap(e,/grab/))return er(er(er(e,/(zoom-|grab)/,kr+"$1"),/(image-set)/,kr+"$1"),e,"")+e;case 5495:case 3959:return er(e,/(image-set\([^]*)/,kr+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return er(e,/(.+)-inline(.+)/,kr+"$1$2")+e;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(Sr(e)-1-t>6)switch(Et(e,t+1)){case 102:if(Et(e,t+3)===108)return er(e,/(.+:)(.+)-([^]+)/,"$1"+kr+"$2-$3$1"+Ji+(Et(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Fk(e,"stretch")?Kp(er(e,"stretch","fill-available"),t)+e:e}break}return e}function Yp(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case bu:e.return=Kp(e.value,e.length);return;case Ss:if(e.length)return Ak(e.props,function(a){switch(Ap(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return $n([yu(e,{props:[er(a,/:(read-\w+)/,":"+Ji+"$1")]})],n);case"::placeholder":return $n([yu(e,{props:[er(a,/:(plac\w+)/,":"+kr+"input-$1")]}),yu(e,{props:[er(a,/:(plac\w+)/,":"+Ji+"$1")]})],n)}return""})}}function Gk(e){switch(e.type){case"@container":case Ck:case Tk:case Ip:return!0}return!1}const Xk=e=>{Gk(e)&&Array.isArray(e.children)&&e.children.sort((t,r)=>t.props[0]>r.props[0]?1:-1)};function Kk(e,t){const r=[];return $n(Vp(e),Gp([Uk,Xk,Yp,Up,Xp(n=>r.push(n))])),r}const Yk=/[A-Z]/g,Qk=/^ms-/,wu={};function Zk(e){return"-"+e.toLowerCase()}function Un(e){if(Object.prototype.hasOwnProperty.call(wu,e))return wu[e];if(e.substr(0,2)==="--")return e;const t=e.replace(Yk,Zk);return wu[e]=Qk.test(t)?"-"+t:t}function Qp(e){return e.charAt(0)==="&"?e.slice(1):e}const Jk=/,( *[^ &])/g;function e2(e){return"&"+Qp(e.replace(Jk,",&$1"))}function Zp(e,t){return t.reduceRight((r,n)=>`${e2(n)} { ${r} }`,e)}function Jp(e,t){const{className:r,selectors:n,property:a,rtlClassName:s,rtlProperty:c,rtlValue:u,value:f}=e,{container:p,layer:g,media:v,scope:x,supports:w}=t,S=`.${r}`,k=Array.isArray(f)?`${f.map(P=>`${Un(a)}: ${P}`).join(";")};`:`${Un(a)}: ${f};`,B=Zp(k,n);let z=x?`@scope (${S}) ${x} { :scope{${B}} }`:`${S}{${B}}`;if(c&&s){const P=`.${s}`,j=Array.isArray(u)?`${u.map(M=>`${Un(c)}: ${M}`).join(";")};`:`${Un(c)}: ${u};`,N=Zp(j,n);z+=x?`@scope (${P}) ${x} { :scope{${N}} }`:`${P}{${N}}`}return v&&(z=`@media ${v} { ${z} }`),g&&(z=`@layer ${g} { ${z} }`),w&&(z=`@supports ${w} { ${z} }`),p&&(z=`@container ${p} { ${z} }`),Kk(z)}function t2(e){let t="";for(const r in e){const n=e[r];if(typeof n=="string"||typeof n=="number"){t+=Un(r)+":"+n+";";continue}if(Array.isArray(n))for(const a of n)t+=Un(r)+":"+a+";"}return t}function eh(e){let t="";for(const r in e)t+=`${r}{${t2(e[r])}}`;return t}function th(e,t){const r=`@keyframes ${e} {${t}}`,n=[];return $n(Vp(r),Gp([Up,Yp,Xp(a=>n.push(a))])),n}const rh={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function oh(e,t){if(t.media)return"m";if(t.layer||t.supports)return"t";if(t.container)return"x";if(e.length>0){const r=e[0].trim();if(r.charCodeAt(0)===58)return rh[r.slice(4,8)]||rh[r.slice(3,5)]||"d"}return"d"}const r2={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"]],positionTry:[-1,["positionTryFallbacks","positionTryOrder"]],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"]],textWrap:[-1,["textWrapMode","textWrapStyle"]],transition:[-1,["transitionBehavior","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"]],viewTimeline:[-1,["viewTimelineAxis","viewTimelineName"]]};function nh(e,t){return e.length===0?t:`${e} and ${t}`}function ea(e,t){return e&&t+e}function ih(e){return ea(e.container,"c")+ea(e.media,"m")+ea(e.layer,"l")+ea(e.supports,"s")+ea(e.scope,"o")}function ku(e,t,r){const n=e+ih(r)+t,a=Qi(n),s=a.charCodeAt(0);return s>=48&&s<=57?String.fromCharCode(s+17)+a.slice(1):a}function Ts({property:e,selector:t,salt:r,value:n},a){return fu+Qi(r+t+ih(a)+e+n.trim())}function o2(e){return e.substring(0,10)==="@container"}function n2(e){return e.substr(0,6)==="@layer"}function i2(e){return e.substr(0,6)==="@media"}const a2=/^(:|\[|>|&)/;function s2(e){return a2.test(e)}function l2(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}function c2(e){return e===gu}function u2(e){return e.substring(0,6)==="@scope"}function d2(e){return e.substr(0,9)==="@supports"}function Su(e){return e.replace(/>\s+/g,">")}function aA(e,t){}function ah(e){return r2[e]}function sh(e){var t;return(t=e?.[0])!==null&&t!==void 0?t:0}function Bu(e,t,r,n){e[t]=n?[r,n]:r}function lh(e,t){return t.length>0?[e,Object.fromEntries(t)]:e}function zu(e,t,r,n,a,s,c){var u;const f=[];c!==0&&f.push(["p",c]),t==="m"&&a&&f.push(["m",a]),t==="x"&&s&&f.push(["x",s]),(u=e[t])!==null&&u!==void 0||(e[t]=[]),r&&e[t].push(lh(r,f)),n&&e[t].push(lh(n,f))}function qr(e,t="",r=[],n={container:"",layer:"",media:"",supports:"",scope:""},a={},s={},c){for(const u in e){if(ok.hasOwnProperty(u)){e[u];continue}const f=e[u];if(f!=null){if(c2(f)){const p=Su(r.join("")),g=ku(p,u,n);Bu(a,g,0,void 0);continue}if(typeof f=="string"||typeof f=="number"){const p=Su(r.join("")),g=ah(u);if(g){const N=g[1],M=Object.fromEntries(N.map(C=>[C,gu]));qr(M,t,r,n,a,s)}const v=ku(p,u,n),x=Ts({value:f.toString(),salt:t,selector:p,property:u},n),w=c&&{key:u,value:c}||vu(u,f),S=w.key!==u||w.value!==f,k=S?Ts({value:w.value.toString(),property:w.key,salt:t,selector:p},n):void 0,B=S?{rtlClassName:k,rtlProperty:w.key,rtlValue:w.value}:void 0,z=oh(r,n),[P,j]=Jp({className:x,selectors:r,property:u,value:f,...B},n);Bu(a,v,x,k),zu(s,z,P,j,n.media,n.container,sh(g))}else if(u==="animationName"){const p=Array.isArray(f)?f:[f],g=[],v=[];for(const x of p){const w=eh(x),S=eh(Mp(x)),k=fu+Qi(w);let B;const z=th(k,w);let P=[];w===S?B=k:(B=fu+Qi(S),P=th(B,S));for(let j=0;j<z.length;j++)zu(s,"k",z[j],P[j],n.media,n.container,0);g.push(k),v.push(B)}qr({animationName:g.join(", ")},t,r,n,a,s,v.join(", "))}else if(Array.isArray(f)){if(f.length===0)continue;const p=Su(r.join("")),g=ah(u);if(g){const M=g[1],C=Object.fromEntries(M.map(I=>[I,gu]));qr(C,t,r,n,a,s)}const v=ku(p,u,n),x=Ts({value:f.map(M=>(M??"").toString()).join(";"),salt:t,selector:p,property:u},n),w=f.map(M=>vu(u,M));if(!!w.some(M=>M.key!==w[0].key))continue;const k=w[0].key!==u||w.some((M,C)=>M.value!==f[C]),B=k?Ts({value:w.map(M=>{var C;return((C=M?.value)!==null&&C!==void 0?C:"").toString()}).join(";"),salt:t,property:w[0].key,selector:p},n):void 0,z=k?{rtlClassName:B,rtlProperty:w[0].key,rtlValue:w.map(M=>M.value)}:void 0,P=oh(r,n),[j,N]=Jp({className:x,selectors:r,property:u,value:f,...z},n);Bu(a,v,x,B),zu(s,P,j,N,n.media,n.container,sh(g))}else if(l2(f)){if(s2(u))qr(f,t,r.concat(Qp(u)),n,a,s);else if(i2(u)){const p=nh(n.media,u.slice(6).trim());qr(f,t,r,{...n,media:p},a,s)}else if(n2(u)){const p=(n.layer?`${n.layer}.`:"")+u.slice(6).trim();qr(f,t,r,{...n,layer:p},a,s)}else if(d2(u)){const p=nh(n.supports,u.slice(9).trim());qr(f,t,r,{...n,supports:p},a,s)}else if(o2(u)){const p=u.slice(10).trim();qr(f,t,r,{...n,container:p},a,s)}else if(u2(u)){if(n.scope)continue;const p=u.slice(6).trim();if(p===""||!p.startsWith("to "))continue;qr(f,t,r,{...n,scope:p},a,s)}}}}return[a,s]}function f2(e,t=""){const r={},n={};for(const a in e){const s=e[a],[c,u]=qr(s,t);r[a]=c,Object.keys(u).forEach(f=>{n[f]=(n[f]||[]).concat(u[f])})}return[r,n]}function p2(e,t=mu){const r=t();let n=null,a=null,s=null,c=null;function u(f){const{dir:p,renderer:g}=f;n===null&&([n,a]=f2(e,g.classNameHashSalt));const v=p==="ltr";return v?s===null&&(s=xs(n,p)):c===null&&(c=xs(n,p)),r(g,a),v?s:c}return u}function ch(e,t,r=mu){const n=r();let a=null,s=null;function c(u){const{dir:f,renderer:p}=u,g=f==="ltr";return g?a===null&&(a=xs(e,f)):s===null&&(s=xs(e,f)),n(p,t),g?a:s}return c}function h2(e,t,r,n=mu){const a=n();function s(c){const{dir:u,renderer:f}=c,p=u==="ltr"?e:t||e;return a(f,Array.isArray(r)?{r}:r),p}return s}const ta={border:x5,borderLeft:w5,borderBottom:k5,borderRight:S5,borderTop:B5,borderColor:iu,borderStyle:nu,borderRadius:z5,borderWidth:ou,flex:T5,gap:P5,gridArea:F5,margin:A5,marginBlock:D5,marginInline:q5,padding:O5,paddingBlock:H5,paddingInline:L5,overflow:V5,inset:W5,outline:$5,transition:U5,textDecoration:Y5};function g2(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const uh=Jc.useInsertionEffect?Jc.useInsertionEffect:void 0,ju=()=>{const e={};return function(r,n){if(uh&&g2()){uh(()=>{r.insertCSSRules(n)},[r,n]);return}e[r.id]===void 0&&(r.insertCSSRules(n),e[r.id]=!0)}},m2=y.createContext(pk());function ra(){return y.useContext(m2)}const dh=y.createContext("ltr"),v2=({children:e,dir:t})=>m.jsx(dh.Provider,{value:t,children:e});function _u(){return y.useContext(dh)}function ut(e){const t=p2(e,ju);return function(){const n=_u(),a=ra();return t({dir:n,renderer:a})}}function le(e,t){const r=ch(e,t,ju);return function(){const a=_u(),s=ra();return r({dir:a,renderer:s})}}function ze(e,t,r){const n=h2(e,t,r,ju);return function(){const s=_u(),c=ra();return n({dir:s,renderer:c})}}const b2={"<":"\\3C ",">":"\\3E "};function fh(e){return e.replace(/[<>]/g,t=>b2[t])}function y2(e,t){const r=fh(e);if(t){const n=Object.keys(t).reduce((a,s)=>`${a}--${s}: ${t[s]}; `,"");return`${r} { ${fh(n)} }`}return`${r} {}`}const Ps=Symbol.for("fui.slotRenderFunction"),Gn=Symbol.for("fui.slotElementType"),ph=Symbol.for("fui.slotClassNameProp");function me(e,t){const{defaultProps:r,elementType:n}=t,a=x2(e),s={...r,...a,[Gn]:n,[ph]:a?.className||r?.className};return a&&typeof a.children=="function"&&(s[Ps]=a.children,s.children=r?.children),s}function Ne(e,t){if(!(e===null||e===void 0&&!t.renderByDefault))return me(e,t)}function x2(e){return typeof e=="string"||typeof e=="number"||w2(e)||y.isValidElement(e)?{children:e}:e}const w2=e=>typeof e=="object"&&e!==null&&Symbol.iterator in e;function Cu(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&!y.isValidElement(e)}function hh(e){return!!e?.hasOwnProperty(Gn)}const Qe=(...e)=>{const t={};for(const r of e){const n=Array.isArray(r)?r:Object.keys(r);for(const a of n)t[a]=1}return t},k2=Qe(["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"]),S2=Qe(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","popover","focusgroup","focusgroupstart","ref","role","style","tabIndex","title","translate","spellCheck","name"]),B2=Qe(["itemID","itemProp","itemRef","itemScope","itemType"]),vt=Qe(S2,k2,B2),z2=Qe(vt,["form"]),gh=Qe(vt,["height","loop","muted","preload","src","width"]),j2=Qe(gh,["poster"]),_2=Qe(vt,["start"]),C2=Qe(vt,["value"]),N2=Qe(vt,["download","href","hrefLang","media","referrerPolicy","rel","target","type"]),T2=Qe(vt,["dateTime"]),Rs=Qe(vt,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","popoverTarget","popoverTargetAction","type","value"]),P2=Qe(Rs,["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"]),R2=Qe(Rs,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),M2=Qe(Rs,["form","multiple","required"]),E2=Qe(vt,["selected","value"]),I2=Qe(vt,["cellPadding","cellSpacing"]),F2=vt,A2=Qe(vt,["colSpan","rowSpan","scope"]),D2=Qe(vt,["colSpan","headers","rowSpan","scope"]),q2=Qe(vt,["span"]),O2=Qe(vt,["span"]),H2=Qe(vt,["disabled","form"]),L2=Qe(vt,["acceptCharset","action","encType","encType","method","noValidate","target"]),V2=Qe(vt,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),W2=Qe(vt,["alt","crossOrigin","height","src","srcSet","useMap","width"]),$2=Qe(vt,["open","onCancel","onClose"]);function U2(e,t,r){const n=Array.isArray(t),a={},s=Object.keys(e);for(const c of s)(!n&&t[c]||n&&t.indexOf(c)>=0||c.indexOf("data-")===0||c.indexOf("aria-")===0)&&(!r||r?.indexOf(c)===-1)&&(a[c]=e[c]);return a}const G2={label:z2,audio:gh,video:j2,ol:_2,li:C2,a:N2,button:Rs,input:P2,textarea:R2,select:M2,option:E2,table:I2,tr:F2,th:A2,td:D2,colGroup:q2,col:O2,fieldset:H2,form:L2,iframe:V2,img:W2,time:T2,dialog:$2};function mh(e,t,r){const n=e&&G2[e]||vt;return n.as=1,U2(t,n,r)}const yo=({primarySlotTagName:e,props:t,excludedPropNames:r})=>({root:{style:t.style,className:t.className},primary:mh(e,t,[...r||[],"style","className"])}),rt=(e,t,r)=>{var n;return mh((n=t.as)!==null&&n!==void 0?n:e,t,r)};function X2(e,t){const r={};for(const n in e)t.indexOf(n)===-1&&e.hasOwnProperty(n)&&(r[n]=e[n]);return r}function vh(e,t){const r=y.useRef(void 0),n=y.useCallback((s,c)=>(r.current!==void 0&&t(r.current),r.current=e(s,c),r.current),[t,e]),a=y.useCallback(()=>{r.current!==void 0&&(t(r.current),r.current=void 0)},[t]);return y.useEffect(()=>a,[a]),[n,a]}const bh=y.createContext(void 0),K2=bh.Provider,yh=y.createContext(void 0),Y2="",Q2=yh.Provider;function Z2(){var e;return(e=y.useContext(yh))!==null&&e!==void 0?e:Y2}const xh=y.createContext(void 0),J2={},eS=xh.Provider;function tS(){var e;return(e=y.useContext(xh))!==null&&e!==void 0?e:J2}const wh=y.createContext(void 0),rS={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"},oS=wh.Provider;function He(){var e;return(e=y.useContext(wh))!==null&&e!==void 0?e:rS}const kh=y.createContext(void 0),nS=kh.Provider;function Nu(){var e;return(e=y.useContext(kh))!==null&&e!==void 0?e:{}}const Tu=y.createContext(void 0),iS=()=>{},aS=Tu.Provider,Pe=e=>{var t,r;return(r=(t=y.useContext(Tu))===null||t===void 0?void 0:t[e])!==null&&r!==void 0?r:iS},Sh=y.createContext(void 0);Sh.Provider;function sS(){return y.useContext(Sh)}const Bh=y.createContext(void 0);Bh.Provider;function lS(){var e;return(e=y.useContext(Bh))!==null&&e!==void 0?e:{announce:()=>{}}}const cS=e=>(e(0),0),uS=e=>e;function zh(){const{targetDocument:e}=He(),t=e?.defaultView,r=t?t.requestAnimationFrame:cS,n=t?t.cancelAnimationFrame:uS;return vh(r,n)}function dS(e){return typeof e=="function"}const Bt=e=>{"use no memo";const[t,r]=y.useState(()=>e.defaultState===void 0?e.initialState:fS(e.defaultState)?e.defaultState():e.defaultState),n=y.useRef(e.state);y.useEffect(()=>{n.current=e.state},[e.state]);const a=y.useCallback(s=>{dS(s)&&s(n.current)},[]);return pS(e.state)?[e.state,a]:[t,r]};function fS(e){return typeof e=="function"}const pS=e=>{const[t]=y.useState(()=>e!==void 0);return t};function Ms(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const jh={current:0},hS=y.createContext(void 0);function _h(){var e;return(e=y.useContext(hS))!==null&&e!==void 0?e:jh}function gS(){const e=_h()!==jh,[t,r]=y.useState(e);return Ms()&&e&&y.useLayoutEffect(()=>{r(!1)},[]),t}const bt=Ms()?y.useLayoutEffect:y.useEffect,ce=e=>{const t=y.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return bt(()=>{t.current=e},[e]),y.useCallback((...r)=>{const n=t.current;return n(...r)},[t])};function Pu(){const e=y.useRef(!0);return y.useEffect(()=>{e.current&&(e.current=!1)},[]),e.current}function mS(){return y.useReducer(e=>e+1,0)[1]}const Ch=y.createContext(void 0),Nh=Ch.Provider;function vS(){return y.useContext(Ch)||""}function pt(e="fui-",t){const r=_h(),n=vS(),a=hp.useId;if(a){const s=a(),c=y.useMemo(()=>s.replace(/:/g,""),[s]);return t||`${n}${e}${c}`}return y.useMemo(()=>t||`${n}${e}${++r.current}`,[n,e,t,r])}function Oe(...e){const t=y.useCallback(r=>{t.current=r;for(const n of e)typeof n=="function"?n(r):n&&(n.current=r)},[...e]);return t}const Th=(e,t)=>!!e?.contains(t),Ru=e=>{const{targetDocument:t}=He(),r=t?.defaultView,{refs:n,callback:a,element:s,disabled:c,disabledFocusOnIframe:u,contains:f=Th}=e,p=y.useRef(void 0);yS({element:s,disabled:u||c,callback:a,refs:n,contains:f});const g=y.useRef(!1),v=ce(w=>{if(g.current){g.current=!1;return}const S=w.composedPath()[0];n.every(B=>!f(B.current||null,S))&&!c&&a(w)}),x=ce(w=>{g.current=n.some(S=>f(S.current||null,w.target))});y.useEffect(()=>{if(c)return;let w=bS(r);const S=k=>{if(k===w){w=void 0;return}v(k)};return s?.addEventListener("click",S,!0),s?.addEventListener("touchstart",S,!0),s?.addEventListener("contextmenu",S,!0),s?.addEventListener("mousedown",x,!0),p.current=r?.setTimeout(()=>{w=void 0},1),()=>{s?.removeEventListener("click",S,!0),s?.removeEventListener("touchstart",S,!0),s?.removeEventListener("contextmenu",S,!0),s?.removeEventListener("mousedown",x,!0),r?.clearTimeout(p.current),w=void 0}},[v,s,c,x,r])},bS=e=>{if(e){var t,r;if(typeof e.window=="object"&&e.window===e)return e.event;var n;return(n=(r=e.ownerDocument)===null||r===void 0||(t=r.defaultView)===null||t===void 0?void 0:t.event)!==null&&n!==void 0?n:void 0}},Mu="fuiframefocus",yS=e=>{const{disabled:t,element:r,callback:n,contains:a=Th,pollDuration:s=100,refs:c}=e,u=y.useRef(void 0),f=ce(p=>{c.every(v=>!a(v.current||null,p.target))&&!t&&n(p)});y.useEffect(()=>{if(!t)return r?.addEventListener(Mu,f,!0),()=>{r?.removeEventListener(Mu,f,!0)}},[r,t,f]),y.useEffect(()=>{var p;if(!t)return u.current=r==null||(p=r.defaultView)===null||p===void 0?void 0:p.setInterval(()=>{const g=r?.activeElement;if(g?.tagName==="IFRAME"||g?.tagName==="WEBVIEW"){const v=new CustomEvent(Mu,{bubbles:!0});g.dispatchEvent(v)}},s),()=>{var g;r==null||(g=r.defaultView)===null||g===void 0||g.clearInterval(u.current)}},[r,t,s])},Ph=e=>{const{refs:t,callback:r,element:n,disabled:a,contains:s}=e,c=ce(u=>{const f=s||((v,x)=>!!v?.contains(x)),p=u.composedPath()[0];t.every(v=>!f(v.current||null,p))&&!a&&r(u)});y.useEffect(()=>{if(!a)return n?.addEventListener("wheel",c),n?.addEventListener("touchmove",c),()=>{n?.removeEventListener("wheel",c),n?.removeEventListener("touchmove",c)}},[c,n,a])},xS=e=>-1,wS=e=>{};function sn(){const{targetDocument:e}=He(),t=e?.defaultView,r=t?t.setTimeout:xS,n=t?t.clearTimeout:wS;return vh(r,n)}const oa=(e,t,r)=>Math.max(t,Math.min(r,e||0)),kS=parseInt(y.version,10)>=19;function na(e){if(e)return kS?e.props.ref:e.ref}function Re(e,t){return(...r)=>{e?.(...r),t?.(...r)}}function Br(e,t){var r;const n=e;var a;return!!(!(n==null||(r=n.ownerDocument)===null||r===void 0)&&r.defaultView&&n instanceof n.ownerDocument.defaultView[(a=t?.constructorName)!==null&&a!==void 0?a:"HTMLElement"])}function Rh(e){return!!e.type.isFluentTriggerComponent}function Es(e,t){return typeof e=="function"?e(t):e?Mh(e,t):e||null}function Mh(e,t){if(!y.isValidElement(e)||e.type===y.Fragment)throw new Error("A trigger element must be a single element for this component. Please ensure that you're not using React Fragments.");if(Rh(e)){const r=Mh(e.props.children,t);return y.cloneElement(e,void 0,r)}else return y.cloneElement(e,t)}function ia(e){return y.isValidElement(e)?Rh(e)?ia(e.props.children):e:null}function SS(e){return e&&!!e._virtual}function BS(e){return SS(e)&&e._virtual.parent||null}function Eh(e,t={}){if(!e)return null;if(!t.skipVirtual){const n=BS(e);if(n)return n}const r=e.parentNode;return r&&r.nodeType===11?r.host:r}function ln(e,t){if(!e||!t)return!1;if(e===t)return!0;{const r=new WeakSet;for(;t;){const n=Eh(t,{skipVirtual:r.has(t)});if(r.add(t),n===e)return!0;t=n}}return!1}function Ih(e,t){e&&Object.assign(e,{_virtual:{parent:t}})}function zS(e,t){return{...t,[Gn]:e}}function Fh(e,t){return function(n,a,s,c,u){return hh(a)?t(zS(n,a),null,s,c,u):hh(n)?t(n,a,s,c,u):e(n,a,s,c,u)}}function Ah(e){const{as:t,[ph]:r,[Gn]:n,[Ps]:a,...s}=e,c=s,u=typeof n=="string"?t??n:n;return typeof u!="string"&&t&&(c.as=t),{elementType:u,props:c,renderFunction:a}}const cn=f5,jS=(e,t,r)=>{const{elementType:n,renderFunction:a,props:s}=Ah(e),c={...s,...t};return a?cn.jsx(y.Fragment,{children:a(n,c)},r):cn.jsx(n,c,r)},_S=(e,t,r)=>{const{elementType:n,renderFunction:a,props:s}=Ah(e),c={...s,...t};return a?cn.jsx(y.Fragment,{children:a(n,{...c,children:cn.jsxs(y.Fragment,{children:c.children},void 0)})},r):cn.jsxs(n,c,r)},J=Fh(cn.jsx,jS),Le=Fh(cn.jsxs,_S),Dh=y.createContext(void 0),CS={},NS=Dh.Provider,TS=()=>{const e=y.useContext(Dh);return e??CS},PS=(e,t)=>J(oS,{value:t.provider,children:J(K2,{value:t.theme,children:J(Q2,{value:t.themeClassName,children:J(aS,{value:t.customStyleHooks_unstable,children:J(eS,{value:t.tooltip,children:J(v2,{dir:t.textDirection,children:J(NS,{value:t.iconDirection,children:J(nS,{value:t.overrides_unstable,children:Le(e.root,{children:[Ms()?null:J("style",{dangerouslySetInnerHTML:{__html:e.serverStyleProps.cssRule},...e.serverStyleProps.attributes}),e.root.children]})})})})})})})})});const zr="data-tabster",RS="data-tabster-dummy",qh=`:is(${["a[href]","button","input","select","textarea","*[tabindex]","*[contenteditable]","details > summary","audio[controls]","video[controls]"].join(", ")}):not(:disabled)`,Xn={EscapeGroupper:1,Restorer:2,Deloser:3},xo={Invisible:0,PartiallyVisible:1,Visible:2},un={Source:0,Target:1},jr={Both:0,Vertical:1,Horizontal:2,Grid:3,GridLinear:4},ht={ArrowUp:1,ArrowDown:2,ArrowLeft:3,ArrowRight:4,PageUp:5,PageDown:6,Home:7,End:8},MS={Outside:2};function Ht(e,t){return e.storageEntry(t)?.tabster}function Oh(e,t,r){const n=r||e._noop?void 0:t.getAttribute(zr);let a=e.storageEntry(t),s;if(n)if(n!==a?.attr?.string)try{const p=JSON.parse(n);if(typeof p!="object")throw new Error(`Value is not a JSON object, got '${n}'.`);s={string:n,object:p}}catch{}else return;else if(!a)return;a||(a=e.storageEntry(t,!0)),a.tabster||(a.tabster={});const c=a.tabster||{},u=a.attr?.object||{},f=s?.object||{};for(const p of Object.keys(u))if(!f[p]){if(p==="root"){const g=c[p];g&&e.root.onRoot(g,!0)}switch(p){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const g=c[p];g&&(g.dispose(),delete c[p]);break;case"observed":delete c[p],e.observedElement&&e.observedElement.onObservedElementUpdate(t);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete c[p];break}}for(const p of Object.keys(f)){const g=f.sys;switch(p){case"root":c.root?c.root.setProps(f.root):c.root=e.root.createRoot(t,f.root,g),e.root.onRoot(c.root);break;case"focusable":c.focusable=f.focusable;break;case"observed":e.observedElement&&(c.observed=f.observed,e.observedElement.onObservedElementUpdate(t));break;case"uncontrolled":c.uncontrolled=f.uncontrolled;break;case"outline":e.outline&&(c.outline=f.outline);break;case"sys":c.sys=f.sys;break;default:{const v=e.attrHandlers.get(p);v&&(c[p]=v(t,c[p],f[p],u?.[p],g))}}}s?a.attr=s:(Object.keys(c).length===0&&(delete a.tabster,delete a.attr),e.storageEntry(t,!1))}const Or=(e,t,r)=>{e.addEventListener(t,r,!0)},dr=(e,t,r)=>{e.removeEventListener(t,r,!0)};const rr="keyborg:focusin",aa="keyborg:focusout",Hh=0,Lh=1,Vh=2,Is=3;function ES(e){const t=e.HTMLElement,r=t.prototype.focus;let n=!1;return t.prototype.focus=function(){n=!0},e.document.createElement("button").focus(),t.prototype.focus=r,n}let Eu=!1;function Zr(e){const t=e.focus;t.__keyborgNativeFocus?t.__keyborgNativeFocus.call(e):e.focus()}function IS(e){const t=e,r=t.document,n=t.HTMLElement.prototype;Eu||(Eu=ES(t));const a=n.focus;if(a.__keyborgNativeFocus)return;n.focus=g;const s=new Set,c=x=>{const w=x.target;if(!w)return;const S=new CustomEvent(aa,{cancelable:!0,bubbles:!0,composed:!0,detail:{originalEvent:x}});w.dispatchEvent(S)},u=x=>{const w=x.target;if(!w)return;let S=x.composedPath()[0];const k=new Set;for(;S;)S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?(k.add(S),S=S.host):S=S.parentNode;for(const B of s){const z=B.deref();(!z||!k.has(z))&&(s.delete(B),z&&(dr(z,"focusin",u),dr(z,"focusout",c)))}f(w,x.relatedTarget||void 0)},f=(x,w,S)=>{const k=x.shadowRoot;if(k){for(const P of s)if(P.deref()===k)return;Or(k,"focusin",u),Or(k,"focusout",c),s.add(new WeakRef(k));return}const B={relatedTarget:w,originalEvent:S},z=new CustomEvent(rr,{cancelable:!0,bubbles:!0,composed:!0,detail:B});z.details=B,(Eu||p[Is])&&(B.isFocusedProgrammatically=x===p[Is]?.deref(),p[Is]=void 0),x.dispatchEvent(z)},p=[u,c,s];t.__keyborgData=p,Or(r,"focusin",u),Or(r,"focusout",c);function g(){const x=t.__keyborgData;return x&&(x[Is]=new WeakRef(this)),a.apply(this,arguments)}let v=r.activeElement;for(;v&&v.shadowRoot;)f(v),v=v.shadowRoot.activeElement;g.__keyborgNativeFocus=a}function FS(e){const t=e,r=t.HTMLElement.prototype,n=r.focus.__keyborgNativeFocus,a=t.__keyborgData;if(a){const s=t.document;dr(s,"focusin",a[Hh]),dr(s,"focusout",a[Lh]);for(const c of a[Vh]){const u=c.deref();u&&(dr(u,"focusin",a[Hh]),dr(u,"focusout",a[Lh]))}a[Vh].clear(),delete t.__keyborgData}n&&(r.focus=n)}let AS=0;function DS(e,t){let r=e,n=!1,a;const s=()=>{const S=r?.__keyborg?.refs;if(S)for(const k of Object.keys(S))S[k]._cb.forEach(B=>B(n))},c=S=>{n!==S&&(n=S,s())},u=S=>{if(S.key==="Tab")return!0;const k=r?.document.activeElement,B=!0,z=k&&(k.tagName==="INPUT"||k.tagName==="TEXTAREA"||k.isContentEditable);return B&&!z},f=S=>{if(a||n)return;const k=S.detail;k.relatedTarget&&(k.isFocusedProgrammatically||k.isFocusedProgrammatically===void 0||c(!0))},p=()=>{r&&(a&&r.clearTimeout(a),a=r.setTimeout(()=>{a=void 0},1e3)),c(!1)},g=S=>{S.buttons===0||S.clientX===0&&S.clientY===0&&S.screenX===0&&S.screenY===0||p()},v=S=>{n||u(S)&&c(!0)},x=e.document;return Or(x,rr,f),Or(x,"mousedown",g),Or(e,"keydown",v),Or(x,"touchstart",p),Or(x,"touchend",p),Or(x,"touchcancel",p),IS(e),{dispose:()=>{if(!r)return;a&&(r.clearTimeout(a),a=void 0),FS(r);const S=r.document;dr(S,rr,f),dr(S,"mousedown",g),dr(r,"keydown",v),dr(S,"touchstart",p),dr(S,"touchend",p),dr(S,"touchcancel",p),r=void 0},get isNavigatingWithKeyboard(){return n},set isNavigatingWithKeyboard(S){c(S)}}}function Fs(e,t){const r=e,n="k"+ ++AS;let a=r,s;const c=[],u=r.__keyborg;u?s=u.core:s=DS(r);const f={isNavigatingWithKeyboard(){return!!s?.isNavigatingWithKeyboard},subscribe(p){c.push(p)},unsubscribe(p){const g=c.indexOf(p);g>=0&&c.splice(g,1)},setVal(p){s&&(s.isNavigatingWithKeyboard=p)},_cb:c,dispose(){const p=a?.__keyborg;p?.refs[n]&&(delete p.refs[n],Object.keys(p.refs).length===0&&(p.core.dispose(),delete a.__keyborg)),c.length=0,s=void 0,a=void 0}};return u?u.refs[n]=f:r.__keyborg={core:s,refs:{[n]:f}},f}function As(e){e.dispose()}const qS="tabster:focusin",OS="tabster:focusout",Iu="tabster:movefocus",HS="tabster:modalizer:active",LS="tabster:modalizer:inactive",VS="tabster:mover:state",Wh="tabster:mover:movefocus",$h="tabster:mover:memorized-element",Fu="tabster:restorer:restore-focus",WS="tabster:root:focus",$S="tabster:root:blur",US=typeof CustomEvent<"u"?CustomEvent:function(){};class Jr extends US{details;constructor(t,r){super(t,{bubbles:!0,cancelable:!0,composed:!0,detail:r}),this.details=r}}class GS extends Jr{constructor(t){super(qS,t)}}class XS extends Jr{constructor(t){super(OS,t)}}class Kn extends Jr{constructor(t){super(Iu,t)}}class Uh extends Jr{constructor(t){super(VS,t)}}class KS extends Jr{constructor(t){super(HS,t)}}class YS extends Jr{constructor(t){super(LS,t)}}class Gh extends Jr{constructor(){super(Fu)}}class QS extends Jr{constructor(t){super(WS,t)}}class ZS extends Jr{constructor(t){super($S,t)}}const fe={createMutationObserver:e=>new MutationObserver(e),createTreeWalker:(e,t,r,n)=>e.createTreeWalker(t,r,n),getParentNode:e=>e?e.parentNode:null,getParentElement:e=>e?e.parentElement:null,nodeContains:(e,t)=>!!(t&&e?.contains(t)),getActiveElement:e=>e.activeElement,querySelector:(e,t)=>e.querySelector(t),querySelectorAll:(e,t)=>Array.prototype.slice.call(e.querySelectorAll(t),0),getElementById:(e,t)=>e.getElementById(t),getFirstChild:e=>e?.firstChild||null,getLastChild:e=>e?.lastChild||null,getNextSibling:e=>e?.nextSibling||null,getPreviousSibling:e=>e?.previousSibling||null,getFirstElementChild:e=>e?.firstElementChild||null,getLastElementChild:e=>e?.lastElementChild||null,getNextElementSibling:e=>e?.nextElementSibling||null,getPreviousElementSibling:e=>e?.previousElementSibling||null,appendChild:(e,t)=>e.appendChild(t),insertBefore:(e,t,r)=>e.insertBefore(t,r),getSelection:e=>e.ownerDocument?.getSelection()||null,getElementsByName:(e,t)=>e.ownerDocument.getElementsByName(t)};function JS(e){for(const t of Object.keys(e))fe[t]=e[t]}let eB=0;function Ds(e){const t=e();let r=t.__tabsterInstanceContext;return r||(r={elementByUId:{},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0},t.__tabsterInstanceContext=r),r}function tB(e){const t=e.__tabsterInstanceContext;t&&(t.elementByUId={},t.containerBoundingRectCache={},t.containerBoundingRectCacheTimer&&e.clearTimeout(t.containerBoundingRectCacheTimer),delete e.__tabsterInstanceContext)}function rB(e){return!!e.querySelector(qh)}class fr{_ref;_data;constructor(t,r){this._ref=new WeakRef(t),this._data=r}get(){const t=this._ref;let r;return t&&(r=t.deref(),r||delete this._ref),r}getData(){return this._data}}function Au(e,t,r){if(t.nodeType===Node.ELEMENT_NODE)return fe.createTreeWalker(e,t,NodeFilter.SHOW_ELEMENT,{acceptNode:r})}function Xh(e,t){let r=t.__tabsterCacheId;const n=Ds(e),a=r?n.containerBoundingRectCache[r]:void 0;if(a)return a.rect;const s=t.ownerDocument&&t.ownerDocument.documentElement;if(!s)return new DOMRect;let c=0,u=0,f=s.clientWidth,p=s.clientHeight;if(t!==s){const v=t.getBoundingClientRect();c=Math.max(c,v.left),u=Math.max(u,v.top),f=Math.min(f,v.right),p=Math.min(p,v.bottom)}const g=new DOMRect(c<f?c:-1,u<p?u:-1,c<f?f-c:0,u<p?p-u:0);return r||(r="r-"+ ++n.lastContainerBoundingRectCacheId,t.__tabsterCacheId=r),n.containerBoundingRectCache[r]={rect:g,element:t},n.containerBoundingRectCacheTimer||(n.containerBoundingRectCacheTimer=window.setTimeout(()=>{n.containerBoundingRectCacheTimer=void 0;for(const v of Object.keys(n.containerBoundingRectCache))delete n.containerBoundingRectCache[v].element.__tabsterCacheId;n.containerBoundingRectCache={}},50)),g}function Kh(e,t,r){const n=Yh(t);if(!n)return!1;const a=Xh(e,n),s=t.getBoundingClientRect(),c=s.height*(1-r),u=Math.max(0,a.top-s.top),f=Math.max(0,s.bottom-a.bottom),p=u+f;return p===0||p<=c}function oB(e,t,r){const n=Yh(t);if(n){const a=Xh(e,n),s=t.getBoundingClientRect();r?n.scrollTop+=s.top-a.top:n.scrollTop+=s.bottom-a.bottom}}function Yh(e){const t=e.ownerDocument;if(t){for(let r=fe.getParentElement(e);r;r=fe.getParentElement(r))if(r.scrollWidth>r.clientWidth||r.scrollHeight>r.clientHeight)return r;return t.documentElement}return null}function nB(e){e.__shouldIgnoreFocus=!0}function Qh(e){return!!e.__shouldIgnoreFocus}function iB(e){const t=new Uint32Array(4);e.crypto.getRandomValues(t);const r=[];for(let n=0;n<t.length;n++)r.push(t[n].toString(36));return r.push("|"),r.push((++eB).toString(36)),r.push("|"),r.push(Date.now().toString(36)),r.join("")}function qs(e,t){const r=Ds(e);let n=t.__tabsterElementUID;return n||(n=t.__tabsterElementUID=iB(e())),!r.elementByUId[n]&&Jh(t.ownerDocument,t)&&(r.elementByUId[n]=new fr(t)),n}function Zh(e,t){const r=Ds(e);for(const n of Object.keys(r.elementByUId)){const a=r.elementByUId[n],s=a&&a.get();s&&t&&!fe.nodeContains(t,s)||delete r.elementByUId[n]}}function Jh(e,t){return fe.nodeContains(e?.body,t)}function eg(e,t){return typeof e.matches=="function"&&e.matches(t)}let aB=0;class Os{_tabster;_element;_props;id;constructor(t,r,n){this._tabster=t,this._element=new fr(r),this._props={...n},this.id="i"+ ++aB}getElement(){return this._element.get()}getProps(){return this._props}setProps(t){this._props={...t}}}function tg(e){let t=null;for(let r=fe.getLastElementChild(e);r;r=fe.getLastElementChild(r))t=r;return t||void 0}function Du(e,t,r,n){const a=e.storageEntry(t,!0);let s=!1;if(!a.aug){if(n===void 0)return s;a.aug={}}if(n===void 0){if(r in a.aug){const c=a.aug[r];delete a.aug[r],c===null?t.removeAttribute(r):t.setAttribute(r,c),s=!0}}else{let c;r in a.aug||(c=t.getAttribute(r)),c!==void 0&&c!==n&&(a.aug[r]=c,n===null?t.removeAttribute(r):t.setAttribute(r,n),s=!0)}return n===void 0&&Object.keys(a.aug).length===0&&(delete a.aug,e.storageEntry(t,!1)),s}function sB(e){const t=e.ownerDocument,r=t.defaultView?.getComputedStyle(e);return e.offsetParent===null&&t.body!==e&&r?.position!=="fixed"||r?.visibility==="hidden"||r?.position==="fixed"&&(r.display==="none"||e.parentElement?.offsetParent===null&&t.body!==e.parentElement)}function qu(e){return e.tagName==="INPUT"&&!!e.name&&e.type==="radio"}function lB(e){if(!qu(e))return;const t=e.name;let r=Array.from(fe.getElementsByName(e,t)),n;return r=r.filter(a=>qu(a)?(a.checked&&(n=a),!0):!1),{name:t,buttons:new Set(r),checked:n}}const Ou=100;class Hs{_isPhantom;_fixedTarget;_disposeTimer;_clearDisposeTimeout;input;useDefaultAction;isFirst;isOutside;onFocusIn;onFocusOut;constructor(t,r,n,a,s){const c=t(),u=c.document.createElement("i");u.tabIndex=0,u.setAttribute("role","none"),u.setAttribute(RS,""),u.setAttribute("aria-hidden","true");const f=u.style;f.position="fixed",f.width=f.height="1px",f.opacity="0.001",f.zIndex="-1",f.setProperty("content-visibility","hidden"),nB(u),this.input=u,this.isFirst=n.isFirst,this.isOutside=r,this._isPhantom=n.isPhantom??!1,this._fixedTarget=s,u.addEventListener("focusin",this._focusIn),u.addEventListener("focusout",this._focusOut),u.__tabsterDummyContainer=a,this._isPhantom&&(this._disposeTimer=c.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(c.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){this._clearDisposeTimeout&&this._clearDisposeTimeout();const t=this.input;t&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,t.removeEventListener("focusin",this._focusIn),t.removeEventListener("focusout",this._focusOut),delete t.__tabsterDummyContainer,fe.getParentNode(t)?.removeChild(t))}setTopLeft(t,r){const n=this.input?.style;n&&(n.top=`${t}px`,n.left=`${r}px`)}_isBackward(t,r,n){return t&&!n?!this.isFirst:!!(n&&r.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)}_focusIn=t=>{if(this._fixedTarget){const n=this._fixedTarget.get();n&&Zr(n);return}const r=this.input;if(this.onFocusIn&&r){const n=t.relatedTarget;this.onFocusIn(this,this._isBackward(!0,r,n),n)}};_focusOut=t=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const r=this.input;if(this.onFocusOut&&r){const n=t.relatedTarget;this.onFocusOut(this,this._isBackward(!1,r,n),n)}}}const Hu={Root:1,Modalizer:2,Mover:3};class sa{_instance;_onFocusIn;_onFocusOut;_element;constructor(t,r,n,a,s,c){this._element=r,this._instance=new uB(t,r,this,n,a,s,c)}_setHandlers(t,r){this._onFocusIn=t,this._onFocusOut=r}moveOut(t){this._instance?.moveOut(t)}moveOutWithDefaultAction(t,r){this._instance?.moveOutWithDefaultAction(t,r)}getHandler(t){return t?this._onFocusIn:this._onFocusOut}setTabbable(t){this._instance?.setTabbable(this,t)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(t,r,n,a,s){const u=new Hs(t.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(u){let f,p;if(r.tagName==="BODY")f=r,p=n&&a||!n&&!a?fe.getFirstElementChild(r):null;else{n&&(!a||a&&!t.focusable.isFocusable(r,!1,!0,!0))?(f=r,p=a?r.firstElementChild:null):(f=fe.getParentElement(r),p=n&&a||!n&&!a?r:fe.getNextElementSibling(r));let g,v;do g=n&&a||!n&&!a?fe.getPreviousElementSibling(p):p,v=la(g),v===r?p=n&&a||!n&&!a?g:fe.getNextElementSibling(g):v=null;while(v)}f?.dispatchEvent(new Kn({by:"root",owner:f,next:null,relatedEvent:s}))&&(fe.insertBefore(f,u,p),Zr(u))}}static addPhantomDummyWithTarget(t,r,n,a){const c=new Hs(t.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new fr(a)).input;if(c){let u,f;rB(r)&&!n?(u=r,f=fe.getFirstElementChild(r)):(u=fe.getParentElement(r),f=n?r:fe.getNextElementSibling(r)),u&&fe.insertBefore(u,c,f)}}}class cB{_win;_updateQueue=new Set;_updateTimer;_lastUpdateQueueTime=0;_changedParents=new WeakSet;_updateDummyInputsTimer;_dummyElements=[];_dummyCallbacks=new WeakMap;constructor(t){this._win=t}add(t,r){!this._dummyCallbacks.has(t)&&this._win&&(this._dummyElements.push(new fr(t)),this._dummyCallbacks.set(t,r),this.domChanged=this._domChanged)}remove(t){this._dummyElements=this._dummyElements.filter(r=>{const n=r.get();return n&&n!==t}),this._dummyCallbacks.delete(t),this._dummyElements.length===0&&delete this.domChanged}dispose(){const t=this._win?.();this._updateTimer&&(t?.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(t?.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}_domChanged=t=>{this._changedParents.has(t)||(this._changedParents.add(t),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=this._win?.().setTimeout(()=>{delete this._updateDummyInputsTimer;for(const r of this._dummyElements){const n=r.get();if(n){const a=this._dummyCallbacks.get(n);if(a){const s=fe.getParentNode(n);(!s||this._changedParents.has(s))&&a()}}}this._changedParents=new WeakSet},Ou)))};updatePositions(t){this._win&&(this._updateQueue.add(t),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){this._updateTimer||(this._updateTimer=this._win?.().setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+Ou<=Date.now()){const t=new Map,r=[];for(const n of this._updateQueue)r.push(n(t));this._updateQueue.clear();for(const n of r)n();t.clear()}else this._scheduledUpdatePositions()},Ou))}}class uB{_tabster;_addTimer;_getWindow;_wrappers=[];_element;_isOutside=!1;_firstDummy;_lastDummy;_transformElements=new Set;_callForDefaultAction;constructor(t,r,n,a,s,c,u){const f=r.get();if(!f)throw new Error("No element");this._tabster=t,this._getWindow=t.getWindow,this._callForDefaultAction=u;const p=f.__tabsterDummy;if((p||this)._wrappers.push({manager:n,priority:a,tabbable:!0}),p)return p;f.__tabsterDummy=this;const g=s?.dummyInputsPosition,v=f.tagName;this._isOutside=g?g===MS.Outside:(c||v==="UL"||v==="OL"||v==="TABLE")&&!(v==="LI"||v==="TD"||v==="TH"),this._firstDummy=new Hs(this._getWindow,this._isOutside,{isFirst:!0},r),this._lastDummy=new Hs(this._getWindow,this._isOutside,{isFirst:!1},r);const x=this._firstDummy.input;x&&t._dummyObserver.add(x,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=r,this._addDummyInputs()}dispose(t,r){if((this._wrappers=this._wrappers.filter(a=>a.manager!==t&&!r)).length===0){delete(this._element?.get()).__tabsterDummy;for(const c of this._transformElements)c.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const a=this._getWindow();this._addTimer&&(a.clearTimeout(this._addTimer),delete this._addTimer);const s=this._firstDummy?.input;s&&this._tabster._dummyObserver.remove(s),this._firstDummy?.dispose(),this._lastDummy?.dispose()}}_onFocus(t,r,n,a){const s=this._getCurrent();s&&(!r.useDefaultAction||this._callForDefaultAction)&&s.manager.getHandler(t)?.(r,n,a)}_onFocusIn=(t,r,n)=>{this._onFocus(!0,t,r,n)};_onFocusOut=(t,r,n)=>{this._onFocus(!1,t,r,n)};moveOut=t=>{const r=this._firstDummy,n=this._lastDummy;if(r&&n){this._ensurePosition();const a=r.input,s=n.input,c=this._element?.get();if(a&&s&&c){let u;t?(a.tabIndex=0,u=a):(s.tabIndex=0,u=s),u&&Zr(u)}}};moveOutWithDefaultAction=(t,r)=>{const n=this._firstDummy,a=this._lastDummy;if(n&&a){this._ensurePosition();const s=n.input,c=a.input,u=this._element?.get();if(s&&c&&u){let f;t?!n.isOutside&&this._tabster.focusable.isFocusable(u,!0,!0,!0)?f=u:(n.useDefaultAction=!0,s.tabIndex=0,f=s):(a.useDefaultAction=!0,c.tabIndex=0,f=c),f&&u.dispatchEvent(new Kn({by:"root",owner:u,next:null,relatedEvent:r}))&&Zr(f)}}};setTabbable=(t,r)=>{for(const a of this._wrappers)if(a.manager===t){a.tabbable=r;break}const n=this._getCurrent();if(n){const a=n.tabbable?0:-1;let s=this._firstDummy?.input;s&&(s.tabIndex=a),s=this._lastDummy?.input,s&&(s.tabIndex=a)}};_getCurrent(){return this._wrappers.sort((t,r)=>t.tabbable!==r.tabbable?t.tabbable?-1:1:t.priority-r.priority),this._wrappers[0]}_addDummyInputs=()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),this._addTransformOffsets()},0))};_ensurePosition(){const t=this._element?.get(),r=this._firstDummy?.input,n=this._lastDummy?.input;if(!(!t||!r||!n))if(this._isOutside){const a=fe.getParentNode(t);if(a){const s=fe.getNextSibling(t);s!==n&&fe.insertBefore(a,n,s),fe.getPreviousElementSibling(t)!==r&&fe.insertBefore(a,r,t)}}else{fe.getLastElementChild(t)!==n&&fe.appendChild(t,n);const a=fe.getFirstElementChild(t);a&&a!==r&&a.parentNode&&fe.insertBefore(a.parentNode,r,a)}}_addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)};_computeTransformOffsets=t=>{const r=this._firstDummy?.input||this._lastDummy?.input,n=this._transformElements,a=new Set;let s=0,c=0;const u=this._getWindow();for(let f=r;f&&f.nodeType===Node.ELEMENT_NODE;f=fe.getParentElement(f)){let p=t.get(f);if(p===void 0){const g=u.getComputedStyle(f).transform;g&&g!=="none"&&(p={scrollTop:f.scrollTop,scrollLeft:f.scrollLeft}),t.set(f,p||null)}p&&(a.add(f),n.has(f)||f.addEventListener("scroll",this._addTransformOffsets),s+=p.scrollTop,c+=p.scrollLeft)}for(const f of n)a.has(f)||f.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=a,()=>{this._firstDummy?.setTopLeft(s,c),this._lastDummy?.setTopLeft(s,c)}}}function la(e){return e?.__tabsterDummyContainer?.get()||null}function Lu(e,t){const r=JSON.stringify(e);return t===!0?r:{[zr]:r}}function dB(e,t){for(const r of Object.keys(t)){const n=t[r];n?e[r]=n:delete e[r]}}function fB(e,t,r){let n;{const a=e.getAttribute(zr);if(a)try{n=JSON.parse(a)}catch{}}n||(n={}),dB(n,t),Object.keys(n).length>0?e.setAttribute(zr,Lu(n,!0)):e.removeAttribute(zr)}class rg extends sa{_tabster;_setFocused;constructor(t,r,n,a){super(t,r,Hu.Root,a,void 0,!0),this._setHandlers(this._onDummyInputFocus),this._tabster=t,this._setFocused=n}_onDummyInputFocus=t=>{if(t.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const r=this._element.get();if(r){this._setFocused(!0);const n=this._tabster.focusedElement.getFirstOrLastTabbable(t.isFirst,{container:r,ignoreAccessibility:!0});if(n){Zr(n);return}}t.input?.blur()}}}class pB extends Os{uid;_dummyManager;_sys;_isFocused=!1;_setFocusedTimer;_onDispose;constructor(t,r,n,a,s){super(t,r,a),this._onDispose=n;const c=t.getWindow;this.uid=qs(c,r),this._sys=s,(t.controlTab||t.rootDummyInputs)&&this.addDummyInputs();const f=c().document;f.addEventListener(rr,this._onFocusIn),f.addEventListener(aa,this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new rg(this._tabster,this._element,this._setFocused,this._sys))}dispose(){this._onDispose(this);const t=this._tabster.getWindow(),r=t.document;r.removeEventListener(rr,this._onFocusIn),r.removeEventListener(aa,this._onFocusOut),this._setFocusedTimer&&(t.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._dummyManager?.dispose(),this._remove()}moveOutWithDefaultAction(t,r){const n=this._dummyManager;if(n)n.moveOutWithDefaultAction(t,r);else{const a=this.getElement();a&&rg.moveWithPhantomDummy(this._tabster,a,!0,t,r)}}_setFocused=t=>{if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===t)return;const r=this._element.get();r&&(t?(this._isFocused=!0,this._dummyManager?.setTabbable(!1),r.dispatchEvent(new QS({element:r}))):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{delete this._setFocusedTimer,this._isFocused=!1,this._dummyManager?.setTabbable(!0),r.dispatchEvent(new ZS({element:r}))},0))};_onFocusIn=t=>{const r=this._tabster.getParent,n=this._element.get();let a=t.composedPath()[0];do{if(a===n){this._setFocused(!0);return}a=a&&r(a)}while(a)};_onFocusOut=()=>{this._setFocused(!1)};_add(){}_remove(){}}class it{_tabster;_win;_autoRoot;_autoRootWaiting=!1;_roots={};_forceDummy=!1;rootById={};constructor(t,r){this._tabster=t,this._win=t.getWindow,this._autoRoot=r,t.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootCreate=()=>{const t=this._win().document,r=t.body;if(r){this._autoRootUnwait(t);const n=this._autoRoot;if(n)return fB(r,{root:n}),Oh(this._tabster,r),Ht(this._tabster,r)?.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,t.addEventListener("readystatechange",this._autoRootCreate))};_autoRootUnwait(t){t.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const t=this._win();this._autoRootUnwait(t.document),delete this._autoRoot,Object.keys(this._roots).forEach(r=>{this._roots[r]&&(this._roots[r].dispose(),delete this._roots[r])}),this.rootById={}}createRoot(t,r,n){const a=new pB(this._tabster,t,this._onRootDispose,r,n);return this._roots[a.id]=a,this._forceDummy&&a.addDummyInputs(),a}addDummyInputs(){this._forceDummy=!0;const t=this._roots;for(const r of Object.keys(t))t[r].addDummyInputs()}static getRootByUId(t,r){const n=t().__tabsterInstance;return n&&n.root.rootById[r]}static getTabsterContext(t,r,n={}){if(!r.ownerDocument)return;const{checkRtl:a,referenceElement:s}=n,c=t.getParent;t.drainInitQueue();let u,f,p,g,v=!1,x,w,S,k,B=s||r;const z={};for(;B&&(!u||a);){const j=Ht(t,B);if(a&&S===void 0){const A=B.dir;A&&(S=A.toLowerCase()==="rtl")}if(!j){B=c(B);continue}const N=B.tagName;(j.uncontrolled||N==="IFRAME"||N==="WEBVIEW")&&t.focusable.isVisible(B)&&(k=B),!g&&j.focusable?.excludeFromMover&&!p&&(v=!0);const M=j.modalizer,C=j.groupper,I=j.mover;!f&&M&&(f=M),!p&&C&&(!f||M)&&(f?(!C.isActive()&&C.getProps().tabbability&&f.userId!==t.modalizer?.activeId&&(f=void 0,p=C),w=C):p=C),!g&&I&&(!f||M)&&(!C||B!==r)&&B.contains(r)&&(g=I,x=!!p&&p!==C),j.root&&(u=j.root),j.focusable?.ignoreKeydown&&Object.assign(z,j.focusable.ignoreKeydown),B=c(B)}if(!u){const j=t.root;j._autoRoot&&r.ownerDocument?.body&&(u=j._autoRootCreate())}return p&&!g&&(x=!0),u?{root:u,modalizer:f,groupper:p,mover:g,groupperBeforeMover:x,modalizerInGroupper:w,rtl:a?!!S:void 0,uncontrolled:k,excludedFromMover:v,ignoreKeydown:j=>!!z[j.key]}:void 0}static getRoot(t,r){const n=t.getParent;for(let a=r;a;a=n(a)){const s=Ht(t,a)?.root;if(s)return s}}onRoot(t,r){r?delete this.rootById[t.uid]:this.rootById[t.uid]=t}_onRootDispose=t=>{delete this._roots[t.id]}}class hB{_tabster;constructor(t){this._tabster=t}dispose(){}getProps(t){const r=Ht(this._tabster,t);return r&&r.focusable||{}}isFocusable(t,r,n,a){return eg(t,qh)&&(r||t.tabIndex!==-1)?(n||this.isVisible(t))&&(a||this.isAccessible(t)):!1}isVisible(t){if(!t.ownerDocument||t.nodeType!==Node.ELEMENT_NODE||sB(t))return!1;const r=t.ownerDocument.body.getBoundingClientRect();return!(r.width===0&&r.height===0)}isAccessible(t){for(let r=t;r;r=fe.getParentElement(r)){const n=Ht(this._tabster,r);if(this._isHidden(r)||!n?.focusable?.ignoreAriaDisabled&&this._isDisabled(r))return!1}return!0}_isDisabled(t){return t.hasAttribute("disabled")}_isHidden(t){const r=t.getAttribute("aria-hidden");return!!(r&&r.toLowerCase()==="true"&&!this._tabster.modalizer?.isAugmented(t))}findFirst(t,r){return this.findElement({...t},r)}findLast(t,r){return this.findElement({isBackward:!0,...t},r)}findNext(t,r){return this.findElement({...t},r)}findPrev(t,r){return this.findElement({...t,isBackward:!0},r)}findDefault(t,r){return this.findElement({...t,acceptCondition:n=>this.isFocusable(n,t.includeProgrammaticallyFocusable)&&!!this.getProps(n).isDefault},r)||null}findAll(t){return this._findElements(!0,t)||[]}findElement(t,r){const n=this._findElements(!1,t,r);return n&&n[0]}_findElements(t,r,n){const{container:a,currentElement:s=null,includeProgrammaticallyFocusable:c,useActiveModalizer:u,ignoreAccessibility:f,modalizerId:p,isBackward:g,onElement:v}=r;n||(n={});const x=[];let{acceptCondition:w}=r;const S=!!w;if(!a)return null;w||(w=P=>this.isFocusable(P,c,!1,f));const k={container:a,modalizerUserId:p===void 0&&u?this._tabster.modalizer?.activeId:p||it.getTabsterContext(this._tabster,a)?.modalizer?.userId,from:s||a,isBackward:g,isFindAll:t,acceptCondition:w,hasCustomCondition:S,includeProgrammaticallyFocusable:c,ignoreAccessibility:f,cachedGrouppers:{},cachedRadioGroups:{}},B=Au(a.ownerDocument,a,P=>this._acceptElement(P,k));if(!B)return null;const z=P=>{const j=k.foundElement??k.foundBackward;return j&&x.push(j),t?j&&(k.found=!1,delete k.foundElement,delete k.foundBackward,delete k.fromCtx,k.from=j,v&&!v(j))?!1:!!(j||P):(j&&n&&(n.uncontrolled=it.getTabsterContext(this._tabster,j)?.uncontrolled),!!(P&&!j))};if(s||(n.outOfDOMOrder=!0),s&&fe.nodeContains(a,s))B.currentNode=s;else if(g){const P=tg(a);if(!P)return null;if(this._acceptElement(P,k)===NodeFilter.FILTER_ACCEPT&&!z(!0))return k.skippedFocusable&&(n.outOfDOMOrder=!0),x;B.currentNode=P}do g?B.previousNode():B.nextNode();while(z());return k.skippedFocusable&&(n.outOfDOMOrder=!0),x.length?x:null}_acceptElement(t,r){if(r.found)return NodeFilter.FILTER_ACCEPT;const n=r.foundBackward;if(n&&(t===n||!fe.nodeContains(n,t)))return r.found=!0,r.foundElement=n,NodeFilter.FILTER_ACCEPT;const a=r.container;if(t===a)return NodeFilter.FILTER_SKIP;if(!fe.nodeContains(a,t)||la(t)||fe.nodeContains(r.rejectElementsFrom,t))return NodeFilter.FILTER_REJECT;const s=r.currentCtx=it.getTabsterContext(this._tabster,t);if(!s)return NodeFilter.FILTER_SKIP;if(Qh(t))return this.isFocusable(t,void 0,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!r.hasCustomCondition&&(t.tagName==="IFRAME"||t.tagName==="WEBVIEW"))return this.isVisible(t)&&s.modalizer?.userId===this._tabster.modalizer?.activeId?(r.found=!0,r.rejectElementsFrom=r.foundElement=t,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!r.ignoreAccessibility&&!this.isAccessible(t))return this.isFocusable(t,!1,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let c,u=r.fromCtx;u||(u=r.fromCtx=it.getTabsterContext(this._tabster,r.from));const f=u?.mover;let p=s.groupper,g=s.mover;if(c=this._tabster.modalizer?.acceptElement(t,r),c!==void 0&&(r.skippedFocusable=!0),c===void 0&&(p||g||f)){const v=p?.getElement(),x=f?.getElement();let w=g?.getElement();if(w&&fe.nodeContains(x,w)&&fe.nodeContains(a,x)&&(!v||!g||fe.nodeContains(x,v))&&(g=f,w=x),v){if(v===a||!fe.nodeContains(a,v))p=void 0;else if(!fe.nodeContains(v,t))return NodeFilter.FILTER_REJECT}if(w){if(!fe.nodeContains(a,w))g=void 0;else if(!fe.nodeContains(w,t))return NodeFilter.FILTER_REJECT}p&&g&&(w&&v&&!fe.nodeContains(v,w)?g=void 0:p=void 0),p&&(c=p.acceptElement(t,r)),g&&(c=g.acceptElement(t,r))}if(c===void 0&&(c=r.acceptCondition(t)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,c===NodeFilter.FILTER_SKIP&&this.isFocusable(t,!1,!0,!0)&&(r.skippedFocusable=!0)),c===NodeFilter.FILTER_ACCEPT&&!r.found){if(!r.isFindAll&&qu(t)&&!t.checked){const v=t.name;let x=r.cachedRadioGroups[v];if(x||(x=lB(t),x&&(r.cachedRadioGroups[v]=x)),x?.checked&&x.checked!==t)return NodeFilter.FILTER_SKIP}r.isBackward?(r.foundBackward=t,c=NodeFilter.FILTER_SKIP):(r.found=!0,r.foundElement=t)}return c}}const zt={Tab:"Tab",Escape:"Escape",PageUp:"PageUp",PageDown:"PageDown",End:"End",Home:"Home",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown"};class og{_val;_callbacks=[];dispose(){this._callbacks=[],delete this._val}subscribe(t){const r=this._callbacks;r.indexOf(t)<0&&r.push(t)}subscribeFirst(t){const r=this._callbacks,n=r.indexOf(t);n>=0&&r.splice(n,1),r.unshift(t)}unsubscribe(t){const r=this._callbacks.indexOf(t);r>=0&&this._callbacks.splice(r,1)}setVal(t,r){this._val!==t&&(this._val=t,this._callCallbacks(t,r))}getVal(){return this._val}trigger(t,r){this._callCallbacks(t,r)}_callCallbacks(t,r){this._callbacks.forEach(n=>n(t,r))}}function gB(e,t){const r=e.getParent;let n=t;do{const a=Ht(e,n)?.uncontrolled;if(a&&e.uncontrolled.isUncontrolledCompletely(n,!!a.completely))return n;n=r(n)}while(n)}const ng={[Xn.Restorer]:0,[Xn.Deloser]:1,[Xn.EscapeGroupper]:2};class yt extends og{static _lastResetElement;static _isTabbingTimer;static isTabbing=!1;_tabster;_win;_nextVal;_lastVal;_asyncFocus;constructor(t,r){super(),this._tabster=t,this._win=r,t.queueInit(this._init)}_init=()=>{const t=this._win(),r=t.document;r.addEventListener(rr,this._onFocusIn,!0),r.addEventListener(aa,this._onFocusOut,!0),t.addEventListener("keydown",this._onKeyDown,!0);const n=fe.getActiveElement(r);n&&n!==r.body&&this._setFocusedElement(n),this.subscribe(this._onChanged)};dispose(){super.dispose();const t=this._win(),r=t.document;r.removeEventListener(rr,this._onFocusIn,!0),r.removeEventListener(aa,this._onFocusOut,!0),t.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged);const n=this._asyncFocus;n&&(t.clearTimeout(n.timeout),delete this._asyncFocus),delete yt._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(t,r){let n=yt._lastResetElement,a=n&&n.get();a&&fe.nodeContains(r,a)&&delete yt._lastResetElement,a=t._nextVal?.element?.get(),a&&fe.nodeContains(r,a)&&delete t._nextVal,n=t._lastVal,a=n&&n.get(),a&&fe.nodeContains(r,a)&&delete t._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){let t=this._lastVal?.get();return(!t||t&&!Jh(t.ownerDocument,t))&&(this._lastVal=t=void 0),t}focus(t,r,n,a){return this._tabster.focusable.isFocusable(t,r,!1,n)?(t.focus({preventScroll:a}),!0):!1}focusDefault(t){const r=this._tabster.focusable.findDefault({container:t});return r?(this._tabster.focusedElement.focus(r),!0):!1}getFirstOrLastTabbable(t,r){const{container:n,ignoreAccessibility:a}=r;let s;if(n){const c=it.getTabsterContext(this._tabster,n);c&&(s=yt.findNextTabbable(this._tabster,c,n,void 0,void 0,!t,a)?.element)}return s&&!fe.nodeContains(n,s)&&(s=void 0),s||void 0}_focusFirstOrLast(t,r){const n=this.getFirstOrLastTabbable(t,r);return n?(this.focus(n,!1,!0),!0):!1}focusFirst(t){return this._focusFirstOrLast(!0,t)}focusLast(t){return this._focusFirstOrLast(!1,t)}resetFocus(t){if(!this._tabster.focusable.isVisible(t))return!1;if(this._tabster.focusable.isFocusable(t,!0,!0,!0))this.focus(t);else{const r=t.getAttribute("tabindex"),n=t.getAttribute("aria-hidden");t.tabIndex=-1,t.setAttribute("aria-hidden","true"),yt._lastResetElement=new fr(t),this.focus(t,!0,!0),this._setOrRemoveAttribute(t,"tabindex",r),this._setOrRemoveAttribute(t,"aria-hidden",n)}return!0}requestAsyncFocus(t,r,n){const a=this._tabster.getWindow(),s=this._asyncFocus;if(s){if(ng[t]>ng[s.source])return;a.clearTimeout(s.timeout)}this._asyncFocus={source:t,callback:r,timeout:a.setTimeout(()=>{this._asyncFocus=void 0,r()},n)}}cancelAsyncFocus(t){const r=this._asyncFocus;r?.source===t&&(this._tabster.getWindow().clearTimeout(r.timeout),this._asyncFocus=void 0)}_setOrRemoveAttribute(t,r,n){n===null?t.removeAttribute(r):t.setAttribute(r,n)}_setFocusedElement(t,r,n){if(this._tabster._noop)return;const a={relatedTarget:r};if(t){const c=yt._lastResetElement?.get();if(yt._lastResetElement=void 0,c===t||Qh(t))return;a.isFocusedProgrammatically=n;const f=it.getTabsterContext(this._tabster,t)?.modalizer?.userId;f&&(a.modalizerId=f)}const s=this._nextVal={element:t?new fr(t):void 0,detail:a};t&&t!==this._val&&this._validateFocusedElement(t),this._nextVal===s&&this.setVal(t,a),this._nextVal=void 0}setVal(t,r){super.setVal(t,r),t&&(this._lastVal=new fr(t))}_onFocusIn=t=>{const r=t.composedPath()[0];r&&this._setFocusedElement(r,t.detail.relatedTarget,t.detail.isFocusedProgrammatically)};_onFocusOut=t=>{this._setFocusedElement(void 0,t.detail?.originalEvent.relatedTarget)};static findNextTabbable(t,r,n,a,s,c,u){const f=n||r.root.getElement();if(!f)return null;let p=null;const g=yt._isTabbingTimer,v=t.getWindow();g&&v.clearTimeout(g),yt.isTabbing=!0,yt._isTabbingTimer=v.setTimeout(()=>{delete yt._isTabbingTimer,yt.isTabbing=!1},0);const x=r.modalizer,w=r.groupper,S=r.mover,k=B=>{if(p=B.findNextTabbable(a,s,c,u),a&&!p?.element){const z=B!==x&&fe.getParentElement(B.getElement());if(z){const P=it.getTabsterContext(t,a,{referenceElement:z});if(P){const j=B.getElement(),N=c?j:j&&tg(j)||j;N&&(p=yt.findNextTabbable(t,P,n,N,z,c,u),p&&(p.outOfDOMOrder=!0))}}}};if(w&&S)k(r.groupperBeforeMover?w:S);else if(w)k(w);else if(S)k(S);else if(x)k(x);else{const B={container:f,currentElement:a,referenceElement:s,ignoreAccessibility:u,useActiveModalizer:!0},z={};p={element:t.focusable[c?"findPrev":"findNext"](B,z),outOfDOMOrder:z.outOfDOMOrder,uncontrolled:z.uncontrolled}}return p}_validateFocusedElement=t=>{};_onKeyDown=t=>{if(t.key!==zt.Tab||t.ctrlKey)return;const r=this.getVal();if(!r||!r.ownerDocument||r.contentEditable==="true")return;const n=this._tabster,a=n.controlTab,s=it.getTabsterContext(n,r);if(!s||s.ignoreKeydown(t))return;const c=t.shiftKey,u=yt.findNextTabbable(n,s,void 0,r,void 0,c,!0),f=s.root.getElement();if(!f)return;const p=u?.element,g=gB(n,r);if(p){const v=u.uncontrolled;if(s.uncontrolled||fe.nodeContains(v,r)){if(!u.outOfDOMOrder&&v===s.uncontrolled||g&&!fe.nodeContains(g,p))return;sa.addPhantomDummyWithTarget(n,r,c,p);return}if(v&&n.focusable.isVisible(v)||p.tagName==="IFRAME"&&n.focusable.isVisible(p)){f.dispatchEvent(new Kn({by:"root",owner:f,next:p,relatedEvent:t}))&&sa.moveWithPhantomDummy(n,v??p,!1,c,t);return}(a||u?.outOfDOMOrder)&&f.dispatchEvent(new Kn({by:"root",owner:f,next:p,relatedEvent:t}))&&(t.preventDefault(),t.stopImmediatePropagation(),Zr(p))}else!g&&f.dispatchEvent(new Kn({by:"root",owner:f,next:null,relatedEvent:t}))&&s.root.moveOutWithDefaultAction(c,t)};_onChanged=(t,r)=>{if(t)t.dispatchEvent(new GS(r));else{const n=this._lastVal?.get();if(n){const a={...r},c=it.getTabsterContext(this._tabster,n)?.modalizer?.userId;c&&(a.modalizerId=c),n.dispatchEvent(new XS(a))}}}}class mB extends og{_keyborg;constructor(t){super(),this._keyborg=Fs(t()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),As(this._keyborg),delete this._keyborg)}_onChange=t=>{this.setVal(t,void 0)};setNavigatingWithKeyboard(t){this._keyborg?.setVal(t)}isNavigatingWithKeyboard(){return!!this._keyborg?.isNavigatingWithKeyboard()}}function vB(e,t,r,n){if(typeof MutationObserver>"u")return()=>{};const a=t.getWindow;let s;const c=g=>{const v=new Set;for(const x of g){const w=x.target,S=x.removedNodes,k=x.addedNodes;if(x.type==="attributes")x.attributeName===zr&&(v.has(w)||r(t,w));else{for(let B=0;B<S.length;B++){const z=S[B];v.add(z),u(z,!0),t._dummyObserver.domChanged?.(w)}for(let B=0;B<k.length;B++)u(k[B]),t._dummyObserver.domChanged?.(w)}}v.clear(),t.modalizer?.hiddenUpdate()};function u(g,v){s||(s=Ds(a).elementByUId),f(g,v);const x=Au(e,g,w=>f(w,v));if(x)for(;x.nextNode(););}function f(g,v){if(!g.getAttribute)return NodeFilter.FILTER_SKIP;const x=g.__tabsterElementUID;return x&&s&&(v?delete s[x]:s[x]??=new fr(g)),(Ht(t,g)||g.hasAttribute(zr))&&r(t,g,v),NodeFilter.FILTER_SKIP}const p=fe.createMutationObserver(c);return n&&u(a().document.body),p.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[zr]}),()=>{p.disconnect()}}class bB{_isUncontrolledCompletely;constructor(t){this._isUncontrolledCompletely=t}isUncontrolledCompletely(t,r){const n=this._isUncontrolledCompletely?.(t,r);return n===void 0?r:n}}let yB=0;const Vu="aria-hidden";class xB extends sa{constructor(t,r,n){super(r,t,Hu.Modalizer,n),this._setHandlers((a,s)=>{const c=t.get(),u=c&&it.getRoot(r,c)?.getElement(),f=a.input;let p;if(u&&f){const g=la(f),v=it.getTabsterContext(r,g||f);v&&(p=yt.findNextTabbable(r,v,u,f,void 0,s,!0)?.element),p&&Zr(p)}})}}class wB extends Os{userId;_isActive;_wasFocused=0;_onDispose;_activeElements;dummyManager;constructor(t,r,n,a,s,c){super(t,r,a),this.userId=a.id,this._onDispose=n,this._activeElements=c,t.controlTab||(this.dummyManager=new xB(this._element,t,s))}makeActive(t){if(this._isActive!==t){this._isActive=t;const r=this.getElement();if(r){const n=this._activeElements,a=n.map(s=>s.get()).indexOf(r);t?a<0&&n.push(new fr(r)):a>=0&&n.splice(a,1)}this._dispatchEvent(t)}}focused(t){return t||(this._wasFocused=++yB),this._wasFocused}setProps(t){t.id&&(this.userId=t.id),this._props={...t}}dispose(){this.makeActive(!1),this._onDispose(this),this.dummyManager?.dispose(),delete this.dummyManager,this._activeElements=[],this._remove()}isActive(){return!!this._isActive}contains(t){return fe.nodeContains(this.getElement(),t)}findNextTabbable(t,r,n,a){if(!this.getElement())return null;const c=this._tabster;let u=null,f=!1,p;const g=t&&it.getRoot(c,t)?.getElement();if(g){const v={container:g,currentElement:t,referenceElement:r,ignoreAccessibility:a,useActiveModalizer:!0},x={};u=c.focusable[n?"findPrev":"findNext"](v,x),!u&&this._props.isTrapped&&c.modalizer?.activeId?(u=c.focusable[n?"findLast":"findFirst"]({container:g,ignoreAccessibility:a,useActiveModalizer:!0},x),u===null&&(u=t),f=!0):f=!!x.outOfDOMOrder,p=x.uncontrolled}return{element:u,uncontrolled:p,outOfDOMOrder:f}}_dispatchEvent(t,r){const n=this.getElement();let a=!1;if(n){const s=r?this._activeElements.map(c=>c.get()):[n];for(const c of s)if(c){const u={id:this.userId,element:n},f=t?new KS(u):new YS(u);c.dispatchEvent(f),f.defaultPrevented&&(a=!0)}}return a}_remove(){}}class kB{_tabster;_win;_restoreModalizerFocusTimer;_modalizers;_parts;_augMap;_aug;_hiddenUpdateTimer;_alwaysAccessibleSelector;_accessibleCheck;_activationHistory;activeId;currentIsOthersAccessible;activeElements;constructor(t,r,n){this._tabster=t,this._win=t.getWindow,this._modalizers={},this._parts={},this._augMap=new WeakMap,this._aug=[],this._alwaysAccessibleSelector=r,this._accessibleCheck=n,this._activationHistory=[],this.activeElements=[],t.controlTab||t.root.addDummyInputs(),this._win().addEventListener("keydown",this._onKeyDown,!0),t.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus)})}dispose(){const t=this._win();t.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._modalizers).forEach(r=>{this._modalizers[r]&&(this._modalizers[r].dispose(),delete this._modalizers[r])}),t.clearTimeout(this._restoreModalizerFocusTimer),t.clearTimeout(this._hiddenUpdateTimer),this._parts={},delete this.activeId,this.activeElements=[],this._augMap=new WeakMap,this._aug=[],this._tabster.focusedElement.unsubscribe(this._onFocus)}createModalizer(t,r,n){const a=new wB(this._tabster,t,this._onModalizerDispose,r,n,this.activeElements),s=a.id,c=r.id;this._modalizers[s]=a;let u=this._parts[c];u||(u=this._parts[c]={}),u[s]=a;const f=this._tabster.focusedElement.getFocusedElement()??null;return t!==f&&fe.nodeContains(t,f)&&(c!==this.activeId?this.setActive(a):a.makeActive(!0)),a}_onModalizerDispose=t=>{const r=t.id,n=t.userId,a=this._parts[n];if(delete this._modalizers[r],a&&(delete a[r],Object.keys(a).length===0)){delete this._parts[n];const s=this._activationHistory,c=[];let u;for(let f=s.length;f--;){const p=s[f];p!==n&&p!==u&&(u=p,(p||c.length>0)&&c.unshift(p))}if(this._activationHistory=c,this.activeId===n){const f=c[0],p=f?Object.values(this._parts[f])[0]:void 0;this.setActive(p)}}};_onKeyDown=t=>{if(t.key!==zt.Escape)return;const r=this._tabster,n=r.focusedElement.getFocusedElement();if(n){const a=it.getTabsterContext(r,n),s=a?.modalizer;if(a&&!a.groupper&&s?.isActive()&&!a.ignoreKeydown(t)){const c=s.userId;if(c){const u=this._parts[c];if(u){const f=Object.keys(u).map(p=>{const g=u[p],v=g.getElement();let x;return v&&(x=Ht(r,v)?.groupper),g&&v&&x?{el:v,focusedSince:g.focused(!0)}:{focusedSince:0}}).filter(p=>p.focusedSince>0).sort((p,g)=>p.focusedSince>g.focusedSince?-1:p.focusedSince<g.focusedSince?1:0);if(f.length){const p=f[0].el;p&&r.groupper?.handleKeyPress(p,t,!0)}}}}}};isAugmented(t){return this._augMap.has(t)}hiddenUpdate(){this._hiddenUpdateTimer||(this._hiddenUpdateTimer=this._win().setTimeout(()=>{delete this._hiddenUpdateTimer,this._hiddenUpdate()},250))}setActive(t){const r=t?.userId,n=this.activeId;if(n===r)return;if(this.activeId=r,n){const s=this._parts[n];if(s)for(const c of Object.keys(s))s[c].makeActive(!1)}if(r){const s=this._parts[r];if(s)for(const c of Object.keys(s))s[c].makeActive(!0)}this.currentIsOthersAccessible=t?.getProps().isOthersAccessible,this.hiddenUpdate();const a=this._activationHistory;a[0]!==r&&(r!==void 0||a.length>0)&&a.unshift(r)}focus(t,r,n){const a=this._tabster,c=it.getTabsterContext(a,t)?.modalizer;if(c){this.setActive(c);const u=c.getProps(),f=c.getElement();if(f){if(r===void 0&&(r=u.isNoFocusFirst),!r&&a.keyboardNavigation.isNavigatingWithKeyboard()&&a.focusedElement.focusFirst({container:f})||(n===void 0&&(n=u.isNoFocusDefault),!n&&a.focusedElement.focusDefault(f)))return!0;a.focusedElement.resetFocus(f)}}return!1}activate(t){const r=t?it.getTabsterContext(this._tabster,t)?.modalizer:void 0;return!t||r?(this.setActive(r),!0):!1}acceptElement(t,r){const n=r.modalizerUserId,a=r.currentCtx?.modalizer;if(n)for(const c of this.activeElements){const u=c.get();if(u&&(fe.nodeContains(t,u)||u===t))return NodeFilter.FILTER_SKIP}const s=n===a?.userId||!n&&a?.getProps().isAlwaysAccessible?void 0:NodeFilter.FILTER_SKIP;return s!==void 0&&(r.skippedFocusable=!0),s}_hiddenUpdate(){const t=this._tabster,r=t.getWindow().document.body,n=this.activeId,a=this._parts,s=[],c=[],u=this._alwaysAccessibleSelector,f=u?Array.from(fe.querySelectorAll(r,u)):[],p=[];for(const B of Object.keys(a)){const z=a[B];for(const P of Object.keys(z)){const j=z[P],N=j.getElement(),C=j.getProps().isAlwaysAccessible;N&&(B===n?(p.push(N),this.currentIsOthersAccessible||s.push(N)):C?f.push(N):c.push(N))}}const g=this._augMap,v=s.length>0?[...s,...f]:void 0,x=[],w=new WeakMap,S=(B,z)=>{const P=B.tagName;if(P==="SCRIPT"||P==="STYLE")return;let j=!1;g.has(B)?z?j=!0:(g.delete(B),Du(t,B,Vu)):z&&!this._accessibleCheck?.(B,p)&&Du(t,B,Vu,"true")&&(g.set(B,!0),j=!0),j&&(x.push(new fr(B)),w.set(B,!0))},k=B=>{for(let z=fe.getFirstElementChild(B);z;z=fe.getNextElementSibling(z)){let P=!1,j=!1,N=!1;if(v){const M=t.getParent(z);for(const C of v){if(z===C){P=!0;break}if(fe.nodeContains(z,C)){j=!0;break}else fe.nodeContains(C,M)&&(N=!0)}j||z.__tabsterElementFlags?.noDirectAriaHidden?k(z):!P&&!N&&S(z,!0)}else S(z,!1)}};v||f.forEach(B=>S(B,!1)),c.forEach(B=>S(B,!0)),r&&k(r),this._aug?.map(B=>B.get()).forEach(B=>{B&&!w.get(B)&&S(B,!1)}),this._aug=x,this._augMap=w}_onFocus=(t,r)=>{const n=this._tabster,a=t&&it.getTabsterContext(n,t);if(!a||!t)return;const s=this._augMap;for(let p=t;p;p=fe.getParentElement(p))s.has(p)&&(s.delete(p),Du(n,p,Vu));let c=a.modalizer;const u=Ht(n,t),f=u?.modalizer;if(f&&(f.focused(),f.userId===this.activeId&&u.groupper)){const p=n.getParent(t),g=p&&it.getTabsterContext(n,p)?.modalizer;if(g)c=g;else{this.setActive(void 0);return}}if(c?.focused(),c?.userId===this.activeId){this.currentIsOthersAccessible=c?.getProps().isOthersAccessible;return}if(r.isFocusedProgrammatically||this.currentIsOthersAccessible||c?.getProps().isAlwaysAccessible)this.setActive(c);else{const p=this._win();p.clearTimeout(this._restoreModalizerFocusTimer),this._restoreModalizerFocusTimer=p.setTimeout(()=>this._restoreModalizerFocus(t),100)}};_restoreModalizerFocus(t){const r=t?.ownerDocument;if(!t||!r)return;const n=this._tabster.focusedElement.getFocusedElement(),a=n&&it.getTabsterContext(this._tabster,n)?.modalizer;if(!n||n&&a?.userId===this.activeId)return;const s=this._tabster,c=it.getTabsterContext(s,t),u=c?.modalizer,f=this.activeId;if(!u&&!f||u&&f===u.userId)return;const p=c?.root.getElement();if(p){let g=s.focusable.findFirst({container:p,useActiveModalizer:!0});if(g){if(t.compareDocumentPosition(g)&document.DOCUMENT_POSITION_PRECEDING&&(g=s.focusable.findLast({container:p,useActiveModalizer:!0}),!g))throw new Error("Something went wrong.");s.focusedElement.focus(g);return}}t.blur()}}function ig(e,t,r){const n=e.core;if(!n.modalizer){const a=new kB(n,t,r);n.modalizer=a,n.attrHandlers.set("modalizer",(s,c,u,f,p)=>c?u.id&&f?.id!==u.id?(c.dispose(),a.createModalizer(s,u,p)):(c.setProps(u),c):a.createModalizer(s,u,p))}return n.modalizer}const SB=["input","textarea","*[contenteditable]"].join(", ");class BB extends sa{_tabster;_getMemorized;constructor(t,r,n,a){super(r,t,Hu.Mover,a),this._tabster=r,this._getMemorized=n,this._setHandlers(this._onFocusDummyInput)}_onFocusDummyInput=t=>{const r=this._element.get(),n=t.input;if(r&&n){const a=it.getTabsterContext(this._tabster,r);let s;a&&(s=yt.findNextTabbable(this._tabster,a,void 0,n,void 0,!t.isFirst,!0)?.element);const c=this._getMemorized()?.get();c&&this._tabster.focusable.isFocusable(c)&&(s=c),s&&Zr(s)}}}const Wu=1,ag=2,sg=3;class zB extends Os{_unobserve;_intersectionObserver;_setCurrentTimer;_current;_prevCurrent;_visible={};_fullyVisible;_win;_onDispose;_allElements;_updateQueue;_updateTimer;visibilityTolerance;dummyManager;constructor(t,r,n,a,s){super(t,r,a),this._win=t.getWindow,this.visibilityTolerance=a.visibilityTolerance??.8,(this._props.trackState||this._props.visibilityAware)&&(this._intersectionObserver=new IntersectionObserver(this._onIntersection,{threshold:[0,.25,.5,.75,1]}),this._observeState()),this._onDispose=n;const c=()=>a.memorizeCurrent?this._current:void 0;t.controlTab||(this.dummyManager=new BB(this._element,t,c,s))}dispose(){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 t=this._win();this._setCurrentTimer&&(t.clearTimeout(this._setCurrentTimer),delete this._setCurrentTimer),this._updateTimer&&(t.clearTimeout(this._updateTimer),delete this._updateTimer),this.dummyManager?.dispose(),delete this.dummyManager}setCurrent(t){t?this._current=new fr(t):this._current=void 0,(this._props.trackState||this._props.visibilityAware)&&!this._setCurrentTimer&&(this._setCurrentTimer=this._win().setTimeout(()=>{delete this._setCurrentTimer;const r=[];this._current!==this._prevCurrent&&(r.push(this._current),r.push(this._prevCurrent),this._prevCurrent=this._current);for(const n of r){const a=n?.get();if(a&&this._allElements?.get(a)===this){const s=this._props;if(a&&(s.visibilityAware!==void 0||s.trackState)){const c=this.getState(a);c&&a.dispatchEvent(new Uh(c))}}}}))}getCurrent(){return this._current?.get()||null}findNextTabbable(t,r,n,a){const s=this.getElement(),c=s&&la(t)===s;if(!s)return null;let u=null,f=!1,p;if(this._props.tabbable||c||t&&!fe.nodeContains(s,t)){const g={currentElement:t,referenceElement:r,container:s,ignoreAccessibility:a,useActiveModalizer:!0},v={};u=this._tabster.focusable[n?"findPrev":"findNext"](g,v),f=!!v.outOfDOMOrder,p=v.uncontrolled}return{element:u,uncontrolled:p,outOfDOMOrder:f}}acceptElement(t,r){if(!yt.isTabbing)return r.currentCtx?.excludedFromMover?NodeFilter.FILTER_REJECT:void 0;const{memorizeCurrent:n,visibilityAware:a,hasDefault:s=!0}=this._props,c=this.getElement();if(c&&(n||a||s)&&(!fe.nodeContains(c,r.from)||la(r.from)===c)){let u;if(n){const f=this._current?.get();f&&r.acceptCondition(f)&&(u=f)}if(!u&&s&&(u=this._tabster.focusable.findDefault({container:c,useActiveModalizer:!0})),!u&&a&&(u=this._tabster.focusable.findElement({container:c,useActiveModalizer:!0,isBackward:r.isBackward,acceptCondition:f=>{const p=qs(this._win,f),g=this._visible[p];return c!==f&&!!this._allElements?.get(f)&&r.acceptCondition(f)&&(g===xo.Visible||g===xo.PartiallyVisible&&(a===xo.PartiallyVisible||!this._fullyVisible))}})),u)return r.found=!0,r.foundElement=u,r.rejectElementsFrom=c,r.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}}_onIntersection=t=>{for(const r of t){const n=r.target,a=qs(this._win,n);let s,c=this._fullyVisible;if(r.intersectionRatio>=.25?(s=r.intersectionRatio>=.75?xo.Visible:xo.PartiallyVisible,s===xo.Visible&&(c=a)):s=xo.Invisible,this._visible[a]!==s){s===void 0?(delete this._visible[a],c===a&&delete this._fullyVisible):(this._visible[a]=s,this._fullyVisible=c);const u=this.getState(n);u&&n.dispatchEvent(new Uh(u))}}};_observeState(){const t=this.getElement();if(this._unobserve||!t||typeof MutationObserver>"u")return;const r=this._win(),n=this._allElements=new WeakMap,a=this._tabster.focusable;let s=this._updateQueue=[];const c=fe.createMutationObserver(w=>{for(const S of w){const k=S.target,B=S.removedNodes,z=S.addedNodes;if(S.type==="attributes")S.attributeName==="tabindex"&&s.push({element:k,type:ag});else{for(let P=0;P<B.length;P++)s.push({element:B[P],type:sg});for(let P=0;P<z.length;P++)s.push({element:z[P],type:Wu})}}v()}),u=(w,S)=>{const k=n.get(w);k&&S&&(this._intersectionObserver?.unobserve(w),n.delete(w)),!k&&!S&&(n.set(w,this),this._intersectionObserver?.observe(w))},f=w=>{const S=a.isFocusable(w);n.get(w)?S||u(w,!0):S&&u(w)},p=w=>{const{mover:S}=x(w);if(S&&S!==this)if(S.getElement()===w&&a.isFocusable(w))u(w);else return;const k=Au(r.document,w,B=>{const{mover:z,groupper:P}=x(B);if(z&&z!==this)return NodeFilter.FILTER_REJECT;const j=P?.getFirst(!0);return P&&P.getElement()!==B&&j&&j!==B?NodeFilter.FILTER_REJECT:(a.isFocusable(B)&&u(B),NodeFilter.FILTER_SKIP)});if(k)for(k.currentNode=w;k.nextNode(););},g=w=>{n.get(w)&&u(w,!0);for(let k=fe.getFirstElementChild(w);k;k=fe.getNextElementSibling(k))g(k)},v=()=>{!this._updateTimer&&s.length&&(this._updateTimer=r.setTimeout(()=>{delete this._updateTimer;for(const{element:w,type:S}of s)switch(S){case ag:f(w);break;case Wu:p(w);break;case sg:g(w);break}s=this._updateQueue=[]},0))},x=w=>{const S={};for(let k=w;k;k=fe.getParentElement(k)){const B=Ht(this._tabster,k);if(B&&(B.groupper&&!S.groupper&&(S.groupper=B.groupper),B.mover)){S.mover=B.mover;break}}return S};s.push({element:t,type:Wu}),v(),c.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),this._unobserve=()=>{c.disconnect()}}getState(t){const r=qs(this._win,t);if(r in this._visible){const n=this._visible[r]||xo.Invisible;return{isCurrent:this._current?this._current.get()===t:void 0,visibility:n}}}}function jB(e,t,r,n,a,s,c,u){const f=r<a?a-r:c<e?e-c:0,p=n<s?s-n:u<t?t-u:0;return f===0?p:p===0?f:Math.sqrt(f*f+p*p)}class _B{_tabster;_win;_movers;_ignoredInputTimer;_ignoredInputResolve;constructor(t,r){this._tabster=t,this._win=r,this._movers={},t.queueInit(this._init)}_init=()=>{const t=this._win();t.addEventListener("keydown",this._onKeyDown,!0),t.addEventListener(Wh,this._onMoveFocus),t.addEventListener($h,this._onMemorizedElement),this._tabster.focusedElement.subscribe(this._onFocus)};dispose(){const t=this._win();this._tabster.focusedElement.unsubscribe(this._onFocus),this._ignoredInputResolve?.(!1),this._ignoredInputTimer&&(t.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),t.removeEventListener("keydown",this._onKeyDown,!0),t.removeEventListener(Wh,this._onMoveFocus),t.removeEventListener($h,this._onMemorizedElement),Object.keys(this._movers).forEach(r=>{this._movers[r]&&(this._movers[r].dispose(),delete this._movers[r])})}createMover(t,r,n){const a=new zB(this._tabster,t,this._onMoverDispose,r,n);return this._movers[a.id]=a,a}_onMoverDispose=t=>{delete this._movers[t.id]};_onFocus=t=>{let r=t,n=t;for(let a=fe.getParentElement(t);a;a=fe.getParentElement(a)){const s=Ht(this._tabster,a)?.mover;s&&(s.setCurrent(n),r=void 0),!r&&this._tabster.focusable.isFocusable(a)&&(r=n=a)}};moveFocus(t,r){return this._moveFocus(t,r)}_moveFocus(t,r,n){const a=this._tabster,s=it.getTabsterContext(a,t,{checkRtl:!0});if(!s||!s.mover||s.excludedFromMover||n&&s.ignoreKeydown(n))return null;const c=s.mover,u=c.getElement();if(s.groupperBeforeMover){const C=s.groupper;if(C&&!C.isActive(!0)){for(let I=fe.getParentElement(C.getElement());I&&I!==u;I=fe.getParentElement(I))if(Ht(a,I)?.groupper?.isActive(!0))return null}else return null}if(!u)return null;const f=a.focusable,p=c.getProps(),g=p.direction||jr.Both,v=g===jr.Both,x=v||g===jr.Vertical,w=v||g===jr.Horizontal,S=g===jr.GridLinear,k=S||g===jr.Grid,B=p.cyclic;let z,P,j,N=0,M=0;if(k&&(j=t.getBoundingClientRect(),N=Math.ceil(j.left),M=Math.floor(j.right)),s.rtl&&(r===ht.ArrowRight?r=ht.ArrowLeft:r===ht.ArrowLeft&&(r=ht.ArrowRight)),r===ht.ArrowDown&&x||r===ht.ArrowRight&&(w||k))if(z=f.findNext({currentElement:t,container:u,useActiveModalizer:!0}),z&&k){const C=Math.ceil(z.getBoundingClientRect().left);!S&&M>C&&(z=void 0)}else!z&&B&&(z=f.findFirst({container:u,useActiveModalizer:!0}));else if(r===ht.ArrowUp&&x||r===ht.ArrowLeft&&(w||k))if(z=f.findPrev({currentElement:t,container:u,useActiveModalizer:!0}),z&&k){const C=Math.floor(z.getBoundingClientRect().right);!S&&C>N&&(z=void 0)}else!z&&B&&(z=f.findLast({container:u,useActiveModalizer:!0}));else if(r===ht.Home)k?f.findElement({container:u,currentElement:t,useActiveModalizer:!0,isBackward:!0,acceptCondition:C=>{if(!f.isFocusable(C))return!1;const I=Math.ceil(C.getBoundingClientRect().left??0);return C!==t&&N<=I?!0:(z=C,!1)}}):z=f.findFirst({container:u,useActiveModalizer:!0});else if(r===ht.End)k?f.findElement({container:u,currentElement:t,useActiveModalizer:!0,acceptCondition:C=>{if(!f.isFocusable(C))return!1;const I=Math.ceil(C.getBoundingClientRect().left??0);return C!==t&&N>=I?!0:(z=C,!1)}}):z=f.findLast({container:u,useActiveModalizer:!0});else if(r===ht.PageUp){if(f.findElement({currentElement:t,container:u,useActiveModalizer:!0,isBackward:!0,acceptCondition:C=>f.isFocusable(C)?Kh(this._win,C,c.visibilityTolerance)?(z=C,!1):!0:!1}),k&&z){const C=Math.ceil(z.getBoundingClientRect().left);f.findElement({currentElement:z,container:u,useActiveModalizer:!0,acceptCondition:I=>{if(!f.isFocusable(I))return!1;const A=Math.ceil(I.getBoundingClientRect().left);return N<A||C>=A?!0:(z=I,!1)}})}P=!1}else if(r===ht.PageDown){if(f.findElement({currentElement:t,container:u,useActiveModalizer:!0,acceptCondition:C=>f.isFocusable(C)?Kh(this._win,C,c.visibilityTolerance)?(z=C,!1):!0:!1}),k&&z){const C=Math.ceil(z.getBoundingClientRect().left);f.findElement({currentElement:z,container:u,useActiveModalizer:!0,isBackward:!0,acceptCondition:I=>{if(!f.isFocusable(I))return!1;const A=Math.ceil(I.getBoundingClientRect().left);return N>A||C<=A?!0:(z=I,!1)}})}P=!0}else if(k){const C=r===ht.ArrowUp,I=N,A=Math.ceil(j.top),ae=M,de=Math.floor(j.bottom);let ee,te,W=0;f.findAll({container:u,currentElement:t,isBackward:C,onElement:Y=>{const X=Y.getBoundingClientRect(),O=Math.ceil(X.left),Z=Math.ceil(X.top),q=Math.floor(X.right),G=Math.floor(X.bottom);if(C&&A<G||!C&&de>Z)return!0;const K=Math.ceil(Math.min(ae,q))-Math.floor(Math.max(I,O)),F=Math.ceil(Math.min(ae-I,q-O));if(K>0&&F>=K){const V=K/F;V>W&&(ee=Y,W=V)}else if(W===0){const V=jB(I,A,ae,de,O,Z,q,G);(te===void 0||V<te)&&(te=V,ee=Y)}else if(W>0)return!1;return!0}}),z=ee}return z&&(!n||n&&u.dispatchEvent(new Kn({by:"mover",owner:u,next:z,relatedEvent:n})))?(P!==void 0&&oB(this._win,z,P),n&&(n.preventDefault(),n.stopImmediatePropagation()),Zr(z),z):null}_onKeyDown=async t=>{if(this._ignoredInputTimer&&(this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),this._ignoredInputResolve?.(!1),t.ctrlKey||t.altKey||t.shiftKey||t.metaKey)return;const r=t.key;let n;if(r===zt.ArrowDown?n=ht.ArrowDown:r===zt.ArrowRight?n=ht.ArrowRight:r===zt.ArrowUp?n=ht.ArrowUp:r===zt.ArrowLeft?n=ht.ArrowLeft:r===zt.PageDown?n=ht.PageDown:r===zt.PageUp?n=ht.PageUp:r===zt.Home?n=ht.Home:r===zt.End&&(n=ht.End),!n)return;const a=this._tabster.focusedElement.getFocusedElement();!a||await this._isIgnoredInput(a,r)||this._moveFocus(a,n,t)};_onMoveFocus=t=>{const r=t.composedPath()[0],n=t.detail?.key;r&&n!==void 0&&!t.defaultPrevented&&(this._moveFocus(r,n),t.stopImmediatePropagation())};_onMemorizedElement=t=>{const r=t.composedPath()[0];let n=t.detail?.memorizedElement;if(r){const s=it.getTabsterContext(this._tabster,r)?.mover;s&&(n&&!fe.nodeContains(s.getElement(),n)&&(n=void 0),s.setCurrent(n),t.stopImmediatePropagation())}};async _isIgnoredInput(t,r){if(t.getAttribute("aria-expanded")==="true"&&(t.hasAttribute("aria-activedescendant")||t.getAttribute("role")==="combobox"))return!0;if(eg(t,SB)){let n=0,a=0,s=0,c;if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"){const u=t.type;if(s=(t.value||"").length,u==="email"||u==="number"){if(s){const p=fe.getSelection(t);if(p){const g=p.toString().length,v=r===zt.ArrowLeft||r===zt.ArrowUp;if(p.modify("extend",v?"backward":"forward","character"),g!==p.toString().length)return p.modify("extend",v?"forward":"backward","character"),!0;s=0}}}else{const p=t.selectionStart;if(p===null)return u==="hidden";n=p||0,a=t.selectionEnd||0}}else t.contentEditable==="true"&&(c=new Promise(u=>{this._ignoredInputResolve=w=>{delete this._ignoredInputResolve,u(w)};const f=this._win();this._ignoredInputTimer&&f.clearTimeout(this._ignoredInputTimer);const{anchorNode:p,focusNode:g,anchorOffset:v,focusOffset:x}=fe.getSelection(t)||{};this._ignoredInputTimer=f.setTimeout(()=>{delete this._ignoredInputTimer;const{anchorNode:w,focusNode:S,anchorOffset:k,focusOffset:B}=fe.getSelection(t)||{};if(w!==p||S!==g||k!==v||B!==x){this._ignoredInputResolve?.(!1);return}if(n=k||0,a=B||0,s=t.textContent?.length||0,w&&S&&fe.nodeContains(t,w)&&fe.nodeContains(t,S)&&w!==t){let z=!1;const P=j=>{if(j===w)z=!0;else if(j===S)return!0;const N=j.textContent;if(N&&!fe.getFirstChild(j)){const C=N.length;z?S!==w&&(a+=C):(n+=C,a+=C)}let M=!1;for(let C=fe.getFirstChild(j);C&&!M;C=C.nextSibling)M=P(C);return M};P(t)}this._ignoredInputResolve?.(!0)},0)}));if(c&&!await c||n!==a||n>0&&(r===zt.ArrowLeft||r===zt.ArrowUp||r===zt.Home)||n<s&&(r===zt.ArrowRight||r===zt.ArrowDown||r===zt.End))return!0}return!1}}function CB(e){const t=e.core;if(!t.mover){const r=new _B(t,t.getWindow);t.mover=r,t.attrHandlers.set("mover",(n,a,s,c,u)=>a?(a.setProps(s),a):r.createMover(n,s,u))}return t.mover}class NB extends Os{_hasFocus=!1;constructor(t,r,n){if(super(t,r,n),this._props.type===un.Source){const a=this._element?.get();a?.addEventListener("focusout",this._onFocusOut),a?.addEventListener("focusin",this._onFocusIn),this._hasFocus=fe.nodeContains(a,a&&fe.getActiveElement(a.ownerDocument))}}dispose(){if(this._props.type===un.Source){const t=this._element?.get();t?.removeEventListener("focusout",this._onFocusOut),t?.removeEventListener("focusin",this._onFocusIn),this._hasFocus&&this._tabster.getWindow().document.body.dispatchEvent(new Gh)}}_onFocusOut=t=>{const r=this._element?.get();r&&t.relatedTarget===null&&r.dispatchEvent(new Gh),r&&!fe.nodeContains(r,t.relatedTarget)&&(this._hasFocus=!1)};_onFocusIn=()=>{this._hasFocus=!0}}class $u{static DEPTH=10;_stack=[];_getWindow;constructor(t){this._getWindow=t}push(t){this._stack[this._stack.length-1]?.get()!==t&&(this._stack.length>$u.DEPTH&&this._stack.shift(),this._stack.push(new fr(t)))}pop(t=()=>!0){const r=this._getWindow().document;for(let n=this._stack.length-1;n>=0;n--){const a=this._stack.pop()?.get();if(a&&fe.nodeContains(r.body,fe.getParentElement(a))&&t(a))return a}}}class TB{_tabster;_history;_keyboardNavState;_focusedElementState;_getWindow;constructor(t){this._tabster=t,this._getWindow=t.getWindow,this._getWindow().addEventListener(Fu,this._onRestoreFocus),this._history=new $u(this._getWindow),this._keyboardNavState=t.keyboardNavigation,this._focusedElementState=t.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}dispose(){const t=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),this._focusedElementState.cancelAsyncFocus(Xn.Restorer),t.removeEventListener(Fu,this._onRestoreFocus)}_onRestoreFocus=t=>{this._focusedElementState.cancelAsyncFocus(Xn.Restorer);const r=t.composedPath()[0];if(r){const n=Ht(this._tabster,r)?.restorer?.getProps().id;this._focusedElementState.requestAsyncFocus(Xn.Restorer,()=>this._restoreFocus(r,n),0)}};_onFocusIn=t=>{!t||Ht(this._tabster,t)?.restorer?.getProps().type!==un.Target||this._history.push(t)};_restoreFocus=(t,r)=>{const n=this._getWindow().document;if(fe.getActiveElement(n)!==n.body||!this._keyboardNavState.isNavigatingWithKeyboard()&&fe.nodeContains(n.body,t))return;const a=s=>{const c=Ht(this._tabster,s)?.restorer?.getProps();return c?c.id:null};this._history.pop(s=>r===a(s))?.focus()};createRestorer(t,r){const n=new NB(this._tabster,t,r);return r.type===un.Target&&fe.getActiveElement(t.ownerDocument)===t&&this._history.push(t),n}}function lg(e){const t=e.core;if(!t.restorer){const r=new TB(t);t.restorer=r,t.attrHandlers.set("restorer",(n,a,s)=>a?(a.setProps(s),a):r.createRestorer(n,s))}return t.restorer}class PB{keyboardNavigation;focusedElement;focusable;root;uncontrolled;core;constructor(t){this.keyboardNavigation=t.keyboardNavigation,this.focusedElement=t.focusedElement,this.focusable=t.focusable,this.root=t.root,this.uncontrolled=t.uncontrolled,this.core=t}}class RB{_storage;_unobserve;_win;_forgetMemorizedTimer;_forgetMemorizedElements=[];_wrappers=new Set;_initTimer;_initQueue=[];_version="8.8.0";_noop=!1;controlTab;rootDummyInputs;attrHandlers=new Map;keyboardNavigation;focusedElement;focusable;root;uncontrolled;internal;_dummyObserver;groupper;mover;outline;deloser;modalizer;observedElement;crossOrigin;restorer;getParent;constructor(t,r){this._storage=new WeakMap,this._win=t;const n=this.getWindow;r?.DOMAPI&&JS({...r.DOMAPI}),this.keyboardNavigation=new mB(n),this.focusedElement=new yt(this,n),this.focusable=new hB(this),this.root=new it(this,r?.autoRoot),this.uncontrolled=new bB(r?.checkUncontrolledCompletely||r?.checkUncontrolledTrappingFocus),this.controlTab=r?.controlTab??!0,this.rootDummyInputs=!!r?.rootDummyInputs,this._dummyObserver=new cB(n),this.getParent=r?.getParent??fe.getParentNode,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:a=>{if(!this._unobserve){const s=n().document;this._unobserve=vB(s,this,Oh,a)}}},this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(t){t&&(this.getParent=t.getParent??this.getParent)}createTabster(t,r){const n=new PB(this);return t||this._wrappers.add(n),this._mergeProps(r),n}disposeTabster(t,r){r?this._wrappers.clear():this._wrappers.delete(t),this._wrappers.size===0&&this.dispose()}dispose(){this.internal.stopObserver();const t=this._win;t?.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],t&&this._forgetMemorizedTimer&&(t.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),this.outline?.dispose(),this.crossOrigin?.dispose(),this.deloser?.dispose(),this.groupper?.dispose(),this.mover?.dispose(),this.modalizer?.dispose(),this.observedElement?.dispose(),this.restorer?.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),this.attrHandlers.clear(),Zh(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),t&&(tB(t),delete t.__tabsterInstance,delete this._win)}storageEntry(t,r){const n=this._storage;let a=n.get(t);return a?r===!1&&Object.keys(a).length===0&&n.delete(t):r===!0&&(a={},n.set(t,a)),a}getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win};forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let t=this._forgetMemorizedElements.shift();t;t=this._forgetMemorizedElements.shift())Zh(this.getWindow,t),yt.forgetMemorized(this.focusedElement,t)},0)))}queueInit(t){this._win&&(this._initQueue.push(t),this._initTimer||(this._initTimer=this._win?.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const t=this._initQueue;this._initQueue=[],t.forEach(r=>r())}}function MB(e,t){let r=IB(e);return r?r.createTabster(!1,t):(r=new RB(e,t),e.__tabsterInstance=r,r.createTabster())}function EB(e,t){e.core.disposeTabster(e,t)}function IB(e){return e.__tabsterInstance}const FB=e=>e;function AB(e){const t=e?.defaultView||void 0,r=t?.__tabsterShadowDOMAPI;if(t)return MB(t,{autoRoot:{},controlTab:!1,getParent:Eh,checkUncontrolledCompletely:n=>{var a;return((a=n.firstElementChild)===null||a===void 0?void 0:a.hasAttribute("data-is-focus-trap-zone-bumper"))===!0||void 0},DOMAPI:r})}function Yn(e=FB){const{targetDocument:t}=He(),r=y.useRef(null);return bt(()=>{const n=AB(t);if(n)return r.current=e(n),()=>{EB(n),r.current=null}},[t,e]),r}const dn=e=>{Yn();const t=Lu(e,!0);return y.useMemo(()=>({[zr]:t}),[t])},Ls=(e={})=>{const{circular:t,axis:r,memorizeCurrent:n=!0,tabbable:a,ignoreDefaultKeydown:s,unstable_hasDefault:c}=e;return Yn(CB),dn({mover:{cyclic:!!t,direction:DB(r??"vertical"),memorizeCurrent:n,tabbable:a,hasDefault:c},...s&&{focusable:{ignoreKeydown:s}}})};function DB(e){switch(e){case"horizontal":return jr.Horizontal;case"grid":return jr.Grid;case"grid-linear":return jr.GridLinear;case"both":return jr.Both;default:return jr.Vertical}}const ca=()=>{const e=Yn(),{targetDocument:t}=He(),r=y.useCallback((u,f)=>{var p;return u&&((p=e.current)===null||p===void 0?void 0:p.focusable.findAll({container:u,acceptCondition:f}))||[]},[e]),n=y.useCallback(u=>{var f;return u&&((f=e.current)===null||f===void 0?void 0:f.focusable.findFirst({container:u}))},[e]),a=y.useCallback(u=>{var f;return u&&((f=e.current)===null||f===void 0?void 0:f.focusable.findLast({container:u}))},[e]),s=y.useCallback((u,f={})=>{if(!e.current||!t||!u)return null;const{container:p=t.body}=f;return e.current.focusable.findNext({currentElement:u,container:p})},[e,t]),c=y.useCallback((u,f={})=>{if(!e.current||!t||!u)return null;const{container:p=t.body}=f;return e.current.focusable.findPrev({currentElement:u,container:p})},[e,t]);return{findAllFocusable:r,findFirstFocusable:n,findLastFocusable:a,findNextFocusable:s,findPrevFocusable:c}},cg="data-fui-focus-visible",ug="data-fui-focus-within";function qB(e,t){if(dg(e))return()=>{};const r={current:void 0},n=Fs(t);function a(f){n.isNavigatingWithKeyboard()&&Br(f)&&(r.current=f,f.setAttribute(cg,""))}function s(){r.current&&(r.current.removeAttribute(cg),r.current=void 0)}n.subscribe(f=>{f?a(t.document.activeElement):s()});const c=f=>{s();const p=f.composedPath()[0];a(p)},u=f=>{(!f.relatedTarget||Br(f.relatedTarget)&&!e.contains(f.relatedTarget))&&s()};return e.addEventListener(rr,c),e.addEventListener("focusout",u),e.focusVisible=!0,e.contains(t.document.activeElement)&&a(t.document.activeElement),()=>{s(),e.removeEventListener(rr,c),e.removeEventListener("focusout",u),e.focusVisible=void 0,As(n)}}function dg(e){return e?e.focusVisible?!0:dg(e?.parentElement):!1}function fg(e={}){const t=He(),r=y.useRef(null);var n;const a=(n=e.targetDocument)!==null&&n!==void 0?n:t.targetDocument;return y.useEffect(()=>{if(a?.defaultView&&r.current)return qB(r.current,a.defaultView)},[r,a]),r}function OB(e,t){const r=Fs(t);r.subscribe(s=>{s||pg(e)});const n=s=>{r.isNavigatingWithKeyboard()&&hg(s.target)&&HB(e)},a=s=>{(!s.relatedTarget||hg(s.relatedTarget)&&!e.contains(s.relatedTarget))&&pg(e)};return e.addEventListener(rr,n),e.addEventListener("focusout",a),()=>{e.removeEventListener(rr,n),e.removeEventListener("focusout",a),As(r)}}function HB(e){e.setAttribute(ug,"")}function pg(e){e.removeAttribute(ug)}function hg(e){return e?!!(e&&typeof e=="object"&&"classList"in e&&"contains"in e):!1}function ua(){const{targetDocument:e}=He(),t=y.useRef(null);return y.useEffect(()=>{if(e?.defaultView&&t.current)return OB(t.current,e.defaultView)},[t,e]),t}function Uu(){const{targetDocument:e}=He(),t=y.useRef(null);return y.useEffect(()=>{const r=e?.defaultView;if(r){const n=Fs(r);return t.current=n,()=>{As(n),t.current=null}}},[e]),t}function gg(e){const t=Uu(),r=ce(e);y.useEffect(()=>{const n=t.current;if(n){const a=s=>{r(s)};return n.subscribe(a),a(n.isNavigatingWithKeyboard()),()=>{n.unsubscribe(a)}}},[t,r])}const LB="data-tabster-never-hide",VB=e=>e.hasAttribute(LB);function WB(e){ig(e,void 0,VB),lg(e)}const Vs=(e={})=>{const{trapFocus:t,alwaysFocusable:r,legacyTrapFocus:n}=e;Yn(WB);const a=pt("modal-",e.id),s=dn({restorer:{type:un.Source},...t&&{modalizer:{id:a,isOthersAccessible:!t,isAlwaysAccessible:r,isTrapped:n&&t}}}),c=dn({restorer:{type:un.Target}});return{modalAttributes:s,triggerAttributes:c}},mg=(...e)=>{const t=[];let r="";for(const n of e){const a=n?.[zr];a&&(t.push(a),r+=a+$B)}return y.useMemo(()=>({[zr]:UB(t)}),[r])},$B="\0",UB=e=>{if(e.length!==0)return e.length===1?e[0]:JSON.stringify(Object.assign({},...e.map(GB)))},GB=e=>{try{return JSON.parse(e)}catch{return{}}};function XB(){return Yn(lg),Lu({restorer:{type:un.Source}})}function KB(){const e=Uu();return y.useCallback(()=>{var t,r;return(r=(t=e.current)===null||t===void 0?void 0:t.isNavigatingWithKeyboard())!==null&&r!==void 0?r:!1},[e])}function YB(){const e=Uu();return y.useCallback(t=>{var r;(r=e.current)===null||r===void 0||r.setVal(t)},[e])}function QB(){const e=Yn(ig),[t]=sn();return y.useCallback(n=>{t(()=>{var a;(a=e.current)===null||a===void 0||a.activate(n)},0)},[e,t])}const $={2:"#050505",4:"#0a0a0a",6:"#0f0f0f",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",99:"#fcfcfc"},It={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)"},pr={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)"},ZB={50:"rgba(26, 26, 26, 0.5)"},JB={70:"rgba(31, 31, 31, 0.7)"},vg={50:"rgba(36, 36, 36, 0.5)",80:"rgba(36, 36, 36, 0.8)"},je="#ffffff",Ws="#000000",e3={shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"},bg={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},t3={shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},r3={shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"},o3={shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},n3={shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"},i3={shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},a3={shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"},s3={shade50:"#282400",shade40:"#4c4400",shade30:"#817400",shade20:"#c0ad00",shade10:"#e4cc00",primary:"#fde300",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},l3={shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},c3={shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},u3={shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"},d3={shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},f3={shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},p3={shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},yg={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},h3={shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},g3={shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},m3={shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"},v3={shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"},b3={shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},y3={shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"},x3={shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},w3={shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},k3={shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},S3={shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"},B3={shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},z3={shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},j3={shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},_3={shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"},C3={shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"},N3={shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},T3={shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},P3={shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"},R3={shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},M3={shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"},Xe={red:t3,green:yg,darkOrange:r3,yellow:s3,berry:z3,lightGreen:p3,marigold:a3},wo={darkRed:e3,cranberry:bg,pumpkin:o3,peach:i3,gold:l3,brass:c3,brown:u3,forest:d3,seafoam:f3,darkGreen:h3,lightTeal:g3,teal:m3,steel:v3,blue:b3,royalBlue:y3,cornflower:x3,navy:w3,lavender:k3,purple:S3,grape:B3,lilac:j3,pink:_3,magenta:C3,plum:N3,beige:T3,mink:P3,platinum:R3,anchor:M3},$e={cranberry:bg,green:yg,orange:n3},xg=["red","green","darkOrange","yellow","berry","lightGreen","marigold"],wg=["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"],Ut={success:"green",warning:"orange",danger:"cranberry"},da=xg.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background1`]:Xe[t].tint60,[`colorPalette${r}Background2`]:Xe[t].tint40,[`colorPalette${r}Background3`]:Xe[t].primary,[`colorPalette${r}Foreground1`]:Xe[t].shade10,[`colorPalette${r}Foreground2`]:Xe[t].shade30,[`colorPalette${r}Foreground3`]:Xe[t].primary,[`colorPalette${r}BorderActive`]:Xe[t].primary,[`colorPalette${r}Border1`]:Xe[t].tint40,[`colorPalette${r}Border2`]:Xe[t].primary};return Object.assign(e,n)},{});da.colorPaletteYellowForeground1=Xe.yellow.shade30,da.colorPaletteRedForegroundInverted=Xe.red.tint20,da.colorPaletteGreenForegroundInverted=Xe.green.tint20,da.colorPaletteYellowForegroundInverted=Xe.yellow.tint40;const E3=wg.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background2`]:wo[t].tint40,[`colorPalette${r}Foreground2`]:wo[t].shade30,[`colorPalette${r}BorderActive`]:wo[t].primary};return Object.assign(e,n)},{}),I3={...da,...E3},Qn=Object.entries(Ut).reduce((e,[t,r])=>{const n=t.slice(0,1).toUpperCase()+t.slice(1),a={[`colorStatus${n}Background1`]:$e[r].tint60,[`colorStatus${n}Background2`]:$e[r].tint40,[`colorStatus${n}Background3`]:$e[r].primary,[`colorStatus${n}Foreground1`]:$e[r].shade10,[`colorStatus${n}Foreground2`]:$e[r].shade30,[`colorStatus${n}Foreground3`]:$e[r].primary,[`colorStatus${n}ForegroundInverted`]:$e[r].tint30,[`colorStatus${n}BorderActive`]:$e[r].primary,[`colorStatus${n}Border1`]:$e[r].tint40,[`colorStatus${n}Border2`]:$e[r].primary};return Object.assign(e,a)},{});Qn.colorStatusDangerBackground3Hover=$e[Ut.danger].shade10,Qn.colorStatusDangerBackground3Pressed=$e[Ut.danger].shade20,Qn.colorStatusWarningForeground1=$e[Ut.warning].shade20,Qn.colorStatusWarningForeground3=$e[Ut.warning].shade20,Qn.colorStatusWarningBorder2=$e[Ut.warning].shade20;const F3=e=>({colorNeutralForeground1:$[14],colorNeutralForeground1Hover:$[14],colorNeutralForeground1Pressed:$[14],colorNeutralForeground1Selected:$[14],colorNeutralForeground2:$[26],colorNeutralForeground2Hover:$[14],colorNeutralForeground2Pressed:$[14],colorNeutralForeground2Selected:$[14],colorNeutralForeground2BrandHover:e[80],colorNeutralForeground2BrandPressed:e[70],colorNeutralForeground2BrandSelected:e[80],colorNeutralForeground3:$[38],colorNeutralForeground3Hover:$[26],colorNeutralForeground3Pressed:$[26],colorNeutralForeground3Selected:$[26],colorNeutralForeground3BrandHover:e[80],colorNeutralForeground3BrandPressed:e[70],colorNeutralForeground3BrandSelected:e[80],colorNeutralForeground4:$[44],colorNeutralForeground5:$[38],colorNeutralForeground5Hover:$[14],colorNeutralForeground5Pressed:$[14],colorNeutralForeground5Selected:$[14],colorNeutralForegroundDisabled:$[74],colorNeutralForegroundInvertedDisabled:It[40],colorBrandForegroundLink:e[70],colorBrandForegroundLinkHover:e[60],colorBrandForegroundLinkPressed:e[40],colorBrandForegroundLinkSelected:e[70],colorNeutralForeground2Link:$[26],colorNeutralForeground2LinkHover:$[14],colorNeutralForeground2LinkPressed:$[14],colorNeutralForeground2LinkSelected:$[14],colorCompoundBrandForeground1:e[80],colorCompoundBrandForeground1Hover:e[70],colorCompoundBrandForeground1Pressed:e[60],colorBrandForeground1:e[80],colorBrandForeground2:e[70],colorBrandForeground2Hover:e[60],colorBrandForeground2Pressed:e[30],colorNeutralForeground1Static:$[14],colorNeutralForegroundStaticInverted:je,colorNeutralForegroundInverted:je,colorNeutralForegroundInvertedHover:je,colorNeutralForegroundInvertedPressed:je,colorNeutralForegroundInvertedSelected:je,colorNeutralForegroundInverted2:je,colorNeutralForegroundOnBrand:je,colorNeutralForegroundInvertedLink:je,colorNeutralForegroundInvertedLinkHover:je,colorNeutralForegroundInvertedLinkPressed:je,colorNeutralForegroundInvertedLinkSelected:je,colorBrandForegroundInverted:e[100],colorBrandForegroundInvertedHover:e[110],colorBrandForegroundInvertedPressed:e[100],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:je,colorNeutralBackground1Hover:$[96],colorNeutralBackground1Pressed:$[88],colorNeutralBackground1Selected:$[92],colorNeutralBackground2:$[98],colorNeutralBackground2Hover:$[94],colorNeutralBackground2Pressed:$[86],colorNeutralBackground2Selected:$[90],colorNeutralBackground3:$[96],colorNeutralBackground3Hover:$[92],colorNeutralBackground3Pressed:$[84],colorNeutralBackground3Selected:$[88],colorNeutralBackground4:$[94],colorNeutralBackground4Hover:$[98],colorNeutralBackground4Pressed:$[96],colorNeutralBackground4Selected:je,colorNeutralBackground5:$[92],colorNeutralBackground5Hover:$[96],colorNeutralBackground5Pressed:$[94],colorNeutralBackground5Selected:$[98],colorNeutralBackground6:$[90],colorNeutralBackground7:"#00000000",colorNeutralBackground7Hover:$[92],colorNeutralBackground7Pressed:$[84],colorNeutralBackground7Selected:"#00000000",colorNeutralBackground8:$[99],colorNeutralBackgroundInverted:$[16],colorNeutralBackgroundInvertedHover:$[24],colorNeutralBackgroundInvertedPressed:$[12],colorNeutralBackgroundInvertedSelected:$[22],colorNeutralBackgroundStatic:$[20],colorNeutralBackgroundAlpha:It[50],colorNeutralBackgroundAlpha2:It[80],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:$[96],colorSubtleBackgroundPressed:$[88],colorSubtleBackgroundSelected:$[92],colorSubtleBackgroundLightAlphaHover:It[70],colorSubtleBackgroundLightAlphaPressed:It[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:pr[10],colorSubtleBackgroundInvertedPressed:pr[30],colorSubtleBackgroundInvertedSelected:pr[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:$[94],colorNeutralBackgroundDisabled2:je,colorNeutralBackgroundInvertedDisabled:It[10],colorNeutralStencil1:$[90],colorNeutralStencil2:$[98],colorNeutralStencil1Alpha:pr[10],colorNeutralStencil2Alpha:pr[5],colorBackgroundOverlay:pr[40],colorScrollbarOverlay:pr[50],colorBrandBackground:e[80],colorBrandBackgroundHover:e[70],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[80],colorCompoundBrandBackgroundHover:e[70],colorCompoundBrandBackgroundPressed:e[60],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[160],colorBrandBackground2Hover:e[150],colorBrandBackground2Pressed:e[130],colorBrandBackground3Static:e[60],colorBrandBackground4Static:e[40],colorBrandBackgroundInverted:je,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralCardBackground:$[98],colorNeutralCardBackgroundHover:je,colorNeutralCardBackgroundPressed:$[96],colorNeutralCardBackgroundSelected:$[92],colorNeutralCardBackgroundDisabled:$[94],colorNeutralStrokeAccessible:$[38],colorNeutralStrokeAccessibleHover:$[34],colorNeutralStrokeAccessiblePressed:$[30],colorNeutralStrokeAccessibleSelected:e[80],colorNeutralStroke1:$[82],colorNeutralStroke1Hover:$[78],colorNeutralStroke1Pressed:$[70],colorNeutralStroke1Selected:$[74],colorNeutralStroke2:$[88],colorNeutralStroke3:$[94],colorNeutralStroke4:$[92],colorNeutralStroke4Hover:$[88],colorNeutralStroke4Pressed:$[84],colorNeutralStroke4Selected:$[92],colorNeutralStrokeSubtle:$[88],colorNeutralStrokeOnBrand:je,colorNeutralStrokeOnBrand2:je,colorNeutralStrokeOnBrand2Hover:je,colorNeutralStrokeOnBrand2Pressed:je,colorNeutralStrokeOnBrand2Selected:je,colorBrandStroke1:e[80],colorBrandStroke2:e[140],colorBrandStroke2Hover:e[120],colorBrandStroke2Pressed:e[80],colorBrandStroke2Contrast:e[140],colorCompoundBrandStroke:e[80],colorCompoundBrandStrokeHover:e[70],colorCompoundBrandStrokePressed:e[60],colorNeutralStrokeDisabled:$[88],colorNeutralStrokeDisabled2:$[92],colorNeutralStrokeInvertedDisabled:It[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:pr[5],colorNeutralStrokeAlpha2:It[20],colorStrokeFocus1:je,colorStrokeFocus2:Ws,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)"}),kg={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadius2XLarge:"12px",borderRadius3XLarge:"16px",borderRadius4XLarge:"24px",borderRadius5XLarge:"32px",borderRadius6XLarge:"40px",borderRadiusCircular:"10000px"},Sg={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)"},Bg={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"},zg={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},jg={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},_g={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},Cg={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"},dt={none:"0",xxs:"2px",xs:"4px",sNudge:"6px",s:"8px",mNudge:"10px",m:"12px",l:"16px",xl:"20px",xxl:"24px",xxxl:"32px"},Ng={spacingHorizontalNone:dt.none,spacingHorizontalXXS:dt.xxs,spacingHorizontalXS:dt.xs,spacingHorizontalSNudge:dt.sNudge,spacingHorizontalS:dt.s,spacingHorizontalMNudge:dt.mNudge,spacingHorizontalM:dt.m,spacingHorizontalL:dt.l,spacingHorizontalXL:dt.xl,spacingHorizontalXXL:dt.xxl,spacingHorizontalXXXL:dt.xxxl},Tg={spacingVerticalNone:dt.none,spacingVerticalXXS:dt.xxs,spacingVerticalXS:dt.xs,spacingVerticalSNudge:dt.sNudge,spacingVerticalS:dt.s,spacingVerticalMNudge:dt.mNudge,spacingVerticalM:dt.m,spacingVerticalL:dt.l,spacingVerticalXL:dt.xl,spacingVerticalXXL:dt.xxl,spacingVerticalXXXL:dt.xxxl},Pg={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"},T={colorNeutralForeground1:"var(--colorNeutralForeground1)",colorNeutralForeground2:"var(--colorNeutralForeground2)",colorNeutralForeground3:"var(--colorNeutralForeground3)",colorBrandForegroundLink:"var(--colorBrandForegroundLink)",colorBrandForegroundLinkHover:"var(--colorBrandForegroundLinkHover)",colorBrandForeground2:"var(--colorBrandForeground2)",colorNeutralBackground1:"var(--colorNeutralBackground1)",colorNeutralBackground1Hover:"var(--colorNeutralBackground1Hover)",colorNeutralBackground1Selected:"var(--colorNeutralBackground1Selected)",colorNeutralBackground2:"var(--colorNeutralBackground2)",colorNeutralBackground3:"var(--colorNeutralBackground3)",colorNeutralBackground3Hover:"var(--colorNeutralBackground3Hover)",colorNeutralBackground4:"var(--colorNeutralBackground4)",colorBrandBackground2:"var(--colorBrandBackground2)",colorBrandBackground2Hover:"var(--colorBrandBackground2Hover)",colorNeutralStroke1:"var(--colorNeutralStroke1)",colorNeutralStroke2:"var(--colorNeutralStroke2)",colorNeutralStroke3:"var(--colorNeutralStroke3)",colorBrandStroke1:"var(--colorBrandStroke1)",colorCompoundBrandStroke:"var(--colorCompoundBrandStroke)",colorPaletteRedBackground1:"var(--colorPaletteRedBackground1)",colorPaletteRedBorder2:"var(--colorPaletteRedBorder2)",colorPaletteRedForeground1:"var(--colorPaletteRedForeground1)",colorPaletteGreenBackground1:"var(--colorPaletteGreenBackground1)",colorPaletteGreenForeground1:"var(--colorPaletteGreenForeground1)",colorPaletteDarkOrangeForeground1:"var(--colorPaletteDarkOrangeForeground1)",borderRadiusSmall:"var(--borderRadiusSmall)",borderRadiusMedium:"var(--borderRadiusMedium)",borderRadiusLarge:"var(--borderRadiusLarge)",borderRadiusXLarge:"var(--borderRadiusXLarge)",borderRadiusCircular:"var(--borderRadiusCircular)",fontFamilyMonospace:"var(--fontFamilyMonospace)",fontSizeBase200:"var(--fontSizeBase200)",fontSizeBase300:"var(--fontSizeBase300)",fontSizeBase400:"var(--fontSizeBase400)",fontSizeBase500:"var(--fontSizeBase500)",fontSizeBase600:"var(--fontSizeBase600)",fontWeightSemibold:"var(--fontWeightSemibold)",lineHeightBase500:"var(--lineHeightBase500)",lineHeightBase600:"var(--lineHeightBase600)",shadow2:"var(--shadow2)",shadow4:"var(--shadow4)",spacingHorizontalNone:"var(--spacingHorizontalNone)",spacingHorizontalXXS:"var(--spacingHorizontalXXS)",spacingHorizontalXS:"var(--spacingHorizontalXS)",spacingHorizontalS:"var(--spacingHorizontalS)",spacingHorizontalM:"var(--spacingHorizontalM)",spacingHorizontalL:"var(--spacingHorizontalL)",spacingHorizontalXXL:"var(--spacingHorizontalXXL)",spacingVerticalXXS:"var(--spacingVerticalXXS)",spacingVerticalXS:"var(--spacingVerticalXS)",spacingVerticalS:"var(--spacingVerticalS)",spacingVerticalM:"var(--spacingVerticalM)",spacingVerticalXXL:"var(--spacingVerticalXXL)",durationNormal:"var(--durationNormal)",curveEasyEase:"var(--curveEasyEase)"};function $s(e,t,r=""){return{[`shadow2${r}`]:`0 0 2px ${e}, 0 1px 2px ${t}`,[`shadow4${r}`]:`0 0 2px ${e}, 0 2px 4px ${t}`,[`shadow8${r}`]:`0 0 2px ${e}, 0 4px 8px ${t}`,[`shadow16${r}`]:`0 0 2px ${e}, 0 8px 16px ${t}`,[`shadow28${r}`]:`0 0 8px ${e}, 0 14px 28px ${t}`,[`shadow64${r}`]:`0 0 8px ${e}, 0 32px 64px ${t}`}}const Rg=e=>{const t=F3(e);return{...kg,...zg,...jg,...Cg,..._g,...Pg,...Ng,...Tg,...Bg,...Sg,...t,...I3,...Qn,...$s(t.colorNeutralShadowAmbient,t.colorNeutralShadowKey),...$s(t.colorBrandShadowAmbient,t.colorBrandShadowKey,"Brand")}},Mg={10:"#061724",20:"#082338",30:"#0a2e4a",40:"#0c3b5e",50:"#0e4775",60:"#0f548c",70:"#115ea3",80:"#0f6cbd",90:"#2886de",100:"#479ef5",110:"#62abf5",120:"#77b7f7",130:"#96c6fa",140:"#b4d6fa",150:"#cfe4fa",160:"#ebf3fc"},Hr=xg.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background1`]:Xe[t].shade40,[`colorPalette${r}Background2`]:Xe[t].shade30,[`colorPalette${r}Background3`]:Xe[t].primary,[`colorPalette${r}Foreground1`]:Xe[t].tint30,[`colorPalette${r}Foreground2`]:Xe[t].tint40,[`colorPalette${r}Foreground3`]:Xe[t].tint20,[`colorPalette${r}BorderActive`]:Xe[t].tint30,[`colorPalette${r}Border1`]:Xe[t].primary,[`colorPalette${r}Border2`]:Xe[t].tint20};return Object.assign(e,n)},{});Hr.colorPaletteRedForeground3=Xe.red.tint30,Hr.colorPaletteRedBorder2=Xe.red.tint30,Hr.colorPaletteGreenForeground3=Xe.green.tint40,Hr.colorPaletteGreenBorder2=Xe.green.tint40,Hr.colorPaletteDarkOrangeForeground3=Xe.darkOrange.tint30,Hr.colorPaletteDarkOrangeBorder2=Xe.darkOrange.tint30,Hr.colorPaletteRedForegroundInverted=Xe.red.primary,Hr.colorPaletteGreenForegroundInverted=Xe.green.primary,Hr.colorPaletteYellowForegroundInverted=Xe.yellow.shade30;const Gu=wg.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background2`]:wo[t].shade30,[`colorPalette${r}Foreground2`]:wo[t].tint40,[`colorPalette${r}BorderActive`]:wo[t].tint30};return Object.assign(e,n)},{});Gu.colorPaletteDarkRedBackground2=wo.darkRed.shade20,Gu.colorPalettePlumBackground2=wo.plum.shade20;const A3={...Hr,...Gu},ko=Object.entries(Ut).reduce((e,[t,r])=>{const n=t.slice(0,1).toUpperCase()+t.slice(1),a={[`colorStatus${n}Background1`]:$e[r].shade40,[`colorStatus${n}Background2`]:$e[r].shade30,[`colorStatus${n}Background3`]:$e[r].primary,[`colorStatus${n}Foreground1`]:$e[r].tint30,[`colorStatus${n}Foreground2`]:$e[r].tint40,[`colorStatus${n}Foreground3`]:$e[r].tint20,[`colorStatus${n}BorderActive`]:$e[r].tint30,[`colorStatus${n}ForegroundInverted`]:$e[r].shade10,[`colorStatus${n}Border1`]:$e[r].primary,[`colorStatus${n}Border2`]:$e[r].tint20};return Object.assign(e,a)},{});ko.colorStatusDangerBackground3Hover=$e[Ut.danger].shade10,ko.colorStatusDangerBackground3Pressed=$e[Ut.danger].shade20,ko.colorStatusDangerForeground3=$e[Ut.danger].tint40,ko.colorStatusDangerBorder2=$e[Ut.danger].tint30,ko.colorStatusSuccessForeground3=$e[Ut.success].tint40,ko.colorStatusSuccessBorder2=$e[Ut.success].tint40,ko.colorStatusWarningForegroundInverted=$e[Ut.warning].shade20;const D3=Rg(Mg),q3=e=>({colorNeutralForeground1:je,colorNeutralForeground1Hover:je,colorNeutralForeground1Pressed:je,colorNeutralForeground1Selected:je,colorNeutralForeground2:$[84],colorNeutralForeground2Hover:je,colorNeutralForeground2Pressed:je,colorNeutralForeground2Selected:je,colorNeutralForeground2BrandHover:e[100],colorNeutralForeground2BrandPressed:e[90],colorNeutralForeground2BrandSelected:e[100],colorNeutralForeground3:$[68],colorNeutralForeground3Hover:$[84],colorNeutralForeground3Pressed:$[84],colorNeutralForeground3Selected:$[84],colorNeutralForeground3BrandHover:e[100],colorNeutralForeground3BrandPressed:e[90],colorNeutralForeground3BrandSelected:e[100],colorNeutralForeground4:$[60],colorNeutralForeground5:$[68],colorNeutralForeground5Hover:je,colorNeutralForeground5Pressed:je,colorNeutralForeground5Selected:je,colorNeutralForegroundDisabled:$[36],colorNeutralForegroundInvertedDisabled:It[40],colorBrandForegroundLink:e[100],colorBrandForegroundLinkHover:e[110],colorBrandForegroundLinkPressed:e[90],colorBrandForegroundLinkSelected:e[100],colorNeutralForeground2Link:$[84],colorNeutralForeground2LinkHover:je,colorNeutralForeground2LinkPressed:je,colorNeutralForeground2LinkSelected:je,colorCompoundBrandForeground1:e[100],colorCompoundBrandForeground1Hover:e[110],colorCompoundBrandForeground1Pressed:e[90],colorBrandForeground1:e[100],colorBrandForeground2:e[110],colorBrandForeground2Hover:e[130],colorBrandForeground2Pressed:e[160],colorNeutralForeground1Static:$[14],colorNeutralForegroundStaticInverted:je,colorNeutralForegroundInverted:$[14],colorNeutralForegroundInvertedHover:$[14],colorNeutralForegroundInvertedPressed:$[14],colorNeutralForegroundInvertedSelected:$[14],colorNeutralForegroundInverted2:$[14],colorNeutralForegroundOnBrand:je,colorNeutralForegroundInvertedLink:je,colorNeutralForegroundInvertedLinkHover:je,colorNeutralForegroundInvertedLinkPressed:je,colorNeutralForegroundInvertedLinkSelected:je,colorBrandForegroundInverted:e[80],colorBrandForegroundInvertedHover:e[70],colorBrandForegroundInvertedPressed:e[60],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:$[16],colorNeutralBackground1Hover:$[24],colorNeutralBackground1Pressed:$[12],colorNeutralBackground1Selected:$[22],colorNeutralBackground2:$[12],colorNeutralBackground2Hover:$[20],colorNeutralBackground2Pressed:$[8],colorNeutralBackground2Selected:$[18],colorNeutralBackground3:$[8],colorNeutralBackground3Hover:$[16],colorNeutralBackground3Pressed:$[4],colorNeutralBackground3Selected:$[14],colorNeutralBackground4:$[4],colorNeutralBackground4Hover:$[12],colorNeutralBackground4Pressed:Ws,colorNeutralBackground4Selected:$[10],colorNeutralBackground5:Ws,colorNeutralBackground5Hover:$[8],colorNeutralBackground5Pressed:$[2],colorNeutralBackground5Selected:$[6],colorNeutralBackground6:$[20],colorNeutralBackground7:"#00000000",colorNeutralBackground7Hover:$[10],colorNeutralBackground7Pressed:$[4],colorNeutralBackground7Selected:"#00000000",colorNeutralBackground8:$[16],colorNeutralBackgroundInverted:je,colorNeutralBackgroundInvertedHover:$[96],colorNeutralBackgroundInvertedPressed:$[88],colorNeutralBackgroundInvertedSelected:$[92],colorNeutralBackgroundStatic:$[24],colorNeutralBackgroundAlpha:ZB[50],colorNeutralBackgroundAlpha2:JB[70],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:$[22],colorSubtleBackgroundPressed:$[18],colorSubtleBackgroundSelected:$[20],colorSubtleBackgroundLightAlphaHover:vg[80],colorSubtleBackgroundLightAlphaPressed:vg[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:pr[10],colorSubtleBackgroundInvertedPressed:pr[30],colorSubtleBackgroundInvertedSelected:pr[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:$[8],colorNeutralBackgroundDisabled2:$[16],colorNeutralBackgroundInvertedDisabled:It[10],colorNeutralStencil1:$[34],colorNeutralStencil2:$[20],colorNeutralStencil1Alpha:It[10],colorNeutralStencil2Alpha:It[5],colorBackgroundOverlay:pr[50],colorScrollbarOverlay:It[60],colorBrandBackground:e[70],colorBrandBackgroundHover:e[80],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[100],colorCompoundBrandBackgroundHover:e[110],colorCompoundBrandBackgroundPressed:e[90],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[20],colorBrandBackground2Hover:e[40],colorBrandBackground2Pressed:e[10],colorBrandBackground3Static:e[60],colorBrandBackground4Static:e[40],colorBrandBackgroundInverted:je,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralCardBackground:$[20],colorNeutralCardBackgroundHover:$[24],colorNeutralCardBackgroundPressed:$[18],colorNeutralCardBackgroundSelected:$[22],colorNeutralCardBackgroundDisabled:$[8],colorNeutralStrokeAccessible:$[68],colorNeutralStrokeAccessibleHover:$[74],colorNeutralStrokeAccessiblePressed:$[70],colorNeutralStrokeAccessibleSelected:e[100],colorNeutralStroke1:$[40],colorNeutralStroke1Hover:$[46],colorNeutralStroke1Pressed:$[42],colorNeutralStroke1Selected:$[44],colorNeutralStroke2:$[32],colorNeutralStroke3:$[24],colorNeutralStroke4:$[24],colorNeutralStroke4Hover:$[18],colorNeutralStroke4Pressed:$[14],colorNeutralStroke4Selected:$[24],colorNeutralStrokeSubtle:$[4],colorNeutralStrokeOnBrand:$[16],colorNeutralStrokeOnBrand2:je,colorNeutralStrokeOnBrand2Hover:je,colorNeutralStrokeOnBrand2Pressed:je,colorNeutralStrokeOnBrand2Selected:je,colorBrandStroke1:e[100],colorBrandStroke2:e[50],colorBrandStroke2Hover:e[50],colorBrandStroke2Pressed:e[30],colorBrandStroke2Contrast:e[50],colorCompoundBrandStroke:e[100],colorCompoundBrandStrokeHover:e[110],colorCompoundBrandStrokePressed:e[90],colorNeutralStrokeDisabled:$[26],colorNeutralStrokeDisabled2:$[24],colorNeutralStrokeInvertedDisabled:It[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:It[10],colorNeutralStrokeAlpha2:It[20],colorStrokeFocus1:Ws,colorStrokeFocus2:je,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)"}),O3=(e=>{const t=q3(e);return{...kg,...zg,...jg,...Cg,..._g,...Pg,...Ng,...Tg,...Bg,...Sg,...t,...A3,...ko,...$s(t.colorNeutralShadowAmbient,t.colorNeutralShadowKey),...$s(t.colorBrandShadowAmbient,t.colorBrandShadowKey,"Brand")}})(Mg),Eg={root:"fui-FluentProvider"},H3=ch({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);}"]}),L3=e=>{const t=ra(),r=H3({dir:e.dir,renderer:t});return e.root.className=Q(Eg.root,e.themeClassName,r.root,e.root.className),e},V3=y.useInsertionEffect?y.useInsertionEffect:bt,W3=(e,t)=>{if(!e?.head)return;const r=e.createElement("style");return Object.keys(t).forEach(n=>{r.setAttribute(n,t[n])}),e.head.appendChild(r),r},$3=(e,t)=>{const r=e.sheet;r&&(r.cssRules.length>0&&r.deleteRule(0),r.insertRule(t,0))},U3=e=>{const{targetDocument:t,theme:r,rendererAttributes:n}=e,a=y.useRef(void 0),s=pt(Eg.root),c=n,u=y.useMemo(()=>y2(`.${s}`,r),[r,s]);return G3(t,s),V3(()=>{const f=t?.getElementById(s);return f?a.current=f:(a.current=W3(t,{...c,id:s}),a.current&&$3(a.current,u)),()=>{var p;(p=a.current)===null||p===void 0||p.remove()}},[s,t,u,c]),{styleTagId:s,rule:u}};function G3(e,t){y.useState(()=>{if(!e)return;const r=e.getElementById(t);r&&e.head.append(r)})}const X3={},K3={},Y3=(e,t)=>{const r=He(),n=Q3(),a=Nu(),s=y.useContext(Tu)||X3,{applyStylesToPortals:c=!0,customStyleHooks_unstable:u,dir:f=r.dir,targetDocument:p=r.targetDocument,theme:g,overrides_unstable:v={}}=e,x=Xu(n,g),w=Xu(a,v),S=Xu(s,u),k=ra();var B;const{styleTagId:z,rule:P}=U3({theme:x,targetDocument:p,rendererAttributes:(B=k.styleElementAttributes)!==null&&B!==void 0?B:K3});return{applyStylesToPortals:c,customStyleHooks_unstable:S,dir:f,targetDocument:p,theme:x,overrides_unstable:w,themeClassName:z,components:{root:"div"},root:me(rt("div",{...e,dir:f,ref:Oe(t,fg({targetDocument:p}))}),{elementType:"div"}),serverStyleProps:{cssRule:P,attributes:{...k.styleElementAttributes,id:z}}}};function Xu(e,t){return e&&t?{...e,...t}:e||t}function Q3(){return y.useContext(bh)}function Z3(e){const{applyStylesToPortals:t,customStyleHooks_unstable:r,dir:n,root:a,targetDocument:s,theme:c,themeClassName:u,overrides_unstable:f}=e,p=y.useMemo(()=>({dir:n,targetDocument:s}),[n,s]),[g]=y.useState(()=>({})),v=y.useMemo(()=>({textDirection:n}),[n]);return{customStyleHooks_unstable:r,overrides_unstable:f,provider:p,textDirection:n,iconDirection:v,tooltip:g,theme:c,themeClassName:t?a.className:u}}const Zn=y.forwardRef((e,t)=>{const r=Y3(e,t);L3(r);const n=Z3(r);return PS(r,n)});Zn.displayName="FluentProvider";var Ku={exports:{}},Yu={};var Ig;function J3(){return Ig||(Ig=1,(function(e){function t(O,Z){var q=O.length;O.push(Z);e:for(;0<q;){var G=q-1>>>1,K=O[G];if(0<a(K,Z))O[G]=Z,O[q]=K,q=G;else break e}}function r(O){return O.length===0?null:O[0]}function n(O){if(O.length===0)return null;var Z=O[0],q=O.pop();if(q!==Z){O[0]=q;e:for(var G=0,K=O.length,F=K>>>1;G<F;){var V=2*(G+1)-1,ue=O[V],xe=V+1,Ee=O[xe];if(0>a(ue,q))xe<K&&0>a(Ee,ue)?(O[G]=Ee,O[xe]=q,G=xe):(O[G]=ue,O[V]=q,G=V);else if(xe<K&&0>a(Ee,q))O[G]=Ee,O[xe]=q,G=xe;else break e}}return Z}function a(O,Z){var q=O.sortIndex-Z.sortIndex;return q!==0?q:O.id-Z.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,u=c.now();e.unstable_now=function(){return c.now()-u}}var f=[],p=[],g=1,v=null,x=3,w=!1,S=!1,k=!1,B=!1,z=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function N(O){for(var Z=r(p);Z!==null;){if(Z.callback===null)n(p);else if(Z.startTime<=O)n(p),Z.sortIndex=Z.expirationTime,t(f,Z);else break;Z=r(p)}}function M(O){if(k=!1,N(O),!S)if(r(f)!==null)S=!0,C||(C=!0,te());else{var Z=r(p);Z!==null&&X(M,Z.startTime-O)}}var C=!1,I=-1,A=5,ae=-1;function de(){return B?!0:!(e.unstable_now()-ae<A)}function ee(){if(B=!1,C){var O=e.unstable_now();ae=O;var Z=!0;try{e:{S=!1,k&&(k=!1,P(I),I=-1),w=!0;var q=x;try{t:{for(N(O),v=r(f);v!==null&&!(v.expirationTime>O&&de());){var G=v.callback;if(typeof G=="function"){v.callback=null,x=v.priorityLevel;var K=G(v.expirationTime<=O);if(O=e.unstable_now(),typeof K=="function"){v.callback=K,N(O),Z=!0;break t}v===r(f)&&n(f),N(O)}else n(f);v=r(f)}if(v!==null)Z=!0;else{var F=r(p);F!==null&&X(M,F.startTime-O),Z=!1}}break e}finally{v=null,x=q,w=!1}Z=void 0}}finally{Z?te():C=!1}}}var te;if(typeof j=="function")te=function(){j(ee)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,Y=W.port2;W.port1.onmessage=ee,te=function(){Y.postMessage(null)}}else te=function(){z(ee,0)};function X(O,Z){I=z(function(){O(e.unstable_now())},Z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(O){O.callback=null},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_next=function(O){switch(x){case 1:case 2:case 3:var Z=3;break;default:Z=x}var q=x;x=Z;try{return O()}finally{x=q}},e.unstable_requestPaint=function(){B=!0},e.unstable_runWithPriority=function(O,Z){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var q=x;x=O;try{return Z()}finally{x=q}},e.unstable_scheduleCallback=function(O,Z,q){var G=e.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?G+q:G):q=G,O){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=q+K,O={id:g++,callback:Z,priorityLevel:O,startTime:q,expirationTime:K,sortIndex:-1},q>G?(O.sortIndex=q,t(p,O),r(f)===null&&O===r(p)&&(k?(P(I),I=-1):k=!0,X(M,q-G))):(O.sortIndex=K,t(f,O),S||w||(S=!0,C||(C=!0,te()))),O},e.unstable_shouldYield=de,e.unstable_wrapCallback=function(O){var Z=x;return function(){var q=x;x=Z;try{return O.apply(this,arguments)}finally{x=q}}}})(Yu)),Yu}var Fg;function e4(){return Fg||(Fg=1,Ku.exports=J3()),Ku.exports}var Ag=e4();const t4=e=>r=>{const n=y.useRef(r.value),a=y.useRef(null);return a.current||(a.current={value:n,listeners:[]}),bt(()=>{n.current=r.value,Ag.unstable_runWithPriority(Ag.unstable_NormalPriority,()=>{a.current.listeners.forEach(s=>{s(r.value)})})},[r.value]),y.createElement(e,{value:a.current},r.children)},Lr=e=>{const t=y.createContext({value:{current:e},listeners:[],isDefault:!0});return t.Provider=t4(t.Provider),delete t.Consumer,t},eo=(e,t)=>{const r=y.useContext(e),{value:n,listeners:a}=r,s=t(n.current),[,c]=y.useReducer(p=>p+1,0),u=y.useRef(t),f=y.useRef(s);return bt(()=>{u.current=t,f.current=s}),bt(()=>{const p=g=>{try{const v=u.current(g);Object.is(f.current,v)||c()}catch{}};return a.push(p),p(n.current),()=>{const g=a.indexOf(p);g!==-1&&a.splice(g,1)}},[a,n]),s};function Jn(e){return!y.useContext(e).isDefault}const Dg=Lr(void 0),r4={openItems:[],collapsible:!1,multiple:!1,navigation:void 0,requestToggle(){}},{Provider:o4}=Dg,fa=e=>eo(Dg,(t=r4)=>e(t)),n4=(e,t)=>J(e.root,{children:J(o4,{value:t.accordion,children:e.root.children})}),i4=(e,t)=>{const{navigation:r,...n}=e,a=a4(n,t),s=Ls({circular:r==="circular",tabbable:!0});return{navigation:r,...a,root:{...a.root,...r?s:void 0}}},a4=(e,t)=>{const{openItems:r,defaultOpenItems:n,multiple:a=!1,collapsible:s=!1,onToggle:c,...u}=e,[f,p]=Bt({state:y.useMemo(()=>c4(r),[r]),defaultState:n&&(()=>s4({defaultOpenItems:n,multiple:a})),initialState:[]}),g=ce(v=>{const x=l4(v.value,f,a,s);c?.(v.event,{value:v.value,openItems:x}),p(x)});return{collapsible:s,multiple:a,openItems:f,requestToggle:g,components:{root:"div"},root:me({ref:t,...u},{elementType:"div"})}};function s4({defaultOpenItems:e,multiple:t}){return e!==void 0?Array.isArray(e)?t?e:[e[0]]:[e]:[]}function l4(e,t,r,n){if(r)if(t.includes(e)){if(t.length>1||n)return t.filter(a=>a!==e)}else return[...t,e].sort();else return t[0]===e&&n?[]:[e];return t}function c4(e){if(e!==void 0)return Array.isArray(e)?e:[e]}function u4(e){const{navigation:t,openItems:r,requestToggle:n,multiple:a,collapsible:s}=e;return{accordion:y.useMemo(()=>({navigation:t,openItems:r,requestToggle:n,collapsible:s,multiple:a}),[t,r,n,s,a])}}const d4={root:"fui-Accordion"},f4=e=>(e.root.className=Q(d4.root,e.root.className),e),qg=y.forwardRef((e,t)=>{const r=i4(e,t),n=u4(r);return f4(r),Pe("useAccordionStyles_unstable")(r),n4(r,n)});qg.displayName="Accordion";const p4=(e,t)=>{const{value:r,disabled:n=!1,...a}=e,s=fa(f=>f.requestToggle),c=fa(f=>f.openItems.includes(r)),u=ce(f=>s({event:f,value:r}));return{open:c,value:r,disabled:n,onHeaderClick:u,components:{root:"div"},root:me({disabled:n,ref:t,...a},{elementType:"div"})}};function h4(e){const{disabled:t,open:r,value:n,onHeaderClick:a}=e;return{accordionItem:y.useMemo(()=>({disabled:t,open:r,value:n,onHeaderClick:a}),[t,r,n,a])}}const Og=y.createContext(void 0),g4={open:!1,disabled:!1,value:void 0,onHeaderClick(){}},{Provider:m4}=Og,Hg=()=>{var e;return(e=y.useContext(Og))!==null&&e!==void 0?e:g4},v4=(e,t)=>J(e.root,{children:J(m4,{value:t.accordionItem,children:e.root.children})}),b4={root:"fui-AccordionItem"},y4=e=>(e.root.className=Q(b4.root,e.root.className),e),pa=y.forwardRef((e,t)=>{const r=p4(e,t),n=h4(r);return y4(r),Pe("useAccordionItemStyles_unstable")(r),v4(r,n)});pa.displayName="AccordionItem";const ei="Enter",to=" ",Lg="Tab",Qu="ArrowDown",Vg="ArrowLeft",Wg="ArrowRight",Zu="ArrowUp",x4="End",w4="Home",k4="PageDown",S4="PageUp",ti="Escape";function fn(e,t){const{disabled:r,disabledFocusable:n=!1,["aria-disabled"]:a,onClick:s,onKeyDown:c,onKeyUp:u,...f}=t??{},p=typeof a=="string"?a==="true":a,g=r||n||p,v=ce(S=>{g?(S.preventDefault(),S.stopPropagation()):s?.(S)}),x=ce(S=>{if(c?.(S),S.isDefaultPrevented())return;const k=S.key;if(g&&(k===ei||k===to)){S.preventDefault(),S.stopPropagation();return}if(k===to){S.preventDefault();return}else k===ei&&(S.preventDefault(),S.currentTarget.click())}),w=ce(S=>{if(u?.(S),S.isDefaultPrevented())return;const k=S.key;if(g&&(k===ei||k===to)){S.preventDefault(),S.stopPropagation();return}k===to&&(S.preventDefault(),S.currentTarget.click())});if(e==="button"||e===void 0)return{...f,disabled:r&&!n,"aria-disabled":n?!0:p,onClick:n?void 0:v,onKeyUp:n?void 0:u,onKeyDown:n?void 0:c};{const S=!!f.href;let k=S?void 0:"button";!k&&g&&(k="link");const B={role:k,tabIndex:n||!S&&!r?0:void 0,...f,onClick:v,onKeyUp:w,onKeyDown:x,"aria-disabled":g};return e==="a"&&g&&(B.href=void 0),B}}const Gt=()=>{},B4={controller:{active:Gt,blur:Gt,find:Gt,first:Gt,focus:Gt,focusLastActive:Gt,scrollActiveIntoView:Gt,last:Gt,next:Gt,prev:Gt,showAttributes:Gt,hideAttributes:Gt,showFocusVisibleAttributes:Gt,hideFocusVisibleAttributes:Gt}},Ju=y.createContext(void 0),$g=Ju.Provider,Ug=()=>{var e;return(e=y.useContext(Ju))!==null&&e!==void 0?e:B4},z4=()=>!!y.useContext(Ju);function j4(e){const{matchOption:t}=e,{targetDocument:r}=He(),n=y.useRef(null),a=y.useRef(null),s=y.useCallback(f=>Br(f)&&t(f)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,[t]),c=y.useCallback(f=>{f&&r?(a.current=f,n.current=r.createTreeWalker(f,NodeFilter.SHOW_ELEMENT,s)):(a.current=null,n.current=null)},[r,s]);return{optionWalker:y.useMemo(()=>({first:()=>!n.current||!a.current?null:(n.current.currentNode=a.current,n.current.firstChild()),last:()=>!n.current||!a.current?null:(n.current.currentNode=a.current,n.current.lastChild()),next:()=>n.current?n.current.nextNode():null,prev:()=>n.current?n.current.previousNode():null,find:(f,p)=>{if(!n.current||!a.current)return null;const g=p?r?.getElementById(p):null;n.current.currentNode=g??a.current;let v=n.current.currentNode;for(;v&&!f(v.id);)v=n.current.nextNode();return v},setCurrent:f=>{n.current&&(n.current.currentNode=f)}}),[r]),listboxCallbackRef:c}}const Gg="data-activedescendant",ri="data-activedescendant-focusvisible",Xg=e=>{if(!e)return;const t=Kg(e.parentElement);if(!t)return;const{offsetHeight:r}=e,n=Yg(e,t),{scrollMarginTop:a,scrollMarginBottom:s}=_4(e),{offsetHeight:c,scrollTop:u}=t,f=n-a<u,p=n+r+s>u+c,g=2;f?t.scrollTo(0,n-a-g):p&&t.scrollTo(0,n+r+s-c+g)},Kg=e=>e?e.scrollHeight>e.offsetHeight?e:Kg(e.parentElement):null,Yg=(e,t)=>!e||e===t?0:e.contains(t)?t.offsetTop*-1:e.offsetTop+Yg(e.offsetParent,t),_4=e=>{var t;const r=(t=e.ownerDocument)===null||t===void 0?void 0:t.defaultView;if(!r)return{scrollMarginTop:0,scrollMarginBottom:0};const n=r.getComputedStyle(e);var a;const s=(a=Us(n.scrollMarginTop))!==null&&a!==void 0?a:Us(n.scrollMarginBlockStart);var c;const u=(c=Us(n.scrollMarginBottom))!==null&&c!==void 0?c:Us(n.scrollMarginBlockEnd);return{scrollMarginTop:s,scrollMarginBottom:u}},Us=e=>e?parseInt(e,10):0,C4=e=>new CustomEvent("activedescendantchange",{bubbles:!0,cancelable:!1,composed:!0,detail:e});function Qg(e){const{imperativeRef:t,matchOption:r}=e,n=y.useRef(!1),a=y.useRef(!0),s=y.useRef(null),c=y.useRef(null),u=y.useRef(null),f=y.useRef(!0),p=y.useCallback(()=>{var N;(N=u.current)===null||N===void 0||N.removeAttribute("aria-activedescendant")},[]),g=y.useCallback(N=>{if(N&&(s.current=N),f.current&&s.current){var M;(M=u.current)===null||M===void 0||M.setAttribute("aria-activedescendant",s.current)}},[]);gg(N=>{n.current=N;const M=k();M&&(N&&a.current?M.setAttribute(ri,""):M.removeAttribute(ri))});const v=ce(r),x=y.useRef(null),{optionWalker:w,listboxCallbackRef:S}=j4({matchOption:v}),k=y.useCallback(()=>{var N;return(N=x.current)===null||N===void 0?void 0:N.querySelector(`#${s.current}`)},[x]),B=y.useCallback(N=>{a.current=N;const M=k();M&&(N&&n.current?M.setAttribute(ri,""):M.removeAttribute(ri))},[k]),z=y.useCallback(()=>{const N=k();N&&(N.removeAttribute(Gg),N.removeAttribute(ri)),p(),c.current=s.current,s.current=null;var M;return(M=N?.id)!==null&&M!==void 0?M:null},[k,p]),P=y.useCallback(N=>{if(!N)return;const M=z();Xg(N),g(N.id),N.setAttribute(Gg,""),n.current&&a.current&&N.setAttribute(ri,"");const C=C4({id:N.id,previousId:M});N.dispatchEvent(C)},[z,g]),j=y.useMemo(()=>({first:({passive:N}={})=>{const M=w.first();return N||P(M),M?.id},last:({passive:N}={})=>{const M=w.last();return N||P(M),M?.id},next:({passive:N}={})=>{const M=k();if(!M)return;w.setCurrent(M);const C=w.next();return N||P(C),C?.id},prev:({passive:N}={})=>{const M=k();if(!M)return;w.setCurrent(M);const C=w.prev();return N||P(C),C?.id},blur:()=>{z()},active:()=>{var N;return(N=k())===null||N===void 0?void 0:N.id},focus:N=>{if(!x.current)return;const M=x.current.querySelector(`#${N}`);M&&P(M)},focusLastActive:()=>{if(!x.current||!c.current)return;const N=x.current.querySelector(`#${c.current}`);if(N)return P(N),!0},find(N,{passive:M,startFrom:C}={}){const I=w.find(N,C);return M||P(I),I?.id},scrollActiveIntoView:()=>{if(!x.current)return;const N=k();N&&Xg(N)},showAttributes(){f.current=!0,g()},hideAttributes(){f.current=!1,p()},showFocusVisibleAttributes(){B(!0)},hideFocusVisibleAttributes(){B(!1)}}),[w,x,g,p,P,z,k,B]);return y.useImperativeHandle(t,()=>j),{listboxRef:Oe(x,S),activeParentRef:u,controller:j}}const N4=le({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{transform:scaleX(-1);}"]}),T4="fui-Icon",P4="fui-Icon-filled",R4="fui-Icon-regular",M4="data-fui-icon",E4=(e,t)=>{const{filled:r,idPrefix:n,title:a,primaryFill:s="currentColor",...c}=e,u={...c,fill:s},f=TS(),p=!!(t?.flipInRtl&&f?.textDirection==="rtl");return a&&(u["aria-label"]=a),!u["aria-label"]&&!u["aria-labelledby"]?u["aria-hidden"]=!0:u.role="img",u[M4]="",{state:u,isRtlFlip:p}},I4=(e,t)=>{const r=N4(),{state:n,isRtlFlip:a}=E4(e,t);return n.className=Q(r.root,a&&r.rtl,n.className),n},F4=le({root:{B8gzw0y:"f1dd5bof"}},{m:[["@media (forced-colors: active){.f1dd5bof{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]]}),ed="url(#",Zg=(e,t,r)=>{const[n,a,...s]=e;let c=a;if(r&&a){const u={};for(const f in a){const p=a[f];if(typeof p!="string")u[f]=p;else if(f==="id")u[f]=r+p;else{const g=p.indexOf(ed);u[f]=g<0?p:p.slice(0,g+ed.length)+r+p.slice(g+ed.length)}}c=u}return y.createElement(n,{...c,key:t},...s.map((u,f)=>Zg(u,f,r)))},A4=e=>e==="1em"?"20":e,Jg=(e,t,r)=>typeof e!="string"&&(t?.color||Array.isArray(e[0]))?e.map((n,a)=>Zg(n,a,r)):void 0,D4=()=>{},q4=(e,t)=>{const r=Jg(e,t);return r?function(a){return y.useMemo(()=>a?Jg(e,t,a):r,[a])}:D4},O4=(e,t,r)=>typeof t=="string"?y.createElement("svg",{...e,dangerouslySetInnerHTML:{__html:t}}):r?y.createElement("svg",e,...r):y.createElement("svg",e,...t.map(n=>y.createElement("path",{d:n,fill:e.fill}))),re=(e,t,r,n)=>{const a=A4(t),s=q4(r,n),c=y.forwardRef((u,f)=>{const p=F4(),g=I4(u,{flipInRtl:n?.flipInRtl}),v=s(u.idPrefix),x={...g,className:Q(T4,g.className,p.root),ref:f,width:t,height:t,viewBox:`0 0 ${a} ${a}`,xmlns:"http://www.w3.org/2000/svg"};return O4(x,r,v)});return c.displayName=e,c},H4=re("MailRegular","1em",["M15.5 4A2.5 2.5 0 0 1 18 6.5v8a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 2 14.5v-8A2.5 2.5 0 0 1 4.5 4zM17 7.96l-6.75 3.97a.5.5 0 0 1-.42.04l-.08-.04L3 7.96v6.54c0 .83.67 1.5 1.5 1.5h11c.83 0 1.5-.67 1.5-1.5zM15.5 5h-11C3.67 5 3 5.67 3 6.5v.3l7 4.12 7-4.12v-.3c0-.83-.67-1.5-1.5-1.5"]),td=re("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-.06zm-.71-.71A5.5 5.5 0 0 0 15 9.5a5.5 5.5 0 1 0-1.98 4.23"]),L4=re("TableSimpleRegular","1em",["M3 5.5A2.5 2.5 0 0 1 5.5 3h9A2.5 2.5 0 0 1 17 5.5v9a2.5 2.5 0 0 1-2.5 2.5h-9A2.5 2.5 0 0 1 3 14.5zm1 5v4c0 .83.67 1.5 1.5 1.5h4v-5.5zm5.5-1V4h-4C4.67 4 4 4.67 4 5.5v4zm1 1V16h4c.83 0 1.5-.67 1.5-1.5v-4zm5.5-1v-4c0-.83-.67-1.5-1.5-1.5h-4v5.5z"]),V4=re("MoreHorizontalRegular","1em",["M6.25 10a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0m5 0a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0M15 11.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5"]),W4=re("MoreVerticalRegular","1em",["M10 6a1.25 1.25 0 1 1 0-2.5A1.25 1.25 0 0 1 10 6m0 5.25a1.25 1.25 0 1 1 0-2.5 1.25 1.25 0 0 1 0 2.5m-1.25 4a1.25 1.25 0 1 0 2.5 0 1.25 1.25 0 0 0-2.5 0"]),$4=re("DocumentAddRegular","1em",["M6 2a2 2 0 0 0-2 2v5.2q.49-.13 1-.18V4a1 1 0 0 1 1-1h4v3.5c0 .83.67 1.5 1.5 1.5H15v8a1 1 0 0 1-1 1h-3.6q-.27.54-.66 1H14a2 2 0 0 0 2-2V7.41c0-.4-.16-.78-.44-1.06l-3.91-3.91A1.5 1.5 0 0 0 10.59 2zm8.8 5h-3.3a.5.5 0 0 1-.5-.5V3.2zM10 14.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0m-4-2a.5.5 0 0 0-1 0V14H3.5a.5.5 0 0 0 0 1H5v1.5a.5.5 0 0 0 1 0V15h1.5a.5.5 0 0 0 0-1H6z"]),U4=re("SettingsRegular","1em",["M1.91 7.38A8.5 8.5 0 0 1 3.7 4.3a.5.5 0 0 1 .54-.13l1.92.68a1 1 0 0 0 1.32-.76l.36-2a.5.5 0 0 1 .4-.4 9 9 0 0 1 3.55 0q.32.08.38.4l.37 2a1 1 0 0 0 1.32.76l1.92-.68a.5.5 0 0 1 .54.13 8.5 8.5 0 0 1 1.78 3.08q.08.31-.15.54l-1.56 1.32a1 1 0 0 0 0 1.52l1.56 1.32a.5.5 0 0 1 .15.54 8.5 8.5 0 0 1-1.78 3.08.5.5 0 0 1-.54.13l-1.92-.68a1 1 0 0 0-1.32.76l-.37 2a.5.5 0 0 1-.38.4 8.5 8.5 0 0 1-3.56 0 .5.5 0 0 1-.39-.4l-.36-2a1 1 0 0 0-1.32-.76l-1.92.68a.5.5 0 0 1-.54-.13 8.5 8.5 0 0 1-1.78-3.08.5.5 0 0 1 .15-.54l1.56-1.32a1 1 0 0 0 0-1.52L2.06 7.92a.5.5 0 0 1-.15-.54m1.06 0 1.3 1.1a2 2 0 0 1 0 3.04l-1.3 1.1q.45 1.19 1.25 2.16l1.6-.58a2 2 0 0 1 2.63 1.53l.3 1.67a8 8 0 0 0 2.5 0l.3-1.67a2 2 0 0 1 2.64-1.53l1.6.58a8 8 0 0 0 1.24-2.16l-1.3-1.1a2 2 0 0 1 0-3.04l1.3-1.1a8 8 0 0 0-1.25-2.16l-1.6.58a2 2 0 0 1-2.63-1.53l-.3-1.67a8 8 0 0 0-2.5 0l-.3 1.67A2 2 0 0 1 5.81 5.8l-1.6-.58a8 8 0 0 0-1.24 2.16M7.5 10a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0m1 0a1.5 1.5 0 1 0 3 0 1.5 1.5 0 0 0-3 0"]),em=re("ShareRegular","1em",["M9.5 3a.5.5 0 0 1 0 1H6a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2v-1.5a.5.5 0 0 1 1 0V14a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3zm3.8-.96a.5.5 0 0 1 .53.09l5 4.5a.5.5 0 0 1 0 .74l-5 4.5a.5.5 0 0 1-.83-.37V9.34c-1.4.13-2.67.78-3.7 1.6a10 10 0 0 0-2.2 2.5l-.15.28A.5.5 0 0 1 6 13.5c0-2.05.38-4.28 1.52-6.02A6.6 6.6 0 0 1 13 4.5V2.43a.5.5 0 0 1 .3-.39M14 5a.5.5 0 0 1-.5.5c-2.59 0-4.18 1.05-5.14 2.52a9 9 0 0 0-1.25 3.69 11 11 0 0 1 1.56-1.54 7.8 7.8 0 0 1 4.83-1.85c.28 0 .5.22.5.5v1.56L17.75 7 14 3.62z"]),G4=re("ColorRegular","1em",["M10 2a8 8 0 0 1 3.39 15.25c-1.09.5-2.33.44-3.3-.06a2.9 2.9 0 0 1-1.64-2.73q.04-.68.14-1.24.1-.59.14-1.02.03-.44-.08-.73-.09-.3-.45-.57a1 1 0 0 0-.84-.24q-.43.09-1.02.39c-.73.36-1.77.94-2.97.33-1.1-.56-1.43-1.87-1.22-2.92A8 8 0 0 1 10 2m0 1a7 7 0 0 0-6.87 5.66c-.15.78.13 1.54.69 1.83.68.35 1.25.07 2.08-.34.38-.18.83-.4 1.31-.48.52-.07 1.06.03 1.59.43q.58.44.79 1.02c.14.38.16.77.14 1.14s-.1.75-.15 1.12q-.1.55-.13 1.12c-.03.8.42 1.44 1.1 1.8.7.36 1.62.42 2.41.04A7 7 0 0 0 10 3m2.5 10a1 1 0 1 1 0 2 1 1 0 0 1 0-2m2-2.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m-2-2.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2m-3-.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2"]),X4=re("PaintBrushRegular","1em",["M5.5 2a.5.5 0 0 0-.5.5V11c0 1.1.9 2 2 2h1v3a2 2 0 1 0 4 0v-3h1a2 2 0 0 0 2-2V2.5a.5.5 0 0 0-.5-.5zm.5 8h8v1a1 1 0 0 1-1 1h-1.5a.5.5 0 0 0-.5.5V16a1 1 0 1 1-2 0v-3.5a.5.5 0 0 0-.5-.5H7a1 1 0 0 1-1-1zm8-1H6V3h4v1.5a.5.5 0 0 0 1 0V3h1v2.5a.5.5 0 0 0 1 0V3h1z"]),tm=re("PersonRegular","1em",["M10 2a4 4 0 1 0 0 8 4 4 0 0 0 0-8M7 6a3 3 0 1 1 6 0 3 3 0 0 1-6 0m-2 5a2 2 0 0 0-2 2c0 1.7.83 2.97 2.13 3.8A9 9 0 0 0 10 18c1.85 0 3.58-.39 4.87-1.2A4.4 4.4 0 0 0 17 13a2 2 0 0 0-2-2zm-1 2a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1c0 1.3-.62 2.28-1.67 2.95A8 8 0 0 1 10 17a8 8 0 0 1-4.33-1.05A3.4 3.4 0 0 1 4 13"]),K4=re("PersonFeedbackRegular","1em",["M10.5 12c.83 0 1.5.67 1.5 1.5v.5c0 1.97-1.86 4-5 4s-5-2.03-5-4v-.5c0-.83.67-1.5 1.5-1.5zm0 1h-7a.5.5 0 0 0-.5.5v.5c0 1.44 1.43 3 4 3s4-1.56 4-3v-.5a.5.5 0 0 0-.5-.5M7 5.5A2.75 2.75 0 1 1 7 11a2.75 2.75 0 0 1 0-5.5M16 2a2 2 0 0 1 2 1.85V6a2 2 0 0 1-1.85 2H14.5l-1.2 1.6a1 1 0 0 1-1.78-.38l-.01-.1V9l-.01-1.07-.08-.01a2 2 0 0 1-1.4-1.6l-.01-.17L10 6V4a2 2 0 0 1 1.85-2H16M7 6.5A1.75 1.75 0 1 0 7 10a1.75 1.75 0 0 0 0-3.5M16 3h-4a1 1 0 0 0-1 .88V6a1 1 0 0 0 .88 1h.62v2L14 7h2a1 1 0 0 0 1-.88V4a1 1 0 0 0-.88-1z"]),rm=re("BoardRegular","1em",["M3 6a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3zm3-2a2 2 0 0 0-2 2v1.06L9.5 7V4zm4.5 0v8H16V6a2 2 0 0 0-2-2zm5.5 9h-5.5v3H14a2 2 0 0 0 2-2zm-6.5 3V8L4 8.06V14c0 1.1.9 2 2 2z"]),Y4=re("CopyRegular","1em",["M7 7H5.5C4.67 7 4 7.67 4 8.5v6c0 .83.67 1.5 1.5 1.5h4c.65 0 1.2-.42 1.41-1h1.04a2.5 2.5 0 0 1-2.45 2h-4A2.5 2.5 0 0 1 3 14.5v-6A2.5 2.5 0 0 1 5.5 6H7zm7.5-4A2.5 2.5 0 0 1 17 5.5v6a2.5 2.5 0 0 1-2.5 2.5h-4A2.5 2.5 0 0 1 8 11.5v-6A2.5 2.5 0 0 1 10.5 3zm-4 1C9.67 4 9 4.67 9 5.5v6c0 .83.67 1.5 1.5 1.5h4c.83 0 1.5-.67 1.5-1.5v-6c0-.83-.67-1.5-1.5-1.5z"]),Q4=re("OpenRegular","1em",["M6 4a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2v-2.5a.5.5 0 0 1 1 0V14a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h2.5a.5.5 0 0 1 0 1zm5-.5c0-.28.22-.5.5-.5h5c.28 0 .5.22.5.5v5a.5.5 0 0 1-1 0V4.7l-4.15 4.15a.5.5 0 0 1-.7-.7L15.29 4H11.5a.5.5 0 0 1-.5-.5"]),Z4=re("WarningFilled","1em",["M7.37 3.56a3 3 0 0 1 5.26 0l5.5 10A3 3 0 0 1 15.5 18h-11a3 3 0 0 1-2.63-4.44zM10 12.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5m0-6.25a.5.5 0 0 0-.5.5v4a.5.5 0 0 0 1 0V7a.5.5 0 0 0-.5-.5"]),om=re("SaveRegular","1em",["M3 5c0-1.1.9-2 2-2h8.38a2 2 0 0 1 1.41.59l1.62 1.62A2 2 0 0 1 17 6.62V15a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1v-4.5c0-.83.67-1.5 1.5-1.5h7c.83 0 1.5.67 1.5 1.5V16a1 1 0 0 0 1-1V6.62a1 1 0 0 0-.3-.7L14.1 4.28a1 1 0 0 0-.71-.29H13v2.5c0 .83-.67 1.5-1.5 1.5h-4A1.5 1.5 0 0 1 6 6.5V4zm2 0v2.5c0 .28.22.5.5.5h4a.5.5 0 0 0 .5-.5V4zm7 12v-4.5a.5.5 0 0 0-.5-.5h-7a.5.5 0 0 0-.5.5V16z"]),J4=re("SaveEditRegular","1em",["M5 3a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h3l.06-.35.16-.65H6v-4.5c0-.28.22-.5.5-.5h5.44l1-1H6.5c-.83 0-1.5.67-1.5 1.5V16a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h1v2.5C6 7.33 6.67 8 7.5 8h4c.83 0 1.5-.67 1.5-1.5V4h.38a1 1 0 0 1 .7.3l1.63 1.61a1 1 0 0 1 .29.71V8q.52-.02 1 .13v-1.5a2 2 0 0 0-.59-1.42L14.8 3.59A2 2 0 0 0 13.38 3zm2 3.5V4h5v2.5a.5.5 0 0 1-.5.5h-4a.5.5 0 0 1-.5-.5m7.8 3.05-4.82 4.83a2 2 0 0 0-.58 1.02l-.37 1.5a.9.9 0 0 0 1.08 1.07l1.5-.37q.58-.16 1.01-.58l4.83-4.83a1.87 1.87 0 0 0-2.64-2.64"]),nm=re("TaskListSquareLtrRegular","1em",["M9.35 7.1a.5.5 0 0 0-.7-.7L7.23 7.8l-.4-.35a.5.5 0 0 0-.67.73l.75.69c.2.18.5.17.7-.02zm0 4.3c.2.2.2.5 0 .7L7.6 13.85a.5.5 0 0 1-.69.02l-.75-.69a.5.5 0 0 1 .68-.73l.4.36 1.4-1.41c.2-.2.52-.2.71 0M11 12a.5.5 0 0 0 0 1h2.5a.5.5 0 0 0 0-1zm-.5-4.5c0-.28.22-.5.5-.5h2.5a.5.5 0 0 1 0 1H11a.5.5 0 0 1-.5-.5M6 3a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zM4 6c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z"]),ez=re("InfoFilled","1em",["M18 10a8 8 0 1 0-16 0 8 8 0 0 0 16 0M9.5 8.91a.5.5 0 0 1 1 0v4.69a.5.5 0 0 1-1 0V8.9m-.25-2.16a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0"]),tz=re("LineHorizontal3Regular","1em",["M2 4.5c0-.28.22-.5.5-.5h15a.5.5 0 0 1 0 1h-15a.5.5 0 0 1-.5-.5m0 5c0-.28.22-.5.5-.5h15a.5.5 0 0 1 0 1h-15a.5.5 0 0 1-.5-.5m.5 4.5a.5.5 0 0 0 0 1h15a.5.5 0 0 0 0-1z"]),rz=re("LinkRegular","1em",["M8 6a.5.5 0 0 1 .09 1H6a3 3 0 0 0-.2 6H8a.5.5 0 0 1 .09 1H6a4 4 0 0 1-.22-8H8m6 0a4 4 0 0 1 .22 8H12a.5.5 0 0 1-.09-1H14a3 3 0 0 0 .2-6H12a.5.5 0 0 1-.09-1H14M6 9.5h8a.5.5 0 0 1 .09 1H6a.5.5 0 0 1-.09-1zh8z"]),rd=re("AddRegular","1em",["M10 2.5c.28 0 .5.22.5.5v6.5H17a.5.5 0 0 1 0 1h-6.5V17a.5.5 0 0 1-1 0v-6.5H3a.5.5 0 0 1 0-1h6.5V3c0-.28.22-.5.5-.5"]),oz=re("EyedropperRegular","1em",["M17.25 2.75a2.6 2.6 0 0 0-3.71 0L12.5 3.8l-.35-.35a1.5 1.5 0 0 0-2.12 0l-.59.59a1.5 1.5 0 0 0 0 2.12l.35.35-6.35 6.35A1.5 1.5 0 0 0 3 13.91v.5l-.96 2.26a1 1 0 0 0 1.32 1.31L5.6 17h.49c.4 0 .78-.16 1.06-.44l6.35-6.35.35.35a1.5 1.5 0 0 0 2.12 0l.59-.58a1.5 1.5 0 0 0 0-2.13l-.35-.35 1.04-1.04a2.6 2.6 0 0 0 0-3.7m-3 .71a1.62 1.62 0 0 1 2.29 2.3l-1.4 1.39a.5.5 0 0 0 0 .7l.71.71c.2.2.2.51 0 .7l-.58.6a.5.5 0 0 1-.71 0l-4.41-4.42a.5.5 0 0 1 0-.7l.58-.59c.2-.2.52-.2.71 0l.7.7a.5.5 0 0 0 .71 0zM12.79 9.5l-6.35 6.35a.5.5 0 0 1-.35.15H5.5a1 1 0 0 0-.2.04l-2.34 1.03 1-2.36a1 1 0 0 0 .04-.2v-.6a.5.5 0 0 1 .15-.35l6.35-6.35z"]),im=re("CircleFilled","1em",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16"]),nz=re("ClockRegular","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16m0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14m-.5 2a.5.5 0 0 1 .5.41V10h2.5a.5.5 0 0 1 .09 1H9.5a.5.5 0 0 1-.5-.41V5.5c0-.28.22-.5.5-.5"]),iz=re("LightbulbFilamentRegular","1em",["M9.5 6.5a.5.5 0 0 1 1 0v1a.5.5 0 0 1-1 0zm3.35.94a.5.5 0 0 0-.7 0l-.71.71a.5.5 0 0 0 .7.7l.71-.7a.5.5 0 0 0 0-.7m-5 0a.5.5 0 1 0-.7.71l.7.7a.5.5 0 1 0 .71-.7zM10 2c3.31 0 6 2.6 6 5.8q-.01 2.53-2.2 4.6a1 1 0 0 0-.15.2l-.02.09-.94 3.92a1.8 1.8 0 0 1-1.67 1.38l-.15.01H9.13c-.82 0-1.54-.52-1.78-1.26l-.04-.14-.93-3.91a.6.6 0 0 0-.17-.3A6.3 6.3 0 0 1 4 8.04L4 7.8v-.2A5.9 5.9 0 0 1 10 2M7.96 15l.31 1.33.03.1c.1.3.38.52.71.56l.12.01h1.81a.9.9 0 0 0 .75-.53l.03-.1.32-1.37zM10 3a4.9 4.9 0 0 0-4.98 4.41L5 7.63V8q.08 1.95 1.9 3.67.27.27.4.64l.05.15.37 1.54H9.5V9.5a.5.5 0 1 1 1 0V14h1.79l.38-1.61.05-.16q.13-.32.39-.56Q15 9.87 15 7.8A4.9 4.9 0 0 0 10 3"]),az=re("PinRegular","1em",["M10.12 3.14a2 2 0 0 1 3.2-.52l4.06 4.05a2 2 0 0 1-.52 3.2l-3.46 1.74a1.5 1.5 0 0 0-.72.78L11.25 16a1 1 0 0 1-1.64.33L7 13.7 3.7 17H3v-.7L6.3 13l-2.62-2.61a1 1 0 0 1 .34-1.64L7.6 7.32q.52-.23.78-.72zm2.5.18a1 1 0 0 0-1.6.26L9.29 7.04a2.5 2.5 0 0 1-1.31 1.2L4.39 9.69l5.93 5.93 1.43-3.59a2.5 2.5 0 0 1 1.2-1.3l3.47-1.74a1 1 0 0 0 .25-1.6z"]),am=re("ArrowClockwiseRegular","1em",["M4 10a6 6 0 0 1 10.47-4H12.5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-1 0v1.6a7 7 0 1 0 1.98 4.36.5.5 0 1 0-1 .08L16 10a6 6 0 0 1-12 0"]),sz=re("ArrowDownloadRegular","1em",["M15.5 17a.5.5 0 0 1 .09 1H4.5a.5.5 0 0 1-.09-1H15.5M10 2a.5.5 0 0 1 .5.41V14.3l3.64-3.65a.5.5 0 0 1 .64-.06l.07.06c.17.17.2.44.06.63l-.06.07-4.5 4.5a.5.5 0 0 1-.25.14L10 16a.5.5 0 0 1-.4-.2l-4.46-4.45a.5.5 0 0 1 .64-.76l.07.06 3.65 3.64V2.5c0-.27.22-.5.5-.5"]),lz=re("ArrowLeftRegular","1em",["M9.16 16.87a.5.5 0 1 0 .67-.74L3.67 10.5H17.5a.5.5 0 0 0 0-1H3.67l6.16-5.63a.5.5 0 0 0-.67-.74L2.24 9.44a.75.75 0 0 0 0 1.11z"]),cz=re("ArrowRedoRegular","1em",["M15 2.5a.5.5 0 0 1 1 0v4.9a.6.6 0 0 1-.6.6h-4.9a.5.5 0 0 1 0-1h3.6l-3.48-3.02a4 4 0 1 0-5.24 6.04l8.17 7.1a.5.5 0 1 1-.66.76l-8.17-7.1a5 5 0 1 1 6.56-7.55L15 6.46z"],{flipInRtl:!0}),sm=re("ArrowResetRegular","1em",["M5.85 2.65c.2.2.2.5 0 .7L4.21 5H11a6 6 0 1 1-6 6 .5.5 0 0 1 1 0 5 5 0 1 0 5-5H4.2l1.65 1.65a.5.5 0 1 1-.7.7l-2.5-2.5a.5.5 0 0 1 0-.7l2.5-2.5c.2-.2.5-.2.7 0"],{flipInRtl:!0}),lm=re("ArrowSyncRegular","1em",["M11.41 3.64a.5.5 0 0 0 0-.71L9.3.8a.5.5 0 0 0-.7.7l1 1a7.5 7.5 0 0 0-4.08 13.5.5.5 0 0 0 .6-.8A6.5 6.5 0 0 1 10.14 3.5L8.59 5.04a.5.5 0 0 0 .7.7zM8.6 16.36a.5.5 0 0 0 0 .71l2.12 2.12a.5.5 0 0 0 .7-.7l-1-1a7.5 7.5 0 0 0 4.07-13.5.5.5 0 1 0-.59.8q.37.28.7.61a6.5 6.5 0 0 1-4.73 11.1l1.55-1.55a.5.5 0 1 0-.7-.7z"],{flipInRtl:!0}),uz=re("ArrowUndoRegular","1em",["M5 2.5a.5.5 0 0 0-1 0v4.9c0 .33.27.6.6.6h4.9a.5.5 0 0 0 0-1H5.9l3.48-3.02a4 4 0 0 1 5.25 6.04l-8.17 7.1a.5.5 0 0 0 .65.76l8.17-7.1a5 5 0 0 0-6.56-7.55L5 6.46z"],{flipInRtl:!0}),cm=re("ArrowUploadRegular","1em",["M15 3a.5.5 0 0 0 .09-.99H4a.5.5 0 0 0-.09.98L4 3zM9.5 18a.5.5 0 0 0 .5-.41V5.7l3.64 3.65c.17.18.44.2.64.06l.07-.06a.5.5 0 0 0 .06-.63l-.06-.07-4.5-4.5A.5.5 0 0 0 9.6 4h-.1a.5.5 0 0 0-.4.19L4.64 8.65a.5.5 0 0 0 .64.76l.07-.06L9 5.71V17.5c0 .28.22.5.5.5"]),dz=re("TextFontRegular","1em",["M6 2c.2 0 .4.13.47.32L8.9 8.57v.02l.18.44-.53 1.4-.46-1.17H3.91l-.94 2.42a.5.5 0 1 1-.94-.36L3.1 8.59v-.02l2.43-6.25A.5.5 0 0 1 6 2M4.3 8.26h3.4L6 3.88zm8.17-2.94a.5.5 0 0 0-.94 0L7.15 17H6.5a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1h-.28l1.13-3h5.37l1.15 3h-.37a.5.5 0 1 0 0 1h2a.5.5 0 1 0 0-1h-.56zM14.34 13H9.72l2.29-6.09z"]),um=re("ChartMultipleRegular","1em",["M16.52 9c.26 0 .48-.2.48-.46V8.5A6.5 6.5 0 0 0 10.5 2h-.04a.47.47 0 0 0-.46.48V8.5c0 .28.22.5.5.5zM11 3.02A5.5 5.5 0 0 1 15.98 8H11zM8 9V5.1A5 5 0 0 0 9 15v1a6 6 0 0 1-.5-11.98c.28-.02.5.2.5.48V9a1 1 0 0 0 1 1h4.5c.28 0 .5.22.48.5l-.06.5H10a2 2 0 0 1-2-2m9 1a1 1 0 0 0-1 1v7a1 1 0 1 0 2 0v-7a1 1 0 0 0-1-1m-3 2a1 1 0 0 0-1 1v5a1 1 0 1 0 2 0v-5a1 1 0 0 0-1-1m-4 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0z"]),fz=re("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.06z"]),pz=re("CheckmarkCircleFilled","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16m3.36 5.65a.5.5 0 0 0-.64-.06l-.07.06L9 11.3 7.35 9.65l-.07-.06a.5.5 0 0 0-.7.7l.07.07 2 2 .07.06c.17.11.4.11.56 0l.07-.06 4-4 .07-.08a.5.5 0 0 0-.06-.63"]),pn=re("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 0"]),hz=re("ChevronLeftFilled","1em",["M12.27 15.8a.75.75 0 0 1-1.06-.03l-5-5.25a.75.75 0 0 1 0-1.04l5-5.25a.75.75 0 1 1 1.08 1.04L7.8 10l4.5 4.73c.29.3.28.78-.02 1.06"]),gz=re("ChevronLeftRegular","1em",["M12.35 15.85a.5.5 0 0 1-.7 0L6.16 10.4a.55.55 0 0 1 0-.78l5.49-5.46a.5.5 0 1 1 .7.7L7.2 10l5.16 5.15c.2.2.2.5 0 .7"]),mz=re("ChevronRightFilled","1em",["M7.73 4.2a.75.75 0 0 1 1.06.03l5 5.25c.28.3.28.75 0 1.04l-5 5.25a.75.75 0 1 1-1.08-1.04L12.2 10l-4.5-4.73a.75.75 0 0 1 .02-1.06"]),dm=re("ChevronRightRegular","1em",["M7.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.47a.5.5 0 0 1-.7-.71L12.8 10 7.65 4.85a.5.5 0 0 1 0-.7"]),vz=re("HomeRegular","1em",["M9 2.39a1.5 1.5 0 0 1 2 0l5.5 4.94c.32.28.5.69.5 1.12v7.05c0 .83-.67 1.5-1.5 1.5H13a1.5 1.5 0 0 1-1.5-1.5V12a.5.5 0 0 0-.5-.5H9a.5.5 0 0 0-.5.5v3.5c0 .83-.67 1.5-1.5 1.5H4.5A1.5 1.5 0 0 1 3 15.5V8.45c0-.43.18-.84.5-1.12zm1.33.74a.5.5 0 0 0-.66 0l-5.5 4.94a.5.5 0 0 0-.17.38v7.05c0 .28.22.5.5.5H7a.5.5 0 0 0 .5-.5V12c0-.83.67-1.5 1.5-1.5h2c.83 0 1.5.67 1.5 1.5v3.5c0 .28.22.5.5.5h2.5a.5.5 0 0 0 .5-.5V8.45a.5.5 0 0 0-.17-.38z"]),bz=re("MoneyRegular","1em",["M7 9a2 2 0 1 1 4 0 2 2 0 0 1-4 0m2-1a1 1 0 1 0 0 2 1 1 0 0 0 0-2M3.5 4C2.67 4 2 4.67 2 5.5v7c0 .83.67 1.5 1.5 1.5h11c.83 0 1.5-.67 1.5-1.5v-7c0-.83-.67-1.5-1.5-1.5zM3 5.5c0-.28.22-.5.5-.5H5v1a1 1 0 0 1-1 1H3zM3 8h1a2 2 0 0 0 2-2V5h6v1c0 1.1.9 2 2 2h1v2h-1a2 2 0 0 0-2 2v1H6v-1a2 2 0 0 0-2-2H3zm10-3h1.5c.28 0 .5.22.5.5V7h-1a1 1 0 0 1-1-1zm2 6v1.5a.5.5 0 0 1-.5.5H13v-1a1 1 0 0 1 1-1zM5 13H3.5a.5.5 0 0 1-.5-.5V11h1a1 1 0 0 1 1 1zm12-.5a2.5 2.5 0 0 1-2.5 2.5H4.09c.2.58.76 1 1.41 1h9a3.5 3.5 0 0 0 3.5-3.5v-5c0-.65-.42-1.2-1-1.41z"]),yz=re("BuildingRegular","1em",["M6.75 6.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5m.75 2.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0m-.75 3.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5m3.75-6.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0M9.75 9.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5m.75 2.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0m2.25.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5M4.5 18a.5.5 0 0 1-.5-.5v-14C4 2.67 4.67 2 5.5 2h6c.83 0 1.5.67 1.5 1.5V8h1.5c.83 0 1.5.67 1.5 1.5v8a.5.5 0 0 1-.5.5zM5 3.5V17h2v-2.5c0-.28.22-.5.5-.5h5c.28 0 .5.22.5.5V17h2V9.5a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 1-.5-.5v-5a.5.5 0 0 0-.5-.5h-6a.5.5 0 0 0-.5.5M12 15h-1.5v2H12zm-2.5 0H8v2h1.5z"]),xz=re("AttachRegular","1em",["m4.83 10.48 5.65-5.65a3 3 0 0 1 4.25 4.24L8 15.8a1.5 1.5 0 0 1-2.12-2.12l6-6.01a.5.5 0 1 0-.7-.71l-6 6.01a2.5 2.5 0 0 0 3.53 3.54l6.71-6.72a4 4 0 1 0-5.65-5.66L4.12 9.78a.5.5 0 0 0 .7.7"]),od=re("DeleteRegular","1em",["M8.5 4h3a1.5 1.5 0 0 0-3 0m-1 0a2.5 2.5 0 0 1 5 0h5a.5.5 0 0 1 0 1h-1.05l-1.2 10.34A3 3 0 0 1 12.27 18H7.73a3 3 0 0 1-2.98-2.66L3.55 5H2.5a.5.5 0 0 1 0-1zM5.74 15.23A2 2 0 0 0 7.73 17h4.54a2 2 0 0 0 1.99-1.77L15.44 5H4.56zM8.5 7.5c.28 0 .5.22.5.5v6a.5.5 0 0 1-1 0V8c0-.28.22-.5.5-.5M12 8a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0z"]),fm=re("FilterRegular","1em",["M7.5 13h5a.5.5 0 0 1 .09 1H7.5a.5.5 0 0 1-.09-1zh5zm-2-4h9a.5.5 0 0 1 .09 1H5.5a.5.5 0 0 1-.09-1zh9zm-2-4h13a.5.5 0 0 1 .09 1H3.5a.5.5 0 0 1-.09-1zh13z"]),wz=re("DiamondDismissFilled","1em",["M7.88 1.88a3 3 0 0 1 4.24 0l6 6a3 3 0 0 1 0 4.24l-6 6a3 3 0 0 1-4.24 0l-6-6a3 3 0 0 1 0-4.24zM13.1 6.9a.5.5 0 0 0-.7 0L10 9.3 7.6 6.9a.5.5 0 0 0-.7.7L9.3 10l-2.4 2.4a.5.5 0 0 0 .7.7l2.4-2.4 2.4 2.4a.5.5 0 0 0 .7-.7L10.7 10l2.4-2.4a.5.5 0 0 0 0-.7"]),kz=re("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-.07z"]),Sz=re("FolderOpenRegular","1em",["M3 5.5v6.6l1.5-2.6A3 3 0 0 1 7.1 8H15v-.5c0-.83-.67-1.5-1.5-1.5h-4a.5.5 0 0 1-.35-.15l-1.71-1.7A.5.5 0 0 0 7.09 4H4.5C3.67 4 3 4.67 3 5.5m1.28 10.48.22.02h9.4a2 2 0 0 0 1.73-1l2.17-3.75A1.5 1.5 0 0 0 16.5 9H7.1a2 2 0 0 0-1.73 1L3.2 13.75a1.5 1.5 0 0 0 1.08 2.23M2 14.46V5.5A2.5 2.5 0 0 1 4.5 3h2.59c.4 0 .78.16 1.06.44L9.7 5h3.79A2.5 2.5 0 0 1 16 7.5V8h.5a2.5 2.5 0 0 1 2.16 3.75L16.5 15.5a3 3 0 0 1-2.6 1.5H4.5a2.5 2.5 0 0 1-1.62-.6A2.5 2.5 0 0 1 2 14.46"],{flipInRtl:!0}),Bz=re("RocketRegular","1em",["M10.76 6.43a2 2 0 1 1 2.82 2.82 2 2 0 0 1-2.82-2.82m2.11.7a1 1 0 1 0-1.4 1.42 1 1 0 0 0 1.4-1.42m-1.12 7.37a1.5 1.5 0 0 1-1.7-.3l-.61-.6-.74 1.22a.5.5 0 0 1-.78.1L5.1 12.09a.5.5 0 0 1 .1-.79l1.22-.73-.61-.6a1.5 1.5 0 0 1-.3-1.71L4.38 7.14a.5.5 0 0 1 0-.7l1.06-1.07a3 3 0 0 1 3.42-.59l.93-.93a6.3 6.3 0 0 1 6.33-1.56c.76.24 1.36.83 1.6 1.6a6.3 6.3 0 0 1-1.56 6.32l-.94.94a3 3 0 0 1-.58 3.41l-1.06 1.06a.5.5 0 0 1-.71 0zm4.08-11.26a5.3 5.3 0 0 0-5.33 1.31l-.81.82-.7.7h-.01L6.86 8.2l-.4.4a.5.5 0 0 0 .05.66l4.24 4.24c.18.18.46.2.66.05l.4-.4 2.12-2.12.7-.71.82-.81a5.3 5.3 0 0 0 1.31-5.33c-.14-.45-.49-.8-.93-.94m-3.31 10.62.7.7.7-.7a2 2 0 0 0 .53-1.93zm-4.44-8.3a2 2 0 0 0-1.93.52l-.7.7.7.71zm.63 7.31L7.14 11.3l-.89.53 1.93 1.93zm-2.9 2.04a.5.5 0 1 0-.71-.7l-1.77 1.76a.5.5 0 1 0 .7.71zM4.38 12.8c.2.2.2.51 0 .7l-.71.72a.5.5 0 0 1-.7-.71l.7-.71c.2-.2.51-.2.7 0m2.83 3.54a.5.5 0 0 0-.7-.71l-.72.7a.5.5 0 1 0 .7.72z"]),zz=re("GridDotsRegular","1em",["M5.25 4a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0m12 12a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0M16 11.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5M17.25 4a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0M10 17.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5M11.25 10a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0M10 5.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5M5.25 16a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0M4 11.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5"]),jz=re("QuestionCircleRegular","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16m0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14m0 10.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m0-8a2.5 2.5 0 0 1 1.65 4.38l-.15.12-.22.17-.09.07-.16.15c-.33.36-.53.85-.53 1.61a.5.5 0 0 1-1 0 3.2 3.2 0 0 1 1.16-2.62l.25-.19.12-.1A1.5 1.5 0 0 0 10 6.5c-.83 0-1.5.67-1.5 1.5a.5.5 0 0 1-1 0A2.5 2.5 0 0 1 10 5.5"]),_z=re("Warning12Filled","12",["M4.28 1.97a2 2 0 0 1 3.43 0l3 5A2 2 0 0 1 9 10H3A2 2 0 0 1 1.3 6.98zM6 6.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5M6 3.5a.5.5 0 0 0-.5.5v1.5a.5.5 0 0 0 1 0V4a.5.5 0 0 0-.5-.5"]),pm=re("PresenceAvailable10Filled","10",["M5 10A5 5 0 1 0 5 0a5 5 0 0 0 0 10m2.1-5.9L4.85 6.35a.5.5 0 0 1-.7 0l-1-1a.5.5 0 0 1 .7-.7l.65.64 1.9-1.9a.5.5 0 0 1 .7.71"]),hm=re("PresenceAvailable10Regular","10",["M5 0a5 5 0 1 0 0 10A5 5 0 0 0 5 0M1 5a4 4 0 1 1 8 0 4 4 0 0 1-8 0m6.1-1.6c.2.2.2.5 0 .7L4.85 6.35a.5.5 0 0 1-.7 0l-1-1a.5.5 0 1 1 .7-.7l.65.64 1.9-1.9c.2-.19.5-.19.7 0"]),Cz=re("PresenceAvailable12Filled","12",["M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12m2.53-6.72L5.78 8.03c-.3.3-.77.3-1.06 0l-1-1a.75.75 0 0 1 1.06-1.06l.47.47 2.22-2.22a.75.75 0 0 1 1.06 1.06"]),Nz=re("PresenceAvailable12Regular","12",["M6 0a6 6 0 1 0 0 12A6 6 0 0 0 6 0M1.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0m7.03-1.78c.3.3.3.77 0 1.06L5.78 8.03c-.3.3-.77.3-1.06 0l-1-1a.75.75 0 0 1 1.06-1.06l.47.47 2.22-2.22c.3-.3.77-.3 1.06 0"]),Tz=re("PresenceAvailable16Filled","16",["M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m3.7-9.3-4 4a1 1 0 0 1-1.41 0l-2-2a1 1 0 1 1 1.42-1.4L7 8.58l3.3-3.3a1 1 0 0 1 1.4 1.42"]),Pz=re("PresenceAvailable16Regular","16",["M11.7 6.7a1 1 0 0 0-1.4-1.4L7 8.58l-1.3-1.3a1 1 0 0 0-1.4 1.42l2 2a1 1 0 0 0 1.4 0zM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8m8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2"]),gm=re("PresenceAvailable20Filled","20",["M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20m4.2-11.8-4.5 4.5a1 1 0 0 1-1.4 0l-2-2a1 1 0 1 1 1.4-1.4L9 10.58l3.8-3.8a1 1 0 1 1 1.4 1.42"]),mm=re("PresenceAvailable20Regular","20",["M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20M2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0m12.2-3.2a1 1 0 0 1 0 1.4l-4.5 4.5a1 1 0 0 1-1.4 0l-2-2a1 1 0 0 1 1.4-1.4L9 10.58l3.8-3.8a1 1 0 0 1 1.4 0"]),vm=re("PresenceAway10Filled","10",["M5 10A5 5 0 1 0 5 0a5 5 0 0 0 0 10m0-7v1.8l1.35 1.35a.5.5 0 1 1-.7.7l-1.5-1.5A.5.5 0 0 1 4 5V3a.5.5 0 0 1 1 0"]),Rz=re("PresenceAway12Filled","12",["M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12m.5-8.75v2.4l1.49 1.28A.75.75 0 1 1 7 8.07l-1.75-1.5A.8.8 0 0 1 5 6V3.25a.75.75 0 0 1 1.5 0"]),Mz=re("PresenceAway16Filled","16",["M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m.5-11.5v3.02l2.12 1.7a1 1 0 1 1-1.24 1.56l-2.5-2A1 1 0 0 1 6.5 8V4.5a1 1 0 0 1 2 0"]),bm=re("PresenceAway20Filled","20",["M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20m0-14V9.6l2.7 2.7a1 1 0 0 1-1.4 1.42l-3-3A1 1 0 0 1 8 10V6a1 1 0 1 1 2 0"]),ym=re("PresenceBlocked10Regular","10",["M10 5A5 5 0 1 0 0 5a5 5 0 0 0 10 0M9 5a4 4 0 0 1-6.45 3.16l5.61-5.61C8.69 3.22 9 4.08 9 5M7.45 1.84 1.84 7.45a4 4 0 0 1 5.61-5.61"]),Ez=re("PresenceBlocked12Regular","12",["M12 6A6 6 0 1 1 0 6a6 6 0 0 1 12 0m-1.5 0c0-.97-.3-1.87-.83-2.6L3.39 9.66A4.5 4.5 0 0 0 10.5 6M8.6 2.33a4.5 4.5 0 0 0-6.28 6.28z"]),Iz=re("PresenceBlocked16Regular","16",["M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0m-2 0c0-1.3-.41-2.5-1.1-3.48L4.51 12.9A6 6 0 0 0 14 8m-2.52-4.9a6 6 0 0 0-8.37 8.37z"]),xm=re("PresenceBlocked20Regular","20",["M20 10a10 10 0 1 0-20 0 10 10 0 0 0 20 0m-2 0a8 8 0 0 1-12.9 6.32L16.31 5.09A8 8 0 0 1 18 10m-3.1-6.32L3.69 14.91A8 8 0 0 1 14.91 3.68"]),wm=re("PresenceBusy10Filled","10",["M10 5A5 5 0 1 1 0 5a5 5 0 0 1 10 0"]),Fz=re("PresenceBusy12Filled","12",["M12 6A6 6 0 1 1 0 6a6 6 0 0 1 12 0"]),Az=re("PresenceBusy16Filled","16",["M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0"]),km=re("PresenceBusy20Filled","20",["M20 10a10 10 0 1 1-20 0 10 10 0 0 1 20 0"]),Sm=re("PresenceDnd10Filled","10",["M5 10A5 5 0 1 0 5 0a5 5 0 0 0 0 10M3.5 4.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1"]),Bm=re("PresenceDnd10Regular","10",["M5 0a5 5 0 1 0 0 10A5 5 0 0 0 5 0M1 5a4 4 0 1 1 8 0 4 4 0 0 1-8 0m2 0c0-.28.22-.5.5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 3 5"]),Dz=re("PresenceDnd12Filled","12",["M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12M3.75 5.25h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5"]),qz=re("PresenceDnd12Regular","12",["M6 0a6 6 0 1 0 0 12A6 6 0 0 0 6 0M1.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0M3 6c0-.41.34-.75.75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5A.75.75 0 0 1 3 6"]),Oz=re("PresenceDnd16Filled","16",["M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16M5.25 7h5.5a1 1 0 1 1 0 2h-5.5a1 1 0 1 1 0-2"]),Hz=re("PresenceDnd16Regular","16",["M5.25 7a1 1 0 0 0 0 2h5.5a1 1 0 1 0 0-2zM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8m8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2"]),zm=re("PresenceDnd20Filled","20",["M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20M7 9h6a1 1 0 1 1 0 2H7a1 1 0 1 1 0-2"]),jm=re("PresenceDnd20Regular","20",["M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20M2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0m4 0a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1"]),_m=re("PresenceOffline10Regular","10",["M6.85 3.15c.2.2.2.5 0 .7L5.71 5l1.14 1.15a.5.5 0 1 1-.7.7L5 5.71 3.85 6.85a.5.5 0 1 1-.7-.7L4.29 5 3.15 3.85a.5.5 0 1 1 .7-.7L5 4.29l1.15-1.14c.2-.2.5-.2.7 0M0 5a5 5 0 1 1 10 0A5 5 0 0 1 0 5m5-4a4 4 0 1 0 0 8 4 4 0 0 0 0-8"]),Lz=re("PresenceOffline12Regular","12",["M8.03 3.97c.3.3.3.77 0 1.06L7.06 6l.97.97a.75.75 0 0 1-1.06 1.06L6 7.06l-.97.97a.75.75 0 0 1-1.06-1.06L4.94 6l-.97-.97a.75.75 0 0 1 1.06-1.06l.97.97.97-.97c.3-.3.77-.3 1.06 0M0 6a6 6 0 1 1 12 0A6 6 0 0 1 0 6m6-4.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9"]),Vz=re("PresenceOffline16Regular","16",["M10.7 5.3a1 1 0 0 1 0 1.4L9.42 8l1.3 1.3a1 1 0 0 1-1.42 1.4L8 9.42l-1.3 1.3a1 1 0 0 1-1.4-1.42L6.58 8l-1.3-1.3a1 1 0 0 1 1.42-1.4L8 6.58l1.3-1.3a1 1 0 0 1 1.4 0M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8m8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2"]),Cm=re("PresenceOffline20Regular","20",["M13.7 6.3a1 1 0 0 1 0 1.4L11.42 10l2.3 2.3a1 1 0 0 1-1.42 1.4L10 11.42l-2.3 2.3a1 1 0 0 1-1.4-1.42L8.58 10l-2.3-2.3a1 1 0 0 1 1.42-1.4L10 8.58l2.3-2.3a1 1 0 0 1 1.4 0M0 10a10 10 0 1 1 20 0 10 10 0 0 1-20 0m10-8a8 8 0 1 0 0 16 8 8 0 0 0 0-16"]),Nm=re("PresenceOof10Regular","10",["M5.35 3.85a.5.5 0 1 0-.7-.7l-1.5 1.5a.5.5 0 0 0 0 .7l1.5 1.5a.5.5 0 1 0 .7-.7L4.7 5.5h1.8a.5.5 0 1 0 0-1H4.7zM5 0a5 5 0 1 0 0 10A5 5 0 0 0 5 0M1 5a4 4 0 1 1 8 0 4 4 0 0 1-8 0"]),Wz=re("PresenceOof12Regular","12",["M6.28 4.53a.75.75 0 0 0-1.06-1.06l-2 2c-.3.3-.3.77 0 1.06l2 2a.75.75 0 0 0 1.06-1.06l-.72-.72h2.69a.75.75 0 1 0 0-1.5h-2.7zM6 0a6 6 0 1 0 0 12A6 6 0 0 0 6 0M1.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0"]),$z=re("PresenceOof16Regular","16",["M8.2 6.2a1 1 0 1 0-1.4-1.4L4.3 7.3a1 1 0 0 0 0 1.4l2.5 2.5a1 1 0 0 0 1.4-1.4L7.42 9H11a1 1 0 1 0 0-2H7.41zM8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0M2 8a6 6 0 1 1 12 0A6 6 0 0 1 2 8"]),Tm=re("PresenceOof20Regular","20",["M10.7 7.7A1 1 0 1 0 9.28 6.3l-3 3a1 1 0 0 0 0 1.41l3 3a1 1 0 1 0 1.42-1.41l-1.3-1.3H13a1 1 0 1 0 0-2H9.4zM10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20M2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0"]),Pm=re("PresenceUnknown10Regular","10",["M5 1a4 4 0 1 0 0 8 4 4 0 0 0 0-8M0 5a5 5 0 1 1 10 0A5 5 0 0 1 0 5"]),Uz=re("PresenceUnknown12Regular","12",["M6 1.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9M0 6a6 6 0 1 1 12 0A6 6 0 0 1 0 6"]),Gz=re("PresenceUnknown16Regular","16",["M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8"]),Rm=re("PresenceUnknown20Regular","20",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16M0 10a10 10 0 1 1 20 0 10 10 0 0 1-20 0"]),Mm=re("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-.04"]),Xz=re("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.04"]),Kz=re("CheckmarkCircle12Filled","12",["M1 6a5 5 0 1 1 10 0A5 5 0 0 1 1 6m7.35-.9a.5.5 0 1 0-.7-.7L5.5 6.54 4.35 5.4a.5.5 0 1 0-.7.7l1.5 1.5c.2.2.5.2.7 0z"]),Yz=re("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-2z"]),Qz=re("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.5z"]),Zz=re("ErrorCircle24Regular","24",["M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m0 11a1 1 0 1 1 0 2 1 1 0 0 1 0-2M12 7c.37 0 .69.28.74.65v4.6a.75.75 0 0 1-1.48.1l-.01-.1v-4.5c0-.41.33-.75.74-.75"]),Jz=re("DiamondDismiss12Filled","12",["M4.59 1.09a2 2 0 0 1 2.82 0l3.5 3.5a2 2 0 0 1 0 2.82l-3.5 3.5a2 2 0 0 1-2.82 0l-3.5-3.5a2 2 0 0 1 0-2.83zm3.26 3.06a.5.5 0 0 0-.7 0L6 5.29 4.85 4.15a.5.5 0 0 0-.7.7L5.29 6 4.15 7.15a.5.5 0 0 0 .7.7L6 6.71l1.15 1.14a.5.5 0 1 0 .7-.7L6.71 6l1.14-1.15a.5.5 0 0 0 0-.7"]),e6=re("Dismiss20Regular","20",["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-.07z"]),t6=le({root:{mc9l5x:"fjseox"},visible:{mc9l5x:"f1w7gpdv"}},{d:[".fjseox{display:none;}",".f1w7gpdv{display:inline;}"]}),Em=(e,t)=>{const r=n=>{const{className:a,filled:s,...c}=n,u=t6();return y.createElement(y.Fragment,null,y.createElement(e,Object.assign({},c,{className:Q(u.root,s&&u.visible,P4,a)})),y.createElement(t,Object.assign({},c,{className:Q(u.root,!s&&u.visible,R4,a)})))};return r.displayName="CompoundIcon",r},De={...{durationUltraFast:50,durationFaster:100,durationFast:150,durationNormal:200,durationGentle:250,durationSlow:300,durationSlower:400,durationUltraSlow:500},...{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)"}};function r6(e){if(e.playState==="running"){var t;if(e.overallProgress!==void 0){var r;const u=(r=e.overallProgress)!==null&&r!==void 0?r:0;return u>0&&u<1}var n;const s=Number((n=e.currentTime)!==null&&n!==void 0?n:0);var a;const c=Number((a=(t=e.effect)===null||t===void 0?void 0:t.getTiming().duration)!==null&&a!==void 0?a:0);return s>0&&s<c}return!1}const o6={fill:"forwards"},n6={duration:1};function i6(e){return{set playbackRate(t){e.forEach(r=>{r.playbackRate=t})},setMotionEndCallbacks(t,r){const n=e.map(a=>new Promise((s,c)=>{a.onfinish=()=>s(),a.oncancel=()=>c()}));Promise.all(n).then(()=>{t()}).catch(()=>{r()})},isRunning(){return e.some(t=>r6(t))},dispose:()=>{e.length=0},cancel:()=>{e.forEach(t=>{t.cancel()})},pause:()=>{e.forEach(t=>{t.pause()})},play:()=>{e.forEach(t=>{t.play()})},finish:()=>{e.forEach(t=>{t.finish()})},reverse:()=>{e.forEach(t=>{t.reverse()})}}}function a6(){var e;const t=typeof window<"u"&&typeof((e=window.Animation)===null||e===void 0?void 0:e.prototype.persist)=="function";return y.useCallback((r,n,a)=>{const s=Array.isArray(n)?n:[n],{isReducedMotion:c}=a,u=s.map(f=>{const{keyframes:p,reducedMotion:g=n6,...v}=f,{keyframes:x=p,...w}=g,S=c?x:p,k={...o6,...v,...c&&w};try{const z=r.animate(S,k);if(t)z?.persist();else{const P=S[S.length-1];var B;Object.assign((B=r.style)!==null&&B!==void 0?B:{},P)}return z}catch{return null}}).filter(f=>!!f);return i6(u)},[t])}function Im(){return a6()}function Fm(e){const t=y.useRef(void 0);return y.useImperativeHandle(e,()=>({setPlayState:r=>{if(r==="running"){var n;(n=t.current)===null||n===void 0||n.play()}if(r==="paused"){var a;(a=t.current)===null||a===void 0||a.pause()}},setPlaybackRate:r=>{t.current&&(t.current.playbackRate=r)}})),t}const s6="screen and (prefers-reduced-motion: reduce)";function Am(){const{targetDocument:e}=He();var t;const r=(t=e?.defaultView)!==null&&t!==void 0?t:null,n=y.useRef(!1),a=y.useCallback(()=>n.current,[]);return bt(()=>{if(r===null||typeof r.matchMedia!="function")return;const s=r.matchMedia(s6);s.matches&&(n.current=!0);const c=u=>{n.current=u.matches};return s.addEventListener("change",c),()=>{s.removeEventListener("change",c)}},[r]),a}const l6=["@fluentui/react-motion: Invalid child element.",`
10
+ `,"Motion factories require a single child element to be passed. ","That element element should support ref forwarding i.e. it should be either an intrinsic element (e.g. div) or a component that uses React.forwardRef()."].join("");function Dm(e,t=!0){const r=y.useRef(null);y.useEffect(()=>{},[t]);try{const n=y.Children.only(e);if(y.isValidElement(n))return[y.cloneElement(n,{ref:Oe(r,na(n))}),r]}catch{}throw new Error(l6)}const qm=y.createContext(void 0);qm.Provider;const Om=()=>{var e;return(e=y.useContext(qm))!==null&&e!==void 0?e:"default"},c6=Symbol("MOTION_DEFINITION");function Hm(e){return Object.assign(r=>{const{children:n,imperativeRef:a,onMotionFinish:s,onMotionStart:c,onMotionCancel:u,replayKey:f,...p}=r,g=p,[v,x]=Dm(n),w=Fm(a),S=y.useRef(!0),k=Om()==="skip",B=y.useRef({skipMotions:k,params:g}),z=Im(),P=Am(),j=ce(()=>{c?.(null)}),N=ce(()=>{s?.(null)}),M=ce(()=>{u?.(null)}),C=y.useCallback(I=>{j(),I.setMotionEndCallbacks(N,M),B.current.skipMotions&&I.finish()},[j,N,M]);return bt(()=>{B.current={skipMotions:k,params:g}}),bt(()=>{const I=x.current;if(I){const A=typeof e=="function"?e({element:I,...B.current.params}):e,ae=z(I,A,{isReducedMotion:P()});return w.current=ae,C(ae),()=>{ae.cancel()}}},[z,x,w,P,C]),bt(()=>{if(S.current)return;const I=w.current;I&&(I.cancel(),I.play(),C(I))},[f]),bt(()=>(S.current=!1,()=>{S.current=!0}),[]),v},{[c6]:typeof e=="function"?e:()=>e})}const Lm=y.createContext(void 0);Lm.Provider;function u6(e=!1,t=!1){const r=y.useRef(t?e:!0),n=mS(),a=y.useCallback(s=>{r.current!==s&&(r.current=s,n())},[n]);return y.useEffect(()=>{e&&(r.current=e)}),[e||r.current,a]}const Vm=Symbol("PRESENCE_MOTION_DEFINITION"),d6=Symbol.for("interruptablePresence");function oi(e){return Object.assign(t=>{const n={...y.useContext(Lm),...t},a=Om()==="skip",{appear:s,children:c,imperativeRef:u,onExit:f,onMotionFinish:p,onMotionStart:g,onMotionCancel:v,visible:x,unmountOnExit:w,...S}=n,k=S,[B,z]=u6(x,w),[P,j]=Dm(c,B),N=Fm(u),M=y.useRef({appear:s,params:k,skipMotions:a}),C=Im(),I=Pu(),A=Am(),ae=ce(te=>{g?.(null,{direction:te})}),de=ce(te=>{p?.(null,{direction:te}),te==="exit"&&w&&(z(!1),f?.())}),ee=ce(te=>{v?.(null,{direction:te})});return bt(()=>{M.current={appear:s,params:k,skipMotions:a}}),bt(()=>{const te=j.current;if(!te)return;let W;function Y(){W&&(O&&W.isRunning()||(W.cancel(),N.current=void 0))}const X=typeof e=="function"?e({element:te,...M.current.params}):e,O=X[d6];if(O&&(W=N.current,W&&W.isRunning()))return W.reverse(),Y;const Z=x?X.enter:X.exit,q=x?"enter":"exit",G=!M.current.appear&&I,K=M.current.skipMotions;return G||ae(q),W=C(te,Z,{isReducedMotion:A()}),G?(W.finish(),Y):(N.current=W,W.setMotionEndCallbacks(()=>de(q),()=>ee(q)),K&&W.finish(),Y)},[C,j,N,A,de,ae,ee,x]),y.useEffect(()=>{if(w&&!B){var te;(te=N.current)===null||te===void 0||te.dispose()}},[N,w,B]),B?P:null},{[Vm]:typeof e=="function"?e:()=>e},{In:Hm(typeof e=="function"?(...t)=>e(...t).enter:e.enter),Out:Hm(typeof e=="function"?(...t)=>e(...t).exit:e.exit)})}function f6(e,t){return n=>e({...t,...n})}function So(e,t){const r=e[Vm],n=f6(r,t);return oi(n)}const nd=y.createContext(void 0);function Gs(){return y.useContext(nd)}const Xs=y.forwardRef((e,t)=>y.createElement(nd.Provider,{value:t},e.children));Xs.displayName="MotionRefForwarder";const Wm=e=>y.createElement(nd.Provider,{value:void 0},e.children);Wm.displayName="MotionRefForwarderReset";function ha(e,t){const{as:r,children:n,...a}=e??{};if(e===null){const c=!t.defaultProps.visible&&t.defaultProps.unmountOnExit,u=(f,p)=>c?null:y.createElement(y.Fragment,null,p.children);return{[Ps]:u,[Gn]:t.elementType}}const s={...t.defaultProps,...a,[Gn]:t.elementType};return typeof n=="function"&&(s[Ps]=n),s}const p6=(e,t)=>{const{inline:r=!1,size:n="medium",...a}=e,s=h6(a,t),{dir:c}=He();let u;if(s.expandIconPosition==="end"?u=s.open?-90:90:u=s.open?90:c!=="rtl"?0:180,s.expandIcon){var f,p;(p=(f=s.expandIcon).children)!==null&&p!==void 0||(f.children=y.createElement(dm,{style:{transform:`rotate(${u}deg)`,transition:`transform ${De.durationNormal}ms ease-out`}}))}return{...s,inline:r,size:n}},h6=(e,t)=>{const{icon:r,button:n,expandIcon:a,expandIconPosition:s="start",...c}=e,{value:u,disabled:f,open:p}=Hg(),g=fa(w=>w.requestToggle),v=fa(w=>!w.collapsible&&w.openItems.length===1&&p),x=me(n,{elementType:"button",defaultProps:{disabled:f,disabledFocusable:v,"aria-expanded":p,type:"button"}});return x.onClick=ce(w=>{if(Cu(n)){var S;(S=n.onClick)===null||S===void 0||S.call(n,w)}w.defaultPrevented||g({value:u,event:w})}),{disabled:f,open:p,expandIconPosition:s,components:{root:"div",button:"button",expandIcon:"span",icon:"div"},root:me({ref:t,...c},{elementType:"div"}),icon:Ne(r,{elementType:"div"}),expandIcon:Ne(a,{renderByDefault:!0,defaultProps:{"aria-hidden":!0},elementType:"span"}),button:fn(x.as,x)}},g6=y.createContext(void 0),{Provider:m6}=g6,v6=(e,t)=>J(m6,{value:t.accordionHeader,children:J(e.root,{children:Le(e.button,{children:[e.expandIconPosition==="start"&&e.expandIcon&&J(e.expandIcon,{}),e.icon&&J(e.icon,{}),e.root.children,e.expandIconPosition==="end"&&e.expandIcon&&J(e.expandIcon,{})]})})}),Ks={root:"fui-AccordionHeader",button:"fui-AccordionHeader__button",expandIcon:"fui-AccordionHeader__expandIcon",icon:"fui-AccordionHeader__icon"},b6=le({resetButton:{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",Bv0vk6g:"f37px4s",fsow6f:"fgusgyc"},focusIndicator:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bqhya38:"f1j6vpng",Bwxa6fj:["f1pniga2","f1ffjurs"],Bdhvstf:"f987i1v",B7zbvrb:["f1ffjurs","f1pniga2"],Bm4h7ae:"f15bsgw9",B7ys5i9:"f14e48fq",Busjfv9:"f18yb2kv",Bhk32uz:"fd6o370",f6g5ot:0,Boxcth7:0,Bhdgwq3:0,hgwjuy:0,Bshpdp8:0,Bsom6fd:0,Blkhhs4:0,Bonggc9:0,Ddfuxk:0,i03rao:0,kclons:0,clg4pj:0,Bpqj9nj:0,B6dhp37:0,Bf4ptjt:0,Bqtpl0w:0,i4rwgc:"ffwy5si",Dah5zi:0,B1tsrr9:0,qqdqy8:0,Bkh64rk:0,e3fwne:"f3znvyf",J0r882:"f57olzd",Bule8hv:["f4stah7","fs1por5"],Bjwuhne:"f480a47",Ghsupd:["fs1por5","f4stah7"]},root:{sj55zd:"f19n0e5",De3pzq:"f1c21dwh",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5"},rootDisabled:{Bcmaq0h:"fwrgwhw",sj55zd:"f1s2aq7o"},rootInline:{mc9l5x:"f14t3ns0"},button:{qhf8xq:"f10pi13n",a9b677:"fly5x3f",B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["f1rmphuq","f26yw9j"],sshi5w:"f5pgtk9",mc9l5x:"f22iagw",Bt984gj:"f122n59",Bceei9c:"f1k6fduh",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B7ck84d:"f1ewtqcl"},buttonSmall:{sshi5w:"f1nxs5xn",Be2twd7:"fy9rknc"},buttonLarge:{Bg96gwp:"faaz57k",Be2twd7:"fod5ikn"},buttonExtraLarge:{Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"},buttonInline:{mc9l5x:"ftuwxu6"},buttonExpandIconEndNoIcon:{uwmqm3:["f1uw59to","fw5db7e"]},buttonExpandIconEnd:{z189sj:["f11gcy0p","f1ng84yb"]},buttonDisabled:{Bceei9c:"fdrzuqr"},expandIcon:{Bqenvij:"f1l02sjl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"},expandIconStart:{z189sj:["f1vdfbxk","f1f5gg8d"]},expandIconEnd:{Bh6795r:"fqerorx",Bnnss6s:"f1neuvcm",xawz:"flqd7gy",mc9l5x:"f22iagw",Brf1p80:"f9c4gz4",uwmqm3:["f1f5gg8d","f1vdfbxk"]},icon:{Bqenvij:"f1l02sjl",mc9l5x:"f22iagw",Bt984gj:"f122n59",z189sj:["f1vdfbxk","f1f5gg8d"],Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"}},{d:[".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}],".f37px4s{-webkit-appearance:button;}",".fgusgyc{text-align:unset;}",".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",'.f15bsgw9[data-fui-focus-visible]::after{content:"";}',".f14e48fq[data-fui-focus-visible]::after{position:absolute;}",".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}",".fd6o370[data-fui-focus-visible]::after{z-index:1;}",[".ffwy5si[data-fui-focus-visible]::after{border:2px solid var(--colorStrokeFocus2);}",{p:-2}],[".f3znvyf[data-fui-focus-visible]::after{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f57olzd[data-fui-focus-visible]::after{top:calc(2px * -1);}",".f4stah7[data-fui-focus-visible]::after{right:calc(2px * -1);}",".fs1por5[data-fui-focus-visible]::after{left:calc(2px * -1);}",".f480a47[data-fui-focus-visible]::after{bottom:calc(2px * -1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".f1s184ao{margin:0;}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fwrgwhw{background-image:none;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f14t3ns0{display:inline-block;}",".f10pi13n{position:relative;}",".fly5x3f{width:100%;}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",[".f1rmphuq{padding:0 var(--spacingHorizontalM) 0 var(--spacingHorizontalMNudge);}",{p:-1}],[".f26yw9j{padding:0 var(--spacingHorizontalMNudge) 0 var(--spacingHorizontalM);}",{p:-1}],".f5pgtk9{min-height:44px;}",".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f1k6fduh{cursor:pointer;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1ewtqcl{box-sizing:border-box;}",".f1nxs5xn{min-height:32px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".ftuwxu6{display:inline-flex;}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".fdrzuqr{cursor:not-allowed;}",".f1l02sjl{height:100%;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".fqerorx{flex-grow:1;}",".f1neuvcm{flex-shrink:1;}",".flqd7gy{flex-basis:0%;}",".f9c4gz4{justify-content:flex-end;}"],f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],m:[["@media (forced-colors: active){.f1j6vpng[data-fui-focus-visible]::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ffjurs[data-fui-focus-visible]::after{border-left-color:Highlight;}.f1pniga2[data-fui-focus-visible]::after{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f987i1v[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}]]}),y6=e=>{const t=b6();return e.root.className=Q(Ks.root,t.root,e.inline&&t.rootInline,e.disabled&&t.rootDisabled,e.root.className),e.button.className=Q(Ks.button,t.resetButton,t.button,t.focusIndicator,e.expandIconPosition==="end"&&!e.icon&&t.buttonExpandIconEndNoIcon,e.expandIconPosition==="end"&&t.buttonExpandIconEnd,e.inline&&t.buttonInline,e.size==="small"&&t.buttonSmall,e.size==="large"&&t.buttonLarge,e.size==="extra-large"&&t.buttonExtraLarge,e.disabled&&t.buttonDisabled,e.button.className),e.expandIcon&&(e.expandIcon.className=Q(Ks.expandIcon,t.expandIcon,e.expandIconPosition==="start"&&t.expandIconStart,e.expandIconPosition==="end"&&t.expandIconEnd,e.expandIcon.className)),e.icon&&(e.icon.className=Q(Ks.icon,t.icon,e.icon.className)),e};function x6(e){const{disabled:t,expandIconPosition:r,open:n,size:a}=e;return{accordionHeader:y.useMemo(()=>({disabled:t,expandIconPosition:r,open:n,size:a}),[t,r,n,a])}}const ga=y.forwardRef((e,t)=>{const r=p6(e,t),n=x6(r);return y6(r),Pe("useAccordionHeaderStyles_unstable")(r),v6(r,n)});ga.displayName="AccordionHeader";const $m=(e,t)=>{const r=e==="horizontal"?"maxWidth":"maxHeight",n=e==="horizontal"?"overflowX":"overflowY",s=`${e==="horizontal"?t.scrollWidth:t.scrollHeight}px`;return{sizeName:r,overflowName:n,toSize:s}},w6=({orientation:e,duration:t,easing:r,element:n,outSize:a="0",delay:s=0})=>{const{sizeName:c,overflowName:u,toSize:f}=$m(e,n);return{keyframes:[{[c]:a,[u]:"hidden"},{[c]:f,offset:.9999,[u]:"hidden"},{[c]:"unset",[u]:"unset"}],duration:t,easing:r,delay:s,fill:"both"}},k6=({orientation:e,duration:t,easing:r,element:n,delay:a=0,outSize:s="0"})=>{const{sizeName:c,overflowName:u,toSize:f}=$m(e,n);return{keyframes:[{[c]:f,[u]:"hidden"},{[c]:s,[u]:"hidden"}],duration:t,easing:r,delay:a,fill:"both"}},S6=e=>e==="horizontal"?{paddingStart:"paddingInlineStart",paddingEnd:"paddingInlineEnd",marginStart:"marginInlineStart",marginEnd:"marginInlineEnd"}:{paddingStart:"paddingBlockStart",paddingEnd:"paddingBlockEnd",marginStart:"marginBlockStart",marginEnd:"marginBlockEnd"},Um=({direction:e,orientation:t,duration:r,easing:n,delay:a=0})=>{const{paddingStart:s,paddingEnd:c,marginStart:u,marginEnd:f}=S6(t),p=e==="enter"?0:1;return{keyframes:[{[s]:"0",[c]:"0",[u]:"0",[f]:"0",offset:p}],duration:r,easing:n,delay:a,fill:"both"}},Bo=({direction:e,duration:t,easing:r=De.curveLinear,delay:n=0,outOpacity:a=0,inOpacity:s=1})=>{const c=[{opacity:a},{opacity:s}];return e==="exit"&&c.reverse(),{keyframes:c,duration:t,easing:r,delay:n,fill:"both"}},ma=oi(({element:e,duration:t=De.durationNormal,exitDuration:r=t,sizeDuration:n=t,opacityDuration:a=n,exitSizeDuration:s=r,exitOpacityDuration:c=s,easing:u=De.curveEasyEaseMax,delay:f=0,exitEasing:p=u,exitDelay:g=f,staggerDelay:v=0,exitStaggerDelay:x=v,animateOpacity:w=!0,orientation:S="vertical",outSize:k="0px"})=>{const B=[w6({orientation:S,duration:n,easing:u,element:e,outSize:k,delay:f}),Um({direction:"enter",orientation:S,duration:n,easing:u,delay:f})];w&&B.push(Bo({direction:"enter",duration:a,easing:u,delay:f+v}));const z=[];return w&&z.push(Bo({direction:"exit",duration:c,easing:p,delay:g})),z.push(k6({orientation:S,duration:s,easing:p,element:e,delay:g+x,outSize:k}),Um({direction:"exit",orientation:S,duration:s,easing:p,delay:g+x})),{enter:B,exit:z}});So(ma,{duration:De.durationFast}),So(ma,{duration:De.durationSlower}),So(ma,{sizeDuration:De.durationNormal,opacityDuration:De.durationSlower,staggerDelay:De.durationNormal,exitSizeDuration:De.durationNormal,exitOpacityDuration:De.durationSlower,exitStaggerDelay:De.durationSlower,easing:De.curveEasyEase,exitEasing:De.curveEasyEase});const Gm=oi(({duration:e=De.durationNormal,easing:t=De.curveEasyEase,delay:r=0,exitDuration:n=e,exitEasing:a=t,exitDelay:s=r,outOpacity:c=0,inOpacity:u=1})=>({enter:Bo({direction:"enter",duration:e,easing:t,delay:r,outOpacity:c,inOpacity:u}),exit:Bo({direction:"exit",duration:n,easing:a,delay:s,outOpacity:c,inOpacity:u})}));So(Gm,{duration:De.durationFast});const B6=So(Gm,{duration:De.durationGentle}),Xm=({direction:e,duration:t,easing:r=De.curveLinear,delay:n=0,outScale:a=.9,inScale:s=1})=>{const c=[{scale:a},{scale:s}];return e==="exit"&&c.reverse(),{keyframes:c,duration:t,easing:r,delay:n}},id=oi(({duration:e=De.durationGentle,easing:t=De.curveDecelerateMax,delay:r=0,exitDuration:n=De.durationNormal,exitEasing:a=De.curveAccelerateMax,exitDelay:s=r,outScale:c=.9,inScale:u=1,animateOpacity:f=!0})=>{const p=[Xm({direction:"enter",duration:e,easing:t,delay:r,outScale:c,inScale:u})],g=[Xm({direction:"exit",duration:n,easing:a,delay:s,outScale:c,inScale:u})];return f&&(p.push(Bo({direction:"enter",duration:e,easing:t,delay:r})),g.push(Bo({direction:"exit",duration:n,easing:a,delay:s}))),{enter:p,exit:g}});So(id,{duration:De.durationNormal,exitDuration:De.durationFast}),So(id,{duration:De.durationSlow,exitDuration:De.durationGentle});const Km=({direction:e,duration:t,easing:r=De.curveLinear,delay:n=0,outX:a="0px",outY:s="0px",inX:c="0px",inY:u="0px"})=>({keyframes:[{translate:`${a} ${s}`},{translate:`${c} ${u}`}],duration:t,easing:r,delay:n}),z6=(e,t)=>{const{collapseMotion:r,...n}=e,a=j6(n,t),s=dn({focusable:{excludeFromMover:!0}}),c=fa(u=>u.navigation);return{...a,components:{...a.components,collapseMotion:ma},root:{...a.root,...c&&s},collapseMotion:ha(e.collapseMotion,{elementType:ma,defaultProps:{visible:a.open,unmountOnExit:!0}})}},j6=(e,t)=>{const{open:r}=Hg();return{open:r,components:{root:"div"},root:me({ref:t,...e,...r?{}:{tabIndex:-1,inert:!0}},{elementType:"div"})}},_6=e=>e.collapseMotion?J(e.collapseMotion,{children:J(e.root,{})}):J(e.root,{}),C6={root:"fui-AccordionPanel"},N6=le({root:{jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1axvtxu"}},{d:[[".f1axvtxu{margin:0 var(--spacingHorizontalM);}",{p:-1}]]}),T6=e=>{const t=N6();return e.root.className=Q(C6.root,t.root,e.root.className),e},va=y.forwardRef((e,t)=>{const r=z6(e,t);return T6(r),Pe("useAccordionPanelStyles_unstable")(r),_6(r)});va.displayName="AccordionPanel";const P6=e=>Le(e.root,{children:[e.initials&&J(e.initials,{}),e.icon&&J(e.icon,{}),e.image&&J(e.image,{}),e.badge&&J(e.badge,{}),e.activeAriaLabelElement]}),R6=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,M6=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uE000-\uFFFF]/g,E6=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,I6=/\s+/g,F6=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]/;function Ys(e){if(!e)return"";const t=e.codePointAt(0);return t===void 0?"":String.fromCodePoint(t)}function A6(e,t,r){let n="";const a=e.split(" ");if(a.length!==0&&(n+=Ys(a[0]).toUpperCase()),r||(a.length===2?n+=Ys(a[1]).toUpperCase():a.length===3&&(n+=Ys(a[2]).toUpperCase())),t&&[...n].length>1){const s=[...n];return s[1]+s[0]}return n}function D6(e){return e=e.replace(R6,""),e=e.replace(M6,""),e=e.replace(I6," "),e=e.trim(),e}function Ym(e,t,r){if(!e)return"";e=D6(e);const n=Ys(e);return F6.test(n)||!r?.allowPhoneInitials&&E6.test(e)?"":A6(e,t,r?.firstInitialOnly)}const q6=(e,t)=>{const{shape:r="circular",size:n="medium",appearance:a="filled",color:s="brand",...c}=e;return{...Qm(c,t),shape:r,size:n,appearance:a,color:s}},Qm=(e,t)=>{const{iconPosition:r="before"}=e;return{iconPosition:r,components:{root:"div",icon:"span"},root:me(rt("div",{ref:t,...e}),{elementType:"div"}),icon:Ne(e.icon,{elementType:"span"})}},Zm={root:"fui-Badge",icon:"fui-Badge__icon"},O6=ze("r1iycov","r115jdol",[".r1iycov{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;position:relative;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);height:20px;min-width:20px;padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));border-radius:var(--borderRadiusCircular);border-color:var(--colorTransparentStroke);}",'.r1iycov::after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-style:solid;border-color:inherit;border-width:var(--strokeWidthThin);border-radius:inherit;}',".r115jdol{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;position:relative;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);height:20px;min-width:20px;padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));border-radius:var(--borderRadiusCircular);border-color:var(--colorTransparentStroke);}",'.r115jdol::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-style:solid;border-color:inherit;border-width:var(--strokeWidthThin);border-radius:inherit;}']),H6=le({fontSmallToTiny:{Bahqtrf:"fk6fouc",Be2twd7:"f13mqy1h",Bhrd7zp:"fl43uef",Bg96gwp:"fcpl73t"},tiny:{a9b677:"f16dn6v3",Bqenvij:"f3mu39s",Be2twd7:"f130uwy9",Bg96gwp:"fod1mrr",Bf4jedk:"f18p0k4z",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f19jm9xf"},"extra-small":{a9b677:"fpd43o0",Bqenvij:"f30q22z",Be2twd7:"f1tccstq",Bg96gwp:"f1y3arg5",Bf4jedk:"f18p0k4z",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f19jm9xf"},small:{Bf4jedk:"fq2vo04",Bqenvij:"fd461yt",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fupdldz"},medium:{},large:{Bf4jedk:"f17fgpbq",Bqenvij:"frvgh55",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1996nqw"},"extra-large":{Bf4jedk:"fwbmr0d",Bqenvij:"f1d2rq10",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fty64o7"},square:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1fabniw"},rounded:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5"},roundedSmallToTiny:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fq9zq91"},circular:{},borderGhost:{ap17g6:"f10ludwy"},filled:{},"filled-brand":{De3pzq:"ffp7eso",sj55zd:"f1phragk"},"filled-danger":{De3pzq:"fdl5y0r",sj55zd:"f1phragk"},"filled-important":{De3pzq:"f1c73kur",sj55zd:"fr0bkrk"},"filled-informative":{De3pzq:"f3vzo32",sj55zd:"f11d4kpn"},"filled-severe":{De3pzq:"f1s438gw",sj55zd:"f1phragk"},"filled-subtle":{De3pzq:"fxugw4r",sj55zd:"f19n0e5"},"filled-success":{De3pzq:"flxk52p",sj55zd:"f1phragk"},"filled-warning":{De3pzq:"ffq97bm",sj55zd:"ff5vbop"},ghost:{},"ghost-brand":{sj55zd:"f16muhyy"},"ghost-danger":{sj55zd:"f1whyuy6"},"ghost-important":{sj55zd:"f19n0e5"},"ghost-informative":{sj55zd:"f11d4kpn"},"ghost-severe":{sj55zd:"f1l8vj45"},"ghost-subtle":{sj55zd:"fonrgv7"},"ghost-success":{sj55zd:"f1m7fhi8"},"ghost-warning":{sj55zd:"fpti2h4"},outline:{g2u3we:"f23ftbb",h3c5rm:["f1gkuv52","f1p1bl80"],B9xav0g:"fioka3i",zhjwy3:["f1p1bl80","f1gkuv52"]},"outline-brand":{sj55zd:"f16muhyy"},"outline-danger":{sj55zd:"f1whyuy6",g2u3we:"fyqpifd",h3c5rm:["f3ukxca","f1k7dugc"],B9xav0g:"f1njxb2b",zhjwy3:["f1k7dugc","f3ukxca"]},"outline-important":{sj55zd:"f11d4kpn",g2u3we:"fq0vr37",h3c5rm:["f1byw159","f11cr0be"],B9xav0g:"f1c1zstj",zhjwy3:["f11cr0be","f1byw159"]},"outline-informative":{sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"outline-severe":{sj55zd:"f1l8vj45"},"outline-subtle":{sj55zd:"fonrgv7"},"outline-success":{sj55zd:"f1m7fhi8",g2u3we:"f1mmhl11",h3c5rm:["f1tjpp2f","f1ocn5n7"],B9xav0g:"f1gjv25d",zhjwy3:["f1ocn5n7","f1tjpp2f"]},"outline-warning":{sj55zd:"fpti2h4"},tint:{},"tint-brand":{De3pzq:"f16xkysk",sj55zd:"faj9fo0",g2u3we:"f161y7kd",h3c5rm:["f1c8dzaj","f1sl6hi9"],B9xav0g:"f1619yhw",zhjwy3:["f1sl6hi9","f1c8dzaj"]},"tint-danger":{De3pzq:"ff0poqj",sj55zd:"f1hcrxcs",g2u3we:"f1oqjm8o",h3c5rm:["fkgrb8g","frb5wm0"],B9xav0g:"f1iai1ph",zhjwy3:["frb5wm0","fkgrb8g"]},"tint-important":{De3pzq:"f945g0u",sj55zd:"fr0bkrk",g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},"tint-informative":{De3pzq:"f1ctqxl6",sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"tint-severe":{De3pzq:"f1xzsg4",sj55zd:"f1k5f75o",g2u3we:"fxy9dsj",h3c5rm:["f54u6j2","fcm23ze"],B9xav0g:"f4vf0uq",zhjwy3:["fcm23ze","f54u6j2"]},"tint-subtle":{De3pzq:"fxugw4r",sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"tint-success":{De3pzq:"f2vsrz6",sj55zd:"ffmvakt",g2u3we:"fdmic9h",h3c5rm:["f196y6m","fetptd8"],B9xav0g:"f1pev5xq",zhjwy3:["fetptd8","f196y6m"]},"tint-warning":{De3pzq:"f10s6hli",sj55zd:"f42v8de",g2u3we:"fn9i3n",h3c5rm:["f1aw8cx4","f51if14"],B9xav0g:"fvq8iai",zhjwy3:["f51if14","f1aw8cx4"]}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".f16dn6v3{width:6px;}",".f3mu39s{height:6px;}",".f130uwy9{font-size:4px;}",".fod1mrr{line-height:4px;}",".f18p0k4z{min-width:unset;}",[".f19jm9xf{padding:unset;}",{p:-1}],".fpd43o0{width:10px;}",".f30q22z{height:10px;}",".f1tccstq{font-size:6px;}",".f1y3arg5{line-height:6px;}",[".f19jm9xf{padding:unset;}",{p:-1}],".fq2vo04{min-width:16px;}",".fd461yt{height:16px;}",[".fupdldz{padding:0 calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",{p:-1}],".f17fgpbq{min-width:24px;}",".frvgh55{height:24px;}",[".f1996nqw{padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",{p:-1}],".fwbmr0d{min-width:32px;}",".f1d2rq10{height:32px;}",[".fty64o7{padding:0 calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",{p:-1}],[".f1fabniw{border-radius:var(--borderRadiusNone);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".fq9zq91{border-radius:var(--borderRadiusSmall);}",{p:-1}],".f10ludwy::after{display:none;}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fdl5y0r{background-color:var(--colorPaletteRedBackground3);}",".f1c73kur{background-color:var(--colorNeutralForeground1);}",".fr0bkrk{color:var(--colorNeutralBackground1);}",".f3vzo32{background-color:var(--colorNeutralBackground5);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".f1s438gw{background-color:var(--colorPaletteDarkOrangeBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".flxk52p{background-color:var(--colorPaletteGreenBackground3);}",".ffq97bm{background-color:var(--colorPaletteYellowBackground3);}",".ff5vbop{color:var(--colorNeutralForeground1Static);}",".f16muhyy{color:var(--colorBrandForeground1);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".f1l8vj45{color:var(--colorPaletteDarkOrangeForeground3);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1m7fhi8{color:var(--colorPaletteGreenForeground3);}",".fpti2h4{color:var(--colorPaletteYellowForeground2);}",".f23ftbb{border-top-color:currentColor;}",".f1gkuv52{border-right-color:currentColor;}",".f1p1bl80{border-left-color:currentColor;}",".fioka3i{border-bottom-color:currentColor;}",".fyqpifd{border-top-color:var(--colorPaletteRedBorder2);}",".f3ukxca{border-right-color:var(--colorPaletteRedBorder2);}",".f1k7dugc{border-left-color:var(--colorPaletteRedBorder2);}",".f1njxb2b{border-bottom-color:var(--colorPaletteRedBorder2);}",".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}",".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}",".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f68mrw8{border-top-color:var(--colorNeutralStroke2);}",".f7pw515{border-right-color:var(--colorNeutralStroke2);}",".fw35ms5{border-left-color:var(--colorNeutralStroke2);}",".frpde29{border-bottom-color:var(--colorNeutralStroke2);}",".f1mmhl11{border-top-color:var(--colorPaletteGreenBorder2);}",".f1tjpp2f{border-right-color:var(--colorPaletteGreenBorder2);}",".f1ocn5n7{border-left-color:var(--colorPaletteGreenBorder2);}",".f1gjv25d{border-bottom-color:var(--colorPaletteGreenBorder2);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".faj9fo0{color:var(--colorBrandForeground2);}",".f161y7kd{border-top-color:var(--colorBrandStroke2);}",".f1c8dzaj{border-right-color:var(--colorBrandStroke2);}",".f1sl6hi9{border-left-color:var(--colorBrandStroke2);}",".f1619yhw{border-bottom-color:var(--colorBrandStroke2);}",".ff0poqj{background-color:var(--colorPaletteRedBackground1);}",".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1oqjm8o{border-top-color:var(--colorPaletteRedBorder1);}",".fkgrb8g{border-right-color:var(--colorPaletteRedBorder1);}",".frb5wm0{border-left-color:var(--colorPaletteRedBorder1);}",".f1iai1ph{border-bottom-color:var(--colorPaletteRedBorder1);}",".f945g0u{background-color:var(--colorNeutralForeground3);}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f1ctqxl6{background-color:var(--colorNeutralBackground4);}",".f1xzsg4{background-color:var(--colorPaletteDarkOrangeBackground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".fxy9dsj{border-top-color:var(--colorPaletteDarkOrangeBorder1);}",".f54u6j2{border-right-color:var(--colorPaletteDarkOrangeBorder1);}",".fcm23ze{border-left-color:var(--colorPaletteDarkOrangeBorder1);}",".f4vf0uq{border-bottom-color:var(--colorPaletteDarkOrangeBorder1);}",".f2vsrz6{background-color:var(--colorPaletteGreenBackground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}",".fdmic9h{border-top-color:var(--colorPaletteGreenBorder1);}",".f196y6m{border-right-color:var(--colorPaletteGreenBorder1);}",".fetptd8{border-left-color:var(--colorPaletteGreenBorder1);}",".f1pev5xq{border-bottom-color:var(--colorPaletteGreenBorder1);}",".f10s6hli{background-color:var(--colorPaletteYellowBackground1);}",".f42v8de{color:var(--colorPaletteYellowForeground1);}",".fn9i3n{border-top-color:var(--colorPaletteYellowBorder1);}",".f1aw8cx4{border-right-color:var(--colorPaletteYellowBorder1);}",".f51if14{border-left-color:var(--colorPaletteYellowBorder1);}",".fvq8iai{border-bottom-color:var(--colorPaletteYellowBorder1);}"]}),L6=ze("rttl5z0",null,[".rttl5z0{display:flex;line-height:1;margin:0 calc(-1 * var(--spacingHorizontalXXS));font-size:12px;}"]),V6=le({beforeText:{t21cq0:["f1t8l4o1","f11juvx6"]},afterText:{Frg6f3:["f11juvx6","f1t8l4o1"]},beforeTextXL:{t21cq0:["f1rs9grm","f1kwmkpi"]},afterTextXL:{Frg6f3:["f1kwmkpi","f1rs9grm"]},tiny:{Be2twd7:"f1tccstq"},"extra-small":{Be2twd7:"fnmn6fi"},small:{Be2twd7:"f1ugzwwg"},medium:{},large:{Be2twd7:"f4ybsrx"},"extra-large":{Be2twd7:"fe5j1ua"}},{d:[".f1t8l4o1{margin-right:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f11juvx6{margin-left:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f1rs9grm{margin-right:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1kwmkpi{margin-left:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1tccstq{font-size:6px;}",".fnmn6fi{font-size:10px;}",".f1ugzwwg{font-size:12px;}",".f4ybsrx{font-size:16px;}",".fe5j1ua{font-size:20px;}"]}),W6=e=>{const t=O6(),r=H6(),n=e.size==="small"||e.size==="extra-small"||e.size==="tiny";e.root.className=Q(Zm.root,t,n&&r.fontSmallToTiny,r[e.size],r[e.shape],e.shape==="rounded"&&n&&r.roundedSmallToTiny,e.appearance==="ghost"&&r.borderGhost,r[e.appearance],r[`${e.appearance}-${e.color}`],e.root.className);const a=L6(),s=V6();if(e.icon){let c;y.Children.toArray(e.root.children).length>0&&(e.size==="extra-large"?c=e.iconPosition==="after"?s.afterTextXL:s.beforeTextXL:c=e.iconPosition==="after"?s.afterText:s.beforeText),e.icon.className=Q(Zm.icon,a,c,s[e.size],e.icon.className)}return e},Jm=e=>Le(e.root,{children:[e.iconPosition==="before"&&e.icon&&J(e.icon,{}),e.root.children,e.iconPosition==="after"&&e.icon&&J(e.icon,{})]}),ad=y.forwardRef((e,t)=>{const r=q6(e,t);return W6(r),Pe("useBadgeStyles_unstable")(r),Jm(r)});ad.displayName="Badge";const $6={tiny:vm,"extra-small":vm,small:Rz,medium:Mz,large:bm,"extra-large":bm},U6={tiny:hm,"extra-small":hm,small:Nz,medium:Pz,large:mm,"extra-large":mm},G6={tiny:pm,"extra-small":pm,small:Cz,medium:Tz,large:gm,"extra-large":gm},X6={tiny:ym,"extra-small":ym,small:Ez,medium:Iz,large:xm,"extra-large":xm},K6={tiny:wm,"extra-small":wm,small:Fz,medium:Az,large:km,"extra-large":km},Y6={tiny:Sm,"extra-small":Sm,small:Dz,medium:Oz,large:zm,"extra-large":zm},Q6={tiny:Bm,"extra-small":Bm,small:qz,medium:Hz,large:jm,"extra-large":jm},sd={tiny:Nm,"extra-small":Nm,small:Wz,medium:$z,large:Tm,"extra-large":Tm},Z6={tiny:_m,"extra-small":_m,small:Lz,medium:Vz,large:Cm,"extra-large":Cm},e1={tiny:Pm,"extra-small":Pm,small:Uz,medium:Gz,large:Rm,"extra-large":Rm},J6=(e,t,r)=>{switch(e){case"available":return t?U6[r]:G6[r];case"away":return t?sd[r]:$6[r];case"blocked":return X6[r];case"busy":return t?e1[r]:K6[r];case"do-not-disturb":return t?Q6[r]:Y6[r];case"offline":return t?sd[r]:Z6[r];case"out-of-office":return sd[r];case"unknown":return e1[r]}},t1={busy:"busy","out-of-office":"out of office",away:"away",available:"available",offline:"offline","do-not-disturb":"do not disturb",unknown:"unknown",blocked:"blocked"},ej=(e,t)=>{const{size:r="medium",outOfOffice:n=!1,...a}=e;var s;const c=(s=e.status)!==null&&s!==void 0?s:"available",u=J6(c,n,r),f={...tj(a,t),appearance:"filled",color:"brand",shape:"circular",size:r,outOfOffice:n};if(f.icon){var p,g;(g=(p=f.icon).children)!==null&&g!==void 0||(p.children=y.createElement(u,null))}return f},tj=(e,t)=>{const{status:r="available",outOfOffice:n=!1}=e,a=t1[r],s=e.outOfOffice&&e.status!=="out-of-office"?` ${t1["out-of-office"]}`:"";return{...Qm({"aria-label":a+s,role:"img",...e,icon:Ne(e.icon,{renderByDefault:!0,elementType:"span"})},t),status:r,outOfOffice:n}},r1={root:"fui-PresenceBadge",icon:"fui-PresenceBadge__icon"},rj=e=>e==="busy"||e==="do-not-disturb"||e==="blocked",oj=ze("r832ydo",null,[".r832ydo{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;border-radius:var(--borderRadiusCircular);background-color:var(--colorNeutralBackground1);padding:1px;background-clip:content-box;}"]),nj=ze("r11ag4qr",null,[".r11ag4qr{display:flex;margin:-1px;}"]),ij=le({statusBusy:{sj55zd:"fvi85wt"},statusAway:{sj55zd:"f14k8a89"},statusAvailable:{sj55zd:"fqa5hgp"},statusOffline:{sj55zd:"f11d4kpn"},statusOutOfOffice:{sj55zd:"fdce8r3"},statusUnknown:{sj55zd:"f11d4kpn"},outOfOffice:{sj55zd:"fr0bkrk"},outOfOfficeAvailable:{sj55zd:"fqa5hgp"},outOfOfficeBusy:{sj55zd:"fvi85wt"},outOfOfficeUnknown:{sj55zd:"f11d4kpn"},tiny:{Bubjx69:"f9ikmtg",a9b677:"f16dn6v3",B2eet1l:"f1w2irj7",B5pe6w7:"fab5kbq",p4uzdd:"f1ms1d91"},large:{Bubjx69:"f9ikmtg",a9b677:"f64fuq3",B5pe6w7:"f1vfi1yj",p4uzdd:"f15s34gz"},extraLarge:{Bubjx69:"f9ikmtg",a9b677:"f1w9dchk",B5pe6w7:"f14efy9b",p4uzdd:"fhipgdu"}},{d:[".fvi85wt{color:var(--colorPaletteRedBackground3);}",".f14k8a89{color:var(--colorPaletteMarigoldBackground3);}",".fqa5hgp{color:var(--colorPaletteLightGreenForeground3);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".fdce8r3{color:var(--colorPaletteBerryForeground3);}",".fr0bkrk{color:var(--colorNeutralBackground1);}",".f9ikmtg{aspect-ratio:1;}",".f16dn6v3{width:6px;}",".f1w2irj7{background-clip:unset;}",".fab5kbq svg{width:6px!important;}",".f1ms1d91 svg{height:6px!important;}",".f64fuq3{width:20px;}",".f1vfi1yj svg{width:20px!important;}",".f15s34gz svg{height:20px!important;}",".f1w9dchk{width:28px;}",".f14efy9b svg{width:28px!important;}",".fhipgdu svg{height:28px!important;}"]}),aj=e=>{const t=oj(),r=nj(),n=ij(),a=rj(e.status);return e.root.className=Q(r1.root,t,a&&n.statusBusy,e.status==="away"&&n.statusAway,e.status==="available"&&n.statusAvailable,e.status==="offline"&&n.statusOffline,e.status==="out-of-office"&&n.statusOutOfOffice,e.status==="unknown"&&n.statusUnknown,e.outOfOffice&&n.outOfOffice,e.outOfOffice&&e.status==="available"&&n.outOfOfficeAvailable,e.outOfOffice&&a&&n.outOfOfficeBusy,e.outOfOffice&&(e.status==="out-of-office"||e.status==="away"||e.status==="offline")&&n.statusOutOfOffice,e.outOfOffice&&e.status==="unknown"&&n.outOfOfficeUnknown,e.size==="tiny"&&n.tiny,e.size==="large"&&n.large,e.size==="extra-large"&&n.extraLarge,e.root.className),e.icon&&(e.icon.className=Q(r1.icon,r,e.icon.className)),e},ld=y.forwardRef((e,t)=>{const r=ej(e,t);return aj(r),Pe("usePresenceBadgeStyles_unstable")(r),Jm(r)});ld.displayName="PresenceBadge";const o1=y.createContext(void 0),sj={};o1.Provider;const lj=()=>{var e;return(e=y.useContext(o1))!==null&&e!==void 0?e:sj},cj={active:"active",inactive:"inactive"},uj=(e,t)=>{const{dir:r}=He(),{shape:n,size:a}=lj(),{size:s=a??32,shape:c=n??"circular",active:u="unset",activeAppearance:f="ring",idForColor:p,color:g="neutral",...v}=e,x=dj(v,t);var w;const S=g==="colorful"?n1[pj((w=p??e.name)!==null&&w!==void 0?w:"")%n1.length]:g;if(x.initials){var k;x.initials=Ne(e.initials,{renderByDefault:!0,defaultProps:{children:Ym(e.name,r==="rtl",{firstInitialOnly:s<=16}),id:(k=x.initials)===null||k===void 0?void 0:k.id},elementType:"span"})}x.icon&&!x.icon.hasOwnProperty("children")&&(x.icon.children=y.createElement(tm,null));const B=Ne(e.badge,{defaultProps:{size:fj(s),id:x.root.id+"__badge"},elementType:ld});let z=x.activeAriaLabelElement;const P=e["aria-label"]!==void 0,j=e["aria-labelledby"]!==void 0;if(!P&&!j&&(e.name?B&&(x.root["aria-labelledby"]=x.root.id+" "+B.id):x.initials&&(x.root["aria-labelledby"]=x.initials.id+(B?" "+B.id:""),delete x.root["aria-label"]),u==="active"||u==="inactive")){const N=cj[u];if(x.root["aria-labelledby"]){const M=x.root.id+"__active";x.root["aria-labelledby"]+=" "+M,z=y.createElement("span",{hidden:!0,id:M},N)}else x.root["aria-label"]&&(x.root["aria-label"]+=" "+N)}return{...x,size:s,shape:c,active:u,activeAppearance:f,activeAriaLabelElement:z,color:S,badge:B,components:{...x.components,badge:ld}}},dj=(e,t)=>{const{dir:r}=He(),{name:n,image:a,initials:s,...c}=e,u=pt("avatar-"),f=me({role:"img",id:u,ref:t,...c},{elementType:"span"}),[p,g]=y.useState(void 0);let v=Ne(a,{defaultProps:{alt:"",role:"presentation","aria-hidden":!0,hidden:p},elementType:"img"});v?.src||(v=void 0),v&&(v.onError=Re(v.onError,()=>g(!0)),v.onLoad=Re(v.onLoad,()=>g(void 0)));let x=Ne(s,{renderByDefault:!0,defaultProps:{children:Ym(n,r==="rtl"),id:u+"__initials"},elementType:"span"});x?.children||(x=void 0);let w;!x&&(!v||p)&&(w=Ne(e.icon,{renderByDefault:!0,defaultProps:{"aria-hidden":!0},elementType:"span"}));let S;return!f["aria-label"]&&!f["aria-labelledby"]&&(n?f["aria-label"]=n:x&&(f["aria-labelledby"]=x.id)),{activeAriaLabelElement:S,components:{root:"span",initials:"span",icon:"span",image:"img"},root:f,initials:x,icon:w,image:v}},fj=e=>e>=96?"extra-large":e>=64?"large":e>=56?"medium":e>=40?"small":e>=28?"extra-small":"tiny",n1=["dark-red","cranberry","red","pumpkin","peach","marigold","gold","brass","brown","forest","seafoam","dark-green","light-teal","teal","steel","blue","royal-blue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"],pj=e=>{let t=0;for(let r=e.length-1;r>=0;r--){const n=e.charCodeAt(r),a=r%8;t^=(n<<a)+(n>>8-a)}return t},ba={root:"fui-Avatar",image:"fui-Avatar__image",initials:"fui-Avatar__initials",icon:"fui-Avatar__icon",badge:"fui-Avatar__badge"},hj=ze("r81b29z","r1aatmv",{r:[".r81b29z{display:inline-block;flex-shrink:0;position:relative;vertical-align:middle;border-radius:var(--borderRadiusCircular);font-family:var(--fontFamilyBase);font-weight:var(--fontWeightSemibold);font-size:var(--fontSizeBase300);width:32px;height:32px;}",".r81b29z::before,.r81b29z::after{position:absolute;top:0;left:0;bottom:0;right:0;z-index:-1;margin:calc(-2 * var(--fui-Avatar-ringWidth, 0px));border-radius:inherit;transition-property:margin,opacity;transition-timing-function:var(--curveEasyEaseMax),var(--curveLinear);transition-duration:var(--durationUltraSlow),var(--durationSlower);}",".r81b29z::before{border-style:solid;border-width:var(--fui-Avatar-ringWidth);}",".r1aatmv{display:inline-block;flex-shrink:0;position:relative;vertical-align:middle;border-radius:var(--borderRadiusCircular);font-family:var(--fontFamilyBase);font-weight:var(--fontWeightSemibold);font-size:var(--fontSizeBase300);width:32px;height:32px;}",".r1aatmv::before,.r1aatmv::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;margin:calc(-2 * var(--fui-Avatar-ringWidth, 0px));border-radius:inherit;transition-property:margin,opacity;transition-timing-function:var(--curveEasyEaseMax),var(--curveLinear);transition-duration:var(--durationUltraSlow),var(--durationSlower);}",".r1aatmv::before{border-style:solid;border-width:var(--fui-Avatar-ringWidth);}"],s:["@media screen and (prefers-reduced-motion: reduce){.r81b29z::before,.r81b29z::after{transition-duration:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1aatmv::before,.r1aatmv::after{transition-duration:0.01ms;}}"]}),gj=ze("r136dc0n","rjly0nl",[".r136dc0n{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit;object-fit:cover;vertical-align:top;}",".rjly0nl{position:absolute;top:0;right:0;width:100%;height:100%;border-radius:inherit;object-fit:cover;vertical-align:top;}"]),mj=ze("rip04v","r31uzil",[".rip04v{position:absolute;box-sizing:border-box;top:0;left:0;width:100%;height:100%;line-height:1;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);display:flex;align-items:center;justify-content:center;vertical-align:center;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:inherit;}",".r31uzil{position:absolute;box-sizing:border-box;top:0;right:0;width:100%;height:100%;line-height:1;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);display:flex;align-items:center;justify-content:center;vertical-align:center;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:inherit;}"]),vj=le({textCaption2Strong:{Be2twd7:"f13mqy1h"},textCaption1Strong:{Be2twd7:"fy9rknc"},textSubtitle2:{Be2twd7:"fod5ikn"},textSubtitle1:{Be2twd7:"f1pp30po"},textTitle3:{Be2twd7:"f1x0m3f5"},squareSmall:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fq9zq91"},squareMedium:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5"},squareLarge:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1o0qvyv"},squareXLarge:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1kijzfu"},activeOrInactive:{Bz10aip:"ftfx35i",Bmy1vo4:"fv0atk9",B3o57yi:"f1iry5bo",Bkqvd7p:"f15n41j8",Bg24rqe:"f9ttr0w"},ring:{Ftih45:"f1wl9k8s"},ringBadgeCutout:{f4a502:"fp2gujx"},ringThick:{of393c:"fq1w1vq"},ringThicker:{of393c:"fzg6ace"},ringThickest:{of393c:"f1nu8p71"},shadow:{Bsft5z2:"f13zj6fq"},shadow4:{Be6vj1x:"fcjn15l"},shadow8:{Be6vj1x:"f1tm8t9f"},shadow16:{Be6vj1x:"f1a1aohj"},shadow28:{Be6vj1x:"fond6v5"},inactive:{abs64n:"fp25eh",Bz10aip:"f1clczzi",Bkqvd7p:"f1l3s34x",Bfgortx:0,Bnvr3x9:0,b2tv09:0,Bucmhp4:0,iayac2:"flkahu5",b6ubon:"fw457kn",Bqinb2h:"f1wmllxl"},badge:{qhf8xq:"f1euv43f",B5kzvoi:"f1yab3r1",j35jbq:["f1e31b4d","f1vgc2s3"]},badgeCutout:{btxmck:"f1eugkqs"},badgeAlign:{Dnlfbu:["f1tlnv9o","f1y9kyih"]},tiny:{Bdjeniz:"f1uwoubl",niu6jh:"fid048z"},"extra-small":{Bdjeniz:"f13ar0e0",niu6jh:"fid048z"},small:{Bdjeniz:"fwwuruf",niu6jh:"fid048z"},medium:{Bdjeniz:"f1af27q5",niu6jh:"fid048z"},large:{Bdjeniz:"f18yy57a",niu6jh:"f924bxt"},"extra-large":{Bdjeniz:"f2jg042",niu6jh:"f924bxt"},icon12:{Be2twd7:"f1ugzwwg"},icon16:{Be2twd7:"f4ybsrx"},icon20:{Be2twd7:"fe5j1ua"},icon24:{Be2twd7:"f1rt2boy"},icon28:{Be2twd7:"f24l1pt"},icon32:{Be2twd7:"ffl51b"},icon48:{Be2twd7:"f18m8u13"}},{d:[".f13mqy1h{font-size:var(--fontSizeBase100);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",[".fq9zq91{border-radius:var(--borderRadiusSmall);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f1o0qvyv{border-radius:var(--borderRadiusLarge);}",{p:-1}],[".f1kijzfu{border-radius:var(--borderRadiusXLarge);}",{p:-1}],".ftfx35i{transform:perspective(1px);}",".fv0atk9{transition-property:transform,opacity;}",".f1iry5bo{transition-duration:var(--durationUltraSlow),var(--durationFaster);}",".f15n41j8{transition-timing-function:var(--curveEasyEaseMax),var(--curveLinear);}",'.f1wl9k8s::before{content:"";}',".fp2gujx::before{-webkit-mask-image:radial-gradient(circle at bottom calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)) var(--fui-Avatar-badgeAlign) calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));mask-image:radial-gradient(circle at bottom calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)) var(--fui-Avatar-badgeAlign) calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));}",".fq1w1vq{--fui-Avatar-ringWidth:var(--strokeWidthThick);}",".fzg6ace{--fui-Avatar-ringWidth:var(--strokeWidthThicker);}",".f1nu8p71{--fui-Avatar-ringWidth:var(--strokeWidthThickest);}",'.f13zj6fq::after{content:"";}',".fcjn15l::after{box-shadow:var(--shadow4);}",".f1tm8t9f::after{box-shadow:var(--shadow8);}",".f1a1aohj::after{box-shadow:var(--shadow16);}",".fond6v5::after{box-shadow:var(--shadow28);}",".fp25eh{opacity:0.8;}",".f1clczzi{transform:scale(0.875);}",".f1l3s34x{transition-timing-function:var(--curveDecelerateMin),var(--curveLinear);}",[".flkahu5::before,.flkahu5::after{margin:0;}",{p:-1}],".fw457kn::before,.fw457kn::after{opacity:0;}",".f1wmllxl::before,.f1wmllxl::after{transition-timing-function:var(--curveDecelerateMin),var(--curveLinear);}",".f1euv43f{position:absolute;}",".f1yab3r1{bottom:0;}",".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f1eugkqs{-webkit-mask-image:radial-gradient(circle at bottom var(--fui-Avatar-badgeRadius) var(--fui-Avatar-badgeAlign) var(--fui-Avatar-badgeRadius), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));mask-image:radial-gradient(circle at bottom var(--fui-Avatar-badgeRadius) var(--fui-Avatar-badgeAlign) var(--fui-Avatar-badgeRadius), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));}",".f1tlnv9o{--fui-Avatar-badgeAlign:right;}",".f1y9kyih{--fui-Avatar-badgeAlign:left;}",".f1uwoubl{--fui-Avatar-badgeRadius:3px;}",".fid048z{--fui-Avatar-badgeGap:var(--strokeWidthThin);}",".f13ar0e0{--fui-Avatar-badgeRadius:5px;}",".fwwuruf{--fui-Avatar-badgeRadius:6px;}",".f1af27q5{--fui-Avatar-badgeRadius:8px;}",".f18yy57a{--fui-Avatar-badgeRadius:10px;}",".f924bxt{--fui-Avatar-badgeGap:var(--strokeWidthThick);}",".f2jg042{--fui-Avatar-badgeRadius:14px;}",".f1ugzwwg{font-size:12px;}",".f4ybsrx{font-size:16px;}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f24l1pt{font-size:28px;}",".ffl51b{font-size:32px;}",".f18m8u13{font-size:48px;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f9ttr0w{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),bj=le({16:{a9b677:"fjw5fx7",Bqenvij:"fd461yt"},20:{a9b677:"f64fuq3",Bqenvij:"fjamq6b"},24:{a9b677:"fq4mcun",Bqenvij:"frvgh55"},28:{a9b677:"f1w9dchk",Bqenvij:"fxldao9"},32:{a9b677:"f1szoe96",Bqenvij:"f1d2rq10"},36:{a9b677:"fpdz1er",Bqenvij:"f8ljn23"},40:{a9b677:"feqmc2u",Bqenvij:"fbhnoac"},48:{a9b677:"f124akge",Bqenvij:"ff2sm71"},56:{a9b677:"f1u66zr1",Bqenvij:"fzki0ko"},64:{a9b677:"fa9ln6p",Bqenvij:"f16k9i2m"},72:{a9b677:"fhcae8x",Bqenvij:"f1shusfg"},96:{a9b677:"f1kyr2gn",Bqenvij:"fypu0ge"},120:{a9b677:"fwfqyga",Bqenvij:"fjr5b71"},128:{a9b677:"f1iksgmy",Bqenvij:"fele2au"}},{d:[".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".f64fuq3{width:20px;}",".fjamq6b{height:20px;}",".fq4mcun{width:24px;}",".frvgh55{height:24px;}",".f1w9dchk{width:28px;}",".fxldao9{height:28px;}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}",".fpdz1er{width:36px;}",".f8ljn23{height:36px;}",".feqmc2u{width:40px;}",".fbhnoac{height:40px;}",".f124akge{width:48px;}",".ff2sm71{height:48px;}",".f1u66zr1{width:56px;}",".fzki0ko{height:56px;}",".fa9ln6p{width:64px;}",".f16k9i2m{height:64px;}",".fhcae8x{width:72px;}",".f1shusfg{height:72px;}",".f1kyr2gn{width:96px;}",".fypu0ge{height:96px;}",".fwfqyga{width:120px;}",".fjr5b71{height:120px;}",".f1iksgmy{width:128px;}",".fele2au{height:128px;}"]}),yj=le({neutral:{sj55zd:"f11d4kpn",De3pzq:"f18f03hv"},brand:{sj55zd:"fonrgv7",De3pzq:"f1blnnmj"},"dark-red":{sj55zd:"fqjd1y1",De3pzq:"f1vq2oo4"},cranberry:{sj55zd:"fg9gses",De3pzq:"f1lwxszt"},red:{sj55zd:"f23f7i0",De3pzq:"f1q9qhfq"},pumpkin:{sj55zd:"fjnan08",De3pzq:"fz91bi3"},peach:{sj55zd:"fknu15p",De3pzq:"f1b9nr51"},marigold:{sj55zd:"f9603vw",De3pzq:"f3z4w6d"},gold:{sj55zd:"fmq0uwp",De3pzq:"fg50kya"},brass:{sj55zd:"f28g5vo",De3pzq:"f4w2gd0"},brown:{sj55zd:"ftl572b",De3pzq:"f14wu1f4"},forest:{sj55zd:"f1gymlvd",De3pzq:"f19ut4y6"},seafoam:{sj55zd:"fnnb6wn",De3pzq:"f1n057jc"},"dark-green":{sj55zd:"ff58qw8",De3pzq:"f11t05wk"},"light-teal":{sj55zd:"f1up9qbj",De3pzq:"f42feg1"},teal:{sj55zd:"f135dsb4",De3pzq:"f6hvv1p"},steel:{sj55zd:"f151dlcp",De3pzq:"f1lnp8zf"},blue:{sj55zd:"f1rjv50u",De3pzq:"f1ggcpy6"},"royal-blue":{sj55zd:"f1emykk5",De3pzq:"f12rj61f"},cornflower:{sj55zd:"fqsigj7",De3pzq:"f8k7hur"},navy:{sj55zd:"f1nj97xi",De3pzq:"f19gw0ux"},lavender:{sj55zd:"fwctg0i",De3pzq:"ff379vm"},purple:{sj55zd:"fjrsgpu",De3pzq:"f1mzf1e1"},grape:{sj55zd:"f1fiiydq",De3pzq:"f1o4k8oy"},lilac:{sj55zd:"f1res9jt",De3pzq:"f1x6mz1o"},pink:{sj55zd:"fv3fbbi",De3pzq:"fydlv6t"},magenta:{sj55zd:"f1f1fwnz",De3pzq:"f4xb6j5"},plum:{sj55zd:"f8ptl6j",De3pzq:"fqo8e26"},beige:{sj55zd:"f1ntv3ld",De3pzq:"f101elhj"},mink:{sj55zd:"f1fscmp",De3pzq:"f13g8o5c"},platinum:{sj55zd:"f1dr00v2",De3pzq:"fkh7blw"},anchor:{sj55zd:"f1f3ti53",De3pzq:"fu4yj0j"}},{d:[".f11d4kpn{color:var(--colorNeutralForeground3);}",".f18f03hv{background-color:var(--colorNeutralBackground6);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1blnnmj{background-color:var(--colorBrandBackgroundStatic);}",".fqjd1y1{color:var(--colorPaletteDarkRedForeground2);}",".f1vq2oo4{background-color:var(--colorPaletteDarkRedBackground2);}",".fg9gses{color:var(--colorPaletteCranberryForeground2);}",".f1lwxszt{background-color:var(--colorPaletteCranberryBackground2);}",".f23f7i0{color:var(--colorPaletteRedForeground2);}",".f1q9qhfq{background-color:var(--colorPaletteRedBackground2);}",".fjnan08{color:var(--colorPalettePumpkinForeground2);}",".fz91bi3{background-color:var(--colorPalettePumpkinBackground2);}",".fknu15p{color:var(--colorPalettePeachForeground2);}",".f1b9nr51{background-color:var(--colorPalettePeachBackground2);}",".f9603vw{color:var(--colorPaletteMarigoldForeground2);}",".f3z4w6d{background-color:var(--colorPaletteMarigoldBackground2);}",".fmq0uwp{color:var(--colorPaletteGoldForeground2);}",".fg50kya{background-color:var(--colorPaletteGoldBackground2);}",".f28g5vo{color:var(--colorPaletteBrassForeground2);}",".f4w2gd0{background-color:var(--colorPaletteBrassBackground2);}",".ftl572b{color:var(--colorPaletteBrownForeground2);}",".f14wu1f4{background-color:var(--colorPaletteBrownBackground2);}",".f1gymlvd{color:var(--colorPaletteForestForeground2);}",".f19ut4y6{background-color:var(--colorPaletteForestBackground2);}",".fnnb6wn{color:var(--colorPaletteSeafoamForeground2);}",".f1n057jc{background-color:var(--colorPaletteSeafoamBackground2);}",".ff58qw8{color:var(--colorPaletteDarkGreenForeground2);}",".f11t05wk{background-color:var(--colorPaletteDarkGreenBackground2);}",".f1up9qbj{color:var(--colorPaletteLightTealForeground2);}",".f42feg1{background-color:var(--colorPaletteLightTealBackground2);}",".f135dsb4{color:var(--colorPaletteTealForeground2);}",".f6hvv1p{background-color:var(--colorPaletteTealBackground2);}",".f151dlcp{color:var(--colorPaletteSteelForeground2);}",".f1lnp8zf{background-color:var(--colorPaletteSteelBackground2);}",".f1rjv50u{color:var(--colorPaletteBlueForeground2);}",".f1ggcpy6{background-color:var(--colorPaletteBlueBackground2);}",".f1emykk5{color:var(--colorPaletteRoyalBlueForeground2);}",".f12rj61f{background-color:var(--colorPaletteRoyalBlueBackground2);}",".fqsigj7{color:var(--colorPaletteCornflowerForeground2);}",".f8k7hur{background-color:var(--colorPaletteCornflowerBackground2);}",".f1nj97xi{color:var(--colorPaletteNavyForeground2);}",".f19gw0ux{background-color:var(--colorPaletteNavyBackground2);}",".fwctg0i{color:var(--colorPaletteLavenderForeground2);}",".ff379vm{background-color:var(--colorPaletteLavenderBackground2);}",".fjrsgpu{color:var(--colorPalettePurpleForeground2);}",".f1mzf1e1{background-color:var(--colorPalettePurpleBackground2);}",".f1fiiydq{color:var(--colorPaletteGrapeForeground2);}",".f1o4k8oy{background-color:var(--colorPaletteGrapeBackground2);}",".f1res9jt{color:var(--colorPaletteLilacForeground2);}",".f1x6mz1o{background-color:var(--colorPaletteLilacBackground2);}",".fv3fbbi{color:var(--colorPalettePinkForeground2);}",".fydlv6t{background-color:var(--colorPalettePinkBackground2);}",".f1f1fwnz{color:var(--colorPaletteMagentaForeground2);}",".f4xb6j5{background-color:var(--colorPaletteMagentaBackground2);}",".f8ptl6j{color:var(--colorPalettePlumForeground2);}",".fqo8e26{background-color:var(--colorPalettePlumBackground2);}",".f1ntv3ld{color:var(--colorPaletteBeigeForeground2);}",".f101elhj{background-color:var(--colorPaletteBeigeBackground2);}",".f1fscmp{color:var(--colorPaletteMinkForeground2);}",".f13g8o5c{background-color:var(--colorPaletteMinkBackground2);}",".f1dr00v2{color:var(--colorPalettePlatinumForeground2);}",".fkh7blw{background-color:var(--colorPalettePlatinumBackground2);}",".f1f3ti53{color:var(--colorPaletteAnchorForeground2);}",".fu4yj0j{background-color:var(--colorPaletteAnchorBackground2);}"]}),xj=le({neutral:{Bic5iru:"f1uuiafn"},brand:{Bic5iru:"f1uuiafn"},"dark-red":{Bic5iru:"f1t2x9on"},cranberry:{Bic5iru:"f1pvshc9"},red:{Bic5iru:"f1ectbk9"},pumpkin:{Bic5iru:"fvzpl0b"},peach:{Bic5iru:"fwj2kd7"},marigold:{Bic5iru:"fr120vy"},gold:{Bic5iru:"f8xmmar"},brass:{Bic5iru:"f1hbety2"},brown:{Bic5iru:"f1vg3s4g"},forest:{Bic5iru:"f1m3olm5"},seafoam:{Bic5iru:"f17xiqtr"},"dark-green":{Bic5iru:"fx32vyh"},"light-teal":{Bic5iru:"f1mkihwv"},teal:{Bic5iru:"fecnooh"},steel:{Bic5iru:"f15hfgzm"},blue:{Bic5iru:"fqproka"},"royal-blue":{Bic5iru:"f17v2w59"},cornflower:{Bic5iru:"fp0q1mo"},navy:{Bic5iru:"f1nlym55"},lavender:{Bic5iru:"f62vk8h"},purple:{Bic5iru:"f15zl69q"},grape:{Bic5iru:"f53w4j7"},lilac:{Bic5iru:"fu2771t"},pink:{Bic5iru:"fzflscs"},magenta:{Bic5iru:"fb6rmqc"},plum:{Bic5iru:"f1a4gm5b"},beige:{Bic5iru:"f1qpf9z1"},mink:{Bic5iru:"f1l7or83"},platinum:{Bic5iru:"fzrj0iu"},anchor:{Bic5iru:"f8oz6wf"}},{d:[".f1uuiafn::before{color:var(--colorBrandStroke1);}",".f1t2x9on::before{color:var(--colorPaletteDarkRedBorderActive);}",".f1pvshc9::before{color:var(--colorPaletteCranberryBorderActive);}",".f1ectbk9::before{color:var(--colorPaletteRedBorderActive);}",".fvzpl0b::before{color:var(--colorPalettePumpkinBorderActive);}",".fwj2kd7::before{color:var(--colorPalettePeachBorderActive);}",".fr120vy::before{color:var(--colorPaletteMarigoldBorderActive);}",".f8xmmar::before{color:var(--colorPaletteGoldBorderActive);}",".f1hbety2::before{color:var(--colorPaletteBrassBorderActive);}",".f1vg3s4g::before{color:var(--colorPaletteBrownBorderActive);}",".f1m3olm5::before{color:var(--colorPaletteForestBorderActive);}",".f17xiqtr::before{color:var(--colorPaletteSeafoamBorderActive);}",".fx32vyh::before{color:var(--colorPaletteDarkGreenBorderActive);}",".f1mkihwv::before{color:var(--colorPaletteLightTealBorderActive);}",".fecnooh::before{color:var(--colorPaletteTealBorderActive);}",".f15hfgzm::before{color:var(--colorPaletteSteelBorderActive);}",".fqproka::before{color:var(--colorPaletteBlueBorderActive);}",".f17v2w59::before{color:var(--colorPaletteRoyalBlueBorderActive);}",".fp0q1mo::before{color:var(--colorPaletteCornflowerBorderActive);}",".f1nlym55::before{color:var(--colorPaletteNavyBorderActive);}",".f62vk8h::before{color:var(--colorPaletteLavenderBorderActive);}",".f15zl69q::before{color:var(--colorPalettePurpleBorderActive);}",".f53w4j7::before{color:var(--colorPaletteGrapeBorderActive);}",".fu2771t::before{color:var(--colorPaletteLilacBorderActive);}",".fzflscs::before{color:var(--colorPalettePinkBorderActive);}",".fb6rmqc::before{color:var(--colorPaletteMagentaBorderActive);}",".f1a4gm5b::before{color:var(--colorPalettePlumBorderActive);}",".f1qpf9z1::before{color:var(--colorPaletteBeigeBorderActive);}",".f1l7or83::before{color:var(--colorPaletteMinkBorderActive);}",".fzrj0iu::before{color:var(--colorPalettePlatinumBorderActive);}",".f8oz6wf::before{color:var(--colorPaletteAnchorBorderActive);}"]}),wj=e=>{const{size:t,shape:r,active:n,activeAppearance:a,color:s}=e,c=hj(),u=gj(),f=mj(),p=vj(),g=bj(),v=yj(),x=xj(),w=[c,t!==32&&g[t]];if(e.badge&&w.push(p.badgeAlign,p[e.badge.size||"medium"]),t<=24?w.push(p.textCaption2Strong):t<=28?w.push(p.textCaption1Strong):t<=40||(t<=56?w.push(p.textSubtitle2):t<=96?w.push(p.textSubtitle1):w.push(p.textTitle3)),r==="square"&&(t<=24?w.push(p.squareSmall):t<=48?w.push(p.squareMedium):t<=72?w.push(p.squareLarge):w.push(p.squareXLarge)),(n==="active"||n==="inactive")&&(w.push(p.activeOrInactive),(a==="ring"||a==="ring-shadow")&&(w.push(p.ring,x[s]),e.badge&&w.push(p.ringBadgeCutout),t<=48?w.push(p.ringThick):t<=64?w.push(p.ringThicker):w.push(p.ringThickest)),(a==="shadow"||a==="ring-shadow")&&(w.push(p.shadow),t<=28?w.push(p.shadow4):t<=48?w.push(p.shadow8):t<=64?w.push(p.shadow16):w.push(p.shadow28)),n==="inactive"&&w.push(p.inactive)),e.root.className=Q(ba.root,...w,e.root.className),e.badge&&(e.badge.className=Q(ba.badge,p.badge,e.badge.className)),e.image&&(e.image.className=Q(ba.image,u,v[s],e.badge&&p.badgeCutout,e.image.className)),e.initials&&(e.initials.className=Q(ba.initials,f,v[s],e.badge&&p.badgeCutout,e.initials.className)),e.icon){let S;t<=16?S=p.icon12:t<=24?S=p.icon16:t<=40?S=p.icon20:t<=48?S=p.icon24:t<=56?S=p.icon28:t<=72?S=p.icon32:S=p.icon48,e.icon.className=Q(ba.icon,f,S,v[s],e.badge&&p.badgeCutout,e.icon.className)}return e},i1=y.forwardRef((e,t)=>{const r=uj(e,t);return wj(r),Pe("useAvatarStyles_unstable")(r),P6(r)});i1.displayName="Avatar";function kj(e){const t=e.clientX,r=e.clientY,n=t+1,a=r+1;function s(){return{left:t,top:r,right:n,bottom:a,x:t,y:r,height:1,width:1}}return{getBoundingClientRect:s}}const a1="data-popper-is-intersecting",s1="data-popper-escaped",l1="data-popper-reference-hidden",Sj="data-popper-placement",cd="fui-positioningend",Qs="--fui-positioning-slide-direction-x",Zs="--fui-positioning-slide-direction-y";function Bj(e){const t=e.split("-")[0];let r=0,n=1;return t==="right"?(r=-1,n=0):t==="bottom"?(r=0,n=-1):t==="left"&&(r=1,n=0),{x:r,y:n}}function c1(e){const{targetDocument:t,onPositioningEnd:r}=e,n=ce(a=>{r?.(a);const s=a.target,c=a.detail.placement;if(!Br(s))return;const{x:u,y:f}=Bj(c);s.style.setProperty(Qs,`${u}px`),s.style.setProperty(Zs,`${f}px`)});return y.useEffect(()=>{var a,s,c;const u=(c=t==null||(s=t.defaultView)===null||s===void 0||(a=s.CSS)===null||a===void 0?void 0:a.registerProperty)!==null&&c!==void 0?c:()=>{};try{u({name:Qs,syntax:"<length>",inherits:!1,initialValue:"0px"}),u({name:Zs,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch{}},[t]),n}const zj=({options:e})=>e,u1=y.createContext(void 0);u1.Provider;const jj=()=>{var e;return(e=y.useContext(u1))!==null&&e!==void 0?e:zj},_j=["top","right","bottom","left"],hn=Math.min,zo=Math.max,Js=Math.round,ro=e=>({x:e,y:e}),Cj={left:"right",right:"left",bottom:"top",top:"bottom"};function d1(e,t,r){return zo(e,hn(t,r))}function oo(e,t){return typeof e=="function"?e(t):e}function jo(e){return e.split("-")[0]}function ni(e){return e.split("-")[1]}function ud(e){return e==="x"?"y":"x"}function dd(e){return e==="y"?"height":"width"}function Vr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function fd(e){return ud(Vr(e))}function Nj(e,t,r){r===void 0&&(r=!1);const n=ni(e),a=fd(e),s=dd(a);let c=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(c=el(c)),[c,el(c)]}function Tj(e){const t=el(e);return[pd(e),t,pd(t)]}function pd(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const f1=["left","right"],p1=["right","left"],Pj=["top","bottom"],Rj=["bottom","top"];function Mj(e,t,r){switch(e){case"top":case"bottom":return r?t?p1:f1:t?f1:p1;case"left":case"right":return t?Pj:Rj;default:return[]}}function Ej(e,t,r,n){const a=ni(e);let s=Mj(jo(e),r==="start",n);return a&&(s=s.map(c=>c+"-"+a),t&&(s=s.concat(s.map(pd)))),s}function el(e){const t=jo(e);return Cj[t]+e.slice(t.length)}function Ij(e){var t,r,n,a;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(n=e.bottom)!=null?n:0,left:(a=e.left)!=null?a:0}}function h1(e){return typeof e!="number"?Ij(e):{top:e,right:e,bottom:e,left:e}}function tl(e){const{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function g1(e,t,r){let{reference:n,floating:a}=e;const s=Vr(t),c=fd(t),u=dd(c),f=jo(t),p=s==="y",g=n.x+n.width/2-a.width/2,v=n.y+n.height/2-a.height/2,x=n[u]/2-a[u]/2;let w;switch(f){case"top":w={x:g,y:n.y-a.height};break;case"bottom":w={x:g,y:n.y+n.height};break;case"right":w={x:n.x+n.width,y:v};break;case"left":w={x:n.x-a.width,y:v};break;default:w={x:n.x,y:n.y}}const S=ni(t);return S&&(w[c]+=x*(S==="end"?1:-1)*(r&&p?-1:1)),w}async function m1(e,t){var r;t===void 0&&(t={});const{x:n,y:a,platform:s,rects:c,elements:u,strategy:f}=e,{boundary:p="clippingAncestors",rootBoundary:g="viewport",elementContext:v="floating",altBoundary:x=!1,padding:w=0}=oo(t,e),S=h1(w),B=u[x?v==="floating"?"reference":"floating":v],z=tl(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(B)))==null||r?B:B.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(u.floating)),boundary:p,rootBoundary:g,strategy:f})),P=v==="floating"?{x:n,y:a,width:c.floating.width,height:c.floating.height}:c.reference,j=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u.floating)),N=await(s.isElement==null?void 0:s.isElement(j))&&await(s.getScale==null?void 0:s.getScale(j))||{x:1,y:1},M=tl(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:P,offsetParent:j,strategy:f}):P);return{top:(z.top-M.top+S.top)/N.y,bottom:(M.bottom-z.bottom+S.bottom)/N.y,left:(z.left-M.left+S.left)/N.x,right:(M.right-z.right+S.right)/N.x}}const Fj=50,Aj=async(e,t,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:s=[],platform:c}=r,u=c.detectOverflow?c:{...c,detectOverflow:m1},f=await(c.isRTL==null?void 0:c.isRTL(t));let p=await c.getElementRects({reference:e,floating:t,strategy:a}),{x:g,y:v}=g1(p,n,f),x=n,w=0;const S={};for(let k=0;k<s.length;k++){const B=s[k];if(!B)continue;const{name:z,fn:P}=B,{x:j,y:N,data:M,reset:C}=await P({x:g,y:v,initialPlacement:n,placement:x,strategy:a,middlewareData:S,rects:p,platform:u,elements:{reference:e,floating:t}});g=j??g,v=N??v,S[z]={...S[z],...M},C&&w<Fj&&(w++,typeof C=="object"&&(C.placement&&(x=C.placement),C.rects&&(p=C.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:a}):C.rects),{x:g,y:v}=g1(p,x,f)),k=-1)}return{x:g,y:v,placement:x,strategy:a,middlewareData:S}},Dj=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:a,rects:s,platform:c,elements:u,middlewareData:f}=t,{element:p,padding:g=0}=oo(e,t)||{};if(p==null)return{};const v=h1(g),x={x:r,y:n},w=fd(a),S=dd(w),k=await c.getDimensions(p),B=w==="y",z=B?"top":"left",P=B?"bottom":"right",j=B?"clientHeight":"clientWidth",N=s.reference[S]+s.reference[w]-x[w]-s.floating[S],M=x[w]-s.reference[w],C=await(c.getOffsetParent==null?void 0:c.getOffsetParent(p));let I=C?C[j]:0;(!I||!await(c.isElement==null?void 0:c.isElement(C)))&&(I=u.floating[j]||s.floating[S]);const A=N/2-M/2,ae=I/2-k[S]/2-1,de=hn(v[z],ae),ee=hn(v[P],ae),te=I-k[S]-ee,W=I/2-k[S]/2+A,Y=d1(de,W,te),X=!f.arrow&&ni(a)!=null&&W!==Y&&s.reference[S]/2-(W<de?de:ee)-k[S]/2<0,O=X?W<de?W-de:W-te:0;return{[w]:x[w]+O,data:{[w]:Y,centerOffset:W-Y-O,...X&&{alignmentOffset:O}},reset:X}}}),qj=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:a,middlewareData:s,rects:c,initialPlacement:u,platform:f,elements:p}=t,{mainAxis:g=!0,crossAxis:v=!0,fallbackPlacements:x,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:k=!0,...B}=oo(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const z=jo(a),P=Vr(u),j=jo(u)===u,N=await(f.isRTL==null?void 0:f.isRTL(p.floating)),M=x||(j||!k?[el(u)]:Tj(u)),C=S!=="none";!x&&C&&M.push(...Ej(u,k,S,N));const I=[u,...M],A=await f.detectOverflow(t,B),ae=[];let de=((n=s.flip)==null?void 0:n.overflows)||[];if(g&&ae.push(A[z]),v){const Y=Nj(a,c,N);ae.push(A[Y[0]],A[Y[1]])}if(de=[...de,{placement:a,overflows:ae}],!ae.every(Y=>Y<=0)){var ee,te;const Y=(((ee=s.flip)==null?void 0:ee.index)||0)+1,X=I[Y];if(X&&(!(v==="alignment"?P!==Vr(X):!1)||de.every(q=>Vr(q.placement)===P?q.overflows[0]>0:!0)))return{data:{index:Y,overflows:de},reset:{placement:X}};let O=(te=de.filter(Z=>Z.overflows[0]<=0).sort((Z,q)=>Z.overflows[1]-q.overflows[1])[0])==null?void 0:te.placement;if(!O)switch(w){case"bestFit":{var W;const Z=(W=de.filter(q=>{if(C){const G=Vr(q.placement);return G===P||G==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(G=>G>0).reduce((G,K)=>G+K,0)]).sort((q,G)=>q[1]-G[1])[0])==null?void 0:W[0];Z&&(O=Z);break}case"initialPlacement":O=u;break}if(a!==O)return{reset:{placement:O}}}return{}}}};function v1(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function b1(e){return _j.some(t=>e[t]>=0)}const Oj=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:a="referenceHidden",...s}=oo(e,t);switch(a){case"referenceHidden":{const c=await n.detectOverflow(t,{...s,elementContext:"reference"}),u=v1(c,r.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:b1(u)}}}case"escaped":{const c=await n.detectOverflow(t,{...s,altBoundary:!0}),u=v1(c,r.floating);return{data:{escapedOffsets:u,escaped:b1(u)}}}default:return{}}}}},y1=new Set(["left","top"]);async function Hj(e,t){const{placement:r,platform:n,elements:a}=e,s=await(n.isRTL==null?void 0:n.isRTL(a.floating)),c=jo(r),u=ni(r),f=Vr(r)==="y",p=y1.has(c)?-1:1,g=s&&f?-1:1,v=oo(t,e);let{mainAxis:x,crossAxis:w,alignmentAxis:S}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return u&&typeof S=="number"&&(w=u==="end"?S*-1:S),f?{x:w*g,y:x*p}:{x:x*p,y:w*g}}const Lj=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:a,y:s,placement:c,middlewareData:u}=t,f=await Hj(t,e);return c===((r=u.offset)==null?void 0:r.placement)&&(n=u.arrow)!=null&&n.alignmentOffset?{}:{x:a+f.x,y:s+f.y,data:{...f,placement:c}}}}},Vj=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:a,platform:s}=t,{mainAxis:c=!0,crossAxis:u=!1,limiter:f={fn:P=>{let{x:j,y:N}=P;return{x:j,y:N}}},...p}=oo(e,t),g={x:r,y:n},v=await s.detectOverflow(t,p),x=Vr(a),w=ud(x);let S=g[w],k=g[x];const B=(P,j)=>d1(j+v[P==="y"?"top":"left"],j,j-v[P==="y"?"bottom":"right"]);c&&(S=B(w,S)),u&&(k=B(x,k));const z=f.fn({...t,[w]:S,[x]:k});return{...z,data:{x:z.x-r,y:z.y-n,enabled:{[w]:c,[x]:u}}}}}},Wj=function(e){return e===void 0&&(e={}),{options:e,fn(t){var r,n;const{x:a,y:s,placement:c,rects:u,middlewareData:f}=t,{offset:p=0,mainAxis:g=!0,crossAxis:v=!0}=oo(e,t),x={x:a,y:s},w=Vr(c),S=ud(w);let k=x[S],B=x[w];const z=oo(p,t),P=typeof z=="number"?{mainAxis:z,crossAxis:0}:{mainAxis:(r=z.mainAxis)!=null?r:0,crossAxis:(n=z.crossAxis)!=null?n:0};if(g){const M=S==="y"?"height":"width",C=u.reference[S]-u.floating[M]+P.mainAxis,I=u.reference[S]+u.reference[M]-P.mainAxis;k<C?k=C:k>I&&(k=I)}if(v){var j,N;const M=S==="y"?"width":"height",C=y1.has(jo(c)),I=u.reference[w]-u.floating[M]+(C&&((j=f.offset)==null?void 0:j[w])||0)+(C?0:P.crossAxis),A=u.reference[w]+u.reference[M]+(C?0:((N=f.offset)==null?void 0:N[w])||0)-(C?P.crossAxis:0);B<I?B=I:B>A&&(B=A)}return{[S]:k,[w]:B}}}},$j=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:a,elements:s}=t,{apply:c=()=>{},...u}=oo(e,t),f=await a.detectOverflow(t,u),p=jo(r),g=ni(r),v=Vr(r)==="y",{width:x,height:w}=n.floating;let S,k;p==="top"||p==="bottom"?(S=p,k=g===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(k=p,S=g==="end"?"top":"bottom");const B=w-f.top-f.bottom,z=x-f.left-f.right,P=hn(w-f[S],B),j=hn(x-f[k],z),N=t.middlewareData.shift,M=!N;let C=P,I=j;N!=null&&N.enabled.x&&(I=z),N!=null&&N.enabled.y&&(C=B),M&&!g&&(v?I=x-2*zo(f.left,f.right):C=w-2*zo(f.top,f.bottom)),await c({...t,availableWidth:I,availableHeight:C});const A=await a.getDimensions(s.floating);return x!==A.width||w!==A.height?{reset:{rects:!0}}:{}}}};function rl(){return typeof window<"u"}function ii(e){return x1(e)?(e.nodeName||"").toLowerCase():"#document"}function or(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _o(e){var t;return(t=(x1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function x1(e){return rl()?e instanceof Node||e instanceof or(e).Node:!1}function Wr(e){return rl()?e instanceof Element||e instanceof or(e).Element:!1}function Co(e){return rl()?e instanceof HTMLElement||e instanceof or(e).HTMLElement:!1}function w1(e){return!rl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof or(e).ShadowRoot}function ol(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=$r(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&a!=="inline"&&a!=="contents"}function Uj(e){return/^(table|td|th)$/.test(ii(e))}function nl(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Gj=/transform|translate|scale|rotate|perspective|filter/,Xj=/paint|layout|strict|content/,gn=e=>!!e&&e!=="none";let hd;function gd(e){const t=Wr(e)?$r(e):e;return gn(t.transform)||gn(t.translate)||gn(t.scale)||gn(t.rotate)||gn(t.perspective)||!md()&&(gn(t.backdropFilter)||gn(t.filter))||Gj.test(t.willChange||"")||Xj.test(t.contain||"")}function Kj(e){let t=mn(e);for(;Co(t)&&!ya(t);){if(gd(t))return t;if(nl(t))return null;t=mn(t)}return null}function md(){return hd==null&&(hd=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),hd}function ya(e){return/^(html|body|#document)$/.test(ii(e))}function $r(e){return or(e).getComputedStyle(e)}function il(e){return Wr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function mn(e){if(ii(e)==="html")return e;const t=e.assignedSlot||e.parentNode||w1(e)&&e.host||_o(e);return w1(t)?t.host:t}function k1(e){const t=mn(e);return ya(t)?(e.ownerDocument||e).body:Co(t)&&ol(t)?t:k1(t)}function S1(e,t,r){var n;t===void 0&&(t=[]);const a=k1(e),s=a===((n=e.ownerDocument)==null?void 0:n.body),c=or(a);return s?(vd(c),t.concat(c,c.visualViewport||[],ol(a)?a:[],[])):t.concat(a,S1(a,[]))}function vd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function B1(e){const t=$r(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=Co(e),s=a?e.offsetWidth:r,c=a?e.offsetHeight:n,u=Js(r)!==s||Js(n)!==c;return u&&(r=s,n=c),{width:r,height:n,$:u}}function z1(e){return Wr(e)?e:e.contextElement}function ai(e){const t=z1(e);if(!Co(t))return ro(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:s}=B1(t);let c=(s?Js(r.width):r.width)/n,u=(s?Js(r.height):r.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!u||!Number.isFinite(u))&&(u=1),{x:c,y:u}}const Yj=ro(0);function j1(e){const t=or(e);return!md()||!t.visualViewport?Yj:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Qj(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===or(e)}function xa(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),s=z1(e);let c=ro(1);t&&(n?Wr(n)&&(c=ai(n)):c=ai(e));const u=Qj(s,r,n)?j1(s):ro(0);let f=(a.left+u.x)/c.x,p=(a.top+u.y)/c.y,g=a.width/c.x,v=a.height/c.y;if(s&&n){const x=or(s),w=Wr(n)?or(n):n;let S=x,k=vd(S);for(;k&&w!==S;){const B=ai(k),z=k.getBoundingClientRect(),P=$r(k),j=z.left+(k.clientLeft+parseFloat(P.paddingLeft))*B.x,N=z.top+(k.clientTop+parseFloat(P.paddingTop))*B.y;f*=B.x,p*=B.y,g*=B.x,v*=B.y,f+=j,p+=N,S=or(k),k=vd(S)}}return tl({width:g,height:v,x:f,y:p})}function al(e,t){const r=il(e).scrollLeft;return t?t.left+r:xa(_o(e)).left+r}function _1(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-al(e,r),a=r.top+t.scrollTop;return{x:n,y:a}}function Zj(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e;const s=a==="fixed",c=_o(n),u=t?nl(t.floating):!1;if(n===c||u&&s)return r;let f={scrollLeft:0,scrollTop:0},p=ro(1);const g=ro(0),v=Co(n);if((v||!s)&&((ii(n)!=="body"||ol(c))&&(f=il(n)),v)){const w=xa(n);p=ai(n),g.x=w.x+n.clientLeft,g.y=w.y+n.clientTop}const x=c&&!v&&!s?_1(c,f):ro(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-f.scrollLeft*p.x+g.x+x.x,y:r.y*p.y-f.scrollTop*p.y+g.y+x.y}}function Jj(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function e_(e){const t=il(e),r=e.ownerDocument.body,n=zo(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),a=zo(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-t.scrollLeft+al(e);const c=-t.scrollTop;return $r(r).direction==="rtl"&&(s+=zo(e.clientWidth,r.clientWidth)-n),{width:n,height:a,x:s,y:c}}const t_=25;function r_(e,t,r){r===void 0&&(r="viewport");const n=r==="layoutViewport",a=or(e),s=_o(e),c=a.visualViewport;let u=s.clientWidth,f=s.clientHeight,p=0,g=0;if(c){const x=!md()||t==="fixed";n?x||(p=-c.offsetLeft,g=-c.offsetTop):(u=c.width,f=c.height,x&&(p=c.offsetLeft,g=c.offsetTop))}if(al(s)<=0){const x=s.ownerDocument,w=x.body,S=getComputedStyle(w),k=x.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,B=Math.abs(s.clientWidth-w.clientWidth-k),z=getComputedStyle(s).scrollbarGutter==="stable both-edges"?B/2:B;z<=t_&&(u-=z)}return{width:u,height:f,x:p,y:g}}function o_(e,t){const r=xa(e,!0,t==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,s=ai(e),c=e.clientWidth*s.x,u=e.clientHeight*s.y,f=a*s.x,p=n*s.y;return{width:c,height:u,x:f,y:p}}function C1(e,t,r){let n;if(t==="viewport"||t==="layoutViewport")n=r_(e,r,t);else if(t==="document")n=e_(_o(e));else if(Wr(t))n=o_(t,r);else{const a=j1(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return tl(n)}function n_(e,t){const r=t.get(e);if(r)return r;let n=S1(e,[]).filter(u=>Wr(u)&&ii(u)!=="body"),a=null;const s=$r(e).position==="fixed";let c=s?mn(e):e;for(;Wr(c)&&!ya(c);){const u=$r(c),f=gd(c),p=a?a.position:s?"fixed":"";!f&&(p==="fixed"||p==="absolute"&&u.position==="static")?n=n.filter(v=>v!==c):a=u,c=mn(c)}return t.set(e,n),n}function i_(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const c=[...r==="clippingAncestors"?nl(t)?[]:n_(t,this._c):[].concat(r),n],u=C1(t,c[0],a);let f=u.top,p=u.right,g=u.bottom,v=u.left;for(let x=1;x<c.length;x++){const w=C1(t,c[x],a);f=zo(w.top,f),p=hn(w.right,p),g=hn(w.bottom,g),v=zo(w.left,v)}return{width:p-v,height:g-f,x:v,y:f}}function a_(e){const{width:t,height:r}=B1(e);return{width:t,height:r}}function s_(e,t,r){const n=Co(t),a=_o(t),s=r==="fixed",c=xa(e,!0,s,t);let u={scrollLeft:0,scrollTop:0};const f=ro(0);if((n||!s)&&((ii(t)!=="body"||ol(a))&&(u=il(t)),n)){const x=xa(t,!0,s,t);f.x=x.x+t.clientLeft,f.y=x.y+t.clientTop}!n&&a&&(f.x=al(a));const p=a&&!n&&!s?_1(a,u):ro(0),g=c.left+u.scrollLeft-f.x-p.x,v=c.top+u.scrollTop-f.y-p.y;return{x:g,y:v,width:c.width,height:c.height}}function bd(e){return $r(e).position==="static"}function N1(e,t){if(!Co(e)||$r(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return _o(e)===r&&(r=r.ownerDocument.body),r}function T1(e,t){const r=or(e);if(nl(e))return r;if(!Co(e)){let a=mn(e);for(;a&&!ya(a);){if(Wr(a)&&!bd(a))return a;a=mn(a)}return r}let n=N1(e,t);for(;n&&Uj(n)&&bd(n);)n=N1(n,t);return n&&ya(n)&&bd(n)&&!gd(n)?r:n||Kj(e)||r}const l_=async function(e){const t=this.getOffsetParent||T1,r=this.getDimensions,n=await r(e.floating);return{reference:s_(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function c_(e){return $r(e).direction==="rtl"}const u_={convertOffsetParentRelativeRectToViewportRelativeRect:Zj,getDocumentElement:_o,getClippingRect:i_,getOffsetParent:T1,getElementRects:l_,getClientRects:Jj,getDimensions:a_,getScale:ai,isElement:Wr,isRTL:c_},d_=m1,f_=Lj,p_=Vj,h_=qj,g_=$j,P1=Oj,m_=Dj,R1=Wj,v_=(e,t,r)=>{const n=new Map,a=r??{},s={...u_,...a.platform,_c:n};return Aj(e,t,{...a,platform:s})};function M1(e){const t=e.split("-");return{side:t[0],alignment:t[1]}}const b_=e=>e.nodeName==="HTML"?e:e.parentNode||e.host,y_=e=>{var t;if(e.nodeType!==1)return{};const r=(t=e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return r?r.getComputedStyle(e,null):{}},sl=e=>{const t=e&&b_(e);if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}const{overflow:r,overflowX:n,overflowY:a}=y_(t);return/(auto|scroll|overlay)/.test(r+a+n)?t:sl(t)},x_=e=>{var t;const r=sl(e);return r?r!==((t=r.ownerDocument)===null||t===void 0?void 0:t.body):!1};function yd(e,t){if(t==="window")return e?.ownerDocument.documentElement;if(t==="clippingParents")return"clippingAncestors";if(t==="scrollParent"){let r=sl(e);return r.nodeName==="BODY"&&(r=e?.ownerDocument.documentElement),r}return t}function E1(e,t){return typeof e=="number"||typeof e=="object"&&e!==null?xd(e,t):typeof e=="function"?r=>{const n=e(r);return xd(n,t)}:{mainAxis:t}}const xd=(e,t)=>{if(typeof e=="number")return{mainAxis:e+t};var r;return{...e,mainAxis:((r=e.mainAxis)!==null&&r!==void 0?r:0)+t}};function I1(e,t){if(typeof e=="number")return e;const{start:r,end:n,...a}=e,s=a,c=t?"end":"start",u=t?"start":"end";return e[c]&&(s.left=e[c]),e[u]&&(s.right=e[u]),s}const w_=e=>({above:"top",below:"bottom",before:e?"right":"left",after:e?"left":"right"}),k_=()=>({start:"start",end:"end",top:"start",bottom:"end",center:void 0}),S_=(e,t)=>{const r=e==="above"||e==="below",n=t==="top"||t==="bottom";return r&&n||!r&&!n},F1=(e,t,r)=>{const n=S_(t,e)?"center":e,a=t&&w_(r)[t],s=n&&k_()[n];return a&&s?`${a}-${s}`:a},B_=()=>({top:"above",bottom:"below",right:"after",left:"before"}),z_=e=>e==="above"||e==="below"?{start:"start",end:"end"}:{start:"top",end:"bottom"},j_=e=>{const{side:t,alignment:r}=M1(e),n=B_()[t],a=r&&z_(n)[r];return{position:n,alignment:a}},__={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 si(e){return e==null?{}:typeof e=="string"?__[e]:e}function wd(e,t,r){const n=y.useRef(!0),[a]=y.useState(()=>({value:e,callback:t,facade:{get current(){return a.value},set current(s){const c=a.value;c!==s&&(a.value=s,a.callback(s,c))}}}));return bt(()=>{n.current=!1},[]),a.callback=t,a.facade}function C_(e){let t;return()=>(t||(t=new Promise(r=>{Promise.resolve().then(()=>{t=void 0,r(e())})})),t)}function N_(e){const{arrow:t,middlewareData:r}=e;if(!r.arrow||!t)return;const{x:n,y:a}=r.arrow;Object.assign(t.style,{left:n!=null?`${n}px`:"",top:a!=null?`${a}px`:""})}function T_(e){var t,r,n;const{container:a,placement:s,middlewareData:c,strategy:u,lowPPI:f,coordinates:p,useTransform:g=!0}=e;if(!a)return;a.setAttribute(Sj,s),a.removeAttribute(a1),c.intersectionObserver.intersecting&&a.setAttribute(a1,""),a.removeAttribute(s1),!((t=c.hide)===null||t===void 0)&&t.escaped&&a.setAttribute(s1,""),a.removeAttribute(l1),!((r=c.hide)===null||r===void 0)&&r.referenceHidden&&a.setAttribute(l1,"");const v=((n=a.ownerDocument.defaultView)===null||n===void 0?void 0:n.devicePixelRatio)||1,x=Math.round(p.x*v)/v,w=Math.round(p.y*v)/v;if(Object.assign(a.style,{position:u}),g){Object.assign(a.style,{transform:f?`translate(${x}px, ${w}px)`:`translate3d(${x}px, ${w}px, 0)`});return}Object.assign(a.style,{left:`${x}px`,top:`${w}px`})}const P_=e=>{switch(e){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 A1(e){const t=[];let r=e;for(;r;){const n=sl(r);if(e.ownerDocument.body===n){t.push(n);break}if(n.nodeName==="BODY"&&n!==e.ownerDocument.body)break;t.push(n),r=n}return t}function R_(e,t){return new e.ResizeObserver(t)}function M_(e){let t=!1;const{container:r,target:n,arrow:a,strategy:s,middleware:c,placement:u,useTransform:f=!0,disableUpdateOnResize:p=!1}=e,g=r.ownerDocument.defaultView;if(!n||!r||!g)return{updatePosition:()=>{},dispose:()=>{}};const v=p?null:R_(g,z=>{z.every(j=>j.contentRect.width>0&&j.contentRect.height>0)&&k()});let x=!0;const w=new Set;Object.assign(r.style,{position:"fixed",left:0,top:0,margin:0});const S=()=>{t||(x&&(A1(r).forEach(z=>w.add(z)),Br(n)&&A1(n).forEach(z=>w.add(z)),w.forEach(z=>{z.addEventListener("scroll",k,{passive:!0})}),v?.observe(r),Br(n)&&v?.observe(n),x=!1),Object.assign(r.style,{position:s}),v_(n,r,{placement:u,middleware:c,strategy:s}).then(({x:z,y:P,middlewareData:j,placement:N})=>{var M,C;if(!t){N_({arrow:a,middlewareData:j}),T_({container:r,middlewareData:j,placement:N,coordinates:{x:z,y:P},lowPPI:(g?.devicePixelRatio||1)<=1,strategy:s,useTransform:f});var I,A;r.dispatchEvent(new CustomEvent(cd,{detail:{placement:N,escaped:(I=(M=j.hide)===null||M===void 0?void 0:M.escaped)!==null&&I!==void 0?I:!1,referenceHidden:(A=(C=j.hide)===null||C===void 0?void 0:C.referenceHidden)!==null&&A!==void 0?A:!1}}))}}).catch(z=>{}))},k=C_(()=>S()),B=()=>{t=!0,g&&(g.removeEventListener("scroll",k),g.removeEventListener("resize",k)),w.forEach(z=>{z.removeEventListener("scroll",k)}),w.clear(),v?.disconnect()};return g&&(g.addEventListener("scroll",k,{passive:!0}),g.addEventListener("resize",k)),k(),{updatePosition:k,dispose:B}}function E_(){return{name:"coverTarget",fn:e=>{const{placement:t,rects:r,x:n,y:a}=e,s=M1(t).side,c={x:n,y:a};switch(s){case"bottom":c.y-=r.reference.height;break;case"top":c.y+=r.reference.height;break;case"left":c.x+=r.reference.width;break;case"right":c.x-=r.reference.width;break}return c}}}function I_(e){const{hasScrollableElement:t,flipBoundary:r,container:n,fallbackPositions:a=[],isRtl:s}=e,c=a.reduce((u,f)=>{const{position:p,align:g}=si(f),v=F1(g,p,s);return v&&u.push(v),u},[]);return h_({...t&&{boundary:"clippingAncestors"},...r&&{altBoundary:!0,boundary:yd(n,r)},fallbackStrategy:"bestFit",...c.length&&{fallbackPlacements:c}})}function F_(){return{name:"intersectionObserver",fn:async e=>{const t=e.rects.floating,r=await d_(e,{altBoundary:!0}),n=r.top<t.height&&r.top>0,a=r.bottom<t.height&&r.bottom>0;return{data:{intersecting:n||a}}}}}const A_=e=>({name:"resetMaxSize",fn({middlewareData:t,elements:r}){var n;if(!((n=t.resetMaxSize)===null||n===void 0)&&n.maxSizeAlreadyReset)return{};const{applyMaxWidth:a,applyMaxHeight:s}=e;return a&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-width"),r.floating.style.removeProperty("width")),s&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-height"),r.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function D_(e,t){const{container:r,overflowBoundary:n,overflowBoundaryPadding:a,isRtl:s}=t;return g_({...a&&{padding:I1(a,s)},...n&&{altBoundary:!0,boundary:yd(r,n)},apply({availableHeight:c,availableWidth:u,elements:f,rects:p}){const g=(w,S,k)=>{if(w&&(f.floating.style.setProperty("box-sizing","border-box"),f.floating.style.setProperty(`max-${S}`,`${k}px`),p.floating[S]>k)){f.floating.style.setProperty(S,`${k}px`);const B=S==="width"?"x":"y";f.floating.style.getPropertyValue(`overflow-${B}`)||f.floating.style.setProperty(`overflow-${B}`,"auto")}},{applyMaxWidth:v,applyMaxHeight:x}=e;g(v,"width",u),g(x,"height",c)}})}function q_(e){return!e||typeof e=="number"||typeof e=="object"?e:({rects:{floating:t,reference:r},placement:n})=>{const{position:a,alignment:s}=j_(n);return e({positionedRect:t,targetRect:r,position:a,alignment:s})}}function O_(e){const t=q_(e);return f_(t)}function H_(e){const{hasScrollableElement:t,shiftToCoverTarget:r,disableTether:n,overflowBoundary:a,container:s,overflowBoundaryPadding:c,isRtl:u}=e;return p_({...t&&{boundary:"clippingAncestors"},...r&&{crossAxis:!0,limiter:R1({crossAxis:!0,mainAxis:!1})},...n&&{crossAxis:n==="all",limiter:R1({crossAxis:n!=="all",mainAxis:!1})},...c&&{padding:I1(c,u)},...a&&{altBoundary:!0,boundary:yd(s,a)}})}const D1="--fui-match-target-size";function L_(){return{name:"matchTargetSize",fn:async e=>{const{rects:{reference:t,floating:r},elements:{floating:n},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:a=!1}={}}}=e;if(t.width===r.width||a)return{};const{width:s}=t;return n.style.setProperty(D1,`${s}px`),n.style.width||(n.style.width=`var(${D1})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}}}function V_(e,t){const{align:r,arrowPadding:n,autoSize:a,coverTarget:s,disableUpdateOnResize:c,flipBoundary:u,offset:f,overflowBoundary:p,pinned:g,position:v,unstable_disableTether:x,strategy:w,overflowBoundaryPadding:S,fallbackPositions:k,useTransform:B,matchTargetSize:z,shiftToCoverTarget:P}=t;return y.useCallback((j,N)=>e({container:j,arrow:N,options:{autoSize:a,disableUpdateOnResize:c,matchTargetSize:z,offset:f,strategy:w,coverTarget:s,flipBoundary:u,overflowBoundary:p,useTransform:B,overflowBoundaryPadding:S,pinned:g,arrowPadding:n,align:r,fallbackPositions:k,shiftToCoverTarget:P,position:v,unstable_disableTether:x}}),[a,c,z,f,w,s,u,p,B,S,g,n,r,k,P,v,x,e])}function W_(e){const{dir:t,targetDocument:r}=He(),n=t==="rtl",a=V_(jj(),e),{positionFixed:s}=e;return y.useCallback((c,u)=>{const f=x_(c),p=a(c,u),{autoSize:g,disableUpdateOnResize:v,matchTargetSize:x,offset:w,coverTarget:S,flipBoundary:k,overflowBoundary:B,useTransform:z,overflowBoundaryPadding:P,pinned:j,position:N,arrowPadding:M,strategy:C,align:I,fallbackPositions:A,shiftToCoverTarget:ae,unstable_disableTether:de}=p,ee=P_(g),te=[ee&&A_(ee),x&&L_(),w&&O_(w),S&&E_(),!j&&I_({container:c,flipBoundary:k,hasScrollableElement:f,isRtl:n,fallbackPositions:A}),H_({container:c,hasScrollableElement:f,overflowBoundary:B,disableTether:de,overflowBoundaryPadding:P,isRtl:n,shiftToCoverTarget:ae}),ee&&D_(ee,{container:c,overflowBoundary:B,overflowBoundaryPadding:P,isRtl:n}),F_(),u&&m_({element:u,padding:M}),P1({strategy:"referenceHidden"}),P1({strategy:"escaped"}),!1].filter(Boolean);return{placement:F1(I,N,n),middleware:te,strategy:C??s?"fixed":"absolute",disableUpdateOnResize:v,useTransform:z}},[a,n,r,s])}function ll(e){const t=y.useRef(null),r=y.useRef(null),n=y.useRef(null),a=y.useRef(null),s=y.useRef(null),{enabled:c=!0}=e,u=W_(e),f=y.useCallback(()=>{t.current&&t.current.dispose(),t.current=null;var S;const k=(S=n.current)!==null&&S!==void 0?S:r.current;c&&Ms()&&k&&a.current&&(t.current=M_({container:a.current,target:k,arrow:s.current,...u(a.current,s.current)}))},[c,u]),p=ce(S=>{n.current=S,f()});y.useImperativeHandle(e.positioningRef,()=>({updatePosition:()=>{var S;return(S=t.current)===null||S===void 0?void 0:S.updatePosition()},setTarget:S=>{e.target,p(S)}}),[e.target,p]),bt(()=>{var S;p((S=e.target)!==null&&S!==void 0?S:null)},[e.target,p]),bt(()=>{f()},[f]);const g=wd(null,S=>{r.current!==S&&(r.current=S,f())}),v=ce(S=>{var k;return(k=e.onPositioningEnd)===null||k===void 0?void 0:k.call(e,S)}),x=wd(null,S=>{if(a.current!==S){var k;(k=a.current)===null||k===void 0||k.removeEventListener(cd,v),S?.addEventListener(cd,v),a.current=S,f()}}),w=wd(null,S=>{s.current!==S&&(s.current=S,f())});return{targetRef:g,containerRef:x,arrowRef:w}}const q1=e=>{const[t,r]=y.useState(e);return[t,a=>{if(a==null){r(void 0);return}let s;a instanceof MouseEvent?s=a:s=a.nativeEvent;const c=kj(s);r(c)}]};function $_(){let e=!1;const t=[];return{isActive(){return e},toggleActive(r){e!==r&&(e=r,t.forEach(n=>n(e)))},subscribe(r){return t.push(r),()=>{const n=t.indexOf(r);n>-1&&t.splice(n,1)}}}}var kd={exports:{}},Sd={};var O1;function U_(){if(O1)return Sd;O1=1;var e=vs();function t(v,x){return v===x&&(v!==0||1/v===1/x)||v!==v&&x!==x}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,a=e.useEffect,s=e.useLayoutEffect,c=e.useDebugValue;function u(v,x){var w=x(),S=n({inst:{value:w,getSnapshot:x}}),k=S[0].inst,B=S[1];return s(function(){k.value=w,k.getSnapshot=x,f(k)&&B({inst:k})},[v,w,x]),a(function(){return f(k)&&B({inst:k}),v(function(){f(k)&&B({inst:k})})},[v]),c(w),w}function f(v){var x=v.getSnapshot;v=v.value;try{var w=x();return!r(v,w)}catch{return!0}}function p(v,x){return x()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:u;return Sd.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g,Sd}var H1;function G_(){return H1||(H1=1,kd.exports=U_()),kd.exports}var X_=G_();function L1(e,t){return{topLeft:[e.left-t[0],e.top-t[1]],topRight:[e.right-t[0],e.top-t[1]],bottomRight:[e.right-t[0],e.bottom-t[1]],bottomLeft:[e.left-t[0],e.bottom-t[1]]}}const V1=20;function W1(e,t){return Math.sqrt((e[0]-t[0])**2+(e[1]-t[1])**2)}function K_(e,t){const r=W1(e,t);return r===0?[0,0]:[(e[0]-t[0])/r,(e[1]-t[1])/r]}function Y_(e,t,r){const n=[(e[0]+t[0])/2,(e[1]+t[1])/2],a=K_([r[0],r[1]],[n[0],n[1]]),s=W1([n[0],n[1]],[r[0],r[1]]);return[n[0]+a[0]*(s+V1),n[1]+a[1]*(s+V1)]}function cl(e){return`M ${e} z`}const Q_=le({wrapper:{mc9l5x:"fjseox",Bqenvij:"fniina8",a9b677:"f3tsq5r",Bkecrkj:"f1aehjj5"},wrapperActive:{mc9l5x:"ftgm304"},svg:{Bkfmm31:"f1au8mb3",Bkecrkj:"f1aehjj5",qhf8xq:"f19dog8a",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"]},triangle:{Bkecrkj:"f1cguypg"},triangleDebug:{Bceei9c:"f7116n6",Bkfmm31:"f1xab38x"},rectDebug:{Bkfmm31:"fyegryc"}},{d:[".fjseox{display:none;}",".fniina8{height:0;}",".f3tsq5r{width:0;}",".f1aehjj5{pointer-events:none;}",".ftgm304{display:block;}",".f1au8mb3{fill:transparent;}",".f19dog8a{position:fixed;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f1cguypg{pointer-events:auto;}",".f7116n6{cursor:crosshair;}",".f1xab38x{fill:color-mix(in srgb, var(--colorPaletteGreenBackground3) 20%, transparent);}",".fyegryc{fill:color-mix(in srgb, var(--colorPaletteRedBackground3) 20%, transparent);}"]});function $1(e){if(e.width<=0||e.height<=0)return"";let t="";return t+=`M ${e.x},${e.y} `,t+=`V ${e.y+e.height} `,t+=`H ${e.x+e.width} `,t+=`V ${e.y} `,t+=`H ${e.x} `,t+="Z ",t}function Z_(e,t,r,n){let a=`M 0,0 H ${e} V ${t} H 0 Z `;return a+=$1(r),a+=$1(n),a}const U1={top:0,right:0,bottom:0,left:0,width:0,height:0,x:0,y:0,toJSON(){return""}};function G1(e,t){return e.top===t.top&&e.right===t.right&&e.bottom===t.bottom&&e.left===t.left&&e.width===t.width&&e.height===t.height}function J_(e,t){return e[0]===t[0]&&e[1]===t[1]}const eC=y.memo(e=>{const{debug:t,onMouseEnter:r,onMouseMove:n,onMouseLeave:a,stateStore:s}=e,c=pt(),u=Q_(),f=X_.useSyncExternalStore(s.subscribe,s.isActive),p=y.useRef(null),[g,v]=y.useState(()=>({containerRect:U1,targetRect:U1,mouseCoordinates:[0,0]}));y.useImperativeHandle(e.imperativeRef,()=>({updateSVG(Y){v(X=>G1(X.containerRect,Y.containerRect)&&G1(X.targetRect,Y.targetRect)&&J_(X.mouseCoordinates,Y.mouseCoordinates)?X:Y)}}),[]);const{containerRect:x,targetRect:w,mouseCoordinates:S}=g,k=Math.min(w.top,x.top),B=Math.min(w.left,x.left),z=Math.max(w.bottom,x.bottom),P=Math.max(w.right,x.right),j=L1(x,[B,k]),N=L1(w,[B,k]),M=[S[0]-B,S[1]-k],C=Y_(j.topLeft,j.bottomRight,M),I=[C,j.topLeft,j.topRight],A=[C,j.topRight,j.bottomRight],ae=[C,j.bottomRight,j.bottomLeft],de=[C,j.bottomLeft,j.topLeft],ee=P-B,te=z-k,W=Z_(ee,te,{x:N.topLeft[0],y:N.topLeft[1],width:w.width,height:w.height},{x:j.topLeft[0],y:j.topLeft[1],width:x.width,height:x.height});return y.createElement("div",{className:Q(u.wrapper,f&&u.wrapperActive),"data-safe-zone":""},f?y.createElement("svg",{"aria-hidden":!0,className:u.svg,xmlns:"http://www.w3.org/2000/svg",ref:p,style:{width:`${ee}px`,height:`${te}px`,transform:`translate(${B}px, ${k}px)`}},y.createElement("g",{className:Q(u.triangle,t&&u.triangleDebug),clipPath:`url(#${c})`,onMouseEnter:r,onMouseMove:n,onMouseLeave:a},y.createElement("path",{d:cl(I)}),y.createElement("path",{d:cl(A)}),y.createElement("path",{d:cl(ae)}),y.createElement("path",{d:cl(de)})),y.createElement("clipPath",{id:c},y.createElement("path",{d:W})),t&&y.createElement("path",{className:u.rectDebug,d:W})):null)}),tC=2e3;function rC({debug:e=!1,disabled:t=!1,onSafeZoneEnter:r,onSafeZoneMove:n,onSafeZoneLeave:a,onSafeZoneTimeout:s,timeout:c=1500}={}){const[u]=y.useState($_),f=y.useRef(null),p=y.useRef(null),g=y.useRef(null),[v,x]=sn(),[w,S]=zh(),k=y.useRef({x:0,y:0}),B=y.useMemo(()=>{if(t)return()=>{};let M=null;function C(){x(),u.toggleActive(!1)}return I=>{I===null&&M?.removeEventListener("mouseenter",C),M=I,I?.addEventListener("mouseenter",C)}},[x,t,u]),z=y.useMemo(()=>{if(t)return()=>{};let M=null;function C(I){k.current={x:I.clientX,y:I.clientY},u.isActive()||u.toggleActive(!0),v(()=>{u.toggleActive(!1)},tC)}return I=>{I===null&&(S(),x(),M?.removeEventListener("mousemove",C)),M=I,I?.addEventListener("mousemove",C)}},[S,x,t,u,v]),P=ce(M=>{r?.(M),v(()=>{u.toggleActive(!1),s?.()},c)}),j=ce(M=>{v(()=>{u.toggleActive(!1),s?.()},c),n?.(M)}),N=ce(M=>{a?.(M)});return y.useEffect(()=>u.subscribe(M=>{if(M){let C=function(){const I=p.current,A=g.current;if(I&&A){var ae;(ae=f.current)===null||ae===void 0||ae.updateSVG({containerRect:I.getBoundingClientRect(),mouseCoordinates:[k.current.x,k.current.y],targetRect:A.getBoundingClientRect()})}w(C)};C();return}S()}),[S,w,u]),{containerRef:Oe(p,B),targetRef:Oe(g,z),elementToRender:y.useMemo(()=>t?null:y.createElement(eC,{debug:e,onMouseEnter:P,onMouseMove:j,onMouseLeave:N,imperativeRef:f,stateStore:u}),[t,e,P,j,N,u])}}const Bd=Lr(void 0),X1={open:!1,setOpen:()=>null,toggleOpen:()=>null,triggerRef:{current:null},contentRef:{current:null},arrowRef:{current:null},openOnContext:!1,openOnHover:!1,size:"medium",trapFocus:!1,inline:!1};Bd.Provider;const Nt=e=>eo(Bd,(t=X1)=>e(t)),oC=(e,t)=>{const r=Nt(j=>j.contentRef),n=Nt(j=>j.openOnHover),a=Nt(j=>j.setOpen),s=Nt(j=>j.mountNode),c=Nt(j=>j.arrowRef),u=Nt(j=>j.size),f=Nt(j=>j.withArrow),p=Nt(j=>j.appearance),g=Nt(j=>j.trapFocus),v=Nt(j=>j.inertTrapFocus),x=Nt(j=>j.inline),w=Gs(),{modalAttributes:S}=Vs({trapFocus:g,legacyTrapFocus:!v,alwaysFocusable:!g}),k={inline:x,appearance:p,withArrow:f,size:u,arrowRef:c,mountNode:s,components:{root:"div"},root:me(rt("div",{ref:Oe(t,r,w),role:g?"dialog":"group","aria-modal":g?!0:void 0,...S,...e}),{elementType:"div"})},{onMouseEnter:B,onMouseLeave:z,onKeyDown:P}=k.root;return k.root.onMouseEnter=j=>{n&&a(j,!0),B?.(j)},k.root.onMouseLeave=j=>{n&&a(j,!1),z?.(j)},k.root.onKeyDown=j=>{var N;j.key==="Escape"&&(!((N=r.current)===null||N===void 0)&&N.contains(j.target))&&(j.preventDefault(),a(j,!1)),P?.(j)},k};function nC(e){return Br(e)?{element:e}:typeof e=="object"?e===null?{element:null}:e:{}}const iC=le({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;}"]}),K1=hp.useInsertionEffect,aC=e=>{const{className:t,dir:r,focusVisibleRef:n,targetNode:a}=e,s=y.useMemo(()=>{if(a===void 0||e.disabled)return null;const c=a.ownerDocument.createElement("div");return a.appendChild(c),c},[a,e.disabled]);return y.useMemo(()=>{s&&(s.className=t,s.setAttribute("dir",r),s.setAttribute("data-portal-node","true"),n.current=s)},[t,r,s,n]),y.useEffect(()=>()=>{s?.remove()},[s]),s},sC=()=>{let e;function t(n,a){return e||(a&&(e=n.ownerDocument.createElement("div"),n.appendChild(e)),e)}function r(){e&&(e.remove(),e=void 0)}return{get:t,dispose:r}},lC=K1?e=>{"use no memo";const{className:t,dir:r,focusVisibleRef:n,targetNode:a}=e,[s]=y.useState(sC),c=y.useMemo(()=>a===void 0||e.disabled?null:new Proxy({},{get(u,f){if(f==="nodeType")return 1;if(f==="remove"){const v=s.get(a,!1);return v&&v.childNodes.length===0&&s.dispose(),()=>{}}const p=s.get(a,!0),g=p?p[f]:void 0;return typeof g=="function"?g.bind(p):g},set(u,f,p){const g=f==="_virtual"||f==="focusVisible",v=g?s.get(a,!1):s.get(a,!0);return g&&!v?!0:v?(Object.assign(v,{[f]:p}),!0):!1}}),[s,a,e.disabled]);return K1(()=>{if(!c)return;const u=t.split(" ").filter(Boolean);return c.classList.add(...u),c.setAttribute("dir",r),c.setAttribute("data-portal-node","true"),n.current=c,()=>{c.classList.remove(...u),c.removeAttribute("dir")}},[t,r,c,n]),y.useEffect(()=>()=>{c?.remove()},[c]),c}:aC,cC=e=>{"use no memo";const{targetDocument:t,dir:r}=He(),n=sS(),a=fg(),s=iC(),c=Z2(),u={dir:r,disabled:e.disabled,focusVisibleRef:a,className:Q(c,s.root,e.className),targetNode:n??t?.body};return lC(u)},uC=e=>{const{element:t,className:r}=nC(e.mountNode),n=y.useRef(null),a=cC({disabled:!!t,className:r}),s=t??a,c={children:e.children,mountNode:s,virtualParentRootRef:n};return y.useEffect(()=>{if(!s)return;const u=n.current,f=s.contains(u);if(u&&!f)return Ih(s,u),()=>{Ih(s,void 0)}},[n,s]),c};var zd=yp();const dC=e=>y.createElement("span",{hidden:!0,ref:e.virtualParentRootRef},e.mountNode&&zd.createPortal(y.createElement(y.Fragment,null,e.children,y.createElement("span",{hidden:!0})),e.mountNode)),li=e=>{const t=uC(e);return dC(t)};li.displayName="Portal";const fC=e=>{const t=Le(e.root,{children:[e.withArrow&&J("div",{ref:e.arrowRef,className:e.arrowClassName}),e.root.children]});return e.inline?t:J(li,{mountNode:e.mountNode,children:t})},pC={root:"fui-PopoverSurface"},hC={small:6,medium:8,large:8},gC=le({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",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:"f9ggezi",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",Bhu2qc9:"fymb6k8"},inline:{Bj3rh1h:"f19g0ac"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},brand:{De3pzq:"ffp7eso",sj55zd:"f1phragk"},smallPadding:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1sy4kr4"},mediumPadding:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f4zyqsv"},largePadding:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fop8ug2"},smallArrow:{rhnwrx:"f1s3jn22",Bdy53xb:"fv40uqz"},mediumLargeArrow:{rhnwrx:"f1f72gjr",Bdy53xb:"f69yoe5"},arrow:{B7ck84d:"f1ewtqcl",qhf8xq:"f1euv43f",Bj3rh1h:"f1bsuimh",De3pzq:"f1u2r49w",B2eet1l:"fqhgnl",Beyfa6y:"f17bz04i",Bz10aip:"f36o3x3",Bqenvij:"fzofk8q",a9b677:"f1wbx1ie",Ftih45:"f1wl9k8s",Br0sdwz:"f1aocrix",cmx5o7:"f1ljr5q2",susq4k:0,Biibvgv:0,Bicfajf:0,qehafq:0,Brs5u8j:"f155f1qt",Ccq8qp:"f9mhzq7",Baz25je:"fr6rhvx",Bcgcnre:0,Bqjgrrk:0,qa3bma:0,y0oebl:0,Biqmznv:0,Bm6vgfq:0,Bbv0w2i:0,uvfttm:0,eqrjj:0,Bk5zm6e:0,m598lv:0,B4f6apu:0,ydt019:0,Bq4z7u6:0,Bdkvgpv:0,B0qfbqy:0,kj8mxx:"f1kc0wz4",r59vdv:"fgq90dz",Bkw5xw4:"fq0y47f",hl6cv3:"f1pwrbz6",aea9ga:"f1hxxcvm",yayu3t:"fw8rgyo",Bhsv975:"f1wnzycx",rhl9o9:"f1730wal",B7gxrvb:"f1fy4ixr",B6q6orb:"fobkauc",B0lu1f8:"f16bqv1l"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f9ggezi{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fymb6k8{filter:drop-shadow(0 0 2px var(--colorNeutralShadowAmbient)) drop-shadow(0 8px 16px var(--colorNeutralShadowKey));}",".f19g0ac{z-index:1;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",[".f1sy4kr4{padding:12px;}",{p:-1}],[".f4zyqsv{padding:16px;}",{p:-1}],[".fop8ug2{padding:20px;}",{p:-1}],".f1s3jn22{--fui-positioning-arrow-height:8.484px;}",".fv40uqz{--fui-positioning-arrow-offset:-4.242px;}",".f1f72gjr{--fui-positioning-arrow-height:11.312px;}",".f69yoe5{--fui-positioning-arrow-offset:-5.656px;}",".f1ewtqcl{box-sizing:border-box;}",".f1euv43f{position:absolute;}",".f1bsuimh{z-index:-1;}",".f1u2r49w{background-color:inherit;}",".fqhgnl{background-clip:content-box;}",".f17bz04i{border-bottom-left-radius:var(--borderRadiusSmall);}",".f36o3x3{transform:rotate(var(--fui-positioning-arrow-angle));}",".fzofk8q{height:var(--fui-positioning-arrow-height);}",".f1wbx1ie{width:var(--fui-positioning-arrow-height);}",'.f1wl9k8s::before{content:"";}',".f1aocrix::before{display:block;}",".f1ljr5q2::before{background-color:inherit;}",[".f155f1qt::before{margin:-1px;}",{p:-1}],".f9mhzq7::before{width:100%;}",".fr6rhvx::before{height:100%;}",[".f1kc0wz4::before{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".fgq90dz::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".fq0y47f::before{clip-path:polygon(0% 0%, 100% 100%, 0% 100%);}",'[data-popper-placement^="top"] .f1pwrbz6{bottom:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="top"] .f1hxxcvm{--fui-positioning-arrow-angle:-45deg;}','[data-popper-placement^="right"] .fw8rgyo{left:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="right"] .f1wnzycx{--fui-positioning-arrow-angle:45deg;}','[data-popper-placement^="bottom"] .f1730wal{top:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="bottom"] .f1fy4ixr{--fui-positioning-arrow-angle:135deg;}','[data-popper-placement^="left"] .fobkauc{right:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="left"] .f16bqv1l{--fui-positioning-arrow-angle:225deg;}']}),mC=e=>{const t=gC();return e.root.className=Q(pC.root,t.root,e.inline&&t.inline,e.size==="small"&&t.smallPadding,e.size==="medium"&&t.mediumPadding,e.size==="large"&&t.largePadding,e.appearance==="inverted"&&t.inverted,e.appearance==="brand"&&t.brand,e.root.className),e.arrowClassName=Q(t.arrow,e.size==="small"?t.smallArrow:t.mediumLargeArrow),e},Y1=y.forwardRef((e,t)=>{const r=oC(e,t);return mC(r),Pe("usePopoverSurfaceStyles_unstable")(r),fC(r)});Y1.displayName="PopoverSurface";const vC=4,Q1=De.durationSlower,Z1=De.curveDecelerateMid,J1=oi(({distance:e=10})=>({enter:[Bo({duration:Q1,easing:Z1,direction:"enter"}),{...Km({duration:Q1,easing:Z1,direction:"enter",outX:`calc(var(${Qs}, 0px) * ${e})`,outY:`calc(var(${Zs}, 0px) * ${e})`}),composite:"accumulate"}],exit:[]})),bC=e=>{const[t,r]=q1(),{targetDocument:n}=He(),a=si(e.positioning),s=c1({targetDocument:n,onPositioningEnd:a.onPositioningEnd}),c={size:"medium",contextTarget:t,setContextTarget:r,...e,positioning:{...a,onPositioningEnd:s}},u=y.Children.toArray(e.children);let f,p;u.length===2?(f=u[0],p=u[1]):u.length===1&&(p=u[0]);const[g,v]=yC(c),[x,w]=sn(),S=ce((ee,te)=>{if(w(),!(ee instanceof Event)&&ee.persist&&ee.persist(),ee.type==="mouseleave"){var W;x(()=>{v(ee,te)},(W=e.mouseLeaveDelay)!==null&&W!==void 0?W:500)}else v(ee,te)}),k=y.useCallback(ee=>{S(ee,!g)},[S,g]),B=xC(c);var z;Ru({contains:ln,element:n,callback:ee=>S(ee,!1),refs:[B.triggerRef,B.contentRef],disabled:!g,disabledFocusOnIframe:!(!((z=e.closeOnIframeFocus)!==null&&z!==void 0)||z)});const P=c.openOnContext||c.closeOnScroll;Ph({contains:ln,element:n,callback:ee=>S(ee,!1),refs:[B.triggerRef,B.contentRef],disabled:!g||!P});var j;const N=(j=e.closeOnFocusOutside)!==null&&j!==void 0?j:!0,M=y.useRef(!1),C=ce(ee=>{var te;const W=(te=ee.composedPath()[0])!==null&&te!==void 0?te:ee.target,Y=B.contentRef.current;var X;const O=(X=B.triggerRef.current)!==null&&X!==void 0?X:null;if(!Y)return;if(ln(Y,W)||ln(O,W)){M.current=!0;return}M.current&&(M.current=!1,S(ee,!1))});y.useEffect(()=>{if(!(!g||!e.trapFocus||!N))return M.current=!1,n?.addEventListener("focusin",C,!0),()=>{n?.removeEventListener("focusin",C,!0)}},[g,e.trapFocus,N,n,C]);const{findFirstFocusable:I}=ca(),A=QB();y.useEffect(()=>{if(e.unstable_disableAutoFocus)return;const ee=B.contentRef.current;if(g&&ee){var te;const W=!isNaN((te=ee.getAttribute("tabIndex"))!==null&&te!==void 0?te:void 0),Y=W?ee:I(ee);Y?.focus(),W&&A(ee)}},[I,A,g,B.contentRef,e.unstable_disableAutoFocus]);var ae,de;return{components:{surfaceMotion:J1},...c,...B,inertTrapFocus:(ae=e.inertTrapFocus)!==null&&ae!==void 0?ae:e.legacyTrapFocus===void 0?!1:!e.legacyTrapFocus,popoverTrigger:f,popoverSurface:p,open:g,setOpen:S,toggleOpen:k,setContextTarget:r,contextTarget:t,inline:(de=e.inline)!==null&&de!==void 0?de:!1,surfaceMotion:ha(e.surfaceMotion,{elementType:J1,defaultProps:{visible:g,appear:!0,unmountOnExit:!0}})}};function yC(e){const t=ce((c,u)=>{var f;return(f=e.onOpenChange)===null||f===void 0?void 0:f.call(e,c,u)}),[r,n]=Bt({state:e.open,defaultState:e.defaultOpen,initialState:!1});e.open=r!==void 0?r:e.open;const a=e.setContextTarget,s=y.useCallback((c,u)=>{u&&c.type==="contextmenu"&&a(c),u||a(void 0),n(u),t?.(c,{open:u})},[n,t,a]);return[r,s]}function xC(e){const t={position:"above",align:"center",arrowPadding:2*vC,target:e.openOnContext?e.contextTarget:void 0,...si(e.positioning)};t.coverTarget&&(e.withArrow=!1),e.withArrow&&(t.offset=E1(t.offset,hC[e.size]));const{targetRef:r,containerRef:n,arrowRef:a}=ll(t);return{triggerRef:r,contentRef:n,arrowRef:a}}function wC(e){const{appearance:t,arrowRef:r,contentRef:n,inline:a,mountNode:s,open:c,openOnContext:u,openOnHover:f,setOpen:p,size:g,toggleOpen:v,trapFocus:x,triggerRef:w,withArrow:S,inertTrapFocus:k}=e;return{popover:y.useMemo(()=>({appearance:t,arrowRef:r,contentRef:n,inline:a,mountNode:s,open:c,openOnContext:u,openOnHover:f,setOpen:p,size:g,toggleOpen:v,trapFocus:x,triggerRef:w,withArrow:S,inertTrapFocus:k}),[t,r,n,a,s,c,u,f,p,g,v,x,w,S,k])}}const kC=(e,t)=>{var r;return Le(Bd.Provider,{value:(r=t?.popover)!==null&&r!==void 0?r:X1,children:[e.popoverTrigger,e.popoverSurface&&J(e.surfaceMotion,{children:J(Xs,{children:e.popoverSurface})})]})},ev=e=>{const t=bC(e),r=wC(t);return kC(t,r)};ev.displayName="Popover";const SC=e=>{const{children:t,disableButtonEnhancement:r=!1}=e,n=ia(t),a=Nt(j=>j.open),s=Nt(j=>j.setOpen),c=Nt(j=>j.toggleOpen),u=Nt(j=>j.triggerRef),f=Nt(j=>j.openOnHover),p=Nt(j=>j.openOnContext),{triggerAttributes:g}=Vs(),v=j=>{p&&(j.preventDefault(),s(j,!0))},x=j=>{p||c(j)},w=j=>{j.key===ti&&a&&!j.isDefaultPrevented()&&(s(j,!1),j.preventDefault())},S=j=>{f&&s(j,!0)},k=j=>{f&&s(j,!1)},B={...g,"aria-expanded":`${a}`,...n?.props,onMouseEnter:ce(Re(n?.props.onMouseEnter,S)),onMouseLeave:ce(Re(n?.props.onMouseLeave,k)),onContextMenu:ce(Re(n?.props.onContextMenu,v)),ref:Oe(u,na(n))},z={...B,onClick:ce(Re(n?.props.onClick,x)),onKeyDown:ce(Re(n?.props.onKeyDown,w))},P=fn(n?.type==="button"||n?.type==="a"?n.type:"div",z);return{children:Es(e.children,fn(n?.type==="button"||n?.type==="a"?n.type:"div",p?B:r?z:P))}},BC=e=>e.children,jd=e=>{const t=SC(e);return BC(t)};jd.displayName="PopoverTrigger",jd.isFluentTriggerComponent=!0;const zC=6,jC=4,_C=e=>-1,CC=e=>{};function NC(e){const{targetDocument:t}=He(),r=t?.defaultView,n=r?r.setTimeout:_C,a=r?r.clearTimeout:CC,s=y.useRef(void 0),c=y.useCallback((f,p)=>(s.current!==void 0&&a(s.current),s.current=n(f,p??0),s.current),[a,n]),u=y.useCallback(()=>{s.current!==void 0&&(a(s.current),s.current=void 0)},[a]);return y.useEffect(()=>{const f=e.current;return()=>{(!f||!f.isConnected)&&u()}},[u,e]),[c,u]}const TC=e=>{var t,r,n,a,s,c,u;const f=tS(),p=gS(),{targetDocument:g}=He(),[v,x]=Bt({state:e.visible,initialState:!1}),[w,S]=y.useState(!1),{children:k,content:B,withArrow:z=!1,positioning:P="above",onVisibleChange:j,relationship:N,showDelay:M=250,hideDelay:C=250,mountNode:I}=e,A={withArrow:z,positioning:P,showDelay:M,hideDelay:C,relationship:N,visible:v,hidden:w,shouldRenderTooltip:v,mountNode:I,components:{content:"div"},content:me(B,{defaultProps:{role:"tooltip"},elementType:"div"})};A.content.id=pt("tooltip-",A.content.id);const ae=si(A.positioning),de=ce(we=>{var Be;const{escaped:Te,referenceHidden:Ae}=we.detail;S(Te||Ae),(Be=ae.onPositioningEnd)===null||Be===void 0||Be.call(ae,we)}),ee={enabled:A.visible,arrowPadding:2*jC,position:"above",align:"center",offset:4,...ae,onPositioningEnd:de};A.withArrow&&(ee.offset=E1(ee.offset,zC));const{targetRef:te,containerRef:W,arrowRef:Y}=ll(ee),[X,O]=NC(W),Z=y.useCallback((we,Be)=>{O(),x(Te=>(Be.visible!==Te&&j?.(we,Be),Be.visible))},[O,x,j]);A.content.ref=Oe(A.content.ref,W),A.arrowRef=Y,bt(()=>{if(v){var we;const Be={hide:Ke=>Z(void 0,{visible:!1,documentKeyboardEvent:Ke})};(we=f.visibleTooltip)===null||we===void 0||we.hide(),f.visibleTooltip=Be;const Te=Ke=>{Ke.key===ti&&!Ke.defaultPrevented&&(Be.hide(Ke),Ke.preventDefault())};g?.addEventListener("keydown",Te,{capture:!0});const Ae=()=>{g?.visibilityState==="hidden"&&Be.hide()};return g?.addEventListener("visibilitychange",Ae),()=>{f.visibleTooltip===Be&&(f.visibleTooltip=void 0),g?.removeEventListener("keydown",Te,{capture:!0}),g?.removeEventListener("visibilitychange",Ae)}}},[f,g,v,Z]);const q=y.useRef(!1),G=y.useCallback(we=>{if(we.type==="focus"&&q.current){q.current=!1;return}const Be=f.visibleTooltip?0:A.showDelay;X(()=>{Z(we,{visible:!0})},Be),we.persist()},[X,Z,A.showDelay,f]),K=KB(),[F]=y.useState(()=>{const we=Te=>{var Ae;!((Ae=Te.detail)===null||Ae===void 0)&&Ae.isFocusedProgrammatically&&!K()&&(q.current=!0)};let Be=null;return Te=>{Be?.removeEventListener(rr,we),Te?.addEventListener(rr,we),Be=Te}}),V=y.useCallback(we=>{let Be=A.hideDelay;we.type==="blur"&&(Be=0,q.current=g?.activeElement===we.target),X(()=>{Z(we,{visible:!1})},Be),we.persist()},[X,Z,A.hideDelay,g]);A.content.onPointerEnter=Re(A.content.onPointerEnter,O),A.content.onPointerLeave=Re(A.content.onPointerLeave,V),A.content.onFocus=Re(A.content.onFocus,O),A.content.onBlur=Re(A.content.onBlur,V);const ue=ia(k),xe={},Ee=(ue==null||(t=ue.props)===null||t===void 0?void 0:t["aria-haspopup"])&&((ue==null||(r=ue.props)===null||r===void 0?void 0:r["aria-expanded"])===!0||(ue==null||(n=ue.props)===null||n===void 0?void 0:n["aria-expanded"])==="true");return N==="label"?typeof A.content.children=="string"?xe["aria-label"]=A.content.children:(xe["aria-labelledby"]=A.content.id,A.shouldRenderTooltip=!0):N==="description"&&(xe["aria-describedby"]=A.content.id,A.shouldRenderTooltip=!0),(p||Ee)&&(A.shouldRenderTooltip=!1),A.children=Es(k,{...xe,...ue?.props,ref:Oe(na(ue),F,ee.target===void 0?te:void 0),onPointerEnter:ce(Re(ue==null||(a=ue.props)===null||a===void 0?void 0:a.onPointerEnter,G)),onPointerLeave:ce(Re(ue==null||(s=ue.props)===null||s===void 0?void 0:s.onPointerLeave,V)),onFocus:ce(Re(ue==null||(c=ue.props)===null||c===void 0?void 0:c.onFocus,G)),onBlur:ce(Re(ue==null||(u=ue.props)===null||u===void 0?void 0:u.onBlur,V))}),A},PC=e=>{"use no memo";const{appearance:t="normal",...r}=e,n=TC(r);return{appearance:t,...n}},RC=e=>Le(y.Fragment,{children:[e.children,e.shouldRenderTooltip&&J(li,{mountNode:e.mountNode,children:Le(e.content,{children:[e.withArrow&&J("div",{ref:e.arrowRef,className:e.arrowClassName}),e.content.children]})})]}),MC={content:"fui-Tooltip__content"},EC=le({root:{mc9l5x:"fjseox",B7ck84d:"f1ewtqcl",B2u0y6b:"f132xexn",Bceei9c:"f158kwzp",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm",Btd35i7:"fokg9q4",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",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:"f9ggezi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1bzqsji",De3pzq:"fxugw4r",sj55zd:"f19n0e5",Bhu2qc9:"fxeb0a7"},visible:{mc9l5x:"ftgm304"},hidden:{Bcdw1i0:"fd7fpy0",Bkecrkj:"f1aehjj5"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},arrow:{B7ck84d:"f1ewtqcl",qhf8xq:"f1euv43f",Bj3rh1h:"f1bsuimh",rhnwrx:"f1s3jn22",Bdy53xb:"fv40uqz",De3pzq:"f1u2r49w",B2eet1l:"fqhgnl",Beyfa6y:"f17bz04i",Bz10aip:"f36o3x3",Bqenvij:"fzofk8q",a9b677:"f1wbx1ie",Ftih45:"f1wl9k8s",Br0sdwz:"f1aocrix",cmx5o7:"f1ljr5q2",susq4k:0,Biibvgv:0,Bicfajf:0,qehafq:0,Brs5u8j:"f155f1qt",Ccq8qp:"f9mhzq7",Baz25je:"fr6rhvx",Bcgcnre:0,Bqjgrrk:0,qa3bma:0,y0oebl:0,Biqmznv:0,Bm6vgfq:0,Bbv0w2i:0,uvfttm:0,eqrjj:0,Bk5zm6e:0,m598lv:0,B4f6apu:0,ydt019:0,Bq4z7u6:0,Bdkvgpv:0,B0qfbqy:0,kj8mxx:"f1kc0wz4",r59vdv:"fgq90dz",Bkw5xw4:"fq0y47f",hl6cv3:"f1pwrbz6",aea9ga:"f1hxxcvm",yayu3t:"fw8rgyo",Bhsv975:"f1wnzycx",rhl9o9:"f1730wal",B7gxrvb:"f1fy4ixr",B6q6orb:"fobkauc",B0lu1f8:"f16bqv1l"}},{d:[".fjseox{display:none;}",".f1ewtqcl{box-sizing:border-box;}",".f132xexn{max-width:240px;}",".f158kwzp{cursor:default;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fokg9q4{overflow-wrap:break-word;}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f9ggezi{border:1px solid var(--colorTransparentStroke);}",{p:-2}],[".f1bzqsji{padding:4px 11px 6px 11px;}",{p:-1}],".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fxeb0a7{filter:drop-shadow(0 0 2px var(--colorNeutralShadowAmbient)) drop-shadow(0 4px 8px var(--colorNeutralShadowKey));}",".ftgm304{display:block;}",".fd7fpy0{visibility:hidden;}",".f1aehjj5{pointer-events:none;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1euv43f{position:absolute;}",".f1bsuimh{z-index:-1;}",".f1s3jn22{--fui-positioning-arrow-height:8.484px;}",".fv40uqz{--fui-positioning-arrow-offset:-4.242px;}",".f1u2r49w{background-color:inherit;}",".fqhgnl{background-clip:content-box;}",".f17bz04i{border-bottom-left-radius:var(--borderRadiusSmall);}",".f36o3x3{transform:rotate(var(--fui-positioning-arrow-angle));}",".fzofk8q{height:var(--fui-positioning-arrow-height);}",".f1wbx1ie{width:var(--fui-positioning-arrow-height);}",'.f1wl9k8s::before{content:"";}',".f1aocrix::before{display:block;}",".f1ljr5q2::before{background-color:inherit;}",[".f155f1qt::before{margin:-1px;}",{p:-1}],".f9mhzq7::before{width:100%;}",".fr6rhvx::before{height:100%;}",[".f1kc0wz4::before{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".fgq90dz::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".fq0y47f::before{clip-path:polygon(0% 0%, 100% 100%, 0% 100%);}",'[data-popper-placement^="top"] .f1pwrbz6{bottom:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="top"] .f1hxxcvm{--fui-positioning-arrow-angle:-45deg;}','[data-popper-placement^="right"] .fw8rgyo{left:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="right"] .f1wnzycx{--fui-positioning-arrow-angle:45deg;}','[data-popper-placement^="bottom"] .f1730wal{top:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="bottom"] .f1fy4ixr{--fui-positioning-arrow-angle:135deg;}','[data-popper-placement^="left"] .fobkauc{right:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="left"] .f16bqv1l{--fui-positioning-arrow-angle:225deg;}']}),IC=e=>{const t=EC();return e.content.className=Q(MC.content,t.root,e.appearance==="inverted"&&t.inverted,e.visible&&t.visible,e.hidden&&t.hidden,e.content.className),e.arrowClassName=t.arrow,e},No=e=>{const t=PC(e);return IC(t),Pe("useTooltipStyles_unstable")(t),RC(t)};No.displayName="Tooltip",No.isFluentTriggerComponent=!0;const tv=e=>{const{iconOnly:t,iconPosition:r}=e;return Le(e.root,{children:[r!=="after"&&e.icon&&J(e.icon,{}),!t&&e.root.children,r==="after"&&e.icon&&J(e.icon,{})]})},rv=y.createContext(void 0),FC={};rv.Provider;const AC=()=>{var e;return(e=y.useContext(rv))!==null&&e!==void 0?e:FC},DC=(e,t)=>{const{size:r}=AC(),{appearance:n="secondary",shape:a="rounded",size:s=r??"medium",...c}=e,u=ov(c,t);return{appearance:n,shape:a,size:s,...u}},ov=(e,t)=>{const{icon:r,iconPosition:n="before",...a}=e,s=Ne(r,{elementType:"span"});var c,u;return{disabled:(c=e.disabled)!==null&&c!==void 0?c:!1,disabledFocusable:(u=e.disabledFocusable)!==null&&u!==void 0?u:!1,iconPosition:n,iconOnly:!!(s?.children&&!e.children),components:{root:"button",icon:"span"},root:me(fn(a.as,a),{elementType:"button",defaultProps:{ref:t,type:e.as!=="a"?"button":void 0}}),icon:s}},nv={root:"fui-Button",icon:"fui-Button__icon"},qC=ze("r1f29ykk",null,{r:[".r1f29ykk{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);}",".r1f29ykk:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}",".r1f29ykk:hover:active,.r1f29ykk:active:focus-visible{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}",".r1f29ykk[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){.r1f29ykk{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1f29ykk:focus{border-color:ButtonText;}.r1f29ykk:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1f29ykk:hover:active,.r1f29ykk:active:focus-visible{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}","@supports (-moz-appearance:button){.r1f29ykk[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),OC=ze("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);}"]),HC=le({outline:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",Bpjbzib:"fkoldzo"},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",Bpjbzib:"f1ksv2xa",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"],Brsut9c:"f1d6mv4x",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",Bv2bamp:"f1ysmecq",vxuvv6:"faulsx",Bli9q98:["f79t15f","f8qmx7k"],Bx2tt8t:"fbtzoaq",yad0b3:["f8qmx7k","f79t15f"],j2fop7:"fd4bjan"},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",Bpjbzib:"f1q1yqic",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"],Brsut9c:"fwga7ee",Bqou3pl:"f1nhwcv0",Bsnehw8:"f1gm6xmp",wsxvnf:"f1xxsver",Bahaeuw:"f1v3eptx",Buhizc3:"fivsta0",j2fop7:"fd4bjan",Bqabnb4:"f3m6zum"},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",Bpjbzib:"fkoldzo",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"],Brsut9c:"f1l983o9",Bqou3pl:"f1nhwcv0",Bsnehw8:"f1gm6xmp",Bbkh6qg:"fxoo9op",Bahaeuw:"f1v3eptx",Bv2bamp:"f1i0gk12",j2fop7:"fd4bjan"},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);}",".fkoldzo:hover:active,.fkoldzo:active:focus-visible{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);}",".f1ksv2xa:hover:active,.f1ksv2xa:active:focus-visible{background-color:var(--colorBrandBackgroundPressed);}",".fhvnf4x:hover:active,.fhvnf4x:active:focus-visible{border-top-color:transparent;}",".fb6swo4:hover:active,.fb6swo4:active:focus-visible{border-right-color:transparent;}",".f232fm2:hover:active,.f232fm2:active:focus-visible{border-left-color:transparent;}",".f1klyf7k:hover:active,.f1klyf7k:active:focus-visible{border-bottom-color:transparent;}",".f1d6mv4x:hover:active,.f1d6mv4x:active:focus-visible{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);}",".f1q1yqic:hover:active,.f1q1yqic:active:focus-visible{background-color:var(--colorSubtleBackgroundPressed);}",".fwga7ee:hover:active,.fwga7ee:active:focus-visible{color:var(--colorNeutralForeground2Pressed);}",".f1nhwcv0:hover:active .fui-Icon-filled,.f1nhwcv0:active:focus-visible .fui-Icon-filled{display:inline;}",".f1gm6xmp:hover:active .fui-Icon-regular,.f1gm6xmp:active:focus-visible .fui-Icon-regular{display:none;}",".f1xxsver:hover:active .fui-Button__icon,.f1xxsver:active:focus-visible .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1l983o9:hover:active,.f1l983o9:active:focus-visible{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){.f1ysmecq:hover:active,.f1ysmecq:active:focus-visible{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.faulsx:hover:active,.faulsx:active:focus-visible{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f79t15f:hover:active,.f79t15f:active:focus-visible{border-right-color:Highlight;}.f8qmx7k:hover:active,.f8qmx7k:active:focus-visible{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbtzoaq:hover:active,.fbtzoaq:active:focus-visible{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fd4bjan:hover:active,.fd4bjan:active:focus-visible{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){.f3m6zum:hover:active .fui-Button__icon,.f3m6zum:active:focus-visible .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){.f1i0gk12:hover:active,.f1i0gk12:active:focus-visible{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}]]}),LC=le({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",Bpjbzib:"f1jct5ie",im15vp:"f13txml0",Hjvxdg:["f1ncddno","f1axfvow"],Gpfmf1:"f1z04ada",ustxxc:["f1axfvow","f1ncddno"],Brsut9c:"f1uhomfy",Bses4qk:"fy9mucy",Bqou3pl:"f1g9va8i",Bsnehw8:"fwgvudy",wsxvnf:"fom6jww"},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",Bv2bamp:"fw24f3",vxuvv6:"f1nznrny",Bli9q98:["fq8nxuu","f1ao3jkc"],Bx2tt8t:"ftoixeo",yad0b3:["f1ao3jkc","fq8nxuu"],j2fop7:"fpmuzpx",Bqabnb4:"f168odog"},outline:{De3pzq:"f1c21dwh",Jwef8y:"f9ql6rf",Bpjbzib:"f9r0db0"},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"]},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"],Bpjbzib:"f9r0db0",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"]},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"],Bpjbzib:"f9r0db0",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"]}},{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);}",".f1jct5ie:hover:active,.f1jct5ie:active:focus-visible{background-color:var(--colorNeutralBackgroundDisabled);}",".f13txml0:hover:active,.f13txml0:active:focus-visible{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ncddno:hover:active,.f1ncddno:active:focus-visible{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1axfvow:hover:active,.f1axfvow:active:focus-visible{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1z04ada:hover:active,.f1z04ada:active:focus-visible{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1uhomfy:hover:active,.f1uhomfy:active:focus-visible{color:var(--colorNeutralForegroundDisabled);}",".fy9mucy:hover:active,.fy9mucy:active:focus-visible{cursor:not-allowed;}",".f1g9va8i:hover:active .fui-Icon-filled,.f1g9va8i:active:focus-visible .fui-Icon-filled{display:none;}",".fwgvudy:hover:active .fui-Icon-regular,.fwgvudy:active:focus-visible .fui-Icon-regular{display:inline;}",".fom6jww:hover:active .fui-Button__icon,.fom6jww:active:focus-visible .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f9r0db0:hover:active,.f9r0db0:active:focus-visible{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;}",".fhvnf4x:hover:active,.fhvnf4x:active:focus-visible{border-top-color:transparent;}",".fb6swo4:hover:active,.fb6swo4:active:focus-visible{border-right-color:transparent;}",".f232fm2:hover:active,.f232fm2:active:focus-visible{border-left-color:transparent;}",".f1klyf7k:hover:active,.f1klyf7k:active:focus-visible{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){.fw24f3:hover:active,.fw24f3:active:focus-visible{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nznrny:hover:active,.f1nznrny:active:focus-visible{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ao3jkc:hover:active,.f1ao3jkc:active:focus-visible{border-left-color:GrayText;}.fq8nxuu:hover:active,.fq8nxuu:active:focus-visible{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ftoixeo:hover:active,.ftoixeo:active:focus-visible{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fpmuzpx:hover:active,.fpmuzpx:active:focus-visible{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f168odog:hover:active .fui-Button__icon,.f168odog:active:focus-visible .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),VC=le({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;}}"]}),WC=le({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;}"]}),$C=le({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);}"]}),iv=e=>{const t=qC(),r=OC(),n=HC(),a=LC(),s=VC(),c=WC(),u=$C(),{appearance:f,disabled:p,disabledFocusable:g,icon:v,iconOnly:x,iconPosition:w,shape:S,size:k}=e;return e.root.className=Q(nv.root,t,f&&n[f],n[k],v&&k==="small"&&n.smallWithIcon,v&&k==="large"&&n.largeWithIcon,n[S],(p||g)&&a.base,(p||g)&&a.highContrast,f&&(p||g)&&a[f],f==="primary"&&s.primary,s[k],s[S],x&&c[k],e.root.className),e.icon&&(e.icon.className=Q(nv.icon,r,!!e.root.children&&u[w],u[k],e.icon.className)),e},Me=y.forwardRef((e,t)=>{const r=DC(e,t);return iv(r),Pe("useButtonStyles_unstable")(r),tv(r)});Me.displayName="Button";const av=y.createContext(void 0),UC=av.Provider,ul=()=>y.useContext(av),GC=e=>{var t,r,n,a;const{generatedControlId:s,orientation:c,required:u,size:f,validationState:p}=e,g=(t=e.label)===null||t===void 0?void 0:t.htmlFor,v=(r=e.label)===null||r===void 0?void 0:r.id,x=(n=e.validationMessage)===null||n===void 0?void 0:n.id,w=(a=e.hint)===null||a===void 0?void 0:a.id;return{field:y.useMemo(()=>({generatedControlId:s,hintId:w,labelFor:g,labelId:v,orientation:c,required:u,size:f,validationMessageId:x,validationState:p}),[s,w,g,v,c,u,f,x,p])}};function To(e,t){return sv(ul(),e,t)}function sv(e,t,r){if(!e)return t;t={...t};const{generatedControlId:n,hintId:a,labelFor:s,labelId:c,required:u,validationMessageId:f,validationState:p}=e;if(n){var g,v;(v=(g=t).id)!==null&&v!==void 0||(g.id=n)}if(c&&(!r?.supportsLabelFor||s!==t.id)){var x,w,S;(S=(x=t)[w="aria-labelledby"])!==null&&S!==void 0||(x[w]=c)}if((f||a)&&(t["aria-describedby"]=[f,a,t?.["aria-describedby"]].filter(Boolean).join(" ")),p==="error"){var k,B,z;(z=(k=t)[B="aria-invalid"])!==null&&z!==void 0||(k[B]=!0)}if(u)if(r?.supportsRequired){var P,j;(j=(P=t).required)!==null&&j!==void 0||(P.required=!0)}else{var N,M,C;(C=(N=t)[M="aria-required"])!==null&&C!==void 0||(N[M]=!0)}if(r?.supportsSize){var I,A;(A=(I=t).size)!==null&&A!==void 0||(I.size=e.size)}return t}const XC=(e,t)=>{let{children:r}=e;return typeof r=="function"&&(r=r(sv(t.field)||{})),J(UC,{value:t?.field,children:Le(e.root,{children:[e.label&&J(e.label,{}),r,e.validationMessage&&Le(e.validationMessage,{children:[e.validationMessageIcon&&J(e.validationMessageIcon,{}),e.validationMessage.children]}),e.hint&&J(e.hint,{})]})})},KC=(e,t)=>{const{weight:r="regular",size:n="medium",...a}=e,s=YC(a,t);return{weight:r,size:n,...s}},YC=(e,t)=>{const{disabled:r=!1,required:n=!1,...a}=e;return{disabled:r,required:Ne(n===!0?"*":n||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),components:{root:"label",required:"span"},root:me(rt("label",{ref:t,...a}),{elementType:"label"})}},QC=e=>Le(e.root,{children:[e.root.children,e.required&&J(e.required,{})]}),lv={root:"fui-Label",required:"fui-Label__required"},ZC=le({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)"}]]}),JC=e=>{const t=ZC();return e.root.className=Q(lv.root,t.root,e.disabled&&t.disabled,t[e.size],e.weight==="semibold"&&t.semibold,e.root.className),e.required&&(e.required.className=Q(lv.required,t.required,e.disabled&&t.disabled,e.required.className)),e},Xt=y.forwardRef((e,t)=>{const r=KC(e,t);return JC(r),Pe("useLabelStyles_unstable")(r),QC(r)});Xt.displayName="Label";const eN=(e,t)=>{const{children:r,required:n=!1,validationState:a=e.validationMessage?"error":"none"}=e,s=pt("field-"),c=s+"__control",u=me(rt("div",{...e,ref:t},["children"]),{elementType:"div"}),f=Ne(e.label,{defaultProps:{htmlFor:c,id:s+"__label",required:n},elementType:"label"}),p=Ne(e.validationMessage,{defaultProps:{id:s+"__validationMessage",role:a==="error"||a==="warning"?"alert":void 0},elementType:"div"}),g=Ne(e.hint,{defaultProps:{id:s+"__hint"},elementType:"div"}),v=Ne(e.validationMessageIcon,{renderByDefault:!1,elementType:"span"});return{children:r,generatedControlId:c,required:n,validationState:a,components:{root:"div",label:"label",validationMessage:"div",validationMessageIcon:"span",hint:"div"},root:u,label:f,validationMessageIcon:v,validationMessage:p,hint:g}},tN={error:y.createElement(Jz,null),warning:y.createElement(_z,null),success:y.createElement(Kz,null),none:void 0},rN=(e,t)=>{const{orientation:r="vertical",size:n="medium",...a}=e,s=eN(a,t),c=tN[s.validationState];return{...s,components:{...s.components,label:Xt},label:Ne(e.label,{defaultProps:{size:n,...s.label},elementType:Xt}),validationMessageIcon:Ne(e.validationMessageIcon,{renderByDefault:!!c,defaultProps:{children:c},elementType:"span"}),orientation:r,size:n}},wa={root:"fui-Field",label:"fui-Field__label",validationMessage:"fui-Field__validationMessage",validationMessageIcon:"fui-Field__validationMessageIcon",hint:"fui-Field__hint"},oN=le({base:{mc9l5x:"f13qh94s"},horizontal:{Budl1dq:"f2wwaib",wkccdc:"f1645dqt"},horizontalNoLabel:{uwmqm3:["f15jqgz8","fggqkej"],Budl1dq:"f1c2z91y"}},{d:[".f13qh94s{display:grid;}",".f2wwaib{grid-template-columns:33% 1fr;}",".f1645dqt{grid-template-rows:auto auto auto 1fr;}",".f15jqgz8{padding-left:33%;}",".fggqkej{padding-right:33%;}",".f1c2z91y{grid-template-columns:1fr;}"]}),nN=le({base:{B2u0y6b:"f6nezus",Bxyxcbc:"f1iqmcbn"},vertical:{z8tnut:"fclwglc",Byoj8tv:"fywfov9",jrapky:"fyacil5"},verticalLarge:{z8tnut:"f1sl3k7w",Byoj8tv:"f1brlhvm",jrapky:"f8l5zjj"},horizontal:{z8tnut:"fp2oml8",Byoj8tv:"f1tdddsa",t21cq0:["fkujibs","f199hnxi"],Ijaq50:"f16hsg94",nk6f5a:"f1nzqi2z"},horizontalSmall:{z8tnut:"f1ywm7hm",Byoj8tv:"f14wxoun"},horizontalLarge:{z8tnut:"f1hqyr95",Byoj8tv:"fm4hlj0"}},{d:[".f6nezus{max-width:max-content;}",".f1iqmcbn{max-height:max-content;}",".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".fyacil5{margin-bottom:var(--spacingVerticalXXS);}",".f1sl3k7w{padding-top:1px;}",".f1brlhvm{padding-bottom:1px;}",".f8l5zjj{margin-bottom:var(--spacingVerticalXS);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".fkujibs{margin-right:var(--spacingHorizontalM);}",".f199hnxi{margin-left:var(--spacingHorizontalM);}",".f16hsg94{grid-row-start:1;}",".f1nzqi2z{grid-row-end:-1;}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f14wxoun{padding-bottom:var(--spacingVerticalXS);}",".f1hqyr95{padding-top:9px;}",".fm4hlj0{padding-bottom:9px;}"]}),iN=ze("r5c4z9l",null,[".r5c4z9l{margin-top:var(--spacingVerticalXXS);color:var(--colorNeutralForeground3);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}"]),aN=le({error:{sj55zd:"f1hcrxcs"},withIcon:{uwmqm3:["frawy03","fg4c52"]}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".frawy03{padding-left:calc(12px + var(--spacingHorizontalXS));}",".fg4c52{padding-right:calc(12px + var(--spacingHorizontalXS));}"]}),sN=ze("ra7h1uk","r1rh6bd7",[".ra7h1uk{display:inline-block;font-size:12px;margin-left:calc(-12px - var(--spacingHorizontalXS));margin-right:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}",".r1rh6bd7{display:inline-block;font-size:12px;margin-right:calc(-12px - var(--spacingHorizontalXS));margin-left:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}"]),lN=le({error:{sj55zd:"f1hcrxcs"},warning:{sj55zd:"f1k5f75o"},success:{sj55zd:"ffmvakt"}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}"]}),cN=e=>{const{validationState:t,size:r}=e,n=e.orientation==="horizontal",a=oN();e.root.className=Q(wa.root,a.base,n&&a.horizontal,n&&!e.label&&a.horizontalNoLabel,e.root.className);const s=nN();e.label&&(e.label.className=Q(wa.label,s.base,n&&s.horizontal,n&&r==="small"&&s.horizontalSmall,n&&r==="large"&&s.horizontalLarge,!n&&s.vertical,!n&&r==="large"&&s.verticalLarge,e.label.className));const c=sN(),u=lN();e.validationMessageIcon&&(e.validationMessageIcon.className=Q(wa.validationMessageIcon,c,t!=="none"&&u[t],e.validationMessageIcon.className));const f=iN(),p=aN();return e.validationMessage&&(e.validationMessage.className=Q(wa.validationMessage,f,t==="error"&&p.error,!!e.validationMessageIcon&&p.withIcon,e.validationMessage.className)),e.hint&&(e.hint.className=Q(wa.hint,f,e.hint.className)),e},Ve=y.forwardRef((e,t)=>{const r=rN(e,t);cN(r),Pe("useFieldStyles_unstable")(r);const n=GC(r);return XC(r,n)});Ve.displayName="Field";const uN=(e,t)=>{const{shape:r="square",size:n="medium",...a}=e,s=dN(a,t),c=s.checked==="mixed";let u;if(c?r==="circular"?u=y.createElement(im,null):u=n==="large"?y.createElement(Qz,null):y.createElement(Yz,null):s.checked&&(u=n==="large"?y.createElement(Xz,null):y.createElement(Mm,null)),s.indicator){var f,p;(p=(f=s.indicator).children)!==null&&p!==void 0||(f.children=u)}return{shape:r,size:n,...s,components:{...s.components,label:Xt},label:Ne(e.label,{defaultProps:{...s.label,size:"medium"},elementType:Xt})}},dN=(e,t)=>{"use no memo";e=To(e,{supportsLabelFor:!0,supportsRequired:!0});const{disabled:r=!1,required:n,labelPosition:a="after",onChange:s}=e,[c,u]=Bt({defaultState:e.defaultChecked,state:e.checked,initialState:!1}),f=yo({props:e,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),p=c==="mixed",g=pt("checkbox-",f.primary.id),v={checked:c,disabled:r,labelPosition:a,components:{root:"span",input:"input",indicator:"div",label:"label"},root:me(e.root,{defaultProps:{ref:ua(),...f.root},elementType:"span"}),input:me(e.input,{defaultProps:{type:"checkbox",id:g,ref:t,checked:c===!0,...f.primary},elementType:"input"}),label:Ne(e.label,{defaultProps:{htmlFor:g,disabled:r,required:n},elementType:"label"}),indicator:Ne(e.indicator,{renderByDefault:!0,defaultProps:{"aria-hidden":!0},elementType:"div"})};v.input.onChange=Re(v.input.onChange,w=>{const S=w.currentTarget.indeterminate?"mixed":w.currentTarget.checked;s?.(w,{checked:S}),u(S)});const x=Oe(v.input.ref);return v.input.ref=x,bt(()=>{x.current&&(x.current.indeterminate=p)},[x,p]),v},fN=e=>Le(e.root,{children:[J(e.input,{}),e.labelPosition==="before"&&e.label&&J(e.label,{}),e.indicator&&J(e.indicator,{}),e.labelPosition==="after"&&e.label&&J(e.label,{})]}),dl={root:"fui-Checkbox",label:"fui-Checkbox__label",input:"fui-Checkbox__input",indicator:"fui-Checkbox__indicator"},pN=ze("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;}}"]}),hN=le({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)"}]]}),gN=ze("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));}"]),mN=le({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));}"]}),vN=ze("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;}"]),bN=le({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}]]}),yN=le({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);}"]}),xN=e=>{const{checked:t,disabled:r,labelPosition:n,shape:a,size:s}=e,c=pN(),u=hN();e.root.className=Q(dl.root,c,r?u.disabled:t==="mixed"?u.mixed:t?u.checked:u.unchecked,e.root.className);const f=gN(),p=mN();e.input.className=Q(dl.input,f,s==="large"&&p.large,p[n],e.input.className);const g=vN(),v=bN();e.indicator&&(e.indicator.className=Q(dl.indicator,g,s==="large"&&v.large,a==="circular"&&v.circular,e.indicator.className));const x=yN();return e.label&&(e.label.className=Q(dl.label,x.base,x[s],x[n],e.label.className)),e},fl=y.forwardRef((e,t)=>{const r=uN(e,t);return xN(r),Pe("useCheckboxStyles_unstable")(r),fN(r)});fl.displayName="Checkbox";const cv=Lr({activeOption:void 0,appearance:"outline",focusVisible:!1,open:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){},setOpen(){},size:"medium"});cv.Provider;const wN={activeOption:void 0,focusVisible:!1,multiselect:!1,getOptionById(){},getOptionsMatchingValue(){return[]},registerOption(){return()=>{}},selectedOptions:[],onOptionClick(){},onActiveDescendantChange(){},selectOption(){},setActiveOption(){}},ci=Lr(void 0),nr=e=>eo(ci,(t=wN)=>e(t));ci.Provider;function kN(e){const{appearance:t,open:r,getOptionById:n,getOptionsMatchingValue:a,registerOption:s,selectedOptions:c,selectOption:u,setOpen:f,size:p,activeDescendantController:g,onOptionClick:v,onActiveDescendantChange:x}=e,w={activeOption:void 0,appearance:t,focusVisible:!1,open:r,registerOption:s,selectedOptions:c,selectOption:u,setActiveOption:()=>null,setOpen:f,size:p},S={activeOption:void 0,focusVisible:!1,getOptionById:n,getOptionsMatchingValue:a,registerOption:s,selectedOptions:c,selectOption:u,setActiveOption:()=>null,onOptionClick:v,onActiveDescendantChange:x},k=y.useMemo(()=>({controller:g}),[g]);return{combobox:w,activeDescendant:k,listbox:S}}function SN(e){const t=Jn(ci),{getOptionById:r,getOptionsMatchingValue:n,multiselect:a,registerOption:s,selectedOptions:c,selectOption:u,activeDescendantController:f}=e,p=nr(k=>k.registerOption),g=nr(k=>k.onOptionClick),v=nr(k=>k.onActiveDescendantChange),w={activeOption:void 0,focusVisible:!1,getOptionById:r,getOptionsMatchingValue:n,multiselect:a,registerOption:t?p:s,selectedOptions:c,selectOption:u,setActiveOption:()=>{},onOptionClick:g,onActiveDescendantChange:v},S=y.useMemo(()=>({controller:f}),[f]);return{listbox:w,activeDescendant:S}}function _d(e,t={}){const{open:r=!0,multiselect:n=!1}=t,a=e.key,{altKey:s,ctrlKey:c,key:u,metaKey:f}=e;return u.length===1&&a!==to&&!s&&!c&&!f?"Type":r?a===Zu&&s||a===ei||!n&&a===to?"CloseSelect":n&&a===to?"Select":a===ti?"Close":a===Qu?"Next":a===Zu?"Previous":a===w4?"First":a===x4?"Last":a===S4?"PageUp":a===k4?"PageDown":a===Lg?"Tab":"None":a===Qu||a===Zu||a===ei||a===to?"Open":"None"}const uv=()=>{const e=y.useRef(new Map),t=y.useMemo(()=>({getCount:()=>e.current.size,getOptionAtIndex:()=>{},getIndexOfId:()=>-1,getOptionById:p=>e.current.get(p),getOptionsMatchingText:p=>Array.from(e.current.values()).filter(({text:g})=>p(g)),getOptionsMatchingValue:p=>{const g=[];for(const v of e.current.values())p(v.value)&&g.push(v);return g}}),[]),r=y.useCallback(n=>(e.current.set(n.id,n),()=>e.current.delete(n.id)),[]);return{...t,options:Array.from(e.current.values()),registerOption:r}},dv=e=>{const{defaultSelectedOptions:t,multiselect:r,onOptionSelect:n}=e,[a,s]=Bt({state:e.selectedOptions,defaultState:t,initialState:[]}),c=y.useCallback((f,p)=>{if(p.disabled)return;let g=[p.value];if(r){const v=a.findIndex(x=>x===p.value);v>-1?g=[...a.slice(0,v),...a.slice(v+1)]:g=[...a,p.value]}s(g),n?.(f,{optionValue:p.value,optionText:p.text,selectedOptions:g})},[n,r,a,s]);return{clearSelection:f=>{s([]),n?.(f,{optionValue:void 0,optionText:void 0,selectedOptions:[]})},selectOption:c,selectedOptions:a}};function fv(e){return e.role==="option"||e.role==="menuitemcheckbox"}const pv={activeOption:void 0,focusVisible:!1,setActiveOption:()=>null},BN=(e,t)=>{const{multiselect:r,disableAutoFocus:n=!1}=e,a=uv(),{listboxRef:s,activeParentRef:c,controller:u}=Qg({matchOption:fv}),f=Jn(ci),p=nr(Y=>Y.onActiveDescendantChange),g=nr(Y=>Y.getOptionById),v=nr(Y=>Y.getOptionsMatchingValue),x=f?g:a.getOptionById,w=f?v:a.getOptionsMatchingValue,S=y.useMemo(()=>{let Y=null;const X=O=>{p?.(O)};return O=>{if(!O){Y?.removeEventListener("activedescendantchange",X);return}Y=O,Y.addEventListener("activedescendantchange",X)}},[p]),[k,B]=y.useState(!1);gg(B);const z=Ug(),P=z4(),j=P?z.controller:u,{clearSelection:N,selectedOptions:M,selectOption:C}=dv(e),I=Y=>{const X=_d(Y,{open:!0}),O=j.active(),Z=O?x(O):null;switch(X){case"First":case"Last":case"Next":case"Previous":case"PageDown":case"PageUp":case"CloseSelect":case"Select":Y.preventDefault();break}switch(X){case"Next":Z?j.next():j.first();break;case"Previous":Z?j.prev():j.first();break;case"PageUp":case"First":j.first();break;case"PageDown":case"Last":j.last();break;case"Select":case"CloseSelect":Z&&C(Y,Z);break}},A=nr(Y=>Y.selectedOptions),ae=nr(Y=>Y.selectOption),de=f?{selectedOptions:A,selectOption:ae,...pv}:{selectedOptions:M,selectOption:C,...pv};y.useEffect(()=>{if(!P){if(j.hideFocusVisibleAttributes(),!n)if(!r&&de.selectedOptions.length>0){const Y=w(X=>X===de.selectedOptions[0]).pop();Y?.id&&j.focus(Y.id)}else j.first();return()=>{j.blur()}}},[]);const ee=y.useCallback(()=>{P||(j.showFocusVisibleAttributes(),k&&j.scrollActiveIntoView())},[j,P,k]),te=y.useCallback(()=>{P||j.hideFocusVisibleAttributes()},[j,P]),W={components:{root:"div"},root:me(rt("div",{ref:Oe(t,c,s,S),role:r?"menu":"listbox",tabIndex:0,...e}),{elementType:"div"}),standalone:!f,multiselect:r,clearSelection:N,activeDescendantController:j,onActiveDescendantChange:p,...a,...de};return W.root.onKeyDown=ce(Re(W.root.onKeyDown,I)),W.root.onFocus=ce(Re(W.root.onFocus,ee)),W.root.onBlur=ce(Re(W.root.onBlur,te)),W},zN=(e,t)=>J($g,{value:t.activeDescendant,children:J(ci.Provider,{value:t.listbox,children:J(e.root,{})})}),jN={root:"fui-Listbox"},_N=le({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);}"]}),CN=e=>{const t=_N();return e.root.className=Q(jN.root,t.root,e.root.className),e},Cd=y.forwardRef((e,t)=>{const r=BN(e,t),n=SN(r);return CN(r),Pe("useListboxStyles_unstable")(r),zN(r,n)});Cd.displayName="Listbox";function NN(e,t){if(e!==void 0)return e;let r="",n=!1;return y.Children.forEach(t,a=>{typeof a=="string"?r+=a:n=!0}),n&&console.warn("Provide a `text` prop to Option components when they contain non-string children."),r}const TN=(e,t)=>{const r=PN(e,t);let n=y.createElement(fz,null);if(r.multiselect&&(n=r.selected?y.createElement(Mm,null):""),r.checkIcon){var a,s;(s=(a=r.checkIcon).children)!==null&&s!==void 0||(a.children=n)}return r},PN=(e,t)=>{const{children:r,disabled:n,text:a,value:s}=e,c=y.useRef(null),u=NN(a,r),f=s??u,p=pt("fluent-option",e.id),g=y.useMemo(()=>({id:p,disabled:n,text:u,value:f}),[p,n,u,f]),{controller:v}=Ug(),x=nr(j=>j.multiselect),w=nr(j=>j.registerOption),S=nr(j=>{const N=j.selectedOptions;return f!==void 0&&N.find(M=>M===f)!==void 0}),k=nr(j=>j.selectOption),B=nr(j=>j.onOptionClick),z=j=>{var N;if(n){j.preventDefault();return}v.focus(p),k(j,g),B(j),(N=e.onClick)===null||N===void 0||N.call(e,j)};y.useEffect(()=>{if(p&&c.current)return w(g,c.current)},[p,g,w]);const P=x?{role:"menuitemcheckbox","aria-checked":S}:{role:"option","aria-selected":S};return{components:{root:"div",checkIcon:"span"},root:me(rt("div",{ref:Oe(t,c),"aria-disabled":n?"true":void 0,id:p,...P,...e,onClick:z}),{elementType:"div"}),checkIcon:Ne(e.checkIcon,{renderByDefault:!0,defaultProps:{"aria-hidden":"true"},elementType:"span"}),disabled:n,multiselect:x,selected:S,focusVisible:!1,active:!1}},RN=e=>Le(e.root,{children:[e.checkIcon&&J(e.checkIcon,{}),e.root.children]}),hv={root:"fui-Option",checkIcon:"fui-Option__checkIcon"},MN=le({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"},interactive:{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",Bceei9c:"f158kwzp",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);}",".f158kwzp{cursor:default;}",".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);}"],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);}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),EN=e=>{const{disabled:t,multiselect:r,selected:n}=e,a=MN();return e.root.className=Q(hv.root,a.root,!t&&a.interactive,a.active,t&&a.disabled,n&&a.selected,e.root.className),e.checkIcon&&(e.checkIcon.className=Q(hv.checkIcon,a.checkIcon,r&&a.multiselectCheck,n&&a.selectedCheck,n&&r&&a.selectedMultiselectCheck,t&&a.checkDisabled,t&&r&&a.multiselectCheckDisabled,e.checkIcon.className)),e},ka=y.forwardRef((e,t)=>{const r=TN(e,t);return EN(r),Pe("useOptionStyles_unstable")(r),RN(r)});ka.displayName="Option";const IN=e=>{const{appearance:t="outline",disableAutoFocus:r,children:n,clearable:a=!1,editable:s=!1,inlinePopup:c=!1,mountNode:u=void 0,multiselect:f,onOpenChange:p,size:g="medium",activeDescendantController:v,freeform:x=!1,disabled:w=!1,onActiveOptionChange:S=null}=e,k=uv(),{getOptionsMatchingValue:B}=k,{getOptionById:z}=k,P=y.useCallback(()=>{const V=v.active();return V?z(V):void 0},[v,z]),j=P(),N=y.useCallback(V=>{let ue;if(typeof V=="function"){const xe=P();ue=V(xe)}ue?v.focus(ue.id):v.blur()},[v,P]),[M,C]=y.useState(!1),[I,A]=y.useState(!1),ae=y.useRef(!1),de=Pu(),[ee,te]=Bt({state:e.value,initialState:void 0}),{selectedOptions:W,selectOption:Y,clearSelection:X}=dv(e),O=y.useCallback((V,ue)=>{zd.unstable_batchedUpdates(()=>{te(void 0),Y(V,ue)})},[te,Y]),Z=y.useMemo(()=>{if(ee!==void 0)return ee;if(de&&e.defaultValue!==void 0)return e.defaultValue;const V=B(ue=>W.includes(ue)).map(ue=>ue.text);return f?s?"":V.join(", "):V[0]},[ee,s,B,f,W]),[q,G]=Bt({state:e.open,defaultState:e.defaultOpen,initialState:!1}),K=y.useCallback((V,ue)=>{w||(p?.(V,{open:ue}),zd.unstable_batchedUpdates(()=>{!ue&&!x&&te(void 0),G(ue)}))},[p,G,te,x,w]);y.useEffect(()=>{if(q){if(!f&&W.length>0){const V=B(ue=>ue===W[0]).pop();V?.id&&v.focus(V.id)}}else v.blur()},[q,v]),y.useEffect(()=>{q&&!r&&!v.active()&&v.first()},[q,n,r,v,z]);const F=ce(V=>{const ue=V.detail.previousId?k.getOptionById(V.detail.previousId):null,xe=k.getOptionById(V.detail.id);S?.(V,{event:V,type:"change",previousOption:ue,nextOption:xe})});return{...k,freeform:x,disabled:w,selectOption:O,clearSelection:X,selectedOptions:W,activeOption:j,appearance:t,clearable:a,focusVisible:M,ignoreNextBlur:ae,inlinePopup:c,mountNode:u,open:q,hasFocus:I,setActiveOption:N,setFocusVisible:C,setHasFocus:A,setOpen:K,setValue:te,size:g,value:Z,multiselect:f,onOptionClick:ce(V=>{f||K(V,!1)}),onActiveDescendantChange:F}};function FN(e){const{positioning:t}=e,n={position:"below",align:"start",offset:{crossAxis:0,mainAxis:2},fallbackPositions:["above","after","after-top","before","before-top"],matchTargetSize:"width",autoSize:!0,...si(t)},{targetRef:a,containerRef:s}=ll(n);return[s,a]}function AN(e,t,r){const{state:{multiselect:n},triggerRef:a,defaultProps:s}=r,c=pt("fluent-listbox",Cu(e)?e.id:void 0),u=Ne(e,{renderByDefault:!0,elementType:Cd,defaultProps:{id:c,multiselect:n,tabIndex:void 0,...s}}),f=To({id:c},{supportsLabelFor:!0});u&&!u["aria-label"]&&!u["aria-labelledby"]&&f["aria-labelledby"]&&(u["aria-labelledby"]=f["aria-labelledby"]);const p=ce(Re(x=>{x.preventDefault()},u?.onMouseDown)),g=ce(Re(x=>{var w;x.preventDefault(),(w=a.current)===null||w===void 0||w.focus()},u?.onClick)),v=Oe(u?.ref,t);return u&&(u.ref=v,u.onMouseDown=p,u.onClick=g),u}function DN(e,t,r){const{state:{open:n,setOpen:a,setHasFocus:s},defaultProps:c,elementType:u,activeDescendantController:f}=r,p=dn({focusable:{ignoreKeydown:{Escape:n}}}),g=mg(p,typeof c=="object"?c:{}),v=me(e,{defaultProps:{type:"text","aria-expanded":n,role:"combobox",...typeof c=="object"&&c,...g},elementType:u}),x=y.useRef(null);return v.ref=Oe(x,v.ref,t),v.onBlur=Re(w=>{a(w,!1),s(!1)},v.onBlur),v.onFocus=Re(w=>{w.target===w.currentTarget&&s(!0)},v.onFocus),v.onClick=Re(w=>{a(w,!n)},v.onClick),v.onKeyDown=Re(qN({activeDescendantController:f,...r.state}),v.onKeyDown),v}function qN(e){const{activeDescendantController:t,getOptionById:r,setOpen:n,selectOption:a,multiselect:s,open:c}=e,u=y.useCallback(()=>{const k=t.active();return k?r(k):void 0},[t,r]),f=()=>{t.first()},p=()=>{t.last()},g=k=>{k?t.next():t.first()},v=k=>{k?t.prev():t.first()},x=()=>{for(let k=0;k<10;k++)t.prev()},w=()=>{for(let k=0;k<10;k++)t.next()},S=YB();return ce(k=>{const B=_d(k,{open:c,multiselect:s}),z=u();switch(B){case"First":case"Last":case"Next":case"Previous":case"PageDown":case"PageUp":case"Open":case"Close":case"CloseSelect":case"Select":k.preventDefault();break}switch(S(!0),B){case"First":f();break;case"Last":p();break;case"Next":g(z);break;case"Previous":v(z);break;case"PageDown":w();break;case"PageUp":x();break;case"Open":n(k,!0);break;case"Close":k.stopPropagation(),n(k,!1);break;case"CloseSelect":!s&&!z?.disabled&&n(k,!1);case"Select":z&&a(k,z);break;case"Tab":!s&&z&&a(k,z);break}})}function ON(e,t,r){const{state:{open:n,setOpen:a,getOptionById:s},defaultProps:c,activeDescendantController:u}=r,f=y.useRef(""),[p,g]=sn(),v=(k,B={startFromNext:!1})=>{const{startFromNext:z}=B,P=u.active(),j=u.find(N=>{const M=s(N);return!!M&&k(M.text)},{startFrom:z?u.next({passive:!0}):P});return j||u.find(N=>{const M=s(N);return!!M&&k(M.text)})},x=()=>{v(k=>k.toLocaleLowerCase().indexOf(f.current)===0,{startFromNext:f.current.length===1})||HN(f.current)&&v(k=>k.toLocaleLowerCase().indexOf(f.current[0])===0,{startFromNext:!0})||u.blur()},w=k=>{g(),_d(k)==="Type"&&(f.current+=k.key.toLowerCase(),p(()=>{f.current=""},500),n&&x(),!n&&a(k,!0))},S=DN(e,t,{state:r.state,defaultProps:c,elementType:"button",activeDescendantController:u});return S.onKeyDown=Re(w,S.onKeyDown),S}function HN(e){for(let t=1;t<e.length;t++)if(e[t]!==e[t-1])return!1;return!0}const LN=(e,t)=>{var r;e=To(e,{supportsLabelFor:!0});const{listboxRef:n,activeParentRef:a,controller:s}=Qg({matchOption:fv}),c=IN({...e,activeDescendantController:s,freeform:!1}),{appearance:u,size:f,freeform:p,...g}=c,{clearable:v,clearSelection:x,disabled:w,hasFocus:S,multiselect:k,open:B,selectedOptions:z,setOpen:P}=g,{primary:j,root:N}=yo({props:e,primarySlotTagName:"button",excludedPropNames:["children"]}),[M,C]=FN(e),I=y.useRef(null),A=AN(e.listbox,Oe(M,n),{state:c,triggerRef:I,defaultProps:{children:e.children}}),{targetDocument:ae}=He();Ru({element:ae,callback:O=>P(O,!1),refs:[I,M,C],disabled:!B});var de;const ee=ON((de=e.button)!==null&&de!==void 0?de:{},Oe(I,a,t),{state:c,defaultProps:{type:"button",tabIndex:j.disabled?void 0:0,children:g.value||e.placeholder,"aria-controls":B?A?.id:void 0,...j},activeDescendantController:s}),te=me(e.root,{defaultProps:{"aria-owns":!e.inlinePopup&&B?A?.id:void 0,children:e.children,...N},elementType:"div"});te.ref=Oe(te.ref,C);const W=z.length>0&&!w&&v&&!k,Y={components:{root:"div",button:"button",clearButton:"button",expandIcon:"span",listbox:Cd},root:te,button:ee,listbox:B||S?A:void 0,clearButton:Ne(e.clearButton,{defaultProps:{"aria-label":"Clear selection",tabIndex:W?0:void 0,type:"button"},elementType:"button",renderByDefault:!0}),expandIcon:Ne(e.expandIcon,{renderByDefault:!0,elementType:"span"}),placeholderVisible:!g.value&&!!e.placeholder,showClearButton:W,activeDescendantController:s,...g},X=ce(Re((r=Y.clearButton)===null||r===void 0?void 0:r.onClick,O=>{var Z;x(O),(Z=I.current)===null||Z===void 0||Z.focus()}));return Y.clearButton&&(Y.clearButton.onClick=X),k&&(Y.clearButton=void 0),Y},VN=(e,t)=>{const r=ul();var n;const{appearance:a="outline",size:s=(n=r?.size)!==null&&n!==void 0?n:"medium",...c}=e,u=LN(c,t);if(u.clearButton){var f,p;(p=(f=u.clearButton).children)!==null&&p!==void 0||(f.children=y.createElement(kz,null))}if(u.expandIcon){var g,v;(v=(g=u.expandIcon).children)!==null&&v!==void 0||(g.children=y.createElement(pn,null))}return{...u,appearance:a,size:s}},WN=(e,t)=>J(e.root,{children:J($g,{value:t.activeDescendant,children:J(ci.Provider,{value:t.listbox,children:Le(cv.Provider,{value:t.combobox,children:[Le(e.button,{children:[e.button.children,e.expandIcon&&J(e.expandIcon,{})]}),e.clearButton&&J(e.clearButton,{}),e.listbox&&(e.inlinePopup?J(e.listbox,{}):J(li,{mountNode:e.mountNode,children:J(e.listbox,{})}))]})})})}),Sa={root:"fui-Dropdown",button:"fui-Dropdown__button",clearButton:"fui-Dropdown__clearButton",expandIcon:"fui-Dropdown__expandIcon",listbox:"fui-Dropdown__listbox"},$N=le({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);}"]}),UN=le({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);}"]}),GN=ze("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;}}"]}),XN=e=>{const{appearance:t,open:r,placeholderVisible:n,showClearButton:a,size:s}=e,c=`${e.button["aria-invalid"]}`=="true",u=e.button.disabled,f=$N(),p=UN(),g=GN();return e.root.className=Q(Sa.root,f.root,f[t],!u&&t==="outline"&&f.outlineInteractive,c&&t!=="underline"&&f.invalid,c&&t==="underline"&&f.invalidUnderline,u&&f.disabled,e.root.className),e.button.className=Q(Sa.button,f.button,f[s],n&&f.placeholder,u&&f.disabledText,e.button.className),e.listbox&&(e.listbox.className=Q(Sa.listbox,f.listbox,e.inlinePopup&&f.inlineListbox,!r&&f.listboxCollapsed,e.listbox.className)),e.expandIcon&&(e.expandIcon.className=Q(Sa.expandIcon,p.icon,p[s],u&&p.disabled,a&&f.hidden,e.expandIcon.className)),e.clearButton&&(e.clearButton.className=Q(Sa.clearButton,g,p.icon,p[s],u&&p.disabled,!a&&f.hidden,e.clearButton.className)),e},Ba=y.forwardRef((e,t)=>{const r=VN(e,t),n=kN(r);return XN(r),Pe("useDropdownStyles_unstable")(r),WN(r,n)});Ba.displayName="Dropdown";const gv=e=>J(e.root,{children:e.root.children!==void 0&&J(e.wrapper,{children:e.root.children})}),KN=(e,t)=>{const{alignContent:r="center",appearance:n="default",inset:a=!1,...s}=e,c=mv(s,t);return{alignContent:r,appearance:n,inset:a,...c}},mv=(e,t)=>{const{vertical:r=!1,wrapper:n,...a}=e,s=pt("divider-");return{vertical:r,components:{root:"div",wrapper:"div"},root:me({role:"separator","aria-orientation":r?"vertical":"horizontal","aria-labelledby":e.children?s:void 0,ref:t,...a},{elementType:"div"}),wrapper:me(n,{defaultProps:{id:s,children:e.children},elementType:"div"})}},vv={root:"fui-Divider",wrapper:"fui-Divider__wrapper"},YN=le({base:{Bt984gj:"f122n59",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bh6795r:"fqerorx",qhf8xq:"f10pi13n",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",fsow6f:"f17mccla",Bcvre1j:"fyl8oag",Br0sdwz:"f16vkdww",Bn78ew0:"fhsnbul",li1rpt:"f1gw3sf2",ap17g6:"f1ly5f7u",B771hl4:"f1s3tz6t"},childless:{susq4k:"f1kyqvp9",Bicfajf:["fzynn9s","f1z0ukd1"],jwcpgy:["fekrn8e","ftdg338"],B4rk6o:"fesgyo"},start:{Bsft5z2:"f13zj6fq"},center:{Ftih45:"f1wl9k8s",Bsft5z2:"f13zj6fq"},end:{Ftih45:"f1wl9k8s"},brand:{sj55zd:"f16muhyy",Bq4z7u6:"fcbuu2a",Bk5zm6e:["f1wdw2dr","f1ttio3w"],Bqjgrrk:"f1582fpk",Bm6vgfq:["f1ttio3w","f1wdw2dr"],B0n5ga8:"f1ahrvm8",s924m2:["f1cd3wbc","f17hbk9y"],B1q35kw:"fvrapl0",Gp14am:["f17hbk9y","f1cd3wbc"]},default:{sj55zd:"fkfq4zb",Bq4z7u6:"f1vccso1",Bk5zm6e:["f1geml7w","fjml6kk"],Bqjgrrk:"f1r7kh1m",Bm6vgfq:["fjml6kk","f1geml7w"],B0n5ga8:"f16j7guv",s924m2:["fx01ahm","fj1a37q"],B1q35kw:"fl8d8yv",Gp14am:["fj1a37q","fx01ahm"]},subtle:{sj55zd:"f11d4kpn",Bq4z7u6:"f5g06un",Bk5zm6e:["f13sxdku","f1n015lb"],Bqjgrrk:"f1x6bl8t",Bm6vgfq:["f1n015lb","f13sxdku"],B0n5ga8:"fvod1wy",s924m2:["fwslg65","flk0e17"],B1q35kw:"f103fvts",Gp14am:["flk0e17","fwslg65"]},strong:{sj55zd:"f19n0e5",Bq4z7u6:"f10tv6oz",Bk5zm6e:["f16xp3sf","f1seuxxq"],Bqjgrrk:"fwrmqbx",Bm6vgfq:["f1seuxxq","f16xp3sf"],B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]}},{d:[".f122n59{align-items:center;}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fqerorx{flex-grow:1;}",".f10pi13n{position:relative;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f17mccla{text-align:center;}",".fyl8oag::before{box-sizing:border-box;}",".f16vkdww::before{display:flex;}",".fhsnbul::before{flex-grow:1;}",".f1gw3sf2::after{box-sizing:border-box;}",".f1ly5f7u::after{display:flex;}",".f1s3tz6t::after{flex-grow:1;}",".f1kyqvp9::before{margin-bottom:0;}",".fzynn9s::before{margin-right:0;}",".f1z0ukd1::before{margin-left:0;}",".fekrn8e::after{margin-left:0;}",".ftdg338::after{margin-right:0;}",".fesgyo::after{margin-top:0;}",'.f13zj6fq::after{content:"";}','.f1wl9k8s::before{content:"";}',".f16muhyy{color:var(--colorBrandForeground1);}",".fcbuu2a::before{border-top-color:var(--colorBrandStroke1);}",".f1wdw2dr::before{border-right-color:var(--colorBrandStroke1);}",".f1ttio3w::before{border-left-color:var(--colorBrandStroke1);}",".f1582fpk::before{border-bottom-color:var(--colorBrandStroke1);}",".f1ahrvm8::after{border-top-color:var(--colorBrandStroke1);}",".f1cd3wbc::after{border-right-color:var(--colorBrandStroke1);}",".f17hbk9y::after{border-left-color:var(--colorBrandStroke1);}",".fvrapl0::after{border-bottom-color:var(--colorBrandStroke1);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f1vccso1::before{border-top-color:var(--colorNeutralStroke2);}",".f1geml7w::before{border-right-color:var(--colorNeutralStroke2);}",".fjml6kk::before{border-left-color:var(--colorNeutralStroke2);}",".f1r7kh1m::before{border-bottom-color:var(--colorNeutralStroke2);}",".f16j7guv::after{border-top-color:var(--colorNeutralStroke2);}",".fx01ahm::after{border-right-color:var(--colorNeutralStroke2);}",".fj1a37q::after{border-left-color:var(--colorNeutralStroke2);}",".fl8d8yv::after{border-bottom-color:var(--colorNeutralStroke2);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".f5g06un::before{border-top-color:var(--colorNeutralStroke3);}",".f13sxdku::before{border-right-color:var(--colorNeutralStroke3);}",".f1n015lb::before{border-left-color:var(--colorNeutralStroke3);}",".f1x6bl8t::before{border-bottom-color:var(--colorNeutralStroke3);}",".fvod1wy::after{border-top-color:var(--colorNeutralStroke3);}",".fwslg65::after{border-right-color:var(--colorNeutralStroke3);}",".flk0e17::after{border-left-color:var(--colorNeutralStroke3);}",".f103fvts::after{border-bottom-color:var(--colorNeutralStroke3);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f10tv6oz::before{border-top-color:var(--colorNeutralStroke1);}",".f16xp3sf::before{border-right-color:var(--colorNeutralStroke1);}",".f1seuxxq::before{border-left-color:var(--colorNeutralStroke1);}",".fwrmqbx::before{border-bottom-color:var(--colorNeutralStroke1);}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}"]}),QN=le({base:{a9b677:"fly5x3f",Bdkvgpv:"f163fonl",B0qfbqy:"f51yk4v",pbipgd:"f13rof3u",Bm2nyyq:"f8rth92",xrcqlc:"f6czdpx",i5u598:"f1iyka9k"},inset:{uwmqm3:["fjlbh76","f11qrl6u"],z189sj:["f11qrl6u","fjlbh76"]},start:{fsow6f:["f1o700av","fes3tcz"],Ftih45:"f1wl9k8s",Bicfajf:["f1ojjlep","fk1kexq"],Bxwl2t9:"f1he2m4d",jwcpgy:["f12w1bnb","f1558wlj"]},center:{fsow6f:"f17mccla",Bicfajf:["f1ojjlep","fk1kexq"],jwcpgy:["f12w1bnb","f1558wlj"]},end:{fsow6f:["fes3tcz","f1o700av"],Bicfajf:["f1ojjlep","fk1kexq"],Bsft5z2:"f13zj6fq",jwcpgy:["f12w1bnb","f1558wlj"],Iy66sp:"f1ayce8x"}},{d:[".fly5x3f{width:100%;}",".f163fonl::before{border-top-style:solid;}",".f51yk4v::before{border-top-width:var(--strokeWidthThin);}",".f13rof3u::before{min-width:8px;}",".f8rth92::after{border-top-style:solid;}",".f6czdpx::after{border-top-width:var(--strokeWidthThin);}",".f1iyka9k::after{min-width:8px;}",".fjlbh76{padding-left:12px;}",".f11qrl6u{padding-right:12px;}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",'.f1wl9k8s::before{content:"";}',".f1ojjlep::before{margin-right:12px;}",".fk1kexq::before{margin-left:12px;}",".f1he2m4d::before{max-width:8px;}",".f12w1bnb::after{margin-left:12px;}",".f1558wlj::after{margin-right:12px;}",".f17mccla{text-align:center;}",'.f13zj6fq::after{content:"";}',".f1ayce8x::after{max-width:8px;}"]}),ZN=le({base:{Beiy3e4:"f1vx9l62",sshi5w:"f16gbxbe",m598lv:["f1yq6w5o","f1jpmc5p"],B4f6apu:["f9sc749","f1x8pvcy"],zkzzav:"fhkwbjy",Barhvk9:["flthirb","ftkbnf5"],Ihftqj:["f13hvwk3","f1en4csx"],Bde111x:"f19onpk6"},inset:{B6of3ja:"f1xdg43u",jrapky:"f1jlhsmd"},withChildren:{sshi5w:"f1tjaq3g"},start:{Ftih45:"f1wl9k8s",susq4k:"fg2pwug",Bbdr6tz:"fkjtzyi",B4rk6o:"f8vk40g"},center:{susq4k:"fg2pwug",B4rk6o:"f8vk40g"},end:{susq4k:"fg2pwug",Bsft5z2:"f13zj6fq",B4rk6o:"f8vk40g",gn64ia:"fqg5mu5"}},{d:[".f1vx9l62{flex-direction:column;}",".f16gbxbe{min-height:20px;}",".f1yq6w5o::before{border-right-style:solid;}",".f1jpmc5p::before{border-left-style:solid;}",".f9sc749::before{border-right-width:var(--strokeWidthThin);}",".f1x8pvcy::before{border-left-width:var(--strokeWidthThin);}",".fhkwbjy::before{min-height:8px;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}",".f1en4csx::after{border-left-width:var(--strokeWidthThin);}",".f19onpk6::after{min-height:8px;}",".f1xdg43u{margin-top:12px;}",".f1jlhsmd{margin-bottom:12px;}",".f1tjaq3g{min-height:84px;}",'.f1wl9k8s::before{content:"";}',".fg2pwug::before{margin-bottom:12px;}",".fkjtzyi::before{max-height:8px;}",".f8vk40g::after{margin-top:12px;}",'.f13zj6fq::after{content:"";}',".fqg5mu5::after{max-height:8px;}"]}),bv=e=>{const t=YN(),r=QN(),n=ZN(),{alignContent:a,appearance:s,inset:c,vertical:u}=e;return e.root.className=Q(vv.root,t.base,t[a],s&&t[s],!u&&r.base,!u&&c&&r.inset,!u&&r[a],u&&n.base,u&&c&&n.inset,u&&n[a],u&&e.root.children!==void 0&&n.withChildren,e.root.children===void 0&&t.childless,e.root.className),e.wrapper&&(e.wrapper.className=Q(vv.wrapper,e.wrapper.className)),e},yv=y.forwardRef((e,t)=>{const r=KN(e,t);return bv(r),Pe("useDividerStyles_unstable")(r),gv(r)});yv.displayName="Divider";const JN=(e,t)=>{const r=Nu(),n=ul();var a,s;const{size:c=(a=n?.size)!==null&&a!==void 0?a:"medium",appearance:u=(s=r.inputDefaultAppearance)!==null&&s!==void 0?s:"outline",...f}=e,p=e8(f,t);return{size:c,appearance:u,...p}},e8=(e,t)=>{const r=To(e,{supportsLabelFor:!0,supportsRequired:!0}),[n,a]=Bt({state:r.value,defaultState:r.defaultValue,initialState:""}),s=yo({props:r,primarySlotTagName:"input",excludedPropNames:["onChange","value","defaultValue"]}),c={components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:me(r.input,{defaultProps:{type:"text",ref:t,...s.primary},elementType:"input"}),contentAfter:Ne(r.contentAfter,{elementType:"span"}),contentBefore:Ne(r.contentBefore,{elementType:"span"}),root:me(r.root,{defaultProps:s.root,elementType:"span"})};return c.input.value=n,c.input.onChange=ce(u=>{var f;const p=u.target.value;(f=r.onChange)===null||f===void 0||f.call(r,u,{value:p}),a(p)}),c},t8=e=>Le(e.root,{children:[e.contentBefore&&J(e.contentBefore,{}),J(e.input,{}),e.contentAfter&&J(e.contentAfter,{})]}),pl={root:"fui-Input",input:"fui-Input__input",contentBefore:"fui-Input__contentBefore",contentAfter:"fui-Input__contentAfter"},r8=ze("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;}}"]}),o8=le({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;}"]}),n8=ze("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;}"]),i8=le({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);}"]}),a8=ze("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),s8=le({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;}"]}),l8=e=>{const{size:t,appearance:r}=e,n=e.input.disabled,a=`${e.input["aria-invalid"]}`=="true",s=r.startsWith("filled"),c=o8(),u=i8(),f=s8();e.root.className=Q(pl.root,r8(),c[t],e.contentBefore&&c[`${t}WithContentBefore`],e.contentAfter&&c[`${t}WithContentAfter`],c[r],!n&&r==="outline"&&c.outlineInteractive,!n&&r==="underline"&&c.underlineInteractive,!n&&s&&c.filledInteractive,s&&c.filled,!n&&a&&c.invalid,n&&c.disabled,e.root.className),e.input.className=Q(pl.input,n8(),u[t],e.contentBefore&&u[`${t}WithContentBefore`],e.contentAfter&&u[`${t}WithContentAfter`],n&&u.disabled,e.input.className);const p=[a8(),n&&f.disabled,f[t]];return e.contentBefore&&(e.contentBefore.className=Q(pl.contentBefore,...p,e.contentBefore.className)),e.contentAfter&&(e.contentAfter.className=Q(pl.contentAfter,...p,e.contentAfter.className)),e},_r=y.forwardRef((e,t)=>{const r=JN(e,t);return l8(r),Pe("useInputStyles_unstable")(r),t8(r)});_r.displayName="Input";const c8=y.createContext(void 0).Provider,hl=Lr(void 0),u8={open:!1,setOpen:()=>!1,checkedValues:{},onCheckedValueChange:()=>null,isSubmenu:!1,triggerRef:{current:null},menuPopoverRef:{current:null},mountNode:null,triggerId:"",openOnContext:!1,openOnHover:!1,hasIcons:!1,hasCheckmarks:!1,inline:!1,persistOnItemClick:!1},d8=hl.Provider,Ue=e=>eo(hl,(t=u8)=>e(t)),xv=y.createContext(void 0),f8=!1,p8=xv.Provider,h8=()=>{var e;return(e=y.useContext(xv))!==null&&e!==void 0?e:f8},Nd=Lr(void 0),g8={checkedValues:{},setFocusByFirstCharacter:()=>null,toggleCheckbox:()=>null,selectRadio:()=>null,hasIcons:!1,hasCheckmarks:!1},m8=Nd.Provider,za=e=>eo(Nd,(t=g8)=>e(t)),ja="fuimenuenter",v8=e=>{const{refs:t,callback:r,element:n,disabled:a}=e,s=ce(c=>{const u=t[0],f=c.target;var p;!ln((p=u.current)!==null&&p!==void 0?p:null,f)&&!a&&r(c)});y.useEffect(()=>{if(n!=null)return a||n.addEventListener(ja,s),()=>{n.removeEventListener(ja,s)}},[s,n,a])},b8=(e,t)=>{e.dispatchEvent(new CustomEvent(ja,{bubbles:!0,detail:{nativeEvent:t}}))};function Td(){const e=Ue(r=>r.isSubmenu),t=Jn(Nd);return e||t}const wv=e=>{const{targetDocument:t}=He();return Ue(n=>n.triggerRef),Ue(n=>n.inline),y.useRef(null)},Pd="fuimenusafezonetimeout",y8=e=>{const t=y.useRef(null);return y.useCallback(r=>{var n;(n=t.current)===null||n===void 0||n.removeEventListener(Pd,e),r?.addEventListener(Pd,e),t.current=r},[e])},x8=le({root:{a9b677:"fjw5fx7",Bqenvij:"fd461yt",Bcdw1i0:"fd7fpy0",Bnnss6s:"fi64zpg"},rootChecked:{Bcdw1i0:"f1022m68",Bnnss6s:"fi64zpg"}},{d:[".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".fd7fpy0{visibility:hidden;}",".fi64zpg{flex-shrink:0;}",".f1022m68{visibility:visible;}"]}),w8=e=>{const t=x8();e.checkmark&&(e.checkmark.className=Q(t.root,e.checked&&t.rootChecked,e.checkmark.className))},Po={root:"fui-MenuItem",icon:"fui-MenuItem__icon",checkmark:"fui-MenuItem__checkmark",submenuIndicator:"fui-MenuItem__submenuIndicator",content:"fui-MenuItem__content",secondaryContent:"fui-MenuItem__secondaryContent",subText:"fui-MenuItem__subText"},k8=ze("rfoezjv","r8lt3v0",{r:[".rfoezjv{border-radius:var(--borderRadiusMedium);position:relative;color:var(--colorNeutralForeground2);background-color:var(--colorNeutralBackground1);padding-right:var(--spacingVerticalSNudge);padding-left:var(--spacingVerticalSNudge);padding-top:var(--spacingVerticalSNudge);padding-bottom:var(--spacingVerticalSNudge);box-sizing:border-box;max-width:290px;min-height:32px;flex-shrink:0;display:flex;align-items:start;font-size:var(--fontSizeBase300);cursor:pointer;gap:4px;-webkit-user-select:none;-moz-user-select:none;user-select:none;}",".rfoezjv:hover{background-color:var(--colorNeutralBackground1Hover);color:var(--colorNeutralForeground2Hover);}",".rfoezjv:hover .fui-Icon-filled{display:inline;}",".rfoezjv:hover .fui-Icon-regular{display:none;}",".rfoezjv:hover .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".rfoezjv:hover .fui-MenuItem__subText{color:var(--colorNeutralForeground3Hover);}",".rfoezjv:hover:active{background-color:var(--colorNeutralBackground1Pressed);color:var(--colorNeutralForeground2Pressed);}",".rfoezjv:hover:active .fui-MenuItem__subText{color:var(--colorNeutralForeground3Pressed);}",".rfoezjv:focus{outline-style:none;}",".rfoezjv:focus-visible{outline-style:none;}",".rfoezjv[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rfoezjv[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);}',".r8lt3v0{border-radius:var(--borderRadiusMedium);position:relative;color:var(--colorNeutralForeground2);background-color:var(--colorNeutralBackground1);padding-left:var(--spacingVerticalSNudge);padding-right:var(--spacingVerticalSNudge);padding-top:var(--spacingVerticalSNudge);padding-bottom:var(--spacingVerticalSNudge);box-sizing:border-box;max-width:290px;min-height:32px;flex-shrink:0;display:flex;align-items:start;font-size:var(--fontSizeBase300);cursor:pointer;gap:4px;-webkit-user-select:none;-moz-user-select:none;user-select:none;}",".r8lt3v0:hover{background-color:var(--colorNeutralBackground1Hover);color:var(--colorNeutralForeground2Hover);}",".r8lt3v0:hover .fui-Icon-filled{display:inline;}",".r8lt3v0:hover .fui-Icon-regular{display:none;}",".r8lt3v0:hover .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".r8lt3v0:hover .fui-MenuItem__subText{color:var(--colorNeutralForeground3Hover);}",".r8lt3v0:hover:active{background-color:var(--colorNeutralBackground1Pressed);color:var(--colorNeutralForeground2Pressed);}",".r8lt3v0:hover:active .fui-MenuItem__subText{color:var(--colorNeutralForeground3Pressed);}",".r8lt3v0:focus{outline-style:none;}",".r8lt3v0:focus-visible{outline-style:none;}",".r8lt3v0[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r8lt3v0[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){.rfoezjv:hover{background-color:Canvas;border-color:Highlight;color:Highlight;}.rfoezjv:focus{outline-style:none;}.rfoezjv:focus-visible{outline-style:none;}.rfoezjv[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}@media (forced-colors: active){.rfoezjv[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}.rfoezjv[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid Highlight;border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}}',"@media (forced-colors: active){.rfoezjv[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){.r8lt3v0:hover{background-color:Canvas;border-color:Highlight;color:Highlight;}.r8lt3v0:focus{outline-style:none;}.r8lt3v0:focus-visible{outline-style:none;}.r8lt3v0[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}@media (forced-colors: active){.r8lt3v0[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}.r8lt3v0[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid Highlight;border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}}',"@media (forced-colors: active){.r8lt3v0[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),S8=ze("r1ls86vo","rpbc5dr",[".r1ls86vo{padding-left:2px;padding-right:2px;background-color:transparent;flex-grow:1;}",".rpbc5dr{padding-right:2px;padding-left:2px;background-color:transparent;flex-grow:1;}"]),B8=ze("r12mwwux","r1ewgu5j",[".r12mwwux{padding-left:2px;padding-right:2px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);color:var(--colorNeutralForeground3);}",".r12mwwux:hover{color:var(--colorNeutralForeground3Hover);}",".r12mwwux:focus{color:var(--colorNeutralForeground3Hover);}",".r1ewgu5j{padding-right:2px;padding-left:2px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);color:var(--colorNeutralForeground3);}",".r1ewgu5j:hover{color:var(--colorNeutralForeground3Hover);}",".r1ewgu5j:focus{color:var(--colorNeutralForeground3Hover);}"]),z8=ze("ro9koqv",null,[".ro9koqv{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;flex-shrink:0;}"]),j8=ze("r9c34qo",null,[".r9c34qo{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;}"]),_8=ze("rk2ppru",null,[".rk2ppru{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);color:var(--colorNeutralForeground3);}"]),C8=le({checkmark:{B6of3ja:"fmnzpld"},splitItemMain:{Bh6795r:"fqerorx"},splitItemTrigger:{Btl43ni:["f1ozlkrg","f10ostut"],Beyfa6y:["f1deotkl","f1krrbdw"],uwmqm3:["f1cnd47f","fhxju0i"],Ftih45:"f1wl9k8s",Ccq8qp:"f1yn80uh",Baz25je:"f68mna0",cmx5o7:"f1p5zmk"},submenuOpen:{De3pzq:"f5gciec",sj55zd:"fmh2wxz",D0sxk3:"fxoiby5",t6yez3:"f15q0o9g",B3y4be1:"f17gqod3",B2i6fwv:"f15ms52v",By8wz76:"fix5gee",B7iucu3:"f1gokeew"},disabled:{sj55zd:"f1s2aq7o",Bi91k9c:"fvgxktp",Jwef8y:"f1ijtazh",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bg7n49j:"f1q1x1ba",c7f7en:"ff3wrqt",B2d53fq:"fcvwxyo",iro3zm:"f1to34ca",Bumww26:"fszh5vc",t0hwav:"ft33916",B7iucu3:"f1cyfu5x",Bahaeuw:"fa9u7a5",Bbkh6qg:"f1wzezsb",B3ejlan:"f1egomlm",B41git9:"f1wf2001",Boq1n10:"fied5gk",Dcq74g:"f1efp33f",rxnm8d:"f1m2zpi7",wxluhh:"fei14nx",idgcvv:"f12hmwa5",j9xr24:"f1hzwxd0"}},{d:[".fmnzpld{margin-top:2px;}",".fqerorx{flex-grow:1;}",".f1ozlkrg{border-top-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f1krrbdw{border-bottom-right-radius:0;}",".f1cnd47f{padding-left:0;}",".fhxju0i{padding-right:0;}",'.f1wl9k8s::before{content:"";}',".f1yn80uh::before{width:var(--strokeWidthThin);}",".f68mna0::before{height:24px;}",".f1p5zmk::before{background-color:var(--colorNeutralStroke1);}",".f5gciec{background-color:var(--colorNeutralBackground1Hover);}",".fmh2wxz{color:var(--colorNeutralForeground2Hover);}",".fxoiby5 .fui-Icon-filled{display:inline;}",".f15q0o9g .fui-Icon-regular{display:none;}",".f17gqod3 .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".f15ms52v .fui-MenuItem__subText{color:var(--colorNeutralForeground3Hover);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.fix5gee{background-color:Canvas;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1gokeew{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fa9u7a5:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wzezsb:hover{background-color:Canvas;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1egomlm:hover .fui-MenuItem__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wf2001:hover .fui-MenuItem__icon{background-color:Canvas;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fied5gk:hover .fui-MenuItem__subText{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1efp33f:hover:active{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1m2zpi7:hover:active{background-color:Canvas;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fei14nx:hover:active .fui-MenuItem__subText{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f12hmwa5:focus{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1hzwxd0:focus{background-color:Canvas;}}",{m:"(forced-colors: active)"}]],h:[".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1ijtazh:hover{background-color:var(--colorNeutralBackground1);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1q1x1ba:hover .fui-MenuItem__icon{color:var(--colorNeutralForegroundDisabled);}",".ff3wrqt:hover .fui-MenuItem__subText{color:var(--colorNeutralForegroundDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f1to34ca:hover:active{background-color:var(--colorNeutralBackground1);}",".fszh5vc:hover:active .fui-MenuItem__subText{color:var(--colorNeutralForegroundDisabled);}"],f:[".ft33916:focus{color:var(--colorNeutralForegroundDisabled);}"]}),N8=le({disabled:{sj55zd:"f1s2aq7o",B7iucu3:"f1cyfu5x"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),T8=le({content:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62"},secondaryContent:{qb2dma:"f7nlbp4"},submenuIndicator:{qb2dma:"f7nlbp4"}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f7nlbp4{align-self:center;}"]}),P8=e=>{const t=C8(),r=k8(),n=S8(),a=B8(),s=z8(),c=j8(),u=T8(),f=_8(),p=N8(),g=!!e.subText;return e.root.className=Q(Po.root,r,e.submenuOpen&&t.submenuOpen,e.disabled&&t.disabled,e.root.className),e.content&&(e.content.className=Q(Po.content,n,e.content.className,g&&u.content)),e.checkmark&&(e.checkmark.className=Q(Po.checkmark,t.checkmark,e.checkmark.className)),e.secondaryContent&&(e.secondaryContent.className=Q(Po.secondaryContent,a,e.disabled&&t.disabled,e.secondaryContent.className,g&&u.secondaryContent)),e.icon&&(e.icon.className=Q(Po.icon,s,e.icon.className)),e.submenuIndicator&&(e.submenuIndicator.className=Q(Po.submenuIndicator,c,e.submenuIndicator.className,g&&u.submenuIndicator)),e.subText&&(e.subText.className=Q(Po.subText,e.disabled&&p.disabled,e.subText.className,f)),w8(e),e},kv=De.durationSlower,Sv=De.curveDecelerateMid,Bv=oi(({distance:e=10})=>({enter:[Bo({duration:kv,easing:Sv,direction:"enter"}),{...Km({duration:kv,easing:Sv,direction:"enter",outX:`calc(var(${Qs}, 0px) * ${e})`,outY:`calc(var(${Zs}, 0px) * ${e})`}),composite:"accumulate"}],exit:[]})),R8=["after","after-bottom","before-top","before","before-bottom","above"],M8=e=>{const{surfaceMotion:t,...r}=e,n=E8(r);return{...n,components:{surfaceMotion:Bv},surfaceMotion:ha(t,{elementType:Bv,defaultProps:{visible:n.open,appear:!0,unmountOnExit:!0}})}},E8=e=>{const t=Td(),{hoverDelay:r=500,inline:n=!1,hasCheckmarks:a=!1,hasIcons:s=!1,closeOnScroll:c=!1,openOnContext:u=!1,persistOnItemClick:f=!1,openOnHover:p=t,defaultCheckedValues:g,mountNode:v=null,safeZone:x}=e,{targetDocument:w}=He(),S=pt("menu"),[k,B]=q1(),z=si(e.positioning),P=c1({targetDocument:w,onPositioningEnd:z.onPositioningEnd}),j={position:t?"after":"below",align:t?"top":"start",target:e.openOnContext?k:void 0,fallbackPositions:t?R8:void 0,...z,onPositioningEnd:P},N=y.Children.toArray(e.children);let M,C;N.length===2?(M=N[0],C=N[1]):N.length===1&&(C=N[0]);const{targetRef:I,containerRef:A}=ll(j),ae=x&&p,de=y.useRef({isInside:!1,mouseCoordinates:{x:0,y:0}}),ee=rC({disabled:!ae,timeout:typeof x=="object"?x.timeout:300,onSafeZoneEnter:q=>{X(q,{open:!0,keyboard:!1,type:"menuSafeZoneMouseEnter",event:q}),de.current.isInside=!0},onSafeZoneLeave:()=>{de.current.isInside=!1},onSafeZoneMove:q=>{de.current.mouseCoordinates={x:q.clientX,y:q.clientY}},onSafeZoneTimeout:()=>{const q=new CustomEvent(Pd);if(X(q,{open:!1,keyboard:!1,type:"menuSafeZoneTimeout",event:q}),de.current.isInside&&w){const K=w.elementsFromPoint(de.current.mouseCoordinates.x,de.current.mouseCoordinates.y).find(F=>F.classList.contains(Po.root));K?.dispatchEvent(q)}}}),te=Oe(I,ee.targetRef),W=Oe(A,ee.containerRef),[Y,X]=F8({hoverDelay:r,isSubmenu:t,setContextTarget:B,closeOnScroll:c,menuPopoverRef:W,triggerRef:te,open:e.open,defaultOpen:e.defaultOpen,onOpenChange:e.onOpenChange,openOnContext:u}),[O,Z]=I8({checkedValues:e.checkedValues,defaultCheckedValues:g,onCheckedValueChange:e.onCheckedValueChange});return{inline:n,hoverDelay:r,triggerId:S,isSubmenu:t,openOnHover:p,contextTarget:k,setContextTarget:B,hasCheckmarks:a,hasIcons:s,closeOnScroll:c,menuTrigger:M,menuPopover:C,mountNode:v,triggerRef:te,menuPopoverRef:W,openOnContext:u,open:Y,setOpen:X,checkedValues:O,onCheckedValueChange:Z,persistOnItemClick:f,safeZone:ee.elementToRender}},I8=e=>{const[t,r]=Bt({state:e.checkedValues,defaultState:e.defaultCheckedValues,initialState:{}}),n=ce((a,{name:s,checkedItems:c})=>{var u;(u=e.onCheckedValueChange)===null||u===void 0||u.call(e,a,{name:s,checkedItems:c}),r(f=>({...f,[s]:c}))});return[t,n]},F8=e=>{const{targetDocument:t}=He(),r=Ue(k=>k.setOpen),n=ce((k,B)=>{var z;return(z=e.onOpenChange)===null||z===void 0?void 0:z.call(e,k,B)}),a=y.useRef(!1),[s,c]=Bt({state:e.open,defaultState:e.defaultOpen,initialState:!1}),u=ce((k,B)=>{const z=k instanceof CustomEvent&&k.type===ja?k.detail.nativeEvent:k;n?.(z,{...B}),B.open&&k.type==="contextmenu"&&e.setContextTarget(k),B.open||e.setContextTarget(void 0),B.bubble&&r(k,{...B}),c(B.open)}),[f,p]=sn(),g=ce((k,B)=>{if(p(),!(k instanceof Event)&&k.persist&&k.persist(),!B.ignoreHoverDelay&&(k.type==="mouseleave"||k.type==="mouseover"||k.type==="mousemove"||k.type===ja)){var P;!((P=e.triggerRef.current)===null||P===void 0)&&P.contains(k.target)&&(a.current=k.type==="mouseover"||k.type==="mousemove"),f(()=>u(k,B),e.hoverDelay)}else u(k,B)});Ru({contains:ln,disabled:!s,element:t,refs:[e.menuPopoverRef,!e.openOnContext&&e.triggerRef].filter(Boolean),callback:k=>g(k,{open:!1,type:"clickOutside",event:k})});const v=e.openOnContext||e.closeOnScroll;Ph({contains:ln,element:t,callback:k=>g(k,{open:!1,type:"scrollOutside",event:k}),refs:[e.menuPopoverRef,!e.openOnContext&&e.triggerRef].filter(Boolean),disabled:!s||!v}),v8({element:t,callback:k=>{a.current||g(k,{open:!1,type:"menuMouseEnter",event:k})},disabled:!s,refs:[e.menuPopoverRef]});const{findFirstFocusable:x}=ca(),w=y.useCallback(()=>{const k=x(e.menuPopoverRef.current);k?.focus()},[x,e.menuPopoverRef]),S=Pu();return y.useEffect(()=>{if(s)w();else if(!S){var k,B;if(t?.activeElement===t?.body||!((k=e.menuPopoverRef.current)===null||k===void 0)&&k.contains((B=t?.activeElement)!==null&&B!==void 0?B:null)){var z;(z=e.triggerRef.current)===null||z===void 0||z.focus()}}},[e.triggerRef,e.isSubmenu,s,w,t,e.menuPopoverRef]),[s,g]};function A8(e){const{checkedValues:t,hasCheckmarks:r,hasIcons:n,inline:a,isSubmenu:s,menuPopoverRef:c,mountNode:u,onCheckedValueChange:f,open:p,openOnContext:g,openOnHover:v,persistOnItemClick:x,safeZone:w,setOpen:S,triggerId:k,triggerRef:B}=e;return{menu:y.useMemo(()=>({checkedValues:t,hasCheckmarks:r,hasIcons:n,inline:a,isSubmenu:s,menuPopoverRef:c,mountNode:u,onCheckedValueChange:f,open:p,openOnContext:g,openOnHover:v,persistOnItemClick:x,safeZone:w,setOpen:S,triggerId:k,triggerRef:B}),[t,r,n,a,s,c,u,f,p,g,v,x,w,S,k,B])}}const D8=(e,t)=>Le(d8,{value:t.menu,children:[e.menuTrigger,e.menuPopover&&J(e.surfaceMotion,{children:J(Xs,{children:e.menuPopover})})]}),zv=e=>{const t=M8(e),r=A8(t);return D8(t,r)};zv.displayName="Menu";const q8=(e,t)=>{const r=za(a=>a.setFocusByFirstCharacter),{onKeyDown:n}=e.root;return e.root.onKeyDown=a=>{var s;n?.(a),!(((s=a.key)===null||s===void 0?void 0:s.length)>1)&&t.current&&r?.(a,t.current)},e},jv=y.createContext(void 0),_v={setMultiline:()=>null};jv.Provider;const Cv=()=>{var e;return(e=y.useContext(jv))!==null&&e!==void 0?e:_v},Nv=()=>Cv()!==_v,O8=(e,t)=>{const r=h8(),n=Ue(P=>P.persistOnItemClick),{as:a="div",disabled:s=!1,hasSubmenu:c=r,persistOnClick:u=n,content:f,...p}=e,{hasIcons:g,hasCheckmarks:v}=L8({hasSubmenu:c}),x=Ue(P=>P.setOpen),w=Ue(P=>P.open);H8({multiline:!!e.subText,hasSubmenu:c});const S=y.useRef(null),k=y.useRef(!1),B=wv(V8(e.role)),z={hasSubmenu:c,submenuOpen:c&&w,disabled:s,persistOnClick:u,components:{root:"div",icon:"span",checkmark:"span",submenuIndicator:"span",content:"span",secondaryContent:"span",subText:"span"},root:me(rt(a,fn(a,{role:"menuitem",...p,disabled:!1,disabledFocusable:s,ref:Oe(t,S,B),onKeyDown:ce(P=>{var j;(j=e.onKeyDown)===null||j===void 0||j.call(e,P),!P.isDefaultPrevented()&&(P.key===to||P.key===ei)&&(k.current=!0)}),onMouseMove:ce(P=>{var j;if(P.currentTarget.ownerDocument.activeElement!==P.currentTarget){var N;(N=S.current)===null||N===void 0||N.focus()}(j=e.onMouseMove)===null||j===void 0||j.call(e,P)}),onClick:ce(P=>{var j;!c&&!u&&(x(P,{open:!1,keyboard:k.current,bubble:!0,type:"menuItemClick",event:P}),k.current=!1),(j=e.onClick)===null||j===void 0||j.call(e,P)})})),{elementType:"div"}),icon:Ne(e.icon,{renderByDefault:g,elementType:"span"}),checkmark:Ne(e.checkmark,{renderByDefault:v,elementType:"span"}),submenuIndicator:Ne(e.submenuIndicator,{renderByDefault:c,elementType:"span"}),content:Ne(e.content,{renderByDefault:!!e.children,defaultProps:{children:e.children},elementType:"span"}),secondaryContent:Ne(e.secondaryContent,{elementType:"span"}),subText:Ne(e.subText,{elementType:"span"})};return q8(z,S),z},H8=e=>{const{hasSubmenu:t,multiline:r}=e,n=Nv()&&t,{setMultiline:a}=Cv();bt(()=>{n||a(r)},[a,r,n])},L8=e=>{const{hasSubmenu:t}=e,r=za(s=>s.hasIcons),n=za(s=>s.hasCheckmarks),a=Nv()&&t;return{hasIcons:r&&!a,hasCheckmarks:n&&!a}},V8=e=>{switch(e){case"menuitemcheckbox":return"MenuItemCheckbox";case"menuitemradio":return"MenuItemRadio"}return"MenuItem"},W8=Em(mz,dm),$8=Em(hz,gz),U8=(e,t)=>{const{dir:r}=He(),n=O8(e,t);if(n.submenuIndicator){var a,s;(s=(a=n.submenuIndicator).children)!==null&&s!==void 0||(a.children=r==="rtl"?y.createElement($8,null):y.createElement(W8,null))}return n},G8=e=>Le(e.root,{children:[e.checkmark&&J(e.checkmark,{}),e.icon&&J(e.icon,{}),e.content&&Le(e.content,{children:[e.content.children,e.subText&&J(e.subText,{})]}),e.secondaryContent&&J(e.secondaryContent,{}),e.submenuIndicator&&J(e.submenuIndicator,{})]}),gl=y.forwardRef((e,t)=>{const r=U8(e,t);return P8(r),Pe("useMenuItemStyles_unstable")(r),G8(r)});gl.displayName="MenuItem";const Tv=["menuitem","menuitemcheckbox","menuitemradio"],X8=Tv.map(e=>`[role="${e}"]`).join(","),K8=(e,t)=>{const r=Q8(),n=Jn(hl);Z8(e,r,n)&&console.warn("You are using both MenuList and Menu props, we recommend you to use Menu props when available");const a=y.useRef(null),{findAllFocusable:s}=ca(),{targetDocument:c}=He(),u=Ls({circular:!0}),f=Y8(e,t),p=Oe(f.root.ref,a);y.useEffect(()=>{const v=a.current;if(!n||!c||!v)return;const x=w=>{const S=w.detail.next;S&&v.contains(c.activeElement)&&!v.contains(S)&&w.preventDefault()};return c.addEventListener(Iu,x),()=>{c.removeEventListener(Iu,x)}},[n,c]);const g=y.useCallback((v,x)=>{if(!a.current)return;const w=s(a.current,S=>S.hasAttribute("role")&&Tv.indexOf(S.getAttribute("role"))!==-1);Pv(w,v.key,x)},[s]);return{...f,root:{...u,...f.root,ref:p},setFocusByFirstCharacter:g}},Y8=(e,t)=>{const r=Ue(C=>C.triggerId),n=Ue(C=>C.checkedValues),a=Ue(C=>C.onCheckedValueChange),s=Ue(C=>C.hasIcons),c=Ue(C=>C.hasCheckmarks),u=Jn(hl),f=y.useRef(null),p=wv(),g=y.useCallback((C,I)=>{if(!f.current)return;const A=Array.from(f.current.querySelectorAll(X8));Pv(A,C.key,I)},[]);var v;const[x,w]=Bt({state:(v=e.checkedValues)!==null&&v!==void 0?v:u?n:void 0,defaultState:e.defaultCheckedValues,initialState:{}});var S;const k=(S=e.onCheckedValueChange)!==null&&S!==void 0?S:u?a:void 0,B=ce((C,I,A,ae)=>{const ee=[...x?.[I]||[]];ae?ee.splice(ee.indexOf(A),1):ee.push(A),k?.(C,{name:I,checkedItems:ee}),w(te=>({...te,[I]:ee}))}),z=ce((C,I,A)=>{const ae=[A];w(de=>({...de,[I]:ae})),k?.(C,{name:I,checkedItems:ae})});var P,j,N,M;return{components:{root:"div"},root:me(rt("div",{ref:Oe(t,f,p),role:"menu","aria-labelledby":r,...e}),{elementType:"div"}),checkedValues:x,hasIcons:(j=(P=e.hasIcons)!==null&&P!==void 0?P:s)!==null&&j!==void 0?j:!1,hasCheckmarks:(M=(N=e.hasCheckmarks)!==null&&N!==void 0?N:c)!==null&&M!==void 0?M:!1,hasMenuContext:u,setFocusByFirstCharacter:g,selectRadio:z,toggleCheckbox:B}},Pv=(e,t,r)=>{let n=e.indexOf(r)+1;n===e.length&&(n=0);const a=e.map(f=>{var p;return(p=f.textContent)===null||p===void 0?void 0:p.charAt(0).toLowerCase()}),s=t.toLowerCase(),c=f=>{for(let p=f;p<a.length;p++)if(s===a[p])return p;return-1};let u=c(n);u===-1&&(u=c(0)),u>-1&&e[u].focus()},Q8=()=>{const e=Ue(s=>s.checkedValues),t=Ue(s=>s.onCheckedValueChange),r=Ue(s=>s.triggerId),n=Ue(s=>s.hasIcons),a=Ue(s=>s.hasCheckmarks);return{checkedValues:e,onCheckedValueChange:t,triggerId:r,hasIcons:n,hasCheckmarks:a}},Z8=(e,t,r)=>{let n=!1;for(const a in t)e[a]&&(n=!0);return r&&n},J8=(e,t)=>J(m8,{value:t.menuList,children:J(e.root,{})});function e7(e){const{checkedValues:t,hasCheckmarks:r,hasIcons:n,selectRadio:a,setFocusByFirstCharacter:s,toggleCheckbox:c}=e;return{menuList:y.useMemo(()=>({checkedValues:t,hasCheckmarks:r,hasIcons:n,selectRadio:a,setFocusByFirstCharacter:s,toggleCheckbox:c}),[t,r,n,a,s,c])}}const t7={root:"fui-MenuList"},r7=le({root:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",i8kkvl:0,Belr9w4:0,rmohyg:"f1t6b6ee"},hasMenuContext:{Bqenvij:"f1l02sjl"}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",[".f1t6b6ee{gap:2px;}",{p:-1}],".f1l02sjl{height:100%;}"]}),o7=e=>{const t=r7();return e.root.className=Q(t7.root,t.root,e.hasMenuContext&&t.hasMenuContext,e.root.className),e},Rv=y.forwardRef((e,t)=>{const r=K8(e,t),n=e7(r);return o7(r),Pe("useMenuListStyles_unstable")(r),J8(r,n)});Rv.displayName="MenuList";const n7=(e,t)=>{"use no memo";const r=Ue(C=>C.safeZone),n=Ue(C=>C.menuPopoverRef),a=Ue(C=>C.setOpen),s=Ue(C=>C.open),c=Ue(C=>C.openOnHover),u=Ue(C=>C.triggerRef),f=Td(),p=za(C=>{var I;return(I=C.shouldCloseOnArrowLeft)!==null&&I!==void 0?I:!0}),g=y.useRef(!0),[v,x]=sn(),{dir:w}=He(),S=w==="ltr"?Vg:Wg,k=y.useCallback(C=>{C&&C.addEventListener("mouseover",I=>{g.current&&(g.current=!1,b8(n.current,I),v(()=>{g.current=!0},250))})},[n,v]);y.useEffect(()=>()=>x(),[x]);var B;const z=(B=Ue(C=>C.inline))!==null&&B!==void 0?B:!1,P=Ue(C=>C.mountNode),j=me(rt("div",{role:"presentation",...e,ref:Oe(t,n,k)}),{elementType:"div"}),{onMouseEnter:N,onKeyDown:M}=j;return j.onMouseEnter=ce(C=>{(c||f)&&a(C,{open:!0,keyboard:!1,type:"menuPopoverMouseEnter",event:C}),N?.(C)}),j.onKeyDown=ce(C=>{const I=C.key;if(I===ti||f&&p&&I===S){var A;s&&(!((A=n.current)===null||A===void 0)&&A.contains(C.target))&&!C.isDefaultPrevented()&&(a(C,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:C}),C.preventDefault())}if(I===Lg&&(a(C,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:C}),!f)){var ae;(ae=u.current)===null||ae===void 0||ae.focus()}M?.(C)}),{inline:z,mountNode:P,safeZone:r,components:{root:"div"},root:j}},i7=(e,t)=>{const r=XB(),n=dn({focusable:{ignoreKeydown:{Escape:!0}}}),a=mg(r,n),s=Gs(),c=n7(e,t);return{...c,root:{...a,...c.root,ref:Oe(c.root.ref,s)}}},a7={root:"fui-MenuPopover"},s7=le({root:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",De3pzq:"fxugw4r",sj55zd:"f19n0e5",B7ck84d:"f1ewtqcl",Bf4jedk:"fl8fusi",B2u0y6b:"f1kaai3v",B68tc82:"f1p9o1ba",a9b677:"f1ahpp82",E5pizo:"f1hg901r",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fd3pd8h",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:"f9ggezi",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ewtqcl{box-sizing:border-box;}",".fl8fusi{min-width:138px;}",".f1kaai3v{max-width:300px;}",".f1p9o1ba{overflow-x:hidden;}",".f1ahpp82{width:max-content;}",".f1hg901r{box-shadow:var(--shadow16);}",[".fd3pd8h{padding:4px;}",{p:-1}],[".f9ggezi{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),l7=e=>{const t=s7();return e.root.className=Q(a7.root,t.root,e.root.className),e},c7=e=>e.inline?Le(y.Fragment,{children:[J(e.root,{}),e.safeZone]}):Le(li,{mountNode:e.mountNode,children:[J(e.root,{}),e.safeZone]}),Mv=y.forwardRef((e,t)=>{const r=i7(e,t);return l7(r),Pe("useMenuPopoverStyles_unstable")(r),c7(r)});Mv.displayName="MenuPopover";function u7(){}const d7=e=>{const t=Ue(a=>a.menuPopoverRef),{findFirstFocusable:r}=ca(),n=y.useCallback(()=>{const a=r(t.current);a?.focus()},[r,t]);return f7({...e,focusFirst:n})},f7=e=>{const{children:t,disableButtonEnhancement:r=!1,focusFirst:n}=e,a=Ue(W=>W.triggerRef),s=Ue(W=>W.setOpen),c=Ue(W=>W.open),u=Ue(W=>W.triggerId),f=Ue(W=>W.openOnHover),p=Ue(W=>W.openOnContext),g=Td(),v=za(W=>{var Y;return(Y=W.shouldOpenOnArrowRight)!==null&&Y!==void 0?Y:!0}),x=y.useRef(!1),w=y.useRef(!1),S=y.useRef(!1),{dir:k}=He(),B=k==="ltr"?Wg:Vg,z=ia(t),P=y8(ce(()=>{g&&(w.current=!0)})),j=W=>{ui(W)||W.isDefaultPrevented()||p&&(W.preventDefault(),s(W,{open:!0,keyboard:!1,type:"menuTriggerContextMenu",event:W}))},N=W=>{ui(W)||p||(s(W,{open:!c,keyboard:x.current,type:"menuTriggerClick",event:W}),x.current=!1)},M=W=>{if(ui(W)||W.isDefaultPrevented())return;const Y=W.key;!p&&(g&&v&&Y===B||!g&&Y===Qu)&&s(W,{open:!0,keyboard:!0,type:"menuTriggerKeyDown",event:W}),Y===ti&&!g&&s(W,{open:!1,keyboard:!0,type:"menuTriggerKeyDown",event:W}),c&&Y===B&&g&&v&&n?.()},C=W=>{ui(W)||f&&(S.current?s(W,{open:!0,keyboard:!1,type:"menuTriggerMouseEnter",event:W}):w.current&&(s(W,{open:!0,keyboard:!1,ignoreHoverDelay:!0,type:"menuTriggerMouseEnter",event:W}),w.current=!1))},I=W=>{ui(W)||f&&!S.current&&(s(W,{open:!0,keyboard:!1,type:"menuTriggerMouseMove",event:W}),S.current=!0)},A=W=>{ui(W)||f&&s(W,{open:!1,keyboard:!1,type:"menuTriggerMouseLeave",event:W})};var ae;const de={id:u,...z?.props,ref:Oe(a,na(z),P),onMouseEnter:ce((ae=z?.props.onMouseEnter)!==null&&ae!==void 0?ae:u7),onMouseLeave:ce(Re(z?.props.onMouseLeave,A)),onContextMenu:ce(Re(z?.props.onContextMenu,j)),onMouseMove:ce(Re(z?.props.onMouseMove,I)),onMouseOver:ce(Re(z?.props.onMouseOver,C))},ee={"aria-haspopup":"menu","aria-expanded":!c&&!g?void 0:c,...de,onClick:ce(Re(z?.props.onClick,N)),onKeyDown:ce(Re(z?.props.onKeyDown,M))},te=fn(z?.type==="button"||z?.type==="a"?z.type:"div",ee);return{isSubmenu:g,children:Es(t,p?de:r?ee:te)}},ui=e=>{const t=r=>r.hasAttribute("disabled")||r.hasAttribute("aria-disabled")&&r.getAttribute("aria-disabled")==="true";return Br(e.target)&&t(e.target)?!0:Br(e.currentTarget)&&t(e.currentTarget)},p7=e=>y.createElement(p8,{value:e.isSubmenu},e.children),Rd=e=>{const t=d7(e);return p7(t)};Rd.displayName="MenuTrigger",Rd.isFluentTriggerComponent=!0;const Md=y.createContext(void 0),h7={};Md.Provider;const g7=()=>y.useContext(Md)||h7,m7=(e,t)=>J(Md.Provider,{value:t.radioGroup,children:J(e.root,{})}),v7=(e,t)=>{const{layout:r="vertical",...n}=e,a=b7(n,t);return{layout:r,...a}},b7=(e,t)=>{e=To(e);const r=pt("radiogroup-"),{name:n=r,value:a,defaultValue:s,disabled:c,onChange:u,required:f}=e;return{name:n,value:a,defaultValue:s,disabled:c,required:f,components:{root:"div"},root:{ref:t,role:"radiogroup",...me(rt("div",e,["onChange","name"]),{elementType:"div"}),onChange:ce(p=>{u&&Br(p.target,{constructorName:"HTMLInputElement"})&&p.target.type==="radio"&&u(p,{value:p.target.value})})}}},y7={root:"fui-RadioGroup"},x7=le({root:{mc9l5x:"f22iagw",Bt984gj:"f6jr5hl"},vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f6jr5hl{align-items:flex-start;}",".f1vx9l62{flex-direction:column;}"]}),w7=e=>{const t=x7();return e.root.className=Q(y7.root,t.root,e.layout==="vertical"&&t.vertical,e.root.className),e},k7=e=>{const{name:t,value:r,defaultValue:n,disabled:a,layout:s,required:c}=e,u=e.root["aria-describedby"];return{radioGroup:y.useMemo(()=>({name:t,value:r,defaultValue:n,disabled:a,layout:s,required:c,"aria-describedby":u}),[t,r,n,a,s,c,u])}},ml=y.forwardRef((e,t)=>{const r=v7(e,t),n=k7(r);return w7(r),Pe("useRadioGroupStyles_unstable")(r),m7(r,n)});ml.displayName="RadioGroup";const S7=e=>Le(e.root,{children:[J(e.input,{}),J(e.indicator,{}),e.label&&J(e.label,{})]}),B7=(e,t)=>{const r=z7(e,t);return{...r,components:{...r.components,label:Xt},label:Ne(e.label,{defaultProps:{...r.label},elementType:Xt})}},z7=(e,t)=>{const r=g7(),{name:n=r.name,checked:a=r.value!==void 0?r.value===e.value:void 0,defaultChecked:s=r.defaultValue!==void 0?r.defaultValue===e.value:void 0,labelPosition:c=r.layout==="horizontal-stacked"?"below":"after",disabled:u=r.disabled,required:f=r.required,"aria-describedby":p=r["aria-describedby"],onChange:g}=e,v=yo({props:e,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),x=me(e.root,{defaultProps:{ref:ua(),...v.root},elementType:"span"}),w=me(e.input,{defaultProps:{ref:t,type:"radio",id:pt("radio-",v.primary.id),name:n,checked:a,defaultChecked:s,disabled:u,required:f,"aria-describedby":p,...v.primary},elementType:"input"});w.onChange=Re(w.onChange,B=>g?.(B,{value:B.currentTarget.value}));const S=Ne(e.label,{defaultProps:{htmlFor:w.id,disabled:w.disabled},elementType:"label"}),k=me(e.indicator,{defaultProps:{"aria-hidden":!0},elementType:"div"});return{labelPosition:c,components:{root:"span",input:"input",label:"label",indicator:"div"},root:x,input:w,label:S,indicator:k}},vl={root:"fui-Radio",indicator:"fui-Radio__indicator",input:"fui-Radio__input",label:"fui-Radio__label"},j7=ze("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;}}"]}),_7=le({vertical:{Beiy3e4:"f1vx9l62",Bt984gj:"f122n59"}},{d:[".f1vx9l62{flex-direction:column;}",".f122n59{align-items:center;}"]}),C7=ze("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;}}"]}),N7=le({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;}"]}),T7=ze("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;}"]),P7=le({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;}"]}),R7=e=>{const{labelPosition:t}=e,r=j7(),n=_7();e.root.className=Q(vl.root,r,t==="below"&&n.vertical,e.root.className);const a=C7(),s=N7();e.input.className=Q(vl.input,a,t==="below"&&s.below,e.indicator.children?s.customIndicator:s.defaultIndicator,e.input.className);const c=T7();e.indicator.className=Q(vl.indicator,c,e.indicator.className);const u=P7();return e.label&&(e.label.className=Q(vl.label,u.base,u[t],e.label.className)),e},vn=y.forwardRef((e,t)=>{const r=B7(e,t);return R7(r),Pe("useRadioStyles_unstable")(r),S7(r)});vn.displayName="Radio";const M7={sliderDirectionVar:"--fui-Slider--direction",sliderProgressVar:"--fui-Slider--progress",sliderStepsPercentVar:"--fui-Slider--steps-percent"},{sliderStepsPercentVar:E7,sliderProgressVar:I7,sliderDirectionVar:F7}=M7,A7=(e,t,r)=>r===t?0:(e-t)/(r-t)*100,D7=(e,t)=>{const{min:r=0,max:n=100,step:a}=t,{dir:s}=He(),[c,u]=Bt({state:t.value,defaultState:t.defaultValue,initialState:0}),f=oa(c,r,n),p=A7(f,r,n),g=e.input.onChange,v=t.onChange,x=ce(k=>{const B=Number(k.target.value);u(oa(B,r,n)),g&&g!==v?g(k):v&&v(k,{value:B})}),w=a&&a>0?`${a*100/(n-r)}%`:void 0,S={[F7]:e.vertical?"0deg":s==="ltr"?"90deg":"270deg",[I7]:`${p}%`,...w!==void 0&&{[E7]:w}};return e.root.style={...S,...e.root.style},e.input.value=f,e.input.onChange=x,e},q7=(e,t)=>{const{size:r="medium",...n}=e;return{...O7(n,t),size:r}},O7=(e,t)=>{e=To(e,{supportsLabelFor:!0});const r=yo({props:e,primarySlotTagName:"input",excludedPropNames:["onChange"]}),{disabled:n,vertical:a,root:s,input:c,rail:u,thumb:f}=e,p={disabled:n,vertical:a,components:{input:"input",rail:"div",root:"div",thumb:"div"},root:me(s,{defaultProps:r.root,elementType:"div"}),input:me(c,{defaultProps:{id:pt("slider-",e.id),ref:t,...r.primary,type:"range",orient:a?"vertical":void 0},elementType:"input"}),rail:me(u,{elementType:"div"}),thumb:me(f,{elementType:"div"})};return p.root.ref=Oe(p.root.ref,ua()),D7(p,e),p},H7=e=>Le(e.root,{children:[J(e.input,{}),J(e.rail,{}),J(e.thumb,{})]}),bl={root:"fui-Slider",rail:"fui-Slider__rail",thumb:"fui-Slider__thumb",input:"fui-Slider__input"},L7=le({root:{qhf8xq:"f10pi13n",mc9l5x:"fwk3njj",lpbzjs:"f1sdsnyy",Bt984gj:"f122n59",B7hvi0a:"f1oiokrs"},small:{Bi64ftq:"f1agqo6f",Bslxy2k:"f1mmvox9",Ba19x4e:"f1i7ztpd",sshi5w:"f1pha7fy"},medium:{Bi64ftq:"f1a78h9h",Bslxy2k:"fh1udnr",Ba19x4e:"fuok0yf",sshi5w:"f1nxs5xn"},horizontal:{Bf4jedk:"fyvtabn",wkccdc:"fgfd48t",Budl1dq:"f4t5rw1"},vertical:{sshi5w:"f1pzv1zu",wkccdc:"fktlcaf",Budl1dq:"fiadc6h"},enabled:{B7wi8oa:"f4l8x3l",B250r6j:"f671q34",Bpmy4es:"fvfzmw5",Buw9y6v:"faw1t00",Bq939m0:"fxdgx5",gjzr1t:"fii04fa",tg7hqu:"f36hzz8",qhf704:"fdjsfay",Blfvze:"f1fen33d",genz7u:"f1c6b0w1",Brgvh4e:"f1rq9b4z",Bsjyjqp:"f4xxiul"},disabled:{Bpmy4es:"foojseg",B7wi8oa:"f1lgdqhv",B250r6j:"f1veetlj",qhf704:"fn4acdm",Blfvze:"f4s8dx0",genz7u:"f1wil5xy"},focusIndicatorHorizontal:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",Bssx7fj:"f1b1k54r",uh7if5:["f4ne723","fqqcjud"],clntm0:"fh7aioi",Dlk2r6:["fqqcjud","f4ne723"],h6p2u:"f1ufm4qn",I6qiy5:["f1qnwcb4","fgrk5zm"],yzno9d:"fi52z01",By0wis0:["fgrk5zm","f1qnwcb4"],B2j2mmj:"ffht0p2",wigs8:"f1p0ul1q",pbfy6t:"f1c901ms",B0v4ure:"f1alokd7",Byrf0fs:0,Bsiemmq:0,Bwckmig:0,skfxo0:0,Iidy0u:0,B98u21t:0,Bvwlmkc:0,jo1ztg:0,Ba1iezr:0,Blmvk6g:0,B24cy0v:0,Bil7v7r:0,Br3gin4:0,nr063g:0,ghq09:0,Bbgo44z:0,Bseh09z:"fmj8fco",az1dzo:0,Ba3ybja:0,B6352mv:0,vppk2z:0,Biaj6j7:"f1iwowo3",B2pnrqr:"f1pffoy2",B29w5g4:["f1dfga45","f63jj3o"],Bhhzhcn:"fs6b7xr",Bec0n69:["f63jj3o","f1dfga45"]},focusIndicatorVertical:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",Bssx7fj:"f1b1k54r",uh7if5:["f4ne723","fqqcjud"],clntm0:"fh7aioi",Dlk2r6:["fqqcjud","f4ne723"],h6p2u:"f1ufm4qn",I6qiy5:["f1qnwcb4","fgrk5zm"],yzno9d:"fi52z01",By0wis0:["fgrk5zm","f1qnwcb4"],B2j2mmj:"ffht0p2",wigs8:"f1p0ul1q",pbfy6t:"f1c901ms",B0v4ure:"f1alokd7",Byrf0fs:0,Bsiemmq:0,Bwckmig:0,skfxo0:0,Iidy0u:0,B98u21t:0,Bvwlmkc:0,jo1ztg:0,Ba1iezr:0,Blmvk6g:0,B24cy0v:0,Bil7v7r:0,Br3gin4:0,nr063g:0,ghq09:0,Bbgo44z:0,Bseh09z:"fmj8fco",az1dzo:0,Ba3ybja:0,B6352mv:0,vppk2z:0,Biaj6j7:"f1iwowo3",B2pnrqr:"f1pffoy2",B29w5g4:["fm5xmfm","femsgmt"],Bhhzhcn:"fs6b7xr",Bec0n69:["femsgmt","fm5xmfm"]}},{d:[".f10pi13n{position:relative;}",".fwk3njj{display:inline-grid;}",".f1sdsnyy{touch-action:none;}",".f122n59{align-items:center;}",".f1oiokrs{justify-items:center;}",".f1agqo6f{--fui-Slider__thumb--size:16px;}",".f1mmvox9{--fui-Slider__inner-thumb--radius:5px;}",".f1i7ztpd{--fui-Slider__rail--size:2px;}",".f1pha7fy{min-height:24px;}",".f1a78h9h{--fui-Slider__thumb--size:20px;}",".fh1udnr{--fui-Slider__inner-thumb--radius:6px;}",".fuok0yf{--fui-Slider__rail--size:4px;}",".f1nxs5xn{min-height:32px;}",".fyvtabn{min-width:120px;}",".fgfd48t{grid-template-rows:1fr var(--fui-Slider__thumb--size) 1fr;}",".f4t5rw1{grid-template-columns:1fr calc(100% - var(--fui-Slider__thumb--size)) 1fr;}",".f1pzv1zu{min-height:120px;}",".fktlcaf{grid-template-rows:1fr calc(100% - var(--fui-Slider__thumb--size)) 1fr;}",".fiadc6h{grid-template-columns:1fr var(--fui-Slider__thumb--size) 1fr;}",".f4l8x3l{--fui-Slider__rail--color:var(--colorNeutralStrokeAccessible);}",".f671q34{--fui-Slider__progress--color:var(--colorCompoundBrandBackground);}",".fvfzmw5{--fui-Slider__thumb--color:var(--colorCompoundBrandBackground);}",".foojseg{--fui-Slider__thumb--color:var(--colorNeutralForegroundDisabled);}",".f1lgdqhv{--fui-Slider__rail--color:var(--colorNeutralBackgroundDisabled);}",".f1veetlj{--fui-Slider__progress--color:var(--colorNeutralForegroundDisabled);}",".f1b1k54r[data-fui-focus-within]:focus-within{border-top-color:transparent;}",".f4ne723[data-fui-focus-within]:focus-within{border-right-color:transparent;}",".fqqcjud[data-fui-focus-within]:focus-within{border-left-color:transparent;}",".fh7aioi[data-fui-focus-within]:focus-within{border-bottom-color:transparent;}",'.ffht0p2[data-fui-focus-within]:focus-within::after{content:"";}',".f1p0ul1q[data-fui-focus-within]:focus-within::after{position:absolute;}",".f1c901ms[data-fui-focus-within]:focus-within::after{pointer-events:none;}",".f1alokd7[data-fui-focus-within]:focus-within::after{z-index:1;}",[".fmj8fco[data-fui-focus-within]:focus-within::after{border:2px solid var(--colorStrokeFocus2);}",{p:-2}],[".f1iwowo3[data-fui-focus-within]:focus-within::after{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f1pffoy2[data-fui-focus-within]:focus-within::after{top:calc(0px - 2px - -2px);}",".f1dfga45[data-fui-focus-within]:focus-within::after{right:calc(0px - 2px - -4px);}",".f63jj3o[data-fui-focus-within]:focus-within::after{left:calc(0px - 2px - -4px);}",".fs6b7xr[data-fui-focus-within]:focus-within::after{bottom:calc(0px - 2px - -2px);}",[".fmj8fco[data-fui-focus-within]:focus-within::after{border:2px solid var(--colorStrokeFocus2);}",{p:-2}],[".f1iwowo3[data-fui-focus-within]:focus-within::after{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fm5xmfm[data-fui-focus-within]:focus-within::after{right:calc(0px - 2px - 4px);}",".femsgmt[data-fui-focus-within]:focus-within::after{left:calc(0px - 2px - 4px);}"],h:[".faw1t00:hover{--fui-Slider__thumb--color:var(--colorCompoundBrandBackgroundHover);}",".fxdgx5:hover{--fui-Slider__progress--color:var(--colorCompoundBrandBackgroundHover);}"],a:[".fii04fa:active{--fui-Slider__thumb--color:var(--colorCompoundBrandBackgroundPressed);}",".f36hzz8:active{--fui-Slider__progress--color:var(--colorCompoundBrandBackgroundPressed);}"],m:[["@media (forced-colors: active){.fdjsfay{--fui-Slider__rail--color:CanvasText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1fen33d{--fui-Slider__thumb--color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1c6b0w1{--fui-Slider__progress--color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1rq9b4z:hover{--fui-Slider__thumb--color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xxiul:hover{--fui-Slider__progress--color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fn4acdm{--fui-Slider__rail--color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4s8dx0{--fui-Slider__thumb--color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wil5xy{--fui-Slider__progress--color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ufm4qn[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1qnwcb4[data-fui-focus-within]:focus-within::after{border-right-color:Highlight;}.fgrk5zm[data-fui-focus-within]:focus-within::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fi52z01[data-fui-focus-within]:focus-within::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}]],f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"]}),V7=le({rail:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1kijzfu",Bkecrkj:"f1aehjj5",Ijaq50:"faunodf",nk6f5a:"f88nxoq",Br312pm:"fd46tj4",Bw0ie65:"f1e2fz10",qhf8xq:"f10pi13n",Bvjb7m6:"fdgv6k0",Bcmaq0h:"fizngqt",Bpd4iqm:"fpvhumw",oeaueh:"f1yog68k",Bw0xxkn:"f13sgyd8",Ftih45:"fzhtfnv",Brfgrao:"f1j7ml58",Bbn5juq:"fx36ao7",Bses4cn:"fddlh2i"},horizontal:{a9b677:"fly5x3f",Bqenvij:"f1cy86ho",Fbdkly:["f1heqfse","fkh49vu"],mdwyqc:["fkh49vu","f1heqfse"],Baz25je:"f16tdq4e"},vertical:{a9b677:"fqxfnkd",Bqenvij:"f1l02sjl",Ccq8qp:"f1rik0od",Bciustq:"f14xwovp",lawp4y:"fdehrcx"}},{d:[[".f1kijzfu{border-radius:var(--borderRadiusXLarge);}",{p:-1}],".f1aehjj5{pointer-events:none;}",".faunodf{grid-row-start:2;}",".f88nxoq{grid-row-end:2;}",".fd46tj4{grid-column-start:2;}",".f1e2fz10{grid-column-end:2;}",".f10pi13n{position:relative;}",".fdgv6k0{forced-color-adjust:none;}",`.fizngqt{background-image:linear-gradient(
11
+ var(--fui-Slider--direction),
12
+ var(--fui-Slider__progress--color) 0%,
13
+ var(--fui-Slider__progress--color) var(--fui-Slider--progress),
14
+ var(--fui-Slider__rail--color) var(--fui-Slider--progress)
15
+ );}`,".fpvhumw{outline-width:1px;}",".f1yog68k{outline-style:solid;}",".f13sgyd8{outline-color:var(--colorTransparentStroke);}",".fzhtfnv::before{content:'';}",".f1j7ml58::before{position:absolute;}",`.fx36ao7::before{background-image:repeating-linear-gradient(
16
+ var(--fui-Slider--direction),
17
+ #0000 0%,
18
+ #0000 calc(var(--fui-Slider--steps-percent) - 1px),
19
+ var(--colorNeutralBackground1) calc(var(--fui-Slider--steps-percent) - 1px),
20
+ var(--colorNeutralBackground1) var(--fui-Slider--steps-percent)
21
+ );}`,".fly5x3f{width:100%;}",".f1cy86ho{height:var(--fui-Slider__rail--size);}",".f1heqfse::before{left:-1px;}",".fkh49vu::before{right:-1px;}",".f16tdq4e::before{height:var(--fui-Slider__rail--size);}",".fqxfnkd{width:var(--fui-Slider__rail--size);}",".f1l02sjl{height:100%;}",".f1rik0od::before{width:var(--fui-Slider__rail--size);}",".f14xwovp::before{top:-1px;}",".fdehrcx::before{bottom:-1px;}"],m:[[`@media (forced-colors: active){.fddlh2i::before{background-image:repeating-linear-gradient(
22
+ var(--fui-Slider--direction),
23
+ #0000 0%,
24
+ #0000 calc(var(--fui-Slider--steps-percent) - 1px),
25
+ HighlightText calc(var(--fui-Slider--steps-percent) - 1px),
26
+ HighlightText var(--fui-Slider--steps-percent)
27
+ );}}`,{m:"(forced-colors: active)"}]]}),W7=le({thumb:{B2lzsem:"ftx3jue",Ijaq50:"faunodf",nk6f5a:"f88nxoq",Br312pm:"fd46tj4",Bw0ie65:"f1e2fz10",qhf8xq:"f1euv43f",a9b677:"f174ca62",Bqenvij:"f1yfdkfd",Bkecrkj:"f1aehjj5",oeaueh:"f1s6fcnf",Bvjb7m6:"fdgv6k0",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9",E5pizo:"fof7hq0",De3pzq:"foksa45",Brfgrao:"f1j7ml58",Bciustq:"f14u7mkt",Fbdkly:["f5zrw40","f1ks5ppg"],lawp4y:"fto0uou",mdwyqc:["f1ks5ppg","f5zrw40"],r59vdv:0,Budzafs:0,ck0cow:0,n07z76:0,Gng75u:"fielpny",Bcvre1j:"fyl8oag",Ftih45:"fzhtfnv",Bcgcnre:0,Bqjgrrk:0,qa3bma:0,y0oebl:0,Biqmznv:0,Bm6vgfq:0,Bbv0w2i:0,uvfttm:0,eqrjj:0,Bk5zm6e:0,m598lv:0,B4f6apu:0,ydt019:0,Bq4z7u6:0,Bdkvgpv:0,B0qfbqy:0,kj8mxx:"f1fsco4d"},disabled:{Bcgcnre:0,Bqjgrrk:0,qa3bma:0,y0oebl:0,Biqmznv:0,Bm6vgfq:0,Bbv0w2i:0,uvfttm:0,eqrjj:0,Bk5zm6e:0,m598lv:0,B4f6apu:0,ydt019:0,Bq4z7u6:0,Bdkvgpv:0,B0qfbqy:0,kj8mxx:"f1pv9hn4"},horizontal:{Bz10aip:["f13gfj74","f1nfknbn"],oyh7mz:["foa2ioz","fjmilum"]},vertical:{Bz10aip:"f5cv5a3",B5kzvoi:"f1k2fpdo"}},{d:[".ftx3jue{--fui-Slider__thumb--position:clamp(var(--fui-Slider__inner-thumb--radius), var(--fui-Slider--progress), calc(100% - var(--fui-Slider__inner-thumb--radius)));}",".faunodf{grid-row-start:2;}",".f88nxoq{grid-row-end:2;}",".fd46tj4{grid-column-start:2;}",".f1e2fz10{grid-column-end:2;}",".f1euv43f{position:absolute;}",".f174ca62{width:var(--fui-Slider__thumb--size);}",".f1yfdkfd{height:var(--fui-Slider__thumb--size);}",".f1aehjj5{pointer-events:none;}",".f1s6fcnf{outline-style:none;}",".fdgv6k0{forced-color-adjust:none;}",[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}],".fof7hq0{box-shadow:0 0 0 calc(var(--fui-Slider__thumb--size) * .2) var(--colorNeutralBackground1) inset;}",".foksa45{background-color:var(--fui-Slider__thumb--color);}",".f1j7ml58::before{position:absolute;}",".f14u7mkt::before{top:0px;}",".f5zrw40::before{left:0px;}",".f1ks5ppg::before{right:0px;}",".fto0uou::before{bottom:0px;}",[".fielpny::before{border-radius:var(--borderRadiusCircular);}",{p:-1}],".fyl8oag::before{box-sizing:border-box;}",".fzhtfnv::before{content:'';}",[".f1fsco4d::before{border:calc(var(--fui-Slider__thumb--size) * .05) solid var(--colorNeutralStroke1);}",{p:-2}],[".f1pv9hn4::before{border:calc(var(--fui-Slider__thumb--size) * .05) solid var(--colorNeutralForegroundDisabled);}",{p:-2}],".f13gfj74{transform:translateX(-50%);}",".f1nfknbn{transform:translateX(50%);}",".foa2ioz{left:var(--fui-Slider__thumb--position);}",".fjmilum{right:var(--fui-Slider__thumb--position);}",".f5cv5a3{transform:translateY(50%);}",".f1k2fpdo{bottom:var(--fui-Slider__thumb--position);}"]}),$7=le({input:{Bceei9c:"f1k6fduh",abs64n:"fk73vx1",Ijaq50:"f16hsg94",nk6f5a:"f1nzqi2z",Br312pm:"fwpfdsa",Bw0ie65:"fuur7zz",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao"},disabled:{Bceei9c:"f158kwzp"},horizontal:{Bqenvij:"f1yfdkfd",a9b677:"fly5x3f"},vertical:{Bqenvij:"f1l02sjl",a9b677:"f174ca62",wtfg9d:"f135tqni",By3ymbm:["f114o3fk","f1o9w1zd"],B1e78rk:"f1jr0wcp"}},{d:[".f1k6fduh{cursor:pointer;}",".fk73vx1{opacity:0;}",".f16hsg94{grid-row-start:1;}",".f1nzqi2z{grid-row-end:-1;}",".fwpfdsa{grid-column-start:1;}",".fuur7zz{grid-column-end:-1;}",[".f1mk8lai{padding:0;}",{p:-1}],[".f1s184ao{margin:0;}",{p:-1}],".f158kwzp{cursor:default;}",".f1yfdkfd{height:var(--fui-Slider__thumb--size);}",".fly5x3f{width:100%;}",".f1l02sjl{height:100%;}",".f174ca62{width:var(--fui-Slider__thumb--size);}"],t:["@supports (writing-mode: sideways-lr){.f135tqni{writing-mode:vertical-lr;}}","@supports (writing-mode: sideways-lr){.f114o3fk{direction:rtl;}.f1o9w1zd{direction:ltr;}}","@supports not (writing-mode: sideways-lr){.f1jr0wcp{-webkit-appearance:slider-vertical;}}"]}),U7=e=>{const t=L7(),r=V7(),n=W7(),a=$7(),s=e.vertical;return e.root.className=Q(bl.root,t.root,s?t.focusIndicatorVertical:t.focusIndicatorHorizontal,t[e.size],s?t.vertical:t.horizontal,e.disabled?t.disabled:t.enabled,e.root.className),e.rail.className=Q(bl.rail,r.rail,s?r.vertical:r.horizontal,e.rail.className),e.thumb.className=Q(bl.thumb,n.thumb,s?n.vertical:n.horizontal,e.disabled&&n.disabled,e.thumb.className),e.input.className=Q(bl.input,a.input,s?a.vertical:a.horizontal,e.disabled&&a.disabled,e.input.className),e},yl=y.forwardRef((e,t)=>{const r=q7(e,t);return U7(r),Pe("useSliderStyles_unstable")(r),H7(r)});yl.displayName="Slider";const Ev=y.createContext(void 0),G7={};Ev.Provider;const X7=()=>{var e;return(e=y.useContext(Ev))!==null&&e!==void 0?e:G7},K7=(e,t)=>{const{size:r}=X7(),{appearance:n="primary",size:a=r??"medium",...s}=e,c=Y7(s,t);return{...c,appearance:n,size:a,components:{...c.components,label:Xt},label:Ne(e.label,{defaultProps:c.label,elementType:Xt})}},Y7=(e,t)=>{const{delay:r=0,labelPosition:n="after"}=e,a=pt("spinner"),{role:s="progressbar",...c}=e,u=me(rt("div",{ref:t,role:s,...c}),{elementType:"div"}),[f,p]=y.useState(!1),[g,v]=sn();y.useEffect(()=>{if(!(r<=0))return g(()=>{p(!0)},r),()=>{v()}},[g,v,r]);const x=Ne(e.label,{defaultProps:{id:a},renderByDefault:!1,elementType:"label"}),w=Ne(e.spinner,{renderByDefault:!0,elementType:"span"});return x&&u&&!u["aria-labelledby"]&&(u["aria-labelledby"]=x.id),{delay:r,labelPosition:n,shouldRenderSpinner:!r||f,components:{root:"div",spinner:"span",spinnerTail:"span",label:"label"},root:u,spinner:w,spinnerTail:me(e.spinnerTail,{elementType:"span"}),label:x}},Q7=e=>{const{labelPosition:t,shouldRenderSpinner:r}=e;return Le(e.root,{children:[e.label&&r&&(t==="above"||t==="before")&&J(e.label,{}),e.spinner&&r&&J(e.spinner,{children:e.spinnerTail&&J(e.spinnerTail,{})}),e.label&&r&&(t==="below"||t==="after")&&J(e.label,{})]})},xl={root:"fui-Spinner",spinner:"fui-Spinner__spinner",spinnerTail:"fui-Spinner__spinnerTail",label:"fui-Spinner__label"},Z7=ze("rpp59a7",null,[".rpp59a7{display:flex;align-items:center;justify-content:center;line-height:0;gap:8px;overflow:hidden;min-width:min-content;}"]),J7=le({vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f1vx9l62{flex-direction:column;}"]}),eT=ze("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;}}"]}),tT=ze("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;}}"]}),rT=le({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)"}]]}),oT=le({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);}"]}),nT=e=>{const{labelPosition:t,size:r,appearance:n}=e,{dir:a}=He(),s=Z7(),c=J7(),u=eT(),f=rT(),p=tT(),g=oT();return e.root.className=Q(xl.root,s,(t==="above"||t==="below")&&c.vertical,e.root.className),e.spinner&&(e.spinner.className=Q(xl.spinner,u,f[r],n==="inverted"&&f.inverted,e.spinner.className)),e.spinnerTail&&(e.spinnerTail.className=Q(xl.spinnerTail,p,a==="rtl"&&f.rtlTail,e.spinnerTail.className)),e.label&&(e.label.className=Q(xl.label,g[r],n==="inverted"&&g.inverted,e.label.className)),e},hr=y.forwardRef((e,t)=>{const r=K7(e,t);return nT(r),Pe("useSpinnerStyles_unstable")(r),Q7(r)});hr.displayName="Spinner";const iT=(e,t)=>{var r;const{size:n="medium",...a}=e,s=aT(a,t);var c;return(c=(r=s.indicator).children)!==null&&c!==void 0||(r.children=y.createElement(im,null)),{...s,components:{...s.components,label:Xt},size:n,label:Ne(e.label,{defaultProps:{size:"medium",...s.label},elementType:Xt})}},aT=(e,t)=>{e=To(e,{supportsLabelFor:!0,supportsRequired:!0});const{checked:r,defaultChecked:n,disabled:a,disabledFocusable:s=!1,labelPosition:c="after",onChange:u,required:f}=e,p=yo({props:e,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange","disabledFocusable"]}),g=pt("switch-",p.primary.id),v=me(e.root,{defaultProps:{ref:ua(),...p.root},elementType:"div"}),x=me(e.indicator,{defaultProps:{"aria-hidden":!0},elementType:"div"}),w=me(e.input,{defaultProps:{checked:r,defaultChecked:n,id:g,ref:t,role:"switch",type:"checkbox",...p.primary,disabled:a&&!s,...s&&{"aria-disabled":!0}},elementType:"input"});w.onChange=Re(w.onChange,k=>u?.(k,{checked:k.currentTarget.checked})),w.onClick=Re(w.onClick,k=>{s&&k.preventDefault()}),w.onKeyDown=Re(w.onKeyDown,k=>{s&&(k.key===" "||k.key==="Enter")&&k.preventDefault()});const S=Ne(e.label,{defaultProps:{disabled:a||s,htmlFor:g,required:f},elementType:"label"});return{disabledFocusable:s,labelPosition:c,components:{root:"div",indicator:"div",input:"input",label:"label"},root:v,indicator:x,input:w,label:S}},sT=e=>{const{labelPosition:t}=e;return Le(e.root,{children:[J(e.input,{}),t!=="after"&&e.label&&J(e.label,{}),J(e.indicator,{}),t==="after"&&e.label&&J(e.label,{})]})},wl={root:"fui-Switch",indicator:"fui-Switch__indicator",input:"fui-Switch__input",label:"fui-Switch__label"},lT=ze("r2i81i2","rofhmb8",{r:[".r2i81i2{align-items:flex-start;box-sizing:border-box;display:inline-flex;position:relative;}",".r2i81i2:focus{outline-style:none;}",".r2i81i2:focus-visible{outline-style:none;}",".r2i81i2[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r2i81i2[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);}',".rofhmb8{align-items:flex-start;box-sizing:border-box;display:inline-flex;position:relative;}",".rofhmb8:focus{outline-style:none;}",".rofhmb8:focus-visible{outline-style:none;}",".rofhmb8[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rofhmb8[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){.r2i81i2[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){.rofhmb8[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),cT=le({vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f1vx9l62{flex-direction:column;}"]}),uT=ze("r1c3hft5",null,{r:[".r1c3hft5{border-radius:var(--borderRadiusCircular);border:1px solid;line-height:0;box-sizing:border-box;fill:currentColor;flex-shrink:0;font-size:18px;height:20px;margin:var(--spacingVerticalS) var(--spacingHorizontalS);pointer-events:none;transition-duration:var(--durationNormal);transition-timing-function:var(--curveEasyEase);transition-property:background,border,color;width:40px;}",".r1c3hft5>*{transition-duration:var(--durationNormal);transition-timing-function:var(--curveEasyEase);transition-property:transform;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1c3hft5{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1c3hft5{color:CanvasText;}.r1c3hft5>i{forced-color-adjust:none;}}","@media screen and (prefers-reduced-motion: reduce){.r1c3hft5>*{transition-duration:0.01ms;}}"]}),dT=le({labelAbove:{B6of3ja:"f1hu3pq6"},sizeSmall:{Be2twd7:"fses1vf",Bqenvij:"fd461yt",a9b677:"f1szoe96"}},{d:[".f1hu3pq6{margin-top:0;}",".fses1vf{font-size:14px;}",".fd461yt{height:16px;}",".f1szoe96{width:32px;}"]}),fT=ze("r12ojtgy","rhc0e9x",{r:[".r12ojtgy{box-sizing:border-box;cursor:pointer;height:100%;margin:0;opacity:0;position:absolute;width:calc(40px + 2 * var(--spacingHorizontalS));}",".r12ojtgy:checked~.fui-Switch__indicator>*{transform:translateX(20px);}",'.r12ojtgy:disabled,.r12ojtgy[aria-disabled="true"]{cursor:default;}','.r12ojtgy:disabled~.fui-Switch__indicator,.r12ojtgy[aria-disabled="true"]~.fui-Switch__indicator{color:var(--colorNeutralForegroundDisabled);}','.r12ojtgy:disabled~.fui-Switch__label,.r12ojtgy[aria-disabled="true"]~.fui-Switch__label{cursor:default;color:var(--colorNeutralForegroundDisabled);}','.r12ojtgy:enabled:not(:checked):not([aria-disabled="true"])~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessible);border-color:var(--colorNeutralStrokeAccessible);}','.r12ojtgy:enabled:not(:checked):not([aria-disabled="true"])~.fui-Switch__label{color:var(--colorNeutralForeground1);}','.r12ojtgy:enabled:not(:checked):not([aria-disabled="true"]):hover~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessibleHover);border-color:var(--colorNeutralStrokeAccessibleHover);}','.r12ojtgy:enabled:not(:checked):not([aria-disabled="true"]):hover:active~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessiblePressed);border-color:var(--colorNeutralStrokeAccessiblePressed);}','.r12ojtgy:enabled:checked:not([aria-disabled="true"])~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackground);color:var(--colorNeutralForegroundInverted);border-color:var(--colorTransparentStroke);}','.r12ojtgy:enabled:checked:not([aria-disabled="true"]):hover~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundHover);border-color:var(--colorTransparentStrokeInteractive);}','.r12ojtgy:enabled:checked:not([aria-disabled="true"]):hover:active~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);border-color:var(--colorTransparentStrokeInteractive);}','.r12ojtgy:disabled:not(:checked)~.fui-Switch__indicator,.r12ojtgy[aria-disabled="true"]:not(:checked)~.fui-Switch__indicator{border-color:var(--colorNeutralStrokeDisabled);}','.r12ojtgy:disabled:checked~.fui-Switch__indicator,.r12ojtgy[aria-disabled="true"]:checked~.fui-Switch__indicator{background-color:var(--colorNeutralBackgroundDisabled);border-color:var(--colorTransparentStrokeDisabled);}',".rhc0e9x{box-sizing:border-box;cursor:pointer;height:100%;margin:0;opacity:0;position:absolute;width:calc(40px + 2 * var(--spacingHorizontalS));}",".rhc0e9x:checked~.fui-Switch__indicator>*{transform:translateX(-20px);}",'.rhc0e9x:disabled,.rhc0e9x[aria-disabled="true"]{cursor:default;}','.rhc0e9x:disabled~.fui-Switch__indicator,.rhc0e9x[aria-disabled="true"]~.fui-Switch__indicator{color:var(--colorNeutralForegroundDisabled);}','.rhc0e9x:disabled~.fui-Switch__label,.rhc0e9x[aria-disabled="true"]~.fui-Switch__label{cursor:default;color:var(--colorNeutralForegroundDisabled);}','.rhc0e9x:enabled:not(:checked):not([aria-disabled="true"])~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessible);border-color:var(--colorNeutralStrokeAccessible);}','.rhc0e9x:enabled:not(:checked):not([aria-disabled="true"])~.fui-Switch__label{color:var(--colorNeutralForeground1);}','.rhc0e9x:enabled:not(:checked):not([aria-disabled="true"]):hover~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessibleHover);border-color:var(--colorNeutralStrokeAccessibleHover);}','.rhc0e9x:enabled:not(:checked):not([aria-disabled="true"]):hover:active~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessiblePressed);border-color:var(--colorNeutralStrokeAccessiblePressed);}','.rhc0e9x:enabled:checked:not([aria-disabled="true"])~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackground);color:var(--colorNeutralForegroundInverted);border-color:var(--colorTransparentStroke);}','.rhc0e9x:enabled:checked:not([aria-disabled="true"]):hover~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundHover);border-color:var(--colorTransparentStrokeInteractive);}','.rhc0e9x:enabled:checked:not([aria-disabled="true"]):hover:active~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);border-color:var(--colorTransparentStrokeInteractive);}','.rhc0e9x:disabled:not(:checked)~.fui-Switch__indicator,.rhc0e9x[aria-disabled="true"]:not(:checked)~.fui-Switch__indicator{border-color:var(--colorNeutralStrokeDisabled);}','.rhc0e9x:disabled:checked~.fui-Switch__indicator,.rhc0e9x[aria-disabled="true"]:checked~.fui-Switch__indicator{background-color:var(--colorNeutralBackgroundDisabled);border-color:var(--colorTransparentStrokeDisabled);}'],s:['@media (forced-colors: active){.r12ojtgy:disabled~.fui-Switch__indicator,.r12ojtgy[aria-disabled="true"]~.fui-Switch__indicator{color:GrayText;border-color:GrayText;}.r12ojtgy:disabled~.fui-Switch__label,.r12ojtgy[aria-disabled="true"]~.fui-Switch__label{color:GrayText;}.r12ojtgy:hover{color:CanvasText;}.r12ojtgy:hover:active{color:CanvasText;}.r12ojtgy:enabled:checked:not([aria-disabled="true"]):hover~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.r12ojtgy:enabled:checked:not([aria-disabled="true"]):hover:active~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.r12ojtgy:enabled:checked:not([aria-disabled="true"])~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}}','@media (forced-colors: active){.rhc0e9x:disabled~.fui-Switch__indicator,.rhc0e9x[aria-disabled="true"]~.fui-Switch__indicator{color:GrayText;border-color:GrayText;}.rhc0e9x:disabled~.fui-Switch__label,.rhc0e9x[aria-disabled="true"]~.fui-Switch__label{color:GrayText;}.rhc0e9x:hover{color:CanvasText;}.rhc0e9x:hover:active{color:CanvasText;}.rhc0e9x:enabled:checked:not([aria-disabled="true"]):hover~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.rhc0e9x:enabled:checked:not([aria-disabled="true"]):hover:active~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.rhc0e9x:enabled:checked:not([aria-disabled="true"])~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}}']}),pT=le({before:{j35jbq:["f1e31b4d","f1vgc2s3"],Bhzewxz:"f15twtuk"},after:{oyh7mz:["f1vgc2s3","f1e31b4d"],Bhzewxz:"f15twtuk"},above:{B5kzvoi:"f1yab3r1",Bqenvij:"f1aar7gd",a9b677:"fly5x3f"},sizeSmall:{a9b677:"f83td6f",oedwrj:["f1t5zc5r","fmy58zi"]}},{d:[".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f15twtuk{top:0;}",".f1yab3r1{bottom:0;}",".f1aar7gd{height:calc(20px + var(--spacingVerticalS));}",".fly5x3f{width:100%;}",".f83td6f{width:calc(32px + 2 * var(--spacingHorizontalS));}",".f1t5zc5r:checked~.fui-Switch__indicator>*{transform:translateX(16px);}",".fmy58zi:checked~.fui-Switch__indicator>*{transform:translateX(-16px);}"]}),hT=le({base:{Bceei9c:"f1k6fduh",jrapky:"f49ad5g",B6of3ja:"f1xlvstr",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1f5q0n8"},sizeSmall:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm",jrapky:"f1suqah5",B6of3ja:"f26bnac"},above:{z8tnut:"f1ywm7hm",Byoj8tv:"f14wxoun",a9b677:"fly5x3f"},after:{uwmqm3:["fruq291","f7x41pl"]},before:{z189sj:["f7x41pl","fruq291"]}},{d:[".f1k6fduh{cursor:pointer;}",".f49ad5g{margin-bottom:calc((20px - var(--lineHeightBase300)) / 2);}",".f1xlvstr{margin-top:calc((20px - var(--lineHeightBase300)) / 2);}",[".f1f5q0n8{padding:var(--spacingVerticalS) var(--spacingHorizontalS);}",{p:-1}],".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1suqah5{margin-bottom:calc((16px - var(--lineHeightBase200)) / 2);}",".f26bnac{margin-top:calc((16px - var(--lineHeightBase200)) / 2);}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f14wxoun{padding-bottom:var(--spacingVerticalXS);}",".fly5x3f{width:100%;}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}"]}),gT=e=>{const t=lT(),r=cT(),n=uT(),a=dT(),s=fT(),c=pT(),u=hT(),{label:f,labelPosition:p,size:g}=e;return e.root.className=Q(wl.root,t,p==="above"&&r.vertical,e.root.className),e.indicator.className=Q(wl.indicator,n,f&&p==="above"&&a.labelAbove,g==="small"&&a.sizeSmall,e.indicator.className),e.input.className=Q(wl.input,s,f&&c[p],g==="small"&&c.sizeSmall,e.input.className),e.label&&(e.label.className=Q(wl.label,u.base,u[p],g==="small"&&u.sizeSmall,e.label.className)),e},Ro=y.forwardRef((e,t)=>{const r=iT(e,t);return gT(r),Pe("useSwitchStyles_unstable")(r),sT(r)});Ro.displayName="Switch";const mT=(e,t)=>{const{appearance:r="transparent",reserveSelectedTabSpace:n=!0,size:a="medium"}=e,s=vT(e,t),c=bT({vertical:s.vertical});return{...s,root:{...c,...s.root},appearance:r,reserveSelectedTabSpace:n,size:a}},vT=(e,t)=>{const{disabled:r=!1,onTabSelect:n,selectTabOnFocus:a=!1,vertical:s=!1,selectedValue:c,defaultSelectedValue:u,...f}=e,p=y.useRef(null),[g,v]=Bt({state:c,defaultState:u,initialState:void 0}),x=y.useRef(void 0),w=y.useRef(void 0);y.useEffect(()=>{w.current=x.current,x.current=g},[g]);const S=ce((j,N)=>{v(N.value),n?.(j,N)}),k=y.useRef({}),B=ce(j=>{const N=JSON.stringify(j.value);k.current[N]=j}),z=ce(j=>{delete k.current[JSON.stringify(j.value)]}),P=y.useCallback(()=>({selectedValue:x.current,previousSelectedValue:w.current,registeredTabs:k.current}),[]);return{components:{root:"div"},root:me({ref:Oe(t,p),role:"tablist","aria-orientation":s?"vertical":"horizontal",...f},{elementType:"div"}),disabled:r,selectTabOnFocus:a,selectedValue:g,onRegister:B,onUnregister:z,onSelect:S,getRegisteredTabs:P,vertical:s}},bT=({vertical:e})=>Ls({circular:!0,axis:e?"vertical":"horizontal",memorizeCurrent:!1,unstable_hasDefault:!0}),yT={appearance:"transparent",reserveSelectedTabSpace:!0,selectTabOnFocus:!1,disabled:!1,selectedValue:void 0,onRegister:()=>{},onUnregister:()=>{},onSelect:()=>{},getRegisteredTabs:()=>({registeredTabs:{}}),size:"medium",vertical:!1},Iv=Lr(void 0),xT=Iv.Provider,Cr=e=>eo(Iv,(t=yT)=>e(t)),wT=(e,t)=>J(e.root,{children:J(xT,{value:t.tabList,children:e.root.children})}),kT={root:"fui-TabList"},ST=le({root:{mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bnnss6s:"fi64zpg",Eh141a:"flvyvdh",qhf8xq:"f10pi13n"},horizontal:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1063pyq"},vertical:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1vx9l62"},roundedSmall:{i8kkvl:0,Belr9w4:0,rmohyg:"f1eyhf9v"},rounded:{i8kkvl:0,Belr9w4:0,rmohyg:"faqewft"}},{d:[".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fi64zpg{flex-shrink:0;}",".flvyvdh{flex-wrap:nowrap;}",".f10pi13n{position:relative;}",".f1q9h2pe{align-items:stretch;}",".f1vx9l62{flex-direction:column;}",[".f1eyhf9v{gap:var(--spacingHorizontalSNudge);}",{p:-1}],[".faqewft{gap:var(--spacingHorizontalS);}",{p:-1}]]}),BT=e=>{const{appearance:t,vertical:r,size:n}=e,a=ST(),s=t==="subtle-circular"||t==="filled-circular";return e.root.className=Q(kT.root,a.root,r?a.vertical:a.horizontal,s&&(n==="small"?a.roundedSmall:a.rounded),e.root.className),e};function zT(e){const{appearance:t,reserveSelectedTabSpace:r,disabled:n,selectTabOnFocus:a,selectedValue:s,onRegister:c,onUnregister:u,onSelect:f,getRegisteredTabs:p,size:g,vertical:v}=e;return{tabList:y.useMemo(()=>({appearance:t,reserveSelectedTabSpace:r,disabled:n,selectTabOnFocus:a,selectedValue:s,onSelect:f,onRegister:c,onUnregister:u,getRegisteredTabs:p,size:g,vertical:v}),[t,r,n,a,s,f,c,u,p,g,v])}}const Fv=y.forwardRef((e,t)=>{const r=mT(e,t),n=zT(r);return BT(r),Pe("useTabListStyles_unstable")(r),wT(r,n)});Fv.displayName="TabList";const jT=(e,t)=>{const{content:r}=e,n=_T(e,t),a=CT(n),s=Cr(p=>p.appearance),c=Cr(p=>p.reserveSelectedTabSpace),u=Cr(p=>{var g;return(g=p.size)!==null&&g!==void 0?g:"medium"}),f=r&&typeof r=="object"?X2(r,["ref"]):r;return{...n,components:{...n.components,contentReservedSpace:"span"},root:{...a,...n.root},contentReservedSpace:Ne(f,{renderByDefault:!n.selected&&!n.iconOnly&&c,defaultProps:{children:e.children},elementType:"span"}),appearance:s,size:u}},_T=(e,t)=>{const{content:r,disabled:n=!1,icon:a,onClick:s,onFocus:c,value:u,...f}=e,p=Cr(A=>A.selectTabOnFocus),g=Cr(A=>A.disabled),v=Cr(A=>A.selectedValue===u),x=Cr(A=>A.onRegister),w=Cr(A=>A.onUnregister),S=Cr(A=>A.onSelect),k=Cr(A=>!!A.vertical),B=g||n,z=y.useRef(null),P=A=>S(A,{value:u}),j=ce(Re(s,P)),N=ce(Re(c,P));y.useEffect(()=>(x({value:u,ref:z}),()=>{w({value:u,ref:z})}),[x,w,z,u]);const M=Ne(a,{elementType:"span"}),C=me(r,{defaultProps:{children:e.children},elementType:"span"}),I=!!(M?.children&&!C.children);return{components:{root:"button",icon:"span",content:"span",contentReservedSpace:"span"},root:me({ref:Oe(t,z),role:"tab",type:"button","aria-selected":B?void 0:`${v}`,value:u,...f,disabled:B,onClick:j,onFocus:p?N:c},{elementType:"button"}),icon:M,iconOnly:I,content:C,disabled:B,selected:v,value:u,vertical:k}},CT=({selected:e})=>dn({focusable:{isDefault:e}}),NT=e=>Le(e.root,{children:[e.icon&&J(e.icon,{}),!e.iconOnly&&J(e.content,{}),e.contentReservedSpace&&J(e.contentReservedSpace,{})]}),Av={offsetVar:"--fui-Tab__indicator--offset",scaleVar:"--fui-Tab__indicator--scale"},TT=le({base:{B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg"},animated:{Ba2ppi3:"fhwpy7i",F2fol1:"f6zz20j",B1dyfl9:"f1ai4sc1",Bu93a1u:"f1rnm8gg",Bdasjez:"f1x3cmqg"},horizontal:{sjv3b2:["fug4aj8","f1i5xzg7"],b1kco5:"f1q7ujh"},vertical:{sjv3b2:"f1hqboyk",b1kco5:"f1dxupa6"}},{d:[[".f1gl81tg{overflow:visible;}",{p:-1}],".fhwpy7i::after{transition-property:transform;}",".f6zz20j::after{transition-duration:var(--durationSlow);}",".f1ai4sc1::after{transition-timing-function:var(--curveDecelerateMax);}",".fug4aj8::after{transform-origin:left;}",".f1i5xzg7::after{transform-origin:right;}",".f1q7ujh::after{transform:translateX(var(--fui-Tab__indicator--offset)) scaleX(var(--fui-Tab__indicator--scale));}",".f1hqboyk::after{transform-origin:top;}",".f1dxupa6::after{transform:translateY(var(--fui-Tab__indicator--offset)) scaleY(var(--fui-Tab__indicator--scale));}"],m:[["@media (prefers-reduced-motion: reduce){.f1rnm8gg::after{transition-property:none;}}",{m:"(prefers-reduced-motion: reduce)"}],["@media (prefers-reduced-motion: reduce){.f1x3cmqg::after{transition-duration:0.01ms;}}",{m:"(prefers-reduced-motion: reduce)"}]]}),PT=e=>{if(e){var t;const r=((t=e.parentElement)===null||t===void 0?void 0:t.getBoundingClientRect())||{x:0,y:0},n=e.getBoundingClientRect();return{x:n.x-r.x,y:n.y-r.y,width:n.width,height:n.height}}},Dv=(e,t)=>{var r;const n=Ed(t)?(r=e[JSON.stringify(t)])===null||r===void 0?void 0:r.ref.current:void 0;return n?PT(n):void 0},Ed=e=>e!=null,RT=e=>{const{disabled:t,selected:r,vertical:n}=e,a=TT(),[s,c]=y.useState(),[u,f]=y.useState({offset:0,scale:1}),p=Cr(w=>w.getRegisteredTabs),[g]=zh();if(r){const{previousSelectedValue:w,selectedValue:S,registeredTabs:k}=p();if(Ed(w)&&s!==w){const B=Dv(k,w),z=Dv(k,S);if(z&&B){const P=n?B.y-z.y:B.x-z.x,j=n?B.height/z.height:B.width/z.width;f({offset:P,scale:j}),c(w),g(()=>f({offset:0,scale:1}))}}}else Ed(s)&&c(void 0);if(t)return e;const v=u.offset===0&&u.scale===1;e.root.className=Q(e.root.className,r&&a.base,r&&v&&a.animated,r&&(n?a.vertical:a.horizontal));const x={[Av.offsetVar]:`${u.offset}px`,[Av.scaleVar]:`${u.scale}`};return e.root.style={...x,...e.root.style},e},Id={root:"fui-Tab",icon:"fui-Tab__icon",content:"fui-Tab__content"},MT={content:"fui-Tab__content--reserved-space"},qv=le({root:{Bt984gj:"f122n59",mc9l5x:"f13qh94s",Bnnss6s:"fi64zpg",Bxotwcr:"f1u07yai",Budl1dq:"frn2hmy",wkccdc:"f1olsevy",oeaueh:"f1s6fcnf",qhf8xq:"f10pi13n"},button:{Bt984gj:"f122n59",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",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bceei9c:"f1k6fduh",mc9l5x:"f13qh94s",Bnnss6s:"fi64zpg",Bxotwcr:"f1u07yai",Budl1dq:"frn2hmy",wkccdc:"f1olsevy",Bahqtrf:"fk6fouc",Bg96gwp:"f1i3iumi",oeaueh:"f1s6fcnf",qhf8xq:"f10pi13n",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",B9bfxx9:"f1cxpek8"},horizontal:{Brf1p80:"f4d9j23"},vertical:{Brf1p80:"f1s9ku6b"},smallHorizontal:{i8kkvl:"f14mj54c",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1wmopi4"},smallVertical:{i8kkvl:"f14mj54c",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f12or63q"},mediumHorizontal:{i8kkvl:"f1rjii52",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1w08f2p"},mediumVertical:{i8kkvl:"f1rjii52",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fymxs25"},largeHorizontal:{i8kkvl:"f1rjii52",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1ssfvub"},largeVertical:{i8kkvl:"f1rjii52",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fwkd1rq"},transparent:{De3pzq:"f1c21dwh",B95qlz1:"f9rvdkv",B7xitij:"f1051ucx",Bptxc3x:"fmmjozx",Bwqhzpy:"fqhzt5g",iyk698:"f7l5cgy",cl4aha:"fpkze5g",B0q3jbp:"f1iywnoi",Be9ayug:"f9n45c4"},subtle:{De3pzq:"fhovq9v",B95qlz1:"f1bifk9c",B7xitij:"fo6hitd",Bptxc3x:"fmmjozx",Bwqhzpy:"fqhzt5g",iyk698:"f7l5cgy",cl4aha:"fpkze5g",B0q3jbp:"f1iywnoi",Be9ayug:"f9n45c4"},disabledCursor:{Bceei9c:"fdrzuqr"},disabled:{De3pzq:"f1c21dwh",Bptxc3x:"fato7r6",cl4aha:"fao1bnu"},selected:{Bptxc3x:"f1cadz5z",Bwqhzpy:"fwhdxxj",iyk698:"fintccb",cl4aha:"ffplhdr",B0q3jbp:"fjo17wb",Be9ayug:"f148789c"}},{d:[".f122n59{align-items:center;}",".f13qh94s{display:grid;}",".fi64zpg{flex-shrink:0;}",".f1u07yai{grid-auto-flow:column;}",".frn2hmy{grid-template-columns:auto;}",".f1olsevy{grid-template-rows:auto;}",".f1s6fcnf{outline-style:none;}",".f10pi13n{position:relative;}",[".f3bhgqh{border:none;}",{p:-2}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f1k6fduh{cursor:pointer;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],".f1cxpek8{text-transform:none;}",".f4d9j23{justify-content:center;}",".f1s9ku6b{justify-content:start;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",[".f1wmopi4{padding:var(--spacingVerticalSNudge) var(--spacingHorizontalSNudge);}",{p:-1}],[".f12or63q{padding:var(--spacingVerticalXXS) var(--spacingHorizontalSNudge);}",{p:-1}],".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",[".f1w08f2p{padding:var(--spacingVerticalM) var(--spacingHorizontalMNudge);}",{p:-1}],[".fymxs25{padding:var(--spacingVerticalSNudge) var(--spacingHorizontalMNudge);}",{p:-1}],[".f1ssfvub{padding:var(--spacingVerticalL) var(--spacingHorizontalMNudge);}",{p:-1}],[".fwkd1rq{padding:var(--spacingVerticalS) var(--spacingHorizontalMNudge);}",{p:-1}],".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f9rvdkv:enabled:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1051ucx:enabled:active{background-color:var(--colorTransparentBackgroundPressed);}",".fmmjozx .fui-Tab__icon{color:var(--colorNeutralForeground2);}",".fqhzt5g:enabled:hover .fui-Tab__icon{color:var(--colorNeutralForeground2Hover);}",".f7l5cgy:enabled:active .fui-Tab__icon{color:var(--colorNeutralForeground2Pressed);}",".fpkze5g .fui-Tab__content{color:var(--colorNeutralForeground2);}",".f1iywnoi:enabled:hover .fui-Tab__content{color:var(--colorNeutralForeground2Hover);}",".f9n45c4:enabled:active .fui-Tab__content{color:var(--colorNeutralForeground2Pressed);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".f1bifk9c:enabled:hover{background-color:var(--colorSubtleBackgroundHover);}",".fo6hitd:enabled:active{background-color:var(--colorSubtleBackgroundPressed);}",".fdrzuqr{cursor:not-allowed;}",".fato7r6 .fui-Tab__icon{color:var(--colorNeutralForegroundDisabled);}",".fao1bnu .fui-Tab__content{color:var(--colorNeutralForegroundDisabled);}",".f1cadz5z .fui-Tab__icon{color:var(--colorCompoundBrandForeground1);}",".fwhdxxj:enabled:hover .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Hover);}",".fintccb:enabled:active .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Pressed);}",".ffplhdr .fui-Tab__content{color:var(--colorNeutralForeground1);}",".fjo17wb:enabled:hover .fui-Tab__content{color:var(--colorNeutralForeground1Hover);}",".f148789c:enabled:active .fui-Tab__content{color:var(--colorNeutralForeground1Pressed);}"]}),ET=le({base:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9",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:"fp7rvkm",Bptxc3x:"ftorr8m",cl4aha:"f16lqpmv"},small:{Dbcxam:0,rjzwhg:0,Bblux5w:"fzklhed"},medium:{Dbcxam:0,rjzwhg:0,Bblux5w:"f1j721cc"},large:{Dbcxam:0,rjzwhg:0,Bblux5w:"frx9knr"},subtle:{De3pzq:"fhovq9v",sj55zd:"fkfq4zb",B95qlz1:"f1bifk9c",Eo63ln:0,r9osk6:0,Itrz8y:0,zeg6vx:0,l65xgk:0,Bw4olcx:0,Folb0i:0,I2h8y4:0,Bgxgoyi:0,Bvlkotb:0,Fwyncl:0,Byh5edv:0,Becqvjq:0,uumbiq:0,B73q3dg:0,Bblwbaf:0,B0ezav:"ft57sj0",r4wkhp:"f1fcoy83",B7xitij:"fo6hitd",d3wsvi:0,Hdqn7s:0,zu5y1p:0,owqphb:0,g9c53k:0,Btmu08z:0,Bthxvy6:0,gluvuq:0,tb88gp:0,wns6jk:0,kdfdk4:0,Bbw008l:0,Bayi1ib:0,B1kkfu3:0,J1oqyp:0,kem6az:0,goa3yj:"fhn220o",p743kt:"f15qf7sh",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:"f1mljprk"},subtleSelected:{De3pzq:"f16xkysk",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:"f1c2pc3t",sj55zd:"faj9fo0",B95qlz1:"fsm7zmf",Eo63ln:0,r9osk6:0,Itrz8y:0,zeg6vx:0,l65xgk:0,Bw4olcx:0,Folb0i:0,I2h8y4:0,Bgxgoyi:0,Bvlkotb:0,Fwyncl:0,Byh5edv:0,Becqvjq:0,uumbiq:0,B73q3dg:0,Bblwbaf:0,B0ezav:"f1wo0sfq",r4wkhp:"f1afuynh",B7xitij:"f94ddyl",d3wsvi:0,Hdqn7s:0,zu5y1p:0,owqphb:0,g9c53k:0,Btmu08z:0,Bthxvy6:0,gluvuq:0,tb88gp:0,wns6jk:0,kdfdk4:0,Bbw008l:0,Bayi1ib:0,B1kkfu3:0,J1oqyp:0,kem6az:0,goa3yj:"fmle6oo",p743kt:"f1d3itm4",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:"f1e9l2u"},subtleDisabled:{De3pzq:"fhovq9v",sj55zd:"f1s2aq7o"},subtleDisabledSelected:{De3pzq:"f1bg9a2p",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:"fegtqic",sj55zd:"f1s2aq7o"},filled:{De3pzq:"f16xq7d1",sj55zd:"fkfq4zb",B95qlz1:"fwwxidx",r4wkhp:"f1fcoy83",B7xitij:"f14i52sd",p743kt:"f15qf7sh",Hhssn:"f1cpi5f4",uaurb9:"f6pj1s0",B401qx7:"f12sz5kj",Buyp1jb:"f17588c3",gsp74p:"fnthgdt"},filledSelected:{De3pzq:"ffp7eso",sj55zd:"f1phragk",B95qlz1:"f1lm9dni",r4wkhp:"f1mn5ei1",B7xitij:"f1g6ncd0",p743kt:"fl71aob",Gedr8k:"f14zl92z",Bm69vlq:"f16zy3eu",Bodipah:"f1gdgb7p",B5kpen0:"f1tua9ng"},filledDisabled:{De3pzq:"f1bg9a2p",sj55zd:"f1s2aq7o"},filledDisabledSelected:{De3pzq:"f1bg9a2p",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:"fegtqic",sj55zd:"f1s2aq7o"}},{d:[[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".fp7rvkm{border:solid var(--strokeWidthThin) var(--colorTransparentStroke);}",{p:-2}],".ftorr8m .fui-Tab__icon{color:inherit;}",".f16lqpmv .fui-Tab__content{color:inherit;}",[".fzklhed{padding-block:calc(var(--spacingVerticalXXS) - var(--strokeWidthThin));}",{p:-1}],[".f1j721cc{padding-block:calc(var(--spacingVerticalSNudge) - var(--strokeWidthThin));}",{p:-1}],[".frx9knr{padding-block:calc(var(--spacingVerticalS) - var(--strokeWidthThin));}",{p:-1}],".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f1bifk9c:enabled:hover{background-color:var(--colorSubtleBackgroundHover);}",[".ft57sj0:enabled:hover{border:solid var(--strokeWidthThin) var(--colorNeutralStroke1Hover);}",{p:-2}],".f1fcoy83:enabled:hover{color:var(--colorNeutralForeground2Hover);}",".fo6hitd:enabled:active{background-color:var(--colorSubtleBackgroundPressed);}",[".fhn220o:enabled:active{border:solid var(--strokeWidthThin) var(--colorNeutralStroke1Pressed);}",{p:-2}],".f15qf7sh:enabled:active{color:var(--colorNeutralForeground2Pressed);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",[".f1c2pc3t{border:solid var(--strokeWidthThin) var(--colorCompoundBrandStroke);}",{p:-2}],".faj9fo0{color:var(--colorBrandForeground2);}",".fsm7zmf:enabled:hover{background-color:var(--colorBrandBackground2Hover);}",[".f1wo0sfq:enabled:hover{border:solid var(--strokeWidthThin) var(--colorCompoundBrandStrokeHover);}",{p:-2}],".f1afuynh:enabled:hover{color:var(--colorBrandForeground2Hover);}",".f94ddyl:enabled:active{background-color:var(--colorBrandBackground2Pressed);}",[".fmle6oo:enabled:active{border:solid var(--strokeWidthThin) var(--colorCompoundBrandStrokePressed);}",{p:-2}],".f1d3itm4:enabled:active{color:var(--colorBrandForeground2Pressed);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",[".fegtqic{border:solid var(--strokeWidthThin) var(--colorNeutralStrokeDisabled);}",{p:-2}],".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fwwxidx:enabled:hover{background-color:var(--colorNeutralBackground3Hover);}",".f14i52sd:enabled:active{background-color:var(--colorNeutralBackground3Pressed);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".f1lm9dni:enabled:hover{background-color:var(--colorBrandBackgroundHover);}",".f1mn5ei1:enabled:hover{color:var(--colorNeutralForegroundOnBrand);}",".f1g6ncd0:enabled:active{background-color:var(--colorBrandBackgroundPressed);}",".fl71aob:enabled:active{color:var(--colorNeutralForegroundOnBrand);}",[".fegtqic{border:solid var(--strokeWidthThin) var(--colorNeutralStrokeDisabled);}",{p:-2}]],m:[["@media (forced-colors: active){.f1mljprk{border:solid var(--strokeWidthThin) Canvas;}}",{p:-2,m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1e9l2u{border:solid var(--strokeWidthThin) Highlight;}}",{p:-2,m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cpi5f4:enabled:hover{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f6pj1s0:enabled:hover{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f12sz5kj:enabled:hover .fui-Tab__content{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f17588c3:enabled:hover .fui-Icon-filled{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnthgdt:enabled:hover .fui-Icon-regular{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14zl92z:enabled{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16zy3eu:enabled .fui-Tab__content{color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1gdgb7p:enabled .fui-Tab__content{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1tua9ng:enabled .fui-Tab__icon{color:ButtonFace;}}",{m:"(forced-colors: active)"}]]}),IT=le({base:{B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bn4voq9:"f1p7hgxw",Bfpq7zp:"f1way5bb",g9k6zt:"f9znhxp",j6ew2k:["fqa318h","fqa318h"],Bhxq17a:"f1vjpng2"},circular:{B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bn4voq9:"f1p7hgxw",Bfpq7zp:"f1way5bb",g9k6zt:"f9znhxp",j6ew2k:["fzgyhws","fqxug60"],Bhxq17a:"f1vjpng2"}},{d:[".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",".f1p7hgxw[data-fui-focus-visible]{outline-width:var(--strokeWidthThick);}",".f1way5bb[data-fui-focus-visible]{outline-color:transparent;}",".f9znhxp[data-fui-focus-visible]{outline-style:solid;}",".fqa318h[data-fui-focus-visible]{box-shadow:var(--shadow4),0 0 0 var(--strokeWidthThick) var(--colorStrokeFocus2);}",".f1vjpng2[data-fui-focus-visible]{z-index:1;}",".fzgyhws[data-fui-focus-visible]{box-shadow:var(--shadow4),0 0 0 var(--strokeWidthThick) var(--colorStrokeFocus2),0 0 0 var(--strokeWidthThin) var(--colorNeutralStrokeOnBrand) inset;}",".fqxug60[data-fui-focus-visible]{box-shadow:var(--shadow4),0 0 0 var(--strokeWidthThick) var(--colorStrokeFocus2),0 0 0 var(--strokeWidthThin) var(--colorNeutralStrokeOnBrand) inset;}"]}),FT=le({base:{az7l2e:"fhw179n",vqofr:0,Bv4n3vi:0,Bgqb9hq:0,B0uxbk8:0,Bf3jju6:"fg9j5n4",amg5m6:"f1kmhr4c",zkfqfm:"fl1ydde",Bkydozb:"f1y7maxz",Bka2azo:0,vzq8l0:0,csmgbd:0,Br4ovkg:0,aelrif:"fceyvr4",y36c18:"f16cxu0",B1ctymy:"f1nwgacf",xzc5d:"fm6alxz",h5yqg8:"fhx32z1"},disabled:{az7l2e:"f1ut20fw",Bkydozb:"fhrzcfn",xzc5d:"fw15awd",h5yqg8:"faqmq51"},smallHorizontal:{lawp4y:"fchca7p",Baz25je:"f1r53b5e",Fbdkly:["f1s6rxz5","fo35v8s"],mdwyqc:["fo35v8s","f1s6rxz5"]},smallVertical:{lawp4y:"fze4zud",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"fdp32p8",Ccq8qp:"f1aij3q"},mediumHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},mediumVertical:{lawp4y:"f17jracn",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f117lcb2",Ccq8qp:"f1aij3q"},largeHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},largeVertical:{lawp4y:"fel9d3z",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f6vqlre",Ccq8qp:"f1aij3q"}},{h:[".fhw179n:hover::before{background-color:var(--colorNeutralStroke1Hover);}",[".fg9j5n4:hover::before{border-radius:var(--borderRadiusCircular);}",{p:-1}],'.f1kmhr4c:hover::before{content:"";}',".fl1ydde:hover::before{position:absolute;}",".f1ut20fw:hover::before{background-color:var(--colorTransparentStroke);}"],a:[".f1y7maxz:active::before{background-color:var(--colorNeutralStroke1Pressed);}",[".fceyvr4:active::before{border-radius:var(--borderRadiusCircular);}",{p:-1}],'.f16cxu0:active::before{content:"";}',".f1nwgacf:active::before{position:absolute;}",".fhrzcfn:active::before{background-color:var(--colorTransparentStroke);}"],m:[["@media (forced-colors: active){.fm6alxz:hover::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fhx32z1:active::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fw15awd:hover::before{background-color:transparent;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.faqmq51:active::before{background-color:transparent;}}",{m:"(forced-colors: active)"}]],d:[".fchca7p::before{bottom:0;}",".f1r53b5e::before{height:var(--strokeWidthThick);}",".f1s6rxz5::before{left:var(--spacingHorizontalSNudge);}",".fo35v8s::before{right:var(--spacingHorizontalSNudge);}",".fze4zud::before{bottom:var(--spacingVerticalXS);}",".f1fzr1x6::before{left:0;}",".f1f351id::before{right:0;}",".fdp32p8::before{top:var(--spacingVerticalXS);}",".f1aij3q::before{width:var(--strokeWidthThicker);}",".f1s2r9ax::before{height:var(--strokeWidthThicker);}",".f1o0nnkk::before{left:var(--spacingHorizontalM);}",".fxb7rol::before{right:var(--spacingHorizontalM);}",".f17jracn::before{bottom:var(--spacingVerticalS);}",".f117lcb2::before{top:var(--spacingVerticalS);}",".fel9d3z::before{bottom:var(--spacingVerticalMNudge);}",".f6vqlre::before{top:var(--spacingVerticalMNudge);}"]}),AT=le({base:{Bjyk6c5:"f1rp0jgh",d9w3h3:0,B3778ie:0,B4j8arr:0,Bl18szs:0,Blrzh8d:"f3b9emi",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9"},selected:{Bjyk6c5:"f1ksivud",Bej4dhw:"f1476jrx",B7wqxwa:"f18q216b",Hwb57:"f1wf6u82",Beg08s0:"f1xwit7m",Bo27r1v:"f1ksfgwi"},disabled:{Bjyk6c5:"f13lkzet"},smallHorizontal:{By385i5:"fo72kxq",Dlnsje:"f9bb2ob",Eqx8gd:["f1q70ajw","f18rbzdx"],B1piin3:["f18rbzdx","f1q70ajw"]},smallVertical:{By385i5:"fqbue9b",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fk1klkt",a2br6o:"f1o25lip"},mediumHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},mediumVertical:{By385i5:"fipylg0",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fqchiol",a2br6o:"f1o25lip"},largeHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},largeVertical:{By385i5:"f1w7dm5g",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"f1p6em4m",a2br6o:"f1o25lip"}},{d:[".f1rp0jgh::after{background-color:var(--colorTransparentStroke);}",[".f3b9emi::after{border-radius:var(--borderRadiusCircular);}",{p:-1}],'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1ksivud::after{background-color:var(--colorCompoundBrandStroke);}",".f1476jrx:enabled:hover::after{background-color:var(--colorCompoundBrandStrokeHover);}",".f18q216b:enabled:active::after{background-color:var(--colorCompoundBrandStrokePressed);}",".f13lkzet::after{background-color:var(--colorNeutralForegroundDisabled);}",".fo72kxq::after{bottom:0;}",".f9bb2ob::after{height:var(--strokeWidthThick);}",".f1q70ajw::after{left:var(--spacingHorizontalSNudge);}",".f18rbzdx::after{right:var(--spacingHorizontalSNudge);}",".fqbue9b::after{bottom:var(--spacingVerticalXS);}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".fk1klkt::after{top:var(--spacingVerticalXS);}",".f1o25lip::after{width:var(--strokeWidthThicker);}",".f1vx7lu8::after{height:var(--strokeWidthThicker);}",".fna7m5n::after{left:var(--spacingHorizontalM);}",".f1oxpfwv::after{right:var(--spacingHorizontalM);}",".fipylg0::after{bottom:var(--spacingVerticalS);}",".fqchiol::after{top:var(--spacingVerticalS);}",".f1w7dm5g::after{bottom:var(--spacingVerticalMNudge);}",".f1p6em4m::after{top:var(--spacingVerticalMNudge);}"],m:[["@media (forced-colors: active){.f1wf6u82::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1xwit7m:enabled:hover::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ksfgwi:enabled:active::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}]]}),DT=le({base:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94",Bt984gj:"f122n59",mc9l5x:"ftuwxu6",Brf1p80:"f4d9j23",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",D0sxk3:"f16u1re",t6yez3:"f8bsbmo"},small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},medium:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun"},selected:{D0sxk3:"fxoiby5",t6yez3:"f15q0o9g"}},{d:[".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".f122n59{align-items:center;}",".ftuwxu6{display:inline-flex;}",".f4d9j23{justify-content:center;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],".f16u1re .fui-Icon-filled{display:none;}",".f8bsbmo .fui-Icon-regular{display:inline;}",".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".fxoiby5 .fui-Icon-filled{display:inline;}",".f15q0o9g .fui-Icon-regular{display:none;}"]}),qT=le({base:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1bwptpd"},selected:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",Bg96gwp:"f1i3iumi"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k"},largeSelected:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},noIconBefore:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94"},iconBefore:{Br312pm:"fd46tj4",Ijaq50:"f16hsg94"},placeholder:{Bcdw1i0:"fd7fpy0"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],[".f1bwptpd{padding:var(--spacingVerticalNone) var(--spacingHorizontalXXS);}",{p:-1}],".fl43uef{font-weight:var(--fontWeightSemibold);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".fd46tj4{grid-column-start:2;}",".fd7fpy0{visibility:hidden;}"]}),OT=e=>{"use no memo";return HT(e),LT(e,e.root),VT(e),e},HT=e=>{const t=qv(),r=FT(),n=AT(),{appearance:a,disabled:s,selected:c,size:u,vertical:f}=e,p=[Id.root,t.root];return a!=="subtle-circular"&&a!=="filled-circular"&&p.push(r.base,u==="small"&&(f?r.smallVertical:r.smallHorizontal),u==="medium"&&(f?r.mediumVertical:r.mediumHorizontal),u==="large"&&(f?r.largeVertical:r.largeHorizontal),s&&r.disabled,c&&n.base,c&&!s&&n.selected,c&&u==="small"&&(f?n.smallVertical:n.smallHorizontal),c&&u==="medium"&&(f?n.mediumVertical:n.mediumHorizontal),c&&u==="large"&&(f?n.largeVertical:n.largeHorizontal),c&&s&&n.disabled),e.root.className=Q(...p,e.root.className),RT(e),e},LT=(e,t)=>{const r=qv(),n=IT(),a=ET(),{appearance:s,disabled:c,selected:u,size:f,vertical:p}=e,g=s==="subtle-circular",v=s==="filled-circular",x=g||v,w=[a.base,n.circular,f==="small"&&a.small,f==="medium"&&a.medium,f==="large"&&a.large,g&&a.subtle,u&&g&&a.subtleSelected,c&&g&&a.subtleDisabled,u&&c&&g&&a.subtleDisabledSelected,v&&a.filled,u&&v&&a.filledSelected,c&&v&&a.filledDisabled,u&&c&&v&&a.filledDisabledSelected],S=[n.base,!c&&s==="subtle"&&r.subtle,!c&&s==="transparent"&&r.transparent,!c&&u&&r.selected,c&&r.disabled];return t.className=Q(r.button,p?r.vertical:r.horizontal,f==="small"&&(p?r.smallVertical:r.smallHorizontal),f==="medium"&&(p?r.mediumVertical:r.mediumHorizontal),f==="large"&&(p?r.largeVertical:r.largeHorizontal),...x?w:S,c&&r.disabledCursor,t.className),e},VT=e=>{const t=DT(),r=qT(),{selected:n,size:a}=e;return e.icon&&(e.icon.className=Q(Id.icon,t.base,t[a],n&&t.selected,e.icon.className)),e.contentReservedSpace&&(e.contentReservedSpace.className=Q(MT.content,r.base,a==="large"?r.largeSelected:r.selected,e.icon?r.iconBefore:r.noIconBefore,r.placeholder,e.content.className),e.contentReservedSpaceClassName=e.contentReservedSpace.className),e.content.className=Q(Id.content,r.base,a==="large"&&r.large,n&&(a==="large"?r.largeSelected:r.selected),e.icon?r.iconBefore:r.noIconBefore,e.content.className),e},Fd=y.forwardRef((e,t)=>{const r=jT(e,t);return OT(r),Pe("useTabStyles_unstable")(r),NT(r)});Fd.displayName="Tab";const Ov=(e,t)=>{const{wrap:r,truncate:n,block:a,italic:s,underline:c,strikethrough:u,size:f,font:p,weight:g,align:v}=e;return{align:v??"start",block:a??!1,font:p??"base",italic:s??!1,size:f??300,strikethrough:u??!1,truncate:n??!1,underline:c??!1,weight:g??"regular",wrap:r??!0,components:{root:"span"},root:me(rt("span",{ref:t,...e}),{elementType:"span"})}},Hv=e=>J(e.root,{}),WT={root:"fui-Text"},$T=le({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;}"]}),Lv=e=>{const t=$T();return e.root.className=Q(WT.root,t.root,e.wrap===!1&&t.nowrap,e.truncate&&t.truncate,e.block&&t.block,e.italic&&t.italic,e.underline&&t.underline,e.strikethrough&&t.strikethrough,e.underline&&e.strikethrough&&t.strikethroughUnderline,e.size===100&&t.base100,e.size===200&&t.base200,e.size===400&&t.base400,e.size===500&&t.base500,e.size===600&&t.base600,e.size===700&&t.hero700,e.size===800&&t.hero800,e.size===900&&t.hero900,e.size===1e3&&t.hero1000,e.font==="monospace"&&t.monospace,e.font==="numeric"&&t.numeric,e.weight==="medium"&&t.weightMedium,e.weight==="semibold"&&t.weightSemibold,e.weight==="bold"&&t.weightBold,e.align==="center"&&t.alignCenter,e.align==="end"&&t.alignEnd,e.align==="justify"&&t.alignJustify,e.root.className),e},Ie=y.forwardRef((e,t)=>{const r=Ov(e,t);return Lv(r),Pe("useTextStyles_unstable")(r),Hv(r)});Ie.displayName="Text";function UT(e){const{useStyles:t,className:r,displayName:n}=e,a=y.forwardRef((s,c)=>{const u=t(),f=Ov(s,c);return Lv(f),f.root.className=Q(r,f.root.className,u.root,s.className),Hv(f)});return a.displayName=n,a}const Ad=UT({useStyles:le({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"}),GT=e=>J(e.root,{children:J(e.textarea,{})}),XT=(e,t)=>{const r=Nu(),n=ul();var a,s;const{size:c=(a=n?.size)!==null&&a!==void 0?a:"medium",appearance:u=(s=r.inputDefaultAppearance)!==null&&s!==void 0?s:"outline",...f}=e;return{...KT(f,t),size:c,appearance:u}},KT=(e,t)=>{e=To(e,{supportsLabelFor:!0,supportsRequired:!0});const{resize:r="none",onChange:n}=e,[a,s]=Bt({state:e.value,defaultState:e.defaultValue,initialState:void 0}),c=yo({props:e,primarySlotTagName:"textarea",excludedPropNames:["onChange","value","defaultValue"]}),u={resize:r,components:{root:"span",textarea:"textarea"},textarea:me(e.textarea,{defaultProps:{ref:t,...c.primary},elementType:"textarea"}),root:me(e.root,{defaultProps:c.root,elementType:"span"})};return u.textarea.value=a,u.textarea.onChange=ce(f=>{const p=f.target.value;n?.(f,{value:p}),s(p)}),u},Vv={root:"fui-Textarea",textarea:"fui-Textarea__textarea"},YT=le({base:{mc9l5x:"ftuwxu6",B7ck84d:"f1ewtqcl",qhf8xq:"f10pi13n",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1yiegib",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",ha4doy:"f12kltsn"},disabled:{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:"ff3nzm7",Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"]},interactive:{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:"fj2g8qd",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",Bbr2w1p:"f1vnc8sk",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7"},filled:{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:"f88035w",q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{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:"f1gmd7mu",E5pizo:"fyed02w"},"filled-lighter-shadow":{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:"f1gmd7mu",E5pizo:"fyed02w"},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:{kzujx5:0,oetu4i:"f1l4zc64",gvrnp0:0,xv9156:0,jek2p4:0,gg5e9n:0,Beu9t3s:0,dt87k2:0,Bt1vbvt:0,Bwzppfd:0,Bop6t4b:0,B2zwrfe:0,Bwp2tzp:0,Bgoe8wy:0,Bf40cpq:0,ckks6v:0,Baalond:"f9mts5e",v2iqwr:0,wmxk5l:"f1z0osm6",Bj33j0h:0,Bs0cc2w:0,qwjtx1:0,B50zh58:0,f7epvg:0,e1hlit:0,B7mkhst:0,ak43y8:0,Bbcopvn:0,Bvecx4l:0,lwioe0:0,B6oc9vd:0,e2sjt0:0,uqwnxt:0,asj8p9:"f1acnei2",Br8fjdy:0,zoxjo1:"f1so894s",Bt3ojkv:0,B7pmvfx:0,Bfht2n1:0,an54nd:0,t1ykpo:0,Belqbek:0,bbt1vd:0,Brahy3i:0,r7b1zc:0,rexu52:0,ovtnii:0,Bvq3b66:0,Bawrxx6:0,Bbs6y8j:0,B2qpgjt:"f19ezbcq"},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]}},{d:[".ftuwxu6{display:inline-flex;}",".f1ewtqcl{box-sizing:border-box;}",".f10pi13n{position:relative;}",[".f1yiegib{padding:0 0 var(--strokeWidthThick) 0;}",{p:-1}],[".f1s184ao{margin:0;}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f12kltsn{vertical-align:top;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".ff3nzm7{border:var(--strokeWidthThin) solid var(--colorNeutralStrokeDisabled);}",{p:-2}],".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}],".fj2g8qd::after{clip-path:inset(calc(100% - var(--strokeWidthThick)) 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);}",[".f88035w{border:var(--strokeWidthThin) solid var(--colorTransparentStroke);}",{p:-2}],".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",[".f1gmd7mu{border:var(--strokeWidthThin) solid var(--colorTransparentStrokeInteractive);}",{p:-2}],".fyed02w{box-shadow:var(--shadow2);}",[".f1gmd7mu{border:var(--strokeWidthThin) solid var(--colorTransparentStrokeInteractive);}",{p:-2}],[".fhz96rm{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);}",{p:-2}],".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".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);}"],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)"}],["@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)"}]],w:[".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);}",".f1vnc8sk:focus-within{outline-width:var(--strokeWidthThick);}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",[".f19ezbcq:focus-within{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1Pressed);}",{p:-2}],".f1so894s:focus-within{border-bottom-color:var(--colorCompoundBrandStroke);}"],h:[".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);}",[".f9mts5e:hover{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1Hover);}",{p:-2}],".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}"],a:[[".f1acnei2:active{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1Pressed);}",{p:-2}],".f1z0osm6:active{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"]}),QT=le({base:{icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"],jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",De3pzq:"f3rmtva",B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",Bh6795r:"fqerorx",Bahqtrf:"fk6fouc",Bqenvij:"f1l02sjl",yvdlaj:"fwyc1cq",B3o7kgh:"f13ta7ih",oeaueh:"f1s6fcnf"},disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"},small:{sshi5w:"f1w5jphr",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1pnffij",Bxyxcbc:"f192z54u",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{sshi5w:"fvmd9f",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1ww82xo",Bxyxcbc:"f1if7ixc",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},large:{sshi5w:"f1kfson",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f15hvtkj",Bxyxcbc:"f3kip1f",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k"}},{d:[".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",[".f1s184ao{margin:0;}",{p:-1}],".f3rmtva{background-color:transparent;}",".f1ewtqcl{box-sizing:border-box;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fqerorx{flex-grow:1;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f1l02sjl{height:100%;}",".fwyc1cq::-webkit-input-placeholder{color:var(--colorNeutralForeground4);}",".fwyc1cq::-moz-placeholder{color:var(--colorNeutralForeground4);}",".f13ta7ih::-webkit-input-placeholder{opacity:1;}",".f13ta7ih::-moz-placeholder{opacity:1;}",".f1s6fcnf{outline-style:none;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}",".f1w5jphr{min-height:40px;}",[".f1pnffij{padding:var(--spacingVerticalXS) calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",{p:-1}],".f192z54u{max-height:200px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fvmd9f{min-height:52px;}",[".f1ww82xo{padding:var(--spacingVerticalSNudge) calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",{p:-1}],".f1if7ixc{max-height:260px;}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1kfson{min-height:64px;}",[".f15hvtkj{padding:var(--spacingVerticalS) calc(var(--spacingHorizontalM) + var(--spacingHorizontalXXS));}",{p:-1}],".f3kip1f{max-height:320px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}"]}),ZT=le({none:{B3rzk8w:"f1o1s39h"},both:{B3rzk8w:"f1pxm0xe"},horizontal:{B3rzk8w:"fq6nmtn"},vertical:{B3rzk8w:"f1f5ktr4"}},{d:[".f1o1s39h{resize:none;}",".f1pxm0xe{resize:both;}",".fq6nmtn{resize:horizontal;}",".f1f5ktr4{resize:vertical;}"]}),JT=e=>{const{size:t,appearance:r,resize:n}=e,a=e.textarea.disabled,s=`${e.textarea["aria-invalid"]}`=="true",c=r.startsWith("filled"),u=YT();e.root.className=Q(Vv.root,u.base,a&&u.disabled,!a&&c&&u.filled,!a&&u[r],!a&&u.interactive,!a&&r==="outline"&&u.outlineInteractive,!a&&s&&u.invalid,e.root.className);const f=QT(),p=ZT();return e.textarea.className=Q(Vv.textarea,f.base,f[t],p[n],a&&f.disabled,e.textarea.className),e},Wv=y.forwardRef((e,t)=>{const r=XT(e,t);return JT(r),Pe("useTextareaStyles_unstable")(r),GT(r)});Wv.displayName="Textarea";const e9=ze("r6pzz3z",null,[".r6pzz3z{overflow-y:hidden;overflow-y:clip;scrollbar-gutter:stable;}"]),t9=ze("r144vlu9",null,[".r144vlu9{overflow-y:hidden;}"]);function r9(){const e=e9(),t=t9(),{targetDocument:r}=He(),n=y.useCallback(()=>{var s;if(!r)return;var c;Math.floor(r.body.getBoundingClientRect().height)>((c=(s=r.defaultView)===null||s===void 0?void 0:s.innerHeight)!==null&&c!==void 0?c:0)&&(r.documentElement.classList.add(e),r.body.classList.add(t))},[r,e,t]),a=y.useCallback(()=>{r&&(r.documentElement.classList.remove(e),r.body.classList.remove(t))},[r,e,t]);return{disableBodyScroll:n,enableBodyScroll:a}}function o9(e,t){const{findFirstFocusable:r}=ca(),{targetDocument:n}=He(),a=y.useRef(null);return y.useEffect(()=>{if(!e)return;const s=a.current&&r(a.current);if(s)s.focus();else{var c;(c=a.current)===null||c===void 0||c.focus()}},[r,e,t,n]),a}const n9={open:!1,inertTrapFocus:!1,modalType:"modal",isNestedDialog:!1,unmountOnClose:!0,dialogRef:{current:null},requestOpenChange(){}},Dd=Lr(void 0),i9=Dd.Provider,Nr=e=>eo(Dd,(t=n9)=>e(t)),a9=!1,$v=y.createContext(void 0),Uv=$v.Provider,s9=()=>{var e;return(e=y.useContext($v))!==null&&e!==void 0?e:a9},Gv=y.createContext(void 0);Gv.Provider;const l9=()=>y.useContext(Gv),Xv=So(id,{outScale:.85,easing:De.curveDecelerateMid,duration:De.durationGentle,exitEasing:De.curveAccelerateMin,exitDuration:De.durationGentle}),c9=e=>{const{children:t,modalType:r="modal",onOpenChange:n,inertTrapFocus:a=!1,unmountOnClose:s=!0}=e,c=pt("dialog-title-"),[u,f]=u9(t),[p,g]=Bt({state:e.open,defaultState:e.defaultOpen,initialState:!1}),v=ce(B=>{n?.(B.event,B),B.event.isDefaultPrevented()||g(B.open)}),x=o9(p,r),{modalAttributes:w,triggerAttributes:S}=Vs({trapFocus:r!=="non-modal",legacyTrapFocus:!a}),k=Jn(Dd);return{components:{surfaceMotion:Xv},inertTrapFocus:a,open:p,modalType:r,content:f,trigger:u,requestOpenChange:v,dialogTitleId:c,isNestedDialog:k,unmountOnClose:s,dialogRef:x,modalAttributes:w,triggerAttributes:S,surfaceMotion:ha(e.surfaceMotion,{elementType:Xv,defaultProps:{visible:p,appear:s,unmountOnExit:s}})}};function u9(e){const t=y.Children.toArray(e);switch(t.length){case 2:return t;case 1:return[void 0,t[0]];default:return[void 0,void 0]}}const d9=(e,t)=>J(i9,{value:t.dialog,children:Le(Uv,{value:t.dialogSurface,children:[e.trigger,e.content&&J(e.surfaceMotion,{children:J(Xs,{children:e.content})})]})});function f9(e){const{modalType:t,open:r,dialogRef:n,dialogTitleId:a,isNestedDialog:s,inertTrapFocus:c,requestOpenChange:u,modalAttributes:f,triggerAttributes:p,unmountOnClose:g}=e;return{dialog:y.useMemo(()=>({open:r,modalType:t,dialogRef:n,dialogTitleId:a,isNestedDialog:s,inertTrapFocus:c,modalAttributes:f,triggerAttributes:p,unmountOnClose:g,requestOpenChange:u}),[r,t,n,a,s,c,f,p,g,u]),dialogSurface:!1}}const bn=y.memo(e=>{const t=c9(e),r=f9(t);return d9(t,r)});bn.displayName="Dialog";const p9=e=>{const t=s9(),{children:r,disableButtonEnhancement:n=!1,action:a=t?"close":"open"}=e,s=ia(r),c=Nr(v=>v.requestOpenChange),{triggerAttributes:u}=Vs(),f=ce(v=>{var x,w;s==null||(x=(w=s.props).onClick)===null||x===void 0||x.call(w,v),v.isDefaultPrevented()||c({event:v,type:"triggerClick",open:a==="open"})}),p={...s?.props,ref:na(s),onClick:f,...u},g=fn(s?.type==="button"||s?.type==="a"?s.type:"div",{...p,type:"button"});return{children:Es(r,n?p:g)}},h9=e=>e.children,qd=e=>{const t=p9(e);return h9(t)};qd.displayName="DialogTrigger",qd.isFluentTriggerComponent=!0;const g9=(e,t)=>{const{position:r="end",fluid:n=!1}=e;return{components:{root:"div"},root:me(rt("div",{ref:t,...e}),{elementType:"div"}),position:r,fluid:n}},m9=e=>J(e.root,{}),v9={root:"fui-DialogActions"},b9=ze("rhfpeu0",null,{r:[".rhfpeu0{gap:8px;height:fit-content;box-sizing:border-box;display:flex;grid-row-start:3;grid-row-end:3;}"],s:["@media screen and (max-width: 480px){.rhfpeu0{flex-direction:column;justify-self:stretch;}}"]}),y9=le({gridPositionEnd:{Bdqf98w:"f1a7i8kp",Br312pm:"fd46tj4",Bw0ie65:"fsyjsko",Btsd7tp:"f1n00o3b",ufxxby:"f1mvsp37",Bq5p579:"flbz1vp"},gridPositionStart:{Bdqf98w:"fsxvdwy",Br312pm:"fwpfdsa",Bw0ie65:"f1e2fz10",Ew0qkd:"f119phc2",ufxxby:"f1j719yo",Bq5p579:"flbz1vp"},fluidStart:{Bw0ie65:"fsyjsko"},fluidEnd:{Br312pm:"fwpfdsa"}},{d:[".f1a7i8kp{justify-self:end;}",".fd46tj4{grid-column-start:2;}",".fsyjsko{grid-column-end:4;}",".fsxvdwy{justify-self:start;}",".fwpfdsa{grid-column-start:1;}",".f1e2fz10{grid-column-end:2;}"],m:[["@media screen and (max-width: 480px){.f1n00o3b{grid-column-start:1;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f1mvsp37{grid-row-start:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.flbz1vp{grid-row-end:auto;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f119phc2{grid-column-end:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f1j719yo{grid-row-start:3;}}",{m:"screen and (max-width: 480px)"}]]}),x9=e=>{const t=b9(),r=y9();return e.root.className=Q(v9.root,t,e.position==="start"&&r.gridPositionStart,e.position==="end"&&r.gridPositionEnd,e.fluid&&e.position==="start"&&r.fluidStart,e.fluid&&e.position==="end"&&r.fluidEnd,e.root.className),e},yn=y.forwardRef((e,t)=>{const r=g9(e,t);return x9(r),Pe("useDialogActionsStyles_unstable")(r),m9(r)});yn.displayName="DialogActions";const w9=(e,t)=>{var r;return{components:{root:"div"},root:me(rt((r=e.as)!==null&&r!==void 0?r:"div",{ref:t,...e}),{elementType:"div"})}},k9=e=>J(e.root,{}),S9={root:"fui-DialogBody"},B9=ze("rhwx3p8",null,{r:[".rhwx3p8{overflow:unset;gap:8px;display:grid;max-height:calc(100vh - 2 * 24px);max-height:calc(100dvh - 2 * 24px);box-sizing:border-box;grid-template-rows:auto 1fr;grid-template-columns:1fr 1fr auto;}"],s:["@media screen and (max-width: 480px){.rhwx3p8{max-width:100vw;grid-template-rows:auto 1fr auto;}}","@media screen and (max-height: 359px){.rhwx3p8{max-height:unset;}}"]}),z9=e=>{const t=B9();return e.root.className=Q(S9.root,t,e.root.className),e},xn=y.forwardRef((e,t)=>{const r=w9(e,t);return z9(r),Pe("useDialogBodyStyles_unstable")(r),k9(r)});xn.displayName="DialogBody";const Kv={root:"fui-DialogTitle",action:"fui-DialogTitle__action"},j9=ze("rxjm636",null,[".rxjm636{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase500);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase500);margin:0;grid-row-start:1;grid-row-end:1;grid-column-start:1;grid-column-end:3;}"]),_9=le({rootWithoutAction:{Bw0ie65:"fsyjsko"}},{d:[".fsyjsko{grid-column-end:4;}"]}),C9=ze("r13kcrze",null,[".r13kcrze{grid-row-start:1;grid-row-end:1;grid-column-start:3;justify-self:end;align-self:start;}"]),N9=ze("r2avt6e","roj2bbc",{r:[".r2avt6e{overflow:visible;padding:0;border-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}",".r2avt6e:focus{outline-style:none;}",".r2avt6e:focus-visible{outline-style:none;}",".r2avt6e[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r2avt6e[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);}',".roj2bbc{overflow:visible;padding:0;border-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}",".roj2bbc:focus{outline-style:none;}",".roj2bbc:focus-visible{outline-style:none;}",".roj2bbc[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.roj2bbc[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){.r2avt6e[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){.roj2bbc[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),T9=e=>{const t=j9(),r=C9(),n=_9();return e.root.className=Q(Kv.root,t,!e.action&&n.rootWithoutAction,e.root.className),e.action&&(e.action.className=Q(Kv.action,r,e.action.className)),e},P9=(e,t)=>{const{action:r}=e,n=Nr(s=>s.modalType),a=N9();return{components:{root:"h2",action:"div"},root:me(rt("h2",{ref:t,id:Nr(s=>s.dialogTitleId),...e}),{elementType:"h2"}),action:Ne(r,{renderByDefault:n==="non-modal",defaultProps:{children:y.createElement(qd,{disableButtonEnhancement:!0,action:"close"},y.createElement("button",{type:"button",className:a,"aria-label":"close"},y.createElement(e6,null)))},elementType:"div"})}},R9=e=>Le(y.Fragment,{children:[J(e.root,{children:e.root.children}),e.action&&J(e.action,{})]}),wn=y.forwardRef((e,t)=>{const r=P9(e,t);return T9(r),Pe("useDialogTitleStyles_unstable")(r),R9(r)});wn.displayName="DialogTitle";const Yv=B6,M9=(e,t)=>{const r=Gs(),n=Nr(j=>j.modalType),a=Nr(j=>j.isNestedDialog),s=l9(),c=s??a,u=Nr(j=>j.modalAttributes),f=Nr(j=>j.dialogRef),p=Nr(j=>j.requestOpenChange),g=Nr(j=>j.dialogTitleId),v=Nr(j=>j.open),x=Nr(j=>j.unmountOnClose),w=ce(j=>{if(Cu(e.backdrop)){var N,M;(N=(M=e.backdrop).onClick)===null||N===void 0||N.call(M,j)}n==="modal"&&!j.isDefaultPrevented()&&p({event:j,open:!1,type:"backdropClick"})}),S=ce(j=>{var N;(N=e.onKeyDown)===null||N===void 0||N.call(e,j),j.key===ti&&!j.isDefaultPrevented()&&(p({event:j,open:!1,type:"escapeKeyDown"}),j.preventDefault())}),k=Ne(e.backdrop,{renderByDefault:n!=="non-modal",defaultProps:{"aria-hidden":"true"},elementType:"div"}),B=k?.appearance;k&&(k.onClick=w,delete k.appearance);const{disableBodyScroll:z,enableBodyScroll:P}=r9();return bt(()=>{if(!v){P();return}if(!(a||n==="non-modal"))return z(),()=>P()},[v,n,a,z,P]),{components:{backdrop:"div",root:"div",backdropMotion:Yv},open:v,backdrop:k,isNestedDialog:a,treatBackdropAsNested:c,backdropAppearance:B,unmountOnClose:x,mountNode:e.mountNode,root:me(rt("div",{tabIndex:-1,role:n==="alert"?"alertdialog":"dialog","aria-modal":n!=="non-modal","aria-labelledby":e["aria-label"]?void 0:g,"aria-hidden":!x&&!v?!0:void 0,...e,...u,onKeyDown:S,ref:Oe(t,r,f)}),{elementType:"div"}),backdropMotion:ha(e.backdropMotion,{elementType:Yv,defaultProps:{appear:x,visible:v}}),transitionStatus:void 0}},E9=(e,t)=>Le(li,{mountNode:e.mountNode,children:[e.backdrop&&e.backdropMotion&&J(e.backdropMotion,{children:J(e.backdrop,{})}),J(Wm,{children:J(Uv,{value:t.dialogSurface,children:J(e.root,{})})})]}),Qv={root:"fui-DialogSurface",backdrop:"fui-DialogSurface__backdrop"},I9=ze("r1u3t6p6","r5coedp",{r:[".r1u3t6p6{inset:0;padding:24px;margin:auto;border-style:none;overflow:unset;border:1px solid var(--colorTransparentStroke);border-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;max-height:100dvh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);box-shadow:var(--shadow64);}",".r1u3t6p6:focus{outline-style:none;}",".r1u3t6p6:focus-visible{outline-style:none;}",".r1u3t6p6[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1u3t6p6[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);}',".r5coedp{inset:0;padding:24px;margin:auto;border-style:none;overflow:unset;border:1px solid var(--colorTransparentStroke);border-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;max-height:100dvh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);box-shadow:var(--shadow64);}",".r5coedp:focus{outline-style:none;}",".r5coedp:focus-visible{outline-style:none;}",".r5coedp[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r5coedp[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){.r1u3t6p6[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media screen and (max-width: 480px){.r1u3t6p6{max-width:100vw;}}","@media screen and (max-height: 359px){.r1u3t6p6{overflow-y:auto;padding-right:calc(24px - 4px);border-right-width:4px;border-top-width:4px;border-bottom-width:4px;}}","@media (forced-colors: active){.r5coedp[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}","@media screen and (max-width: 480px){.r5coedp{max-width:100vw;}}","@media screen and (max-height: 359px){.r5coedp{overflow-y:auto;padding-left:calc(24px - 4px);border-left-width:4px;border-top-width:4px;border-bottom-width:4px;}}"]}),F9=ze("r1e18s3l",null,[".r1e18s3l{inset:0px;background-color:var(--colorBackgroundOverlay);position:fixed;}"]),A9=le({nestedDialogBackdrop:{De3pzq:"f1c21dwh"},dialogHidden:{Bkecrkj:"f1aehjj5"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1aehjj5{pointer-events:none;}"]}),D9=e=>{const{root:t,backdrop:r,open:n,unmountOnClose:a,treatBackdropAsNested:s,backdropAppearance:c}=e,u=I9(),f=F9(),p=A9(),g=c?c==="transparent":s,v=!a&&!n;return t.className=Q(Qv.root,u,v&&p.dialogHidden,t.className),r&&(r.className=Q(Qv.backdrop,f,v&&p.dialogHidden,g&&p.nestedDialogBackdrop,r.className)),e};function q9(e){return{dialogSurface:!0}}const kn=y.forwardRef((e,t)=>{const r=M9(e,t),n=q9();return D9(r),Pe("useDialogSurfaceStyles_unstable")(r),E9(r,n)});kn.displayName="DialogSurface";const O9=(e,t)=>{var r;return{components:{root:"div"},root:me(rt((r=e.as)!==null&&r!==void 0?r:"div",{ref:t,...e}),{elementType:"div"})}},H9=e=>J(e.root,{}),L9={root:"fui-DialogContent"},V9=ze("r1v5zwsm",null,{r:[".r1v5zwsm{padding:var(--strokeWidthThick);margin:calc(var(--strokeWidthThick) * -1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);overflow-y:auto;min-height:32px;box-sizing:border-box;grid-row-start:2;grid-row-end:2;grid-column-start:1;grid-column-end:4;}"],s:["@media screen and (max-height: 359px){.r1v5zwsm{overflow-y:unset;}}"]}),W9=e=>{const t=V9();return e.root.className=Q(L9.root,t,e.root.className),e},Sn=y.forwardRef((e,t)=>{const r=O9(e,t);return W9(r),Pe("useDialogContentStyles_unstable")(r),H9(r)});Sn.displayName="DialogContent";const Zv=Lr(void 0),$9={size:"medium",handleToggleButton:()=>null,handleRadio:()=>null,vertical:!1,checkedValues:{}},U9=e=>eo(Zv,(t=$9)=>e(t)),G9=(e,t)=>{const{size:r="medium"}=e,n=X9(e,t),a=Y9();return{size:r,...n,root:{...n.root,...a}}},X9=(e,t)=>{const{vertical:r=!1}=e,n={vertical:r,components:{root:"div"},root:me(rt("div",{role:"toolbar",ref:t,...r&&{"aria-orientation":"vertical"},...e}),{elementType:"div"})},[a,s]=K9({checkedValues:e.checkedValues,defaultCheckedValues:e.defaultCheckedValues,onCheckedValueChange:e.onCheckedValueChange}),c=ce((f,p,g,v)=>{if(p&&g){const w=[...a?.[p]||[]];v?w.splice(w.indexOf(g),1):w.push(g),s?.(f,{name:p,checkedItems:w})}}),u=ce((f,p,g,v)=>{p&&g&&s?.(f,{name:p,checkedItems:[g]})});return{...n,handleToggleButton:c,handleRadio:u,checkedValues:a??{}}},K9=e=>{const[t,r]=Bt({state:e.checkedValues,defaultState:e.defaultCheckedValues,initialState:{}}),{onCheckedValueChange:n}=e,a=ce((s,{name:c,checkedItems:u})=>{n&&n(s,{name:c,checkedItems:u}),r(f=>f?{...f,[c]:u}:{[c]:u})});return[t,a]},Y9=()=>Ls({circular:!0,axis:"both"}),Q9=(e,t)=>J(Zv.Provider,{value:t.toolbar,children:J(e.root,{children:e.root.children})}),Z9={root:"fui-Toolbar"},J9=le({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1yqiaad"},vertical:{Beiy3e4:"f1vx9l62",a9b677:"f1acs6jw"},small:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fvz760z"},medium:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1yqiaad"},large:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1ms6bdn"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}",[".f1yqiaad{padding:4px 8px;}",{p:-1}],".f1vx9l62{flex-direction:column;}",".f1acs6jw{width:fit-content;}",[".fvz760z{padding:0px 4px;}",{p:-1}],[".f1yqiaad{padding:4px 8px;}",{p:-1}],[".f1ms6bdn{padding:4px 20px;}",{p:-1}]]}),eP=e=>{const t=J9(),{vertical:r,size:n}=e;return e.root.className=Q(Z9.root,t.root,r&&t.vertical,n==="small"&&!r&&t.small,n==="medium"&&!r&&t.medium,n==="large"&&!r&&t.large,e.root.className),e};function tP(e){const{size:t,handleToggleButton:r,vertical:n,checkedValues:a,handleRadio:s}=e;return{toolbar:y.useMemo(()=>({size:t,vertical:n,handleToggleButton:r,handleRadio:s,checkedValues:a}),[t,n,r,s,a])}}const Jv=y.forwardRef((e,t)=>{const r=G9(e,t),n=tP(r);return eP(r),Pe("useToolbarStyles_unstable")(r),Q9(r,n)});Jv.displayName="Toolbar";const rP=le({vertical:{Beiy3e4:"f1vx9l62"},verticalIcon:{Be2twd7:"f1rt2boy",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao"}},{d:[".f1vx9l62{flex-direction:column;}",".f1rt2boy{font-size:24px;}",[".f1s184ao{margin:0;}",{p:-1}]]}),oP=e=>{const t=rP();e.root.className=Q(e.vertical&&t.vertical,e.root.className),e.icon&&(e.icon.className=Q(e.vertical&&t.verticalIcon,e.icon.className)),iv(e)},nP=(e,t)=>{const{appearance:r="subtle",...n}=e,a=iP(n,t);return{appearance:r,size:"medium",shape:"rounded",...a}},iP=(e,t)=>{const{vertical:r=!1,...n}=e,a=ov(n,t);return{vertical:r,...a}},_a=y.forwardRef((e,t)=>{const r=nP(e,t);return oP(r),Pe("useToolbarButtonStyles_unstable")(r),tv(r)});_a.displayName="ToolbarButton";const aP=le({root:{mc9l5x:"ftuwxu6",B2u0y6b:"f1lwjmbk",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1oic3e7"},vertical:{B2u0y6b:"fe668z"}},{d:[".ftuwxu6{display:inline-flex;}",".f1lwjmbk{max-width:1px;}",[".f1oic3e7{padding:0 12px;}",{p:-1}],".fe668z{max-width:initial;}"]}),sP=e=>{bv(e);const{vertical:t}=e,r=aP();return e.root.className=Q(r.root,!t&&r.vertical,e.root.className),e},lP=(e,t)=>({alignContent:"center",appearance:"default",inset:!1,...cP(e,t)}),cP=(e,t)=>{const r=U9(n=>n.vertical);return mv({vertical:!r,...e},t)},eb=y.forwardRef((e,t)=>{const r=lP(e,t);return sP(r),Pe("useToolbarDividerStyles_unstable")(r),gv(r)});eb.displayName="ToolbarDivider";function uP(e){switch(e){case"info":return y.createElement(ez,null);case"warning":return y.createElement(Z4,null);case"error":return y.createElement(wz,null);case"success":return y.createElement(pz,null);default:return null}}function dP(e=!1){const{targetDocument:t}=He(),r=y.useReducer(()=>({}),{})[1],n=y.useRef(!1),a=y.useRef(null),s=y.useRef(Number.POSITIVE_INFINITY),c=y.useCallback(f=>{var p,g;const v=f[0];var x;const w=(x=v==null||(g=v.borderBoxSize)===null||g===void 0||(p=g[0])===null||p===void 0?void 0:p.inlineSize)!==null&&x!==void 0?x:v?.target.getBoundingClientRect().width;if(w===void 0||!v)return;const{target:S}=v;if(!Br(S))return;let k;if(n.current)w>=s.current&&(k=!1);else{const B=S.scrollWidth;w<B&&(k=!0,s.current=B)}typeof k<"u"&&n.current!==k&&(n.current=k,r())},[r]),u=y.useCallback(f=>{var p;if(!e||!f||!t?.defaultView)return;(p=a.current)===null||p===void 0||p.disconnect();const g=t.defaultView,v=new g.ResizeObserver(c);a.current=v,v.observe(f,{box:"border-box"})},[t,c,e]);return y.useEffect(()=>()=>{var f;(f=a.current)===null||f===void 0||f.disconnect()},[]),{ref:u,reflowing:n.current}}const tb=y.createContext(void 0),fP={className:"",nodeRef:y.createRef()};tb.Provider;const pP=()=>{var e;return(e=y.useContext(tb))!==null&&e!==void 0?e:fP},hP=(e,t)=>{const{layout:r="auto",intent:n="info",politeness:a}=e,s=a??n==="info"?"polite":"assertive",c=r==="auto",{ref:u,reflowing:f}=dP(c),p=c?f?"multiline":"singleline":r,{className:g,nodeRef:v}=pP(),x=Gs(),w=y.useRef(null),S=y.useRef(null),{announce:k}=lS(),B=pt();return y.useEffect(()=>{var z,P;const j=(z=S.current)===null||z===void 0?void 0:z.textContent,N=(P=w.current)===null||P===void 0?void 0:P.textContent,M=[j,N].filter(Boolean).join(",");k(M,{polite:s==="polite",alert:s==="assertive"})},[S,w,k,s]),{components:{root:"div",icon:"div",bottomReflowSpacer:"div"},root:me(rt("div",{ref:Oe(t,u,v,x),role:"group","aria-labelledby":B,...e}),{elementType:"div"}),icon:Ne(e.icon,{renderByDefault:!0,elementType:"div"}),bottomReflowSpacer:Ne(e.bottomReflowSpacer,{renderByDefault:p==="multiline",elementType:"div"}),layout:p,intent:n,transitionClassName:g,actionsRef:w,bodyRef:S,titleId:B}},gP=(e,t)=>{const{shape:r="rounded",...n}=e,a=hP(n,t);return{...a,shape:r,icon:Ne(e.icon,{defaultProps:{children:uP(a.intent)},renderByDefault:!0,elementType:"div"})}},rb=y.createContext(void 0),mP={titleId:"",layout:"singleline",actionsRef:y.createRef(),bodyRef:y.createRef()},vP=rb.Provider,ob=()=>{var e;return(e=y.useContext(rb))!==null&&e!==void 0?e:mP},bP=(e,t)=>J(vP,{value:t.messageBar,children:Le(e.root,{children:[e.icon&&J(e.icon,{}),e.root.children,e.bottomReflowSpacer&&J(e.bottomReflowSpacer,{})]})}),Od={root:"fui-MessageBar",icon:"fui-MessageBar__icon",bottomReflowSpacer:"fui-MessageBar__bottomReflowSpacer"},yP=ze("r2oyxsj","r1wuyrhw",['.r2oyxsj{white-space:nowrap;display:grid;grid-template-columns:auto 1fr auto auto;grid-template-rows:1fr;grid-template-areas:"icon body secondaryActions actions";padding-left:var(--spacingHorizontalM);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);border-radius:var(--borderRadiusMedium);align-items:center;min-height:36px;box-sizing:border-box;background-color:var(--colorNeutralBackground3);}','.r1wuyrhw{white-space:nowrap;display:grid;grid-template-columns:auto 1fr auto auto;grid-template-rows:1fr;grid-template-areas:"icon body secondaryActions actions";padding-right:var(--spacingHorizontalM);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);border-radius:var(--borderRadiusMedium);align-items:center;min-height:36px;box-sizing:border-box;background-color:var(--colorNeutralBackground3);}']),xP=ze("r1df1z33","rivnfjc",[".r1df1z33{grid-area:icon;font-size:var(--fontSizeBase500);margin-right:var(--spacingHorizontalS);color:var(--colorNeutralForeground3);display:flex;align-items:center;}",".rivnfjc{grid-area:icon;font-size:var(--fontSizeBase500);margin-left:var(--spacingHorizontalS);color:var(--colorNeutralForeground3);display:flex;align-items:center;}"]),wP=ze("r1vx593n",null,[".r1vx593n{margin-bottom:var(--spacingVerticalS);grid-area:secondaryActions;}"]),kP=le({rootMultiline:{Huce71:"f6juhto",Bt984gj:"f1s2louj",z8tnut:"f1ngh7ph",Budl1dq:"f17g0uqy",zoa1oz:"f1w7oly7"},secondaryActionsMultiline:{Brf1p80:"f1e8xxv9",B6of3ja:"f1gaxbfw",jrapky:"fqcjy3b",t21cq0:["fibjyge","f9yszdx"]},square:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fokr779"}},{d:[".f6juhto{white-space:normal;}",".f1s2louj{align-items:start;}",".f1ngh7ph{padding-top:var(--spacingVerticalMNudge);}",".f17g0uqy{grid-template-columns:auto 1fr auto;}",'.f1w7oly7{grid-template-areas:"icon body actions" "secondaryActions secondaryActions secondaryActions";}',".f1e8xxv9{justify-content:end;}",".f1gaxbfw{margin-top:var(--spacingVerticalMNudge);}",".fqcjy3b{margin-bottom:var(--spacingVerticalS);}",".fibjyge{margin-right:0px;}",".f9yszdx{margin-left:0px;}",[".fokr779{border-radius:0;}",{p:-1}]]}),SP=le({info:{},error:{sj55zd:"f1ca9wz"},warning:{sj55zd:"f14a4cve"},success:{sj55zd:"f36rra6"}},{d:[".f1ca9wz{color:var(--colorStatusDangerForeground1);}",".f14a4cve{color:var(--colorStatusWarningForeground3);}",".f36rra6{color:var(--colorStatusSuccessForeground1);}"]}),BP=le({info:{},error:{De3pzq:"f1eon7jj",g2u3we:"f1f8dvr7",h3c5rm:["f1g1ijmo","f1nxacbt"],B9xav0g:"fo25q1j",zhjwy3:["f1nxacbt","f1g1ijmo"]},warning:{De3pzq:"f13ftzij",g2u3we:"frd1ypx",h3c5rm:["f1gyjrma","f18qd5xz"],B9xav0g:"fqyqtrt",zhjwy3:["f18qd5xz","f1gyjrma"]},success:{De3pzq:"f64thcm",g2u3we:"f1b4u7v",h3c5rm:["f1nyd2b1","f70v3om"],B9xav0g:"fk173vo",zhjwy3:["f70v3om","f1nyd2b1"]}},{d:[".f1eon7jj{background-color:var(--colorStatusDangerBackground1);}",".f1f8dvr7{border-top-color:var(--colorStatusDangerBorder1);}",".f1g1ijmo{border-right-color:var(--colorStatusDangerBorder1);}",".f1nxacbt{border-left-color:var(--colorStatusDangerBorder1);}",".fo25q1j{border-bottom-color:var(--colorStatusDangerBorder1);}",".f13ftzij{background-color:var(--colorStatusWarningBackground1);}",".frd1ypx{border-top-color:var(--colorStatusWarningBorder1);}",".f1gyjrma{border-right-color:var(--colorStatusWarningBorder1);}",".f18qd5xz{border-left-color:var(--colorStatusWarningBorder1);}",".fqyqtrt{border-bottom-color:var(--colorStatusWarningBorder1);}",".f64thcm{background-color:var(--colorStatusSuccessBackground1);}",".f1b4u7v{border-top-color:var(--colorStatusSuccessBorder1);}",".f1nyd2b1{border-right-color:var(--colorStatusSuccessBorder1);}",".f70v3om{border-left-color:var(--colorStatusSuccessBorder1);}",".fk173vo{border-bottom-color:var(--colorStatusSuccessBorder1);}"]}),zP=e=>{const t=yP(),r=xP(),n=SP(),a=BP(),s=wP(),c=kP();return e.root.className=Q(Od.root,t,e.layout==="multiline"&&c.rootMultiline,e.shape==="square"&&c.square,a[e.intent],e.root.className),e.icon&&(e.icon.className=Q(Od.icon,r,n[e.intent],e.icon.className)),e.bottomReflowSpacer&&(e.bottomReflowSpacer.className=Q(Od.bottomReflowSpacer,s)),e};function jP(e){const{layout:t,actionsRef:r,bodyRef:n,titleId:a}=e;return{messageBar:y.useMemo(()=>({layout:t,actionsRef:r,bodyRef:n,titleId:a}),[t,r,n,a])}}const at=y.forwardRef((e,t)=>{const r=gP(e,t);return zP(r),Pe("useMessageBarStyles_unstable")(r),bP(r,jP(r))});at.displayName="MessageBar";const _P=(e,t)=>{const{titleId:r}=ob();return{components:{root:"span"},root:me(rt("span",{ref:t,id:r,...e}),{elementType:"span"})}},CP=e=>J(e.root,{}),NP={root:"fui-MessageBarTitle"},TP=ze("r168xkm9",null,[".r168xkm9{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);}",'.r168xkm9::after{content:" ";}']),PP=e=>{const t=TP();return e.root.className=Q(NP.root,t,e.root.className),e},di=y.forwardRef((e,t)=>{const r=_P(e,t);return PP(r),Pe("useMessageBarTitleStyles_unstable")(r),CP(r)});di.displayName="MessageBarTitle";const RP=(e,t)=>{const{bodyRef:r}=ob();return{components:{root:"div"},root:me(rt("div",{ref:Oe(t,r),...e}),{elementType:"div"})}},MP=(e,t)=>J(c8,{value:t.link,children:J(e.root,{})}),EP={root:"fui-MessageBarBody"},IP=ze("rtatq2b","re2rary",[".rtatq2b{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);grid-area:body;padding-right:var(--spacingHorizontalM);}",".re2rary{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);grid-area:body;padding-left:var(--spacingHorizontalM);}"]),FP=e=>{const t=IP();return e.root.className=Q(EP.root,t,e.root.className),e};function AP(e){return{link:y.useMemo(()=>({inline:!0}),[])}}const st=y.forwardRef((e,t)=>{const r=RP(e,t),n=AP();return FP(r),Pe("useMessageBarBodyStyles_unstable")(r),MP(r,n)});st.displayName="MessageBarBody";function Tt(e,t){DP(e)&&(e="100%");var r=qP(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function kl(e){return Math.min(1,Math.max(0,e))}function DP(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function qP(e){return typeof e=="string"&&e.indexOf("%")!==-1}function nb(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Sl(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Bn(e){return e.length===1?"0"+e:String(e)}function OP(e,t,r){return{r:Tt(e,255)*255,g:Tt(t,255)*255,b:Tt(r,255)*255}}function ib(e,t,r){e=Tt(e,255),t=Tt(t,255),r=Tt(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),s=0,c=0,u=(n+a)/2;if(n===a)c=0,s=0;else{var f=n-a;switch(c=u>.5?f/(2-n-a):f/(n+a),n){case e:s=(t-r)/f+(t<r?6:0);break;case t:s=(r-e)/f+2;break;case r:s=(e-t)/f+4;break}s/=6}return{h:s,s:c,l:u}}function Hd(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function HP(e,t,r){var n,a,s;if(e=Tt(e,360),t=Tt(t,100),r=Tt(r,100),t===0)a=r,s=r,n=r;else{var c=r<.5?r*(1+t):r+t-r*t,u=2*r-c;n=Hd(u,c,e+1/3),a=Hd(u,c,e),s=Hd(u,c,e-1/3)}return{r:n*255,g:a*255,b:s*255}}function ab(e,t,r){e=Tt(e,255),t=Tt(t,255),r=Tt(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),s=0,c=n,u=n-a,f=n===0?0:u/n;if(n===a)s=0;else{switch(n){case e:s=(t-r)/u+(t<r?6:0);break;case t:s=(r-e)/u+2;break;case r:s=(e-t)/u+4;break}s/=6}return{h:s,s:f,v:c}}function LP(e,t,r){e=Tt(e,360)*6,t=Tt(t,100),r=Tt(r,100);var n=Math.floor(e),a=e-n,s=r*(1-t),c=r*(1-a*t),u=r*(1-(1-a)*t),f=n%6,p=[r,c,s,s,u,r][f],g=[u,r,r,c,s,s][f],v=[s,s,u,r,r,c][f];return{r:p*255,g:g*255,b:v*255}}function sb(e,t,r,n){var a=[Bn(Math.round(e).toString(16)),Bn(Math.round(t).toString(16)),Bn(Math.round(r).toString(16))];return n&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function VP(e,t,r,n,a){var s=[Bn(Math.round(e).toString(16)),Bn(Math.round(t).toString(16)),Bn(Math.round(r).toString(16)),Bn(WP(n))];return a&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))&&s[3].startsWith(s[3].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0)+s[3].charAt(0):s.join("")}function WP(e){return Math.round(parseFloat(e)*255).toString(16)}function lb(e){return ir(e)/255}function ir(e){return parseInt(e,16)}function $P(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Ld={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function UP(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,s=null,c=!1,u=!1;return typeof e=="string"&&(e=KP(e)),typeof e=="object"&&(no(e.r)&&no(e.g)&&no(e.b)?(t=OP(e.r,e.g,e.b),c=!0,u=String(e.r).substr(-1)==="%"?"prgb":"rgb"):no(e.h)&&no(e.s)&&no(e.v)?(n=Sl(e.s),a=Sl(e.v),t=LP(e.h,n,a),c=!0,u="hsv"):no(e.h)&&no(e.s)&&no(e.l)&&(n=Sl(e.s),s=Sl(e.l),t=HP(e.h,n,s),c=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=nb(r),{ok:c,format:e.format||u,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var GP="[-\\+]?\\d+%?",XP="[-\\+]?\\d*\\.\\d+%?",Mo="(?:".concat(XP,")|(?:").concat(GP,")"),Vd="[\\s|\\(]+(".concat(Mo,")[,|\\s]+(").concat(Mo,")[,|\\s]+(").concat(Mo,")\\s*\\)?"),Wd="[\\s|\\(]+(".concat(Mo,")[,|\\s]+(").concat(Mo,")[,|\\s]+(").concat(Mo,")[,|\\s]+(").concat(Mo,")\\s*\\)?"),Tr={CSS_UNIT:new RegExp(Mo),rgb:new RegExp("rgb"+Vd),rgba:new RegExp("rgba"+Wd),hsl:new RegExp("hsl"+Vd),hsla:new RegExp("hsla"+Wd),hsv:new RegExp("hsv"+Vd),hsva:new RegExp("hsva"+Wd),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function KP(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Ld[e])e=Ld[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=Tr.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=Tr.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Tr.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=Tr.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Tr.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=Tr.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Tr.hex8.exec(e),r?{r:ir(r[1]),g:ir(r[2]),b:ir(r[3]),a:lb(r[4]),format:t?"name":"hex8"}:(r=Tr.hex6.exec(e),r?{r:ir(r[1]),g:ir(r[2]),b:ir(r[3]),format:t?"name":"hex"}:(r=Tr.hex4.exec(e),r?{r:ir(r[1]+r[1]),g:ir(r[2]+r[2]),b:ir(r[3]+r[3]),a:lb(r[4]+r[4]),format:t?"name":"hex8"}:(r=Tr.hex3.exec(e),r?{r:ir(r[1]+r[1]),g:ir(r[2]+r[2]),b:ir(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function no(e){return!!Tr.CSS_UNIT.exec(String(e))}var YP=(function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=$P(t)),this.originalInput=t;var a=UP(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:a.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,a,s=t.r/255,c=t.g/255,u=t.b/255;return s<=.03928?r=s/12.92:r=Math.pow((s+.055)/1.055,2.4),c<=.03928?n=c/12.92:n=Math.pow((c+.055)/1.055,2.4),u<=.03928?a=u/12.92:a=Math.pow((u+.055)/1.055,2.4),.2126*r+.7152*n+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=nb(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=ab(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=ab(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=ib(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=ib(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),sb(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),VP(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(Tt(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(Tt(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+sb(this.r,this.g,this.b,!1),r=0,n=Object.entries(Ld);r<n.length;r++){var a=n[r],s=a[0],c=a[1];if(t===c)return s}return!1},e.prototype.toString=function(t){var r=!!t;t=t??this.format;var n=!1,a=this.a<1&&this.a>=0,s=!r&&a&&(t.startsWith("hex")||t==="name");return s?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=kl(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=kl(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=kl(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=kl(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),a=new e(t).toRgb(),s=r/100,c={r:(a.r-n.r)*s+n.r,g:(a.g-n.g)*s+n.g,b:(a.b-n.b)*s+n.b,a:(a.a-n.a)*s+n.a};return new e(c)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),a=360/r,s=[this];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,s.push(new e(n));return s},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,a=r.s,s=r.v,c=[],u=1/t;t--;)c.push(new e({h:n,s:a,v:s})),s=(s+u)%1;return c},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),a=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/a,g:(r.g*r.a+n.g*n.a*(1-r.a))/a,b:(r.b*r.a+n.b*n.a*(1-r.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,a=[this],s=360/t,c=1;c<t;c++)a.push(new e({h:(n+c*s)%360,s:r.s,l:r.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e})();function Bl(e,t){return e===void 0&&(e=""),t===void 0&&(t={}),new YP(e,t)}const zl={root:"fui-ColorSlider",rail:"fui-ColorSlider__rail",thumb:"fui-ColorSlider__thumb",input:"fui-ColorSlider__input"},jl={sliderDirectionVar:"--fui-Slider--direction",sliderProgressVar:"--fui-Slider--progress",thumbColorVar:"--fui-Slider__thumb--color",railColorVar:"--fui-Slider__rail--color"},QP=ze("r1j9hj9j",null,[".r1j9hj9j{position:relative;display:inline-grid;touch-action:none;align-items:center;justify-items:center;--fui-Slider__thumb--size:20px;--fui-Slider__rail--size:20px;min-height:32px;}"]),ZP=le({horizontal:{Bf4jedk:"f93ek0f",wkccdc:"fgfd48t",Budl1dq:"f11e9psi"},vertical:{sshi5w:"fwwq4i4",wkccdc:"fqcvrs3",Budl1dq:"fiadc6h"}},{d:[".f93ek0f{min-width:200px;}",".fgfd48t{grid-template-rows:1fr var(--fui-Slider__thumb--size) 1fr;}",".f11e9psi{grid-template-columns:1fr 100% 1fr;}",".fwwq4i4{min-height:280px;}",".fqcvrs3{grid-template-rows:1fr 100% 1fr;}",".fiadc6h{grid-template-columns:1fr var(--fui-Slider__thumb--size) 1fr;}"]}),JP=le({hue:{Bcmaq0h:"f1curpo1"},saturation:{Bcmaq0h:["fdhcg5e","f1onqon0"]},value:{Bcmaq0h:["f1r1ueul","fbtriqu"]}},{d:[".f1curpo1{background-image:linear-gradient(var(--fui-Slider--direction),red,fuchsia,blue,aqua,lime,yellow,red);}",".fdhcg5e{background-image:linear-gradient(to right, #808080, var(--fui-Slider__rail--color));}",".f1onqon0{background-image:linear-gradient(to left, #808080, var(--fui-Slider__rail--color));}",".f1r1ueul{background-image:linear-gradient(to right, #000, var(--fui-Slider__rail--color));}",".fbtriqu{background-image:linear-gradient(to left, #000, var(--fui-Slider__rail--color));}"]}),eR=le({rail:{Bkecrkj:"f1aehjj5",Ijaq50:"faunodf",nk6f5a:"f88nxoq",Br312pm:"fd46tj4",Bw0ie65:"f1e2fz10",qhf8xq:"f10pi13n",Bvjb7m6:"fdgv6k0",Bpd4iqm:"fpvhumw",oeaueh:"f1yog68k",Bw0xxkn:"f13sgyd8",Ftih45:"fzhtfnv",Brfgrao:"f1j7ml58"},horizontal:{a9b677:"fly5x3f",Bqenvij:"f1cy86ho",Fbdkly:["f1heqfse","fkh49vu"],mdwyqc:["fkh49vu","f1heqfse"],Baz25je:"f16tdq4e"},vertical:{a9b677:"fqxfnkd",Bqenvij:"f1l02sjl",Ccq8qp:"f1rik0od",Bciustq:"f14xwovp",lawp4y:"febq2dz"}},{d:[".f1aehjj5{pointer-events:none;}",".faunodf{grid-row-start:2;}",".f88nxoq{grid-row-end:2;}",".fd46tj4{grid-column-start:2;}",".f1e2fz10{grid-column-end:2;}",".f10pi13n{position:relative;}",".fdgv6k0{forced-color-adjust:none;}",".fpvhumw{outline-width:1px;}",".f1yog68k{outline-style:solid;}",".f13sgyd8{outline-color:var(--colorTransparentStroke);}",".fzhtfnv::before{content:'';}",".f1j7ml58::before{position:absolute;}",".fly5x3f{width:100%;}",".f1cy86ho{height:var(--fui-Slider__rail--size);}",".f1heqfse::before{left:-1px;}",".fkh49vu::before{right:-1px;}",".f16tdq4e::before{height:var(--fui-Slider__rail--size);}",".fqxfnkd{width:var(--fui-Slider__rail--size);}",".f1l02sjl{height:100%;}",".f1rik0od::before{width:var(--fui-Slider__rail--size);}",".f14xwovp::before{top:-1px;}",".febq2dz::before{bottom:1px;}"]}),tR=le({thumb:{Ijaq50:"faunodf",nk6f5a:"f88nxoq",Br312pm:"fd46tj4",Bw0ie65:"f1e2fz10",qhf8xq:"f1euv43f",a9b677:"f174ca62",Bqenvij:"f1yfdkfd",Bkecrkj:"f1aehjj5",oeaueh:"f1s6fcnf",Bvjb7m6:"fdgv6k0",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9",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:"f1lvq45z",E5pizo:"f1whvlc6",De3pzq:"foksa45",Brfgrao:"f1j7ml58",lawp4y:0,Fbdkly:0,mdwyqc:0,Bciustq:0,gc50h5:"f1abv9ik",r59vdv:0,Budzafs:0,ck0cow:0,n07z76:0,Gng75u:"fielpny",Bcvre1j:"fyl8oag",Ftih45:"fzhtfnv",Bcgcnre:0,Bqjgrrk:0,qa3bma:0,y0oebl:0,Biqmznv:0,Bm6vgfq:0,Bbv0w2i:0,uvfttm:0,eqrjj:0,Bk5zm6e:0,m598lv:0,B4f6apu:0,ydt019:0,Bq4z7u6:0,Bdkvgpv:0,B0qfbqy:0,kj8mxx:"f3i7wkk"},horizontal:{Bz10aip:["f13gfj74","f1nfknbn"],oyh7mz:["f1fj3zth","fcf9u6w"]},vertical:{Bz10aip:"f5cv5a3",B5kzvoi:"feeniun"}},{d:[".faunodf{grid-row-start:2;}",".f88nxoq{grid-row-end:2;}",".fd46tj4{grid-column-start:2;}",".f1e2fz10{grid-column-end:2;}",".f1euv43f{position:absolute;}",".f174ca62{width:var(--fui-Slider__thumb--size);}",".f1yfdkfd{height:var(--fui-Slider__thumb--size);}",".f1aehjj5{pointer-events:none;}",".f1s6fcnf{outline-style:none;}",".fdgv6k0{forced-color-adjust:none;}",[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".f1lvq45z{border:var(--strokeWidthThin) solid var(--colorNeutralForeground4);}",{p:-2}],".f1whvlc6{box-shadow:var(--shadow4);}",".foksa45{background-color:var(--fui-Slider__thumb--color);}",".f1j7ml58::before{position:absolute;}",[".f1abv9ik::before{inset:0px;}",{p:-1}],[".fielpny::before{border-radius:var(--borderRadiusCircular);}",{p:-1}],".fyl8oag::before{box-sizing:border-box;}",".fzhtfnv::before{content:'';}",[".f3i7wkk::before{border:var(--strokeWidthThick) solid var(--colorNeutralBackground1);}",{p:-2}],".f13gfj74{transform:translateX(-50%);}",".f1nfknbn{transform:translateX(50%);}",".f1fj3zth{left:var(--fui-Slider--progress);}",".fcf9u6w{right:var(--fui-Slider--progress);}",".f5cv5a3{transform:translateY(50%);}",".feeniun{bottom:var(--fui-Slider--progress);}"]}),rR=le({rounded:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5"},square:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1fabniw"}},{d:[[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f1fabniw{border-radius:var(--borderRadiusNone);}",{p:-1}]]}),oR=le({input:{Bceei9c:"f1k6fduh",abs64n:"fk73vx1",Ijaq50:"f16hsg94",nk6f5a:"f1nzqi2z",Br312pm:"fwpfdsa",Bw0ie65:"fuur7zz",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",jo39rj:0,C5zqim:0,Bdlbwnu:0,B8rk77i:0,Bbzx7hc:0,Hwkvcz:0,B0nnt1c:0,Brwsv5j:0,B2b7vog:0,B4hmq5e:0,B8jxwem:0,B18nadz:0,Ddg5ig:0,Byj09el:0,Dac2s3:0,Dd2y6r:0,Bk0t58e:"f1nq8t98",Ewenww:0,Brqi8qb:0,zz3kca:0,low6xx:"fjt56wq",d0s10n:0,wea7l5:0,olu5tv:0,g5nsvh:0,Bqvnfwh:"f1n9m442"},horizontal:{Bqenvij:"f1yfdkfd",a9b677:"fly5x3f"},vertical:{Bqenvij:"f1l02sjl",a9b677:"f174ca62",Biqzhck:"f1r7j8g6",kgocjf:["f1va4sj6","f1r2v9sp"]}},{d:[".f1k6fduh{cursor:pointer;}",".fk73vx1{opacity:0;}",".f16hsg94{grid-row-start:1;}",".f1nzqi2z{grid-row-end:-1;}",".fwpfdsa{grid-column-start:1;}",".fuur7zz{grid-column-end:-1;}",[".f1mk8lai{padding:0;}",{p:-1}],[".f1s184ao{margin:0;}",{p:-1}],".f1yfdkfd{height:var(--fui-Slider__thumb--size);}",".fly5x3f{width:100%;}",".f1l02sjl{height:100%;}",".f174ca62{width:var(--fui-Slider__thumb--size);}",".f1r7j8g6{writing-mode:vertical-lr;}",".f1va4sj6{direction:rtl;}",".f1r2v9sp{direction:ltr;}"],i:[[".f1nq8t98:focus-visible~.fui-ColorSlider__thumb{border:2px solid var(--colorStrokeFocus2);}",{p:-2}],[".fjt56wq:focus-visible~.fui-ColorSlider__thumb{outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);}",{p:-1}],[".f1n9m442:focus-visible~.fui-ColorSlider__thumb{border-radius:var(--borderRadiusCircular);}",{p:-1}]]}),nR=e=>{const t=QP(),r=ZP(),n=eR(),a=tR(),s=oR(),c=rR(),u=JP(),f=e.vertical;return e.root.className=Q(zl.root,t,f?r.vertical:r.horizontal,e.root.className),e.rail.className=Q(zl.rail,n.rail,u[e.channel||"hue"],c[e.shape||"rounded"],f?n.vertical:n.horizontal,e.rail.className),e.thumb.className=Q(zl.thumb,a.thumb,f?a.vertical:a.horizontal,e.thumb.className),e.input.className=Q(zl.input,s.input,f?s.vertical:s.horizontal,e.input.className),e},iR={requestChange:()=>{},color:void 0,shape:"rounded"},cb=Lr(void 0),aR=cb.Provider,fi=e=>eo(cb,(t=iR)=>e(t)),$d=0,ub=100,db=360,fb=Bl("#FFF").toHsv(),sR=(e,t,r)=>r===t?0:(e-t)/(r-t)*100;function Ud({h:e=0,s:t=0,v:r=0,a:n=1}){return{h:e,s:t,v:r,a:n}}function Gd(e,t="hue"){return oa(e,$d,t==="hue"?db:ub)}function pb(e,t){return t[e]||t.hue}const lR=(e,t)=>{"use no memo";const{dir:r}=He(),n=fi(te=>te.requestChange),a=fi(te=>te.color),s=fi(te=>te.shape),c=yo({props:e,primarySlotTagName:"input",excludedPropNames:["onChange","color"]}),{color:u,channel:f="hue",onChange:p=n,shape:g=s,vertical:v,root:x,input:w,rail:S,thumb:k}=e,B=u||a,z=Bl(B).toHsl(),[P,j]=Bt({defaultState:e.defaultColor,state:B,initialState:fb}),N=f==="hue"?db:ub,M={hue:Gd(P.h),saturation:Gd(P.s*100),value:Gd(P.v*100)},C=pb(f,M),I=sR(C,$d,N),A=w?.onChange,ae=ce(te=>{const W=Number(te.target.value),X=pb(f,{hue:()=>Ud({...B,h:W}),saturation:()=>Ud({...B,s:W/100}),value:()=>Ud({...B,v:W/100})})();j(X),A?.(te),p?.(te,{type:"change",event:te,color:X})}),de={[jl.sliderDirectionVar]:v?"180deg":r==="ltr"?"-90deg":"90deg",[jl.sliderProgressVar]:`${I}%`,[jl.thumbColorVar]:f==="hue"?`hsl(${C}, 100%, 50%)`:Bl(B).toRgbString(),[jl.railColorVar]:f==="hue"?`hsl(${z.h} ${z.s*100}%, ${z.l*100}%)`:`hsl(${z.h} 100%, 50%)`},ee={shape:g,vertical:v,channel:f,components:{input:"input",rail:"div",root:"div",thumb:"div"},root:me(x,{defaultProps:{role:"group",...c.root},elementType:"div"}),input:me(w,{defaultProps:{id:pt("slider-",e.id),ref:t,min:$d,max:N,tabIndex:0,"aria-orientation":v?"vertical":"horizontal",...c.primary,type:"range"},elementType:"input"}),rail:me(S,{elementType:"div"}),thumb:me(k,{elementType:"div"})};return ee.root.style={...de,...ee.root.style},ee.input.value=C,ee.input.onChange=ae,ee},cR=e=>Le(e.root,{children:[J(e.input,{}),J(e.rail,{}),J(e.thumb,{})]}),hb=y.forwardRef((e,t)=>{const r=lR(e,t);return nR(r),Pe("useColorSliderStyles_unstable")(r),cR(r)});hb.displayName="ColorSlider";const uR=(e,t)=>{const{color:r,onColorChange:n,shape:a,...s}=e,c=ce((u,f)=>{n?.(u,{type:"change",event:u,color:f.color})});return{components:{root:"div"},root:me(rt("div",{ref:t,...s}),{elementType:"div"}),color:r,requestChange:c,shape:a}},dR=(e,t)=>J(aR,{value:t.colorPicker,children:J(e.root,{children:e.root.children})}),fR={root:"fui-ColorPicker"},pR=le({root:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",i8kkvl:0,Belr9w4:0,rmohyg:"f7e3wsx"}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",[".f7e3wsx{gap:var(--spacingVerticalXS);}",{p:-1}]]}),hR=e=>{const t=pR();return e.root.className=Q(fR.root,t.root,e.root.className),e},gR=e=>{const{color:t,shape:r,requestChange:n}=e;return{colorPicker:y.useMemo(()=>({requestChange:n,color:t,shape:r}),[n,t,r])}},gb=y.forwardRef((e,t)=>{const r=uR(e,t),n=gR(r);return hR(r),Pe("useColorPickerStyles_unstable")(r),dR(r,n)});gb.displayName="ColorPicker";const _l={root:"fui-ColorArea",thumb:"fui-ColorArea__thumb",inputX:"fui-ColorArea__inputX",inputY:"fui-ColorArea__inputY"},Cl={areaXProgressVar:"--fui-AreaX--progress",areaYProgressVar:"--fui-AreaY--progress",thumbColorVar:"--fui-Area__thumb--color",mainColorVar:"--fui-Area--main-color"},mR=ze("r77w3t7","r9og4es",[".r77w3t7{position:relative;border:1px solid var(--colorNeutralStroke1);background:linear-gradient(to bottom, transparent, #000),linear-gradient(to right, #fff, transparent),var(--fui-Area--main-color);forced-color-adjust:none;display:inline-grid;touch-action:none;align-items:start;justify-items:start;--fui-Slider__thumb--size:20px;min-width:300px;min-height:300px;box-sizing:border-box;margin-bottom:var(--spacingVerticalSNudge);}",".r9og4es{position:relative;border:1px solid var(--colorNeutralStroke1);background:linear-gradient(to bottom, transparent, #000),linear-gradient(to left, #fff, transparent),var(--fui-Area--main-color);forced-color-adjust:none;display:inline-grid;touch-action:none;align-items:start;justify-items:start;--fui-Slider__thumb--size:20px;min-width:300px;min-height:300px;box-sizing:border-box;margin-bottom:var(--spacingVerticalSNudge);}"]),vR=le({thumb:{qhf8xq:"f1euv43f",a9b677:"f174ca62",Bqenvij:"f1yfdkfd",Bkecrkj:"f1aehjj5",oeaueh:"f1s6fcnf",Bvjb7m6:"fdgv6k0",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9",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:"f1lvq45z",E5pizo:"f1whvlc6",De3pzq:"fqogvx2",Bz10aip:["f1g1iug4","f11okln6"],oyh7mz:["f1r4bsg1","fwsk87b"],B5kzvoi:"f1rtkqdg",Brfgrao:"f1j7ml58",lawp4y:0,Fbdkly:0,mdwyqc:0,Bciustq:0,gc50h5:"f1abv9ik",r59vdv:0,Budzafs:0,ck0cow:0,n07z76:0,Gng75u:"fielpny",Bcvre1j:"fyl8oag",Ftih45:"fzhtfnv",Bcgcnre:0,Bqjgrrk:0,qa3bma:0,y0oebl:0,Biqmznv:0,Bm6vgfq:0,Bbv0w2i:0,uvfttm:0,eqrjj:0,Bk5zm6e:0,m598lv:0,B4f6apu:0,ydt019:0,Bq4z7u6:0,Bdkvgpv:0,B0qfbqy:0,kj8mxx:"f3i7wkk"},focusIndicator:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",Bssx7fj:"f1b1k54r",uh7if5:["f4ne723","fqqcjud"],clntm0:"fh7aioi",Dlk2r6:["fqqcjud","f4ne723"],h6p2u:"f1ufm4qn",I6qiy5:["f1qnwcb4","fgrk5zm"],yzno9d:"fi52z01",By0wis0:["fgrk5zm","f1qnwcb4"],B2j2mmj:"ffht0p2",wigs8:"f1p0ul1q",pbfy6t:"f1c901ms",B0v4ure:"f1alokd7",Byrf0fs:0,Bsiemmq:0,Bwckmig:0,skfxo0:0,Iidy0u:0,B98u21t:0,Bvwlmkc:0,jo1ztg:0,Ba1iezr:0,Blmvk6g:0,B24cy0v:0,Bil7v7r:0,Br3gin4:0,nr063g:0,ghq09:0,Bbgo44z:0,Bseh09z:"f1i978nd",az1dzo:0,Ba3ybja:0,B6352mv:0,vppk2z:0,Biaj6j7:"f16hcqkr",B2pnrqr:"f1tye2sp",B29w5g4:["flw7qy0","f1t01kh7"],Bhhzhcn:"frujvlw",Bec0n69:["f1t01kh7","flw7qy0"]}},{d:[".f1euv43f{position:absolute;}",".f174ca62{width:var(--fui-Slider__thumb--size);}",".f1yfdkfd{height:var(--fui-Slider__thumb--size);}",".f1aehjj5{pointer-events:none;}",".f1s6fcnf{outline-style:none;}",".fdgv6k0{forced-color-adjust:none;}",[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".f1lvq45z{border:var(--strokeWidthThin) solid var(--colorNeutralForeground4);}",{p:-2}],".f1whvlc6{box-shadow:var(--shadow4);}",".fqogvx2{background-color:var(--fui-Area__thumb--color);}",".f1g1iug4{transform:translate(-50%, 50%);}",".f11okln6{transform:translate(50%, 50%);}",".f1r4bsg1{left:var(--fui-AreaX--progress);}",".fwsk87b{right:var(--fui-AreaX--progress);}",".f1rtkqdg{bottom:var(--fui-AreaY--progress);}",".f1j7ml58::before{position:absolute;}",[".f1abv9ik::before{inset:0px;}",{p:-1}],[".fielpny::before{border-radius:var(--borderRadiusCircular);}",{p:-1}],".fyl8oag::before{box-sizing:border-box;}",".fzhtfnv::before{content:'';}",[".f3i7wkk::before{border:var(--strokeWidthThick) solid var(--colorNeutralBackground1);}",{p:-2}],".f1b1k54r[data-fui-focus-within]:focus-within{border-top-color:transparent;}",".f4ne723[data-fui-focus-within]:focus-within{border-right-color:transparent;}",".fqqcjud[data-fui-focus-within]:focus-within{border-left-color:transparent;}",".fh7aioi[data-fui-focus-within]:focus-within{border-bottom-color:transparent;}",'.ffht0p2[data-fui-focus-within]:focus-within::after{content:"";}',".f1p0ul1q[data-fui-focus-within]:focus-within::after{position:absolute;}",".f1c901ms[data-fui-focus-within]:focus-within::after{pointer-events:none;}",".f1alokd7[data-fui-focus-within]:focus-within::after{z-index:1;}",[".f1i978nd[data-fui-focus-within]:focus-within::after{border:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}",{p:-2}],[".f16hcqkr[data-fui-focus-within]:focus-within::after{border-radius:var(--borderRadiusCircular);}",{p:-1}],".f1tye2sp[data-fui-focus-within]:focus-within::after{top:calc(var(--strokeWidthThick) * -1);}",".flw7qy0[data-fui-focus-within]:focus-within::after{right:calc(var(--strokeWidthThick) * -1);}",".f1t01kh7[data-fui-focus-within]:focus-within::after{left:calc(var(--strokeWidthThick) * -1);}",".frujvlw[data-fui-focus-within]:focus-within::after{bottom:calc(var(--strokeWidthThick) * -1);}"],f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],m:[["@media (forced-colors: active){.f1ufm4qn[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1qnwcb4[data-fui-focus-within]:focus-within::after{border-right-color:Highlight;}.fgrk5zm[data-fui-focus-within]:focus-within::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fi52z01[data-fui-focus-within]:focus-within::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}]]}),bR=le({input:{B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",qhf8xq:"f1euv43f",Bkecrkj:"f1aehjj5",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],abs64n:"fk73vx1",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",a9b677:"fly5x3f",Bqenvij:"f1l02sjl"}},{d:[[".f1a3p1vp{overflow:hidden;}",{p:-1}],".f1euv43f{position:absolute;}",".f1aehjj5{pointer-events:none;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".fk73vx1{opacity:0;}",[".f1mk8lai{padding:0;}",{p:-1}],[".f1s184ao{margin:0;}",{p:-1}],".fly5x3f{width:100%;}",".f1l02sjl{height:100%;}"]}),yR=le({rounded:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5"},square:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1fabniw"}},{d:[[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f1fabniw{border-radius:var(--borderRadiusNone);}",{p:-1}]]}),xR=e=>{const t=mR(),r=vR(),n=bR(),a=yR();return e.root.className=Q(_l.root,t,a[e.shape||"rounded"],e.root.className),e.thumb.className=Q(_l.thumb,r.thumb,r.focusIndicator,e.thumb.className),e.inputX.className=Q(_l.inputX,n.input,e.inputX.className),e.inputY.className=Q(_l.inputY,n.input,e.inputY.className),e};function wR(e,t){const r=e.getBoundingClientRect(),n=mb((t.clientX-r.left)/r.width),a=mb(1-(t.clientY-r.top)/r.height);return{x:oa(n,0,1),y:oa(a,0,1)}}function mb(e){return Math.round(e*100)/100}const kR=(e,t)=>{const{targetDocument:r}=He(),n=y.useRef(null),a=y.useRef(null),s=y.useRef(null),c=ua(),u=fi(X=>X.requestChange),f=fi(X=>X.color),p=fi(X=>X.shape),{onChange:g=u,shape:v=p,inputX:x,inputY:w,thumb:S,color:k,...B}=e,[z,P]=Bt({defaultState:e.defaultColor,state:k||f,initialState:fb}),j=Math.round(z.s*100),N=Math.round(z.v*100),[M,C]=y.useState(null),I=ce(X=>{if(!n.current)return;const O=wR(n.current,X),Z={...z,s:O.x,v:O.y};P(Z),g?.(X,{type:"change",event:X,color:Z})}),A=y.useCallback(X=>{I(X)},[I]),ae=ce(()=>{r?.removeEventListener("pointermove",A)}),de=ce(X=>{X.stopPropagation(),X.preventDefault(),I(X.nativeEvent),r?.addEventListener("pointermove",A),r?.addEventListener("pointerup",ae,{once:!0})}),ee=ce(X=>{const O=Number(X.target.value)/100,Z={...z,...X.target===a.current&&{s:O},...X.target===s.current&&{v:O}};P(Z),g?.(X,{type:"change",event:X,color:Z})}),te=ce(X=>{let O=0,Z=0,q="x";switch(X.key){case"ArrowUp":X.preventDefault(),q="y",Z=1;break;case"ArrowDown":X.preventDefault(),q="y",Z=-1;break;case"ArrowLeft":X.preventDefault(),q="x",O=-1;break;case"ArrowRight":X.preventDefault(),q="x",O=1;break}if(O===0&&Z===0)return;const G={...z,s:Math.min(Math.max(z.s+O/100,0),1),v:Math.min(Math.max(z.v+Z/100,0),1)};P(G),C(q),g?.(X,{type:"change",event:X,color:G})}),W={[Cl.areaXProgressVar]:`${j}%`,[Cl.areaYProgressVar]:`${N}%`,[Cl.thumbColorVar]:Bl(z).toRgbString(),[Cl.mainColorVar]:`hsl(${z.h}, 100%, 50%)`},Y={shape:v,components:{inputX:"input",inputY:"input",root:"div",thumb:"div"},root:me(rt("div",{ref:t,...B}),{elementType:"div"}),inputX:me(x,{defaultProps:{id:pt("sliderX-"),type:"range",...M&&{tabIndex:M==="x"?0:-1}},elementType:"input"}),inputY:me(w,{defaultProps:{id:pt("sliderY-"),type:"range",tabIndex:M&&M==="y"?0:-1},elementType:"input"}),thumb:me(S,{elementType:"div"})};return Y.root.ref=Oe(Y.root.ref,n),Y.thumb.ref=Oe(Y.thumb.ref,c),Y.inputX.ref=Oe(Y.inputX.ref,a),Y.inputY.ref=Oe(Y.inputY.ref,s),Y.root.style={...Y.root.style,...W},Y.root.onPointerDown=ce(Re(Y.root.onPointerDown,de)),Y.root.onKeyDown=ce(Re(Y.root.onKeyDown,te)),Y.inputX.onChange=ce(Re(Y.inputX.onChange,ee)),Y.inputY.onChange=ce(Re(Y.inputY.onChange,ee)),Y.inputX.value=j,Y.inputY.value=N,Y},SR=e=>J(e.root,{children:Le(e.thumb,{children:[J(e.inputX,{}),J(e.inputY,{})]})}),vb=y.forwardRef((e,t)=>{const r=kR(e,t);return xR(r),Pe("useColorAreaStyles_unstable")(r),SR(r)});vb.displayName="ColorArea";const BR=ut({root:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:T.spacingVerticalM,height:"100vh",padding:T.spacingHorizontalXXL,textAlign:"center"},message:{color:T.colorNeutralForeground3,maxWidth:"480px"}});class zR extends y.Component{state={error:null};static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,r){console.error("Theme Studio crashed:",t,r)}handleReset=()=>{this.setState({error:null})};render(){return this.state.error?m.jsx(jR,{error:this.state.error,onReset:this.handleReset}):this.props.children}}function jR({error:e,onReset:t}){const r=BR();return m.jsxs("div",{className:r.root,children:[m.jsx(Zz,{fontSize:40,color:T.colorPaletteRedForeground1}),m.jsx(Ad,{children:"Something went wrong"}),m.jsx(Ie,{className:r.message,children:e.message||"An unexpected error occurred while rendering Theme Studio."}),m.jsx(Me,{appearance:"primary",onClick:t,children:"Try again"})]})}const pi=["darker70","darker60","darker50","darker40","darker30","darker20","darker10","primary","lighter10","lighter20","lighter30","lighter40","lighter50","lighter60","lighter70","lighter80"];function io(e,t,r){return Math.min(r,Math.max(t,e))}function hi(e){const t=e.replace("#",""),r=t.length===3?t.split("").map(a=>a+a).join(""):t,n=parseInt(r,16);if(r.length!==6||Number.isNaN(n))throw new Error(`Invalid HEX colour: "${e}"`);return{r:n>>16&255,g:n>>8&255,b:n&255}}function gi(e,t,r){const n=a=>io(Math.round(a),0,255).toString(16).padStart(2,"0");return`#${n(e)}${n(t)}${n(r)}`.toUpperCase()}function Nl(e,t,r){const n=e/255,a=t/255,s=r/255,c=Math.max(n,a,s),u=Math.min(n,a,s),f=(c+u)/2;if(c===u)return{h:0,s:0,l:f*100};const p=c-u,g=f>.5?p/(2-c-u):p/(c+u);let v;switch(c){case n:v=(a-s)/p+(a<s?6:0);break;case a:v=(s-n)/p+2;break;default:v=(n-a)/p+4}return v*=60,{h:v,s:g*100,l:f*100}}function bb(e,t,r){const n=(e%360+360)%360/360,a=io(t,0,100)/100,s=io(r,0,100)/100;if(a===0){const p=s*255;return{r:p,g:p,b:p}}const c=s<.5?s*(1+a):s+a-s*a,u=2*s-c,f=p=>{let g=p;return g<0&&(g+=1),g>1&&(g-=1),g<1/6?u+(c-u)*6*g:g<1/2?c:g<2/3?u+(c-u)*(2/3-g)*6:u};return{r:f(n+1/3)*255,g:f(n)*255,b:f(n-1/3)*255}}const _R=/^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;function yb(e){return _R.test(e.trim())}function Xd(e){const{r:t,g:r,b:n}=hi(e.trim());return gi(t,r,n)}function xb(e){const{r:t,g:r,b:n}=hi(e),a=t/255,s=r/255,c=n/255,u=Math.max(a,s,c),f=Math.min(a,s,c),p=u-f;let g=0;if(p!==0)switch(u){case a:g=((s-c)/p+(s<c?6:0))*60;break;case s:g=((c-a)/p+2)*60;break;default:g=((a-s)/p+4)*60}return{h:g,s:u===0?0:p/u,v:u}}function CR(e){const t=(e.h%360+360)%360,r=io(e.s,0,1),n=io(e.v,0,1),a=n*r,s=a*(1-Math.abs(t/60%2-1)),c=n-a,u=Math.floor(t/60)%6,[f,p,g]=[[a,s,0],[s,a,0],[0,a,s],[0,s,a],[s,0,a],[a,0,s]][u];return gi((f+c)*255,(p+c)*255,(g+c)*255)}function NR(e){const{r:t,g:r,b:n}=hi(e);return Nl(t,r,n)}function wb(e){const{r:t,g:r,b:n}=bb(e.h,e.s,e.l);return gi(t,r,n)}const TR=[.12,.25,.38,.5,.63,.76,.88],PR=[.14,.34,.52,.66,.76,.86,.93,1],RR=6,MR=99;function Tl(e){const{basePaletteColor:t,lockPrimary:r,vibrancy:n,hueTorsion:a}=e,s=NR(t),c=io(n,-100,100)/100,u=io(a,-100,100)/100*30,f=io(s.l,0,100),p=Math.min(RR,f*.5),g=Math.max(MR,f+(100-f)*.5),v={};return pi.forEach((x,w)=>{if(x==="primary"){v[x]=r?t.toUpperCase():wb(s);return}const S=Math.abs(w-7)/8,k=w>7,B=k?f+(g-f)*PR[w-8]:p+(f-p)*TR[w],z=k?c*40*S:0,P=io(s.s+z,0,100),j=k?u*S:0;v[x]=wb({h:s.h+j,s:P,l:B})}),v}function kb(e,t){return{...e,...t}}const Ca=4.5;function Kd(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Pl(e){const{r:t,g:r,b:n}=hi(e),a=Kd(t),s=Kd(r),c=Kd(n);return .2126*a+.7152*s+.0722*c}function Sb(e,t){const r=Pl(e),n=Pl(t),a=Math.max(r,n),s=Math.min(r,n);return(a+.05)/(s+.05)}const ER={darker70:10,darker60:20,darker50:30,darker40:40,darker30:50,darker20:60,darker10:70,primary:80,lighter10:90,lighter20:100,lighter30:110,lighter40:120,lighter50:130,lighter60:140,lighter70:150,lighter80:160};function IR(e){const t={};for(const r of pi)t[ER[r]]=e[r];return t}const FR="#0F6CBD",AR="#FFFFFF",DR="#242424";function Rl(e){return Pl(e)>.4?DR:AR}function Yd(e,t){const{r,g:n,b:a}=hi(e),s=Nl(r,n,a),c=Math.min(100,Math.max(0,s.l+t)),u=bb(s.h,s.s,c);return gi(u.r,u.g,u.b)}function qR(e,t){const r=e?.background?.trim()||t,n=Pl(r)>.4?-1:1,a=e?.foreground?.trim()||Rl(r),s=e?.backgroundHover?.trim()||Yd(r,n*8),c=e?.backgroundPressed?.trim()||Yd(r,n*14),u=e?.backgroundSelected?.trim()||Yd(r,n*20);return{background:r,foreground:a,backgroundHover:s,foregroundHover:e?.foregroundHover?.trim()||Rl(s),backgroundPressed:c,foregroundPressed:e?.foregroundPressed?.trim()||Rl(c),backgroundSelected:u,foregroundSelected:e?.foregroundSelected?.trim()||Rl(u)}}function OR(e){const t=e.replace(/[;{}<>\\]/g,"");return["'",'"'].reduce((n,a)=>(n.split(a).length-1)%2===0?n:n.split(a).join(""),t).trim()}function Bb(e){const t=e.basePaletteColor??FR,r=Tl({basePaletteColor:t,lockPrimary:e.lockPrimary,vibrancy:e.vibrancy,hueTorsion:e.hueTorsion}),n=kb(r,e.paletteOverrides),a=IR(n),s=Rg(a),c=OR(e.font??"")||s.fontFamilyBase;return{fluentTheme:{...s,fontFamilyBase:c},brand:a,headerColors:qR(e.appHeaderColors,n.primary),fontFamily:c}}const Qd="Dynamics 365";function Ml(){return{kind:"customTheme",basePaletteColor:void 0,lockPrimary:!1,font:void 0,vibrancy:0,hueTorsion:0,logoWebResource:void 0,logoTooltip:void 0,paletteOverrides:{},appHeaderColors:void 0,unknownAttributes:{},unknownAppHeaderColorsAttributes:{}}}function zb(){return{kind:"appHeaderColorsOnly",lockPrimary:!1,vibrancy:0,hueTorsion:0,paletteOverrides:{},appHeaderColors:{background:""},unknownAttributes:{},unknownAppHeaderColorsAttributes:{}}}const jb=["Segoe UI","Arial","Helvetica","Georgia","Times New Roman","Verdana","Tahoma","Trebuchet MS","Courier New"];function El(e,t,r){return()=>({...Ml(),basePaletteColor:e,appHeaderColors:{background:t,foreground:r}})}const _b=[{id:"default",label:"Power Platform blue",description:"The out-of-the-box modern look, as a starting point.",create:El("#0F6CBD","#0F6CBD","#FFFFFF")},{id:"forest",label:"Forest green",description:"A deep green palette with a matching dark header.",create:El("#12783F","#12783F","#FFFFFF")},{id:"plum",label:"Plum",description:"A purple palette with a high-contrast header.",create:El("#7A3B96","#4B1F5E","#FFFFFF")},{id:"graphite",label:"Graphite",description:"A neutral palette with a near-black header.",create:El("#5D5D5D","#1F1F1F","#FFFFFF")}];function Cb(e=Ml()){return{present:e,past:[],future:[],baseline:e}}function Nb(e,t){return JSON.stringify(e)===JSON.stringify(t)}function HR(e){return!Nb(e.present,e.baseline)}function Lt(e,t){return Nb(e.present,t)?e:{...e,present:t,past:[...e.past,e.present].slice(-50),future:[]}}function mi(e){const t=e?.trim();return t||void 0}function LR(e){return e?.trim()?e:void 0}function Zd(e,t,r){const n={...e??{background:""}},a=mi(r);return a===void 0?t==="background"?n.background="":delete n[t]:n[t]=a,n}function VR(e,t){const r=e.present;switch(t.type){case"setKind":{if(t.kind===r.kind)return e;const n=t.kind==="appHeaderColorsOnly"?{...zb(),appHeaderColors:r.appHeaderColors??{background:""},unknownAppHeaderColorsAttributes:r.unknownAppHeaderColorsAttributes}:{...r,kind:"customTheme"};return Lt(e,n)}case"setBasePaletteColor":return Lt(e,{...r,basePaletteColor:mi(t.value)});case"setLockPrimary":return Lt(e,{...r,lockPrimary:t.value});case"setFont":return Lt(e,{...r,font:LR(t.value)});case"setVibrancy":return Lt(e,{...r,vibrancy:t.value});case"setHueTorsion":return Lt(e,{...r,hueTorsion:t.value});case"setLogoWebResource":return Lt(e,{...r,logoWebResource:mi(t.value)});case"setLogoTooltip":return Lt(e,{...r,logoTooltip:mi(t.value)});case"setPaletteOverride":{const n={...r.paletteOverrides},a=mi(t.value);return a===void 0?delete n[t.slot]:n[t.slot]=a,Lt(e,{...r,paletteOverrides:n})}case"resetPaletteOverrides":return Lt(e,{...r,paletteOverrides:{}});case"setAppHeaderColor":return Lt(e,{...r,appHeaderColors:Zd(r.appHeaderColors,t.attribute,t.value)});case"setAppHeaderColorsEnabled":return t.enabled?r.appHeaderColors?e:Lt(e,{...r,appHeaderColors:{background:"#0F6CBD",foreground:"#FFFFFF"}}):r.kind==="appHeaderColorsOnly"?e:Lt(e,{...r,appHeaderColors:void 0});case"applyExtractedColors":{const{patch:n}=t,a={...r};if(n.basePaletteColor!==void 0&&r.kind==="customTheme"&&(a.basePaletteColor=mi(n.basePaletteColor)??r.basePaletteColor),n.paletteOverrides&&Object.keys(n.paletteOverrides).length>0&&r.kind==="customTheme"&&(a.paletteOverrides={...r.paletteOverrides,...n.paletteOverrides}),n.appHeaderBackground!==void 0||n.appHeaderForeground!==void 0){let s=r.appHeaderColors;n.appHeaderBackground!==void 0&&(s=Zd(s,"background",n.appHeaderBackground)),n.appHeaderForeground!==void 0&&(s=Zd(s,"foreground",n.appHeaderForeground)),a.appHeaderColors=s}return Lt(e,a)}case"load":return Cb(t.model);case"replace":return Lt(e,t.model);case"markSaved":return{...e,baseline:e.present};case"undo":{if(e.past.length===0)return e;const n=e.past[e.past.length-1];return{...e,present:n,past:e.past.slice(0,-1),future:[e.present,...e.future]}}case"redo":{if(e.future.length===0)return e;const[n,...a]=e.future;return{...e,present:n,past:[...e.past,e.present].slice(-50),future:a}}default:return e}}const Jd="#0F6CBD",Tb=y.createContext(void 0);function WR({children:e,initialModel:t}){const[r,n]=y.useReducer(VR,t,Cb),a=r.present,s=y.useMemo(()=>{try{return Tl({basePaletteColor:a.basePaletteColor??Jd,lockPrimary:a.lockPrimary,vibrancy:a.vibrancy,hueTorsion:a.hueTorsion})}catch{return Tl({basePaletteColor:Jd,lockPrimary:!1,vibrancy:0,hueTorsion:0})}},[a.basePaletteColor,a.lockPrimary,a.vibrancy,a.hueTorsion]),c=y.useMemo(()=>kb(s,a.paletteOverrides),[s,a.paletteOverrides]),u=y.useMemo(()=>{try{return Bb(a)}catch{return Bb({...a,basePaletteColor:Jd,paletteOverrides:{}})}},[a]),f=y.useMemo(()=>({state:r,model:a,dispatch:n,dirty:HR(r),canUndo:r.past.length>0,canRedo:r.future.length>0,generatedPalette:s,resolvedPalette:c,previewTheme:u}),[r,s,c,u]);return m.jsx(Tb.Provider,{value:f,children:e})}function gr(){const e=y.useContext(Tb);if(!e)throw new Error("useThemeModel must be used within a <ThemeProvider>.");return e}const $R=["connection:created","connection:updated","connection:deleted"];function UR(){const[e,t]=y.useState(null),[r,n]=y.useState(!0),a=y.useCallback(async()=>{try{const s=await window.toolboxAPI.connections.getActiveConnection();t(s)}catch(s){console.error("Error refreshing connection:",s),t(null)}finally{n(!1)}},[]);return y.useEffect(()=>{a()},[a]),GR(y.useCallback(s=>{$R.includes(s)&&a()},[a])),{connection:e,isLoading:r,refreshConnection:a}}function GR(e){const t=y.useRef(e);t.current=e,y.useEffect(()=>{const r=(n,a)=>{try{t.current(a.event,a.data)}catch(s){console.error("Error handling the ToolBox event",a.event,s)}};return window.toolboxAPI.events.on(r),()=>{window.toolboxAPI.events.off(r)}},[])}function XR(){const[e,t]=y.useState("light");return y.useEffect(()=>{let r=!1;return(async()=>{try{const a=await window.toolboxAPI.utils.getCurrentTheme();r||t(a==="dark"?"dark":"light")}catch(a){console.error("Error getting current theme:",a)}})(),()=>{r=!0}},[]),e}function ef(e,t){const[r,n]=y.useState(t);y.useEffect(()=>{let s=!1;return(async()=>{try{const c=await window.toolboxAPI.settings.get(e);!s&&c!==void 0&&c!==null&&n(c)}catch(c){console.error(`Error reading the "${e}" setting:`,c)}})(),()=>{s=!0}},[e]);const a=y.useCallback(s=>{n(s),window.toolboxAPI.settings.set(e,s).catch(c=>console.error(`Error saving the "${e}" setting:`,c))},[e]);return[r,a]}class ao extends Error{constructor(t,r){super(t),this.cause=r,this.name="DataverseOperationError"}cause}function Ze(e){return typeof e=="string"?e:String(e??"")}function vi(e){return e instanceof Error?e.message:String(e)}async function Eo(e,t){try{return await t()}catch(r){throw new ao(`${e} failed: ${vi(r)}`,r)}}function Pb(e){return e.replace(/'/g,"''")}async function KR(){let e;try{e=await window.dataverseAPI.queryData(`solutions?$select=solutionid,uniquename,friendlyname,version&$expand=publisherid($select=customizationprefix,friendlyname)&$filter=${encodeURIComponent("ismanaged eq false and isvisible eq true")}&$orderby=friendlyname&$top=250`)}catch(t){throw new ao(`Loading the solution list failed: ${vi(t)}`,t)}return e.value.map(t=>{const r=t.publisherid??{};return{id:Ze(t.solutionid),uniqueName:Ze(t.uniquename),friendlyName:Ze(t.friendlyname)||Ze(t.uniquename),version:typeof t.version=="string"?t.version:void 0,publisherPrefix:Ze(r.customizationprefix),publisherName:typeof r.friendlyname=="string"?r.friendlyname:void 0}}).filter(t=>t.uniqueName!=="Active"&&t.uniqueName!=="Default")}const YR={listWritableSolutions:KR},QR=61;function tf(e){return{id:Ze(e.webresourceid),name:Ze(e.name),displayName:typeof e.displayname=="string"?e.displayname:void 0,webResourceType:Number(e.webresourcetype??0),isManaged:e.ismanaged===!0}}async function ZR(e,t){const n=[`(${e.map(u=>`webresourcetype eq ${u}`).join(" or ")})`],a=t?.trim();a&&n.push(`contains(name,'${Pb(a)}')`);const s=`webresourceset?$select=webresourceid,name,displayname,webresourcetype,ismanaged&$filter=${encodeURIComponent(n.join(" and "))}&$orderby=name&$top=250`;return(await Eo("Listing web resources",()=>window.dataverseAPI.queryData(s))).value.map(tf)}async function JR(e){const t=await Eo("Reading the web resource",()=>window.dataverseAPI.retrieve("webresource",e,["webresourceid","name","displayname","webresourcetype","ismanaged","content"]));return{...tf(t),contentBase64:Ze(t.content)}}async function eM(e){const t=`webresourceset?$select=webresourceid,name,displayname,webresourcetype,ismanaged&$filter=${encodeURIComponent(`name eq '${Pb(e.trim())}'`)}&$top=1`,n=(await Eo("Looking up the web resource",()=>window.dataverseAPI.queryData(t))).value[0];return n?tf(n):void 0}async function rf(e,t){await Eo(`Adding the web resource to solution "${t}"`,()=>window.dataverseAPI.execute({operationName:"AddSolutionComponent",operationType:"action",parameters:{ComponentId:e,ComponentType:QR,SolutionUniqueName:t,AddRequiredComponents:!1}}))}async function tM(e){const t=await Eo("Creating the web resource",()=>window.dataverseAPI.create("webresource",{name:e.name,displayname:e.displayName,webresourcetype:e.webResourceType,content:e.contentBase64,...e.description?{description:e.description}:{}})),r=Ze(t.id);return await rf(r,e.solutionUniqueName),{id:r,name:e.name,displayName:e.displayName,webResourceType:e.webResourceType,isManaged:!1}}async function rM(e,t,r){if(e.isManaged)throw new ao(`"${e.name}" is a managed web resource and can't be updated. Pick or create an unmanaged one instead.`);await Eo("Updating the web resource",()=>window.dataverseAPI.update("webresource",e.id,{content:t})),await rf(e.id,r)}async function oM(e){await Eo("Publishing the web resource",()=>window.dataverseAPI.execute({operationName:"PublishXml",operationType:"action",parameters:{ParameterXml:`<importexportxml><webresources><webresource>${e}</webresource></webresources></importexportxml>`}}))}async function nM(){await Eo("Publishing all customizations",()=>window.dataverseAPI.publishCustomizations())}const so={listWebResources:ZR,readWebResource:JR,findWebResourceByName:eM,addWebResourceToSolution:rf,createWebResource:tM,updateWebResourceContent:rM,publishWebResource:oM,publishAllCustomizations:nM},Io={customTheme:"Custom theme definition",appHeaderColorsOnly:"Override app header color"};function iM(e,t){return Ze(e.displayname).trim().toLowerCase()===t.toLowerCase()}async function aM(){try{const e=await window.dataverseAPI.queryData("settingdefinitions?$select=settingdefinitionid,uniquename,displayname&$top=500"),t={};for(const n of Object.keys(Io)){const a=e.value.find(s=>iM(s,Io[n]));a&&(t[n]={id:Ze(a.settingdefinitionid),uniqueName:Ze(a.uniquename),displayName:Ze(a.displayname)})}const r=Object.keys(Io).filter(n=>!t[n]);return{settingsReadable:!0,definitions:t,unavailableReason:r.length?`The environment has no setting definition named ${r.map(n=>`"${Io[n]}"`).join(" or ")}.`:void 0}}catch(e){return{settingsReadable:!1,definitions:{},unavailableReason:`The setting definitions could not be read from this environment (${vi(e)}).`}}}async function sM(e,t){const r={kind:t,appValues:{}};try{const n=await bi("organizationsetting","settingdefinition"),a=encodeURIComponent(`_${n.attribute}_value eq ${e.id}`),c=(await window.dataverseAPI.queryData(`organizationsettings?$select=organizationsettingid,value&$filter=${a}&$top=1`)).value[0];c&&(r.environmentValue=Ze(c.value))}catch{}try{const[n,a]=await Promise.all([bi("appsetting","settingdefinition"),bi("appsetting","appmodule")]),s=`_${a.attribute}_value`,c=encodeURIComponent(`_${n.attribute}_value eq ${e.id}`),u=await window.dataverseAPI.queryData(`appsettings?$select=appsettingid,value,${s}&$filter=${c}&$top=250`);for(const f of u.value){const p=Ze(f[s]);p&&(r.appValues[p]=Ze(f.value))}}catch{}return r}function lM(e,t){const r=e[`_${t}_value`]??e[t];return Ze(r).toLowerCase()}async function Rb(e,t,r){const n=t.map(u=>`<attribute name="${u}" />`).join(""),a=r.map(u=>`<condition attribute="${u.attribute}" operator="eq" value="${u.value}" />`).join(""),s=`<fetch top="250"><entity name="${e}">${n}<filter type="and">${a}</filter></entity></fetch>`;return(await window.dataverseAPI.fetchXmlQuery(s)).value}async function Mb(e,t,r){const n=[t,...r.map(p=>p.attribute)],a=await Rb(e,n,r);if(a[0])return Ze(a[0][t]);if(r.length<2)return;const[s,...c]=r,f=(await Rb(e,n,[s])).find(p=>c.every(g=>lM(p,g.attribute)===g.value.toLowerCase()));return f?Ze(f[t]):void 0}async function Eb(e,t,r,n,a){const s=await Mb(e,t,r);if(s){await window.dataverseAPI.update(e,s,a);return}try{await window.dataverseAPI.create(e,n)}catch(c){await window.dataverseAPI.publishCustomizations();const u=await Mb(e,t,r);if(u){await window.dataverseAPI.update(e,u,a);return}try{await window.dataverseAPI.create(e,n)}catch{throw c}}}const Ib=new Map;async function bi(e,t){const r=`${e}.${t}`,n=Ib.get(r);if(n)return n;const s=(await window.dataverseAPI.getEntityRelatedMetadata(e,"ManyToOneRelationships",["ReferencingAttribute","ReferencingEntityNavigationPropertyName","ReferencedEntity"])).value.find(u=>Ze(u.ReferencedEntity).toLowerCase()===t.toLowerCase());if(!s)throw new Error(`No lookup to "${t}" was found on "${e}".`);const c={attribute:Ze(s.ReferencingAttribute),navigationProperty:Ze(s.ReferencingEntityNavigationPropertyName)};return Ib.set(r,c),c}async function cM(e,t){try{const r=await bi("organizationsetting","settingdefinition");await Eb("organizationsetting","organizationsettingid",[{attribute:r.attribute,value:e.id}],{value:t,[`${r.navigationProperty}@odata.bind`]:`/settingdefinitions(${e.id})`},{value:t})}catch(r){throw new ao(`Assigning the theme to the environment failed: ${vi(r)}`,r)}}async function uM(e,t,r){try{const[n,a]=await Promise.all([bi("appsetting","settingdefinition"),bi("appsetting","appmodule")]);await Eb("appsetting","appsettingid",[{attribute:n.attribute,value:e.id},{attribute:a.attribute,value:t}],{value:r,[`${n.navigationProperty}@odata.bind`]:`/settingdefinitions(${e.id})`,[`${a.navigationProperty}@odata.bind`]:`/appmodules(${t})`},{value:r})}catch(n){throw new ao(`Assigning the theme to the app failed: ${vi(n)}`,n)}}const Il={discoverScopeCapabilities:aM,readScopeAssignment:sM,setEnvironmentScope:cM,setAppScope:uM};function dM(e){const t=new TextEncoder().encode(e);return Fl(t)}function fM(e){return new TextDecoder().decode(pM(e))}function Fl(e){let t="";for(let n=0;n<e.length;n+=32768)t+=String.fromCharCode(...e.subarray(n,n+32768));return btoa(t)}function pM(e){const t=atob(e.trim()),r=new Uint8Array(t.length);for(let n=0;n<t.length;n+=1)r[n]=t.charCodeAt(n);return r}const xt={xml:4,png:5,jpg:6,gif:7,ico:10,svg:11},Fb=[xt.png,xt.jpg,xt.gif,xt.ico,xt.svg];function Ab(e){switch(e){case xt.png:return"image/png";case xt.jpg:return"image/jpeg";case xt.gif:return"image/gif";case xt.ico:return"image/x-icon";case xt.svg:return"image/svg+xml";default:return"application/octet-stream"}}function Db(e){switch(e.toLowerCase().split(".").pop()){case"png":return xt.png;case"jpg":case"jpeg":return xt.jpg;case"gif":return xt.gif;case"ico":return xt.ico;case"svg":return xt.svg;default:return}}function hM(e){const t=e.trim();if(!t)return"Enter a name for the web resource.";if(t.length>100)return"The name must be 100 characters or fewer.";if(!/^[A-Za-z0-9_./-]+$/.test(t))return"Only letters, digits, underscore, dot, slash and hyphen are allowed.";if(t.startsWith("/")||t.endsWith("/"))return"The name cannot start or end with a slash."}function gM(e,t){const r=e.trim().replace(/_+$/,""),n=t.trim().replace(/^_+/,"");return r?`${r}_${n}`:n}function mM(e){return fM(e.contentBase64)}function vM(e){return dM(e)}const Al={width:156,height:48},bM=[{name:"Images",extensions:["png","jpg","jpeg","gif","svg","ico"]}];function yM(e){return e.split(/[\\/]/).pop()??e}function qb(e,t){return`data:${Ab(e)};base64,${t}`}function Ob(e){return new Promise(t=>{const r=new Image;r.onload=()=>t(r.naturalWidth&&r.naturalHeight?{width:r.naturalWidth,height:r.naturalHeight}:void 0),r.onerror=()=>t(void 0),r.src=e})}function Hb(e){if(e&&!(e.width===Al.width&&e.height===Al.height))return`This image is ${e.width} × ${e.height} px. The recommended size is ${Al.width} × ${Al.height} px — logos that are too large don't display in the app header.`}async function xM(){const e=await window.toolboxAPI.fileSystem.selectPath({type:"file",title:"Select a logo image",filters:bM});if(!e)return;const t=yM(e),r=Db(t);if(r===void 0)throw new ao(`"${t}" is not a supported image type. Use PNG, JPG, GIF, SVG or ICO.`);const n=await window.toolboxAPI.fileSystem.readBinary(e),a=Fl(new Uint8Array(n)),s=qb(r,a),c=r===xt.ico?void 0:await Ob(s);return{path:e,fileName:t,webResourceType:r,contentBase64:a,dataUri:s,dimensions:c}}async function wM(e){const t=await so.readWebResource(e);if(!Fb.includes(t.webResourceType))throw new ao(`"${t.name}" is not an image web resource.`);return t.contentBase64?qb(t.webResourceType,t.contentBase64):void 0}function kM(e){const t=e.trim(),n=(t.match(/\.[^./]+$/)?.[0]??"").toLowerCase();return`/images/${(n?t.slice(0,-n.length):t).replace(/[^A-Za-z0-9_.-]+/g,"-").replace(/^-+|-+$/g,"")||"app-logo"}${n}`}const Lb="last.solutionUniqueName",Vb=y.createContext(void 0);function Wb(e){return e instanceof Error?e.message:String(e)}function SM({children:e}){const{connection:t,isLoading:r,refreshConnection:n}=UR(),{model:a}=gr(),[s,c]=y.useState([]),[u,f]=y.useState(!1),[p,g]=y.useState(),[v,x]=y.useState(),[w,S]=y.useState(),[k,B]=y.useState(),[z,P]=y.useState(),[j,N]=y.useState(!1),[M,C]=y.useState(),[I,A]=y.useState(),[ae,de]=y.useState(!1),ee=t?.id,te=y.useRef(ee);te.current=ee;const W=y.useCallback(async()=>{if(ee){f(!0),g(void 0);try{const G=await YR.listWritableSolutions(),K=await window.toolboxAPI.settings.get(Lb).catch(()=>{});if(te.current!==ee)return;c(G),x(F=>F??G.find(V=>V.uniqueName===K))}catch(G){te.current===ee&&g(Wb(G))}finally{te.current===ee&&f(!1)}}},[ee]),Y=y.useCallback(async()=>{if(ee){de(!0);try{const G=await Il.discoverScopeCapabilities();te.current===ee&&A(G)}finally{te.current===ee&&de(!1)}}},[ee]),X=y.useRef(ee);y.useEffect(()=>{X.current!==ee&&(X.current=ee,c([]),g(void 0),x(void 0),A(void 0),C(void 0),B(void 0),P(void 0),S(void 0),w&&window.toolboxAPI.utils.showNotification({title:"Environment changed",body:`"${w.resource.name}" was closed because the active connection changed. Your edits are kept and can be saved to the new environment.`,type:"warning"}).catch(()=>{}))},[ee,w]),y.useEffect(()=>{W(),Y()},[W,Y]);const O=y.useCallback(G=>{x(G),G&&window.toolboxAPI.settings.set(Lb,G.uniqueName).catch(()=>{})},[]),Z=y.useCallback((G,K)=>{C(G?{dataUri:G,warning:K}:void 0)},[]);y.useEffect(()=>{if(M){B(M.dataUri),P(M.warning);return}const G=a.logoWebResource?.trim();if(!G||!ee){B(void 0),P(void 0);return}let K=!1;return N(!0),(async()=>{try{const F=await so.findWebResourceByName(G);if(K)return;if(!F){B(void 0),P(`No web resource named "${G}" exists in this environment yet.`);return}const V=await wM(F.id);if(K)return;B(V),P(V?Hb(await Ob(V)):void 0)}catch(F){K||(B(void 0),P(Wb(F)))}finally{K||N(!1)}})(),()=>{K=!0}},[a.logoWebResource,ee,M]);const q=y.useMemo(()=>({connection:t,connectionLoading:r,refreshConnection:n,solutions:s,solutionsLoading:u,solutionsError:p,reloadSolutions:W,selectedSolution:v,selectSolution:O,openTheme:w,setOpenTheme:S,logoDataUri:k,logoWarning:z,logoLoading:j,setPendingLogo:Z,scope:I,scopeLoading:ae,refreshScope:Y}),[t,r,n,s,u,p,W,v,O,w,k,z,j,Z,I,ae,Y]);return m.jsx(Vb.Provider,{value:q,children:e})}function Na(){const e=y.useContext(Vb);if(!e)throw new Error("useConfig must be used within a <ConfigProvider>.");return e}const $b=y.createContext(void 0);function Ub({mountRef:e,children:t}){const[r,n]=y.useState(void 0);return y.useEffect(()=>{n(e.current??void 0)},[e]),m.jsx($b.Provider,{value:r,children:t})}function Fo(){return y.useContext($b)}class lo extends Error{constructor(t){super(t),this.name="ThemeXmlParseError"}}const BM=["basePaletteColor","lockPrimary","font","vibrancy","hueTorsion","logoWebResource","logoTooltip",...pi],zM=["background","foreground","backgroundHover","foregroundHover","backgroundPressed","foregroundPressed","backgroundSelected","foregroundSelected"];function Gb(e,t){const r=e.toLowerCase();return t.find(n=>n.toLowerCase()===r)}function Xb(e){const t=[];for(const r of Array.from(e.attributes))t.push({name:r.name,value:r.value});return t}function Kb(e){const t={},r={};for(const{name:n,value:a}of Xb(e)){const s=Gb(n,zM);s?t[s]=a:r[n]=a}return{known:t,unknown:r}}function Yb(e){const r=new DOMParser().parseFromString(e,"application/xml"),n=r.getElementsByTagName("parsererror")[0];if(n)throw new lo(`The theme file isn't valid XML: ${n.textContent?.trim()??"unknown parse error"}`);const a=r.documentElement;if(!a)throw new lo("The theme file is empty.");const s=a.tagName.toLowerCase();if(s==="appheadercolors"){const{known:x,unknown:w}=Kb(a);if(!x.background)throw new lo('The <AppHeaderColors> element is missing its required "background" attribute.');return{kind:"appHeaderColorsOnly",lockPrimary:!1,vibrancy:0,hueTorsion:0,paletteOverrides:{},appHeaderColors:x,unknownAttributes:{},unknownAppHeaderColorsAttributes:w}}if(s!=="customtheme")throw new lo(`Unrecognised root element "<${a.tagName}>". Expected <CustomTheme> or <AppHeaderColors>.`);const c={},u={};for(const{name:x,value:w}of Xb(a)){const S=Gb(x,BM);S?c[S]=w:u[x]=w}const f={};for(const x of pi)c[x]!==void 0&&(f[x]=c[x]);let p,g={};const v=Array.from(a.children).filter(x=>x.tagName.toLowerCase()==="appheadercolors");if(v.length>1)throw new lo("<CustomTheme> may contain at most one <AppHeaderColors> child element.");if(v.length===1){const x=Kb(v[0]);if(!x.known.background)throw new lo('The nested <AppHeaderColors> element is missing its required "background" attribute.');p=x.known,g=x.unknown}return{kind:"customTheme",basePaletteColor:c.basePaletteColor,lockPrimary:c.lockPrimary?.toLowerCase()==="true",font:c.font,vibrancy:c.vibrancy!==void 0?Number(c.vibrancy):0,hueTorsion:c.hueTorsion!==void 0?Number(c.hueTorsion):0,logoWebResource:c.logoWebResource,logoTooltip:c.logoTooltip,paletteOverrides:f,appHeaderColors:p,unknownAttributes:u,unknownAppHeaderColorsAttributes:g}}function of(e,t){for(const[r,n]of Object.entries(t))n!==void 0&&n!==""&&e.setAttribute(r,n)}function Qb(e,t){return{background:e.background,foreground:e.foreground,backgroundHover:e.backgroundHover,foregroundHover:e.foregroundHover,backgroundPressed:e.backgroundPressed,foregroundPressed:e.foregroundPressed,backgroundSelected:e.backgroundSelected,foregroundSelected:e.foregroundSelected,...t}}function nf(e){const t=document.implementation.createDocument(null,null,null);if(e.kind==="appHeaderColorsOnly"){if(!e.appHeaderColors?.background)throw new lo('Cannot serialise: "background" is required on <AppHeaderColors>.');const n=t.createElement("AppHeaderColors");return of(n,Qb(e.appHeaderColors,e.unknownAppHeaderColorsAttributes)),t.appendChild(n),new XMLSerializer().serializeToString(t)}const r=t.createElement("CustomTheme");if(of(r,{basePaletteColor:e.basePaletteColor,lockPrimary:e.lockPrimary?"true":void 0,font:e.font,vibrancy:e.vibrancy!==0?String(e.vibrancy):void 0,hueTorsion:e.hueTorsion!==0?String(e.hueTorsion):void 0,logoWebResource:e.logoWebResource,logoTooltip:e.logoTooltip,...e.paletteOverrides,...e.unknownAttributes}),e.appHeaderColors?.background){const n=t.createElement("AppHeaderColors");of(n,Qb(e.appHeaderColors,e.unknownAppHeaderColorsAttributes)),r.appendChild(n)}return t.appendChild(r),new XMLSerializer().serializeToString(t)}const jM=ut({body:{display:"flex",flexDirection:"column",gap:T.spacingVerticalS,minHeight:"320px"},list:{display:"flex",flexDirection:"column",maxHeight:"320px",overflowY:"auto",border:`1px solid ${T.colorNeutralStroke2}`,borderRadius:T.borderRadiusMedium},item:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"2px",padding:`${T.spacingVerticalXS} ${T.spacingHorizontalS}`,border:"none",borderBottom:`1px solid ${T.colorNeutralStroke3}`,backgroundColor:"transparent",cursor:"pointer",textAlign:"left",fontFamily:"inherit",":hover":{backgroundColor:T.colorNeutralBackground1Hover}},selected:{backgroundColor:T.colorNeutralBackground1Selected},itemName:{color:T.colorNeutralForeground1},hint:{color:T.colorNeutralForeground3}});function Zb({open:e,title:t,types:r,onDismiss:n,onPick:a,mountNode:s}){const c=jM(),[u,f]=y.useState(""),[p,g]=y.useState([]),[v,x]=y.useState(!1),[w,S]=y.useState(),[k,B]=y.useState(),z=r.join(","),P=y.useMemo(()=>z.split(",").map(Number),[z]),j=y.useCallback(async N=>{x(!0),S(void 0);try{g(await so.listWebResources(P,N))}catch(M){S(M instanceof Error?M.message:String(M))}finally{x(!1)}},[P]);return y.useEffect(()=>{e&&(B(void 0),j(u))},[e,j]),m.jsx(bn,{open:e,onOpenChange:(N,M)=>M.open?void 0:n(),children:m.jsx(kn,{mountNode:s,children:m.jsxs(xn,{children:[m.jsx(wn,{children:t}),m.jsxs(Sn,{className:c.body,children:[m.jsx(_r,{value:u,placeholder:"Filter by name",contentBefore:m.jsx(td,{}),onChange:(N,M)=>f(M.value),onKeyDown:N=>{N.key==="Enter"&&j(u)}}),w&&m.jsx(at,{intent:"error",children:m.jsx(st,{children:w})}),v?m.jsx(hr,{size:"small",label:"Loading web resources…"}):m.jsxs("div",{className:c.list,children:[p.length===0&&m.jsx(Ie,{className:c.hint,size:200,children:"No matching web resource was found."}),p.map(N=>m.jsxs("button",{type:"button",className:`${c.item} ${k?.id===N.id?c.selected:""}`,onClick:()=>B(N),onDoubleClick:()=>a(N),children:[m.jsx(Ie,{weight:"semibold",size:200,className:c.itemName,children:N.name}),m.jsxs(Ie,{size:100,className:c.hint,children:[N.displayName||"No display name",N.isManaged?" • managed (read-only)":""]})]},N.id))]})]}),m.jsxs(yn,{children:[m.jsx(Me,{appearance:"secondary",onClick:n,children:"Cancel"}),m.jsx(Me,{appearance:"primary",disabled:!k,onClick:()=>k&&a(k),children:"Select"})]})]})})})}function Jb(e){const t=e.replace(/\r\n/g,`
28
+ `).replace(/\s+$/,"");return t===""?[]:t.split(`
29
+ `)}function _M(e,t){const r=Jb(e),n=Jb(t),a=Array.from({length:r.length+1},()=>new Array(n.length+1).fill(0));for(let f=r.length-1;f>=0;f-=1)for(let p=n.length-1;p>=0;p-=1)a[f][p]=r[f]===n[p]?a[f+1][p+1]+1:Math.max(a[f+1][p],a[f][p+1]);const s=[];let c=0,u=0;for(;c<r.length&&u<n.length;)r[c]===n[u]?(s.push({kind:"context",text:r[c]}),c+=1,u+=1):a[c+1][u]>=a[c][u+1]?(s.push({kind:"removed",text:r[c]}),c+=1):(s.push({kind:"added",text:n[u]}),u+=1);for(;c<r.length;)s.push({kind:"removed",text:r[c]}),c+=1;for(;u<n.length;)s.push({kind:"added",text:n[u]}),u+=1;return s}function CM(e){return e.some(t=>t.kind!=="context")}function af({busy:e,busyLabel:t,children:r,icon:n,disabled:a,...s}){return m.jsx(Me,{...s,icon:e?m.jsx(hr,{size:"tiny"}):n,disabled:a||e,children:e&&t?t:r})}const NM=ut({body:{display:"flex",flexDirection:"column",gap:T.spacingVerticalM},diff:{maxHeight:"260px",overflow:"auto",border:`1px solid ${T.colorNeutralStroke2}`,borderRadius:T.borderRadiusMedium,padding:T.spacingVerticalXS,fontFamily:T.fontFamilyMonospace,fontSize:T.fontSizeBase200,whiteSpace:"pre"},added:{backgroundColor:T.colorPaletteGreenBackground1,color:T.colorPaletteGreenForeground1},removed:{backgroundColor:T.colorPaletteRedBackground1,color:T.colorPaletteRedForeground1},context:{color:T.colorNeutralForeground3},hint:{color:T.colorNeutralForeground3}});function sf(e){return e instanceof Error?e.message:String(e)}const TM="/theme/theme.xml";function PM(e){const t=hM(e);return t||(/\.xml$/i.test(e.trim())?void 0:"The name must end with the .xml extension.")}function RM({open:e,onDismiss:t,onSaved:r,mountNode:n}){const a=NM(),{model:s}=gr(),{openTheme:c,selectedSolution:u}=Na(),[f,p]=y.useState(TM),[g,v]=y.useState(!1),[x,w]=y.useState(""),[S,k]=y.useState(!0),[B,z]=y.useState(!1),[P,j]=y.useState(),[N,M]=y.useState(),C=y.useMemo(()=>{try{return nf(s)}catch(X){return`<!-- ${sf(X)} -->`}},[s]),I=y.useMemo(()=>_M(c?.originalXml??"",C),[c,C]),A=!!c,ae=u?gM(u.publisherPrefix,f):f,de=A?void 0:PM(ae),ee=g&&x.trim()?x.trim():ae,te=c?.resource.isManaged===!0,W=A&&!CM(I),Y=async()=>{if(!u){M("Pick a target solution first.");return}z(!0),M(void 0),j(void 0);try{let X;try{X=nf(s)}catch(q){M(sf(q));return}const O=vM(X);let Z;c?(j(`Updating "${c.resource.name}" in Dataverse…`),await so.updateWebResourceContent(c.resource,O,u.uniqueName),Z=c.resource):(j(`Creating "${ae}" in Dataverse…`),Z=await so.createWebResource({name:ae,displayName:ee,webResourceType:xt.xml,contentBase64:O,solutionUniqueName:u.uniqueName})),S&&(j("Publishing the web resource…"),await so.publishWebResource(Z.id)),r(Z,X)}catch(X){M(sf(X))}finally{z(!1),j(void 0)}};return m.jsx(bn,{open:e,onOpenChange:(X,O)=>O.open||B?void 0:t(),children:m.jsx(kn,{mountNode:n,children:m.jsxs(xn,{children:[m.jsx(wn,{children:A?`Save "${c?.resource.name}"`:"Save as a new web resource"}),m.jsxs(Sn,{className:a.body,children:[!u&&m.jsx(at,{intent:"error",children:m.jsxs(st,{children:[m.jsx(di,{children:"No solution selected"}),"The theme must be saved into a solution you choose explicitly — there is no default-solution fallback."]})}),te&&m.jsx(at,{intent:"error",children:m.jsx(st,{children:"This web resource is managed and can't be updated. Save it as a new web resource instead."})}),!A&&m.jsxs(m.Fragment,{children:[m.jsx(Ve,{label:"Name",required:!0,validationState:de?"error":"none",validationMessage:de,children:m.jsx(_r,{value:f,onChange:(X,O)=>p(O.value)})}),m.jsxs(Ie,{size:200,className:a.hint,children:["Full unique name:"," ",m.jsx("strong",{children:ae}),u?"":" (the publisher prefix is added once a solution is selected)"]}),m.jsx(Ro,{checked:g,onChange:(X,O)=>{v(O.checked),O.checked&&!x.trim()&&w(ae)},label:"Override display name"}),g?m.jsx(Ve,{label:"Display name",children:m.jsx(_r,{value:x,onChange:(X,O)=>w(O.value)})}):m.jsxs(Ie,{size:200,className:a.hint,children:["Display name:"," ",m.jsx("strong",{children:ae})]})]}),m.jsxs("div",{children:[m.jsx(Ie,{weight:"semibold",size:200,children:A?"Changes to be written":"XML to be created"}),m.jsx("div",{className:a.diff,children:I.map((X,O)=>m.jsxs("div",{className:X.kind==="added"?a.added:X.kind==="removed"?a.removed:a.context,children:[X.kind==="added"?"+ ":X.kind==="removed"?"- ":" ",X.text]},O))})]}),W&&m.jsx(at,{intent:"info",children:m.jsx(st,{children:"The theme is identical to the version stored in Dataverse."})}),m.jsx(fl,{checked:S,onChange:(X,O)=>k(O.checked===!0),label:"Publish the web resource after saving"}),m.jsx(at,{intent:"warning",children:m.jsx(st,{children:"Publishing affects the whole environment: every user of the apps that consume this theme sees the change. Updates are only picked up once published."})}),B&&m.jsx(hr,{size:"tiny",labelPosition:"after",label:P??"Saving to Dataverse…"}),N&&m.jsx(at,{intent:"error",children:m.jsx(st,{children:N})})]}),m.jsxs(yn,{children:[m.jsx(Me,{appearance:"secondary",disabled:B,onClick:t,children:"Cancel"}),m.jsx(af,{appearance:"primary",busy:B,busyLabel:"Saving…",disabled:te||!u||!!de,onClick:Y,children:"Save"})]})]})})})}async function MM(){try{return(await window.dataverseAPI.queryData("appmodules?$select=appmoduleid,name,uniquename&$orderby=name&$top=250")).value.map(t=>({id:Ze(t.appmoduleid),name:Ze(t.name)||Ze(t.uniquename),uniqueName:Ze(t.uniquename)}))}catch(e){throw new ao(`Loading the app list failed: ${vi(e)}`,e)}}const EM={listApps:MM};function IM(e){return e instanceof Error?e.message:String(e)}async function FM(e,t){try{const r=new URL(`/tools/solution/edit.aspx?id=${encodeURIComponent(t)}`,e);if(r.protocol!=="https:"&&r.protocol!=="http:")throw new Error("The connection URL is not an http(s) address.");await window.toolboxAPI.utils.openInConnectionBrowser(r.toString())}catch(r){throw new ao(`Opening the solution in the maker portal failed: ${IM(r)}`,r)}}const AM=ut({body:{display:"flex",flexDirection:"column",gap:T.spacingVerticalM},hint:{color:T.colorNeutralForeground3},row:{display:"flex",alignItems:"center",gap:T.spacingHorizontalS}});function lf(e){return e instanceof Error?e.message:String(e)}function DM({open:e,onDismiss:t,webResourceName:r,kind:n,mountNode:a}){const s=AM(),{connection:c,scope:u,scopeLoading:f,selectedSolution:p}=Na(),[g,v]=y.useState("environment"),[x,w]=y.useState([]),[S,k]=y.useState(!1),[B,z]=y.useState(),[P,j]=y.useState(!1),[N,M]=y.useState(),[C,I]=y.useState(!1),[A,ae]=y.useState(),[de,ee]=y.useState(!1),te=u?.definitions[n],W=n==="customTheme"?"appHeaderColorsOnly":"customTheme",Y=u?.definitions[W];y.useEffect(()=>{if(!e||!c)return;M(void 0),ae(void 0),k(!0);let G=!1;return(async()=>{try{const K=await EM.listApps();G||w(K)}catch(K){G||M(lf(K))}finally{G||k(!1)}if(Y){const K=await Il.readScopeAssignment(Y,W),F=!!K.environmentValue||Object.keys(K.appValues).length>0;G||ee(F)}})(),()=>{G=!0}},[e,c,Y,W]);const X=async()=>{if(!(!te||!r)){j(!0),M(void 0),I(!1),ae(void 0);try{g==="environment"?(await Il.setEnvironmentScope(te,r),ae(`"${Io[n]}" is now set to ${r} for the whole environment.`)):B?(await Il.setAppScope(te,B,r),ae(`"${Io[n]}" is now set to ${r} for the selected app.`)):M("Select the app the theme should apply to.")}catch(G){M(lf(G)),I(!0)}finally{j(!1)}}},O=async()=>{if(!(!c||!p))try{await FM(c.url,p.id)}catch(G){M(lf(G))}},Z=async()=>{r&&await window.toolboxAPI.utils.copyToClipboard(r).catch(()=>{})},q=!!te;return m.jsx(bn,{open:e,onOpenChange:(G,K)=>K.open||P?void 0:t(),children:m.jsx(kn,{mountNode:a,children:m.jsxs(xn,{children:[m.jsx(wn,{children:"Apply the theme"}),m.jsxs(Sn,{className:s.body,children:[!r&&m.jsx(at,{intent:"warning",children:m.jsx(st,{children:"Save the theme to a web resource first — the setting stores its unique name."})}),r&&m.jsxs("div",{className:s.row,children:[m.jsxs(Ie,{size:200,children:["Setting"," ",m.jsx("strong",{children:Io[n]})," ","= ",m.jsx("strong",{children:r})]}),m.jsx(Me,{size:"small",appearance:"subtle",icon:m.jsx(Y4,{}),onClick:Z,children:"Copy name"})]}),de&&m.jsx(at,{intent:"warning",children:m.jsxs(st,{children:[m.jsx(di,{children:"Both theme settings are configured"}),'"Override app header color" is ignored by the platform whenever "Custom theme definition" is set.']})}),f&&m.jsx(hr,{size:"tiny",label:"Checking what this environment supports…"}),!f&&!q&&m.jsx(at,{intent:"warning",children:m.jsxs(st,{children:[m.jsx(di,{children:"Assign the setting in the maker portal"}),u?.unavailableReason??"The theme settings are not available through the API in this environment."," ","Open the solution, use",m.jsxs("strong",{children:[" ","Add existing → More → Setting"]}),", pick"," ",m.jsx("strong",{children:Io[n]}),", paste the unique name above as the setting value, and publish all customizations."]})}),q&&m.jsxs(m.Fragment,{children:[m.jsx(Ve,{label:"Scope",children:m.jsxs(ml,{value:g,onChange:(G,K)=>v(K.value),children:[m.jsx(vn,{value:"environment",label:"The whole environment"}),m.jsx(vn,{value:"app",label:"A single model-driven app"})]})}),g==="app"&&m.jsx(Ve,{label:"App",required:!0,children:m.jsx(Ba,{mountNode:a,disabled:S,placeholder:S?"Loading apps…":"Select an app",value:x.find(G=>G.id===B)?.name??"",selectedOptions:B?[B]:[],onOptionSelect:(G,K)=>z(K.optionValue),children:x.map(G=>m.jsx(ka,{value:G.id,text:G.name,children:G.name},G.id))})})]}),A&&m.jsx(at,{intent:"success",children:m.jsx(st,{children:A})}),N&&m.jsx(at,{intent:"error",children:m.jsxs(st,{children:[N,C&&c&&p&&m.jsxs(m.Fragment,{children:[" ","You can also"," ",m.jsx(Me,{size:"small",appearance:"transparent",onClick:O,children:"open the solution in the maker portal"})," ","and set it there."]})]})}),P&&m.jsx(hr,{size:"tiny",labelPosition:"after",label:"Applying the theme in Dataverse…"}),m.jsx(Ie,{size:100,className:s.hint,children:"The theme settings are not covered by Microsoft's documented entity reference; the tool resolves them at runtime and never hardcodes ids."})]}),m.jsxs(yn,{children:[m.jsx(Me,{appearance:"secondary",disabled:P,onClick:t,children:"Close"}),m.jsx(af,{appearance:"primary",busy:P,busyLabel:"Applying…",disabled:!q||!r||g==="app"&&!B,onClick:X,children:"Apply"})]})]})})})}const qM=ut({root:{display:"flex",flexDirection:"column",borderBottom:`1px solid ${T.colorNeutralStroke1}`},bar:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:T.spacingHorizontalM,padding:`${T.spacingVerticalS} ${T.spacingHorizontalM}`,minHeight:"48px"},group:{display:"flex",alignItems:"center",gap:T.spacingHorizontalXS},label:{color:T.colorNeutralForeground3},solution:{minWidth:"220px"},fileName:{maxWidth:"260px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},spacer:{flexGrow:1}});async function cf(e,t,r){try{await window.toolboxAPI.utils.showNotification({title:e,body:t,type:r})}catch(n){console.error("Unable to show a notification:",n)}}function OM(e){return e instanceof Error?e.message:String(e)}function HM(){const e=qM(),t=Fo(),{model:r,dispatch:n,dirty:a}=gr(),{connection:s,connectionLoading:c,refreshConnection:u,solutions:f,solutionsLoading:p,solutionsError:g,reloadSolutions:v,selectedSolution:x,selectSolution:w,openTheme:S,setOpenTheme:k}=Na(),[B,z]=y.useState(!1),[P,j]=y.useState(!1),[N,M]=y.useState(!1),[C,I]=y.useState(!1),[A,ae]=y.useState(),de=!!s,ee=X=>{if(a){ae({run:X});return}X()},te=async X=>{z(!1),I(!0);try{const O=await so.readWebResource(X.id),Z=mM(O);n({type:"load",model:Yb(Z)});const{contentBase64:q,...G}=O;k({resource:G,originalXml:Z}),G.isManaged&&await cf("Managed web resource",`"${G.name}" is managed: it can be inspected but not overwritten.`,"warning")}catch(O){await cf("Load failed",OM(O),"error")}finally{I(!1)}},W=()=>ee(()=>{n({type:"load",model:Ml()}),k(void 0)}),Y=async(X,O)=>{k({resource:X,originalXml:O}),n({type:"markSaved"}),j(!1),await cf("Theme saved",`"${X.name}" was saved to Dataverse.`,"success")};return m.jsxs("div",{className:e.root,children:[!c&&!de&&m.jsx(at,{intent:"error",children:m.jsxs(st,{children:["This tool needs an active Dataverse connection. Connect to an environment in Power Platform ToolBox, then retry."," ",m.jsx(Me,{size:"small",appearance:"transparent",icon:m.jsx(lm,{}),onClick:()=>{u()},children:"Retry"})]})}),g&&m.jsx(at,{intent:"error",children:m.jsx(st,{children:g})}),m.jsxs("div",{className:e.bar,children:[m.jsxs("div",{className:e.group,children:[m.jsx(Ie,{size:200,className:e.label,children:"Environment"}),c?m.jsx(hr,{size:"tiny"}):m.jsx(ad,{appearance:"tint",color:de?"success":"danger",children:s?.name??"Not connected"})]}),m.jsxs("div",{className:e.group,children:[m.jsx(Ie,{size:200,className:e.label,children:"Solution"}),m.jsx(Ba,{className:e.solution,mountNode:t,disabled:!de||p,placeholder:p?"Loading solutions…":"Select a solution",value:x?.friendlyName??"",selectedOptions:x?[x.id]:[],onOptionSelect:(X,O)=>w(f.find(Z=>Z.id===O.optionValue)),children:f.map(X=>m.jsx(ka,{value:X.id,text:X.friendlyName,children:`${X.friendlyName} (${X.publisherPrefix||"no prefix"})`},X.id))}),m.jsx(No,{content:"Reload solutions",relationship:"label",mountNode:t,children:m.jsx(Me,{appearance:"subtle",icon:p?m.jsx(hr,{size:"tiny"}):m.jsx(lm,{}),disabled:!de||p,onClick:()=>{v()},"aria-label":"Reload solutions"})})]}),m.jsxs("div",{className:e.group,children:[m.jsx(Ie,{size:200,className:e.label,children:"Theme file"}),C?m.jsx(hr,{size:"tiny",labelPosition:"after",label:"Loading theme…"}):m.jsx(Ie,{size:200,weight:"semibold",className:e.fileName,title:S?.resource.name,children:S?.resource.name??"New theme (not saved)"}),m.jsx(Me,{appearance:"subtle",icon:m.jsx(Sz,{}),disabled:!de||C,onClick:()=>ee(()=>z(!0)),children:"Open"}),m.jsx(Me,{appearance:"subtle",icon:m.jsx($4,{}),disabled:C,onClick:W,children:"New"})]}),m.jsx("div",{className:e.spacer}),m.jsxs("div",{className:e.group,children:[m.jsx(Me,{appearance:"primary",icon:m.jsx(om,{}),disabled:!de||C,onClick:()=>j(!0),children:"Save to Dataverse"}),m.jsx(Me,{appearance:"secondary",icon:m.jsx(X4,{}),disabled:!de||C,onClick:()=>M(!0),children:"Apply theme"})]})]}),m.jsx(Zb,{open:B,title:"Open a theme web resource",types:[xt.xml],onDismiss:()=>z(!1),onPick:X=>{te(X)},mountNode:t}),m.jsx(RM,{open:P,onDismiss:()=>j(!1),onSaved:(X,O)=>{Y(X,O)},mountNode:t}),m.jsx(DM,{open:N,onDismiss:()=>M(!1),webResourceName:S?.resource.name,kind:r.kind,mountNode:t}),m.jsx(bn,{open:!!A,onOpenChange:(X,O)=>O.open?void 0:ae(void 0),children:m.jsx(kn,{mountNode:t,children:m.jsxs(xn,{children:[m.jsx(wn,{children:"Discard unsaved changes?"}),m.jsx(Sn,{children:"The theme has changes that were never saved to Dataverse or exported to a file. Continuing discards them."}),m.jsxs(yn,{children:[m.jsx(Me,{appearance:"secondary",onClick:()=>ae(void 0),children:"Keep editing"}),m.jsx(Me,{appearance:"primary",onClick:()=>{A?.run(),ae(void 0)},children:"Discard and continue"})]})]})})})]})}const ey=[{name:"Theme XML",extensions:["xml"]},{name:"All files",extensions:["*"]}];function LM(e){return e.kind==="appHeaderColorsOnly"?"app-header-colors.xml":"custom-theme.xml"}async function VM(){const e=await window.toolboxAPI.fileSystem.selectPath({type:"file",filters:ey,title:"Select a theme XML file"});if(!e)return;const t=await window.toolboxAPI.fileSystem.readText(e);try{return Yb(t)}catch(r){throw r instanceof lo?r:new lo(`The file "${e}" couldn't be read as a theme: ${r instanceof Error?r.message:String(r)}`)}}async function WM(e){const t=nf(e);return await window.toolboxAPI.fileSystem.saveFile(LM(e),t,ey)??void 0}const $M=ut({root:{display:"flex",flexDirection:"column",gap:T.spacingVerticalXXS},row:{display:"flex",alignItems:"center",gap:T.spacingHorizontalXS},swatch:{width:"32px",minWidth:"32px",height:"32px",padding:0,border:`1px solid ${T.colorNeutralStroke1}`,borderRadius:T.borderRadiusMedium,cursor:"pointer"},input:{flex:1,minWidth:0},picker:{display:"flex",flexDirection:"column",gap:T.spacingVerticalS},hint:{color:T.colorNeutralForeground3},fail:{color:T.colorPaletteRedForeground1},pass:{color:T.colorPaletteGreenForeground1}});function zn({label:e,value:t,onChange:r,placeholder:n,onReset:a,contrastAgainst:s,hint:c,disabled:u}){const f=$M(),p=Fo(),[g,v]=y.useState(t??""),[x,w]=y.useState(!1);y.useEffect(()=>{v(t??"")},[t]);const S=g.trim()!==""&&!yb(g),k=t??n,B=y.useMemo(()=>{try{return xb(k??"#FFFFFF")}catch{return xb("#FFFFFF")}},[k]),z=y.useMemo(()=>{if(!(!s||!k))try{return Sb(k,s)}catch{return}},[s,k]),P=j=>{const N=j.trim();if(N===""){r(void 0);return}yb(N)&&r(Xd(N))};return m.jsxs("div",{className:f.root,children:[m.jsx(Xt,{size:"small",children:e}),m.jsxs("div",{className:f.row,children:[m.jsxs(ev,{open:x,onOpenChange:(j,N)=>w(N.open),trapFocus:!0,mountNode:p,children:[m.jsx(jd,{disableButtonEnhancement:!0,children:m.jsx("button",{type:"button","aria-label":`Pick a colour for ${e}`,className:f.swatch,disabled:u,style:{backgroundColor:k??"transparent"}})}),m.jsx(Y1,{children:m.jsxs("div",{className:f.picker,children:[m.jsxs(gb,{color:B,onColorChange:(j,N)=>r(CR(N.color)),children:[m.jsx(vb,{inputX:{"aria-label":"Saturation"},inputY:{"aria-label":"Brightness"}}),m.jsx(hb,{"aria-label":"Hue"})]}),m.jsx(Me,{appearance:"secondary",onClick:()=>w(!1),children:"Close"})]})})]}),m.jsx(_r,{className:f.input,size:"small",value:g,disabled:u,placeholder:n??"#RRGGBB","aria-label":`${e} HTML colour value`,onChange:(j,N)=>{v(N.value),P(N.value)},onBlur:()=>{S&&v(t??"")}}),a&&m.jsx(No,{content:`Reset ${e}`,relationship:"label",mountNode:p,children:m.jsx(Me,{appearance:"subtle",size:"small",icon:m.jsx(sm,{}),disabled:u||t===void 0,onClick:a})})]}),S&&m.jsx(Ie,{size:100,className:f.fail,children:"Enter a valid HTML colour, e.g. #0F6CBD."}),z!==void 0&&m.jsxs(Ie,{size:100,className:z>=Ca?f.pass:f.fail,children:["Contrast ",z.toFixed(2),":1 ",z>=Ca?"meets":"is below"," the recommended ",Ca,":1 minimum"]}),c&&m.jsx(Ie,{size:100,className:f.hint,children:c})]})}const UM={maxColors:6,ignoreGreys:!0,nearWhiteLightness:95,nearBlackLightness:8,minSaturation:12,minAlpha:128,sampleSize:200},GM=.15;function Dl(e,t,r){const n=g=>{const v=g/255;return v<=.04045?v/12.92:Math.pow((v+.055)/1.055,2.4)},a=n(e),s=n(t),c=n(r),u=Math.cbrt(.4122214708*a+.5363325363*s+.0514459929*c),f=Math.cbrt(.2119034982*a+.6806995451*s+.1073969566*c),p=Math.cbrt(.0883024619*a+.2817188376*s+.6299787005*c);return{l:.2104542553*u+.793617785*f-.0040720468*p,a:1.9779984951*u-2.428592205*f+.4505937099*p,b:.0259040371*u+.7827717662*f-.808675766*p}}function ty(e,t){return Math.sqrt((e.l-t.l)**2+(e.a-t.a)**2+(e.b-t.b)**2)}const XM=.09,uf=3;function ql(e,t,r){return Math.min(r,Math.max(t,Math.round(e)))}function KM(e,t){if(!t)return{x:0,y:0,width:e.width,height:e.height};const r=ql(t.x,0,Math.max(0,e.width-1)),n=ql(t.y,0,Math.max(0,e.height-1)),a=ql(t.width,1,e.width-r),s=ql(t.height,1,e.height-n);return{x:r,y:n,width:a,height:s}}function ry(e,t=GM){return{x:0,y:0,width:e.width,height:Math.max(1,Math.round(e.height*t))}}function YM(e,t,r){if(t<0||r<0||t>=e.width||r>=e.height)return;const n=(Math.floor(r)*e.width+Math.floor(t))*4,a=e.data[n+3];if(!(a===void 0||a<8))return gi(e.data[n],e.data[n+1],e.data[n+2])}function oy(e,t={}){const r={...UM,...QM(t)},n=KM(e,t.crop);if(e.width<=0||e.height<=0||n.width<=0||n.height<=0)return{candidates:[],sampledPixels:0,keptPixels:0};const a=Math.max(n.width,n.height),s=Math.max(1,Math.ceil(a/Math.max(1,r.sampleSize))),c=new Map;let u=0,f=0;for(let x=n.y;x<n.y+n.height;x+=s)for(let w=n.x;w<n.x+n.width;w+=s){const S=(x*e.width+w)*4;if(u+=1,e.data[S+3]<r.minAlpha)continue;const B=e.data[S],z=e.data[S+1],P=e.data[S+2],{s:j,l:N}=Nl(B,z,P);if(N>=r.nearWhiteLightness||N<=r.nearBlackLightness||r.ignoreGreys&&j<r.minSaturation)continue;f+=1;const M=8-uf,C=B>>M<<uf*2|z>>M<<uf|P>>M,I=c.get(C);I?(I.count+=1,I.r+=B,I.g+=z,I.b+=P):c.set(C,{count:1,r:B,g:z,b:P})}if(f===0)return{candidates:[],sampledPixels:u,keptPixels:f};const p=[...c.entries()].map(([x,w])=>({key:x,count:w.count,r:w.r/w.count,g:w.g/w.count,b:w.b/w.count})).sort((x,w)=>w.count-x.count||x.key-w.key),g=[];for(const x of p){const w=Dl(x.r,x.g,x.b),S=g.find(k=>ty(k.lab,w)<=XM);if(S){const k=S.count+x.count;S.r=(S.r*S.count+x.r*x.count)/k,S.g=(S.g*S.count+x.g*x.count)/k,S.b=(S.b*S.count+x.b*x.count)/k,S.count=k,S.lab=Dl(S.r,S.g,S.b)}else g.push({count:x.count,r:x.r,g:x.g,b:x.b,lab:w})}return{candidates:g.map(x=>{const{s:w,l:S}=Nl(x.r,x.g,x.b);return{hex:gi(x.r,x.g,x.b),coverage:x.count/f,saturation:w,lightness:S}}).sort((x,w)=>ny(w)-ny(x)||(x.hex<w.hex?-1:1)).slice(0,Math.max(1,r.maxColors)),sampledPixels:u,keptPixels:f}}function ny(e){return e.coverage*(.5+e.saturation/100)}function QM(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0))}const iy=["#FFFFFF","#000000"],ZM=15;function df(e,t){if(!(!e||!t))try{const r=Sb(e,t);return{foreground:Xd(e),background:Xd(t),ratio:r,passes:r>=Ca}}catch{return}}function JM(e){if(e.length===0)return;const t=e.filter(a=>a.saturation>=ZM);return[...t.length>0?t:e].sort((a,s)=>s.saturation*(.5+s.coverage)-a.saturation*(.5+a.coverage)||s.coverage-a.coverage||(a.hex<s.hex?-1:1))[0]?.hex}function ay(e,t=[]){const r=[...iy,...t.map(s=>s.hex)];let n=iy[0],a=0;for(const s of r){const c=df(s,e);c&&c.ratio>a&&(n=c.foreground,a=c.ratio)}return n}function eE(e,t){const r={},n=new Set;for(const a of e){const s=Dl(...sy(a.hex));let c,u=Number.POSITIVE_INFINITY;for(const f of pi){if(n.has(f))continue;const p=ty(s,Dl(...sy(t[f])));p<u&&(u=p,c=f)}c&&(n.add(c),r[c]=a.hex)}return r}function sy(e){const{r:t,g:r,b:n}=hi(e);return[t,r,n]}function tE(e,t,r,n={}){const a=JM(e),s=t[0]?.hex??a,c=s?ay(s,e):void 0;let u={};if(n.overrideSlots&&a){const f=Tl({basePaletteColor:a,lockPrimary:r.lockPrimary,vibrancy:r.vibrancy,hueTorsion:r.hueTorsion});u=eE(e,f)}return{basePaletteColor:a,headerBackground:s,headerForeground:c,paletteOverrides:u,headerContrast:df(c,s)}}const Ol=20*1024*1024,ff=8e3,rE=1200;class Pr extends Error{constructor(t){super(t),this.name="ImageImportError"}}const oE=[{name:"Images",extensions:["png","jpg","jpeg","gif","webp","bmp"]}],Hl=["image/png","image/jpeg","image/gif","image/webp","image/bmp"];function nE(e){return e.split(/[\\/]/).pop()??e}async function ly(e,t){const r=await iE(e),n=r.naturalWidth,a=r.naturalHeight;if(!n||!a)throw new Pr("That image couldn't be decoded. Use a PNG, JPG, GIF, WEBP or BMP screenshot.");if(n>ff||a>ff)throw new Pr(`That image is ${n} × ${a} px. Images larger than ${ff} px on a side are not supported.`);const s=Math.min(1,rE/Math.max(n,a)),c=Math.max(1,Math.round(n*s)),u=Math.max(1,Math.round(a*s)),f=document.createElement("canvas");f.width=c,f.height=u;const p=f.getContext("2d",{willReadFrequently:!0});if(!p)throw new Pr("This environment cannot read image pixels, so colours cannot be extracted.");p.imageSmoothingEnabled=!0,p.imageSmoothingQuality="high",p.drawImage(r,0,0,c,u);let g;try{g=p.getImageData(0,0,c,u)}catch{throw new Pr("That image's pixels couldn't be read. Import it as a local file instead.")}return{dataUri:e,imageData:g,width:c,height:u,naturalWidth:n,naturalHeight:a,fileName:t}}function iE(e){return new Promise((t,r)=>{const n=new Image;n.onload=()=>t(n),n.onerror=()=>r(new Pr("That file couldn't be read as an image.")),n.src=e})}async function aE(){const e=await window.toolboxAPI.fileSystem.selectPath({type:"file",title:"Select a screenshot",filters:oE});if(!e)return;const t=nE(e),r=Db(t),n=t.toLowerCase().split(".").pop(),a=r!==void 0&&r!==xt.svg&&r!==xt.ico?Ab(r):n==="webp"?"image/webp":n==="bmp"?"image/bmp":void 0;if(!a)throw new Pr(`"${t}" is not a supported screenshot format. Use PNG, JPG, GIF, WEBP or BMP.`);const s=await window.toolboxAPI.fileSystem.readBinary(e),c=new Uint8Array(s);if(c.byteLength>Ol)throw new Pr(`"${t}" is ${Math.round(c.byteLength/(1024*1024))} MB. The limit is ${Ol/(1024*1024)} MB.`);return ly(`data:${a};base64,${Fl(c)}`,t)}async function pf(e,t){if(!Hl.includes(e.type))throw new Pr("That item is not a supported image. Use a PNG, JPG, GIF, WEBP or BMP screenshot.");if(e.size>Ol)throw new Pr(`That image is ${Math.round(e.size/(1024*1024))} MB. The limit is ${Ol/(1024*1024)} MB.`);const r=new Uint8Array(await e.arrayBuffer());return ly(`data:${e.type};base64,${Fl(r)}`,t)}function cy(e){if(e){for(const t of Array.from(e.files))if(Hl.includes(t.type))return t;for(const t of Array.from(e.items))if(t.kind==="file"&&Hl.includes(t.type)){const r=t.getAsFile();if(r)return r}}}async function sE(){const e=navigator.clipboard;if(typeof e?.read!="function")throw new Pr("This environment cannot read the clipboard. Press Ctrl+V over the drop zone, or browse for the image file.");let t;try{t=await e.read()}catch{throw new Pr("The clipboard could not be read. Press Ctrl+V over the drop zone instead.")}for(const r of t){const n=r.types.find(a=>Hl.includes(a));if(n)return pf(await r.getType(n))}}class yi extends Error{constructor(t){super(t),this.name="SiteCaptureError"}}function lE(e){const t=e.trim();if(!t)throw new yi("Enter the address of the website.");const r=/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(t)?t:`https://${t}`;let n;try{n=new URL(r)}catch{throw new yi(`"${e}" is not a valid website address.`)}if(n.protocol!=="http:"&&n.protocol!=="https:")throw new yi("Only http:// and https:// addresses can be opened.");if(n.username||n.password)throw new yi("Remove the user name and password from the address before opening it.");if(!n.hostname)throw new yi(`"${e}" is not a valid website address.`);return n.toString()}const uy="The site is opening in your browser. Take a screenshot of the page (Windows: ⊞ Win + Shift + S), then come back and paste it here with Ctrl+V, or drop the image file onto the drop zone.";async function cE(e){const t=lE(e);try{await window.toolboxAPI.utils.openInConnectionBrowser(t)}catch(r){throw new yi(`The site couldn't be opened: ${r instanceof Error?r.message:String(r)}`)}return{mode:"assisted",url:t,instructions:uy}}const uE=ut({body:{display:"flex",flexDirection:"column",gap:T.spacingVerticalM,minHeight:"320px"},row:{display:"flex",alignItems:"center",gap:T.spacingHorizontalS,flexWrap:"wrap"},hint:{color:T.colorNeutralForeground3},dropZone:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:T.spacingVerticalS,padding:T.spacingVerticalXXL,border:`2px dashed ${T.colorNeutralStroke2}`,borderRadius:T.borderRadiusMedium,backgroundColor:T.colorNeutralBackground2,textAlign:"center"},dropZoneActive:{border:`2px dashed ${T.colorBrandStroke1}`,backgroundColor:T.colorNeutralBackground1Selected},imageArea:{position:"relative",display:"inline-block",maxWidth:"100%",lineHeight:0,userSelect:"none"},image:{maxWidth:"100%",maxHeight:"320px",display:"block",cursor:"crosshair"},cropBox:{position:"absolute",border:`2px solid ${T.colorBrandStroke1}`,backgroundColor:"rgba(15, 108, 189, 0.15)",pointerEvents:"none"},swatches:{display:"flex",flexWrap:"wrap",gap:T.spacingHorizontalS},swatch:{display:"flex",flexDirection:"column",alignItems:"center",gap:T.spacingVerticalXXS,padding:T.spacingVerticalXS,border:`1px solid ${T.colorNeutralStroke1}`,borderRadius:T.borderRadiusMedium,backgroundColor:"transparent",cursor:"pointer",minWidth:"72px"},swatchChip:{width:"48px",height:"32px",borderRadius:T.borderRadiusSmall,border:`1px solid ${T.colorNeutralStroke2}`},swatchLabel:{color:T.colorNeutralForeground1},headerPreview:{display:"flex",alignItems:"center",gap:T.spacingHorizontalM,height:"48px",padding:`0 ${T.spacingHorizontalM}`,borderRadius:T.borderRadiusMedium},fail:{color:T.colorPaletteRedForeground1},pass:{color:T.colorPaletteGreenForeground1}}),dE=5,fE={ignoreGreys:!0,overrideSlots:!1};function dy(e){return e instanceof Error?e.message:String(e)}function pE({open:e,onDismiss:t}){const r=uE(),n=Fo(),{model:a,dispatch:s}=gr(),[c,u]=ef("colorExtraction.options",fE),[f,p]=y.useState("source"),[g,v]=y.useState(""),[x,w]=y.useState(),[S,k]=y.useState(),[B,z]=y.useState(),[P,j]=y.useState(!1),[N,M]=y.useState(!1),[C,I]=y.useState(!1),[A,ae]=y.useState(),[de,ee]=y.useState(),[te,W]=y.useState(),[Y,X]=y.useState(),O=y.useRef(null),Z=y.useRef(void 0),q=y.useCallback(()=>{p("source"),v(""),w(void 0),k(void 0),z(void 0),ae(void 0),ee(void 0),W(void 0),X(void 0)},[]);y.useEffect(()=>{e||q()},[e,q]);const G=y.useMemo(()=>({ignoreGreys:c.ignoreGreys,maxColors:dE}),[c.ignoreGreys]),K=y.useMemo(()=>S?oy(S.imageData,{...G,crop:B}).candidates:[],[S,G,B]),F=y.useMemo(()=>S?oy(S.imageData,{...G,maxColors:3,crop:B??ry(S.imageData)}).candidates:[],[S,G,B]),V=y.useMemo(()=>tE(K,F,a,{overrideSlots:c.overrideSlots}),[K,F,a,c.overrideSlots]),ue=y.useCallback(async _e=>{I(!0),ae(void 0);try{const qe=await _e();qe&&(k(qe),z(void 0),ee(void 0),W(void 0),X(void 0),p("image"))}catch(qe){ae(dy(qe))}finally{I(!1)}},[]);y.useEffect(()=>{if(!e||f==="roles")return;const _e=qe=>{const Ft=cy(qe.clipboardData);Ft&&(qe.preventDefault(),ue(()=>pf(Ft,Ft.name)))};return window.addEventListener("paste",_e),()=>window.removeEventListener("paste",_e)},[e,f,ue]);const xe=async()=>{I(!0),ae(void 0);try{const _e=await cE(g);w(`${_e.url} — ${_e.instructions}`)}catch(_e){ae(dy(_e))}finally{I(!1)}},Ee=_e=>{const qe=O.current;if(!qe||!S)return;const Ft=qe.getBoundingClientRect();if(Ft.width===0||Ft.height===0)return;const Do=Math.round((_e.clientX-Ft.left)/Ft.width*S.width),qo=Math.round((_e.clientY-Ft.top)/Ft.height*S.height);return{x:Math.min(Math.max(Do,0),S.width-1),y:Math.min(Math.max(qo,0),S.height-1)}},we=_e=>{const qe=Ee(_e);qe&&(Z.current=qe,j(!0),_e.currentTarget.setPointerCapture(_e.pointerId))},Be=_e=>{if(!P||!Z.current)return;const qe=Ee(_e);qe&&z(fy(Z.current,qe))},Te=_e=>{if(!Z.current)return;const qe=Ee(_e);j(!1);const Ft=Z.current;if(Z.current=void 0,!qe)return;const Do=fy(Ft,qe);if(Do.width<4||Do.height<4){z(void 0);const qo=S?YM(S.imageData,qe.x,qe.y):void 0;qo&&ee(qo);return}z(Do)},Ae=de??V.basePaletteColor,Ke=te??V.headerBackground,Ur=Y??(Ke?ay(Ke,K):void 0),jn=df(Ur,Ke),wi=!!(Ae||Ke),Pa=()=>{s({type:"applyExtractedColors",patch:{basePaletteColor:Ae,appHeaderBackground:Ke,appHeaderForeground:Ke?Ur:void 0,paletteOverrides:c.overrideSlots?V.paletteOverrides:void 0}}),t()};return m.jsx(bn,{open:e,onOpenChange:(_e,qe)=>qe.open?void 0:t(),children:m.jsx(kn,{mountNode:n,children:m.jsxs(xn,{children:[m.jsx(wn,{children:"Get colors from a website"}),m.jsxs(Sn,{className:r.body,children:[A&&m.jsx(at,{intent:"error",children:m.jsx(st,{children:A})}),C&&m.jsx(hr,{size:"tiny",label:"Working…"}),f==="source"&&m.jsxs(m.Fragment,{children:[m.jsx(at,{intent:"info",children:m.jsxs(st,{children:[m.jsx(di,{children:"Screenshots stay on this machine"}),"Power Platform ToolBox can't take a screenshot for you, so the site is opened in your browser and you paste the screenshot back here. Nothing is uploaded anywhere."]})}),m.jsx(Ve,{label:"Website address",hint:"Only http:// and https:// addresses can be opened.",children:m.jsxs("div",{className:r.row,children:[m.jsx(_r,{style:{flex:1},value:g,placeholder:"contoso.com",onChange:(_e,qe)=>v(qe.value),onKeyDown:_e=>{_e.key==="Enter"&&g.trim()&&xe()}}),m.jsx(Me,{appearance:"secondary",icon:m.jsx(Q4,{}),disabled:C||!g.trim(),onClick:xe,children:"Open the site"})]})}),x&&m.jsx(at,{intent:"success",children:m.jsx(st,{children:x})}),m.jsxs("div",{className:Q(r.dropZone,N&&r.dropZoneActive),onDragOver:_e=>{_e.preventDefault(),M(!0)},onDragLeave:()=>M(!1),onDrop:_e=>{_e.preventDefault(),M(!1);const qe=cy(_e.dataTransfer);qe?ue(()=>pf(qe,qe.name)):ae("That item is not a supported image. Use a PNG, JPG, GIF, WEBP or BMP screenshot.")},children:[m.jsx(Ie,{weight:"semibold",children:"Drop a screenshot here"}),m.jsx(Ie,{size:200,className:r.hint,children:uy}),m.jsxs("div",{className:r.row,children:[m.jsx(Me,{appearance:"primary",disabled:C,onClick:()=>{ue(aE)},children:"Browse for an image"}),m.jsx(Me,{appearance:"secondary",disabled:C,onClick:()=>{ue(sE)},children:"Paste from clipboard"})]})]})]}),f==="image"&&S&&m.jsxs(m.Fragment,{children:[m.jsx(Ie,{size:200,className:r.hint,children:"Drag on the image to analyse only that region, or click a pixel to use its exact colour as the base palette color."}),m.jsxs("div",{className:r.imageArea,children:[m.jsx("img",{ref:O,className:r.image,src:S.dataUri,alt:"Imported screenshot",draggable:!1,onPointerDown:we,onPointerMove:Be,onPointerUp:Te}),B&&m.jsx("div",{className:r.cropBox,style:{left:`${B.x/S.width*100}%`,top:`${B.y/S.height*100}%`,width:`${B.width/S.width*100}%`,height:`${B.height/S.height*100}%`}})]}),m.jsxs("div",{className:r.row,children:[m.jsx(Me,{size:"small",appearance:"secondary",onClick:()=>z(ry(S.imageData)),children:"Header only"}),m.jsx(Me,{size:"small",appearance:"subtle",disabled:!B,onClick:()=>z(void 0),children:"Whole image"}),m.jsx(Ro,{label:"Ignore greys",checked:c.ignoreGreys,onChange:(_e,qe)=>u({...c,ignoreGreys:qe.checked})})]}),de&&m.jsxs(Ie,{size:200,children:[m.jsx(oz,{})," Picked ",de]}),K.length===0&&m.jsx(at,{intent:"warning",children:m.jsx(st,{children:'No colour stands out in this area — it is all white, black or grey. Try another region, or turn "Ignore greys" off.'})})]}),f==="roles"&&m.jsxs(m.Fragment,{children:[m.jsx(Xt,{size:"small",children:"Extracted colors"}),m.jsxs("div",{className:r.swatches,children:[K.map(_e=>m.jsx(No,{relationship:"label",mountNode:n,content:`${_e.hex} — ${Math.round(_e.coverage*100)}% of the analysed pixels`,children:m.jsxs("button",{type:"button",className:r.swatch,onClick:()=>ee(_e.hex),children:[m.jsx("span",{className:r.swatchChip,style:{backgroundColor:_e.hex}}),m.jsxs(Ie,{size:100,className:r.swatchLabel,children:[Math.round(_e.coverage*100),"%"]})]})},_e.hex)),K.length===0&&m.jsx(Ie,{size:200,className:r.hint,children:"Nothing was extracted from this image."})]}),m.jsx(zn,{label:"Base palette color",value:Ae,hint:"Seed of the 16-slot palette. Not used by an app-header-colors-only document.",onChange:_e=>ee(_e)}),m.jsx(zn,{label:"App header background",value:Ke,onChange:_e=>W(_e)}),m.jsx(zn,{label:"App header foreground",value:Ur,contrastAgainst:Ke,onChange:_e=>X(_e)}),Ke&&Ur&&m.jsxs(m.Fragment,{children:[m.jsx(Xt,{size:"small",children:"Preview"}),m.jsxs("div",{className:r.headerPreview,style:{backgroundColor:Ke,color:Ur},children:[m.jsx(Ie,{style:{color:"inherit"},weight:"semibold",children:"Sample app"}),m.jsx(Ie,{style:{color:"inherit"},size:200,children:"Accounts"})]}),jn&&m.jsxs(Ie,{size:200,className:jn.passes?r.pass:r.fail,children:["Header contrast ",jn.ratio.toFixed(2),":1"," ",jn.passes?"meets":"is below"," the recommended"," ",Ca,":1 minimum"]})]}),m.jsx(Ro,{label:"Also override the closest palette slots",checked:c.overrideSlots,disabled:a.kind!=="customTheme",onChange:(_e,qe)=>u({...c,overrideSlots:qe.checked})}),m.jsx(Ie,{size:100,className:r.hint,children:"Off by default: the generated ramp is the documented mechanism, and forcing screenshot colours into the 16 slots produces incoherent ramps."})]})]}),m.jsxs(yn,{children:[f!=="source"&&m.jsx(Me,{appearance:"secondary",onClick:()=>p(f==="roles"?"image":"source"),children:"Back"}),m.jsx(Me,{appearance:"secondary",onClick:t,children:"Cancel"}),f==="image"&&m.jsx(Me,{appearance:"primary",disabled:K.length===0&&!de,onClick:()=>p("roles"),children:"Next"}),f==="roles"&&m.jsx(Me,{appearance:"primary",disabled:!wi,onClick:Pa,children:"Apply"})]})]})})})}function fy(e,t){return{x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),width:Math.abs(e.x-t.x),height:Math.abs(e.y-t.y)}}const hE=ut({section:{display:"flex",flexDirection:"column",gap:T.spacingVerticalS},sectionHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:T.spacingHorizontalS},hint:{color:T.colorNeutralForeground3},slots:{display:"flex",flexDirection:"column",gap:T.spacingVerticalS}});function gE(){const e=hE(),t=Fo(),{model:r,dispatch:n,generatedPalette:a,resolvedPalette:s}=gr(),c=Object.keys(r.paletteOverrides).length>0,[u,f]=y.useState(!1);return m.jsxs("div",{className:e.section,children:[m.jsx(Ve,{label:"Start from a preset",hint:"Presets only seed the palette and the header colours — everything stays editable.",children:m.jsx(Ba,{mountNode:t,placeholder:"Choose a preset",selectedOptions:[],value:"",onOptionSelect:(p,g)=>{const v=_b.find(x=>x.id===g.optionValue);v&&n({type:"replace",model:v.create()})},children:_b.map(p=>m.jsx(ka,{value:p.id,text:p.label,children:p.label},p.id))})}),m.jsx(Me,{appearance:"secondary",icon:m.jsx(G4,{}),onClick:()=>f(!0),children:"Get colors from a website"}),m.jsx(pE,{open:u,onDismiss:()=>f(!1)}),m.jsx(zn,{label:"Base palette color",value:r.basePaletteColor,placeholder:"#0F6CBD",hint:"Seed colour the platform uses to generate the 16-slot palette.",onChange:p=>n({type:"setBasePaletteColor",value:p}),onReset:()=>n({type:"setBasePaletteColor",value:void 0})}),m.jsx(Ro,{label:"Lock primary",checked:r.lockPrimary,onChange:(p,g)=>n({type:"setLockPrimary",value:g.checked})}),m.jsx(Ie,{size:100,className:e.hint,children:r.lockPrimary?"The seed colour is placed in the primary slot; contrast is not guaranteed.":"The palette is optimised for accessibility; the seed colour may not appear in any slot."}),m.jsx(Ve,{label:`Vibrancy (${r.vibrancy})`,hint:"Muteness/brightness of the palette, mostly the lighter colours.",children:m.jsx(yl,{min:-100,max:100,step:1,value:r.vibrancy,onChange:(p,g)=>n({type:"setVibrancy",value:g.value})})}),m.jsx(Ve,{label:`Hue torsion (${r.hueTorsion})`,hint:"Tint/shade/tone of the palette, mostly the lighter colours.",children:m.jsx(yl,{min:-100,max:100,step:1,value:r.hueTorsion,onChange:(p,g)=>n({type:"setHueTorsion",value:g.value})})}),m.jsx(yv,{}),m.jsxs("div",{className:e.sectionHeader,children:[m.jsx(Ie,{weight:"semibold",children:"Palette slot overrides"}),m.jsx(No,{content:"Clear every slot override",relationship:"label",mountNode:t,children:m.jsx(Me,{appearance:"subtle",size:"small",icon:m.jsx(sm,{}),disabled:!c,onClick:()=>n({type:"resetPaletteOverrides"})})})]}),m.jsx(Ie,{size:100,className:e.hint,children:"The generated ramp is an approximation of the platform generator. Override a slot to pin an exact colour."}),m.jsx("div",{className:e.slots,children:pi.map(p=>m.jsx(zn,{label:p,value:r.paletteOverrides[p],placeholder:a[p],contrastAgainst:p==="primary"?"#FFFFFF":void 0,onChange:g=>n({type:"setPaletteOverride",slot:p,value:g}),onReset:()=>n({type:"setPaletteOverride",slot:p,value:void 0})},p))}),m.jsxs(Ie,{size:100,className:e.hint,children:["Resolved primary: ",s.primary]})]})}const mE=ut({section:{display:"flex",flexDirection:"column",gap:T.spacingVerticalS},fontRow:{display:"flex",gap:T.spacingHorizontalS},fontDropdown:{minWidth:"auto"},hint:{color:T.colorNeutralForeground3},warning:{color:T.colorPaletteDarkOrangeForeground1}});function vE(e){return e.split(",")[0].trim().replace(/^['"]|['"]$/g,"")}function bE(){const e=mE(),{model:t,dispatch:r}=gr(),n=Fo(),a=t.font?vE(t.font):void 0,s=a!==void 0&&jb.some(c=>c.toLowerCase()===a.toLowerCase());return m.jsxs("div",{className:e.section,children:[m.jsx(Ve,{label:"Font",hint:"Pick a web-safe font from the list, or type any custom font-family name. Rendering may differ depending on the fonts installed and the browser used on each person's machine.",children:m.jsxs("div",{className:e.fontRow,children:[m.jsx(_r,{style:{flexGrow:1},placeholder:"Segoe UI",value:t.font??"",onChange:(c,u)=>r({type:"setFont",value:u.value})}),m.jsx(Ba,{mountNode:n,className:e.fontDropdown,button:{children:m.jsx(dz,{}),"aria-label":"Pick a web-safe font"},selectedOptions:[],value:"",onOptionSelect:(c,u)=>r({type:"setFont",value:u.optionValue}),children:jb.map(c=>m.jsx(ka,{value:c,text:c,children:c},c))})]})}),t.font&&!s&&m.jsxs(Ie,{size:100,className:e.warning,children:['"',a,`" isn't a web-safe family. The app renders it only on machines where the font is installed — the browser falls back otherwise.`]})]})}const yE=ut({body:{display:"flex",flexDirection:"column",gap:T.spacingVerticalM},preview:{display:"flex",alignItems:"center",gap:T.spacingHorizontalM},thumb:{maxWidth:"96px",maxHeight:"48px",border:`1px solid ${T.colorNeutralStroke2}`,borderRadius:T.borderRadiusMedium,backgroundColor:T.colorNeutralBackground2},hint:{color:T.colorNeutralForeground3}}),xE=/^[a-zA-Z][a-zA-Z0-9]*_[a-zA-Z0-9_./-]+$/;function wE(e){return e instanceof Error?e.message:String(e)}function py(e){return e?`${e.publisherPrefix.trim().replace(/_+$/,"")}_`:""}function kE({open:e,file:t,solution:r,onDismiss:n,onUploaded:a,mountNode:s}){const c=yE(),[u,f]=y.useState(""),[p,g]=y.useState(!1),[v,x]=y.useState();y.useEffect(()=>{e&&t&&(f(`${py(r)}${kM(t.fileName)}`),x(void 0))},[e,t,r]);const w=py(r),S=u.trim(),k=S?w?S.startsWith(w)?xE.test(S)?void 0:"Only letters, digits, underscore, dot, slash and hyphen are allowed.":`The name must start with "${w}", the publisher prefix of the selected solution.`:"Pick a target solution in the config bar first.":"Enter a name for the web resource.",B=async()=>{if(!(!t||!r||k)){g(!0),x(void 0);try{const z=await so.createWebResource({name:S,displayName:t.fileName,webResourceType:t.webResourceType,contentBase64:t.contentBase64,solutionUniqueName:r.uniqueName,description:"App header logo, uploaded by Theme Studio."});await so.publishWebResource(z.id),a(z)}catch(z){x(wE(z))}finally{g(!1)}}};return m.jsx(bn,{open:e,onOpenChange:(z,P)=>P.open||p?void 0:n(),children:m.jsx(kn,{mountNode:s,children:m.jsxs(xn,{children:[m.jsx(wn,{children:"Upload the logo"}),m.jsxs(Sn,{className:c.body,children:[t&&m.jsxs("div",{className:c.preview,children:[m.jsx("img",{className:c.thumb,src:t.dataUri,alt:""}),m.jsx("span",{className:c.hint,children:t.fileName})]}),m.jsx(Ve,{label:"Web resource name",required:!0,validationState:k?"error":"none",validationMessage:k,children:m.jsx(_r,{value:u,onChange:(z,P)=>f(P.value)})}),v&&m.jsx(at,{intent:"error",children:m.jsx(st,{children:v})}),p&&m.jsx(hr,{size:"tiny",labelPosition:"after",label:"Uploading and publishing the logo…"})]}),m.jsxs(yn,{children:[m.jsx(Me,{appearance:"secondary",disabled:p,onClick:n,children:"Cancel"}),m.jsx(af,{appearance:"primary",busy:p,busyLabel:"Uploading…",disabled:!!k,onClick:()=>{B()},children:"Upload"})]})]})})})}const SE="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTYiIGhlaWdodD0iOTYiIHZpZXdCb3g9IjAgMCA5NiA5NiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzQzMDNfMTIzMCkiPgo8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDFfNDMwM18xMjMwKSI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMl80MzAzXzEyMzApIj4KPHBhdGggZD0iTTEzLjg3NzYgMjEuODI0MkMyOS4xMDMzIDguMTM3OTEgNDkuNzUwMSA4LjE4NjEgNjIuOTU1IDE4LjkxMzRDNzQuOTgxNiAyOC42ODM2IDc3LjQ2OTcgNDQuMzE1OSA3MC44NTEgNTUuNzgwMUM2NC4yMzIxIDY3LjI0NDMgNTIuNTI3NyA3MC4xNDU1IDM5LjUwMTEgNjIuNjI0N0wzMS43Mjg2IDc2LjA4N0wzMS43MjM0IDc2LjA4NjJDMjcuNDE4MSA4My41MzI0IDE3Ljg5MzcgODYuMDgyOCAxMC40NDM3IDgxLjc4MTdDNy40NTM5NCA4MC4wNTU2IDUuMjUzMjIgNzcuNDg3OSAzLjk2NjY1IDc0LjU1MUwzLjk2MDk2IDc0LjU1MTFDLTQuMDc4MzIgNTUuNzgwNCAwLjIwMDc0NSAzNC4xMTg0IDEzLjg3NzYgMjEuODI0MloiIGZpbGw9InVybCgjcGFpbnQwX3JhZGlhbF80MzAzXzEyMzApIi8+CjxwYXRoIGQ9Ik0xMy44Nzc2IDIxLjgyNDJDMjkuMTAzMyA4LjEzNzkxIDQ5Ljc1MDEgOC4xODYxIDYyLjk1NSAxOC45MTM0Qzc0Ljk4MTYgMjguNjgzNiA3Ny40Njk3IDQ0LjMxNTkgNzAuODUxIDU1Ljc4MDFDNjQuMjMyMSA2Ny4yNDQzIDUyLjUyNzcgNzAuMTQ1NSAzOS41MDExIDYyLjYyNDdMMzEuNzI4NiA3Ni4wODdMMzEuNzIzNCA3Ni4wODYyQzI3LjQxODEgODMuNTMyNCAxNy44OTM3IDg2LjA4MjggMTAuNDQzNyA4MS43ODE3QzcuNDUzOTQgODAuMDU1NiA1LjI1MzIyIDc3LjQ4NzkgMy45NjY2NSA3NC41NTFMMy45NjA5NiA3NC41NTExQy00LjA3ODMyIDU1Ljc4MDQgMC4yMDA3NDUgMzQuMTE4NCAxMy44Nzc2IDIxLjgyNDJaIiBmaWxsPSJ1cmwoI3BhaW50MV9yYWRpYWxfNDMwM18xMjMwKSIgZmlsbC1vcGFjaXR5PSIwLjgiLz4KPHBhdGggZD0iTTg1LjQzMjcgMTQuMjIzMUM4OC40NTI4IDE1Ljk2NjggOTAuNjY4NiAxOC41NjkgOTEuOTQ5NCAyMS41NDMzTDkxLjk1MzMgMjEuNTQ0NEM5OS45NDA2IDQwLjI5NDMgOTUuNjUzMyA2MS45MDY4IDgxLjk5ODMgNzQuMTgxNEM2Ni43NzI2IDg3Ljg2NzcgNDYuMTI1NyA4Ny44MTk2IDMyLjkyMDkgNzcuMDkyM0MyMC44OTQ1IDY3LjMyMjEgMTguNDA2MiA1MS42ODk3IDI1LjAyNDkgNDAuMjI1NkMzMS42NDM4IDI4Ljc2MTQgNDMuMzQ4MiAyNS44NjAxIDU2LjM3NDggMzMuMzgxTDY0LjE0MzQgMTkuOTI1NUw2NC4xNDgyIDE5LjkyNDlDNjguNDUxNiAxMi40NzM2IDc3Ljk4MDUgOS45MjA4NCA4NS40MzI3IDE0LjIyMzFaIiBmaWxsPSJ1cmwoI3BhaW50Ml9yYWRpYWxfNDMwM18xMjMwKSIvPgo8cGF0aCBkPSJNODUuNDMyNyAxNC4yMjMxQzg4LjQ1MjggMTUuOTY2OCA5MC42Njg2IDE4LjU2OSA5MS45NDk0IDIxLjU0MzNMOTEuOTUzMyAyMS41NDQ0Qzk5Ljk0MDYgNDAuMjk0MyA5NS42NTMzIDYxLjkwNjggODEuOTk4MyA3NC4xODE0QzY2Ljc3MjYgODcuODY3NyA0Ni4xMjU3IDg3LjgxOTYgMzIuOTIwOSA3Ny4wOTIzQzIwLjg5NDUgNjcuMzIyMSAxOC40MDYyIDUxLjY4OTcgMjUuMDI0OSA0MC4yMjU2QzMxLjY0MzggMjguNzYxNCA0My4zNDgyIDI1Ljg2MDEgNTYuMzc0OCAzMy4zODFMNjQuMTQzNCAxOS45MjU1TDY0LjE0ODIgMTkuOTI0OUM2OC40NTE2IDEyLjQ3MzYgNzcuOTgwNSA5LjkyMDg0IDg1LjQzMjcgMTQuMjIzMVoiIGZpbGw9InVybCgjcGFpbnQzX3JhZGlhbF80MzAzXzEyMzApIiBmaWxsLW9wYWNpdHk9IjAuOSIvPgo8cGF0aCBkPSJNMzkuNTA0MSA2Mi42MjYxQzUyLjUzMDcgNzAuMTQ2OSA2NC4yMzUyIDY3LjI0NTYgNzAuODU0MSA1NS43ODE0Qzc3LjI0ODggNDQuNzA1NSA3NS4xNDI2IDI5LjczODkgNjQuMTQ3IDE5LjkyNzFMNTYuMzc5MSAzMy4zODE0TDM5LjUwNDEgNjIuNjI2MVoiIGZpbGw9InVybCgjcGFpbnQ0X3JhZGlhbF80MzAzXzEyMzApIi8+CjxwYXRoIGQ9Ik01Ni4zNzk0IDMzLjM4MTVDNDMuMzUyOCAyNS44NjA3IDMxLjY0ODIgMjguNzYyIDI1LjAyOTQgNDAuMjI2MkMxOC42MzQ3IDUxLjMwMjEgMjAuNzQwOSA2Ni4yNjg3IDMxLjczNjQgNzYuMDgwNkwzOS41MDQzIDYyLjYyNjJMNTYuMzc5NCAzMy4zODE1WiIgZmlsbD0idXJsKCNwYWludDVfcmFkaWFsXzQzMDNfMTIzMCkiLz4KPHBhdGggZD0iTTMzLjMyMTUgNTYuNDQ1M0MzNy45ODM3IDY0LjUyMDQgNDguMzA5NCA2Ny4yODcyIDU2LjM4NDYgNjIuNjI1QzY0LjQ1OTggNTcuOTYyOCA2Ny4yMjY2IDQ3LjYzNzEgNjIuNTY0MyAzOS41NjE5QzU3LjkwMjEgMzEuNDg2NyA0Ny41NzY0IDI4LjcyIDM5LjUwMTMgMzMuMzgyMkMzMS40MjYxIDM4LjA0NDQgMjguNjU5MyA0OC4zNzAxIDMzLjMyMTUgNTYuNDQ1M1oiIGZpbGw9InVybCgjcGFpbnQ2X3JhZGlhbF80MzAzXzEyMzApIi8+CjwvZz4KPC9nPgo8L2c+CjxkZWZzPgo8cmFkaWFsR3JhZGllbnQgaWQ9InBhaW50MF9yYWRpYWxfNDMwM18xMjMwIiBjeD0iMCIgY3k9IjAiIHI9IjEiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiBncmFkaWVudFRyYW5zZm9ybT0idHJhbnNsYXRlKDQ2LjAwMDEgNDkuNDk5Nikgcm90YXRlKC0xNDguNzE3KSBzY2FsZSg0Ni4yMTk1IDQ3LjUzNTkpIj4KPHN0b3Agb2Zmc2V0PSIwLjQ2NTA4OCIgc3RvcC1jb2xvcj0iIzA5NDQyQSIvPgo8c3RvcCBvZmZzZXQ9IjAuNzAwODgiIHN0b3AtY29sb3I9IiMxMzZDNkMiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMjI5MThCIi8+CjwvcmFkaWFsR3JhZGllbnQ+CjxyYWRpYWxHcmFkaWVudCBpZD0icGFpbnQxX3JhZGlhbF80MzAzXzEyMzAiIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIGdyYWRpZW50VHJhbnNmb3JtPSJ0cmFuc2xhdGUoNTAuMDAwMSAzMi40OTk2KSByb3RhdGUoMTIzLjU3KSBzY2FsZSg2Ni4wMDk1IDQ2LjU0OTgpIj4KPHN0b3Agb2Zmc2V0PSIwLjcxODcwNSIgc3RvcC1jb2xvcj0iIzFBN0Y3QyIgc3RvcC1vcGFjaXR5PSIwIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzE2QkJEQSIvPgo8L3JhZGlhbEdyYWRpZW50Pgo8cmFkaWFsR3JhZGllbnQgaWQ9InBhaW50Ml9yYWRpYWxfNDMwM18xMjMwIiBjeD0iMCIgY3k9IjAiIHI9IjEiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiBncmFkaWVudFRyYW5zZm9ybT0idHJhbnNsYXRlKDUwLjQ5OTkgNDQuNTAwMSkgcm90YXRlKDMwLjc1KSBzY2FsZSg0NS45NjE4IDQ0LjUwOTUpIj4KPHN0b3Agb2Zmc2V0PSIwLjM1ODA5NyIgc3RvcC1jb2xvcj0iIzEzNkM2QyIvPgo8c3RvcCBvZmZzZXQ9IjAuNzg5NDc0IiBzdG9wLWNvbG9yPSIjNDJCODcwIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc2RDQ1RSIvPgo8L3JhZGlhbEdyYWRpZW50Pgo8cmFkaWFsR3JhZGllbnQgaWQ9InBhaW50M19yYWRpYWxfNDMwM18xMjMwIiBjeD0iMCIgY3k9IjAiIHI9IjEiIGdyYWRpZW50VHJhbnNmb3JtPSJtYXRyaXgoNDIuNSAtMzYuMDAwMiAzMS4xODI0IDM2LjgxMjcgNDkuNDk5OCA1NS41MDAxKSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBvZmZzZXQ9IjAuNTgzMTY2IiBzdG9wLWNvbG9yPSIjNzZENDVFIiBzdG9wLW9wYWNpdHk9IjAiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjQzhGNUI3Ii8+CjwvcmFkaWFsR3JhZGllbnQ+CjxyYWRpYWxHcmFkaWVudCBpZD0icGFpbnQ0X3JhZGlhbF80MzAzXzEyMzAiIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIGdyYWRpZW50VHJhbnNmb3JtPSJ0cmFuc2xhdGUoNDcuNSA0OCkgcm90YXRlKC01OC45MDQyKSBzY2FsZSgzMi42ODk4KSI+CjxzdG9wIG9mZnNldD0iMC40ODYyNjYiIHN0b3AtY29sb3I9IiMyMjkxOEIiLz4KPHN0b3Agb2Zmc2V0PSIwLjcyOTU5OSIgc3RvcC1jb2xvcj0iIzQyQjg3MCIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM0M0U1Q0EiLz4KPC9yYWRpYWxHcmFkaWVudD4KPHJhZGlhbEdyYWRpZW50IGlkPSJwYWludDVfcmFkaWFsXzQzMDNfMTIzMCIgY3g9IjAiIGN5PSIwIiByPSIxIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgZ3JhZGllbnRUcmFuc2Zvcm09InRyYW5zbGF0ZSg0Ny4zODMzIDQ5LjAwNzcpIHJvdGF0ZSgxMTkuODU5KSBzY2FsZSgzMS4xMzI4IDI5LjQwMzIpIj4KPHN0b3Agb2Zmc2V0PSIwLjQ1OTU1MyIgc3RvcC1jb2xvcj0iIzA4NDk0RSIvPgo8c3RvcCBvZmZzZXQ9IjAuNzQyMjQyIiBzdG9wLWNvbG9yPSIjMUE3RjdDIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzMwOUM2MSIvPgo8L3JhZGlhbEdyYWRpZW50Pgo8cmFkaWFsR3JhZGllbnQgaWQ9InBhaW50Nl9yYWRpYWxfNDMwM18xMjMwIiBjeD0iMCIgY3k9IjAiIHI9IjEiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiBncmFkaWVudFRyYW5zZm9ybT0idHJhbnNsYXRlKDUyLjUgNDApIHJvdGF0ZSgxMjAuNzg0KSBzY2FsZSgyNy4zNTQyKSI+CjxzdG9wIHN0b3AtY29sb3I9IiNDOEY1QjciLz4KPHN0b3Agb2Zmc2V0PSIwLjI0NTgzIiBzdG9wLWNvbG9yPSIjOThGMEIwIi8+CjxzdG9wIG9mZnNldD0iMC42NDM5NjEiIHN0b3AtY29sb3I9IiM1MkQxN0MiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMTE5RkM1Ii8+CjwvcmFkaWFsR3JhZGllbnQ+CjxjbGlwUGF0aCBpZD0iY2xpcDBfNDMwM18xMjMwIj4KPHJlY3Qgd2lkdGg9Ijk2IiBoZWlnaHQ9Ijk2IiBmaWxsPSJ3aGl0ZSIvPgo8L2NsaXBQYXRoPgo8Y2xpcFBhdGggaWQ9ImNsaXAxXzQzMDNfMTIzMCI+CjxyZWN0IHdpZHRoPSI5NiIgaGVpZ2h0PSI5NiIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPGNsaXBQYXRoIGlkPSJjbGlwMl80MzAzXzEyMzAiPgo8cmVjdCB3aWR0aD0iOTUuOTk5OCIgaGVpZ2h0PSI5NiIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K",BE=ut({section:{display:"flex",flexDirection:"column",gap:T.spacingVerticalS},hint:{color:T.colorNeutralForeground3},buttons:{display:"flex",gap:T.spacingHorizontalS},dataverseIcon:{width:"16px",height:"16px",display:"block"}}),zE=/^[a-zA-Z][a-zA-Z0-9]*_[a-zA-Z0-9_./-]+$/;function jE(e){return e instanceof Error?e.message:String(e)}function _E(){const e=BE(),t=Fo(),{model:r,dispatch:n}=gr(),{connection:a,selectedSolution:s,logoWarning:c,logoLoading:u,setPendingLogo:f}=Na(),[p,g]=y.useState(!1),[v,x]=y.useState(),[w,S]=y.useState(),k=r.logoWebResource??"",B=k!==""&&!zE.test(k),z=!!a,P=C=>{g(!1),f(void 0),n({type:"setLogoWebResource",value:C.name})},j=async()=>{S(void 0);let C;try{C=await xM()}catch(I){S(jE(I));return}if(C){if(f(C.dataUri,Hb(C.dimensions)),!s){S("Pick a target solution in the config bar before uploading a logo."),f(void 0);return}x(C)}},N=C=>{f(void 0),x(void 0),n({type:"setLogoWebResource",value:C.name})},M=()=>{f(void 0),x(void 0)};return m.jsxs("div",{className:e.section,children:[m.jsx(Ve,{label:"Logo web resource",hint:"Logical name (with publisher prefix) of an image web resource. Recommended size 156 × 48 px.",validationState:B?"warning":"none",validationMessage:B?"This does not look like a logical name, e.g. contoso_company-logo.":void 0,children:m.jsx(_r,{value:k,placeholder:"contoso_company-logo",onChange:(C,I)=>{f(void 0),n({type:"setLogoWebResource",value:I.value})}})}),m.jsxs("div",{className:e.buttons,children:[m.jsx(Me,{size:"small",icon:m.jsx("img",{className:e.dataverseIcon,src:SE,alt:""}),disabled:!z,onClick:()=>g(!0),children:"Select from Dataverse"}),m.jsx(Me,{size:"small",icon:m.jsx(cm,{}),disabled:!z,onClick:()=>{j()},children:"Upload"}),u&&m.jsx(hr,{size:"tiny",labelPosition:"after",label:"Loading logo…"})]}),m.jsx(Ve,{label:"Logo tooltip",hint:`Tooltip shown on the app-header logo. The platform default is "${Qd}".`,children:m.jsx(_r,{value:r.logoTooltip??"",placeholder:Qd,onChange:(C,I)=>n({type:"setLogoTooltip",value:I.value})})}),c&&m.jsx(at,{intent:"warning",children:m.jsx(st,{children:c})}),w&&m.jsx(at,{intent:"error",children:m.jsx(st,{children:w})}),!z&&m.jsx(Ie,{size:100,className:e.hint,children:"Browsing and uploading image web resources needs an active Dataverse connection."}),m.jsx(Zb,{open:p,title:"Pick a logo web resource",types:Fb,onDismiss:()=>g(!1),onPick:P,mountNode:t}),m.jsx(kE,{open:!!v,file:v,solution:s,onDismiss:M,onUploaded:N,mountNode:t})]})}const CE=ut({section:{display:"flex",flexDirection:"column",gap:T.spacingVerticalS},hint:{color:T.colorNeutralForeground3}}),NE=[{label:"Rest",background:"background",foreground:"foreground",required:!0},{label:"Hover",background:"backgroundHover",foreground:"foregroundHover"},{label:"Pressed",background:"backgroundPressed",foreground:"foregroundPressed"},{label:"Selected",background:"backgroundSelected",foreground:"foregroundSelected"}];function TE(){const e=CE(),{model:t,dispatch:r}=gr(),n=t.appHeaderColors,a=n!==void 0,s=t.kind==="appHeaderColorsOnly",c=a&&!n.background;return m.jsxs("div",{className:e.section,children:[!s&&m.jsx(Ro,{label:"Override app header colors",checked:a,onChange:(u,f)=>r({type:"setAppHeaderColorsEnabled",enabled:f.checked})}),!a&&m.jsx(Ie,{size:100,className:e.hint,children:"Without an override, the platform derives the header colours from the palette."}),c&&m.jsx(at,{intent:"warning",children:m.jsx(st,{children:'"background" is required — no header colour change takes effect until it is set.'})}),a&&NE.map(u=>{const f=n[u.background],p=n[u.foreground],g=f||n.background||void 0;return m.jsxs("div",{className:e.section,children:[m.jsx(Ie,{weight:"semibold",size:200,children:u.label}),m.jsx(zn,{label:u.background,value:f||void 0,placeholder:u.required?void 0:n.background||void 0,hint:u.required?"Required — the header only changes when this is set.":'Calculated from "background" when left empty.',onChange:v=>r({type:"setAppHeaderColor",attribute:u.background,value:v}),onReset:u.required?void 0:()=>r({type:"setAppHeaderColor",attribute:u.background,value:void 0})}),m.jsx(zn,{label:u.foreground,value:p,hint:"Calculated for sufficient contrast when left empty.",contrastAgainst:g,onChange:v=>r({type:"setAppHeaderColor",attribute:u.foreground,value:v}),onReset:()=>r({type:"setAppHeaderColor",attribute:u.foreground,value:void 0})})]},u.label)})]})}const PE=ut({root:{display:"flex",flexDirection:"column",gap:T.spacingVerticalS,padding:T.spacingHorizontalL,width:"360px",minWidth:"300px",backgroundColor:T.colorNeutralBackground2,borderLeft:`1px solid ${T.colorNeutralStroke1}`,overflowY:"auto"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:T.spacingHorizontalS},hint:{color:T.colorNeutralForeground3},kind:{display:"flex",flexDirection:"column",gap:T.spacingVerticalXXS},startNewButtonWrapper:{flexShrink:0,marginTop:T.spacingVerticalM,height:"40px"},startNewButton:{width:"100%",height:"100%",justifyContent:"center"},accordion:{display:"flex",flexDirection:"column",gap:T.spacingVerticalM},accordionItem:{backgroundColor:T.colorNeutralBackground1,border:`1px solid ${T.colorNeutralStroke2}`,borderRadius:T.borderRadiusXLarge,boxShadow:T.shadow2,overflow:"hidden"},accordionHeader:{fontWeight:T.fontWeightSemibold,fontSize:T.fontSizeBase400,letterSpacing:"0.2px"},emoji:{marginRight:T.spacingHorizontalS},accordionPanel:{paddingBottom:T.spacingVerticalM}});async function Ll(e,t,r){try{await window.toolboxAPI.utils.showNotification({title:e,body:t,type:r})}catch(n){console.error("Unable to show a notification:",n)}}function hy(e){return e instanceof Error?e.message:String(e)}function RE(){const e=PE(),t=Fo(),{model:r,dispatch:n,dirty:a,canUndo:s,canRedo:c}=gr(),[u,f]=y.useState(!1),p=[...Object.keys(r.unknownAttributes),...Object.keys(r.unknownAppHeaderColorsAttributes)],g=async()=>{f(!0);try{const w=await VM();w&&(n({type:"load",model:w}),await Ll("Theme imported","The theme XML file was loaded successfully.","success"))}catch(w){await Ll("Import failed",hy(w),"error")}finally{f(!1)}},v=async()=>{f(!0);try{const w=await WM(r);w&&(n({type:"markSaved"}),await Ll("Theme exported",`Saved to ${w}.`,"success"))}catch(w){await Ll("Export failed",hy(w),"error")}finally{f(!1)}},x=()=>{n({type:"load",model:r.kind==="appHeaderColorsOnly"?zb():Ml()})};return m.jsxs("div",{className:e.root,children:[m.jsxs("div",{className:e.header,children:[m.jsx(Ad,{children:"Theme"}),a&&m.jsx(Ie,{size:100,className:e.hint,children:"Unsaved changes"})]}),p.length>0&&m.jsx(at,{intent:"info",children:m.jsxs(st,{children:[m.jsx(di,{children:"Preserved as-is"}),"This theme also sets ",p.join(", "),", which this tool can't edit. The values are kept unchanged when the theme is saved."]})}),m.jsxs(Jv,{size:"small",children:[m.jsx(No,{content:"Undo",relationship:"label",mountNode:t,children:m.jsx(_a,{icon:m.jsx(uz,{}),disabled:!s,onClick:()=>n({type:"undo"}),"aria-label":"Undo"})}),m.jsx(No,{content:"Redo",relationship:"label",mountNode:t,children:m.jsx(_a,{icon:m.jsx(cz,{}),disabled:!c,onClick:()=>n({type:"redo"}),"aria-label":"Redo"})}),m.jsx(eb,{}),m.jsx(_a,{icon:m.jsx(cm,{}),disabled:u,onClick:g,children:"Import"}),m.jsx(_a,{icon:m.jsx(sz,{}),disabled:u,onClick:v,children:"Export"})]}),m.jsxs("div",{className:e.kind,children:[m.jsx(Ie,{weight:"semibold",size:200,children:"Theme document"}),m.jsxs(ml,{value:r.kind,onChange:(w,S)=>n({type:"setKind",kind:S.value}),children:[m.jsx(vn,{value:"customTheme",label:"Create full custom theme (CustomTheme)"}),m.jsx(vn,{value:"appHeaderColorsOnly",label:"Override only app header color (AppHeaderColors)"})]}),m.jsx(Ie,{size:100,className:e.hint,children:"The header-only override is ignored by the platform when a custom theme definition is also set."})]}),m.jsxs(qg,{multiple:!0,collapsible:!0,defaultOpenItems:["palette","appHeader"],className:e.accordion,children:[r.kind==="customTheme"&&m.jsxs(pa,{value:"palette",className:e.accordionItem,children:[m.jsxs(ga,{className:e.accordionHeader,size:"large",children:[m.jsx("span",{"aria-hidden":"true",className:e.emoji,children:"🎨"}),"Palette"]}),m.jsx(va,{className:e.accordionPanel,children:m.jsx(gE,{})})]}),r.kind==="customTheme"&&m.jsxs(pa,{value:"typography",className:e.accordionItem,children:[m.jsxs(ga,{className:e.accordionHeader,size:"large",children:[m.jsx("span",{"aria-hidden":"true",className:e.emoji,children:"🔤"}),"Typography"]}),m.jsx(va,{className:e.accordionPanel,children:m.jsx(bE,{})})]}),r.kind==="customTheme"&&m.jsxs(pa,{value:"logo",className:e.accordionItem,children:[m.jsxs(ga,{className:e.accordionHeader,size:"large",children:[m.jsx("span",{"aria-hidden":"true",className:e.emoji,children:"🖼️"}),"Logo"]}),m.jsx(va,{className:e.accordionPanel,children:m.jsx(_E,{})})]}),m.jsxs(pa,{value:"appHeader",className:e.accordionItem,children:[m.jsxs(ga,{className:e.accordionHeader,size:"large",children:[m.jsx("span",{"aria-hidden":"true",className:e.emoji,children:"🧭"}),"App header"]}),m.jsx(va,{className:e.accordionPanel,children:m.jsx(TE,{})})]})]}),m.jsx("div",{className:e.startNewButtonWrapper,children:m.jsx(Me,{appearance:"secondary",icon:m.jsx(od,{}),onClick:x,className:e.startNewButton,children:"Start from an empty theme"})})]})}const gy=ut({root:{display:"flex",alignItems:"center",gap:T.spacingHorizontalS,height:"48px",paddingLeft:T.spacingHorizontalS,paddingRight:T.spacingHorizontalM,flexShrink:0},button:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:T.spacingHorizontalXS,minWidth:"36px",height:"36px",paddingLeft:T.spacingHorizontalXS,paddingRight:T.spacingHorizontalXS,border:"none",borderRadius:T.borderRadiusMedium,backgroundColor:"transparent",fontSize:T.fontSizeBase300,fontFamily:"inherit",cursor:"default"},logo:{display:"inline-flex",alignItems:"center",gap:T.spacingHorizontalNone,paddingLeft:T.spacingHorizontalS,paddingRight:T.spacingHorizontalS,height:"48px"},logoImage:{height:"100%",maxWidth:"156px",objectFit:"fill"},productName:{fontSize:T.fontSizeBase400,fontWeight:T.fontWeightSemibold,whiteSpace:"nowrap"},separator:{width:"1px",height:"20px",opacity:.5},appName:{fontSize:T.fontSizeBase300,whiteSpace:"nowrap"},spacer:{flexGrow:1},avatar:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",borderRadius:T.borderRadiusCircular,border:"1px solid currentColor",fontSize:T.fontSizeBase200,flexShrink:0}});function Ao({colors:e,label:t,children:r,className:n}){const a=gy(),[s,c]=y.useState(!1),[u,f]=y.useState(!1),p=u?e.backgroundPressed:s?e.backgroundHover:"transparent",g=u?e.foregroundPressed:s?e.foregroundHover:e.foreground;return m.jsx("button",{type:"button","aria-label":t,title:t,className:Q(a.button,n),style:{backgroundColor:p,color:g},onMouseEnter:()=>c(!0),onMouseLeave:()=>{c(!1),f(!1)},onMouseDown:()=>f(!0),onMouseUp:()=>f(!1),onFocus:()=>c(!0),onBlur:()=>c(!1),children:r})}function ME({colors:e,logoDataUri:t,logoTooltip:r,appName:n}){const a=gy(),s=r?.trim()||Qd;return m.jsxs("header",{className:a.root,style:{backgroundColor:e.background,color:e.foreground},"data-themed":"App header","aria-label":"Sample app header",children:[m.jsx(Ao,{colors:e,label:"App launcher",children:m.jsx(zz,{fontSize:20})}),m.jsx("div",{className:a.logo,title:s,children:t?m.jsx("img",{className:a.logoImage,src:t,alt:s}):m.jsx("span",{className:a.productName,children:s})}),m.jsx("div",{className:a.separator,style:{backgroundColor:e.foreground}}),m.jsx("span",{className:a.appName,children:n}),m.jsx("div",{className:a.spacer}),m.jsx(Ao,{colors:e,label:"Search",children:m.jsx(td,{fontSize:20})}),m.jsx(Ao,{colors:e,label:"Copilot",children:m.jsx(iz,{fontSize:20})}),m.jsx(Ao,{colors:e,label:"Quick create",children:m.jsx(rd,{fontSize:20})}),m.jsx(Ao,{colors:e,label:"Filters",children:m.jsx(fm,{fontSize:20})}),m.jsx(Ao,{colors:e,label:"Settings",children:m.jsx(U4,{fontSize:20})}),m.jsx(Ao,{colors:e,label:"Help",children:m.jsx(jz,{fontSize:20})}),m.jsx(Ao,{colors:e,label:"Feedback",children:m.jsx(K4,{fontSize:20})}),m.jsx("span",{className:a.avatar,"aria-hidden":"true",children:"AU"})]})}const EE=ut({root:{display:"flex",flexDirection:"column",gap:T.spacingVerticalXXS,width:"224px",flexShrink:0,paddingTop:T.spacingVerticalS,paddingBottom:T.spacingVerticalS,paddingLeft:T.spacingHorizontalXS,paddingRight:T.spacingHorizontalXS,backgroundColor:T.colorNeutralBackground3,overflowY:"auto"},item:{position:"relative",display:"flex",alignItems:"center",gap:T.spacingHorizontalM,width:"100%",height:"36px",paddingLeft:T.spacingHorizontalM,paddingRight:T.spacingHorizontalM,border:"none",borderRadius:T.borderRadiusMedium,backgroundColor:"transparent",color:T.colorNeutralForeground1,fontFamily:"inherit",fontSize:T.fontSizeBase300,textAlign:"left",cursor:"default",":hover":{backgroundColor:T.colorNeutralBackground3Hover}},selected:{backgroundColor:T.colorBrandBackground2,color:T.colorBrandForeground2,fontWeight:T.fontWeightSemibold,":hover":{backgroundColor:T.colorBrandBackground2Hover},"::before":{content:'""',position:"absolute",left:0,top:"6px",bottom:"6px",width:"3px",borderRadius:T.borderRadiusCircular,backgroundColor:T.colorBrandStroke1}},label:{flexGrow:1},groupLabel:{paddingLeft:T.spacingHorizontalM,paddingTop:T.spacingVerticalM,paddingBottom:T.spacingVerticalXS,fontSize:T.fontSizeBase300,fontWeight:T.fontWeightSemibold,color:T.colorNeutralForeground2}}),IE=[{key:"home",label:"Home",icon:m.jsx(vz,{fontSize:20})},{key:"recent",label:"Recent",icon:m.jsx(nz,{fontSize:20}),expandable:!0},{key:"pinned",label:"Pinned",icon:m.jsx(az,{fontSize:20}),expandable:!0}],FE=[{key:"accelerator",label:"Sales accelerator",icon:m.jsx(Bz,{fontSize:20})},{key:"activities",label:"Activities",icon:m.jsx(nm,{fontSize:20})},{key:"dashboards",label:"Dashboards",icon:m.jsx(rm,{fontSize:20})},{key:"accounts",label:"Accounts",icon:m.jsx(rm,{fontSize:20})}];function AE(){const e=EE(),[t,r]=y.useState("accounts"),n=a=>m.jsxs("button",{type:"button",className:Q(e.item,t===a.key&&e.selected),"aria-current":t===a.key?"page":void 0,onClick:()=>r(a.key),children:[a.icon,m.jsx("span",{className:e.label,children:a.label}),a.expandable&&m.jsx(pn,{fontSize:16})]},a.key);return m.jsxs("nav",{className:e.root,"aria-label":"Sample app navigation","data-themed":"Navigation selection and hover",children:[m.jsx("button",{type:"button",className:e.item,"aria-label":"Collapse navigation",children:m.jsx(tz,{fontSize:20})}),IE.map(n),m.jsx("div",{className:e.groupLabel,children:"My Work"}),FE.map(n)]})}const DE=ut({root:{display:"flex",alignItems:"center",gap:T.spacingHorizontalXXS,...ta.borderRadius(T.borderRadiusLarge),backgroundColor:T.colorNeutralBackground1,boxShadow:T.shadow4,paddingLeft:T.spacingHorizontalS,paddingRight:T.spacingHorizontalS,paddingTop:T.spacingVerticalXS,paddingBottom:T.spacingVerticalXS,flexShrink:0},spacer:{flexGrow:1},divider:{width:"1px",height:"20px",backgroundColor:T.colorNeutralStroke2,marginLeft:T.spacingHorizontalXS,marginRight:T.spacingHorizontalXS}});function qE({commands:e,primaryLabel:t="Share"}){const r=DE();return m.jsxs("div",{className:r.root,role:"toolbar","aria-label":"Sample command bar",children:[e.map(n=>m.jsx(Me,{appearance:"subtle",icon:n.icon,children:m.jsx("span",{style:{whiteSpace:"nowrap"},children:n.label})},n.key)),m.jsx(Me,{appearance:"subtle",icon:m.jsx(pn,{}),"aria-label":"More commands"}),m.jsx("div",{className:r.divider}),m.jsx(Me,{appearance:"subtle",icon:m.jsx(V4,{}),"aria-label":"More"}),m.jsx("div",{className:r.spacer}),m.jsx(Me,{appearance:"primary",icon:m.jsx(em,{}),"data-themed":"Primary button",children:t})]})}function my(e){return{...e,colorCompoundBrandStroke:e.colorNeutralStroke1,colorCompoundBrandStrokeHover:e.colorNeutralStroke1Hover,colorCompoundBrandStrokePressed:e.colorNeutralStroke1Pressed}}const OE=ut({host:{display:"contents"}});function Pt({isDisabled:e,...t}){const r=OE(),{previewTheme:n}=gr(),a=e?my(n.fluentTheme):n.fluentTheme;return m.jsx(Zn,{theme:a,className:r.host,children:m.jsx(_r,{appearance:"filled-darker",readOnly:e,...t})})}const hf=[{id:"1",name:"A. Datum Corporation (sample)",mainPhone:"555-0158",city:"Redmond",primaryContact:"Rene Valdes (sample)",email:"someone_i@example.com"},{id:"2",name:"Adventure Works (sample)",mainPhone:"555-0152",city:"Santa Cruz",primaryContact:"Nancy Anderson (sample)",email:"someone_c@example.com"},{id:"3",name:"Alpine Ski House (sample)",mainPhone:"555-0157",city:"Missoula",primaryContact:"Paul Cannon (sample)",email:"someone_h@example.com"},{id:"4",name:"Blue Yonder Airlines (sample)",mainPhone:"555-0154",city:"Los Angeles",primaryContact:"Sidney Higa (sample)",email:"someone_e@example.com"},{id:"5",name:"City Power & Light (sample)",mainPhone:"555-0155",city:"Redmond",primaryContact:"Scott Konersmann (sample)",email:"someone_f@example.com"},{id:"6",name:"Coho Winery (sample)",mainPhone:"555-0159",city:"Phoenix",primaryContact:"Jim Glynn (sample)",email:"someone_j@example.com"},{id:"7",name:"Contoso Pharmaceuticals (sample)",mainPhone:"555-0156",city:"Redmond",primaryContact:"Robert Lyon (sample)",email:"someone_g@example.com"},{id:"8",name:"Fabrikam, Inc. (sample)",mainPhone:"555-0153",city:"Lynnwood",primaryContact:"Maria Campbell (sample)",email:"someone_d@example.com"}],HE=["My Active Accounts","All Accounts","Accounts: Influenced Deals That We Won","Active Accounts","Inactive Accounts"],LE=ut({root:{display:"flex",flexDirection:"column",gap:T.spacingVerticalM,padding:T.spacingHorizontalL,minWidth:0,flexGrow:1},surface:{display:"flex",flexDirection:"column",...ta.borderRadius(T.borderRadiusLarge),backgroundColor:T.colorNeutralBackground1,boxShadow:T.shadow4,overflow:"hidden"},gridHeader:{display:"flex",alignItems:"center",gap:T.spacingHorizontalM,padding:`${T.spacingVerticalM} ${T.spacingHorizontalL}`},viewSelector:{display:"inline-flex",alignItems:"center",gap:T.spacingHorizontalXS,border:"none",backgroundColor:"transparent",color:T.colorNeutralForeground1,fontFamily:"inherit",lineHeight:T.lineHeightBase500,fontSize:T.fontSizeBase500,fontWeight:T.fontWeightSemibold,cursor:"default",padding:0},spacer:{flexGrow:1},iconButton:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",borderRadius:T.borderRadiusMedium,backgroundColor:"transparent",color:T.colorNeutralForeground2,cursor:"default",":hover":{backgroundColor:T.colorNeutralBackground1Hover}},search:{width:"240px"},table:{width:"100%",borderCollapse:"collapse",fontSize:T.fontSizeBase300},th:{textAlign:"left",fontWeight:T.fontWeightSemibold,color:T.colorNeutralForeground1,padding:`${T.spacingVerticalS} ${T.spacingHorizontalM}`,borderBottom:`1px solid ${T.colorNeutralStroke2}`,whiteSpace:"nowrap"},td:{padding:`${T.spacingVerticalS} ${T.spacingHorizontalM}`,borderBottom:`1px solid ${T.colorNeutralStroke3}`,color:T.colorNeutralForeground1,whiteSpace:"nowrap"},checkboxCell:{width:"44px",paddingLeft:T.spacingHorizontalM},row:{":hover":{backgroundColor:T.colorNeutralBackground1Hover}},selectedRow:{backgroundColor:T.colorBrandBackground2,":hover":{backgroundColor:T.colorBrandBackground2Hover}},link:{color:T.colorBrandForegroundLink,textDecorationLine:"none",cursor:"default",":hover":{color:T.colorBrandForegroundLinkHover,textDecorationLine:"underline"}},empty:{padding:T.spacingHorizontalL,color:T.colorNeutralForeground3}}),VE=[{key:"chart",label:"Show Chart",icon:m.jsx(um,{})},{key:"focused",label:"Focused view",icon:m.jsx(nm,{})},{key:"new",label:"New",icon:m.jsx(rd,{})},{key:"delete",label:"Delete",icon:m.jsx(od,{})},{key:"refresh",label:"Refresh",icon:m.jsx(am,{})},{key:"visualize",label:"Visualize this view",icon:m.jsx(um,{})}],WE=[{key:"name",label:"Account Name"},{key:"mainPhone",label:"Main Phone"},{key:"city",label:"Address 1: City"},{key:"primaryContact",label:"Primary Contact"},{key:"email",label:"Email (Primary Contact)"}];function $E(){const e=LE(),[t,r]=y.useState([]),[n,a]=y.useState(""),s=y.useMemo(()=>{const f=n.trim().toLowerCase();return f?hf.filter(p=>Object.values(p).some(g=>g.toLowerCase().includes(f))):hf},[n]),c=s.length>0&&s.every(f=>t.includes(f.id)),u=f=>{r(p=>p.includes(f)?p.filter(g=>g!==f):[...p,f])};return m.jsxs("div",{className:e.root,children:[m.jsx(qE,{commands:VE}),m.jsxs("div",{className:e.surface,children:[m.jsxs("div",{className:e.gridHeader,children:[m.jsxs("button",{type:"button",className:e.viewSelector,"aria-label":"View selector",children:[HE[0],m.jsx(pn,{fontSize:20})]}),m.jsx("div",{className:e.spacer}),m.jsx("button",{type:"button",className:e.iconButton,"aria-label":"Edit columns",children:m.jsx(L4,{fontSize:20})}),m.jsx("button",{type:"button",className:e.iconButton,"aria-label":"Edit filters",children:m.jsx(fm,{fontSize:20})}),m.jsx(Pt,{className:e.search,size:"medium",placeholder:"Filter by keyword",contentBefore:m.jsx(td,{}),value:n,onChange:(f,p)=>a(p.value),"aria-label":"Filter by keyword"})]}),m.jsxs("table",{className:e.table,"data-themed":"Row selection, hover and hyperlinks",children:[m.jsx("thead",{children:m.jsxs("tr",{children:[m.jsx("th",{className:Q(e.th,e.checkboxCell),children:m.jsx(fl,{checked:c,"aria-label":"Select all rows",onChange:(f,p)=>r(p.checked?s.map(g=>g.id):[])})}),WE.map(f=>m.jsx("th",{className:e.th,children:f.label},f.key))]})}),m.jsx("tbody",{children:s.map(f=>{const p=t.includes(f.id);return m.jsxs("tr",{className:Q(e.row,p&&e.selectedRow),"aria-selected":p,children:[m.jsx("td",{className:Q(e.td,e.checkboxCell),children:m.jsx(fl,{checked:p,"aria-label":`Select ${f.name}`,onChange:()=>u(f.id)})}),m.jsx("td",{className:e.td,children:m.jsx("span",{className:e.link,children:f.name})}),m.jsx("td",{className:e.td,children:m.jsx("span",{className:e.link,children:f.mainPhone})}),m.jsx("td",{className:e.td,children:f.city}),m.jsx("td",{className:e.td,children:m.jsx("span",{className:e.link,children:f.primaryContact})}),m.jsx("td",{className:e.td,children:m.jsx("span",{className:e.link,children:f.email})})]},f.id)})})]}),s.length===0&&m.jsx("div",{className:e.empty,children:"No records match the keyword."})]})]})}const UE=ut({host:{display:"contents"}});function GE({isDisabled:e,...t}){const r=UE(),{previewTheme:n}=gr(),a=e?my(n.fluentTheme):n.fluentTheme;return m.jsx(Zn,{theme:a,className:r.host,children:m.jsx(Wv,{appearance:"filled-darker",readOnly:e,...t})})}const gf=ut({root:{display:"flex",flexDirection:"column",gap:T.spacingVerticalM,padding:T.spacingHorizontalL,minWidth:0,flexGrow:1},surface:{display:"flex",flexDirection:"column",...ta.borderRadius(T.borderRadiusLarge),backgroundColor:T.colorNeutralBackground1,boxShadow:T.shadow4},formHeader:{display:"flex",alignItems:"center",flexWrap:"nowrap",columnGap:T.spacingHorizontalL,padding:`${T.spacingVerticalS} ${T.spacingHorizontalM}`},titleGroup:{display:"flex",alignItems:"center",gap:T.spacingHorizontalM,flexShrink:0,minWidth:0},headerFields:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:T.spacingHorizontalM,flexShrink:0,marginLeft:"auto"},recordIcon:{display:"flex",alignItems:"center",justifyContent:"center",width:"36px",height:"36px",flexShrink:0,...ta.borderRadius(T.borderRadiusCircular),backgroundColor:T.colorNeutralBackground4,color:T.colorNeutralForeground2},titleBlock:{display:"flex",flexDirection:"column",minWidth:0},recordName:{fontSize:T.fontSizeBase600,lineHeight:T.lineHeightBase600,fontWeight:T.fontWeightSemibold,textWrap:"nowrap"},recordSubtitle:{display:"flex",alignItems:"center",gap:T.spacingHorizontalXXS,fontSize:T.fontSizeBase200,color:T.colorNeutralForeground3},headerField:{display:"flex",flexDirection:"column",gap:T.spacingVerticalXXS},headerFieldLabel:{fontSize:T.fontSizeBase200,color:T.colorNeutralForeground1},ownerField:{display:"flex",alignItems:"center",gap:T.spacingHorizontalS},commands:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:T.spacingHorizontalXXS,flexShrink:0},commandsPushed:{marginLeft:"auto"},commandButton:{minWidth:"auto",flexShrink:0,whiteSpace:"nowrap"},divider:{width:"1px",alignSelf:"stretch",marginTop:T.spacingVerticalXS,marginBottom:T.spacingVerticalXS,backgroundColor:T.colorNeutralStroke2},tabs:{display:"flex",alignItems:"flex-end",gap:T.spacingHorizontalXS,paddingLeft:T.spacingHorizontalL,paddingRight:T.spacingHorizontalM},tab:{position:"relative",border:"none",backgroundColor:"transparent",color:T.colorNeutralForeground2,fontFamily:"inherit",fontSize:T.fontSizeBase300,padding:`${T.spacingVerticalS} ${T.spacingHorizontalM}`,cursor:"default",":hover":{color:T.colorNeutralForeground1}},activeTab:{color:T.colorNeutralForeground1,fontWeight:T.fontWeightSemibold,"::after":{content:'""',position:"absolute",left:T.spacingHorizontalM,right:T.spacingHorizontalM,bottom:0,height:"2px",borderRadius:T.borderRadiusCircular,backgroundColor:T.colorCompoundBrandStroke}},columns:{display:"flex",flexWrap:"wrap",alignItems:"flex-start",gap:T.spacingHorizontalM},section:{display:"flex",flexDirection:"column",gap:T.spacingVerticalM,minWidth:"280px",flexGrow:1,flexBasis:"320px",padding:T.spacingHorizontalL,...ta.borderRadius(T.borderRadiusLarge),backgroundColor:T.colorNeutralBackground1,boxShadow:T.shadow4},sectionTitle:{fontSize:T.fontSizeBase200,fontWeight:T.fontWeightSemibold,textTransform:"uppercase",letterSpacing:"0.4px",color:T.colorNeutralForeground2},lookup:{display:"inline-flex",alignItems:"center",gap:T.spacingHorizontalXS,color:T.colorBrandForegroundLink,paddingLeft:T.spacingHorizontalS,cursor:"default",":hover":{color:T.colorBrandForegroundLinkHover,textDecorationLine:"underline"}},ownerLink:{paddingLeft:0,whiteSpace:"nowrap"}}),XE=["Summary","Details","Related"],mf=[{key:"save",label:"Save",icon:m.jsx(om,{})},{key:"saveClose",label:"Save & Close",icon:m.jsx(J4,{})},{key:"new",label:"New",icon:m.jsx(rd,{})}],xi={...hf[0],name:"Contoso Inc."},KE=1120,YE=[560,700,840];function QE(){const e=y.useRef(null),[t,r]=y.useState(0);return y.useEffect(()=>{const n=e.current;if(!n)return;const a=new ResizeObserver(([s])=>r(s.contentRect.width));return a.observe(n),()=>a.disconnect()},[]),[e,t]}function ZE({hidden:e}){const t=gf(),r=Fo();return m.jsxs(zv,{mountNode:r,children:[m.jsx(Rd,{disableButtonEnhancement:!0,children:m.jsx(Me,{className:t.commandButton,appearance:"subtle",icon:m.jsx(W4,{}),"aria-label":"More commands"})}),m.jsx(Mv,{children:m.jsxs(Rv,{children:[e.map(n=>m.jsx(gl,{icon:n.icon,children:n.label},n.key)),m.jsx(gl,{icon:m.jsx(od,{}),children:"Delete"}),m.jsx(gl,{icon:m.jsx(am,{}),children:"Refresh"})]})})]})}function vy({label:e,value:t}){const r=gf();return m.jsx(Ve,{label:e,children:m.jsxs("span",{className:r.lookup,"data-themed":"Lookup",children:[m.jsx(tm,{}),t]})})}function JE(){const e=gf(),[t,r]=y.useState("Summary"),[n,a]=QE(),s=a===0||a>=KE,c=a===0?mf.length:YE.filter(u=>a>=u).length;return m.jsxs("div",{className:e.root,children:[m.jsxs("div",{className:e.surface,ref:n,children:[m.jsxs("div",{className:e.formHeader,children:[m.jsxs("div",{className:e.titleGroup,children:[m.jsx(Me,{appearance:"subtle",icon:m.jsx(lz,{}),"aria-label":"Back"}),m.jsx("span",{className:e.recordIcon,children:m.jsx(yz,{})}),m.jsxs("div",{className:e.titleBlock,children:[m.jsx("span",{className:e.recordName,children:xi.name}),m.jsxs("span",{className:e.recordSubtitle,children:["Account · Account",m.jsx(pn,{})]})]})]}),s&&m.jsxs("div",{className:e.headerFields,children:[m.jsxs("div",{className:e.headerField,children:[m.jsx("span",{children:xi.mainPhone}),m.jsx("span",{className:e.headerFieldLabel,children:"Main Phone"})]}),m.jsx("div",{className:e.divider}),m.jsxs("div",{className:e.ownerField,children:[m.jsx(i1,{name:"Alan Steiner",color:"colorful",size:32}),m.jsxs("div",{className:e.headerField,children:[m.jsx("span",{className:Q(e.lookup,e.ownerLink),"data-themed":"Lookup",children:"Alan Steiner"}),m.jsx("span",{className:e.headerFieldLabel,children:"Owner"})]})]}),m.jsx(Me,{appearance:"subtle",icon:m.jsx(pn,{}),"aria-label":"More header fields"}),m.jsx("div",{className:e.divider})]}),m.jsxs("div",{className:Q(e.commands,!s&&e.commandsPushed),role:"toolbar","aria-label":"Commands",children:[mf.slice(0,c).map(u=>m.jsx(Me,{className:e.commandButton,appearance:"subtle",icon:u.icon,children:u.label},u.key)),m.jsx(ZE,{hidden:mf.slice(c)}),m.jsx("div",{className:e.divider}),m.jsx(Me,{className:e.commandButton,appearance:"subtle",icon:m.jsx(em,{}),iconPosition:"before","aria-label":"Share",children:m.jsx(pn,{})})]})]}),m.jsx("div",{className:e.tabs,role:"tablist","aria-label":"Sample form tabs","data-themed":"Active tab indicator",children:XE.map(u=>m.jsx("button",{type:"button",role:"tab","aria-selected":t===u,className:Q(e.tab,t===u&&e.activeTab),onClick:()=>r(u),children:u},u))})]}),t==="Summary"&&m.jsxs("div",{className:e.columns,children:[m.jsxs("div",{className:e.section,children:[m.jsx("div",{className:e.sectionTitle,children:"Account information"}),m.jsx(Ve,{label:"Account Name (single line of text)",children:m.jsx(Pt,{value:xi.name})}),m.jsx(Ve,{label:"Description (multiple lines of text)",children:m.jsx(GE,{resize:"vertical",value:"Preferred customer since 2019. Head office in Redmond, three regional branches."})}),m.jsx(Ve,{label:"Website (URL)",children:m.jsx(Pt,{value:"https://www.adatum.com",contentBefore:m.jsx(rz,{})})}),m.jsx(Ve,{label:"Email (email)",children:m.jsx(Pt,{value:xi.email,contentBefore:m.jsx(H4,{})})}),m.jsx(Ve,{label:"Main Phone (phone)",children:m.jsx(Pt,{value:xi.mainPhone})}),m.jsx(vy,{label:"Primary Contact (lookup)",value:xi.primaryContact}),m.jsx(vy,{label:"Bill To Customer (customer)",value:"Adventure Works (sample)"})]}),m.jsxs("div",{className:e.section,children:[m.jsx("div",{className:e.sectionTitle,children:"Classification"}),m.jsx(Ve,{label:"Industry (choice)",children:m.jsx(Pt,{value:"Consulting"})}),m.jsx(Ve,{label:"Contact Methods (choices)",children:m.jsx(Pt,{value:"Email, Phone"})}),m.jsx(Ve,{label:"Status Reason (status)",children:m.jsx(Pt,{isDisabled:!0,value:"Active"})}),m.jsx(Ve,{label:"Do not allow bulk email (yes/no)",children:m.jsx(Ro,{checked:!0,label:"No"})}),m.jsx(Ve,{label:"Preferred contact time (option set as radio)",children:m.jsxs(ml,{value:"morning",layout:"horizontal",children:[m.jsx(vn,{value:"morning",label:"Morning"}),m.jsx(vn,{value:"afternoon",label:"Afternoon"})]})})]}),m.jsxs("div",{className:e.section,children:[m.jsx("div",{className:e.sectionTitle,children:"Financials and dates"}),m.jsx(Ve,{label:"Number of Employees (whole number)",children:m.jsx(Pt,{value:"1 250"})}),m.jsx(Ve,{label:"Credit Score (decimal)",children:m.jsx(Pt,{value:"7.45"})}),m.jsx(Ve,{label:"Exchange Rate (floating point)",children:m.jsx(Pt,{value:"1.0865"})}),m.jsx(Ve,{label:"Annual Revenue (currency)",children:m.jsx(Pt,{value:"$ 12,500,000.00",contentBefore:m.jsx(bz,{})})}),m.jsx(Ve,{label:"Anniversary (date only)",children:m.jsx(Pt,{type:"text",value:"14/03/2019"})}),m.jsx(Ve,{label:"Last Interaction (date and time)",children:m.jsx(Pt,{value:"02/06/2026 09:30"})}),m.jsx(Ve,{label:"Duration (whole number, duration format)",children:m.jsx(Pt,{value:"1 hour 30 minutes"})}),m.jsx(Ve,{label:"Brochure (file)",children:m.jsx(Pt,{value:"company-profile.pdf",contentBefore:m.jsx(xz,{})})})]})]}),t!=="Summary"&&m.jsx("div",{className:e.columns,children:m.jsxs("div",{className:e.section,children:[m.jsx("div",{className:e.sectionTitle,children:t}),m.jsx(Ve,{label:"Sample column (single line of text)",children:m.jsx(Pt,{value:`${t} tab content`})})]})})]})}const eI="(max-width: 760px)",tI="(max-width: 560px)",rI=ut({root:{display:"flex",flexDirection:"column",flex:1,minWidth:0,minHeight:0,containerType:"inline-size",containerName:"previewPanel"},toolbar:{display:"flex",alignItems:"center",gap:T.spacingHorizontalL,padding:`${T.spacingVerticalXS} ${T.spacingHorizontalL} 0`,borderBottom:`1px solid ${T.colorNeutralStroke1}`,textWrap:"nowrap"},toolbarEnd:{display:"flex",alignItems:"center",gap:T.spacingHorizontalM,marginLeft:"auto",paddingBottom:T.spacingVerticalXS,minWidth:0,overflow:"hidden"},fadeItem:{display:"flex",alignItems:"center",opacity:1,transition:`opacity ${T.durationNormal} ${T.curveEasyEase}, width ${T.durationNormal} ${T.curveEasyEase}, margin ${T.durationNormal} ${T.curveEasyEase}`},fadeHighlight:{[`@container previewPanel ${eI}`]:{opacity:0,width:0,marginLeft:`calc(-1 * ${T.spacingHorizontalM})`,overflow:"hidden",pointerEvents:"none"}},fadeZoom:{[`@container previewPanel ${tI}`]:{opacity:0,width:0,marginLeft:`calc(-1 * ${T.spacingHorizontalM})`,overflow:"hidden",pointerEvents:"none"}},zoom:{display:"flex",alignItems:"center",gap:T.spacingHorizontalXS,flexShrink:0},zoomSlider:{width:"100px",minWidth:"80px"},zoomValue:{minWidth:"36px",textAlign:"right",color:T.colorNeutralForeground3},scroll:{flex:1,minHeight:0,overflow:"auto",backgroundColor:T.colorNeutralBackground3,padding:T.spacingHorizontalM},scaler:{transformOrigin:"top left"},app:{display:"flex",flexDirection:"column",minWidth:"1100px",minHeight:"760px",border:`1px solid ${T.colorNeutralStroke2}`,borderRadius:T.borderRadiusMedium,overflow:"hidden"},body:{display:"flex",flex:1,minHeight:0},canvas:{display:"flex",flex:1,minWidth:0,backgroundColor:T.colorNeutralBackground3},highlight:{"& [data-themed]":{outline:`2px dashed ${T.colorPaletteRedBorder2}`,outlineOffset:"-2px"}},portalHost:{position:"fixed",top:0,left:0,width:0,height:0,zIndex:1e6}}),oI=50,by=100;function nI(){const e=rI(),{previewTheme:t,model:r}=gr(),{logoDataUri:n}=Na(),[a,s]=ef("ui.previewTab","view"),[c,u]=ef("ui.previewZoom",by),[f,p]=y.useState(!1),g=y.useRef(null);return m.jsxs("div",{className:e.root,children:[m.jsx(Nh,{value:"preview-",children:m.jsx(Zn,{theme:t.fluentTheme,className:e.portalHost,style:{fontFamily:t.fontFamily},children:m.jsx("div",{ref:g})})}),m.jsx(Ub,{mountRef:g,children:m.jsx("div",{className:e.scroll,children:m.jsx("div",{className:e.scaler,style:{transform:`scale(${c/100})`,width:`${100/c*100}%`},children:m.jsx(Nh,{value:"preview-",children:m.jsxs(Zn,{theme:t.fluentTheme,className:Q(e.app,f&&e.highlight),style:{fontFamily:t.fontFamily},children:[m.jsx(ME,{colors:t.headerColors,logoDataUri:n,logoTooltip:r.logoTooltip,appName:"Sales Hub"}),m.jsxs("div",{className:e.body,children:[m.jsx(AE,{}),m.jsx("div",{className:e.canvas,children:a==="view"?m.jsx($E,{}):m.jsx(JE,{})})]})]})})})})}),m.jsxs("div",{className:e.toolbar,children:[m.jsxs(Fv,{selectedValue:a,onTabSelect:(v,x)=>s(x.value),children:[m.jsx(Fd,{value:"view",children:"View"}),m.jsx(Fd,{value:"form",children:"Form"})]}),m.jsxs("div",{className:e.toolbarEnd,children:[m.jsx("div",{className:Q(e.fadeItem,e.fadeHighlight),children:m.jsx(Ro,{size:"small",checked:f,onChange:(v,x)=>p(x.checked),label:"Highlight themed areas","aria-label":"Highlight the areas of the app the theme changes"})}),m.jsxs("div",{className:Q(e.fadeItem,e.zoom,e.fadeZoom),children:[m.jsx(Ie,{size:200,children:"Zoom"}),m.jsx(yl,{className:e.zoomSlider,size:"small",min:oI,max:by,step:10,value:c,"aria-label":"Preview zoom",onChange:(v,x)=>u(x.value)}),m.jsxs(Ie,{size:200,className:e.zoomValue,children:[c,"%"]})]})]})]})]})}const iI="0.1.2",aI=ut({root:{display:"flex",flexDirection:"column",height:"100vh",backgroundColor:T.colorNeutralBackground1,overflow:"hidden"},header:{display:"flex",alignItems:"flex-start",gap:T.spacingHorizontalM,padding:`${T.spacingVerticalM} ${T.spacingHorizontalL}`,borderBottom:`1px solid ${T.colorNeutralStroke1}`},headerText:{display:"flex",flexDirection:"column",justifyContent:"center",minWidth:0},titleRow:{display:"flex",alignItems:"center",gap:T.spacingHorizontalS},headerIcon:{width:"48px",height:"48px",flexShrink:0,display:"block",marginTop:"2px"},version:{position:"relative",top:T.spacingVerticalXS},subtitle:{color:T.colorNeutralForeground3,fontSize:T.fontSizeBase200,display:"block"},body:{display:"flex",flex:1,minHeight:0},main:{display:"flex",flexDirection:"column",flex:1,minWidth:0},portalHost:{position:"fixed",top:0,left:0,width:0,height:0,zIndex:1e6}});function sI(){const e=XR(),t=aI(),r=y.useRef(null);return m.jsx(zR,{children:m.jsxs(Zn,{theme:e==="dark"?O3:D3,className:t.root,children:[m.jsx("div",{ref:r,className:t.portalHost}),m.jsxs(Ub,{mountRef:r,children:[m.jsxs("div",{className:t.header,children:[m.jsx("img",{src:"/icons/tool.svg",alt:"Theme Studio icon",className:t.headerIcon}),m.jsxs("div",{className:t.headerText,children:[m.jsxs("div",{className:t.titleRow,children:[m.jsx(Ad,{children:"Theme Studio"}),m.jsx(ad,{className:t.version,appearance:"tint",color:"subtle",size:"small",children:`v${iI}`})]}),m.jsx(Ie,{className:t.subtitle,children:"Configure model-driven app themes with a WYSIWYG preview"})]})]}),m.jsx(WR,{children:m.jsxs(SM,{children:[m.jsx(HM,{}),m.jsxs("div",{className:t.body,children:[m.jsx("div",{className:t.main,children:m.jsx(nI,{})}),m.jsx(RE,{})]})]})})]})]})})}const Ta=document.getElementById("root");Ta&&!Ta.hasAttribute("data-reactroot-initialized")?(Ta.setAttribute("data-reactroot-initialized","true"),v5.createRoot(Ta).render(m.jsx(y.StrictMode,{children:m.jsx(sI,{})}))):Ta||console.error('Root element not found. Make sure the HTML contains <div id="root"></div>')})();