154 lines
321 KiB
JavaScript
154 lines
321 KiB
JavaScript
var ch=Object.create;var{getPrototypeOf:hh,defineProperty:L7,getOwnPropertyNames:Zh}=Object;var vh=Object.prototype.hasOwnProperty;var C7=(a,l,c)=>{c=a!=null?ch(hh(a)):{};let h=l||!a||!a.__esModule?L7(c,"default",{value:a,enumerable:!0}):c;for(let Z of Zh(a))if(!vh.call(h,Z))L7(h,Z,{get:()=>a[Z],enumerable:!0});return h};var f7=(a,l)=>()=>(l||a((l={exports:{}}).exports,l),l.exports);var oh=(a,l)=>{for(var c in l)L7(a,c,{get:l[c],enumerable:!0,configurable:!0,set:(h)=>l[c]=()=>h})};var ga=f7((th)=>{(function(){var a=60103,l=60106,c=60107,h=60108,Z=60114,v=60109,o=60110,r=60112,M=60113,A=60120,H=60115,V=60116,p=60121,m=60122,_=60117,F=60119,d=60128,x=60129,i=60130,L=60131;if(typeof Symbol==="function"&&Symbol.for){var C=Symbol.for;a=C("react.element"),l=C("react.portal"),c=C("react.fragment"),h=C("react.strict_mode"),Z=C("react.profiler"),v=C("react.provider"),o=C("react.context"),r=C("react.forward_ref"),M=C("react.suspense"),A=C("react.suspense_list"),H=C("react.memo"),V=C("react.lazy"),p=C("react.block"),m=C("react.server.block"),_=C("react.fundamental"),F=C("react.scope"),d=C("react.opaque.id"),x=C("react.debug_trace_mode"),i=C("react.offscreen"),L=C("react.legacy_hidden")}var u=!1;function f(Y){if(typeof Y==="string"||typeof Y==="function")return!0;if(Y===c||Y===Z||Y===x||Y===h||Y===M||Y===A||Y===L||u)return!0;if(typeof Y==="object"&&Y!==null){if(Y.$$typeof===V||Y.$$typeof===H||Y.$$typeof===v||Y.$$typeof===o||Y.$$typeof===r||Y.$$typeof===_||Y.$$typeof===p||Y[0]===m)return!0}return!1}function R(Y){if(typeof Y==="object"&&Y!==null){var i1=Y.$$typeof;switch(i1){case a:var x1=Y.type;switch(x1){case c:case Z:case h:case M:case A:return x1;default:var C0=x1&&x1.$$typeof;switch(C0){case o:case r:case V:case H:case v:return C0;default:return i1}}case l:return i1}}return}var B=o,U=v,O=a,W=r,S=c,k=V,g=H,j=l,z=Z,D=h,J=M,y=!1,_5=!1;function p5(Y){if(!y)y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.");return!1}function F5(Y){if(!_5)_5=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.");return!1}function r5(Y){return R(Y)===o}function o1(Y){return R(Y)===v}function L5(Y){return typeof Y==="object"&&Y!==null&&Y.$$typeof===a}function S1(Y){return R(Y)===r}function i0(Y){return R(Y)===c}function x0(Y){return R(Y)===V}function d1(Y){return R(Y)===H}function L0(Y){return R(Y)===l}function k1(Y){return R(Y)===Z}function B3(Y){return R(Y)===h}function a2(Y){return R(Y)===M}th.ContextConsumer=B,th.ContextProvider=U,th.Element=O,th.ForwardRef=W,th.Fragment=S,th.Lazy=k,th.Memo=g,th.Portal=j,th.Profiler=z,th.StrictMode=D,th.Suspense=J,th.isAsyncMode=p5,th.isConcurrentMode=F5,th.isContextConsumer=r5,th.isContextProvider=o1,th.isElement=L5,th.isForwardRef=S1,th.isFragment=i0,th.isLazy=x0,th.isMemo=d1,th.isPortal=L0,th.isProfiler=k1,th.isStrictMode=B3,th.isSuspense=a2,th.isValidElementType=f,th.typeOf=R})()});var D9=f7((mv)=>{(function(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=!1,l=!1,c=5;function h(P,q){var w=P.length;P.push(q),o(P,q,w)}function Z(P){return P.length===0?null:P[0]}function v(P){if(P.length===0)return null;var q=P[0],w=P.pop();if(w!==q)P[0]=w,r(P,w,0);return q}function o(P,q,w){var a5=w;while(a5>0){var M5=a5-1>>>1,q5=P[M5];if(M(q5,q)>0)P[M5]=q,P[a5]=q5,a5=M5;else return}}function r(P,q,w){var a5=w,M5=P.length,q5=M5>>>1;while(a5<q5){var g5=(a5+1)*2-1,f0=P[g5],G5=g5+1,U3=P[G5];if(M(f0,q)<0)if(G5<M5&&M(U3,f0)<0)P[a5]=U3,P[G5]=q,a5=G5;else P[a5]=f0,P[g5]=q,a5=g5;else if(G5<M5&&M(U3,q)<0)P[a5]=U3,P[G5]=q,a5=G5;else return}}function M(P,q){var w=P.sortIndex-q.sortIndex;return w!==0?w:P.id-q.id}var A=1,H=2,V=3,p=4,m=5;function _(P,q){}var F=typeof performance==="object"&&typeof performance.now==="function";if(F){var d=performance;mv.unstable_now=function(){return d.now()}}else{var x=Date,i=x.now();mv.unstable_now=function(){return x.now()-i}}var L=1073741823,C=-1,u=250,f=5000,R=1e4,B=L,U=[],O=[],W=1,S=null,k=V,g=!1,j=!1,z=!1,D=typeof setTimeout==="function"?setTimeout:null,J=typeof clearTimeout==="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null,_5=typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0?navigator.scheduling.isInputPending.bind(navigator.scheduling):null;function p5(P){var q=Z(O);while(q!==null){if(q.callback===null)v(O);else if(q.startTime<=P)v(O),q.sortIndex=q.expirationTime,h(U,q);else return;q=Z(O)}}function F5(P){if(z=!1,p5(P),!j)if(Z(U)!==null)j=!0,i7(r5);else{var q=Z(O);if(q!==null)x7(F5,q.startTime-P)}}function r5(P,q){if(j=!1,z)z=!1,d8();g=!0;var w=k;try{if(l)try{return o1(P,q)}catch(M5){if(S!==null){var a5=mv.unstable_now();_(S,a5),S.isQueued=!1}throw M5}else return o1(P,q)}finally{S=null,k=w,g=!1}}function o1(P,q){var w=q;p5(w),S=Z(U);while(S!==null&&!a){if(S.expirationTime>w&&(!P||_8()))break;var a5=S.callback;if(typeof a5==="function"){S.callback=null,k=S.priorityLevel;var M5=S.expirationTime<=w,q5=a5(M5);if(w=mv.unstable_now(),typeof q5==="function")S.callback=q5;else if(S===Z(U))v(U);p5(w)}else v(U);S=Z(U)}if(S!==null)return!0;else{var g5=Z(O);if(g5!==null)x7(F5,g5.startTime-w);return!1}}function L5(P,q){switch(P){case A:case H:case V:case p:case m:break;default:P=V}var w=k;k=P;try{return q()}finally{k=w}}function S1(P){var q;switch(k){case A:case H:case V:q=V;break;default:q=k;break}var w=k;k=q;try{return P()}finally{k=w}}function i0(P){var q=k;return function(){var w=k;k=q;try{return P.apply(this,arguments)}finally{k=w}}}function x0(P,q,w){var a5=mv.unstable_now(),M5;if(typeof w==="object"&&w!==null){var q5=w.delay;if(typeof q5==="number"&&q5>0)M5=a5+q5;else M5=a5}else M5=a5;var g5;switch(P){case A:g5=C;break;case H:g5=u;break;case m:g5=B;break;case p:g5=R;break;case V:default:g5=f;break}var f0=M5+g5,G5={id:W++,callback:q,priorityLevel:P,startTime:M5,expirationTime:f0,sortIndex:-1};if(M5>a5){if(G5.sortIndex=M5,h(O,G5),Z(U)===null&&G5===Z(O)){if(z)d8();else z=!0;x7(F5,M5-a5)}}else if(G5.sortIndex=f0,h(U,G5),!j&&!g)j=!0,i7(r5);return G5}function d1(){}function L0(){if(!j&&!g)j=!0,i7(r5)}function k1(){return Z(U)}function B3(P){P.callback=null}function a2(){return k}var Y=!1,i1=null,x1=-1,C0=c,m8=-1;function _8(){var P=mv.unstable_now()-m8;if(P<C0)return!1;return!0}function tc(){}function sc(P){if(P<0||P>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}if(P>0)C0=Math.floor(1000/P);else C0=c}var d7=function(){if(i1!==null){var P=mv.unstable_now();m8=P;var q=!0,w=!0;try{w=i1(q,P)}finally{if(w)l2();else Y=!1,i1=null}}else Y=!1},l2;if(typeof y==="function")l2=function(){y(d7)};else if(typeof MessageChannel<"u"){var F8=new MessageChannel,ec=F8.port2;F8.port1.onmessage=d7,l2=function(){ec.postMessage(null)}}else l2=function(){D(d7,0)};function i7(P){if(i1=P,!Y)Y=!0,l2()}function x7(P,q){x1=D(function(){P(mv.unstable_now())},q)}function d8(){J(x1),x1=-1}var ah=tc,lh=null;if(mv.unstable_IdlePriority=m,mv.unstable_ImmediatePriority=A,mv.unstable_LowPriority=p,mv.unstable_NormalPriority=V,mv.unstable_Profiling=lh,mv.unstable_UserBlockingPriority=H,mv.unstable_cancelCallback=B3,mv.unstable_continueExecution=L0,mv.unstable_forceFrameRate=sc,mv.unstable_getCurrentPriorityLevel=a2,mv.unstable_getFirstCallbackNode=k1,mv.unstable_next=S1,mv.unstable_pauseExecution=d1,mv.unstable_requestPaint=ah,mv.unstable_runWithPriority=L5,mv.unstable_scheduleCallback=x0,mv.unstable_shouldYield=_8,mv.unstable_wrapCallback=i0,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});import*as P5 from"react";var lc=f7((Co)=>{(function(){function a(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}function l(p,m){A||P5.startTransition===void 0||(A=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var _=m();if(!H){var F=m();Z(_,F)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),H=!0)}F=v({inst:{value:_,getSnapshot:m}});var d=F[0].inst,x=F[1];return r(function(){d.value=_,d.getSnapshot=m,c(d)&&x({inst:d})},[p,_,m]),o(function(){return c(d)&&x({inst:d}),p(function(){c(d)&&x({inst:d})})},[p]),M(_),_}function c(p){var m=p.getSnapshot;p=p.value;try{var _=m();return!Z(p,_)}catch(F){return!0}}function h(p,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Z=typeof Object.is==="function"?Object.is:a,v=P5.useState,o=P5.useEffect,r=P5.useLayoutEffect,M=P5.useDebugValue,A=!1,H=!1,V=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:l;Co.useSyncExternalStore=P5.useSyncExternalStore!==void 0?P5.useSyncExternalStore:V,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});import Xr,{useEffect as e0,useState as u5,useRef as p8}from"react";var R7=typeof window>"u"?global:window;function i8(a,l){if(!R7[Symbol.for("@griffel/"+a)])R7[Symbol.for("@griffel/"+a)]=l;return R7[Symbol.for("@griffel/"+a)]}var L1=i8("DEBUG_RESET_CLASSES",{}),C1=i8("DEFINITION_LOOKUP_TABLE",{}),O1="data-make-styles-bucket",u7="data-priority";var x8="r",c2=7,T5="___",g7="_",D3=T5.length+c2+g7.length+c2,L8=0,G7=1;function B7(a){var l=0,c,h=0,Z=a.length;for(;Z>=4;++h,Z-=4)c=a.charCodeAt(h)&255|(a.charCodeAt(++h)&255)<<8|(a.charCodeAt(++h)&255)<<16|(a.charCodeAt(++h)&255)<<24,c=(c&65535)*1540483477+((c>>>16)*59797<<16),c^=c>>>24,l=(c&65535)*1540483477+((c>>>16)*59797<<16)^(l&65535)*1540483477+((l>>>16)*59797<<16);switch(Z){case 3:l^=(a.charCodeAt(h+2)&255)<<16;case 2:l^=(a.charCodeAt(h+1)&255)<<8;case 1:l^=a.charCodeAt(h)&255,l=(l&65535)*1540483477+((l>>>16)*59797<<16)}return l^=l>>>13,l=(l&65535)*1540483477+((l>>>16)*59797<<16),((l^l>>>15)>>>0).toString(36)}function C8(a){let l=a.length;if(l===c2)return a;for(let c=l;c<c2;c++)a+="0";return a}function P3(a,l,c=[]){return T5+C8(B7(a+l))+g7+C8(B7(c.join("")))}function U7(a,l){let c="",h="";for(let Z in a){let v=a[Z];if(v===0){h+=Z+" ";continue}let o=Array.isArray(v),r=l==="rtl"?(o?v[1]:v)+" ":(o?v[0]:v)+" ";c+=r,h+=r}return[c.slice(0,-1),h.slice(0,-1)]}function D7(a,l){let c={};for(let h in a){let[Z,v]=U7(a[h],l);if(v===""){c[h]="";continue}let o=P3(v,l),r=o+(Z===""?"":" "+Z);C1[o]=[a[h],l],c[h]=r}return c}var h2={};function Q(){let a=null,l="",c="",h=Array(arguments.length),Z="";for(let p=0;p<arguments.length;p++){let m=arguments[p];if(typeof m==="string"&&m!==""){let _=m.indexOf(T5);if(_===-1)m.split(" ").forEach((F)=>{if(F.startsWith(x8)&&L1[F])if(Z)console.error(`mergeClasses(): a passed string contains multiple classes produced by makeResetStyles (${m} & ${l}, this will lead to non-deterministic behavior. Learn more:https://griffel.js.org/react/api/make-reset-styles#limitations
|
|
Source string: ${m}`);else Z=F}),l+=m+" ";else{let F=m.substr(_,D3);if(_>0)l+=m.slice(0,_);c+=F,h[p]=F}if(m.indexOf(T5,_+1)!==-1)console.error(`mergeClasses(): a passed string contains multiple identifiers of atomic classes (classes that start with "${T5}"), it's possible that passed classes were concatenated in a wrong way. Source string: ${m}`)}}if(c==="")return l.slice(0,-1);let v=h2[c];if(v!==void 0)return l+v;let o=[];for(let p=0;p<arguments.length;p++){let m=h[p];if(m){let _=C1[m];if(_){if(o.push(_[L8]),a!==null&&a!==_[G7])console.error(`mergeClasses(): a passed string contains an identifier (${m}) that has different direction (dir="${_[1]?"rtl":"ltr"}") setting than other classes. This is not supported. Source string: ${arguments[p]}`);a=_[G7]}else console.error(`mergeClasses(): a passed string contains an identifier (${m}) that does not match any entry in cache. Source string: ${arguments[p]}`)}}let r=Object.assign.apply(Object,[{}].concat(o)),[M,A]=U7(r,a),H=P3(A,a,h),V=H+" "+M;return h2[c]=V,C1[H]=[r,a],l+V}var f8={},R8=new Set,j5={getChildrenSequences:(a)=>{let l=Object.keys(h2).find((c)=>h2[c].startsWith(a));if(l)return l.split(T5).filter((c)=>c.length).map((c)=>T5+c);return[]},addCSSRule:(a)=>{R8.add(a)},addSequenceDetails:(a,l)=>{Object.entries(a).forEach(([c,h])=>{f8[h.substring(0,D3)]={slotName:c,sourceURL:l}})},getCSSRules:()=>{return Array.from(R8)},getSequenceDetails:(a)=>{return f8[a]}};function u8(a,l){return Array.isArray(a)?l==="rtl"?a[1]:a[0]:a||""}function g8(a,l,c,h){let Z=a[0],v=a[1];return Object.entries(Z).map(([o,r])=>{let M=u8(r,v),A;if(c&&l){let H=c.find(({className:V})=>V===M);if(!H&&l[0][o])A=u8(l[0][o],l[1]);else if(H&&l[0][o])A=(h?h.filter(({debugClassNames:p})=>p.filter(({className:m})=>m===M).length>0).length>0:!1)?H.className:H.overriddenBy;else if(!H&&!l[0][o])A=void 0;else if(H&&!l[0][o])A=void 0}return{className:M,overriddenBy:A}})}function P7(a,l){let c=C1[a];if(c===void 0)return;let h=l?C1[l.sequenceHash]:void 0,Z=g8(c,h,l===null||l===void 0?void 0:l.debugClassNames,l===null||l===void 0?void 0:l.children),v={sequenceHash:a,direction:c[1],children:[],debugClassNames:Z};if(j5.getChildrenSequences(v.sequenceHash).reverse().forEach((r)=>{let M=P7(r,v);if(M)v.children.push(M)}),!v.children.length)v.rules={},v.debugClassNames.forEach(({className:r})=>{let M=j5.getSequenceDetails(a);if(M)v.slot=M.slotName,v.sourceURL=M.sourceURL;let A=j5.getCSSRules().find((H)=>{return H.includes(r)});v.rules[r]=A});return v}function G8(a){if(L1[a]===void 0)return;let h={sequenceHash:a,direction:"ltr",children:[],debugClassNames:[{className:a}]};h.rules={},h.slot="makeResetStyles()";let[{className:Z}]=h.debugClassNames,v=j5.getCSSRules().filter((o)=>{return o.includes(`.${Z}`)});return h.rules[Z]=v.join(""),h}function B8(a,l){let c=a?P7(a):void 0,h=l?G8(l):void 0;if(!c&&!h)return;if(!c)return h;if(!h)return c;return{sequenceHash:c.sequenceHash+h.sequenceHash,direction:c.direction,children:[c,h],debugClassNames:[...c.debugClassNames,...h.debugClassNames]}}function U8(a){let l=a.defaultView;if(!l||l.__GRIFFEL_DEVTOOLS__)return;let c={getInfo:(h)=>{let Z,v;for(let o of h.classList){if(o.startsWith(T5))Z=o;if(L1[o])v=o}return B8(Z,v)}};Object.defineProperty(l,"__GRIFFEL_DEVTOOLS__",{configurable:!1,enumerable:!1,get(){return c}})}var R0=(()=>{var a;try{return Boolean(typeof window<"u"&&((a=window.sessionStorage)===null||a===void 0?void 0:a.getItem("__GRIFFEL_DEVTOOLS__")))}catch(l){return!1}})();function D8(a){if(!Array.isArray(a))return[a];if(a.length>2)throw Error("CSS Bucket contains an entry with greater than 2 items, please report this to https://github.com/microsoft/griffel/issues");return a}function P8(a,l,c,h){let Z=[];if(h[O1]=l,h[u7]=String(c),a)for(let o in h)a.setAttribute(o,h[o]);function v(o){if(a===null||a===void 0?void 0:a.sheet)return a.sheet.insertRule(o,a.sheet.cssRules.length);return Z.push(o)}return{elementAttributes:h,insertRule:v,element:a,bucketName:l,cssRules(){if(a===null||a===void 0?void 0:a.sheet)return Array.from(a.sheet.cssRules).map((o)=>o.cssText);return Z}}}var rh=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"],T8=rh.reduce((a,l,c)=>{return a[l]=c,a},{});function Mh(a,l,c){return(a==="m"?a+l:a)+c}function S8(a,l,c,h,Z={}){var v,o;let r=a==="m",M=(v=Z.m)!==null&&v!==void 0?v:"0",A=(o=Z.p)!==null&&o!==void 0?o:0,H=Mh(a,M,A);if(!h.stylesheets[H]){let V=l&&l.createElement("style"),p=P8(V,a,A,Object.assign({},h.styleElementAttributes,r&&{media:M}));if(h.stylesheets[H]=p,(l===null||l===void 0?void 0:l.head)&&V)l.head.insertBefore(V,Ah(l,c,a,h,Z))}return h.stylesheets[H]}function Hh(a,l,c){var h,Z;let v=l+((h=c.m)!==null&&h!==void 0?h:""),o=a.getAttribute(O1)+((Z=a.media)!==null&&Z!==void 0?Z:"");return v===o}function Ah(a,l,c,h,Z={}){var v,o;let r=T8[c],M=(v=Z.m)!==null&&v!==void 0?v:"",A=(o=Z.p)!==null&&o!==void 0?o:0,H=(F)=>r-T8[F.getAttribute(O1)],V=a.head.querySelectorAll(`[${O1}]`);if(c==="m"){let F=a.head.querySelectorAll(`[${O1}="${c}"]`);if(F.length)V=F,H=(d)=>h.compareMediaQueries(M,d.media)}let p=(F)=>{if(Hh(F,c,Z))return A-Number(F.getAttribute("data-priority"));return H(F)},m=V.length,_=m-1;while(_>=0){let F=V.item(_);if(p(F)>0)return F.nextSibling;_--}if(m>0)return V.item(0);return l?l.nextSibling:null}var Vh=["-moz-placeholder","-moz-focus-inner","-moz-focusring","-ms-input-placeholder","-moz-read-write","-moz-read-only"].join("|"),ph=new RegExp(`:(${Vh})`);function T7(a,l){try{a.insertRule(l)}catch(c){if(!ph.test(l))console.error(`There was a problem inserting the following rule: "${l}"`,c)}}var mh=0,k8=(a,l)=>a<l?-1:a>l?1:0;function T3(a=typeof document>"u"?void 0:document,l={}){let{classNameHashSalt:c,unstable_filterCSSRule:h,insertionPoint:Z,styleElementAttributes:v,compareMediaQueries:o=k8}=l,r={classNameHashSalt:c,insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(v),compareMediaQueries:o,id:`d${mh++}`,insertCSSRules(M){for(let A in M){let H=M[A];for(let V=0,p=H.length;V<p;V++){let[m,_]=D8(H[V]),F=S8(A,a,Z||null,r,_);if(r.insertionCache[m])continue;if(r.insertionCache[m]=A,R0)j5.addCSSRule(m);if(h){if(h(m))T7(F,m)}else T7(F,m)}}}};if(a&&!0&&R0)U8(a);return r}function O8(a){return ih(a)||Ch(a)||Rh(a)}var _h=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/|[a-z]:\\|\\\\).*?)?\)?\s*$/i,Fh=/^\s*at ()((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/|[a-z]:\\|\\\\).*?)\s*$/i,dh=/\((\S*)\)/;function ih(a){let l=_h.exec(a)||Fh.exec(a);if(!l)return null;let c=l[2],h=c&&c.indexOf("native")===0,Z=c&&c.indexOf("eval")===0,v=dh.exec(c);if(Z&&v!=null)c=v[1];return{loc:!h?l[2]:null,name:l[1]||"<unknown>"}}var xh=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)\s*$/i,Lh=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Ch(a){let l=xh.exec(a);if(!l)return null;let c=l[3],h=c&&c.indexOf(" > eval")>-1,Z=Lh.exec(c);if(h&&Z!=null)c=Z[1];return{loc:l[3],name:l[1]||"<unknown>"}}var fh=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?)\s*$/i;function Rh(a){let l=fh.exec(a);if(!l)return null;return{loc:l[3],name:l[1]||"<unknown>"}}function Q8(){let a=String(Error().stack).split(`
|
|
`),l=uh(a);if(l===void 0)return;let c=O8(l);return c===null||c===void 0?void 0:c.loc}function uh(a){for(let l=a.length-1;l>=0;--l)if(a[l].includes("at getSourceURLfromError"))return a[l+3];return}var S3=()=>{let a={};return function(c,h){if(a[c.id]===void 0)c.insertCSSRules(h),a[c.id]=!0}};function S7(a,l,c=S3){let h=c(),Z=null,v=null,o;if(R0)o=Q8();function r(M){let{dir:A,renderer:H}=M,V=A==="ltr";if(V){if(Z===null)Z=D7(a,A)}else if(v===null)v=D7(a,A);h(H,l);let p=V?Z:v;if(R0)j5.addSequenceDetails(p,o);return p}return r}function k7(a,l,c,h=S3){let Z=h();function v(o){let{dir:r,renderer:M}=o,A=r==="ltr"?a:l||a;return Z(M,Array.isArray(c)?{r:c}:c),L1[A]=1,A}return v}function J8(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}import*as Y8 from"react";var O7=Y8.useInsertionEffect?Y8.useInsertionEffect:void 0;var k3=()=>{let a={};return function(c,h){if(O7&&J8()){O7(()=>{c.insertCSSRules(h)},[c,h]);return}if(a[c.id]===void 0)c.insertCSSRules(h),a[c.id]=!0}};import*as u0 from"react";var gh=u0.createContext(T3());function O3(){return u0.useContext(gh)}import*as Z2 from"react";var Gh=Z2.createContext("ltr");function Q3(){return Z2.useContext(Gh)}function $(a,l){let c=S7(a,l,k3);return function(){let Z=Q3(),v=O3();return c({dir:Z,renderer:v})}}function N(a,l,c){let h=k7(a,l,c,k3);return function(){let v=Q3(),o=O3();return h({dir:v,renderer:o})}}var K={};oh(K,{resolveShorthand:()=>Q7,optional:()=>Bh,always:()=>J3});import*as q8 from"react";var r1=Symbol.for("fui.slotRenderFunction"),i5=Symbol.for("fui.slotElementType"),g0=Symbol.for("fui.slotClassNameProp");function J3(a,l){let{defaultProps:c,elementType:h}=l,Z=Q7(a),v={...c,...Z,[i5]:h,[g0]:Z===null||Z===void 0?void 0:Z.className};if(Z&&typeof Z.children==="function")v[r1]=Z.children,v.children=c===null||c===void 0?void 0:c.children;return v}function Bh(a,l){if(a===null||a===void 0&&!l.renderByDefault)return;return J3(a,l)}function Q7(a){if(typeof a==="string"||typeof a==="number"||Uh(a)||q8.isValidElement(a))return{children:a};if(a&&typeof a!=="object")console.error(`@fluentui/react-utilities [slot.${Q7.name}]:
|
|
A slot got an invalid value "${a}" (${typeof a}).
|
|
A valid value for a slot is a slot shorthand or slot properties object.
|
|
Slot shorthands can be strings, numbers, arrays or JSX elements`);return a}var Uh=(a)=>typeof a==="object"&&a!==null&&(Symbol.iterator in a);import*as $8 from"react";function Y3(a){return a!==null&&typeof a==="object"&&!Array.isArray(a)&&!$8.isValidElement(a)}function Q1(a){return Boolean(a===null||a===void 0?void 0:a.hasOwnProperty(i5))}import*as kH from"react";function E(a){{let l=a;for(let c of Object.keys(l.components)){let h=l[c];if(h===void 0)continue;if(!Q1(h))l[c]=J3(h,{elementType:l.components[c]}),console.warn(`@fluentui/react-utilities [${E.name}]:
|
|
"state.${c}" is not a slot!
|
|
Be sure to create slots properly by using "slot.always" or "slot.optional".`);else{let{[i5]:Z}=h;if(Z!==l.components[c])h[i5]=l.components[c],console.warn(`@fluentui/react-utilities [${E.name}]:
|
|
"state.${c}" element type differs from "state.components.${c}",
|
|
${Z} !== ${l.components[c]}.
|
|
Be sure to create slots properly by using "slot.always" or "slot.optional" with the correct elementType.`)}}}}import*as KH from"react";import*as XH from"react";var e=(...a)=>{let l={};for(let c of a){let h=Array.isArray(c)?c:Object.keys(c);for(let Z of h)l[Z]=1}return l},Dh=e(["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"]),Ph=e(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),Th=e(["itemID","itemProp","itemRef","itemScope","itemType"]),v5=e(Ph,Dh,Th),K8=e(v5,["form"]),J7=e(v5,["height","loop","muted","preload","src","width"]),I8=e(J7,["poster"]),W8=e(v5,["start"]),n8=e(v5,["value"]),y8=e(v5,["download","href","hrefLang","media","referrerPolicy","rel","target","type"]),j8=e(v5,["dateTime"]),v2=e(v5,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),z8=e(v2,["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"]),w8=e(v2,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),b8=e(v2,["form","multiple","required"]),N8=e(v5,["selected","value"]),E8=e(v5,["cellPadding","cellSpacing"]),t8=v5,s8=e(v5,["colSpan","rowSpan","scope"]),e8=e(v5,["colSpan","headers","rowSpan","scope"]),aa=e(v5,["span"]),la=e(v5,["span"]),ca=e(v5,["disabled","form"]),ha=e(v5,["acceptCharset","action","encType","encType","method","noValidate","target"]),Za=e(v5,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),va=e(v5,["alt","crossOrigin","height","src","srcSet","useMap","width"]),oa=e(v5,["open","onCancel","onClose"]);function ra(a,l,c){let h=Array.isArray(l),Z={},v=Object.keys(a);for(let o of v)if((!h&&l[o]||h&&l.indexOf(o)>=0||o.indexOf("data-")===0||o.indexOf("aria-")===0)&&(!c||(c===null||c===void 0?void 0:c.indexOf(o))===-1))Z[o]=a[o];return Z}var Sh={label:K8,audio:J7,video:I8,ol:W8,li:n8,a:y8,button:v2,input:z8,textarea:w8,select:b8,option:N8,table:E8,tr:t8,th:s8,td:e8,colGroup:aa,col:la,fieldset:ca,form:ha,iframe:Za,img:va,time:j8,dialog:oa};function o2(a,l,c){let h=a&&Sh[a]||v5;return h.as=1,ra(l,h,c)}var X3=({primarySlotTagName:a,props:l,excludedPropNames:c})=>{return{root:{style:l.style,className:l.className},primary:o2(a,l,[...c||[],"style","className"])}};var l5=(a,l,c)=>{var h;return o2((h=l.as)!==null&&h!==void 0?h:a,l,c)};import*as J1 from"react";function q3(a,l){let c=J1.useRef(void 0),h=J1.useCallback((v,o)=>{if(c.current!==void 0)l(c.current);return c.current=a(v,o),c.current},[l,a]),Z=J1.useCallback(()=>{if(c.current!==void 0)l(c.current),c.current=void 0},[l]);return J1.useEffect(()=>Z,[Z]),[h,Z]}import*as $3 from"react";var Ma=$3.createContext(void 0),kh="",Y7=Ma.Provider;function r2(){var a;return(a=$3.useContext(Ma))!==null&&a!==void 0?a:kh}import*as K3 from"react";var Ha=K3.createContext(void 0),Oh={targetDocument:typeof document==="object"?document:void 0,dir:"ltr"},X7=Ha.Provider;function n(){var a;return(a=K3.useContext(Ha))!==null&&a!==void 0?a:Oh}import*as I3 from"react";var q7=I3.createContext(void 0),Aa=q7.Provider;function W3(){var a;return(a=I3.useContext(q7))!==null&&a!==void 0?a:{}}import*as n3 from"react";var M2=n3.createContext(void 0),Qh=()=>{},$7=M2.Provider,t=(a)=>{var l,c;return(c=(l=n3.useContext(M2))===null||l===void 0?void 0:l[a])!==null&&c!==void 0?c:Qh};import*as y3 from"react";var Va=y3.createContext(void 0),Jh=Va.Provider;function K7(){return y3.useContext(Va)}var Yh=(a)=>{return a(0),0},Xh=(a)=>a;function j3(){let{targetDocument:a}=n(),l=a===null||a===void 0?void 0:a.defaultView,c=l?l.requestAnimationFrame:Yh,h=l?l.cancelAnimationFrame:Xh;return q3(c,h)}import*as z5 from"react";function qh(a){return typeof a==="function"}var $5=(a)=>{if(a.state!==void 0&&a.defaultState!==void 0)console.error(`@fluentui/react-utilities [useControllableState]:
|
|
A component must be either controlled or uncontrolled (specify either the state or the defaultState, but not both).
|
|
Decide between using a controlled or uncontrolled component and remove one of this props.
|
|
More info: https://reactjs.org/link/controlled-components
|
|
${Error().stack}`);let[l,c]=z5.useState(()=>{if(a.defaultState===void 0)return a.initialState;return $h(a.defaultState)?a.defaultState():a.defaultState}),h=z5.useRef(a.state);z5.useEffect(()=>{h.current=a.state},[a.state]);let Z=z5.useCallback((v)=>{if(qh(v))v(h.current)},[]);return Kh(a.state)?[a.state,Z]:[l,c]};function $h(a){return typeof a==="function"}var Kh=(a)=>{let[l]=z5.useState(()=>a!==void 0);return z5.useEffect(()=>{if(l!==(a!==void 0)){let c=Error();console.error(`@fluentui/react-utilities [useControllableState]:
|
|
A component is changing ${l?"a controlled value to be uncontrolled":"an uncontrolled value to be controlled"}. This is likely caused by the value changing from ${l?"defined to an undefined":"undefined to a defined"} value, which should not happen.
|
|
Decide between using a controlled or uncontrolled input element for the lifetime of the component.
|
|
More info: https://reactjs.org/link/controlled-components
|
|
${c.stack}`)}},[l,a]),l};import*as w3 from"react";import*as z3 from"react";function G0(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}import*as Y1 from"react";var I7={current:0},pa=Y1.createContext(void 0);function W7(){var a;return(a=Y1.useContext(pa))!==null&&a!==void 0?a:I7}var s=G0()?z3.useLayoutEffect:z3.useEffect;var T=(a)=>{let l=w3.useRef(()=>{throw Error("Cannot call an event handler while rendering")});return s(()=>{l.current=a},[a]),w3.useCallback((...c)=>{let h=l.current;return h(...c)},[l])};import*as b3 from"react";function B0(){let a=b3.useRef(!0);return b3.useEffect(()=>{if(a.current)a.current=!1},[]),a.current}import*as ma from"react";function N3(){return ma.useReducer((a)=>a+1,0)[1]}import*as f1 from"react";var _a=f1.createContext(void 0),Fa=_a.Provider;function nh(){return f1.useContext(_a)||""}function S5(a="fui-",l){let c=W7(),h=nh(),Z=f1.useId;if(Z){let v=Z(),o=f1.useMemo(()=>v.replace(/:/g,""),[v]);return l||`${h}${a}${o}`}return f1.useMemo(()=>{if(l)return l;return`${h}${a}${++c.current}`},[h,a,l,c])}import*as da from"react";function H5(...a){let l=da.useCallback((c)=>{l.current=c;for(let h of a){if(typeof h==="string")console.error(`@fluentui/react-utilities [useMergedRefs]:
|
|
This hook does not support the usage of string refs. Please use React.useRef instead.
|
|
|
|
For more info on 'React.useRef', see https://react.dev/reference/react/useRef.
|
|
For more info on string refs, see https://react.dev/blog/2024/04/25/react-19-upgrade-guide#removed-string-refs.`);if(typeof h==="function")h(c);else if(h)h.current=c}},[...a]);return l}import*as R1 from"react";var ia=(a,l)=>!!(a===null||a===void 0?void 0:a.contains(l)),E3=(a)=>{let{targetDocument:l}=n(),c=l===null||l===void 0?void 0:l.defaultView,{refs:h,callback:Z,element:v,disabled:o,disabledFocusOnIframe:r,contains:M=ia}=a,A=R1.useRef(void 0);jh({element:v,disabled:r||o,callback:Z,refs:h,contains:M});let H=R1.useRef(!1),V=T((m)=>{if(H.current){H.current=!1;return}let _=m.composedPath()[0];if(h.every((d)=>!M(d.current||null,_))&&!o)Z(m)}),p=T((m)=>{H.current=h.some((_)=>M(_.current||null,m.target))});R1.useEffect(()=>{if(o)return;let m=yh(c),_=(F)=>{if(F===m){m=void 0;return}V(F)};return v===null||v===void 0||v.addEventListener("click",_,!0),v===null||v===void 0||v.addEventListener("touchstart",_,!0),v===null||v===void 0||v.addEventListener("contextmenu",_,!0),v===null||v===void 0||v.addEventListener("mousedown",p,!0),A.current=c===null||c===void 0?void 0:c.setTimeout(()=>{m=void 0},1),()=>{v===null||v===void 0||v.removeEventListener("click",_,!0),v===null||v===void 0||v.removeEventListener("touchstart",_,!0),v===null||v===void 0||v.removeEventListener("contextmenu",_,!0),v===null||v===void 0||v.removeEventListener("mousedown",p,!0),c===null||c===void 0||c.clearTimeout(A.current),m=void 0}},[V,v,o,p,c])},yh=(a)=>{if(a){var l,c;if(typeof a.window==="object"&&a.window===a)return a.event;var h;return(h=(c=a.ownerDocument)===null||c===void 0?void 0:(l=c.defaultView)===null||l===void 0?void 0:l.event)!==null&&h!==void 0?h:void 0}return},n7="fuiframefocus",jh=(a)=>{let{disabled:l,element:c,callback:h,contains:Z=ia,pollDuration:v=100,refs:o}=a,r=R1.useRef(void 0),M=T((A)=>{if(o.every((V)=>!Z(V.current||null,A.target))&&!l)h(A)});R1.useEffect(()=>{if(l)return;return c===null||c===void 0||c.addEventListener(n7,M,!0),()=>{c===null||c===void 0||c.removeEventListener(n7,M,!0)}},[c,l,M]),R1.useEffect(()=>{var A;if(l)return;return r.current=c===null||c===void 0?void 0:(A=c.defaultView)===null||A===void 0?void 0:A.setInterval(()=>{let H=c===null||c===void 0?void 0:c.activeElement;if((H===null||H===void 0?void 0:H.tagName)==="IFRAME"||(H===null||H===void 0?void 0:H.tagName)==="WEBVIEW"){let V=new CustomEvent(n7,{bubbles:!0});H.dispatchEvent(V)}},v),()=>{var H;c===null||c===void 0||(H=c.defaultView)===null||H===void 0||H.clearInterval(r.current)}},[c,l,v])};import*as xa from"react";var t3=(a)=>{let{refs:l,callback:c,element:h,disabled:Z,contains:v}=a,o=T((r)=>{let M=v||((V,p)=>!!(V===null||V===void 0?void 0:V.contains(p))),A=r.composedPath()[0];if(l.every((V)=>!M(V.current||null,A))&&!Z)c(r)});xa.useEffect(()=>{if(Z)return;return h===null||h===void 0||h.addEventListener("wheel",o),h===null||h===void 0||h.addEventListener("touchmove",o),()=>{h===null||h===void 0||h.removeEventListener("wheel",o),h===null||h===void 0||h.removeEventListener("touchmove",o)}},[o,h,Z])};import*as s3 from"react";var e3=(a)=>{let l=s3.useRef(null);return s3.useEffect(()=>{l.current=a},[a]),l.current};var zh=(a)=>-1,wh=(a)=>{return};function w5(){let{targetDocument:a}=n(),l=a===null||a===void 0?void 0:a.defaultView,c=l?l.setTimeout:zh,h=l?l.clearTimeout:wh;return q3(c,h)}import*as La from"react";var Nh=parseInt(La.version,10)>=19;function u1(a){if(!a)return;if(Nh)return a.props.ref;return a.ref}function M1(a,l){return(...c)=>{a===null||a===void 0||a(...c),l===null||l===void 0||l(...c)}}function d5(a,l){var c;let h=a;var Z;return Boolean((h===null||h===void 0?void 0:(c=h.ownerDocument)===null||c===void 0?void 0:c.defaultView)&&h instanceof h.ownerDocument.defaultView[(Z=l===null||l===void 0?void 0:l.constructorName)!==null&&Z!==void 0?Z:"HTMLElement"])}import*as X1 from"react";import*as FV from"react";function H2(a){return Boolean(a.type.isFluentTriggerComponent)}function U0(a,l){if(typeof a==="function")return a(l);else if(a)return Ca(a,l);return a||null}function Ca(a,l){if(!X1.isValidElement(a)||a.type===X1.Fragment)throw Error("A trigger element must be a single element for this component. Please ensure that you're not using React Fragments.");if(H2(a)){let c=Ca(a.props.children,l);return X1.cloneElement(a,void 0,c)}else return X1.cloneElement(a,l)}import*as fa from"react";function q1(a){if(!fa.isValidElement(a))return null;return H2(a)?q1(a.props.children):a}function Ra(a){return a&&!!a._virtual}function Eh(a){return Ra(a)?a._virtual.parent||null:null}function D0(a,l={}){if(!a)return null;if(!l.skipVirtual){let h=Eh(a);if(h)return h}let c=a.parentNode;if(c&&c.nodeType===11)return c.host;return c}function $1(a,l){if(!a||!l)return!1;if(a===l)return!0;else{let c=new WeakSet;while(l){let h=D0(l,{skipVirtual:c.has(l)});if(c.add(l),h===a)return!0;l=h}}return!1}function A2(a,l){if(!a)return;Object.assign(a,{_virtual:{parent:l}})}import*as Sp from"react";import*as sV from"react";function ua(a,l){return{...l,[i5]:a}}var Ga=C7(ga(),1);import*as Dp from"react";function Ba(a){if(typeof a==="object"&&!Ga.isValidElementType(a))console.error(`@fluentui/react-jsx-runtime:
|
|
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: ${a}.
|
|
|
|
If this happened in a slot of Fluent UI component, you might be facing package resolution issues.
|
|
Please make sure you don't have multiple versions of "@fluentui/react-utilities" installed in your dependencies or sub-dependencies.
|
|
You can check this by searching up for matching entries in a lockfile produced by your package manager (yarn.lock, pnpm-lock.yaml or package-lock.json).`)}function y7(a,l){return function(h,Z,v,o,r){if(Q1(Z))return l(ua(h,Z),null,v,o,r);if(Q1(h))return l(h,Z,v,o,r);return Ba(h),a(h,Z,v,o,r)}}import*as Ua from"react";function a4(a){let{as:l,[g0]:c,[i5]:h,[r1]:Z,...v}=a,o=v,r=typeof h==="string"?l!==null&&l!==void 0?l:h:h;if(typeof r!=="string"&&l)o.as=l;return{elementType:r,props:o,renderFunction:Z}}import*as sh from"react/jsx-runtime";var b5=sh;var Da=(a,l,c)=>{let{elementType:h,renderFunction:Z,props:v}=a4(a),o={...v,...l};if(Z)return b5.jsx(Ua.Fragment,{children:Z(h,o)},c);return b5.jsx(h,o,c)};import*as j7 from"react";var Pa=(a,l,c)=>{let{elementType:h,renderFunction:Z,props:v}=a4(a),o={...v,...l};if(Z)return b5.jsx(j7.Fragment,{children:Z(h,{...o,children:b5.jsxs(j7.Fragment,{children:o.children},void 0)})},c);return b5.jsxs(h,o,c)};import{Fragment as l4}from"react";var I=y7(b5.jsx,Da),A5=y7(b5.jsxs,Pa);import*as c4 from"react";var Ta=c4.createContext(void 0),eh={},Ep=Ta.Provider,Sa=()=>{let a=c4.useContext(Ta);return a!==null&&a!==void 0?a:eh};var aZ=typeof WeakRef<"u",ka=class{constructor(a){if(aZ&&typeof a==="object")this._weakRef=new WeakRef(a);else this._instance=a}deref(){var a,l;let c;if(this._weakRef){if(c=(a=this._weakRef)==null?void 0:a.deref(),!c)delete this._weakRef}else if(c=this._instance,(l=c==null?void 0:c.isDisposed)==null?void 0:l.call(c))delete this._instance;return c}},K5="keyborg:focusin",P0="keyborg:focusout";function lZ(a){let l=a.HTMLElement,c=l.prototype.focus,h=!1;return l.prototype.focus=function(){h=!0},a.document.createElement("button").focus(),l.prototype.focus=c,h}var z7=!1;function N5(a){let l=a.focus;if(l.__keyborgNativeFocus)l.__keyborgNativeFocus.call(a);else a.focus()}function cZ(a){let l=a;if(!z7)z7=lZ(l);let c=l.HTMLElement.prototype.focus;if(c.__keyborgNativeFocus)return;l.HTMLElement.prototype.focus=M;let h=new Set,Z=(H)=>{let V=H.target;if(!V)return;let p=new CustomEvent(P0,{cancelable:!0,bubbles:!0,composed:!0,detail:{originalEvent:H}});V.dispatchEvent(p)},v=(H)=>{let V=H.target;if(!V)return;let p=H.composedPath()[0],m=new Set;while(p)if(p.nodeType===Node.DOCUMENT_FRAGMENT_NODE)m.add(p),p=p.host;else p=p.parentNode;for(let _ of h){let F=_.deref();if(!F||!m.has(F)){if(h.delete(_),F)F.removeEventListener("focusin",v,!0),F.removeEventListener("focusout",Z,!0)}}o(V,H.relatedTarget||void 0)},o=(H,V,p)=>{var m;let _=H.shadowRoot;if(_){for(let x of h)if(x.deref()===_)return;_.addEventListener("focusin",v,!0),_.addEventListener("focusout",Z,!0),h.add(new ka(_));return}let F={relatedTarget:V,originalEvent:p},d=new CustomEvent(K5,{cancelable:!0,bubbles:!0,composed:!0,detail:F});if(d.details=F,z7||r.lastFocusedProgrammatically)F.isFocusedProgrammatically=H===((m=r.lastFocusedProgrammatically)==null?void 0:m.deref()),r.lastFocusedProgrammatically=void 0;H.dispatchEvent(d)},r=l.__keyborgData={focusInHandler:v,focusOutHandler:Z,shadowTargets:h};l.document.addEventListener("focusin",l.__keyborgData.focusInHandler,!0),l.document.addEventListener("focusout",l.__keyborgData.focusOutHandler,!0);function M(){let H=l.__keyborgData;if(H)H.lastFocusedProgrammatically=new ka(this);return c.apply(this,arguments)}let A=l.document.activeElement;while(A&&A.shadowRoot)o(A),A=A.shadowRoot.activeElement;M.__keyborgNativeFocus=c}function hZ(a){let l=a,c=l.HTMLElement.prototype,h=c.focus.__keyborgNativeFocus,Z=l.__keyborgData;if(Z){l.document.removeEventListener("focusin",Z.focusInHandler,!0),l.document.removeEventListener("focusout",Z.focusOutHandler,!0);for(let v of Z.shadowTargets){let o=v.deref();if(o)o.removeEventListener("focusin",Z.focusInHandler,!0),o.removeEventListener("focusout",Z.focusOutHandler,!0)}Z.shadowTargets.clear(),delete l.__keyborgData}if(h)c.focus=h}var ZZ=500,Oa=0,vZ=class{constructor(a,l){this._isNavigatingWithKeyboard_DO_NOT_USE=!1,this._onFocusIn=(h)=>{if(this._isMouseOrTouchUsedTimer)return;if(this.isNavigatingWithKeyboard)return;let Z=h.detail;if(!Z.relatedTarget)return;if(Z.isFocusedProgrammatically||Z.isFocusedProgrammatically===void 0)return;this.isNavigatingWithKeyboard=!0},this._onMouseDown=(h)=>{if(h.buttons===0||h.clientX===0&&h.clientY===0&&h.screenX===0&&h.screenY===0)return;this._onMouseOrTouch()},this._onMouseOrTouch=()=>{let h=this._win;if(h){if(this._isMouseOrTouchUsedTimer)h.clearTimeout(this._isMouseOrTouchUsedTimer);this._isMouseOrTouchUsedTimer=h.setTimeout(()=>{delete this._isMouseOrTouchUsedTimer},1000)}this.isNavigatingWithKeyboard=!1},this._onKeyDown=(h)=>{if(this.isNavigatingWithKeyboard){if(this._shouldDismissKeyboardNavigation(h))this._scheduleDismiss()}else if(this._shouldTriggerKeyboardNavigation(h))this.isNavigatingWithKeyboard=!0},this.id="c"+ ++Oa,this._win=a;let c=a.document;if(l){let{triggerKeys:h,dismissKeys:Z}=l;if(h==null?void 0:h.length)this._triggerKeys=new Set(h);if(Z==null?void 0:Z.length)this._dismissKeys=new Set(Z)}c.addEventListener(K5,this._onFocusIn,!0),c.addEventListener("mousedown",this._onMouseDown,!0),a.addEventListener("keydown",this._onKeyDown,!0),c.addEventListener("touchstart",this._onMouseOrTouch,!0),c.addEventListener("touchend",this._onMouseOrTouch,!0),c.addEventListener("touchcancel",this._onMouseOrTouch,!0),cZ(a)}get isNavigatingWithKeyboard(){return this._isNavigatingWithKeyboard_DO_NOT_USE}set isNavigatingWithKeyboard(a){if(this._isNavigatingWithKeyboard_DO_NOT_USE!==a)this._isNavigatingWithKeyboard_DO_NOT_USE=a,this.update()}dispose(){let a=this._win;if(a){if(this._isMouseOrTouchUsedTimer)a.clearTimeout(this._isMouseOrTouchUsedTimer),this._isMouseOrTouchUsedTimer=void 0;if(this._dismissTimer)a.clearTimeout(this._dismissTimer),this._dismissTimer=void 0;hZ(a);let l=a.document;l.removeEventListener(K5,this._onFocusIn,!0),l.removeEventListener("mousedown",this._onMouseDown,!0),a.removeEventListener("keydown",this._onKeyDown,!0),l.removeEventListener("touchstart",this._onMouseOrTouch,!0),l.removeEventListener("touchend",this._onMouseOrTouch,!0),l.removeEventListener("touchcancel",this._onMouseOrTouch,!0),delete this._win}}isDisposed(){return!!this._win}update(){var a,l;let c=(l=(a=this._win)==null?void 0:a.__keyborg)==null?void 0:l.refs;if(c)for(let h of Object.keys(c))w7.update(c[h],this.isNavigatingWithKeyboard)}_shouldTriggerKeyboardNavigation(a){var l;if(a.key==="Tab")return!0;let c=(l=this._win)==null?void 0:l.document.activeElement,h=!this._triggerKeys||this._triggerKeys.has(a.keyCode),Z=c&&(c.tagName==="INPUT"||c.tagName==="TEXTAREA"||c.isContentEditable);return h&&!Z}_shouldDismissKeyboardNavigation(a){var l;return(l=this._dismissKeys)==null?void 0:l.has(a.keyCode)}_scheduleDismiss(){let a=this._win;if(a){if(this._dismissTimer)a.clearTimeout(this._dismissTimer),this._dismissTimer=void 0;let l=a.document.activeElement;this._dismissTimer=a.setTimeout(()=>{this._dismissTimer=void 0;let c=a.document.activeElement;if(l&&c&&l===c)this.isNavigatingWithKeyboard=!1},ZZ)}}},w7=class a{constructor(l,c){this._cb=[],this._id="k"+ ++Oa,this._win=l;let h=l.__keyborg;if(h)this._core=h.core,h.refs[this._id]=this;else this._core=new vZ(l,c),l.__keyborg={core:this._core,refs:{[this._id]:this}}}static create(l,c){return new a(l,c)}static dispose(l){l.dispose()}static update(l,c){l._cb.forEach((h)=>h(c))}dispose(){var l;let c=(l=this._win)==null?void 0:l.__keyborg;if(c==null?void 0:c.refs[this._id]){if(delete c.refs[this._id],Object.keys(c.refs).length===0)c.core.dispose(),delete this._win.__keyborg}else console.error(`Keyborg instance ${this._id} is being disposed incorrectly.`);this._cb=[],delete this._core,delete this._win}isNavigatingWithKeyboard(){var l;return!!((l=this._core)==null?void 0:l.isNavigatingWithKeyboard)}subscribe(l){this._cb.push(l)}unsubscribe(l){let c=this._cb.indexOf(l);if(c>=0)this._cb.splice(c,1)}setVal(l){if(this._core)this._core.isNavigatingWithKeyboard=l}};function h4(a,l){return w7.create(a,l)}function Z4(a){w7.dispose(a)}/*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*//*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*/var E5="data-tabster",Ia="data-tabster-dummy",Wa=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","*[tabindex]","*[contenteditable]","details > summary","audio[controls]","video[controls]"].join(", "),S0={EscapeGroupper:1,Restorer:2,Deloser:3};var g1={Invisible:0,PartiallyVisible:1,Visible:2},H1={Source:0,Target:1},k5={Both:0,Vertical:1,Horizontal:2,Grid:3,GridLinear:4},Z5={ArrowUp:1,ArrowDown:2,ArrowLeft:3,ArrowRight:4,PageUp:5,PageDown:6,Home:7,End:8};var oZ={Auto:0,Inside:1,Outside:2};/*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*/function C5(a,l){var c;return(c=a.storageEntry(l))===null||c===void 0?void 0:c.tabster}function na(a,l,c){var h,Z;let v=c||a._noop?void 0:l.getAttribute(E5),o=a.storageEntry(l),r;if(v)if(v!==((h=o===null||o===void 0?void 0:o.attr)===null||h===void 0?void 0:h.string))try{let V=JSON.parse(v);if(typeof V!=="object")throw Error(`Value is not a JSON object, got '${v}'.`);r={string:v,object:V}}catch(V){console.error(`data-tabster attribute error: ${V}`,l)}else return;else if(!o)return;if(!o)o=a.storageEntry(l,!0);if(!o.tabster)o.tabster={};let M=o.tabster||{},A=((Z=o.attr)===null||Z===void 0?void 0:Z.object)||{},H=(r===null||r===void 0?void 0:r.object)||{};for(let V of Object.keys(A))if(!H[V]){if(V==="root"){let p=M[V];if(p)a.root.onRoot(p,!0)}switch(V){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":let p=M[V];if(p)p.dispose(),delete M[V];break;case"observed":if(delete M[V],a.observedElement)a.observedElement.onObservedElementUpdate(l);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete M[V];break}}for(let V of Object.keys(H)){let p=H.sys;switch(V){case"deloser":if(M.deloser)M.deloser.setProps(H.deloser);else if(a.deloser)M.deloser=a.deloser.createDeloser(l,H.deloser);else console.error("Deloser API used before initialization, please call `getDeloser()`");break;case"root":if(M.root)M.root.setProps(H.root);else M.root=a.root.createRoot(l,H.root,p);a.root.onRoot(M.root);break;case"modalizer":if(M.modalizer)M.modalizer.setProps(H.modalizer);else if(a.modalizer)M.modalizer=a.modalizer.createModalizer(l,H.modalizer,p);else console.error("Modalizer API used before initialization, please call `getModalizer()`");break;case"restorer":if(M.restorer)M.restorer.setProps(H.restorer);else if(a.restorer){if(H.restorer)M.restorer=a.restorer.createRestorer(l,H.restorer)}else console.error("Restorer API used before initialization, please call `getRestorer()`");break;case"focusable":M.focusable=H.focusable;break;case"groupper":if(M.groupper)M.groupper.setProps(H.groupper);else if(a.groupper)M.groupper=a.groupper.createGroupper(l,H.groupper,p);else console.error("Groupper API used before initialization, please call `getGroupper()`");break;case"mover":if(M.mover)M.mover.setProps(H.mover);else if(a.mover)M.mover=a.mover.createMover(l,H.mover,p);else console.error("Mover API used before initialization, please call `getMover()`");break;case"observed":if(a.observedElement)M.observed=H.observed,a.observedElement.onObservedElementUpdate(l);else console.error("ObservedElement API used before initialization, please call `getObservedElement()`");break;case"uncontrolled":M.uncontrolled=H.uncontrolled;break;case"outline":if(a.outline)M.outline=H.outline;else console.error("Outline API used before initialization, please call `getOutline()`");break;case"sys":M.sys=H.sys;break;default:console.error(`Unknown key '${V}' in data-tabster attribute value.`)}}if(r)o.attr=r;else{if(Object.keys(M).length===0)delete o.tabster,delete o.attr;a.storageEntry(l,!1)}}/*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*/var rZ="tabster:focusin",MZ="tabster:focusout",m2="tabster:movefocus";var HZ="tabster:modalizer:active",AZ="tabster:modalizer:inactive";var VZ="tabster:mover:state",e7="tabster:mover:movefocus",a6="tabster:mover:memorized-element";var l6="tabster:restorer:restore-focus",pZ="tabster:root:focus",mZ="tabster:root:blur",_Z=typeof CustomEvent<"u"?CustomEvent:function(){};class t5 extends _Z{constructor(a,l){super(a,{bubbles:!0,cancelable:!0,composed:!0,detail:l});this.details=l}}class ya extends t5{constructor(a){super(rZ,a)}}class ja extends t5{constructor(a){super(MZ,a)}}class B1 extends t5{constructor(a){super(m2,a)}}class c6 extends t5{constructor(a){super(VZ,a)}}class za extends t5{constructor(a){super(HZ,a)}}class wa extends t5{constructor(a){super(AZ,a)}}class h6 extends t5{constructor(){super(l6)}}class ba extends t5{constructor(a){super(pZ,a)}}class Na extends t5{constructor(a){super(mZ,a)}}/*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*/var FZ=(a)=>new MutationObserver(a),dZ=(a,l,c,h)=>a.createTreeWalker(l,c,h),iZ=(a)=>a?a.parentNode:null,xZ=(a)=>a?a.parentElement:null,LZ=(a,l)=>!!(l&&(a===null||a===void 0?void 0:a.contains(l))),CZ=(a)=>a.activeElement,fZ=(a,l)=>a.querySelector(l),RZ=(a,l)=>Array.prototype.slice.call(a.querySelectorAll(l),0),uZ=(a,l)=>a.getElementById(l),gZ=(a)=>(a===null||a===void 0?void 0:a.firstChild)||null,GZ=(a)=>(a===null||a===void 0?void 0:a.lastChild)||null,BZ=(a)=>(a===null||a===void 0?void 0:a.nextSibling)||null,UZ=(a)=>(a===null||a===void 0?void 0:a.previousSibling)||null,DZ=(a)=>(a===null||a===void 0?void 0:a.firstElementChild)||null,PZ=(a)=>(a===null||a===void 0?void 0:a.lastElementChild)||null,TZ=(a)=>(a===null||a===void 0?void 0:a.nextElementSibling)||null,SZ=(a)=>(a===null||a===void 0?void 0:a.previousElementSibling)||null,kZ=(a,l)=>a.appendChild(l),OZ=(a,l,c)=>a.insertBefore(l,c),QZ=(a)=>{var l;return((l=a.ownerDocument)===null||l===void 0?void 0:l.getSelection())||null},JZ=(a,l)=>a.ownerDocument.getElementsByName(l),G={createMutationObserver:FZ,createTreeWalker:dZ,getParentNode:iZ,getParentElement:xZ,nodeContains:LZ,getActiveElement:CZ,querySelector:fZ,querySelectorAll:RZ,getElementById:uZ,getFirstChild:gZ,getLastChild:GZ,getNextSibling:BZ,getPreviousSibling:UZ,getFirstElementChild:DZ,getLastElementChild:PZ,getNextElementSibling:TZ,getPreviousElementSibling:SZ,appendChild:kZ,insertBefore:OZ,getSelection:QZ,getElementsByName:JZ};function YZ(a){for(let l of Object.keys(a))G[l]=a[l]}/*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*/var Z6,Qa=typeof DOMRect<"u"?DOMRect:class{constructor(a,l,c,h){this.left=a||0,this.top=l||0,this.right=(a||0)+(c||0),this.bottom=(l||0)+(h||0)}},XZ=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),Z6=!1}catch(a){Z6=!0}var b7=100;function A1(a){let l=a(),c=l.__tabsterInstanceContext;if(!c)c={elementByUId:{},basics:{Promise:l.Promise||void 0,WeakRef:l.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},l.__tabsterInstanceContext=c;return c}function qZ(a){let l=a.__tabsterInstanceContext;if(l){if(l.elementByUId={},delete l.WeakRef,l.containerBoundingRectCache={},l.containerBoundingRectCacheTimer)a.clearTimeout(l.containerBoundingRectCacheTimer);if(l.fakeWeakRefsTimer)a.clearTimeout(l.fakeWeakRefsTimer);l.fakeWeakRefs=[],delete a.__tabsterInstanceContext}}function $Z(a){let l=a.__tabsterInstanceContext;return new((l===null||l===void 0?void 0:l.basics.WeakMap)||WeakMap)}function KZ(a){return!!a.querySelector(Wa)}class r6{constructor(a){this._target=a}deref(){return this._target}static cleanup(a,l){if(!a._target)return!0;if(l||!H6(a._target.ownerDocument,a._target))return delete a._target,!0;return!1}}class D5{constructor(a,l,c){let h=A1(a),Z;if(h.WeakRef)Z=new h.WeakRef(l);else Z=new r6(l),h.fakeWeakRefs.push(Z);this._ref=Z,this._data=c}get(){let a=this._ref,l;if(a){if(l=a.deref(),!l)delete this._ref}return l}getData(){return this._data}}function Ea(a,l){let c=A1(a);c.fakeWeakRefs=c.fakeWeakRefs.filter((h)=>!r6.cleanup(h,l))}function ta(a){let l=A1(a);if(!l.fakeWeakRefsStarted)l.fakeWeakRefsStarted=!0,l.WeakRef=zZ(l);if(!l.fakeWeakRefsTimer)l.fakeWeakRefsTimer=a().setTimeout(()=>{l.fakeWeakRefsTimer=void 0,Ea(a),ta(a)},120000)}function IZ(a){let l=A1(a);if(l.fakeWeakRefsStarted=!1,l.fakeWeakRefsTimer)a().clearTimeout(l.fakeWeakRefsTimer),l.fakeWeakRefsTimer=void 0,l.fakeWeakRefs=[]}function M6(a,l,c){if(l.nodeType!==Node.ELEMENT_NODE)return;let h=Z6?c:{acceptNode:c};return G.createTreeWalker(a,l,NodeFilter.SHOW_ELEMENT,h,!1)}function sa(a,l){let c=l.__tabsterCacheId,h=A1(a),Z=c?h.containerBoundingRectCache[c]:void 0;if(Z)return Z.rect;let v=l.ownerDocument&&l.ownerDocument.documentElement;if(!v)return new Qa;let o=0,r=0,M=v.clientWidth,A=v.clientHeight;if(l!==v){let V=l.getBoundingClientRect();o=Math.max(o,V.left),r=Math.max(r,V.top),M=Math.min(M,V.right),A=Math.min(A,V.bottom)}let H=new Qa(o<M?o:-1,r<A?r:-1,o<M?M-o:0,r<A?A-r:0);if(!c)c="r-"+ ++h.lastContainerBoundingRectCacheId,l.__tabsterCacheId=c;if(h.containerBoundingRectCache[c]={rect:H,element:l},!h.containerBoundingRectCacheTimer)h.containerBoundingRectCacheTimer=window.setTimeout(()=>{h.containerBoundingRectCacheTimer=void 0;for(let V of Object.keys(h.containerBoundingRectCache))delete h.containerBoundingRectCache[V].element.__tabsterCacheId;h.containerBoundingRectCache={}},50);return H}function Ja(a,l,c){let h=ea(l);if(!h)return!1;let Z=sa(a,h),v=l.getBoundingClientRect(),o=v.height*(1-c),r=Math.max(0,Z.top-v.top),M=Math.max(0,v.bottom-Z.bottom),A=r+M;return A===0||A<=o}function WZ(a,l,c){let h=ea(l);if(h){let Z=sa(a,h),v=l.getBoundingClientRect();if(c)h.scrollTop+=v.top-Z.top;else h.scrollTop+=v.bottom-Z.bottom}}function ea(a){let l=a.ownerDocument;if(l){for(let c=G.getParentElement(a);c;c=G.getParentElement(c))if(c.scrollWidth>c.clientWidth||c.scrollHeight>c.clientHeight)return c;return l.documentElement}return null}function nZ(a){a.__shouldIgnoreFocus=!0}function a9(a){return!!a.__shouldIgnoreFocus}function yZ(a){let l=new Uint32Array(4);if(a.crypto&&a.crypto.getRandomValues)a.crypto.getRandomValues(l);else if(a.msCrypto&&a.msCrypto.getRandomValues)a.msCrypto.getRandomValues(l);else for(let h=0;h<l.length;h++)l[h]=4294967295*Math.random();let c=[];for(let h=0;h<l.length;h++)c.push(l[h].toString(36));return c.push("|"),c.push((++XZ).toString(36)),c.push("|"),c.push(Date.now().toString(36)),c.join("")}function v4(a,l){let c=A1(a),h=l.__tabsterElementUID;if(!h)h=l.__tabsterElementUID=yZ(a());if(!c.elementByUId[h]&&H6(l.ownerDocument,l))c.elementByUId[h]=new D5(a,l);return h}function Ya(a,l){let c=A1(a);for(let h of Object.keys(c.elementByUId)){let Z=c.elementByUId[h],v=Z&&Z.get();if(v&&l){if(!G.nodeContains(l,v))continue}delete c.elementByUId[h]}}function H6(a,l){return G.nodeContains(a===null||a===void 0?void 0:a.body,l)}function l9(a,l){let c=a.matches||a.matchesSelector||a.msMatchesSelector||a.webkitMatchesSelector;return c&&c.call(a,l)}function jZ(a){let l=A1(a);if(l.basics.Promise)return l.basics.Promise;throw Error("No Promise defined.")}function zZ(a){return a.basics.WeakRef}var wZ=0;class _2{constructor(a,l,c){let h=a.getWindow;this._tabster=a,this._element=new D5(h,l),this._props={...c},this.id="i"+ ++wZ}getElement(){return this._element.get()}getProps(){return this._props}setProps(a){this._props={...a}}}class V2{constructor(a,l,c,h,Z){var v;this._focusIn=(A)=>{if(this._fixedTarget){let V=this._fixedTarget.get();if(V)N5(V);return}let H=this.input;if(this.onFocusIn&&H){let V=A.relatedTarget;this.onFocusIn(this,this._isBackward(!0,H,V),V)}},this._focusOut=(A)=>{if(this._fixedTarget)return;this.useDefaultAction=!1;let H=this.input;if(this.onFocusOut&&H){let V=A.relatedTarget;this.onFocusOut(this,this._isBackward(!1,H,V),V)}};let o=a(),r=o.document.createElement("i");r.tabIndex=0,r.setAttribute("role","none"),r.setAttribute(Ia,""),r.setAttribute("aria-hidden","true");let M=r.style;if(M.position="fixed",M.width=M.height="1px",M.opacity="0.001",M.zIndex="-1",M.setProperty("content-visibility","hidden"),nZ(r),this.input=r,this.isFirst=c.isFirst,this.isOutside=l,this._isPhantom=(v=c.isPhantom)!==null&&v!==void 0?v:!1,this._fixedTarget=Z,r.addEventListener("focusin",this._focusIn),r.addEventListener("focusout",this._focusOut),r.__tabsterDummyContainer=h,this._isPhantom)this._disposeTimer=o.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{if(this._disposeTimer)o.clearTimeout(this._disposeTimer),delete this._disposeTimer;delete this._clearDisposeTimeout}}dispose(){var a;if(this._clearDisposeTimeout)this._clearDisposeTimeout();let l=this.input;if(!l)return;delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,l.removeEventListener("focusin",this._focusIn),l.removeEventListener("focusout",this._focusOut),delete l.__tabsterDummyContainer,(a=G.getParentNode(l))===null||a===void 0||a.removeChild(l)}setTopLeft(a,l){var c;let h=(c=this.input)===null||c===void 0?void 0:c.style;if(h)h.top=`${a}px`,h.left=`${l}px`}_isBackward(a,l,c){return a&&!c?!this.isFirst:!!(c&&l.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_FOLLOWING)}}var A6={Root:1,Modalizer:2,Mover:3,Groupper:4};class k0{constructor(a,l,c,h,Z,v){this._element=l,this._instance=new h9(a,l,this,c,h,Z,v)}_setHandlers(a,l){this._onFocusIn=a,this._onFocusOut=l}moveOut(a){var l;(l=this._instance)===null||l===void 0||l.moveOut(a)}moveOutWithDefaultAction(a,l){var c;(c=this._instance)===null||c===void 0||c.moveOutWithDefaultAction(a,l)}getHandler(a){return a?this._onFocusIn:this._onFocusOut}setTabbable(a){var l;(l=this._instance)===null||l===void 0||l.setTabbable(this,a)}dispose(){if(this._instance)this._instance.dispose(this),delete this._instance;delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(a,l,c,h,Z){let o=new V2(a.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(o){let r,M;if(l.tagName==="BODY")r=l,M=c&&h||!c&&!h?G.getFirstElementChild(l):null;else{if(c&&(!h||h&&!a.focusable.isFocusable(l,!1,!0,!0)))r=l,M=h?l.firstElementChild:null;else r=G.getParentElement(l),M=c&&h||!c&&!h?l:G.getNextElementSibling(l);let A,H;do if(A=c&&h||!c&&!h?G.getPreviousElementSibling(M):M,H=p2(A),H===l)M=c&&h||!c&&!h?A:G.getNextElementSibling(A);else H=null;while(H)}if(r===null||r===void 0?void 0:r.dispatchEvent(new B1({by:"root",owner:r,next:null,relatedEvent:Z})))G.insertBefore(r,o,M),N5(o)}}static addPhantomDummyWithTarget(a,l,c,h){let v=new V2(a.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new D5(a.getWindow,h)).input;if(v){let o,r;if(KZ(l)&&!c)o=l,r=G.getFirstElementChild(l);else o=G.getParentElement(l),r=c?l:G.getNextElementSibling(l);if(o)G.insertBefore(o,v,r)}}}function G1(a,l){var c;let h={1:"Root",2:"Modalizer",3:"Mover",4:"Groupper"};(c=a.input)===null||c===void 0||c.setAttribute(Ia,[`isFirst=${a.isFirst}`,`isOutside=${a.isOutside}`,...l.map((Z)=>`(${h[Z.priority]}, tabbable=${Z.tabbable})`)].join(", "))}class c9{constructor(a){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=(l)=>{var c;if(this._changedParents.has(l))return;if(this._changedParents.add(l),this._updateDummyInputsTimer)return;this._updateDummyInputsTimer=(c=this._win)===null||c===void 0?void 0:c.call(this).setTimeout(()=>{delete this._updateDummyInputsTimer;for(let h of this._dummyElements){let Z=h.get();if(Z){let v=this._dummyCallbacks.get(Z);if(v){let o=G.getParentNode(Z);if(!o||this._changedParents.has(o))v()}}}this._changedParents=new WeakSet},b7)},this._win=a}add(a,l){if(!this._dummyCallbacks.has(a)&&this._win)this._dummyElements.push(new D5(this._win,a)),this._dummyCallbacks.set(a,l),this.domChanged=this._domChanged}remove(a){if(this._dummyElements=this._dummyElements.filter((l)=>{let c=l.get();return c&&c!==a}),this._dummyCallbacks.delete(a),this._dummyElements.length===0)delete this.domChanged}dispose(){var a;let l=(a=this._win)===null||a===void 0?void 0:a.call(this);if(this._updateTimer)l===null||l===void 0||l.clearTimeout(this._updateTimer),delete this._updateTimer;if(this._updateDummyInputsTimer)l===null||l===void 0||l.clearTimeout(this._updateDummyInputsTimer),delete this._updateDummyInputsTimer;this._changedParents=new WeakSet,this._dummyCallbacks=new WeakMap,this._dummyElements=[],this._updateQueue.clear(),delete this.domChanged,delete this._win}updatePositions(a){if(!this._win)return;this._updateQueue.add(a),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions()}_scheduledUpdatePositions(){var a;if(this._updateTimer)return;this._updateTimer=(a=this._win)===null||a===void 0?void 0:a.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+b7<=Date.now()){let l=new Map,c=[];for(let h of this._updateQueue)c.push(h(l));this._updateQueue.clear();for(let h of c)h();l.clear()}else this._scheduledUpdatePositions()},b7)}}class h9{constructor(a,l,c,h,Z,v,o){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(p,m,_)=>{this._onFocus(!0,p,m,_)},this._onFocusOut=(p,m,_)=>{this._onFocus(!1,p,m,_)},this.moveOut=(p)=>{var m;let _=this._firstDummy,F=this._lastDummy;if(_&&F){this._ensurePosition();let d=_.input,x=F.input,i=(m=this._element)===null||m===void 0?void 0:m.get();if(d&&x&&i){let L;if(p)d.tabIndex=0,L=d;else x.tabIndex=0,L=x;if(L)N5(L)}}},this.moveOutWithDefaultAction=(p,m)=>{var _;let F=this._firstDummy,d=this._lastDummy;if(F&&d){this._ensurePosition();let x=F.input,i=d.input,L=(_=this._element)===null||_===void 0?void 0:_.get();if(x&&i&&L){let C;if(p)if(!F.isOutside&&this._tabster.focusable.isFocusable(L,!0,!0,!0))C=L;else F.useDefaultAction=!0,x.tabIndex=0,C=x;else d.useDefaultAction=!0,i.tabIndex=0,C=i;if(C&&L.dispatchEvent(new B1({by:"root",owner:L,next:null,relatedEvent:m})))N5(C)}}},this.setTabbable=(p,m)=>{var _,F;for(let x of this._wrappers)if(x.manager===p){x.tabbable=m;break}let d=this._getCurrent();if(d){let x=d.tabbable?0:-1,i=(_=this._firstDummy)===null||_===void 0?void 0:_.input;if(i)i.tabIndex=x;if(i=(F=this._lastDummy)===null||F===void 0?void 0:F.input,i)i.tabIndex=x}this._firstDummy&&G1(this._firstDummy,this._wrappers),this._lastDummy&&G1(this._lastDummy,this._wrappers)},this._addDummyInputs=()=>{if(this._addTimer)return;this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),this._firstDummy&&G1(this._firstDummy,this._wrappers),this._lastDummy&&G1(this._lastDummy,this._wrappers),this._addTransformOffsets()},0)},this._addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)},this._computeTransformOffsets=(p)=>{var m,_;let F=((m=this._firstDummy)===null||m===void 0?void 0:m.input)||((_=this._lastDummy)===null||_===void 0?void 0:_.input),d=this._transformElements,x=new Set,i=0,L=0,C=this._getWindow();for(let u=F;u&&u.nodeType===Node.ELEMENT_NODE;u=G.getParentElement(u)){let f=p.get(u);if(f===void 0){let R=C.getComputedStyle(u).transform;if(R&&R!=="none")f={scrollTop:u.scrollTop,scrollLeft:u.scrollLeft};p.set(u,f||null)}if(f){if(x.add(u),!d.has(u))u.addEventListener("scroll",this._addTransformOffsets);i+=f.scrollTop,L+=f.scrollLeft}}for(let u of d)if(!x.has(u))u.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=x,()=>{var u,f;(u=this._firstDummy)===null||u===void 0||u.setTopLeft(i,L),(f=this._lastDummy)===null||f===void 0||f.setTopLeft(i,L)}};let r=l.get();if(!r)throw Error("No element");this._tabster=a,this._getWindow=a.getWindow,this._callForDefaultAction=o;let M=r.__tabsterDummy;if((M||this)._wrappers.push({manager:c,priority:h,tabbable:!0}),M)return this._firstDummy&&G1(this._firstDummy,M._wrappers),this._lastDummy&&G1(this._lastDummy,M._wrappers),M;r.__tabsterDummy=this;let A=Z===null||Z===void 0?void 0:Z.dummyInputsPosition,H=r.tagName;this._isOutside=!A?(v||H==="UL"||H==="OL"||H==="TABLE")&&!(H==="LI"||H==="TD"||H==="TH"):A===oZ.Outside,this._firstDummy=new V2(this._getWindow,this._isOutside,{isFirst:!0},l),this._lastDummy=new V2(this._getWindow,this._isOutside,{isFirst:!1},l);let V=this._firstDummy.input;V&&a._dummyObserver.add(V,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=l,this._addDummyInputs()}dispose(a,l){var c,h,Z,v;let o=this._wrappers=this._wrappers.filter((r)=>r.manager!==a&&!l);if(this._firstDummy&&G1(this._firstDummy,o),this._lastDummy&&G1(this._lastDummy,o),o.length===0){delete((c=this._element)===null||c===void 0?void 0:c.get()).__tabsterDummy;for(let A of this._transformElements)A.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();let r=this._getWindow();if(this._addTimer)r.clearTimeout(this._addTimer),delete this._addTimer;let M=(h=this._firstDummy)===null||h===void 0?void 0:h.input;M&&this._tabster._dummyObserver.remove(M),(Z=this._firstDummy)===null||Z===void 0||Z.dispose(),(v=this._lastDummy)===null||v===void 0||v.dispose()}}_onFocus(a,l,c,h){var Z;let v=this._getCurrent();if(v&&(!l.useDefaultAction||this._callForDefaultAction))(Z=v.manager.getHandler(a))===null||Z===void 0||Z(l,c,h)}_getCurrent(){return this._wrappers.sort((a,l)=>{if(a.tabbable!==l.tabbable)return a.tabbable?-1:1;return a.priority-l.priority}),this._wrappers[0]}_ensurePosition(){var a,l,c;let h=(a=this._element)===null||a===void 0?void 0:a.get(),Z=(l=this._firstDummy)===null||l===void 0?void 0:l.input,v=(c=this._lastDummy)===null||c===void 0?void 0:c.input;if(!h||!Z||!v)return;if(this._isOutside){let o=G.getParentNode(h);if(o){let r=G.getNextSibling(h);if(r!==v)G.insertBefore(o,v,r);if(G.getPreviousElementSibling(h)!==Z)G.insertBefore(o,Z,h)}}else{if(G.getLastElementChild(h)!==v)G.appendChild(h,v);let o=G.getFirstElementChild(h);if(o&&o!==Z&&o.parentNode)G.insertBefore(o.parentNode,Z,o)}}}function Z9(a){let l=null;for(let c=G.getLastElementChild(a);c;c=G.getLastElementChild(c))l=c;return l||void 0}function N7(a,l,c,h){let Z=a.storageEntry(l,!0),v=!1;if(!Z.aug){if(h===void 0)return v;Z.aug={}}if(h===void 0){if(c in Z.aug){let o=Z.aug[c];if(delete Z.aug[c],o===null)l.removeAttribute(c);else l.setAttribute(c,o);v=!0}}else{let o;if(!(c in Z.aug))o=l.getAttribute(c);if(o!==void 0&&o!==h){if(Z.aug[c]=o,h===null)l.removeAttribute(c);else l.setAttribute(c,h);v=!0}}if(h===void 0&&Object.keys(Z.aug).length===0)delete Z.aug,a.storageEntry(l,!1);return v}function bZ(a){var l,c;let h=a.ownerDocument,Z=(l=h.defaultView)===null||l===void 0?void 0:l.getComputedStyle(a);if(a.offsetParent===null&&h.body!==a&&(Z===null||Z===void 0?void 0:Z.position)!=="fixed")return!0;if((Z===null||Z===void 0?void 0:Z.visibility)==="hidden")return!0;if((Z===null||Z===void 0?void 0:Z.position)==="fixed"){if(Z.display==="none")return!0;if(((c=a.parentElement)===null||c===void 0?void 0:c.offsetParent)===null&&h.body!==a.parentElement)return!0}return!1}function v6(a){return a.tagName==="INPUT"&&!!a.name&&a.type==="radio"}function NZ(a){if(!v6(a))return;let l=a.name,c=Array.from(G.getElementsByName(a,l)),h;return c=c.filter((Z)=>{if(v6(Z)){if(Z.checked)h=Z;return!0}return!1}),{name:l,buttons:new Set(c),checked:h}}function p2(a){var l;return((l=a===null||a===void 0?void 0:a.__tabsterDummyContainer)===null||l===void 0?void 0:l.get())||null}/*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*/function F2(a,l){let c=JSON.stringify(a);if(l===!0)return c;return{[E5]:c}}function EZ(a,l){for(let c of Object.keys(l)){let h=l[c];if(h)a[c]=h;else delete a[c]}}function tZ(a,l,c){let h;if(c){let Z=a.getAttribute(E5);if(Z)try{h=JSON.parse(Z)}catch(v){console.error(`data-tabster attribute error: ${v}`,a)}}if(!h)h={};if(EZ(h,l),Object.keys(h).length>0)a.setAttribute(E5,F2(h,!0));else a.removeAttribute(E5)}/*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*/function Xa(a,l,c){{let h=a.get();if(h)if(l)h.style.removeProperty("--tabster-root");else h.style.setProperty("--tabster-root",c+",")}}class o6 extends k0{constructor(a,l,c,h){super(a,l,A6.Root,h,void 0,!0);this._onDummyInputFocus=(Z)=>{var v;if(Z.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);let o=this._element.get();if(o){this._setFocused(!0);let r=this._tabster.focusedElement.getFirstOrLastTabbable(Z.isFirst,{container:o,ignoreAccessibility:!0});if(r){N5(r);return}}(v=Z.input)===null||v===void 0||v.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=a,this._setFocused=c}}class v9 extends _2{constructor(a,l,c,h,Z){super(a,l,h);this._isFocused=!1,this._setFocused=(M)=>{var A;if(this._setFocusedTimer)this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer;if(this._isFocused===M)return;let H=this._element.get();if(H)if(M)this._isFocused=!0,(A=this._dummyManager)===null||A===void 0||A.setTabbable(!1),H.dispatchEvent(new ba({element:H}));else this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var V;delete this._setFocusedTimer,this._isFocused=!1,(V=this._dummyManager)===null||V===void 0||V.setTabbable(!0),H.dispatchEvent(new Na({element:H}))},0)},this._onFocusIn=(M)=>{let A=this._tabster.getParent,H=this._element.get(),V=M.composedPath()[0];do{if(V===H){this._setFocused(!0);return}V=V&&A(V)}while(V)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=c;let v=a.getWindow;if(this.uid=v4(v,l),this._sys=Z,a.controlTab||a.rootDummyInputs)this.addDummyInputs();let r=v().document;r.addEventListener(K5,this._onFocusIn),r.addEventListener(P0,this._onFocusOut),this._add()}addDummyInputs(){if(!this._dummyManager)this._dummyManager=new o6(this._tabster,this._element,this._setFocused,this._sys)}dispose(){var a;this._onDispose(this);let l=this._tabster.getWindow(),c=l.document;if(c.removeEventListener(K5,this._onFocusIn),c.removeEventListener(P0,this._onFocusOut),this._setFocusedTimer)l.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer;(a=this._dummyManager)===null||a===void 0||a.dispose(),this._remove()}moveOutWithDefaultAction(a,l){let c=this._dummyManager;if(c)c.moveOutWithDefaultAction(a,l);else{let h=this.getElement();if(h)o6.moveWithPhantomDummy(this._tabster,h,!0,a,l)}}_add(){Xa(this._element,!1,this.uid)}_remove(){Xa(this._element,!0)}}class c5{constructor(a,l){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var c;let h=this._win().document,Z=h.body;if(Z){this._autoRootUnwait(h);let v=this._autoRoot;if(v)return tZ(Z,{root:v},!0),na(this._tabster,Z),(c=C5(this._tabster,Z))===null||c===void 0?void 0:c.root}else if(!this._autoRootWaiting)this._autoRootWaiting=!0,h.addEventListener("readystatechange",this._autoRootCreate);return},this._onRootDispose=(c)=>{delete this._roots[c.id]},this._tabster=a,this._win=a.getWindow,this._autoRoot=l,a.queueInit(()=>{if(this._autoRoot)this._autoRootCreate()})}_autoRootUnwait(a){a.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){let a=this._win();this._autoRootUnwait(a.document),delete this._autoRoot,Object.keys(this._roots).forEach((l)=>{if(this._roots[l])this._roots[l].dispose(),delete this._roots[l]}),this.rootById={}}createRoot(a,l,c){let h=new v9(this._tabster,a,this._onRootDispose,l,c);if(this._roots[h.id]=h,this._forceDummy)h.addDummyInputs();return h}addDummyInputs(){this._forceDummy=!0;let a=this._roots;for(let l of Object.keys(a))a[l].addDummyInputs()}static getRootByUId(a,l){let c=a().__tabsterInstance;return c&&c.root.rootById[l]}static getTabsterContext(a,l,c){if(c===void 0)c={};var h,Z,v,o;if(!l.ownerDocument)return;let{checkRtl:r,referenceElement:M}=c,A=a.getParent;a.drainInitQueue();let H,V,p,m,_=!1,F,d,x,i,L=M||l,C={};while(L&&(!H||r)){let f=C5(a,L);if(r&&x===void 0){let W=L.dir;if(W)x=W.toLowerCase()==="rtl"}if(!f){L=A(L);continue}let R=L.tagName;if((f.uncontrolled||R==="IFRAME"||R==="WEBVIEW")&&a.focusable.isVisible(L))i=L;if(!m&&((h=f.focusable)===null||h===void 0?void 0:h.excludeFromMover)&&!p)_=!0;let{modalizer:B,groupper:U,mover:O}=f;if(!V&&B)V=B;if(!p&&U&&(!V||B))if(V){if(!U.isActive()&&U.getProps().tabbability&&V.userId!==((Z=a.modalizer)===null||Z===void 0?void 0:Z.activeId))V=void 0,p=U;d=U}else p=U;if(!m&&O&&(!V||B)&&(!U||L!==l)&&L.contains(l))m=O,F=!!p&&p!==U;if(f.root)H=f.root;if((v=f.focusable)===null||v===void 0?void 0:v.ignoreKeydown)Object.assign(C,f.focusable.ignoreKeydown);L=A(L)}if(!H){let f=a.root;if(f._autoRoot){if((o=l.ownerDocument)===null||o===void 0?void 0:o.body)H=f._autoRootCreate()}}if(p&&!m)F=!0;if(!H){if(V||p||m)console.error("Tabster Root is required for Mover, Groupper and Modalizer to work.")}return H?{root:H,modalizer:V,groupper:p,mover:m,groupperBeforeMover:F,modalizerInGroupper:d,rtl:r?!!x:void 0,uncontrolled:i,excludedFromMover:_,ignoreKeydown:(f)=>!!C[f.key]}:void 0}static getRoot(a,l){var c;let h=a.getParent;for(let Z=l;Z;Z=h(Z)){let v=(c=C5(a,Z))===null||c===void 0?void 0:c.root;if(v)return v}return}onRoot(a,l){if(l)delete this.rootById[a.uid];else this.rootById[a.uid]=a}}/*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*//*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*/class V6{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(a){let l=this._callbacks;if(l.indexOf(a)<0)l.push(a)}subscribeFirst(a){let l=this._callbacks,c=l.indexOf(a);if(c>=0)l.splice(c,1);l.unshift(a)}unsubscribe(a){let l=this._callbacks.indexOf(a);if(l>=0)this._callbacks.splice(l,1)}setVal(a,l){if(this._val===a)return;this._val=a,this._callCallbacks(a,l)}getVal(){return this._val}trigger(a,l){this._callCallbacks(a,l)}_callCallbacks(a,l){this._callbacks.forEach((c)=>c(a,l))}}/*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*//*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*/class o9{constructor(a){this._tabster=a}dispose(){}getProps(a){let l=C5(this._tabster,a);return l&&l.focusable||{}}isFocusable(a,l,c,h){if(l9(a,Wa)&&(l||a.tabIndex!==-1))return(c||this.isVisible(a))&&(h||this.isAccessible(a));return!1}isVisible(a){if(!a.ownerDocument||a.nodeType!==Node.ELEMENT_NODE)return!1;if(bZ(a))return!1;let l=a.ownerDocument.body.getBoundingClientRect();if(l.width===0&&l.height===0)return!1;return!0}isAccessible(a){var l;for(let c=a;c;c=G.getParentElement(c)){let h=C5(this._tabster,c);if(this._isHidden(c))return!1;if(!((l=h===null||h===void 0?void 0:h.focusable)===null||l===void 0?void 0:l.ignoreAriaDisabled)&&this._isDisabled(c))return!1}return!0}_isDisabled(a){return a.hasAttribute("disabled")}_isHidden(a){var l;let c=a.getAttribute("aria-hidden");if(c&&c.toLowerCase()==="true"){if(!((l=this._tabster.modalizer)===null||l===void 0?void 0:l.isAugmented(a)))return!0}return!1}findFirst(a,l){return this.findElement({...a},l)}findLast(a,l){return this.findElement({isBackward:!0,...a},l)}findNext(a,l){return this.findElement({...a},l)}findPrev(a,l){return this.findElement({...a,isBackward:!0},l)}findDefault(a,l){return this.findElement({...a,acceptCondition:(c)=>this.isFocusable(c,a.includeProgrammaticallyFocusable)&&!!this.getProps(c).isDefault},l)||null}findAll(a){return this._findElements(!0,a)||[]}findElement(a,l){let c=this._findElements(!1,a,l);return c?c[0]:c}_findElements(a,l,c){var h,Z,v;let{container:o,currentElement:r=null,includeProgrammaticallyFocusable:M,useActiveModalizer:A,ignoreAccessibility:H,modalizerId:V,isBackward:p,onElement:m}=l;if(!c)c={};let _=[],{acceptCondition:F}=l,d=!!F;if(!o)return null;if(!F)F=(C)=>this.isFocusable(C,M,!1,H);let x={container:o,modalizerUserId:V===void 0&&A?(h=this._tabster.modalizer)===null||h===void 0?void 0:h.activeId:V||((v=(Z=c5.getTabsterContext(this._tabster,o))===null||Z===void 0?void 0:Z.modalizer)===null||v===void 0?void 0:v.userId),from:r||o,isBackward:p,isFindAll:a,acceptCondition:F,hasCustomCondition:d,includeProgrammaticallyFocusable:M,ignoreAccessibility:H,cachedGrouppers:{},cachedRadioGroups:{}},i=M6(o.ownerDocument,o,(C)=>this._acceptElement(C,x));if(!i)return null;let L=(C)=>{var u,f;let R=(u=x.foundElement)!==null&&u!==void 0?u:x.foundBackward;if(R)_.push(R);if(a){if(R){if(x.found=!1,delete x.foundElement,delete x.foundBackward,delete x.fromCtx,x.from=R,m&&!m(R))return!1}return!!(R||C)}else{if(R&&c)c.uncontrolled=(f=c5.getTabsterContext(this._tabster,R))===null||f===void 0?void 0:f.uncontrolled;return!!(C&&!R)}};if(!r)c.outOfDOMOrder=!0;if(r&&G.nodeContains(o,r))i.currentNode=r;else if(p){let C=Z9(o);if(!C)return null;if(this._acceptElement(C,x)===NodeFilter.FILTER_ACCEPT&&!L(!0)){if(x.skippedFocusable)c.outOfDOMOrder=!0;return _}i.currentNode=C}do if(p)i.previousNode();else i.nextNode();while(L());if(x.skippedFocusable)c.outOfDOMOrder=!0;return _.length?_:null}_acceptElement(a,l){var c,h,Z;if(l.found)return NodeFilter.FILTER_ACCEPT;let v=l.foundBackward;if(v&&(a===v||!G.nodeContains(v,a)))return l.found=!0,l.foundElement=v,NodeFilter.FILTER_ACCEPT;let o=l.container;if(a===o)return NodeFilter.FILTER_SKIP;if(!G.nodeContains(o,a))return NodeFilter.FILTER_REJECT;if(p2(a))return NodeFilter.FILTER_REJECT;if(G.nodeContains(l.rejectElementsFrom,a))return NodeFilter.FILTER_REJECT;let r=l.currentCtx=c5.getTabsterContext(this._tabster,a);if(!r)return NodeFilter.FILTER_SKIP;if(a9(a)){if(this.isFocusable(a,void 0,!0,!0))l.skippedFocusable=!0;return NodeFilter.FILTER_SKIP}if(!l.hasCustomCondition&&(a.tagName==="IFRAME"||a.tagName==="WEBVIEW"))if(this.isVisible(a)&&((c=r.modalizer)===null||c===void 0?void 0:c.userId)===((h=this._tabster.modalizer)===null||h===void 0?void 0:h.activeId))return l.found=!0,l.rejectElementsFrom=l.foundElement=a,NodeFilter.FILTER_ACCEPT;else return NodeFilter.FILTER_REJECT;if(!l.ignoreAccessibility&&!this.isAccessible(a)){if(this.isFocusable(a,!1,!0,!0))l.skippedFocusable=!0;return NodeFilter.FILTER_REJECT}let M,A=l.fromCtx;if(!A)A=l.fromCtx=c5.getTabsterContext(this._tabster,l.from);let H=A===null||A===void 0?void 0:A.mover,V=r.groupper,p=r.mover;if(M=(Z=this._tabster.modalizer)===null||Z===void 0?void 0:Z.acceptElement(a,l),M!==void 0)l.skippedFocusable=!0;if(M===void 0&&(V||p||H)){let m=V===null||V===void 0?void 0:V.getElement(),_=H===null||H===void 0?void 0:H.getElement(),F=p===null||p===void 0?void 0:p.getElement();if(F&&G.nodeContains(_,F)&&G.nodeContains(o,_)&&(!m||!p||G.nodeContains(_,m)))p=H,F=_;if(m){if(m===o||!G.nodeContains(o,m))V=void 0;else if(!G.nodeContains(m,a))return NodeFilter.FILTER_REJECT}if(F){if(!G.nodeContains(o,F))p=void 0;else if(!G.nodeContains(F,a))return NodeFilter.FILTER_REJECT}if(V&&p)if(F&&m&&!G.nodeContains(m,F))p=void 0;else V=void 0;if(V)M=V.acceptElement(a,l);if(p)M=p.acceptElement(a,l)}if(M===void 0){if(M=l.acceptCondition(a)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,M===NodeFilter.FILTER_SKIP&&this.isFocusable(a,!1,!0,!0))l.skippedFocusable=!0}if(M===NodeFilter.FILTER_ACCEPT&&!l.found){if(!l.isFindAll&&v6(a)&&!a.checked){let m=a.name,_=l.cachedRadioGroups[m];if(!_){if(_=NZ(a),_)l.cachedRadioGroups[m]=_}if((_===null||_===void 0?void 0:_.checked)&&_.checked!==a)return NodeFilter.FILTER_SKIP}if(l.isBackward)l.foundBackward=a,M=NodeFilter.FILTER_SKIP;else l.found=!0,l.foundElement=a}return M}}/*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*/var m5={Tab:"Tab",Enter:"Enter",Escape:"Escape",PageUp:"PageUp",PageDown:"PageDown",End:"End",Home:"Home",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown"};/*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*/function sZ(a,l){var c;let h=a.getParent,Z=l;do{let v=(c=C5(a,Z))===null||c===void 0?void 0:c.uncontrolled;if(v&&a.uncontrolled.isUncontrolledCompletely(Z,!!v.completely))return Z;Z=h(Z)}while(Z);return}var qa={[S0.Restorer]:0,[S0.Deloser]:1,[S0.EscapeGroupper]:2};class o5 extends V6{constructor(a,l){super();this._init=()=>{let c=this._win(),h=c.document;h.addEventListener(K5,this._onFocusIn,!0),h.addEventListener(P0,this._onFocusOut,!0),c.addEventListener("keydown",this._onKeyDown,!0);let Z=G.getActiveElement(h);if(Z&&Z!==h.body)this._setFocusedElement(Z);this.subscribe(this._onChanged)},this._onFocusIn=(c)=>{let h=c.composedPath()[0];if(h)this._setFocusedElement(h,c.detail.relatedTarget,c.detail.isFocusedProgrammatically)},this._onFocusOut=(c)=>{var h;this._setFocusedElement(void 0,(h=c.detail)===null||h===void 0?void 0:h.originalEvent.relatedTarget)},this._validateFocusedElement=(c)=>{},this._onKeyDown=(c)=>{if(c.key!==m5.Tab||c.ctrlKey)return;let h=this.getVal();if(!h||!h.ownerDocument||h.contentEditable==="true")return;let Z=this._tabster,v=Z.controlTab,o=c5.getTabsterContext(Z,h);if(!o||o.ignoreKeydown(c))return;let r=c.shiftKey,M=o5.findNextTabbable(Z,o,void 0,h,void 0,r,!0),A=o.root.getElement();if(!A)return;let H=M===null||M===void 0?void 0:M.element,V=sZ(Z,h);if(H){let p=M.uncontrolled;if(o.uncontrolled||G.nodeContains(p,h)){if(!M.outOfDOMOrder&&p===o.uncontrolled||V&&!G.nodeContains(V,H))return;k0.addPhantomDummyWithTarget(Z,h,r,H);return}if(p&&Z.focusable.isVisible(p)||H.tagName==="IFRAME"&&Z.focusable.isVisible(H)){if(A.dispatchEvent(new B1({by:"root",owner:A,next:H,relatedEvent:c})))k0.moveWithPhantomDummy(Z,p!==null&&p!==void 0?p:H,!1,r,c);return}if(v||(M===null||M===void 0?void 0:M.outOfDOMOrder)){if(A.dispatchEvent(new B1({by:"root",owner:A,next:H,relatedEvent:c})))c.preventDefault(),c.stopImmediatePropagation(),N5(H)}}else if(!V&&A.dispatchEvent(new B1({by:"root",owner:A,next:null,relatedEvent:c})))o.root.moveOutWithDefaultAction(r,c)},this._onChanged=(c,h)=>{var Z,v;if(c)c.dispatchEvent(new ya(h));else{let o=(Z=this._lastVal)===null||Z===void 0?void 0:Z.get();if(o){let r={...h},M=c5.getTabsterContext(this._tabster,o),A=(v=M===null||M===void 0?void 0:M.modalizer)===null||v===void 0?void 0:v.userId;if(A)r.modalizerId=A;o.dispatchEvent(new ja(r))}}},this._tabster=a,this._win=l,a.queueInit(this._init)}dispose(){super.dispose();let a=this._win(),l=a.document;l.removeEventListener(K5,this._onFocusIn,!0),l.removeEventListener(P0,this._onFocusOut,!0),a.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged);let c=this._asyncFocus;if(c)a.clearTimeout(c.timeout),delete this._asyncFocus;delete o5._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(a,l){var c,h;let Z=o5._lastResetElement,v=Z&&Z.get();if(v&&G.nodeContains(l,v))delete o5._lastResetElement;if(v=(h=(c=a._nextVal)===null||c===void 0?void 0:c.element)===null||h===void 0?void 0:h.get(),v&&G.nodeContains(l,v))delete a._nextVal;if(Z=a._lastVal,v=Z&&Z.get(),v&&G.nodeContains(l,v))delete a._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var a;let l=(a=this._lastVal)===null||a===void 0?void 0:a.get();if(!l||l&&!H6(l.ownerDocument,l))this._lastVal=l=void 0;return l}focus(a,l,c,h){if(!this._tabster.focusable.isFocusable(a,l,!1,c))return!1;return a.focus({preventScroll:h}),!0}focusDefault(a){let l=this._tabster.focusable.findDefault({container:a});if(l)return this._tabster.focusedElement.focus(l),!0;return!1}getFirstOrLastTabbable(a,l){var c;let{container:h,ignoreAccessibility:Z}=l,v;if(h){let o=c5.getTabsterContext(this._tabster,h);if(o)v=(c=o5.findNextTabbable(this._tabster,o,h,void 0,void 0,!a,Z))===null||c===void 0?void 0:c.element}if(v&&!G.nodeContains(h,v))v=void 0;return v||void 0}_focusFirstOrLast(a,l){let c=this.getFirstOrLastTabbable(a,l);if(c)return this.focus(c,!1,!0),!0;return!1}focusFirst(a){return this._focusFirstOrLast(!0,a)}focusLast(a){return this._focusFirstOrLast(!1,a)}resetFocus(a){if(!this._tabster.focusable.isVisible(a))return!1;if(!this._tabster.focusable.isFocusable(a,!0,!0,!0)){let l=a.getAttribute("tabindex"),c=a.getAttribute("aria-hidden");a.tabIndex=-1,a.setAttribute("aria-hidden","true"),o5._lastResetElement=new D5(this._win,a),this.focus(a,!0,!0),this._setOrRemoveAttribute(a,"tabindex",l),this._setOrRemoveAttribute(a,"aria-hidden",c)}else this.focus(a);return!0}requestAsyncFocus(a,l,c){let h=this._tabster.getWindow(),Z=this._asyncFocus;if(Z){if(qa[a]>qa[Z.source])return;h.clearTimeout(Z.timeout)}this._asyncFocus={source:a,callback:l,timeout:h.setTimeout(()=>{this._asyncFocus=void 0,l()},c)}}cancelAsyncFocus(a){let l=this._asyncFocus;if((l===null||l===void 0?void 0:l.source)===a)this._tabster.getWindow().clearTimeout(l.timeout),this._asyncFocus=void 0}_setOrRemoveAttribute(a,l,c){if(c===null)a.removeAttribute(l);else a.setAttribute(l,c)}_setFocusedElement(a,l,c){var h,Z;if(this._tabster._noop)return;let v={relatedTarget:l};if(a){let r=(h=o5._lastResetElement)===null||h===void 0?void 0:h.get();if(o5._lastResetElement=void 0,r===a||a9(a))return;v.isFocusedProgrammatically=c;let M=c5.getTabsterContext(this._tabster,a),A=(Z=M===null||M===void 0?void 0:M.modalizer)===null||Z===void 0?void 0:Z.userId;if(A)v.modalizerId=A}let o=this._nextVal={element:a?new D5(this._win,a):void 0,detail:v};if(a&&a!==this._val)this._validateFocusedElement(a);if(this._nextVal===o)this.setVal(a,v);this._nextVal=void 0}setVal(a,l){if(super.setVal(a,l),a)this._lastVal=new D5(this._win,a)}static findNextTabbable(a,l,c,h,Z,v,o){let r=c||l.root.getElement();if(!r)return null;let M=null,A=o5._isTabbingTimer,H=a.getWindow();if(A)H.clearTimeout(A);o5.isTabbing=!0,o5._isTabbingTimer=H.setTimeout(()=>{delete o5._isTabbingTimer,o5.isTabbing=!1},0);let{modalizer:V,groupper:p,mover:m}=l,_=(F)=>{if(M=F.findNextTabbable(h,Z,v,o),h&&!(M===null||M===void 0?void 0:M.element)){let d=F!==V&&G.getParentElement(F.getElement());if(d){let x=c5.getTabsterContext(a,h,{referenceElement:d});if(x){let i=F.getElement(),L=v?i:i&&Z9(i)||i;if(L){if(M=o5.findNextTabbable(a,x,c,L,d,v,o),M)M.outOfDOMOrder=!0}}}}};if(p&&m)_(l.groupperBeforeMover?p:m);else if(p)_(p);else if(m)_(m);else if(V)_(V);else{let F={container:r,currentElement:h,referenceElement:Z,ignoreAccessibility:o,useActiveModalizer:!0},d={};M={element:a.focusable[v?"findPrev":"findNext"](F,d),outOfDOMOrder:d.outOfDOMOrder,uncontrolled:d.uncontrolled}}return M}}o5.isTabbing=!1;/*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*//*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*/class r9 extends V6{constructor(a){super();this._onChange=(l)=>{this.setVal(l,void 0)},this._keyborg=h4(a()),this._keyborg.subscribe(this._onChange)}dispose(){if(super.dispose(),this._keyborg)this._keyborg.unsubscribe(this._onChange),Z4(this._keyborg),delete this._keyborg}setNavigatingWithKeyboard(a){var l;(l=this._keyborg)===null||l===void 0||l.setVal(a)}isNavigatingWithKeyboard(){var a;return!!((a=this._keyborg)===null||a===void 0?void 0:a.isNavigatingWithKeyboard())}}/*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*/var eZ=0,E7="aria-hidden";function t7(a,l,c,h,Z,v){{let o=a.get();if(o)if(l)o.style.removeProperty("--tabster-modalizer");else o.style.setProperty("--tabster-modalizer",c+","+h+","+(Z?"active":"inactive")+",,"+(v?`focused(${v})`:"not-focused"))}}class M9 extends k0{constructor(a,l,c){super(l,a,A6.Modalizer,c);this._setHandlers((h,Z)=>{var v,o;let r=a.get(),M=r&&((v=c5.getRoot(l,r))===null||v===void 0?void 0:v.getElement()),A=h.input,H;if(M&&A){let V=p2(A),p=c5.getTabsterContext(l,V||A);if(p)H=(o=o5.findNextTabbable(l,p,M,A,void 0,Z,!0))===null||o===void 0?void 0:o.element;if(H)N5(H)}})}}class H9 extends _2{constructor(a,l,c,h,Z,v){super(a,l,h);if(this._wasFocused=0,this.userId=h.id,this._onDispose=c,this._activeElements=v,!a.controlTab)this.dummyManager=new M9(this._element,a,Z);t7(this._element,!1,this.id,this.userId,this._isActive,this._wasFocused)}makeActive(a){if(this._isActive!==a){this._isActive=a;let l=this.getElement();if(l){let c=this._activeElements,h=c.map((Z)=>Z.get()).indexOf(l);if(a){if(h<0)c.push(new D5(this._tabster.getWindow,l))}else if(h>=0)c.splice(h,1)}t7(this._element,!1,this.id,this.userId,this._isActive,this._wasFocused),this._dispatchEvent(a)}}focused(a){if(!a)this._wasFocused=++eZ;return this._wasFocused}setProps(a){if(a.id)this.userId=a.id;this._props={...a}}dispose(){var a;this.makeActive(!1),this._onDispose(this),(a=this.dummyManager)===null||a===void 0||a.dispose(),delete this.dummyManager,this._activeElements=[],this._remove()}isActive(){return!!this._isActive}contains(a){return G.nodeContains(this.getElement(),a)}findNextTabbable(a,l,c,h){var Z,v;if(!this.getElement())return null;let r=this._tabster,M=null,A=!1,H,V=a&&((Z=c5.getRoot(r,a))===null||Z===void 0?void 0:Z.getElement());if(V){let p={container:V,currentElement:a,referenceElement:l,ignoreAccessibility:h,useActiveModalizer:!0},m={};if(M=r.focusable[c?"findPrev":"findNext"](p,m),!M&&this._props.isTrapped&&((v=r.modalizer)===null||v===void 0?void 0:v.activeId)){if(M=r.focusable[c?"findLast":"findFirst"]({container:V,ignoreAccessibility:h,useActiveModalizer:!0},m),M===null)M=a;A=!0}else A=!!m.outOfDOMOrder;H=m.uncontrolled}return{element:M,uncontrolled:H,outOfDOMOrder:A}}_dispatchEvent(a,l){let c=this.getElement(),h=!1;if(c){let Z=l?this._activeElements.map((v)=>v.get()):[c];for(let v of Z)if(v){let o={id:this.userId,element:c},r=a?new za(o):new wa(o);if(v.dispatchEvent(r),r.defaultPrevented)h=!0}}return h}_remove(){t7(this._element,!0)}}class A9{constructor(a,l,c){if(this._onModalizerDispose=(Z)=>{let{id:v,userId:o}=Z,r=this._parts[o];if(delete this._modalizers[v],r){if(delete r[v],Object.keys(r).length===0){delete this._parts[o];let M=this._activationHistory,A=[],H;for(let V=M.length;V--;){let p=M[V];if(p===o)continue;if(p!==H){if(H=p,p||A.length>0)A.unshift(p)}}if(this._activationHistory=A,this.activeId===o){let V=A[0],p=V?Object.values(this._parts[V])[0]:void 0;this.setActive(p)}}}},this._onKeyDown=(Z)=>{var v;if(Z.key!==m5.Escape)return;let o=this._tabster,r=o.focusedElement.getFocusedElement();if(r){let M=c5.getTabsterContext(o,r),A=M===null||M===void 0?void 0:M.modalizer;if(M&&!M.groupper&&(A===null||A===void 0?void 0:A.isActive())&&!M.ignoreKeydown(Z)){let H=A.userId;if(H){let V=this._parts[H];if(V){let p=Object.keys(V).map((m)=>{var _;let F=V[m],d=F.getElement(),x;if(d)x=(_=C5(o,d))===null||_===void 0?void 0:_.groupper;return F&&d&&x?{el:d,focusedSince:F.focused(!0)}:{focusedSince:0}}).filter((m)=>m.focusedSince>0).sort((m,_)=>m.focusedSince>_.focusedSince?-1:m.focusedSince<_.focusedSince?1:0);if(p.length){let m=p[0].el;if(m)(v=o.groupper)===null||v===void 0||v.handleKeyPress(m,Z,!0)}}}}}},this._onFocus=(Z,v)=>{var o;let r=this._tabster,M=Z&&c5.getTabsterContext(r,Z);if(!M||!Z)return;let A=this._augMap;for(let m=Z;m;m=G.getParentElement(m))if(A.has(m))A.delete(m),N7(r,m,E7);let H=M.modalizer,V=C5(r,Z),p=V===null||V===void 0?void 0:V.modalizer;if(p){if(p.focused(),p.userId===this.activeId&&V.groupper){let m=r.getParent(Z),_=m&&((o=c5.getTabsterContext(r,m))===null||o===void 0?void 0:o.modalizer);if(_)H=_;else{this.setActive(void 0);return}}}if(H===null||H===void 0||H.focused(),(H===null||H===void 0?void 0:H.userId)===this.activeId){this.currentIsOthersAccessible=H===null||H===void 0?void 0:H.getProps().isOthersAccessible;return}if(v.isFocusedProgrammatically||this.currentIsOthersAccessible||(H===null||H===void 0?void 0:H.getProps().isAlwaysAccessible))this.setActive(H);else{let m=this._win();m.clearTimeout(this._restoreModalizerFocusTimer),this._restoreModalizerFocusTimer=m.setTimeout(()=>this._restoreModalizerFocus(Z),100)}},this._tabster=a,this._win=a.getWindow,this._modalizers={},this._parts={},this._augMap=new WeakMap,this._aug=[],this._alwaysAccessibleSelector=l,this._accessibleCheck=c,this._activationHistory=[],this.activeElements=[],!a.controlTab)a.root.addDummyInputs();this._win().addEventListener("keydown",this._onKeyDown,!0),a.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus)})}dispose(){let a=this._win();a.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._modalizers).forEach((l)=>{if(this._modalizers[l])this._modalizers[l].dispose(),delete this._modalizers[l]}),a.clearTimeout(this._restoreModalizerFocusTimer),a.clearTimeout(this._hiddenUpdateTimer),this._parts={},delete this.activeId,this.activeElements=[],this._augMap=new WeakMap,this._aug=[],this._tabster.focusedElement.unsubscribe(this._onFocus)}createModalizer(a,l,c){var h;let Z=new H9(this._tabster,a,this._onModalizerDispose,l,c,this.activeElements),v=Z.id,o=l.id;this._modalizers[v]=Z;let r=this._parts[o];if(!r)r=this._parts[o]={};r[v]=Z;let M=(h=this._tabster.focusedElement.getFocusedElement())!==null&&h!==void 0?h:null;if(a!==M&&G.nodeContains(a,M))if(o!==this.activeId)this.setActive(Z);else Z.makeActive(!0);return Z}isAugmented(a){return this._augMap.has(a)}hiddenUpdate(){if(this._hiddenUpdateTimer)return;this._hiddenUpdateTimer=this._win().setTimeout(()=>{delete this._hiddenUpdateTimer,this._hiddenUpdate()},250)}setActive(a){let l=a===null||a===void 0?void 0:a.userId,c=this.activeId;if(c===l)return;if(this.activeId=l,c){let Z=this._parts[c];if(Z)for(let v of Object.keys(Z))Z[v].makeActive(!1)}if(l){let Z=this._parts[l];if(Z)for(let v of Object.keys(Z))Z[v].makeActive(!0)}this.currentIsOthersAccessible=a===null||a===void 0?void 0:a.getProps().isOthersAccessible,this.hiddenUpdate();let h=this._activationHistory;if(h[0]!==l&&(l!==void 0||h.length>0))h.unshift(l)}focus(a,l,c){let h=this._tabster,Z=c5.getTabsterContext(h,a),v=Z===null||Z===void 0?void 0:Z.modalizer;if(v){this.setActive(v);let o=v.getProps(),r=v.getElement();if(r){if(l===void 0)l=o.isNoFocusFirst;if(!l&&h.keyboardNavigation.isNavigatingWithKeyboard()&&h.focusedElement.focusFirst({container:r}))return!0;if(c===void 0)c=o.isNoFocusDefault;if(!c&&h.focusedElement.focusDefault(r))return!0;h.focusedElement.resetFocus(r)}}else console.error("Element is not in Modalizer.",a);return!1}activate(a){var l;let c=a?(l=c5.getTabsterContext(this._tabster,a))===null||l===void 0?void 0:l.modalizer:void 0;if(!a||c)return this.setActive(c),!0;return!1}acceptElement(a,l){var c;let h=l.modalizerUserId,Z=(c=l.currentCtx)===null||c===void 0?void 0:c.modalizer;if(h)for(let o of this.activeElements){let r=o.get();if(r&&(G.nodeContains(a,r)||r===a))return NodeFilter.FILTER_SKIP}let v=h===(Z===null||Z===void 0?void 0:Z.userId)||!h&&(Z===null||Z===void 0?void 0:Z.getProps().isAlwaysAccessible)?void 0:NodeFilter.FILTER_SKIP;if(v!==void 0)l.skippedFocusable=!0;return v}_hiddenUpdate(){var a;let l=this._tabster,c=l.getWindow().document.body,h=this.activeId,Z=this._parts,v=[],o=[],r=this._alwaysAccessibleSelector,M=r?Array.from(G.querySelectorAll(c,r)):[],A=[];for(let d of Object.keys(Z)){let x=Z[d];for(let i of Object.keys(x)){let L=x[i],C=L.getElement(),f=L.getProps().isAlwaysAccessible;if(C)if(d===h){if(A.push(C),!this.currentIsOthersAccessible)v.push(C)}else if(f)M.push(C);else o.push(C)}}let H=this._augMap,V=v.length>0?[...v,...M]:void 0,p=[],m=new WeakMap,_=(d,x)=>{var i;let L=d.tagName;if(L==="SCRIPT"||L==="STYLE")return;let C=!1;if(H.has(d))if(x)C=!0;else H.delete(d),N7(l,d,E7);else if(x&&!((i=this._accessibleCheck)===null||i===void 0?void 0:i.call(this,d,A))&&N7(l,d,E7,"true"))H.set(d,!0),C=!0;if(C)p.push(new D5(l.getWindow,d)),m.set(d,!0)},F=(d)=>{var x;for(let i=G.getFirstElementChild(d);i;i=G.getNextElementSibling(i)){let L=!1,C=!1,u=!1;if(V){let f=l.getParent(i);for(let R of V){if(i===R){L=!0;break}if(G.nodeContains(i,R)){C=!0;break}else if(G.nodeContains(R,f))u=!0}if(C||((x=i.__tabsterElementFlags)===null||x===void 0?void 0:x.noDirectAriaHidden))F(i);else if(!L&&!u)_(i,!0)}else _(i,!1)}};if(!V)M.forEach((d)=>_(d,!1));if(o.forEach((d)=>_(d,!0)),c)F(c);(a=this._aug)===null||a===void 0||a.map((d)=>d.get()).forEach((d)=>{if(d&&!m.get(d))_(d,!1)}),this._aug=p,this._augMap=m}_restoreModalizerFocus(a){var l;let c=a===null||a===void 0?void 0:a.ownerDocument;if(!a||!c)return;let h=this._tabster.focusedElement.getFocusedElement(),Z=h&&((l=c5.getTabsterContext(this._tabster,h))===null||l===void 0?void 0:l.modalizer);if(!h||h&&(Z===null||Z===void 0?void 0:Z.userId)===this.activeId)return;let v=this._tabster,o=c5.getTabsterContext(v,a),r=o===null||o===void 0?void 0:o.modalizer,M=this.activeId;if(!r&&!M||r&&M===r.userId)return;let A=o===null||o===void 0?void 0:o.root.getElement();if(A){let H=v.focusable.findFirst({container:A,useActiveModalizer:!0});if(H){if(a.compareDocumentPosition(H)&document.DOCUMENT_POSITION_PRECEDING){if(H=v.focusable.findLast({container:A,useActiveModalizer:!0}),!H)throw Error("Something went wrong.")}v.focusedElement.focus(H);return}}a.blur()}}/*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*/var av=["input","textarea","*[contenteditable]"].join(", ");class V9 extends k0{constructor(a,l,c,h){super(l,a,A6.Mover,h);this._onFocusDummyInput=(Z)=>{var v,o;let r=this._element.get(),M=Z.input;if(r&&M){let A=c5.getTabsterContext(this._tabster,r),H;if(A)H=(v=o5.findNextTabbable(this._tabster,A,void 0,M,void 0,!Z.isFirst,!0))===null||v===void 0?void 0:v.element;let V=(o=this._getMemorized())===null||o===void 0?void 0:o.get();if(V&&this._tabster.focusable.isFocusable(V))H=V;if(H)N5(H)}},this._tabster=l,this._getMemorized=c,this._setHandlers(this._onFocusDummyInput)}}var s7=1,$a=2,Ka=3;class p9 extends _2{constructor(a,l,c,h,Z){var v;super(a,l,h);if(this._visible={},this._onIntersection=(r)=>{for(let M of r){let A=M.target,H=v4(this._win,A),V,p=this._fullyVisible;if(M.intersectionRatio>=0.25){if(V=M.intersectionRatio>=0.75?g1.Visible:g1.PartiallyVisible,V===g1.Visible)p=H}else V=g1.Invisible;if(this._visible[H]!==V){if(V===void 0){if(delete this._visible[H],p===H)delete this._fullyVisible}else this._visible[H]=V,this._fullyVisible=p;let m=this.getState(A);if(m)A.dispatchEvent(new c6(m))}}},this._win=a.getWindow,this.visibilityTolerance=(v=h.visibilityTolerance)!==null&&v!==void 0?v:0.8,this._props.trackState||this._props.visibilityAware)this._intersectionObserver=new IntersectionObserver(this._onIntersection,{threshold:[0,0.25,0.5,0.75,1]}),this._observeState();this._onDispose=c;let o=()=>h.memorizeCurrent?this._current:void 0;if(!a.controlTab)this.dummyManager=new V9(this._element,a,o,Z)}dispose(){var a;if(this._onDispose(this),this._intersectionObserver)this._intersectionObserver.disconnect(),delete this._intersectionObserver;if(delete this._current,delete this._fullyVisible,delete this._allElements,delete this._updateQueue,this._unobserve)this._unobserve(),delete this._unobserve;let l=this._win();if(this._setCurrentTimer)l.clearTimeout(this._setCurrentTimer),delete this._setCurrentTimer;if(this._updateTimer)l.clearTimeout(this._updateTimer),delete this._updateTimer;(a=this.dummyManager)===null||a===void 0||a.dispose(),delete this.dummyManager}setCurrent(a){if(a)this._current=new D5(this._win,a);else this._current=void 0;if((this._props.trackState||this._props.visibilityAware)&&!this._setCurrentTimer)this._setCurrentTimer=this._win().setTimeout(()=>{var l;delete this._setCurrentTimer;let c=[];if(this._current!==this._prevCurrent)c.push(this._current),c.push(this._prevCurrent),this._prevCurrent=this._current;for(let h of c){let Z=h===null||h===void 0?void 0:h.get();if(Z&&((l=this._allElements)===null||l===void 0?void 0:l.get(Z))===this){let v=this._props;if(Z&&(v.visibilityAware!==void 0||v.trackState)){let o=this.getState(Z);if(o)Z.dispatchEvent(new c6(o))}}}})}getCurrent(){var a;return((a=this._current)===null||a===void 0?void 0:a.get())||null}findNextTabbable(a,l,c,h){let Z=this.getElement(),v=Z&&p2(a)===Z;if(!Z)return null;let o=null,r=!1,M;if(this._props.tabbable||v||a&&!G.nodeContains(Z,a)){let A={currentElement:a,referenceElement:l,container:Z,ignoreAccessibility:h,useActiveModalizer:!0},H={};o=this._tabster.focusable[c?"findPrev":"findNext"](A,H),r=!!H.outOfDOMOrder,M=H.uncontrolled}return{element:o,uncontrolled:M,outOfDOMOrder:r}}acceptElement(a,l){var c,h;if(!o5.isTabbing)return((c=l.currentCtx)===null||c===void 0?void 0:c.excludedFromMover)?NodeFilter.FILTER_REJECT:void 0;let{memorizeCurrent:Z,visibilityAware:v,hasDefault:o=!0}=this._props,r=this.getElement();if(r&&(Z||v||o)&&(!G.nodeContains(r,l.from)||p2(l.from)===r)){let M;if(Z){let A=(h=this._current)===null||h===void 0?void 0:h.get();if(A&&l.acceptCondition(A))M=A}if(!M&&o)M=this._tabster.focusable.findDefault({container:r,useActiveModalizer:!0});if(!M&&v)M=this._tabster.focusable.findElement({container:r,useActiveModalizer:!0,isBackward:l.isBackward,acceptCondition:(A)=>{var H;let V=v4(this._win,A),p=this._visible[V];return r!==A&&!!((H=this._allElements)===null||H===void 0?void 0:H.get(A))&&l.acceptCondition(A)&&(p===g1.Visible||p===g1.PartiallyVisible&&(v===g1.PartiallyVisible||!this._fullyVisible))}});if(M)return l.found=!0,l.foundElement=M,l.rejectElementsFrom=r,l.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}return}_observeState(){let a=this.getElement();if(this._unobserve||!a||typeof MutationObserver>"u")return;let l=this._win(),c=this._allElements=new WeakMap,h=this._tabster.focusable,Z=this._updateQueue=[],v=G.createMutationObserver((p)=>{for(let m of p){let{target:_,removedNodes:F,addedNodes:d}=m;if(m.type==="attributes"){if(m.attributeName==="tabindex")Z.push({element:_,type:$a})}else{for(let x=0;x<F.length;x++)Z.push({element:F[x],type:Ka});for(let x=0;x<d.length;x++)Z.push({element:d[x],type:s7})}}H()}),o=(p,m)=>{var _,F;let d=c.get(p);if(d&&m)(_=this._intersectionObserver)===null||_===void 0||_.unobserve(p),c.delete(p);if(!d&&!m)c.set(p,this),(F=this._intersectionObserver)===null||F===void 0||F.observe(p)},r=(p)=>{let m=h.isFocusable(p);if(c.get(p)){if(!m)o(p,!0)}else if(m)o(p)},M=(p)=>{let{mover:m}=V(p);if(m&&m!==this)if(m.getElement()===p&&h.isFocusable(p))o(p);else return;let _=M6(l.document,p,(F)=>{let{mover:d,groupper:x}=V(F);if(d&&d!==this)return NodeFilter.FILTER_REJECT;let i=x===null||x===void 0?void 0:x.getFirst(!0);if(x&&x.getElement()!==F&&i&&i!==F)return NodeFilter.FILTER_REJECT;if(h.isFocusable(F))o(F);return NodeFilter.FILTER_SKIP});if(_){_.currentNode=p;while(_.nextNode());}},A=(p)=>{if(c.get(p))o(p,!0);for(let _=G.getFirstElementChild(p);_;_=G.getNextElementSibling(_))A(_)},H=()=>{if(!this._updateTimer&&Z.length)this._updateTimer=l.setTimeout(()=>{delete this._updateTimer;for(let{element:p,type:m}of Z)switch(m){case $a:r(p);break;case s7:M(p);break;case Ka:A(p);break}Z=this._updateQueue=[]},0)},V=(p)=>{let m={};for(let _=p;_;_=G.getParentElement(_)){let F=C5(this._tabster,_);if(F){if(F.groupper&&!m.groupper)m.groupper=F.groupper;if(F.mover){m.mover=F.mover;break}}}return m};Z.push({element:a,type:s7}),H(),v.observe(a,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),this._unobserve=()=>{v.disconnect()}}getState(a){let l=v4(this._win,a);if(l in this._visible){let c=this._visible[l]||g1.Invisible;return{isCurrent:this._current?this._current.get()===a:void 0,visibility:c}}return}}function lv(a,l,c,h,Z,v,o,r){let M=c<Z?Z-c:o<a?a-o:0,A=h<v?v-h:r<l?l-r:0;return M===0?A:A===0?M:Math.sqrt(M*M+A*A)}class m9{constructor(a,l){this._init=()=>{let c=this._win();c.addEventListener("keydown",this._onKeyDown,!0),c.addEventListener(e7,this._onMoveFocus),c.addEventListener(a6,this._onMemorizedElement),this._tabster.focusedElement.subscribe(this._onFocus)},this._onMoverDispose=(c)=>{delete this._movers[c.id]},this._onFocus=(c)=>{var h;let Z=c,v=c;for(let o=G.getParentElement(c);o;o=G.getParentElement(o)){let r=(h=C5(this._tabster,o))===null||h===void 0?void 0:h.mover;if(r)r.setCurrent(v),Z=void 0;if(!Z&&this._tabster.focusable.isFocusable(o))Z=v=o}},this._onKeyDown=async(c)=>{var h;if(this._ignoredInputTimer)this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer;if((h=this._ignoredInputResolve)===null||h===void 0||h.call(this,!1),c.ctrlKey||c.altKey||c.shiftKey||c.metaKey)return;let Z=c.key,v;if(Z===m5.ArrowDown)v=Z5.ArrowDown;else if(Z===m5.ArrowRight)v=Z5.ArrowRight;else if(Z===m5.ArrowUp)v=Z5.ArrowUp;else if(Z===m5.ArrowLeft)v=Z5.ArrowLeft;else if(Z===m5.PageDown)v=Z5.PageDown;else if(Z===m5.PageUp)v=Z5.PageUp;else if(Z===m5.Home)v=Z5.Home;else if(Z===m5.End)v=Z5.End;if(!v)return;let o=this._tabster.focusedElement.getFocusedElement();if(!o||await this._isIgnoredInput(o,Z))return;this._moveFocus(o,v,c)},this._onMoveFocus=(c)=>{var h;let Z=c.composedPath()[0],v=(h=c.detail)===null||h===void 0?void 0:h.key;if(Z&&v!==void 0&&!c.defaultPrevented)this._moveFocus(Z,v),c.stopImmediatePropagation()},this._onMemorizedElement=(c)=>{var h;let Z=c.composedPath()[0],v=(h=c.detail)===null||h===void 0?void 0:h.memorizedElement;if(Z){let o=c5.getTabsterContext(this._tabster,Z),r=o===null||o===void 0?void 0:o.mover;if(r){if(v&&!G.nodeContains(r.getElement(),v))v=void 0;r.setCurrent(v),c.stopImmediatePropagation()}}},this._tabster=a,this._win=l,this._movers={},a.queueInit(this._init)}dispose(){var a;let l=this._win();if(this._tabster.focusedElement.unsubscribe(this._onFocus),(a=this._ignoredInputResolve)===null||a===void 0||a.call(this,!1),this._ignoredInputTimer)l.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer;l.removeEventListener("keydown",this._onKeyDown,!0),l.removeEventListener(e7,this._onMoveFocus),l.removeEventListener(a6,this._onMemorizedElement),Object.keys(this._movers).forEach((c)=>{if(this._movers[c])this._movers[c].dispose(),delete this._movers[c]})}createMover(a,l,c){let h=new p9(this._tabster,a,this._onMoverDispose,l,c);return this._movers[h.id]=h,h}moveFocus(a,l){return this._moveFocus(a,l)}_moveFocus(a,l,c){var h,Z;let v=this._tabster,o=c5.getTabsterContext(v,a,{checkRtl:!0});if(!o||!o.mover||o.excludedFromMover||c&&o.ignoreKeydown(c))return null;let r=o.mover,M=r.getElement();if(o.groupperBeforeMover){let R=o.groupper;if(R&&!R.isActive(!0)){for(let B=G.getParentElement(R.getElement());B&&B!==M;B=G.getParentElement(B))if((Z=(h=C5(v,B))===null||h===void 0?void 0:h.groupper)===null||Z===void 0?void 0:Z.isActive(!0))return null}else return null}if(!M)return null;let A=v.focusable,H=r.getProps(),V=H.direction||k5.Both,p=V===k5.Both,m=p||V===k5.Vertical,_=p||V===k5.Horizontal,F=V===k5.GridLinear,d=F||V===k5.Grid,x=H.cyclic,i,L,C,u=0,f=0;if(d)C=a.getBoundingClientRect(),u=Math.ceil(C.left),f=Math.floor(C.right);if(o.rtl){if(l===Z5.ArrowRight)l=Z5.ArrowLeft;else if(l===Z5.ArrowLeft)l=Z5.ArrowRight}if(l===Z5.ArrowDown&&m||l===Z5.ArrowRight&&(_||d)){if(i=A.findNext({currentElement:a,container:M,useActiveModalizer:!0}),i&&d){let R=Math.ceil(i.getBoundingClientRect().left);if(!F&&f>R)i=void 0}else if(!i&&x)i=A.findFirst({container:M,useActiveModalizer:!0})}else if(l===Z5.ArrowUp&&m||l===Z5.ArrowLeft&&(_||d)){if(i=A.findPrev({currentElement:a,container:M,useActiveModalizer:!0}),i&&d){let R=Math.floor(i.getBoundingClientRect().right);if(!F&&R>u)i=void 0}else if(!i&&x)i=A.findLast({container:M,useActiveModalizer:!0})}else if(l===Z5.Home)if(d)A.findElement({container:M,currentElement:a,useActiveModalizer:!0,isBackward:!0,acceptCondition:(R)=>{var B;if(!A.isFocusable(R))return!1;let U=Math.ceil((B=R.getBoundingClientRect().left)!==null&&B!==void 0?B:0);if(R!==a&&u<=U)return!0;return i=R,!1}});else i=A.findFirst({container:M,useActiveModalizer:!0});else if(l===Z5.End)if(d)A.findElement({container:M,currentElement:a,useActiveModalizer:!0,acceptCondition:(R)=>{var B;if(!A.isFocusable(R))return!1;let U=Math.ceil((B=R.getBoundingClientRect().left)!==null&&B!==void 0?B:0);if(R!==a&&u>=U)return!0;return i=R,!1}});else i=A.findLast({container:M,useActiveModalizer:!0});else if(l===Z5.PageUp){if(A.findElement({currentElement:a,container:M,useActiveModalizer:!0,isBackward:!0,acceptCondition:(R)=>{if(!A.isFocusable(R))return!1;if(Ja(this._win,R,r.visibilityTolerance))return i=R,!1;return!0}}),d&&i){let R=Math.ceil(i.getBoundingClientRect().left);A.findElement({currentElement:i,container:M,useActiveModalizer:!0,acceptCondition:(B)=>{if(!A.isFocusable(B))return!1;let U=Math.ceil(B.getBoundingClientRect().left);if(u<U||R>=U)return!0;return i=B,!1}})}L=!1}else if(l===Z5.PageDown){if(A.findElement({currentElement:a,container:M,useActiveModalizer:!0,acceptCondition:(R)=>{if(!A.isFocusable(R))return!1;if(Ja(this._win,R,r.visibilityTolerance))return i=R,!1;return!0}}),d&&i){let R=Math.ceil(i.getBoundingClientRect().left);A.findElement({currentElement:i,container:M,useActiveModalizer:!0,isBackward:!0,acceptCondition:(B)=>{if(!A.isFocusable(B))return!1;let U=Math.ceil(B.getBoundingClientRect().left);if(u>U||R<=U)return!0;return i=B,!1}})}L=!0}else if(d){let R=l===Z5.ArrowUp,B=u,U=Math.ceil(C.top),O=f,W=Math.floor(C.bottom),S,k,g=0;A.findAll({container:M,currentElement:a,isBackward:R,onElement:(j)=>{let z=j.getBoundingClientRect(),D=Math.ceil(z.left),J=Math.ceil(z.top),y=Math.floor(z.right),_5=Math.floor(z.bottom);if(R&&U<_5||!R&&W>J)return!0;let p5=Math.ceil(Math.min(O,y))-Math.floor(Math.max(B,D)),F5=Math.ceil(Math.min(O-B,y-D));if(p5>0&&F5>=p5){let r5=p5/F5;if(r5>g)S=j,g=r5}else if(g===0){let r5=lv(B,U,O,W,D,J,y,_5);if(k===void 0||r5<k)k=r5,S=j}else if(g>0)return!1;return!0}}),i=S}if(i&&(!c||c&&M.dispatchEvent(new B1({by:"mover",owner:M,next:i,relatedEvent:c})))){if(L!==void 0)WZ(this._win,i,L);if(c)c.preventDefault(),c.stopImmediatePropagation();return N5(i),i}return null}async _isIgnoredInput(a,l){if(a.getAttribute("aria-expanded")==="true"&&a.hasAttribute("aria-activedescendant"))return!0;if(l9(a,av)){let c=0,h=0,Z=0,v;if(a.tagName==="INPUT"||a.tagName==="TEXTAREA"){let o=a.type;if(Z=(a.value||"").length,o==="email"||o==="number"){if(Z){let M=G.getSelection(a);if(M){let A=M.toString().length,H=l===m5.ArrowLeft||l===m5.ArrowUp;if(M.modify("extend",H?"backward":"forward","character"),A!==M.toString().length)return M.modify("extend",H?"forward":"backward","character"),!0;else Z=0}}}else{let M=a.selectionStart;if(M===null)return o==="hidden";c=M||0,h=a.selectionEnd||0}}else if(a.contentEditable==="true")v=new(jZ(this._win))((o)=>{this._ignoredInputResolve=(p)=>{delete this._ignoredInputResolve,o(p)};let r=this._win();if(this._ignoredInputTimer)r.clearTimeout(this._ignoredInputTimer);let{anchorNode:M,focusNode:A,anchorOffset:H,focusOffset:V}=G.getSelection(a)||{};this._ignoredInputTimer=r.setTimeout(()=>{var p,m,_;delete this._ignoredInputTimer;let{anchorNode:F,focusNode:d,anchorOffset:x,focusOffset:i}=G.getSelection(a)||{};if(F!==M||d!==A||x!==H||i!==V){(p=this._ignoredInputResolve)===null||p===void 0||p.call(this,!1);return}if(c=x||0,h=i||0,Z=((m=a.textContent)===null||m===void 0?void 0:m.length)||0,F&&d){if(G.nodeContains(a,F)&&G.nodeContains(a,d)){if(F!==a){let L=!1,C=(u)=>{if(u===F)L=!0;else if(u===d)return!0;let f=u.textContent;if(f&&!G.getFirstChild(u)){let B=f.length;if(L){if(d!==F)h+=B}else c+=B,h+=B}let R=!1;for(let B=G.getFirstChild(u);B&&!R;B=B.nextSibling)R=C(B);return R};C(a)}}}(_=this._ignoredInputResolve)===null||_===void 0||_.call(this,!0)},0)});if(v&&!await v)return!0;if(c!==h)return!0;if(c>0&&(l===m5.ArrowLeft||l===m5.ArrowUp||l===m5.Home))return!0;if(c<Z&&(l===m5.ArrowRight||l===m5.ArrowDown||l===m5.End))return!0}return!1}}/*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*/function cv(a,l,c,h){if(typeof MutationObserver>"u")return()=>{};let Z=l.getWindow,v,o=(H)=>{var V,p,m,_,F;let d=new Set;for(let x of H){let{target:i,removedNodes:L,addedNodes:C}=x;if(x.type==="attributes"){if(x.attributeName===E5){if(!d.has(i))c(l,i)}}else{for(let u=0;u<L.length;u++){let f=L[u];d.add(f),r(f,!0),(p=(V=l._dummyObserver).domChanged)===null||p===void 0||p.call(V,i)}for(let u=0;u<C.length;u++)r(C[u]),(_=(m=l._dummyObserver).domChanged)===null||_===void 0||_.call(m,i)}}d.clear(),(F=l.modalizer)===null||F===void 0||F.hiddenUpdate()};function r(H,V){if(!v)v=A1(Z).elementByUId;M(H,V);let p=M6(a,H,(m)=>{return M(m,V)});if(p)while(p.nextNode());}function M(H,V){var p;if(!H.getAttribute)return NodeFilter.FILTER_SKIP;let m=H.__tabsterElementUID;if(m&&v)if(V)delete v[m];else(p=v[m])!==null&&p!==void 0||(v[m]=new D5(Z,H));if(C5(l,H)||H.hasAttribute(E5))c(l,H,V);return NodeFilter.FILTER_SKIP}let A=G.createMutationObserver(o);if(h)r(Z().document.body);return A.observe(a,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[E5]}),()=>{A.disconnect()}}/*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*//*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*//*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*/class _9{constructor(a){this._isUncontrolledCompletely=a}isUncontrolledCompletely(a,l){var c;let h=(c=this._isUncontrolledCompletely)===null||c===void 0?void 0:c.call(this,a,l);return h===void 0?l:h}}/*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*/class F9 extends _2{constructor(a,l,c){var h;super(a,l,c);if(this._hasFocus=!1,this._onFocusOut=(Z)=>{var v;let o=(v=this._element)===null||v===void 0?void 0:v.get();if(o&&Z.relatedTarget===null)o.dispatchEvent(new h6);if(o&&!G.nodeContains(o,Z.relatedTarget))this._hasFocus=!1},this._onFocusIn=()=>{this._hasFocus=!0},this._props.type===H1.Source){let Z=(h=this._element)===null||h===void 0?void 0:h.get();Z===null||Z===void 0||Z.addEventListener("focusout",this._onFocusOut),Z===null||Z===void 0||Z.addEventListener("focusin",this._onFocusIn),this._hasFocus=G.nodeContains(Z,Z&&G.getActiveElement(Z.ownerDocument))}}dispose(){var a;if(this._props.type===H1.Source){let l=(a=this._element)===null||a===void 0?void 0:a.get();if(l===null||l===void 0||l.removeEventListener("focusout",this._onFocusOut),l===null||l===void 0||l.removeEventListener("focusin",this._onFocusIn),this._hasFocus)this._tabster.getWindow().document.body.dispatchEvent(new h6)}}}class o4{constructor(a){this._stack=[],this._getWindow=a}push(a){var l;if(((l=this._stack[this._stack.length-1])===null||l===void 0?void 0:l.get())===a)return;if(this._stack.length>o4.DEPTH)this._stack.shift();this._stack.push(new D5(this._getWindow,a))}pop(a){if(a===void 0)a=()=>!0;var l;let c=this._getWindow().document;for(let h=this._stack.length-1;h>=0;h--){let Z=(l=this._stack.pop())===null||l===void 0?void 0:l.get();if(Z&&G.nodeContains(c.body,G.getParentElement(Z))&&a(Z))return Z}return}}o4.DEPTH=10;class d9{constructor(a){this._onRestoreFocus=(l)=>{var c,h;this._focusedElementState.cancelAsyncFocus(S0.Restorer);let Z=l.composedPath()[0];if(Z){let v=(h=(c=C5(this._tabster,Z))===null||c===void 0?void 0:c.restorer)===null||h===void 0?void 0:h.getProps().id;this._focusedElementState.requestAsyncFocus(S0.Restorer,()=>this._restoreFocus(Z,v),0)}},this._onFocusIn=(l)=>{var c;if(!l)return;let h=C5(this._tabster,l);if(((c=h===null||h===void 0?void 0:h.restorer)===null||c===void 0?void 0:c.getProps().type)!==H1.Target)return;this._history.push(l)},this._restoreFocus=(l,c)=>{var h;let Z=this._getWindow().document;if(G.getActiveElement(Z)!==Z.body)return;if(!this._keyboardNavState.isNavigatingWithKeyboard()&&G.nodeContains(Z.body,l))return;let v=(o)=>{var r,M;let A=(M=(r=C5(this._tabster,o))===null||r===void 0?void 0:r.restorer)===null||M===void 0?void 0:M.getProps();return A?A.id:null};(h=this._history.pop((o)=>c===v(o)))===null||h===void 0||h.focus()},this._tabster=a,this._getWindow=a.getWindow,this._getWindow().addEventListener(l6,this._onRestoreFocus),this._history=new o4(this._getWindow),this._keyboardNavState=a.keyboardNavigation,this._focusedElementState=a.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}dispose(){let a=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),this._focusedElementState.cancelAsyncFocus(S0.Restorer),a.removeEventListener(l6,this._onRestoreFocus)}createRestorer(a,l){let c=new F9(this._tabster,a,l);if(l.type===H1.Target&&G.getActiveElement(a.ownerDocument)===a)this._history.push(a);return c}}/*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*/function hv(a,l){var c,h;if(!a||!l)return!1;let Z=l;while(Z){if(Z===a)return!0;if(typeof Z.assignedElements!=="function"&&((c=Z.assignedSlot)===null||c===void 0?void 0:c.parentNode))Z=(h=Z.assignedSlot)===null||h===void 0?void 0:h.parentNode;else if(Z.nodeType===document.DOCUMENT_FRAGMENT_NODE)Z=Z.host;else Z=Z.parentNode}return!1}/*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*//*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*/class T0{static _overrideAttachShadow(a){let l=a.Element.prototype.attachShadow;if(l.__origAttachShadow)return;Element.prototype.attachShadow=function(c){let h=l.call(this,c);for(let Z of T0._shadowObservers)Z._addSubObserver(h);return h},Element.prototype.attachShadow.__origAttachShadow=l}constructor(a){this._isObserving=!1,this._callbackWrapper=(l,c)=>{for(let h of l)if(h.type==="childList"){let{removedNodes:Z,addedNodes:v}=h;for(let o=0;o<Z.length;o++)this._walkShadows(Z[o],!0);for(let o=0;o<v.length;o++)this._walkShadows(v[o])}this._callback(l,c)},this._callback=a,this._observer=new MutationObserver(this._callbackWrapper),this._subObservers=new Map}_addSubObserver(a){if(!this._options||!this._callback||this._subObservers.has(a))return;if(this._options.subtree&&hv(this._root,a)){let l=new MutationObserver(this._callbackWrapper);if(this._subObservers.set(a,l),this._isObserving)l.observe(a,this._options);this._walkShadows(a)}}disconnect(){this._isObserving=!1,delete this._options,T0._shadowObservers.delete(this);for(let a of this._subObservers.values())a.disconnect();this._subObservers.clear(),this._observer.disconnect()}observe(a,l){let c=a.nodeType===Node.DOCUMENT_NODE?a:a.ownerDocument,h=c===null||c===void 0?void 0:c.defaultView;if(!c||!h)return;T0._overrideAttachShadow(h),T0._shadowObservers.add(this),this._root=a,this._options=l,this._isObserving=!0,this._observer.observe(a,l),this._walkShadows(a)}_walkShadows(a,l){let c=a.nodeType===Node.DOCUMENT_NODE?a:a.ownerDocument;if(!c)return;if(a===c)a=c.body;else{let Z=a.shadowRoot;if(Z){this._addSubObserver(Z);return}}c.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:(Z)=>{if(Z.nodeType===Node.ELEMENT_NODE)if(l){let v=this._subObservers.get(Z);if(v)v.disconnect(),this._subObservers.delete(Z)}else{let v=Z.shadowRoot;if(v)this._addSubObserver(v)}return NodeFilter.FILTER_SKIP}}).nextNode()}takeRecords(){let a=this._observer.takeRecords();for(let l of this._subObservers.values())a.push(...l.takeRecords());return a}}T0._shadowObservers=new Set;/*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*//*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*//*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*/class i9{constructor(a){this.keyboardNavigation=a.keyboardNavigation,this.focusedElement=a.focusedElement,this.focusable=a.focusable,this.root=a.root,this.uncontrolled=a.uncontrolled,this.core=a}}class x9{constructor(a,l){var c,h;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="8.5.6",this._noop=!1,this.getWindow=()=>{if(!this._win)throw Error("Using disposed Tabster.");return this._win},this._storage=$Z(a),this._win=a;let Z=this.getWindow;if(l===null||l===void 0?void 0:l.DOMAPI)YZ({...l.DOMAPI});this.keyboardNavigation=new r9(Z),this.focusedElement=new o5(this,Z),this.focusable=new o9(this),this.root=new c5(this,l===null||l===void 0?void 0:l.autoRoot),this.uncontrolled=new _9((l===null||l===void 0?void 0:l.checkUncontrolledCompletely)||(l===null||l===void 0?void 0:l.checkUncontrolledTrappingFocus)),this.controlTab=(c=l===null||l===void 0?void 0:l.controlTab)!==null&&c!==void 0?c:!0,this.rootDummyInputs=!!(l===null||l===void 0?void 0:l.rootDummyInputs),this._dummyObserver=new c9(Z),this.getParent=(h=l===null||l===void 0?void 0:l.getParent)!==null&&h!==void 0?h:G.getParentNode,this.internal={stopObserver:()=>{if(this._unobserve)this._unobserve(),delete this._unobserve},resumeObserver:(v)=>{if(!this._unobserve){let o=Z().document;this._unobserve=cv(o,this,na,v)}}},ta(Z),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(a){var l;if(!a)return;this.getParent=(l=a.getParent)!==null&&l!==void 0?l:this.getParent}createTabster(a,l){let c=new i9(this);if(!a)this._wrappers.add(c);return this._mergeProps(l),c}disposeTabster(a,l){if(l)this._wrappers.clear();else this._wrappers.delete(a);if(this._wrappers.size===0)this.dispose()}dispose(){var a,l,c,h,Z,v,o,r;this.internal.stopObserver();let M=this._win;if(M===null||M===void 0||M.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],M&&this._forgetMemorizedTimer)M.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer;if((a=this.outline)===null||a===void 0||a.dispose(),(l=this.crossOrigin)===null||l===void 0||l.dispose(),(c=this.deloser)===null||c===void 0||c.dispose(),(h=this.groupper)===null||h===void 0||h.dispose(),(Z=this.mover)===null||Z===void 0||Z.dispose(),(v=this.modalizer)===null||v===void 0||v.dispose(),(o=this.observedElement)===null||o===void 0||o.dispose(),(r=this.restorer)===null||r===void 0||r.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),IZ(this.getWindow),Ya(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),M)qZ(M),delete M.__tabsterInstance,delete this._win}storageEntry(a,l){let c=this._storage,h=c.get(a);if(h){if(l===!1&&Object.keys(h).length===0)c.delete(a)}else if(l===!0)h={},c.set(a,h);return h}forceCleanup(){if(!this._win)return;if(this._forgetMemorizedElements.push(this._win.document.body),this._forgetMemorizedTimer)return;this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let a=this._forgetMemorizedElements.shift();a;a=this._forgetMemorizedElements.shift())Ya(this.getWindow,a),o5.forgetMemorized(this.focusedElement,a)},0),Ea(this.getWindow,!0)}queueInit(a){var l;if(!this._win)return;if(this._initQueue.push(a),!this._initTimer)this._initTimer=(l=this._win)===null||l===void 0?void 0:l.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)}drainInitQueue(){if(!this._win)return;let a=this._initQueue;this._initQueue=[],a.forEach((l)=>l())}}function L9(a,l){let c=Zv(a);if(c)return c.createTabster(!1,l);return c=new x9(a,l),a.__tabsterInstance=c,c.createTabster()}function C9(a){let l=a.core;if(!l.mover)l.mover=new m9(l,l.getWindow);return l.mover}function f9(a,l,c){let h=a.core;if(!h.modalizer)h.modalizer=new A9(h,l,c);return h.modalizer}function r4(a){let l=a.core;if(!l.restorer)l.restorer=new d9(l);return l.restorer}function R9(a,l){a.core.disposeTabster(a,l)}function Zv(a){return a.__tabsterInstance}/*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*//*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*//*!
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*/import*as u9 from"react";var vv=(a)=>{return a};function ov(a){let l=(a===null||a===void 0?void 0:a.defaultView)||void 0,c=l===null||l===void 0?void 0:l.__tabsterShadowDOMAPI;if(l)return L9(l,{autoRoot:{},controlTab:!1,getParent:D0,checkUncontrolledCompletely:(h)=>{var Z;return((Z=h.firstElementChild)===null||Z===void 0?void 0:Z.hasAttribute("data-is-focus-trap-zone-bumper"))===!0||void 0},DOMAPI:c})}function s5(a=vv){let{targetDocument:l}=n(),c=u9.useRef(null);s(()=>{let h=ov(l);if(h)return c.current=a(h),()=>{R9(h),c.current=null}},[l,a]);{let h=e3(a);if(h!==null&&h!==a)throw Error(["@fluentui/react-tabster: ","The factory function passed to useTabster has changed. This should not ever happen."].join(`
|
|
`))}return c}import*as g9 from"react";var O0=(a)=>{s5();let l=F2(a,!0);return g9.useMemo(()=>({[E5]:l}),[l])};var M4=(a={})=>{let{circular:l,axis:c,memorizeCurrent:h=!0,tabbable:Z,ignoreDefaultKeydown:v,unstable_hasDefault:o}=a;return s5(C9),O0({mover:{cyclic:!!l,direction:rv(c!==null&&c!==void 0?c:"vertical"),memorizeCurrent:h,tabbable:Z,hasDefault:o},...v&&{focusable:{ignoreKeydown:v}}})};function rv(a){switch(a){case"horizontal":return k5.Horizontal;case"grid":return k5.Grid;case"grid-linear":return k5.GridLinear;case"both":return k5.Both;case"vertical":default:return k5.Vertical}}import*as Q0 from"react";var e5=()=>{let a=s5(),{targetDocument:l}=n(),c=Q0.useCallback((r,M)=>{var A;return r&&((A=a.current)===null||A===void 0?void 0:A.focusable.findAll({container:r,acceptCondition:M}))||[]},[a]),h=Q0.useCallback((r)=>{var M;return r&&((M=a.current)===null||M===void 0?void 0:M.focusable.findFirst({container:r}))},[a]),Z=Q0.useCallback((r)=>{var M;return r&&((M=a.current)===null||M===void 0?void 0:M.focusable.findLast({container:r}))},[a]),v=Q0.useCallback((r,M={})=>{if(!a.current||!l||!r)return null;let{container:A=l.body}=M;return a.current.focusable.findNext({currentElement:r,container:A})},[a,l]),o=Q0.useCallback((r,M={})=>{if(!a.current||!l||!r)return null;let{container:A=l.body}=M;return a.current.focusable.findPrev({currentElement:r,container:A})},[a,l]);return{findAllFocusable:c,findFirstFocusable:h,findLastFocusable:Z,findNextFocusable:v,findPrevFocusable:o}};import*as H4 from"react";var p6="data-fui-focus-visible";function G9(a,l){if(B9(a))return()=>{return};let c={current:void 0},h=h4(l);function Z(M){if(h.isNavigatingWithKeyboard()&&d5(M))c.current=M,M.setAttribute(p6,"")}function v(){if(c.current)c.current.removeAttribute(p6),c.current=void 0}h.subscribe((M)=>{if(!M)v();else Z(l.document.activeElement)});let o=(M)=>{v();let A=M.composedPath()[0];Z(A)},r=(M)=>{if(!M.relatedTarget||d5(M.relatedTarget)&&!a.contains(M.relatedTarget))v()};if(a.addEventListener(K5,o),a.addEventListener("focusout",r),a.focusVisible=!0,a.contains(l.document.activeElement))Z(l.document.activeElement);return()=>{v(),a.removeEventListener(K5,o),a.removeEventListener("focusout",r),a.focusVisible=void 0,Z4(h)}}function B9(a){if(!a)return!1;if(a.focusVisible)return!0;return B9(a===null||a===void 0?void 0:a.parentElement)}function A4(a={}){let l=n(),c=H4.useRef(null);var h;let Z=(h=a.targetDocument)!==null&&h!==void 0?h:l.targetDocument;return H4.useEffect(()=>{if((Z===null||Z===void 0?void 0:Z.defaultView)&&c.current)return G9(c.current,Z.defaultView)},[c,Z]),c}var U9="data-tabster-never-hide",Tm={[U9]:""};var Mv=(a)=>{return a.hasAttribute(U9)};function Hv(a){f9(a,void 0,Mv),r4(a)}var J0=(a={})=>{let{trapFocus:l,alwaysFocusable:c,legacyTrapFocus:h}=a;s5(Hv);let Z=S5("modal-",a.id),v=O0({restorer:{type:H1.Source},...l&&{modalizer:{id:Z,isOthersAccessible:!l,isAlwaysAccessible:c,isTrapped:h&&l}}}),o=O0({restorer:{type:H1.Target}});return{modalAttributes:v,triggerAttributes:o}};function V4(){return s5(r4),F2({restorer:{type:H1.Source}})}var f5={colorNeutralForeground1:"var(--colorNeutralForeground1)",colorNeutralForeground1Hover:"var(--colorNeutralForeground1Hover)",colorNeutralForeground1Pressed:"var(--colorNeutralForeground1Pressed)",colorNeutralForeground1Selected:"var(--colorNeutralForeground1Selected)",colorNeutralForeground2:"var(--colorNeutralForeground2)",colorNeutralForeground2Hover:"var(--colorNeutralForeground2Hover)",colorNeutralForeground2Pressed:"var(--colorNeutralForeground2Pressed)",colorNeutralForeground2Selected:"var(--colorNeutralForeground2Selected)",colorNeutralForeground2BrandHover:"var(--colorNeutralForeground2BrandHover)",colorNeutralForeground2BrandPressed:"var(--colorNeutralForeground2BrandPressed)",colorNeutralForeground2BrandSelected:"var(--colorNeutralForeground2BrandSelected)",colorNeutralForeground3:"var(--colorNeutralForeground3)",colorNeutralForeground3Hover:"var(--colorNeutralForeground3Hover)",colorNeutralForeground3Pressed:"var(--colorNeutralForeground3Pressed)",colorNeutralForeground3Selected:"var(--colorNeutralForeground3Selected)",colorNeutralForeground3BrandHover:"var(--colorNeutralForeground3BrandHover)",colorNeutralForeground3BrandPressed:"var(--colorNeutralForeground3BrandPressed)",colorNeutralForeground3BrandSelected:"var(--colorNeutralForeground3BrandSelected)",colorNeutralForeground4:"var(--colorNeutralForeground4)",colorNeutralForegroundDisabled:"var(--colorNeutralForegroundDisabled)",colorBrandForegroundLink:"var(--colorBrandForegroundLink)",colorBrandForegroundLinkHover:"var(--colorBrandForegroundLinkHover)",colorBrandForegroundLinkPressed:"var(--colorBrandForegroundLinkPressed)",colorBrandForegroundLinkSelected:"var(--colorBrandForegroundLinkSelected)",colorNeutralForeground2Link:"var(--colorNeutralForeground2Link)",colorNeutralForeground2LinkHover:"var(--colorNeutralForeground2LinkHover)",colorNeutralForeground2LinkPressed:"var(--colorNeutralForeground2LinkPressed)",colorNeutralForeground2LinkSelected:"var(--colorNeutralForeground2LinkSelected)",colorCompoundBrandForeground1:"var(--colorCompoundBrandForeground1)",colorCompoundBrandForeground1Hover:"var(--colorCompoundBrandForeground1Hover)",colorCompoundBrandForeground1Pressed:"var(--colorCompoundBrandForeground1Pressed)",colorNeutralForegroundOnBrand:"var(--colorNeutralForegroundOnBrand)",colorNeutralForegroundInverted:"var(--colorNeutralForegroundInverted)",colorNeutralForegroundInvertedHover:"var(--colorNeutralForegroundInvertedHover)",colorNeutralForegroundInvertedPressed:"var(--colorNeutralForegroundInvertedPressed)",colorNeutralForegroundInvertedSelected:"var(--colorNeutralForegroundInvertedSelected)",colorNeutralForegroundInverted2:"var(--colorNeutralForegroundInverted2)",colorNeutralForegroundStaticInverted:"var(--colorNeutralForegroundStaticInverted)",colorNeutralForegroundInvertedLink:"var(--colorNeutralForegroundInvertedLink)",colorNeutralForegroundInvertedLinkHover:"var(--colorNeutralForegroundInvertedLinkHover)",colorNeutralForegroundInvertedLinkPressed:"var(--colorNeutralForegroundInvertedLinkPressed)",colorNeutralForegroundInvertedLinkSelected:"var(--colorNeutralForegroundInvertedLinkSelected)",colorNeutralForegroundInvertedDisabled:"var(--colorNeutralForegroundInvertedDisabled)",colorBrandForeground1:"var(--colorBrandForeground1)",colorBrandForeground2:"var(--colorBrandForeground2)",colorBrandForeground2Hover:"var(--colorBrandForeground2Hover)",colorBrandForeground2Pressed:"var(--colorBrandForeground2Pressed)",colorNeutralForeground1Static:"var(--colorNeutralForeground1Static)",colorBrandForegroundInverted:"var(--colorBrandForegroundInverted)",colorBrandForegroundInvertedHover:"var(--colorBrandForegroundInvertedHover)",colorBrandForegroundInvertedPressed:"var(--colorBrandForegroundInvertedPressed)",colorBrandForegroundOnLight:"var(--colorBrandForegroundOnLight)",colorBrandForegroundOnLightHover:"var(--colorBrandForegroundOnLightHover)",colorBrandForegroundOnLightPressed:"var(--colorBrandForegroundOnLightPressed)",colorBrandForegroundOnLightSelected:"var(--colorBrandForegroundOnLightSelected)",colorNeutralBackground1:"var(--colorNeutralBackground1)",colorNeutralBackground1Hover:"var(--colorNeutralBackground1Hover)",colorNeutralBackground1Pressed:"var(--colorNeutralBackground1Pressed)",colorNeutralBackground1Selected:"var(--colorNeutralBackground1Selected)",colorNeutralBackground2:"var(--colorNeutralBackground2)",colorNeutralBackground2Hover:"var(--colorNeutralBackground2Hover)",colorNeutralBackground2Pressed:"var(--colorNeutralBackground2Pressed)",colorNeutralBackground2Selected:"var(--colorNeutralBackground2Selected)",colorNeutralBackground3:"var(--colorNeutralBackground3)",colorNeutralBackground3Hover:"var(--colorNeutralBackground3Hover)",colorNeutralBackground3Pressed:"var(--colorNeutralBackground3Pressed)",colorNeutralBackground3Selected:"var(--colorNeutralBackground3Selected)",colorNeutralBackground4:"var(--colorNeutralBackground4)",colorNeutralBackground4Hover:"var(--colorNeutralBackground4Hover)",colorNeutralBackground4Pressed:"var(--colorNeutralBackground4Pressed)",colorNeutralBackground4Selected:"var(--colorNeutralBackground4Selected)",colorNeutralBackground5:"var(--colorNeutralBackground5)",colorNeutralBackground5Hover:"var(--colorNeutralBackground5Hover)",colorNeutralBackground5Pressed:"var(--colorNeutralBackground5Pressed)",colorNeutralBackground5Selected:"var(--colorNeutralBackground5Selected)",colorNeutralBackground6:"var(--colorNeutralBackground6)",colorNeutralBackgroundInverted:"var(--colorNeutralBackgroundInverted)",colorNeutralBackgroundStatic:"var(--colorNeutralBackgroundStatic)",colorNeutralBackgroundAlpha:"var(--colorNeutralBackgroundAlpha)",colorNeutralBackgroundAlpha2:"var(--colorNeutralBackgroundAlpha2)",colorSubtleBackground:"var(--colorSubtleBackground)",colorSubtleBackgroundHover:"var(--colorSubtleBackgroundHover)",colorSubtleBackgroundPressed:"var(--colorSubtleBackgroundPressed)",colorSubtleBackgroundSelected:"var(--colorSubtleBackgroundSelected)",colorSubtleBackgroundLightAlphaHover:"var(--colorSubtleBackgroundLightAlphaHover)",colorSubtleBackgroundLightAlphaPressed:"var(--colorSubtleBackgroundLightAlphaPressed)",colorSubtleBackgroundLightAlphaSelected:"var(--colorSubtleBackgroundLightAlphaSelected)",colorSubtleBackgroundInverted:"var(--colorSubtleBackgroundInverted)",colorSubtleBackgroundInvertedHover:"var(--colorSubtleBackgroundInvertedHover)",colorSubtleBackgroundInvertedPressed:"var(--colorSubtleBackgroundInvertedPressed)",colorSubtleBackgroundInvertedSelected:"var(--colorSubtleBackgroundInvertedSelected)",colorTransparentBackground:"var(--colorTransparentBackground)",colorTransparentBackgroundHover:"var(--colorTransparentBackgroundHover)",colorTransparentBackgroundPressed:"var(--colorTransparentBackgroundPressed)",colorTransparentBackgroundSelected:"var(--colorTransparentBackgroundSelected)",colorNeutralBackgroundDisabled:"var(--colorNeutralBackgroundDisabled)",colorNeutralBackgroundInvertedDisabled:"var(--colorNeutralBackgroundInvertedDisabled)",colorNeutralStencil1:"var(--colorNeutralStencil1)",colorNeutralStencil2:"var(--colorNeutralStencil2)",colorNeutralStencil1Alpha:"var(--colorNeutralStencil1Alpha)",colorNeutralStencil2Alpha:"var(--colorNeutralStencil2Alpha)",colorBackgroundOverlay:"var(--colorBackgroundOverlay)",colorScrollbarOverlay:"var(--colorScrollbarOverlay)",colorBrandBackground:"var(--colorBrandBackground)",colorBrandBackgroundHover:"var(--colorBrandBackgroundHover)",colorBrandBackgroundPressed:"var(--colorBrandBackgroundPressed)",colorBrandBackgroundSelected:"var(--colorBrandBackgroundSelected)",colorCompoundBrandBackground:"var(--colorCompoundBrandBackground)",colorCompoundBrandBackgroundHover:"var(--colorCompoundBrandBackgroundHover)",colorCompoundBrandBackgroundPressed:"var(--colorCompoundBrandBackgroundPressed)",colorBrandBackgroundStatic:"var(--colorBrandBackgroundStatic)",colorBrandBackground2:"var(--colorBrandBackground2)",colorBrandBackground2Hover:"var(--colorBrandBackground2Hover)",colorBrandBackground2Pressed:"var(--colorBrandBackground2Pressed)",colorBrandBackground3Static:"var(--colorBrandBackground3Static)",colorBrandBackground4Static:"var(--colorBrandBackground4Static)",colorBrandBackgroundInverted:"var(--colorBrandBackgroundInverted)",colorBrandBackgroundInvertedHover:"var(--colorBrandBackgroundInvertedHover)",colorBrandBackgroundInvertedPressed:"var(--colorBrandBackgroundInvertedPressed)",colorBrandBackgroundInvertedSelected:"var(--colorBrandBackgroundInvertedSelected)",colorNeutralCardBackground:"var(--colorNeutralCardBackground)",colorNeutralCardBackgroundHover:"var(--colorNeutralCardBackgroundHover)",colorNeutralCardBackgroundPressed:"var(--colorNeutralCardBackgroundPressed)",colorNeutralCardBackgroundSelected:"var(--colorNeutralCardBackgroundSelected)",colorNeutralCardBackgroundDisabled:"var(--colorNeutralCardBackgroundDisabled)",colorNeutralStrokeAccessible:"var(--colorNeutralStrokeAccessible)",colorNeutralStrokeAccessibleHover:"var(--colorNeutralStrokeAccessibleHover)",colorNeutralStrokeAccessiblePressed:"var(--colorNeutralStrokeAccessiblePressed)",colorNeutralStrokeAccessibleSelected:"var(--colorNeutralStrokeAccessibleSelected)",colorNeutralStroke1:"var(--colorNeutralStroke1)",colorNeutralStroke1Hover:"var(--colorNeutralStroke1Hover)",colorNeutralStroke1Pressed:"var(--colorNeutralStroke1Pressed)",colorNeutralStroke1Selected:"var(--colorNeutralStroke1Selected)",colorNeutralStroke2:"var(--colorNeutralStroke2)",colorNeutralStroke3:"var(--colorNeutralStroke3)",colorNeutralStrokeSubtle:"var(--colorNeutralStrokeSubtle)",colorNeutralStrokeOnBrand:"var(--colorNeutralStrokeOnBrand)",colorNeutralStrokeOnBrand2:"var(--colorNeutralStrokeOnBrand2)",colorNeutralStrokeOnBrand2Hover:"var(--colorNeutralStrokeOnBrand2Hover)",colorNeutralStrokeOnBrand2Pressed:"var(--colorNeutralStrokeOnBrand2Pressed)",colorNeutralStrokeOnBrand2Selected:"var(--colorNeutralStrokeOnBrand2Selected)",colorBrandStroke1:"var(--colorBrandStroke1)",colorBrandStroke2:"var(--colorBrandStroke2)",colorBrandStroke2Hover:"var(--colorBrandStroke2Hover)",colorBrandStroke2Pressed:"var(--colorBrandStroke2Pressed)",colorBrandStroke2Contrast:"var(--colorBrandStroke2Contrast)",colorCompoundBrandStroke:"var(--colorCompoundBrandStroke)",colorCompoundBrandStrokeHover:"var(--colorCompoundBrandStrokeHover)",colorCompoundBrandStrokePressed:"var(--colorCompoundBrandStrokePressed)",colorNeutralStrokeDisabled:"var(--colorNeutralStrokeDisabled)",colorNeutralStrokeInvertedDisabled:"var(--colorNeutralStrokeInvertedDisabled)",colorTransparentStroke:"var(--colorTransparentStroke)",colorTransparentStrokeInteractive:"var(--colorTransparentStrokeInteractive)",colorTransparentStrokeDisabled:"var(--colorTransparentStrokeDisabled)",colorNeutralStrokeAlpha:"var(--colorNeutralStrokeAlpha)",colorNeutralStrokeAlpha2:"var(--colorNeutralStrokeAlpha2)",colorStrokeFocus1:"var(--colorStrokeFocus1)",colorStrokeFocus2:"var(--colorStrokeFocus2)",colorNeutralShadowAmbient:"var(--colorNeutralShadowAmbient)",colorNeutralShadowKey:"var(--colorNeutralShadowKey)",colorNeutralShadowAmbientLighter:"var(--colorNeutralShadowAmbientLighter)",colorNeutralShadowKeyLighter:"var(--colorNeutralShadowKeyLighter)",colorNeutralShadowAmbientDarker:"var(--colorNeutralShadowAmbientDarker)",colorNeutralShadowKeyDarker:"var(--colorNeutralShadowKeyDarker)",colorBrandShadowAmbient:"var(--colorBrandShadowAmbient)",colorBrandShadowKey:"var(--colorBrandShadowKey)",colorPaletteRedBackground1:"var(--colorPaletteRedBackground1)",colorPaletteRedBackground2:"var(--colorPaletteRedBackground2)",colorPaletteRedBackground3:"var(--colorPaletteRedBackground3)",colorPaletteRedBorderActive:"var(--colorPaletteRedBorderActive)",colorPaletteRedBorder1:"var(--colorPaletteRedBorder1)",colorPaletteRedBorder2:"var(--colorPaletteRedBorder2)",colorPaletteRedForeground1:"var(--colorPaletteRedForeground1)",colorPaletteRedForeground2:"var(--colorPaletteRedForeground2)",colorPaletteRedForeground3:"var(--colorPaletteRedForeground3)",colorPaletteRedForegroundInverted:"var(--colorPaletteRedForegroundInverted)",colorPaletteGreenBackground1:"var(--colorPaletteGreenBackground1)",colorPaletteGreenBackground2:"var(--colorPaletteGreenBackground2)",colorPaletteGreenBackground3:"var(--colorPaletteGreenBackground3)",colorPaletteGreenBorderActive:"var(--colorPaletteGreenBorderActive)",colorPaletteGreenBorder1:"var(--colorPaletteGreenBorder1)",colorPaletteGreenBorder2:"var(--colorPaletteGreenBorder2)",colorPaletteGreenForeground1:"var(--colorPaletteGreenForeground1)",colorPaletteGreenForeground2:"var(--colorPaletteGreenForeground2)",colorPaletteGreenForeground3:"var(--colorPaletteGreenForeground3)",colorPaletteGreenForegroundInverted:"var(--colorPaletteGreenForegroundInverted)",colorPaletteDarkOrangeBackground1:"var(--colorPaletteDarkOrangeBackground1)",colorPaletteDarkOrangeBackground2:"var(--colorPaletteDarkOrangeBackground2)",colorPaletteDarkOrangeBackground3:"var(--colorPaletteDarkOrangeBackground3)",colorPaletteDarkOrangeBorderActive:"var(--colorPaletteDarkOrangeBorderActive)",colorPaletteDarkOrangeBorder1:"var(--colorPaletteDarkOrangeBorder1)",colorPaletteDarkOrangeBorder2:"var(--colorPaletteDarkOrangeBorder2)",colorPaletteDarkOrangeForeground1:"var(--colorPaletteDarkOrangeForeground1)",colorPaletteDarkOrangeForeground2:"var(--colorPaletteDarkOrangeForeground2)",colorPaletteDarkOrangeForeground3:"var(--colorPaletteDarkOrangeForeground3)",colorPaletteYellowBackground1:"var(--colorPaletteYellowBackground1)",colorPaletteYellowBackground2:"var(--colorPaletteYellowBackground2)",colorPaletteYellowBackground3:"var(--colorPaletteYellowBackground3)",colorPaletteYellowBorderActive:"var(--colorPaletteYellowBorderActive)",colorPaletteYellowBorder1:"var(--colorPaletteYellowBorder1)",colorPaletteYellowBorder2:"var(--colorPaletteYellowBorder2)",colorPaletteYellowForeground1:"var(--colorPaletteYellowForeground1)",colorPaletteYellowForeground2:"var(--colorPaletteYellowForeground2)",colorPaletteYellowForeground3:"var(--colorPaletteYellowForeground3)",colorPaletteYellowForegroundInverted:"var(--colorPaletteYellowForegroundInverted)",colorPaletteBerryBackground1:"var(--colorPaletteBerryBackground1)",colorPaletteBerryBackground2:"var(--colorPaletteBerryBackground2)",colorPaletteBerryBackground3:"var(--colorPaletteBerryBackground3)",colorPaletteBerryBorderActive:"var(--colorPaletteBerryBorderActive)",colorPaletteBerryBorder1:"var(--colorPaletteBerryBorder1)",colorPaletteBerryBorder2:"var(--colorPaletteBerryBorder2)",colorPaletteBerryForeground1:"var(--colorPaletteBerryForeground1)",colorPaletteBerryForeground2:"var(--colorPaletteBerryForeground2)",colorPaletteBerryForeground3:"var(--colorPaletteBerryForeground3)",colorPaletteMarigoldBackground1:"var(--colorPaletteMarigoldBackground1)",colorPaletteMarigoldBackground2:"var(--colorPaletteMarigoldBackground2)",colorPaletteMarigoldBackground3:"var(--colorPaletteMarigoldBackground3)",colorPaletteMarigoldBorderActive:"var(--colorPaletteMarigoldBorderActive)",colorPaletteMarigoldBorder1:"var(--colorPaletteMarigoldBorder1)",colorPaletteMarigoldBorder2:"var(--colorPaletteMarigoldBorder2)",colorPaletteMarigoldForeground1:"var(--colorPaletteMarigoldForeground1)",colorPaletteMarigoldForeground2:"var(--colorPaletteMarigoldForeground2)",colorPaletteMarigoldForeground3:"var(--colorPaletteMarigoldForeground3)",colorPaletteLightGreenBackground1:"var(--colorPaletteLightGreenBackground1)",colorPaletteLightGreenBackground2:"var(--colorPaletteLightGreenBackground2)",colorPaletteLightGreenBackground3:"var(--colorPaletteLightGreenBackground3)",colorPaletteLightGreenBorderActive:"var(--colorPaletteLightGreenBorderActive)",colorPaletteLightGreenBorder1:"var(--colorPaletteLightGreenBorder1)",colorPaletteLightGreenBorder2:"var(--colorPaletteLightGreenBorder2)",colorPaletteLightGreenForeground1:"var(--colorPaletteLightGreenForeground1)",colorPaletteLightGreenForeground2:"var(--colorPaletteLightGreenForeground2)",colorPaletteLightGreenForeground3:"var(--colorPaletteLightGreenForeground3)",colorPaletteAnchorBackground2:"var(--colorPaletteAnchorBackground2)",colorPaletteAnchorBorderActive:"var(--colorPaletteAnchorBorderActive)",colorPaletteAnchorForeground2:"var(--colorPaletteAnchorForeground2)",colorPaletteBeigeBackground2:"var(--colorPaletteBeigeBackground2)",colorPaletteBeigeBorderActive:"var(--colorPaletteBeigeBorderActive)",colorPaletteBeigeForeground2:"var(--colorPaletteBeigeForeground2)",colorPaletteBlueBackground2:"var(--colorPaletteBlueBackground2)",colorPaletteBlueBorderActive:"var(--colorPaletteBlueBorderActive)",colorPaletteBlueForeground2:"var(--colorPaletteBlueForeground2)",colorPaletteBrassBackground2:"var(--colorPaletteBrassBackground2)",colorPaletteBrassBorderActive:"var(--colorPaletteBrassBorderActive)",colorPaletteBrassForeground2:"var(--colorPaletteBrassForeground2)",colorPaletteBrownBackground2:"var(--colorPaletteBrownBackground2)",colorPaletteBrownBorderActive:"var(--colorPaletteBrownBorderActive)",colorPaletteBrownForeground2:"var(--colorPaletteBrownForeground2)",colorPaletteCornflowerBackground2:"var(--colorPaletteCornflowerBackground2)",colorPaletteCornflowerBorderActive:"var(--colorPaletteCornflowerBorderActive)",colorPaletteCornflowerForeground2:"var(--colorPaletteCornflowerForeground2)",colorPaletteCranberryBackground2:"var(--colorPaletteCranberryBackground2)",colorPaletteCranberryBorderActive:"var(--colorPaletteCranberryBorderActive)",colorPaletteCranberryForeground2:"var(--colorPaletteCranberryForeground2)",colorPaletteDarkGreenBackground2:"var(--colorPaletteDarkGreenBackground2)",colorPaletteDarkGreenBorderActive:"var(--colorPaletteDarkGreenBorderActive)",colorPaletteDarkGreenForeground2:"var(--colorPaletteDarkGreenForeground2)",colorPaletteDarkRedBackground2:"var(--colorPaletteDarkRedBackground2)",colorPaletteDarkRedBorderActive:"var(--colorPaletteDarkRedBorderActive)",colorPaletteDarkRedForeground2:"var(--colorPaletteDarkRedForeground2)",colorPaletteForestBackground2:"var(--colorPaletteForestBackground2)",colorPaletteForestBorderActive:"var(--colorPaletteForestBorderActive)",colorPaletteForestForeground2:"var(--colorPaletteForestForeground2)",colorPaletteGoldBackground2:"var(--colorPaletteGoldBackground2)",colorPaletteGoldBorderActive:"var(--colorPaletteGoldBorderActive)",colorPaletteGoldForeground2:"var(--colorPaletteGoldForeground2)",colorPaletteGrapeBackground2:"var(--colorPaletteGrapeBackground2)",colorPaletteGrapeBorderActive:"var(--colorPaletteGrapeBorderActive)",colorPaletteGrapeForeground2:"var(--colorPaletteGrapeForeground2)",colorPaletteLavenderBackground2:"var(--colorPaletteLavenderBackground2)",colorPaletteLavenderBorderActive:"var(--colorPaletteLavenderBorderActive)",colorPaletteLavenderForeground2:"var(--colorPaletteLavenderForeground2)",colorPaletteLightTealBackground2:"var(--colorPaletteLightTealBackground2)",colorPaletteLightTealBorderActive:"var(--colorPaletteLightTealBorderActive)",colorPaletteLightTealForeground2:"var(--colorPaletteLightTealForeground2)",colorPaletteLilacBackground2:"var(--colorPaletteLilacBackground2)",colorPaletteLilacBorderActive:"var(--colorPaletteLilacBorderActive)",colorPaletteLilacForeground2:"var(--colorPaletteLilacForeground2)",colorPaletteMagentaBackground2:"var(--colorPaletteMagentaBackground2)",colorPaletteMagentaBorderActive:"var(--colorPaletteMagentaBorderActive)",colorPaletteMagentaForeground2:"var(--colorPaletteMagentaForeground2)",colorPaletteMinkBackground2:"var(--colorPaletteMinkBackground2)",colorPaletteMinkBorderActive:"var(--colorPaletteMinkBorderActive)",colorPaletteMinkForeground2:"var(--colorPaletteMinkForeground2)",colorPaletteNavyBackground2:"var(--colorPaletteNavyBackground2)",colorPaletteNavyBorderActive:"var(--colorPaletteNavyBorderActive)",colorPaletteNavyForeground2:"var(--colorPaletteNavyForeground2)",colorPalettePeachBackground2:"var(--colorPalettePeachBackground2)",colorPalettePeachBorderActive:"var(--colorPalettePeachBorderActive)",colorPalettePeachForeground2:"var(--colorPalettePeachForeground2)",colorPalettePinkBackground2:"var(--colorPalettePinkBackground2)",colorPalettePinkBorderActive:"var(--colorPalettePinkBorderActive)",colorPalettePinkForeground2:"var(--colorPalettePinkForeground2)",colorPalettePlatinumBackground2:"var(--colorPalettePlatinumBackground2)",colorPalettePlatinumBorderActive:"var(--colorPalettePlatinumBorderActive)",colorPalettePlatinumForeground2:"var(--colorPalettePlatinumForeground2)",colorPalettePlumBackground2:"var(--colorPalettePlumBackground2)",colorPalettePlumBorderActive:"var(--colorPalettePlumBorderActive)",colorPalettePlumForeground2:"var(--colorPalettePlumForeground2)",colorPalettePumpkinBackground2:"var(--colorPalettePumpkinBackground2)",colorPalettePumpkinBorderActive:"var(--colorPalettePumpkinBorderActive)",colorPalettePumpkinForeground2:"var(--colorPalettePumpkinForeground2)",colorPalettePurpleBackground2:"var(--colorPalettePurpleBackground2)",colorPalettePurpleBorderActive:"var(--colorPalettePurpleBorderActive)",colorPalettePurpleForeground2:"var(--colorPalettePurpleForeground2)",colorPaletteRoyalBlueBackground2:"var(--colorPaletteRoyalBlueBackground2)",colorPaletteRoyalBlueBorderActive:"var(--colorPaletteRoyalBlueBorderActive)",colorPaletteRoyalBlueForeground2:"var(--colorPaletteRoyalBlueForeground2)",colorPaletteSeafoamBackground2:"var(--colorPaletteSeafoamBackground2)",colorPaletteSeafoamBorderActive:"var(--colorPaletteSeafoamBorderActive)",colorPaletteSeafoamForeground2:"var(--colorPaletteSeafoamForeground2)",colorPaletteSteelBackground2:"var(--colorPaletteSteelBackground2)",colorPaletteSteelBorderActive:"var(--colorPaletteSteelBorderActive)",colorPaletteSteelForeground2:"var(--colorPaletteSteelForeground2)",colorPaletteTealBackground2:"var(--colorPaletteTealBackground2)",colorPaletteTealBorderActive:"var(--colorPaletteTealBorderActive)",colorPaletteTealForeground2:"var(--colorPaletteTealForeground2)",colorStatusSuccessBackground1:"var(--colorStatusSuccessBackground1)",colorStatusSuccessBackground2:"var(--colorStatusSuccessBackground2)",colorStatusSuccessBackground3:"var(--colorStatusSuccessBackground3)",colorStatusSuccessForeground1:"var(--colorStatusSuccessForeground1)",colorStatusSuccessForeground2:"var(--colorStatusSuccessForeground2)",colorStatusSuccessForeground3:"var(--colorStatusSuccessForeground3)",colorStatusSuccessForegroundInverted:"var(--colorStatusSuccessForegroundInverted)",colorStatusSuccessBorderActive:"var(--colorStatusSuccessBorderActive)",colorStatusSuccessBorder1:"var(--colorStatusSuccessBorder1)",colorStatusSuccessBorder2:"var(--colorStatusSuccessBorder2)",colorStatusWarningBackground1:"var(--colorStatusWarningBackground1)",colorStatusWarningBackground2:"var(--colorStatusWarningBackground2)",colorStatusWarningBackground3:"var(--colorStatusWarningBackground3)",colorStatusWarningForeground1:"var(--colorStatusWarningForeground1)",colorStatusWarningForeground2:"var(--colorStatusWarningForeground2)",colorStatusWarningForeground3:"var(--colorStatusWarningForeground3)",colorStatusWarningForegroundInverted:"var(--colorStatusWarningForegroundInverted)",colorStatusWarningBorderActive:"var(--colorStatusWarningBorderActive)",colorStatusWarningBorder1:"var(--colorStatusWarningBorder1)",colorStatusWarningBorder2:"var(--colorStatusWarningBorder2)",colorStatusDangerBackground1:"var(--colorStatusDangerBackground1)",colorStatusDangerBackground2:"var(--colorStatusDangerBackground2)",colorStatusDangerBackground3:"var(--colorStatusDangerBackground3)",colorStatusDangerBackground3Hover:"var(--colorStatusDangerBackground3Hover)",colorStatusDangerBackground3Pressed:"var(--colorStatusDangerBackground3Pressed)",colorStatusDangerForeground1:"var(--colorStatusDangerForeground1)",colorStatusDangerForeground2:"var(--colorStatusDangerForeground2)",colorStatusDangerForeground3:"var(--colorStatusDangerForeground3)",colorStatusDangerForegroundInverted:"var(--colorStatusDangerForegroundInverted)",colorStatusDangerBorderActive:"var(--colorStatusDangerBorderActive)",colorStatusDangerBorder1:"var(--colorStatusDangerBorder1)",colorStatusDangerBorder2:"var(--colorStatusDangerBorder2)",borderRadiusNone:"var(--borderRadiusNone)",borderRadiusSmall:"var(--borderRadiusSmall)",borderRadiusMedium:"var(--borderRadiusMedium)",borderRadiusLarge:"var(--borderRadiusLarge)",borderRadiusXLarge:"var(--borderRadiusXLarge)",borderRadiusCircular:"var(--borderRadiusCircular)",fontFamilyBase:"var(--fontFamilyBase)",fontFamilyMonospace:"var(--fontFamilyMonospace)",fontFamilyNumeric:"var(--fontFamilyNumeric)",fontSizeBase100:"var(--fontSizeBase100)",fontSizeBase200:"var(--fontSizeBase200)",fontSizeBase300:"var(--fontSizeBase300)",fontSizeBase400:"var(--fontSizeBase400)",fontSizeBase500:"var(--fontSizeBase500)",fontSizeBase600:"var(--fontSizeBase600)",fontSizeHero700:"var(--fontSizeHero700)",fontSizeHero800:"var(--fontSizeHero800)",fontSizeHero900:"var(--fontSizeHero900)",fontSizeHero1000:"var(--fontSizeHero1000)",fontWeightRegular:"var(--fontWeightRegular)",fontWeightMedium:"var(--fontWeightMedium)",fontWeightSemibold:"var(--fontWeightSemibold)",fontWeightBold:"var(--fontWeightBold)",lineHeightBase100:"var(--lineHeightBase100)",lineHeightBase200:"var(--lineHeightBase200)",lineHeightBase300:"var(--lineHeightBase300)",lineHeightBase400:"var(--lineHeightBase400)",lineHeightBase500:"var(--lineHeightBase500)",lineHeightBase600:"var(--lineHeightBase600)",lineHeightHero700:"var(--lineHeightHero700)",lineHeightHero800:"var(--lineHeightHero800)",lineHeightHero900:"var(--lineHeightHero900)",lineHeightHero1000:"var(--lineHeightHero1000)",shadow2:"var(--shadow2)",shadow4:"var(--shadow4)",shadow8:"var(--shadow8)",shadow16:"var(--shadow16)",shadow28:"var(--shadow28)",shadow64:"var(--shadow64)",shadow2Brand:"var(--shadow2Brand)",shadow4Brand:"var(--shadow4Brand)",shadow8Brand:"var(--shadow8Brand)",shadow16Brand:"var(--shadow16Brand)",shadow28Brand:"var(--shadow28Brand)",shadow64Brand:"var(--shadow64Brand)",strokeWidthThin:"var(--strokeWidthThin)",strokeWidthThick:"var(--strokeWidthThick)",strokeWidthThicker:"var(--strokeWidthThicker)",strokeWidthThickest:"var(--strokeWidthThickest)",spacingHorizontalNone:"var(--spacingHorizontalNone)",spacingHorizontalXXS:"var(--spacingHorizontalXXS)",spacingHorizontalXS:"var(--spacingHorizontalXS)",spacingHorizontalSNudge:"var(--spacingHorizontalSNudge)",spacingHorizontalS:"var(--spacingHorizontalS)",spacingHorizontalMNudge:"var(--spacingHorizontalMNudge)",spacingHorizontalM:"var(--spacingHorizontalM)",spacingHorizontalL:"var(--spacingHorizontalL)",spacingHorizontalXL:"var(--spacingHorizontalXL)",spacingHorizontalXXL:"var(--spacingHorizontalXXL)",spacingHorizontalXXXL:"var(--spacingHorizontalXXXL)",spacingVerticalNone:"var(--spacingVerticalNone)",spacingVerticalXXS:"var(--spacingVerticalXXS)",spacingVerticalXS:"var(--spacingVerticalXS)",spacingVerticalSNudge:"var(--spacingVerticalSNudge)",spacingVerticalS:"var(--spacingVerticalS)",spacingVerticalMNudge:"var(--spacingVerticalMNudge)",spacingVerticalM:"var(--spacingVerticalM)",spacingVerticalL:"var(--spacingVerticalL)",spacingVerticalXL:"var(--spacingVerticalXL)",spacingVerticalXXL:"var(--spacingVerticalXXL)",spacingVerticalXXXL:"var(--spacingVerticalXXXL)",durationUltraFast:"var(--durationUltraFast)",durationFaster:"var(--durationFaster)",durationFast:"var(--durationFast)",durationNormal:"var(--durationNormal)",durationGentle:"var(--durationGentle)",durationSlow:"var(--durationSlow)",durationSlower:"var(--durationSlower)",durationUltraSlow:"var(--durationUltraSlow)",curveAccelerateMax:"var(--curveAccelerateMax)",curveAccelerateMid:"var(--curveAccelerateMid)",curveAccelerateMin:"var(--curveAccelerateMin)",curveDecelerateMax:"var(--curveDecelerateMax)",curveDecelerateMid:"var(--curveDecelerateMid)",curveDecelerateMin:"var(--curveDecelerateMin)",curveEasyEaseMax:"var(--curveEasyEaseMax)",curveEasyEase:"var(--curveEasyEase)",curveLinear:"var(--curveLinear)",zIndexBackground:"var(--zIndexBackground, 0)",zIndexContent:"var(--zIndexContent, 1)",zIndexOverlay:"var(--zIndexOverlay, 1000)",zIndexPopup:"var(--zIndexPopup, 2000)",zIndexMessages:"var(--zIndexMessages, 3000)",zIndexFloating:"var(--zIndexFloating, 4000)",zIndexPriority:"var(--zIndexPriority, 5000)",zIndexDebug:"var(--zIndexDebug, 6000)"};var p4=C7(D9(),1);import*as U1 from"react";var _v=(a)=>{let l=(c)=>{let h=U1.useRef(c.value),Z=U1.useRef(0),v=U1.useRef(null);if(!v.current)v.current={value:h,version:Z,listeners:[]};return s(()=>{h.current=c.value,Z.current+=1,p4.unstable_runWithPriority(p4.unstable_NormalPriority,()=>{v.current.listeners.forEach((o)=>{o([Z.current,c.value])})})},[c.value]),U1.createElement(a,{value:v.current},c.children)};return l.displayName="ContextSelector.Provider",l},I1=(a)=>{let l=U1.createContext({value:{current:a},version:{current:-1},listeners:[]});return l.Provider=_v(l.Provider),delete l.Consumer,l};import*as m4 from"react";var W1=(a,l)=>{let c=m4.useContext(a),{value:{current:h},version:{current:Z},listeners:v}=c,o=l(h),[r,M]=m4.useState([h,o]),A=(V)=>{M((p)=>{if(!V)return[h,o];if(V[0]<=Z){if(Object.is(p[1],o))return p;return[h,o]}try{if(Object.is(p[0],V[1]))return p;let m=l(V[1]);if(Object.is(p[1],m))return p;return[V[1],m]}catch(m){}return[p[0],p[1]]})};if(!Object.is(r[1],o))A(void 0);let H=T(A);return s(()=>{return v.push(H),()=>{let V=v.indexOf(H);v.splice(V,1)}},[H,v]),r[1]};import*as P9 from"react";function n1(a){let l=P9.useContext(a);if(l.version)return l.version.current!==-1;return!1}var y1="Enter",D1=" ",m6="Tab",_6="ArrowDown",d2="ArrowLeft",i2="ArrowRight";var j1="Escape";import*as FC from"react";function a1(a,l){let{disabled:c,disabledFocusable:h=!1,["aria-disabled"]:Z,onClick:v,onKeyDown:o,onKeyUp:r,...M}=l!==null&&l!==void 0?l:{},A=typeof Z==="string"?Z==="true":Z,H=c||h||A,V=T((_)=>{if(H)_.preventDefault(),_.stopPropagation();else v===null||v===void 0||v(_)}),p=T((_)=>{if(o===null||o===void 0||o(_),_.isDefaultPrevented())return;let F=_.key;if(H&&(F===y1||F===D1)){_.preventDefault(),_.stopPropagation();return}if(F===D1){_.preventDefault();return}else if(F===y1)_.preventDefault(),_.currentTarget.click()}),m=T((_)=>{if(r===null||r===void 0||r(_),_.isDefaultPrevented())return;let F=_.key;if(H&&(F===y1||F===D1)){_.preventDefault(),_.stopPropagation();return}if(F===D1)_.preventDefault(),_.currentTarget.click()});if(a==="button"||a===void 0)return{...M,disabled:c&&!h,"aria-disabled":h?!0:A,onClick:h?void 0:V,onKeyUp:h?void 0:r,onKeyDown:h?void 0:o};else{let _=!!M.href,F=_?void 0:"button";if(!F&&H)F="link";let d={role:F,tabIndex:h||!_&&!c?0:void 0,...M,onClick:V,onKeyUp:m,onKeyDown:p,"aria-disabled":H};if(a==="a"&&H)d.href=void 0;return d}}import*as Y0 from"react";var T9=$({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{transform:scaleX(-1);}"]});var S9=(a,l)=>{let{title:c,primaryFill:h="currentColor",...Z}=a,v={...Z,title:void 0,fill:h},o=T9(),r=Sa();if(v.className=Q(o.root,(l===null||l===void 0?void 0:l.flipInRtl)&&(r===null||r===void 0?void 0:r.textDirection)==="rtl"&&o.rtl,v.className),c)v["aria-label"]=c;if(!v["aria-label"]&&!v["aria-labelledby"])v["aria-hidden"]=!0;else v.role="img";return v};var k9=$({root:{B8gzw0y:"f1dd5bof"}},{m:[["@media (forced-colors: active){.f1dd5bof{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]]});var O5=(a,l,c,h)=>{let Z=l==="1em"?"20":l,v=Y0.forwardRef((o,r)=>{let M=k9(),A=S9(o,{flipInRtl:h===null||h===void 0?void 0:h.flipInRtl}),H={...A,className:Q(A.className,M.root),ref:r,width:l,height:l,viewBox:`0 0 ${Z} ${Z}`,xmlns:"http://www.w3.org/2000/svg"};if(typeof c==="string")return Y0.createElement("svg",{...H,dangerouslySetInnerHTML:{__html:c}});else return Y0.createElement("svg",H,...c.map((V)=>Y0.createElement("path",{d:V,fill:H.fill})))});return v.displayName=a,v};var O9=O5("SearchRegular","1em",["M13.73 14.44a6.5 6.5 0 1 1 .7-.7l3.42 3.4a.5.5 0 0 1-.63.77l-.07-.06-3.42-3.41Zm-.71-.71A5.54 5.54 0 0 0 15 9.5a5.5 5.5 0 1 0-1.98 4.23Z"]);var Q9=O5("ChevronDownRegular","1em",["M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z"]);var J9=O5("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.06Z"]),Y9=O5("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 .7Z"]),X9=O5("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.06Z"]),q9=O5("ChevronRightRegular","1em",["M7.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 0 1-.7-.7L12.8 10 7.65 4.85a.5.5 0 0 1 0-.7Z"]);var $9=O5("DeleteRegular","1em",["M8.5 4h3a1.5 1.5 0 0 0-3 0Zm-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-1h5ZM5.74 15.23A2 2 0 0 0 7.73 17h4.54a2 2 0 0 0 1.99-1.77L15.44 5H4.56l1.18 10.23ZM8.5 7.5c.28 0 .5.22.5.5v6a.5.5 0 0 1-1 0V8c0-.28.22-.5.5-.5ZM12 8a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V8Z"]);var K9=O5("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-.07-.06.07Z"]);import*as X0 from"react";var I9="fui-Icon-filled",W9="fui-Icon-regular";var n9=$({root:{mc9l5x:"fjseox"},visible:{mc9l5x:"f1w7gpdv"}},{d:[".fjseox{display:none;}",".f1w7gpdv{display:inline;}"]});var Fv=(a,l)=>{let c=(h)=>{let{className:Z,filled:v,...o}=h,r=n9();return X0.createElement(X0.Fragment,null,X0.createElement(a,Object.assign({},o,{className:Q(r.root,v&&r.visible,I9,Z)})),X0.createElement(l,Object.assign({},o,{className:Q(r.root,!v&&r.visible,W9,Z)})))};return c.displayName="CompoundIcon",c},_4=Fv;var y9={durationUltraFast:50,durationFaster:100,durationFast:150,durationNormal:200,durationGentle:250,durationSlow:300,durationSlower:400,durationUltraSlow:500},j9={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)"},h5={...y9,...j9};import*as N9 from"react";import*as x2 from"react";function z9(a){if(a.playState==="running"){var l;if(a.overallProgress!==void 0){var c;let r=(c=a.overallProgress)!==null&&c!==void 0?c:0;return r>0&&r<1}var h;let v=Number((h=a.currentTime)!==null&&h!==void 0?h:0);var Z;let o=Number((Z=(l=a.effect)===null||l===void 0?void 0:l.getTiming().duration)!==null&&Z!==void 0?Z:0);return v>0&&v<o}return!1}var dv={fill:"forwards"},iv={duration:1};function xv(){var a;let l=typeof window<"u"&&typeof((a=window.Animation)===null||a===void 0?void 0:a.prototype.persist)==="function";return x2.useCallback((c,h,Z)=>{let v=Array.isArray(h)?h:[h],{isReducedMotion:o}=Z,r=v.map((M)=>{let{keyframes:A,reducedMotion:H=iv,...V}=M,{keyframes:p=A,...m}=H,_=o?p:A,F={...dv,...V,...o&&m};try{let x=c.animate(_,F);if(l)x===null||x===void 0||x.persist();else{let i=_[_.length-1];var d;Object.assign((d=c.style)!==null&&d!==void 0?d:{},i)}return x}catch(x){return null}}).filter((M)=>!!M);return{set playbackRate(M){r.forEach((A)=>{A.playbackRate=M})},setMotionEndCallbacks(M,A){let H=r.map((V)=>{return new Promise((p,m)=>{V.onfinish=()=>p(),V.oncancel=()=>m()})});Promise.all(H).then(()=>{M()}).catch(()=>{A()})},isRunning(){return r.some((M)=>z9(M))},cancel:()=>{r.forEach((M)=>{M.cancel()})},pause:()=>{r.forEach((M)=>{M.pause()})},play:()=>{r.forEach((M)=>{M.play()})},finish:()=>{r.forEach((M)=>{M.finish()})},reverse:()=>{r.forEach((M)=>{M.reverse()})}}},[l])}function F4(){return xv()}import*as d4 from"react";function i4(a){let l=d4.useRef(void 0);return d4.useImperativeHandle(a,()=>({setPlayState:(c)=>{if(c==="running"){var h;(h=l.current)===null||h===void 0||h.play()}if(c==="paused"){var Z;(Z=l.current)===null||Z===void 0||Z.pause()}},setPlaybackRate:(c)=>{if(l.current)l.current.playbackRate=c}})),l}import*as x4 from"react";var Lv="screen and (prefers-reduced-motion: reduce)";function L4(){let{targetDocument:a}=n();var l;let c=(l=a===null||a===void 0?void 0:a.defaultView)!==null&&l!==void 0?l:null,h=x4.useRef(!1),Z=x4.useCallback(()=>h.current,[]);return s(()=>{if(c===null||typeof c.matchMedia!=="function")return;let v=c.matchMedia(Lv);if(v.matches)h.current=!0;let o=(r)=>{h.current=r.matches};return v.addEventListener("change",o),()=>{v.removeEventListener("change",o)}},[c]),Z}import*as l1 from"react";var w9=["@fluentui/react-motion: Invalid child element.",`
|
|
`,"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 C4(a,l=!0){let c=l1.useRef(null);l1.useEffect(()=>{if(l&&!c.current)console.error(w9)},[l]);try{let h=l1.Children.only(a);if(l1.isValidElement(h))return[l1.cloneElement(h,{ref:H5(c,u1(h))}),c]}catch{}throw Error(w9)}import*as f4 from"react";var b9=f4.createContext(void 0),dR=b9.Provider,R4=()=>{var a;return(a=f4.useContext(b9))!==null&&a!==void 0?a:"default"};var Cv=Symbol("MOTION_DEFINITION");function F6(a){return Object.assign((c)=>{let{children:h,imperativeRef:Z,onMotionFinish:v,onMotionStart:o,onMotionCancel:r,...M}=c,A=M,[H,V]=C4(h),p=i4(Z),m=R4()==="skip",_=N9.useRef({skipMotions:m,params:A}),F=F4(),d=L4(),x=T(()=>{o===null||o===void 0||o(null)}),i=T(()=>{v===null||v===void 0||v(null)}),L=T(()=>{r===null||r===void 0||r(null)});return s(()=>{_.current={skipMotions:m,params:A}}),s(()=>{let C=V.current;if(C){let u=typeof a==="function"?a({element:C,..._.current.params}):a;x();let f=F(C,u,{isReducedMotion:d()});if(p.current=f,f.setMotionEndCallbacks(i,L),_.current.skipMotions)f.finish();return()=>{f.cancel()}}},[F,V,p,d,i,x,L]),H},{[Cv]:typeof a==="function"?a:()=>a})}import*as u4 from"react";import*as d6 from"react";var i6=d6.createContext(void 0),GR=i6.Provider;import*as q0 from"react";function E9(a=!1,l=!1){let c=q0.useRef(l?a:!0),h=N3(),Z=q0.useCallback((v)=>{if(c.current!==v)c.current=v,h()},[h]);return q0.useEffect(()=>{if(a)c.current=a}),[a||c.current,Z]}var x6=Symbol("PRESENCE_MOTION_DEFINITION"),fv=Symbol.for("interruptablePresence");function z1(a){return Object.assign((l)=>{let h={...u4.useContext(i6),...l},Z=R4()==="skip",{appear:v,children:o,imperativeRef:r,onExit:M,onMotionFinish:A,onMotionStart:H,onMotionCancel:V,visible:p,unmountOnExit:m,..._}=h,F=_,[d,x]=E9(p,m),[i,L]=C4(o,d),C=i4(r),u=u4.useRef({appear:v,params:F,skipMotions:Z}),f=F4(),R=B0(),B=L4(),U=T((S)=>{H===null||H===void 0||H(null,{direction:S})}),O=T((S)=>{if(A===null||A===void 0||A(null,{direction:S}),S==="exit"&&m)x(!1),M===null||M===void 0||M()}),W=T((S)=>{V===null||V===void 0||V(null,{direction:S})});if(s(()=>{u.current={appear:v,params:F,skipMotions:Z}}),s(()=>{let S=L.current;if(!S)return;let k;function g(){if(!k)return;if(z&&k.isRunning())return;k.cancel(),C.current=void 0}let j=typeof a==="function"?a({element:S,...u.current.params}):a,z=j[fv];if(z){if(k=C.current,k&&k.isRunning())return k.reverse(),g}let D=p?j.enter:j.exit,J=p?"enter":"exit",y=!u.current.appear&&R,_5=u.current.skipMotions;if(!y)U(J);if(k=f(S,D,{isReducedMotion:B()}),y)return k.finish(),g;if(C.current=k,k.setMotionEndCallbacks(()=>O(J),()=>W(J)),_5)k.finish();return g},[f,L,C,B,O,U,W,p]),d)return i;return null},{[x6]:typeof a==="function"?a:()=>a},{In:F6(typeof a==="function"?(...l)=>a(...l).enter:a.enter),Out:F6(typeof a==="function"?(...l)=>a(...l).exit:a.exit)})}function Rv(a,l){return(h)=>a({...l,...h})}function V1(a,l){let c=a[x6],h=Rv(c,l);return z1(h)}import*as g4 from"react";function L2(a,l){let{as:c,children:h,...Z}=a!==null&&a!==void 0?a:{};if(typeof c<"u")throw Error('@fluentui/react-motion: "as" property is not supported on motion slots.');if(a===null){let o=!l.defaultProps.visible&&l.defaultProps.unmountOnExit,r=(M,A)=>o?null:g4.createElement(g4.Fragment,null,A.children);return{[r1]:r,[i5]:l.elementType}}let v={...l.defaultProps,...Z,[i5]:l.elementType};if(typeof h==="function")v[r1]=h;return v}var $0=({direction:a,duration:l,easing:c=h5.curveLinear,delay:h=0,fromOpacity:Z=0,toOpacity:v=1})=>{let o=[{opacity:Z},{opacity:v}];if(a==="exit")o.reverse();return{keyframes:o,duration:l,easing:c,delay:h,fill:"both"}};var uv=({duration:a=h5.durationNormal,easing:l=h5.curveEasyEase,delay:c=0,exitDuration:h=a,exitEasing:Z=l,exitDelay:v=c,fromOpacity:o=0,toOpacity:r=1})=>{return{enter:$0({direction:"enter",duration:a,easing:l,delay:c,fromOpacity:o,toOpacity:r}),exit:$0({direction:"exit",duration:h,easing:Z,delay:v,fromOpacity:o,toOpacity:r})}},G4=z1(uv),t9=V1(G4,{duration:h5.durationFast}),B4=V1(G4,{duration:h5.durationGentle});var L6=({direction:a,duration:l,easing:c=h5.curveLinear,delay:h=0,fromScale:Z=0.9,toScale:v=1})=>{let o=[{scale:Z},{scale:v}];if(a==="exit")o.reverse();return{keyframes:o,duration:l,easing:c,delay:h}};var gv=({duration:a=h5.durationGentle,easing:l=h5.curveDecelerateMax,delay:c=0,exitDuration:h=h5.durationNormal,exitEasing:Z=h5.curveAccelerateMax,exitDelay:v=c,fromScale:o=0.9,toScale:r=1,animateOpacity:M=!0})=>{let A=[L6({direction:"enter",duration:a,easing:l,delay:c,fromScale:o,toScale:r})],H=[L6({direction:"exit",duration:h,easing:Z,delay:v,fromScale:o,toScale:r})];if(M)A.push($0({direction:"enter",duration:a,easing:l,delay:c})),H.push($0({direction:"exit",duration:h,easing:Z,delay:v}));return{enter:A,exit:H}},K0=z1(gv),s9=V1(K0,{duration:h5.durationNormal,exitDuration:h5.durationFast}),e9=V1(K0,{duration:h5.durationSlow,exitDuration:h5.durationGentle});function al(a){let{clientX:l,clientY:c}=a,h=l+1,Z=c+1;function v(){return{left:l,top:c,right:h,bottom:Z,x:l,y:c,height:1,width:1}}return{getBoundingClientRect:v}}var C6="data-popper-is-intersecting",f6="data-popper-escaped",R6="data-popper-reference-hidden",ll="data-popper-placement",C2="fui-positioningend";import*as U4 from"react";var Gv=({options:a})=>{return a},cl=U4.createContext(void 0),_u=cl.Provider,hl=()=>{var a;return(a=U4.useContext(cl))!==null&&a!==void 0?a:Gv};import*as Y5 from"react";var ol=["top","right","bottom","left"];var{min:p1,max:B5,round:R2}=Math;var I5=(a)=>({x:a,y:a}),Bv={left:"right",right:"left",bottom:"top",top:"bottom"},Uv={start:"end",end:"start"};function P4(a,l,c){return B5(a,p1(l,c))}function c1(a,l){return typeof a==="function"?a(l):a}function h1(a){return a.split("-")[0]}function w1(a){return a.split("-")[1]}function T4(a){return a==="x"?"y":"x"}function S4(a){return a==="y"?"height":"width"}var Dv=new Set(["top","bottom"]);function W5(a){return Dv.has(h1(a))?"y":"x"}function k4(a){return T4(W5(a))}function rl(a,l,c){if(c===void 0)c=!1;let h=w1(a),Z=k4(a),v=S4(Z),o=Z==="x"?h===(c?"end":"start")?"right":"left":h==="start"?"bottom":"top";if(l.reference[v]>l.floating[v])o=f2(o);return[o,f2(o)]}function Ml(a){let l=f2(a);return[D4(a),l,D4(l)]}function D4(a){return a.replace(/start|end/g,(l)=>Uv[l])}var Zl=["left","right"],vl=["right","left"],Pv=["top","bottom"],Tv=["bottom","top"];function Sv(a,l,c){switch(a){case"top":case"bottom":if(c)return l?vl:Zl;return l?Zl:vl;case"left":case"right":return l?Pv:Tv;default:return[]}}function Hl(a,l,c,h){let Z=w1(a),v=Sv(h1(a),c==="start",h);if(Z){if(v=v.map((o)=>o+"-"+Z),l)v=v.concat(v.map(D4))}return v}function f2(a){return a.replace(/left|right|bottom|top/g,(l)=>Bv[l])}function kv(a){return{top:0,right:0,bottom:0,left:0,...a}}function u6(a){return typeof a!=="number"?kv(a):{top:a,right:a,bottom:a,left:a}}function b1(a){let{x:l,y:c,width:h,height:Z}=a;return{width:h,height:Z,top:c,left:l,right:l+h,bottom:c+Z,x:l,y:c}}function Al(a,l,c){let{reference:h,floating:Z}=a,v=W5(l),o=k4(l),r=S4(o),M=h1(l),A=v==="y",H=h.x+h.width/2-Z.width/2,V=h.y+h.height/2-Z.height/2,p=h[r]/2-Z[r]/2,m;switch(M){case"top":m={x:H,y:h.y-Z.height};break;case"bottom":m={x:H,y:h.y+h.height};break;case"right":m={x:h.x+h.width,y:V};break;case"left":m={x:h.x-Z.width,y:V};break;default:m={x:h.x,y:h.y}}switch(w1(l)){case"start":m[o]-=p*(c&&A?-1:1);break;case"end":m[o]+=p*(c&&A?-1:1);break}return m}var ml=async(a,l,c)=>{let{placement:h="bottom",strategy:Z="absolute",middleware:v=[],platform:o}=c,r=v.filter(Boolean),M=await(o.isRTL==null?void 0:o.isRTL(l)),A=await o.getElementRects({reference:a,floating:l,strategy:Z}),{x:H,y:V}=Al(A,h,M),p=h,m={},_=0;for(let F=0;F<r.length;F++){let{name:d,fn:x}=r[F],{x:i,y:L,data:C,reset:u}=await x({x:H,y:V,initialPlacement:h,placement:p,strategy:Z,middlewareData:m,rects:A,platform:o,elements:{reference:a,floating:l}});if(H=i!=null?i:H,V=L!=null?L:V,m={...m,[d]:{...m[d],...C}},u&&_<=50){if(_++,typeof u==="object"){if(u.placement)p=u.placement;if(u.rects)A=u.rects===!0?await o.getElementRects({reference:a,floating:l,strategy:Z}):u.rects;({x:H,y:V}=Al(A,p,M))}F=-1}}return{x:H,y:V,placement:p,strategy:Z,middlewareData:m}};async function N1(a,l){var c;if(l===void 0)l={};let{x:h,y:Z,platform:v,rects:o,elements:r,strategy:M}=a,{boundary:A="clippingAncestors",rootBoundary:H="viewport",elementContext:V="floating",altBoundary:p=!1,padding:m=0}=c1(l,a),_=u6(m),d=r[p?V==="floating"?"reference":"floating":V],x=b1(await v.getClippingRect({element:((c=await(v.isElement==null?void 0:v.isElement(d)))!=null?c:!0)?d:d.contextElement||await(v.getDocumentElement==null?void 0:v.getDocumentElement(r.floating)),boundary:A,rootBoundary:H,strategy:M})),i=V==="floating"?{x:h,y:Z,width:o.floating.width,height:o.floating.height}:o.reference,L=await(v.getOffsetParent==null?void 0:v.getOffsetParent(r.floating)),C=await(v.isElement==null?void 0:v.isElement(L))?await(v.getScale==null?void 0:v.getScale(L))||{x:1,y:1}:{x:1,y:1},u=b1(v.convertOffsetParentRelativeRectToViewportRelativeRect?await v.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:i,offsetParent:L,strategy:M}):i);return{top:(x.top-u.top+_.top)/C.y,bottom:(u.bottom-x.bottom+_.bottom)/C.y,left:(x.left-u.left+_.left)/C.x,right:(u.right-x.right+_.right)/C.x}}var _l=(a)=>({name:"arrow",options:a,async fn(l){let{x:c,y:h,placement:Z,rects:v,platform:o,elements:r,middlewareData:M}=l,{element:A,padding:H=0}=c1(a,l)||{};if(A==null)return{};let V=u6(H),p={x:c,y:h},m=k4(Z),_=S4(m),F=await o.getDimensions(A),d=m==="y",x=d?"top":"left",i=d?"bottom":"right",L=d?"clientHeight":"clientWidth",C=v.reference[_]+v.reference[m]-p[m]-v.floating[_],u=p[m]-v.reference[m],f=await(o.getOffsetParent==null?void 0:o.getOffsetParent(A)),R=f?f[L]:0;if(!R||!await(o.isElement==null?void 0:o.isElement(f)))R=r.floating[L]||v.floating[_];let B=C/2-u/2,U=R/2-F[_]/2-1,O=p1(V[x],U),W=p1(V[i],U),S=O,k=R-F[_]-W,g=R/2-F[_]/2+B,j=P4(S,g,k),z=!M.arrow&&w1(Z)!=null&&g!==j&&v.reference[_]/2-(g<S?O:W)-F[_]/2<0,D=z?g<S?g-S:g-k:0;return{[m]:p[m]+D,data:{[m]:j,centerOffset:g-j-D,...z&&{alignmentOffset:D}},reset:z}}});var Fl=function(a){if(a===void 0)a={};return{name:"flip",options:a,async fn(l){var c,h;let{placement:Z,middlewareData:v,rects:o,initialPlacement:r,platform:M,elements:A}=l,{mainAxis:H=!0,crossAxis:V=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:F=!0,...d}=c1(a,l);if((c=v.arrow)!=null&&c.alignmentOffset)return{};let x=h1(Z),i=W5(r),L=h1(r)===r,C=await(M.isRTL==null?void 0:M.isRTL(A.floating)),u=p||(L||!F?[f2(r)]:Ml(r)),f=_!=="none";if(!p&&f)u.push(...Hl(r,F,_,C));let R=[r,...u],B=await N1(l,d),U=[],O=((h=v.flip)==null?void 0:h.overflows)||[];if(H)U.push(B[x]);if(V){let g=rl(Z,o,C);U.push(B[g[0]],B[g[1]])}if(O=[...O,{placement:Z,overflows:U}],!U.every((g)=>g<=0)){var W,S;let g=(((W=v.flip)==null?void 0:W.index)||0)+1,j=R[g];if(j){if(!(V==="alignment"?i!==W5(j):!1)||O.every((J)=>W5(J.placement)===i?J.overflows[0]>0:!0))return{data:{index:g,overflows:O},reset:{placement:j}}}let z=(S=O.filter((D)=>D.overflows[0]<=0).sort((D,J)=>D.overflows[1]-J.overflows[1])[0])==null?void 0:S.placement;if(!z)switch(m){case"bestFit":{var k;let D=(k=O.filter((J)=>{if(f){let y=W5(J.placement);return y===i||y==="y"}return!0}).map((J)=>[J.placement,J.overflows.filter((y)=>y>0).reduce((y,_5)=>y+_5,0)]).sort((J,y)=>J[1]-y[1])[0])==null?void 0:k[0];if(D)z=D;break}case"initialPlacement":z=r;break}if(Z!==z)return{reset:{placement:z}}}return{}}}};function Vl(a,l){return{top:a.top-l.height,right:a.right-l.width,bottom:a.bottom-l.height,left:a.left-l.width}}function pl(a){return ol.some((l)=>a[l]>=0)}var dl=function(a){if(a===void 0)a={};return{name:"hide",options:a,async fn(l){let{rects:c}=l,{strategy:h="referenceHidden",...Z}=c1(a,l);switch(h){case"referenceHidden":{let v=await N1(l,{...Z,elementContext:"reference"}),o=Vl(v,c.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:pl(o)}}}case"escaped":{let v=await N1(l,{...Z,altBoundary:!0}),o=Vl(v,c.floating);return{data:{escapedOffsets:o,escaped:pl(o)}}}default:return{}}}}};var il=new Set(["left","top"]);async function Ov(a,l){let{placement:c,platform:h,elements:Z}=a,v=await(h.isRTL==null?void 0:h.isRTL(Z.floating)),o=h1(c),r=w1(c),M=W5(c)==="y",A=il.has(o)?-1:1,H=v&&M?-1:1,V=c1(l,a),{mainAxis:p,crossAxis:m,alignmentAxis:_}=typeof V==="number"?{mainAxis:V,crossAxis:0,alignmentAxis:null}:{mainAxis:V.mainAxis||0,crossAxis:V.crossAxis||0,alignmentAxis:V.alignmentAxis};if(r&&typeof _==="number")m=r==="end"?_*-1:_;return M?{x:m*H,y:p*A}:{x:p*A,y:m*H}}var xl=function(a){if(a===void 0)a=0;return{name:"offset",options:a,async fn(l){var c,h;let{x:Z,y:v,placement:o,middlewareData:r}=l,M=await Ov(l,a);if(o===((c=r.offset)==null?void 0:c.placement)&&(h=r.arrow)!=null&&h.alignmentOffset)return{};return{x:Z+M.x,y:v+M.y,data:{...M,placement:o}}}}},Ll=function(a){if(a===void 0)a={};return{name:"shift",options:a,async fn(l){let{x:c,y:h,placement:Z}=l,{mainAxis:v=!0,crossAxis:o=!1,limiter:r={fn:(d)=>{let{x,y:i}=d;return{x,y:i}}},...M}=c1(a,l),A={x:c,y:h},H=await N1(l,M),V=W5(h1(Z)),p=T4(V),m=A[p],_=A[V];if(v){let d=p==="y"?"top":"left",x=p==="y"?"bottom":"right",i=m+H[d],L=m-H[x];m=P4(i,m,L)}if(o){let d=V==="y"?"top":"left",x=V==="y"?"bottom":"right",i=_+H[d],L=_-H[x];_=P4(i,_,L)}let F=r.fn({...l,[p]:m,[V]:_});return{...F,data:{x:F.x-c,y:F.y-h,enabled:{[p]:v,[V]:o}}}}}},Cl=function(a){if(a===void 0)a={};return{options:a,fn(l){let{x:c,y:h,placement:Z,rects:v,middlewareData:o}=l,{offset:r=0,mainAxis:M=!0,crossAxis:A=!0}=c1(a,l),H={x:c,y:h},V=W5(Z),p=T4(V),m=H[p],_=H[V],F=c1(r,l),d=typeof F==="number"?{mainAxis:F,crossAxis:0}:{mainAxis:0,crossAxis:0,...F};if(M){let L=p==="y"?"height":"width",C=v.reference[p]-v.floating[L]+d.mainAxis,u=v.reference[p]+v.reference[L]-d.mainAxis;if(m<C)m=C;else if(m>u)m=u}if(A){var x,i;let L=p==="y"?"width":"height",C=il.has(h1(Z)),u=v.reference[V]-v.floating[L]+(C?((x=o.offset)==null?void 0:x[V])||0:0)+(C?0:d.crossAxis),f=v.reference[V]+v.reference[L]+(C?0:((i=o.offset)==null?void 0:i[V])||0)-(C?d.crossAxis:0);if(_<u)_=u;else if(_>f)_=f}return{[p]:m,[V]:_}}}},fl=function(a){if(a===void 0)a={};return{name:"size",options:a,async fn(l){var c,h;let{placement:Z,rects:v,platform:o,elements:r}=l,{apply:M=()=>{},...A}=c1(a,l),H=await N1(l,A),V=h1(Z),p=w1(Z),m=W5(Z)==="y",{width:_,height:F}=v.floating,d,x;if(V==="top"||V==="bottom")d=V,x=p===(await(o.isRTL==null?void 0:o.isRTL(r.floating))?"start":"end")?"left":"right";else x=V,d=p==="end"?"top":"bottom";let i=F-H.top-H.bottom,L=_-H.left-H.right,C=p1(F-H[d],i),u=p1(_-H[x],L),f=!l.middlewareData.shift,R=C,B=u;if((c=l.middlewareData.shift)!=null&&c.enabled.x)B=L;if((h=l.middlewareData.shift)!=null&&h.enabled.y)R=i;if(f&&!p){let O=B5(H.left,0),W=B5(H.right,0),S=B5(H.top,0),k=B5(H.bottom,0);if(m)B=_-2*(O!==0||W!==0?O+W:B5(H.left,H.right));else R=F-2*(S!==0||k!==0?S+k:B5(H.top,H.bottom))}await M({...l,availableWidth:B,availableHeight:R});let U=await o.getDimensions(r.floating);if(_!==U.width||F!==U.height)return{reset:{rects:!0}};return{}}}};function Q4(){return typeof window<"u"}function E1(a){if(ul(a))return(a.nodeName||"").toLowerCase();return"#document"}function U5(a){var l;return(a==null||(l=a.ownerDocument)==null?void 0:l.defaultView)||window}function Z1(a){var l;return(l=(ul(a)?a.ownerDocument:a.document)||window.document)==null?void 0:l.documentElement}function ul(a){if(!Q4())return!1;return a instanceof Node||a instanceof U5(a).Node}function Q5(a){if(!Q4())return!1;return a instanceof Element||a instanceof U5(a).Element}function n5(a){if(!Q4())return!1;return a instanceof HTMLElement||a instanceof U5(a).HTMLElement}function Rl(a){if(!Q4()||typeof ShadowRoot>"u")return!1;return a instanceof ShadowRoot||a instanceof U5(a).ShadowRoot}var Qv=new Set(["inline","contents"]);function I0(a){let{overflow:l,overflowX:c,overflowY:h,display:Z}=J5(a);return/auto|scroll|overlay|hidden|clip/.test(l+h+c)&&!Qv.has(Z)}var Jv=new Set(["table","td","th"]);function gl(a){return Jv.has(E1(a))}var Yv=[":popover-open",":modal"];function u2(a){return Yv.some((l)=>{try{return a.matches(l)}catch(c){return!1}})}var Xv=["transform","translate","scale","rotate","perspective"],qv=["transform","translate","scale","rotate","perspective","filter"],$v=["paint","layout","strict","content"];function J4(a){let l=Y4(),c=Q5(a)?J5(a):a;return Xv.some((h)=>c[h]?c[h]!=="none":!1)||(c.containerType?c.containerType!=="normal":!1)||!l&&(c.backdropFilter?c.backdropFilter!=="none":!1)||!l&&(c.filter?c.filter!=="none":!1)||qv.some((h)=>(c.willChange||"").includes(h))||$v.some((h)=>(c.contain||"").includes(h))}function Gl(a){let l=m1(a);while(n5(l)&&!t1(l)){if(J4(l))return l;else if(u2(l))return null;l=m1(l)}return null}function Y4(){if(typeof CSS>"u"||!CSS.supports)return!1;return CSS.supports("-webkit-backdrop-filter","none")}var Kv=new Set(["html","body","#document"]);function t1(a){return Kv.has(E1(a))}function J5(a){return U5(a).getComputedStyle(a)}function g2(a){if(Q5(a))return{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop};return{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function m1(a){if(E1(a)==="html")return a;let l=a.assignedSlot||a.parentNode||Rl(a)&&a.host||Z1(a);return Rl(l)?l.host:l}function Bl(a){let l=m1(a);if(t1(l))return a.ownerDocument?a.ownerDocument.body:a.body;if(n5(l)&&I0(l))return l;return Bl(l)}function O4(a,l,c){var h;if(l===void 0)l=[];if(c===void 0)c=!0;let Z=Bl(a),v=Z===((h=a.ownerDocument)==null?void 0:h.body),o=U5(Z);if(v){let r=X4(o);return l.concat(o,o.visualViewport||[],I0(Z)?Z:[],r&&c?O4(r):[])}return l.concat(Z,O4(Z,[],c))}function X4(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function Tl(a){let l=J5(a),c=parseFloat(l.width)||0,h=parseFloat(l.height)||0,Z=n5(a),v=Z?a.offsetWidth:c,o=Z?a.offsetHeight:h,r=R2(c)!==v||R2(h)!==o;if(r)c=v,h=o;return{width:c,height:h,$:r}}function Sl(a){return!Q5(a)?a.contextElement:a}function W0(a){let l=Sl(a);if(!n5(l))return I5(1);let c=l.getBoundingClientRect(),{width:h,height:Z,$:v}=Tl(l),o=(v?R2(c.width):c.width)/h,r=(v?R2(c.height):c.height)/Z;if(!o||!Number.isFinite(o))o=1;if(!r||!Number.isFinite(r))r=1;return{x:o,y:r}}var Iv=I5(0);function kl(a){let l=U5(a);if(!Y4()||!l.visualViewport)return Iv;return{x:l.visualViewport.offsetLeft,y:l.visualViewport.offsetTop}}function Wv(a,l,c){if(l===void 0)l=!1;if(!c||l&&c!==U5(a))return!1;return l}function G2(a,l,c,h){if(l===void 0)l=!1;if(c===void 0)c=!1;let Z=a.getBoundingClientRect(),v=Sl(a),o=I5(1);if(l)if(h){if(Q5(h))o=W0(h)}else o=W0(a);let r=Wv(v,c,h)?kl(v):I5(0),M=(Z.left+r.x)/o.x,A=(Z.top+r.y)/o.y,H=Z.width/o.x,V=Z.height/o.y;if(v){let p=U5(v),m=h&&Q5(h)?U5(h):h,_=p,F=X4(_);while(F&&h&&m!==_){let d=W0(F),x=F.getBoundingClientRect(),i=J5(F),L=x.left+(F.clientLeft+parseFloat(i.paddingLeft))*d.x,C=x.top+(F.clientTop+parseFloat(i.paddingTop))*d.y;M*=d.x,A*=d.y,H*=d.x,V*=d.y,M+=L,A+=C,_=U5(F),F=X4(_)}}return b1({width:H,height:V,x:M,y:A})}function q4(a,l){let c=g2(a).scrollLeft;if(!l)return G2(Z1(a)).left+c;return l.left+c}function Ol(a,l){let c=a.getBoundingClientRect(),h=c.left+l.scrollLeft-q4(a,c),Z=c.top+l.scrollTop;return{x:h,y:Z}}function nv(a){let{elements:l,rect:c,offsetParent:h,strategy:Z}=a,v=Z==="fixed",o=Z1(h),r=l?u2(l.floating):!1;if(h===o||r&&v)return c;let M={scrollLeft:0,scrollTop:0},A=I5(1),H=I5(0),V=n5(h);if(V||!V&&!v){if(E1(h)!=="body"||I0(o))M=g2(h);if(n5(h)){let m=G2(h);A=W0(h),H.x=m.x+h.clientLeft,H.y=m.y+h.clientTop}}let p=o&&!V&&!v?Ol(o,M):I5(0);return{width:c.width*A.x,height:c.height*A.y,x:c.x*A.x-M.scrollLeft*A.x+H.x+p.x,y:c.y*A.y-M.scrollTop*A.y+H.y+p.y}}function yv(a){return Array.from(a.getClientRects())}function jv(a){let l=Z1(a),c=g2(a),h=a.ownerDocument.body,Z=B5(l.scrollWidth,l.clientWidth,h.scrollWidth,h.clientWidth),v=B5(l.scrollHeight,l.clientHeight,h.scrollHeight,h.clientHeight),o=-c.scrollLeft+q4(a),r=-c.scrollTop;if(J5(h).direction==="rtl")o+=B5(l.clientWidth,h.clientWidth)-Z;return{width:Z,height:v,x:o,y:r}}var Ul=25;function zv(a,l){let c=U5(a),h=Z1(a),Z=c.visualViewport,v=h.clientWidth,o=h.clientHeight,r=0,M=0;if(Z){v=Z.width,o=Z.height;let H=Y4();if(!H||H&&l==="fixed")r=Z.offsetLeft,M=Z.offsetTop}let A=q4(h);if(A<=0){let H=h.ownerDocument,V=H.body,p=getComputedStyle(V),m=H.compatMode==="CSS1Compat"?parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0:0,_=Math.abs(h.clientWidth-V.clientWidth-m);if(_<=Ul)v-=_}else if(A<=Ul)v+=A;return{width:v,height:o,x:r,y:M}}var wv=new Set(["absolute","fixed"]);function bv(a,l){let c=G2(a,!0,l==="fixed"),h=c.top+a.clientTop,Z=c.left+a.clientLeft,v=n5(a)?W0(a):I5(1),o=a.clientWidth*v.x,r=a.clientHeight*v.y,M=Z*v.x,A=h*v.y;return{width:o,height:r,x:M,y:A}}function Dl(a,l,c){let h;if(l==="viewport")h=zv(a,c);else if(l==="document")h=jv(Z1(a));else if(Q5(l))h=bv(l,c);else{let Z=kl(a);h={x:l.x-Z.x,y:l.y-Z.y,width:l.width,height:l.height}}return b1(h)}function Ql(a,l){let c=m1(a);if(c===l||!Q5(c)||t1(c))return!1;return J5(c).position==="fixed"||Ql(c,l)}function Nv(a,l){let c=l.get(a);if(c)return c;let h=O4(a,[],!1).filter((r)=>Q5(r)&&E1(r)!=="body"),Z=null,v=J5(a).position==="fixed",o=v?m1(a):a;while(Q5(o)&&!t1(o)){let r=J5(o),M=J4(o);if(!M&&r.position==="fixed")Z=null;if(v?!M&&!Z:!M&&r.position==="static"&&!!Z&&wv.has(Z.position)||I0(o)&&!M&&Ql(a,o))h=h.filter((H)=>H!==o);else Z=r;o=m1(o)}return l.set(a,h),h}function Ev(a){let{element:l,boundary:c,rootBoundary:h,strategy:Z}=a,o=[...c==="clippingAncestors"?u2(l)?[]:Nv(l,this._c):[].concat(c),h],r=o[0],M=o.reduce((A,H)=>{let V=Dl(l,H,Z);return A.top=B5(V.top,A.top),A.right=p1(V.right,A.right),A.bottom=p1(V.bottom,A.bottom),A.left=B5(V.left,A.left),A},Dl(l,r,Z));return{width:M.right-M.left,height:M.bottom-M.top,x:M.left,y:M.top}}function tv(a){let{width:l,height:c}=Tl(a);return{width:l,height:c}}function sv(a,l,c){let h=n5(l),Z=Z1(l),v=c==="fixed",o=G2(a,!0,v,l),r={scrollLeft:0,scrollTop:0},M=I5(0);function A(){M.x=q4(Z)}if(h||!h&&!v){if(E1(l)!=="body"||I0(Z))r=g2(l);if(h){let m=G2(l,!0,v,l);M.x=m.x+l.clientLeft,M.y=m.y+l.clientTop}else if(Z)A()}if(v&&!h&&Z)A();let H=Z&&!h&&!v?Ol(Z,r):I5(0),V=o.left+r.scrollLeft-M.x-H.x,p=o.top+r.scrollTop-M.y-H.y;return{x:V,y:p,width:o.width,height:o.height}}function g6(a){return J5(a).position==="static"}function Pl(a,l){if(!n5(a)||J5(a).position==="fixed")return null;if(l)return l(a);let c=a.offsetParent;if(Z1(a)===c)c=c.ownerDocument.body;return c}function Jl(a,l){let c=U5(a);if(u2(a))return c;if(!n5(a)){let Z=m1(a);while(Z&&!t1(Z)){if(Q5(Z)&&!g6(Z))return Z;Z=m1(Z)}return c}let h=Pl(a,l);while(h&&gl(h)&&g6(h))h=Pl(h,l);if(h&&t1(h)&&g6(h)&&!J4(h))return c;return h||Gl(a)||c}var ev=async function(a){let l=this.getOffsetParent||Jl,c=this.getDimensions,h=await c(a.floating);return{reference:sv(a.reference,await l(a.floating),a.strategy),floating:{x:0,y:0,width:h.width,height:h.height}}};function ao(a){return J5(a).direction==="rtl"}var lo={convertOffsetParentRelativeRectToViewportRelativeRect:nv,getDocumentElement:Z1,getClippingRect:Ev,getOffsetParent:Jl,getElementRects:ev,getClientRects:yv,getDimensions:tv,getScale:W0,isElement:Q5,isRTL:ao};var Yl=N1,Xl=xl;var ql=Ll,$l=Fl,Kl=fl,G6=dl,Il=_l;var B6=Cl,Wl=(a,l,c)=>{let h=new Map,Z={platform:lo,...c},v={...Z.platform,_c:h};return ml(a,l,{...Z,platform:v})};function B2(a){let l=a.split("-");return{side:l[0],alignment:l[1]}}var nl=(a)=>{if(a.nodeName==="HTML")return a;return a.parentNode||a.host},co=(a)=>{var l;if(a.nodeType!==1)return{};let c=(l=a.ownerDocument)===null||l===void 0?void 0:l.defaultView;if(c)return c.getComputedStyle(a,null);return{}},s1=(a)=>{let l=a&&nl(a);if(!l)return document.body;switch(l.nodeName){case"HTML":case"BODY":return l.ownerDocument.body;case"#document":return l.body}let{overflow:c,overflowX:h,overflowY:Z}=co(l);if(/(auto|scroll|overlay)/.test(c+Z+h))return l;return s1(l)},U6=(a)=>{var l;let c=s1(a);return c?c!==((l=c.ownerDocument)===null||l===void 0?void 0:l.body):!1};function e1(a,l){if(l==="window")return a===null||a===void 0?void 0:a.ownerDocument.documentElement;if(l==="clippingParents")return"clippingAncestors";if(l==="scrollParent"){let c=s1(a);if(c.nodeName==="BODY")c=a===null||a===void 0?void 0:a.ownerDocument.documentElement;return c}return l}import*as Ou from"react";function yl(a){if(!a)return null;for(let l in a)if(l.indexOf("__reactInternalInstance$")===0||l.indexOf("__reactFiber$")===0)return a[l];throw Error("getReactFiber(): Failed to find a React Fiber on a node")}function U2(a,l){if(typeof a==="number")return a;let{start:c,end:h,...Z}=a,v=Z,o=l?"end":"start",r=l?"start":"end";if(a[o])v.left=a[o];if(a[r])v.right=a[r];return v}var ho=(a)=>({above:"top",below:"bottom",before:a?"right":"left",after:a?"left":"right"}),Zo=()=>({start:"start",end:"end",top:"start",bottom:"end",center:void 0}),vo=(a,l)=>{let c=a==="above"||a==="below",h=l==="top"||l==="bottom";return c&&h||!c&&!h},D2=(a,l,c)=>{let h=vo(l,a)?"center":a,Z=l&&ho(c)[l],v=h&&Zo()[h];if(Z&&v)return`${Z}-${v}`;return Z};var oo=()=>({top:"above",bottom:"below",right:"after",left:"before"}),ro=(a)=>{if(a==="above"||a==="below")return{start:"start",end:"end"};return{start:"top",end:"bottom"}},P2=(a)=>{let{side:l,alignment:c}=B2(a),h=oo()[l],Z=c&&ro(h)[c];return{position:h,alignment:Z}};var Mo={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 n0(a){if(a===void 0||a===null)return{};if(typeof a==="string")return Mo[a];return a}import*as $4 from"react";function T2(a,l,c){let h=$4.useRef(!0),[Z]=$4.useState(()=>({value:a,callback:l,facade:{get current(){return Z.value},set current(v){let o=Z.value;if(o!==v){if(Z.value=v,c&&h.current)return;Z.callback(v,o)}}}}));return s(()=>{h.current=!1},[]),Z.callback=l,Z.facade}function D6(a){let l;return()=>{if(!l)l=new Promise((c)=>{Promise.resolve().then(()=>{l=void 0,c(a())})});return l}}function Ho(a){if(a.nodeName==="BUTTON"||a.nodeName==="INPUT"||a.nodeName==="SELECT"||a.nodeName==="TEXTAREA"){var c;return!!((c=yl(a))===null||c===void 0?void 0:c.pendingProps.autoFocus)}return!1}function P6(a){return Ho(a)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}function T6(a){let{arrow:l,middlewareData:c}=a;if(!c.arrow||!l)return;let{x:h,y:Z}=c.arrow;Object.assign(l.style,{left:h!==null&&h!==void 0?`${h}px`:"",top:Z!==null&&Z!==void 0?`${Z}px`:""})}function S6(a){var l,c,h;let{container:Z,placement:v,middlewareData:o,strategy:r,lowPPI:M,coordinates:A,useTransform:H=!0}=a;if(!Z)return;if(Z.setAttribute(ll,v),Z.removeAttribute(C6),o.intersectionObserver.intersecting)Z.setAttribute(C6,"");if(Z.removeAttribute(f6),(l=o.hide)===null||l===void 0?void 0:l.escaped)Z.setAttribute(f6,"");if(Z.removeAttribute(R6),(c=o.hide)===null||c===void 0?void 0:c.referenceHidden)Z.setAttribute(R6,"");let V=((h=Z.ownerDocument.defaultView)===null||h===void 0?void 0:h.devicePixelRatio)||1,p=Math.round(A.x*V)/V,m=Math.round(A.y*V)/V;if(Object.assign(Z.style,{position:r}),H){Object.assign(Z.style,{transform:M?`translate(${p}px, ${m}px)`:`translate3d(${p}px, ${m}px, 0)`});return}Object.assign(Z.style,{left:`${p}px`,top:`${m}px`})}var k6=(a)=>{switch(a){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 y0(a){let l=[],c=a;while(c){let h=s1(c);if(a.ownerDocument.body===h){l.push(h);break}if(h.nodeName==="BODY"&&h!==a.ownerDocument.body){console.error("@fluentui/react-positioning: You are comparing two different documents! This is an unexpected error, please report this as a bug to the Fluent UI team ");break}l.push(h),c=h}return l}function jl(a,l){return new a.ResizeObserver(l)}function zl(a){let l=!1,{container:c,target:h,arrow:Z,strategy:v,middleware:o,placement:r,useTransform:M=!0,disableUpdateOnResize:A=!1}=a,H=c.ownerDocument.defaultView;if(!h||!c||!H)return{updatePosition:()=>{return},dispose:()=>{return}};let V=A?null:jl(H,(x)=>{if(x.every((L)=>{return L.contentRect.width>0&&L.contentRect.height>0}))F()}),p=!0,m=new Set;Object.assign(c.style,{position:"fixed",left:0,top:0,margin:0});let _=()=>{if(l)return;if(p){if(y0(c).forEach((x)=>m.add(x)),d5(h))y0(h).forEach((x)=>m.add(x));if(m.forEach((x)=>{x.addEventListener("scroll",F,{passive:!0})}),V===null||V===void 0||V.observe(c),d5(h))V===null||V===void 0||V.observe(h);p=!1}Object.assign(c.style,{position:v}),Wl(h,c,{placement:r,middleware:o,strategy:v}).then(({x,y:i,middlewareData:L,placement:C})=>{if(l)return;T6({arrow:Z,middlewareData:L}),S6({container:c,middlewareData:L,placement:C,coordinates:{x,y:i},lowPPI:((H===null||H===void 0?void 0:H.devicePixelRatio)||1)<=1,strategy:v,useTransform:M}),c.dispatchEvent(new CustomEvent(C2))}).catch((x)=>{console.error("[usePositioning]: Failed to calculate position",x)})},F=D6(()=>_()),d=()=>{if(l=!0,H)H.removeEventListener("scroll",F),H.removeEventListener("resize",F);m.forEach((x)=>{x.removeEventListener("scroll",F)}),m.clear(),V===null||V===void 0||V.disconnect()};if(H)H.addEventListener("scroll",F,{passive:!0}),H.addEventListener("resize",F);return F(),{updatePosition:F,dispose:d}}function wl(a,l){var c,h;let Z=a;return Boolean((Z==null||(c=Z.ownerDocument)==null?void 0:c.defaultView)&&Z instanceof Z.ownerDocument.defaultView[(h=void 0)!=null?h:"HTMLElement"])}var bl=(a)=>Boolean(wl(a)&&"__FUIDT_ELEMENT_METADATA__"in a&&a.parentElement!==null),Ao=(a)=>{let l=null,c=new MutationObserver((Z)=>{if(!l)return;for(let v of Z)if(v.type==="childList"&&Array.from(v.removedNodes).includes(l))h.withdraw()}),h={get selectedElement(){return l},select:(Z)=>{if(bl(Z))l=Z,c.observe(Z.parentElement,{childList:!0,subtree:!1});if(l&&Z){if(l.__FUIDT_ELEMENT_METADATA__.references.has(Z))return l}return h.withdraw(),l},withdraw:()=>{l=null,c.disconnect(),a.postMessage("__FUIDT_SERIALIZED_DATA_CHANGE__")}};return h},Vo=(a)=>{let{defaultView:l}=a;if(!l)return;if(!l.__FUIDT_CONTROLLER__)l.__FUIDT_CONTROLLER__=Ao(l)},po=(a)=>{var l,c;return Vo(a),(l=(c=a.defaultView)==null?void 0:c.__FUIDT_CONTROLLER__)!=null?l:null},mo=(a,l)=>{return JSON.parse(JSON.stringify(a,(h,Z)=>{if(wl(Z))return l.add(Z);if(typeof Z==="object"&&Z&&Object.getPrototypeOf(Z)!==Object.prototype&&Object.getPrototypeOf(Z)!==Array.prototype){if("toString"in Z)return Z.toString();return}return Z}))},_o=0,Fo=()=>"__FUIDT_HTML_ELEMENT_REFERENCE__:"+_o++,io=()=>{let a=new Map,l=new WeakMap;return{add:(h)=>{if(l.has(h))return l.get(h);let Z=Fo();return a.set(Z,h),l.set(h,Z),Z},get:(h)=>{let Z=a.get(h);if(Z&&l.has(Z))return Z},has:(h)=>{return l.has(h)}}},Nl=function(a,l){if(a===void 0)a=document;if(l===void 0)l=xo;return{name:"@floating-ui/devtools",fn:(c)=>{let{["__FUIDT_ELEMENT_METADATA__"]:h}=bl(c.elements.floating)?c.elements.floating:Object.assign(c.elements.floating,{["__FUIDT_ELEMENT_METADATA__"]:{references:io(),serializedData:[]}}),Z=mo(l(c),h.references);h.serializedData.unshift(Z);let v=po(a);if(h.serializedData.length>1&&c.elements.floating===(v==null?void 0:v.selectedElement)){var o;(o=a.defaultView)==null||o.postMessage("__FUIDT_SERIALIZED_DATA_CHANGE__")}return{}}}},xo=(a)=>({...a,type:"FloatingUIMiddleware"});import*as I6 from"react";function O6(){return{name:"coverTarget",fn:(a)=>{let{placement:l,rects:c,x:h,y:Z}=a,v=B2(l).side,o={x:h,y:Z};switch(v){case"bottom":o.y-=c.reference.height;break;case"top":o.y+=c.reference.height;break;case"left":o.x+=c.reference.width;break;case"right":o.x-=c.reference.width;break}return o}}}function Q6(a){let{hasScrollableElement:l,flipBoundary:c,container:h,fallbackPositions:Z=[],isRtl:v}=a,o=Z.reduce((r,M)=>{let{position:A,align:H}=n0(M),V=D2(H,A,v);if(V)r.push(V);return r},[]);return $l({...l&&{boundary:"clippingAncestors"},...c&&{altBoundary:!0,boundary:e1(h,c)},fallbackStrategy:"bestFit",...o.length&&{fallbackPlacements:o}})}function J6(){return{name:"intersectionObserver",fn:async(a)=>{let l=a.rects.floating,c=await Yl(a,{altBoundary:!0}),h=c.top<l.height&&c.top>0,Z=c.bottom<l.height&&c.bottom>0;return{data:{intersecting:h||Z}}}}}var Y6=(a)=>({name:"resetMaxSize",fn({middlewareData:l,elements:c}){var h;if((h=l.resetMaxSize)===null||h===void 0?void 0:h.maxSizeAlreadyReset)return{};let{applyMaxWidth:Z,applyMaxHeight:v}=a;if(Z)c.floating.style.removeProperty("box-sizing"),c.floating.style.removeProperty("max-width"),c.floating.style.removeProperty("width");if(v)c.floating.style.removeProperty("box-sizing"),c.floating.style.removeProperty("max-height"),c.floating.style.removeProperty("height");return{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function X6(a,l){let{container:c,overflowBoundary:h,overflowBoundaryPadding:Z,isRtl:v}=l;return Kl({...Z&&{padding:U2(Z,v)},...h&&{altBoundary:!0,boundary:e1(c,h)},apply({availableHeight:o,availableWidth:r,elements:M,rects:A}){let H=(m,_,F)=>{if(!m)return;if(M.floating.style.setProperty("box-sizing","border-box"),M.floating.style.setProperty(`max-${_}`,`${F}px`),A.floating[_]>F){M.floating.style.setProperty(_,`${F}px`);let d=_==="width"?"x":"y";if(!M.floating.style.getPropertyValue(`overflow-${d}`))M.floating.style.setProperty(`overflow-${d}`,"auto")}},{applyMaxWidth:V,applyMaxHeight:p}=a;H(V,"width",r),H(p,"height",o)}})}function El(a){if(!a)return a;if(typeof a==="number"||typeof a==="object")return a;return({rects:{floating:l,reference:c},placement:h})=>{let{position:Z,alignment:v}=P2(h);return a({positionedRect:l,targetRect:c,position:Z,alignment:v})}}function q6(a){let l=El(a);return Xl(l)}function $6(a){let{hasScrollableElement:l,shiftToCoverTarget:c,disableTether:h,overflowBoundary:Z,container:v,overflowBoundaryPadding:o,isRtl:r}=a;return ql({...l&&{boundary:"clippingAncestors"},...c&&{crossAxis:!0,limiter:B6({crossAxis:!0,mainAxis:!1})},...h&&{crossAxis:h==="all",limiter:B6({crossAxis:h!=="all",mainAxis:!1})},...o&&{padding:U2(o,r)},...Z&&{altBoundary:!0,boundary:e1(v,Z)}})}function K6(){return{name:"matchTargetSize",fn:async(a)=>{let{rects:{reference:l,floating:c},elements:{floating:h},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:Z=!1}={}}}=a;if(l.width===c.width||Z)return{};let{width:v}=l;if(h.style.setProperty("--fui-match-target-size",`${v}px`),!h.style.width)h.style.width="var(--fui-match-target-size)";return{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}}}var tl=(a)=>(l)=>{let{elements:{floating:c,reference:h}}=l,Z=new Set;if(d5(h))y0(h).forEach((r)=>Z.add(r));y0(c).forEach((r)=>Z.add(r));let v=Array.isArray(a.flipBoundary)?a.flipBoundary:d5(a.flipBoundary)?[a.flipBoundary]:[],o=Array.isArray(a.overflowBoundary)?a.overflowBoundary:d5(a.overflowBoundary)?[a.overflowBoundary]:[];return{type:"FluentUIMiddleware",middlewareState:l,options:a,initialPlacement:P2(l.initialPlacement),placement:P2(l.placement),flipBoundaries:v,overflowBoundaries:o,scrollParents:Array.from(Z)}};function Lo(a,l){let{align:c,arrowPadding:h,autoSize:Z,coverTarget:v,disableUpdateOnResize:o,flipBoundary:r,offset:M,overflowBoundary:A,pinned:H,position:V,unstable_disableTether:p,strategy:m,overflowBoundaryPadding:_,fallbackPositions:F,useTransform:d,matchTargetSize:x,shiftToCoverTarget:i}=l;return I6.useCallback((L,C)=>{return a({container:L,arrow:C,options:{autoSize:Z,disableUpdateOnResize:o,matchTargetSize:x,offset:M,strategy:m,coverTarget:v,flipBoundary:r,overflowBoundary:A,useTransform:d,overflowBoundaryPadding:_,pinned:H,arrowPadding:h,align:c,fallbackPositions:F,shiftToCoverTarget:i,position:V,unstable_disableTether:p}})},[Z,o,x,M,m,v,r,A,d,_,H,h,c,F,i,V,p,a])}function sl(a){let{dir:l,targetDocument:c}=n(),h=l==="rtl",Z=Lo(hl(),a),{positionFixed:v}=a;return I6.useCallback((o,r)=>{let M=U6(o),A=Z(o,r),{autoSize:H,disableUpdateOnResize:V,matchTargetSize:p,offset:m,coverTarget:_,flipBoundary:F,overflowBoundary:d,useTransform:x,overflowBoundaryPadding:i,pinned:L,position:C,arrowPadding:u,strategy:f,align:R,fallbackPositions:B,shiftToCoverTarget:U,unstable_disableTether:O}=A,W=k6(H),S=[W&&Y6(W),p&&K6(),m&&q6(m),_&&O6(),!L&&Q6({container:o,flipBoundary:F,hasScrollableElement:M,isRtl:h,fallbackPositions:B}),$6({container:o,hasScrollableElement:M,overflowBoundary:d,disableTether:O,overflowBoundaryPadding:i,isRtl:h,shiftToCoverTarget:U}),W&&X6(W,{container:o,overflowBoundary:d,overflowBoundaryPadding:i,isRtl:h}),J6(),r&&Il({element:r,padding:u}),G6({strategy:"referenceHidden"}),G6({strategy:"escaped"}),c&&Nl(c,tl(A))].filter(Boolean);return{placement:D2(R,C,h),middleware:S,strategy:(f!==null&&f!==void 0?f:v)?"fixed":"absolute",disableUpdateOnResize:V,useTransform:x}},[Z,h,c,v])}function W6(a){let l=Y5.useRef(null),c=Y5.useRef(null),h=Y5.useRef(null),Z=Y5.useRef(null),v=Y5.useRef(null),{enabled:o=!0}=a,r=sl(a),M=Y5.useCallback(()=>{if(l.current)l.current.dispose();l.current=null;var _;let F=(_=h.current)!==null&&_!==void 0?_:c.current;if(o&&G0()&&F&&Z.current)l.current=zl({container:Z.current,target:F,arrow:v.current,...r(Z.current,v.current)})},[o,r]),A=T((_)=>{h.current=_,M()});Y5.useImperativeHandle(a.positioningRef,()=>({updatePosition:()=>{var _;return(_=l.current)===null||_===void 0?void 0:_.updatePosition()},setTarget:(_)=>{if(a.target){let F=Error();console.warn("Imperative setTarget should not be used at the same time as target option"),console.warn(F.stack)}A(_)}}),[a.target,A]),s(()=>{var _;A((_=a.target)!==null&&_!==void 0?_:null)},[a.target,A]),s(()=>{M()},[M]),Y5.useEffect(()=>{if(Z.current){var _;let F=Z.current,d=(_=F.ownerDocument)===null||_===void 0?void 0:_.createTreeWalker(F,NodeFilter.SHOW_ELEMENT,{acceptNode:P6});while(d.nextNode()){let x=d.currentNode;console.warn("usePositioning():",x),console.warn(['usePositioning(): ^ this node contains "autoFocus" prop on a React element. This can break the initial',"positioning of an element and cause a window jump effect. This issue occurs because React polyfills",'"autoFocus" behavior to solve inconsistencies between different browsers:',"https://github.com/facebook/react/issues/11851#issuecomment-351787078",`
|
|
`,'However, ".focus()" in this case occurs before any other React effects will be executed',"(React.useEffect(), componentDidMount(), etc.) and we can not prevent this behavior. If you really",'want to use "autoFocus" please add "position: fixed" to styles of the element that is wrapped by','"Popper".',`In general, it's not recommended to use "autoFocus" as it may break accessibility aspects:`,"https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-autofocus.md",`
|
|
`,'We suggest to use the "trapFocus" prop on Fluent components or a catch "ref" and then use','"ref.current.focus" in React.useEffect():',"https://reactjs.org/docs/refs-and-the-dom.html#adding-a-ref-to-a-dom-element"].join(" "))}}},[]);let H=T2(null,(_)=>{if(c.current!==_)c.current=_,M()}),V=T(()=>{var _;return(_=a.onPositioningEnd)===null||_===void 0?void 0:_.call(a)}),p=T2(null,(_)=>{if(Z.current!==_){var F;(F=Z.current)===null||F===void 0||F.removeEventListener(C2,V),_===null||_===void 0||_.addEventListener(C2,V),Z.current=_,M()}}),m=T2(null,(_)=>{if(v.current!==_)v.current=_,M()});return{targetRef:H,containerRef:p,arrowRef:m}}import*as el from"react";var n6=(a)=>{let[l,c]=el.useState(a);return[l,(Z)=>{if(Z===void 0||Z===null){c(void 0);return}let v;if(!(Z instanceof MouseEvent))v=Z.nativeEvent;else v=Z;if(!(v instanceof MouseEvent))console.error("usePositioningMouseTarget should only be used with MouseEvent");let o=al(v);c(o)}]};import*as R5 from"react";function ac(){let a=!1,l=[];return{isActive(){return a},toggleActive(c){if(a===c)return;a=c,l.forEach((h)=>h(a))},subscribe(c){return l.push(c),()=>{let h=l.indexOf(c);if(h>-1)l.splice(h,1)}}}}var Hc=C7(lc(),1);import*as V5 from"react";function y6(a,l){return{topLeft:[a.left-l[0],a.top-l[1]],topRight:[a.right-l[0],a.top-l[1]],bottomRight:[a.right-l[0],a.bottom-l[1]],bottomLeft:[a.left-l[0],a.bottom-l[1]]}}function cc(a,l){return Math.sqrt((a[0]-l[0])**2+(a[1]-l[1])**2)}function fo(a,l){let c=cc(a,l);if(c===0)return[0,0];return[(a[0]-l[0])/c,(a[1]-l[1])/c]}function hc(a,l,c){let h=[(a[0]+l[0])/2,(a[1]+l[1])/2],Z=fo([c[0],c[1]],[h[0],h[1]]),v=cc([h[0],h[1]],[c[0],c[1]]);return[h[0]+Z[0]*(v+20),h[1]+Z[1]*(v+20)]}function S2(a){return`M ${a} z`}var Zc=$({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 vc(a){if(a.width<=0||a.height<=0)return"";let l="";return l+=`M ${a.x},${a.y} `,l+=`V ${a.y+a.height} `,l+=`H ${a.x+a.width} `,l+=`V ${a.y} `,l+=`H ${a.x} `,l+="Z ",l}function oc(a,l,c,h){let Z=`M 0,0 H ${a} V ${l} H 0 Z `;return Z+=vc(c),Z+=vc(h),Z}var rc={top:0,right:0,bottom:0,left:0,width:0,height:0,x:0,y:0,toJSON(){return""}};function Mc(a,l){return a.top===l.top&&a.right===l.right&&a.bottom===l.bottom&&a.left===l.left&&a.width===l.width&&a.height===l.height}function Ro(a,l){return a[0]===l[0]&&a[1]===l[1]}var Ac=V5.memo((a)=>{let{debug:l,onMouseEnter:c,onMouseMove:h,onMouseLeave:Z,stateStore:v}=a,o=S5(),r=Zc(),M=Hc.useSyncExternalStore(v.subscribe,v.isActive),A=V5.useRef(null),[H,V]=V5.useState(()=>({containerRect:rc,targetRect:rc,mouseCoordinates:[0,0]}));V5.useImperativeHandle(a.imperativeRef,()=>({updateSVG(g){V((j)=>{if(Mc(j.containerRect,g.containerRect)&&Mc(j.targetRect,g.targetRect)&&Ro(j.mouseCoordinates,g.mouseCoordinates))return j;return g})}}),[]);let{containerRect:p,targetRect:m,mouseCoordinates:_}=H,F=Math.min(m.top,p.top),d=Math.min(m.left,p.left),x=Math.max(m.bottom,p.bottom),i=Math.max(m.right,p.right),L=y6(p,[d,F]),C=y6(m,[d,F]),u=[_[0]-d,_[1]-F],f=hc(L.topLeft,L.bottomRight,u),R=[f,L.topLeft,L.topRight],B=[f,L.topRight,L.bottomRight],U=[f,L.bottomRight,L.bottomLeft],O=[f,L.bottomLeft,L.topLeft],W=i-d,S=x-F,k=oc(W,S,{x:C.topLeft[0],y:C.topLeft[1],width:m.width,height:m.height},{x:L.topLeft[0],y:L.topLeft[1],width:p.width,height:p.height});return V5.createElement("div",{className:Q(r.wrapper,M&&r.wrapperActive),"data-safe-zone":""},M?V5.createElement("svg",{"aria-hidden":!0,className:r.svg,xmlns:"http://www.w3.org/2000/svg",ref:A,style:{width:`${W}px`,height:`${S}px`,transform:`translate(${d}px, ${F}px)`}},V5.createElement("g",{className:Q(r.triangle,l&&r.triangleDebug),clipPath:`url(#${o})`,onMouseEnter:c,onMouseMove:h,onMouseLeave:Z},V5.createElement("path",{d:S2(R)}),V5.createElement("path",{d:S2(B)}),V5.createElement("path",{d:S2(U)}),V5.createElement("path",{d:S2(O)})),V5.createElement("clipPath",{id:o},V5.createElement("path",{d:k})),l&&V5.createElement("path",{className:r.rectDebug,d:k})):null)});var uo=2000;function j6({debug:a=!1,disabled:l=!1,onSafeZoneEnter:c,onSafeZoneMove:h,onSafeZoneLeave:Z,onSafeZoneTimeout:v,timeout:o=1500}={}){let[r]=R5.useState(ac),M=R5.useRef(null),A=R5.useRef(null),H=R5.useRef(null),[V,p]=w5(),[m,_]=j3(),F=R5.useRef({x:0,y:0}),d=R5.useMemo(()=>{if(l)return()=>{};let u=null;function f(){p(),r.toggleActive(!1)}return(R)=>{if(R===null)u===null||u===void 0||u.removeEventListener("mouseenter",f);u=R,R===null||R===void 0||R.addEventListener("mouseenter",f)}},[p,l,r]),x=R5.useMemo(()=>{if(l)return()=>{};let u=null;function f(R){if(F.current={x:R.clientX,y:R.clientY},!r.isActive())r.toggleActive(!0);V(()=>{r.toggleActive(!1)},uo)}return(R)=>{if(R===null)_(),p(),u===null||u===void 0||u.removeEventListener("mousemove",f);u=R,R===null||R===void 0||R.addEventListener("mousemove",f)}},[_,p,l,r,V]),i=T((u)=>{c===null||c===void 0||c(u),V(()=>{r.toggleActive(!1),v===null||v===void 0||v()},o)}),L=T((u)=>{V(()=>{r.toggleActive(!1),v===null||v===void 0||v()},o),h===null||h===void 0||h(u)}),C=T((u)=>{Z===null||Z===void 0||Z(u)});return R5.useEffect(()=>{return r.subscribe((u)=>{if(u){let f=function(){let R=A.current,B=H.current;if(R&&B){var U;(U=M.current)===null||U===void 0||U.updateSVG({containerRect:R.getBoundingClientRect(),mouseCoordinates:[F.current.x,F.current.y],targetRect:B.getBoundingClientRect()})}m(f)};f();return}_()})},[_,m,r]),{containerRef:H5(A,d),targetRef:H5(H,x),elementToRender:R5.useMemo(()=>l?null:R5.createElement(Ac,{debug:a,onMouseEnter:i,onMouseMove:L,onMouseLeave:C,imperativeRef:M,stateStore:r}),[l,a,i,L,C,r])}}import*as cB from"react";import*as K4 from"react";function Vc(a){if(d5(a))return{element:a};if(typeof a==="object"){if(a===null)return{element:null};return a}return{}}import*as v1 from"react";var pc=$({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;}"]});var mc=v1.useInsertionEffect,go=(a)=>{let{className:l,dir:c,focusVisibleRef:h,targetNode:Z}=a,v=v1.useMemo(()=>{if(Z===void 0||a.disabled)return null;let o=Z.ownerDocument.createElement("div");return Z.appendChild(o),o},[Z,a.disabled]);return v1.useMemo(()=>{if(!v)return;v.className=l,v.setAttribute("dir",c),v.setAttribute("data-portal-node","true"),h.current=v},[l,c,v,h]),v1.useEffect(()=>{return()=>{v===null||v===void 0||v.remove()}},[v]),v},Go=()=>{let a=void 0;function l(h,Z){if(a)return a;if(Z)a=h.ownerDocument.createElement("div"),h.appendChild(a);return a}function c(){if(a)a.remove(),a=void 0}return{get:l,dispose:c}},Bo=(a)=>{let{className:l,dir:c,focusVisibleRef:h,targetNode:Z}=a,[v]=v1.useState(Go),o=v1.useMemo(()=>{if(Z===void 0||a.disabled)return null;return new Proxy({},{get(r,M){if(M==="nodeType")return 1;if(M==="remove"){let V=v.get(Z,!1);if(V){if(V.childNodes.length===0)v.dispose()}return()=>{}}let A=v.get(Z,!0),H=A?A[M]:void 0;if(typeof H==="function")return H.bind(A);return H},set(r,M,A){let H=M==="_virtual"||M==="focusVisible",V=H?v.get(Z,!1):v.get(Z,!0);if(H&&!V)return!0;if(V)return Object.assign(V,{[M]:A}),!0;return!1}})},[v,Z,a.disabled]);return mc(()=>{if(!o)return;let r=l.split(" ").filter(Boolean);return o.classList.add(...r),o.setAttribute("dir",c),o.setAttribute("data-portal-node","true"),h.current=o,()=>{o.classList.remove(...r),o.removeAttribute("dir")}},[l,c,o,h]),v1.useEffect(()=>{return()=>{o===null||o===void 0||o.remove()}},[o]),o},Uo=mc?Bo:go,_c=(a)=>{let{targetDocument:l,dir:c}=n(),h=K7(),Z=A4(),v=pc(),o=r2(),r={dir:c,disabled:a.disabled,focusVisibleRef:Z,className:Q(o,v.root,a.className),targetNode:h!==null&&h!==void 0?h:l===null||l===void 0?void 0:l.body};return Uo(r)};var z6=(a)=>{let{element:l,className:c}=Vc(a.mountNode),h=K4.useRef(null),Z=_c({disabled:!!l,className:c}),v=l!==null&&l!==void 0?l:Z,o={children:a.children,mountNode:v,virtualParentRootRef:h};return K4.useEffect(()=>{if(!v)return;let r=h.current,M=v.contains(r);if(r&&!M)return A2(v,r),()=>{A2(v,void 0)}},[h,v]),o};import*as Fc from"react-dom";import*as j0 from"react";var w6=(a)=>{return j0.createElement("span",{hidden:!0,ref:a.virtualParentRootRef},a.mountNode&&Fc.createPortal(j0.createElement(j0.Fragment,null,a.children,j0.createElement("span",{hidden:!0})),a.mountNode))};var a0=(a)=>{let l=z6(a);return w6(l)};a0.displayName="Portal";import*as xc from"react";var z0=(a)=>{E(a);let{iconOnly:l,iconPosition:c}=a;return A5(a.root,{children:[c!=="after"&&a.icon&&I(a.icon,{}),!l&&a.root.children,c==="after"&&a.icon&&I(a.icon,{})]})};import*as FB from"react";import*as I4 from"react";var dc=I4.createContext(void 0),Do={},mB=dc.Provider,ic=()=>{var a;return(a=I4.useContext(dc))!==null&&a!==void 0?a:Do};var k2=(a,l)=>{let{size:c}=ic(),{appearance:h="secondary",as:Z="button",disabled:v=!1,disabledFocusable:o=!1,icon:r,iconPosition:M="before",shape:A="rounded",size:H=c!==null&&c!==void 0?c:"medium"}=a,V=K.optional(r,{elementType:"span"});return{appearance:h,disabled:v,disabledFocusable:o,iconPosition:M,shape:A,size:H,iconOnly:Boolean((V===null||V===void 0?void 0:V.children)&&!a.children),components:{root:"button",icon:"span"},root:K.always(l5(Z,a1(a.as,a)),{elementType:"button",defaultProps:{ref:l,type:Z==="button"?"button":void 0}}),icon:V}};var O2={root:"fui-Button",icon:"fui-Button__icon"};var RB=`calc(${f5.strokeWidthThin} + 0.25px)`,Po=N("r1alrhcs",null,{r:[".r1alrhcs{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;text-decoration-line:none;vertical-align:middle;margin:0;overflow:hidden;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);font-family:var(--fontFamilyBase);outline-style:none;padding:5px var(--spacingHorizontalM);min-width:96px;border-radius:var(--borderRadiusMedium);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);transition-duration:var(--durationFaster);transition-property:background,border,color;transition-timing-function:var(--curveEasyEase);}",".r1alrhcs:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}",".r1alrhcs:hover:active{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}",".r1alrhcs[data-fui-focus-visible]{border-color:var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);border-width:1px;outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);box-shadow:0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;z-index:1;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1alrhcs{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1alrhcs:focus{border-color:ButtonText;}.r1alrhcs:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1alrhcs:hover:active{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}","@supports (-moz-appearance:button){.r1alrhcs[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),To=N("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);}"]),So=$({outline:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",iro3zm:"fwiml72"},primary:{De3pzq:"ffp7eso",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",iro3zm:"fnp9lpt",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1d6v5y2",By8wz76:"f1nz3ub2",Bcq6wej:"fag2qd2",Jcjdmf:["fmvhcg7","f14bpyus"],sc4o1m:"f1o3dhpw",Bosien3:["f14bpyus","fmvhcg7"],B7iucu3:"fqc85l4",B8gzw0y:"f1h3a8gf",Bbkh6qg:"fkiggi6",F230oe:"f8gmj8i",Bdw8ktp:["f1ap8nzx","fjag8bx"],Bj1xduy:"f1igan7k",Bhh2cfd:["fjag8bx","f1ap8nzx"],Bahaeuw:"f1v3eptx",rxnm8d:"fpelvsg",Bso50sa:"f1r9enuy",B65bq0w:["fdvt4n0","f1grx941"],Buont6p:"f1l34yyb",B0o9ejx:["f1grx941","fdvt4n0"],Dcq74g:"fqfbdvs"},secondary:{},subtle:{De3pzq:"fhovq9v",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bbdnnc7:"fy5bs14",iro3zm:"fsv2rcd",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1omzyqd",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",x3br3k:"fj8yq94",Bahaeuw:"f1v3eptx",Buhizc3:"fivsta0",Dcq74g:"fqfbdvs",zyxd5v:"f1wfsnb3"},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1fg1p5m",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",Bbkh6qg:"fxoo9op",Bahaeuw:"f1v3eptx",rxnm8d:"f11slz88",Dcq74g:"fqfbdvs"},circular:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9"},rounded:{},square:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1fabniw"},small:{Bf4jedk:"fh7ncta",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fneth5b",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},smallWithIcon:{Byoj8tv:"f1brlhvm",z8tnut:"f1sl3k7w"},medium:{},large:{Bf4jedk:"f14es27b",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f4db1ww",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},largeWithIcon:{Byoj8tv:"fy7v416",z8tnut:"f1a1bwwz"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".f1fabniw{border-radius:var(--borderRadiusNone);}",{p:-1}],".fh7ncta{min-width:64px;}",[".fneth5b{padding:3px var(--spacingHorizontalS);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1brlhvm{padding-bottom:1px;}",".f1sl3k7w{padding-top:1px;}",".f14es27b{min-width:96px;}",[".f4db1ww{padding:8px var(--spacingHorizontalL);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fy7v416{padding-bottom:7px;}",".f1a1bwwz{padding-top:7px;}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".ft1hn21:hover .fui-Icon-filled{display:inline;}",".fuxngvv:hover .fui-Icon-regular{display:none;}",".fy5bs14:hover .fui-Button__icon{color:var(--colorNeutralForeground2BrandHover);}",".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}",".f1dfjoow:hover:active .fui-Icon-filled{display:inline;}",".f1j98vj9:hover:active .fui-Icon-regular{display:none;}",".fj8yq94:hover:active .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1nz3ub2{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fag2qd2{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14bpyus{border-left-color:HighlightText;}.fmvhcg7{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o3dhpw{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fqc85l4{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkiggi6:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f8gmj8i:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ap8nzx:hover{border-right-color:Highlight;}.fjag8bx:hover{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1igan7k:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1v3eptx:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fpelvsg:hover:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1r9enuy:hover:active{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1grx941:hover:active{border-left-color:Highlight;}.fdvt4n0:hover:active{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1l34yyb:hover:active{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fqfbdvs:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fivsta0:hover .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wfsnb3:hover:active .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fxoo9op:hover{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f11slz88:hover:active{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}]]}),ko=$({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bfinmwp:"f15x8b5r",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bbdnnc7:"f1al02dq",iro3zm:"f1t6o4dc",b661bw:"f10ztigi",Bk6r4ia:["f1ft5sdu","f1gzf82w"],B9zn80p:"f12zbtn2",Bpld233:["f1gzf82w","f1ft5sdu"],B2d53fq:"fcvwxyo",c3iz72:"f8w4c43",em6i61:"f1ol4fw6",vm6p8p:"f1q1lw4e",x3br3k:"f1dwjv2g"},highContrast:{By8wz76:"f14ptb23",Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"],B7iucu3:"f1cyfu5x",Grqk0h:"f127ot8j",h3ptyc:"f19etb0b",Buw724y:["f4f984j","fw441p0"],Buk7464:"f3d22hf",Hwei09:["fw441p0","f4f984j"],Bbkh6qg:"fj8k9ua",F230oe:"fifrq0d",Bdw8ktp:["f196mwp7","fnekfq"],Bj1xduy:"f1l6uprw",Bhh2cfd:["fnekfq","f196mwp7"],Bahaeuw:"fa9u7a5",Buhizc3:"f1m71e0y",rxnm8d:"f1xxg0vq",Bso50sa:"f16oldlo",B65bq0w:["f17g64ui","fqbrke7"],Buont6p:"fjvf891",B0o9ejx:["fqbrke7","f17g64ui"],Dcq74g:"f1efp33f",zyxd5v:"f1gue8i"},outline:{De3pzq:"f1c21dwh",Jwef8y:"f9ql6rf",iro3zm:"f3h1zc4"},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f15x8b5r .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1al02dq:hover .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}",".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f8w4c43:hover:active{cursor:not-allowed;}",".f1ol4fw6:hover:active .fui-Icon-filled{display:none;}",".f1q1lw4e:hover:active .fui-Icon-regular{display:inline;}",".f1dwjv2g:hover:active .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f3h1zc4:hover:active{background-color:var(--colorTransparentBackground);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}"],m:[["@media (forced-colors: active){.f14ptb23{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f127ot8j .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f19etb0b:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4f984j:focus{border-right-color:GrayText;}.fw441p0:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3d22hf:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fj8k9ua:hover{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fifrq0d:hover{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f196mwp7:hover{border-right-color:GrayText;}.fnekfq:hover{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1l6uprw:hover{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fa9u7a5:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1m71e0y:hover .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1xxg0vq:hover:active{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16oldlo:hover:active{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f17g64ui:hover:active{border-right-color:GrayText;}.fqbrke7:hover:active{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjvf891:hover:active{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1efp33f:hover:active{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1gue8i:hover:active .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),Oo=$({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;}}"]}),Qo=$({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;}"]}),Jo=$({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);}"]}),Q2=(a)=>{let l=Po(),c=To(),h=So(),Z=ko(),v=Oo(),o=Qo(),r=Jo(),{appearance:M,disabled:A,disabledFocusable:H,icon:V,iconOnly:p,iconPosition:m,shape:_,size:F}=a;if(a.root.className=Q(O2.root,l,M&&h[M],h[F],V&&F==="small"&&h.smallWithIcon,V&&F==="large"&&h.largeWithIcon,h[_],(A||H)&&Z.base,(A||H)&&Z.highContrast,M&&(A||H)&&Z[M],M==="primary"&&v.primary,v[F],v[_],p&&o[F],a.root.className),a.icon)a.icon.className=Q(O2.icon,c,!!a.root.children&&r[m],r[F],a.icon.className);return a};var y5=xc.forwardRef((a,l)=>{let c=k2(a,l);return Q2(c),t("useButtonStyles_unstable")(c),z0(c)});y5.displayName="Button";import*as W4 from"react";var Lc=W4.createContext(void 0),Yo=Lc.Provider,b6=()=>W4.useContext(Lc);function n4(a,l){return Cc(b6(),a,l)}function Cc(a,l,c){if(!a)return l;l={...l};let{generatedControlId:h,hintId:Z,labelFor:v,labelId:o,required:r,validationMessageId:M,validationState:A}=a;if(h){var H,V;(V=(H=l).id)!==null&&V!==void 0||(H.id=h)}if(o&&(!(c===null||c===void 0?void 0:c.supportsLabelFor)||v!==l.id)){var p,m,_;(_=(p=l)[m="aria-labelledby"])!==null&&_!==void 0||(p[m]=o)}if(M||Z)l["aria-describedby"]=[M,Z,l===null||l===void 0?void 0:l["aria-describedby"]].filter(Boolean).join(" ");if(A==="error"){var F,d,x;(x=(F=l)[d="aria-invalid"])!==null&&x!==void 0||(F[d]=!0)}if(r)if(c===null||c===void 0?void 0:c.supportsRequired){var i,L;(L=(i=l).required)!==null&&L!==void 0||(i.required=!0)}else{var C,u,f;(f=(C=l)[u="aria-required"])!==null&&f!==void 0||(C[u]=!0)}if(c===null||c===void 0?void 0:c.supportsSize){var R,B;(B=(R=l).size)!==null&&B!==void 0||(R.size=a.size)}return l}import*as fc from"react";import*as KB from"react";var y4=(a,l)=>{let{disabled:c=!1,required:h=!1,weight:Z="regular",size:v="medium"}=a;return{disabled:c,required:K.optional(h===!0?"*":h||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:Z,size:v,components:{root:"label",required:"span"},root:K.always(l5("label",{ref:l,...a}),{elementType:"label"})}};var j4=(a)=>{return E(a),A5(a.root,{children:[a.root.children,a.required&&I(a.required,{})]})};var z4={root:"fui-Label",required:"fui-Label__required"},Xo=$({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)"}]]}),w4=(a)=>{let l=Xo();if(a.root.className=Q(z4.root,l.root,a.disabled&&l.disabled,l[a.size],a.weight==="semibold"&&l.semibold,a.root.className),a.required)a.required.className=Q(z4.required,l.required,a.disabled&&l.disabled,a.required.className);return a};var l0=fc.forwardRef((a,l)=>{let c=y4(a,l);return w4(c),t("useLabelStyles_unstable")(c),j4(c)});l0.displayName="Label";import*as Rc from"react";import*as MU from"react";var J2=(a,l)=>{a=n4(a,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});let c=W3();var h;let{size:Z="medium",appearance:v=(h=c.inputDefaultAppearance)!==null&&h!==void 0?h:"outline",onChange:o}=a;if(v==="filled-darker-shadow"||v==="filled-lighter-shadow")console.error("The 'filled-darker-shadow' and 'filled-lighter-shadow' appearances are deprecated and will be removed in the future.");let[r,M]=$5({state:a.value,defaultState:a.defaultValue,initialState:""}),A=X3({props:a,primarySlotTagName:"input",excludedPropNames:["size","onChange","value","defaultValue"]}),H={size:Z,appearance:v,components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:K.always(a.input,{defaultProps:{type:"text",ref:l,...A.primary},elementType:"input"}),contentAfter:K.optional(a.contentAfter,{elementType:"span"}),contentBefore:K.optional(a.contentBefore,{elementType:"span"}),root:K.always(a.root,{defaultProps:A.root,elementType:"span"})};return H.input.value=r,H.input.onChange=T((V)=>{let p=V.target.value;o===null||o===void 0||o(V,{value:p}),M(p)}),H};var Y2=(a)=>{return E(a),A5(a.root,{children:[a.contentBefore&&I(a.contentBefore,{}),I(a.input,{}),a.contentAfter&&I(a.contentAfter,{})]})};var c0={root:"fui-Input",input:"fui-Input__input",contentBefore:"fui-Input__contentBefore",contentAfter:"fui-Input__contentAfter"};var xU={root:{small:f5.spacingHorizontalSNudge,medium:f5.spacingHorizontalMNudge,large:f5.spacingHorizontalM},input:{small:f5.spacingHorizontalXXS,medium:f5.spacingHorizontalXXS,large:f5.spacingHorizontalSNudge},combined:{small:f5.spacingHorizontalS,medium:f5.spacingHorizontalM,large:`calc(${f5.spacingHorizontalM} + ${f5.spacingHorizontalSNudge})`}},qo=N("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;}}"]}),$o=$({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;}"]}),Ko=N("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;}"]),Io=$({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);}"]}),Wo=N("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),no=$({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;}"]}),X2=(a)=>{let{size:l,appearance:c}=a,h=a.input.disabled,Z=`${a.input["aria-invalid"]}`==="true",v=c.startsWith("filled"),o=$o(),r=Io(),M=no();a.root.className=Q(c0.root,qo(),o[l],a.contentBefore&&o[`${l}WithContentBefore`],a.contentAfter&&o[`${l}WithContentAfter`],o[c],!h&&c==="outline"&&o.outlineInteractive,!h&&c==="underline"&&o.underlineInteractive,!h&&v&&o.filledInteractive,v&&o.filled,!h&&Z&&o.invalid,h&&o.disabled,a.root.className),a.input.className=Q(c0.input,Ko(),r[l],a.contentBefore&&r[`${l}WithContentBefore`],a.contentAfter&&r[`${l}WithContentAfter`],h&&r.disabled,a.input.className);let A=[Wo(),h&&M.disabled,M[l]];if(a.contentBefore)a.contentBefore.className=Q(c0.contentBefore,...A,a.contentBefore.className);if(a.contentAfter)a.contentAfter.className=Q(c0.contentAfter,...A,a.contentAfter.className);return a};var h0=Rc.forwardRef((a,l)=>{let c=J2(a,l);return X2(c),t("useInputStyles_unstable")(c),Y2(c)});h0.displayName="Input";import*as SU from"react";var b4=I1(void 0),yo={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},N6=b4.Provider,b=(a)=>W1(b4,(l=yo)=>a(l));import*as N4 from"react";var uc=N4.createContext(void 0),jo=!1,E6=uc.Provider,t6=()=>{var a;return(a=N4.useContext(uc))!==null&&a!==void 0?a:jo};import*as JU from"react";var E4=I1(void 0),zo={checkedValues:{},setFocusByFirstCharacter:()=>null,toggleCheckbox:()=>null,selectRadio:()=>null,hasIcons:!1,hasCheckmarks:!1},s6=E4.Provider,w0=(a)=>W1(E4,(l=zo)=>a(l));import*as dD from"react";import*as _1 from"react";import*as gc from"react";var Z0="fuimenuenter",e6=(a)=>{let{refs:l,callback:c,element:h,disabled:Z}=a,v=T((o)=>{let r=l[0],M=o.target;var A;if(!$1((A=r.current)!==null&&A!==void 0?A:null,M)&&!Z)c(o)});gc.useEffect(()=>{if(h==null)return;if(!Z)h.addEventListener(Z0,v);return()=>{h.removeEventListener(Z0,v)}},[v,h,Z])},a8=(a,l)=>{a.dispatchEvent(new CustomEvent(Z0,{bubbles:!0,detail:{nativeEvent:l}}))};function v0(){let a=b((c)=>c.isSubmenu),l=n1(E4);return a||l}import*as t4 from"react";var s4=(a)=>{let{targetDocument:l}=n(),c=b((v)=>v.triggerRef),h=b((v)=>v.inline),Z=t4.useRef(null);return t4.useEffect(()=>{let v=Z.current,o="";do{var r;if(v=(r=v===null||v===void 0?void 0:v.parentElement)!==null&&r!==void 0?r:null,v===null||v===void 0?void 0:v.classList.contains("fui-MenuList"))break;else if(v===null||v===void 0?void 0:v.classList.contains("fui-MenuGrid"))o="MenuGrid";else if(v===null||v===void 0?void 0:v.classList.contains("fui-MenuGridItem"))o="MenuGridItem";else if(v===null||v===void 0?void 0:v.classList.contains("fui-MenuGridRow"))o="MenuGridRow";else if(v===null||v===void 0?void 0:v.classList.contains("fui-MenuGridCell"))o="MenuGridCell";if(["MenuItem","MenuItemCheckbox","MenuItemRadio"].includes(a)){if(["MenuGrid","MenuGridItem","MenuGridRow","MenuGridCell"].includes(o))throw Error(`${a} is incorrectly nested within ${o}. You probably want to wrap it in a MenuList instead.`)}else if(a==="MenuList"){if(o==="MenuGridCell"){if(h&&wo(c.current,l)===v)break;throw Error("MenuList is incorrectly nested within MenuGridCell.")}else if(["MenuGrid","MenuGridItem","MenuGridRow"].includes(o))throw Error(`MenuList is incorrectly nested within ${o}.`)}}while(v&&v!==(l===null||l===void 0?void 0:l.body))},[a,Z,c,h,l]),Z},wo=(a,l)=>{let c=a===null||a===void 0?void 0:a.parentElement;while(c&&c!==(l===null||l===void 0?void 0:l.body)){if(c===null||c===void 0?void 0:c.classList.contains("fui-MenuGridCell"))return c;var h;c=(h=c===null||c===void 0?void 0:c.parentElement)!==null&&h!==void 0?h:null}return null};import*as e4 from"react";var q2="fuimenusafezonetimeout",l8=(a)=>{let l=e4.useRef(null);return e4.useCallback((c)=>{var h;(h=l.current)===null||h===void 0||h.removeEventListener(q2,a),c===null||c===void 0||c.addEventListener(q2,a),l.current=c},[a])};var bo=$({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;}"]}),a7=(a)=>{let l=bo();if(a.checkmark)a.checkmark.className=Q(l.root,a.checked&&l.rootChecked,a.checkmark.className)};var X5={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"},No=N("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;}}"]}),Eo=N("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;}"]),to=N("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);}"]),so=N("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;}"]),eo=N("r9c34qo",null,[".r9c34qo{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;}"]),ar=N("rk2ppru",null,[".rk2ppru{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);color:var(--colorNeutralForeground3);}"]),lr=$({checkmark:{B6of3ja:"fmnzpld"},splitItemMain:{Bh6795r:"fqerorx"},splitItemTrigger:{Btl43ni:["f1ozlkrg","f10ostut"],Beyfa6y:["f1deotkl","f1krrbdw"],uwmqm3:["f1cnd47f","fhxju0i"],Ftih45:"f1wl9k8s",Ccq8qp:"f1yn80uh",Baz25je:"f68mna0",cmx5o7:"f1p5zmk"},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);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],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);}"],m:[["@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)"}]]}),cr=$({disabled:{sj55zd:"f1s2aq7o",B7iucu3:"f1cyfu5x"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),hr=$({content:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62"},secondaryContent:{qb2dma:"f7nlbp4"},submenuIndicator:{qb2dma:"f7nlbp4"}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f7nlbp4{align-self:center;}"]}),$2=(a)=>{let l=lr(),c=No(),h=Eo(),Z=to(),v=so(),o=eo(),r=hr(),M=ar(),A=cr(),H=!!a.subText;if(a.root.className=Q(X5.root,c,a.disabled&&l.disabled,a.root.className),a.content)a.content.className=Q(X5.content,h,a.content.className,H&&r.content);if(a.checkmark)a.checkmark.className=Q(X5.checkmark,l.checkmark,a.checkmark.className);if(a.secondaryContent)a.secondaryContent.className=Q(X5.secondaryContent,Z,a.disabled&&l.disabled,a.secondaryContent.className,H&&r.secondaryContent);if(a.icon)a.icon.className=Q(X5.icon,v,a.icon.className);if(a.submenuIndicator)a.submenuIndicator.className=Q(X5.submenuIndicator,o,a.submenuIndicator.className,H&&r.submenuIndicator);if(a.subText)a.subText.className=Q(X5.subText,a.disabled&&A.disabled,a.subText.className,M);return a7(a),a};var Zr=["after","after-bottom","before-top","before","before-bottom","above"],K2=(a)=>{let l=v0(),{hoverDelay:c=500,inline:h=!1,hasCheckmarks:Z=!1,hasIcons:v=!1,closeOnScroll:o=!1,openOnContext:r=!1,persistOnItemClick:M=!1,openOnHover:A=l,defaultCheckedValues:H,mountNode:V=null,safeZone:p}=a,{targetDocument:m}=n(),_=S5("menu"),[F,d]=n6(),x={position:l?"after":"below",align:l?"top":"start",target:a.openOnContext?F:void 0,fallbackPositions:l?Zr:void 0,...n0(a.positioning)},i=_1.Children.toArray(a.children);if(i.length===0)console.warn("Menu must contain at least one child");if(i.length>2)console.warn("Menu must contain at most two children");let L=void 0,C=void 0;if(i.length===2)L=i[0],C=i[1];else if(i.length===1)C=i[0];let{targetRef:u,containerRef:f}=W6(x),R=p&&A,B=_1.useRef({isInside:!1,mouseCoordinates:{x:0,y:0}}),U=j6({disabled:!R,timeout:typeof p==="object"?p.timeout:300,onSafeZoneEnter:(z)=>{k(z,{open:!0,keyboard:!1,type:"menuSafeZoneMouseEnter",event:z}),B.current.isInside=!0},onSafeZoneLeave:()=>{B.current.isInside=!1},onSafeZoneMove:(z)=>{B.current.mouseCoordinates={x:z.clientX,y:z.clientY}},onSafeZoneTimeout:()=>{let z=new CustomEvent(q2);if(k(z,{open:!1,keyboard:!1,type:"menuSafeZoneTimeout",event:z}),B.current.isInside&&m){let J=m.elementsFromPoint(B.current.mouseCoordinates.x,B.current.mouseCoordinates.y).find((y)=>{return y.classList.contains(X5.root)});J===null||J===void 0||J.dispatchEvent(z)}}}),O=H5(u,U.targetRef),W=H5(f,U.containerRef),[S,k]=or({hoverDelay:c,isSubmenu:l,setContextTarget:d,closeOnScroll:o,menuPopoverRef:W,triggerRef:O,open:a.open,defaultOpen:a.defaultOpen,onOpenChange:a.onOpenChange,openOnContext:r}),[g,j]=vr({checkedValues:a.checkedValues,defaultCheckedValues:H,onCheckedValueChange:a.onCheckedValueChange});return{inline:h,hoverDelay:c,triggerId:_,isSubmenu:l,openOnHover:A,contextTarget:F,setContextTarget:d,hasCheckmarks:Z,hasIcons:v,closeOnScroll:o,menuTrigger:L,menuPopover:C,mountNode:V,triggerRef:O,menuPopoverRef:W,components:{},openOnContext:r,open:S,setOpen:k,checkedValues:g,onCheckedValueChange:j,persistOnItemClick:M,safeZone:U.elementToRender}},vr=(a)=>{let[l,c]=$5({state:a.checkedValues,defaultState:a.defaultCheckedValues,initialState:{}}),h=T((Z,{name:v,checkedItems:o})=>{var r;(r=a.onCheckedValueChange)===null||r===void 0||r.call(a,Z,{name:v,checkedItems:o}),c((M)=>({...M,[v]:o}))});return[l,h]},or=(a)=>{let{targetDocument:l}=n(),c=b((F)=>F.setOpen),h=T((F,d)=>{var x;return(x=a.onOpenChange)===null||x===void 0?void 0:x.call(a,F,d)}),Z=_1.useRef(!1),[v,o]=$5({state:a.open,defaultState:a.defaultOpen,initialState:!1}),r=T((F,d)=>{let x=F instanceof CustomEvent&&F.type===Z0?F.detail.nativeEvent:F;if(h===null||h===void 0||h(x,{...d}),d.open&&F.type==="contextmenu")a.setContextTarget(F);if(!d.open)a.setContextTarget(void 0);if(d.bubble)c(F,{...d});o(d.open)}),[M,A]=w5(),H=T((F,d)=>{if(A(),!(F instanceof Event)&&F.persist)F.persist();if(!d.ignoreHoverDelay&&(F.type==="mouseleave"||F.type==="mouseover"||F.type==="mousemove"||F.type===Z0)){var i;if((i=a.triggerRef.current)===null||i===void 0?void 0:i.contains(F.target))Z.current=F.type==="mouseover"||F.type==="mousemove";M(()=>r(F,d),a.hoverDelay)}else r(F,d)});E3({contains:$1,disabled:!v,element:l,refs:[a.menuPopoverRef,!a.openOnContext&&a.triggerRef].filter(Boolean),callback:(F)=>H(F,{open:!1,type:"clickOutside",event:F})});let V=a.openOnContext||a.closeOnScroll;t3({contains:$1,element:l,callback:(F)=>H(F,{open:!1,type:"scrollOutside",event:F}),refs:[a.menuPopoverRef,!a.openOnContext&&a.triggerRef].filter(Boolean),disabled:!v||!V}),e6({element:l,callback:(F)=>{if(!Z.current)H(F,{open:!1,type:"menuMouseEnter",event:F})},disabled:!v,refs:[a.menuPopoverRef]});let{findFirstFocusable:p}=e5(),m=_1.useCallback(()=>{let F=p(a.menuPopoverRef.current);F===null||F===void 0||F.focus()},[p,a.menuPopoverRef]),_=B0();return _1.useEffect(()=>{if(v)m();else if(!_){if((l===null||l===void 0?void 0:l.activeElement)===(l===null||l===void 0?void 0:l.body)){var F;(F=a.triggerRef.current)===null||F===void 0||F.focus()}}},[a.triggerRef,a.isSubmenu,v,m,l,a.menuPopoverRef]),[v,H]};function I2(a){let{checkedValues:l,hasCheckmarks:c,hasIcons:h,inline:Z,isSubmenu:v,menuPopoverRef:o,mountNode:r,onCheckedValueChange:M,open:A,openOnContext:H,openOnHover:V,persistOnItemClick:p,safeZone:m,setOpen:_,triggerId:F,triggerRef:d}=a;return{menu:{checkedValues:l,hasCheckmarks:c,hasIcons:h,inline:Z,isSubmenu:v,menuPopoverRef:o,mountNode:r,onCheckedValueChange:M,open:A,openOnContext:H,openOnHover:V,persistOnItemClick:p,safeZone:m,setOpen:_,triggerId:F,triggerRef:d}}}import*as Gc from"react";var W2=(a,l)=>{return Gc.createElement(N6,{value:l.menu},a.menuTrigger,a.open&&a.menuPopover)};var o0=(a)=>{let l=K2(a),c=I2(l);return W2(l,c)};o0.displayName="Menu";import*as Pc from"react";import*as b0 from"react";import*as GD from"react";var Bc=(a,l)=>{let c=w0((Z)=>Z.setFocusByFirstCharacter),{onKeyDown:h}=a.root;return a.root.onKeyDown=(Z)=>{var v;if(h===null||h===void 0||h(Z),((v=Z.key)===null||v===void 0?void 0:v.length)>1)return;if(l.current)c===null||c===void 0||c(Z,l.current)},a};import*as l7 from"react";var Uc=l7.createContext(void 0),Dc={setMultiline:()=>null},DD=Uc.Provider,c8=()=>{var a;return(a=l7.useContext(Uc))!==null&&a!==void 0?a:Dc},h8=()=>{return c8()!==Dc};var rr=_4(X9,q9),Mr=_4(J9,Y9),n2=(a,l)=>{let c=t6(),h=b((i)=>i.persistOnItemClick),{as:Z="div",disabled:v=!1,hasSubmenu:o=c,persistOnClick:r=h,content:M,...A}=a,{hasIcons:H,hasCheckmarks:V}=Ar({hasSubmenu:o}),p=b((i)=>i.setOpen);Hr({multiline:!!a.subText,hasSubmenu:o});let{dir:m}=n(),_=b0.useRef(null),F=b0.useRef(!1),d=s4(Vr(a.role)),x={hasSubmenu:o,disabled:v,persistOnClick:r,components:{root:"div",icon:"span",checkmark:"span",submenuIndicator:"span",content:"span",secondaryContent:"span",subText:"span"},root:K.always(l5(Z,a1(Z,{role:"menuitem",...A,disabled:!1,disabledFocusable:v,ref:H5(l,_,d),onKeyDown:T((i)=>{var L;if((L=a.onKeyDown)===null||L===void 0||L.call(a,i),!i.isDefaultPrevented()&&(i.key===D1||i.key===y1))F.current=!0}),onMouseMove:T((i)=>{var L;if(i.currentTarget.ownerDocument.activeElement!==i.currentTarget){var C;(C=_.current)===null||C===void 0||C.focus()}(L=a.onMouseMove)===null||L===void 0||L.call(a,i)}),onClick:T((i)=>{var L;if(!o&&!r)p(i,{open:!1,keyboard:F.current,bubble:!0,type:"menuItemClick",event:i}),F.current=!1;(L=a.onClick)===null||L===void 0||L.call(a,i)})})),{elementType:"div"}),icon:K.optional(a.icon,{renderByDefault:H,elementType:"span"}),checkmark:K.optional(a.checkmark,{renderByDefault:V,elementType:"span"}),submenuIndicator:K.optional(a.submenuIndicator,{renderByDefault:o,defaultProps:{children:m==="ltr"?b0.createElement(rr,null):b0.createElement(Mr,null)},elementType:"span"}),content:K.optional(a.content,{renderByDefault:!!a.children,defaultProps:{children:a.children},elementType:"span"}),secondaryContent:K.optional(a.secondaryContent,{elementType:"span"}),subText:K.optional(a.subText,{elementType:"span"})};return Bc(x,_),x},Hr=(a)=>{let{hasSubmenu:l,multiline:c}=a,h=h8()&&l,{setMultiline:Z}=c8();s(()=>{if(!h)Z(c)},[Z,c,h])},Ar=(a)=>{let{hasSubmenu:l}=a,c=w0((v)=>v.hasIcons),h=w0((v)=>v.hasCheckmarks),Z=h8()&&l;return{hasIcons:c&&!Z,hasCheckmarks:h&&!Z}},Vr=(a)=>{switch(a){case"menuitemcheckbox":return"MenuItemCheckbox";case"menuitemradio":return"MenuItemRadio"}return"MenuItem"};var y2=(a)=>{return E(a),A5(a.root,{children:[a.checkmark&&I(a.checkmark,{}),a.icon&&I(a.icon,{}),a.content&&A5(a.content,{children:[a.content.children,a.subText&&I(a.subText,{})]}),a.secondaryContent&&I(a.secondaryContent,{}),a.submenuIndicator&&I(a.submenuIndicator,{})]})};var r0=Pc.forwardRef((a,l)=>{let c=n2(a,l);return $2(c),t("useMenuItemStyles_unstable")(c),y2(c)});r0.displayName="MenuItem";import*as Tc from"react";import*as N0 from"react";var j2=(a,l)=>{let{findAllFocusable:c}=e5(),{targetDocument:h}=n(),Z=pr(),v=n1(b4),o=M4({circular:!0});if(mr(a,Z,v))console.warn("You are using both MenuList and Menu props, we recommend you to use Menu props when available");let r=N0.useRef(null),M=s4("MenuList");N0.useEffect(()=>{let x=r.current;if(v&&h&&x){let i=(L)=>{let C=L.detail.next;if(C&&x.contains(h.activeElement)&&!x.contains(C))L.preventDefault()};return h.addEventListener(m2,i),()=>{h.removeEventListener(m2,i)}}},[r,h,v]);let A=N0.useCallback((x,i)=>{let L=["menuitem","menuitemcheckbox","menuitemradio"];if(!r.current)return;let C=c(r.current,(O)=>O.hasAttribute("role")&&L.indexOf(O.getAttribute("role"))!==-1),u=C.indexOf(i)+1;if(u===C.length)u=0;let f=C.map((O)=>{var W;return(W=O.textContent)===null||W===void 0?void 0:W.charAt(0).toLowerCase()}),R=x.key.toLowerCase(),B=(O,W)=>{for(let S=O;S<f.length;S++)if(R===f[S])return S;return-1},U=B(u,R);if(U===-1)U=B(0,R);if(U>-1)C[U].focus()},[c]);var H;let[V,p]=$5({state:(H=a.checkedValues)!==null&&H!==void 0?H:v?Z.checkedValues:void 0,defaultState:a.defaultCheckedValues,initialState:{}});var m;let _=(m=a.onCheckedValueChange)!==null&&m!==void 0?m:v?Z.onCheckedValueChange:void 0,F=T((x,i,L,C)=>{let f=[...(V===null||V===void 0?void 0:V[i])||[]];if(C)f.splice(f.indexOf(L),1);else f.push(L);_===null||_===void 0||_(x,{name:i,checkedItems:f}),p((R)=>({...R,[i]:f}))}),d=T((x,i,L)=>{let C=[L];p((u)=>({...u,[i]:C})),_===null||_===void 0||_(x,{name:i,checkedItems:C})});return{components:{root:"div"},root:K.always(l5("div",{ref:H5(l,r,M),role:"menu","aria-labelledby":Z.triggerId,...o,...a}),{elementType:"div"}),hasIcons:Z.hasIcons||!1,hasCheckmarks:Z.hasCheckmarks||!1,checkedValues:V,hasMenuContext:v,setFocusByFirstCharacter:A,selectRadio:d,toggleCheckbox:F}},pr=()=>{let a=b((v)=>v.checkedValues),l=b((v)=>v.onCheckedValueChange),c=b((v)=>v.triggerId),h=b((v)=>v.hasIcons),Z=b((v)=>v.hasCheckmarks);return{checkedValues:a,onCheckedValueChange:l,triggerId:c,hasIcons:h,hasCheckmarks:Z}},mr=(a,l,c)=>{let h=!1;for(let Z in l)if(a[Z])h=!0;return c&&h};var z2=(a,l)=>{return E(a),I(s6,{value:l.menuList,children:I(a.root,{})})};function w2(a){let{checkedValues:l,hasCheckmarks:c,hasIcons:h,selectRadio:Z,setFocusByFirstCharacter:v,toggleCheckbox:o}=a;return{menuList:{checkedValues:l,hasCheckmarks:c,hasIcons:h,selectRadio:Z,setFocusByFirstCharacter:v,toggleCheckbox:o}}}var c7={root:"fui-MenuList"},_r=$({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%;}"]}),b2=(a)=>{let l=_r();return a.root.className=Q(c7.root,l.root,a.hasMenuContext&&l.hasMenuContext,a.root.className),a};var M0=Tc.forwardRef((a,l)=>{let c=j2(a,l),h=w2(c);return b2(c),t("useMenuListStyles_unstable")(c),z2(c,h)});M0.displayName="MenuList";import*as Sc from"react";import*as E0 from"react";var N2=(a,l)=>{let c=b((f)=>f.safeZone),h=b((f)=>f.menuPopoverRef),Z=b((f)=>f.setOpen),v=b((f)=>f.open),o=b((f)=>f.openOnHover),r=b((f)=>f.triggerRef),M=v0(),A=E0.useRef(!0),H=V4(),[V,p]=w5(),{dir:m}=n(),_=m==="ltr"?d2:i2,F=E0.useCallback((f)=>{if(f)f.addEventListener("mouseover",(R)=>{if(A.current)A.current=!1,a8(h.current,R),V(()=>{A.current=!0},250)})},[h,V]);E0.useEffect(()=>{return()=>p()},[p]);var d;let x=(d=b((f)=>f.inline))!==null&&d!==void 0?d:!1,i=b((f)=>f.mountNode),L=K.always(l5("div",{role:"presentation",...H,...a,ref:H5(l,h,F)}),{elementType:"div"}),{onMouseEnter:C,onKeyDown:u}=L;return L.onMouseEnter=T((f)=>{if(o||M)Z(f,{open:!0,keyboard:!1,type:"menuPopoverMouseEnter",event:f});C===null||C===void 0||C(f)}),L.onKeyDown=T((f)=>{let R=f.key;if(R===j1||M&&R===_){var B;if(v&&((B=h.current)===null||B===void 0?void 0:B.contains(f.target))&&!f.isDefaultPrevented())Z(f,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:f}),f.preventDefault()}if(R===m6){if(Z(f,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:f}),!M){var U;(U=r.current)===null||U===void 0||U.focus()}}u===null||u===void 0||u(f)}),{inline:x,mountNode:i,safeZone:c,components:{root:"div"},root:L}};var h7={root:"fui-MenuPopover"},Fr=$({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",B93otf3:"f18k4bn6",vin17d:"fo1kyvf",Ezkn3b:"fetxo7e",nyiy2g:"f8x1vz1",swvrvq:"f8g0anz",Bkovbt3:"fezwn9i",hgjdhn:"fz5efge",fsy9dk:"f1ydixl4",B3ogreh:"f8dgqj5",jv49x5:"fnyfnr8",Bk7o48c:"fgw77r4",Bv12yb3:"f1noc5he",i09l9u:"f1k46bua",Bcrj8ia:"f1lhuzxm",Bmmhre5:"f1f9qikc"}},{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);}",".f18k4bn6{animation-composition:accumulate;}",".fo1kyvf{animation-duration:var(--durationSlower);}",".fetxo7e{animation-timing-function:var(--curveDecelerateMid);}",".f8x1vz1{--fui-positioning-slide-distance-x:0px;}",".f8g0anz{--fui-positioning-slide-distance-y:10px;}",".fezwn9i[data-popper-placement^=right]{--fui-positioning-slide-distance-x:-10px;}",".fz5efge[data-popper-placement^=right]{--fui-positioning-slide-distance-y:0px;}",".f1ydixl4[data-popper-placement^=bottom]{--fui-positioning-slide-distance-x:0px;}",".f8dgqj5[data-popper-placement^=bottom]{--fui-positioning-slide-distance-y:-10px;}",".fnyfnr8[data-popper-placement^=left]{--fui-positioning-slide-distance-x:10px;}",".fgw77r4[data-popper-placement^=left]{--fui-positioning-slide-distance-y:0px;}",".f1noc5he{animation-name:f1m0q9mo,f79suad;}"],k:["@keyframes f1m0q9mo{from{opacity:-1;}to{opacity:0;}}","@keyframes f79suad{from{transform:translate(var(--fui-positioning-slide-distance-x), var(--fui-positioning-slide-distance-y));}}"],m:[["@media (prefers-reduced-motion){.f1k46bua[data-popper-placement]{animation-duration:1ms;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.f1lhuzxm[data-popper-placement]{animation-name:f1m0q9mo;}}",{m:"(prefers-reduced-motion)"}]],t:["@supports not (animation-composition: accumulate){.f1f9qikc[data-popper-placement]{animation-name:f1m0q9mo;}}"]}),E2=(a)=>{let l=Fr();return a.root.className=Q(h7.root,l.root,a.root.className),a};var t2=(a)=>{if(E(a),a.inline)return A5(l4,{children:[I(a.root,{}),a.safeZone]});return A5(a0,{mountNode:a.mountNode,children:[I(a.root,{}),a.safeZone]})};var H0=Sc.forwardRef((a,l)=>{let c=N2(a,l);return E2(c),t("useMenuPopoverStyles_unstable")(c),t2(c)});H0.displayName="MenuPopover";import*as hT from"react";import*as s0 from"react";function dr(){}var s2=(a)=>{let{children:l,disableButtonEnhancement:c=!1}=a,h=b((g)=>g.triggerRef),Z=b((g)=>g.menuPopoverRef),v=b((g)=>g.setOpen),o=b((g)=>g.open),r=b((g)=>g.triggerId),M=b((g)=>g.openOnHover),A=b((g)=>g.openOnContext),H=v0(),{findFirstFocusable:V}=e5(),p=s0.useCallback(()=>{let g=V(Z.current);g===null||g===void 0||g.focus()},[V,Z]),m=s0.useRef(!1),_=s0.useRef(!1),F=s0.useRef(!1),{dir:d}=n(),x=d==="ltr"?i2:d2,i=q1(l),L=l8(T(()=>{if(H)_.current=!0})),C=(g)=>{if(t0(g)||g.isDefaultPrevented())return;if(A)g.preventDefault(),v(g,{open:!0,keyboard:!1,type:"menuTriggerContextMenu",event:g})},u=(g)=>{if(t0(g))return;if(!A)v(g,{open:!o,keyboard:m.current,type:"menuTriggerClick",event:g}),m.current=!1},f=(g)=>{if(t0(g)||g.isDefaultPrevented())return;let j=g.key;if(!A&&(H&&j===x||!H&&j===_6))v(g,{open:!0,keyboard:!0,type:"menuTriggerKeyDown",event:g});if(j===j1&&!H)v(g,{open:!1,keyboard:!0,type:"menuTriggerKeyDown",event:g});if(o&&j===x&&H)p()},R=(g)=>{if(t0(g))return;if(M){if(F.current)v(g,{open:!0,keyboard:!1,type:"menuTriggerMouseEnter",event:g});else if(_.current)v(g,{open:!0,keyboard:!1,ignoreHoverDelay:!0,type:"menuTriggerMouseEnter",event:g}),_.current=!1}},B=(g)=>{if(t0(g))return;if(M&&!F.current)v(g,{open:!0,keyboard:!1,type:"menuTriggerMouseMove",event:g}),F.current=!0},U=(g)=>{if(t0(g))return;if(M)v(g,{open:!1,keyboard:!1,type:"menuTriggerMouseLeave",event:g})};var O;let W={id:r,...i===null||i===void 0?void 0:i.props,ref:H5(h,u1(i),L),onMouseEnter:T((O=i===null||i===void 0?void 0:i.props.onMouseEnter)!==null&&O!==void 0?O:dr),onMouseLeave:T(M1(i===null||i===void 0?void 0:i.props.onMouseLeave,U)),onContextMenu:T(M1(i===null||i===void 0?void 0:i.props.onContextMenu,C)),onMouseMove:T(M1(i===null||i===void 0?void 0:i.props.onMouseMove,B)),onMouseOver:T(M1(i===null||i===void 0?void 0:i.props.onMouseOver,R))},S={"aria-haspopup":"menu","aria-expanded":!o&&!H?void 0:o,...W,onClick:T(M1(i===null||i===void 0?void 0:i.props.onClick,u)),onKeyDown:T(M1(i===null||i===void 0?void 0:i.props.onKeyDown,f))},k=a1((i===null||i===void 0?void 0:i.type)==="button"||(i===null||i===void 0?void 0:i.type)==="a"?i.type:"div",S);return{isSubmenu:H,children:U0(l,A?W:c?S:k)}},t0=(a)=>{let l=(c)=>c.hasAttribute("disabled")||c.hasAttribute("aria-disabled")&&c.getAttribute("aria-disabled")==="true";if(d5(a.target)&&l(a.target))return!0;return d5(a.currentTarget)&&l(a.currentTarget)};import*as kc from"react";var e2=(a)=>{return kc.createElement(E6,{value:a.isSubmenu},a.children)};var P1=(a)=>{let l=s2(a);return e2(l)};P1.displayName="MenuTrigger";P1.isFluentTriggerComponent=!0;import*as Jc from"react";import*as v7 from"react";import*as Z7 from"react";var Oc=Z7.createContext(void 0),ir={},iT=Oc.Provider,Qc=()=>{var a;return(a=Z7.useContext(Oc))!==null&&a!==void 0?a:ir};var a3=(a,l)=>{let{size:c}=Qc(),{appearance:h="primary",labelPosition:Z="after",size:v=c!==null&&c!==void 0?c:"medium",delay:o=0}=a,r=S5("spinner"),{role:M="progressbar",...A}=a,H=K.always(l5("div",{ref:l,role:M,...A},["size"]),{elementType:"div"}),[V,p]=v7.useState(!1),[m,_]=w5();v7.useEffect(()=>{if(o<=0)return;return m(()=>{p(!0)},o),()=>{_()}},[m,_,o]);let F=K.optional(a.label,{defaultProps:{id:r},renderByDefault:!1,elementType:l0}),d=K.optional(a.spinner,{renderByDefault:!0,elementType:"span"});if(F&&H&&!H["aria-labelledby"])H["aria-labelledby"]=F.id;return{appearance:h,delay:o,labelPosition:Z,size:v,shouldRenderSpinner:!o||V,components:{root:"div",spinner:"span",spinnerTail:"span",label:l0},root:H,spinner:d,spinnerTail:K.always(a.spinnerTail,{elementType:"span"}),label:F}};var l3=(a)=>{E(a);let{labelPosition:l,shouldRenderSpinner:c}=a;return A5(a.root,{children:[a.label&&c&&(l==="above"||l==="before")&&I(a.label,{}),a.spinner&&c&&I(a.spinner,{children:a.spinnerTail&&I(a.spinnerTail,{})}),a.label&&c&&(l==="below"||l==="after")&&I(a.label,{})]})};var A0={root:"fui-Spinner",spinner:"fui-Spinner__spinner",spinnerTail:"fui-Spinner__spinnerTail",label:"fui-Spinner__label"};var xr=N("rpp59a7",null,[".rpp59a7{display:flex;align-items:center;justify-content:center;line-height:0;gap:8px;overflow:hidden;min-width:min-content;}"]),Lr=$({vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f1vx9l62{flex-direction:column;}"]}),Cr=N("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;}}"]}),fr=N("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;}}"]}),Rr=$({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)"}]]}),ur=$({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);}"]}),c3=(a)=>{let{labelPosition:l,size:c,appearance:h}=a,{dir:Z}=n(),v=xr(),o=Lr(),r=Cr(),M=Rr(),A=fr(),H=ur();if(a.root.className=Q(A0.root,v,(l==="above"||l==="below")&&o.vertical,a.root.className),a.spinner)a.spinner.className=Q(A0.spinner,r,M[c],h==="inverted"&&M.inverted,a.spinner.className);if(a.spinnerTail)a.spinnerTail.className=Q(A0.spinnerTail,A,Z==="rtl"&&M.rtlTail,a.spinnerTail.className);if(a.label)a.label.className=Q(A0.label,H[c],h==="inverted"&&H.inverted,a.label.className);return a};var V0=Jc.forwardRef((a,l)=>{let c=a3(a,l);return c3(c),t("useSpinnerStyles_unstable")(c),l3(c)});V0.displayName="Spinner";import*as Yc from"react";import*as KT from"react";var h3=(a,l)=>{let{wrap:c,truncate:h,block:Z,italic:v,underline:o,strikethrough:r,size:M,font:A,weight:H,align:V}=a;return{align:V!==null&&V!==void 0?V:"start",block:Z!==null&&Z!==void 0?Z:!1,font:A!==null&&A!==void 0?A:"base",italic:v!==null&&v!==void 0?v:!1,size:M!==null&&M!==void 0?M:300,strikethrough:r!==null&&r!==void 0?r:!1,truncate:h!==null&&h!==void 0?h:!1,underline:o!==null&&o!==void 0?o:!1,weight:H!==null&&H!==void 0?H:"regular",wrap:c!==null&&c!==void 0?c:!0,components:{root:"span"},root:K.always(l5("span",{ref:l,...a}),{elementType:"span"})}};var Z3=(a)=>{return E(a),I(a.root,{})};var o7={root:"fui-Text"},gr=$({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;}"]}),v3=(a)=>{let l=gr();return a.root.className=Q(o7.root,l.root,a.wrap===!1&&l.nowrap,a.truncate&&l.truncate,a.block&&l.block,a.italic&&l.italic,a.underline&&l.underline,a.strikethrough&&l.strikethrough,a.underline&&a.strikethrough&&l.strikethroughUnderline,a.size===100&&l.base100,a.size===200&&l.base200,a.size===400&&l.base400,a.size===500&&l.base500,a.size===600&&l.base600,a.size===700&&l.hero700,a.size===800&&l.hero800,a.size===900&&l.hero900,a.size===1000&&l.hero1000,a.font==="monospace"&&l.monospace,a.font==="numeric"&&l.numeric,a.weight==="medium"&&l.weightMedium,a.weight==="semibold"&&l.weightSemibold,a.weight==="bold"&&l.weightBold,a.align==="center"&&l.alignCenter,a.align==="end"&&l.alignEnd,a.align==="justify"&&l.alignJustify,a.root.className),a};var F1=Yc.forwardRef((a,l)=>{let c=h3(a,l);return v3(c),t("useTextStyles_unstable")(c),Z3(c)});F1.displayName="Text";import*as yc from"react";import*as Kc from"react";import*as Z8 from"react";var Xc=N("r6pzz3z",null,[".r6pzz3z{overflow-y:hidden;overflow-y:clip;scrollbar-gutter:stable;}"]),qc=N("r144vlu9",null,[".r144vlu9{overflow-y:hidden;}"]);function $c(){let a=Xc(),l=qc(),{targetDocument:c}=n(),h=Z8.useCallback(()=>{var v;if(!c)return;var o;if(!(Math.floor(c.body.getBoundingClientRect().height)>((o=(v=c.defaultView)===null||v===void 0?void 0:v.innerHeight)!==null&&o!==void 0?o:0)))return;c.documentElement.classList.add(a),c.body.classList.add(l);return},[c,a,l]),Z=Z8.useCallback(()=>{if(!c)return;c.documentElement.classList.remove(a),c.body.classList.remove(l)},[c,a,l]);return{disableBodyScroll:h,enableBodyScroll:Z}}import*as r7 from"react";function v8(a,l){let{findFirstFocusable:c}=e5(),{targetDocument:h}=n(),Z=r7.useRef(null);return r7.useEffect(()=>{if(!a)return;let v=Z.current&&c(Z.current);if(v)v.focus();else{var o;(o=Z.current)===null||o===void 0||o.focus(),console.warn("@fluentui/react-dialog [useFocusFirstElement]:\nA Dialog should have at least one focusable element inside DialogSurface.\nPlease add at least a close button either on `DialogTitle` action slot or inside `DialogActions`")}},[c,a,l,h]),Z}import*as FS from"react";var Gr={open:!1,inertTrapFocus:!1,modalType:"modal",isNestedDialog:!1,unmountOnClose:!0,dialogRef:{current:null},requestOpenChange(){}},o3=I1(void 0),M7=o3.Provider,x5=(a)=>W1(o3,(l=Gr)=>a(l));import*as H7 from"react";var Br=!1,o8=H7.createContext(void 0),r3=o8.Provider,A7=()=>{var a;return(a=H7.useContext(o8))!==null&&a!==void 0?a:Br};var r8=V1(K0,{fromScale:0.85,easing:h5.curveDecelerateMid,duration:h5.durationGentle,exitEasing:h5.curveAccelerateMin,exitDuration:h5.durationGentle});var M3=(a)=>{let{children:l,modalType:c="modal",onOpenChange:h,inertTrapFocus:Z=!1,unmountOnClose:v=!0}=a,o=S5("dialog-title-"),[r,M]=Ur(l),[A,H]=$5({state:a.open,defaultState:a.defaultOpen,initialState:!1}),V=T((d)=>{if(h===null||h===void 0||h(d.event,d),!d.event.isDefaultPrevented())H(d.open)}),p=v8(A,c),{modalAttributes:m,triggerAttributes:_}=J0({trapFocus:c!=="non-modal",legacyTrapFocus:!Z}),F=n1(o3);return{components:{surfaceMotion:r8},inertTrapFocus:Z,open:A,modalType:c,content:M,trigger:r,requestOpenChange:V,dialogTitleId:o,isNestedDialog:F,unmountOnClose:v,dialogRef:p,modalAttributes:m,triggerAttributes:_,surfaceMotion:L2(a.surfaceMotion,{elementType:r8,defaultProps:{visible:A,appear:v,unmountOnExit:v}})}};function Ur(a){let l=Kc.Children.toArray(a);if(l.length!==1&&l.length!==2)console.warn(`@fluentui/react-dialog [useDialog]:
|
|
Dialog must contain at least one child <DialogSurface/>,
|
|
and at most two children <DialogTrigger/> <DialogSurface/> (in this order).`);switch(l.length){case 2:return l;case 1:return[void 0,l[0]];default:return[void 0,void 0]}}import*as YS from"react";import*as T1 from"react";var Ic=T1.createContext(void 0);function Wc(){return T1.useContext(Ic)}var nc=T1.forwardRef((a,l)=>{return T1.createElement(Ic.Provider,{value:l},a.children)});var H3=(a,l)=>{return E(a),I(M7,{value:l.dialog,children:A5(r3,{value:l.dialogSurface,children:[a.trigger,a.content&&I(a.surfaceMotion,{children:I(nc,{children:a.content})})]})})};function V7(a){let{modalType:l,open:c,dialogRef:h,dialogTitleId:Z,isNestedDialog:v,inertTrapFocus:o,requestOpenChange:r,modalAttributes:M,triggerAttributes:A,unmountOnClose:H}=a,V={open:c,modalType:l,dialogRef:h,dialogTitleId:Z,isNestedDialog:v,inertTrapFocus:o,modalAttributes:M,triggerAttributes:A,unmountOnClose:H,requestOpenChange:r},p=!1;return{dialog:V,dialogSurface:!1}}var p0=yc.memo((a)=>{let l=M3(a),c=V7(l);return H3(l,c)});p0.displayName="Dialog";import*as ck from"react";import*as NS from"react";var M8=(a)=>{let l=A7(),{children:c,disableButtonEnhancement:h=!1,action:Z=l?"close":"open"}=a,v=q1(c),o=x5((V)=>V.requestOpenChange),{triggerAttributes:r}=J0(),M=T((V)=>{var p,m;if(v===null||v===void 0||(p=(m=v.props).onClick)===null||p===void 0||p.call(m,V),!V.isDefaultPrevented())o({event:V,type:"triggerClick",open:Z==="open"})}),A={...v===null||v===void 0?void 0:v.props,ref:u1(v),onClick:M,...r},H=a1((v===null||v===void 0?void 0:v.type)==="button"||(v===null||v===void 0?void 0:v.type)==="a"?v.type:"div",{...A,type:"button"});return{children:U0(c,h?A:H)}};var H8=(a)=>a.children;var A3=(a)=>{let l=M8(a);return H8(l)};A3.displayName="DialogTrigger";A3.isFluentTriggerComponent=!0;import*as jc from"react";import*as ok from"react";var V3=(a,l)=>{let{position:c="end",fluid:h=!1}=a;return{components:{root:"div"},root:K.always(l5("div",{ref:l,...a}),{elementType:"div"}),position:c,fluid:h}};var p3=(a)=>{return E(a),I(a.root,{})};var p7={root:"fui-DialogActions"},Dr=N("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;}}"]}),Pr=$({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)"}]]}),m3=(a)=>{let l=Dr(),c=Pr();return a.root.className=Q(p7.root,l,a.position==="start"&&c.gridPositionStart,a.position==="end"&&c.gridPositionEnd,a.fluid&&a.position==="start"&&c.fluidStart,a.fluid&&a.position==="end"&&c.fluidEnd,a.root.className),a};var m0=jc.forwardRef((a,l)=>{let c=V3(a,l);return m3(c),t("useDialogActionsStyles_unstable")(c),p3(c)});m0.displayName="DialogActions";import*as zc from"react";import*as uk from"react";var _3=(a,l)=>{var c;return{components:{root:"div"},root:K.always(l5((c=a.as)!==null&&c!==void 0?c:"div",{ref:l,...a}),{elementType:"div"})}};var F3=(a)=>{return E(a),I(a.root,{})};var m7={root:"fui-DialogBody"},Tr=N("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;}}"]}),d3=(a)=>{let l=Tr();return a.root.className=Q(m7.root,l,a.root.className),a};var _0=zc.forwardRef((a,l)=>{let c=_3(a,l);return d3(c),t("useDialogBodyStyles_unstable")(c),F3(c)});_0.displayName="DialogBody";import*as wc from"react";import*as _7 from"react";var i3={root:"fui-DialogTitle",action:"fui-DialogTitle__action"},Sr=N("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;}"]),kr=$({rootWithoutAction:{Bw0ie65:"fsyjsko"}},{d:[".fsyjsko{grid-column-end:4;}"]}),Or=N("r13kcrze",null,[".r13kcrze{grid-row-start:1;grid-row-end:1;grid-column-start:3;justify-self:end;align-self:start;}"]),A8=N("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;}}"]}),x3=(a)=>{let l=Sr(),c=Or(),h=kr();if(a.root.className=Q(i3.root,l,!a.action&&h.rootWithoutAction,a.root.className),a.action)a.action.className=Q(i3.action,c,a.action.className);return a};var L3=(a,l)=>{let{action:c}=a,h=x5((v)=>v.modalType),Z=A8();return{components:{root:"h2",action:"div"},root:K.always(l5("h2",{ref:l,id:x5((v)=>v.dialogTitleId),...a}),{elementType:"h2"}),action:K.optional(c,{renderByDefault:h==="non-modal",defaultProps:{children:_7.createElement(A3,{disableButtonEnhancement:!0,action:"close"},_7.createElement("button",{type:"button",className:Z,"aria-label":"close"},_7.createElement(K9,null)))},elementType:"div"})}};var C3=(a)=>{return E(a),A5(l4,{children:[I(a.root,{children:a.root.children}),a.action&&I(a.action,{})]})};var F0=wc.forwardRef((a,l)=>{let c=L3(a,l);return x3(c),t("useDialogTitleStyles_unstable")(c),C3(c)});F0.displayName="DialogTitle";import*as bc from"react";import*as VO from"react";var V8=B4;var f3=(a,l)=>{let c=Wc(),h=x5((d)=>d.modalType),Z=x5((d)=>d.isNestedDialog),v=x5((d)=>d.modalAttributes),o=x5((d)=>d.dialogRef),r=x5((d)=>d.requestOpenChange),M=x5((d)=>d.dialogTitleId),A=x5((d)=>d.open),H=x5((d)=>d.unmountOnClose),V=T((d)=>{if(Y3(a.backdrop)){var x,i;(x=(i=a.backdrop).onClick)===null||x===void 0||x.call(i,d)}if(h==="modal"&&!d.isDefaultPrevented())r({event:d,open:!1,type:"backdropClick"})}),p=T((d)=>{var x;if((x=a.onKeyDown)===null||x===void 0||x.call(a,d),d.key===j1&&!d.isDefaultPrevented())r({event:d,open:!1,type:"escapeKeyDown"}),d.preventDefault()}),m=K.optional(a.backdrop,{renderByDefault:h!=="non-modal",defaultProps:{"aria-hidden":"true"},elementType:"div"});if(m)m.onClick=V;let{disableBodyScroll:_,enableBodyScroll:F}=$c();return s(()=>{if(!A){F();return}if(Z||h==="non-modal")return;return _(),()=>F()},[A,h,Z,_,F]),{components:{backdrop:"div",root:"div",backdropMotion:V8},open:A,backdrop:m,isNestedDialog:Z,unmountOnClose:H,mountNode:a.mountNode,root:K.always(l5("div",{tabIndex:-1,role:h==="alert"?"alertdialog":"dialog","aria-modal":h!=="non-modal","aria-labelledby":a["aria-label"]?void 0:M,"aria-hidden":!H&&!A?!0:void 0,...a,...v,onKeyDown:p,ref:H5(l,c,o)}),{elementType:"div"}),backdropMotion:L2(a.backdropMotion,{elementType:V8,defaultProps:{appear:H,visible:A}}),transitionStatus:void 0}};var R3=(a,l)=>{return E(a),A5(a0,{mountNode:a.mountNode,children:[a.backdrop&&a.backdropMotion&&I(a.backdropMotion,{children:I(a.backdrop,{})}),I(r3,{value:l.dialogSurface,children:I(a.root,{})})]})};var u3={root:"fui-DialogSurface",backdrop:"fui-DialogSurface__backdrop"},Qr=N("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;}}"]}),Jr=N("r1e18s3l",null,[".r1e18s3l{inset:0px;background-color:var(--colorBackgroundOverlay);position:fixed;}"]),Yr=$({nestedDialogBackdrop:{De3pzq:"f1c21dwh"},dialogHidden:{Bkecrkj:"f1aehjj5"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1aehjj5{pointer-events:none;}"]}),g3=(a)=>{let{isNestedDialog:l,root:c,backdrop:h,open:Z,unmountOnClose:v}=a,o=Qr(),r=Jr(),M=Yr(),A=!v&&!Z;if(c.className=Q(u3.root,o,A&&M.dialogHidden,c.className),h)h.className=Q(u3.backdrop,r,l&&M.nestedDialogBackdrop,A&&M.dialogHidden,h.className);return a};function G3(a){return{dialogSurface:!0}}var d0=bc.forwardRef((a,l)=>{let c=f3(a,l),h=G3(c);return g3(c),t("useDialogSurfaceStyles_unstable")(c),R3(c,h)});d0.displayName="DialogSurface";import{jsxDEV as X}from"react/jsx-dev-runtime";var F7=["ccllc_jobnumber","ccllc_jobname","ccllc_jobaddress","ccllc_jobtype","ccllc_flagstatus","ccllc_jobstatus","ccllc_jobdivision","ccllc_estimatorname","ccllc_officerepresentative","ccllc_clientcompany","ccllc_contactperson","ccllc_contactphonenumber","ccllc_contactemail","ccllc_duedate","ccllc_duedatecounter","ccllc_duetime","ccllc_documentsuploaded","ccllc_quickbookscreated","ccllc_addedtocalendar","ccllc_pswiftuploaded","ccllc_voxercreated","ccllc_estimatedraft","ccllc_estimatereviewed","ccllc_estimateapproved","ccllc_notes","ccllc_activestatus","ccllc_jobquickbookslink","ccllc_voxerlink","ccllc_jobcodes","ccllc_submissiondate","ccllc_powerappsid","ccllc_jobfolderlink","ccllc_taxexemptstatus","statecode","statuscode","ccllc_active"],qr={ccllc_jobnumber:"Job Number",ccllc_jobname:"Job Name",statecode:"State",statuscode:"Status",ccllc_active:"Key",ccllc_activestatus:`Active
|
|
Status`,ccllc_addedtocalendar:`Added to
|
|
Calendar`,ccllc_clientcompany:`Client
|
|
Company`,ccllc_contactemail:`Contact
|
|
Email`,ccllc_contactperson:`Contact
|
|
Person`,ccllc_contactphonenumber:`Contact
|
|
Phone Number`,ccllc_documentsuploaded:`Documents
|
|
Uploaded`,ccllc_duedate:"Due Date",ccllc_duedatecounter:`Due Date
|
|
Counter`,ccllc_duetime:"Due Time",ccllc_estimateapproved:`Estimate
|
|
Approved`,ccllc_estimatedraft:`Estimate
|
|
Draft`,ccllc_estimatereviewed:`Estimate
|
|
Reviewed`,ccllc_estimatorname:`Estimator
|
|
Name`,ccllc_flagstatus:"Flag",ccllc_jobaddress:`Job
|
|
Address`,ccllc_jobcodes:`Job
|
|
Codes`,ccllc_jobdivision:`Job
|
|
Division`,ccllc_jobfolderlink:"Job Folder Link",ccllc_jobquickbookslink:`Job QuickBooks
|
|
Link`,ccllc_jobstatus:`Job
|
|
Status`,ccllc_jobtype:`Job
|
|
Type`,ccllc_notes:"Notes",ccllc_officerepresentative:"Office Rep",ccllc_powerappsid:`PowerApps
|
|
ID`,ccllc_pswiftuploaded:`PSwift
|
|
Uploaded`,ccllc_quickbookscreated:"QB Created",ccllc_submissiondate:`Submission
|
|
Date`,ccllc_taxexemptstatus:"Tax Exempt",ccllc_voxercreated:`Voxer
|
|
Created`,ccllc_voxerlink:"Voxer Link"},Nc={ccllc_jobnumber:"center",ccllc_jobname:"left",statecode:"center",statuscode:"center",ccllc_active:"center",ccllc_activestatus:"center",ccllc_addedtocalendar:"center",ccllc_clientcompany:"left",ccllc_contactemail:"left",ccllc_contactperson:"left",ccllc_contactphonenumber:"left",ccllc_documentsuploaded:"center",ccllc_duedate:"center",ccllc_duedatecounter:"center",ccllc_duetime:"center",ccllc_estimateapproved:"center",ccllc_estimatedraft:"center",ccllc_estimatereviewed:"center",ccllc_estimatorname:"left",ccllc_flagstatus:"center",ccllc_jobaddress:"left",ccllc_jobcodes:"left",ccllc_jobdivision:"left",ccllc_jobfolderlink:"left",ccllc_jobquickbookslink:"left",ccllc_jobstatus:"center",ccllc_jobtype:"center",ccllc_notes:"left",ccllc_officerepresentative:"left",ccllc_powerappsid:"center",ccllc_pswiftuploaded:"center",ccllc_quickbookscreated:"center",ccllc_submissiondate:"center",ccllc_taxexemptstatus:"center",ccllc_voxercreated:"center",ccllc_voxerlink:"left"},Ec={ccllc_jobnumber:100,ccllc_jobname:280,statecode:80,statuscode:80,ccllc_active:80,ccllc_activestatus:100,ccllc_addedtocalendar:120,ccllc_clientcompany:160,ccllc_contactemail:180,ccllc_contactperson:140,ccllc_contactphonenumber:140,ccllc_documentsuploaded:120,ccllc_duedate:110,ccllc_duedatecounter:110,ccllc_duetime:100,ccllc_estimateapproved:120,ccllc_estimatedraft:120,ccllc_estimatereviewed:120,ccllc_estimatorname:140,ccllc_flagstatus:80,ccllc_jobaddress:180,ccllc_jobcodes:120,ccllc_jobdivision:120,ccllc_jobfolderlink:160,ccllc_jobquickbookslink:160,ccllc_jobstatus:120,ccllc_jobtype:120,ccllc_notes:180,ccllc_officerepresentative:140,ccllc_powerappsid:120,ccllc_pswiftuploaded:120,ccllc_quickbookscreated:120,ccllc_submissiondate:120,ccllc_taxexemptstatus:120,ccllc_voxercreated:120,ccllc_voxerlink:160},$r=Object.fromEntries(F7.map((a)=>[a,!0])),Kr=(a)=>{let l=["ccllc_jobnumber","ccllc_jobname"],c=new Set(["ccllc_jobid","@Odata.Etag","@odata.etag"]);if(!a)return l;return[...l,...Object.keys(a).filter((h)=>!l.includes(h)&&!c.has(h)&&!h.endsWith("@OData.Community.Display.V1.FormattedValue")&&typeof a[h]!=="function")]},Ir=(a)=>a.replace(/^ccllc_/,"").replace(/_/g," ").replace(/\b\w/g,(l)=>l.toUpperCase());function Wr({value:a,onSave:l,rowId:c,colKey:h,isSticky:Z,width:v,disabled:o,isFirstNonSticky:r,align:M}){let[A,H]=u5(!1),[V,p]=u5(a??""),m=p8(null);e0(()=>{if(A&&m.current)m.current.focus(),m.current.select()},[A]),e0(()=>p(a??""),[a]);let _=()=>!o&&H(!0),F=async()=>{let x=h==="ccllc_jobnumber"?V.replace(/,/g,""):V;if(x!==a)await l(x);H(!1)},d={minWidth:v?`${v}px`:void 0,maxWidth:v?`${v}px`:void 0,width:v?`${v}px`:void 0,borderTop:"1px solid #000",borderLeft:r?"none":"1px solid #000",borderRight:h==="ccllc_jobnumber"?"none":"1px solid #000",borderBottom:"1px solid #000",boxSizing:"border-box",position:Z?"sticky":void 0,left:Z&&h==="ccllc_jobnumber"?0:Z&&h==="ccllc_jobname"?100:void 0,zIndex:Z?1500:void 0,background:Z?"#fff":void 0,overflow:"hidden",whiteSpace:"nowrap",padding:"6px 10px",cursor:o?"not-allowed":"pointer",userSelect:"none",textAlign:M||"left"};return X("td",{style:d,onClick:_,tabIndex:o?-1:0,children:A&&!o?X("input",{ref:m,value:V,onChange:(x)=>p(x.target.value),onBlur:F,onKeyDown:(x)=>{if(x.key==="Enter")F();if(x.key==="Escape")p(a??""),H(!1)},style:{width:"100%",background:"transparent",border:"none",outline:"none",font:"inherit",padding:0,margin:0,textAlign:M||"left"}},void 0,!1,void 0,this):X("span",{style:{display:"block",width:"100%",overflow:"hidden",textOverflow:"ellipsis"},children:h==="ccllc_jobnumber"?(a??"").replace(/,/g,""):a},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function nr({value:a,onSave:l,colKey:c,isSticky:h,width:Z,isFirstNonSticky:v,align:o}){let[r,M]=u5(!1),[A,H]=u5(a),V=p8(null);e0(()=>{if(r&&V.current)V.current.focus(),V.current.select()},[r]),e0(()=>H(a),[a]);let p=(R)=>{if(!R.target.closest(".header-dropdown-btn"))M(!0)},m=()=>{if(A!==a)l(A);M(!1)},_=()=>m(),F=(R)=>{if(R.key==="Enter")m();else if(R.key==="Escape")H(a),M(!1)},d=h&&(c==="ccllc_jobnumber"||c==="ccllc_jobname"),x={minWidth:Z?`${Z}px`:"60px",maxWidth:Z?`${Z+20}px`:void 0,width:Z?`${Z}px`:void 0,borderTop:"1px solid #000",borderLeft:v?"none":"1px solid #000",borderRight:a==="Job Number"?"none":"1px solid #000",borderBottom:"1px solid #000",boxSizing:"border-box",position:"sticky",top:0,left:h&&c==="ccllc_jobnumber"?0:h&&c==="ccllc_jobname"?100:void 0,zIndex:h?2000:1500,background:"#f3f3f3",whiteSpace:"normal",padding:0,fontWeight:600,textAlign:o||"left",cursor:"pointer",userSelect:"none",minHeight:"40px",height:"40px",overflow:"visible"},i={display:"flex",flexDirection:"row",alignItems:"flex-end",justifyContent:"space-between",width:"100%",height:"100%",minHeight:"40px",overflow:"visible"},L={flex:"1 1 0",minWidth:0,display:"flex",alignItems:"center",padding:"8px 8px 8px 10px",boxSizing:"border-box",overflow:"hidden"},C={width:"20px",minWidth:"20px",maxWidth:"20px",height:"40px",boxSizing:"border-box",overflow:"visible",display:"flex",alignItems:"flex-end",justifyContent:"center",paddingBottom:"4px",zIndex:1600},u={width:"16px",height:"16px",minWidth:"16px",minHeight:"16px",padding:0,margin:0,borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",background:"#C0C0C0",zIndex:1600},f=(R)=>{let B=R.split(`
|
|
`);return X("span",{style:{display:"block",width:"100%",wordBreak:"break-word",whiteSpace:"pre-line"},children:B.map((U,O)=>X(Xr.Fragment,{children:[U,O<B.length-1?X("br",{},void 0,!1,void 0,this):null]},O,!0,void 0,this))},void 0,!1,void 0,this)};return X("th",{style:x,onClick:p,tabIndex:0,"aria-label":`Edit column: ${a}`,children:X("div",{style:i,children:[X("div",{style:L,children:r?X("input",{ref:V,value:A,onChange:(R)=>H(R.target.value),onBlur:_,onKeyDown:F,style:{width:"100%",background:"transparent",border:"none",outline:"none",font:"inherit",padding:0,margin:0,color:"#222",whiteSpace:"pre-line",textAlign:o||"left"}},void 0,!1,void 0,this):f(A)},void 0,!1,void 0,this),X("div",{style:C,children:X(o0,{children:[X(P1,{disableButtonEnhancement:!0,children:X(y5,{appearance:"subtle",size:"small",icon:X(Q9,{fontSize:"15px"},void 0,!1,void 0,this),"aria-label":"Column options",className:"header-dropdown-btn",style:u,tabIndex:0},void 0,!1,void 0,this)},void 0,!1,void 0,this),X(H0,{style:{zIndex:1700},children:X(M0,{children:X(r0,{children:"Column options"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var yr=50,jr=10;var zr=({dataApi:a})=>{let[l,c]=u5([]),[h,Z]=u5([]),[v,o]=u5(""),[r,M]=u5(!1),[A,H]=u5(!0),[V,p]=u5(!1),[m,_]=u5(null),[F,d]=u5({...qr}),[x,i]=u5(!1),[L,C]=u5(!1),[u,f]=u5(null),R=p8(null);e0(()=>{let D=!0;return(async()=>{try{H(!0);let{rows:y}=await a.queryTable("ccllc_job",{select:F7,pageSize:yr,orderBy:"ccllc_jobnumber desc"}),_5=y.map((p5)=>{let{["@Odata.Etag"]:F5,...r5}=p5;return r5});if(D)c(_5)}catch{if(D)_("Failed to load jobs.")}finally{if(D)H(!1)}})(),()=>{D=!1}},[a]),e0(()=>{if(!v.trim()){Z([]),p(!1);return}let D=!1;return(async()=>{p(!0);let _5=["ccllc_jobname","ccllc_jobnumber","ccllc_jobaddress","ccllc_clientcompany","ccllc_contactperson","ccllc_contactemail","ccllc_notes","ccllc_estimatorname","ccllc_officerepresentative"].map((L5)=>`contains(${L5},'${v.replace(/'/g,"''")}')`).join(" or "),p5=[],F5=r?100:jr,r5=0,o1=r;try{let L5={select:F7,pageSize:F5,orderBy:"ccllc_jobnumber desc",filter:_5,skip:r5},{rows:S1,nextLink:i0}=await a.queryTable("ccllc_job",L5),x0=S1.map((d1)=>{let{["@Odata.Etag"]:L0,...k1}=d1;return k1});p5.push(...x0);while(!D&&r&&i0&&x0.length===F5){r5+=F5,L5={...L5,skip:r5};let d1=await a.queryTable("ccllc_job",L5);S1=d1.rows,i0=d1.nextLink;let L0=S1.map((k1)=>{let{["@Odata.Etag"]:B3,...a2}=k1;return a2});p5.push(...L0)}if(!D)Z(p5)}catch(L5){if(!D)_("Search failed.")}finally{if(!D)p(!1)}})(),()=>{D=!0}},[v,r,a]);let B=async(D,J,y)=>{try{let p5=[...h,...l].find((o1)=>o1.ccllc_jobid===D);if(!p5)return;let F5=J==="ccllc_jobnumber"?y.replace(/,/g,""):y;if(p5[J]===F5)return;await a.updateRow("ccllc_job",D,{[J]:F5});let r5=(o1)=>o1.map((L5)=>L5.ccllc_jobid===D?{...L5,[J]:F5}:L5);Z(r5),c(r5)}catch{_("Update failed.")}},U=(D,J)=>{d((y)=>({...y,[D]:J}))},O=(D)=>{f(D),C(!0)},W=async()=>{if(!u)return;i(!0);try{await a.deleteRow("ccllc_job",u.ccllc_jobid);let D=u.ccllc_jobid;Z((J)=>J.filter((y)=>y.ccllc_jobid!==D)),c((J)=>J.filter((y)=>y.ccllc_jobid!==D))}catch{_("Delete failed.")}finally{i(!1),C(!1),f(null)}},S=(l.length?Kr(l[0]):F7).filter((D)=>D!=="@Odata.Etag"&&$r[D]!==!1),k=S.findIndex((D)=>D!=="ccllc_jobnumber"&&D!=="ccllc_jobname"),g=v.trim()?h:l,z=v.trim()&&r?g:g.slice(0,50);return X("div",{style:{height:"100%",display:"flex",flexDirection:"column",boxSizing:"border-box",padding:20},children:[X("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:12,gap:12,flexShrink:0,minHeight:36},children:[X("div",{style:{border:"2px solid #000",background:"#f3f3f3",borderRadius:8,padding:"0px 16px",display:"flex",height:36},children:X(F1,{as:"h1",size:700,weight:"semibold",children:"Job List"},void 0,!1,void 0,this)},void 0,!1,void 0,this),X("div",{style:{display:"flex",gap:8},children:[X(h0,{value:v,onChange:(D,J)=>o(J.value),placeholder:"Search jobs...",contentBefore:X(O9,{},void 0,!1,void 0,this),style:{height:36}},void 0,!1,void 0,this),X(y5,{appearance:"subtle",onClick:()=>M((D)=>!D),style:{background:r?"#e5ffe5":"#f3f3f3",border:"1px solid #000"},children:r?"Top 10":"Show All"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),m&&X(F1,{style:{color:"#b00",marginBottom:8,flexShrink:0},children:m},void 0,!1,void 0,this),X("div",{style:{flex:1,minHeight:0,border:"1px solid #000",borderRadius:6,overflow:"hidden",position:"relative",display:"flex",flexDirection:"column"},children:(A||V)&&z.length===0?X("div",{style:{flex:1,display:"flex",justifyContent:"center",alignItems:"center"},children:X(V0,{size:"medium",label:"Loading…"},void 0,!1,void 0,this)},void 0,!1,void 0,this):X("div",{ref:R,style:{flex:1,minHeight:0,maxHeight:600,overflowY:"auto",overflowX:"auto",WebkitOverflowScrolling:"touch",boxSizing:"border-box"},children:X("table",{style:{borderCollapse:"separate",borderSpacing:0,width:"max-content",minWidth:"100%",tableLayout:"fixed"},children:[X("thead",{children:X("tr",{children:[S.map((D,J)=>X(nr,{colKey:D,value:F[D]||Ir(D),onSave:(y)=>U(D,y),isSticky:D==="ccllc_jobnumber"||D==="ccllc_jobname",width:Ec[D],isFirstNonSticky:J===k,align:Nc[D]},D,!1,void 0,this)),X("th",{style:{minWidth:60,width:60,border:"1px solid #000",background:"#f3f3f3",position:"sticky",top:0,right:void 0,zIndex:1500,transform:"none"},children:"Delete"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),X("tbody",{children:z.map((D)=>X("tr",{children:[S.map((J,y)=>X(Wr,{value:D[J]?.toString()??"",onSave:(_5)=>B(D.ccllc_jobid,J,_5),rowId:D.ccllc_jobid,colKey:J,isSticky:J==="ccllc_jobnumber"||J==="ccllc_jobname",width:Ec[J],disabled:J==="ccllc_jobid",isFirstNonSticky:y===k,align:Nc[J]},J,!1,void 0,this)),X("td",{style:{minWidth:60,width:60,borderTop:"1px solid #000",borderBottom:"1px solid #000",borderLeft:"1px solid #000",background:"#fff",position:"static",right:void 0,zIndex:void 0,transform:"none",textAlign:"center"},children:X(y5,{appearance:"subtle",icon:X($9,{},void 0,!1,void 0,this),onClick:()=>O(D),disabled:x},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},D.ccllc_jobid,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),X(p0,{open:L,onOpenChange:(D,{open:J})=>!J&&C(!1),children:X(d0,{children:X(_0,{children:[X(F0,{children:"Confirm Delete"},void 0,!1,void 0,this),X(F1,{block:!0,size:400,style:{marginBottom:16},children:"Are you sure you want to delete this job record?"},void 0,!1,void 0,this),X(m0,{children:[X(y5,{appearance:"secondary",onClick:()=>C(!1),disabled:x,children:"Cancel"},void 0,!1,void 0,this),X(y5,{appearance:"primary",style:{backgroundColor:"#b00",color:"#fff"},onClick:W,disabled:x,children:x?"Deleting…":"Delete"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},wr=zr,zJ=wr;export{zJ as default,wr as TablePage};
|