@bluealba/pae-ui-react-core 4.0.1-develop-1269 → 4.0.1-develop-1291
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +46 -46
- package/dist/index.css +1 -1
- package/dist/index.esm.js +3203 -3020
- package/dist/index.systemjs.js +47 -47
- package/dist/index.umd.js +49 -49
- package/dist/src/index.d.ts +1 -0
- package/dist/src/rooms/components/RoomAvatars.d.ts +12 -0
- package/dist/src/rooms/context/RoomsContext.d.ts +9 -0
- package/dist/src/rooms/hooks/useRoom.d.ts +6 -0
- package/dist/src/rooms/index.d.ts +5 -0
- package/dist/src/rooms/providers/RoomsProvider.d.ts +6 -0
- package/dist/src/rooms/types/rooms.types.d.ts +7 -0
- package/dist/src/rooms/utils/constants.d.ts +5 -0
- package/dist/src/rooms/utils/user-color.utils.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";require('./index.css');var
|
|
1
|
+
"use strict";require('./index.css');var mi=e=>{throw TypeError(e)};var mo=(e,t,n)=>t.has(e)||mi("Cannot "+n);var b=(e,t,n)=>(mo(e,t,"read from private field"),n?n.call(e):t.get(e)),L=(e,t,n)=>t.has(e)?mi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),O=(e,t,n,r)=>(mo(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),$=(e,t,n)=>(mo(e,t,"access private method"),n);var Zn=(e,t,n,r)=>({set _(o){O(e,t,o,n)},get _(){return b(e,t,r)}});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react"),yr=require("single-spa"),Ia=require("react-dom");function Ma(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const m=Ma(S),$a=Ma(Ia),sd={auth:{SESSION_EXPIRED:"platform:auth:session-expired"},apps:{APP_CLICKED:"platform:apps:app-clicked"},shell:{NAVBAR_STATE_CHANGED:"platform:shell:navbar-state-changed",MENU_STATE_CHANGED:"platform:shell:menu-state-changed"}},Tn="__PAE_GLOBAL_STATE__",Fa="__PAE_REACTIVE_GLOBAL_STATE__",Ba="__PAE_EXTENSIONS_POINTS_REGISTRY__",Oo="__PAE_CUSTOMIZATIONS_LOADING_STATE_KEY__",id="/auth/logout",ad=(e,t)=>{const[n,r]=S.useState(t);return S.useEffect(()=>{const o=e.subscribe(s=>{r(s)});return()=>{o.unsubscribe()}},[r]),n},cd=(e,t,n)=>n.map((r,o)=>o===e?t(r):r),ld=(e,t,n)=>cd(n.findIndex(e),t,n),jo=(e,t)=>typeof e=="function"?e(t):e,Ua=(e,t)=>{const n=ad(e,t),r=S.useCallback(o=>{e.next(jo(o,n))},[n]);return[n,r]},Mn=()=>Ua(window[Fa],window[Tn]),$n=()=>Mn()[0].catalog,ud=()=>{const e=$n(),t=S.useCallback(r=>{window[Fa].next({...window[Tn],catalog:jo(r,e)})},[e]),n=S.useCallback((r,o)=>{t(s=>ld(i=>i.name===r,i=>{var a;return{...i,ui:{...i.ui,customProps:jo(o,((a=i.ui)==null?void 0:a.customProps)??{})}}},s))},[t]);return[e,t,n]},Wa=()=>{const[e,t]=S.useState(document.location.pathname);return S.useEffect(()=>{const n=()=>{t(window.location.pathname)};return window.addEventListener("popstate",n),()=>{window.removeEventListener("popstate",n)}},[t]),e};var dd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ha={exports:{}},Cn={},gi;function hd(){if(gi)return Cn;gi=1;/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.development.js
|
|
4
4
|
*
|
|
@@ -6,30 +6,30 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/return function(){var e=
|
|
10
|
-
`+Wt+v}}var Ht=!1,Ct;{var
|
|
11
|
-
`),ae=
|
|
9
|
+
*/return function(){var e=S,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),w=Symbol.iterator,h="@@iterator";function y(v){if(v===null||typeof v!="object")return null;var T=w&&v[w]||v[h];return typeof T=="function"?T:null}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(v){{for(var T=arguments.length,j=new Array(T>1?T-1:0),I=1;I<T;I++)j[I-1]=arguments[I];_("error",v,j)}}function _(v,T,j){{var I=C.ReactDebugCurrentFrame,q=I.getStackAddendum();q!==""&&(T+="%s",j=j.concat([q]));var K=j.map(function(W){return String(W)});K.unshift("Warning: "+T),Function.prototype.apply.call(console[v],console,K)}}var E=!1,R=!1,P=!1,A=!1,M=!1,k;k=Symbol.for("react.module.reference");function N(v){return!!(typeof v=="string"||typeof v=="function"||v===r||v===s||M||v===o||v===u||v===d||A||v===g||E||R||P||typeof v=="object"&&v!==null&&(v.$$typeof===p||v.$$typeof===f||v.$$typeof===i||v.$$typeof===a||v.$$typeof===c||v.$$typeof===k||v.getModuleId!==void 0))}function V(v,T,j){var I=v.displayName;if(I)return I;var q=T.displayName||T.name||"";return q!==""?j+"("+q+")":j}function Q(v){return v.displayName||"Context"}function H(v){if(v==null)return null;if(typeof v.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof v=="function")return v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case r:return"Fragment";case n:return"Portal";case s:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof v=="object")switch(v.$$typeof){case a:var T=v;return Q(T)+".Consumer";case i:var j=v;return Q(j._context)+".Provider";case c:return V(v,v.render,"ForwardRef");case f:var I=v.displayName||null;return I!==null?I:H(v.type)||"Memo";case p:{var q=v,K=q._payload,W=q._init;try{return H(W(K))}catch{return null}}}return null}var G=Object.assign,ne=0,Z,X,F,re,ye,bt,qn;function zn(){}zn.__reactDisabledLog=!0;function ao(){{if(ne===0){Z=console.log,X=console.info,F=console.warn,re=console.error,ye=console.group,bt=console.groupCollapsed,qn=console.groupEnd;var v={configurable:!0,enumerable:!0,value:zn,writable:!0};Object.defineProperties(console,{info:v,log:v,warn:v,error:v,group:v,groupCollapsed:v,groupEnd:v})}ne++}}function co(){{if(ne--,ne===0){var v={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:G({},v,{value:Z}),info:G({},v,{value:X}),warn:G({},v,{value:F}),error:G({},v,{value:re}),group:G({},v,{value:ye}),groupCollapsed:G({},v,{value:bt}),groupEnd:G({},v,{value:qn})})}ne<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var bn=C.ReactCurrentDispatcher,Wt;function wt(v,T,j){{if(Wt===void 0)try{throw Error()}catch(q){var I=q.stack.trim().match(/\n( *(at )?)/);Wt=I&&I[1]||""}return`
|
|
10
|
+
`+Wt+v}}var Ht=!1,Ct;{var Gn=typeof WeakMap=="function"?WeakMap:Map;Ct=new Gn}function wn(v,T){if(!v||Ht)return"";{var j=Ct.get(v);if(j!==void 0)return j}var I;Ht=!0;var q=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var K;K=bn.current,bn.current=null,ao();try{if(T){var W=function(){throw Error()};if(Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(de){I=de}Reflect.construct(v,[],W)}else{try{W.call()}catch(de){I=de}v.call(W.prototype)}}else{try{throw Error()}catch(de){I=de}v()}}catch(de){if(de&&I&&typeof de.stack=="string"){for(var B=de.stack.split(`
|
|
11
|
+
`),ae=I.stack.split(`
|
|
12
12
|
`),ee=B.length-1,te=ae.length-1;ee>=1&&te>=0&&B[ee]!==ae[te];)te--;for(;ee>=1&&te>=0;ee--,te--)if(B[ee]!==ae[te]){if(ee!==1||te!==1)do if(ee--,te--,te<0||B[ee]!==ae[te]){var Ce=`
|
|
13
|
-
`+B[ee].replace(" at new "," at ");return v.displayName&&Ce.includes("<anonymous>")&&(Ce=Ce.replace("<anonymous>",v.displayName)),typeof v=="function"&&Ct.set(v,Ce),Ce}while(ee>=1&&te>=0);break}}}finally{Ht=!1,bn.current=K,
|
|
13
|
+
`+B[ee].replace(" at new "," at ");return v.displayName&&Ce.includes("<anonymous>")&&(Ce=Ce.replace("<anonymous>",v.displayName)),typeof v=="function"&&Ct.set(v,Ce),Ce}while(ee>=1&&te>=0);break}}}finally{Ht=!1,bn.current=K,co(),Error.prepareStackTrace=q}var zt=v?v.displayName||v.name:"",St=zt?wt(zt):"";return typeof v=="function"&&Ct.set(v,St),St}function xt(v,T,j){return wn(v,!1)}function Qn(v){var T=v.prototype;return!!(T&&T.isReactComponent)}function Vt(v,T,j){if(v==null)return"";if(typeof v=="function")return wn(v,Qn(v));if(typeof v=="string")return wt(v);switch(v){case u:return wt("Suspense");case d:return wt("SuspenseList")}if(typeof v=="object")switch(v.$$typeof){case c:return xt(v.render);case f:return Vt(v.type,T,j);case p:{var I=v,q=I._payload,K=I._init;try{return Vt(K(q),T,j)}catch{}}}return""}var Et=Object.prototype.hasOwnProperty,Kn={},Yn=C.ReactDebugCurrentFrame;function Ue(v){if(v){var T=v._owner,j=Vt(v.type,v._source,T?T.type:null);Yn.setExtraStackFrame(j)}else Yn.setExtraStackFrame(null)}function Mu(v,T,j,I,q){{var K=Function.call.bind(Et);for(var W in v)if(K(v,W)){var B=void 0;try{if(typeof v[W]!="function"){var ae=Error((I||"React class")+": "+j+" type `"+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof v[W]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ae.name="Invariant Violation",ae}B=v[W](T,W,I,j,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ee){B=ee}B&&!(B instanceof Error)&&(Ue(q),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",I||"React class",j,W,typeof B),Ue(null)),B instanceof Error&&!(B.message in Kn)&&(Kn[B.message]=!0,Ue(q),x("Failed %s type: %s",j,B.message),Ue(null))}}}var $u=Array.isArray;function lo(v){return $u(v)}function Fu(v){{var T=typeof Symbol=="function"&&Symbol.toStringTag,j=T&&v[Symbol.toStringTag]||v.constructor.name||"Object";return j}}function Bu(v){try{return ri(v),!1}catch{return!0}}function ri(v){return""+v}function oi(v){if(Bu(v))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Fu(v)),ri(v)}var si=C.ReactCurrentOwner,Uu={key:!0,ref:!0,__self:!0,__source:!0},ii,ai;function Wu(v){if(Et.call(v,"ref")){var T=Object.getOwnPropertyDescriptor(v,"ref").get;if(T&&T.isReactWarning)return!1}return v.ref!==void 0}function Hu(v){if(Et.call(v,"key")){var T=Object.getOwnPropertyDescriptor(v,"key").get;if(T&&T.isReactWarning)return!1}return v.key!==void 0}function Vu(v,T){typeof v.ref=="string"&&si.current}function qu(v,T){{var j=function(){ii||(ii=!0,x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",T))};j.isReactWarning=!0,Object.defineProperty(v,"key",{get:j,configurable:!0})}}function zu(v,T){{var j=function(){ai||(ai=!0,x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",T))};j.isReactWarning=!0,Object.defineProperty(v,"ref",{get:j,configurable:!0})}}var Gu=function(v,T,j,I,q,K,W){var B={$$typeof:t,type:v,key:T,ref:j,props:W,_owner:K};return B._store={},Object.defineProperty(B._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(B,"_self",{configurable:!1,enumerable:!1,writable:!1,value:I}),Object.defineProperty(B,"_source",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.freeze&&(Object.freeze(B.props),Object.freeze(B)),B};function Qu(v,T,j,I,q){{var K,W={},B=null,ae=null;j!==void 0&&(oi(j),B=""+j),Hu(T)&&(oi(T.key),B=""+T.key),Wu(T)&&(ae=T.ref,Vu(T,q));for(K in T)Et.call(T,K)&&!Uu.hasOwnProperty(K)&&(W[K]=T[K]);if(v&&v.defaultProps){var ee=v.defaultProps;for(K in ee)W[K]===void 0&&(W[K]=ee[K])}if(B||ae){var te=typeof v=="function"?v.displayName||v.name||"Unknown":v;B&&qu(W,te),ae&&zu(W,te)}return Gu(v,B,ae,q,I,si.current,W)}}var uo=C.ReactCurrentOwner,ci=C.ReactDebugCurrentFrame;function qt(v){if(v){var T=v._owner,j=Vt(v.type,v._source,T?T.type:null);ci.setExtraStackFrame(j)}else ci.setExtraStackFrame(null)}var fo;fo=!1;function ho(v){return typeof v=="object"&&v!==null&&v.$$typeof===t}function li(){{if(uo.current){var v=H(uo.current.type);if(v)return`
|
|
14
14
|
|
|
15
|
-
Check the render method of \``+v+"`."}return""}}function
|
|
15
|
+
Check the render method of \``+v+"`."}return""}}function Ku(v){return""}var ui={};function Yu(v){{var T=li();if(!T){var j=typeof v=="string"?v:v.displayName||v.name;j&&(T=`
|
|
16
16
|
|
|
17
|
-
Check the top-level render call using <`+j+">.")}return T}}function
|
|
17
|
+
Check the top-level render call using <`+j+">.")}return T}}function di(v,T){{if(!v._store||v._store.validated||v.key!=null)return;v._store.validated=!0;var j=Yu(T);if(ui[j])return;ui[j]=!0;var I="";v&&v._owner&&v._owner!==uo.current&&(I=" It was passed a child from "+H(v._owner.type)+"."),qt(v),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',j,I),qt(null)}}function fi(v,T){{if(typeof v!="object")return;if(lo(v))for(var j=0;j<v.length;j++){var I=v[j];ho(I)&&di(I,T)}else if(ho(v))v._store&&(v._store.validated=!0);else if(v){var q=y(v);if(typeof q=="function"&&q!==v.entries)for(var K=q.call(v),W;!(W=K.next()).done;)ho(W.value)&&di(W.value,T)}}}function Zu(v){{var T=v.type;if(T==null||typeof T=="string")return;var j;if(typeof T=="function")j=T.propTypes;else if(typeof T=="object"&&(T.$$typeof===c||T.$$typeof===f))j=T.propTypes;else return;if(j){var I=H(T);Mu(j,v.props,"prop",I,v)}else if(T.PropTypes!==void 0&&!fo){fo=!0;var q=H(T);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",q||"Unknown")}typeof T.getDefaultProps=="function"&&!T.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Xu(v){{for(var T=Object.keys(v.props),j=0;j<T.length;j++){var I=T[j];if(I!=="children"&&I!=="key"){qt(v),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",I),qt(null);break}}v.ref!==null&&(qt(v),x("Invalid attribute `ref` supplied to `React.Fragment`."),qt(null))}}var hi={};function pi(v,T,j,I,q,K){{var W=N(v);if(!W){var B="";(v===void 0||typeof v=="object"&&v!==null&&Object.keys(v).length===0)&&(B+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ae=Ku();ae?B+=ae:B+=li();var ee;v===null?ee="null":lo(v)?ee="array":v!==void 0&&v.$$typeof===t?(ee="<"+(H(v.type)||"Unknown")+" />",B=" Did you accidentally export a JSX literal instead of a component?"):ee=typeof v,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ee,B)}var te=Qu(v,T,j,q,K);if(te==null)return te;if(W){var Ce=T.children;if(Ce!==void 0)if(I)if(lo(Ce)){for(var zt=0;zt<Ce.length;zt++)fi(Ce[zt],v);Object.freeze&&Object.freeze(Ce)}else x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else fi(Ce,v)}if(Et.call(T,"key")){var St=H(v),de=Object.keys(T).filter(function(od){return od!=="key"}),po=de.length>0?"{key: someKey, "+de.join(": ..., ")+": ...}":"{key: someKey}";if(!hi[St+po]){var rd=de.length>0?"{"+de.join(": ..., ")+": ...}":"{}";x(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,
|
|
22
|
+
<%s key={someKey} {...props} />`,po,St,rd,St),hi[St+po]=!0}}return v===r?Xu(te):Zu(te),te}}function Ju(v,T,j){return pi(v,T,j,!0)}function ed(v,T,j){return pi(v,T,j,!1)}var td=ed,nd=Ju;Cn.Fragment=r,Cn.jsx=td,Cn.jsxs=nd}(),Cn}Ha.exports=hd();var l=Ha.exports;const Va=S.createContext(null),qa=({module:e,children:t})=>l.jsx(Va.Provider,{value:e,children:t});qa.displayName="PAEModule";const Fn=()=>{const e=S.useContext(Va);if(!e)throw new Error("Module metadata was not setup yet !!");return e};function fs(){if(!window[Tn])throw new Error("PAE Global state not found.");return window[Tn]}const hs=()=>{const{authUser:{applications:e}}=fs();return e||[]},za=e=>hs().filter(t=>t.isGlobal||t.name===e).flatMap(t=>t.operations),Ga=()=>{const{application:e}=Fn();return S.useMemo(()=>za(e),[e])},Qa=e=>(...t)=>t.every(n=>e.some(r=>r.name===n)),Hr=()=>{const[{authUser:e}]=Mn(),t=Ga();return{authUser:e,hasAccess:S.useMemo(()=>Qa(t),[t])}},pd=()=>{const{authUser:e}=Hr();return!e||e.id==="anon"},Ka=()=>{var e;return((e=Fn().ui)==null?void 0:e.customProps)??{}},ps=e=>{const t=$n();return S.useMemo(()=>{const n=t.find(r=>r.name===e);if(!n)throw new Error(`Could not find the module [${e}] in the local catalog !`);return n},[t,e])},Ya=e=>{var t,n;return((n=(t=ps(e))==null?void 0:t.ui)==null?void 0:n.customProps)??{}},md=e=>e.replace(/\/+/g,"/"),gd=(e,t="only-base-path")=>{const{apiDocs:n,health:r,version:o,changelog:s}=(e==null?void 0:e.commonPaths)||{},i=(a,c="")=>{if(a===void 0&&!c)return;const u=a??c;if(t==="only-base-path")return u;const d=md(`${e.baseUrl}/${u}`);return t==="with-module-base"?d:`${document.location.origin}${d}`};return{apiDocsPath:i(n,"/api-docs-json"),healthPath:i(r,"/health"),versionPath:i(o,"/version"),changelogPath:i(s,"/changelog")}};function yd(){window.open(id,"_self")}const vd=e=>yr.navigateToUrl(e),bd=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/,wd=e=>bd.test(e),Cd=(e,t=2)=>{if(!e)return"";const n=e.split(" ");return n.length===1?n.join("").slice(0,t):n.map(r=>r[0]).join("").slice(0,t)},Za=e=>e.type==="app",xd=e=>e.modules.some(Za)&&e.route&&e.route!=="/",Xa=e=>{const{catalog:t}=fs();return Vr(t.filter(n=>n.application===e))},Vr=(e=[])=>e.find(t=>{var n;return Za(t)&&((n=t.ui)==null?void 0:n.route)!=="/"}),Ja=()=>{const e=$n();return S.useMemo(()=>hs().map(n=>{var s,i,a;const r=Ed(e,n.name),o=Vr(r);return{name:n.name,displayName:((i=(s=o==null?void 0:o.ui)==null?void 0:s.customProps)==null?void 0:i.overrideApplicationDisplayName)??n.displayName,modules:r,route:(a=o==null?void 0:o.ui)==null?void 0:a.route,roles:[],operations:n.operations}}),[e])},Ed=(e,t)=>e.filter(n=>n.application===t)||[],ec=()=>{const e=Ja();return S.useMemo(()=>e.filter(xd),[e])},tc=e=>S.useMemo(()=>e?Xa(e.name):void 0,[e]),ht=new Map,Sd=e=>{try{const{catalog:t}=fs(),n=t.find(r=>r.name===e);return n!=null&&n.version?`${e}@${n.version}`:e}catch{return e}},qr=e=>{const[t,n]=S.useState(null);return S.useEffect(()=>{(async()=>{if(!e){n(null);return}try{const o=Sd(e);if(ht.has(o)){const i=ht.get(o);n(i);return}const s=await System.import(e);ht.set(o,s),n(s)}catch(o){console.error(`Error importing module ${e}: ${o.message}`),n(null)}})()},[e,n]),t},_d=e=>{e?(Array.from(ht.keys()).filter(n=>n.startsWith(e)).forEach(n=>ht.delete(n)),console.log(`[useApplicationJSModule] Cleared cache for module: ${e}`)):(ht.clear(),console.log("[useApplicationJSModule] Cleared all module cache"))};typeof window<"u"&&(window.PAE={...window.PAE,clearModuleCache:_d,getModuleCacheSize:()=>ht.size,getModuleCacheKeys:()=>Array.from(ht.keys())});const nc=e=>{const t=typeof e=="string"?Xa(e):Vr(e==null?void 0:e.modules),n=qr(t==null?void 0:t.name);return n==null?void 0:n.icon},rc=e=>{const t=Vr(e==null?void 0:e.modules),n=qr(t==null?void 0:t.name),[r,o]=S.useState(!1),[s,i]=S.useState({}),a=async()=>(typeof(n==null?void 0:n.menu)=="function"?await n.menu():n==null?void 0:n.menu)||[],c=async()=>{if(!(n!=null&&n.menu))return[];o(!0);const f=Rd((e==null?void 0:e.operations)||[]),p=(await a()).map(g=>{const{operations:w,items:h,path:y}=g;if(w!=null&&w.length&&!f(w))return null;const C=(h||[]).filter(x=>{var _;return!((_=x==null?void 0:x.operations)!=null&&_.length)||f(x.operations)});return!C.length&&!y?null:{...g,items:C}}).filter(Boolean);return o(!1),p},u=async()=>{const f=await c();e&&i(p=>({...p,[e.name]:f}))};S.useEffect(()=>{u()},[n==null?void 0:n.menu]);const d=S.useMemo(()=>e?s[e.name]||[]:[],[s,e]);return{loading:r,menu:d}},Rd=e=>t=>t.every(n=>e.some(r=>r.name===n)),Td=e=>rc(e);function Y(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function _t(e){return function t(n){return arguments.length===0||Y(n)?t:e.apply(this,arguments)}}function et(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return Y(n)?t:_t(function(o){return e(n,o)});default:return Y(n)&&Y(r)?t:Y(n)?_t(function(o){return e(o,r)}):Y(r)?_t(function(o){return e(n,o)}):e(n,r)}}}function ms(e){return function t(n,r,o){switch(arguments.length){case 0:return t;case 1:return Y(n)?t:et(function(s,i){return e(n,s,i)});case 2:return Y(n)&&Y(r)?t:Y(n)?et(function(s,i){return e(s,r,i)}):Y(r)?et(function(s,i){return e(n,s,i)}):_t(function(s){return e(n,r,s)});default:return Y(n)&&Y(r)&&Y(o)?t:Y(n)&&Y(r)?et(function(s,i){return e(s,i,o)}):Y(n)&&Y(o)?et(function(s,i){return e(s,r,i)}):Y(r)&&Y(o)?et(function(s,i){return e(n,s,i)}):Y(n)?_t(function(s){return e(s,r,o)}):Y(r)?_t(function(s){return e(n,s,o)}):Y(o)?_t(function(s){return e(n,r,s)}):e(n,r,o)}}}function Xn(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function yi(e){return Object.prototype.toString.call(e)==="[object Object]"}var Ad=ms(function(t,n,r){var o=t(n),s=t(r);return o>s?-1:o<s?1:0}),Pd=ms(function(t,n,r){var o={},s;n=n||{},r=r||{};for(s in n)Xn(s,n)&&(o[s]=Xn(s,r)?t(s,n[s],r[s]):n[s]);for(s in r)Xn(s,r)&&!Xn(s,o)&&(o[s]=r[s]);return o}),Od=ms(function e(t,n,r){return Pd(function(o,s,i){return yi(s)&&yi(i)?e(t,s,i):t(o,s,i)},n,r)}),jd=et(function(t,n){return Od(function(r,o,s){return s},t,n)}),Dd=et(function(t,n){return Array.prototype.slice.call(n,0).sort(function(r,o){for(var s=0,i=0;s===0&&i<t.length;)s=t[i](r,o),i+=1;return s})});const gs=()=>{const e=Wa(),t=ec();return S.useMemo(()=>Ld(e,t),[e,t])},Ld=(e,t)=>Dd([Ad(Nd)],t).find(n=>n.route&&e.startsWith(n.route)),Nd=e=>{var t;return((t=e==null?void 0:e.route)==null?void 0:t.length)||-1},oc=()=>{var e;return(e=gs())==null?void 0:e.name},kd=()=>{const e=gs(),t=tc(e);return qr(t==null?void 0:t.name)},ys=(e,t)=>{const r=$n().find(o=>o.name===e);if(!r){if(t)return null;throw new Error(`Service with name [${e}] not available in the catalog`)}return r.baseUrl},vs=(e,t)=>{const n=ys(e,!!t)??t;return S.useCallback((r,o)=>{const i={Accept:"application/json",...(o==null?void 0:o.body)instanceof FormData?{}:{"Content-Type":"application/json"},...o==null?void 0:o.headers};return fetch(Id(`${n}${r}`),{...o,headers:i})},[n])},Id=e=>e.replace(/\/+/g,"/"),Md=(e,t)=>n=>({timestamp:new Date(new Date().toUTCString()).toISOString(),module:t.name,moduleVersion:t.version,application:t.application,user:e.username,...n}),$d=(e,t,n)=>async r=>{if(r.length===0)throw new Error("Invalid call to trackEvents with an empty array of events!");const o=await e("/event",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r.map(Md(t,n)))});if(!o.ok)throw new Error(`Error publishing habits event ${o.statusText}`)},Fd="@bluealba/pae-habits-service",sc=()=>{const{authUser:e}=Hr(),t=Fn(),n=vs(Fd);return S.useCallback($d(n,e,t),[n,e,t])},Bd=()=>{const e=sc();return S.useCallback((t,n)=>e([{name:t,data:n}]),[e])},ic=e=>{const t=Fn(),n=window[Ba],[r,o]=S.useState(null);return S.useEffect(()=>n.defineExtensionPoint(t,e,s=>{o(()=>s)}),[o]),r},ac=(e,t,n)=>{S.useEffect(()=>window[Ba].setExtensionPoint(e,t,n),[])},cc=(e,t)=>{S.useEffect(()=>(window.addEventListener(e,t),()=>window.removeEventListener(e,t)),[e,t])},lc=e=>{const{cssCustomizationLoadingDelay:t=1e3}=Ka();S.useEffect(()=>{if(!e)return;const n=document.createElement("style");return setTimeout(()=>{n.innerHTML=e,document.head.append(n)},t),()=>n&&n.remove()},[e])},Ud=e=>{var t;return(t=e.split(/[#?]/)[0].split(".").pop())==null?void 0:t.trim()},Wd={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"},Hd=e=>{const t=Ud(e);return t?Wd[t]:void 0},Vd=(e,t)=>{const n=t??Hd(e);return n?`format(${n})`:""};function uc(e){const[t,n]=S.useState(!1);return S.useEffect(()=>{if(!(e!=null&&e.length))return;const r=document.createElement("style");r.setAttribute("data-generated-fonts","true");const o=e.flatMap(({fontFamily:i,variants:a})=>a.map(({path:c,fontWeight:u,format:d})=>`
|
|
23
23
|
@font-face {
|
|
24
24
|
font-family: "${i}";
|
|
25
|
-
src: url("${c}") ${
|
|
26
|
-
font-weight: ${
|
|
25
|
+
src: url("${c}") ${Vd(c,d)};
|
|
26
|
+
font-weight: ${u};
|
|
27
27
|
font-style: normal;
|
|
28
28
|
}
|
|
29
29
|
`)).join(`
|
|
30
|
-
`);return r.innerHTML=o,document.head.appendChild(r),(async()=>{try{await Promise.all(e.flatMap(({fontFamily:i,variants:a})=>a.map(({fontWeight:c})=>document.fonts.load(`normal ${c} 1em "${i}"`))))}finally{n(!0)}})(),()=>{document.head.removeChild(r)}},[e]),
|
|
30
|
+
`);return r.innerHTML=o,document.head.appendChild(r),(async()=>{try{await Promise.all(e.flatMap(({fontFamily:i,variants:a})=>a.map(({fontWeight:c})=>document.fonts.load(`normal ${c} 1em "${i}"`))))}finally{n(!0)}})(),()=>{document.head.removeChild(r)}},[e]),S.useEffect(()=>{!t&&!(e!=null&&e.length)&&n(!0)},[e,t]),{fontsLoaded:t}}var Do=function(e,t){return Do=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},Do(e,t)};function Bn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Do(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ne=function(){return Ne=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Ne.apply(this,arguments)};function dc(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Lo(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function No(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,s=[],i;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(a){i={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}function Ar(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}function ze(e){return typeof e=="function"}function fc(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var go=fc(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
31
31
|
`+n.map(function(r,o){return o+1+") "+r.toString()}).join(`
|
|
32
|
-
`):"",this.name="UnsubscriptionError",this.errors=n}});function Do(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Vr=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,o,s;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=Oo(i),c=a.next();!c.done;c=a.next()){var l=c.value;l.remove(this)}}catch(m){t={error:m}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else i.remove(this);var d=this.initialTeardown;if(ze(d))try{d()}catch(m){s=m instanceof po?m.errors:[m]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var p=Oo(h),g=p.next();!g.done;g=p.next()){var w=g.value;try{pi(w)}catch(m){s=s??[],m instanceof po?s=Tr(Tr([],jo(s)),jo(m.errors)):s.push(m)}}}catch(m){r={error:m}}finally{try{g&&!g.done&&(o=p.return)&&o.call(p)}finally{if(r)throw r.error}}}if(s)throw new po(s)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)pi(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Do(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Do(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),uc=Vr.EMPTY;function dc(e){return e instanceof Vr||e&&"closed"in e&&ze(e.remove)&&ze(e.add)&&ze(e.unsubscribe)}function pi(e){ze(e)?e():e.unsubscribe()}var Ud={Promise:void 0},Wd={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,Tr([e,t],jo(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Hd(e){Wd.setTimeout(function(){throw e})}function mi(){}function yr(e){e()}var fc=function(e){Fn(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,dc(n)&&n.add(r)):r.destination=zd,r}return t.create=function(n,r,o){return new Lo(n,r,o)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Vr),Vd=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){Xn(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){Xn(r)}else Xn(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Xn(n)}},e}(),Lo=function(e){Fn(t,e);function t(n,r,o){var s=e.call(this)||this,i;return ze(n)||!n?i={next:n??void 0,error:r??void 0,complete:o??void 0}:i=n,s.destination=new Vd(i),s}return t}(fc);function Xn(e){Hd(e)}function qd(e){throw e}var zd={closed:!0,next:mi,error:qd,complete:mi},Gd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Qd(e){return e}function Kd(e){return e.length===0?Qd:e.length===1?e[0]:function(n){return e.reduce(function(r,o){return o(r)},n)}}var gi=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var o=this,s=Zd(t)?t:new Lo(t,n,r);return yr(function(){var i=o,a=i.operator,c=i.source;s.add(a?a.call(s,c):c?o._subscribe(s):o._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=yi(n),new n(function(o,s){var i=new Lo({next:function(a){try{t(a)}catch(c){s(c),i.unsubscribe()}},error:s,complete:o});r.subscribe(i)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[Gd]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Kd(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=yi(t),new t(function(r,o){var s;n.subscribe(function(i){return s=i},function(i){return o(i)},function(){return r(s)})})},e.create=function(t){return new e(t)},e}();function yi(e){var t;return(t=e??Ud.Promise)!==null&&t!==void 0?t:Promise}function Yd(e){return e&&ze(e.next)&&ze(e.error)&&ze(e.complete)}function Zd(e){return e&&e instanceof fc||Yd(e)&&dc(e)}var Xd=lc(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),hc=function(e){Fn(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new vi(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new Xd},t.prototype.next=function(n){var r=this;yr(function(){var o,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var i=Oo(r.currentObservers),a=i.next();!a.done;a=i.next()){var c=a.value;c.next(n)}}catch(l){o={error:l}}finally{try{a&&!a.done&&(s=i.return)&&s.call(i)}finally{if(o)throw o.error}}}})},t.prototype.error=function(n){var r=this;yr(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var o=r.observers;o.length;)o.shift().error(n)}})},t.prototype.complete=function(){var n=this;yr(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,o=this,s=o.hasError,i=o.isStopped,a=o.observers;return s||i?uc:(this.currentObservers=null,a.push(n),new Vr(function(){r.currentObservers=null,Do(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,o=r.hasError,s=r.thrownError,i=r.isStopped;o?n.error(s):i&&n.complete()},t.prototype.asObservable=function(){var n=new gi;return n.source=this,n},t.create=function(n,r){return new vi(n,r)},t}(gi),vi=function(e){Fn(t,e);function t(n,r){var o=e.call(this)||this;return o.destination=n,o.source=r,o}return t.prototype.next=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,n)},t.prototype.error=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&o!==void 0?o:uc},t}(hc),Jd=function(e){Fn(t,e);function t(n){var r=e.call(this)||this;return r._value=n,r}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(n){var r=e.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},t.prototype.getValue=function(){var n=this,r=n.hasError,o=n.thrownError,s=n._value;if(r)throw o;return this._throwIfClosed(),s},t.prototype.next=function(n){e.prototype.next.call(this,this._value=n)},t}(hc);const ef=e=>{const{fontsLoaded:t}=ac(e.fonts);ic(e.styleSheet);const n=()=>{const r=new Jd(!0);window[To]=r};R.useEffect(()=>{t&&window[To].next(!1)},[t]),R.useEffect(()=>{n()},[])},tf=()=>{const e=window[To];return Ma(e,e.getValue()??void 0)},ko="theme",bi=()=>document.documentElement.dataset[ko]==="dark"?"dark":"light",nf=()=>{const[e,t]=R.useState(bi());return R.useEffect(()=>{const n=document.documentElement,r=()=>t(bi),o=new MutationObserver(s=>{for(const i of s)i.type==="attributes"&&i.attributeName===`data-${ko}`&&r()});return o.observe(n,{attributes:!0,attributeFilter:[`data-${ko}`]}),r(),()=>{o.disconnect()}},[]),e},rf=e=>e!==void 0,of=e=>e!==!0;let sf={data:""},af=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||sf},cf=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,lf=/\/\*[^]*?\*\/| +/g,wi=/\n+/g,tt=(e,t)=>{let n="",r="",o="";for(let s in e){let i=e[s];s[0]=="@"?s[1]=="i"?n=s+" "+i+";":r+=s[1]=="f"?tt(i,s):s+"{"+tt(i,s[1]=="k"?"":t)+"}":typeof i=="object"?r+=tt(i,t?t.replace(/([^,])+/g,a=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,a):a?a+" "+c:c)):s):i!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=tt.p?tt.p(s,i):s+":"+i+";")}return n+(t&&o?t+"{"+o+"}":o)+r},We={},pc=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+pc(e[n]);return t}return e},uf=(e,t,n,r,o)=>{let s=pc(e),i=We[s]||(We[s]=(c=>{let l=0,d=11;for(;l<c.length;)d=101*d+c.charCodeAt(l++)>>>0;return"go"+d})(s));if(!We[i]){let c=s!==e?e:(l=>{let d,h,p=[{}];for(;d=cf.exec(l.replace(lf,""));)d[4]?p.shift():d[3]?(h=d[3].replace(wi," ").trim(),p.unshift(p[0][h]=p[0][h]||{})):p[0][d[1]]=d[2].replace(wi," ").trim();return p[0]})(e);We[i]=tt(o?{["@keyframes "+i]:c}:c,n?"":"."+i)}let a=n&&We.g?We.g:null;return n&&(We.g=We[i]),((c,l,d,h)=>{h?l.data=l.data.replace(h,c):l.data.indexOf(c)===-1&&(l.data=d?c+l.data:l.data+c)})(We[i],t,r,a),i},df=(e,t,n)=>e.reduce((r,o,s)=>{let i=t[s];if(i&&i.call){let a=i(n),c=a&&a.props&&a.props.className||/^go/.test(a)&&a;i=c?"."+c:a&&typeof a=="object"?a.props?"":tt(a,""):a===!1?"":a}return r+o+(i??"")},"");function qr(e){let t=this||{},n=e.call?e(t.p):e;return uf(n.unshift?n.raw?df(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,af(t.target),t.g,t.o,t.k)}let mc,Io,No;qr.bind({g:1});let Qe=qr.bind({k:1});function ff(e,t,n,r){tt.p=t,mc=e,Io=n,No=r}function vt(e,t){let n=this||{};return function(){let r=arguments;function o(s,i){let a=Object.assign({},s),c=a.className||o.className;n.p=Object.assign({theme:Io&&Io()},a),n.o=/ *go\d+/.test(c),a.className=qr.apply(n,r)+(c?" "+c:"");let l=e;return e[0]&&(l=a.as||e,delete a.as),No&&l[0]&&No(a),mc(l,a)}return o}}var hf=e=>typeof e=="function",Ar=(e,t)=>hf(e)?e(t):e,pf=(()=>{let e=0;return()=>(++e).toString()})(),gc=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),mf=20,vr=new Map,gf=1e3,Ci=e=>{if(vr.has(e))return;let t=setTimeout(()=>{vr.delete(e),Bt({type:4,toastId:e})},gf);vr.set(e,t)},yf=e=>{let t=vr.get(e);t&&clearTimeout(t)},Mo=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,mf)};case 1:return t.toast.id&&yf(t.toast.id),{...e,toasts:e.toasts.map(s=>s.id===t.toast.id?{...s,...t.toast}:s)};case 2:let{toast:n}=t;return e.toasts.find(s=>s.id===n.id)?Mo(e,{type:1,toast:n}):Mo(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?Ci(r):e.toasts.forEach(s=>{Ci(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===r||r===void 0?{...s,visible:!1}:s)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(s=>s.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(s=>({...s,pauseDuration:s.pauseDuration+o}))}}},br=[],wr={toasts:[],pausedAt:void 0},Bt=e=>{wr=Mo(wr,e),br.forEach(t=>{t(wr)})},vf={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},bf=(e={})=>{let[t,n]=R.useState(wr);R.useEffect(()=>(br.push(n),()=>{let o=br.indexOf(n);o>-1&&br.splice(o,1)}),[t]);let r=t.toasts.map(o=>{var s,i;return{...e,...e[o.type],...o,duration:o.duration||((s=e[o.type])==null?void 0:s.duration)||(e==null?void 0:e.duration)||vf[o.type],style:{...e.style,...(i=e[o.type])==null?void 0:i.style,...o.style}}});return{...t,toasts:r}},wf=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||pf()}),Bn=e=>(t,n)=>{let r=wf(t,e,n);return Bt({type:2,toast:r}),r.id},be=(e,t)=>Bn("blank")(e,t);be.error=Bn("error");be.success=Bn("success");be.loading=Bn("loading");be.custom=Bn("custom");be.dismiss=e=>{Bt({type:3,toastId:e})};be.remove=e=>Bt({type:4,toastId:e});be.promise=(e,t,n)=>{let r=be.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(o=>(be.success(Ar(t.success,o),{id:r,...n,...n==null?void 0:n.success}),o)).catch(o=>{be.error(Ar(t.error,o),{id:r,...n,...n==null?void 0:n.error})}),e};var Cf=(e,t)=>{Bt({type:1,toast:{id:e,height:t}})},xf=()=>{Bt({type:5,time:Date.now()})},Ef=e=>{let{toasts:t,pausedAt:n}=bf(e);R.useEffect(()=>{if(n)return;let s=Date.now(),i=t.map(a=>{if(a.duration===1/0)return;let c=(a.duration||0)+a.pauseDuration-(s-a.createdAt);if(c<0){a.visible&&be.dismiss(a.id);return}return setTimeout(()=>be.dismiss(a.id),c)});return()=>{i.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=R.useCallback(()=>{n&&Bt({type:6,time:Date.now()})},[n]),o=R.useCallback((s,i)=>{let{reverseOrder:a=!1,gutter:c=8,defaultPosition:l}=i||{},d=t.filter(g=>(g.position||l)===(s.position||l)&&g.height),h=d.findIndex(g=>g.id===s.id),p=d.filter((g,w)=>w<h&&g.visible).length;return d.filter(g=>g.visible).slice(...a?[p+1]:[0,p]).reduce((g,w)=>g+(w.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:Cf,startPause:xf,endPause:r,calculateOffset:o}}},Sf=Qe`
|
|
32
|
+
`):"",this.name="UnsubscriptionError",this.errors=n}});function ko(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var zr=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,o,s;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=Lo(i),c=a.next();!c.done;c=a.next()){var u=c.value;u.remove(this)}}catch(h){t={error:h}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else i.remove(this);var d=this.initialTeardown;if(ze(d))try{d()}catch(h){s=h instanceof go?h.errors:[h]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var p=Lo(f),g=p.next();!g.done;g=p.next()){var w=g.value;try{vi(w)}catch(h){s=s??[],h instanceof go?s=Ar(Ar([],No(s)),No(h.errors)):s.push(h)}}}catch(h){r={error:h}}finally{try{g&&!g.done&&(o=p.return)&&o.call(p)}finally{if(r)throw r.error}}}if(s)throw new go(s)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)vi(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&ko(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&ko(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),hc=zr.EMPTY;function pc(e){return e instanceof zr||e&&"closed"in e&&ze(e.remove)&&ze(e.add)&&ze(e.unsubscribe)}function vi(e){ze(e)?e():e.unsubscribe()}var qd={Promise:void 0},zd={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,Ar([e,t],No(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Gd(e){zd.setTimeout(function(){throw e})}function bi(){}function vr(e){e()}var mc=function(e){Bn(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,pc(n)&&n.add(r)):r.destination=Yd,r}return t.create=function(n,r,o){return new Io(n,r,o)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(zr),Qd=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){Jn(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){Jn(r)}else Jn(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Jn(n)}},e}(),Io=function(e){Bn(t,e);function t(n,r,o){var s=e.call(this)||this,i;return ze(n)||!n?i={next:n??void 0,error:r??void 0,complete:o??void 0}:i=n,s.destination=new Qd(i),s}return t}(mc);function Jn(e){Gd(e)}function Kd(e){throw e}var Yd={closed:!0,next:bi,error:Kd,complete:bi},Zd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Xd(e){return e}function Jd(e){return e.length===0?Xd:e.length===1?e[0]:function(n){return e.reduce(function(r,o){return o(r)},n)}}var wi=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var o=this,s=tf(t)?t:new Io(t,n,r);return vr(function(){var i=o,a=i.operator,c=i.source;s.add(a?a.call(s,c):c?o._subscribe(s):o._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=Ci(n),new n(function(o,s){var i=new Io({next:function(a){try{t(a)}catch(c){s(c),i.unsubscribe()}},error:s,complete:o});r.subscribe(i)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[Zd]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Jd(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=Ci(t),new t(function(r,o){var s;n.subscribe(function(i){return s=i},function(i){return o(i)},function(){return r(s)})})},e.create=function(t){return new e(t)},e}();function Ci(e){var t;return(t=e??qd.Promise)!==null&&t!==void 0?t:Promise}function ef(e){return e&&ze(e.next)&&ze(e.error)&&ze(e.complete)}function tf(e){return e&&e instanceof mc||ef(e)&&pc(e)}var nf=fc(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),gc=function(e){Bn(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new xi(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new nf},t.prototype.next=function(n){var r=this;vr(function(){var o,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var i=Lo(r.currentObservers),a=i.next();!a.done;a=i.next()){var c=a.value;c.next(n)}}catch(u){o={error:u}}finally{try{a&&!a.done&&(s=i.return)&&s.call(i)}finally{if(o)throw o.error}}}})},t.prototype.error=function(n){var r=this;vr(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var o=r.observers;o.length;)o.shift().error(n)}})},t.prototype.complete=function(){var n=this;vr(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,o=this,s=o.hasError,i=o.isStopped,a=o.observers;return s||i?hc:(this.currentObservers=null,a.push(n),new zr(function(){r.currentObservers=null,ko(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,o=r.hasError,s=r.thrownError,i=r.isStopped;o?n.error(s):i&&n.complete()},t.prototype.asObservable=function(){var n=new wi;return n.source=this,n},t.create=function(n,r){return new xi(n,r)},t}(wi),xi=function(e){Bn(t,e);function t(n,r){var o=e.call(this)||this;return o.destination=n,o.source=r,o}return t.prototype.next=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,n)},t.prototype.error=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&o!==void 0?o:hc},t}(gc),rf=function(e){Bn(t,e);function t(n){var r=e.call(this)||this;return r._value=n,r}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(n){var r=e.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},t.prototype.getValue=function(){var n=this,r=n.hasError,o=n.thrownError,s=n._value;if(r)throw o;return this._throwIfClosed(),s},t.prototype.next=function(n){e.prototype.next.call(this,this._value=n)},t}(gc);const of=e=>{const{fontsLoaded:t}=uc(e.fonts);lc(e.styleSheet);const n=()=>{const r=new rf(!0);window[Oo]=r};S.useEffect(()=>{t&&window[Oo].next(!1)},[t]),S.useEffect(()=>{n()},[])},sf=()=>{const e=window[Oo];return Ua(e,e.getValue()??void 0)},Mo="theme",Ei=()=>document.documentElement.dataset[Mo]==="dark"?"dark":"light",af=()=>{const[e,t]=S.useState(Ei());return S.useEffect(()=>{const n=document.documentElement,r=()=>t(Ei),o=new MutationObserver(s=>{for(const i of s)i.type==="attributes"&&i.attributeName===`data-${Mo}`&&r()});return o.observe(n,{attributes:!0,attributeFilter:[`data-${Mo}`]}),r(),()=>{o.disconnect()}},[]),e},cf=e=>e!==void 0,lf=e=>e!==!0;let uf={data:""},df=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||uf},ff=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,hf=/\/\*[^]*?\*\/| +/g,Si=/\n+/g,tt=(e,t)=>{let n="",r="",o="";for(let s in e){let i=e[s];s[0]=="@"?s[1]=="i"?n=s+" "+i+";":r+=s[1]=="f"?tt(i,s):s+"{"+tt(i,s[1]=="k"?"":t)+"}":typeof i=="object"?r+=tt(i,t?t.replace(/([^,])+/g,a=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,a):a?a+" "+c:c)):s):i!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=tt.p?tt.p(s,i):s+":"+i+";")}return n+(t&&o?t+"{"+o+"}":o)+r},We={},yc=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+yc(e[n]);return t}return e},pf=(e,t,n,r,o)=>{let s=yc(e),i=We[s]||(We[s]=(c=>{let u=0,d=11;for(;u<c.length;)d=101*d+c.charCodeAt(u++)>>>0;return"go"+d})(s));if(!We[i]){let c=s!==e?e:(u=>{let d,f,p=[{}];for(;d=ff.exec(u.replace(hf,""));)d[4]?p.shift():d[3]?(f=d[3].replace(Si," ").trim(),p.unshift(p[0][f]=p[0][f]||{})):p[0][d[1]]=d[2].replace(Si," ").trim();return p[0]})(e);We[i]=tt(o?{["@keyframes "+i]:c}:c,n?"":"."+i)}let a=n&&We.g?We.g:null;return n&&(We.g=We[i]),((c,u,d,f)=>{f?u.data=u.data.replace(f,c):u.data.indexOf(c)===-1&&(u.data=d?c+u.data:u.data+c)})(We[i],t,r,a),i},mf=(e,t,n)=>e.reduce((r,o,s)=>{let i=t[s];if(i&&i.call){let a=i(n),c=a&&a.props&&a.props.className||/^go/.test(a)&&a;i=c?"."+c:a&&typeof a=="object"?a.props?"":tt(a,""):a===!1?"":a}return r+o+(i??"")},"");function Gr(e){let t=this||{},n=e.call?e(t.p):e;return pf(n.unshift?n.raw?mf(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,df(t.target),t.g,t.o,t.k)}let vc,$o,Fo;Gr.bind({g:1});let Qe=Gr.bind({k:1});function gf(e,t,n,r){tt.p=t,vc=e,$o=n,Fo=r}function vt(e,t){let n=this||{};return function(){let r=arguments;function o(s,i){let a=Object.assign({},s),c=a.className||o.className;n.p=Object.assign({theme:$o&&$o()},a),n.o=/ *go\d+/.test(c),a.className=Gr.apply(n,r)+(c?" "+c:"");let u=e;return e[0]&&(u=a.as||e,delete a.as),Fo&&u[0]&&Fo(a),vc(u,a)}return o}}var yf=e=>typeof e=="function",Pr=(e,t)=>yf(e)?e(t):e,vf=(()=>{let e=0;return()=>(++e).toString()})(),bc=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),bf=20,br=new Map,wf=1e3,_i=e=>{if(br.has(e))return;let t=setTimeout(()=>{br.delete(e),Bt({type:4,toastId:e})},wf);br.set(e,t)},Cf=e=>{let t=br.get(e);t&&clearTimeout(t)},Bo=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,bf)};case 1:return t.toast.id&&Cf(t.toast.id),{...e,toasts:e.toasts.map(s=>s.id===t.toast.id?{...s,...t.toast}:s)};case 2:let{toast:n}=t;return e.toasts.find(s=>s.id===n.id)?Bo(e,{type:1,toast:n}):Bo(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?_i(r):e.toasts.forEach(s=>{_i(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===r||r===void 0?{...s,visible:!1}:s)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(s=>s.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(s=>({...s,pauseDuration:s.pauseDuration+o}))}}},wr=[],Cr={toasts:[],pausedAt:void 0},Bt=e=>{Cr=Bo(Cr,e),wr.forEach(t=>{t(Cr)})},xf={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Ef=(e={})=>{let[t,n]=S.useState(Cr);S.useEffect(()=>(wr.push(n),()=>{let o=wr.indexOf(n);o>-1&&wr.splice(o,1)}),[t]);let r=t.toasts.map(o=>{var s,i;return{...e,...e[o.type],...o,duration:o.duration||((s=e[o.type])==null?void 0:s.duration)||(e==null?void 0:e.duration)||xf[o.type],style:{...e.style,...(i=e[o.type])==null?void 0:i.style,...o.style}}});return{...t,toasts:r}},Sf=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||vf()}),Un=e=>(t,n)=>{let r=Sf(t,e,n);return Bt({type:2,toast:r}),r.id},be=(e,t)=>Un("blank")(e,t);be.error=Un("error");be.success=Un("success");be.loading=Un("loading");be.custom=Un("custom");be.dismiss=e=>{Bt({type:3,toastId:e})};be.remove=e=>Bt({type:4,toastId:e});be.promise=(e,t,n)=>{let r=be.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(o=>(be.success(Pr(t.success,o),{id:r,...n,...n==null?void 0:n.success}),o)).catch(o=>{be.error(Pr(t.error,o),{id:r,...n,...n==null?void 0:n.error})}),e};var _f=(e,t)=>{Bt({type:1,toast:{id:e,height:t}})},Rf=()=>{Bt({type:5,time:Date.now()})},Tf=e=>{let{toasts:t,pausedAt:n}=Ef(e);S.useEffect(()=>{if(n)return;let s=Date.now(),i=t.map(a=>{if(a.duration===1/0)return;let c=(a.duration||0)+a.pauseDuration-(s-a.createdAt);if(c<0){a.visible&&be.dismiss(a.id);return}return setTimeout(()=>be.dismiss(a.id),c)});return()=>{i.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=S.useCallback(()=>{n&&Bt({type:6,time:Date.now()})},[n]),o=S.useCallback((s,i)=>{let{reverseOrder:a=!1,gutter:c=8,defaultPosition:u}=i||{},d=t.filter(g=>(g.position||u)===(s.position||u)&&g.height),f=d.findIndex(g=>g.id===s.id),p=d.filter((g,w)=>w<f&&g.visible).length;return d.filter(g=>g.visible).slice(...a?[p+1]:[0,p]).reduce((g,w)=>g+(w.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:_f,startPause:Rf,endPause:r,calculateOffset:o}}},Af=Qe`
|
|
33
33
|
from {
|
|
34
34
|
transform: scale(0) rotate(45deg);
|
|
35
35
|
opacity: 0;
|
|
@@ -37,7 +37,7 @@ from {
|
|
|
37
37
|
to {
|
|
38
38
|
transform: scale(1) rotate(45deg);
|
|
39
39
|
opacity: 1;
|
|
40
|
-
}`,
|
|
40
|
+
}`,Pf=Qe`
|
|
41
41
|
from {
|
|
42
42
|
transform: scale(0);
|
|
43
43
|
opacity: 0;
|
|
@@ -45,7 +45,7 @@ from {
|
|
|
45
45
|
to {
|
|
46
46
|
transform: scale(1);
|
|
47
47
|
opacity: 1;
|
|
48
|
-
}`,
|
|
48
|
+
}`,Of=Qe`
|
|
49
49
|
from {
|
|
50
50
|
transform: scale(0) rotate(90deg);
|
|
51
51
|
opacity: 0;
|
|
@@ -53,7 +53,7 @@ from {
|
|
|
53
53
|
to {
|
|
54
54
|
transform: scale(1) rotate(90deg);
|
|
55
55
|
opacity: 1;
|
|
56
|
-
}`,
|
|
56
|
+
}`,jf=vt("div")`
|
|
57
57
|
width: 20px;
|
|
58
58
|
opacity: 0;
|
|
59
59
|
height: 20px;
|
|
@@ -62,14 +62,14 @@ to {
|
|
|
62
62
|
position: relative;
|
|
63
63
|
transform: rotate(45deg);
|
|
64
64
|
|
|
65
|
-
animation: ${
|
|
65
|
+
animation: ${Af} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
66
66
|
forwards;
|
|
67
67
|
animation-delay: 100ms;
|
|
68
68
|
|
|
69
69
|
&:after,
|
|
70
70
|
&:before {
|
|
71
71
|
content: '';
|
|
72
|
-
animation: ${
|
|
72
|
+
animation: ${Pf} 0.15s ease-out forwards;
|
|
73
73
|
animation-delay: 150ms;
|
|
74
74
|
position: absolute;
|
|
75
75
|
border-radius: 3px;
|
|
@@ -82,18 +82,18 @@ to {
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
&:before {
|
|
85
|
-
animation: ${
|
|
85
|
+
animation: ${Of} 0.15s ease-out forwards;
|
|
86
86
|
animation-delay: 180ms;
|
|
87
87
|
transform: rotate(90deg);
|
|
88
88
|
}
|
|
89
|
-
`,
|
|
89
|
+
`,Df=Qe`
|
|
90
90
|
from {
|
|
91
91
|
transform: rotate(0deg);
|
|
92
92
|
}
|
|
93
93
|
to {
|
|
94
94
|
transform: rotate(360deg);
|
|
95
95
|
}
|
|
96
|
-
`,
|
|
96
|
+
`,Lf=vt("div")`
|
|
97
97
|
width: 12px;
|
|
98
98
|
height: 12px;
|
|
99
99
|
box-sizing: border-box;
|
|
@@ -101,8 +101,8 @@ to {
|
|
|
101
101
|
border-radius: 100%;
|
|
102
102
|
border-color: ${e=>e.secondary||"#e0e0e0"};
|
|
103
103
|
border-right-color: ${e=>e.primary||"#616161"};
|
|
104
|
-
animation: ${
|
|
105
|
-
`,
|
|
104
|
+
animation: ${Df} 1s linear infinite;
|
|
105
|
+
`,Nf=Qe`
|
|
106
106
|
from {
|
|
107
107
|
transform: scale(0) rotate(45deg);
|
|
108
108
|
opacity: 0;
|
|
@@ -110,7 +110,7 @@ from {
|
|
|
110
110
|
to {
|
|
111
111
|
transform: scale(1) rotate(45deg);
|
|
112
112
|
opacity: 1;
|
|
113
|
-
}`,
|
|
113
|
+
}`,kf=Qe`
|
|
114
114
|
0% {
|
|
115
115
|
height: 0;
|
|
116
116
|
width: 0;
|
|
@@ -124,7 +124,7 @@ to {
|
|
|
124
124
|
100% {
|
|
125
125
|
opacity: 1;
|
|
126
126
|
height: 10px;
|
|
127
|
-
}`,
|
|
127
|
+
}`,If=vt("div")`
|
|
128
128
|
width: 20px;
|
|
129
129
|
opacity: 0;
|
|
130
130
|
height: 20px;
|
|
@@ -133,13 +133,13 @@ to {
|
|
|
133
133
|
position: relative;
|
|
134
134
|
transform: rotate(45deg);
|
|
135
135
|
|
|
136
|
-
animation: ${
|
|
136
|
+
animation: ${Nf} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
137
137
|
forwards;
|
|
138
138
|
animation-delay: 100ms;
|
|
139
139
|
&:after {
|
|
140
140
|
content: '';
|
|
141
141
|
box-sizing: border-box;
|
|
142
|
-
animation: ${
|
|
142
|
+
animation: ${kf} 0.2s ease-out forwards;
|
|
143
143
|
opacity: 0;
|
|
144
144
|
animation-delay: 200ms;
|
|
145
145
|
position: absolute;
|
|
@@ -151,16 +151,16 @@ to {
|
|
|
151
151
|
height: 10px;
|
|
152
152
|
width: 6px;
|
|
153
153
|
}
|
|
154
|
-
`,
|
|
154
|
+
`,Mf=vt("div")`
|
|
155
155
|
position: absolute;
|
|
156
|
-
|
|
156
|
+
`,$f=vt("div")`
|
|
157
157
|
position: relative;
|
|
158
158
|
display: flex;
|
|
159
159
|
justify-content: center;
|
|
160
160
|
align-items: center;
|
|
161
161
|
min-width: 20px;
|
|
162
162
|
min-height: 20px;
|
|
163
|
-
`,
|
|
163
|
+
`,Ff=Qe`
|
|
164
164
|
from {
|
|
165
165
|
transform: scale(0.6);
|
|
166
166
|
opacity: 0.4;
|
|
@@ -168,20 +168,20 @@ from {
|
|
|
168
168
|
to {
|
|
169
169
|
transform: scale(1);
|
|
170
170
|
opacity: 1;
|
|
171
|
-
}`,
|
|
171
|
+
}`,Bf=vt("div")`
|
|
172
172
|
position: relative;
|
|
173
173
|
transform: scale(0.6);
|
|
174
174
|
opacity: 0.4;
|
|
175
175
|
min-width: 20px;
|
|
176
|
-
animation: ${
|
|
176
|
+
animation: ${Ff} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
177
177
|
forwards;
|
|
178
|
-
`,
|
|
178
|
+
`,Uf=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?m.createElement(Bf,null,t):t:n==="blank"?null:m.createElement($f,null,m.createElement(Lf,{...r}),n!=="loading"&&m.createElement(Mf,null,n==="error"?m.createElement(jf,{...r}):m.createElement(If,{...r})))},Wf=e=>`
|
|
179
179
|
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
|
|
180
180
|
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
181
|
-
`,
|
|
181
|
+
`,Hf=e=>`
|
|
182
182
|
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
183
183
|
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
|
|
184
|
-
`,
|
|
184
|
+
`,Vf="0%{opacity:0;} 100%{opacity:1;}",qf="0%{opacity:1;} 100%{opacity:0;}",zf=vt("div")`
|
|
185
185
|
display: flex;
|
|
186
186
|
align-items: center;
|
|
187
187
|
background: #fff;
|
|
@@ -193,20 +193,20 @@ to {
|
|
|
193
193
|
pointer-events: auto;
|
|
194
194
|
padding: 8px 10px;
|
|
195
195
|
border-radius: 8px;
|
|
196
|
-
`,
|
|
196
|
+
`,Gf=vt("div")`
|
|
197
197
|
display: flex;
|
|
198
198
|
justify-content: center;
|
|
199
199
|
margin: 4px 10px;
|
|
200
200
|
color: inherit;
|
|
201
201
|
flex: 1 1 auto;
|
|
202
202
|
white-space: pre-line;
|
|
203
|
-
`,
|
|
203
|
+
`,Qf=(e,t)=>{let n=e.includes("top")?1:-1,[r,o]=bc()?[Vf,qf]:[Wf(n),Hf(n)];return{animation:t?`${Qe(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Qe(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},Kf=m.memo(({toast:e,position:t,style:n,children:r})=>{let o=e.height?Qf(e.position||t||"top-center",e.visible):{opacity:0},s=m.createElement(Uf,{toast:e}),i=m.createElement(Gf,{...e.ariaProps},Pr(e.message,e));return m.createElement(zf,{className:e.className,style:{...o,...n,...e.style}},typeof r=="function"?r({icon:s,message:i}):m.createElement(m.Fragment,null,s,i))});gf(m.createElement);var Yf=({id:e,className:t,style:n,onHeightUpdate:r,children:o})=>{let s=m.useCallback(i=>{if(i){let a=()=>{let c=i.getBoundingClientRect().height;r(e,c)};a(),new MutationObserver(a).observe(i,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return m.createElement("div",{ref:s,className:t,style:n},o)},Zf=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:bc()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}},Xf=Gr`
|
|
204
204
|
z-index: 9999;
|
|
205
205
|
> * {
|
|
206
206
|
pointer-events: auto;
|
|
207
207
|
}
|
|
208
|
-
`,Jn=16,Kf=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,containerStyle:s,containerClassName:i})=>{let{toasts:a,handlers:c}=Ef(n);return f.createElement("div",{style:{position:"fixed",zIndex:9999,top:Jn,left:Jn,right:Jn,bottom:Jn,pointerEvents:"none",...s},className:i,onMouseEnter:c.startPause,onMouseLeave:c.endPause},a.map(l=>{let d=l.position||t,h=c.calculateOffset(l,{reverseOrder:e,gutter:r,defaultPosition:t}),p=Gf(d,h);return f.createElement(zf,{id:l.id,key:l.id,onHeightUpdate:c.updateHeight,className:l.visible?Qf:"",style:p},l.type==="custom"?Ar(l.message,l):o?o(l):f.createElement(qf,{toast:l,position:d}))}))},xi=be;const ms=()=>({notify:R.useCallback((t,n,r)=>{const o={style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}};n==="warning"||n==="info"?xi(t,{...o,icon:n==="warning"?"⚠️":"ℹ️"}):xi[n](t,o),r&&console.error(r)},[])});var mn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Nt=typeof window>"u"||"Deno"in globalThis;function ue(){}function Yf(e,t){return typeof e=="function"?e(t):e}function $o(e){return typeof e=="number"&&e>=0&&e!==1/0}function yc(e,t){return Math.max(e+(t||0)-Date.now(),0)}function pt(e,t){return typeof e=="function"?e(t):e}function _e(e,t){return typeof e=="function"?e(t):e}function Ei(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==gs(i,t.options))return!1}else if(!Tn(t.queryKey,i))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function Si(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Mt(t.options.mutationKey)!==Mt(s))return!1}else if(!Tn(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function gs(e,t){return((t==null?void 0:t.queryKeyHashFn)||Mt)(e)}function Mt(e){return JSON.stringify(e,(t,n)=>Bo(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Tn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Tn(e[n],t[n])):!1}function Fo(e,t){if(e===t)return e;const n=_i(e)&&_i(t);if(n||Bo(e)&&Bo(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,a=n?[]:{};let c=0;for(let l=0;l<i;l++){const d=n?l:s[l];(!n&&r.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,c++):(a[d]=Fo(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&c++)}return o===i&&c===o?e:a}return t}function Pr(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function _i(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Bo(e){if(!Ri(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Ri(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Ri(e){return Object.prototype.toString.call(e)==="[object Object]"}function Zf(e){return new Promise(t=>{setTimeout(t,e)})}function Uo(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){try{return Fo(e,t)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return Fo(e,t)}return t}function Xf(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Jf(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Or=Symbol();function vc(e,t){return e.queryFn===Or&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Or?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function bc(e,t){return typeof e=="function"?e(...t):!!e}var Tt,nt,Xt,xa,eh=(xa=class extends mn{constructor(){super();L(this,Tt);L(this,nt);L(this,Xt);O(this,Xt,t=>{if(!Nt&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){b(this,nt)||this.setEventListener(b(this,Xt))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,nt))==null||t.call(this),O(this,nt,void 0))}setEventListener(t){var n;O(this,Xt,t),(n=b(this,nt))==null||n.call(this),O(this,nt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){b(this,Tt)!==t&&(O(this,Tt,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof b(this,Tt)=="boolean"?b(this,Tt):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Tt=new WeakMap,nt=new WeakMap,Xt=new WeakMap,xa),ys=new eh,Jt,rt,en,Ea,th=(Ea=class extends mn{constructor(){super();L(this,Jt,!0);L(this,rt);L(this,en);O(this,en,t=>{if(!Nt&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){b(this,rt)||this.setEventListener(b(this,en))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,rt))==null||t.call(this),O(this,rt,void 0))}setEventListener(t){var n;O(this,en,t),(n=b(this,rt))==null||n.call(this),O(this,rt,t(this.setOnline.bind(this)))}setOnline(t){b(this,Jt)!==t&&(O(this,Jt,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return b(this,Jt)}},Jt=new WeakMap,rt=new WeakMap,en=new WeakMap,Ea),jr=new th;function Wo(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function nh(e){return Math.min(1e3*2**e,3e4)}function wc(e){return(e??"online")==="online"?jr.isOnline():!0}var Cc=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function mo(e){return e instanceof Cc}function xc(e){let t=!1,n=0,r=!1,o;const s=Wo(),i=m=>{var y;r||(p(new Cc(m)),(y=e.abort)==null||y.call(e))},a=()=>{t=!0},c=()=>{t=!1},l=()=>ys.isFocused()&&(e.networkMode==="always"||jr.isOnline())&&e.canRun(),d=()=>wc(e.networkMode)&&e.canRun(),h=m=>{var y;r||(r=!0,(y=e.onSuccess)==null||y.call(e,m),o==null||o(),s.resolve(m))},p=m=>{var y;r||(r=!0,(y=e.onError)==null||y.call(e,m),o==null||o(),s.reject(m))},g=()=>new Promise(m=>{var y;o=C=>{(r||l())&&m(C)},(y=e.onPause)==null||y.call(e)}).then(()=>{var m;o=void 0,r||(m=e.onContinue)==null||m.call(e)}),w=()=>{if(r)return;let m;const y=n===0?e.initialPromise:void 0;try{m=y??e.fn()}catch(C){m=Promise.reject(C)}Promise.resolve(m).then(h).catch(C=>{var P;if(r)return;const x=e.retry??(Nt?0:3),S=e.retryDelay??nh,E=typeof S=="function"?S(n,C):S,_=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,C);if(t||!_){p(C);return}n++,(P=e.onFail)==null||P.call(e,n,C),Zf(E).then(()=>l()?void 0:g()).then(()=>{t?p(C):w()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:c,canStart:d,start:()=>(d()?w():g().then(w),s)}}var rh=e=>setTimeout(e,0);function oh(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=rh;const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||i()}return c},batchCalls:a=>(...c)=>{s(()=>{a(...c)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var oe=oh(),At,Sa,Ec=(Sa=class{constructor(){L(this,At)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$o(this.gcTime)&&O(this,At,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Nt?1/0:5*60*1e3))}clearGcTimeout(){b(this,At)&&(clearTimeout(b(this,At)),O(this,At,void 0))}},At=new WeakMap,Sa),tn,nn,xe,Pt,se,Dn,Ot,Ee,He,_a,sh=(_a=class extends Ec{constructor(t){super();L(this,Ee);L(this,tn);L(this,nn);L(this,xe);L(this,Pt);L(this,se);L(this,Dn);L(this,Ot);O(this,Ot,!1),O(this,Dn,t.defaultOptions),this.setOptions(t.options),this.observers=[],O(this,Pt,t.client),O(this,xe,b(this,Pt).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,O(this,tn,ih(this.options)),this.state=t.state??b(this,tn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=b(this,se))==null?void 0:t.promise}setOptions(t){this.options={...b(this,Dn),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&b(this,xe).remove(this)}setData(t,n){const r=Uo(this.state.data,t,this.options);return $(this,Ee,He).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){$(this,Ee,He).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=b(this,se))==null?void 0:r.promise;return(o=b(this,se))==null||o.cancel(t),n?n.then(ue).catch(ue):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(b(this,tn))}isActive(){return this.observers.some(t=>_e(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Or||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>pt(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!yc(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=b(this,se))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=b(this,se))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),b(this,xe).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(b(this,se)&&(b(this,Ot)?b(this,se).cancel({revert:!0}):b(this,se).cancelRetry()),this.scheduleGc()),b(this,xe).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||$(this,Ee,He).call(this,{type:"invalidate"})}fetch(t,n){var l,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(b(this,se))return b(this,se).continueRetry(),b(this,se).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(g=>g.options.queryFn);p&&this.setOptions(p.options)}Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");const r=new AbortController,o=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(O(this,Ot,!0),r.signal)})},s=()=>{const p=vc(this.options,n),w=(()=>{const m={client:b(this,Pt),queryKey:this.queryKey,meta:this.meta};return o(m),m})();return O(this,Ot,!1),this.options.persister?this.options.persister(p,w,this):p(w)},a=(()=>{const p={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:b(this,Pt),state:this.state,fetchFn:s};return o(p),p})();(l=this.options.behavior)==null||l.onFetch(a,this),O(this,nn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&$(this,Ee,He).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const c=p=>{var g,w,m,y;mo(p)&&p.silent||$(this,Ee,He).call(this,{type:"error",error:p}),mo(p)||((w=(g=b(this,xe).config).onError)==null||w.call(g,p,this),(y=(m=b(this,xe).config).onSettled)==null||y.call(m,this.state.data,p,this)),this.scheduleGc()};return O(this,se,xc({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var g,w,m,y;if(p===void 0){console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(C){c(C);return}(w=(g=b(this,xe).config).onSuccess)==null||w.call(g,p,this),(y=(m=b(this,xe).config).onSettled)==null||y.call(m,p,this.state.error,this),this.scheduleGc()},onError:c,onFail:(p,g)=>{$(this,Ee,He).call(this,{type:"failed",failureCount:p,error:g})},onPause:()=>{$(this,Ee,He).call(this,{type:"pause"})},onContinue:()=>{$(this,Ee,He).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),b(this,se).start()}},tn=new WeakMap,nn=new WeakMap,xe=new WeakMap,Pt=new WeakMap,se=new WeakMap,Dn=new WeakMap,Ot=new WeakMap,Ee=new WeakSet,He=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Sc(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return mo(o)&&o.revert&&b(this,nn)?{...b(this,nn),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),oe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),b(this,xe).notify({query:this,type:"updated",action:t})})},_a);function Sc(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:wc(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function ih(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var je,Ra,ah=(Ra=class extends mn{constructor(t={}){super();L(this,je);this.config=t,O(this,je,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??gs(o,n);let i=this.get(s);return i||(i=new sh({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){b(this,je).has(t.queryHash)||(b(this,je).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=b(this,je).get(t.queryHash);n&&(t.destroy(),n===t&&b(this,je).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){oe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return b(this,je).get(t)}getAll(){return[...b(this,je).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ei(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ei(t,r)):n}notify(t){oe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){oe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){oe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},je=new WeakMap,Ra),De,ce,jt,Le,Xe,Ta,ch=(Ta=class extends Ec{constructor(t){super();L(this,Le);L(this,De);L(this,ce);L(this,jt);this.mutationId=t.mutationId,O(this,ce,t.mutationCache),O(this,De,[]),this.state=t.state||_c(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){b(this,De).includes(t)||(b(this,De).push(t),this.clearGcTimeout(),b(this,ce).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){O(this,De,b(this,De).filter(n=>n!==t)),this.scheduleGc(),b(this,ce).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){b(this,De).length||(this.state.status==="pending"?this.scheduleGc():b(this,ce).remove(this))}continue(){var t;return((t=b(this,jt))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,a,c,l,d,h,p,g,w,m,y,C,x,S,E,_,P,A,M;const n=()=>{$(this,Le,Xe).call(this,{type:"continue"})};O(this,jt,xc({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(I,k)=>{$(this,Le,Xe).call(this,{type:"failed",failureCount:I,error:k})},onPause:()=>{$(this,Le,Xe).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>b(this,ce).canRun(this)}));const r=this.state.status==="pending",o=!b(this,jt).canStart();try{if(r)n();else{$(this,Le,Xe).call(this,{type:"pending",variables:t,isPaused:o}),await((i=(s=b(this,ce).config).onMutate)==null?void 0:i.call(s,t,this));const k=await((c=(a=this.options).onMutate)==null?void 0:c.call(a,t));k!==this.state.context&&$(this,Le,Xe).call(this,{type:"pending",context:k,variables:t,isPaused:o})}const I=await b(this,jt).start();return await((d=(l=b(this,ce).config).onSuccess)==null?void 0:d.call(l,I,t,this.state.context,this)),await((p=(h=this.options).onSuccess)==null?void 0:p.call(h,I,t,this.state.context)),await((w=(g=b(this,ce).config).onSettled)==null?void 0:w.call(g,I,null,this.state.variables,this.state.context,this)),await((y=(m=this.options).onSettled)==null?void 0:y.call(m,I,null,t,this.state.context)),$(this,Le,Xe).call(this,{type:"success",data:I}),I}catch(I){try{throw await((x=(C=b(this,ce).config).onError)==null?void 0:x.call(C,I,t,this.state.context,this)),await((E=(S=this.options).onError)==null?void 0:E.call(S,I,t,this.state.context)),await((P=(_=b(this,ce).config).onSettled)==null?void 0:P.call(_,void 0,I,this.state.variables,this.state.context,this)),await((M=(A=this.options).onSettled)==null?void 0:M.call(A,void 0,I,t,this.state.context)),I}finally{$(this,Le,Xe).call(this,{type:"error",error:I})}}finally{b(this,ce).runNext(this)}}},De=new WeakMap,ce=new WeakMap,jt=new WeakMap,Le=new WeakSet,Xe=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),oe.batch(()=>{b(this,De).forEach(r=>{r.onMutationUpdate(t)}),b(this,ce).notify({mutation:this,type:"updated",action:t})})},Ta);function _c(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ve,Se,Ln,Aa,lh=(Aa=class extends mn{constructor(t={}){super();L(this,Ve);L(this,Se);L(this,Ln);this.config=t,O(this,Ve,new Set),O(this,Se,new Map),O(this,Ln,0)}build(t,n,r){const o=new ch({mutationCache:this,mutationId:++Yn(this,Ln)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){b(this,Ve).add(t);const n=er(t);if(typeof n=="string"){const r=b(this,Se).get(n);r?r.push(t):b(this,Se).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(b(this,Ve).delete(t)){const n=er(t);if(typeof n=="string"){const r=b(this,Se).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&b(this,Se).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=er(t);if(typeof n=="string"){const r=b(this,Se).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=er(t);if(typeof n=="string"){const o=(r=b(this,Se).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){oe.batch(()=>{b(this,Ve).forEach(t=>{this.notify({type:"removed",mutation:t})}),b(this,Ve).clear(),b(this,Se).clear()})}getAll(){return Array.from(b(this,Ve))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Si(n,r))}findAll(t={}){return this.getAll().filter(n=>Si(t,n))}notify(t){oe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return oe.batch(()=>Promise.all(t.map(n=>n.continue().catch(ue))))}},Ve=new WeakMap,Se=new WeakMap,Ln=new WeakMap,Aa);function er(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Ti(e){return{onFetch:(t,n)=>{var d,h,p,g,w;const r=t.options,o=(p=(h=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:p.direction,s=((g=t.state.data)==null?void 0:g.pages)||[],i=((w=t.state.data)==null?void 0:w.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let m=!1;const y=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},C=vc(t.options,t.fetchOptions),x=async(S,E,_)=>{if(m)return Promise.reject();if(E==null&&S.pages.length)return Promise.resolve(S);const A=(()=>{const V={client:t.client,queryKey:t.queryKey,pageParam:E,direction:_?"backward":"forward",meta:t.options.meta};return y(V),V})(),M=await C(A),{maxPages:I}=t.options,k=_?Jf:Xf;return{pages:k(S.pages,M,I),pageParams:k(S.pageParams,E,I)}};if(o&&s.length){const S=o==="backward",E=S?uh:Ai,_={pages:s,pageParams:i},P=E(r,_);a=await x(_,P,S)}else{const S=e??s.length;do{const E=c===0?i[0]??r.initialPageParam:Ai(r,a);if(c>0&&E==null)break;a=await x(a,E),c++}while(c<S)}return a};t.options.persister?t.fetchFn=()=>{var m,y;return(y=(m=t.options).persister)==null?void 0:y.call(m,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function Ai(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function uh(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var J,ot,st,rn,on,it,sn,an,Pa,dh=(Pa=class{constructor(e={}){L(this,J);L(this,ot);L(this,st);L(this,rn);L(this,on);L(this,it);L(this,sn);L(this,an);O(this,J,e.queryCache||new ah),O(this,ot,e.mutationCache||new lh),O(this,st,e.defaultOptions||{}),O(this,rn,new Map),O(this,on,new Map),O(this,it,0)}mount(){Yn(this,it)._++,b(this,it)===1&&(O(this,sn,ys.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,J).onFocus())})),O(this,an,jr.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,J).onOnline())})))}unmount(){var e,t;Yn(this,it)._--,b(this,it)===0&&((e=b(this,sn))==null||e.call(this),O(this,sn,void 0),(t=b(this,an))==null||t.call(this),O(this,an,void 0))}isFetching(e){return b(this,J).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return b(this,ot).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=b(this,J).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=b(this,J).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(pt(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return b(this,J).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=b(this,J).get(r.queryHash),s=o==null?void 0:o.state.data,i=Yf(t,s);if(i!==void 0)return b(this,J).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return oe.batch(()=>b(this,J).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=b(this,J).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=b(this,J);oe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=b(this,J);return oe.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=oe.batch(()=>b(this,J).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(ue).catch(ue)}invalidateQueries(e,t={}){return oe.batch(()=>(b(this,J).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=oe.batch(()=>b(this,J).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(ue)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(ue)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=b(this,J).build(this,t);return n.isStaleByTime(pt(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ue).catch(ue)}fetchInfiniteQuery(e){return e.behavior=Ti(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ue).catch(ue)}ensureInfiniteQueryData(e){return e.behavior=Ti(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return jr.isOnline()?b(this,ot).resumePausedMutations():Promise.resolve()}getQueryCache(){return b(this,J)}getMutationCache(){return b(this,ot)}getDefaultOptions(){return b(this,st)}setDefaultOptions(e){O(this,st,e)}setQueryDefaults(e,t){b(this,rn).set(Mt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...b(this,rn).values()],n={};return t.forEach(r=>{Tn(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){b(this,on).set(Mt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...b(this,on).values()],n={};return t.forEach(r=>{Tn(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...b(this,st).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=gs(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Or&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...b(this,st).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){b(this,J).clear(),b(this,ot).clear()}},J=new WeakMap,ot=new WeakMap,st=new WeakMap,rn=new WeakMap,on=new WeakMap,it=new WeakMap,sn=new WeakMap,an=new WeakMap,Pa),he,U,kn,le,Dt,cn,at,ct,In,ln,un,Lt,kt,lt,dn,z,En,Ho,Vo,qo,zo,Go,Qo,Ko,Rc,Oa,fh=(Oa=class extends mn{constructor(t,n){super();L(this,z);L(this,he);L(this,U);L(this,kn);L(this,le);L(this,Dt);L(this,cn);L(this,at);L(this,ct);L(this,In);L(this,ln);L(this,un);L(this,Lt);L(this,kt);L(this,lt);L(this,dn,new Set);this.options=n,O(this,he,t),O(this,ct,null),O(this,at,Wo()),this.options.experimental_prefetchInRender||b(this,at).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(b(this,U).addObserver(this),Pi(b(this,U),this.options)?$(this,z,En).call(this):this.updateResult(),$(this,z,zo).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Yo(b(this,U),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Yo(b(this,U),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,$(this,z,Go).call(this),$(this,z,Qo).call(this),b(this,U).removeObserver(this)}setOptions(t){const n=this.options,r=b(this,U);if(this.options=b(this,he).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof _e(this.options.enabled,b(this,U))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");$(this,z,Ko).call(this),b(this,U).setOptions(this.options),n._defaulted&&!Pr(this.options,n)&&b(this,he).getQueryCache().notify({type:"observerOptionsUpdated",query:b(this,U),observer:this});const o=this.hasListeners();o&&Oi(b(this,U),r,this.options,n)&&$(this,z,En).call(this),this.updateResult(),o&&(b(this,U)!==r||_e(this.options.enabled,b(this,U))!==_e(n.enabled,b(this,U))||pt(this.options.staleTime,b(this,U))!==pt(n.staleTime,b(this,U)))&&$(this,z,Ho).call(this);const s=$(this,z,Vo).call(this);o&&(b(this,U)!==r||_e(this.options.enabled,b(this,U))!==_e(n.enabled,b(this,U))||s!==b(this,lt))&&$(this,z,qo).call(this,s)}getOptimisticResult(t){const n=b(this,he).getQueryCache().build(b(this,he),t),r=this.createResult(n,t);return ph(this,r)&&(O(this,le,r),O(this,cn,this.options),O(this,Dt,b(this,U).state)),r}getCurrentResult(){return b(this,le)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),Reflect.get(r,o))})}trackProp(t){b(this,dn).add(t)}getCurrentQuery(){return b(this,U)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=b(this,he).defaultQueryOptions(t),r=b(this,he).getQueryCache().build(b(this,he),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return $(this,z,En).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),b(this,le)))}createResult(t,n){var I;const r=b(this,U),o=this.options,s=b(this,le),i=b(this,Dt),a=b(this,cn),l=t!==r?t.state:b(this,kn),{state:d}=t;let h={...d},p=!1,g;if(n._optimisticResults){const k=this.hasListeners(),V=!k&&Pi(t,n),Q=k&&Oi(t,r,n,o);(V||Q)&&(h={...h,...Sc(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:w,errorUpdatedAt:m,status:y}=h;g=h.data;let C=!1;if(n.placeholderData!==void 0&&g===void 0&&y==="pending"){let k;s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(k=s.data,C=!0):k=typeof n.placeholderData=="function"?n.placeholderData((I=b(this,un))==null?void 0:I.state.data,b(this,un)):n.placeholderData,k!==void 0&&(y="success",g=Uo(s==null?void 0:s.data,k,n),p=!0)}if(n.select&&g!==void 0&&!C)if(s&&g===(i==null?void 0:i.data)&&n.select===b(this,In))g=b(this,ln);else try{O(this,In,n.select),g=n.select(g),g=Uo(s==null?void 0:s.data,g,n),O(this,ln,g),O(this,ct,null)}catch(k){O(this,ct,k)}b(this,ct)&&(w=b(this,ct),g=b(this,ln),m=Date.now(),y="error");const x=h.fetchStatus==="fetching",S=y==="pending",E=y==="error",_=S&&x,P=g!==void 0,M={status:y,fetchStatus:h.fetchStatus,isPending:S,isSuccess:y==="success",isError:E,isInitialLoading:_,isLoading:_,data:g,dataUpdatedAt:h.dataUpdatedAt,error:w,errorUpdatedAt:m,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>l.dataUpdateCount||h.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!S,isLoadingError:E&&!P,isPaused:h.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:E&&P,isStale:vs(t,n),refetch:this.refetch,promise:b(this,at)};if(this.options.experimental_prefetchInRender){const k=H=>{M.status==="error"?H.reject(M.error):M.data!==void 0&&H.resolve(M.data)},V=()=>{const H=O(this,at,M.promise=Wo());k(H)},Q=b(this,at);switch(Q.status){case"pending":t.queryHash===r.queryHash&&k(Q);break;case"fulfilled":(M.status==="error"||M.data!==Q.value)&&V();break;case"rejected":(M.status!=="error"||M.error!==Q.reason)&&V();break}}return M}updateResult(){const t=b(this,le),n=this.createResult(b(this,U),this.options);if(O(this,Dt,b(this,U).state),O(this,cn,this.options),b(this,Dt).data!==void 0&&O(this,un,b(this,U)),Pr(n,t))return;O(this,le,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!b(this,dn).size)return!0;const i=new Set(s??b(this,dn));return this.options.throwOnError&&i.add("error"),Object.keys(b(this,le)).some(a=>{const c=a;return b(this,le)[c]!==t[c]&&i.has(c)})};$(this,z,Rc).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&$(this,z,zo).call(this)}},he=new WeakMap,U=new WeakMap,kn=new WeakMap,le=new WeakMap,Dt=new WeakMap,cn=new WeakMap,at=new WeakMap,ct=new WeakMap,In=new WeakMap,ln=new WeakMap,un=new WeakMap,Lt=new WeakMap,kt=new WeakMap,lt=new WeakMap,dn=new WeakMap,z=new WeakSet,En=function(t){$(this,z,Ko).call(this);let n=b(this,U).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(ue)),n},Ho=function(){$(this,z,Go).call(this);const t=pt(this.options.staleTime,b(this,U));if(Nt||b(this,le).isStale||!$o(t))return;const r=yc(b(this,le).dataUpdatedAt,t)+1;O(this,Lt,setTimeout(()=>{b(this,le).isStale||this.updateResult()},r))},Vo=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(b(this,U)):this.options.refetchInterval)??!1},qo=function(t){$(this,z,Qo).call(this),O(this,lt,t),!(Nt||_e(this.options.enabled,b(this,U))===!1||!$o(b(this,lt))||b(this,lt)===0)&&O(this,kt,setInterval(()=>{(this.options.refetchIntervalInBackground||ys.isFocused())&&$(this,z,En).call(this)},b(this,lt)))},zo=function(){$(this,z,Ho).call(this),$(this,z,qo).call(this,$(this,z,Vo).call(this))},Go=function(){b(this,Lt)&&(clearTimeout(b(this,Lt)),O(this,Lt,void 0))},Qo=function(){b(this,kt)&&(clearInterval(b(this,kt)),O(this,kt,void 0))},Ko=function(){const t=b(this,he).getQueryCache().build(b(this,he),this.options);if(t===b(this,U))return;const n=b(this,U);O(this,U,t),O(this,kn,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Rc=function(t){oe.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(b(this,le))}),b(this,he).getQueryCache().notify({query:b(this,U),type:"observerResultsUpdated"})})},Oa);function hh(e,t){return _e(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Pi(e,t){return hh(e,t)||e.state.data!==void 0&&Yo(e,t,t.refetchOnMount)}function Yo(e,t,n){if(_e(t.enabled,e)!==!1&&pt(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&vs(e,t)}return!1}function Oi(e,t,n,r){return(e!==t||_e(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&vs(e,n)}function vs(e,t){return _e(t.enabled,e)!==!1&&e.isStaleByTime(pt(t.staleTime,e))}function ph(e,t){return!Pr(e.getCurrentResult(),t)}var ut,dt,pe,qe,Ge,Cr,Zo,ja,mh=(ja=class extends mn{constructor(n,r){super();L(this,Ge);L(this,ut);L(this,dt);L(this,pe);L(this,qe);O(this,ut,n),this.setOptions(r),this.bindMethods(),$(this,Ge,Cr).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=b(this,ut).defaultMutationOptions(n),Pr(this.options,r)||b(this,ut).getMutationCache().notify({type:"observerOptionsUpdated",mutation:b(this,pe),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Mt(r.mutationKey)!==Mt(this.options.mutationKey)?this.reset():((o=b(this,pe))==null?void 0:o.state.status)==="pending"&&b(this,pe).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=b(this,pe))==null||n.removeObserver(this)}onMutationUpdate(n){$(this,Ge,Cr).call(this),$(this,Ge,Zo).call(this,n)}getCurrentResult(){return b(this,dt)}reset(){var n;(n=b(this,pe))==null||n.removeObserver(this),O(this,pe,void 0),$(this,Ge,Cr).call(this),$(this,Ge,Zo).call(this)}mutate(n,r){var o;return O(this,qe,r),(o=b(this,pe))==null||o.removeObserver(this),O(this,pe,b(this,ut).getMutationCache().build(b(this,ut),this.options)),b(this,pe).addObserver(this),b(this,pe).execute(n)}},ut=new WeakMap,dt=new WeakMap,pe=new WeakMap,qe=new WeakMap,Ge=new WeakSet,Cr=function(){var r;const n=((r=b(this,pe))==null?void 0:r.state)??_c();O(this,dt,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Zo=function(n){oe.batch(()=>{var r,o,s,i,a,c,l,d;if(b(this,qe)&&this.hasListeners()){const h=b(this,dt).variables,p=b(this,dt).context;(n==null?void 0:n.type)==="success"?((o=(r=b(this,qe)).onSuccess)==null||o.call(r,n.data,h,p),(i=(s=b(this,qe)).onSettled)==null||i.call(s,n.data,null,h,p)):(n==null?void 0:n.type)==="error"&&((c=(a=b(this,qe)).onError)==null||c.call(a,n.error,h,p),(d=(l=b(this,qe)).onSettled)==null||d.call(l,void 0,n.error,h,p))}this.listeners.forEach(h=>{h(b(this,dt))})})},ja),Tc=f.createContext(void 0),bs=e=>{const t=f.useContext(Tc);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},gh=({client:e,children:t})=>(f.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(Tc.Provider,{value:e,children:t})),Ac=f.createContext(!1),yh=()=>f.useContext(Ac);Ac.Provider;function vh(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var bh=f.createContext(vh()),wh=()=>f.useContext(bh),Ch=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},xh=e=>{f.useEffect(()=>{e.clearReset()},[e])},Eh=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||bc(n,[e.error,r])),Sh=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},_h=(e,t)=>e.isLoading&&e.isFetching&&!t,Rh=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,ji=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Th(e,t,n){var h,p,g,w,m;if(typeof e!="object"||Array.isArray(e))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=yh(),o=wh(),s=bs(),i=s.defaultQueryOptions(e);(p=(h=s.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||p.call(h,i),i.queryFn||console.error(`[${i.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`),i._optimisticResults=r?"isRestoring":"optimistic",Sh(i),Ch(i,o),xh(o);const a=!s.getQueryCache().get(i.queryHash),[c]=f.useState(()=>new t(s,i)),l=c.getOptimisticResult(i),d=!r&&e.subscribed!==!1;if(f.useSyncExternalStore(f.useCallback(y=>{const C=d?c.subscribe(oe.batchCalls(y)):ue;return c.updateResult(),C},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),f.useEffect(()=>{c.setOptions(i)},[i,c]),Rh(i,l))throw ji(i,c,o);if(Eh({result:l,errorResetBoundary:o,throwOnError:i.throwOnError,query:s.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw l.error;if((w=(g=s.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||w.call(g,i,l),i.experimental_prefetchInRender&&!Nt&&_h(l,r)){const y=a?ji(i,c,o):(m=s.getQueryCache().get(i.queryHash))==null?void 0:m.promise;y==null||y.catch(ue).finally(()=>{c.updateResult()})}return i.notifyOnChangeProps?l:c.trackResult(l)}function Di(e,t){return Th(e,fh)}function tr(e,t){const n=bs(),[r]=f.useState(()=>new mh(n,e));f.useEffect(()=>{r.setOptions(e)},[r,e]);const o=f.useSyncExternalStore(f.useCallback(i=>r.subscribe(oe.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=f.useCallback((i,a)=>{r.mutate(i,a).catch(ue)},[r]);if(o.error&&bc(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}const nr={STALE_TIME:1e3*60*5,GC_TIME:1e3*60*10,RETRY_COUNT:1,RETRY_DELAY:1e3},Li={refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:nr.STALE_TIME,gcTime:nr.GC_TIME,retry:nr.RETRY_COUNT,retryDelay:nr.RETRY_DELAY,enable:!0},rr=e=>e instanceof Error?e.message:String(e),Pc=(e,t,n)=>{const r=bs(),{notify:o}=ms(),{createFn:s,readFn:i,readByIdFn:a,updateFn:c,deleteFn:l,partialUpdateFn:d}=n,h=()=>{r.invalidateQueries({queryKey:[e]})},p=(E,_,P,A)=>o(A!=null&&A.overrideSuccessMessage?A==null?void 0:A.overrideSuccessMessage(E,_):P,"success"),g=(E,_,P,A)=>o(A!=null&&A.overrideErrorMessage?A==null?void 0:A.overrideErrorMessage(E,_):P,"error");return{useCreate:E=>tr({mutationFn:_=>s(_),onSuccess:_=>{h(),p(t,_,`${t} created successfully`,E)},onError:_=>{g(t,_,`Error creating ${t}: ${rr(_)}`,E)}}),useReadQuery:E=>Di({queryKey:[e],queryFn:i,...Li,...E}),useReadByIdQuery:(E,_)=>Di({queryKey:[e,E],queryFn:()=>a(E),...Li,enabled:!!E,..._}),useUpdate:E=>tr({mutationFn:({id:_,data:P})=>c(_,P),onSuccess:_=>{h(),p(t,_,`${t} updated successfully`,E)},onError:_=>{g(t,_,`Error updating ${t}: ${rr(_)}`,E)}}),usePartialUpdate:E=>d&&tr({mutationFn:({id:_,data:P})=>d(_,P),onSuccess:_=>{h(),p(t,_,`${t} updated successfully`,E)},onError:_=>{g(t,_,`Error updating ${t}: ${rr(_)}`,E)}}),useDelete:E=>tr({mutationFn:_=>l(_),onSuccess:()=>{h(),p(t,null,`${t} deleted successfully`,E)},onError:_=>{g(t,_,`Error deleting ${t}: ${rr(_)}`,E)}}),invalidateQueries:h}},Ah=(e,t)=>Pc(e,t,{createFn:n=>fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).then(r=>r.json()),deleteFn:n=>fetch(`${e}/${n}`,{method:"DELETE"}).then(r=>{if(!r.ok)throw new Error(`Error deleting: ${r.status}`)}),readByIdFn:n=>fetch(`${e}/${n}`).then(r=>r.json()),readFn:()=>fetch(e).then(n=>n.json()),updateFn:(n,r)=>fetch(`${e}/${n}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(o=>o.json()),partialUpdateFn:(n,r)=>fetch(`${e}/${n}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(o=>o.json())}),Ph={SINGLE_TENANT:"single-tenant"},Oh={COOKIE:"cookie"},go="tenant",ki="tenant",Ii="tenant",jh=Ph.SINGLE_TENANT,Dh=Oh.COOKIE,Lh={mode:jh,clientSideMode:Dh,tenantIDPProvisioningStrategy:"none"};class kh{setTenant(t,n){const r=new URL(window.location.href);r.searchParams.set(ki,t.name),window.location.href=r.toString()}getCurrentTenantName(){const t=new URL(window.location.href);return new URLSearchParams(t.search).get(ki)}}class Ih{setTenant(t,n){sessionStorage.setItem(Ii,t.name),window.location.reload()}getCurrentTenantName(){return sessionStorage.getItem(Ii)}}/*! js-cookie v3.0.5 | MIT */function or(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var Nh={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Xo(e,t){function n(o,s,i){if(!(typeof document>"u")){i=or({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in i)i[c]&&(a+="; "+c,i[c]!==!0&&(a+="="+i[c].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+a}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],i={},a=0;a<s.length;a++){var c=s[a].split("="),l=c.slice(1).join("=");try{var d=decodeURIComponent(c[0]);if(i[d]=e.read(l,d),o===d)break}catch{}}return o?i[o]:i}}return Object.create({set:n,get:r,remove:function(o,s){n(o,"",or({},s,{expires:-1}))},withAttributes:function(o){return Xo(this.converter,or({},this.attributes,o))},withConverter:function(o){return Xo(or({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var yo=Xo(Nh,{path:"/"});class Mh{setTenant(t,n){t?yo.set(go,t.name):yo.remove(go),window.location.reload()}getCurrentTenantName(){return yo.get(go)}}class $h{extractSubdomain(t){if(t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t))return"";const n=t.split(".");if(n.length<2||n.length===2||n[0]==="www"&&n.length===3)return"";const o=(n[0]==="www"?n.slice(1):n).slice(0,-2);return o.length>0?o.join("."):""}getBaseDomain(t){const n=t.split(".");return t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t)||n.length<=2?t:n.slice(-2).join(".")}setTenant(t,n){var l;const r=(l=n.urlPatterns)==null?void 0:l.find(d=>d.patternType==="subdomain"&&d.tenantId===t.id&&d.isActive);if(!r)throw new Error(`No active subdomain pattern found for tenant '${t.name}'`);const o=new URL(window.location.href),s=r.patternValue,i=o.hostname,a=this.getBaseDomain(i),c=s?`${s}.${a}`:a;o.hostname=c,window.location.href=o.toString()}getCurrentTenantName(){const t=window.location.hostname;return this.extractSubdomain(t)||null}}const Ni={queryParams:new kh,sessionStorage:new Ih,cookie:new Mh,subdomain:new $h},Fh=e=>{const t=Ni[e.clientSideMode];if(!t)throw new Error(`Client side tenant mode '${e.clientSideMode}' is not supported ${JSON.stringify({strategies:Ni},null,2)}`);return t},Bh=(e,t,n)=>{const r=t.find(s=>s.name===n);if(!r)throw Error("No tenant permission");return Fh(e).setTenant(r,e),r},Uh=()=>{const[e,t]=Nn(),{tenants:n=[],currentTenant:r,tenantConfig:o=Lh}=e,s=R.useCallback(i=>{const a=Bh(o,n,i);t({...e,currentTenant:a})},[o,e]);return{tenants:n,currentTenant:r,tenantConfig:o,selectTenant:s}};function Wh(e){if(!e.ok)throw console.error(e),new Error(e.statusText)}async function sr(e,t,n,r){const o=await e(`/user-states/${encodeURIComponent(t)}/${encodeURIComponent(n)}`,r);return Wh(o),o}class ir{static async get(t,n,r){const s=await sr(t,n,r,{method:"GET",headers:{"Content-Type":"application/json"}});return s.status===204?null:await s.json()}static async create(t,n,r,o){const s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await sr(t,n,r,s)).json()}static async update(t,n,r,o){const s={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await sr(t,n,r,s)).json()}static async delete(t,n,r){return await sr(t,n,r,{method:"DELETE",headers:{"Content-Type":"application/json"}}),null}}const Hh=e=>{const t=ps("@bluealba/pae-nestjs-gateway-service"),n=ec();if(!n)throw new Error("You must call the useUserState hook within a PAE application.");const[r,o]=R.useState(null),[s,i]=R.useState(!1),[a,c]=R.useState(!1),[l,d]=R.useState(null),h=(x,S)=>R.useCallback(async({newValue:E,shouldThrowError:_}={})=>{try{c(!0),d(null);const P=await x(t,n,e,E);return o(P),P?P.value:null}catch(P){if(d(P==null?void 0:P.message),console.error(`Failed to ${S} ${e}:`,P),_)throw P;return null}finally{c(!1)}},[t,n,e]),p=h(ir.get,"fetch"),g=h(ir.create,"create"),w=h(ir.update,"update"),m=h(ir.delete,"delete"),y=R.useCallback(async()=>{try{await p()}finally{i(!0)}},[p]);R.useEffect(()=>{y()},[y]);const C=R.useCallback(async(x,S=!1)=>r==null?await g({newValue:x,shouldThrowError:S}):await w({newValue:x,shouldThrowError:S}),[r,g,w]);return{value:r?r.value:null,hasFetched:s,loading:a,error:l,setValue:C,createValue:g,updateValue:w,deleteValue:m}},Oc="__PAE_EXTENSION_POINT_REACT_CONTENT_EMPTY__",Vh=({module:e,point:t,children:n})=>(oc(e,t,n??Oc),null),jc=({name:e,children:t,...n})=>{const r=rc(e);if(r===Oc)return null;if(!r)return u.jsx(u.Fragment,{children:t??null});if(qh(r)){const o=r;return u.jsx(o,{...n})}else return r},qh=e=>typeof e=="function",zh=(e,t)=>{const n=r=>(t=t||e.displayName||e.name||"?",u.jsx(jc,{name:t,...r,children:u.jsx(e,{...r})}));return n.displayName=`extensionPoint(${t})`,n},Mi="single-spa:app-change";function Gh(){const[e,t]=R.useState($i());return R.useEffect(()=>{const n=()=>{t($i())};return window.addEventListener(Mi,n),()=>{window.removeEventListener(Mi,n)}},[]),e}function $i(){return gr.getAppNames().reduce((t,n)=>(gr.getAppStatus(n)?t[n]=gr.getAppStatus(n):t[n]="NOT_LOADED",t),{})}function Qh(e){const n=Gh()[e]??"LOAD_ERROR";return{statusName:n,isLoading:n==="LOADING_SOURCE_CODE"||n==="BOOTSTRAPPING"||n==="MOUNTING",isMounted:n==="MOUNTED",isBroken:n==="SKIP_BECAUSE_BROKEN"||n==="LOAD_ERROR"}}const Dc=({appName:e})=>u.jsx("div",{children:u.jsxs("p",{children:["Loading ",e,"..."]})});Dc.displayName="BaseLoading";const Lc=({appName:e})=>u.jsxs("div",{children:[u.jsx("p",{children:"Something went wrong..."}),u.jsxs("p",{children:["Failed to load ",e]})]});Lc.displayName="BaseError";const Kh={display:"flex",flexDirection:"column",flex:1},kc=R.forwardRef((e,t)=>u.jsx("div",{ref:t,style:Kh,...e}));kc.displayName="BaseContainer";const Yh="pae-app:",Ic=R.forwardRef(({appName:e,LoadingComponent:t=Dc,ErrorComponent:n=Lc,ContainerComponent:r=kc,...o},s)=>{const i=Qh(e);return u.jsxs(r,{ref:s,...o,id:`${Yh}${e}`,children:[i.isLoading&&u.jsx(t,{appName:e}),i.isBroken&&u.jsx(n,{appName:e})]})});Ic.displayName="ModulePlaceHolder";const ws=({operations:e,children:t,forbiddenContent:n})=>{var o;const{hasAccess:r}=Ur();if(!r(...e)){if(!n)return null;if(typeof n=="function")if((o=n==null?void 0:n.prototype)!=null&&o.isReactComponent){const s=n;return u.jsx(s,{operations:e})}else return n({operations:e});return R.isValidElement(n)?n:null}return t};ws.displayName="Authorized";const Zh=({eventName:e,listener:t})=>(sc(e,t),null),Xh=()=>u.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:u.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M8.737 8.737a21.49 21.49 0 0 1 3.308-2.724m0 0c3.063-2.026 5.99-2.641 7.331-1.3 1.827 1.828.026 6.591-4.023 10.64-4.049 4.049-8.812 5.85-10.64 4.023-1.33-1.33-.736-4.218 1.249-7.253m6.083-6.11c-3.063-2.026-5.99-2.641-7.331-1.3-1.827 1.828-.026 6.591 4.023 10.64m3.308-9.34a21.497 21.497 0 0 1 3.308 2.724m2.775 3.386c1.985 3.035 2.579 5.923 1.248 7.253-1.336 1.337-4.245.732-7.295-1.275M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})}),Nc=({applicationName:e})=>{const t=Xa(e);if(t)if(typeof t=="function"){const n=t;return u.jsx(n,{})}else return t;return u.jsx(Xh,{})};Nc.displayName="ApplicationIcon";const Jh=(e,t)=>{const n=r=>u.jsx(ws,{operations:t,children:u.jsx(e,{...r})});return n.displayName="Authorized",n};function Mc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Mc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function D(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Mc(e))&&(r&&(r+=" "),r+=t);return r}const ep="spinner__fakUN",tp="spinner-rotation__wUmPV",np="button__8FA9H",rp="button--contained-primary__stkTx",op="button--outlined-primary__KZ1ww",sp="button--text-primary__GLTfm",ip="button--contained-danger__L9ehT",ap="button--outlined-danger__eoYLd",cp="button--text-danger__Sw-ha",lp="icon__--umH",ar={spinner:ep,"spinner-rotation":"spinner-rotation__wUmPV",spinnerRotation:tp,button:np,"button--contained-primary":"button--contained-primary__stkTx",buttonContainedPrimary:rp,"button--outlined-primary":"button--outlined-primary__KZ1ww",buttonOutlinedPrimary:op,"button--text-primary":"button--text-primary__GLTfm",buttonTextPrimary:sp,"button--contained-danger":"button--contained-danger__L9ehT",buttonContainedDanger:ip,"button--outlined-danger":"button--outlined-danger__eoYLd",buttonOutlinedDanger:ap,"button--text-danger":"button--text-danger__Sw-ha",buttonTextDanger:cp,icon:lp},Dr=R.forwardRef(({variant:e="contained",colorScheme:t="primary",loading:n=!1,IconComponent:r,className:o,children:s,...i},a)=>{const c=D(ar.button,ar[`button--${e}-${t}`],o);return u.jsxs("button",{ref:a,className:c,...i,children:[n?u.jsx("div",{className:ar.spinner}):r&&u.jsx(r,{className:ar.icon}),s]})});Dr.displayName="Button";const up="Badges__5jpum",dp="Badges__5jpum",fp="Badge__95MWM",hp="Badge__95MWM",pp="Badge--primary__Rx-bS",mp="Badge--secondary__d92bT",gp="Badge--success__Kdo98",yp="Badge--warning__bf-Nn",vp="Badge--danger__HTj39",bp="Badge--small__y93Pj",wp="Badge--regular__aT5AL",Cp="Badge--large__wORCH",xr={Badges:up,badges:dp,Badge:fp,badge:hp,"Badge--primary":"Badge--primary__Rx-bS",badgePrimary:pp,"Badge--secondary":"Badge--secondary__d92bT",badgeSecondary:mp,"Badge--success":"Badge--success__Kdo98",badgeSuccess:gp,"Badge--warning":"Badge--warning__bf-Nn",badgeWarning:yp,"Badge--danger":"Badge--danger__HTj39",badgeDanger:vp,"Badge--small":"Badge--small__y93Pj",badgeSmall:bp,"Badge--regular":"Badge--regular__aT5AL",badgeRegular:wp,"Badge--large":"Badge--large__wORCH",badgeLarge:Cp},Jo={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};for(const e in Jo)Object.freeze(Jo[e]);const Fi=Object.freeze(Jo);var Bi={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function xp(e){var d,h;var t,n=[],r=1,o;if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),Fi[e])n=Fi[e].slice(),o="rgb";else if(e==="transparent")r=0,o="rgb",n=[0,0,0];else if(e[0]==="#"){var s=e.slice(1),i=s.length,a=i<=4;r=1,a?(n=[parseInt(s[0]+s[0],16),parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16)],i===4&&(r=parseInt(s[3]+s[3],16)/255)):(n=[parseInt(s[0]+s[1],16),parseInt(s[2]+s[3],16),parseInt(s[4]+s[5],16)],i===8&&(r=parseInt(s[6]+s[7],16)/255)),n[0]||(n[0]=0),n[1]||(n[1]=0),n[2]||(n[2]=0),o="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var c=t[1];o=c.replace(/a$/,"");var l=o==="cmyk"?4:o==="gray"?1:3;n=t[2].trim().split(/\s*[,\/]\s*|\s+/),o==="color"&&(o=n.shift()),n=n.map(function(p,g){if(p[p.length-1]==="%")return p=parseFloat(p)/100,g===3?p:o==="rgb"?p*255:o[0]==="h"||o[0]==="l"&&!g?p*100:o==="lab"?p*125:o==="lch"?g<2?p*150:p*360:o[0]==="o"&&!g?p:o==="oklab"?p*.4:o==="oklch"?g<2?p*.4:p*360:p;if(o[g]==="h"||g===2&&o[o.length-1]==="h"){if(Bi[p]!==void 0)return Bi[p];if(p.endsWith("deg"))return parseFloat(p);if(p.endsWith("turn"))return parseFloat(p)*360;if(p.endsWith("grad"))return parseFloat(p)*360/400;if(p.endsWith("rad"))return parseFloat(p)*180/Math.PI}return p==="none"?0:parseFloat(p)}),r=n.length>l?n.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(n=e.match(/([0-9]+)/g).map(function(p){return parseFloat(p)}),o=((h=(d=e.match(/([a-z])/ig))==null?void 0:d.join(""))==null?void 0:h.toLowerCase())||"rgb");return{space:o,values:n,alpha:r}}const Ep=(e,t)=>{const{space:n,values:r}=xp(e);return n[0]==="h"?`${n}a(${r[0]}, ${r[1]}%, ${r[2]}%, ${t})`:`${n}a(${r}, ${t})`},Cs=R.forwardRef(({children:e,color:t,className:n,customColor:r,size:o="small",style:s,...i},a)=>{const c=r?{color:r,background:Ep(r,.1)}:{},l=D(xr.Badge,xr[`Badge--${o}`],{[xr[`Badge--${t}`]]:!!t},n);return u.jsx("span",{ref:a,className:l,style:{...s,...c},...i,children:e})});Cs.displayName="Badge";const xs=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(xr.Badges,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});xs.displayName="Badges";const $c=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...s})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...s,children:[u.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),u.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"})]}),Fc=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...s})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...s,children:[u.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),u.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}),u.jsx("path",{d:"m9 12 2 2 4-4"})]}),Sp="CopyToClipboardButton__2Nd2m",_p={CopyToClipboardButton:Sp},Rp=({content:e})=>{const[t,n]=Tp(),{notify:r}=ms(),o=t?Fc:$c,s=R.useCallback(async()=>{await n(e)&&r("Copied to the Clipboard !","success")},[e,r]);return u.jsx(o,{className:_p.CopyToClipboardButton,size:18,onClick:s})},Tp=()=>{const[e,t]=R.useState(!1);return[e,async r=>{try{return await navigator.clipboard.writeText(r),t(!0),setTimeout(()=>t(!1),2e3),!0}catch(o){return console.error("Failed to copy text: ",o),!1}}]},Ap="FieldGroup__Q2JCV",Pp="FieldGroup__Q2JCV",Op="FieldGroup--horizontal__kpfL1",jp="FieldGroup--vertical__FLo-Q",Ui={FieldGroup:Ap,fieldGroup:Pp,"FieldGroup--horizontal":"FieldGroup--horizontal__kpfL1",fieldGroupHorizontal:Op,"FieldGroup--vertical":"FieldGroup--vertical__FLo-Q",fieldGroupVertical:jp},Bc=R.forwardRef(({children:e,className:t,orientation:n="vertical",...r},o)=>{const s=D(Ui.FieldGroup,Ui[`FieldGroup--${n}`],t);return u.jsx("div",{ref:o,className:s,...r,children:e})});Bc.displayName="FieldGroup";const Dp="Input__uS0sb",Wi={Input:Dp,Error:"Error__-DQpw"},zr=R.forwardRef(({className:e,error:t,...n},r)=>{const o=D(Wi.Input,t&&Wi.Error,e);return u.jsx("input",{ref:r,className:o,...n})});zr.displayName="Input";const Lp={Error:"Error__N4OP5"},Uc=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Lp.Error,t);return u.jsx("span",{ref:r,className:o,...n,children:e})});Uc.displayName="InputError";const kp="Label__VYUvW",Hi={Label:kp,Error:"Error__Eu6DI"},Wc=R.forwardRef(({children:e,className:t,error:n,...r},o)=>{const s=D(Hi.Label,n&&Hi.Error,t);return u.jsx("label",{ref:o,className:s,...r,children:e})});Wc.displayName="Label";const Ip="Select__giqpe",Np="Chevron__YvhBd",es={Select:Ip,Chevron:Np},Hc=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(es.Option,t);return u.jsx("option",{ref:r,className:o,...n,children:e})});Hc.displayName="Option";const Es=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(es.Select,t);return u.jsxs("div",{className:o,children:[u.jsx("select",{ref:r,...n,children:e}),u.jsx("div",{className:es.Chevron,children:u.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M4 6L8 10L12 6",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})})]})});Es.displayName="Select";Es.Option=Hc;const Mp="TextArea__pa-A0",$p={TextArea:Mp},Vc=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D($p.TextArea,t);return u.jsx("textarea",{ref:r,className:o,...n,children:e})});Vc.displayName="TextArea";const Fp="SearchInput__4OFyE",Bp="SearchIcon__YgnQy",Up="ClearIcon__ukRVr",Wp="SearchInput__ClearIcon__uzVoc",Hp="SearchInput__SearchIcon__zoDG4",xn={SearchInput:Fp,SearchIcon:Bp,ClearIcon:Up,SearchInput__ClearIcon:Wp,SearchInput__SearchIcon:Hp},Ss=R.forwardRef(({className:e,placeholder:t="Type to search...",showClearButton:n=!1,showSearchIcon:r=!0,onClear:o,...s},i)=>{const a=D(xn.SearchInput,n&&xn.SearchInput__ClearIcon,r&&xn.SearchInput__SearchIcon,e),c=D(xn.SearchIcon),l=D(xn.ClearIcon);return u.jsxs("div",{className:a,children:[u.jsx(zr,{ref:i,type:"text",placeholder:t,...s}),r&&u.jsx("svg",{className:c,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M13 13L10.6667 10.6667M12.3333 6.66667C12.3333 9.79628 9.79628 12.3333 6.66667 12.3333C3.53705 12.3333 1 9.79628 1 6.66667C1 3.53705 3.53705 1 6.66667 1C9.79628 1 12.3333 3.53705 12.3333 6.66667Z",stroke:"#A4A4A4",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),n&&u.jsx("svg",{className:l,width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:o,children:u.jsx("path",{d:"M7.33334 0.666748L0.666672 7.33341M0.666672 0.666748L7.33334 7.33341",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})]})});Ss.displayName="SearchInput";const Vp="SearchAutocomplete__vR9Hk",qp="AutocompleteItem__YIm7R",zp="AutocompleteHighlighter__LAFTV",Gp="AutocompleteHighlighter__match__Wy1o2",Qp="DropdownList__-fHIk",Kp="AutocompleteItemDescription__4QYN5",It={SearchAutocomplete:Vp,AutocompleteItem:qp,"AutocompleteItem--canBeSelected":"AutocompleteItem--canBeSelected__jxk4z",AutocompleteHighlighter:zp,AutocompleteHighlighter__match:Gp,DropdownList:Qp,AutocompleteItemDescription:Kp},Yp="DropdownList__QTXXX",Zp="DropdownList__QTXXX",Xp="DropdownList--closed__pdL1Z",Jp="DropdownList--open__opzc9",e1="DropdownList--left__xSwXR",Rt={DropdownList:Yp,dropdownList:Zp,"DropdownList--closed":"DropdownList--closed__pdL1Z",dropdownListClosed:Xp,"DropdownList--open":"DropdownList--open__opzc9",dropdownListOpen:Jp,"DropdownList--left":"DropdownList--left__xSwXR",dropdownListLeft:e1},Gr=R.forwardRef(({children:e,className:t,open:n,align:r="right",...o},s)=>{const i=D(Rt.DropdownList,{[Rt["DropdownList--open"]]:n,[Rt["DropdownList--closed"]]:!n,[Rt["DropdownList--left"]]:r==="left"},t);return u.jsx("div",{ref:s,className:i,...o,children:e})});Gr.displayName="DropdownList";const Sn=R.forwardRef(({children:e,className:t,canBeSelected:n=!1,...r},o)=>{const s=D(It.AutocompleteItem,{[It["AutocompleteItem--canBeSelected"]]:n},t);return u.jsx("div",{ref:o,className:s,role:n?"option":void 0,...r,children:e})});Sn.displayName="AutocompleteItem";const t1=300,n1={query:"",suggestions:[],loading:!1,error:null},r1=({suggestionFetcher:e,canAdd:t})=>{const[n,r]=R.useState(n1);return R.useEffect(()=>{r(a=>({...a,loading:!0}));const s=async()=>{try{const a=await e(n.query);t&&!a.some(c=>c.value.toLowerCase()===n.query.toLowerCase())&&a.push({label:`Add "${n.query}"`,value:n.query,isNew:!0}),r(c=>({...c,suggestions:a,loading:!1}))}catch(a){r(c=>({...c,suggestions:[],error:a,loading:!1}))}},i=setTimeout(()=>{s()},t1);return()=>{clearTimeout(i)}},[n.query]),{...n,setQuery:s=>{r(i=>({...i,query:s}))}}},qc=R.forwardRef(({text:e,query:t,className:n,...r},o)=>{const s=D(It.AutocompleteHighlighter,n),i=(a,c)=>{const l=a.toLowerCase().indexOf(c.toLowerCase());if(l===-1||c.length===0)return a;const d=a.slice(0,l),h=a.slice(l,l+c.length),p=a.slice(l+c.length);return u.jsxs(u.Fragment,{children:[d,u.jsx("span",{className:It.AutocompleteHighlighter__match,children:h}),i(p,c)]})};return u.jsx("div",{ref:o,className:s,...r,children:i(e,t)})});qc.displayName="AutocompleteHighlighter";const o1=5,zc=R.forwardRef(({children:e,className:t,canAdd:n,maxSuggestionsShown:r=o1,searchInputProps:o,keepSelectedOption:s,suggestionFetcher:i,onAccept:a,...c},l)=>{const{query:d,setQuery:h,suggestions:p,loading:g}=r1({suggestionFetcher:i,canAdd:n}),[w,m]=R.useState(null),y=d.length>0,C=A=>{h(A.target.value)},x=A=>{a==null||a(A),s?(m(A),h(A.value)):h("")},S=()=>{a==null||a(null),m(null),h("")},E=D(It.SearchAutocomplete,t),_=p.slice(0,r),P=p.slice(r);return u.jsxs("div",{ref:l,className:E,...c,children:[u.jsx(Ss,{...o,value:d,onChange:C,showClearButton:!!w,onClear:S}),e,u.jsxs(Gr,{className:It.DropdownList,open:y&&!w,role:"listbox","aria-label":"Suggestions",children:[g?u.jsx(Sn,{children:"Loading..."}):_.map(A=>u.jsxs(Sn,{canBeSelected:!0,onClick:x.bind(null,A),children:[u.jsx(qc,{text:A.label,query:d}),A.description&&u.jsx("span",{className:It.AutocompleteItemDescription,children:A.description})]},A.value)),!g&&P.length>0&&u.jsxs(Sn,{children:[P.length," more results"]}),y&&p.length===0&&!g&&u.jsx(Sn,{children:"No results found"})]})]})});zc.displayName="SearchAutocomplete";const ft=e=>{let t=null,n=null;return R.Children.forEach(e.children,r=>{const o=r.props.condition;o===void 0?n=r:!t&&o===!0&&(t=r)}),u.jsx(u.Fragment,{children:t||n})};ft.displayName="Show";ft.When=({condition:e,children:t})=>u.jsx(u.Fragment,{children:e&&t});ft.Else=({render:e,children:t})=>u.jsx(u.Fragment,{children:e||t});function Vi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Qr(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Vi(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Vi(e[o],null)}}}}function Pe(...e){return f.useCallback(Qr(...e),e)}var s1=Symbol.for("react.lazy"),Lr=f[" use ".trim().toString()];function i1(e){return typeof e=="object"&&e!==null&&"then"in e}function Gc(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===s1&&"_payload"in e&&i1(e._payload)}function a1(e){const t=l1(e),n=f.forwardRef((r,o)=>{let{children:s,...i}=r;Gc(s)&&typeof Lr=="function"&&(s=Lr(s._payload));const a=f.Children.toArray(s),c=a.find(d1);if(c){const l=c.props.children,d=a.map(h=>h===c?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:h);return u.jsx(t,{...i,ref:o,children:f.isValidElement(l)?f.cloneElement(l,void 0,d):null})}return u.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var c1=a1("Slot");function l1(e){const t=f.forwardRef((n,r)=>{let{children:o,...s}=n;if(Gc(o)&&typeof Lr=="function"&&(o=Lr(o._payload)),f.isValidElement(o)){const i=h1(o),a=f1(s,o.props);return o.type!==f.Fragment&&(a.ref=r?Qr(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var u1=Symbol("radix.slottable");function d1(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===u1}function f1(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function h1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const p1="SkeletonListContainer__MKJhE",m1="Skeleton__Ovpiw",Qc={SkeletonListContainer:p1,Skeleton:m1},Kr=R.forwardRef((e,t)=>{const{children:n,className:r,loading:o,height:s=48,width:i,borderRadius:a,style:c,...l}=e;if(!o&&n)return n;const d=R.isValidElement(n)?c1:"span";return u.jsx(d,{ref:t,"aria-hidden":!0,className:D(Qc.Skeleton,r),style:{...c,width:i,minWidth:i,height:s,borderRadius:a},"data-inline-skeleton":R.isValidElement(n)?void 0:!0,tabIndex:-1,...l,children:n})});Kr.displayName="Skeleton";const Kc=e=>{const{numberOfItems:t,itemsGap:n=2,itemProps:r}=e,o=Array.from({length:t},(s,i)=>i+1);return u.jsx("div",{className:D(Qc.SkeletonListContainer),style:{gap:n},children:o.map(s=>u.jsx(Kr,{loading:!0,...r},s))})};Kc.displayName="SkeletonList";function me(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function g1(e,t){const n=f.createContext(t),r=s=>{const{children:i,...a}=s,c=f.useMemo(()=>a,Object.values(a));return u.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(s){const i=f.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function _s(e,t=[]){let n=[];function r(s,i){const a=f.createContext(i),c=n.length;n=[...n,i];const l=h=>{var C;const{scope:p,children:g,...w}=h,m=((C=p==null?void 0:p[e])==null?void 0:C[c])||a,y=f.useMemo(()=>w,Object.values(w));return u.jsx(m.Provider,{value:y,children:g})};l.displayName=s+"Provider";function d(h,p){var m;const g=((m=p==null?void 0:p[e])==null?void 0:m[c])||a,w=f.useContext(g);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[l,d]}const o=()=>{const s=n.map(i=>f.createContext(i));return function(a){const c=(a==null?void 0:a[e])||s;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,y1(o,...t)]}function y1(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:c,scopeName:l})=>{const h=c(s)[`__scope${l}`];return{...a,...h}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function v1(e){const t=b1(e),n=f.forwardRef((r,o)=>{const{children:s,...i}=r,a=f.Children.toArray(s),c=a.find(C1);if(c){const l=c.props.children,d=a.map(h=>h===c?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:h);return u.jsx(t,{...i,ref:o,children:f.isValidElement(l)?f.cloneElement(l,void 0,d):null})}return u.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function b1(e){const t=f.forwardRef((n,r)=>{const{children:o,...s}=n;if(f.isValidElement(o)){const i=E1(o),a=x1(s,o.props);return o.type!==f.Fragment&&(a.ref=r?Qr(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var w1=Symbol("radix.slottable");function C1(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===w1}function x1(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function E1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var S1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ge=S1.reduce((e,t)=>{const n=v1(`Primitive.${t}`),r=f.forwardRef((o,s)=>{const{asChild:i,...a}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(c,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function _1(e,t){e&&ka.flushSync(()=>e.dispatchEvent(t))}function fn(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function R1(e,t=globalThis==null?void 0:globalThis.document){const n=fn(e);f.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var T1="DismissableLayer",ts="dismissableLayer.update",A1="dismissableLayer.pointerDownOutside",P1="dismissableLayer.focusOutside",qi,Yc=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Rs=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...c}=e,l=f.useContext(Yc),[d,h]=f.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=f.useState({}),w=Pe(t,A=>h(A)),m=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),C=m.indexOf(y),x=d?m.indexOf(d):-1,S=l.layersWithOutsidePointerEventsDisabled.size>0,E=x>=C,_=D1(A=>{const M=A.target,I=[...l.branches].some(k=>k.contains(M));!E||I||(o==null||o(A),i==null||i(A),A.defaultPrevented||a==null||a())},p),P=L1(A=>{const M=A.target;[...l.branches].some(k=>k.contains(M))||(s==null||s(A),i==null||i(A),A.defaultPrevented||a==null||a())},p);return R1(A=>{x===l.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},p),f.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(qi=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),zi(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=qi)}},[d,p,n,l]),f.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),zi())},[d,l]),f.useEffect(()=>{const A=()=>g({});return document.addEventListener(ts,A),()=>document.removeEventListener(ts,A)},[]),u.jsx(ge.div,{...c,ref:w,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:me(e.onFocusCapture,P.onFocusCapture),onBlurCapture:me(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:me(e.onPointerDownCapture,_.onPointerDownCapture)})});Rs.displayName=T1;var O1="DismissableLayerBranch",j1=f.forwardRef((e,t)=>{const n=f.useContext(Yc),r=f.useRef(null),o=Pe(t,r);return f.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),u.jsx(ge.div,{...e,ref:o})});j1.displayName=O1;function D1(e,t=globalThis==null?void 0:globalThis.document){const n=fn(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let c=function(){Zc(A1,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function L1(e,t=globalThis==null?void 0:globalThis.document){const n=fn(e),r=f.useRef(!1);return f.useEffect(()=>{const o=s=>{s.target&&!r.current&&Zc(P1,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function zi(){const e=new CustomEvent(ts);document.dispatchEvent(e)}function Zc(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?_1(o,s):o.dispatchEvent(s)}var mt=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},k1=f[" useId ".trim().toString()]||(()=>{}),I1=0;function Er(e){const[t,n]=f.useState(k1());return mt(()=>{n(r=>r??String(I1++))},[e]),e||(t?`radix-${t}`:"")}const N1=["top","right","bottom","left"],gt=Math.min,ve=Math.max,kr=Math.round,cr=Math.floor,Me=e=>({x:e,y:e}),M1={left:"right",right:"left",bottom:"top",top:"bottom"},$1={start:"end",end:"start"};function ns(e,t,n){return ve(e,gt(t,n))}function Ke(e,t){return typeof e=="function"?e(t):e}function Ye(e){return e.split("-")[0]}function gn(e){return e.split("-")[1]}function Ts(e){return e==="x"?"y":"x"}function As(e){return e==="y"?"height":"width"}const F1=new Set(["top","bottom"]);function Ne(e){return F1.has(Ye(e))?"y":"x"}function Ps(e){return Ts(Ne(e))}function B1(e,t,n){n===void 0&&(n=!1);const r=gn(e),o=Ps(e),s=As(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Ir(i)),[i,Ir(i)]}function U1(e){const t=Ir(e);return[rs(e),t,rs(t)]}function rs(e){return e.replace(/start|end/g,t=>$1[t])}const Gi=["left","right"],Qi=["right","left"],W1=["top","bottom"],H1=["bottom","top"];function V1(e,t,n){switch(e){case"top":case"bottom":return n?t?Qi:Gi:t?Gi:Qi;case"left":case"right":return t?W1:H1;default:return[]}}function q1(e,t,n,r){const o=gn(e);let s=V1(Ye(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(rs)))),s}function Ir(e){return e.replace(/left|right|bottom|top/g,t=>M1[t])}function z1(e){return{top:0,right:0,bottom:0,left:0,...e}}function Xc(e){return typeof e!="number"?z1(e):{top:e,right:e,bottom:e,left:e}}function Nr(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ki(e,t,n){let{reference:r,floating:o}=e;const s=Ne(t),i=Ps(t),a=As(i),c=Ye(t),l=s==="y",d=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let g;switch(c){case"top":g={x:d,y:r.y-o.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:h};break;case"left":g={x:r.x-o.width,y:h};break;default:g={x:r.x,y:r.y}}switch(gn(t)){case"start":g[i]-=p*(n&&l?-1:1);break;case"end":g[i]+=p*(n&&l?-1:1);break}return g}const G1=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:h}=Ki(l,r,c),p=r,g={},w=0;for(let m=0;m<a.length;m++){const{name:y,fn:C}=a[m],{x,y:S,data:E,reset:_}=await C({x:d,y:h,initialPlacement:r,placement:p,strategy:o,middlewareData:g,rects:l,platform:i,elements:{reference:e,floating:t}});d=x??d,h=S??h,g={...g,[y]:{...g[y],...E}},_&&w<=50&&(w++,typeof _=="object"&&(_.placement&&(p=_.placement),_.rects&&(l=_.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:d,y:h}=Ki(l,p,c)),m=-1)}return{x:d,y:h,placement:p,strategy:o,middlewareData:g}};async function An(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:p=!1,padding:g=0}=Ke(t,e),w=Xc(g),y=a[p?h==="floating"?"reference":"floating":h],C=Nr(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:d,strategy:c})),x=h==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),E=await(s.isElement==null?void 0:s.isElement(S))?await(s.getScale==null?void 0:s.getScale(S))||{x:1,y:1}:{x:1,y:1},_=Nr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:S,strategy:c}):x);return{top:(C.top-_.top+w.top)/E.y,bottom:(_.bottom-C.bottom+w.bottom)/E.y,left:(C.left-_.left+w.left)/E.x,right:(_.right-C.right+w.right)/E.x}}const Q1=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=t,{element:l,padding:d=0}=Ke(e,t)||{};if(l==null)return{};const h=Xc(d),p={x:n,y:r},g=Ps(o),w=As(g),m=await i.getDimensions(l),y=g==="y",C=y?"top":"left",x=y?"bottom":"right",S=y?"clientHeight":"clientWidth",E=s.reference[w]+s.reference[g]-p[g]-s.floating[w],_=p[g]-s.reference[g],P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let A=P?P[S]:0;(!A||!await(i.isElement==null?void 0:i.isElement(P)))&&(A=a.floating[S]||s.floating[w]);const M=E/2-_/2,I=A/2-m[w]/2-1,k=gt(h[C],I),V=gt(h[x],I),Q=k,H=A-m[w]-V,G=A/2-m[w]/2+M,ne=ns(Q,G,H),Z=!c.arrow&&gn(o)!=null&&G!==ne&&s.reference[w]/2-(G<Q?k:V)-m[w]/2<0,X=Z?G<Q?G-Q:G-H:0;return{[g]:p[g]+X,data:{[g]:ne,centerOffset:G-ne-X,...Z&&{alignmentOffset:X}},reset:Z}}}),K1=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:m=!0,...y}=Ke(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const C=Ye(o),x=Ne(a),S=Ye(a)===a,E=await(c.isRTL==null?void 0:c.isRTL(l.floating)),_=p||(S||!m?[Ir(a)]:U1(a)),P=w!=="none";!p&&P&&_.push(...q1(a,m,w,E));const A=[a,..._],M=await An(t,y),I=[];let k=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&I.push(M[C]),h){const G=B1(o,i,E);I.push(M[G[0]],M[G[1]])}if(k=[...k,{placement:o,overflows:I}],!I.every(G=>G<=0)){var V,Q;const G=(((V=s.flip)==null?void 0:V.index)||0)+1,ne=A[G];if(ne&&(!(h==="alignment"?x!==Ne(ne):!1)||k.every(F=>Ne(F.placement)===x?F.overflows[0]>0:!0)))return{data:{index:G,overflows:k},reset:{placement:ne}};let Z=(Q=k.filter(X=>X.overflows[0]<=0).sort((X,F)=>X.overflows[1]-F.overflows[1])[0])==null?void 0:Q.placement;if(!Z)switch(g){case"bestFit":{var H;const X=(H=k.filter(F=>{if(P){const re=Ne(F.placement);return re===x||re==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(re=>re>0).reduce((re,ye)=>re+ye,0)]).sort((F,re)=>F[1]-re[1])[0])==null?void 0:H[0];X&&(Z=X);break}case"initialPlacement":Z=a;break}if(o!==Z)return{reset:{placement:Z}}}return{}}}};function Yi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Zi(e){return N1.some(t=>e[t]>=0)}const Y1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ke(e,t);switch(r){case"referenceHidden":{const s=await An(t,{...o,elementContext:"reference"}),i=Yi(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Zi(i)}}}case"escaped":{const s=await An(t,{...o,altBoundary:!0}),i=Yi(s,n.floating);return{data:{escapedOffsets:i,escaped:Zi(i)}}}default:return{}}}}},Jc=new Set(["left","top"]);async function Z1(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Ye(n),a=gn(n),c=Ne(n)==="y",l=Jc.has(i)?-1:1,d=s&&c?-1:1,h=Ke(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:w}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof w=="number"&&(g=a==="end"?w*-1:w),c?{x:g*d,y:p*l}:{x:p*l,y:g*d}}const X1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,c=await Z1(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},J1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:y=>{let{x:C,y:x}=y;return{x:C,y:x}}},...c}=Ke(e,t),l={x:n,y:r},d=await An(t,c),h=Ne(Ye(o)),p=Ts(h);let g=l[p],w=l[h];if(s){const y=p==="y"?"top":"left",C=p==="y"?"bottom":"right",x=g+d[y],S=g-d[C];g=ns(x,g,S)}if(i){const y=h==="y"?"top":"left",C=h==="y"?"bottom":"right",x=w+d[y],S=w-d[C];w=ns(x,w,S)}const m=a.fn({...t,[p]:g,[h]:w});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[p]:s,[h]:i}}}}}},em=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Ke(e,t),d={x:n,y:r},h=Ne(o),p=Ts(h);let g=d[p],w=d[h];const m=Ke(a,t),y=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const S=p==="y"?"height":"width",E=s.reference[p]-s.floating[S]+y.mainAxis,_=s.reference[p]+s.reference[S]-y.mainAxis;g<E?g=E:g>_&&(g=_)}if(l){var C,x;const S=p==="y"?"width":"height",E=Jc.has(Ye(o)),_=s.reference[h]-s.floating[S]+(E&&((C=i.offset)==null?void 0:C[h])||0)+(E?0:y.crossAxis),P=s.reference[h]+s.reference[S]+(E?0:((x=i.offset)==null?void 0:x[h])||0)-(E?y.crossAxis:0);w<_?w=_:w>P&&(w=P)}return{[p]:g,[h]:w}}}},tm=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:c=()=>{},...l}=Ke(e,t),d=await An(t,l),h=Ye(o),p=gn(o),g=Ne(o)==="y",{width:w,height:m}=s.floating;let y,C;h==="top"||h==="bottom"?(y=h,C=p===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(C=h,y=p==="end"?"top":"bottom");const x=m-d.top-d.bottom,S=w-d.left-d.right,E=gt(m-d[y],x),_=gt(w-d[C],S),P=!t.middlewareData.shift;let A=E,M=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(M=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=x),P&&!p){const k=ve(d.left,0),V=ve(d.right,0),Q=ve(d.top,0),H=ve(d.bottom,0);g?M=w-2*(k!==0||V!==0?k+V:ve(d.left,d.right)):A=m-2*(Q!==0||H!==0?Q+H:ve(d.top,d.bottom))}await c({...t,availableWidth:M,availableHeight:A});const I=await i.getDimensions(a.floating);return w!==I.width||m!==I.height?{reset:{rects:!0}}:{}}}};function Yr(){return typeof window<"u"}function yn(e){return el(e)?(e.nodeName||"").toLowerCase():"#document"}function we(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fe(e){var t;return(t=(el(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function el(e){return Yr()?e instanceof Node||e instanceof we(e).Node:!1}function Te(e){return Yr()?e instanceof Element||e instanceof we(e).Element:!1}function $e(e){return Yr()?e instanceof HTMLElement||e instanceof we(e).HTMLElement:!1}function Xi(e){return!Yr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof we(e).ShadowRoot}const nm=new Set(["inline","contents"]);function Un(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ae(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!nm.has(o)}const rm=new Set(["table","td","th"]);function om(e){return rm.has(yn(e))}const sm=[":popover-open",":modal"];function Zr(e){return sm.some(t=>{try{return e.matches(t)}catch{return!1}})}const im=["transform","translate","scale","rotate","perspective"],am=["transform","translate","scale","rotate","perspective","filter"],cm=["paint","layout","strict","content"];function Os(e){const t=js(),n=Te(e)?Ae(e):e;return im.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||am.some(r=>(n.willChange||"").includes(r))||cm.some(r=>(n.contain||"").includes(r))}function lm(e){let t=yt(e);for(;$e(t)&&!hn(t);){if(Os(t))return t;if(Zr(t))return null;t=yt(t)}return null}function js(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const um=new Set(["html","body","#document"]);function hn(e){return um.has(yn(e))}function Ae(e){return we(e).getComputedStyle(e)}function Xr(e){return Te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function yt(e){if(yn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xi(e)&&e.host||Fe(e);return Xi(t)?t.host:t}function tl(e){const t=yt(e);return hn(t)?e.ownerDocument?e.ownerDocument.body:e.body:$e(t)&&Un(t)?t:tl(t)}function Pn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=tl(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=we(o);if(s){const a=os(i);return t.concat(i,i.visualViewport||[],Un(o)?o:[],a&&n?Pn(a):[])}return t.concat(o,Pn(o,[],n))}function os(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function nl(e){const t=Ae(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=$e(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=kr(n)!==s||kr(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Ds(e){return Te(e)?e:e.contextElement}function Yt(e){const t=Ds(e);if(!$e(t))return Me(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=nl(t);let i=(s?kr(n.width):n.width)/r,a=(s?kr(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const dm=Me(0);function rl(e){const t=we(e);return!js()||!t.visualViewport?dm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function fm(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==we(e)?!1:t}function $t(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Ds(e);let i=Me(1);t&&(r?Te(r)&&(i=Yt(r)):i=Yt(e));const a=fm(s,n,r)?rl(s):Me(0);let c=(o.left+a.x)/i.x,l=(o.top+a.y)/i.y,d=o.width/i.x,h=o.height/i.y;if(s){const p=we(s),g=r&&Te(r)?we(r):r;let w=p,m=os(w);for(;m&&r&&g!==w;){const y=Yt(m),C=m.getBoundingClientRect(),x=Ae(m),S=C.left+(m.clientLeft+parseFloat(x.paddingLeft))*y.x,E=C.top+(m.clientTop+parseFloat(x.paddingTop))*y.y;c*=y.x,l*=y.y,d*=y.x,h*=y.y,c+=S,l+=E,w=we(m),m=os(w)}}return Nr({width:d,height:h,x:c,y:l})}function Jr(e,t){const n=Xr(e).scrollLeft;return t?t.left+n:$t(Fe(e)).left+n}function ol(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Jr(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function hm(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Fe(r),a=t?Zr(t.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},l=Me(1);const d=Me(0),h=$e(r);if((h||!h&&!s)&&((yn(r)!=="body"||Un(i))&&(c=Xr(r)),$e(r))){const g=$t(r);l=Yt(r),d.x=g.x+r.clientLeft,d.y=g.y+r.clientTop}const p=i&&!h&&!s?ol(i,c):Me(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+d.x+p.x,y:n.y*l.y-c.scrollTop*l.y+d.y+p.y}}function pm(e){return Array.from(e.getClientRects())}function mm(e){const t=Fe(e),n=Xr(e),r=e.ownerDocument.body,o=ve(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ve(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Jr(e);const a=-n.scrollTop;return Ae(r).direction==="rtl"&&(i+=ve(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const Ji=25;function gm(e,t){const n=we(e),r=Fe(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,c=0;if(o){s=o.width,i=o.height;const d=js();(!d||d&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const l=Jr(r);if(l<=0){const d=r.ownerDocument,h=d.body,p=getComputedStyle(h),g=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,w=Math.abs(r.clientWidth-h.clientWidth-g);w<=Ji&&(s-=w)}else l<=Ji&&(s+=l);return{width:s,height:i,x:a,y:c}}const ym=new Set(["absolute","fixed"]);function vm(e,t){const n=$t(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=$e(e)?Yt(e):Me(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,l=r*s.y;return{width:i,height:a,x:c,y:l}}function ea(e,t,n){let r;if(t==="viewport")r=gm(e,n);else if(t==="document")r=mm(Fe(e));else if(Te(t))r=vm(t,n);else{const o=rl(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Nr(r)}function sl(e,t){const n=yt(e);return n===t||!Te(n)||hn(n)?!1:Ae(n).position==="fixed"||sl(n,t)}function bm(e,t){const n=t.get(e);if(n)return n;let r=Pn(e,[],!1).filter(a=>Te(a)&&yn(a)!=="body"),o=null;const s=Ae(e).position==="fixed";let i=s?yt(e):e;for(;Te(i)&&!hn(i);){const a=Ae(i),c=Os(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&ym.has(o.position)||Un(i)&&!c&&sl(e,i))?r=r.filter(d=>d!==i):o=a,i=yt(i)}return t.set(e,r),r}function wm(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Zr(t)?[]:bm(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((l,d)=>{const h=ea(t,d,o);return l.top=ve(h.top,l.top),l.right=gt(h.right,l.right),l.bottom=gt(h.bottom,l.bottom),l.left=ve(h.left,l.left),l},ea(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Cm(e){const{width:t,height:n}=nl(e);return{width:t,height:n}}function xm(e,t,n){const r=$e(t),o=Fe(t),s=n==="fixed",i=$t(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=Me(0);function l(){c.x=Jr(o)}if(r||!r&&!s)if((yn(t)!=="body"||Un(o))&&(a=Xr(t)),r){const g=$t(t,!0,s,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else o&&l();s&&!r&&o&&l();const d=o&&!r&&!s?ol(o,a):Me(0),h=i.left+a.scrollLeft-c.x-d.x,p=i.top+a.scrollTop-c.y-d.y;return{x:h,y:p,width:i.width,height:i.height}}function vo(e){return Ae(e).position==="static"}function ta(e,t){if(!$e(e)||Ae(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Fe(e)===n&&(n=n.ownerDocument.body),n}function il(e,t){const n=we(e);if(Zr(e))return n;if(!$e(e)){let o=yt(e);for(;o&&!hn(o);){if(Te(o)&&!vo(o))return o;o=yt(o)}return n}let r=ta(e,t);for(;r&&om(r)&&vo(r);)r=ta(r,t);return r&&hn(r)&&vo(r)&&!Os(r)?n:r||lm(e)||n}const Em=async function(e){const t=this.getOffsetParent||il,n=this.getDimensions,r=await n(e.floating);return{reference:xm(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Sm(e){return Ae(e).direction==="rtl"}const _m={convertOffsetParentRelativeRectToViewportRelativeRect:hm,getDocumentElement:Fe,getClippingRect:wm,getOffsetParent:il,getElementRects:Em,getClientRects:pm,getDimensions:Cm,getScale:Yt,isElement:Te,isRTL:Sm};function al(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Rm(e,t){let n=null,r;const o=Fe(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const l=e.getBoundingClientRect(),{left:d,top:h,width:p,height:g}=l;if(a||t(),!p||!g)return;const w=cr(h),m=cr(o.clientWidth-(d+p)),y=cr(o.clientHeight-(h+g)),C=cr(d),S={rootMargin:-w+"px "+-m+"px "+-y+"px "+-C+"px",threshold:ve(0,gt(1,c))||1};let E=!0;function _(P){const A=P[0].intersectionRatio;if(A!==c){if(!E)return i();A?i(!1,A):r=setTimeout(()=>{i(!1,1e-7)},1e3)}A===1&&!al(l,e.getBoundingClientRect())&&i(),E=!1}try{n=new IntersectionObserver(_,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,S)}n.observe(e)}return i(!0),s}function Tm(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=Ds(e),d=o||s?[...l?Pn(l):[],...Pn(t)]:[];d.forEach(C=>{o&&C.addEventListener("scroll",n,{passive:!0}),s&&C.addEventListener("resize",n)});const h=l&&a?Rm(l,n):null;let p=-1,g=null;i&&(g=new ResizeObserver(C=>{let[x]=C;x&&x.target===l&&g&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var S;(S=g)==null||S.observe(t)})),n()}),l&&!c&&g.observe(l),g.observe(t));let w,m=c?$t(e):null;c&&y();function y(){const C=$t(e);m&&!al(m,C)&&n(),m=C,w=requestAnimationFrame(y)}return n(),()=>{var C;d.forEach(x=>{o&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),h==null||h(),(C=g)==null||C.disconnect(),g=null,c&&cancelAnimationFrame(w)}}const Am=X1,Pm=J1,Om=K1,jm=tm,Dm=Y1,na=Q1,Lm=em,km=(e,t,n)=>{const r=new Map,o={platform:_m,...n},s={...o.platform,_c:r};return G1(e,t,{...o,platform:s})};var Im=typeof document<"u",Nm=function(){},Sr=Im?R.useLayoutEffect:Nm;function Mr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Mr(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Mr(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function cl(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ra(e,t){const n=cl(e);return Math.round(t*n)/n}function bo(e){const t=f.useRef(e);return Sr(()=>{t.current=e}),t}function Mm(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[d,h]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,g]=f.useState(r);Mr(p,r)||g(r);const[w,m]=f.useState(null),[y,C]=f.useState(null),x=f.useCallback(F=>{F!==P.current&&(P.current=F,m(F))},[]),S=f.useCallback(F=>{F!==A.current&&(A.current=F,C(F))},[]),E=s||w,_=i||y,P=f.useRef(null),A=f.useRef(null),M=f.useRef(d),I=c!=null,k=bo(c),V=bo(o),Q=bo(l),H=f.useCallback(()=>{if(!P.current||!A.current)return;const F={placement:t,strategy:n,middleware:p};V.current&&(F.platform=V.current),km(P.current,A.current,F).then(re=>{const ye={...re,isPositioned:Q.current!==!1};G.current&&!Mr(M.current,ye)&&(M.current=ye,ka.flushSync(()=>{h(ye)}))})},[p,t,n,V,Q]);Sr(()=>{l===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,h(F=>({...F,isPositioned:!1})))},[l]);const G=f.useRef(!1);Sr(()=>(G.current=!0,()=>{G.current=!1}),[]),Sr(()=>{if(E&&(P.current=E),_&&(A.current=_),E&&_){if(k.current)return k.current(E,_,H);H()}},[E,_,H,k,I]);const ne=f.useMemo(()=>({reference:P,floating:A,setReference:x,setFloating:S}),[x,S]),Z=f.useMemo(()=>({reference:E,floating:_}),[E,_]),X=f.useMemo(()=>{const F={position:n,left:0,top:0};if(!Z.floating)return F;const re=ra(Z.floating,d.x),ye=ra(Z.floating,d.y);return a?{...F,transform:"translate("+re+"px, "+ye+"px)",...cl(Z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:re,top:ye}},[n,a,Z.floating,d.x,d.y]);return f.useMemo(()=>({...d,update:H,refs:ne,elements:Z,floatingStyles:X}),[d,H,ne,Z,X])}const $m=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?na({element:r.current,padding:o}).fn(n):{}:r?na({element:r,padding:o}).fn(n):{}}}},Fm=(e,t)=>({...Am(e),options:[e,t]}),Bm=(e,t)=>({...Pm(e),options:[e,t]}),Um=(e,t)=>({...Lm(e),options:[e,t]}),Wm=(e,t)=>({...Om(e),options:[e,t]}),Hm=(e,t)=>({...jm(e),options:[e,t]}),Vm=(e,t)=>({...Dm(e),options:[e,t]}),qm=(e,t)=>({...$m(e),options:[e,t]});var zm="Arrow",ll=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return u.jsx(ge.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});ll.displayName=zm;var Gm=ll;function Qm(e){const[t,n]=f.useState(void 0);return mt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const c=s.borderBoxSize,l=Array.isArray(c)?c[0]:c;i=l.inlineSize,a=l.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ls="Popper",[ul,dl]=_s(Ls),[Km,fl]=ul(Ls),hl=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return u.jsx(Km,{scope:t,anchor:r,onAnchorChange:o,children:n})};hl.displayName=Ls;var pl="PopperAnchor",ml=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=fl(pl,n),i=f.useRef(null),a=Pe(t,i),c=f.useRef(null);return f.useEffect(()=>{const l=c.current;c.current=(r==null?void 0:r.current)||i.current,l!==c.current&&s.onAnchorChange(c.current)}),r?null:u.jsx(ge.div,{...o,ref:a})});ml.displayName=pl;var ks="PopperContent",[Ym,Zm]=ul(ks),gl=f.forwardRef((e,t)=>{var Wt,wt,Ht,Ct,zn,wn;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:p=!1,updatePositionStrategy:g="optimized",onPlaced:w,...m}=e,y=fl(ks,n),[C,x]=f.useState(null),S=Pe(t,xt=>x(xt)),[E,_]=f.useState(null),P=Qm(E),A=(P==null?void 0:P.width)??0,M=(P==null?void 0:P.height)??0,I=r+(s!=="center"?"-"+s:""),k=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},V=Array.isArray(l)?l:[l],Q=V.length>0,H={padding:k,boundary:V.filter(Jm),altBoundary:Q},{refs:G,floatingStyles:ne,placement:Z,isPositioned:X,middlewareData:F}=Mm({strategy:"fixed",placement:I,whileElementsMounted:(...xt)=>Tm(...xt,{animationFrame:g==="always"}),elements:{reference:y.anchor},middleware:[Fm({mainAxis:o+M,alignmentAxis:i}),c&&Bm({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?Um():void 0,...H}),c&&Wm({...H}),Hm({...H,apply:({elements:xt,rects:Gn,availableWidth:Vt,availableHeight:Et})=>{const{width:Qn,height:Kn}=Gn.reference,Ue=xt.floating.style;Ue.setProperty("--radix-popper-available-width",`${Vt}px`),Ue.setProperty("--radix-popper-available-height",`${Et}px`),Ue.setProperty("--radix-popper-anchor-width",`${Qn}px`),Ue.setProperty("--radix-popper-anchor-height",`${Kn}px`)}}),E&&qm({element:E,padding:a}),eg({arrowWidth:A,arrowHeight:M}),p&&Vm({strategy:"referenceHidden",...H})]}),[re,ye]=bl(Z),bt=fn(w);mt(()=>{X&&(bt==null||bt())},[X,bt]);const Vn=(Wt=F.arrow)==null?void 0:Wt.x,qn=(wt=F.arrow)==null?void 0:wt.y,so=((Ht=F.arrow)==null?void 0:Ht.centerOffset)!==0,[io,bn]=f.useState();return mt(()=>{C&&bn(window.getComputedStyle(C).zIndex)},[C]),u.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...ne,transform:X?ne.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:io,"--radix-popper-transform-origin":[(Ct=F.transformOrigin)==null?void 0:Ct.x,(zn=F.transformOrigin)==null?void 0:zn.y].join(" "),...((wn=F.hide)==null?void 0:wn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(Ym,{scope:n,placedSide:re,onArrowChange:_,arrowX:Vn,arrowY:qn,shouldHideArrow:so,children:u.jsx(ge.div,{"data-side":re,"data-align":ye,...m,ref:S,style:{...m.style,animation:X?void 0:"none"}})})})});gl.displayName=ks;var yl="PopperArrow",Xm={top:"bottom",right:"left",bottom:"top",left:"right"},vl=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Zm(yl,r),i=Xm[s.placedSide];return u.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:u.jsx(Gm,{...o,ref:n,style:{...o.style,display:"block"}})})});vl.displayName=yl;function Jm(e){return e!==null}var eg=e=>({name:"transformOrigin",options:e,fn(t){var y,C,x;const{placement:n,rects:r,middlewareData:o}=t,i=((y=o.arrow)==null?void 0:y.centerOffset)!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[l,d]=bl(n),h={start:"0%",center:"50%",end:"100%"}[d],p=(((C=o.arrow)==null?void 0:C.x)??0)+a/2,g=(((x=o.arrow)==null?void 0:x.y)??0)+c/2;let w="",m="";return l==="bottom"?(w=i?h:`${p}px`,m=`${-c}px`):l==="top"?(w=i?h:`${p}px`,m=`${r.floating.height+c}px`):l==="right"?(w=`${-c}px`,m=i?h:`${g}px`):l==="left"&&(w=`${r.floating.width+c}px`,m=i?h:`${g}px`),{data:{x:w,y:m}}}});function bl(e){const[t,n="center"]=e.split("-");return[t,n]}var tg=hl,ng=ml,rg=gl,og=vl,sg="Portal",Is=f.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=f.useState(!1);mt(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Da.createPortal(u.jsx(ge.div,{...r,ref:t}),i):null});Is.displayName=sg;function ig(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var vn=e=>{const{present:t,children:n}=e,r=ag(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),s=Pe(r.ref,cg(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:s}):null};vn.displayName="Presence";function ag(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),s=f.useRef("none"),i=e?"mounted":"unmounted",[a,c]=ig(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=lr(r.current);s.current=a==="mounted"?l:"none"},[a]),mt(()=>{const l=r.current,d=o.current;if(d!==e){const p=s.current,g=lr(l);e?c("MOUNT"):g==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(d&&p!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),mt(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,h=g=>{const m=lr(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&m&&(c("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},p=g=>{g.target===t&&(s.current=lr(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function lr(e){return(e==null?void 0:e.animationName)||"none"}function cg(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var lg=Symbol("radix.slottable");function ug(e){const t=({children:n})=>u.jsx(u.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=lg,t}var dg=f[" useInsertionEffect ".trim().toString()]||mt;function wl({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=fg({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const d=f.useRef(e!==void 0);f.useEffect(()=>{const h=d.current;h!==a&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const l=f.useCallback(d=>{var h;if(a){const p=hg(d)?d(e):d;p!==e&&((h=i.current)==null||h.call(i,p))}else s(d)},[a,e,s,i]);return[c,l]}function fg({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),s=f.useRef(t);return dg(()=>{s.current=t},[t]),f.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function hg(e){return typeof e=="function"}var pg=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),mg="VisuallyHidden",Cl=f.forwardRef((e,t)=>u.jsx(ge.span,{...e,ref:t,style:{...pg,...e.style}}));Cl.displayName=mg;var gg=Cl,[eo]=_s("Tooltip",[dl]),to=dl(),xl="TooltipProvider",yg=700,ss="tooltip.open",[vg,Ns]=eo(xl),El=e=>{const{__scopeTooltip:t,delayDuration:n=yg,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=f.useRef(!0),a=f.useRef(!1),c=f.useRef(0);return f.useEffect(()=>{const l=c.current;return()=>window.clearTimeout(l)},[]),u.jsx(vg,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:f.useCallback(l=>{a.current=l},[]),disableHoverableContent:o,children:s})};El.displayName=xl;var On="Tooltip",[bg,Wn]=eo(On),Sl=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:a}=e,c=Ns(On,e.__scopeTooltip),l=to(t),[d,h]=f.useState(null),p=Er(),g=f.useRef(0),w=i??c.disableHoverableContent,m=a??c.delayDuration,y=f.useRef(!1),[C,x]=wl({prop:r,defaultProp:o??!1,onChange:A=>{A?(c.onOpen(),document.dispatchEvent(new CustomEvent(ss))):c.onClose(),s==null||s(A)},caller:On}),S=f.useMemo(()=>C?y.current?"delayed-open":"instant-open":"closed",[C]),E=f.useCallback(()=>{window.clearTimeout(g.current),g.current=0,y.current=!1,x(!0)},[x]),_=f.useCallback(()=>{window.clearTimeout(g.current),g.current=0,x(!1)},[x]),P=f.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{y.current=!0,x(!0),g.current=0},m)},[m,x]);return f.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),u.jsx(tg,{...l,children:u.jsx(bg,{scope:t,contentId:p,open:C,stateAttribute:S,trigger:d,onTriggerChange:h,onTriggerEnter:f.useCallback(()=>{c.isOpenDelayedRef.current?P():E()},[c.isOpenDelayedRef,P,E]),onTriggerLeave:f.useCallback(()=>{w?_():(window.clearTimeout(g.current),g.current=0)},[_,w]),onOpen:E,onClose:_,disableHoverableContent:w,children:n})})};Sl.displayName=On;var is="TooltipTrigger",_l=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Wn(is,n),s=Ns(is,n),i=to(n),a=f.useRef(null),c=Pe(t,a,o.onTriggerChange),l=f.useRef(!1),d=f.useRef(!1),h=f.useCallback(()=>l.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),u.jsx(ng,{asChild:!0,...i,children:u.jsx(ge.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:me(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:me(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:me(e.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:me(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:me(e.onBlur,o.onClose),onClick:me(e.onClick,o.onClose)})})});_l.displayName=is;var Ms="TooltipPortal",[wg,Cg]=eo(Ms,{forceMount:void 0}),Rl=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=Wn(Ms,t);return u.jsx(wg,{scope:t,forceMount:n,children:u.jsx(vn,{present:n||s.open,children:u.jsx(Is,{asChild:!0,container:o,children:r})})})};Rl.displayName=Ms;var pn="TooltipContent",Tl=f.forwardRef((e,t)=>{const n=Cg(pn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=Wn(pn,e.__scopeTooltip);return u.jsx(vn,{present:r||i.open,children:i.disableHoverableContent?u.jsx(Al,{side:o,...s,ref:t}):u.jsx(xg,{side:o,...s,ref:t})})}),xg=f.forwardRef((e,t)=>{const n=Wn(pn,e.__scopeTooltip),r=Ns(pn,e.__scopeTooltip),o=f.useRef(null),s=Pe(t,o),[i,a]=f.useState(null),{trigger:c,onClose:l}=n,d=o.current,{onPointerInTransitChange:h}=r,p=f.useCallback(()=>{a(null),h(!1)},[h]),g=f.useCallback((w,m)=>{const y=w.currentTarget,C={x:w.clientX,y:w.clientY},x=Rg(C,y.getBoundingClientRect()),S=Tg(C,x),E=Ag(m.getBoundingClientRect()),_=Og([...S,...E]);a(_),h(!0)},[h]);return f.useEffect(()=>()=>p(),[p]),f.useEffect(()=>{if(c&&d){const w=y=>g(y,d),m=y=>g(y,c);return c.addEventListener("pointerleave",w),d.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",m)}}},[c,d,g,p]),f.useEffect(()=>{if(i){const w=m=>{const y=m.target,C={x:m.clientX,y:m.clientY},x=(c==null?void 0:c.contains(y))||(d==null?void 0:d.contains(y)),S=!Pg(C,i);x?p():S&&(p(),l())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[c,d,i,l,p]),u.jsx(Al,{...e,ref:s})}),[Eg,Sg]=eo(On,{isInside:!1}),_g=ug("TooltipContent"),Al=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,c=Wn(pn,n),l=to(n),{onClose:d}=c;return f.useEffect(()=>(document.addEventListener(ss,d),()=>document.removeEventListener(ss,d)),[d]),f.useEffect(()=>{if(c.trigger){const h=p=>{const g=p.target;g!=null&&g.contains(c.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,d]),u.jsx(Rs,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:u.jsxs(rg,{"data-state":c.stateAttribute,...l,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(_g,{children:r}),u.jsx(Eg,{scope:n,isInside:!0,children:u.jsx(gg,{id:c.contentId,role:"tooltip",children:o||r})})]})})});Tl.displayName=pn;var Pl="TooltipArrow",Ol=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=to(n);return Sg(Pl,n).isInside?null:u.jsx(og,{...o,...r,ref:t})});Ol.displayName=Pl;function Rg(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Tg(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Ag(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Pg(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],c=t[i],l=a.x,d=a.y,h=c.x,p=c.y;d>r!=p>r&&n<(h-l)*(r-d)/(p-d)+l&&(o=!o)}return o}function Og(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),jg(t)}function jg(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Dg=El,Lg=Sl,kg=_l,Ig=Rl,Ng=Tl,Mg=Ol;const $g="tooltip__nUuSh",Fg="tooltipArrow__W2w-f",oa={tooltip:$g,tooltipArrow:Fg},jl=({children:e,open:t,displayName:n,tooltipContent:r,className:o,disabled:s,delayDuration:i=300,side:a="right",sideOffset:c=0})=>{const[l,d]=R.useState(!1),h=t!==void 0,g=s?!1:h?t:l,w=m=>{s||h||d(m)};return u.jsx(Dg,{delayDuration:i,children:u.jsxs(Lg,{open:g,onOpenChange:w,children:[u.jsx(kg,{asChild:!0,children:e}),u.jsx(Ig,{children:u.jsxs(Ng,{className:D(oa.tooltip,o),side:a,sideOffset:c,children:[n,r,u.jsx(Mg,{className:oa.tooltipArrow})]})})]})})};jl.displayName="Tooltip";const Bg="spinner__qa7F6",Ug="rotate__EqlXe",Wg="spinner-dark__9A9-q",Hg="spinner-white__gRbtI",Vg="spinner-success__otWGm",qg="spinner-danger__Bq5DM",zg="spinner-warning__U900K",sa={spinner:Bg,rotate:Ug,"spinner-dark":"spinner-dark__9A9-q",spinnerDark:Wg,"spinner-white":"spinner-white__gRbtI",spinnerWhite:Hg,"spinner-success":"spinner-success__otWGm",spinnerSuccess:Vg,"spinner-danger":"spinner-danger__Bq5DM",spinnerDanger:qg,"spinner-warning":"spinner-warning__U900K",spinnerWarning:zg},Dl=({className:e,color:t="white",size:n=80,thickness:r})=>{const o=D(sa.spinner,sa[`spinner-${t}`],e),s=r??Math.max(n/12,2);return u.jsx("span",{style:{width:n,height:n,borderWidth:s},className:o})};Dl.displayName="Spinner";const Gg="disabled__KpauE",Qg="checked__2-JV-",Kg="thumb__fEuKD",ur={switch:"switch__0b2av",disabled:Gg,checked:Qg,thumb:Kg},Ll=R.forwardRef(({checked:e,defaultChecked:t=!1,onCheckedChange:n,disabled:r=!1,id:o,className:s,name:i,"aria-label":a,"aria-labelledby":c,"aria-describedby":l,...d},h)=>{const[p,g]=R.useState(t),w=e!==void 0,m=w?!!e:p,y=()=>{if(r)return;const x=!m;w||g(x),n==null||n(x)},C=x=>{(x.key===" "||x.key==="Enter")&&(x.preventDefault(),y())};return u.jsx("button",{ref:h,type:"button",role:"switch","aria-checked":m,"aria-label":a,"aria-labelledby":c,"aria-describedby":l,disabled:r,id:o,name:i,className:D(ur.switch,{[ur.checked]:m,[ur.disabled]:r}),onClick:y,onKeyDown:C,...d,children:u.jsx("span",{className:ur.thumb,"aria-hidden":"true"})})});Ll.displayName="Switch";const Yg="tabs-root__ELmdj",Zg="tabs-list__rc10N",Xg="tabs-list--horizontal__e1YW4",Jg="tabs-list--vertical__huK05",ey="tabs-trigger__D8R4R",ty="tabs-trigger--disabled__ezDWc",ny="tabs-trigger--horizontal__4jBFV",ry="tabs-trigger--active__S-Z-S",oy="tabs-trigger--vertical__dNVIZ",sy="tabs-content__1d77o",Ie={tabsRoot:Yg,tabsList:Zg,tabsListHorizontal:Xg,tabsListVertical:Jg,tabsTrigger:ey,tabsTriggerDisabled:ty,tabsTriggerHorizontal:ny,tabsTriggerActive:ry,tabsTriggerVertical:oy,tabsContent:sy},kl=R.createContext(null),$s=()=>{const e=R.useContext(kl);if(!e)throw new Error("Tabs components must be used within a Tabs provider");return e},iy=({defaultValue:e,value:t,onValueChange:n,orientation:r="horizontal",className:o="",children:s})=>{const[i,a]=R.useState(e||""),c=t!==void 0,l=c?t:i,d=h=>{c||a(h),n==null||n(h)};return u.jsx(kl.Provider,{value:{value:l,onValueChange:d,orientation:r},children:u.jsx("div",{className:D(Ie.tabsRoot,o),children:s})})},ay=({className:e="",children:t})=>{const{orientation:n}=$s(),r=R.useRef(null),o=s=>{var l;const i=(l=r.current)==null?void 0:l.querySelectorAll('[role="tab"]:not([disabled])');if(!i)return;const a=Array.from(i).findIndex(d=>d===document.activeElement);let c=a;switch(s.key){case"ArrowLeft":n==="horizontal"&&(s.preventDefault(),c=a>0?a-1:i.length-1);break;case"ArrowRight":n==="horizontal"&&(s.preventDefault(),c=a<i.length-1?a+1:0);break;case"ArrowUp":n==="vertical"&&(s.preventDefault(),c=a>0?a-1:i.length-1);break;case"ArrowDown":n==="vertical"&&(s.preventDefault(),c=a<i.length-1?a+1:0);break;case"Home":s.preventDefault(),c=0;break;case"End":s.preventDefault(),c=i.length-1;break}if(c!==a){const d=i[c];d.focus(),d.click()}};return u.jsx("div",{ref:r,role:"tablist","aria-orientation":n,onKeyDown:o,className:D(Ie.tabsList,n==="horizontal"?Ie.tabsListHorizontal:Ie.tabsListVertical,e),children:t})},cy=({value:e,disabled:t=!1,className:n="",children:r})=>{const{value:o,onValueChange:s,orientation:i}=$s(),a=o===e,c=()=>{t||s(e)};return u.jsx("button",{role:"tab","aria-selected":a,"aria-controls":`content-${e}`,tabIndex:a?0:-1,disabled:t,onClick:c,className:D(Ie.tabsTrigger,i==="horizontal"?Ie.tabsTriggerHorizontal:Ie.tabsTriggerVertical,a&&Ie.tabsTriggerActive,t&&Ie.tabsTriggerDisabled,n),children:r})},ly=({value:e,className:t="",children:n})=>{const{value:r}=$s();return r===e?u.jsx("div",{role:"tabpanel",id:`content-${e}`,"aria-labelledby":`trigger-${e}`,tabIndex:0,className:D(Ie.tabsContent,t),children:n}):null},Il=({className:e,state:t="open",onClick:n})=>t==="open"?u.jsxs("svg",{className:e,onClick:n,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:[u.jsx("path",{d:"M1.41174 7.41635C1.3323 7.29056 1.29257 7.22766 1.27034 7.13065C1.25364 7.05778 1.25364 6.94287 1.27034 6.87C1.29257 6.77299 1.3323 6.71009 1.41174 6.58431C2.06823 5.54482 4.02232 2.91699 7.00024 2.91699C9.97815 2.91699 11.9322 5.54482 12.5887 6.5843C12.6682 6.71009 12.7079 6.77299 12.7301 6.87C12.7468 6.94287 12.7468 7.05778 12.7301 7.13065C12.7079 7.22766 12.6682 7.29056 12.5887 7.41635C11.9322 8.45584 9.97815 11.0837 7.00024 11.0837C4.02232 11.0837 2.06823 8.45584 1.41174 7.41635Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M7.00024 8.75033C7.96673 8.75033 8.75024 7.96682 8.75024 7.00033C8.75024 6.03383 7.96673 5.25033 7.00024 5.25033C6.03374 5.25033 5.25024 6.03383 5.25024 7.00033C5.25024 7.96682 6.03374 8.75033 7.00024 8.75033Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})]}):u.jsx("svg",{className:e,onClick:n,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:u.jsx("path",{d:"M6.26672 2.97052C6.50379 2.93547 6.74835 2.91667 7.00024 2.91667C9.97816 2.91667 11.9323 5.54449 12.5887 6.58398C12.6682 6.70979 12.7079 6.7727 12.7302 6.86973C12.7469 6.94259 12.7468 7.05755 12.7301 7.13042C12.7079 7.22744 12.6679 7.29077 12.5879 7.41741C12.413 7.69425 12.1463 8.08331 11.793 8.50527M3.92252 3.9171C2.66131 4.77266 1.8051 5.9613 1.41231 6.58308C1.3325 6.70942 1.29259 6.7726 1.27035 6.86961C1.25364 6.94248 1.25363 7.05742 1.27033 7.13029C1.29257 7.22731 1.33229 7.29022 1.41174 7.41602C2.06823 8.45551 4.02232 11.0833 7.00024 11.0833C8.20098 11.0833 9.23526 10.6561 10.0851 10.078M1.75024 1.75L12.2502 12.25M5.76281 5.76256C5.44612 6.07925 5.25024 6.51675 5.25024 7C5.25024 7.9665 6.03374 8.75 7.00024 8.75C7.48349 8.75 7.92099 8.55413 8.23768 8.23744",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})}),uy="PasswordInput__GDJDN",dy="eyeIcon__kDExG",ia={PasswordInput:uy,eyeIcon:dy},fy=R.forwardRef((e,t)=>{const[n,r]=R.useState("password"),o=R.useCallback(()=>{r(s=>s==="password"?"text":"password")},[r]);return u.jsxs("div",{className:D(ia.PasswordInput,e.className),children:[u.jsx(zr,{type:n,...e,ref:t}),u.jsx(Il,{className:ia.eyeIcon,onClick:o,state:n==="password"?"open":"closed"})]})});var wo="focusScope.autoFocusOnMount",Co="focusScope.autoFocusOnUnmount",aa={bubbles:!1,cancelable:!0},hy="FocusScope",Nl=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,c]=f.useState(null),l=fn(o),d=fn(s),h=f.useRef(null),p=Pe(t,m=>c(m)),g=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let m=function(S){if(g.paused||!a)return;const E=S.target;a.contains(E)?h.current=E:Je(h.current,{select:!0})},y=function(S){if(g.paused||!a)return;const E=S.relatedTarget;E!==null&&(a.contains(E)||Je(h.current,{select:!0}))},C=function(S){if(document.activeElement===document.body)for(const _ of S)_.removedNodes.length>0&&Je(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",y);const x=new MutationObserver(C);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",y),x.disconnect()}}},[r,a,g.paused]),f.useEffect(()=>{if(a){la.add(g);const m=document.activeElement;if(!a.contains(m)){const C=new CustomEvent(wo,aa);a.addEventListener(wo,l),a.dispatchEvent(C),C.defaultPrevented||(py(by(Ml(a)),{select:!0}),document.activeElement===m&&Je(a))}return()=>{a.removeEventListener(wo,l),setTimeout(()=>{const C=new CustomEvent(Co,aa);a.addEventListener(Co,d),a.dispatchEvent(C),C.defaultPrevented||Je(m??document.body,{select:!0}),a.removeEventListener(Co,d),la.remove(g)},0)}}},[a,l,d,g]);const w=f.useCallback(m=>{if(!n&&!r||g.paused)return;const y=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,C=document.activeElement;if(y&&C){const x=m.currentTarget,[S,E]=my(x);S&&E?!m.shiftKey&&C===E?(m.preventDefault(),n&&Je(S,{select:!0})):m.shiftKey&&C===S&&(m.preventDefault(),n&&Je(E,{select:!0})):C===x&&m.preventDefault()}},[n,r,g.paused]);return u.jsx(ge.div,{tabIndex:-1,...i,ref:p,onKeyDown:w})});Nl.displayName=hy;function py(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Je(r,{select:t}),document.activeElement!==n)return}function my(e){const t=Ml(e),n=ca(t,e),r=ca(t.reverse(),e);return[n,r]}function Ml(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ca(e,t){for(const n of e)if(!gy(n,{upTo:t}))return n}function gy(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function yy(e){return e instanceof HTMLInputElement&&"select"in e}function Je(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&yy(e)&&t&&e.select()}}var la=vy();function vy(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ua(e,t),e.unshift(t)},remove(t){var n;e=ua(e,t),(n=e[0])==null||n.resume()}}}function ua(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function by(e){return e.filter(t=>t.tagName!=="A")}var xo=0;function wy(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??da()),document.body.insertAdjacentElement("beforeend",e[1]??da()),xo++,()=>{xo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),xo--}},[])}function da(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var _r="right-scroll-bar-position",Rr="width-before-scroll-bar",Cy="with-scroll-bars-hidden",xy="--removed-body-scroll-bar-size";function Eo(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ey(e,t){var n=R.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Sy=typeof window<"u"?f.useLayoutEffect:f.useEffect,fa=new WeakMap;function _y(e,t){var n=Ey(null,function(r){return e.forEach(function(o){return Eo(o,r)})});return Sy(function(){var r=fa.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||Eo(a,null)}),s.forEach(function(a){o.has(a)||Eo(a,i)})}fa.set(n,e)},[e]),n}function Ry(e){return e}function Ty(e,t){t===void 0&&(t=Ry);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var c=function(){var d=i;i=[],d.forEach(s)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(d){i.push(d),l()},filter:function(d){return i=i.filter(d),n}}}};return o}function Ay(e){e===void 0&&(e={});var t=Ty(null);return t.options=ke({async:!0,ssr:!1},e),t}var $l=function(e){var t=e.sideCar,n=cc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,ke({},n))};$l.isSideCarExport=!0;function Py(e,t){return e.useMedium(t),$l}var Fl=Ay(),So=function(){},no=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:So,onWheelCapture:So,onTouchMoveCapture:So}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,d=e.enabled,h=e.shards,p=e.sideCar,g=e.noRelative,w=e.noIsolation,m=e.inert,y=e.allowPinchZoom,C=e.as,x=C===void 0?"div":C,S=e.gapMode,E=cc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=p,P=_y([n,t]),A=ke(ke({},E),o);return f.createElement(f.Fragment,null,d&&f.createElement(_,{sideCar:Fl,removeScrollBar:l,shards:h,noRelative:g,noIsolation:w,inert:m,setCallbacks:s,allowPinchZoom:!!y,lockRef:n,gapMode:S}),i?f.cloneElement(f.Children.only(a),ke(ke({},A),{ref:P})):f.createElement(x,ke({},A,{className:c,ref:P}),a))});no.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};no.classNames={fullWidth:Rr,zeroRight:_r};var Oy=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function jy(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Oy();return t&&e.setAttribute("nonce",t),e}function Dy(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ly(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ky=function(){var e=0,t=null;return{add:function(n){e==0&&(t=jy())&&(Dy(t,n),Ly(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Iy=function(){var e=ky();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Bl=function(){var e=Iy(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Ny={left:0,top:0,right:0,gap:0},_o=function(e){return parseInt(e||"",10)||0},My=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[_o(n),_o(r),_o(o)]},$y=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ny;var t=My(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Fy=Bl(),Zt="data-scroll-locked",By=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
209
|
-
.`.concat(
|
|
208
|
+
`,er=16,Jf=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,containerStyle:s,containerClassName:i})=>{let{toasts:a,handlers:c}=Tf(n);return m.createElement("div",{style:{position:"fixed",zIndex:9999,top:er,left:er,right:er,bottom:er,pointerEvents:"none",...s},className:i,onMouseEnter:c.startPause,onMouseLeave:c.endPause},a.map(u=>{let d=u.position||t,f=c.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),p=Zf(d,f);return m.createElement(Yf,{id:u.id,key:u.id,onHeightUpdate:c.updateHeight,className:u.visible?Xf:"",style:p},u.type==="custom"?Pr(u.message,u):o?o(u):m.createElement(Kf,{toast:u,position:d}))}))},Ri=be;const bs=()=>({notify:S.useCallback((t,n,r)=>{const o={style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}};n==="warning"||n==="info"?Ri(t,{...o,icon:n==="warning"?"⚠️":"ℹ️"}):Ri[n](t,o),r&&console.error(r)},[])});var mn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},It=typeof window>"u"||"Deno"in globalThis;function ue(){}function eh(e,t){return typeof e=="function"?e(t):e}function Uo(e){return typeof e=="number"&&e>=0&&e!==1/0}function wc(e,t){return Math.max(e+(t||0)-Date.now(),0)}function pt(e,t){return typeof e=="function"?e(t):e}function _e(e,t){return typeof e=="function"?e(t):e}function Ti(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==ws(i,t.options))return!1}else if(!An(t.queryKey,i))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function Ai(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Mt(t.options.mutationKey)!==Mt(s))return!1}else if(!An(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function ws(e,t){return((t==null?void 0:t.queryKeyHashFn)||Mt)(e)}function Mt(e){return JSON.stringify(e,(t,n)=>Ho(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function An(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>An(e[n],t[n])):!1}function Wo(e,t){if(e===t)return e;const n=Pi(e)&&Pi(t);if(n||Ho(e)&&Ho(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,a=n?[]:{};let c=0;for(let u=0;u<i;u++){const d=n?u:s[u];(!n&&r.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,c++):(a[d]=Wo(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&c++)}return o===i&&c===o?e:a}return t}function Or(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Pi(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ho(e){if(!Oi(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Oi(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Oi(e){return Object.prototype.toString.call(e)==="[object Object]"}function th(e){return new Promise(t=>{setTimeout(t,e)})}function Vo(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){try{return Wo(e,t)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return Wo(e,t)}return t}function nh(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function rh(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var jr=Symbol();function Cc(e,t){return e.queryFn===jr&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===jr?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function xc(e,t){return typeof e=="function"?e(...t):!!e}var Tt,nt,Xt,Ra,oh=(Ra=class extends mn{constructor(){super();L(this,Tt);L(this,nt);L(this,Xt);O(this,Xt,t=>{if(!It&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){b(this,nt)||this.setEventListener(b(this,Xt))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,nt))==null||t.call(this),O(this,nt,void 0))}setEventListener(t){var n;O(this,Xt,t),(n=b(this,nt))==null||n.call(this),O(this,nt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){b(this,Tt)!==t&&(O(this,Tt,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof b(this,Tt)=="boolean"?b(this,Tt):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Tt=new WeakMap,nt=new WeakMap,Xt=new WeakMap,Ra),Cs=new oh,Jt,rt,en,Ta,sh=(Ta=class extends mn{constructor(){super();L(this,Jt,!0);L(this,rt);L(this,en);O(this,en,t=>{if(!It&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){b(this,rt)||this.setEventListener(b(this,en))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,rt))==null||t.call(this),O(this,rt,void 0))}setEventListener(t){var n;O(this,en,t),(n=b(this,rt))==null||n.call(this),O(this,rt,t(this.setOnline.bind(this)))}setOnline(t){b(this,Jt)!==t&&(O(this,Jt,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return b(this,Jt)}},Jt=new WeakMap,rt=new WeakMap,en=new WeakMap,Ta),Dr=new sh;function qo(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function ih(e){return Math.min(1e3*2**e,3e4)}function Ec(e){return(e??"online")==="online"?Dr.isOnline():!0}var Sc=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function yo(e){return e instanceof Sc}function _c(e){let t=!1,n=0,r=!1,o;const s=qo(),i=h=>{var y;r||(p(new Sc(h)),(y=e.abort)==null||y.call(e))},a=()=>{t=!0},c=()=>{t=!1},u=()=>Cs.isFocused()&&(e.networkMode==="always"||Dr.isOnline())&&e.canRun(),d=()=>Ec(e.networkMode)&&e.canRun(),f=h=>{var y;r||(r=!0,(y=e.onSuccess)==null||y.call(e,h),o==null||o(),s.resolve(h))},p=h=>{var y;r||(r=!0,(y=e.onError)==null||y.call(e,h),o==null||o(),s.reject(h))},g=()=>new Promise(h=>{var y;o=C=>{(r||u())&&h(C)},(y=e.onPause)==null||y.call(e)}).then(()=>{var h;o=void 0,r||(h=e.onContinue)==null||h.call(e)}),w=()=>{if(r)return;let h;const y=n===0?e.initialPromise:void 0;try{h=y??e.fn()}catch(C){h=Promise.reject(C)}Promise.resolve(h).then(f).catch(C=>{var P;if(r)return;const x=e.retry??(It?0:3),_=e.retryDelay??ih,E=typeof _=="function"?_(n,C):_,R=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,C);if(t||!R){p(C);return}n++,(P=e.onFail)==null||P.call(e,n,C),th(E).then(()=>u()?void 0:g()).then(()=>{t?p(C):w()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:c,canStart:d,start:()=>(d()?w():g().then(w),s)}}var ah=e=>setTimeout(e,0);function ch(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=ah;const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||i()}return c},batchCalls:a=>(...c)=>{s(()=>{a(...c)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var oe=ch(),At,Aa,Rc=(Aa=class{constructor(){L(this,At)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Uo(this.gcTime)&&O(this,At,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(It?1/0:5*60*1e3))}clearGcTimeout(){b(this,At)&&(clearTimeout(b(this,At)),O(this,At,void 0))}},At=new WeakMap,Aa),tn,nn,xe,Pt,se,Ln,Ot,Ee,He,Pa,lh=(Pa=class extends Rc{constructor(t){super();L(this,Ee);L(this,tn);L(this,nn);L(this,xe);L(this,Pt);L(this,se);L(this,Ln);L(this,Ot);O(this,Ot,!1),O(this,Ln,t.defaultOptions),this.setOptions(t.options),this.observers=[],O(this,Pt,t.client),O(this,xe,b(this,Pt).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,O(this,tn,uh(this.options)),this.state=t.state??b(this,tn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=b(this,se))==null?void 0:t.promise}setOptions(t){this.options={...b(this,Ln),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&b(this,xe).remove(this)}setData(t,n){const r=Vo(this.state.data,t,this.options);return $(this,Ee,He).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){$(this,Ee,He).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=b(this,se))==null?void 0:r.promise;return(o=b(this,se))==null||o.cancel(t),n?n.then(ue).catch(ue):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(b(this,tn))}isActive(){return this.observers.some(t=>_e(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===jr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>pt(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!wc(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=b(this,se))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=b(this,se))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),b(this,xe).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(b(this,se)&&(b(this,Ot)?b(this,se).cancel({revert:!0}):b(this,se).cancelRetry()),this.scheduleGc()),b(this,xe).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||$(this,Ee,He).call(this,{type:"invalidate"})}fetch(t,n){var u,d,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(b(this,se))return b(this,se).continueRetry(),b(this,se).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(g=>g.options.queryFn);p&&this.setOptions(p.options)}Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");const r=new AbortController,o=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(O(this,Ot,!0),r.signal)})},s=()=>{const p=Cc(this.options,n),w=(()=>{const h={client:b(this,Pt),queryKey:this.queryKey,meta:this.meta};return o(h),h})();return O(this,Ot,!1),this.options.persister?this.options.persister(p,w,this):p(w)},a=(()=>{const p={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:b(this,Pt),state:this.state,fetchFn:s};return o(p),p})();(u=this.options.behavior)==null||u.onFetch(a,this),O(this,nn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&$(this,Ee,He).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta});const c=p=>{var g,w,h,y;yo(p)&&p.silent||$(this,Ee,He).call(this,{type:"error",error:p}),yo(p)||((w=(g=b(this,xe).config).onError)==null||w.call(g,p,this),(y=(h=b(this,xe).config).onSettled)==null||y.call(h,this.state.data,p,this)),this.scheduleGc()};return O(this,se,_c({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var g,w,h,y;if(p===void 0){console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(C){c(C);return}(w=(g=b(this,xe).config).onSuccess)==null||w.call(g,p,this),(y=(h=b(this,xe).config).onSettled)==null||y.call(h,p,this.state.error,this),this.scheduleGc()},onError:c,onFail:(p,g)=>{$(this,Ee,He).call(this,{type:"failed",failureCount:p,error:g})},onPause:()=>{$(this,Ee,He).call(this,{type:"pause"})},onContinue:()=>{$(this,Ee,He).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),b(this,se).start()}},tn=new WeakMap,nn=new WeakMap,xe=new WeakMap,Pt=new WeakMap,se=new WeakMap,Ln=new WeakMap,Ot=new WeakMap,Ee=new WeakSet,He=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Tc(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return yo(o)&&o.revert&&b(this,nn)?{...b(this,nn),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),oe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),b(this,xe).notify({query:this,type:"updated",action:t})})},Pa);function Tc(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ec(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function uh(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var je,Oa,dh=(Oa=class extends mn{constructor(t={}){super();L(this,je);this.config=t,O(this,je,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??ws(o,n);let i=this.get(s);return i||(i=new lh({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){b(this,je).has(t.queryHash)||(b(this,je).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=b(this,je).get(t.queryHash);n&&(t.destroy(),n===t&&b(this,je).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){oe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return b(this,je).get(t)}getAll(){return[...b(this,je).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ti(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ti(t,r)):n}notify(t){oe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){oe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){oe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},je=new WeakMap,Oa),De,ce,jt,Le,Xe,ja,fh=(ja=class extends Rc{constructor(t){super();L(this,Le);L(this,De);L(this,ce);L(this,jt);this.mutationId=t.mutationId,O(this,ce,t.mutationCache),O(this,De,[]),this.state=t.state||Ac(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){b(this,De).includes(t)||(b(this,De).push(t),this.clearGcTimeout(),b(this,ce).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){O(this,De,b(this,De).filter(n=>n!==t)),this.scheduleGc(),b(this,ce).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){b(this,De).length||(this.state.status==="pending"?this.scheduleGc():b(this,ce).remove(this))}continue(){var t;return((t=b(this,jt))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,a,c,u,d,f,p,g,w,h,y,C,x,_,E,R,P,A,M;const n=()=>{$(this,Le,Xe).call(this,{type:"continue"})};O(this,jt,_c({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(k,N)=>{$(this,Le,Xe).call(this,{type:"failed",failureCount:k,error:N})},onPause:()=>{$(this,Le,Xe).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>b(this,ce).canRun(this)}));const r=this.state.status==="pending",o=!b(this,jt).canStart();try{if(r)n();else{$(this,Le,Xe).call(this,{type:"pending",variables:t,isPaused:o}),await((i=(s=b(this,ce).config).onMutate)==null?void 0:i.call(s,t,this));const N=await((c=(a=this.options).onMutate)==null?void 0:c.call(a,t));N!==this.state.context&&$(this,Le,Xe).call(this,{type:"pending",context:N,variables:t,isPaused:o})}const k=await b(this,jt).start();return await((d=(u=b(this,ce).config).onSuccess)==null?void 0:d.call(u,k,t,this.state.context,this)),await((p=(f=this.options).onSuccess)==null?void 0:p.call(f,k,t,this.state.context)),await((w=(g=b(this,ce).config).onSettled)==null?void 0:w.call(g,k,null,this.state.variables,this.state.context,this)),await((y=(h=this.options).onSettled)==null?void 0:y.call(h,k,null,t,this.state.context)),$(this,Le,Xe).call(this,{type:"success",data:k}),k}catch(k){try{throw await((x=(C=b(this,ce).config).onError)==null?void 0:x.call(C,k,t,this.state.context,this)),await((E=(_=this.options).onError)==null?void 0:E.call(_,k,t,this.state.context)),await((P=(R=b(this,ce).config).onSettled)==null?void 0:P.call(R,void 0,k,this.state.variables,this.state.context,this)),await((M=(A=this.options).onSettled)==null?void 0:M.call(A,void 0,k,t,this.state.context)),k}finally{$(this,Le,Xe).call(this,{type:"error",error:k})}}finally{b(this,ce).runNext(this)}}},De=new WeakMap,ce=new WeakMap,jt=new WeakMap,Le=new WeakSet,Xe=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),oe.batch(()=>{b(this,De).forEach(r=>{r.onMutationUpdate(t)}),b(this,ce).notify({mutation:this,type:"updated",action:t})})},ja);function Ac(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ve,Se,Nn,Da,hh=(Da=class extends mn{constructor(t={}){super();L(this,Ve);L(this,Se);L(this,Nn);this.config=t,O(this,Ve,new Set),O(this,Se,new Map),O(this,Nn,0)}build(t,n,r){const o=new fh({mutationCache:this,mutationId:++Zn(this,Nn)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){b(this,Ve).add(t);const n=tr(t);if(typeof n=="string"){const r=b(this,Se).get(n);r?r.push(t):b(this,Se).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(b(this,Ve).delete(t)){const n=tr(t);if(typeof n=="string"){const r=b(this,Se).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&b(this,Se).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=tr(t);if(typeof n=="string"){const r=b(this,Se).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=tr(t);if(typeof n=="string"){const o=(r=b(this,Se).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){oe.batch(()=>{b(this,Ve).forEach(t=>{this.notify({type:"removed",mutation:t})}),b(this,Ve).clear(),b(this,Se).clear()})}getAll(){return Array.from(b(this,Ve))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ai(n,r))}findAll(t={}){return this.getAll().filter(n=>Ai(t,n))}notify(t){oe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return oe.batch(()=>Promise.all(t.map(n=>n.continue().catch(ue))))}},Ve=new WeakMap,Se=new WeakMap,Nn=new WeakMap,Da);function tr(e){var t;return(t=e.options.scope)==null?void 0:t.id}function ji(e){return{onFetch:(t,n)=>{var d,f,p,g,w;const r=t.options,o=(p=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:p.direction,s=((g=t.state.data)==null?void 0:g.pages)||[],i=((w=t.state.data)==null?void 0:w.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const u=async()=>{let h=!1;const y=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(t.signal.aborted?h=!0:t.signal.addEventListener("abort",()=>{h=!0}),t.signal)})},C=Cc(t.options,t.fetchOptions),x=async(_,E,R)=>{if(h)return Promise.reject();if(E==null&&_.pages.length)return Promise.resolve(_);const A=(()=>{const V={client:t.client,queryKey:t.queryKey,pageParam:E,direction:R?"backward":"forward",meta:t.options.meta};return y(V),V})(),M=await C(A),{maxPages:k}=t.options,N=R?rh:nh;return{pages:N(_.pages,M,k),pageParams:N(_.pageParams,E,k)}};if(o&&s.length){const _=o==="backward",E=_?ph:Di,R={pages:s,pageParams:i},P=E(r,R);a=await x(R,P,_)}else{const _=e??s.length;do{const E=c===0?i[0]??r.initialPageParam:Di(r,a);if(c>0&&E==null)break;a=await x(a,E),c++}while(c<_)}return a};t.options.persister?t.fetchFn=()=>{var h,y;return(y=(h=t.options).persister)==null?void 0:y.call(h,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Di(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function ph(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var J,ot,st,rn,on,it,sn,an,La,mh=(La=class{constructor(e={}){L(this,J);L(this,ot);L(this,st);L(this,rn);L(this,on);L(this,it);L(this,sn);L(this,an);O(this,J,e.queryCache||new dh),O(this,ot,e.mutationCache||new hh),O(this,st,e.defaultOptions||{}),O(this,rn,new Map),O(this,on,new Map),O(this,it,0)}mount(){Zn(this,it)._++,b(this,it)===1&&(O(this,sn,Cs.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,J).onFocus())})),O(this,an,Dr.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,J).onOnline())})))}unmount(){var e,t;Zn(this,it)._--,b(this,it)===0&&((e=b(this,sn))==null||e.call(this),O(this,sn,void 0),(t=b(this,an))==null||t.call(this),O(this,an,void 0))}isFetching(e){return b(this,J).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return b(this,ot).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=b(this,J).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=b(this,J).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(pt(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return b(this,J).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=b(this,J).get(r.queryHash),s=o==null?void 0:o.state.data,i=eh(t,s);if(i!==void 0)return b(this,J).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return oe.batch(()=>b(this,J).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=b(this,J).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=b(this,J);oe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=b(this,J);return oe.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=oe.batch(()=>b(this,J).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(ue).catch(ue)}invalidateQueries(e,t={}){return oe.batch(()=>(b(this,J).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=oe.batch(()=>b(this,J).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(ue)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(ue)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=b(this,J).build(this,t);return n.isStaleByTime(pt(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ue).catch(ue)}fetchInfiniteQuery(e){return e.behavior=ji(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ue).catch(ue)}ensureInfiniteQueryData(e){return e.behavior=ji(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Dr.isOnline()?b(this,ot).resumePausedMutations():Promise.resolve()}getQueryCache(){return b(this,J)}getMutationCache(){return b(this,ot)}getDefaultOptions(){return b(this,st)}setDefaultOptions(e){O(this,st,e)}setQueryDefaults(e,t){b(this,rn).set(Mt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...b(this,rn).values()],n={};return t.forEach(r=>{An(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){b(this,on).set(Mt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...b(this,on).values()],n={};return t.forEach(r=>{An(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...b(this,st).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ws(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===jr&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...b(this,st).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){b(this,J).clear(),b(this,ot).clear()}},J=new WeakMap,ot=new WeakMap,st=new WeakMap,rn=new WeakMap,on=new WeakMap,it=new WeakMap,sn=new WeakMap,an=new WeakMap,La),he,U,kn,le,Dt,cn,at,ct,In,ln,un,Lt,Nt,lt,dn,z,Sn,zo,Go,Qo,Ko,Yo,Zo,Xo,Pc,Na,gh=(Na=class extends mn{constructor(t,n){super();L(this,z);L(this,he);L(this,U);L(this,kn);L(this,le);L(this,Dt);L(this,cn);L(this,at);L(this,ct);L(this,In);L(this,ln);L(this,un);L(this,Lt);L(this,Nt);L(this,lt);L(this,dn,new Set);this.options=n,O(this,he,t),O(this,ct,null),O(this,at,qo()),this.options.experimental_prefetchInRender||b(this,at).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(b(this,U).addObserver(this),Li(b(this,U),this.options)?$(this,z,Sn).call(this):this.updateResult(),$(this,z,Ko).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Jo(b(this,U),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Jo(b(this,U),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,$(this,z,Yo).call(this),$(this,z,Zo).call(this),b(this,U).removeObserver(this)}setOptions(t){const n=this.options,r=b(this,U);if(this.options=b(this,he).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof _e(this.options.enabled,b(this,U))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");$(this,z,Xo).call(this),b(this,U).setOptions(this.options),n._defaulted&&!Or(this.options,n)&&b(this,he).getQueryCache().notify({type:"observerOptionsUpdated",query:b(this,U),observer:this});const o=this.hasListeners();o&&Ni(b(this,U),r,this.options,n)&&$(this,z,Sn).call(this),this.updateResult(),o&&(b(this,U)!==r||_e(this.options.enabled,b(this,U))!==_e(n.enabled,b(this,U))||pt(this.options.staleTime,b(this,U))!==pt(n.staleTime,b(this,U)))&&$(this,z,zo).call(this);const s=$(this,z,Go).call(this);o&&(b(this,U)!==r||_e(this.options.enabled,b(this,U))!==_e(n.enabled,b(this,U))||s!==b(this,lt))&&$(this,z,Qo).call(this,s)}getOptimisticResult(t){const n=b(this,he).getQueryCache().build(b(this,he),t),r=this.createResult(n,t);return vh(this,r)&&(O(this,le,r),O(this,cn,this.options),O(this,Dt,b(this,U).state)),r}getCurrentResult(){return b(this,le)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),Reflect.get(r,o))})}trackProp(t){b(this,dn).add(t)}getCurrentQuery(){return b(this,U)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=b(this,he).defaultQueryOptions(t),r=b(this,he).getQueryCache().build(b(this,he),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return $(this,z,Sn).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),b(this,le)))}createResult(t,n){var k;const r=b(this,U),o=this.options,s=b(this,le),i=b(this,Dt),a=b(this,cn),u=t!==r?t.state:b(this,kn),{state:d}=t;let f={...d},p=!1,g;if(n._optimisticResults){const N=this.hasListeners(),V=!N&&Li(t,n),Q=N&&Ni(t,r,n,o);(V||Q)&&(f={...f,...Tc(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:w,errorUpdatedAt:h,status:y}=f;g=f.data;let C=!1;if(n.placeholderData!==void 0&&g===void 0&&y==="pending"){let N;s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(N=s.data,C=!0):N=typeof n.placeholderData=="function"?n.placeholderData((k=b(this,un))==null?void 0:k.state.data,b(this,un)):n.placeholderData,N!==void 0&&(y="success",g=Vo(s==null?void 0:s.data,N,n),p=!0)}if(n.select&&g!==void 0&&!C)if(s&&g===(i==null?void 0:i.data)&&n.select===b(this,In))g=b(this,ln);else try{O(this,In,n.select),g=n.select(g),g=Vo(s==null?void 0:s.data,g,n),O(this,ln,g),O(this,ct,null)}catch(N){O(this,ct,N)}b(this,ct)&&(w=b(this,ct),g=b(this,ln),h=Date.now(),y="error");const x=f.fetchStatus==="fetching",_=y==="pending",E=y==="error",R=_&&x,P=g!==void 0,M={status:y,fetchStatus:f.fetchStatus,isPending:_,isSuccess:y==="success",isError:E,isInitialLoading:R,isLoading:R,data:g,dataUpdatedAt:f.dataUpdatedAt,error:w,errorUpdatedAt:h,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:x,isRefetching:x&&!_,isLoadingError:E&&!P,isPaused:f.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:E&&P,isStale:xs(t,n),refetch:this.refetch,promise:b(this,at)};if(this.options.experimental_prefetchInRender){const N=H=>{M.status==="error"?H.reject(M.error):M.data!==void 0&&H.resolve(M.data)},V=()=>{const H=O(this,at,M.promise=qo());N(H)},Q=b(this,at);switch(Q.status){case"pending":t.queryHash===r.queryHash&&N(Q);break;case"fulfilled":(M.status==="error"||M.data!==Q.value)&&V();break;case"rejected":(M.status!=="error"||M.error!==Q.reason)&&V();break}}return M}updateResult(){const t=b(this,le),n=this.createResult(b(this,U),this.options);if(O(this,Dt,b(this,U).state),O(this,cn,this.options),b(this,Dt).data!==void 0&&O(this,un,b(this,U)),Or(n,t))return;O(this,le,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!b(this,dn).size)return!0;const i=new Set(s??b(this,dn));return this.options.throwOnError&&i.add("error"),Object.keys(b(this,le)).some(a=>{const c=a;return b(this,le)[c]!==t[c]&&i.has(c)})};$(this,z,Pc).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&$(this,z,Ko).call(this)}},he=new WeakMap,U=new WeakMap,kn=new WeakMap,le=new WeakMap,Dt=new WeakMap,cn=new WeakMap,at=new WeakMap,ct=new WeakMap,In=new WeakMap,ln=new WeakMap,un=new WeakMap,Lt=new WeakMap,Nt=new WeakMap,lt=new WeakMap,dn=new WeakMap,z=new WeakSet,Sn=function(t){$(this,z,Xo).call(this);let n=b(this,U).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(ue)),n},zo=function(){$(this,z,Yo).call(this);const t=pt(this.options.staleTime,b(this,U));if(It||b(this,le).isStale||!Uo(t))return;const r=wc(b(this,le).dataUpdatedAt,t)+1;O(this,Lt,setTimeout(()=>{b(this,le).isStale||this.updateResult()},r))},Go=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(b(this,U)):this.options.refetchInterval)??!1},Qo=function(t){$(this,z,Zo).call(this),O(this,lt,t),!(It||_e(this.options.enabled,b(this,U))===!1||!Uo(b(this,lt))||b(this,lt)===0)&&O(this,Nt,setInterval(()=>{(this.options.refetchIntervalInBackground||Cs.isFocused())&&$(this,z,Sn).call(this)},b(this,lt)))},Ko=function(){$(this,z,zo).call(this),$(this,z,Qo).call(this,$(this,z,Go).call(this))},Yo=function(){b(this,Lt)&&(clearTimeout(b(this,Lt)),O(this,Lt,void 0))},Zo=function(){b(this,Nt)&&(clearInterval(b(this,Nt)),O(this,Nt,void 0))},Xo=function(){const t=b(this,he).getQueryCache().build(b(this,he),this.options);if(t===b(this,U))return;const n=b(this,U);O(this,U,t),O(this,kn,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Pc=function(t){oe.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(b(this,le))}),b(this,he).getQueryCache().notify({query:b(this,U),type:"observerResultsUpdated"})})},Na);function yh(e,t){return _e(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Li(e,t){return yh(e,t)||e.state.data!==void 0&&Jo(e,t,t.refetchOnMount)}function Jo(e,t,n){if(_e(t.enabled,e)!==!1&&pt(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&xs(e,t)}return!1}function Ni(e,t,n,r){return(e!==t||_e(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&xs(e,n)}function xs(e,t){return _e(t.enabled,e)!==!1&&e.isStaleByTime(pt(t.staleTime,e))}function vh(e,t){return!Or(e.getCurrentResult(),t)}var ut,dt,pe,qe,Ge,xr,es,ka,bh=(ka=class extends mn{constructor(n,r){super();L(this,Ge);L(this,ut);L(this,dt);L(this,pe);L(this,qe);O(this,ut,n),this.setOptions(r),this.bindMethods(),$(this,Ge,xr).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=b(this,ut).defaultMutationOptions(n),Or(this.options,r)||b(this,ut).getMutationCache().notify({type:"observerOptionsUpdated",mutation:b(this,pe),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Mt(r.mutationKey)!==Mt(this.options.mutationKey)?this.reset():((o=b(this,pe))==null?void 0:o.state.status)==="pending"&&b(this,pe).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=b(this,pe))==null||n.removeObserver(this)}onMutationUpdate(n){$(this,Ge,xr).call(this),$(this,Ge,es).call(this,n)}getCurrentResult(){return b(this,dt)}reset(){var n;(n=b(this,pe))==null||n.removeObserver(this),O(this,pe,void 0),$(this,Ge,xr).call(this),$(this,Ge,es).call(this)}mutate(n,r){var o;return O(this,qe,r),(o=b(this,pe))==null||o.removeObserver(this),O(this,pe,b(this,ut).getMutationCache().build(b(this,ut),this.options)),b(this,pe).addObserver(this),b(this,pe).execute(n)}},ut=new WeakMap,dt=new WeakMap,pe=new WeakMap,qe=new WeakMap,Ge=new WeakSet,xr=function(){var r;const n=((r=b(this,pe))==null?void 0:r.state)??Ac();O(this,dt,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},es=function(n){oe.batch(()=>{var r,o,s,i,a,c,u,d;if(b(this,qe)&&this.hasListeners()){const f=b(this,dt).variables,p=b(this,dt).context;(n==null?void 0:n.type)==="success"?((o=(r=b(this,qe)).onSuccess)==null||o.call(r,n.data,f,p),(i=(s=b(this,qe)).onSettled)==null||i.call(s,n.data,null,f,p)):(n==null?void 0:n.type)==="error"&&((c=(a=b(this,qe)).onError)==null||c.call(a,n.error,f,p),(d=(u=b(this,qe)).onSettled)==null||d.call(u,void 0,n.error,f,p))}this.listeners.forEach(f=>{f(b(this,dt))})})},ka),Oc=m.createContext(void 0),Es=e=>{const t=m.useContext(Oc);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},wh=({client:e,children:t})=>(m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),l.jsx(Oc.Provider,{value:e,children:t})),jc=m.createContext(!1),Ch=()=>m.useContext(jc);jc.Provider;function xh(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Eh=m.createContext(xh()),Sh=()=>m.useContext(Eh),_h=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Rh=e=>{m.useEffect(()=>{e.clearReset()},[e])},Th=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||xc(n,[e.error,r])),Ah=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Ph=(e,t)=>e.isLoading&&e.isFetching&&!t,Oh=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,ki=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function jh(e,t,n){var f,p,g,w,h;if(typeof e!="object"||Array.isArray(e))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Ch(),o=Sh(),s=Es(),i=s.defaultQueryOptions(e);(p=(f=s.getDefaultOptions().queries)==null?void 0:f._experimental_beforeQuery)==null||p.call(f,i),i.queryFn||console.error(`[${i.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`),i._optimisticResults=r?"isRestoring":"optimistic",Ah(i),_h(i,o),Rh(o);const a=!s.getQueryCache().get(i.queryHash),[c]=m.useState(()=>new t(s,i)),u=c.getOptimisticResult(i),d=!r&&e.subscribed!==!1;if(m.useSyncExternalStore(m.useCallback(y=>{const C=d?c.subscribe(oe.batchCalls(y)):ue;return c.updateResult(),C},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),m.useEffect(()=>{c.setOptions(i)},[i,c]),Oh(i,u))throw ki(i,c,o);if(Th({result:u,errorResetBoundary:o,throwOnError:i.throwOnError,query:s.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw u.error;if((w=(g=s.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||w.call(g,i,u),i.experimental_prefetchInRender&&!It&&Ph(u,r)){const y=a?ki(i,c,o):(h=s.getQueryCache().get(i.queryHash))==null?void 0:h.promise;y==null||y.catch(ue).finally(()=>{c.updateResult()})}return i.notifyOnChangeProps?u:c.trackResult(u)}function Ii(e,t){return jh(e,gh)}function nr(e,t){const n=Es(),[r]=m.useState(()=>new bh(n,e));m.useEffect(()=>{r.setOptions(e)},[r,e]);const o=m.useSyncExternalStore(m.useCallback(i=>r.subscribe(oe.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=m.useCallback((i,a)=>{r.mutate(i,a).catch(ue)},[r]);if(o.error&&xc(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}const rr={STALE_TIME:1e3*60*5,GC_TIME:1e3*60*10,RETRY_COUNT:1,RETRY_DELAY:1e3},Mi={refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:rr.STALE_TIME,gcTime:rr.GC_TIME,retry:rr.RETRY_COUNT,retryDelay:rr.RETRY_DELAY,enable:!0},or=e=>e instanceof Error?e.message:String(e),Dc=(e,t,n)=>{const r=Es(),{notify:o}=bs(),{createFn:s,readFn:i,readByIdFn:a,updateFn:c,deleteFn:u,partialUpdateFn:d}=n,f=()=>{r.invalidateQueries({queryKey:[e]})},p=(E,R,P,A)=>o(A!=null&&A.overrideSuccessMessage?A==null?void 0:A.overrideSuccessMessage(E,R):P,"success"),g=(E,R,P,A)=>o(A!=null&&A.overrideErrorMessage?A==null?void 0:A.overrideErrorMessage(E,R):P,"error");return{useCreate:E=>nr({mutationFn:R=>s(R),onSuccess:R=>{f(),p(t,R,`${t} created successfully`,E)},onError:R=>{g(t,R,`Error creating ${t}: ${or(R)}`,E)}}),useReadQuery:E=>Ii({queryKey:[e],queryFn:i,...Mi,...E}),useReadByIdQuery:(E,R)=>Ii({queryKey:[e,E],queryFn:()=>a(E),...Mi,enabled:!!E,...R}),useUpdate:E=>nr({mutationFn:({id:R,data:P})=>c(R,P),onSuccess:R=>{f(),p(t,R,`${t} updated successfully`,E)},onError:R=>{g(t,R,`Error updating ${t}: ${or(R)}`,E)}}),usePartialUpdate:E=>d&&nr({mutationFn:({id:R,data:P})=>d(R,P),onSuccess:R=>{f(),p(t,R,`${t} updated successfully`,E)},onError:R=>{g(t,R,`Error updating ${t}: ${or(R)}`,E)}}),useDelete:E=>nr({mutationFn:R=>u(R),onSuccess:()=>{f(),p(t,null,`${t} deleted successfully`,E)},onError:R=>{g(t,R,`Error deleting ${t}: ${or(R)}`,E)}}),invalidateQueries:f}},Dh=(e,t)=>Dc(e,t,{createFn:n=>fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).then(r=>r.json()),deleteFn:n=>fetch(`${e}/${n}`,{method:"DELETE"}).then(r=>{if(!r.ok)throw new Error(`Error deleting: ${r.status}`)}),readByIdFn:n=>fetch(`${e}/${n}`).then(r=>r.json()),readFn:()=>fetch(e).then(n=>n.json()),updateFn:(n,r)=>fetch(`${e}/${n}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(o=>o.json()),partialUpdateFn:(n,r)=>fetch(`${e}/${n}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(o=>o.json())}),Lh={SINGLE_TENANT:"single-tenant"},Nh={COOKIE:"cookie"},vo="tenant",$i="tenant",Fi="tenant",kh=Lh.SINGLE_TENANT,Ih=Nh.COOKIE,Mh={mode:kh,clientSideMode:Ih,tenantIDPProvisioningStrategy:"none"};class $h{setTenant(t,n){const r=new URL(window.location.href);r.searchParams.set($i,t.name),window.location.href=r.toString()}getCurrentTenantName(){const t=new URL(window.location.href);return new URLSearchParams(t.search).get($i)}}class Fh{setTenant(t,n){sessionStorage.setItem(Fi,t.name),window.location.reload()}getCurrentTenantName(){return sessionStorage.getItem(Fi)}}/*! js-cookie v3.0.5 | MIT */function sr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var Bh={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function ts(e,t){function n(o,s,i){if(!(typeof document>"u")){i=sr({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in i)i[c]&&(a+="; "+c,i[c]!==!0&&(a+="="+i[c].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+a}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],i={},a=0;a<s.length;a++){var c=s[a].split("="),u=c.slice(1).join("=");try{var d=decodeURIComponent(c[0]);if(i[d]=e.read(u,d),o===d)break}catch{}}return o?i[o]:i}}return Object.create({set:n,get:r,remove:function(o,s){n(o,"",sr({},s,{expires:-1}))},withAttributes:function(o){return ts(this.converter,sr({},this.attributes,o))},withConverter:function(o){return ts(sr({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var bo=ts(Bh,{path:"/"});class Uh{setTenant(t,n){t?bo.set(vo,t.name):bo.remove(vo),window.location.reload()}getCurrentTenantName(){return bo.get(vo)}}class Wh{extractSubdomain(t){if(t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t))return"";const n=t.split(".");if(n.length<2||n.length===2||n[0]==="www"&&n.length===3)return"";const o=(n[0]==="www"?n.slice(1):n).slice(0,-2);return o.length>0?o.join("."):""}getBaseDomain(t){const n=t.split(".");return t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t)||n.length<=2?t:n.slice(-2).join(".")}setTenant(t,n){var u;const r=(u=n.urlPatterns)==null?void 0:u.find(d=>d.patternType==="subdomain"&&d.tenantId===t.id&&d.isActive);if(!r)throw new Error(`No active subdomain pattern found for tenant '${t.name}'`);const o=new URL(window.location.href),s=r.patternValue,i=o.hostname,a=this.getBaseDomain(i),c=s?`${s}.${a}`:a;o.hostname=c,window.location.href=o.toString()}getCurrentTenantName(){const t=window.location.hostname;return this.extractSubdomain(t)||null}}const Bi={queryParams:new $h,sessionStorage:new Fh,cookie:new Uh,subdomain:new Wh},Hh=e=>{const t=Bi[e.clientSideMode];if(!t)throw new Error(`Client side tenant mode '${e.clientSideMode}' is not supported ${JSON.stringify({strategies:Bi},null,2)}`);return t},Vh=(e,t,n)=>{const r=t.find(s=>s.name===n);if(!r)throw Error("No tenant permission");return Hh(e).setTenant(r,e),r},qh=()=>{const[e,t]=Mn(),{tenants:n=[],currentTenant:r,tenantConfig:o=Mh}=e,s=S.useCallback(i=>{const a=Vh(o,n,i);t({...e,currentTenant:a})},[o,e]);return{tenants:n,currentTenant:r,tenantConfig:o,selectTenant:s}};function zh(e){if(!e.ok)throw console.error(e),new Error(e.statusText)}async function ir(e,t,n,r){const o=await e(`/user-states/${encodeURIComponent(t)}/${encodeURIComponent(n)}`,r);return zh(o),o}class ar{static async get(t,n,r){const s=await ir(t,n,r,{method:"GET",headers:{"Content-Type":"application/json"}});return s.status===204?null:await s.json()}static async create(t,n,r,o){const s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await ir(t,n,r,s)).json()}static async update(t,n,r,o){const s={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await ir(t,n,r,s)).json()}static async delete(t,n,r){return await ir(t,n,r,{method:"DELETE",headers:{"Content-Type":"application/json"}}),null}}const Gh=e=>{const t=vs("@bluealba/pae-nestjs-gateway-service"),n=oc();if(!n)throw new Error("You must call the useUserState hook within a PAE application.");const[r,o]=S.useState(null),[s,i]=S.useState(!1),[a,c]=S.useState(!1),[u,d]=S.useState(null),f=(x,_)=>S.useCallback(async({newValue:E,shouldThrowError:R}={})=>{try{c(!0),d(null);const P=await x(t,n,e,E);return o(P),P?P.value:null}catch(P){if(d(P==null?void 0:P.message),console.error(`Failed to ${_} ${e}:`,P),R)throw P;return null}finally{c(!1)}},[t,n,e]),p=f(ar.get,"fetch"),g=f(ar.create,"create"),w=f(ar.update,"update"),h=f(ar.delete,"delete"),y=S.useCallback(async()=>{try{await p()}finally{i(!0)}},[p]);S.useEffect(()=>{y()},[y]);const C=S.useCallback(async(x,_=!1)=>r==null?await g({newValue:x,shouldThrowError:_}):await w({newValue:x,shouldThrowError:_}),[r,g,w]);return{value:r?r.value:null,hasFetched:s,loading:a,error:u,setValue:C,createValue:g,updateValue:w,deleteValue:h}},Lc="__PAE_EXTENSION_POINT_REACT_CONTENT_EMPTY__",Qh=({module:e,point:t,children:n})=>(ac(e,t,n??Lc),null),Nc=({name:e,children:t,...n})=>{const r=ic(e);if(r===Lc)return null;if(!r)return l.jsx(l.Fragment,{children:t??null});if(Kh(r)){const o=r;return l.jsx(o,{...n})}else return r},Kh=e=>typeof e=="function",Yh=(e,t)=>{const n=r=>(t=t||e.displayName||e.name||"?",l.jsx(Nc,{name:t,...r,children:l.jsx(e,{...r})}));return n.displayName=`extensionPoint(${t})`,n},Ui="single-spa:app-change";function Zh(){const[e,t]=S.useState(Wi());return S.useEffect(()=>{const n=()=>{t(Wi())};return window.addEventListener(Ui,n),()=>{window.removeEventListener(Ui,n)}},[]),e}function Wi(){return yr.getAppNames().reduce((t,n)=>(yr.getAppStatus(n)?t[n]=yr.getAppStatus(n):t[n]="NOT_LOADED",t),{})}function Xh(e){const n=Zh()[e]??"LOAD_ERROR";return{statusName:n,isLoading:n==="LOADING_SOURCE_CODE"||n==="BOOTSTRAPPING"||n==="MOUNTING",isMounted:n==="MOUNTED",isBroken:n==="SKIP_BECAUSE_BROKEN"||n==="LOAD_ERROR"}}const kc=({appName:e})=>l.jsx("div",{children:l.jsxs("p",{children:["Loading ",e,"..."]})});kc.displayName="BaseLoading";const Ic=({appName:e})=>l.jsxs("div",{children:[l.jsx("p",{children:"Something went wrong..."}),l.jsxs("p",{children:["Failed to load ",e]})]});Ic.displayName="BaseError";const Jh={display:"flex",flexDirection:"column",flex:1},Mc=S.forwardRef((e,t)=>l.jsx("div",{ref:t,style:Jh,...e}));Mc.displayName="BaseContainer";const ep="pae-app:",$c=S.forwardRef(({appName:e,LoadingComponent:t=kc,ErrorComponent:n=Ic,ContainerComponent:r=Mc,...o},s)=>{const i=Xh(e);return l.jsxs(r,{ref:s,...o,id:`${ep}${e}`,children:[i.isLoading&&l.jsx(t,{appName:e}),i.isBroken&&l.jsx(n,{appName:e})]})});$c.displayName="ModulePlaceHolder";const Ss=({operations:e,children:t,forbiddenContent:n})=>{var o;const{hasAccess:r}=Hr();if(!r(...e)){if(!n)return null;if(typeof n=="function")if((o=n==null?void 0:n.prototype)!=null&&o.isReactComponent){const s=n;return l.jsx(s,{operations:e})}else return n({operations:e});return S.isValidElement(n)?n:null}return t};Ss.displayName="Authorized";const tp=({eventName:e,listener:t})=>(cc(e,t),null),np=()=>l.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:l.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M8.737 8.737a21.49 21.49 0 0 1 3.308-2.724m0 0c3.063-2.026 5.99-2.641 7.331-1.3 1.827 1.828.026 6.591-4.023 10.64-4.049 4.049-8.812 5.85-10.64 4.023-1.33-1.33-.736-4.218 1.249-7.253m6.083-6.11c-3.063-2.026-5.99-2.641-7.331-1.3-1.827 1.828-.026 6.591 4.023 10.64m3.308-9.34a21.497 21.497 0 0 1 3.308 2.724m2.775 3.386c1.985 3.035 2.579 5.923 1.248 7.253-1.336 1.337-4.245.732-7.295-1.275M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})}),Fc=({applicationName:e})=>{const t=nc(e);if(t)if(typeof t=="function"){const n=t;return l.jsx(n,{})}else return t;return l.jsx(np,{})};Fc.displayName="ApplicationIcon";const rp=(e,t)=>{const n=r=>l.jsx(Ss,{operations:t,children:l.jsx(e,{...r})});return n.displayName="Authorized",n};function Bc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Bc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function D(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Bc(e))&&(r&&(r+=" "),r+=t);return r}const op="spinner__fakUN",sp="spinner-rotation__wUmPV",ip="button__8FA9H",ap="button--contained-primary__stkTx",cp="button--outlined-primary__KZ1ww",lp="button--text-primary__GLTfm",up="button--contained-danger__L9ehT",dp="button--outlined-danger__eoYLd",fp="button--text-danger__Sw-ha",hp="icon__--umH",cr={spinner:op,"spinner-rotation":"spinner-rotation__wUmPV",spinnerRotation:sp,button:ip,"button--contained-primary":"button--contained-primary__stkTx",buttonContainedPrimary:ap,"button--outlined-primary":"button--outlined-primary__KZ1ww",buttonOutlinedPrimary:cp,"button--text-primary":"button--text-primary__GLTfm",buttonTextPrimary:lp,"button--contained-danger":"button--contained-danger__L9ehT",buttonContainedDanger:up,"button--outlined-danger":"button--outlined-danger__eoYLd",buttonOutlinedDanger:dp,"button--text-danger":"button--text-danger__Sw-ha",buttonTextDanger:fp,icon:hp},Lr=S.forwardRef(({variant:e="contained",colorScheme:t="primary",loading:n=!1,IconComponent:r,className:o,children:s,...i},a)=>{const c=D(cr.button,cr[`button--${e}-${t}`],o);return l.jsxs("button",{ref:a,className:c,...i,children:[n?l.jsx("div",{className:cr.spinner}):r&&l.jsx(r,{className:cr.icon}),s]})});Lr.displayName="Button";const pp="Badges__5jpum",mp="Badges__5jpum",gp="Badge__95MWM",yp="Badge__95MWM",vp="Badge--primary__Rx-bS",bp="Badge--secondary__d92bT",wp="Badge--success__Kdo98",Cp="Badge--warning__bf-Nn",xp="Badge--danger__HTj39",Ep="Badge--small__y93Pj",Sp="Badge--regular__aT5AL",_p="Badge--large__wORCH",Er={Badges:pp,badges:mp,Badge:gp,badge:yp,"Badge--primary":"Badge--primary__Rx-bS",badgePrimary:vp,"Badge--secondary":"Badge--secondary__d92bT",badgeSecondary:bp,"Badge--success":"Badge--success__Kdo98",badgeSuccess:wp,"Badge--warning":"Badge--warning__bf-Nn",badgeWarning:Cp,"Badge--danger":"Badge--danger__HTj39",badgeDanger:xp,"Badge--small":"Badge--small__y93Pj",badgeSmall:Ep,"Badge--regular":"Badge--regular__aT5AL",badgeRegular:Sp,"Badge--large":"Badge--large__wORCH",badgeLarge:_p},ns={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};for(const e in ns)Object.freeze(ns[e]);const Hi=Object.freeze(ns);var Vi={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function Rp(e){var d,f;var t,n=[],r=1,o;if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),Hi[e])n=Hi[e].slice(),o="rgb";else if(e==="transparent")r=0,o="rgb",n=[0,0,0];else if(e[0]==="#"){var s=e.slice(1),i=s.length,a=i<=4;r=1,a?(n=[parseInt(s[0]+s[0],16),parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16)],i===4&&(r=parseInt(s[3]+s[3],16)/255)):(n=[parseInt(s[0]+s[1],16),parseInt(s[2]+s[3],16),parseInt(s[4]+s[5],16)],i===8&&(r=parseInt(s[6]+s[7],16)/255)),n[0]||(n[0]=0),n[1]||(n[1]=0),n[2]||(n[2]=0),o="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var c=t[1];o=c.replace(/a$/,"");var u=o==="cmyk"?4:o==="gray"?1:3;n=t[2].trim().split(/\s*[,\/]\s*|\s+/),o==="color"&&(o=n.shift()),n=n.map(function(p,g){if(p[p.length-1]==="%")return p=parseFloat(p)/100,g===3?p:o==="rgb"?p*255:o[0]==="h"||o[0]==="l"&&!g?p*100:o==="lab"?p*125:o==="lch"?g<2?p*150:p*360:o[0]==="o"&&!g?p:o==="oklab"?p*.4:o==="oklch"?g<2?p*.4:p*360:p;if(o[g]==="h"||g===2&&o[o.length-1]==="h"){if(Vi[p]!==void 0)return Vi[p];if(p.endsWith("deg"))return parseFloat(p);if(p.endsWith("turn"))return parseFloat(p)*360;if(p.endsWith("grad"))return parseFloat(p)*360/400;if(p.endsWith("rad"))return parseFloat(p)*180/Math.PI}return p==="none"?0:parseFloat(p)}),r=n.length>u?n.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(n=e.match(/([0-9]+)/g).map(function(p){return parseFloat(p)}),o=((f=(d=e.match(/([a-z])/ig))==null?void 0:d.join(""))==null?void 0:f.toLowerCase())||"rgb");return{space:o,values:n,alpha:r}}const Tp=(e,t)=>{const{space:n,values:r}=Rp(e);return n[0]==="h"?`${n}a(${r[0]}, ${r[1]}%, ${r[2]}%, ${t})`:`${n}a(${r}, ${t})`},_s=S.forwardRef(({children:e,color:t,className:n,customColor:r,size:o="small",style:s,...i},a)=>{const c=r?{color:r,background:Tp(r,.1)}:{},u=D(Er.Badge,Er[`Badge--${o}`],{[Er[`Badge--${t}`]]:!!t},n);return l.jsx("span",{ref:a,className:u,style:{...s,...c},...i,children:e})});_s.displayName="Badge";const Rs=S.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Er.Badges,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});Rs.displayName="Badges";const Uc=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...s})=>l.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...s,children:[l.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),l.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"})]}),Wc=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...s})=>l.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...s,children:[l.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),l.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}),l.jsx("path",{d:"m9 12 2 2 4-4"})]}),Ap="CopyToClipboardButton__2Nd2m",Pp={CopyToClipboardButton:Ap},Op=({content:e})=>{const[t,n]=jp(),{notify:r}=bs(),o=t?Wc:Uc,s=S.useCallback(async()=>{await n(e)&&r("Copied to the Clipboard !","success")},[e,r]);return l.jsx(o,{className:Pp.CopyToClipboardButton,size:18,onClick:s})},jp=()=>{const[e,t]=S.useState(!1);return[e,async r=>{try{return await navigator.clipboard.writeText(r),t(!0),setTimeout(()=>t(!1),2e3),!0}catch(o){return console.error("Failed to copy text: ",o),!1}}]},Dp="FieldGroup__Q2JCV",Lp="FieldGroup__Q2JCV",Np="FieldGroup--horizontal__kpfL1",kp="FieldGroup--vertical__FLo-Q",qi={FieldGroup:Dp,fieldGroup:Lp,"FieldGroup--horizontal":"FieldGroup--horizontal__kpfL1",fieldGroupHorizontal:Np,"FieldGroup--vertical":"FieldGroup--vertical__FLo-Q",fieldGroupVertical:kp},Hc=S.forwardRef(({children:e,className:t,orientation:n="vertical",...r},o)=>{const s=D(qi.FieldGroup,qi[`FieldGroup--${n}`],t);return l.jsx("div",{ref:o,className:s,...r,children:e})});Hc.displayName="FieldGroup";const Ip="Input__uS0sb",zi={Input:Ip,Error:"Error__-DQpw"},Qr=S.forwardRef(({className:e,error:t,...n},r)=>{const o=D(zi.Input,t&&zi.Error,e);return l.jsx("input",{ref:r,className:o,...n})});Qr.displayName="Input";const Mp={Error:"Error__N4OP5"},Vc=S.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Mp.Error,t);return l.jsx("span",{ref:r,className:o,...n,children:e})});Vc.displayName="InputError";const $p="Label__VYUvW",Gi={Label:$p,Error:"Error__Eu6DI"},qc=S.forwardRef(({children:e,className:t,error:n,...r},o)=>{const s=D(Gi.Label,n&&Gi.Error,t);return l.jsx("label",{ref:o,className:s,...r,children:e})});qc.displayName="Label";const Fp="Select__giqpe",Bp="Chevron__YvhBd",rs={Select:Fp,Chevron:Bp},zc=S.forwardRef(({children:e,className:t,...n},r)=>{const o=D(rs.Option,t);return l.jsx("option",{ref:r,className:o,...n,children:e})});zc.displayName="Option";const Ts=S.forwardRef(({children:e,className:t,...n},r)=>{const o=D(rs.Select,t);return l.jsxs("div",{className:o,children:[l.jsx("select",{ref:r,...n,children:e}),l.jsx("div",{className:rs.Chevron,children:l.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M4 6L8 10L12 6",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})})]})});Ts.displayName="Select";Ts.Option=zc;const Up="TextArea__pa-A0",Wp={TextArea:Up},Gc=S.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Wp.TextArea,t);return l.jsx("textarea",{ref:r,className:o,...n,children:e})});Gc.displayName="TextArea";const Hp="SearchInput__4OFyE",Vp="SearchIcon__YgnQy",qp="ClearIcon__ukRVr",zp="SearchInput__ClearIcon__uzVoc",Gp="SearchInput__SearchIcon__zoDG4",xn={SearchInput:Hp,SearchIcon:Vp,ClearIcon:qp,SearchInput__ClearIcon:zp,SearchInput__SearchIcon:Gp},As=S.forwardRef(({className:e,placeholder:t="Type to search...",showClearButton:n=!1,showSearchIcon:r=!0,onClear:o,...s},i)=>{const a=D(xn.SearchInput,n&&xn.SearchInput__ClearIcon,r&&xn.SearchInput__SearchIcon,e),c=D(xn.SearchIcon),u=D(xn.ClearIcon);return l.jsxs("div",{className:a,children:[l.jsx(Qr,{ref:i,type:"text",placeholder:t,...s}),r&&l.jsx("svg",{className:c,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M13 13L10.6667 10.6667M12.3333 6.66667C12.3333 9.79628 9.79628 12.3333 6.66667 12.3333C3.53705 12.3333 1 9.79628 1 6.66667C1 3.53705 3.53705 1 6.66667 1C9.79628 1 12.3333 3.53705 12.3333 6.66667Z",stroke:"#A4A4A4",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),n&&l.jsx("svg",{className:u,width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:o,children:l.jsx("path",{d:"M7.33334 0.666748L0.666672 7.33341M0.666672 0.666748L7.33334 7.33341",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})]})});As.displayName="SearchInput";const Qp="SearchAutocomplete__vR9Hk",Kp="AutocompleteItem__YIm7R",Yp="AutocompleteHighlighter__LAFTV",Zp="AutocompleteHighlighter__match__Wy1o2",Xp="DropdownList__-fHIk",Jp="AutocompleteItemDescription__4QYN5",kt={SearchAutocomplete:Qp,AutocompleteItem:Kp,"AutocompleteItem--canBeSelected":"AutocompleteItem--canBeSelected__jxk4z",AutocompleteHighlighter:Yp,AutocompleteHighlighter__match:Zp,DropdownList:Xp,AutocompleteItemDescription:Jp},e1="DropdownList__QTXXX",t1="DropdownList__QTXXX",n1="DropdownList--closed__pdL1Z",r1="DropdownList--open__opzc9",o1="DropdownList--left__xSwXR",Rt={DropdownList:e1,dropdownList:t1,"DropdownList--closed":"DropdownList--closed__pdL1Z",dropdownListClosed:n1,"DropdownList--open":"DropdownList--open__opzc9",dropdownListOpen:r1,"DropdownList--left":"DropdownList--left__xSwXR",dropdownListLeft:o1},Kr=S.forwardRef(({children:e,className:t,open:n,align:r="right",...o},s)=>{const i=D(Rt.DropdownList,{[Rt["DropdownList--open"]]:n,[Rt["DropdownList--closed"]]:!n,[Rt["DropdownList--left"]]:r==="left"},t);return l.jsx("div",{ref:s,className:i,...o,children:e})});Kr.displayName="DropdownList";const _n=S.forwardRef(({children:e,className:t,canBeSelected:n=!1,...r},o)=>{const s=D(kt.AutocompleteItem,{[kt["AutocompleteItem--canBeSelected"]]:n},t);return l.jsx("div",{ref:o,className:s,role:n?"option":void 0,...r,children:e})});_n.displayName="AutocompleteItem";const s1=300,i1={query:"",suggestions:[],loading:!1,error:null},a1=({suggestionFetcher:e,canAdd:t})=>{const[n,r]=S.useState(i1);return S.useEffect(()=>{r(a=>({...a,loading:!0}));const s=async()=>{try{const a=await e(n.query);t&&!a.some(c=>c.value.toLowerCase()===n.query.toLowerCase())&&a.push({label:`Add "${n.query}"`,value:n.query,isNew:!0}),r(c=>({...c,suggestions:a,loading:!1}))}catch(a){r(c=>({...c,suggestions:[],error:a,loading:!1}))}},i=setTimeout(()=>{s()},s1);return()=>{clearTimeout(i)}},[n.query]),{...n,setQuery:s=>{r(i=>({...i,query:s}))}}},Qc=S.forwardRef(({text:e,query:t,className:n,...r},o)=>{const s=D(kt.AutocompleteHighlighter,n),i=(a,c)=>{const u=a.toLowerCase().indexOf(c.toLowerCase());if(u===-1||c.length===0)return a;const d=a.slice(0,u),f=a.slice(u,u+c.length),p=a.slice(u+c.length);return l.jsxs(l.Fragment,{children:[d,l.jsx("span",{className:kt.AutocompleteHighlighter__match,children:f}),i(p,c)]})};return l.jsx("div",{ref:o,className:s,...r,children:i(e,t)})});Qc.displayName="AutocompleteHighlighter";const c1=5,Kc=S.forwardRef(({children:e,className:t,canAdd:n,maxSuggestionsShown:r=c1,searchInputProps:o,keepSelectedOption:s,suggestionFetcher:i,onAccept:a,...c},u)=>{const{query:d,setQuery:f,suggestions:p,loading:g}=a1({suggestionFetcher:i,canAdd:n}),[w,h]=S.useState(null),y=d.length>0,C=A=>{f(A.target.value)},x=A=>{a==null||a(A),s?(h(A),f(A.value)):f("")},_=()=>{a==null||a(null),h(null),f("")},E=D(kt.SearchAutocomplete,t),R=p.slice(0,r),P=p.slice(r);return l.jsxs("div",{ref:u,className:E,...c,children:[l.jsx(As,{...o,value:d,onChange:C,showClearButton:!!w,onClear:_}),e,l.jsxs(Kr,{className:kt.DropdownList,open:y&&!w,role:"listbox","aria-label":"Suggestions",children:[g?l.jsx(_n,{children:"Loading..."}):R.map(A=>l.jsxs(_n,{canBeSelected:!0,onClick:x.bind(null,A),children:[l.jsx(Qc,{text:A.label,query:d}),A.description&&l.jsx("span",{className:kt.AutocompleteItemDescription,children:A.description})]},A.value)),!g&&P.length>0&&l.jsxs(_n,{children:[P.length," more results"]}),y&&p.length===0&&!g&&l.jsx(_n,{children:"No results found"})]})]})});Kc.displayName="SearchAutocomplete";const ft=e=>{let t=null,n=null;return S.Children.forEach(e.children,r=>{const o=r.props.condition;o===void 0?n=r:!t&&o===!0&&(t=r)}),l.jsx(l.Fragment,{children:t||n})};ft.displayName="Show";ft.When=({condition:e,children:t})=>l.jsx(l.Fragment,{children:e&&t});ft.Else=({render:e,children:t})=>l.jsx(l.Fragment,{children:e||t});function Qi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Yr(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Qi(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Qi(e[o],null)}}}}function Pe(...e){return m.useCallback(Yr(...e),e)}var l1=Symbol.for("react.lazy"),Nr=m[" use ".trim().toString()];function u1(e){return typeof e=="object"&&e!==null&&"then"in e}function Yc(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===l1&&"_payload"in e&&u1(e._payload)}function d1(e){const t=h1(e),n=m.forwardRef((r,o)=>{let{children:s,...i}=r;Yc(s)&&typeof Nr=="function"&&(s=Nr(s._payload));const a=m.Children.toArray(s),c=a.find(m1);if(c){const u=c.props.children,d=a.map(f=>f===c?m.Children.count(u)>1?m.Children.only(null):m.isValidElement(u)?u.props.children:null:f);return l.jsx(t,{...i,ref:o,children:m.isValidElement(u)?m.cloneElement(u,void 0,d):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var f1=d1("Slot");function h1(e){const t=m.forwardRef((n,r)=>{let{children:o,...s}=n;if(Yc(o)&&typeof Nr=="function"&&(o=Nr(o._payload)),m.isValidElement(o)){const i=y1(o),a=g1(s,o.props);return o.type!==m.Fragment&&(a.ref=r?Yr(r,i):i),m.cloneElement(o,a)}return m.Children.count(o)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var p1=Symbol("radix.slottable");function m1(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===p1}function g1(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function y1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const v1="SkeletonListContainer__MKJhE",b1="Skeleton__Ovpiw",Zc={SkeletonListContainer:v1,Skeleton:b1},Zr=S.forwardRef((e,t)=>{const{children:n,className:r,loading:o,height:s=48,width:i,borderRadius:a,style:c,...u}=e;if(!o&&n)return n;const d=S.isValidElement(n)?f1:"span";return l.jsx(d,{ref:t,"aria-hidden":!0,className:D(Zc.Skeleton,r),style:{...c,width:i,minWidth:i,height:s,borderRadius:a},"data-inline-skeleton":S.isValidElement(n)?void 0:!0,tabIndex:-1,...u,children:n})});Zr.displayName="Skeleton";const Xc=e=>{const{numberOfItems:t,itemsGap:n=2,itemProps:r}=e,o=Array.from({length:t},(s,i)=>i+1);return l.jsx("div",{className:D(Zc.SkeletonListContainer),style:{gap:n},children:o.map(s=>l.jsx(Zr,{loading:!0,...r},s))})};Xc.displayName="SkeletonList";function me(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function w1(e,t){const n=m.createContext(t),r=s=>{const{children:i,...a}=s,c=m.useMemo(()=>a,Object.values(a));return l.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(s){const i=m.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Ps(e,t=[]){let n=[];function r(s,i){const a=m.createContext(i),c=n.length;n=[...n,i];const u=f=>{var C;const{scope:p,children:g,...w}=f,h=((C=p==null?void 0:p[e])==null?void 0:C[c])||a,y=m.useMemo(()=>w,Object.values(w));return l.jsx(h.Provider,{value:y,children:g})};u.displayName=s+"Provider";function d(f,p){var h;const g=((h=p==null?void 0:p[e])==null?void 0:h[c])||a,w=m.useContext(g);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,d]}const o=()=>{const s=n.map(i=>m.createContext(i));return function(a){const c=(a==null?void 0:a[e])||s;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,C1(o,...t)]}function C1(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:c,scopeName:u})=>{const f=c(s)[`__scope${u}`];return{...a,...f}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function x1(e){const t=E1(e),n=m.forwardRef((r,o)=>{const{children:s,...i}=r,a=m.Children.toArray(s),c=a.find(_1);if(c){const u=c.props.children,d=a.map(f=>f===c?m.Children.count(u)>1?m.Children.only(null):m.isValidElement(u)?u.props.children:null:f);return l.jsx(t,{...i,ref:o,children:m.isValidElement(u)?m.cloneElement(u,void 0,d):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function E1(e){const t=m.forwardRef((n,r)=>{const{children:o,...s}=n;if(m.isValidElement(o)){const i=T1(o),a=R1(s,o.props);return o.type!==m.Fragment&&(a.ref=r?Yr(r,i):i),m.cloneElement(o,a)}return m.Children.count(o)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var S1=Symbol("radix.slottable");function _1(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===S1}function R1(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function T1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var A1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ge=A1.reduce((e,t)=>{const n=x1(`Primitive.${t}`),r=m.forwardRef((o,s)=>{const{asChild:i,...a}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(c,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function P1(e,t){e&&$a.flushSync(()=>e.dispatchEvent(t))}function fn(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function O1(e,t=globalThis==null?void 0:globalThis.document){const n=fn(e);m.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var j1="DismissableLayer",os="dismissableLayer.update",D1="dismissableLayer.pointerDownOutside",L1="dismissableLayer.focusOutside",Ki,Jc=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Os=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...c}=e,u=m.useContext(Jc),[d,f]=m.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=m.useState({}),w=Pe(t,A=>f(A)),h=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),C=h.indexOf(y),x=d?h.indexOf(d):-1,_=u.layersWithOutsidePointerEventsDisabled.size>0,E=x>=C,R=I1(A=>{const M=A.target,k=[...u.branches].some(N=>N.contains(M));!E||k||(o==null||o(A),i==null||i(A),A.defaultPrevented||a==null||a())},p),P=M1(A=>{const M=A.target;[...u.branches].some(N=>N.contains(M))||(s==null||s(A),i==null||i(A),A.defaultPrevented||a==null||a())},p);return O1(A=>{x===u.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},p),m.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ki=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Yi(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Ki)}},[d,p,n,u]),m.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Yi())},[d,u]),m.useEffect(()=>{const A=()=>g({});return document.addEventListener(os,A),()=>document.removeEventListener(os,A)},[]),l.jsx(ge.div,{...c,ref:w,style:{pointerEvents:_?E?"auto":"none":void 0,...e.style},onFocusCapture:me(e.onFocusCapture,P.onFocusCapture),onBlurCapture:me(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:me(e.onPointerDownCapture,R.onPointerDownCapture)})});Os.displayName=j1;var N1="DismissableLayerBranch",k1=m.forwardRef((e,t)=>{const n=m.useContext(Jc),r=m.useRef(null),o=Pe(t,r);return m.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsx(ge.div,{...e,ref:o})});k1.displayName=N1;function I1(e,t=globalThis==null?void 0:globalThis.document){const n=fn(e),r=m.useRef(!1),o=m.useRef(()=>{});return m.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let c=function(){el(D1,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function M1(e,t=globalThis==null?void 0:globalThis.document){const n=fn(e),r=m.useRef(!1);return m.useEffect(()=>{const o=s=>{s.target&&!r.current&&el(L1,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Yi(){const e=new CustomEvent(os);document.dispatchEvent(e)}function el(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?P1(o,s):o.dispatchEvent(s)}var mt=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},$1=m[" useId ".trim().toString()]||(()=>{}),F1=0;function Sr(e){const[t,n]=m.useState($1());return mt(()=>{n(r=>r??String(F1++))},[e]),e||(t?`radix-${t}`:"")}const B1=["top","right","bottom","left"],gt=Math.min,ve=Math.max,kr=Math.round,lr=Math.floor,Me=e=>({x:e,y:e}),U1={left:"right",right:"left",bottom:"top",top:"bottom"},W1={start:"end",end:"start"};function ss(e,t,n){return ve(e,gt(t,n))}function Ke(e,t){return typeof e=="function"?e(t):e}function Ye(e){return e.split("-")[0]}function gn(e){return e.split("-")[1]}function js(e){return e==="x"?"y":"x"}function Ds(e){return e==="y"?"height":"width"}const H1=new Set(["top","bottom"]);function Ie(e){return H1.has(Ye(e))?"y":"x"}function Ls(e){return js(Ie(e))}function V1(e,t,n){n===void 0&&(n=!1);const r=gn(e),o=Ls(e),s=Ds(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Ir(i)),[i,Ir(i)]}function q1(e){const t=Ir(e);return[is(e),t,is(t)]}function is(e){return e.replace(/start|end/g,t=>W1[t])}const Zi=["left","right"],Xi=["right","left"],z1=["top","bottom"],G1=["bottom","top"];function Q1(e,t,n){switch(e){case"top":case"bottom":return n?t?Xi:Zi:t?Zi:Xi;case"left":case"right":return t?z1:G1;default:return[]}}function K1(e,t,n,r){const o=gn(e);let s=Q1(Ye(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(is)))),s}function Ir(e){return e.replace(/left|right|bottom|top/g,t=>U1[t])}function Y1(e){return{top:0,right:0,bottom:0,left:0,...e}}function tl(e){return typeof e!="number"?Y1(e):{top:e,right:e,bottom:e,left:e}}function Mr(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ji(e,t,n){let{reference:r,floating:o}=e;const s=Ie(t),i=Ls(t),a=Ds(i),c=Ye(t),u=s==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let g;switch(c){case"top":g={x:d,y:r.y-o.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-o.width,y:f};break;default:g={x:r.x,y:r.y}}switch(gn(t)){case"start":g[i]-=p*(n&&u?-1:1);break;case"end":g[i]+=p*(n&&u?-1:1);break}return g}const Z1=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Ji(u,r,c),p=r,g={},w=0;for(let h=0;h<a.length;h++){const{name:y,fn:C}=a[h],{x,y:_,data:E,reset:R}=await C({x:d,y:f,initialPlacement:r,placement:p,strategy:o,middlewareData:g,rects:u,platform:i,elements:{reference:e,floating:t}});d=x??d,f=_??f,g={...g,[y]:{...g[y],...E}},R&&w<=50&&(w++,typeof R=="object"&&(R.placement&&(p=R.placement),R.rects&&(u=R.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):R.rects),{x:d,y:f}=Ji(u,p,c)),h=-1)}return{x:d,y:f,placement:p,strategy:o,middlewareData:g}};async function Pn(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:g=0}=Ke(t,e),w=tl(g),y=a[p?f==="floating"?"reference":"floating":f],C=Mr(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:c})),x=f==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),E=await(s.isElement==null?void 0:s.isElement(_))?await(s.getScale==null?void 0:s.getScale(_))||{x:1,y:1}:{x:1,y:1},R=Mr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:_,strategy:c}):x);return{top:(C.top-R.top+w.top)/E.y,bottom:(R.bottom-C.bottom+w.bottom)/E.y,left:(C.left-R.left+w.left)/E.x,right:(R.right-C.right+w.right)/E.x}}const X1=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=t,{element:u,padding:d=0}=Ke(e,t)||{};if(u==null)return{};const f=tl(d),p={x:n,y:r},g=Ls(o),w=Ds(g),h=await i.getDimensions(u),y=g==="y",C=y?"top":"left",x=y?"bottom":"right",_=y?"clientHeight":"clientWidth",E=s.reference[w]+s.reference[g]-p[g]-s.floating[w],R=p[g]-s.reference[g],P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let A=P?P[_]:0;(!A||!await(i.isElement==null?void 0:i.isElement(P)))&&(A=a.floating[_]||s.floating[w]);const M=E/2-R/2,k=A/2-h[w]/2-1,N=gt(f[C],k),V=gt(f[x],k),Q=N,H=A-h[w]-V,G=A/2-h[w]/2+M,ne=ss(Q,G,H),Z=!c.arrow&&gn(o)!=null&&G!==ne&&s.reference[w]/2-(G<Q?N:V)-h[w]/2<0,X=Z?G<Q?G-Q:G-H:0;return{[g]:p[g]+X,data:{[g]:ne,centerOffset:G-ne-X,...Z&&{alignmentOffset:X}},reset:Z}}}),J1=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:h=!0,...y}=Ke(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const C=Ye(o),x=Ie(a),_=Ye(a)===a,E=await(c.isRTL==null?void 0:c.isRTL(u.floating)),R=p||(_||!h?[Ir(a)]:q1(a)),P=w!=="none";!p&&P&&R.push(...K1(a,h,w,E));const A=[a,...R],M=await Pn(t,y),k=[];let N=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&k.push(M[C]),f){const G=V1(o,i,E);k.push(M[G[0]],M[G[1]])}if(N=[...N,{placement:o,overflows:k}],!k.every(G=>G<=0)){var V,Q;const G=(((V=s.flip)==null?void 0:V.index)||0)+1,ne=A[G];if(ne&&(!(f==="alignment"?x!==Ie(ne):!1)||N.every(F=>Ie(F.placement)===x?F.overflows[0]>0:!0)))return{data:{index:G,overflows:N},reset:{placement:ne}};let Z=(Q=N.filter(X=>X.overflows[0]<=0).sort((X,F)=>X.overflows[1]-F.overflows[1])[0])==null?void 0:Q.placement;if(!Z)switch(g){case"bestFit":{var H;const X=(H=N.filter(F=>{if(P){const re=Ie(F.placement);return re===x||re==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(re=>re>0).reduce((re,ye)=>re+ye,0)]).sort((F,re)=>F[1]-re[1])[0])==null?void 0:H[0];X&&(Z=X);break}case"initialPlacement":Z=a;break}if(o!==Z)return{reset:{placement:Z}}}return{}}}};function ea(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ta(e){return B1.some(t=>e[t]>=0)}const em=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ke(e,t);switch(r){case"referenceHidden":{const s=await Pn(t,{...o,elementContext:"reference"}),i=ea(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:ta(i)}}}case"escaped":{const s=await Pn(t,{...o,altBoundary:!0}),i=ea(s,n.floating);return{data:{escapedOffsets:i,escaped:ta(i)}}}default:return{}}}}},nl=new Set(["left","top"]);async function tm(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Ye(n),a=gn(n),c=Ie(n)==="y",u=nl.has(i)?-1:1,d=s&&c?-1:1,f=Ke(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:w}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof w=="number"&&(g=a==="end"?w*-1:w),c?{x:g*d,y:p*u}:{x:p*u,y:g*d}}const nm=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,c=await tm(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},rm=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:y=>{let{x:C,y:x}=y;return{x:C,y:x}}},...c}=Ke(e,t),u={x:n,y:r},d=await Pn(t,c),f=Ie(Ye(o)),p=js(f);let g=u[p],w=u[f];if(s){const y=p==="y"?"top":"left",C=p==="y"?"bottom":"right",x=g+d[y],_=g-d[C];g=ss(x,g,_)}if(i){const y=f==="y"?"top":"left",C=f==="y"?"bottom":"right",x=w+d[y],_=w-d[C];w=ss(x,w,_)}const h=a.fn({...t,[p]:g,[f]:w});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[p]:s,[f]:i}}}}}},om=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=Ke(e,t),d={x:n,y:r},f=Ie(o),p=js(f);let g=d[p],w=d[f];const h=Ke(a,t),y=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){const _=p==="y"?"height":"width",E=s.reference[p]-s.floating[_]+y.mainAxis,R=s.reference[p]+s.reference[_]-y.mainAxis;g<E?g=E:g>R&&(g=R)}if(u){var C,x;const _=p==="y"?"width":"height",E=nl.has(Ye(o)),R=s.reference[f]-s.floating[_]+(E&&((C=i.offset)==null?void 0:C[f])||0)+(E?0:y.crossAxis),P=s.reference[f]+s.reference[_]+(E?0:((x=i.offset)==null?void 0:x[f])||0)-(E?y.crossAxis:0);w<R?w=R:w>P&&(w=P)}return{[p]:g,[f]:w}}}},sm=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:c=()=>{},...u}=Ke(e,t),d=await Pn(t,u),f=Ye(o),p=gn(o),g=Ie(o)==="y",{width:w,height:h}=s.floating;let y,C;f==="top"||f==="bottom"?(y=f,C=p===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(C=f,y=p==="end"?"top":"bottom");const x=h-d.top-d.bottom,_=w-d.left-d.right,E=gt(h-d[y],x),R=gt(w-d[C],_),P=!t.middlewareData.shift;let A=E,M=R;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(M=_),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=x),P&&!p){const N=ve(d.left,0),V=ve(d.right,0),Q=ve(d.top,0),H=ve(d.bottom,0);g?M=w-2*(N!==0||V!==0?N+V:ve(d.left,d.right)):A=h-2*(Q!==0||H!==0?Q+H:ve(d.top,d.bottom))}await c({...t,availableWidth:M,availableHeight:A});const k=await i.getDimensions(a.floating);return w!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}};function Xr(){return typeof window<"u"}function yn(e){return rl(e)?(e.nodeName||"").toLowerCase():"#document"}function we(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fe(e){var t;return(t=(rl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function rl(e){return Xr()?e instanceof Node||e instanceof we(e).Node:!1}function Te(e){return Xr()?e instanceof Element||e instanceof we(e).Element:!1}function $e(e){return Xr()?e instanceof HTMLElement||e instanceof we(e).HTMLElement:!1}function na(e){return!Xr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof we(e).ShadowRoot}const im=new Set(["inline","contents"]);function Wn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ae(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!im.has(o)}const am=new Set(["table","td","th"]);function cm(e){return am.has(yn(e))}const lm=[":popover-open",":modal"];function Jr(e){return lm.some(t=>{try{return e.matches(t)}catch{return!1}})}const um=["transform","translate","scale","rotate","perspective"],dm=["transform","translate","scale","rotate","perspective","filter"],fm=["paint","layout","strict","content"];function Ns(e){const t=ks(),n=Te(e)?Ae(e):e;return um.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||dm.some(r=>(n.willChange||"").includes(r))||fm.some(r=>(n.contain||"").includes(r))}function hm(e){let t=yt(e);for(;$e(t)&&!hn(t);){if(Ns(t))return t;if(Jr(t))return null;t=yt(t)}return null}function ks(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const pm=new Set(["html","body","#document"]);function hn(e){return pm.has(yn(e))}function Ae(e){return we(e).getComputedStyle(e)}function eo(e){return Te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function yt(e){if(yn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||na(e)&&e.host||Fe(e);return na(t)?t.host:t}function ol(e){const t=yt(e);return hn(t)?e.ownerDocument?e.ownerDocument.body:e.body:$e(t)&&Wn(t)?t:ol(t)}function On(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ol(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=we(o);if(s){const a=as(i);return t.concat(i,i.visualViewport||[],Wn(o)?o:[],a&&n?On(a):[])}return t.concat(o,On(o,[],n))}function as(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function sl(e){const t=Ae(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=$e(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=kr(n)!==s||kr(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Is(e){return Te(e)?e:e.contextElement}function Yt(e){const t=Is(e);if(!$e(t))return Me(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=sl(t);let i=(s?kr(n.width):n.width)/r,a=(s?kr(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const mm=Me(0);function il(e){const t=we(e);return!ks()||!t.visualViewport?mm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function gm(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==we(e)?!1:t}function $t(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Is(e);let i=Me(1);t&&(r?Te(r)&&(i=Yt(r)):i=Yt(e));const a=gm(s,n,r)?il(s):Me(0);let c=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,d=o.width/i.x,f=o.height/i.y;if(s){const p=we(s),g=r&&Te(r)?we(r):r;let w=p,h=as(w);for(;h&&r&&g!==w;){const y=Yt(h),C=h.getBoundingClientRect(),x=Ae(h),_=C.left+(h.clientLeft+parseFloat(x.paddingLeft))*y.x,E=C.top+(h.clientTop+parseFloat(x.paddingTop))*y.y;c*=y.x,u*=y.y,d*=y.x,f*=y.y,c+=_,u+=E,w=we(h),h=as(w)}}return Mr({width:d,height:f,x:c,y:u})}function to(e,t){const n=eo(e).scrollLeft;return t?t.left+n:$t(Fe(e)).left+n}function al(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-to(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function ym(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Fe(r),a=t?Jr(t.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},u=Me(1);const d=Me(0),f=$e(r);if((f||!f&&!s)&&((yn(r)!=="body"||Wn(i))&&(c=eo(r)),$e(r))){const g=$t(r);u=Yt(r),d.x=g.x+r.clientLeft,d.y=g.y+r.clientTop}const p=i&&!f&&!s?al(i,c):Me(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-c.scrollTop*u.y+d.y+p.y}}function vm(e){return Array.from(e.getClientRects())}function bm(e){const t=Fe(e),n=eo(e),r=e.ownerDocument.body,o=ve(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ve(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+to(e);const a=-n.scrollTop;return Ae(r).direction==="rtl"&&(i+=ve(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const ra=25;function wm(e,t){const n=we(e),r=Fe(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,c=0;if(o){s=o.width,i=o.height;const d=ks();(!d||d&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const u=to(r);if(u<=0){const d=r.ownerDocument,f=d.body,p=getComputedStyle(f),g=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,w=Math.abs(r.clientWidth-f.clientWidth-g);w<=ra&&(s-=w)}else u<=ra&&(s+=u);return{width:s,height:i,x:a,y:c}}const Cm=new Set(["absolute","fixed"]);function xm(e,t){const n=$t(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=$e(e)?Yt(e):Me(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,u=r*s.y;return{width:i,height:a,x:c,y:u}}function oa(e,t,n){let r;if(t==="viewport")r=wm(e,n);else if(t==="document")r=bm(Fe(e));else if(Te(t))r=xm(t,n);else{const o=il(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Mr(r)}function cl(e,t){const n=yt(e);return n===t||!Te(n)||hn(n)?!1:Ae(n).position==="fixed"||cl(n,t)}function Em(e,t){const n=t.get(e);if(n)return n;let r=On(e,[],!1).filter(a=>Te(a)&&yn(a)!=="body"),o=null;const s=Ae(e).position==="fixed";let i=s?yt(e):e;for(;Te(i)&&!hn(i);){const a=Ae(i),c=Ns(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&Cm.has(o.position)||Wn(i)&&!c&&cl(e,i))?r=r.filter(d=>d!==i):o=a,i=yt(i)}return t.set(e,r),r}function Sm(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Jr(t)?[]:Em(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((u,d)=>{const f=oa(t,d,o);return u.top=ve(f.top,u.top),u.right=gt(f.right,u.right),u.bottom=gt(f.bottom,u.bottom),u.left=ve(f.left,u.left),u},oa(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function _m(e){const{width:t,height:n}=sl(e);return{width:t,height:n}}function Rm(e,t,n){const r=$e(t),o=Fe(t),s=n==="fixed",i=$t(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=Me(0);function u(){c.x=to(o)}if(r||!r&&!s)if((yn(t)!=="body"||Wn(o))&&(a=eo(t)),r){const g=$t(t,!0,s,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else o&&u();s&&!r&&o&&u();const d=o&&!r&&!s?al(o,a):Me(0),f=i.left+a.scrollLeft-c.x-d.x,p=i.top+a.scrollTop-c.y-d.y;return{x:f,y:p,width:i.width,height:i.height}}function wo(e){return Ae(e).position==="static"}function sa(e,t){if(!$e(e)||Ae(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Fe(e)===n&&(n=n.ownerDocument.body),n}function ll(e,t){const n=we(e);if(Jr(e))return n;if(!$e(e)){let o=yt(e);for(;o&&!hn(o);){if(Te(o)&&!wo(o))return o;o=yt(o)}return n}let r=sa(e,t);for(;r&&cm(r)&&wo(r);)r=sa(r,t);return r&&hn(r)&&wo(r)&&!Ns(r)?n:r||hm(e)||n}const Tm=async function(e){const t=this.getOffsetParent||ll,n=this.getDimensions,r=await n(e.floating);return{reference:Rm(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Am(e){return Ae(e).direction==="rtl"}const Pm={convertOffsetParentRelativeRectToViewportRelativeRect:ym,getDocumentElement:Fe,getClippingRect:Sm,getOffsetParent:ll,getElementRects:Tm,getClientRects:vm,getDimensions:_m,getScale:Yt,isElement:Te,isRTL:Am};function ul(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Om(e,t){let n=null,r;const o=Fe(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const u=e.getBoundingClientRect(),{left:d,top:f,width:p,height:g}=u;if(a||t(),!p||!g)return;const w=lr(f),h=lr(o.clientWidth-(d+p)),y=lr(o.clientHeight-(f+g)),C=lr(d),_={rootMargin:-w+"px "+-h+"px "+-y+"px "+-C+"px",threshold:ve(0,gt(1,c))||1};let E=!0;function R(P){const A=P[0].intersectionRatio;if(A!==c){if(!E)return i();A?i(!1,A):r=setTimeout(()=>{i(!1,1e-7)},1e3)}A===1&&!ul(u,e.getBoundingClientRect())&&i(),E=!1}try{n=new IntersectionObserver(R,{..._,root:o.ownerDocument})}catch{n=new IntersectionObserver(R,_)}n.observe(e)}return i(!0),s}function jm(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Is(e),d=o||s?[...u?On(u):[],...On(t)]:[];d.forEach(C=>{o&&C.addEventListener("scroll",n,{passive:!0}),s&&C.addEventListener("resize",n)});const f=u&&a?Om(u,n):null;let p=-1,g=null;i&&(g=new ResizeObserver(C=>{let[x]=C;x&&x.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var _;(_=g)==null||_.observe(t)})),n()}),u&&!c&&g.observe(u),g.observe(t));let w,h=c?$t(e):null;c&&y();function y(){const C=$t(e);h&&!ul(h,C)&&n(),h=C,w=requestAnimationFrame(y)}return n(),()=>{var C;d.forEach(x=>{o&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),f==null||f(),(C=g)==null||C.disconnect(),g=null,c&&cancelAnimationFrame(w)}}const Dm=nm,Lm=rm,Nm=J1,km=sm,Im=em,ia=X1,Mm=om,$m=(e,t,n)=>{const r=new Map,o={platform:Pm,...n},s={...o.platform,_c:r};return Z1(e,t,{...o,platform:s})};var Fm=typeof document<"u",Bm=function(){},_r=Fm?S.useLayoutEffect:Bm;function $r(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!$r(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!$r(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function dl(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function aa(e,t){const n=dl(e);return Math.round(t*n)/n}function Co(e){const t=m.useRef(e);return _r(()=>{t.current=e}),t}function Um(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:c,open:u}=e,[d,f]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,g]=m.useState(r);$r(p,r)||g(r);const[w,h]=m.useState(null),[y,C]=m.useState(null),x=m.useCallback(F=>{F!==P.current&&(P.current=F,h(F))},[]),_=m.useCallback(F=>{F!==A.current&&(A.current=F,C(F))},[]),E=s||w,R=i||y,P=m.useRef(null),A=m.useRef(null),M=m.useRef(d),k=c!=null,N=Co(c),V=Co(o),Q=Co(u),H=m.useCallback(()=>{if(!P.current||!A.current)return;const F={placement:t,strategy:n,middleware:p};V.current&&(F.platform=V.current),$m(P.current,A.current,F).then(re=>{const ye={...re,isPositioned:Q.current!==!1};G.current&&!$r(M.current,ye)&&(M.current=ye,$a.flushSync(()=>{f(ye)}))})},[p,t,n,V,Q]);_r(()=>{u===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,f(F=>({...F,isPositioned:!1})))},[u]);const G=m.useRef(!1);_r(()=>(G.current=!0,()=>{G.current=!1}),[]),_r(()=>{if(E&&(P.current=E),R&&(A.current=R),E&&R){if(N.current)return N.current(E,R,H);H()}},[E,R,H,N,k]);const ne=m.useMemo(()=>({reference:P,floating:A,setReference:x,setFloating:_}),[x,_]),Z=m.useMemo(()=>({reference:E,floating:R}),[E,R]),X=m.useMemo(()=>{const F={position:n,left:0,top:0};if(!Z.floating)return F;const re=aa(Z.floating,d.x),ye=aa(Z.floating,d.y);return a?{...F,transform:"translate("+re+"px, "+ye+"px)",...dl(Z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:re,top:ye}},[n,a,Z.floating,d.x,d.y]);return m.useMemo(()=>({...d,update:H,refs:ne,elements:Z,floatingStyles:X}),[d,H,ne,Z,X])}const Wm=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?ia({element:r.current,padding:o}).fn(n):{}:r?ia({element:r,padding:o}).fn(n):{}}}},Hm=(e,t)=>({...Dm(e),options:[e,t]}),Vm=(e,t)=>({...Lm(e),options:[e,t]}),qm=(e,t)=>({...Mm(e),options:[e,t]}),zm=(e,t)=>({...Nm(e),options:[e,t]}),Gm=(e,t)=>({...km(e),options:[e,t]}),Qm=(e,t)=>({...Im(e),options:[e,t]}),Km=(e,t)=>({...Wm(e),options:[e,t]});var Ym="Arrow",fl=m.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return l.jsx(ge.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});fl.displayName=Ym;var Zm=fl;function Xm(e){const[t,n]=m.useState(void 0);return mt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const c=s.borderBoxSize,u=Array.isArray(c)?c[0]:c;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ms="Popper",[hl,pl]=Ps(Ms),[Jm,ml]=hl(Ms),gl=e=>{const{__scopePopper:t,children:n}=e,[r,o]=m.useState(null);return l.jsx(Jm,{scope:t,anchor:r,onAnchorChange:o,children:n})};gl.displayName=Ms;var yl="PopperAnchor",vl=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=ml(yl,n),i=m.useRef(null),a=Pe(t,i),c=m.useRef(null);return m.useEffect(()=>{const u=c.current;c.current=(r==null?void 0:r.current)||i.current,u!==c.current&&s.onAnchorChange(c.current)}),r?null:l.jsx(ge.div,{...o,ref:a})});vl.displayName=yl;var $s="PopperContent",[eg,tg]=hl($s),bl=m.forwardRef((e,t)=>{var Wt,wt,Ht,Ct,Gn,wn;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:g="optimized",onPlaced:w,...h}=e,y=ml($s,n),[C,x]=m.useState(null),_=Pe(t,xt=>x(xt)),[E,R]=m.useState(null),P=Xm(E),A=(P==null?void 0:P.width)??0,M=(P==null?void 0:P.height)??0,k=r+(s!=="center"?"-"+s:""),N=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},V=Array.isArray(u)?u:[u],Q=V.length>0,H={padding:N,boundary:V.filter(rg),altBoundary:Q},{refs:G,floatingStyles:ne,placement:Z,isPositioned:X,middlewareData:F}=Um({strategy:"fixed",placement:k,whileElementsMounted:(...xt)=>jm(...xt,{animationFrame:g==="always"}),elements:{reference:y.anchor},middleware:[Hm({mainAxis:o+M,alignmentAxis:i}),c&&Vm({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?qm():void 0,...H}),c&&zm({...H}),Gm({...H,apply:({elements:xt,rects:Qn,availableWidth:Vt,availableHeight:Et})=>{const{width:Kn,height:Yn}=Qn.reference,Ue=xt.floating.style;Ue.setProperty("--radix-popper-available-width",`${Vt}px`),Ue.setProperty("--radix-popper-available-height",`${Et}px`),Ue.setProperty("--radix-popper-anchor-width",`${Kn}px`),Ue.setProperty("--radix-popper-anchor-height",`${Yn}px`)}}),E&&Km({element:E,padding:a}),og({arrowWidth:A,arrowHeight:M}),p&&Qm({strategy:"referenceHidden",...H})]}),[re,ye]=xl(Z),bt=fn(w);mt(()=>{X&&(bt==null||bt())},[X,bt]);const qn=(Wt=F.arrow)==null?void 0:Wt.x,zn=(wt=F.arrow)==null?void 0:wt.y,ao=((Ht=F.arrow)==null?void 0:Ht.centerOffset)!==0,[co,bn]=m.useState();return mt(()=>{C&&bn(window.getComputedStyle(C).zIndex)},[C]),l.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...ne,transform:X?ne.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:co,"--radix-popper-transform-origin":[(Ct=F.transformOrigin)==null?void 0:Ct.x,(Gn=F.transformOrigin)==null?void 0:Gn.y].join(" "),...((wn=F.hide)==null?void 0:wn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(eg,{scope:n,placedSide:re,onArrowChange:R,arrowX:qn,arrowY:zn,shouldHideArrow:ao,children:l.jsx(ge.div,{"data-side":re,"data-align":ye,...h,ref:_,style:{...h.style,animation:X?void 0:"none"}})})})});bl.displayName=$s;var wl="PopperArrow",ng={top:"bottom",right:"left",bottom:"top",left:"right"},Cl=m.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=tg(wl,r),i=ng[s.placedSide];return l.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsx(Zm,{...o,ref:n,style:{...o.style,display:"block"}})})});Cl.displayName=wl;function rg(e){return e!==null}var og=e=>({name:"transformOrigin",options:e,fn(t){var y,C,x;const{placement:n,rects:r,middlewareData:o}=t,i=((y=o.arrow)==null?void 0:y.centerOffset)!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[u,d]=xl(n),f={start:"0%",center:"50%",end:"100%"}[d],p=(((C=o.arrow)==null?void 0:C.x)??0)+a/2,g=(((x=o.arrow)==null?void 0:x.y)??0)+c/2;let w="",h="";return u==="bottom"?(w=i?f:`${p}px`,h=`${-c}px`):u==="top"?(w=i?f:`${p}px`,h=`${r.floating.height+c}px`):u==="right"?(w=`${-c}px`,h=i?f:`${g}px`):u==="left"&&(w=`${r.floating.width+c}px`,h=i?f:`${g}px`),{data:{x:w,y:h}}}});function xl(e){const[t,n="center"]=e.split("-");return[t,n]}var sg=gl,ig=vl,ag=bl,cg=Cl,lg="Portal",Fs=m.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=m.useState(!1);mt(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Ia.createPortal(l.jsx(ge.div,{...r,ref:t}),i):null});Fs.displayName=lg;function ug(e,t){return m.useReducer((n,r)=>t[n][r]??n,e)}var vn=e=>{const{present:t,children:n}=e,r=dg(t),o=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),s=Pe(r.ref,fg(o));return typeof n=="function"||r.isPresent?m.cloneElement(o,{ref:s}):null};vn.displayName="Presence";function dg(e){const[t,n]=m.useState(),r=m.useRef(null),o=m.useRef(e),s=m.useRef("none"),i=e?"mounted":"unmounted",[a,c]=ug(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const u=ur(r.current);s.current=a==="mounted"?u:"none"},[a]),mt(()=>{const u=r.current,d=o.current;if(d!==e){const p=s.current,g=ur(u);e?c("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&p!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),mt(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=g=>{const h=ur(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&h&&(c("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},p=g=>{g.target===t&&(s.current=ur(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function ur(e){return(e==null?void 0:e.animationName)||"none"}function fg(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var hg=Symbol("radix.slottable");function pg(e){const t=({children:n})=>l.jsx(l.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=hg,t}var mg=m[" useInsertionEffect ".trim().toString()]||mt;function El({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=gg({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const d=m.useRef(e!==void 0);m.useEffect(()=>{const f=d.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const u=m.useCallback(d=>{var f;if(a){const p=yg(d)?d(e):d;p!==e&&((f=i.current)==null||f.call(i,p))}else s(d)},[a,e,s,i]);return[c,u]}function gg({defaultProp:e,onChange:t}){const[n,r]=m.useState(e),o=m.useRef(n),s=m.useRef(t);return mg(()=>{s.current=t},[t]),m.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function yg(e){return typeof e=="function"}var vg=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),bg="VisuallyHidden",Sl=m.forwardRef((e,t)=>l.jsx(ge.span,{...e,ref:t,style:{...vg,...e.style}}));Sl.displayName=bg;var wg=Sl,[no]=Ps("Tooltip",[pl]),ro=pl(),_l="TooltipProvider",Cg=700,cs="tooltip.open",[xg,Bs]=no(_l),Rl=e=>{const{__scopeTooltip:t,delayDuration:n=Cg,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=m.useRef(!0),a=m.useRef(!1),c=m.useRef(0);return m.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),l.jsx(xg,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:m.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:m.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:m.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:s})};Rl.displayName=_l;var jn="Tooltip",[Eg,Hn]=no(jn),Tl=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:a}=e,c=Bs(jn,e.__scopeTooltip),u=ro(t),[d,f]=m.useState(null),p=Sr(),g=m.useRef(0),w=i??c.disableHoverableContent,h=a??c.delayDuration,y=m.useRef(!1),[C,x]=El({prop:r,defaultProp:o??!1,onChange:A=>{A?(c.onOpen(),document.dispatchEvent(new CustomEvent(cs))):c.onClose(),s==null||s(A)},caller:jn}),_=m.useMemo(()=>C?y.current?"delayed-open":"instant-open":"closed",[C]),E=m.useCallback(()=>{window.clearTimeout(g.current),g.current=0,y.current=!1,x(!0)},[x]),R=m.useCallback(()=>{window.clearTimeout(g.current),g.current=0,x(!1)},[x]),P=m.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{y.current=!0,x(!0),g.current=0},h)},[h,x]);return m.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),l.jsx(sg,{...u,children:l.jsx(Eg,{scope:t,contentId:p,open:C,stateAttribute:_,trigger:d,onTriggerChange:f,onTriggerEnter:m.useCallback(()=>{c.isOpenDelayedRef.current?P():E()},[c.isOpenDelayedRef,P,E]),onTriggerLeave:m.useCallback(()=>{w?R():(window.clearTimeout(g.current),g.current=0)},[R,w]),onOpen:E,onClose:R,disableHoverableContent:w,children:n})})};Tl.displayName=jn;var ls="TooltipTrigger",Al=m.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Hn(ls,n),s=Bs(ls,n),i=ro(n),a=m.useRef(null),c=Pe(t,a,o.onTriggerChange),u=m.useRef(!1),d=m.useRef(!1),f=m.useCallback(()=>u.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),l.jsx(ig,{asChild:!0,...i,children:l.jsx(ge.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:me(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:me(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:me(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:me(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:me(e.onBlur,o.onClose),onClick:me(e.onClick,o.onClose)})})});Al.displayName=ls;var Us="TooltipPortal",[Sg,_g]=no(Us,{forceMount:void 0}),Pl=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=Hn(Us,t);return l.jsx(Sg,{scope:t,forceMount:n,children:l.jsx(vn,{present:n||s.open,children:l.jsx(Fs,{asChild:!0,container:o,children:r})})})};Pl.displayName=Us;var pn="TooltipContent",Ol=m.forwardRef((e,t)=>{const n=_g(pn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=Hn(pn,e.__scopeTooltip);return l.jsx(vn,{present:r||i.open,children:i.disableHoverableContent?l.jsx(jl,{side:o,...s,ref:t}):l.jsx(Rg,{side:o,...s,ref:t})})}),Rg=m.forwardRef((e,t)=>{const n=Hn(pn,e.__scopeTooltip),r=Bs(pn,e.__scopeTooltip),o=m.useRef(null),s=Pe(t,o),[i,a]=m.useState(null),{trigger:c,onClose:u}=n,d=o.current,{onPointerInTransitChange:f}=r,p=m.useCallback(()=>{a(null),f(!1)},[f]),g=m.useCallback((w,h)=>{const y=w.currentTarget,C={x:w.clientX,y:w.clientY},x=Og(C,y.getBoundingClientRect()),_=jg(C,x),E=Dg(h.getBoundingClientRect()),R=Ng([..._,...E]);a(R),f(!0)},[f]);return m.useEffect(()=>()=>p(),[p]),m.useEffect(()=>{if(c&&d){const w=y=>g(y,d),h=y=>g(y,c);return c.addEventListener("pointerleave",w),d.addEventListener("pointerleave",h),()=>{c.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",h)}}},[c,d,g,p]),m.useEffect(()=>{if(i){const w=h=>{const y=h.target,C={x:h.clientX,y:h.clientY},x=(c==null?void 0:c.contains(y))||(d==null?void 0:d.contains(y)),_=!Lg(C,i);x?p():_&&(p(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[c,d,i,u,p]),l.jsx(jl,{...e,ref:s})}),[Tg,Ag]=no(jn,{isInside:!1}),Pg=pg("TooltipContent"),jl=m.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,c=Hn(pn,n),u=ro(n),{onClose:d}=c;return m.useEffect(()=>(document.addEventListener(cs,d),()=>document.removeEventListener(cs,d)),[d]),m.useEffect(()=>{if(c.trigger){const f=p=>{const g=p.target;g!=null&&g.contains(c.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,d]),l.jsx(Os,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:l.jsxs(ag,{"data-state":c.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[l.jsx(Pg,{children:r}),l.jsx(Tg,{scope:n,isInside:!0,children:l.jsx(wg,{id:c.contentId,role:"tooltip",children:o||r})})]})})});Ol.displayName=pn;var Dl="TooltipArrow",Ll=m.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ro(n);return Ag(Dl,n).isInside?null:l.jsx(cg,{...o,...r,ref:t})});Ll.displayName=Dl;function Og(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function jg(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Dg(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Lg(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],c=t[i],u=a.x,d=a.y,f=c.x,p=c.y;d>r!=p>r&&n<(f-u)*(r-d)/(p-d)+u&&(o=!o)}return o}function Ng(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),kg(t)}function kg(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Ig=Rl,Mg=Tl,$g=Al,Fg=Pl,Bg=Ol,Ug=Ll;const Wg="tooltip__nUuSh",Hg="tooltipArrow__W2w-f",ca={tooltip:Wg,tooltipArrow:Hg},Fr=({children:e,open:t,displayName:n,tooltipContent:r,className:o,disabled:s,delayDuration:i=300,side:a="right",sideOffset:c=0})=>{const[u,d]=S.useState(!1),f=t!==void 0,g=s?!1:f?t:u,w=h=>{s||f||d(h)};return l.jsx(Ig,{delayDuration:i,children:l.jsxs(Mg,{open:g,onOpenChange:w,children:[l.jsx($g,{asChild:!0,children:e}),l.jsx(Fg,{children:l.jsxs(Bg,{className:D(ca.tooltip,o),side:a,sideOffset:c,children:[n,r,l.jsx(Ug,{className:ca.tooltipArrow})]})})]})})};Fr.displayName="Tooltip";const Vg="spinner__qa7F6",qg="rotate__EqlXe",zg="spinner-dark__9A9-q",Gg="spinner-white__gRbtI",Qg="spinner-success__otWGm",Kg="spinner-danger__Bq5DM",Yg="spinner-warning__U900K",la={spinner:Vg,rotate:qg,"spinner-dark":"spinner-dark__9A9-q",spinnerDark:zg,"spinner-white":"spinner-white__gRbtI",spinnerWhite:Gg,"spinner-success":"spinner-success__otWGm",spinnerSuccess:Qg,"spinner-danger":"spinner-danger__Bq5DM",spinnerDanger:Kg,"spinner-warning":"spinner-warning__U900K",spinnerWarning:Yg},Nl=({className:e,color:t="white",size:n=80,thickness:r})=>{const o=D(la.spinner,la[`spinner-${t}`],e),s=r??Math.max(n/12,2);return l.jsx("span",{style:{width:n,height:n,borderWidth:s},className:o})};Nl.displayName="Spinner";const Zg="disabled__KpauE",Xg="checked__2-JV-",Jg="thumb__fEuKD",dr={switch:"switch__0b2av",disabled:Zg,checked:Xg,thumb:Jg},kl=S.forwardRef(({checked:e,defaultChecked:t=!1,onCheckedChange:n,disabled:r=!1,id:o,className:s,name:i,"aria-label":a,"aria-labelledby":c,"aria-describedby":u,...d},f)=>{const[p,g]=S.useState(t),w=e!==void 0,h=w?!!e:p,y=()=>{if(r)return;const x=!h;w||g(x),n==null||n(x)},C=x=>{(x.key===" "||x.key==="Enter")&&(x.preventDefault(),y())};return l.jsx("button",{ref:f,type:"button",role:"switch","aria-checked":h,"aria-label":a,"aria-labelledby":c,"aria-describedby":u,disabled:r,id:o,name:i,className:D(dr.switch,{[dr.checked]:h,[dr.disabled]:r}),onClick:y,onKeyDown:C,...d,children:l.jsx("span",{className:dr.thumb,"aria-hidden":"true"})})});kl.displayName="Switch";const ey="tabs-root__ELmdj",ty="tabs-list__rc10N",ny="tabs-list--horizontal__e1YW4",ry="tabs-list--vertical__huK05",oy="tabs-trigger__D8R4R",sy="tabs-trigger--disabled__ezDWc",iy="tabs-trigger--horizontal__4jBFV",ay="tabs-trigger--active__S-Z-S",cy="tabs-trigger--vertical__dNVIZ",ly="tabs-content__1d77o",ke={tabsRoot:ey,tabsList:ty,tabsListHorizontal:ny,tabsListVertical:ry,tabsTrigger:oy,tabsTriggerDisabled:sy,tabsTriggerHorizontal:iy,tabsTriggerActive:ay,tabsTriggerVertical:cy,tabsContent:ly},Il=S.createContext(null),Ws=()=>{const e=S.useContext(Il);if(!e)throw new Error("Tabs components must be used within a Tabs provider");return e},uy=({defaultValue:e,value:t,onValueChange:n,orientation:r="horizontal",className:o="",children:s})=>{const[i,a]=S.useState(e||""),c=t!==void 0,u=c?t:i,d=f=>{c||a(f),n==null||n(f)};return l.jsx(Il.Provider,{value:{value:u,onValueChange:d,orientation:r},children:l.jsx("div",{className:D(ke.tabsRoot,o),children:s})})},dy=({className:e="",children:t})=>{const{orientation:n}=Ws(),r=S.useRef(null),o=s=>{var u;const i=(u=r.current)==null?void 0:u.querySelectorAll('[role="tab"]:not([disabled])');if(!i)return;const a=Array.from(i).findIndex(d=>d===document.activeElement);let c=a;switch(s.key){case"ArrowLeft":n==="horizontal"&&(s.preventDefault(),c=a>0?a-1:i.length-1);break;case"ArrowRight":n==="horizontal"&&(s.preventDefault(),c=a<i.length-1?a+1:0);break;case"ArrowUp":n==="vertical"&&(s.preventDefault(),c=a>0?a-1:i.length-1);break;case"ArrowDown":n==="vertical"&&(s.preventDefault(),c=a<i.length-1?a+1:0);break;case"Home":s.preventDefault(),c=0;break;case"End":s.preventDefault(),c=i.length-1;break}if(c!==a){const d=i[c];d.focus(),d.click()}};return l.jsx("div",{ref:r,role:"tablist","aria-orientation":n,onKeyDown:o,className:D(ke.tabsList,n==="horizontal"?ke.tabsListHorizontal:ke.tabsListVertical,e),children:t})},fy=({value:e,disabled:t=!1,className:n="",children:r})=>{const{value:o,onValueChange:s,orientation:i}=Ws(),a=o===e,c=()=>{t||s(e)};return l.jsx("button",{role:"tab","aria-selected":a,"aria-controls":`content-${e}`,tabIndex:a?0:-1,disabled:t,onClick:c,className:D(ke.tabsTrigger,i==="horizontal"?ke.tabsTriggerHorizontal:ke.tabsTriggerVertical,a&&ke.tabsTriggerActive,t&&ke.tabsTriggerDisabled,n),children:r})},hy=({value:e,className:t="",children:n})=>{const{value:r}=Ws();return r===e?l.jsx("div",{role:"tabpanel",id:`content-${e}`,"aria-labelledby":`trigger-${e}`,tabIndex:0,className:D(ke.tabsContent,t),children:n}):null},Ml=({className:e,state:t="open",onClick:n})=>t==="open"?l.jsxs("svg",{className:e,onClick:n,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:[l.jsx("path",{d:"M1.41174 7.41635C1.3323 7.29056 1.29257 7.22766 1.27034 7.13065C1.25364 7.05778 1.25364 6.94287 1.27034 6.87C1.29257 6.77299 1.3323 6.71009 1.41174 6.58431C2.06823 5.54482 4.02232 2.91699 7.00024 2.91699C9.97815 2.91699 11.9322 5.54482 12.5887 6.5843C12.6682 6.71009 12.7079 6.77299 12.7301 6.87C12.7468 6.94287 12.7468 7.05778 12.7301 7.13065C12.7079 7.22766 12.6682 7.29056 12.5887 7.41635C11.9322 8.45584 9.97815 11.0837 7.00024 11.0837C4.02232 11.0837 2.06823 8.45584 1.41174 7.41635Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M7.00024 8.75033C7.96673 8.75033 8.75024 7.96682 8.75024 7.00033C8.75024 6.03383 7.96673 5.25033 7.00024 5.25033C6.03374 5.25033 5.25024 6.03383 5.25024 7.00033C5.25024 7.96682 6.03374 8.75033 7.00024 8.75033Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})]}):l.jsx("svg",{className:e,onClick:n,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:l.jsx("path",{d:"M6.26672 2.97052C6.50379 2.93547 6.74835 2.91667 7.00024 2.91667C9.97816 2.91667 11.9323 5.54449 12.5887 6.58398C12.6682 6.70979 12.7079 6.7727 12.7302 6.86973C12.7469 6.94259 12.7468 7.05755 12.7301 7.13042C12.7079 7.22744 12.6679 7.29077 12.5879 7.41741C12.413 7.69425 12.1463 8.08331 11.793 8.50527M3.92252 3.9171C2.66131 4.77266 1.8051 5.9613 1.41231 6.58308C1.3325 6.70942 1.29259 6.7726 1.27035 6.86961C1.25364 6.94248 1.25363 7.05742 1.27033 7.13029C1.29257 7.22731 1.33229 7.29022 1.41174 7.41602C2.06823 8.45551 4.02232 11.0833 7.00024 11.0833C8.20098 11.0833 9.23526 10.6561 10.0851 10.078M1.75024 1.75L12.2502 12.25M5.76281 5.76256C5.44612 6.07925 5.25024 6.51675 5.25024 7C5.25024 7.9665 6.03374 8.75 7.00024 8.75C7.48349 8.75 7.92099 8.55413 8.23768 8.23744",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})}),py="PasswordInput__GDJDN",my="eyeIcon__kDExG",ua={PasswordInput:py,eyeIcon:my},gy=S.forwardRef((e,t)=>{const[n,r]=S.useState("password"),o=S.useCallback(()=>{r(s=>s==="password"?"text":"password")},[r]);return l.jsxs("div",{className:D(ua.PasswordInput,e.className),children:[l.jsx(Qr,{type:n,...e,ref:t}),l.jsx(Ml,{className:ua.eyeIcon,onClick:o,state:n==="password"?"open":"closed"})]})});var xo="focusScope.autoFocusOnMount",Eo="focusScope.autoFocusOnUnmount",da={bubbles:!1,cancelable:!0},yy="FocusScope",$l=m.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,c]=m.useState(null),u=fn(o),d=fn(s),f=m.useRef(null),p=Pe(t,h=>c(h)),g=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(r){let h=function(_){if(g.paused||!a)return;const E=_.target;a.contains(E)?f.current=E:Je(f.current,{select:!0})},y=function(_){if(g.paused||!a)return;const E=_.relatedTarget;E!==null&&(a.contains(E)||Je(f.current,{select:!0}))},C=function(_){if(document.activeElement===document.body)for(const R of _)R.removedNodes.length>0&&Je(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",y);const x=new MutationObserver(C);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",y),x.disconnect()}}},[r,a,g.paused]),m.useEffect(()=>{if(a){ha.add(g);const h=document.activeElement;if(!a.contains(h)){const C=new CustomEvent(xo,da);a.addEventListener(xo,u),a.dispatchEvent(C),C.defaultPrevented||(vy(Ey(Fl(a)),{select:!0}),document.activeElement===h&&Je(a))}return()=>{a.removeEventListener(xo,u),setTimeout(()=>{const C=new CustomEvent(Eo,da);a.addEventListener(Eo,d),a.dispatchEvent(C),C.defaultPrevented||Je(h??document.body,{select:!0}),a.removeEventListener(Eo,d),ha.remove(g)},0)}}},[a,u,d,g]);const w=m.useCallback(h=>{if(!n&&!r||g.paused)return;const y=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,C=document.activeElement;if(y&&C){const x=h.currentTarget,[_,E]=by(x);_&&E?!h.shiftKey&&C===E?(h.preventDefault(),n&&Je(_,{select:!0})):h.shiftKey&&C===_&&(h.preventDefault(),n&&Je(E,{select:!0})):C===x&&h.preventDefault()}},[n,r,g.paused]);return l.jsx(ge.div,{tabIndex:-1,...i,ref:p,onKeyDown:w})});$l.displayName=yy;function vy(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Je(r,{select:t}),document.activeElement!==n)return}function by(e){const t=Fl(e),n=fa(t,e),r=fa(t.reverse(),e);return[n,r]}function Fl(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function fa(e,t){for(const n of e)if(!wy(n,{upTo:t}))return n}function wy(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Cy(e){return e instanceof HTMLInputElement&&"select"in e}function Je(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Cy(e)&&t&&e.select()}}var ha=xy();function xy(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=pa(e,t),e.unshift(t)},remove(t){var n;e=pa(e,t),(n=e[0])==null||n.resume()}}}function pa(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ey(e){return e.filter(t=>t.tagName!=="A")}var So=0;function Sy(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ma()),document.body.insertAdjacentElement("beforeend",e[1]??ma()),So++,()=>{So===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),So--}},[])}function ma(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Rr="right-scroll-bar-position",Tr="width-before-scroll-bar",_y="with-scroll-bars-hidden",Ry="--removed-body-scroll-bar-size";function _o(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ty(e,t){var n=S.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Ay=typeof window<"u"?m.useLayoutEffect:m.useEffect,ga=new WeakMap;function Py(e,t){var n=Ty(null,function(r){return e.forEach(function(o){return _o(o,r)})});return Ay(function(){var r=ga.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||_o(a,null)}),s.forEach(function(a){o.has(a)||_o(a,i)})}ga.set(n,e)},[e]),n}function Oy(e){return e}function jy(e,t){t===void 0&&(t=Oy);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var c=function(){var d=i;i=[],d.forEach(s)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){i.push(d),u()},filter:function(d){return i=i.filter(d),n}}}};return o}function Dy(e){e===void 0&&(e={});var t=jy(null);return t.options=Ne({async:!0,ssr:!1},e),t}var Bl=function(e){var t=e.sideCar,n=dc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return m.createElement(r,Ne({},n))};Bl.isSideCarExport=!0;function Ly(e,t){return e.useMedium(t),Bl}var Ul=Dy(),Ro=function(){},oo=m.forwardRef(function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:Ro,onWheelCapture:Ro,onTouchMoveCapture:Ro}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,g=e.noRelative,w=e.noIsolation,h=e.inert,y=e.allowPinchZoom,C=e.as,x=C===void 0?"div":C,_=e.gapMode,E=dc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=p,P=Py([n,t]),A=Ne(Ne({},E),o);return m.createElement(m.Fragment,null,d&&m.createElement(R,{sideCar:Ul,removeScrollBar:u,shards:f,noRelative:g,noIsolation:w,inert:h,setCallbacks:s,allowPinchZoom:!!y,lockRef:n,gapMode:_}),i?m.cloneElement(m.Children.only(a),Ne(Ne({},A),{ref:P})):m.createElement(x,Ne({},A,{className:c,ref:P}),a))});oo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};oo.classNames={fullWidth:Tr,zeroRight:Rr};var Ny=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ky(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ny();return t&&e.setAttribute("nonce",t),e}function Iy(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function My(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var $y=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ky())&&(Iy(t,n),My(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Fy=function(){var e=$y();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Wl=function(){var e=Fy(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},By={left:0,top:0,right:0,gap:0},To=function(e){return parseInt(e||"",10)||0},Uy=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[To(n),To(r),To(o)]},Wy=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return By;var t=Uy(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Hy=Wl(),Zt="data-scroll-locked",Vy=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
209
|
+
.`.concat(_y,` {
|
|
210
210
|
overflow: hidden `).concat(r,`;
|
|
211
211
|
padding-right: `).concat(a,"px ").concat(r,`;
|
|
212
212
|
}
|
|
@@ -223,30 +223,30 @@ to {
|
|
|
223
223
|
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
-
.`).concat(
|
|
226
|
+
.`).concat(Rr,` {
|
|
227
227
|
right: `).concat(a,"px ").concat(r,`;
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
-
.`).concat(
|
|
230
|
+
.`).concat(Tr,` {
|
|
231
231
|
margin-right: `).concat(a,"px ").concat(r,`;
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
.`).concat(
|
|
234
|
+
.`).concat(Rr," .").concat(Rr,` {
|
|
235
235
|
right: 0 `).concat(r,`;
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
.`).concat(
|
|
238
|
+
.`).concat(Tr," .").concat(Tr,` {
|
|
239
239
|
margin-right: 0 `).concat(r,`;
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
body[`).concat(Zt,`] {
|
|
243
|
-
`).concat(
|
|
243
|
+
`).concat(Ry,": ").concat(a,`px;
|
|
244
244
|
}
|
|
245
|
-
`)},
|
|
245
|
+
`)},ya=function(){var e=parseInt(document.body.getAttribute(Zt)||"0",10);return isFinite(e)?e:0},qy=function(){m.useEffect(function(){return document.body.setAttribute(Zt,(ya()+1).toString()),function(){var e=ya()-1;e<=0?document.body.removeAttribute(Zt):document.body.setAttribute(Zt,e.toString())}},[])},zy=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;qy();var s=m.useMemo(function(){return Wy(o)},[o]);return m.createElement(Hy,{styles:Vy(s,!t,o,n?"":"!important")})},us=!1;if(typeof window<"u")try{var fr=Object.defineProperty({},"passive",{get:function(){return us=!0,!0}});window.addEventListener("test",fr,fr),window.removeEventListener("test",fr,fr)}catch{us=!1}var Gt=us?{passive:!1}:!1,Gy=function(e){return e.tagName==="TEXTAREA"},Hl=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Gy(e)&&n[t]==="visible")},Qy=function(e){return Hl(e,"overflowY")},Ky=function(e){return Hl(e,"overflowX")},va=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Vl(e,r);if(o){var s=ql(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Yy=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Zy=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Vl=function(e,t){return e==="v"?Qy(t):Ky(t)},ql=function(e,t){return e==="v"?Yy(t):Zy(t)},Xy=function(e,t){return e==="h"&&t==="rtl"?-1:1},Jy=function(e,t,n,r,o){var s=Xy(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,c=t.contains(a),u=!1,d=i>0,f=0,p=0;do{if(!a)break;var g=ql(e,a),w=g[0],h=g[1],y=g[2],C=h-y-s*w;(w||C)&&Vl(e,a)&&(f+=C,p+=w);var x=a.parentNode;a=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(d&&Math.abs(f)<1||!d&&Math.abs(p)<1)&&(u=!0),u},hr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ba=function(e){return[e.deltaX,e.deltaY]},wa=function(e){return e&&"current"in e?e.current:e},ev=function(e,t){return e[0]===t[0]&&e[1]===t[1]},tv=function(e){return`
|
|
246
246
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
247
247
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
248
|
-
`)},Xy=0,Qt=[];function Jy(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(Xy++)[0],s=f.useState(Bl)[0],i=f.useRef(e);f.useEffect(function(){i.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Tr([e.lockRef.current],(e.shards||[]).map(ga),!0).filter(Boolean);return m.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=f.useCallback(function(m,y){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!i.current.allowPinchZoom;var C=fr(m),x=n.current,S="deltaX"in m?m.deltaX:x[0]-C[0],E="deltaY"in m?m.deltaY:x[1]-C[1],_,P=m.target,A=Math.abs(S)>Math.abs(E)?"h":"v";if("touches"in m&&A==="h"&&P.type==="range")return!1;var M=window.getSelection(),I=M&&M.anchorNode,k=I?I===P||I.contains(P):!1;if(k)return!1;var V=pa(A,P);if(!V)return!0;if(V?_=A:(_=A==="v"?"h":"v",V=pa(A,P)),!V)return!1;if(!r.current&&"changedTouches"in m&&(S||E)&&(r.current=_),!_)return!0;var Q=r.current||_;return Ky(Q,y,m,Q==="h"?S:E)},[]),c=f.useCallback(function(m){var y=m;if(!(!Qt.length||Qt[Qt.length-1]!==s)){var C="deltaY"in y?ma(y):fr(y),x=t.current.filter(function(_){return _.name===y.type&&(_.target===y.target||y.target===_.shadowParent)&&Yy(_.delta,C)})[0];if(x&&x.should){y.cancelable&&y.preventDefault();return}if(!x){var S=(i.current.shards||[]).map(ga).filter(Boolean).filter(function(_){return _.contains(y.target)}),E=S.length>0?a(y,S[0]):!i.current.noIsolation;E&&y.cancelable&&y.preventDefault()}}},[]),l=f.useCallback(function(m,y,C,x){var S={name:m,delta:y,target:C,should:x,shadowParent:ev(C)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(E){return E!==S})},1)},[]),d=f.useCallback(function(m){n.current=fr(m),r.current=void 0},[]),h=f.useCallback(function(m){l(m.type,ma(m),m.target,a(m,e.lockRef.current))},[]),p=f.useCallback(function(m){l(m.type,fr(m),m.target,a(m,e.lockRef.current))},[]);f.useEffect(function(){return Qt.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Gt),document.addEventListener("touchmove",c,Gt),document.addEventListener("touchstart",d,Gt),function(){Qt=Qt.filter(function(m){return m!==s}),document.removeEventListener("wheel",c,Gt),document.removeEventListener("touchmove",c,Gt),document.removeEventListener("touchstart",d,Gt)}},[]);var g=e.removeScrollBar,w=e.inert;return f.createElement(f.Fragment,null,w?f.createElement(s,{styles:Zy(o)}):null,g?f.createElement(Wy,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ev(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const tv=Py(Fl,Jy);var Vl=f.forwardRef(function(e,t){return f.createElement(no,ke({},e,{ref:t,sideCar:tv}))});Vl.classNames=no.classNames;var nv=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Kt=new WeakMap,hr=new WeakMap,pr={},Ro=0,ql=function(e){return e&&(e.host||ql(e.parentNode))},rv=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ql(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},ov=function(e,t,n,r){var o=rv(t,Array.isArray(e)?e:[e]);pr[n]||(pr[n]=new WeakMap);var s=pr[n],i=[],a=new Set,c=new Set(o),l=function(h){!h||a.has(h)||(a.add(h),l(h.parentNode))};o.forEach(l);var d=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(p){if(a.has(p))d(p);else try{var g=p.getAttribute(r),w=g!==null&&g!=="false",m=(Kt.get(p)||0)+1,y=(s.get(p)||0)+1;Kt.set(p,m),s.set(p,y),i.push(p),m===1&&w&&hr.set(p,!0),y===1&&p.setAttribute(n,"true"),w||p.setAttribute(r,"true")}catch(C){console.error("aria-hidden: cannot operate on ",p,C)}})};return d(t),a.clear(),Ro++,function(){i.forEach(function(h){var p=Kt.get(h)-1,g=s.get(h)-1;Kt.set(h,p),s.set(h,g),p||(hr.has(h)||h.removeAttribute(r),hr.delete(h)),g||h.removeAttribute(n)}),Ro--,Ro||(Kt=new WeakMap,Kt=new WeakMap,hr=new WeakMap,pr={})}},sv=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=nv(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),ov(r,o,n,"aria-hidden")):function(){return null}};function iv(e){const t=av(e),n=f.forwardRef((r,o)=>{const{children:s,...i}=r,a=f.Children.toArray(s),c=a.find(lv);if(c){const l=c.props.children,d=a.map(h=>h===c?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:h);return u.jsx(t,{...i,ref:o,children:f.isValidElement(l)?f.cloneElement(l,void 0,d):null})}return u.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function av(e){const t=f.forwardRef((n,r)=>{const{children:o,...s}=n;if(f.isValidElement(o)){const i=dv(o),a=uv(s,o.props);return o.type!==f.Fragment&&(a.ref=r?Qr(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var cv=Symbol("radix.slottable");function lv(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===cv}function uv(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function dv(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ro="Dialog",[zl]=_s(ro),[fv,Oe]=zl(ro),Gl=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=f.useRef(null),c=f.useRef(null),[l,d]=wl({prop:r,defaultProp:o??!1,onChange:s,caller:ro});return u.jsx(fv,{scope:t,triggerRef:a,contentRef:c,contentId:Er(),titleId:Er(),descriptionId:Er(),open:l,onOpenChange:d,onOpenToggle:f.useCallback(()=>d(h=>!h),[d]),modal:i,children:n})};Gl.displayName=ro;var Ql="DialogTrigger",hv=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe(Ql,n),s=Pe(t,o.triggerRef);return u.jsx(ge.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Us(o.open),...r,ref:s,onClick:me(e.onClick,o.onOpenToggle)})});hv.displayName=Ql;var Fs="DialogPortal",[pv,Kl]=zl(Fs,{forceMount:void 0}),Yl=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Oe(Fs,t);return u.jsx(pv,{scope:t,forceMount:n,children:f.Children.map(r,i=>u.jsx(vn,{present:n||s.open,children:u.jsx(Is,{asChild:!0,container:o,children:i})}))})};Yl.displayName=Fs;var $r="DialogOverlay",Zl=f.forwardRef((e,t)=>{const n=Kl($r,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Oe($r,e.__scopeDialog);return s.modal?u.jsx(vn,{present:r||s.open,children:u.jsx(gv,{...o,ref:t})}):null});Zl.displayName=$r;var mv=iv("DialogOverlay.RemoveScroll"),gv=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe($r,n);return u.jsx(Vl,{as:mv,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(ge.div,{"data-state":Us(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ft="DialogContent",Xl=f.forwardRef((e,t)=>{const n=Kl(Ft,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Oe(Ft,e.__scopeDialog);return u.jsx(vn,{present:r||s.open,children:s.modal?u.jsx(yv,{...o,ref:t}):u.jsx(vv,{...o,ref:t})})});Xl.displayName=Ft;var yv=f.forwardRef((e,t)=>{const n=Oe(Ft,e.__scopeDialog),r=f.useRef(null),o=Pe(t,n.contentRef,r);return f.useEffect(()=>{const s=r.current;if(s)return sv(s)},[]),u.jsx(Jl,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:me(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:me(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:me(e.onFocusOutside,s=>s.preventDefault())})}),vv=f.forwardRef((e,t)=>{const n=Oe(Ft,e.__scopeDialog),r=f.useRef(!1),o=f.useRef(!1);return u.jsx(Jl,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((l=n.triggerRef.current)==null?void 0:l.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Jl=f.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,a=Oe(Ft,n),c=f.useRef(null),l=Pe(t,c);return wy(),u.jsxs(u.Fragment,{children:[u.jsx(Nl,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:u.jsx(Rs,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Us(a.open),...i,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(bv,{titleId:a.titleId}),u.jsx(Cv,{contentRef:c,descriptionId:a.descriptionId})]})]})}),Bs="DialogTitle",eu=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe(Bs,n);return u.jsx(ge.h2,{id:o.titleId,...r,ref:t})});eu.displayName=Bs;var tu="DialogDescription",nu=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe(tu,n);return u.jsx(ge.p,{id:o.descriptionId,...r,ref:t})});nu.displayName=tu;var ru="DialogClose",ou=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe(ru,n);return u.jsx(ge.button,{type:"button",...r,ref:t,onClick:me(e.onClick,()=>o.onOpenChange(!1))})});ou.displayName=ru;function Us(e){return e?"open":"closed"}var su="DialogTitleWarning",[l2,iu]=g1(su,{contentName:Ft,titleName:Bs,docsSlug:"dialog"}),bv=({titleId:e})=>{const t=iu(su),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
248
|
+
`)},nv=0,Qt=[];function rv(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),o=m.useState(nv++)[0],s=m.useState(Wl)[0],i=m.useRef(e);m.useEffect(function(){i.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=Ar([e.lockRef.current],(e.shards||[]).map(wa),!0).filter(Boolean);return h.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=m.useCallback(function(h,y){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!i.current.allowPinchZoom;var C=hr(h),x=n.current,_="deltaX"in h?h.deltaX:x[0]-C[0],E="deltaY"in h?h.deltaY:x[1]-C[1],R,P=h.target,A=Math.abs(_)>Math.abs(E)?"h":"v";if("touches"in h&&A==="h"&&P.type==="range")return!1;var M=window.getSelection(),k=M&&M.anchorNode,N=k?k===P||k.contains(P):!1;if(N)return!1;var V=va(A,P);if(!V)return!0;if(V?R=A:(R=A==="v"?"h":"v",V=va(A,P)),!V)return!1;if(!r.current&&"changedTouches"in h&&(_||E)&&(r.current=R),!R)return!0;var Q=r.current||R;return Jy(Q,y,h,Q==="h"?_:E)},[]),c=m.useCallback(function(h){var y=h;if(!(!Qt.length||Qt[Qt.length-1]!==s)){var C="deltaY"in y?ba(y):hr(y),x=t.current.filter(function(R){return R.name===y.type&&(R.target===y.target||y.target===R.shadowParent)&&ev(R.delta,C)})[0];if(x&&x.should){y.cancelable&&y.preventDefault();return}if(!x){var _=(i.current.shards||[]).map(wa).filter(Boolean).filter(function(R){return R.contains(y.target)}),E=_.length>0?a(y,_[0]):!i.current.noIsolation;E&&y.cancelable&&y.preventDefault()}}},[]),u=m.useCallback(function(h,y,C,x){var _={name:h,delta:y,target:C,should:x,shadowParent:ov(C)};t.current.push(_),setTimeout(function(){t.current=t.current.filter(function(E){return E!==_})},1)},[]),d=m.useCallback(function(h){n.current=hr(h),r.current=void 0},[]),f=m.useCallback(function(h){u(h.type,ba(h),h.target,a(h,e.lockRef.current))},[]),p=m.useCallback(function(h){u(h.type,hr(h),h.target,a(h,e.lockRef.current))},[]);m.useEffect(function(){return Qt.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Gt),document.addEventListener("touchmove",c,Gt),document.addEventListener("touchstart",d,Gt),function(){Qt=Qt.filter(function(h){return h!==s}),document.removeEventListener("wheel",c,Gt),document.removeEventListener("touchmove",c,Gt),document.removeEventListener("touchstart",d,Gt)}},[]);var g=e.removeScrollBar,w=e.inert;return m.createElement(m.Fragment,null,w?m.createElement(s,{styles:tv(o)}):null,g?m.createElement(zy,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ov(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const sv=Ly(Ul,rv);var zl=m.forwardRef(function(e,t){return m.createElement(oo,Ne({},e,{ref:t,sideCar:sv}))});zl.classNames=oo.classNames;var iv=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Kt=new WeakMap,pr=new WeakMap,mr={},Ao=0,Gl=function(e){return e&&(e.host||Gl(e.parentNode))},av=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Gl(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},cv=function(e,t,n,r){var o=av(t,Array.isArray(e)?e:[e]);mr[n]||(mr[n]=new WeakMap);var s=mr[n],i=[],a=new Set,c=new Set(o),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};o.forEach(u);var d=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(p){if(a.has(p))d(p);else try{var g=p.getAttribute(r),w=g!==null&&g!=="false",h=(Kt.get(p)||0)+1,y=(s.get(p)||0)+1;Kt.set(p,h),s.set(p,y),i.push(p),h===1&&w&&pr.set(p,!0),y===1&&p.setAttribute(n,"true"),w||p.setAttribute(r,"true")}catch(C){console.error("aria-hidden: cannot operate on ",p,C)}})};return d(t),a.clear(),Ao++,function(){i.forEach(function(f){var p=Kt.get(f)-1,g=s.get(f)-1;Kt.set(f,p),s.set(f,g),p||(pr.has(f)||f.removeAttribute(r),pr.delete(f)),g||f.removeAttribute(n)}),Ao--,Ao||(Kt=new WeakMap,Kt=new WeakMap,pr=new WeakMap,mr={})}},lv=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=iv(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),cv(r,o,n,"aria-hidden")):function(){return null}};function uv(e){const t=dv(e),n=m.forwardRef((r,o)=>{const{children:s,...i}=r,a=m.Children.toArray(s),c=a.find(hv);if(c){const u=c.props.children,d=a.map(f=>f===c?m.Children.count(u)>1?m.Children.only(null):m.isValidElement(u)?u.props.children:null:f);return l.jsx(t,{...i,ref:o,children:m.isValidElement(u)?m.cloneElement(u,void 0,d):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function dv(e){const t=m.forwardRef((n,r)=>{const{children:o,...s}=n;if(m.isValidElement(o)){const i=mv(o),a=pv(s,o.props);return o.type!==m.Fragment&&(a.ref=r?Yr(r,i):i),m.cloneElement(o,a)}return m.Children.count(o)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var fv=Symbol("radix.slottable");function hv(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===fv}function pv(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function mv(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var so="Dialog",[Ql]=Ps(so),[gv,Oe]=Ql(so),Kl=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=m.useRef(null),c=m.useRef(null),[u,d]=El({prop:r,defaultProp:o??!1,onChange:s,caller:so});return l.jsx(gv,{scope:t,triggerRef:a,contentRef:c,contentId:Sr(),titleId:Sr(),descriptionId:Sr(),open:u,onOpenChange:d,onOpenToggle:m.useCallback(()=>d(f=>!f),[d]),modal:i,children:n})};Kl.displayName=so;var Yl="DialogTrigger",yv=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe(Yl,n),s=Pe(t,o.triggerRef);return l.jsx(ge.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":qs(o.open),...r,ref:s,onClick:me(e.onClick,o.onOpenToggle)})});yv.displayName=Yl;var Hs="DialogPortal",[vv,Zl]=Ql(Hs,{forceMount:void 0}),Xl=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Oe(Hs,t);return l.jsx(vv,{scope:t,forceMount:n,children:m.Children.map(r,i=>l.jsx(vn,{present:n||s.open,children:l.jsx(Fs,{asChild:!0,container:o,children:i})}))})};Xl.displayName=Hs;var Br="DialogOverlay",Jl=m.forwardRef((e,t)=>{const n=Zl(Br,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Oe(Br,e.__scopeDialog);return s.modal?l.jsx(vn,{present:r||s.open,children:l.jsx(wv,{...o,ref:t})}):null});Jl.displayName=Br;var bv=uv("DialogOverlay.RemoveScroll"),wv=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe(Br,n);return l.jsx(zl,{as:bv,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsx(ge.div,{"data-state":qs(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ft="DialogContent",eu=m.forwardRef((e,t)=>{const n=Zl(Ft,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Oe(Ft,e.__scopeDialog);return l.jsx(vn,{present:r||s.open,children:s.modal?l.jsx(Cv,{...o,ref:t}):l.jsx(xv,{...o,ref:t})})});eu.displayName=Ft;var Cv=m.forwardRef((e,t)=>{const n=Oe(Ft,e.__scopeDialog),r=m.useRef(null),o=Pe(t,n.contentRef,r);return m.useEffect(()=>{const s=r.current;if(s)return lv(s)},[]),l.jsx(tu,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:me(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:me(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:me(e.onFocusOutside,s=>s.preventDefault())})}),xv=m.forwardRef((e,t)=>{const n=Oe(Ft,e.__scopeDialog),r=m.useRef(!1),o=m.useRef(!1);return l.jsx(tu,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),tu=m.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,a=Oe(Ft,n),c=m.useRef(null),u=Pe(t,c);return Sy(),l.jsxs(l.Fragment,{children:[l.jsx($l,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsx(Os,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":qs(a.open),...i,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(Ev,{titleId:a.titleId}),l.jsx(_v,{contentRef:c,descriptionId:a.descriptionId})]})]})}),Vs="DialogTitle",nu=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe(Vs,n);return l.jsx(ge.h2,{id:o.titleId,...r,ref:t})});nu.displayName=Vs;var ru="DialogDescription",ou=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe(ru,n);return l.jsx(ge.p,{id:o.descriptionId,...r,ref:t})});ou.displayName=ru;var su="DialogClose",iu=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oe(su,n);return l.jsx(ge.button,{type:"button",...r,ref:t,onClick:me(e.onClick,()=>o.onOpenChange(!1))})});iu.displayName=su;function qs(e){return e?"open":"closed"}var au="DialogTitleWarning",[x2,cu]=w1(au,{contentName:Ft,titleName:Vs,docsSlug:"dialog"}),Ev=({titleId:e})=>{const t=cu(au),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
249
249
|
|
|
250
250
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
251
251
|
|
|
252
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},wv="DialogDescriptionWarning",Cv=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${iu(wv).contentName}}.`;return f.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},xv=Gl,Ev=Yl,Sv=Zl,_v=Xl,Rv=eu,Tv=nu,Av=ou;const Pv="Overlay__M5Z83",Ov="Content__wAkP4",ya={Overlay:Pv,Content:Ov},jv="Header__VHxNf",Dv="Content__I04qM",Lv="Close__xSN-7",kv="Title__Dznh6",Iv="Footer__-8gzQ",Nv="Actions__kKF2Q",Ut={Header:jv,Content:Dv,Close:Lv,Title:kv,Footer:Iv,Actions:Nv},au=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Header,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});au.displayName="Header";const cu=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Content,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});cu.displayName="Content";const lu=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Footer,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});lu.displayName="Footer";const uu=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Title,t);return u.jsx(Rv,{ref:r,className:o,...n,children:e})});uu.displayName="Title";const du=R.forwardRef(({className:e,...t},n)=>{const r=D(Ut.Close,e);return u.jsx(Av,{ref:n,asChild:!0,className:r,...t,children:u.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M11 1L1 11M1 1L11 11",stroke:"#A9A9A9",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})});du.displayName="Close";const fu=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Actions,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});fu.displayName="Actions";const hu=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Description,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});hu.displayName="Description";const ie=({children:e,onClose:t,open:n=!1,className:r})=>{const o=()=>{t==null||t()};return u.jsx(xv,{onOpenChange:o,open:n,children:u.jsxs(Ev,{children:[u.jsx(Sv,{className:ya.Overlay}),u.jsxs(_v,{children:[u.jsx(Tv,{}),u.jsx("div",{className:D(ya.Content,r),children:e})]})]})})};ie.displayName="Dialog";ie.Header=au;ie.Content=cu;ie.Footer=lu;ie.Actions=fu;ie.Title=uu;ie.Description=hu;ie.Close=du;const Mv="pill__vtGwB",$v="pill--solid__F-mR4",Fv="pill--outline__gC-mh",va={pill:Mv,"pill--solid":"pill--solid__F-mR4",pillSolid:$v,"pill--outline":"pill--outline__gC-mh",pillOutline:Fv},Bv=({children:e,variant:t="solid",className:n})=>{const r=D(va.pill,va[`pill--${t}`],n);return u.jsx("div",{className:r,children:e})},Uv="DialogContent__-WjG9",Wv="Message__AUgVP",ba={DialogContent:Uv,Message:Wv},pu=({loading:e,title:t,children:n,className:r,onClose:o,onConfirm:s,...i})=>u.jsxs(ie,{...i,className:D(ba.DialogContent,r),children:[u.jsxs(ie.Header,{children:[u.jsx(ie.Title,{children:t}),u.jsx(ie.Close,{onClick:o})]}),u.jsx(ie.Content,{children:typeof n=="string"?u.jsx("p",{className:ba.Message,children:n}):n}),u.jsx(ie.Footer,{children:u.jsxs(ie.Actions,{children:[u.jsx(Dr,{onClick:o,disabled:e,variant:"outlined",children:"Cancel"}),u.jsx(Dr,{onClick:s,disabled:e,loading:e,variant:"contained",children:"Confirm"})]})})]});pu.displayName="ConfirmDialog";const Hv="container__AjtYJ",Vv="title__A2vCu",qv="description__bP6Ig",zv="mailToText__SdlsE",mr={container:Hv,title:Vv,description:qv,mailToText:zv},mu=()=>u.jsxs("svg",{width:"200",height:"200",viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M184.415 152.221C183.936 151.406 183.401 150.621 182.892 149.824C181.61 147.817 180.327 145.809 179.045 143.801C177.102 140.759 175.159 137.717 173.215 134.676C170.766 130.841 168.316 127.006 165.866 123.171C163.068 118.79 160.27 114.41 157.472 110.03C154.484 105.352 151.496 100.674 148.508 95.9965C145.474 91.2464 142.439 86.4963 139.405 81.7463C136.513 77.2189 133.621 72.6915 130.729 68.1641C128.123 64.084 125.517 60.0039 122.91 55.9238C120.748 52.5389 118.586 49.1541 116.424 45.7692C114.864 43.3273 113.304 40.8854 111.744 38.4436C110.943 37.1899 110.142 35.9362 109.342 34.6825C108.765 33.7802 108.096 32.9744 107.292 32.2572C104.604 29.8584 100.572 29.2302 97.2301 30.5252C94.5951 31.5463 92.6177 33.3853 91.0923 35.7373C90.8768 36.0696 90.6658 36.405 90.4526 36.7387C89.3951 38.3941 88.3378 40.0494 87.2803 41.7049C85.5124 44.4725 83.7444 47.2402 81.9765 50.0079C79.644 53.6594 77.3114 57.3111 74.9788 60.9626C72.2632 65.2138 69.5477 69.465 66.8321 73.7162C63.8817 78.3349 60.9313 82.9536 57.9811 87.5722C54.9542 92.3106 51.9274 97.0491 48.9006 101.787C45.9557 106.398 43.0107 111.008 40.0658 115.618C37.3487 119.872 34.6316 124.125 31.9145 128.379C29.6106 131.986 27.3067 135.592 25.0028 139.199C23.2565 141.933 21.5101 144.667 19.7639 147.4C18.7335 149.013 17.7031 150.626 16.6728 152.239C14.8665 155.067 13.7231 158.171 14.23 161.595C14.9672 166.576 19.2366 170.131 24.2215 170.137C25.559 170.139 26.8963 170.137 28.2338 170.137C30.9198 170.137 33.6058 170.137 36.2918 170.137C40.0725 170.137 43.8533 170.137 47.6341 170.137C52.2557 170.137 56.8772 170.137 61.4989 170.137C66.7339 170.137 71.969 170.137 77.204 170.137C82.7467 170.137 88.2894 170.137 93.8322 170.137C99.4529 170.137 105.074 170.137 110.694 170.137C116.139 170.137 121.584 170.137 127.029 170.137C132.044 170.137 137.06 170.137 142.075 170.137C146.425 170.137 150.776 170.137 155.127 170.137C158.516 170.137 161.904 170.137 165.293 170.137C167.49 170.137 169.686 170.137 171.883 170.137C172.633 170.137 173.384 170.137 174.135 170.137C178.404 170.087 182.136 167.627 184.212 163.932C186.248 160.307 186.562 155.866 184.415 152.221ZM94.0937 37.3471C94.0897 37.3539 94.0862 37.3597 94.0824 37.3661C94.0826 37.3652 94.0831 37.3642 94.0833 37.3632C94.0844 37.3581 94.0909 37.3518 94.0937 37.3471ZM178.584 164.489C178.476 164.538 178.524 164.516 178.584 164.489V164.489ZM180.937 162.79C180.979 162.72 181.118 162.485 181.127 162.498C181.145 162.528 181.058 162.647 180.937 162.79ZM181.821 160.333C181.806 160.446 181.782 160.646 181.773 160.697C181.736 160.919 181.686 161.139 181.637 161.359C181.637 161.359 181.637 161.359 181.637 161.359C181.629 161.377 181.621 161.399 181.61 161.426C181.54 161.604 181.472 161.785 181.406 161.965C181.402 161.977 181.398 161.988 181.394 161.999C181.304 162.16 181.219 162.323 181.123 162.481C181.074 162.562 181.016 162.641 180.97 162.724C180.949 162.762 180.936 162.785 180.93 162.798C180.727 163.035 180.436 163.332 180.388 163.385C180.696 163.049 180.535 163.229 180.318 163.42C180.172 163.548 180.018 163.666 179.869 163.79C179.848 163.807 179.831 163.822 179.816 163.835C179.797 163.845 179.775 163.857 179.747 163.873C179.576 163.97 179.411 164.078 179.238 164.171C179.043 164.277 178.844 164.373 178.642 164.463C178.556 164.494 178.471 164.526 178.384 164.553C177.532 164.819 176.835 164.945 176.084 164.954C175.296 164.954 174.508 164.954 173.719 164.954C171.519 164.954 169.318 164.954 167.118 164.954C163.751 164.954 160.385 164.954 157.019 164.954C152.756 164.954 148.493 164.954 144.231 164.954C139.275 164.954 134.319 164.954 129.364 164.954C123.981 164.954 118.598 164.954 113.215 164.954C107.651 164.954 102.086 164.954 96.5224 164.954C91.024 164.954 85.5255 164.954 80.0271 164.954C74.8407 164.954 69.6543 164.954 64.4679 164.954C59.8401 164.954 55.2123 164.954 50.5846 164.954C46.7784 164.954 42.9721 164.954 39.166 164.954C36.3891 164.954 33.6122 164.954 30.8354 164.954C29.3555 164.954 27.8756 164.954 26.3957 164.954C25.9641 164.954 25.534 164.958 25.1029 164.922C23.4511 164.785 22.11 164.207 20.7626 163.127C20.3445 162.792 19.7301 162.074 19.3142 161.434C19.2096 161.273 19.1102 161.109 19.0161 160.942C18.9707 160.861 18.8013 160.534 18.8105 160.558C18.7451 160.414 18.5329 159.846 18.4422 159.537C18.3467 159.211 18.2692 158.879 18.2129 158.544C18.2174 158.545 18.1876 158.285 18.1815 158.192C18.1669 157.964 18.1617 157.736 18.1651 157.508C18.166 157.455 18.1793 157.245 18.185 157.131C18.2055 157.005 18.2441 156.74 18.2591 156.662C18.2913 156.493 18.3319 156.326 18.3726 156.16C18.2821 156.539 18.4099 156.072 18.4891 155.866C18.518 155.79 18.6652 155.487 18.6846 155.432C18.7383 155.339 18.7932 155.243 18.8125 155.21C18.8692 155.114 18.9282 155.019 18.9875 154.924C19.0003 154.904 19.0137 154.884 19.0265 154.863C19.2211 154.554 19.4201 154.247 19.617 153.939C20.6335 152.348 21.6501 150.756 22.6667 149.165C24.3869 146.472 26.107 143.779 27.8271 141.086C30.0848 137.552 32.3425 134.017 34.6001 130.483C37.2646 126.312 39.9291 122.141 42.5935 117.97C45.5011 113.418 48.4086 108.866 51.3161 104.315C54.3131 99.6229 57.31 94.9312 60.3069 90.2397C63.2394 85.6489 66.172 81.058 69.1045 76.4672C71.819 72.2178 74.5334 67.9683 77.2479 63.719C79.5904 60.0517 81.9331 56.3844 84.2756 52.7172C86.0852 49.8842 87.8948 47.0513 89.7044 44.2184C90.8459 42.4315 91.9873 40.6446 93.1287 38.8578C93.3976 38.4368 93.6701 38.0178 93.9356 37.5945C93.9507 37.5705 93.9737 37.5416 93.9972 37.511C93.8744 37.7231 94.1597 37.2638 94.301 37.0921C94.4017 36.9695 94.5483 36.8114 94.5423 36.8113C94.6372 36.721 94.7333 36.6319 94.8323 36.546C94.9866 36.4121 95.1478 36.2876 95.3084 36.1615C94.9392 36.4513 95.3917 36.1121 95.5441 36.0212C96.7591 35.2961 98.1095 34.9498 99.7068 35.0725C101.356 35.1993 102.702 35.7434 104.07 36.8307C104.685 37.3192 105.311 38.1542 105.817 38.9457C106.592 40.1592 107.367 41.3727 108.142 42.5862C109.667 44.9733 111.192 47.3605 112.717 49.7476C114.838 53.0679 116.959 56.3881 119.08 59.7083C121.629 63.6999 124.179 67.6913 126.729 71.6829C129.579 76.1455 132.43 80.6082 135.281 85.0709C138.267 89.7458 141.253 94.4206 144.239 99.0955C147.207 103.742 150.176 108.388 153.144 113.035C155.94 117.412 158.736 121.789 161.532 126.167C164.002 130.034 166.473 133.902 168.943 137.769C170.935 140.886 172.926 144.003 174.917 147.12C176.27 149.239 177.623 151.357 178.976 153.475C179.551 154.376 180.134 155.272 180.702 156.177C181.138 156.872 181.311 157.219 181.54 157.972C181.6 158.167 181.652 158.363 181.697 158.561C181.711 158.623 181.759 158.873 181.78 158.97C181.787 159.063 181.815 159.319 181.819 159.383C181.831 159.579 181.836 159.775 181.834 159.972C181.834 160.022 181.825 160.217 181.821 160.333Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M98.5821 122.507C99.019 122.759 99.6307 122.629 100.038 122.389C101.205 121.703 101.925 120.275 102.041 118.92C103.115 106.361 106.514 75.1051 106.514 68.3062C106.514 59.902 92.8134 60.6835 92.0664 71.3279C91.6887 76.7103 97.5083 119.581 97.8266 121.187C97.9188 121.652 98.1423 122.253 98.5821 122.507Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M101.841 133.945C101.826 133.94 101.812 133.934 101.797 133.929C98.2767 132.6 94.4012 134.976 93.9964 138.717C93.9765 138.901 93.9636 139.086 93.958 139.272C93.8552 142.712 96.4467 146.126 99.8464 146.664C103.245 147.201 106.896 144.494 107.099 141.059C107.285 137.909 104.789 135.072 101.841 133.945Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M161.729 131.662C161.873 131.367 162.082 130.81 161.71 130.584C161.365 130.375 160.901 130.836 160.768 131.107C156.804 139.201 152.84 147.295 148.877 155.389C147.759 157.67 146.642 159.952 145.525 162.233C145.38 162.528 145.171 163.085 145.543 163.311C145.888 163.52 146.352 163.059 146.485 162.788C150.449 154.694 154.413 146.6 158.377 138.506C159.494 136.225 160.611 133.943 161.729 131.662Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M144.786 152.64C144.441 152.43 143.977 152.891 143.844 153.163C142.363 156.187 140.882 159.21 139.402 162.234C139.257 162.528 139.048 163.085 139.42 163.311C139.765 163.521 140.229 163.06 140.362 162.788C141.843 159.764 143.323 156.741 144.804 153.717C144.948 153.423 145.158 152.866 144.786 152.64Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M136.792 156.459C136.447 156.25 135.983 156.711 135.85 156.982C134.993 158.733 134.136 160.483 133.279 162.233C133.134 162.528 132.925 163.085 133.297 163.311C133.642 163.52 134.106 163.06 134.239 162.788C135.096 161.037 135.953 159.287 136.81 157.537C136.955 157.242 137.164 156.685 136.792 156.459Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M129.1 159.663C128.755 159.454 128.291 159.915 128.158 160.186C127.824 160.869 127.49 161.551 127.155 162.234C127.011 162.528 126.802 163.086 127.174 163.311C127.519 163.521 127.983 163.06 128.116 162.788C128.45 162.106 128.784 161.423 129.118 160.741C129.263 160.447 129.472 159.889 129.1 159.663Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M165.835 137.946C165.979 137.652 166.188 137.094 165.816 136.868C165.471 136.659 165.007 137.12 164.874 137.392C161.72 143.832 158.566 150.273 155.412 156.713C154.511 158.553 153.609 160.393 152.708 162.233C152.564 162.528 152.355 163.085 152.726 163.311C153.071 163.52 153.535 163.06 153.669 162.788C156.823 156.347 159.977 149.907 163.131 143.466C164.032 141.626 164.933 139.786 165.835 137.946Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M169.923 143.153C169.578 142.943 169.114 143.404 168.98 143.676C165.951 149.862 162.921 156.048 159.892 162.234C159.748 162.528 159.538 163.086 159.91 163.311C160.255 163.521 160.719 163.06 160.852 162.788C163.882 156.602 166.911 150.416 169.941 144.23C170.085 143.936 170.294 143.378 169.923 143.153Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M174.332 148.821C173.987 148.611 173.523 149.072 173.39 149.344C171.286 153.64 169.182 157.937 167.077 162.234C166.933 162.528 166.724 163.086 167.095 163.311C167.44 163.521 167.905 163.06 168.038 162.788C170.142 158.492 172.246 154.195 174.351 149.898C174.495 149.604 174.704 149.046 174.332 148.821Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M178.197 155.597C177.852 155.387 177.388 155.848 177.255 156.12C176.257 158.158 175.259 160.196 174.261 162.233C174.117 162.528 173.907 163.085 174.279 163.311C174.624 163.52 175.088 163.06 175.221 162.788C176.219 160.75 177.217 158.712 178.215 156.674C178.36 156.38 178.569 155.823 178.197 155.597Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M97.1962 40.2135C97.3477 39.9803 97.4773 39.477 97.1807 39.2971C96.8678 39.1072 96.5194 39.5265 96.3794 39.7419C94.7034 42.3205 93.0556 44.9176 91.4179 47.5205C88.1743 52.6759 84.976 57.8633 81.9271 63.1367C80.4155 65.7509 78.9283 68.3855 77.5879 71.0925C77.4642 71.3423 77.2879 71.8174 77.6034 72.0088C77.8975 72.1874 78.2905 71.7947 78.4047 71.564C80.9657 66.3919 83.9726 61.4308 86.9671 56.5018C89.7369 51.9427 92.5713 47.4226 95.4474 42.9297C96.0279 42.0228 96.6094 41.1164 97.1962 40.2135Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M75.3224 76.1247C75.0193 75.9408 74.6477 76.3459 74.521 76.5695C74.1645 77.1991 73.808 77.8286 73.4515 78.4581C73.3144 78.7003 73.1605 79.1884 73.467 79.3744C73.77 79.5583 74.1416 79.1532 74.2684 78.9296C74.6248 78.3001 74.9814 77.6705 75.3378 77.0411C75.475 76.7988 75.6288 76.3107 75.3224 76.1247Z",fill:"var(--pae-shell-color-secondary)"})]});mu.displayName="WarningIcon";const Gv="support@bluealba.com",Qv="@bluealba/pae-shell-ui",Ws=()=>{const{supportEmail:e=Gv}=za(Qv),t=`mailto:${e}?Subject=Support`;return u.jsxs("div",{className:mr.container,children:[u.jsx(mu,{}),u.jsx("div",{className:mr.title,children:"Oops! Something went wrong"}),u.jsxs("div",{className:mr.description,children:["If the error persists, ",u.jsx("a",{className:mr.mailToText,href:t,children:"contact the administrator."})]})]})};Ws.displayName="ErrorState";const Kv="List__h09XG",Yv="List__h09XG",Zv="Item__YMy2i",Xv="Item__YMy2i",Jv="List--primary__J2pbx",e0="List--secondary__gi1ao",t0="Item--selected__yRWow",n0="Title__RJmEW",r0="Title__RJmEW",o0="Description__DGyX2",s0="Description__DGyX2",i0="Actions__UHP5l",a0="Actions__UHP5l",c0="Action__q-R1I",l0="Action__q-R1I",u0="Item--disabled__Ke1u-",d0="List--small__ijoSR",f0="List--medium__E1FEY",h0="List--large__T8tfz",p0="Icon__dFr-L",m0="Icon__dFr-L",Re={List:Kv,list:Yv,Item:Zv,item:Xv,"List--primary":"List--primary__J2pbx",listPrimary:Jv,"List--secondary":"List--secondary__gi1ao",listSecondary:e0,"Item--selected":"Item--selected__yRWow",itemSelected:t0,Title:n0,title:r0,Description:o0,description:s0,Actions:i0,actions:a0,Action:c0,action:l0,"Item--disabled":"Item--disabled__Ke1u-",itemDisabled:u0,"List--small":"List--small__ijoSR",listSmall:d0,"List--medium":"List--medium__E1FEY",listMedium:f0,"List--large":"List--large__T8tfz",listLarge:h0,Icon:p0,icon:m0},gu=R.forwardRef(({children:e,className:t,selected:n,disabled:r=!1,...o},s)=>{const i=D(Re.Item,{[Re["Item--selected"]]:n,[Re["Item--disabled"]]:r},t);return u.jsx("li",{ref:s,className:i,role:"listitem","aria-disabled":r,...o,children:e})});gu.displayName="Item";const yu=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Re.Title,t);return u.jsx("h3",{ref:r,className:o,...n,children:e})});yu.displayName="Title";const vu=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Re.Description,t);return u.jsx("p",{ref:r,className:o,...n,children:e})});vu.displayName="Description";const Hs=({className:e,...t})=>u.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:[u.jsx("path",{d:"M6 6.5C6.27614 6.5 6.5 6.27614 6.5 6C6.5 5.72386 6.27614 5.5 6 5.5C5.72386 5.5 5.5 5.72386 5.5 6C5.5 6.27614 5.72386 6.5 6 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M9.5 6.5C9.77614 6.5 10 6.27614 10 6C10 5.72386 9.77614 5.5 9.5 5.5C9.22386 5.5 9 5.72386 9 6C9 6.27614 9.22386 6.5 9.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M2.5 6.5C2.77614 6.5 3 6.27614 3 6C3 5.72386 2.77614 5.5 2.5 5.5C2.22386 5.5 2 5.72386 2 6C2 6.27614 2.22386 6.5 2.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"})]});Hs.displayName="HorizontalDots";const bu=R.forwardRef(({children:e,className:t,onClick:n,...r},o)=>{const s=R.useRef(null),[i,a]=R.useState(!1),c=D(Re.Actions,t),l=()=>{const w=Rt["DropdownList--open"],m=Rt["DropdownList--closed"];document.querySelectorAll(`.${w}`).forEach(C=>{C!==s.current&&(C.classList.remove(w),C.classList.add(m))})},d=w=>{w.stopPropagation(),i?h():(a(!0),n==null||n(w))},h=()=>{a(!1)},p=w=>{w.key==="Escape"&&h()},g=w=>{s.current&&!s.current.contains(w.target)&&h()};return R.useEffect(()=>(i?(l(),document.addEventListener("keydown",p),document.addEventListener("click",g)):(document.removeEventListener("keydown",p),document.removeEventListener("click",g)),()=>{document.removeEventListener("keydown",p),document.removeEventListener("click",g)}),[i]),u.jsxs("div",{ref:o,className:c,onClick:d,role:"button",tabIndex:0,"data-testid":"actions",...r,children:[u.jsx(Hs,{}),u.jsx(Gr,{align:"left",ref:s,open:i,"data-testid":"actions-dropdown",role:"menu","aria-label":"Actions",children:e})]})});bu.displayName="Actions";const wu=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Re.Action,t);return u.jsx("button",{ref:r,className:o,...n,children:e})});wu.displayName="Action";const Cu=R.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Re.Icon,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});Cu.displayName="Icon";const Be=R.forwardRef(({children:e,className:t,size:n="medium",variant:r,...o},s)=>{const i=D(Re.List,{[Re[`List--${n}`]]:n,[Re[`List--${r}`]]:r},t);return u.jsx("ul",{ref:s,className:i,role:"list",...o,children:e})});Be.displayName="List";Be.Item=gu;Be.Badges=xs;Be.Badge=Cs;Be.Title=yu;Be.Description=vu;Be.Actions=bu;Be.Action=wu;Be.Icon=Cu;const g0="Navigation__uylxk",y0="PaginationContent__UpLw0",v0="PaginationEllipsis__perWk",b0="PaginationLink__GVUZj",w0="Active__u1Ahy",C0="Disabled__8WM0y",x0="Prev__wp4hc",E0="Next__eVyL5",Ze={Navigation:g0,PaginationContent:y0,PaginationEllipsis:v0,PaginationLink:b0,Active:w0,Disabled:C0,Prev:x0,Next:E0},xu=({className:e,...t})=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[u.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M9 6l6 6l-6 6"})]});xu.displayName="ChevronRight";const Eu=({className:e,...t})=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[u.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M15 6l-6 6l6 6"})]});Eu.displayName="ChevronLeft";const Vs=({className:e,...t})=>u.jsx("nav",{role:"navigation","aria-label":"pagination",className:D(Ze.Navigation,e),...t});Vs.displayName="Pagination";const qs=f.forwardRef(({className:e,...t},n)=>u.jsx("ul",{ref:n,className:D(Ze.PaginationContent,e),...t}));qs.displayName="PaginationContent";const _n=f.forwardRef(({className:e,...t},n)=>u.jsx("li",{ref:n,className:e,...t}));_n.displayName="PaginationItem";const Hn=({className:e,isActive:t,...n})=>u.jsx("a",{"aria-current":t?"page":void 0,className:D(Ze.PaginationLink,t&&Ze.Active,e),...n});Hn.displayName="PaginationLink";const zs=({className:e,disabled:t,...n})=>u.jsxs(Hn,{"aria-label":"Go to previous page",className:D(t&&Ze.Disabled,Ze.Prev,e),...n,children:[u.jsx(Eu,{}),u.jsx("span",{children:"Previous"})]});zs.displayName="PaginationPrevious";const Gs=({className:e,disabled:t,...n})=>u.jsxs(Hn,{"aria-label":"Go to next page",className:D(t&&Ze.Disabled,Ze.Next,e),...n,children:[u.jsx("span",{children:"Next"}),u.jsx(xu,{})]});Gs.displayName="PaginationNext";const Qs=({className:e,...t})=>u.jsx("span",{"aria-hidden":!0,className:D(Ze.PaginationEllipsis,e),...t,children:u.jsx(Hs,{})});Qs.displayName="PaginationEllipsis";function S0(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Su={exports:{}};(function(e,t){(function(n,r){typeof S0=="function"?e.exports=r():n.pluralize=r()})(ad,function(){var n=[],r=[],o={},s={},i={};function a(m){return typeof m=="string"?new RegExp("^"+m+"$","i"):m}function c(m,y){return m===y?y:m===m.toLowerCase()?y.toLowerCase():m===m.toUpperCase()?y.toUpperCase():m[0]===m[0].toUpperCase()?y.charAt(0).toUpperCase()+y.substr(1).toLowerCase():y.toLowerCase()}function l(m,y){return m.replace(/\$(\d{1,2})/g,function(C,x){return y[x]||""})}function d(m,y){return m.replace(y[0],function(C,x){var S=l(y[1],arguments);return c(C===""?m[x-1]:C,S)})}function h(m,y,C){if(!m.length||o.hasOwnProperty(m))return y;for(var x=C.length;x--;){var S=C[x];if(S[0].test(y))return d(y,S)}return y}function p(m,y,C){return function(x){var S=x.toLowerCase();return y.hasOwnProperty(S)?c(x,S):m.hasOwnProperty(S)?c(x,m[S]):h(S,x,C)}}function g(m,y,C,x){return function(S){var E=S.toLowerCase();return y.hasOwnProperty(E)?!0:m.hasOwnProperty(E)?!1:h(E,E,C)===E}}function w(m,y,C){var x=y===1?w.singular(m):w.plural(m);return(C?y+" ":"")+x}return w.plural=p(i,s,n),w.isPlural=g(i,s,n),w.singular=p(s,i,r),w.isSingular=g(s,i,r),w.addPluralRule=function(m,y){n.push([a(m),y])},w.addSingularRule=function(m,y){r.push([a(m),y])},w.addUncountableRule=function(m){if(typeof m=="string"){o[m.toLowerCase()]=!0;return}w.addPluralRule(m,"$0"),w.addSingularRule(m,"$0")},w.addIrregularRule=function(m,y){y=y.toLowerCase(),m=m.toLowerCase(),i[m]=y,s[y]=m},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(m){return w.addIrregularRule(m[0],m[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(m){return w.addPluralRule(m[0],m[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(m){return w.addSingularRule(m[0],m[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(w.addUncountableRule),w})})(Su);var _0=Su.exports;const R0=cd(_0),Ks=({count:e,singularText:t,children:n=(r,o)=>`${r} ${o}`})=>u.jsx(u.Fragment,{children:n(e,R0(t,e))});Ks.displayName="PluralizeCounter";const T0="TableContainer__osh6Z",A0="TableHeader__sYa-8",P0="Table__2cIs3",O0="selectable__WsGg1",j0="Cell__ZEv-K",D0="Right__YoM1V",L0="Center__CF3tr",k0="Sortable__JIV1V",I0="SortIcon__f0bBy",N0="Active__rJjxB",M0="Rotate__7cwTK",$0="Pagination__sbqMP",F0="PointerNone__kQdQS",fe={TableContainer:T0,TableHeader:A0,Table:P0,selectable:O0,Cell:j0,Right:D0,Center:L0,Sortable:k0,SortIcon:I0,Active:N0,Rotate:M0,Pagination:$0,PointerNone:F0},B0="EmptyStateContainer__Q9FEb",U0="Message__IHK6M",wa={EmptyStateContainer:B0,Message:U0},_u=({size:e=64})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsxs("g",{clipPath:"url(#clip-path)",children:[u.jsx("mask",{id:"mask0_1070_8032",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"64",height:"64",children:u.jsx("path",{d:"M64 0H0V64H64V0Z",fill:"white"})}),u.jsx("g",{mask:"url(#mask0_1070_8032)",children:u.jsx("path",{d:"M40 10.6673H13.3333V53.334H50.6667V21.334H40V10.6673ZM8 7.97932C8 6.51798 9.192 5.33398 10.664 5.33398H42.6667L56 18.6673V55.982C56.0024 56.3321 55.936 56.6793 55.8043 57.0039C55.6725 57.3284 55.4781 57.6239 55.2323 57.8732C54.9864 58.1225 54.6936 58.3209 54.3712 58.4572C54.0485 58.5935 53.7021 58.6649 53.352 58.6673H10.648C9.94768 58.6625 9.27739 58.3823 8.78192 57.8873C8.28645 57.3924 8.00557 56.7223 8 56.022V7.97932ZM36.0773 38.5233C33.8408 39.83 31.2056 40.2788 28.6627 39.786C26.1197 39.2929 23.8428 37.8921 22.2566 35.8444C20.6704 33.7966 19.883 31.2417 20.0414 28.6564C20.1998 26.071 21.293 23.6315 23.1173 21.7927C24.9532 19.9571 27.3955 18.8541 29.9864 18.6904C32.5773 18.5267 35.1389 19.3134 37.1912 20.9032C39.2435 22.493 40.6456 24.7767 41.1347 27.3263C41.6237 29.8759 41.1664 32.5164 39.848 34.7527L45.7413 40.646L41.9707 44.4193L36.0773 38.5233ZM34.4293 33.1047C34.9387 32.6126 35.3451 32.0241 35.6245 31.3735C35.904 30.7228 36.0512 30.0231 36.0573 29.3148C36.0635 28.6065 35.9285 27.9044 35.6603 27.2489C35.3923 26.5935 34.9963 25.998 34.4955 25.4972C33.9947 24.9964 33.3992 24.6004 32.7437 24.3323C32.0883 24.0641 31.3861 23.9292 30.6779 23.9353C29.9696 23.9415 29.2699 24.0886 28.6192 24.3681C27.9685 24.6476 27.38 25.0539 26.888 25.5633C25.9165 26.5692 25.3789 27.9164 25.3911 29.3148C25.4032 30.7132 25.9641 32.0508 26.9531 33.0396C27.9419 34.0287 29.2795 34.5895 30.6779 34.6015C32.0763 34.6137 33.4235 34.0761 34.4293 33.1047Z",fill:"currentColor"})})]}),u.jsx("defs",{children:u.jsx("clipPath",{id:"clip-path",children:u.jsx("rect",{width:"64",height:"64",fill:"white"})})})]});_u.displayName="EmptyStateIcon";const Ys=({message:e="No results found"})=>u.jsxs("div",{className:D(wa.EmptyStateContainer),children:[u.jsx(_u,{}),u.jsx("p",{className:wa.Message,children:e})]});Ys.displayName="EmptyState";const W0=(e,t,n=1)=>{if(e<=1)return["1"];const r=[],o=s=>{(r.length===0||r[r.length-1]!==s)&&r.push(s)};o(1),t-n>2&&o("...");for(let s=Math.max(2,t-n);s<=Math.min(e-1,t+n);s++)o(s);return t+n<e-1&&o("..."),o(e),r.map(String)},Ru=({page:e,totalPages:t,onPageChange:n})=>{const r=e===1,o=e===t;return u.jsx(Vs,{className:fe.Pagination,children:u.jsxs(qs,{children:[u.jsx(_n,{children:u.jsx(zs,{className:D({[fe.PointerNone]:r}),onClick:()=>!r&&n(e-1)})}),W0(t,e).map((s,i)=>u.jsxs(_n,{children:[s==="..."&&u.jsx(Qs,{}),s!=="..."&&u.jsx(Hn,{isActive:+s===e,onClick:()=>+s!==e&&n(+s),children:s})]},i)),u.jsx(_n,{children:u.jsx(Gs,{className:D({[fe.PointerNone]:o}),onClick:()=>!o&&n(e+1)})})]})})};Ru.displayName="TablePagination";const Tu=({className:e,...t})=>u.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:u.jsx("path",{d:"M6 2.5V9.5M6 9.5L9.5 6M6 9.5L2.5 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});Tu.displayName="ArrowDown";const Au=({columns:e,data:t,isLoading:n,totalCount:r=0,headerLabel:o,sort:s,loadingConfig:i,pagination:a,onRowClick:c})=>{const{count:l=5,height:d=40}=i||{},h=y=>y.sortName??y.name,p=y=>D({[fe.Cell]:!0,[fe.Center]:y.align==="center",[fe.Right]:y.align==="right",[fe.Sortable]:y.isSortable}),g=y=>{if(!s)return"";const C=h(y);return D({[fe.SortIcon]:!0,[fe.Active]:y.isSortable&&s.field===C,[fe.Rotate]:s.field===C&&s.direction==="asc"})},w=y=>()=>c==null?void 0:c(y),m=y=>()=>{if(!s||!y.isSortable)return;const{field:C,direction:x,onSort:S}=s,E=h(y);C===E?S(E,x==="asc"?"desc":"asc"):S(E,"asc")};return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:fe.TableContainer,children:[o&&u.jsx("div",{className:fe.TableHeader,children:u.jsx(Ks,{count:r,singularText:o,children:(y,C)=>`${y} ${C}`})}),u.jsxs("table",{className:fe.Table,children:[u.jsx("thead",{children:u.jsx("tr",{children:e.map(y=>u.jsx("th",{children:u.jsxs("div",{className:p(y),onClick:m(y),children:[u.jsx("span",{children:y.displayName}),y.isSortable&&u.jsx(Tu,{className:g(y)})]})},y.name))})}),u.jsx("tbody",{children:u.jsxs(ft,{children:[u.jsx(ft.When,{condition:n,children:[...Array(l).keys()].map(y=>u.jsx("tr",{children:u.jsx("td",{colSpan:e.length,style:{padding:4},children:u.jsx(Kr,{height:d})})},y))}),u.jsx(ft.When,{condition:!t.length,children:u.jsx("tr",{children:u.jsx("td",{colSpan:e.length,children:u.jsx(Ys,{})})})}),u.jsx(ft.Else,{children:t.map((y,C)=>u.jsx("tr",{className:c&&fe.selectable,onClick:w(y),children:e.map(x=>u.jsx("td",{style:x.width?{width:x.width}:{},children:u.jsx("div",{className:p(x),children:x.cellRenderer?x.cellRenderer(y):x.valueGetter?x.valueGetter(y):y[x.name]})},`${x.name}-${C}`))},C))})]})})]})]}),a&&u.jsx(Ru,{...a})]})};Au.displayName="Table";const H0="alert__LblpE",V0="destructive__bLNSM",q0="alertTitle__gblKf",z0="alertDescription__BuVHV",Fr={alert:H0,default:"default__mgO6A",destructive:V0,alertTitle:q0,alertDescription:z0},oo=({className:e,variant:t="default",children:n,...r})=>u.jsx("div",{"data-slot":"alert",role:"alert",className:D(Fr.alert,Fr[t],e),...r,children:n}),G0=f.forwardRef(({children:e,className:t,...n},r)=>u.jsx("div",{ref:r,"data-slot":"alert-title",className:D(Fr.alertTitle,t),...n,children:e})),Q0=f.forwardRef(({children:e,className:t,...n},r)=>u.jsx("div",{ref:r,"data-slot":"alert-description",className:D(Fr.alertDescription,t),...n,children:e}));oo.displayName="Alert";oo.Title=G0;oo.Description=Q0;function Ca(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Br(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ca(Object(n),!0).forEach(function(r){K0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ca(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pu(e){return(Pu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function K0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cs(e){return(cs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function Ou(e,t){var n;if(typeof(n=t.domElement?function(){return t.domElement}:t.domElementGetter?t.domElementGetter:e.domElementGetter?e.domElementGetter:function(r){var o=r.appName||r.name;if(!o)throw Error("single-spa's dom-element-getter-helpers was not given an application name as a prop, so it can't make a unique dom element container for the react application");var s="single-spa-application:".concat(o);return function(){var i=document.getElementById(s);return i||((i=document.createElement("div")).id=s,document.body.appendChild(i)),i}}(t))!="function")throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(t.name,"'. Expected a function, received ").concat(cs(n)));return function(){var r=n(t);if(!(r instanceof HTMLElement))throw Error("single-spa's dom-element-getter-helpers: domElementGetter returned an invalid dom element for application or parcel '".concat(t.name,"'. Expected HTMLElement, received ").concat(cs(r)));return r}}var jn=null;try{jn=require("react").createContext()}catch{}var Y0={React:null,ReactDOM:null,ReactDOMClient:null,rootComponent:null,loadRootComponent:null,errorBoundary:null,errorBoundaryClass:null,domElementGetter:null,parcelCanUpdate:!0,suppressComponentDidCatchWarning:!1,domElements:{},renderResults:{},updateResolves:{},unmountResolves:{}};function Z0(e){if(Pu(e)!=="object")throw new Error("single-spa-react requires a configuration object");var t,n=Br(Br({},Y0),e);if(!n.React)throw new Error("single-spa-react must be passed opts.React");if(!n.ReactDOM&&!n.ReactDOMClient)throw new Error("single-spa-react must be passed opts.ReactDOM or opts.ReactDOMClient");if(n.renderType||((t=n.ReactDOMClient)!==null&&t!==void 0&&t.createRoot?n.renderType="createRoot":n.renderType="render"),!n.rootComponent&&!n.loadRootComponent)throw new Error("single-spa-react must be passed opts.rootComponent or opts.loadRootComponent");if(n.errorBoundary&&typeof n.errorBoundary!="function")throw Error("The errorBoundary opt for single-spa-react must either be omitted or be a function that returns React elements");!jn&&n.React.createContext&&(jn=n.React.createContext()),n.SingleSpaRoot=function(o){function s(i){s.displayName="SingleSpaRoot(".concat(i.name,")")}return s.prototype=Object.create(o.React.Component.prototype),s.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},s.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},s.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},s}(n);var r={bootstrap:X0.bind(null,n),mount:J0.bind(null,n),unmount:e2.bind(null,n)};return n.parcelCanUpdate&&(r.update=t2.bind(null,n)),r}function X0(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(n){e.rootComponent=n})}function J0(e,t){return new Promise(function(n,r){e.suppressComponentDidCatchWarning||!function(a){if(!(a&&typeof a.version=="string"&&a.version.indexOf(".")>=0))return!1;var c=a.version.slice(0,a.version.indexOf("."));try{return Number(c)>=16}catch{return!1}}(e.React)||e.errorBoundary||e.errorBoundaryClass||(e.rootComponent.prototype?e.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var o=ju(e,t,function(){n(this)}),s=Ou(e,t)(),i=function(a){var c=a.reactDom,l=a.renderType,d=a.elementToRender,h=a.domElement,p=c[l];if(typeof p!="function")throw new Error('renderType "'.concat(l,'" did not return a function.'));switch(l){case"createRoot":case"unstable_createRoot":case"createBlockingRoot":case"unstable_createBlockingRoot":var g=p(h);return g.render(d),g;case"hydrateRoot":return p(h,d);case"hydrate":default:return p(d,h),null}}({elementToRender:o,domElement:s,reactDom:Zs(e),renderType:n2(e)});e.domElements[t.name]=s,e.renderResults[t.name]=i})}function e2(e,t){return new Promise(function(n){e.unmountResolves[t.name]=n;var r=e.renderResults[t.name];r&&r.unmount?r.unmount():Zs(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]})}function t2(e,t){return new Promise(function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var r=ju(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(r);else{var s=Ou(e,t)();Zs(e).render(r,s)}})}function Zs(e){return e.ReactDOMClient||e.ReactDOM}function n2(e){return typeof e.renderType=="function"?e.renderType():e.renderType}function ju(e,t,n){var r=e.React.createElement(e.rootComponent,t),o=jn?e.React.createElement(jn.Provider,{value:t},r):r;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(s,i){function a(c){s.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},a.displayName="SingleSpaReactErrorBoundary(".concat(c.name,")")}return a.prototype=Object.create(s.React.Component.prototype),a.prototype.render=function(){return this.state.caughtError?(s.errorBoundary||i.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},a.prototype.componentDidCatch=function(c,l){this.setState({caughtError:c,caughtErrorInfo:l})},a}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),o=e.React.createElement(e.SingleSpaRoot,Br(Br({},t),{},{mountFinished:n,updateFinished:function(){e.updateResolves[t.name]&&(e.updateResolves[t.name].forEach(function(s){return s()}),delete e.updateResolves[t.name])},unmountFinished:function(){e.unmountResolves[t.name]&&(e.unmountResolves[t.name](),delete e.unmountResolves[t.name])}}),o)}const r2=e=>{const t=new dh;return function(r){if(!r)throw new Error("Microfrontend did not receive any properties !!");const o=ds(r.module.name);return u.jsx(Ua,{module:o,children:u.jsxs(gh,{client:t,children:[u.jsx(e,{...r}),u.jsx(Kf,{position:"top-right",reverseOrder:!0})]})})}},o2=({rootComponent:e,...t})=>Z0({errorBoundary(n){return console.error(n),u.jsx(Ws,{})},...t,rootComponent:r2(e)}),s2=e=>{const t={authUser:{id:"testuser",username:"testuser",displayName:"Test User",applications:[]},catalog:[],authentication:{passwordMethodEnabled:!0,registerEnabled:!0,invitationsEnabled:!0,resetPasswordExpiration:3e4,passwordConstraints:{lowerCaseRequired:!1,upperCaseRequired:!1,symbolRequired:!1,digitRequired:!1,minLength:0,maxLength:8},sessionExpiration:864e5,jwtSecret:"",sessionIncludeOrigUser:!1,impersonationMode:"cookie",canImpersonateNonExistentUsers:!1,providers:[]},platformVersion:"0.0.0",featureFlags:{}};Object.defineProperty(window,Rn,{value:e?Td(t,e):t})},Xs=()=>{const[e]=Nn();return e.featureFlags},i2=e=>!!Xs()[e],Du=({flag:e,children:t,fallback:n=null,invert:r=!1})=>{const s=Xs()[e]===!0;return(r?!s:s)?u.jsx(u.Fragment,{children:t}):u.jsx(u.Fragment,{children:n})};Du.displayName="FeatureFlagGuard";exports.Alert=oo;exports.ApplicationIcon=Nc;exports.Authorized=ws;exports.Badge=Cs;exports.Badges=xs;exports.Button=Dr;exports.ClipboardCheckIcon=Fc;exports.ClipboardIcon=$c;exports.ConfirmDialog=pu;exports.CopyToClipboardButton=Rp;exports.Dialog=ie;exports.DropdownList=Gr;exports.EmptyState=Ys;exports.ErrorState=Ws;exports.ExtendExtensionPoint=Vh;exports.ExtensionPoint=jc;exports.EyeIcon=Il;exports.FeatureFlagGuard=Du;exports.FieldGroup=Bc;exports.Input=zr;exports.InputError=Uc;exports.Label=Wc;exports.List=Be;exports.ModulePlaceHolder=Ic;exports.Pagination=Vs;exports.PaginationContent=qs;exports.PaginationEllipsis=Qs;exports.PaginationItem=_n;exports.PaginationLink=Hn;exports.PaginationNext=Gs;exports.PaginationPrevious=zs;exports.PasswordInput=fy;exports.Pill=Bv;exports.PlatformEventListener=Zh;exports.PlatformEvents=td;exports.PluralizeCounter=Ks;exports.SearchAutocomplete=zc;exports.SearchInput=Ss;exports.Select=Es;exports.Show=ft;exports.Skeleton=Kr;exports.SkeletonList=Kc;exports.Spinner=Dl;exports.Switch=Ll;exports.Table=Au;exports.Tabs=iy;exports.TabsContent=ly;exports.TabsList=ay;exports.TabsTrigger=cy;exports.TextArea=Vc;exports.Tooltip=jl;exports.authorized=Jh;exports.dropdownListStyles=Rt;exports.extensionPoint=zh;exports.getApplications=us;exports.getInitials=yd;exports.getOperations=Wa;exports.hasAccess=Va;exports.initializeMicroFrontend=o2;exports.isPlatformCustomizationCompleted=of;exports.isValidEmail=gd;exports.logout=hd;exports.navigateTo=pd;exports.platformHaveAnyCustomization=rf;exports.setupTestEnvironment=s2;exports.useApplicationIcon=Xa;exports.useApplicationJSModule=Hr;exports.useApplicationMenu=Ed;exports.useApplicationUIModule=Za;exports.useApplications=Ka;exports.useAuth=Ur;exports.useCatalog=Mn;exports.useCurrentApplication=hs;exports.useCurrentApplicationName=ec;exports.useCurrentJSModule=jd;exports.useDynamicFonts=ac;exports.useDynamicStyleSheet=ic;exports.useExtendExtensionPoint=oc;exports.useExtensionPoint=rc;exports.useFeatureFlag=i2;exports.useFeatureFlags=Xs;exports.useGetPlatformTheme=nf;exports.useHasNoSession=ud;exports.useLocation=$a;exports.useModule=ds;exports.useModuleCommonPaths=fd;exports.useModuleConfig=qa;exports.useModuleConfigByName=za;exports.useModuleMenu=Ja;exports.useModuleMetadata=$n;exports.useMutableCatalog=id;exports.useNotifications=ms;exports.useOperations=Ha;exports.usePAECustomizationsLoadingState=tf;exports.usePAEState=Nn;exports.usePlatformCustomization=ef;exports.usePlatformEventListener=sc;exports.useResource=Ah;exports.useResourceActions=Pc;exports.useServiceBaseURL=tc;exports.useServiceInvoker=ps;exports.useTenants=Uh;exports.useTrackEvent=Nd;exports.useTrackEvents=nc;exports.useUIApplications=Ya;exports.useUserState=Hh;
|
|
252
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return m.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Sv="DialogDescriptionWarning",_v=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${cu(Sv).contentName}}.`;return m.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Rv=Kl,Tv=Xl,Av=Jl,Pv=eu,Ov=nu,jv=ou,Dv=iu;const Lv="Overlay__M5Z83",Nv="Content__wAkP4",Ca={Overlay:Lv,Content:Nv},kv="Header__VHxNf",Iv="Content__I04qM",Mv="Close__xSN-7",$v="Title__Dznh6",Fv="Footer__-8gzQ",Bv="Actions__kKF2Q",Ut={Header:kv,Content:Iv,Close:Mv,Title:$v,Footer:Fv,Actions:Bv},lu=S.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Header,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});lu.displayName="Header";const uu=S.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Content,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});uu.displayName="Content";const du=S.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Footer,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});du.displayName="Footer";const fu=S.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Title,t);return l.jsx(Ov,{ref:r,className:o,...n,children:e})});fu.displayName="Title";const hu=S.forwardRef(({className:e,...t},n)=>{const r=D(Ut.Close,e);return l.jsx(Dv,{ref:n,asChild:!0,className:r,...t,children:l.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M11 1L1 11M1 1L11 11",stroke:"#A9A9A9",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})});hu.displayName="Close";const pu=S.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Actions,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});pu.displayName="Actions";const mu=S.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ut.Description,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});mu.displayName="Description";const ie=({children:e,onClose:t,open:n=!1,className:r})=>{const o=()=>{t==null||t()};return l.jsx(Rv,{onOpenChange:o,open:n,children:l.jsxs(Tv,{children:[l.jsx(Av,{className:Ca.Overlay}),l.jsxs(Pv,{children:[l.jsx(jv,{}),l.jsx("div",{className:D(Ca.Content,r),children:e})]})]})})};ie.displayName="Dialog";ie.Header=lu;ie.Content=uu;ie.Footer=du;ie.Actions=pu;ie.Title=fu;ie.Description=mu;ie.Close=hu;const Uv="pill__vtGwB",Wv="pill--solid__F-mR4",Hv="pill--outline__gC-mh",xa={pill:Uv,"pill--solid":"pill--solid__F-mR4",pillSolid:Wv,"pill--outline":"pill--outline__gC-mh",pillOutline:Hv},Vv=({children:e,variant:t="solid",className:n})=>{const r=D(xa.pill,xa[`pill--${t}`],n);return l.jsx("div",{className:r,children:e})},qv="DialogContent__-WjG9",zv="Message__AUgVP",Ea={DialogContent:qv,Message:zv},gu=({loading:e,title:t,children:n,className:r,onClose:o,onConfirm:s,...i})=>l.jsxs(ie,{...i,className:D(Ea.DialogContent,r),children:[l.jsxs(ie.Header,{children:[l.jsx(ie.Title,{children:t}),l.jsx(ie.Close,{onClick:o})]}),l.jsx(ie.Content,{children:typeof n=="string"?l.jsx("p",{className:Ea.Message,children:n}):n}),l.jsx(ie.Footer,{children:l.jsxs(ie.Actions,{children:[l.jsx(Lr,{onClick:o,disabled:e,variant:"outlined",children:"Cancel"}),l.jsx(Lr,{onClick:s,disabled:e,loading:e,variant:"contained",children:"Confirm"})]})})]});gu.displayName="ConfirmDialog";const Gv="container__AjtYJ",Qv="title__A2vCu",Kv="description__bP6Ig",Yv="mailToText__SdlsE",gr={container:Gv,title:Qv,description:Kv,mailToText:Yv},yu=()=>l.jsxs("svg",{width:"200",height:"200",viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M184.415 152.221C183.936 151.406 183.401 150.621 182.892 149.824C181.61 147.817 180.327 145.809 179.045 143.801C177.102 140.759 175.159 137.717 173.215 134.676C170.766 130.841 168.316 127.006 165.866 123.171C163.068 118.79 160.27 114.41 157.472 110.03C154.484 105.352 151.496 100.674 148.508 95.9965C145.474 91.2464 142.439 86.4963 139.405 81.7463C136.513 77.2189 133.621 72.6915 130.729 68.1641C128.123 64.084 125.517 60.0039 122.91 55.9238C120.748 52.5389 118.586 49.1541 116.424 45.7692C114.864 43.3273 113.304 40.8854 111.744 38.4436C110.943 37.1899 110.142 35.9362 109.342 34.6825C108.765 33.7802 108.096 32.9744 107.292 32.2572C104.604 29.8584 100.572 29.2302 97.2301 30.5252C94.5951 31.5463 92.6177 33.3853 91.0923 35.7373C90.8768 36.0696 90.6658 36.405 90.4526 36.7387C89.3951 38.3941 88.3378 40.0494 87.2803 41.7049C85.5124 44.4725 83.7444 47.2402 81.9765 50.0079C79.644 53.6594 77.3114 57.3111 74.9788 60.9626C72.2632 65.2138 69.5477 69.465 66.8321 73.7162C63.8817 78.3349 60.9313 82.9536 57.9811 87.5722C54.9542 92.3106 51.9274 97.0491 48.9006 101.787C45.9557 106.398 43.0107 111.008 40.0658 115.618C37.3487 119.872 34.6316 124.125 31.9145 128.379C29.6106 131.986 27.3067 135.592 25.0028 139.199C23.2565 141.933 21.5101 144.667 19.7639 147.4C18.7335 149.013 17.7031 150.626 16.6728 152.239C14.8665 155.067 13.7231 158.171 14.23 161.595C14.9672 166.576 19.2366 170.131 24.2215 170.137C25.559 170.139 26.8963 170.137 28.2338 170.137C30.9198 170.137 33.6058 170.137 36.2918 170.137C40.0725 170.137 43.8533 170.137 47.6341 170.137C52.2557 170.137 56.8772 170.137 61.4989 170.137C66.7339 170.137 71.969 170.137 77.204 170.137C82.7467 170.137 88.2894 170.137 93.8322 170.137C99.4529 170.137 105.074 170.137 110.694 170.137C116.139 170.137 121.584 170.137 127.029 170.137C132.044 170.137 137.06 170.137 142.075 170.137C146.425 170.137 150.776 170.137 155.127 170.137C158.516 170.137 161.904 170.137 165.293 170.137C167.49 170.137 169.686 170.137 171.883 170.137C172.633 170.137 173.384 170.137 174.135 170.137C178.404 170.087 182.136 167.627 184.212 163.932C186.248 160.307 186.562 155.866 184.415 152.221ZM94.0937 37.3471C94.0897 37.3539 94.0862 37.3597 94.0824 37.3661C94.0826 37.3652 94.0831 37.3642 94.0833 37.3632C94.0844 37.3581 94.0909 37.3518 94.0937 37.3471ZM178.584 164.489C178.476 164.538 178.524 164.516 178.584 164.489V164.489ZM180.937 162.79C180.979 162.72 181.118 162.485 181.127 162.498C181.145 162.528 181.058 162.647 180.937 162.79ZM181.821 160.333C181.806 160.446 181.782 160.646 181.773 160.697C181.736 160.919 181.686 161.139 181.637 161.359C181.637 161.359 181.637 161.359 181.637 161.359C181.629 161.377 181.621 161.399 181.61 161.426C181.54 161.604 181.472 161.785 181.406 161.965C181.402 161.977 181.398 161.988 181.394 161.999C181.304 162.16 181.219 162.323 181.123 162.481C181.074 162.562 181.016 162.641 180.97 162.724C180.949 162.762 180.936 162.785 180.93 162.798C180.727 163.035 180.436 163.332 180.388 163.385C180.696 163.049 180.535 163.229 180.318 163.42C180.172 163.548 180.018 163.666 179.869 163.79C179.848 163.807 179.831 163.822 179.816 163.835C179.797 163.845 179.775 163.857 179.747 163.873C179.576 163.97 179.411 164.078 179.238 164.171C179.043 164.277 178.844 164.373 178.642 164.463C178.556 164.494 178.471 164.526 178.384 164.553C177.532 164.819 176.835 164.945 176.084 164.954C175.296 164.954 174.508 164.954 173.719 164.954C171.519 164.954 169.318 164.954 167.118 164.954C163.751 164.954 160.385 164.954 157.019 164.954C152.756 164.954 148.493 164.954 144.231 164.954C139.275 164.954 134.319 164.954 129.364 164.954C123.981 164.954 118.598 164.954 113.215 164.954C107.651 164.954 102.086 164.954 96.5224 164.954C91.024 164.954 85.5255 164.954 80.0271 164.954C74.8407 164.954 69.6543 164.954 64.4679 164.954C59.8401 164.954 55.2123 164.954 50.5846 164.954C46.7784 164.954 42.9721 164.954 39.166 164.954C36.3891 164.954 33.6122 164.954 30.8354 164.954C29.3555 164.954 27.8756 164.954 26.3957 164.954C25.9641 164.954 25.534 164.958 25.1029 164.922C23.4511 164.785 22.11 164.207 20.7626 163.127C20.3445 162.792 19.7301 162.074 19.3142 161.434C19.2096 161.273 19.1102 161.109 19.0161 160.942C18.9707 160.861 18.8013 160.534 18.8105 160.558C18.7451 160.414 18.5329 159.846 18.4422 159.537C18.3467 159.211 18.2692 158.879 18.2129 158.544C18.2174 158.545 18.1876 158.285 18.1815 158.192C18.1669 157.964 18.1617 157.736 18.1651 157.508C18.166 157.455 18.1793 157.245 18.185 157.131C18.2055 157.005 18.2441 156.74 18.2591 156.662C18.2913 156.493 18.3319 156.326 18.3726 156.16C18.2821 156.539 18.4099 156.072 18.4891 155.866C18.518 155.79 18.6652 155.487 18.6846 155.432C18.7383 155.339 18.7932 155.243 18.8125 155.21C18.8692 155.114 18.9282 155.019 18.9875 154.924C19.0003 154.904 19.0137 154.884 19.0265 154.863C19.2211 154.554 19.4201 154.247 19.617 153.939C20.6335 152.348 21.6501 150.756 22.6667 149.165C24.3869 146.472 26.107 143.779 27.8271 141.086C30.0848 137.552 32.3425 134.017 34.6001 130.483C37.2646 126.312 39.9291 122.141 42.5935 117.97C45.5011 113.418 48.4086 108.866 51.3161 104.315C54.3131 99.6229 57.31 94.9312 60.3069 90.2397C63.2394 85.6489 66.172 81.058 69.1045 76.4672C71.819 72.2178 74.5334 67.9683 77.2479 63.719C79.5904 60.0517 81.9331 56.3844 84.2756 52.7172C86.0852 49.8842 87.8948 47.0513 89.7044 44.2184C90.8459 42.4315 91.9873 40.6446 93.1287 38.8578C93.3976 38.4368 93.6701 38.0178 93.9356 37.5945C93.9507 37.5705 93.9737 37.5416 93.9972 37.511C93.8744 37.7231 94.1597 37.2638 94.301 37.0921C94.4017 36.9695 94.5483 36.8114 94.5423 36.8113C94.6372 36.721 94.7333 36.6319 94.8323 36.546C94.9866 36.4121 95.1478 36.2876 95.3084 36.1615C94.9392 36.4513 95.3917 36.1121 95.5441 36.0212C96.7591 35.2961 98.1095 34.9498 99.7068 35.0725C101.356 35.1993 102.702 35.7434 104.07 36.8307C104.685 37.3192 105.311 38.1542 105.817 38.9457C106.592 40.1592 107.367 41.3727 108.142 42.5862C109.667 44.9733 111.192 47.3605 112.717 49.7476C114.838 53.0679 116.959 56.3881 119.08 59.7083C121.629 63.6999 124.179 67.6913 126.729 71.6829C129.579 76.1455 132.43 80.6082 135.281 85.0709C138.267 89.7458 141.253 94.4206 144.239 99.0955C147.207 103.742 150.176 108.388 153.144 113.035C155.94 117.412 158.736 121.789 161.532 126.167C164.002 130.034 166.473 133.902 168.943 137.769C170.935 140.886 172.926 144.003 174.917 147.12C176.27 149.239 177.623 151.357 178.976 153.475C179.551 154.376 180.134 155.272 180.702 156.177C181.138 156.872 181.311 157.219 181.54 157.972C181.6 158.167 181.652 158.363 181.697 158.561C181.711 158.623 181.759 158.873 181.78 158.97C181.787 159.063 181.815 159.319 181.819 159.383C181.831 159.579 181.836 159.775 181.834 159.972C181.834 160.022 181.825 160.217 181.821 160.333Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M98.5821 122.507C99.019 122.759 99.6307 122.629 100.038 122.389C101.205 121.703 101.925 120.275 102.041 118.92C103.115 106.361 106.514 75.1051 106.514 68.3062C106.514 59.902 92.8134 60.6835 92.0664 71.3279C91.6887 76.7103 97.5083 119.581 97.8266 121.187C97.9188 121.652 98.1423 122.253 98.5821 122.507Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M101.841 133.945C101.826 133.94 101.812 133.934 101.797 133.929C98.2767 132.6 94.4012 134.976 93.9964 138.717C93.9765 138.901 93.9636 139.086 93.958 139.272C93.8552 142.712 96.4467 146.126 99.8464 146.664C103.245 147.201 106.896 144.494 107.099 141.059C107.285 137.909 104.789 135.072 101.841 133.945Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M161.729 131.662C161.873 131.367 162.082 130.81 161.71 130.584C161.365 130.375 160.901 130.836 160.768 131.107C156.804 139.201 152.84 147.295 148.877 155.389C147.759 157.67 146.642 159.952 145.525 162.233C145.38 162.528 145.171 163.085 145.543 163.311C145.888 163.52 146.352 163.059 146.485 162.788C150.449 154.694 154.413 146.6 158.377 138.506C159.494 136.225 160.611 133.943 161.729 131.662Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M144.786 152.64C144.441 152.43 143.977 152.891 143.844 153.163C142.363 156.187 140.882 159.21 139.402 162.234C139.257 162.528 139.048 163.085 139.42 163.311C139.765 163.521 140.229 163.06 140.362 162.788C141.843 159.764 143.323 156.741 144.804 153.717C144.948 153.423 145.158 152.866 144.786 152.64Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M136.792 156.459C136.447 156.25 135.983 156.711 135.85 156.982C134.993 158.733 134.136 160.483 133.279 162.233C133.134 162.528 132.925 163.085 133.297 163.311C133.642 163.52 134.106 163.06 134.239 162.788C135.096 161.037 135.953 159.287 136.81 157.537C136.955 157.242 137.164 156.685 136.792 156.459Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M129.1 159.663C128.755 159.454 128.291 159.915 128.158 160.186C127.824 160.869 127.49 161.551 127.155 162.234C127.011 162.528 126.802 163.086 127.174 163.311C127.519 163.521 127.983 163.06 128.116 162.788C128.45 162.106 128.784 161.423 129.118 160.741C129.263 160.447 129.472 159.889 129.1 159.663Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M165.835 137.946C165.979 137.652 166.188 137.094 165.816 136.868C165.471 136.659 165.007 137.12 164.874 137.392C161.72 143.832 158.566 150.273 155.412 156.713C154.511 158.553 153.609 160.393 152.708 162.233C152.564 162.528 152.355 163.085 152.726 163.311C153.071 163.52 153.535 163.06 153.669 162.788C156.823 156.347 159.977 149.907 163.131 143.466C164.032 141.626 164.933 139.786 165.835 137.946Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M169.923 143.153C169.578 142.943 169.114 143.404 168.98 143.676C165.951 149.862 162.921 156.048 159.892 162.234C159.748 162.528 159.538 163.086 159.91 163.311C160.255 163.521 160.719 163.06 160.852 162.788C163.882 156.602 166.911 150.416 169.941 144.23C170.085 143.936 170.294 143.378 169.923 143.153Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M174.332 148.821C173.987 148.611 173.523 149.072 173.39 149.344C171.286 153.64 169.182 157.937 167.077 162.234C166.933 162.528 166.724 163.086 167.095 163.311C167.44 163.521 167.905 163.06 168.038 162.788C170.142 158.492 172.246 154.195 174.351 149.898C174.495 149.604 174.704 149.046 174.332 148.821Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M178.197 155.597C177.852 155.387 177.388 155.848 177.255 156.12C176.257 158.158 175.259 160.196 174.261 162.233C174.117 162.528 173.907 163.085 174.279 163.311C174.624 163.52 175.088 163.06 175.221 162.788C176.219 160.75 177.217 158.712 178.215 156.674C178.36 156.38 178.569 155.823 178.197 155.597Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M97.1962 40.2135C97.3477 39.9803 97.4773 39.477 97.1807 39.2971C96.8678 39.1072 96.5194 39.5265 96.3794 39.7419C94.7034 42.3205 93.0556 44.9176 91.4179 47.5205C88.1743 52.6759 84.976 57.8633 81.9271 63.1367C80.4155 65.7509 78.9283 68.3855 77.5879 71.0925C77.4642 71.3423 77.2879 71.8174 77.6034 72.0088C77.8975 72.1874 78.2905 71.7947 78.4047 71.564C80.9657 66.3919 83.9726 61.4308 86.9671 56.5018C89.7369 51.9427 92.5713 47.4226 95.4474 42.9297C96.0279 42.0228 96.6094 41.1164 97.1962 40.2135Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M75.3224 76.1247C75.0193 75.9408 74.6477 76.3459 74.521 76.5695C74.1645 77.1991 73.808 77.8286 73.4515 78.4581C73.3144 78.7003 73.1605 79.1884 73.467 79.3744C73.77 79.5583 74.1416 79.1532 74.2684 78.9296C74.6248 78.3001 74.9814 77.6705 75.3378 77.0411C75.475 76.7988 75.6288 76.3107 75.3224 76.1247Z",fill:"var(--pae-shell-color-secondary)"})]});yu.displayName="WarningIcon";const Zv="support@bluealba.com",Xv="@bluealba/pae-shell-ui",zs=()=>{const{supportEmail:e=Zv}=Ya(Xv),t=`mailto:${e}?Subject=Support`;return l.jsxs("div",{className:gr.container,children:[l.jsx(yu,{}),l.jsx("div",{className:gr.title,children:"Oops! Something went wrong"}),l.jsxs("div",{className:gr.description,children:["If the error persists, ",l.jsx("a",{className:gr.mailToText,href:t,children:"contact the administrator."})]})]})};zs.displayName="ErrorState";const Jv="List__h09XG",e0="List__h09XG",t0="Item__YMy2i",n0="Item__YMy2i",r0="List--primary__J2pbx",o0="List--secondary__gi1ao",s0="Item--selected__yRWow",i0="Title__RJmEW",a0="Title__RJmEW",c0="Description__DGyX2",l0="Description__DGyX2",u0="Actions__UHP5l",d0="Actions__UHP5l",f0="Action__q-R1I",h0="Action__q-R1I",p0="Item--disabled__Ke1u-",m0="List--small__ijoSR",g0="List--medium__E1FEY",y0="List--large__T8tfz",v0="Icon__dFr-L",b0="Icon__dFr-L",Re={List:Jv,list:e0,Item:t0,item:n0,"List--primary":"List--primary__J2pbx",listPrimary:r0,"List--secondary":"List--secondary__gi1ao",listSecondary:o0,"Item--selected":"Item--selected__yRWow",itemSelected:s0,Title:i0,title:a0,Description:c0,description:l0,Actions:u0,actions:d0,Action:f0,action:h0,"Item--disabled":"Item--disabled__Ke1u-",itemDisabled:p0,"List--small":"List--small__ijoSR",listSmall:m0,"List--medium":"List--medium__E1FEY",listMedium:g0,"List--large":"List--large__T8tfz",listLarge:y0,Icon:v0,icon:b0},vu=S.forwardRef(({children:e,className:t,selected:n,disabled:r=!1,...o},s)=>{const i=D(Re.Item,{[Re["Item--selected"]]:n,[Re["Item--disabled"]]:r},t);return l.jsx("li",{ref:s,className:i,role:"listitem","aria-disabled":r,...o,children:e})});vu.displayName="Item";const bu=S.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Re.Title,t);return l.jsx("h3",{ref:r,className:o,...n,children:e})});bu.displayName="Title";const wu=S.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Re.Description,t);return l.jsx("p",{ref:r,className:o,...n,children:e})});wu.displayName="Description";const Gs=({className:e,...t})=>l.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:[l.jsx("path",{d:"M6 6.5C6.27614 6.5 6.5 6.27614 6.5 6C6.5 5.72386 6.27614 5.5 6 5.5C5.72386 5.5 5.5 5.72386 5.5 6C5.5 6.27614 5.72386 6.5 6 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M9.5 6.5C9.77614 6.5 10 6.27614 10 6C10 5.72386 9.77614 5.5 9.5 5.5C9.22386 5.5 9 5.72386 9 6C9 6.27614 9.22386 6.5 9.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M2.5 6.5C2.77614 6.5 3 6.27614 3 6C3 5.72386 2.77614 5.5 2.5 5.5C2.22386 5.5 2 5.72386 2 6C2 6.27614 2.22386 6.5 2.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"})]});Gs.displayName="HorizontalDots";const Cu=S.forwardRef(({children:e,className:t,onClick:n,...r},o)=>{const s=S.useRef(null),[i,a]=S.useState(!1),c=D(Re.Actions,t),u=()=>{const w=Rt["DropdownList--open"],h=Rt["DropdownList--closed"];document.querySelectorAll(`.${w}`).forEach(C=>{C!==s.current&&(C.classList.remove(w),C.classList.add(h))})},d=w=>{w.stopPropagation(),i?f():(a(!0),n==null||n(w))},f=()=>{a(!1)},p=w=>{w.key==="Escape"&&f()},g=w=>{s.current&&!s.current.contains(w.target)&&f()};return S.useEffect(()=>(i?(u(),document.addEventListener("keydown",p),document.addEventListener("click",g)):(document.removeEventListener("keydown",p),document.removeEventListener("click",g)),()=>{document.removeEventListener("keydown",p),document.removeEventListener("click",g)}),[i]),l.jsxs("div",{ref:o,className:c,onClick:d,role:"button",tabIndex:0,"data-testid":"actions",...r,children:[l.jsx(Gs,{}),l.jsx(Kr,{align:"left",ref:s,open:i,"data-testid":"actions-dropdown",role:"menu","aria-label":"Actions",children:e})]})});Cu.displayName="Actions";const xu=S.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Re.Action,t);return l.jsx("button",{ref:r,className:o,...n,children:e})});xu.displayName="Action";const Eu=S.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Re.Icon,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});Eu.displayName="Icon";const Be=S.forwardRef(({children:e,className:t,size:n="medium",variant:r,...o},s)=>{const i=D(Re.List,{[Re[`List--${n}`]]:n,[Re[`List--${r}`]]:r},t);return l.jsx("ul",{ref:s,className:i,role:"list",...o,children:e})});Be.displayName="List";Be.Item=vu;Be.Badges=Rs;Be.Badge=_s;Be.Title=bu;Be.Description=wu;Be.Actions=Cu;Be.Action=xu;Be.Icon=Eu;const w0="Navigation__uylxk",C0="PaginationContent__UpLw0",x0="PaginationEllipsis__perWk",E0="PaginationLink__GVUZj",S0="Active__u1Ahy",_0="Disabled__8WM0y",R0="Prev__wp4hc",T0="Next__eVyL5",Ze={Navigation:w0,PaginationContent:C0,PaginationEllipsis:x0,PaginationLink:E0,Active:S0,Disabled:_0,Prev:R0,Next:T0},Su=({className:e,...t})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[l.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),l.jsx("path",{d:"M9 6l6 6l-6 6"})]});Su.displayName="ChevronRight";const _u=({className:e,...t})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[l.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),l.jsx("path",{d:"M15 6l-6 6l6 6"})]});_u.displayName="ChevronLeft";const Qs=({className:e,...t})=>l.jsx("nav",{role:"navigation","aria-label":"pagination",className:D(Ze.Navigation,e),...t});Qs.displayName="Pagination";const Ks=m.forwardRef(({className:e,...t},n)=>l.jsx("ul",{ref:n,className:D(Ze.PaginationContent,e),...t}));Ks.displayName="PaginationContent";const Rn=m.forwardRef(({className:e,...t},n)=>l.jsx("li",{ref:n,className:e,...t}));Rn.displayName="PaginationItem";const Vn=({className:e,isActive:t,...n})=>l.jsx("a",{"aria-current":t?"page":void 0,className:D(Ze.PaginationLink,t&&Ze.Active,e),...n});Vn.displayName="PaginationLink";const Ys=({className:e,disabled:t,...n})=>l.jsxs(Vn,{"aria-label":"Go to previous page",className:D(t&&Ze.Disabled,Ze.Prev,e),...n,children:[l.jsx(_u,{}),l.jsx("span",{children:"Previous"})]});Ys.displayName="PaginationPrevious";const Zs=({className:e,disabled:t,...n})=>l.jsxs(Vn,{"aria-label":"Go to next page",className:D(t&&Ze.Disabled,Ze.Next,e),...n,children:[l.jsx("span",{children:"Next"}),l.jsx(Su,{})]});Zs.displayName="PaginationNext";const Xs=({className:e,...t})=>l.jsx("span",{"aria-hidden":!0,className:D(Ze.PaginationEllipsis,e),...t,children:l.jsx(Gs,{})});Xs.displayName="PaginationEllipsis";function A0(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ru={exports:{}};(function(e,t){(function(n,r){typeof A0=="function"?e.exports=r():n.pluralize=r()})(dd,function(){var n=[],r=[],o={},s={},i={};function a(h){return typeof h=="string"?new RegExp("^"+h+"$","i"):h}function c(h,y){return h===y?y:h===h.toLowerCase()?y.toLowerCase():h===h.toUpperCase()?y.toUpperCase():h[0]===h[0].toUpperCase()?y.charAt(0).toUpperCase()+y.substr(1).toLowerCase():y.toLowerCase()}function u(h,y){return h.replace(/\$(\d{1,2})/g,function(C,x){return y[x]||""})}function d(h,y){return h.replace(y[0],function(C,x){var _=u(y[1],arguments);return c(C===""?h[x-1]:C,_)})}function f(h,y,C){if(!h.length||o.hasOwnProperty(h))return y;for(var x=C.length;x--;){var _=C[x];if(_[0].test(y))return d(y,_)}return y}function p(h,y,C){return function(x){var _=x.toLowerCase();return y.hasOwnProperty(_)?c(x,_):h.hasOwnProperty(_)?c(x,h[_]):f(_,x,C)}}function g(h,y,C,x){return function(_){var E=_.toLowerCase();return y.hasOwnProperty(E)?!0:h.hasOwnProperty(E)?!1:f(E,E,C)===E}}function w(h,y,C){var x=y===1?w.singular(h):w.plural(h);return(C?y+" ":"")+x}return w.plural=p(i,s,n),w.isPlural=g(i,s,n),w.singular=p(s,i,r),w.isSingular=g(s,i,r),w.addPluralRule=function(h,y){n.push([a(h),y])},w.addSingularRule=function(h,y){r.push([a(h),y])},w.addUncountableRule=function(h){if(typeof h=="string"){o[h.toLowerCase()]=!0;return}w.addPluralRule(h,"$0"),w.addSingularRule(h,"$0")},w.addIrregularRule=function(h,y){y=y.toLowerCase(),h=h.toLowerCase(),i[h]=y,s[y]=h},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(h){return w.addIrregularRule(h[0],h[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(h){return w.addPluralRule(h[0],h[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(h){return w.addSingularRule(h[0],h[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(w.addUncountableRule),w})})(Ru);var P0=Ru.exports;const O0=fd(P0),Js=({count:e,singularText:t,children:n=(r,o)=>`${r} ${o}`})=>l.jsx(l.Fragment,{children:n(e,O0(t,e))});Js.displayName="PluralizeCounter";const j0="TableContainer__osh6Z",D0="TableHeader__sYa-8",L0="Table__2cIs3",N0="selectable__WsGg1",k0="Cell__ZEv-K",I0="Right__YoM1V",M0="Center__CF3tr",$0="Sortable__JIV1V",F0="SortIcon__f0bBy",B0="Active__rJjxB",U0="Rotate__7cwTK",W0="Pagination__sbqMP",H0="PointerNone__kQdQS",fe={TableContainer:j0,TableHeader:D0,Table:L0,selectable:N0,Cell:k0,Right:I0,Center:M0,Sortable:$0,SortIcon:F0,Active:B0,Rotate:U0,Pagination:W0,PointerNone:H0},V0="EmptyStateContainer__Q9FEb",q0="Message__IHK6M",Sa={EmptyStateContainer:V0,Message:q0},Tu=({size:e=64})=>l.jsxs("svg",{width:e,height:e,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsxs("g",{clipPath:"url(#clip-path)",children:[l.jsx("mask",{id:"mask0_1070_8032",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"64",height:"64",children:l.jsx("path",{d:"M64 0H0V64H64V0Z",fill:"white"})}),l.jsx("g",{mask:"url(#mask0_1070_8032)",children:l.jsx("path",{d:"M40 10.6673H13.3333V53.334H50.6667V21.334H40V10.6673ZM8 7.97932C8 6.51798 9.192 5.33398 10.664 5.33398H42.6667L56 18.6673V55.982C56.0024 56.3321 55.936 56.6793 55.8043 57.0039C55.6725 57.3284 55.4781 57.6239 55.2323 57.8732C54.9864 58.1225 54.6936 58.3209 54.3712 58.4572C54.0485 58.5935 53.7021 58.6649 53.352 58.6673H10.648C9.94768 58.6625 9.27739 58.3823 8.78192 57.8873C8.28645 57.3924 8.00557 56.7223 8 56.022V7.97932ZM36.0773 38.5233C33.8408 39.83 31.2056 40.2788 28.6627 39.786C26.1197 39.2929 23.8428 37.8921 22.2566 35.8444C20.6704 33.7966 19.883 31.2417 20.0414 28.6564C20.1998 26.071 21.293 23.6315 23.1173 21.7927C24.9532 19.9571 27.3955 18.8541 29.9864 18.6904C32.5773 18.5267 35.1389 19.3134 37.1912 20.9032C39.2435 22.493 40.6456 24.7767 41.1347 27.3263C41.6237 29.8759 41.1664 32.5164 39.848 34.7527L45.7413 40.646L41.9707 44.4193L36.0773 38.5233ZM34.4293 33.1047C34.9387 32.6126 35.3451 32.0241 35.6245 31.3735C35.904 30.7228 36.0512 30.0231 36.0573 29.3148C36.0635 28.6065 35.9285 27.9044 35.6603 27.2489C35.3923 26.5935 34.9963 25.998 34.4955 25.4972C33.9947 24.9964 33.3992 24.6004 32.7437 24.3323C32.0883 24.0641 31.3861 23.9292 30.6779 23.9353C29.9696 23.9415 29.2699 24.0886 28.6192 24.3681C27.9685 24.6476 27.38 25.0539 26.888 25.5633C25.9165 26.5692 25.3789 27.9164 25.3911 29.3148C25.4032 30.7132 25.9641 32.0508 26.9531 33.0396C27.9419 34.0287 29.2795 34.5895 30.6779 34.6015C32.0763 34.6137 33.4235 34.0761 34.4293 33.1047Z",fill:"currentColor"})})]}),l.jsx("defs",{children:l.jsx("clipPath",{id:"clip-path",children:l.jsx("rect",{width:"64",height:"64",fill:"white"})})})]});Tu.displayName="EmptyStateIcon";const ei=({message:e="No results found"})=>l.jsxs("div",{className:D(Sa.EmptyStateContainer),children:[l.jsx(Tu,{}),l.jsx("p",{className:Sa.Message,children:e})]});ei.displayName="EmptyState";const z0=(e,t,n=1)=>{if(e<=1)return["1"];const r=[],o=s=>{(r.length===0||r[r.length-1]!==s)&&r.push(s)};o(1),t-n>2&&o("...");for(let s=Math.max(2,t-n);s<=Math.min(e-1,t+n);s++)o(s);return t+n<e-1&&o("..."),o(e),r.map(String)},Au=({page:e,totalPages:t,onPageChange:n})=>{const r=e===1,o=e===t;return l.jsx(Qs,{className:fe.Pagination,children:l.jsxs(Ks,{children:[l.jsx(Rn,{children:l.jsx(Ys,{className:D({[fe.PointerNone]:r}),onClick:()=>!r&&n(e-1)})}),z0(t,e).map((s,i)=>l.jsxs(Rn,{children:[s==="..."&&l.jsx(Xs,{}),s!=="..."&&l.jsx(Vn,{isActive:+s===e,onClick:()=>+s!==e&&n(+s),children:s})]},i)),l.jsx(Rn,{children:l.jsx(Zs,{className:D({[fe.PointerNone]:o}),onClick:()=>!o&&n(e+1)})})]})})};Au.displayName="TablePagination";const Pu=({className:e,...t})=>l.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:l.jsx("path",{d:"M6 2.5V9.5M6 9.5L9.5 6M6 9.5L2.5 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});Pu.displayName="ArrowDown";const Ou=({columns:e,data:t,isLoading:n,totalCount:r=0,headerLabel:o,sort:s,loadingConfig:i,pagination:a,onRowClick:c})=>{const{count:u=5,height:d=40}=i||{},f=y=>y.sortName??y.name,p=y=>D({[fe.Cell]:!0,[fe.Center]:y.align==="center",[fe.Right]:y.align==="right",[fe.Sortable]:y.isSortable}),g=y=>{if(!s)return"";const C=f(y);return D({[fe.SortIcon]:!0,[fe.Active]:y.isSortable&&s.field===C,[fe.Rotate]:s.field===C&&s.direction==="asc"})},w=y=>()=>c==null?void 0:c(y),h=y=>()=>{if(!s||!y.isSortable)return;const{field:C,direction:x,onSort:_}=s,E=f(y);C===E?_(E,x==="asc"?"desc":"asc"):_(E,"asc")};return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:fe.TableContainer,children:[o&&l.jsx("div",{className:fe.TableHeader,children:l.jsx(Js,{count:r,singularText:o,children:(y,C)=>`${y} ${C}`})}),l.jsxs("table",{className:fe.Table,children:[l.jsx("thead",{children:l.jsx("tr",{children:e.map(y=>l.jsx("th",{children:l.jsxs("div",{className:p(y),onClick:h(y),children:[l.jsx("span",{children:y.displayName}),y.isSortable&&l.jsx(Pu,{className:g(y)})]})},y.name))})}),l.jsx("tbody",{children:l.jsxs(ft,{children:[l.jsx(ft.When,{condition:n,children:[...Array(u).keys()].map(y=>l.jsx("tr",{children:l.jsx("td",{colSpan:e.length,style:{padding:4},children:l.jsx(Zr,{height:d})})},y))}),l.jsx(ft.When,{condition:!t.length,children:l.jsx("tr",{children:l.jsx("td",{colSpan:e.length,children:l.jsx(ei,{})})})}),l.jsx(ft.Else,{children:t.map((y,C)=>l.jsx("tr",{className:c&&fe.selectable,onClick:w(y),children:e.map(x=>l.jsx("td",{style:x.width?{width:x.width}:{},children:l.jsx("div",{className:p(x),children:x.cellRenderer?x.cellRenderer(y):x.valueGetter?x.valueGetter(y):y[x.name]})},`${x.name}-${C}`))},C))})]})})]})]}),a&&l.jsx(Au,{...a})]})};Ou.displayName="Table";const G0="alert__LblpE",Q0="destructive__bLNSM",K0="alertTitle__gblKf",Y0="alertDescription__BuVHV",Ur={alert:G0,default:"default__mgO6A",destructive:Q0,alertTitle:K0,alertDescription:Y0},io=({className:e,variant:t="default",children:n,...r})=>l.jsx("div",{"data-slot":"alert",role:"alert",className:D(Ur.alert,Ur[t],e),...r,children:n}),Z0=m.forwardRef(({children:e,className:t,...n},r)=>l.jsx("div",{ref:r,"data-slot":"alert-title",className:D(Ur.alertTitle,t),...n,children:e})),X0=m.forwardRef(({children:e,className:t,...n},r)=>l.jsx("div",{ref:r,"data-slot":"alert-description",className:D(Ur.alertDescription,t),...n,children:e}));io.displayName="Alert";io.Title=Z0;io.Description=X0;function _a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Wr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_a(Object(n),!0).forEach(function(r){J0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_a(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ju(e){return(ju=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function J0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ds(e){return(ds=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function Du(e,t){var n;if(typeof(n=t.domElement?function(){return t.domElement}:t.domElementGetter?t.domElementGetter:e.domElementGetter?e.domElementGetter:function(r){var o=r.appName||r.name;if(!o)throw Error("single-spa's dom-element-getter-helpers was not given an application name as a prop, so it can't make a unique dom element container for the react application");var s="single-spa-application:".concat(o);return function(){var i=document.getElementById(s);return i||((i=document.createElement("div")).id=s,document.body.appendChild(i)),i}}(t))!="function")throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(t.name,"'. Expected a function, received ").concat(ds(n)));return function(){var r=n(t);if(!(r instanceof HTMLElement))throw Error("single-spa's dom-element-getter-helpers: domElementGetter returned an invalid dom element for application or parcel '".concat(t.name,"'. Expected HTMLElement, received ").concat(ds(r)));return r}}var Dn=null;try{Dn=require("react").createContext()}catch{}var e2={React:null,ReactDOM:null,ReactDOMClient:null,rootComponent:null,loadRootComponent:null,errorBoundary:null,errorBoundaryClass:null,domElementGetter:null,parcelCanUpdate:!0,suppressComponentDidCatchWarning:!1,domElements:{},renderResults:{},updateResolves:{},unmountResolves:{}};function t2(e){if(ju(e)!=="object")throw new Error("single-spa-react requires a configuration object");var t,n=Wr(Wr({},e2),e);if(!n.React)throw new Error("single-spa-react must be passed opts.React");if(!n.ReactDOM&&!n.ReactDOMClient)throw new Error("single-spa-react must be passed opts.ReactDOM or opts.ReactDOMClient");if(n.renderType||((t=n.ReactDOMClient)!==null&&t!==void 0&&t.createRoot?n.renderType="createRoot":n.renderType="render"),!n.rootComponent&&!n.loadRootComponent)throw new Error("single-spa-react must be passed opts.rootComponent or opts.loadRootComponent");if(n.errorBoundary&&typeof n.errorBoundary!="function")throw Error("The errorBoundary opt for single-spa-react must either be omitted or be a function that returns React elements");!Dn&&n.React.createContext&&(Dn=n.React.createContext()),n.SingleSpaRoot=function(o){function s(i){s.displayName="SingleSpaRoot(".concat(i.name,")")}return s.prototype=Object.create(o.React.Component.prototype),s.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},s.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},s.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},s}(n);var r={bootstrap:n2.bind(null,n),mount:r2.bind(null,n),unmount:o2.bind(null,n)};return n.parcelCanUpdate&&(r.update=s2.bind(null,n)),r}function n2(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(n){e.rootComponent=n})}function r2(e,t){return new Promise(function(n,r){e.suppressComponentDidCatchWarning||!function(a){if(!(a&&typeof a.version=="string"&&a.version.indexOf(".")>=0))return!1;var c=a.version.slice(0,a.version.indexOf("."));try{return Number(c)>=16}catch{return!1}}(e.React)||e.errorBoundary||e.errorBoundaryClass||(e.rootComponent.prototype?e.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var o=Lu(e,t,function(){n(this)}),s=Du(e,t)(),i=function(a){var c=a.reactDom,u=a.renderType,d=a.elementToRender,f=a.domElement,p=c[u];if(typeof p!="function")throw new Error('renderType "'.concat(u,'" did not return a function.'));switch(u){case"createRoot":case"unstable_createRoot":case"createBlockingRoot":case"unstable_createBlockingRoot":var g=p(f);return g.render(d),g;case"hydrateRoot":return p(f,d);case"hydrate":default:return p(d,f),null}}({elementToRender:o,domElement:s,reactDom:ti(e),renderType:i2(e)});e.domElements[t.name]=s,e.renderResults[t.name]=i})}function o2(e,t){return new Promise(function(n){e.unmountResolves[t.name]=n;var r=e.renderResults[t.name];r&&r.unmount?r.unmount():ti(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]})}function s2(e,t){return new Promise(function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var r=Lu(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(r);else{var s=Du(e,t)();ti(e).render(r,s)}})}function ti(e){return e.ReactDOMClient||e.ReactDOM}function i2(e){return typeof e.renderType=="function"?e.renderType():e.renderType}function Lu(e,t,n){var r=e.React.createElement(e.rootComponent,t),o=Dn?e.React.createElement(Dn.Provider,{value:t},r):r;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(s,i){function a(c){s.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},a.displayName="SingleSpaReactErrorBoundary(".concat(c.name,")")}return a.prototype=Object.create(s.React.Component.prototype),a.prototype.render=function(){return this.state.caughtError?(s.errorBoundary||i.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},a.prototype.componentDidCatch=function(c,u){this.setState({caughtError:c,caughtErrorInfo:u})},a}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),o=e.React.createElement(e.SingleSpaRoot,Wr(Wr({},t),{},{mountFinished:n,updateFinished:function(){e.updateResolves[t.name]&&(e.updateResolves[t.name].forEach(function(s){return s()}),delete e.updateResolves[t.name])},unmountFinished:function(){e.unmountResolves[t.name]&&(e.unmountResolves[t.name](),delete e.unmountResolves[t.name])}}),o)}const a2=e=>{const t=new mh;return function(r){if(!r)throw new Error("Microfrontend did not receive any properties !!");const o=ps(r.module.name);return l.jsx(qa,{module:o,children:l.jsxs(wh,{client:t,children:[l.jsx(e,{...r}),l.jsx(Jf,{position:"top-right",reverseOrder:!0})]})})}},c2=({rootComponent:e,...t})=>t2({errorBoundary(n){return console.error(n),l.jsx(zs,{})},...t,rootComponent:a2(e)}),l2=e=>{const t={authUser:{id:"testuser",username:"testuser",displayName:"Test User",applications:[]},catalog:[],authentication:{passwordMethodEnabled:!0,registerEnabled:!0,invitationsEnabled:!0,resetPasswordExpiration:3e4,passwordConstraints:{lowerCaseRequired:!1,upperCaseRequired:!1,symbolRequired:!1,digitRequired:!1,minLength:0,maxLength:8},sessionExpiration:864e5,jwtSecret:"",sessionIncludeOrigUser:!1,impersonationMode:"cookie",canImpersonateNonExistentUsers:!1,providers:[]},platformVersion:"0.0.0",featureFlags:{}};Object.defineProperty(window,Tn,{value:e?jd(t,e):t})},ni=()=>{const[e]=Mn();return e.featureFlags},u2=e=>!!ni()[e],Nu=({flag:e,children:t,fallback:n=null,invert:r=!1})=>{const s=ni()[e]===!0;return(r?!s:s)?l.jsx(l.Fragment,{children:t}):l.jsx(l.Fragment,{children:n})};Nu.displayName="FeatureFlagGuard";const ku=S.createContext(null);function Iu(e){const t=["#FF6B6B","#4ECDC4","#45B7D1","#FFA07A","#98D8C8","#F7DC6F","#BB8FCE","#85C1E2","#F8B739","#52B788","#E74C3C","#3498DB","#9B59B6","#1ABC9C","#F39C12","#E67E22","#95A5A6","#34495E","#16A085","#27AE60"];let n=0;for(let o=0;o<e.length;o++)n=e.charCodeAt(o)+((n<<5)-n),n=n&n;const r=Math.abs(n)%t.length;return t[r]}const Po={JOIN_ROOM:"join_room",LEAVE_ROOM:"leave_room",USER_LIST:"user_list"},d2=({children:e})=>{const t=ys("@bluealba/pae-rooms-service"),[n,r]=S.useState([]),[o,s]=S.useState("loading"),[i,a]=S.useState(null);S.useEffect(()=>{if(t){const w=new WebSocket(t);return w.onopen=()=>{s("connected")},w.addEventListener("message",async h=>{try{const y=await c(h);y.event===Po.USER_LIST&&f(y.data)}catch(y){console.error("Error parsing WebSocket message:",y)}}),w.onclose=()=>{s("closed")},w.onerror=()=>{s("error")},a(w),()=>{w.close()}}},[t]);const c=async w=>{if(w.data instanceof Blob){const h=await w.data.text();return JSON.parse(h)}else return JSON.parse(w.data)},u=w=>{i&&i.send(JSON.stringify({event:Po.JOIN_ROOM,data:{roomId:w}}))},d=w=>{i&&i.send(JSON.stringify({event:Po.LEAVE_ROOM,data:{roomId:w}}))},f=w=>{r(w.map(h=>({...h,color:Iu(h.username)})))},p=S.useCallback(w=>n.filter(h=>h.rooms.includes(w)),[n]),g={status:o,getRoomUsers:p,joinRoom:u,leaveRoom:d};return l.jsx(ku.Provider,{value:g,children:e})};function f2(e){const t=S.useContext(ku);if(!t)throw new Error("useRoom must be used within RoomsProvider");return S.useEffect(()=>{if(!(!e||t.status!=="connected"))return t.joinRoom(e),()=>{t.leaveRoom(e)}},[t.status,e]),{users:t.getRoomUsers(e)}}const h2="container__LbyGQ",p2="avatarWrapper__HCQIZ",m2="avatar__E453a",g2="overflowWrapper__ETnPO",y2="overflowBadge__igBKT",En={container:h2,avatarWrapper:p2,avatar:m2,overflowWrapper:g2,overflowBadge:y2},v2={sm:24,md:32,lg:40},b2=({users:e,maxVisible:t=5,size:n="md",overlap:r=!0,className:o="",onUserClick:s})=>{const i=v2[n],a=S.useMemo(()=>e.slice(0,t),[e,t]),c=S.useMemo(()=>e.slice(t),[e,t]),u=Math.max(0,e.length-t),d=f=>f.split(" ").map(p=>p[0]).join("").toUpperCase().slice(0,2);return l.jsxs("div",{className:D(En.container,o),children:[a.map((f,p)=>l.jsx(Fr,{tooltipContent:f.displayName,side:"bottom",children:l.jsx("div",{className:En.avatarWrapper,style:{marginLeft:p>0&&r?`-${i*.25}px`:void 0},onClick:()=>s==null?void 0:s(f),children:l.jsx("div",{className:En.avatar,style:{width:i,height:i,backgroundColor:f.color,fontSize:n==="sm"?"10px":n==="md"?"12px":"14px",cursor:s?"pointer":"default"},children:d(f.displayName)})},f.username)})),u>0&&l.jsx(Fr,{side:"bottom",tooltipContent:l.jsx("div",{children:c.map(f=>l.jsx("p",{children:f.displayName},f.username))}),children:l.jsx("div",{className:En.overflowWrapper,style:{marginLeft:r?`-${i*.25}px`:void 0},children:l.jsxs("div",{className:En.overflowBadge,style:{width:i,height:i,fontSize:n==="sm"?"10px":n==="md"?"12px":"14px"},children:["+",u]})})})]})};exports.Alert=io;exports.ApplicationIcon=Fc;exports.Authorized=Ss;exports.Badge=_s;exports.Badges=Rs;exports.Button=Lr;exports.ClipboardCheckIcon=Wc;exports.ClipboardIcon=Uc;exports.ConfirmDialog=gu;exports.CopyToClipboardButton=Op;exports.Dialog=ie;exports.DropdownList=Kr;exports.EmptyState=ei;exports.ErrorState=zs;exports.ExtendExtensionPoint=Qh;exports.ExtensionPoint=Nc;exports.EyeIcon=Ml;exports.FeatureFlagGuard=Nu;exports.FieldGroup=Hc;exports.Input=Qr;exports.InputError=Vc;exports.Label=qc;exports.List=Be;exports.ModulePlaceHolder=$c;exports.Pagination=Qs;exports.PaginationContent=Ks;exports.PaginationEllipsis=Xs;exports.PaginationItem=Rn;exports.PaginationLink=Vn;exports.PaginationNext=Zs;exports.PaginationPrevious=Ys;exports.PasswordInput=gy;exports.Pill=Vv;exports.PlatformEventListener=tp;exports.PlatformEvents=sd;exports.PluralizeCounter=Js;exports.RoomAvatars=b2;exports.RoomsProvider=d2;exports.SearchAutocomplete=Kc;exports.SearchInput=As;exports.Select=Ts;exports.Show=ft;exports.Skeleton=Zr;exports.SkeletonList=Xc;exports.Spinner=Nl;exports.Switch=kl;exports.Table=Ou;exports.Tabs=uy;exports.TabsContent=hy;exports.TabsList=dy;exports.TabsTrigger=fy;exports.TextArea=Gc;exports.Tooltip=Fr;exports.authorized=rp;exports.dropdownListStyles=Rt;exports.extensionPoint=Yh;exports.generateUserColor=Iu;exports.getApplications=hs;exports.getInitials=Cd;exports.getOperations=za;exports.hasAccess=Qa;exports.initializeMicroFrontend=c2;exports.isPlatformCustomizationCompleted=lf;exports.isValidEmail=wd;exports.logout=yd;exports.navigateTo=vd;exports.platformHaveAnyCustomization=cf;exports.setupTestEnvironment=l2;exports.useApplicationIcon=nc;exports.useApplicationJSModule=qr;exports.useApplicationMenu=Td;exports.useApplicationUIModule=tc;exports.useApplications=Ja;exports.useAuth=Hr;exports.useCatalog=$n;exports.useCurrentApplication=gs;exports.useCurrentApplicationName=oc;exports.useCurrentJSModule=kd;exports.useDynamicFonts=uc;exports.useDynamicStyleSheet=lc;exports.useExtendExtensionPoint=ac;exports.useExtensionPoint=ic;exports.useFeatureFlag=u2;exports.useFeatureFlags=ni;exports.useGetPlatformTheme=af;exports.useHasNoSession=pd;exports.useLocation=Wa;exports.useModule=ps;exports.useModuleCommonPaths=gd;exports.useModuleConfig=Ka;exports.useModuleConfigByName=Ya;exports.useModuleMenu=rc;exports.useModuleMetadata=Fn;exports.useMutableCatalog=ud;exports.useNotifications=bs;exports.useOperations=Ga;exports.usePAECustomizationsLoadingState=sf;exports.usePAEState=Mn;exports.usePlatformCustomization=of;exports.usePlatformEventListener=cc;exports.useResource=Dh;exports.useResourceActions=Dc;exports.useRoom=f2;exports.useServiceBaseURL=ys;exports.useServiceInvoker=vs;exports.useTenants=qh;exports.useTrackEvent=Bd;exports.useTrackEvents=sc;exports.useUIApplications=ec;exports.useUserState=Gh;
|