xmlui 0.7.18 → 0.7.19
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/{apiInterceptorWorker-CXfI_qcP.mjs → apiInterceptorWorker-C3bvewX6.mjs} +1 -1
- package/dist/{index-B6CaX0jY.mjs → index-BwlAHBcX.mjs} +4 -4
- package/dist/scripts/package.json +1 -1
- package/dist/scripts/src/components/Carousel/CarouselNative.js +2 -2
- package/dist/xmlui-standalone.umd.js +8 -8
- package/dist/xmlui.mjs +1 -1
- package/package.json +1 -1
|
@@ -92,7 +92,7 @@ Error generating stack: `+R.message+`
|
|
|
92
92
|
* LICENSE.md file in the root directory of this source tree.
|
|
93
93
|
*
|
|
94
94
|
* @license MIT
|
|
95
|
-
*/function KcA(A,e,t,r,n){let o=l=>l.filter(c=>A.routes[c].hasLoader).join(",");if(!t.some(l=>{var c,u;return((c=e[l.id])===null||c===void 0?void 0:c.shouldRevalidate)||((u=A.routes[l.id])===null||u===void 0?void 0:u.hasClientLoader)}))return n;let a=o(t.map(l=>l.id)),s=o(r.filter(l=>{var c;return!((c=A.routes[l.id])!==null&&c!==void 0&&c.hasClientLoader)}).map(l=>l.id));return a!==s&&n.searchParams.set("_routes",s),n}function YcA(A){let e=typeof A=="string"?new URL(A,window.location.origin):A;return e.pathname=`${e.pathname==="/"?"_root":e.pathname}.data`,e}function $cA(){let A=d.useContext(_p);return jb(A,"You must render this element inside a <DataRouterContext.Provider> element"),A}function jcA(){let A=d.useContext(Ob);return jb(A,"You must render this element inside a <DataRouterStateContext.Provider> element"),A}const jT=d.createContext(void 0);jT.displayName="Remix";function qT(){let A=d.useContext(jT);return jb(A,"You must render this element inside a <Remix> element"),A}function JT(A,e){let[t,r]=d.useState(!1),[n,o]=d.useState(!1),{onFocus:i,onBlur:a,onMouseEnter:s,onMouseLeave:l,onTouchStart:c}=e,u=d.useRef(null);d.useEffect(()=>{if(A==="render"&&o(!0),A==="viewport"){let B=C=>{C.forEach(m=>{o(m.isIntersecting)})},E=new IntersectionObserver(B,{threshold:.5});return u.current&&E.observe(u.current),()=>{E.disconnect()}}},[A]);let g=()=>{A==="intent"&&r(!0)},h=()=>{A==="intent"&&(r(!1),o(!1))};return d.useEffect(()=>{if(t){let B=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(B)}}},[t]),[n,u,{onFocus:Sp(i,g),onBlur:Sp(a,h),onMouseEnter:Sp(s,g),onMouseLeave:Sp(l,h),onTouchStart:Sp(c,g)}]}const zT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;let qb=d.forwardRef(({to:A,prefetch:e="none",...t},r)=>{let n=typeof A=="string"&&zT.test(A),o=Hb(A),[i,a,s]=JT(e,t);return d.createElement(d.Fragment,null,d.createElement(McA,Os({},t,s,{ref:XT(r,a),to:A})),i&&!n?d.createElement(VT,{page:o}):null)});qb.displayName="NavLink";let WT=d.forwardRef(({to:A,prefetch:e="none",...t},r)=>{let n=typeof A=="string"&&zT.test(A),o=Hb(A),[i,a,s]=JT(e,t);return d.createElement(d.Fragment,null,d.createElement(GT,Os({},t,s,{ref:XT(r,a),to:A})),i&&!n?d.createElement(VT,{page:o}):null)});WT.displayName="Link";function Sp(A,e){return t=>{A&&A(t),t.defaultPrevented||e(t)}}function VT({page:A,...e}){let{router:t}=$cA(),r=d.useMemo(()=>bT(t.routes,A,t.basename),[t.routes,A,t.basename]);return r?d.createElement(JcA,Os({page:A,matches:r},e)):(console.warn(`Tried to prefetch ${A} but no routes matched.`),null)}function qcA(A){let{manifest:e,routeModules:t}=qT(),[r,n]=d.useState([]);return d.useEffect(()=>{let o=!1;return FcA(A,e,t).then(i=>{o||n(i)}),()=>{o=!0}},[A,e,t]),r}function JcA({page:A,matches:e,...t}){let r=Ji(),{future:n,manifest:o,routeModules:i}=qT(),{matches:a}=jcA(),s=d.useMemo(()=>KT(A,e,a,o,r,"data"),[A,e,a,o,r]),l=d.useMemo(()=>KT(A,e,a,o,r,"assets"),[A,e,a,o,r]),c=d.useMemo(()=>OcA(A,s,o),[s,A,o]),u=d.useMemo(()=>HcA(l,o),[l,o]),g=qcA(l),h=null;if(!n.unstable_singleFetch)h=c.map(B=>d.createElement("link",Os({key:B,rel:"prefetch",as:"fetch",href:B},t)));else if(s.length>0){let B=KcA(o,i,e.map(E=>E.route),s.map(E=>E.route),YcA(A));B.searchParams.get("_routes")!==""&&(h=d.createElement("link",Os({key:B.pathname+B.search,rel:"prefetch",as:"fetch",href:B.pathname+B.search},t)))}return d.createElement(d.Fragment,null,h,u.map(B=>d.createElement("link",Os({key:B,rel:"modulepreload",href:B},t))),g.map(({key:B,link:E})=>d.createElement("link",Os({key:B},E))))}function XT(...A){return e=>{A.forEach(t=>{typeof t=="function"?t(e):t!=null&&(t.current=e)})}}class Np{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Rp=typeof window>"u"||"Deno"in window;function li(){}function zcA(A,e){return typeof A=="function"?A(e):A}function Jb(A){return typeof A=="number"&&A>=0&&A!==1/0}function ZT(A,e){return Math.max(A+(e||0)-Date.now(),0)}function bg(A,e,t){return om(A)?typeof e=="function"?{...t,queryKey:A,queryFn:e}:{...e,queryKey:A}:A}function Yl(A,e,t){return om(A)?[{...e,queryKey:A},t]:[A||{},e]}function AL(A,e){const{type:t="all",exact:r,fetchStatus:n,predicate:o,queryKey:i,stale:a}=A;if(om(i)){if(r){if(e.queryHash!==zb(i,e.options))return!1}else if(!nm(e.queryKey,i))return!1}if(t!=="all"){const s=e.isActive();if(t==="active"&&!s||t==="inactive"&&s)return!1}return!(typeof a=="boolean"&&e.isStale()!==a||typeof n<"u"&&n!==e.state.fetchStatus||o&&!o(e))}function eL(A,e){const{exact:t,fetching:r,predicate:n,mutationKey:o}=A;if(om(o)){if(!e.options.mutationKey)return!1;if(t){if(bu(e.options.mutationKey)!==bu(o))return!1}else if(!nm(e.options.mutationKey,o))return!1}return!(typeof r=="boolean"&&e.state.status==="loading"!==r||n&&!n(e))}function zb(A,e){return((e==null?void 0:e.queryKeyHashFn)||bu)(A)}function bu(A){return JSON.stringify(A,(e,t)=>Vb(t)?Object.keys(t).sort().reduce((r,n)=>(r[n]=t[n],r),{}):t)}function nm(A,e){return tL(A,e)}function tL(A,e){return A===e?!0:typeof A!=typeof e?!1:A&&e&&typeof A=="object"&&typeof e=="object"?!Object.keys(e).some(t=>!tL(A[t],e[t])):!1}function rL(A,e){if(A===e)return A;const t=nL(A)&&nL(e);if(t||Vb(A)&&Vb(e)){const r=t?A.length:Object.keys(A).length,n=t?e:Object.keys(e),o=n.length,i=t?[]:{};let a=0;for(let s=0;s<o;s++){const l=t?s:n[s];i[l]=rL(A[l],e[l]),i[l]===A[l]&&a++}return r===o&&a===r?A:i}return e}function Wb(A,e){if(A&&!e||e&&!A)return!1;for(const t in A)if(A[t]!==e[t])return!1;return!0}function nL(A){return Array.isArray(A)&&A.length===Object.keys(A).length}function Vb(A){if(!oL(A))return!1;const e=A.constructor;if(typeof e>"u")return!0;const t=e.prototype;return!(!oL(t)||!t.hasOwnProperty("isPrototypeOf"))}function oL(A){return Object.prototype.toString.call(A)==="[object Object]"}function om(A){return Array.isArray(A)}function iL(A){return new Promise(e=>{setTimeout(e,A)})}function aL(A){iL(0).then(A)}function WcA(){if(typeof AbortController=="function")return new AbortController}function Xb(A,e,t){return t.isDataEqual!=null&&t.isDataEqual(A,e)?A:typeof t.structuralSharing=="function"?t.structuralSharing(A,e):t.structuralSharing!==!1?rL(A,e):e}class VcA extends Np{constructor(){super(),this.setup=e=>{if(!Rp&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,(t=this.cleanup)==null||t.call(this),this.cleanup=e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const im=new VcA,sL=["online","offline"];class XcA extends Np{constructor(){super(),this.setup=e=>{if(!Rp&&window.addEventListener){const t=()=>e();return sL.forEach(r=>{window.addEventListener(r,t,!1)}),()=>{sL.forEach(r=>{window.removeEventListener(r,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,(t=this.cleanup)==null||t.call(this),this.cleanup=e(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const am=new XcA;function ZcA(A){return Math.min(1e3*2**A,3e4)}function sm(A){return(A??"online")==="online"?am.isOnline():!0}class lL{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}}function lm(A){return A instanceof lL}function cL(A){let e=!1,t=0,r=!1,n,o,i;const a=new Promise((C,m)=>{o=C,i=m}),s=C=>{r||(h(new lL(C)),A.abort==null||A.abort())},l=()=>{e=!0},c=()=>{e=!1},u=()=>!im.isFocused()||A.networkMode!=="always"&&!am.isOnline(),g=C=>{r||(r=!0,A.onSuccess==null||A.onSuccess(C),n==null||n(),o(C))},h=C=>{r||(r=!0,A.onError==null||A.onError(C),n==null||n(),i(C))},B=()=>new Promise(C=>{n=m=>{const I=r||!u();return I&&C(m),I},A.onPause==null||A.onPause()}).then(()=>{n=void 0,r||A.onContinue==null||A.onContinue()}),E=()=>{if(r)return;let C;try{C=A.fn()}catch(m){C=Promise.reject(m)}Promise.resolve(C).then(g).catch(m=>{var I,v;if(r)return;const y=(I=A.retry)!=null?I:3,x=(v=A.retryDelay)!=null?v:ZcA,b=typeof x=="function"?x(t,m):x,k=y===!0||typeof y=="number"&&t<y||typeof y=="function"&&y(t,m);if(e||!k){h(m);return}t++,A.onFail==null||A.onFail(t,m),iL(b).then(()=>{if(u())return B()}).then(()=>{e?h(m):E()})})};return sm(A.networkMode)?E():B().then(E),{promise:a,cancel:s,continue:()=>(n==null?void 0:n())?a:Promise.resolve(),cancelRetry:l,continueRetry:c}}const Zb=console;function AuA(){let A=[],e=0,t=c=>{c()},r=c=>{c()};const n=c=>{let u;e++;try{u=c()}finally{e--,e||a()}return u},o=c=>{e?A.push(c):aL(()=>{t(c)})},i=c=>(...u)=>{o(()=>{c(...u)})},a=()=>{const c=A;A=[],c.length&&aL(()=>{r(()=>{c.forEach(u=>{t(u)})})})};return{batch:n,batchCalls:i,schedule:o,setNotifyFunction:c=>{t=c},setBatchNotifyFunction:c=>{r=c}}}const yr=AuA();class uL{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Jb(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,e??(Rp?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class euA extends uL{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||Zb,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||tuA(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(e,t){const r=Xb(this.state.data,e,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),r}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const r=this.promise;return(t=this.retryer)==null||t.cancel(e),r?r.then(li).catch(li):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!ZT(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}onOnline(){var e;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var r,n;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&t!=null&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return(o=this.retryer)==null||o.continueRetry(),this.promise}}if(e&&this.setOptions(e),!this.options.queryFn){const h=this.observers.find(B=>B.options.queryFn);h&&this.setOptions(h.options)}Array.isArray(this.options.queryKey);const i=WcA(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>{if(i)return this.abortSignalConsumed=!0,i.signal}})};s(a);const l=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:l};if(s(c),(r=this.options.behavior)==null||r.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((n=c.fetchOptions)==null?void 0:n.meta)){var u;this.dispatch({type:"fetch",meta:(u=c.fetchOptions)==null?void 0:u.meta})}const g=h=>{if(lm(h)&&h.silent||this.dispatch({type:"error",error:h}),!lm(h)){var B,E,C,m;(B=(E=this.cache.config).onError)==null||B.call(E,h,this),(C=(m=this.cache.config).onSettled)==null||C.call(m,this.state.data,h,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=cL({fn:c.fetchFn,abort:i==null?void 0:i.abort.bind(i),onSuccess:h=>{var B,E,C,m;if(typeof h>"u"){g(new Error(this.queryHash+" data is undefined"));return}this.setData(h),(B=(E=this.cache.config).onSuccess)==null||B.call(E,h,this),(C=(m=this.cache.config).onSettled)==null||C.call(m,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:g,onFail:(h,B)=>{this.dispatch({type:"failed",failureCount:h,error:B})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){const t=r=>{var n,o;switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(n=e.meta)!=null?n:null,fetchStatus:sm(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(o=e.dataUpdatedAt)!=null?o:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return lm(i)&&i.revert&&this.revertState?{...this.revertState}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),yr.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}function tuA(A){const e=typeof A.initialData=="function"?A.initialData():A.initialData,t=typeof e<"u",r=t?typeof A.initialDataUpdatedAt=="function"?A.initialDataUpdatedAt():A.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:t?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"loading",fetchStatus:"idle"}}class ruA extends Np{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,r){var n;const o=t.queryKey,i=(n=t.queryHash)!=null?n:zb(o,t);let a=this.get(i);return a||(a=new euA({cache:this,logger:e.getLogger(),queryKey:o,queryHash:i,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(o)}),this.add(a)),a}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(r=>r!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){yr.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[r]=Yl(e,t);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(n=>AL(r,n))}findAll(e,t){const[r]=Yl(e,t);return Object.keys(r).length>0?this.queries.filter(n=>AL(r,n)):this.queries}notify(e){yr.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){yr.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){yr.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}var nuA={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_Pdf:"false",VITE_USED_COMPONENTS_Chart:"false",VITE_USER_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_XMLUI_VERSION:"0.7.18 (built 1/31/2025)"};class ouA extends uL{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||Zb,this.observers=[],this.state=e.state||iuA(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return(e=(t=this.retryer)==null?void 0:t.continue())!=null?e:this.execute()}async execute(){const e=()=>{var k;return this.retryer=cL({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(M,N)=>{this.dispatch({type:"failed",failureCount:M,error:N})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(k=this.options.retry)!=null?k:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t=this.state.status==="loading";try{var r,n,o,i,a,s,l,c;if(!t){var u,g,h,B;this.dispatch({type:"loading",variables:this.options.variables}),await((u=(g=this.mutationCache.config).onMutate)==null?void 0:u.call(g,this.state.variables,this));const M=await((h=(B=this.options).onMutate)==null?void 0:h.call(B,this.state.variables));M!==this.state.context&&this.dispatch({type:"loading",context:M,variables:this.state.variables})}const k=await e();return await((r=(n=this.mutationCache.config).onSuccess)==null?void 0:r.call(n,k,this.state.variables,this.state.context,this)),await((o=(i=this.options).onSuccess)==null?void 0:o.call(i,k,this.state.variables,this.state.context)),await((a=(s=this.mutationCache.config).onSettled)==null?void 0:a.call(s,k,null,this.state.variables,this.state.context,this)),await((l=(c=this.options).onSettled)==null?void 0:l.call(c,k,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:k}),k}catch(k){try{var E,C,m,I,v,y,x,b;throw await((E=(C=this.mutationCache.config).onError)==null?void 0:E.call(C,k,this.state.variables,this.state.context,this)),nuA.NODE_ENV,await((m=(I=this.options).onError)==null?void 0:m.call(I,k,this.state.variables,this.state.context)),await((v=(y=this.mutationCache.config).onSettled)==null?void 0:v.call(y,void 0,k,this.state.variables,this.state.context,this)),await((x=(b=this.options).onSettled)==null?void 0:x.call(b,void 0,k,this.state.variables,this.state.context)),k}finally{this.dispatch({type:"error",error:k})}}}dispatch(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!sm(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...r,...e.state}}};this.state=t(this.state),yr.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function iuA(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class auA extends Np{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,r){const n=new ouA({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:r,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(n),n}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){yr.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return typeof e.exact>"u"&&(e.exact=!0),this.mutations.find(t=>eL(e,t))}findAll(e){return this.mutations.filter(t=>eL(e,t))}notify(e){yr.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=((e=this.resuming)!=null?e:Promise.resolve()).then(()=>{const t=this.mutations.filter(r=>r.state.isPaused);return yr.batch(()=>t.reduce((r,n)=>r.then(()=>n.continue().catch(li)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function Ax(){return{onFetch:A=>{A.fetchFn=()=>{var e,t,r,n,o,i;const a=(e=A.fetchOptions)==null||(t=e.meta)==null?void 0:t.refetchPage,s=(r=A.fetchOptions)==null||(n=r.meta)==null?void 0:n.fetchMore,l=s==null?void 0:s.pageParam,c=(s==null?void 0:s.direction)==="forward",u=(s==null?void 0:s.direction)==="backward",g=((o=A.state.data)==null?void 0:o.pages)||[],h=((i=A.state.data)==null?void 0:i.pageParams)||[];let B=h,E=!1;const C=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>{var k;if((k=A.signal)!=null&&k.aborted)E=!0;else{var M;(M=A.signal)==null||M.addEventListener("abort",()=>{E=!0})}return A.signal}})},m=A.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+A.options.queryHash+"'")),I=(b,k,M,N)=>(B=N?[k,...B]:[...B,k],N?[M,...b]:[...b,M]),v=(b,k,M,N)=>{if(E)return Promise.reject("Cancelled");if(typeof M>"u"&&!k&&b.length)return Promise.resolve(b);const F={queryKey:A.queryKey,pageParam:M,meta:A.options.meta};C(F);const L=m(F);return Promise.resolve(L).then(P=>I(b,M,P,N))};let y;if(!g.length)y=v([]);else if(c){const b=typeof l<"u",k=b?l:ex(A.options,g);y=v(g,b,k)}else if(u){const b=typeof l<"u",k=b?l:fL(A.options,g);y=v(g,b,k,!0)}else{B=[];const b=typeof A.options.getNextPageParam>"u";y=(a&&g[0]?a(g[0],0,g):!0)?v([],b,h[0]):Promise.resolve(I([],h[0],g[0]));for(let M=1;M<g.length;M++)y=y.then(N=>{if(a&&g[M]?a(g[M],M,g):!0){const L=b?h[M]:ex(A.options,N);return v(N,b,L)}return Promise.resolve(I(N,h[M],g[M]))})}return y.then(b=>({pages:b,pageParams:B}))}}}}function ex(A,e){return A.getNextPageParam==null?void 0:A.getNextPageParam(e[e.length-1],e)}function fL(A,e){return A.getPreviousPageParam==null?void 0:A.getPreviousPageParam(e[0],e)}function suA(A,e){if(A.getNextPageParam&&Array.isArray(e)){const t=ex(A,e);return typeof t<"u"&&t!==null&&t!==!1}}function luA(A,e){if(A.getPreviousPageParam&&Array.isArray(e)){const t=fL(A,e);return typeof t<"u"&&t!==null&&t!==!1}}class cuA{constructor(e={}){this.queryCache=e.queryCache||new ruA,this.mutationCache=e.mutationCache||new auA,this.logger=e.logger||Zb,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=im.subscribe(()=>{im.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=am.subscribe(()=>{am.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,this.mountCount===0&&((e=this.unsubscribeFocus)==null||e.call(this),this.unsubscribeFocus=void 0,(t=this.unsubscribeOnline)==null||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[r]=Yl(e,t);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var r;return(r=this.queryCache.find(e,t))==null?void 0:r.state.data}ensureQueryData(e,t,r){const n=bg(e,t,r),o=this.getQueryData(n.queryKey);return o?Promise.resolve(o):this.fetchQuery(n)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.queryCache.find(e),o=n==null?void 0:n.state.data,i=zcA(t,o);if(typeof i>"u")return;const a=bg(e),s=this.defaultQueryOptions(a);return this.queryCache.build(this,s).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return yr.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e,t){var r;return(r=this.queryCache.find(e,t))==null?void 0:r.state}removeQueries(e,t){const[r]=Yl(e,t),n=this.queryCache;yr.batch(()=>{n.findAll(r).forEach(o=>{n.remove(o)})})}resetQueries(e,t,r){const[n,o]=Yl(e,t,r),i=this.queryCache,a={type:"active",...n};return yr.batch(()=>(i.findAll(n).forEach(s=>{s.reset()}),this.refetchQueries(a,o)))}cancelQueries(e,t,r){const[n,o={}]=Yl(e,t,r);typeof o.revert>"u"&&(o.revert=!0);const i=yr.batch(()=>this.queryCache.findAll(n).map(a=>a.cancel(o)));return Promise.all(i).then(li).catch(li)}invalidateQueries(e,t,r){const[n,o]=Yl(e,t,r);return yr.batch(()=>{var i,a;if(this.queryCache.findAll(n).forEach(l=>{l.invalidate()}),n.refetchType==="none")return Promise.resolve();const s={...n,type:(i=(a=n.refetchType)!=null?a:n.type)!=null?i:"active"};return this.refetchQueries(s,o)})}refetchQueries(e,t,r){const[n,o]=Yl(e,t,r),i=yr.batch(()=>this.queryCache.findAll(n).filter(s=>!s.isDisabled()).map(s=>{var l;return s.fetch(void 0,{...o,cancelRefetch:(l=o==null?void 0:o.cancelRefetch)!=null?l:!0,meta:{refetchPage:n.refetchPage}})}));let a=Promise.all(i).then(li);return o!=null&&o.throwOnError||(a=a.catch(li)),a}fetchQuery(e,t,r){const n=bg(e,t,r),o=this.defaultQueryOptions(n);typeof o.retry>"u"&&(o.retry=!1);const i=this.queryCache.build(this,o);return i.isStaleByTime(o.staleTime)?i.fetch(o):Promise.resolve(i.state.data)}prefetchQuery(e,t,r){return this.fetchQuery(e,t,r).then(li).catch(li)}fetchInfiniteQuery(e,t,r){const n=bg(e,t,r);return n.behavior=Ax(),this.fetchQuery(n)}prefetchInfiniteQuery(e,t,r){return this.fetchInfiniteQuery(e,t,r).then(li).catch(li)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const r=this.queryDefaults.find(n=>bu(e)===bu(n.queryKey));r?r.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(r=>nm(e,r.queryKey));return t==null?void 0:t.defaultOptions}setMutationDefaults(e,t){const r=this.mutationDefaults.find(n=>bu(e)===bu(n.mutationKey));r?r.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(r=>nm(e,r.mutationKey));return t==null?void 0:t.defaultOptions}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(e==null?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=zb(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.useErrorBoundary>"u"&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(e==null?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class gL extends Np{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),dL(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return tx(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return tx(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const r=this.options,n=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),Wb(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const o=this.hasListeners();o&&hL(this.currentQuery,n,this.options,r)&&this.executeFetch(),this.updateResult(t),o&&(this.currentQuery!==n||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const i=this.computeRefetchInterval();o&&(this.currentQuery!==n||this.options.enabled!==r.enabled||i!==this.currentRefetchInterval)&&this.updateRefetchInterval(i)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),r=this.createResult(t,e);return fuA(this,r,e)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(r=>{Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),e[r])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),r=this.client.getQueryCache().build(this.client,t);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:(t=e.cancelRefetch)!=null?t:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(li)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),Rp||this.currentResult.isStale||!Jb(this.options.staleTime))return;const t=ZT(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t)}computeRefetchInterval(){var e;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(e=this.options.refetchInterval)!=null?e:!1}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!(Rp||this.options.enabled===!1||!Jb(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||im.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const r=this.currentQuery,n=this.options,o=this.currentResult,i=this.currentResultState,a=this.currentResultOptions,s=e!==r,l=s?e.state:this.currentQueryInitialState,c=s?this.currentResult:this.previousQueryResult,{state:u}=e;let{dataUpdatedAt:g,error:h,errorUpdatedAt:B,fetchStatus:E,status:C}=u,m=!1,I=!1,v;if(t._optimisticResults){const M=this.hasListeners(),N=!M&&dL(e,t),F=M&&hL(e,r,t,n);(N||F)&&(E=sm(e.options.networkMode)?"fetching":"paused",g||(C="loading")),t._optimisticResults==="isRestoring"&&(E="idle")}if(t.keepPreviousData&&!u.dataUpdatedAt&&c!=null&&c.isSuccess&&C!=="error")v=c.data,g=c.dataUpdatedAt,C=c.status,m=!0;else if(t.select&&typeof u.data<"u")if(o&&u.data===(i==null?void 0:i.data)&&t.select===this.selectFn)v=this.selectResult;else try{this.selectFn=t.select,v=t.select(u.data),v=Xb(o==null?void 0:o.data,v,t),this.selectResult=v,this.selectError=null}catch(M){this.selectError=M}else v=u.data;if(typeof t.placeholderData<"u"&&typeof v>"u"&&C==="loading"){let M;if(o!=null&&o.isPlaceholderData&&t.placeholderData===(a==null?void 0:a.placeholderData))M=o.data;else if(M=typeof t.placeholderData=="function"?t.placeholderData():t.placeholderData,t.select&&typeof M<"u")try{M=t.select(M),this.selectError=null}catch(N){this.selectError=N}typeof M<"u"&&(C="success",v=Xb(o==null?void 0:o.data,M,t),I=!0)}this.selectError&&(h=this.selectError,v=this.selectResult,B=Date.now(),C="error");const y=E==="fetching",x=C==="loading",b=C==="error";return{status:C,fetchStatus:E,isLoading:x,isSuccess:C==="success",isError:b,isInitialLoading:x&&y,data:v,dataUpdatedAt:g,error:h,errorUpdatedAt:B,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:y,isRefetching:y&&!x,isLoadingError:b&&u.dataUpdatedAt===0,isPaused:E==="paused",isPlaceholderData:I,isPreviousData:m,isRefetchError:b&&u.dataUpdatedAt!==0,isStale:rx(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Wb(r,t))return;this.currentResult=r;const n={cache:!0},o=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!this.trackedProps.size)return!0;const s=new Set(a??this.trackedProps);return this.options.useErrorBoundary&&s.add("error"),Object.keys(this.currentResult).some(l=>{const c=l;return this.currentResult[c]!==t[c]&&s.has(c)})};(e==null?void 0:e.listeners)!==!1&&o()&&(n.listeners=!0),this.notify({...n,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};e.type==="success"?t.onSuccess=!e.manual:e.type==="error"&&!lm(e.error)&&(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){yr.batch(()=>{if(e.onSuccess){var t,r,n,o;(t=(r=this.options).onSuccess)==null||t.call(r,this.currentResult.data),(n=(o=this.options).onSettled)==null||n.call(o,this.currentResult.data,null)}else if(e.onError){var i,a,s,l;(i=(a=this.options).onError)==null||i.call(a,this.currentResult.error),(s=(l=this.options).onSettled)==null||s.call(l,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function uuA(A,e){return e.enabled!==!1&&!A.state.dataUpdatedAt&&!(A.state.status==="error"&&e.retryOnMount===!1)}function dL(A,e){return uuA(A,e)||A.state.dataUpdatedAt>0&&tx(A,e,e.refetchOnMount)}function tx(A,e,t){if(e.enabled!==!1){const r=typeof t=="function"?t(A):t;return r==="always"||r!==!1&&rx(A,e)}return!1}function hL(A,e,t,r){return t.enabled!==!1&&(A!==e||r.enabled===!1)&&(!t.suspense||A.state.status!=="error")&&rx(A,t)}function rx(A,e){return A.isStaleByTime(e.staleTime)}function fuA(A,e,t){return t.keepPreviousData?!1:t.placeholderData!==void 0?e.isPlaceholderData:!Wb(A.getCurrentResult(),e)}class guA extends gL{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:Ax()},t)}getOptimisticResult(e){return e.behavior=Ax(),super.getOptimisticResult(e)}fetchNextPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"forward",pageParam:e}}})}fetchPreviousPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"backward",pageParam:e}}})}createResult(e,t){var r,n,o,i,a,s;const{state:l}=e,c=super.createResult(e,t),{isFetching:u,isRefetching:g}=c,h=u&&((r=l.fetchMeta)==null||(n=r.fetchMore)==null?void 0:n.direction)==="forward",B=u&&((o=l.fetchMeta)==null||(i=o.fetchMore)==null?void 0:i.direction)==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:suA(t,(a=l.data)==null?void 0:a.pages),hasPreviousPage:luA(t,(s=l.data)==null?void 0:s.pages),isFetchingNextPage:h,isFetchingPreviousPage:B,isRefetching:g&&!h&&!B}}}var pL={exports:{}},nx={};/**
|
|
95
|
+
*/function KcA(A,e,t,r,n){let o=l=>l.filter(c=>A.routes[c].hasLoader).join(",");if(!t.some(l=>{var c,u;return((c=e[l.id])===null||c===void 0?void 0:c.shouldRevalidate)||((u=A.routes[l.id])===null||u===void 0?void 0:u.hasClientLoader)}))return n;let a=o(t.map(l=>l.id)),s=o(r.filter(l=>{var c;return!((c=A.routes[l.id])!==null&&c!==void 0&&c.hasClientLoader)}).map(l=>l.id));return a!==s&&n.searchParams.set("_routes",s),n}function YcA(A){let e=typeof A=="string"?new URL(A,window.location.origin):A;return e.pathname=`${e.pathname==="/"?"_root":e.pathname}.data`,e}function $cA(){let A=d.useContext(_p);return jb(A,"You must render this element inside a <DataRouterContext.Provider> element"),A}function jcA(){let A=d.useContext(Ob);return jb(A,"You must render this element inside a <DataRouterStateContext.Provider> element"),A}const jT=d.createContext(void 0);jT.displayName="Remix";function qT(){let A=d.useContext(jT);return jb(A,"You must render this element inside a <Remix> element"),A}function JT(A,e){let[t,r]=d.useState(!1),[n,o]=d.useState(!1),{onFocus:i,onBlur:a,onMouseEnter:s,onMouseLeave:l,onTouchStart:c}=e,u=d.useRef(null);d.useEffect(()=>{if(A==="render"&&o(!0),A==="viewport"){let B=C=>{C.forEach(m=>{o(m.isIntersecting)})},E=new IntersectionObserver(B,{threshold:.5});return u.current&&E.observe(u.current),()=>{E.disconnect()}}},[A]);let g=()=>{A==="intent"&&r(!0)},h=()=>{A==="intent"&&(r(!1),o(!1))};return d.useEffect(()=>{if(t){let B=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(B)}}},[t]),[n,u,{onFocus:Sp(i,g),onBlur:Sp(a,h),onMouseEnter:Sp(s,g),onMouseLeave:Sp(l,h),onTouchStart:Sp(c,g)}]}const zT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;let qb=d.forwardRef(({to:A,prefetch:e="none",...t},r)=>{let n=typeof A=="string"&&zT.test(A),o=Hb(A),[i,a,s]=JT(e,t);return d.createElement(d.Fragment,null,d.createElement(McA,Os({},t,s,{ref:XT(r,a),to:A})),i&&!n?d.createElement(VT,{page:o}):null)});qb.displayName="NavLink";let WT=d.forwardRef(({to:A,prefetch:e="none",...t},r)=>{let n=typeof A=="string"&&zT.test(A),o=Hb(A),[i,a,s]=JT(e,t);return d.createElement(d.Fragment,null,d.createElement(GT,Os({},t,s,{ref:XT(r,a),to:A})),i&&!n?d.createElement(VT,{page:o}):null)});WT.displayName="Link";function Sp(A,e){return t=>{A&&A(t),t.defaultPrevented||e(t)}}function VT({page:A,...e}){let{router:t}=$cA(),r=d.useMemo(()=>bT(t.routes,A,t.basename),[t.routes,A,t.basename]);return r?d.createElement(JcA,Os({page:A,matches:r},e)):(console.warn(`Tried to prefetch ${A} but no routes matched.`),null)}function qcA(A){let{manifest:e,routeModules:t}=qT(),[r,n]=d.useState([]);return d.useEffect(()=>{let o=!1;return FcA(A,e,t).then(i=>{o||n(i)}),()=>{o=!0}},[A,e,t]),r}function JcA({page:A,matches:e,...t}){let r=Ji(),{future:n,manifest:o,routeModules:i}=qT(),{matches:a}=jcA(),s=d.useMemo(()=>KT(A,e,a,o,r,"data"),[A,e,a,o,r]),l=d.useMemo(()=>KT(A,e,a,o,r,"assets"),[A,e,a,o,r]),c=d.useMemo(()=>OcA(A,s,o),[s,A,o]),u=d.useMemo(()=>HcA(l,o),[l,o]),g=qcA(l),h=null;if(!n.unstable_singleFetch)h=c.map(B=>d.createElement("link",Os({key:B,rel:"prefetch",as:"fetch",href:B},t)));else if(s.length>0){let B=KcA(o,i,e.map(E=>E.route),s.map(E=>E.route),YcA(A));B.searchParams.get("_routes")!==""&&(h=d.createElement("link",Os({key:B.pathname+B.search,rel:"prefetch",as:"fetch",href:B.pathname+B.search},t)))}return d.createElement(d.Fragment,null,h,u.map(B=>d.createElement("link",Os({key:B,rel:"modulepreload",href:B},t))),g.map(({key:B,link:E})=>d.createElement("link",Os({key:B},E))))}function XT(...A){return e=>{A.forEach(t=>{typeof t=="function"?t(e):t!=null&&(t.current=e)})}}class Np{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Rp=typeof window>"u"||"Deno"in window;function li(){}function zcA(A,e){return typeof A=="function"?A(e):A}function Jb(A){return typeof A=="number"&&A>=0&&A!==1/0}function ZT(A,e){return Math.max(A+(e||0)-Date.now(),0)}function bg(A,e,t){return om(A)?typeof e=="function"?{...t,queryKey:A,queryFn:e}:{...e,queryKey:A}:A}function Yl(A,e,t){return om(A)?[{...e,queryKey:A},t]:[A||{},e]}function AL(A,e){const{type:t="all",exact:r,fetchStatus:n,predicate:o,queryKey:i,stale:a}=A;if(om(i)){if(r){if(e.queryHash!==zb(i,e.options))return!1}else if(!nm(e.queryKey,i))return!1}if(t!=="all"){const s=e.isActive();if(t==="active"&&!s||t==="inactive"&&s)return!1}return!(typeof a=="boolean"&&e.isStale()!==a||typeof n<"u"&&n!==e.state.fetchStatus||o&&!o(e))}function eL(A,e){const{exact:t,fetching:r,predicate:n,mutationKey:o}=A;if(om(o)){if(!e.options.mutationKey)return!1;if(t){if(bu(e.options.mutationKey)!==bu(o))return!1}else if(!nm(e.options.mutationKey,o))return!1}return!(typeof r=="boolean"&&e.state.status==="loading"!==r||n&&!n(e))}function zb(A,e){return((e==null?void 0:e.queryKeyHashFn)||bu)(A)}function bu(A){return JSON.stringify(A,(e,t)=>Vb(t)?Object.keys(t).sort().reduce((r,n)=>(r[n]=t[n],r),{}):t)}function nm(A,e){return tL(A,e)}function tL(A,e){return A===e?!0:typeof A!=typeof e?!1:A&&e&&typeof A=="object"&&typeof e=="object"?!Object.keys(e).some(t=>!tL(A[t],e[t])):!1}function rL(A,e){if(A===e)return A;const t=nL(A)&&nL(e);if(t||Vb(A)&&Vb(e)){const r=t?A.length:Object.keys(A).length,n=t?e:Object.keys(e),o=n.length,i=t?[]:{};let a=0;for(let s=0;s<o;s++){const l=t?s:n[s];i[l]=rL(A[l],e[l]),i[l]===A[l]&&a++}return r===o&&a===r?A:i}return e}function Wb(A,e){if(A&&!e||e&&!A)return!1;for(const t in A)if(A[t]!==e[t])return!1;return!0}function nL(A){return Array.isArray(A)&&A.length===Object.keys(A).length}function Vb(A){if(!oL(A))return!1;const e=A.constructor;if(typeof e>"u")return!0;const t=e.prototype;return!(!oL(t)||!t.hasOwnProperty("isPrototypeOf"))}function oL(A){return Object.prototype.toString.call(A)==="[object Object]"}function om(A){return Array.isArray(A)}function iL(A){return new Promise(e=>{setTimeout(e,A)})}function aL(A){iL(0).then(A)}function WcA(){if(typeof AbortController=="function")return new AbortController}function Xb(A,e,t){return t.isDataEqual!=null&&t.isDataEqual(A,e)?A:typeof t.structuralSharing=="function"?t.structuralSharing(A,e):t.structuralSharing!==!1?rL(A,e):e}class VcA extends Np{constructor(){super(),this.setup=e=>{if(!Rp&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,(t=this.cleanup)==null||t.call(this),this.cleanup=e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const im=new VcA,sL=["online","offline"];class XcA extends Np{constructor(){super(),this.setup=e=>{if(!Rp&&window.addEventListener){const t=()=>e();return sL.forEach(r=>{window.addEventListener(r,t,!1)}),()=>{sL.forEach(r=>{window.removeEventListener(r,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,(t=this.cleanup)==null||t.call(this),this.cleanup=e(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const am=new XcA;function ZcA(A){return Math.min(1e3*2**A,3e4)}function sm(A){return(A??"online")==="online"?am.isOnline():!0}class lL{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}}function lm(A){return A instanceof lL}function cL(A){let e=!1,t=0,r=!1,n,o,i;const a=new Promise((C,m)=>{o=C,i=m}),s=C=>{r||(h(new lL(C)),A.abort==null||A.abort())},l=()=>{e=!0},c=()=>{e=!1},u=()=>!im.isFocused()||A.networkMode!=="always"&&!am.isOnline(),g=C=>{r||(r=!0,A.onSuccess==null||A.onSuccess(C),n==null||n(),o(C))},h=C=>{r||(r=!0,A.onError==null||A.onError(C),n==null||n(),i(C))},B=()=>new Promise(C=>{n=m=>{const I=r||!u();return I&&C(m),I},A.onPause==null||A.onPause()}).then(()=>{n=void 0,r||A.onContinue==null||A.onContinue()}),E=()=>{if(r)return;let C;try{C=A.fn()}catch(m){C=Promise.reject(m)}Promise.resolve(C).then(g).catch(m=>{var I,v;if(r)return;const y=(I=A.retry)!=null?I:3,x=(v=A.retryDelay)!=null?v:ZcA,b=typeof x=="function"?x(t,m):x,k=y===!0||typeof y=="number"&&t<y||typeof y=="function"&&y(t,m);if(e||!k){h(m);return}t++,A.onFail==null||A.onFail(t,m),iL(b).then(()=>{if(u())return B()}).then(()=>{e?h(m):E()})})};return sm(A.networkMode)?E():B().then(E),{promise:a,cancel:s,continue:()=>(n==null?void 0:n())?a:Promise.resolve(),cancelRetry:l,continueRetry:c}}const Zb=console;function AuA(){let A=[],e=0,t=c=>{c()},r=c=>{c()};const n=c=>{let u;e++;try{u=c()}finally{e--,e||a()}return u},o=c=>{e?A.push(c):aL(()=>{t(c)})},i=c=>(...u)=>{o(()=>{c(...u)})},a=()=>{const c=A;A=[],c.length&&aL(()=>{r(()=>{c.forEach(u=>{t(u)})})})};return{batch:n,batchCalls:i,schedule:o,setNotifyFunction:c=>{t=c},setBatchNotifyFunction:c=>{r=c}}}const yr=AuA();class uL{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Jb(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,e??(Rp?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class euA extends uL{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||Zb,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||tuA(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(e,t){const r=Xb(this.state.data,e,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),r}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const r=this.promise;return(t=this.retryer)==null||t.cancel(e),r?r.then(li).catch(li):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!ZT(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}onOnline(){var e;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var r,n;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&t!=null&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return(o=this.retryer)==null||o.continueRetry(),this.promise}}if(e&&this.setOptions(e),!this.options.queryFn){const h=this.observers.find(B=>B.options.queryFn);h&&this.setOptions(h.options)}Array.isArray(this.options.queryKey);const i=WcA(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>{if(i)return this.abortSignalConsumed=!0,i.signal}})};s(a);const l=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:l};if(s(c),(r=this.options.behavior)==null||r.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((n=c.fetchOptions)==null?void 0:n.meta)){var u;this.dispatch({type:"fetch",meta:(u=c.fetchOptions)==null?void 0:u.meta})}const g=h=>{if(lm(h)&&h.silent||this.dispatch({type:"error",error:h}),!lm(h)){var B,E,C,m;(B=(E=this.cache.config).onError)==null||B.call(E,h,this),(C=(m=this.cache.config).onSettled)==null||C.call(m,this.state.data,h,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=cL({fn:c.fetchFn,abort:i==null?void 0:i.abort.bind(i),onSuccess:h=>{var B,E,C,m;if(typeof h>"u"){g(new Error(this.queryHash+" data is undefined"));return}this.setData(h),(B=(E=this.cache.config).onSuccess)==null||B.call(E,h,this),(C=(m=this.cache.config).onSettled)==null||C.call(m,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:g,onFail:(h,B)=>{this.dispatch({type:"failed",failureCount:h,error:B})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){const t=r=>{var n,o;switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(n=e.meta)!=null?n:null,fetchStatus:sm(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(o=e.dataUpdatedAt)!=null?o:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return lm(i)&&i.revert&&this.revertState?{...this.revertState}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),yr.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}function tuA(A){const e=typeof A.initialData=="function"?A.initialData():A.initialData,t=typeof e<"u",r=t?typeof A.initialDataUpdatedAt=="function"?A.initialDataUpdatedAt():A.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:t?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"loading",fetchStatus:"idle"}}class ruA extends Np{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,r){var n;const o=t.queryKey,i=(n=t.queryHash)!=null?n:zb(o,t);let a=this.get(i);return a||(a=new euA({cache:this,logger:e.getLogger(),queryKey:o,queryHash:i,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(o)}),this.add(a)),a}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(r=>r!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){yr.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[r]=Yl(e,t);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(n=>AL(r,n))}findAll(e,t){const[r]=Yl(e,t);return Object.keys(r).length>0?this.queries.filter(n=>AL(r,n)):this.queries}notify(e){yr.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){yr.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){yr.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}var nuA={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_Pdf:"false",VITE_USED_COMPONENTS_Chart:"false",VITE_USER_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_XMLUI_VERSION:"0.7.19 (built 1/31/2025)"};class ouA extends uL{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||Zb,this.observers=[],this.state=e.state||iuA(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return(e=(t=this.retryer)==null?void 0:t.continue())!=null?e:this.execute()}async execute(){const e=()=>{var k;return this.retryer=cL({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(M,N)=>{this.dispatch({type:"failed",failureCount:M,error:N})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(k=this.options.retry)!=null?k:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t=this.state.status==="loading";try{var r,n,o,i,a,s,l,c;if(!t){var u,g,h,B;this.dispatch({type:"loading",variables:this.options.variables}),await((u=(g=this.mutationCache.config).onMutate)==null?void 0:u.call(g,this.state.variables,this));const M=await((h=(B=this.options).onMutate)==null?void 0:h.call(B,this.state.variables));M!==this.state.context&&this.dispatch({type:"loading",context:M,variables:this.state.variables})}const k=await e();return await((r=(n=this.mutationCache.config).onSuccess)==null?void 0:r.call(n,k,this.state.variables,this.state.context,this)),await((o=(i=this.options).onSuccess)==null?void 0:o.call(i,k,this.state.variables,this.state.context)),await((a=(s=this.mutationCache.config).onSettled)==null?void 0:a.call(s,k,null,this.state.variables,this.state.context,this)),await((l=(c=this.options).onSettled)==null?void 0:l.call(c,k,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:k}),k}catch(k){try{var E,C,m,I,v,y,x,b;throw await((E=(C=this.mutationCache.config).onError)==null?void 0:E.call(C,k,this.state.variables,this.state.context,this)),nuA.NODE_ENV,await((m=(I=this.options).onError)==null?void 0:m.call(I,k,this.state.variables,this.state.context)),await((v=(y=this.mutationCache.config).onSettled)==null?void 0:v.call(y,void 0,k,this.state.variables,this.state.context,this)),await((x=(b=this.options).onSettled)==null?void 0:x.call(b,void 0,k,this.state.variables,this.state.context)),k}finally{this.dispatch({type:"error",error:k})}}}dispatch(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!sm(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...r,...e.state}}};this.state=t(this.state),yr.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function iuA(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class auA extends Np{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,r){const n=new ouA({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:r,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(n),n}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){yr.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return typeof e.exact>"u"&&(e.exact=!0),this.mutations.find(t=>eL(e,t))}findAll(e){return this.mutations.filter(t=>eL(e,t))}notify(e){yr.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=((e=this.resuming)!=null?e:Promise.resolve()).then(()=>{const t=this.mutations.filter(r=>r.state.isPaused);return yr.batch(()=>t.reduce((r,n)=>r.then(()=>n.continue().catch(li)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function Ax(){return{onFetch:A=>{A.fetchFn=()=>{var e,t,r,n,o,i;const a=(e=A.fetchOptions)==null||(t=e.meta)==null?void 0:t.refetchPage,s=(r=A.fetchOptions)==null||(n=r.meta)==null?void 0:n.fetchMore,l=s==null?void 0:s.pageParam,c=(s==null?void 0:s.direction)==="forward",u=(s==null?void 0:s.direction)==="backward",g=((o=A.state.data)==null?void 0:o.pages)||[],h=((i=A.state.data)==null?void 0:i.pageParams)||[];let B=h,E=!1;const C=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>{var k;if((k=A.signal)!=null&&k.aborted)E=!0;else{var M;(M=A.signal)==null||M.addEventListener("abort",()=>{E=!0})}return A.signal}})},m=A.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+A.options.queryHash+"'")),I=(b,k,M,N)=>(B=N?[k,...B]:[...B,k],N?[M,...b]:[...b,M]),v=(b,k,M,N)=>{if(E)return Promise.reject("Cancelled");if(typeof M>"u"&&!k&&b.length)return Promise.resolve(b);const F={queryKey:A.queryKey,pageParam:M,meta:A.options.meta};C(F);const L=m(F);return Promise.resolve(L).then(P=>I(b,M,P,N))};let y;if(!g.length)y=v([]);else if(c){const b=typeof l<"u",k=b?l:ex(A.options,g);y=v(g,b,k)}else if(u){const b=typeof l<"u",k=b?l:fL(A.options,g);y=v(g,b,k,!0)}else{B=[];const b=typeof A.options.getNextPageParam>"u";y=(a&&g[0]?a(g[0],0,g):!0)?v([],b,h[0]):Promise.resolve(I([],h[0],g[0]));for(let M=1;M<g.length;M++)y=y.then(N=>{if(a&&g[M]?a(g[M],M,g):!0){const L=b?h[M]:ex(A.options,N);return v(N,b,L)}return Promise.resolve(I(N,h[M],g[M]))})}return y.then(b=>({pages:b,pageParams:B}))}}}}function ex(A,e){return A.getNextPageParam==null?void 0:A.getNextPageParam(e[e.length-1],e)}function fL(A,e){return A.getPreviousPageParam==null?void 0:A.getPreviousPageParam(e[0],e)}function suA(A,e){if(A.getNextPageParam&&Array.isArray(e)){const t=ex(A,e);return typeof t<"u"&&t!==null&&t!==!1}}function luA(A,e){if(A.getPreviousPageParam&&Array.isArray(e)){const t=fL(A,e);return typeof t<"u"&&t!==null&&t!==!1}}class cuA{constructor(e={}){this.queryCache=e.queryCache||new ruA,this.mutationCache=e.mutationCache||new auA,this.logger=e.logger||Zb,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=im.subscribe(()=>{im.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=am.subscribe(()=>{am.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,this.mountCount===0&&((e=this.unsubscribeFocus)==null||e.call(this),this.unsubscribeFocus=void 0,(t=this.unsubscribeOnline)==null||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[r]=Yl(e,t);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var r;return(r=this.queryCache.find(e,t))==null?void 0:r.state.data}ensureQueryData(e,t,r){const n=bg(e,t,r),o=this.getQueryData(n.queryKey);return o?Promise.resolve(o):this.fetchQuery(n)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.queryCache.find(e),o=n==null?void 0:n.state.data,i=zcA(t,o);if(typeof i>"u")return;const a=bg(e),s=this.defaultQueryOptions(a);return this.queryCache.build(this,s).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return yr.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e,t){var r;return(r=this.queryCache.find(e,t))==null?void 0:r.state}removeQueries(e,t){const[r]=Yl(e,t),n=this.queryCache;yr.batch(()=>{n.findAll(r).forEach(o=>{n.remove(o)})})}resetQueries(e,t,r){const[n,o]=Yl(e,t,r),i=this.queryCache,a={type:"active",...n};return yr.batch(()=>(i.findAll(n).forEach(s=>{s.reset()}),this.refetchQueries(a,o)))}cancelQueries(e,t,r){const[n,o={}]=Yl(e,t,r);typeof o.revert>"u"&&(o.revert=!0);const i=yr.batch(()=>this.queryCache.findAll(n).map(a=>a.cancel(o)));return Promise.all(i).then(li).catch(li)}invalidateQueries(e,t,r){const[n,o]=Yl(e,t,r);return yr.batch(()=>{var i,a;if(this.queryCache.findAll(n).forEach(l=>{l.invalidate()}),n.refetchType==="none")return Promise.resolve();const s={...n,type:(i=(a=n.refetchType)!=null?a:n.type)!=null?i:"active"};return this.refetchQueries(s,o)})}refetchQueries(e,t,r){const[n,o]=Yl(e,t,r),i=yr.batch(()=>this.queryCache.findAll(n).filter(s=>!s.isDisabled()).map(s=>{var l;return s.fetch(void 0,{...o,cancelRefetch:(l=o==null?void 0:o.cancelRefetch)!=null?l:!0,meta:{refetchPage:n.refetchPage}})}));let a=Promise.all(i).then(li);return o!=null&&o.throwOnError||(a=a.catch(li)),a}fetchQuery(e,t,r){const n=bg(e,t,r),o=this.defaultQueryOptions(n);typeof o.retry>"u"&&(o.retry=!1);const i=this.queryCache.build(this,o);return i.isStaleByTime(o.staleTime)?i.fetch(o):Promise.resolve(i.state.data)}prefetchQuery(e,t,r){return this.fetchQuery(e,t,r).then(li).catch(li)}fetchInfiniteQuery(e,t,r){const n=bg(e,t,r);return n.behavior=Ax(),this.fetchQuery(n)}prefetchInfiniteQuery(e,t,r){return this.fetchInfiniteQuery(e,t,r).then(li).catch(li)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const r=this.queryDefaults.find(n=>bu(e)===bu(n.queryKey));r?r.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(r=>nm(e,r.queryKey));return t==null?void 0:t.defaultOptions}setMutationDefaults(e,t){const r=this.mutationDefaults.find(n=>bu(e)===bu(n.mutationKey));r?r.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(r=>nm(e,r.mutationKey));return t==null?void 0:t.defaultOptions}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(e==null?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=zb(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.useErrorBoundary>"u"&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(e==null?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class gL extends Np{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),dL(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return tx(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return tx(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const r=this.options,n=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),Wb(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const o=this.hasListeners();o&&hL(this.currentQuery,n,this.options,r)&&this.executeFetch(),this.updateResult(t),o&&(this.currentQuery!==n||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const i=this.computeRefetchInterval();o&&(this.currentQuery!==n||this.options.enabled!==r.enabled||i!==this.currentRefetchInterval)&&this.updateRefetchInterval(i)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),r=this.createResult(t,e);return fuA(this,r,e)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(r=>{Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),e[r])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),r=this.client.getQueryCache().build(this.client,t);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:(t=e.cancelRefetch)!=null?t:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(li)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),Rp||this.currentResult.isStale||!Jb(this.options.staleTime))return;const t=ZT(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t)}computeRefetchInterval(){var e;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(e=this.options.refetchInterval)!=null?e:!1}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!(Rp||this.options.enabled===!1||!Jb(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||im.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const r=this.currentQuery,n=this.options,o=this.currentResult,i=this.currentResultState,a=this.currentResultOptions,s=e!==r,l=s?e.state:this.currentQueryInitialState,c=s?this.currentResult:this.previousQueryResult,{state:u}=e;let{dataUpdatedAt:g,error:h,errorUpdatedAt:B,fetchStatus:E,status:C}=u,m=!1,I=!1,v;if(t._optimisticResults){const M=this.hasListeners(),N=!M&&dL(e,t),F=M&&hL(e,r,t,n);(N||F)&&(E=sm(e.options.networkMode)?"fetching":"paused",g||(C="loading")),t._optimisticResults==="isRestoring"&&(E="idle")}if(t.keepPreviousData&&!u.dataUpdatedAt&&c!=null&&c.isSuccess&&C!=="error")v=c.data,g=c.dataUpdatedAt,C=c.status,m=!0;else if(t.select&&typeof u.data<"u")if(o&&u.data===(i==null?void 0:i.data)&&t.select===this.selectFn)v=this.selectResult;else try{this.selectFn=t.select,v=t.select(u.data),v=Xb(o==null?void 0:o.data,v,t),this.selectResult=v,this.selectError=null}catch(M){this.selectError=M}else v=u.data;if(typeof t.placeholderData<"u"&&typeof v>"u"&&C==="loading"){let M;if(o!=null&&o.isPlaceholderData&&t.placeholderData===(a==null?void 0:a.placeholderData))M=o.data;else if(M=typeof t.placeholderData=="function"?t.placeholderData():t.placeholderData,t.select&&typeof M<"u")try{M=t.select(M),this.selectError=null}catch(N){this.selectError=N}typeof M<"u"&&(C="success",v=Xb(o==null?void 0:o.data,M,t),I=!0)}this.selectError&&(h=this.selectError,v=this.selectResult,B=Date.now(),C="error");const y=E==="fetching",x=C==="loading",b=C==="error";return{status:C,fetchStatus:E,isLoading:x,isSuccess:C==="success",isError:b,isInitialLoading:x&&y,data:v,dataUpdatedAt:g,error:h,errorUpdatedAt:B,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:y,isRefetching:y&&!x,isLoadingError:b&&u.dataUpdatedAt===0,isPaused:E==="paused",isPlaceholderData:I,isPreviousData:m,isRefetchError:b&&u.dataUpdatedAt!==0,isStale:rx(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Wb(r,t))return;this.currentResult=r;const n={cache:!0},o=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!this.trackedProps.size)return!0;const s=new Set(a??this.trackedProps);return this.options.useErrorBoundary&&s.add("error"),Object.keys(this.currentResult).some(l=>{const c=l;return this.currentResult[c]!==t[c]&&s.has(c)})};(e==null?void 0:e.listeners)!==!1&&o()&&(n.listeners=!0),this.notify({...n,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};e.type==="success"?t.onSuccess=!e.manual:e.type==="error"&&!lm(e.error)&&(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){yr.batch(()=>{if(e.onSuccess){var t,r,n,o;(t=(r=this.options).onSuccess)==null||t.call(r,this.currentResult.data),(n=(o=this.options).onSettled)==null||n.call(o,this.currentResult.data,null)}else if(e.onError){var i,a,s,l;(i=(a=this.options).onError)==null||i.call(a,this.currentResult.error),(s=(l=this.options).onSettled)==null||s.call(l,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function uuA(A,e){return e.enabled!==!1&&!A.state.dataUpdatedAt&&!(A.state.status==="error"&&e.retryOnMount===!1)}function dL(A,e){return uuA(A,e)||A.state.dataUpdatedAt>0&&tx(A,e,e.refetchOnMount)}function tx(A,e,t){if(e.enabled!==!1){const r=typeof t=="function"?t(A):t;return r==="always"||r!==!1&&rx(A,e)}return!1}function hL(A,e,t,r){return t.enabled!==!1&&(A!==e||r.enabled===!1)&&(!t.suspense||A.state.status!=="error")&&rx(A,t)}function rx(A,e){return A.isStaleByTime(e.staleTime)}function fuA(A,e,t){return t.keepPreviousData?!1:t.placeholderData!==void 0?e.isPlaceholderData:!Wb(A.getCurrentResult(),e)}class guA extends gL{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:Ax()},t)}getOptimisticResult(e){return e.behavior=Ax(),super.getOptimisticResult(e)}fetchNextPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"forward",pageParam:e}}})}fetchPreviousPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"backward",pageParam:e}}})}createResult(e,t){var r,n,o,i,a,s;const{state:l}=e,c=super.createResult(e,t),{isFetching:u,isRefetching:g}=c,h=u&&((r=l.fetchMeta)==null||(n=r.fetchMore)==null?void 0:n.direction)==="forward",B=u&&((o=l.fetchMeta)==null||(i=o.fetchMore)==null?void 0:i.direction)==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:suA(t,(a=l.data)==null?void 0:a.pages),hasPreviousPage:luA(t,(s=l.data)==null?void 0:s.pages),isFetchingNextPage:h,isFetchingPreviousPage:B,isRefetching:g&&!h&&!B}}}var pL={exports:{}},nx={};/**
|
|
96
96
|
* @license React
|
|
97
97
|
* use-sync-external-store-shim.production.min.js
|
|
98
98
|
*
|
|
@@ -394,10 +394,10 @@ ${A.errorObject}`,r=["color: red","color: inherited"]);throw t&&console.log(t,..
|
|
|
394
394
|
Copyright (c) 2018 Jed Watson.
|
|
395
395
|
Licensed under the MIT License (MIT), see
|
|
396
396
|
http://jedwatson.github.io/classnames
|
|
397
|
-
*/(function(A){(function(){var e={}.hasOwnProperty;function t(){for(var o="",i=0;i<arguments.length;i++){var a=arguments[i];a&&(o=n(o,r(a)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return t.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var i="";for(var a in o)e.call(o,a)&&o[a]&&(i=n(i,a));return i}function n(o,i){return i?o?o+" "+i:o+i:o}A.exports?(t.default=t,A.exports=t):window.classNames=t})()})(o7);var PyA=o7.exports;const _n=ko(PyA),Uk={wrapper:"_wrapper_dyj8i_13",dark:"_dark_dyj8i_28"};function RA(A,e,t){return{type:A,renderer:t,metadata:e}}function VQ(A,e){return RA(A,e,()=>{throw new Error("Prop holder component, shouldn't render")})}function XQ(A,e,t){return{type:A,renderer:e,hints:t}}let ZQ=null;function TyA({value:A}){const{activeThemeTone:e}=nr(),[t,r]=d.useState(!1);d.useEffect(()=>{async function o(){if(!ZQ){const{createHighlighterCore:i}=await Promise.resolve().then(()=>gAe);ZQ=await i({themes:[Promise.resolve().then(()=>dAe)],langs:[Promise.resolve().then(()=>hAe)],loadWasm:Promise.resolve().then(()=>EAe)})}r(!0)}o()},[]);const n=d.useMemo(()=>!t||!ZQ?"":ZQ.codeToHtml(A,{lang:"xmlui",theme:"xmlui",colorReplacements:{"#000001":"var(--syntax-token-component)","#000002":"var(--syntax-token-delimiter-angle)","#000003":"var(--syntax-token-attribute-name)","#000004":"var(--syntax-token-equal-sign)","#000005":"var(--syntax-token-string)","#000006":"var(--syntax-token-script)","#000007":"var(--syntax-token-helper)","#000008":"var(--syntax-token-comment)","#000009":"var(--syntax-token-escape)","#000010":"var(--syntax-token-constant)","#000011":"var(--syntax-token-cdata)","#000012":"var(--syntax-token-delimiter-curly)","#000013":"var(--syntax-token-text)"}}),[t,A]);return Q.jsx("div",{className:_n(Uk.wrapper,{[Uk.dark]:e==="dark",[Uk.light]:e==="light"}),dangerouslySetInnerHTML:{__html:n}})}const LyA={wrapper:"_wrapper_fpcuh_13"};var FyA={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_Pdf:"false",VITE_USED_COMPONENTS_Chart:"false",VITE_USER_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_XMLUI_VERSION:"0.7.
|
|
397
|
+
*/(function(A){(function(){var e={}.hasOwnProperty;function t(){for(var o="",i=0;i<arguments.length;i++){var a=arguments[i];a&&(o=n(o,r(a)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return t.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var i="";for(var a in o)e.call(o,a)&&o[a]&&(i=n(i,a));return i}function n(o,i){return i?o?o+" "+i:o+i:o}A.exports?(t.default=t,A.exports=t):window.classNames=t})()})(o7);var PyA=o7.exports;const _n=ko(PyA),Uk={wrapper:"_wrapper_dyj8i_13",dark:"_dark_dyj8i_28"};function RA(A,e,t){return{type:A,renderer:t,metadata:e}}function VQ(A,e){return RA(A,e,()=>{throw new Error("Prop holder component, shouldn't render")})}function XQ(A,e,t){return{type:A,renderer:e,hints:t}}let ZQ=null;function TyA({value:A}){const{activeThemeTone:e}=nr(),[t,r]=d.useState(!1);d.useEffect(()=>{async function o(){if(!ZQ){const{createHighlighterCore:i}=await Promise.resolve().then(()=>gAe);ZQ=await i({themes:[Promise.resolve().then(()=>dAe)],langs:[Promise.resolve().then(()=>hAe)],loadWasm:Promise.resolve().then(()=>EAe)})}r(!0)}o()},[]);const n=d.useMemo(()=>!t||!ZQ?"":ZQ.codeToHtml(A,{lang:"xmlui",theme:"xmlui",colorReplacements:{"#000001":"var(--syntax-token-component)","#000002":"var(--syntax-token-delimiter-angle)","#000003":"var(--syntax-token-attribute-name)","#000004":"var(--syntax-token-equal-sign)","#000005":"var(--syntax-token-string)","#000006":"var(--syntax-token-script)","#000007":"var(--syntax-token-helper)","#000008":"var(--syntax-token-comment)","#000009":"var(--syntax-token-escape)","#000010":"var(--syntax-token-constant)","#000011":"var(--syntax-token-cdata)","#000012":"var(--syntax-token-delimiter-curly)","#000013":"var(--syntax-token-text)"}}),[t,A]);return Q.jsx("div",{className:_n(Uk.wrapper,{[Uk.dark]:e==="dark",[Uk.light]:e==="light"}),dangerouslySetInnerHTML:{__html:n}})}const LyA={wrapper:"_wrapper_fpcuh_13"};var FyA={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_Pdf:"false",VITE_USED_COMPONENTS_Chart:"false",VITE_USER_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_XMLUI_VERSION:"0.7.19 (built 1/31/2025)"};const Kk=d.createContext(null);function OyA({children:A,sources:e}){const[t,r]=d.useState({}),n=d.useMemo(()=>({sources:e,attach:(o,i,a)=>{r(s=>({...s,[a]:{node:o,uid:i,inspectId:a,key:0}}))},refresh:o=>{r(i=>({...i,[o]:{...i[o],key:i[o].key+1}}))},detach:(o,i)=>{r(a=>{const s={...a};return delete s[i],s})}}),[e]);return Q.jsxs(Kk.Provider,{value:n,children:[A,FyA.VITE_USER_COMPONENTS_Inspect!=="false"&&t&&Object.values(t).map(o=>Q.jsx(GyA,{inspectId:o.inspectId,node:o.node},o.inspectId+ +"-"+o.key))]})}function HyA(A){var r;const{sources:e}=d.useContext(Kk),t=d.useMemo(()=>{var g;const n=(g=A.node.debug)==null?void 0:g.source;if(!n||!e)return"";const{start:o,end:i,fileId:a}=n,s=e[a].slice(o,i);let l=!0;const c=[];let u;return s.split(`
|
|
398
398
|
`).forEach(h=>{if(!(h.trim()===""&&l)){l=!1,c.push(h);const B=h.search(/\S|$/);h.trim()!==""&&(u===void 0||B<u)&&(u=B)}}),c.map(h=>h.slice(u)).join(`
|
|
399
399
|
`)},[(r=A.node.debug)==null?void 0:r.source,e]);return Q.jsx(Qd,{isInitiallyOpen:!0,onClose:A.onClose,style:{width:"auto",maxWidth:"100%",minWidth:400},children:Q.jsx(TyA,{value:t})})}function GyA({inspectId:A,node:e}){const{root:t}=nr(),[r,n]=d.useState(null),[o,i]=d.useState(null),{styles:a,attributes:s}=tDA(r,o,{placement:"top-end",modifiers:[{name:"offset",options:{offset:[0,-18]}}]}),[l,c]=d.useState(!1),[u,g]=d.useState(!1),h=d.useRef(null),B=d.useRef(!1);return d.useEffect(()=>{const E=document.querySelector(`[data-inspectId="${A}"]`);if(!E)return;n(E);function C(){h.current&&clearTimeout(h.current),c(!0)}function m(){h.current&&clearTimeout(h.current),!B.current&&(h.current=window.setTimeout(()=>{c(!1)},100))}return E.addEventListener("mouseenter",C),E.addEventListener("mouseleave",m),()=>{E.removeEventListener("mouseenter",C),E.removeEventListener("mouseleave",m)}},[A]),Q.jsxs(Q.Fragment,{children:[l&&!!t&&Dr.createPortal(Q.jsx(or,{icon:Q.jsx(be,{name:"code"}),variant:"ghost",size:"xs",className:_n(LyA.wrapper,"_debug-inspect-button"),ref:E=>i(E),style:{...a.popper},...s.popper,onMouseEnter:()=>{B.current=!0,h.current&&(clearTimeout(h.current),h.current=null)},onMouseLeave:()=>{B.current=!1,c(!1)},onClick:()=>{g(!0)}}),t),u&&Q.jsx(HyA,{onClose:()=>g(!1),node:e})]})}function UyA(A,e){var i;const t=d.useContext(Kk),r=(i=A.props)==null?void 0:i.inspect,n=d.useId(),o=d.useCallback(()=>{t==null||t.refresh(n)},[t,n]);return d.useEffect(()=>(r&&(t==null||t.attach(A,e,n)),()=>{t==null||t.detach(e,n)}),[t,n,A,r,e]),r&&t?{refreshInspection:o,inspectId:n}:{}}const Aw=d.memo(({node:A,renderChild:e,layoutContext:t,slotProps:r=qe})=>{const n=kn(r),o=d.useMemo(()=>{const i={};return Object.entries(n).forEach(([a,s])=>{i["$"+a]=s}),{type:"Container",contextVars:i,children:Array.isArray(A)?A:[A]}},[A,n]);return Q.jsx(Q.Fragment,{children:e(o,t)})}),Yk=["horizontalAlignment","verticalAlignment","orientation","width","minWidth","maxWidth","height","minHeight","maxHeight","gap","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderStyle","borderThickness","radius","radiusTopLeft","radiusTopRight","radiusBottomLeft","radiusBottomRight","padding","horizontalPadding","verticalPadding","paddingTop","paddingRight","paddingBottom","paddingLeft","backgroundColor","background","shadow","direction","horizontalOverflow","verticalOverflow","zIndex","color","fontFamily","fontSize","fontWeight","italic","textDecoration","wrapContent","canShrink","margin","horizontalMargin","verticalMargin","marginTop","marginRight","marginBottom","marginLeft","userSelect","letterSpacing","textTransform","lineHeight","opacity","cursor","textWrap","textAlign","textAlignLast","top","right","bottom","left","zoom"],KyA={cssProps:{},nonCssProps:{}};function i7(A=qe,e,t){var yy;const r={cssProps:{},nonCssProps:{}},n=r.cssProps,o=oe("horizontalAlignment",A);o&&(r.nonCssProps.horizontalAlignment=o);const i=oe("verticalAlignment",A);i&&(r.nonCssProps.verticalAlignment=i);const a=Ln("orientation",A);a&&(r.nonCssProps.orientation=a),Ap(t)&&(n.flexShrink=0);const s=Kt("width",A);s.value&&(n.width=s.value),vy(s,t)&&(n.flex=s.ratio,n.flexShrink=1);const l=Kt("minWidth",A);l.value&&(n.minWidth=l.value);const c=Kt("maxWidth",A);c.value&&(n.maxWidth=c.value);const u=Kt("height",A);u.value&&(n.height=u.value),Dy(u,t)&&(n.flex=u.ratio,n.flexShrink=1);const g=Kt("minHeight",A);g.value&&(n.minHeight=g.value);const h=Kt("maxHeight",A);h.value&&(n.maxHeight=h.value);const B=Kt("top",A);B.value&&(n.top=B.value);const E=Kt("right",A);E.value&&(n.right=E.value);const C=Kt("bottom",A);C.value&&(n.bottom=C.value);const m=Kt("left",A);m.value&&(n.left=m.value);const I=Kt("gap",A);I.value&&(n.gap=I.value);const v=ug("border",A);v&&(n.border=v);const y=ug("borderTop",A);y&&(n.borderTop=y);const x=ug("borderRight",A);x&&(n.borderRight=x);const b=ug("borderBottom",A);b&&(n.borderBottom=b);const k=ug("borderLeft",A);k&&(n.borderLeft=k);const M=ou("borderColor",A);M&&(n.borderColor=M);const N=D6("borderStyle",A);N&&(n.borderStyle=N);const F=Kt("borderThickness",A);F.value&&(n.borderWidth=F.value);const L=ri("radius",A);L&&(n.borderRadius=L);const T=ri("radiusTopLeft",A);T&&(n.borderTopLeftRadius=T);const P=ri("radiusTopRight",A);P&&(n.borderTopRightRadius=P);const G=ri("radiusBottomLeft",A);G&&(n.borderBottomLeftRadius=G);const H=ri("radiusBottomRight",A);H&&(n.borderBottomRightRadius=H);const z=Kt("padding",A);z.value&&(n.padding=z.value);const q=Kt("horizontalPadding",A),O=Kt("verticalPadding",A),Y=kt(Kt("paddingLeft",A),q);Y.value&&(n.paddingLeft=Y.value);const S=kt(Kt("paddingRight",A),q);S.value&&(n.paddingRight=S.value);const J=kt(Kt("paddingTop",A),O);J.value&&(n.paddingTop=J.value);const $=kt(Kt("paddingBottom",A),O);$.value&&(n.paddingBottom=$.value);const U=wn("margin",A);U&&(n.margin=U);const AA=wn("horizontalMargin",A),Z=wn("verticalMargin",A),tA=wn("marginLeft",A)??AA;tA&&(n.marginLeft=tA);const nA=wn("marginRight",A)??AA;nA&&(n.marginRight=nA);const sA=wn("marginTop",A)??Z;sA&&(n.marginTop=sA);const iA=wn("marginBottom",A)??Z;iA&&(n.marginBottom=iA);const aA=ou("backgroundColor",A);aA&&(n.backgroundColor=aA);const rA=Zh("background",A);rA&&(n.background=rA);const X=Qy("shadow",A);X&&(n.boxShadow=X);const cA=lg("direction",A);cA&&(n.direction=cA);const hA=Fn("horizontalOverflow",A);hA&&(n.overflowX=hA);const EA=Fn("verticalOverflow",A);EA&&(n.overflowY=EA);const IA=Nl("zIndex",A);IA&&(n.zIndex=IA);const DA=Fr("opacity",A);DA&&(n.opacity=DA);const SA=Zn("zoom",A);SA&&(n.zoom=SA);const JA=ou("color",A);JA&&(n.color=JA);const jA=cg("fontFamily",A);jA&&(n.fontFamily=jA);const $A=Kt("fontSize",A);$A.value&&(n.fontSize=$A.value);const VA=Xh("fontWeight",A);VA&&(n.fontWeight=VA);const pe=wy("italic",A);pe&&(n.fontStyle=pe);const bA=y6("textDecoration",A);bA&&(n.textDecoration=bA);const qA=Ut("userSelect",A);qA&&(n.userSelect=qA);const dA=Kt("letterSpacing",A);dA.value&&(n.letterSpacing=dA.value);const wA=Xe("textTransform",A);wA&&(n.textTransform=wA);const HA=Lr("lineHeight",A);HA&&(n.lineHeight=HA);const Ae=Te("textAlign",A);Ae&&(n.textAlign=Ae);const ce=Te("textAlignLast",A);ce&&(n.textAlignLast=ce);const te=(yy=A==null?void 0:A.textWrap)==null?void 0:yy.toString();te&&(n.textWrap=te);const Pe=b6("wrapContent",A);Pe&&(n.flexWrap=Pe);const Ke=Iy("canShrink",A);Ke&&(n.flexShrink=Ke);const Ct=xs("cursor",A);if(Ct&&(n.cursor=Ct),jl(r.cssProps)&&jl(r.nonCssProps)&&jl(r.issues))return KyA;return r;function kt(xA,zA){return xA.value?xA:zA}function Ce(xA){return e==null?void 0:e[xA.id.substring(1)]}function YA(xA){const zA=Ce(xA);return!(zA===void 0||zA==="")}function PA(xA,zA,gA,mt){var jr,ks;const Qt=Br();if(((jr=t==null?void 0:t.mediaSize)==null?void 0:jr.sizeIndex)!==void 0){const un=(ks=t.mediaSize)==null?void 0:ks.sizeIndex,Rl=Br("xs"),In=Br("sm"),au=Br("md"),Io=Br("lg"),by=Br("xl"),ep=Br("xxl");let Hi;switch(un){case 0:Hi=Rl??In??au;break;case 1:Hi=In??au;break;case 2:Hi=au;break;case 3:Hi=Io;break;case 4:Hi=by??Io;break;case 5:Hi=ep??by??Io;break}return Hi??Qt}return Qt;function Br(un){var au;const Rl=(au=zA==null?void 0:zA[xA+(un?`-${un}`:"")])==null?void 0:au.toString();if(!Rl)return;const In=new P9(Rl);try{const Io=gA(In);return Io?In.testCompleted()?Io.themeId?io(Io.themeId):mt(Io):(r.issues??(r.issues={}),r.issues[xA]=`Unexpected tail after the ${xA}`,Rl):Rl}catch(Io){return r.issues??(r.issues={}),r.issues[xA]=Io==null?void 0:Io.toString(),Rl}}}function oe(xA,zA){return PA(xA,zA,gA=>gA.parseAlignment(),gA=>gA.value)}function Te(xA,zA){return PA(xA,zA,gA=>gA.parseTextAlign(),gA=>gA.value)}function Ut(xA,zA){return PA(xA,zA,gA=>gA.parseUserSelect(),gA=>gA.value)}function Xe(xA,zA){return PA(xA,zA,gA=>gA.parseTextTransform(),gA=>gA.value)}function Ln(xA,zA){return PA(xA,zA,gA=>gA.parseOrientation(),gA=>gA.value)}function Lr(xA,zA){return PA(xA,zA,gA=>gA.parseLineHeight(),gA=>`${gA.value}${gA.unit}`)}function Fr(xA,zA){return PA(xA,zA,gA=>gA.parseOpacity(),gA=>`${gA.value}${gA.unit}`)}function Zn(xA,zA){return PA(xA,zA,gA=>gA.parseZoom(),gA=>`${gA.value}${gA.unit??""}`)}function Kt(xA,zA){let gA=!1,mt,Qt=PA(xA,zA,Br=>{const jr=Br.parseSize();return gA=(jr==null?void 0:jr.unit)==="*",gA&&(mt=(jr==null?void 0:jr.value)??1),jr},Br=>Br.extSize??`${Br.value}${Br.unit}`);return{value:Qt?x6(Qt):void 0,ratio:mt,isStarSize:gA}}function wn(xA,zA){return PA(xA,zA,gA=>gA.parseMargin(),gA=>gA.extSize??`${gA.value}${gA.unit}`)}function Nl(xA,zA){return PA(xA,zA,gA=>gA.parseZIndex(),gA=>gA.value.toString())}function Fn(xA,zA){return PA(xA,zA,gA=>gA.parseScrolling(),gA=>gA.value)}function lg(xA,zA){return PA(xA,zA,gA=>gA.parseDirection(),gA=>gA.value)}function xs(xA,zA){return PA(xA,zA,gA=>gA.parseCursor(),gA=>gA.value)}function Xh(xA,zA){return PA(xA,zA,gA=>gA.parseFontWeight(),gA=>{var mt;return(mt=gA.value)==null?void 0:mt.toString()})}function cg(xA,zA){return PA(xA,zA,gA=>gA.parseFontFamily(),gA=>gA.value)}function ou(xA,zA){return PA(xA,zA,gA=>gA.parseColor(),gA=>gA.value!==void 0?typeof gA.value=="number"?`#${gA.value.toString(16).padStart(8,"0")}`:gA.value:void 0)}function Zh(xA,zA){return PA(xA,zA,gA=>gA.parseColor(),gA=>gA.value!==void 0?typeof gA.value=="number"?`#${gA.value.toString(16).padStart(8,"0")}`:gA.value:void 0)}function iu(...xA){let zA=xA.filter(gA=>gA!==void 0);if(!zA.length)return!1;for(let gA=0;gA<zA.length;gA++){const mt=zA[gA];if(YA(mt))return!1;if(mt.defaultValue){if(mt.defaultValue.find(jr=>typeof jr=="string")!==void 0)return!1;const Br=mt.defaultValue.filter(jr=>typeof jr!="string");if(!iu(...Br))return!1}}return!0}function ug(xA,zA){return PA(xA,zA,gA=>gA.parseBorder(),gA=>{if(!iu(gA.themeId1,gA.themeId2,gA.themeId3))return(`${gA.themeId1?io(gA.themeId1):""} ${gA.themeId2?io(gA.themeId2):""} ${gA.themeId3?io(gA.themeId3):""}`.trim()+` ${gA.widthValue??""}${gA.widthUnit??""}${gA.widthValue&&gA.styleValue?" ":""}${gA.styleValue??""}${(gA.widthValue||gA.styleValue)&&gA.color?" ":""}${gA.color!==void 0?typeof gA.color=="number"?`#${gA.color.toString(16).padStart(8,"0")}`:gA.color:""}`).trim()})}function D6(xA,zA){return PA(xA,zA,gA=>gA.parseBorderStyle(),gA=>gA.value)}function y6(xA,zA){return PA(xA,zA,gA=>gA.parseTextDecoration(),gA=>{if(gA.none)return"none";if(!iu(gA.themeId1,gA.themeId2,gA.themeId3))return(`${gA.themeId1?io(gA.themeId1):""} ${gA.themeId2?io(gA.themeId2):""} ${gA.themeId3?io(gA.themeId3):""}`.trim()+` ${gA.line??""}${gA.line&&gA.style?" ":""}${gA.style??""}${(gA.line||gA.style)&&gA.color?" ":""}${gA.color??""}`).trim()})}function ri(xA,zA){return PA(xA,zA,gA=>gA.parseRadius(),gA=>{if(iu(gA.themeId1,gA.themeId2))return;const mt=`${gA.themeId1?io(gA.themeId1):""}`,Qt=`${gA.value1??""}${gA.unit1??""}`,Br=`${gA.themeId2?io(gA.themeId2):""}`,jr=`${gA.value2??""}${gA.unit2??""}`;let ks=`${mt}${Qt}`,un=`${Br}${jr}`;return ks+=un?" / "+un:"",ks.trim()})}function Qy(xA,zA){return PA(xA,zA,gA=>gA.parseShadow(),gA=>{let mt="";for(const Qt of gA.segments??[])mt&&(mt+=", "),mt+=Qt.inset?"inset ":"",mt+=`${Qt.offsetXValue}${Qt.offsetXUnit} ${Qt.offsetYValue}${Qt.offsetYUnit}`,Qt.blurRadiusValue!==void 0&&(mt+=` ${Qt.blurRadiusValue}${Qt.blurRadiusUnit}`),Qt.spreadRadiusValue!==void 0&&(mt+=` ${Qt.spreadRadiusValue}${Qt.spreadRadiusUnit}`),Qt.color!==void 0&&(mt+=` ${Qt.color}`);return mt})}function wy(xA,zA){return PA(xA,zA,gA=>gA.parseBoolean(),gA=>gA.value?"italic":"normal")}function b6(xA,zA){return PA(xA,zA,gA=>gA.parseBoolean(),gA=>gA.value?"wrap":"nowrap")}function Iy(xA,zA){return PA(xA,zA,gA=>gA.parseBoolean(),gA=>gA.value?"1":"0")}function vy(xA,zA){return xA.value?Ap(zA)==="horizontal"&&xA.isStarSize:!1}function Dy(xA,zA){return xA.value?Ap(zA)==="vertical"&&xA.isStarSize:!1}function Ap(xA){if(!xA)return;let zA=(xA==null?void 0:xA.type)==="Stack"&&(xA==null?void 0:xA.orientation);return zA==null?void 0:zA.toString()}function x6(xA){const zA=/\$([a-zA-Z0-9_-]+)/gi;let gA=xA.matchAll(zA);if(gA){let mt=xA;for(let Qt of gA){const Br=Qt[0];Br&&(mt=mt.replace(Qt[0],io(Br)))}return mt}return xA}}function YyA(A,e){const t=i("click",A,e),r=i("mouseLeave",A,e),n=i("mouseEnter",A,e),o=i("doubleClick",A,e);if(e)return qe;return{onClick:t,onMouseLeave:r,onMouseEnter:n,onDoubleClick:o};function i(a,s,l){const c=l?void 0:s(a),u=d.useCallback(g=>{c&&(g.stopPropagation(),c(g))},[c]);return c?u:void 0}}const $yA=d.forwardRef(function({node:e,state:t,appContext:r,dispatch:n,lookupAction:o,lookupSyncCallback:i,renderChild:a,registerComponentApi:s,layoutContextRef:l,parentRenderContext:c,memoedVarsRef:u,onUnmount:g,uidInfoRef:h,...B},E){var nA;const C=d.useMemo(()=>({...e,props:e.props||qe,events:e.events||qe}),[e]),m=d.useMemo(()=>Symbol(C.uid),[C.uid]);d.useEffect(()=>()=>{g(m)},[g,m]);const I=d.useCallback(sA=>{s(m,sA)},[s,m]),v=d.useCallback(sA=>{n({type:en.COMPONENT_STATE_CHANGED,payload:{uid:m,state:sA}})},[n,m]),y=sQ(t),x=d.useMemo(()=>L9(t,r,y,u),[r,u,y,t]),b=d.useCallback(sA=>i(x(sA),m),[i,m,x]),k=d.useCallback((sA,iA)=>o(sA,m,iA),[o,m]),M=d.useCallback((sA,iA,aA)=>a(sA,iA,aA||c,h),[a,c,h]),N=d.useMemo(()=>a7(C.props,"DataSource","DataSourceRef"),[C.props]),F=d.useMemo(()=>a7(C.events,"APICall","FileDownload","FileUpload"),[C.events]),L=N.length>0||F.length>0;if(L)return Q.jsx(J1A,{uid:m,renderChild:M,node:C,apiBoundEvents:F,apiBoundProps:N,layoutContextRef:l,parentRendererContext:c},C.uid);const T=iQ(),{renderer:P,descriptor:G,isCompoundComponent:H}=T.lookupComponentRenderer(C.type)||{},z=d.useCallback((sA,iA)=>{var rA;const aA=((rA=C.events)==null?void 0:rA[sA])||(iA==null?void 0:iA.defaultHandler);return o(aA,m,{eventName:sA,...iA})},[o,C.events,m]),q=YyA(z,(G==null?void 0:G.nonVisual)||L),{getResourceUrl:O,themeVars:Y}=nr(),S=d.useCallback(sA=>{const iA=x(sA);return O(iA)},[O,x]),{cssProps:J,nonCssProps:$}=d.useMemo(()=>{const sA={};return Yk.forEach(iA=>{C.props&&iA in C.props&&(sA[iA]=x(C.props[iA],!0))}),i7(sA,Y,{...l==null?void 0:l.current,mediaSize:r.mediaSize})},[r.mediaSize,l,C.props,Y,x]),U=kn(J),AA=kn($);let Z=null,tA=null;try{const sA={node:C,state:t[m]||qe,updateState:v,appContext:r,extractValue:x,lookupEventHandler:z,lookupAction:k,lookupSyncCallback:b,extractResourceUrl:S,renderChild:M,registerComponentApi:I,layoutCss:U,layoutNonCss:AA,layoutContext:l==null?void 0:l.current,uid:m};if(C.type==="Slot")Z=jyA(sA,c);else{if(!P)return console.error(`Component '${C.type}' is not available. Did you forget to register it?`),Q.jsx(H1A,{message:`${C.type}`});Z=P(sA)}const{inspectId:iA,refreshInspection:aA}=UyA(C,m);if((r!=null&&r.decorateComponentsWithTestId&&(C.uid!==void 0||C.testId!==void 0)||r!=null&&r.debugEnabled&&iA!==void 0)&&(G==null?void 0:G.nonVisual)!==!0&&(G==null?void 0:G.opaque)!==!0){const rA=C.testId||C.uid,X=Fe(t,rA,r,!0);Z=Q.jsx(G1A,{attr:{"data-testid":X,"data-inspectId":iA},allowOnlyRefdChild:H||C.type==="ModalDialog",onTargetMounted:C.type==="ModalDialog"?aA:void 0,ref:E,children:d.cloneElement(Z,{...NQ({...Z.props,...q},B)})})}(nA=l.current)!=null&&nA.wrapChild&&(Z=l.current.wrapChild(sA,Z,G))}catch(sA){tA=(sA==null?void 0:sA.message)||"Internal error",console.error(sA)}return tA?Q.jsx(k9,{errors:[tA],node:C,children:Z}):(E||!jl(q))&&Z&&_A.isValidElement(Z)?d.cloneElement(Z,{ref:E?Zr(E,Z.ref):void 0,...NQ({...Z.props,...q},B)}):_A.isValidElement(Z)?Z:Q.jsx(Q.Fragment,{children:Z})});function jyA({node:A,extractValue:e,renderChild:t,lookupAction:r,layoutContext:n},o){const i=e.asOptionalString(A.props.name);if(i&&!i.endsWith("Template"))return Q.jsx(k9,{node:A,errors:[`Slot name '${i}' is not valid. A named slot should use a name ending with 'Template'.`]});let a=null;if(jl(A.props)||(a={},Object.keys(A.props).forEach(s=>{if(s!=="name"){let l=e(A.props[s],!0);l!=null&&l._ARROW_EXPR_&&(l=r(l)),a[s]=l}})),o){if(i===void 0)return a?Q.jsx(Aw,{node:o.children,renderChild:o.renderChild,slotProps:a,layoutContext:n}):o.renderChild(o.children,n);if(o.props[i])return Q.jsx(Aw,{node:o.props[i],renderChild:o.renderChild,slotProps:a,layoutContext:n})}if(A.children&&A.children.length>0)return Q.jsx(Aw,{node:A.children,renderChild:t,slotProps:a??qe,layoutContext:n})}function a7(A,...e){const t=[];if(!A)return t;const r=Object.entries(A);for(let n=0;n<r.length;n++){const[o,i]=r[n];_o(i)&&e.includes(i.type)&&t.push(o)}return t}function s7(A){const e=new nd(A);let t=null;try{t=e.parseStatements()}catch(r){if(e.errors.length>0){const n=e.errors[0];id(new mB(`${n.code}(${n.line}, ${n.column}): ${e.errors[0].text}`,A,n.position))}else throw r}if(!e.isEof){const r=e.getTail();id(new mB("Invalid tail found",A,A.length-r.length+1))}return t}function l7(A,e){const t=(A==null?void 0:A.length)??0;if(t===0)return[{type:"ArrowS",expression:{type:"ArrowE",args:[],statement:{type:"EmptyS"}}}];if(t===1){const o=A[0];if(o.type==="ExprS"){if(e){if(o.expression.type==="IdE")return[n(o.expression)];if(r(o.expression))return[n(o.expression)]}return o.expression.type==="ArrowE"?[{type:"ArrowS",expression:o.expression}]:[{type:"ArrowS",expression:{type:"ArrowE",args:[],statement:A[0]}}]}if(o.type==="RetS")return[{type:"ArrowS",expression:{type:"ArrowE",args:[],statement:{type:"BlockS",statements:[o]}}}];if(o.type==="BlockS")return o.statements[0].type==="ExprS"&&o.statements[0].expression.type==="ArrowE"?[{type:"ArrowS",expression:o.statements[0].expression}]:[{type:"ArrowS",expression:{type:"ArrowE",args:[],statement:A[0]}}]}if(t>1)return[{type:"ArrowS",expression:{type:"ArrowE",args:[],statement:{type:"BlockS",statements:A}}}];return A;function r(o){return(o.type==="MembE"||o.type==="CMembE"&&o.member.type==="LitE")&&(r(o.object)||o.object.type==="IdE")}function n(o){const i=e.eventArgs?e.eventArgs.map((s,l)=>({type:"IdE",name:`__arg@@#__${l}__`})):[];return e.eventArgs&&e.eventArgs.forEach((s,l)=>{e.localContext[`__arg@@#__${l}__`]=s}),{type:"ArrowS",expression:{type:"ArrowE",args:i,statement:{type:"ExprS",expression:{type:"InvokeE",object:o,arguments:[...i]}}}}}}async function qyA(A,e,t,r){const n=l7(s7(A));return await nk(n,e,t,r)}const c7=d.createContext(void 0);function Ii(){return d.useContext(c7)}const ew="__PARSED__";function u7(A,e,t,r){const n={vars:{},moduleErrors:{},functions:{}},o={},i=WIA(A,e,t,!0);if(zIA(i))return{...n,moduleErrors:i};const a=r(i.name);return i.statements.forEach(c=>{switch(c.type){case"VarS":c.declarations.forEach(u=>{if(u.id in n.vars)throw new Error(`Duplicated var declaration: '${u.id}'`);n.vars[u.id]={[ew]:!0,source:u.expression.source,tree:u.expression}});break;case"FuncD":l(a,c);break;case"ImportD":break;default:throw new Error(`'${c.type}' is not allowed in a code-behind module.`)}}),s(i),n;function s(c){var g;const u=r(c.name);if(!((g=o==null?void 0:o[u])!=null&&g.collectedImportsFrom)){for(const h in c.imports){const B=r(h),E=c.imports[h];for(const C of Object.values(E))C.type==="FuncD"&&l(B,C)}o[u]??(o[u]={collectedImportsFrom:!0}),o[u].collectedImportsFrom=!0;for(let h of c.importedModules)s(h)}}function l(c,u){var C,m,I,v;var g;if(((m=(C=o==null?void 0:o[c])==null?void 0:C.functions)==null?void 0:m[u.name])!==void 0)return;if(u.name in n.functions)throw new Error(`Duplicated function declaration: '${u.name}'`);const h=u.args.length===1?`${u.args[0].source} => ${u.statement.source}`:`(${u.args.map(y=>y.source).join(", ")}) => ${u.statement.source}`,B={type:"ArrowE",args:u.args.slice(),statement:u.statement,closureContext:IQ({childThreads:[],blocks:[{vars:{}}],loops:[],breakLabelValue:-1})},E=(v=(I=B.closureContext[0])==null?void 0:I.vars)==null?void 0:v[u.name];E!=null&&E.closureContext&&delete E.closureContext,o[c]??(o[c]={functions:{},collectedImportsFrom:!1}),(g=o[c]).functions??(g.functions={}),o[c].functions[u.name]={[ew]:!0,source:h,tree:B},n.functions[u.name]={[ew]:!0,source:h,tree:B}}}function JyA(A){if(!A)return;const e={data:null,cancel:!1,skipChildren:!1};Object.keys(A.vars).forEach(r=>{t(A.vars[r])}),Object.keys(A.functions).forEach(r=>{t(A.functions[r])});function t(r){const n=(o,i,a)=>(o&&i&&(delete i.startPosition,delete i.endPosition,delete i.startLine,delete i.endLine,delete i.startColumn,delete i.endColumn,delete i.startToken,delete i.endToken),a);ge(r.tree,e,n,n)}}function zyA(A={}){const e=Object.keys(A);function t(n,o=new Set){if(!e.includes(n))return[n];o.add(n);const i=[];return A[n].forEach(a=>{o.has(a)||(o.add(a),i.push(...t(a,o)))}),i}const r={};return e.forEach(n=>{r[n]=[...new Set(t(n))]}),r}function WyA({node:A,state:e,dispatch:t,lookupAction:r,lookupSyncCallback:n,registerComponentApi:o,onUnmount:i,appContext:a,memoedVarsRef:s}){const l=iQ(),c=d.useMemo(()=>Symbol(A.uid),[A.uid]);d.useEffect(()=>()=>{i(c)},[i,c]);const u=d.useCallback(y=>{o(c,y)},[o,c]),g=d.useCallback((y,x)=>r(y,c,x),[r,c]),h=sQ(e),B=d.useMemo(()=>L9(e,a,h,s),[a,s,h,e]),E=d.useCallback(y=>n(B(y),c),[n,c,B]),C=d.useCallback(y=>{t(VyA(c,y))},[t,c]),m=d.useCallback((y,x)=>{t(XyA(c,y,x))},[t,c]),I=d.useCallback(y=>{t(ZyA(c,y))},[t,c]),v=l.lookupLoaderRenderer(A.type);return v?v({loader:A,state:e,dispatch:t,loaderInProgressChanged:C,loaderLoaded:m,loaderError:I,extractValue:B,registerComponentApi:u,lookupAction:g,lookupSyncCallback:E}):(console.error(`Loader ${A.type} is not available. Did you forget to register it in the loaderRegistry?`),null)}function VyA(A,e){return{type:en.LOADER_IN_PROGRESS_CHANGED,payload:{uid:A,inProgress:e}}}function XyA(A,e,t){return{type:en.LOADER_LOADED,payload:{uid:A,data:e,pageInfo:t}}}function ZyA(A,e){return{type:en.LOADER_ERROR,payload:{uid:A,error:e}}}const f7=d.createContext(null);function AbA({children:A,debugConfig:e}){const[t,r]=d.useState(!1),[n,o]=d.useState(!!(e!=null&&e.displayStateView)),[i,a]=d.useState(!!(e!=null&&e.collectStateTransitions)),[s,l]=d.useState([]),B={showDebugToolsWindow:t,openDebugToolsWindow:()=>{r(!0)},closeDebugToolsWindow:()=>{r(!1)},displayStateView:n,stateViewOptions:{showBoundary:!0,blink:!0},setDisplayStateView:o,collectStateTransitions:i,stateTransitions:s,startCollectingStateTransitions:()=>{a(!0),l([])},stopCollectingStateTransitions:()=>{a(!1)}};return Q.jsx(f7.Provider,{value:B,children:A})}function $k(){return d.useContext(f7)}const SB={themeVars:'"[]"',stateViewerContainer:"_stateViewerContainer_1m8hd_13",overlay:"_overlay_1m8hd_18",showBoundary:"_showBoundary_1m8hd_26",marker:"_marker_1m8hd_30",blink:"_blink_1m8hd_42"},ebA=({children:A,state:e,showBoundary:t=!0,blink:r=!0})=>Q.jsxs("div",{className:_n(SB.stateViewerContainer),style:{width:"inherit",height:"inherit"},children:[A,Q.jsx("div",{className:_n(SB.overlay,{[SB.showBoundary]:t}),children:Q.jsx("div",{className:_n(SB.marker,{[SB.blink]:r}),onClick:()=>{console.log(e)}})})]}),tbA=100;function rbA(A){const e=A.collectStateTransitions;let t,r;return No((n,o)=>{const{uid:i}=o.payload;if(i===void 0&&o.type!==en.STATE_PART_CHANGED)return console.error("uid not provided for control component",{state:n,action:o}),n;if(e)try{t=Fa(n[i])}catch(s){console.error("Error while cloning previous value",s)}switch(o.type){case en.LOADER_IN_PROGRESS_CHANGED:{n[i]={...n[i],inProgress:o.payload.inProgress},a(n[i]);break}case en.LOADER_LOADED:{const{data:s,pageInfo:l}=o.payload;n[i]={value:s,byId:Array.isArray(s)?CBA(s,c=>c.$id):void 0,inProgress:!1,loaded:s!==void 0,pageInfo:l},a(n[i]);break}case en.LOADER_ERROR:{const{error:s}=o.payload;n[i]={...n[i],error:s,inProgress:!1,loaded:!0},a(n[i]);break}case en.EVENT_HANDLER_STARTED:{const{eventName:s}=o.payload,l=`${s}InProgress`;n[i]={...n[i],[l]:!0},a(n[i]);break}case en.EVENT_HANDLER_COMPLETED:{const{eventName:s}=o.payload,l=`${s}InProgress`;n[i]={...n[i],[l]:!1},a(n[i]);break}case en.EVENT_HANDLER_ERROR:{const{eventName:s}=o.payload,l=`${s}InProgress`;n[i]={...n[i],[l]:!1},a(n[i]);break}case en.COMPONENT_STATE_CHANGED:{const{state:s}=o.payload;n[i]={...n[i],...s},a(n[i]);break}case en.STATE_PART_CHANGED:{const{path:s,value:l,target:c,actionType:u}=o.payload;u==="unset"?(HBA(n,s),a(n)):NBA(n,s,l,g=>{if(g===void 0&&_o(c)){const h=Object(g);return a(h),h}});break}default:throw new Error}if(e){const s={action:o.type,uid:i,prevState:t,nextState:r};console.log("Transition",s),A.stateTransitions&&(A.stateTransitions.length>=tbA&&A.stateTransitions.shift(),A.stateTransitions.push(s))}function a(s){if(e)try{r=Fa(s)}catch(l){console.error("Error while cloning next value",l)}}})}function nbA(A,e){return g7({node:A,state:qe,dispatch:ve,appContext:void 0,lookupAction:ve,lookupSyncCallback:ve,registerComponentApi:ve,renderChild:ve,stateFieldPartChanged:ve,cleanup:ve,memoedVarsRef:e})}const obA=d.memo(d.forwardRef(function({node:e,componentState:t,dispatch:r,parentDispatch:n,resolvedKey:o,version:i,setVersion:a,stateFieldPartChanged:s,registerComponentApi:l,parentRegisterComponentApi:c,layoutContextRef:u,parentRenderContext:g,memoedVarsRef:h,isImplicit:B,uidInfoRef:E},C){var aA;const{apiBoundContainer:m}=e,I=B?n:r,v=B?c:l,y=Ii(),{getThemeVar:x}=nr(),b=Mp(),k=Ji(),M=d.useRef({}),N=d.useRef(t);N.current=t;const F=d.useRef({}),L=d.useRef(new Map),[T,P]=d.useTransition(),G=d.useRef(!0);Aa(()=>{for(const rA of L.current.values())rA()},[i]),d.useEffect(()=>{G.current=!0;const rA=L.current;return()=>{G.current=!1;for(const X of rA.values())X()}},[]);const H=ze(async(rA,X,cA,...hA)=>{var JA,jA,$A;let EA=[];const IA=()=>{EA.length=0;const VA=Fa({...N.current});return VA.$this=N.current[X],kO(VA,pe=>{var qA;const bA=(qA=pe.pathArray)==null?void 0:qA[0];if(bA!=null&&bA.startsWith("$"))throw new Error("Cannot update a read-only variable");EA.push(pe)})},DA={...y,getThemeVar:x},SA={appContext:DA,eventArgs:hA,localContext:IA(),implicitContextGetter:()=>({uid:X,state:N.current,dispatch:I,appContext:DA,navigate:b,location:k,lookupAction:(VA,pe,bA={})=>S(VA,pe,{...bA,ephemeral:!0})}),options:{defaultToOptionalMemberAccess:typeof((JA=y.appGlobals)==null?void 0:JA.defaultToOptionalMemberAccess)=="boolean"?y.appGlobals.defaultToOptionalMemberAccess:!0}};try{let VA;if(typeof rA=="string"?(F.current[rA]||(F.current[rA]=l7(s7(rA),SA)),VA=F.current[rA]):VA=[{type:"ArrowS",expression:Fa(rA)}],!(VA!=null&&VA.length))return;jk(X.description,cA==null?void 0:cA.eventName)&&I(EbA(X.description,cA.eventName));let pe=0;if(await nk(VA,SA,void 0,async(bA,qA)=>{if(EA.length){pe=0,EA.forEach(Ae=>{s(Ae.pathArray,Fa(Ae.newValue),Ae.target,Ae.action)});let dA=null;const wA=new Promise(Ae=>{dA=()=>{Ae(null)}}),HA=aB();L.current.set(HA,dA),P(()=>{a(Ae=>Ae+1)}),G.current?await wA:await Zg(0),L.current.delete(HA),EA=[]}else pe++,pe>100&&(pe=0,await Zg(0));bA.localContext=IA()}),jk(X.description,cA==null?void 0:cA.eventName)&&I(CbA(X.description,cA.eventName)),($A=(jA=SA.mainThread)==null?void 0:jA.blocks)!=null&&$A.length)return SA.mainThread.blocks[SA.mainThread.blocks.length-1].returnValue}catch(VA){throw(cA==null?void 0:cA.signError)!==!1&&y.signError(VA),jk(X.description,cA==null?void 0:cA.eventName)&&I(mbA(X.description,cA.eventName,VA)),VA}}),z=d.useCallback((rA,...X)=>{var hA,EA;const cA={localContext:Fa(N.current),appContext:y,eventArgs:X};try{if(sk([{type:"ArrowS",expression:rA}],cA),(EA=(hA=cA.mainThread)==null?void 0:hA.blocks)!=null&&EA.length)return cA.mainThread.blocks[cA.mainThread.blocks.length-1].returnValue}catch(IA){throw console.error(IA),IA}},[y]),q=ze((rA,X,cA)=>{var DA;const hA=typeof rA=="string"?rA:rA.statement.source,EA=`${cA==null?void 0:cA.eventName};${hA}`,IA=(...SA)=>H(rA,X,cA,...Fa(SA));return cA!=null&&cA.ephemeral?IA:((DA=M.current[X])!=null&&DA[EA]||(M.current[X]=M.current[X]||{},M.current[X][EA]=IA),M.current[X][EA])}),O=d.useCallback((rA,X)=>{var hA;const cA=`sync-callback-${rA.source}`;return(hA=M.current[X])!=null&&hA[cA]||(M.current[X]=M.current[X]||{},M.current[X][cA]=gB(EA=>(...IA)=>z(EA,...IA))),M.current[X][cA](rA)},[z]),Y=d.useCallback((rA,X)=>{if(rA){if(typeof rA=="function")return rA;if(rA){if(typeof rA=="function")return rA;if(!rA._ARROW_EXPR_)throw new Error("Only arrow expression allowed in sync callback");return O(rA,X)}}},[O]),S=d.useCallback((rA,X,cA)=>{let hA=rA;if(!rA&&X.description&&(cA!=null&&cA.eventName)){const EA=`${X.description}_on${sB(cA==null?void 0:cA.eventName)}`;t[EA]&&t[EA]._ARROW_EXPR_&&(hA=t[EA])}if(hA)return typeof hA=="function"?hA:q(hA,X,cA)},[t,q]),J=d.useRef(!1);d.useEffect(()=>{if(!e.api||!e.containerUid||J.current)return;J.current=!0;const rA={},X=Symbol("$self");Object.entries(e.api).forEach(([cA,hA])=>{rA[cA]=S(hA,X)}),B||v(X,rA),c(e.containerUid,rA)},[S,e.api,e.containerUid,e.uid,B,c,v]);const $=ze(rA=>{delete M.current[rA]}),U=d.useCallback((rA,X,cA,hA)=>{if(typeof rA=="string")throw Error("should be resolved for now");const EA=jt(rA)?rA:[rA];if(!EA||!EA.length)return null;const IA=EA.length>1,DA=EA.map((SA,JA)=>{if(!SA)return;const jA=g7({node:SA,state:t,dispatch:I,appContext:y,lookupAction:S,lookupSyncCallback:Y,registerComponentApi:v,renderChild:U,stateFieldPartChanged:s,layoutContext:X,parentRenderContext:cA,memoedVarsRef:h,cleanup:$,uidInfoRef:hA});if(jA===void 0)return;let $A=jA;const VA=`${JA}_${SA.uid}`;return IA&&(_A.isValidElement(jA)?$A=_A.cloneElement(jA,{key:VA}):$A=Q.jsx(d.Fragment,{children:jA},VA)),$A});return DA.length===1?C&&DA[0]&&d.isValidElement(DA[0])?_A.cloneElement(DA[0],{ref:Zr(C,DA[0].ref)}):DA[0]:DA},[t,I,y,S,Y,v,s,h,$,C]);(aA=e.props)!=null&&aA.debug&&console.log(`Container: ${o}`,{componentState:t,node:e});const AA={},Z=d.useRef({}),tA=e.uses===void 0?E:Z,nA=$k(),sA=nA==null?void 0:nA.stateViewOptions,iA=sA&&nA.displayStateView;return Q.jsxs(d.Fragment,{children:[iA&&Q.jsxs(ebA,{state:t,showBoundary:sA==null?void 0:sA.showBoundary,blink:sA==null?void 0:sA.blink,children:[p7({uidInfo:AA,uidInfoRef:tA,loaders:e.loaders,componentState:t,memoedVarsRef:h,dispatch:m?r:I,registerComponentApi:m?l:v,appContext:y,lookupAction:S,lookupSyncCallback:Y,cleanup:$}),U(e.children,u==null?void 0:u.current,g,tA)]}),!iA&&Q.jsxs(Q.Fragment,{children:[p7({uidInfo:AA,uidInfoRef:tA,loaders:e.loaders,componentState:t,memoedVarsRef:h,dispatch:m?r:I,registerComponentApi:m?l:v,appContext:y,lookupAction:S,lookupSyncCallback:Y,cleanup:$}),U(e.children,u==null?void 0:u.current,g,tA)]})]},e.uid?`${o}>${Fe(t,e.uid,y,!0)}`:void 0)})),ibA=()=>{const[A]=RcA(),e=RT(),t=d.useMemo(()=>{const r={};for(const[n,o]of Array.from(A.entries()))r[n]=o;return r},[A]);return d.useMemo(()=>({$routeParams:e,$queryParams:t}),[t,e])};class tw extends Error{constructor(e){const r=(e.Main||[]).map(n=>{let o=`${n.code} : ${n.text}`;const i=[];return n.line!==void 0&&i.push(`line:${n.line}`),n.column!==void 0&&i.push(`column:${n.column}`),i.length&&(o=`${o} (${i.join(", ")})`),o});super(r.join(`
|
|
400
|
-
`)),Object.setPrototypeOf(this,tw.prototype)}}const abA=d.memo(d.forwardRef(function({node:e,parentState:t,resolvedKey:r,parentStateFieldPartChanged:n,parentRegisterComponentApi:o,layoutContextRef:i,parentRenderContext:a,isImplicit:s,parentDispatch:l,uidInfoRef:c},u){const[g,h]=d.useState(0),B=ibA(),E=d.useRef(new Map),C=kn(d.useMemo(()=>hbA(t,e.uses),[e.uses,t])),m=$k(),I=rbA(m),[v,y]=d.useReducer(I,qe),[x,b]=d.useState(qe),k=kn(d.useMemo(()=>{const J={...v};for(const $ of Object.getOwnPropertySymbols(v)){const U=v[$];$.description&&(J[$.description]=U)}if(Reflect.ownKeys(x).length===0)return J;for(const $ of Object.getOwnPropertySymbols(x)){const U=x[$];if($.description){const AA=$.description;J[AA]={...J[AA]||{},...U}}J[$]={...J[$],...U}}return J},[v,x])),M=d7(C,k,e.contextVars),N=e.scriptCollected;if(N!=null&&N.moduleErrors&&!jl(N.moduleErrors))throw new tw(N.moduleErrors);if(e.scriptError&&!jl(e.scriptError))throw new tw(e.scriptError);const F=sQ(v),L=kn({...N==null?void 0:N.functions,...e.functions,...N==null?void 0:N.vars,...e.vars}),T=d.useMemo(()=>{const J={};return Object.entries(L).forEach(([$,U])=>{rw(U)&&U.tree.type==="ArrowE"&&(J[$]=RQ(U.tree,F))}),zyA(J)},[F,L]),P=h7(L,T,M,d.useRef(new Map)),G=kn({...P,...M}),H=h7(L,T,G,E),z=pbA(H,k),q=d7(C,e.contextVars,z,B),O=d.useCallback((J,$)=>{b(No(U=>{U[J]||(U[J]={}),Object.entries($).forEach(([AA,Z])=>{U[J][AA]!==Z&&(U[J][AA]=Z)})}))},[]),Y=d.useRef(k),S=d.useCallback((J,$,U,AA)=>{const Z=J[0];Z in Y.current||Z in H?y(QbA(J,$,U,AA)):(!e.uses||e.uses.includes(Z))&&n(J,$,U,AA)},[H,e.uses,n]);return Q.jsx(Zp,{node:e,location:"container",children:Q.jsx(obA,{resolvedKey:r,node:e,componentState:q,dispatch:y,parentDispatch:l,setVersion:h,version:g,stateFieldPartChanged:S,registerComponentApi:O,parentRegisterComponentApi:o,layoutContextRef:i,parentRenderContext:a,memoedVarsRef:E,isImplicit:s,ref:u,uidInfoRef:c})})})),sbA=A=>{var t,r;if(A.type==="Container")return A;const e={...A,props:{...A.props}};return delete e.loaders,delete e.vars,delete e.functions,delete e.script,delete e.scriptCollected,delete e.scriptError,delete e.uses,(t=e.props)==null||delete t.uses,delete e.api,delete e.contextVars,{type:"Container",uid:A.uid,when:A.when,loaders:A.loaders,vars:A.vars,functions:A.functions,scriptCollected:A.scriptCollected,scriptError:A.scriptError,uses:A.uses,api:A.api,containerUid:"containerUid"in A&&A.containerUid,apiBoundContainer:"apiBoundContainer"in A&&A.apiBoundContainer,contextVars:A.contextVars,props:{debug:(r=A.props)==null?void 0:r.debug},children:[e]}},lbA=d.memo(d.forwardRef(function({resolvedKey:e,node:t,parentState:r,parentStateFieldPartChanged:n,parentRegisterComponentApi:o,layoutContextRef:i,parentRenderContext:a,parentDispatch:s,uidInfoRef:l},c){const u=d.useMemo(()=>sbA(t),[t]);return Q.jsx(Zp,{node:t,location:"container",children:Q.jsx(abA,{parentStateFieldPartChanged:n,resolvedKey:e,node:u,parentState:r,layoutContextRef:i,parentRenderContext:a,isImplicit:t.type!=="Container"&&u.uses===void 0,parentRegisterComponentApi:o,parentDispatch:s,ref:c,uidInfoRef:l})})}));function g7({node:A,state:e,dispatch:t,appContext:r,lookupAction:n,lookupSyncCallback:o,registerComponentApi:i,renderChild:a,stateFieldPartChanged:s,layoutContext:l,parentRenderContext:c,memoedVarsRef:u,cleanup:g,uidInfoRef:h}){var C,m,I;if(!ck(A.when,e,r))return null;const B=(C=A.props)==null?void 0:C.value;if(A.type==="TextNodeCData")return B??"";if(A.type==="TextNode")return Fe(e,B,r,!0);if(A.type==="Slot"){let v;const y=(m=A.props)==null?void 0:m.name;if(console.log("templateName",y),y){if(!y.endsWith("Template"))throw new Error(`Slot name '${y}' is not valid. A named slot should use a name ending with 'Template'.`);v=(I=c==null?void 0:c.props)==null?void 0:I[y]}else v=c==null?void 0:c.children;if(v||(v=A.children),v){const x=Array.isArray(v)?v:[v];if(x.length===1&&c&&(x[0].type==="TextNodeCData"||x[0].type==="TextNode"))return c.renderChild(x)}}const E=Fe(e,A.uid,r,!0);return Q.jsx(dbA,{resolvedKey:E,node:A,cleanup:g,stateFieldPartChanged:s,memoedVarsRef:u,state:e,dispatch:t,appContext:r,lookupAction:n,lookupSyncCallback:o,registerComponentApi:i,renderChild:a,layoutContext:l,parentRenderContext:c,uidInfoRef:h},E)}function cbA(A){var n;let e=!1,t=A.loaders,r;return(n=A.children)==null||n.forEach(o=>{(o==null?void 0:o.type)==="DataSource"?(e=!0,t||(t=[]),t.push({uid:o.uid,type:"DataLoader",props:o.props,events:o.events,when:o.when})):(r||(r=[]),r.push(o))}),e?{...A,children:r,loaders:t}:A}function ubA(A,e){if(!A.props)return A;let t={...A},r=!1;return Object.entries(A.props).forEach(([n,o])=>{let i;try{i=Fe(e.current,o)}catch{}(i==null?void 0:i.type)==="loader"&&(r=!0,t={...t,props:{...t.props,[n]:{type:"DataSourceRef",uid:i.uid}}})}),r?t:A}function fbA(A,e,t){var r;return!((r=A.props)!=null&&r.__DATA_RESOLVED)&&A.props&&"data"in A.props&&e?Fe(t.current,A.props.data)==="loaderValue"?A:{...A,props:{...A.props,data:{type:"DataSource",props:{url:A.props.data}}}}:A}function gbA(A){return A.props&&"raw_data"in A.props?{...A,props:{...A.props,__DATA_RESOLVED:!0,data:A.props.raw_data}}:A}const dbA=d.memo(d.forwardRef(function({node:e,state:t,dispatch:r,appContext:n,lookupAction:o,lookupSyncCallback:i,registerComponentApi:a,renderChild:s,stateFieldPartChanged:l,layoutContext:c,parentRenderContext:u,memoedVarsRef:g,resolvedKey:h,cleanup:B,uidInfoRef:E,...C},m){var k;const I=d.useRef(c),v=d.useMemo(()=>{let M=cbA(e);return M=ubA(M,E),M=gbA(M),M},[e,E]),y=d.useMemo(()=>{var N;return typeof Fe(t,(N=v.props)==null?void 0:N.data,n,!0)=="string"},[n,(k=v.props)==null?void 0:k.data,t]),x=d.useMemo(()=>fbA(v,y,E),[v,y,E]);let b=null;return NwA(x)?b=Q.jsx(lbA,{resolvedKey:h,node:x,parentState:t,parentDispatch:r,layoutContextRef:I,parentRenderContext:u,parentStateFieldPartChanged:l,parentRegisterComponentApi:a,uidInfoRef:E,ref:m}):b=Q.jsx($yA,{onUnmount:B,memoedVarsRef:g,node:x,state:t,dispatch:r,appContext:n,lookupAction:o,lookupSyncCallback:i,registerComponentApi:a,renderChild:s,parentRenderContext:u,layoutContextRef:I,ref:m,uidInfoRef:E,...C}),b}));function hbA(A,e){return e?e.length===0?qe:VF(A,e):A}function d7(...A){const e=d.useMemo(()=>{let t={};return A.forEach((r=qe)=>{r!==qe&&(t={...t,...r})}),t},[A]);return kn(e)}function pbA(A,e){const t=d.useMemo(()=>{const r={...A};return Reflect.ownKeys(e).forEach(n=>{const o=e[n];r[n]===void 0?r[n]=o:_o(r[n])&&_o(o)?r[n]=wm(Fa(r[n]),o):Array.isArray(r[n])&&Array.isArray(o)?r[n]=Object.assign([],r[n],o):r[n]=o}),r},[A,e]);return kn(t)}class BbA extends Error{constructor(e,t){super(`Error on var: ${e} - ${(t==null?void 0:t.message)||"unknown"}`)}}function rw(A){return A&&typeof A=="object"&&A[ew]}function h7(A=qe,e=qe,t,r){const n=Ii(),o=sQ(t),i=d.useMemo(()=>{const a={};return Object.entries(A).forEach(([s,l])=>{if(s==="$props")a[s]=l;else if(!rw(l)&&typeof l!="string")a[s]=l;else{r.current.has(l)||r.current.set(l,{getDependencies:gB((B,E)=>{if(rw(B))return RQ(B.tree,E);const C=QQ(B);let m=new Set;return C.forEach(I=>{I.type==="expression"&&(m=new Set([...m,...RQ(I.value,E)]))}),Array.from(m)}),obtainValue:gB((B,E,C,m,I,v)=>{try{return rw(B)?hn(B.tree,{localContext:E,appContext:C,options:{defaultToOptionalMemberAccess:!0}}):Fe(E,B,C,m)}catch(y){throw console.log(E),new BbA(B,y)}},([B,E,C,m,I,v],[y,x,b,k,M,N])=>lB(I,M)&&lB(v,N))});const c={...a,...t};let u=[];e[s]?u=e[s]:(r.current.get(l).getDependencies(l,o).forEach(B=>{e[B]?u.push(...e[B]):u.push(B)}),u=[...new Set(u)]);const g=eQ(c,u),h=eQ(n,u);a[s]=r.current.get(l).obtainValue(l,c,n,!0,g,h)}}),a},[n,t,e,r,o,A]);return kn(i)}function jk(A,e){return A!==void 0&&e!==void 0}function EbA(A,e){return{type:en.EVENT_HANDLER_STARTED,payload:{uid:A,eventName:e}}}function CbA(A,e){return{type:en.EVENT_HANDLER_COMPLETED,payload:{uid:A,eventName:e}}}function mbA(A,e,t){return{type:en.EVENT_HANDLER_ERROR,payload:{uid:A,eventName:e,error:t}}}function QbA(A,e,t,r){return{type:en.STATE_PART_CHANGED,payload:{path:A,value:e,target:t,actionType:r}}}function p7({uidInfo:A,uidInfoRef:e,loaders:t=Jt,componentState:r,dispatch:n,appContext:o,registerComponentApi:i,lookupAction:a,lookupSyncCallback:s,cleanup:l,memoedVarsRef:c}){return t.map(g=>{if(g!=null&&g.uid){if(A[g.uid])throw new Error(`Another ${A[g.uid]} definition in this container already uses the uid '${g.uid}'`);A[g.uid]="loader",e.current[g.uid]={type:"loader",value:"loaderValue",uid:g.uid}}const h=u({loader:g,componentState:r,dispatch:n,appContext:o,registerComponentApi:i,lookupAction:a,lookupSyncCallback:s,memoedVarsRef:c,cleanup:l});if(h!==void 0)return Q.jsx(d.Fragment,{children:h},g.uid)});function u({loader:g,componentState:h,dispatch:B,appContext:E,registerComponentApi:C,lookupAction:m,lookupSyncCallback:I,cleanup:v,memoedVarsRef:y}){return!g||!ck(g.when,h,E)?null:Q.jsx(WyA,{onUnmount:v,node:g,state:h,dispatch:B,registerComponentApi:C,lookupAction:m,lookupSyncCallback:I,memoedVarsRef:y,appContext:E})}}var B7={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},E7=_A.createContext&&_A.createContext(B7),ac=function(){return ac=Object.assign||function(A){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},ac.apply(this,arguments)},wbA=function(A,e){var t={};for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&e.indexOf(r)<0&&(t[r]=A[r]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(A);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(A,r[n])&&(t[r[n]]=A[r[n]]);return t};function C7(A){return A&&A.map(function(e,t){return _A.createElement(e.tag,ac({key:t},e.attr),C7(e.child))})}function UA(A){return function(e){return _A.createElement(IbA,ac({attr:ac({},A.attr)},e),C7(A.child))}}function IbA(A){var e=function(t){var r=A.attr,n=A.size,o=A.title,i=wbA(A,["attr","size","title"]),a=n||t.size||"1em",s;return t.className&&(s=t.className),A.className&&(s=(s?s+" ":"")+A.className),_A.createElement("svg",ac({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,i,{className:s,style:ac(ac({color:A.color||t.color},t.style),A.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&_A.createElement("title",null,o),A.children)};return E7!==void 0?_A.createElement(E7.Consumer,null,function(t){return e(t)}):e(B7)}function vbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"}},{tag:"line",attr:{x1:"12",y1:"8",x2:"12",y2:"12"}},{tag:"line",attr:{x1:"12",y1:"16",x2:"12.01",y2:"16"}}]})(A)}function DbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}},{tag:"polyline",attr:{points:"22 4 12 14.01 9 11.01"}}]})(A)}function ybA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"20 6 9 17 4 12"}}]})(A)}function bbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"6 9 12 15 18 9"}}]})(A)}function m7(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"15 18 9 12 15 6"}}]})(A)}function Q7(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"9 18 15 12 9 6"}}]})(A)}function xbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"18 15 12 9 6 15"}}]})(A)}function kbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"11 17 6 12 11 7"}},{tag:"polyline",attr:{points:"18 17 13 12 18 7"}}]})(A)}function _bA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"13 17 18 12 13 7"}},{tag:"polyline",attr:{points:"6 17 11 12 6 7"}}]})(A)}function MbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{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"}},{tag:"rect",attr:{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}}]})(A)}function SbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}},{tag:"polyline",attr:{points:"7 10 12 15 17 10"}},{tag:"line",attr:{x1:"12",y1:"15",x2:"12",y2:"3"}}]})(A)}function NbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"}}]})(A)}function w7(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"3",width:"7",height:"7"}},{tag:"rect",attr:{x:"14",y:"3",width:"7",height:"7"}},{tag:"rect",attr:{x:"14",y:"14",width:"7",height:"7"}},{tag:"rect",attr:{x:"3",y:"14",width:"7",height:"7"}}]})(A)}function RbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"22",y1:"12",x2:"2",y2:"12"}},{tag:"path",attr:{d:"M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"}},{tag:"line",attr:{x1:"6",y1:"16",x2:"6.01",y2:"16"}},{tag:"line",attr:{x1:"10",y1:"16",x2:"10.01",y2:"16"}}]})(A)}function PbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"}},{tag:"path",attr:{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}},{tag:"line",attr:{x1:"12",y1:"17",x2:"12.01",y2:"17"}}]})(A)}function TbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}},{tag:"polyline",attr:{points:"9 22 9 12 15 12 15 22"}}]})(A)}function LbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"}}]})(A)}function I7(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"8",y1:"6",x2:"21",y2:"6"}},{tag:"line",attr:{x1:"8",y1:"12",x2:"21",y2:"12"}},{tag:"line",attr:{x1:"8",y1:"18",x2:"21",y2:"18"}},{tag:"line",attr:{x1:"3",y1:"6",x2:"3.01",y2:"6"}},{tag:"line",attr:{x1:"3",y1:"12",x2:"3.01",y2:"12"}},{tag:"line",attr:{x1:"3",y1:"18",x2:"3.01",y2:"18"}}]})(A)}function FbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}},{tag:"path",attr:{d:"M7 11V7a5 5 0 0 1 10 0v4"}}]})(A)}function ObA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"1"}},{tag:"circle",attr:{cx:"19",cy:"12",r:"1"}},{tag:"circle",attr:{cx:"5",cy:"12",r:"1"}}]})(A)}function HbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"}}]})(A)}function GbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"1 4 1 10 7 10"}},{tag:"polyline",attr:{points:"23 20 23 14 17 14"}},{tag:"path",attr:{d:"M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15"}}]})(A)}function UbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"11",cy:"11",r:"8"}},{tag:"line",attr:{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}}]})(A)}function KbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"}},{tag:"line",attr:{x1:"4.93",y1:"4.93",x2:"19.07",y2:"19.07"}}]})(A)}function YbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"}}]})(A)}function $bA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}},{tag:"polyline",attr:{points:"17 8 12 3 7 8"}},{tag:"line",attr:{x1:"12",y1:"3",x2:"12",y2:"15"}}]})(A)}function jbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}},{tag:"circle",attr:{cx:"8.5",cy:"7",r:"4"}},{tag:"line",attr:{x1:"23",y1:"11",x2:"17",y2:"11"}}]})(A)}function qbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}},{tag:"circle",attr:{cx:"8.5",cy:"7",r:"4"}},{tag:"line",attr:{x1:"20",y1:"8",x2:"20",y2:"14"}},{tag:"line",attr:{x1:"23",y1:"11",x2:"17",y2:"11"}}]})(A)}function v7(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}},{tag:"circle",attr:{cx:"12",cy:"7",r:"4"}}]})(A)}function JbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}},{tag:"circle",attr:{cx:"9",cy:"7",r:"4"}},{tag:"path",attr:{d:"M23 21v-2a4 4 0 0 0-3-3.87"}},{tag:"path",attr:{d:"M16 3.13a4 4 0 0 1 0 7.75"}}]})(A)}function zbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"}},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"}}]})(A)}function WbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm192 472c0 4.4-3.6 8-8 8H544v152c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V544H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h152V328c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v152h152c4.4 0 8 3.6 8 8v48z"}}]})(A)}function VbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 0 0-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 0 0 471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0 1 42.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]})(A)}function XbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]})(A)}function ZbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]})(A)}function AxA(A){return UA({tag:"svg",attr:{t:"1551322312294",style:"",viewBox:"0 0 1024 1024",version:"1.1"},child:[{tag:"defs",attr:{},child:[]},{tag:"path",attr:{d:"M474 152m8 0l60 0q8 0 8 8l0 704q0 8-8 8l-60 0q-8 0-8-8l0-704q0-8 8-8Z"}},{tag:"path",attr:{d:"M168 474m8 0l672 0q8 0 8 8l0 60q0 8-8 8l-672 0q-8 0-8-8l0-60q0-8 8-8Z"}}]})(A)}function exA(A){return UA({tag:"svg",attr:{t:"1569683742680",viewBox:"0 0 1024 1024",version:"1.1"},child:[{tag:"defs",attr:{},child:[]},{tag:"path",attr:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2-8.5 2.1-13.8 10.7-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-0.9 3.7-0.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 0.7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-0.8 4.2-2.6 5-5 1.4-4.2-0.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]})(A)}function txA(A){return UA({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M464 720a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]})(A)}function rxA(A){return UA({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M8 4a.5.5 0 0 1 .5.5v5.793l2.146-2.147a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 1 1 .708-.708L7.5 10.293V4.5A.5.5 0 0 1 8 4z"}}]})(A)}function nxA(A){return UA({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M12 8a.5.5 0 0 1-.5.5H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 7.5H11.5a.5.5 0 0 1 .5.5z"}}]})(A)}function oxA(A){return UA({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"}}]})(A)}function ixA(A){return UA({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M8 12a.5.5 0 0 0 .5-.5V5.707l2.146 2.147a.5.5 0 0 0 .708-.708l-3-3a.5.5 0 0 0-.708 0l-3 3a.5.5 0 1 0 .708.708L7.5 5.707V11.5a.5.5 0 0 0 .5.5z"}}]})(A)}function axA(A){return UA({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M5 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm4 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"}},{tag:"path",attr:{d:"m2.165 15.803.02-.004c1.83-.363 2.948-.842 3.468-1.105A9.06 9.06 0 0 0 8 15c4.418 0 8-3.134 8-7s-3.582-7-8-7-8 3.134-8 7c0 1.76.743 3.37 1.97 4.6a10.437 10.437 0 0 1-.524 2.318l-.003.011a10.722 10.722 0 0 1-.244.637c-.079.186.074.394.273.362a21.673 21.673 0 0 0 .693-.125zm.8-3.108a1 1 0 0 0-.287-.801C1.618 10.83 1 9.468 1 8c0-3.192 3.004-6 7-6s7 2.808 7 6c0 3.193-3.004 6-7 6a8.06 8.06 0 0 1-2.088-.272 1 1 0 0 0-.711.074c-.387.196-1.24.57-2.634.893a10.97 10.97 0 0 0 .398-2z"}}]})(A)}function sxA(A){return UA({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8.39 12.648a1.32 1.32 0 0 0-.015.18c0 .305.21.508.5.508.266 0 .492-.172.555-.477l.554-2.703h1.204c.421 0 .617-.234.617-.547 0-.312-.188-.53-.617-.53h-.985l.516-2.524h1.265c.43 0 .618-.227.618-.547 0-.313-.188-.524-.618-.524h-1.046l.476-2.304a1.06 1.06 0 0 0 .016-.164.51.51 0 0 0-.516-.516.54.54 0 0 0-.539.43l-.523 2.554H7.617l.477-2.304c.008-.04.015-.118.015-.164a.512.512 0 0 0-.523-.516.539.539 0 0 0-.531.43L6.53 5.484H5.414c-.43 0-.617.22-.617.532 0 .312.187.539.617.539h.906l-.515 2.523H4.609c-.421 0-.609.219-.609.531 0 .313.188.547.61.547h.976l-.516 2.492c-.008.04-.015.125-.015.18 0 .305.21.508.5.508.265 0 .492-.172.554-.477l.555-2.703h2.242l-.515 2.492zm-1-6.109h2.266l-.515 2.563H6.859l.532-2.563z"}}]})(A)}function lxA(A){return UA({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M6 3.5a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-1 0V4a.5.5 0 0 1 .5-.5zm4 0a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-1 0V4a.5.5 0 0 1 .5-.5z"}}]})(A)}function cxA(A){return UA({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M10.804 8 5 4.633v6.734L10.804 8zm.792-.696a.802.802 0 0 1 0 1.392l-6.363 3.692C4.713 12.69 4 12.345 4 11.692V4.308c0-.653.713-.998 1.233-.696l6.363 3.692z"}}]})(A)}function uxA(A){return UA({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M6.598 5.013a.144.144 0 0 1 .202.134V6.3a.5.5 0 0 0 .5.5c.667 0 2.013.005 3.3.822.984.624 1.99 1.76 2.595 3.876-1.02-.983-2.185-1.516-3.205-1.799a8.74 8.74 0 0 0-1.921-.306 7.404 7.404 0 0 0-.798.008h-.013l-.005.001h-.001L7.3 9.9l-.05-.498a.5.5 0 0 0-.45.498v1.153c0 .108-.11.176-.202.134L2.614 8.254a.503.503 0 0 0-.042-.028.147.147 0 0 1 0-.252.499.499 0 0 0 .042-.028l3.984-2.933zM7.8 10.386c.068 0 .143.003.223.006.434.02 1.034.086 1.7.271 1.326.368 2.896 1.202 3.94 3.08a.5.5 0 0 0 .933-.305c-.464-3.71-1.886-5.662-3.46-6.66-1.245-.79-2.527-.942-3.336-.971v-.66a1.144 1.144 0 0 0-1.767-.96l-3.994 2.94a1.147 1.147 0 0 0 0 1.946l3.994 2.94a1.144 1.144 0 0 0 1.767-.96v-.667z"}}]})(A)}function fxA(A){return UA({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2z"}}]})(A)}function gxA(A){return UA({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 15V1h6a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H8zm6 1a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12z"}}]})(A)}function dxA(A){return UA({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"}}]})(A)}function hxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",stroke:"#000",strokeWidth:"2",d:"M4.99787498,8.99999999 L4.99787498,0.999999992 L19.4999998,0.999999992 L22.9999998,4.50000005 L23,23 L16,23 M18,1 L18,6 L23,6 M9,14 L9,11 M9,20 C10.6568542,20 12,18.6568542 12,17 C12,15.3431458 10.6568542,14 9,14 C7.34314575,14 6,15.3431458 6,17 C6,18.6568542 7.34314575,20 9,20 Z M9,23 L9,20 M12,17 L15,17 M3,17 L6,17 M5,13 L7,15 M11,19 L13,21 M13,13 L11,15 M7,19 L5,21"}}]})(A)}function pxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12,1.73A10.27,10.27,0,1,0,22.24,12,10.25,10.25,0,0,0,12,1.73ZM21,12a9,9,0,1,1-9-9A9,9,0,0,1,21,12Z"}},{tag:"path",attr:{d:"M8.8,11.05a1.55,1.55,0,1,0-1.51-1.5A1.56,1.56,0,0,0,8.8,11.05Z"}},{tag:"path",attr:{d:"M15.44,11.05a1.55,1.55,0,1,0,0-3.09,1.53,1.53,0,0,0-1.51,1.59A1.51,1.51,0,0,0,15.44,11.05Z"}},{tag:"path",attr:{d:"M12.19,16.35A6.58,6.58,0,0,1,6.9,13.5a5.71,5.71,0,0,0,5.3,4,5.54,5.54,0,0,0,5.31-4A6.27,6.27,0,0,1,12.19,16.35Z"}}]})(A)}function BxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"polyline",attr:{fill:"none",stroke:"#000",strokeWidth:"2",points:"7 2 17 12 7 22"}}]})(A)}function ExA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"polyline",attr:{fill:"none",stroke:"#000",strokeWidth:"2",points:"7 2 17 12 7 22",transform:"matrix(-1 0 0 1 24 0)"}}]})(A)}function D7(A){return UA({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"32",d:"M408 64H104a56.16 56.16 0 00-56 56v192a56.16 56.16 0 0056 56h40v80l93.72-78.14a8 8 0 015.13-1.86H408a56.16 56.16 0 0056-56V120a56.16 56.16 0 00-56-56z"}}]})(A)}function CxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M448 341.37V170.61A32 32 0 00432.11 143l-152-88.46a47.94 47.94 0 00-48.24 0L79.89 143A32 32 0 0064 170.61v170.76A32 32 0 0079.89 369l152 88.46a48 48 0 0048.24 0l152-88.46A32 32 0 00448 341.37z"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M69 153.99l187 110 187-110m-187 310v-200"}}]})(A)}function mxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"circle",attr:{cx:"256",cy:"256",r:"48"}},{tag:"circle",attr:{cx:"416",cy:"256",r:"48"}},{tag:"circle",attr:{cx:"96",cy:"256",r:"48"}}]})(A)}function QxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"circle",attr:{cx:"256",cy:"256",r:"48"}},{tag:"circle",attr:{cx:"256",cy:"416",r:"48"}},{tag:"circle",attr:{cx:"256",cy:"96",r:"48"}}]})(A)}function wxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"44",d:"M358.62 129.28L86.49 402.08 70 442l39.92-16.49 272.8-272.13-24.1-24.1zm54.45-54.44l-11.79 11.78 24.1 24.1 11.79-11.79a16.51 16.51 0 000-23.34l-.75-.75a16.51 16.51 0 00-23.35 0z"}}]})(A)}function IxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M464 208L352 96 240 208m112-94.87V416M48 304l112 112 112-112m-112 94V96"}}]})(A)}function vxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M14.12 10.47L12 12.59l-2.13-2.12-1.41 1.41L10.59 14l-2.12 2.12 1.41 1.41L12 15.41l2.12 2.12 1.41-1.41L13.41 14l2.12-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4zM6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9z"}}]})(A)}function DxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95a15.65 15.65 0 00-1.38-3.56A8.03 8.03 0 0118.92 8zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2s.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56A7.987 7.987 0 015.08 16zm2.95-8H5.08a7.987 7.987 0 014.33-3.56A15.65 15.65 0 008.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2s.07-1.35.16-2h4.68c.09.65.16 1.32.16 2s-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95a8.03 8.03 0 01-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2s-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"}}]})(A)}function yxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19 19H5V5h7V3H5a2 2 0 00-2 2v14a2 2 0 002 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}}]})(A)}function bxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V8l8 5 8-5v10zm-8-7L4 6h16l-8 5z"}}]})(A)}function xxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}}]})(A)}function kxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15 16l-4 4h10v-4zM12.06 7.19L3 16.25V20h3.75l9.06-9.06-3.75-3.75zM5.92 18H5v-.92l7.06-7.06.92.92L5.92 18zM18.71 8.04a.996.996 0 000-1.41l-2.34-2.34a1.001 1.001 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}}]})(A)}function _xA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 22C6.49 22 2 17.51 2 12S6.49 2 12 2s10 4.04 10 9c0 3.31-2.69 6-6 6h-1.77c-.28 0-.5.22-.5.5 0 .12.05.23.13.33.41.47.64 1.06.64 1.67A2.5 2.5 0 0112 22zm0-18c-4.41 0-8 3.59-8 8s3.59 8 8 8c.28 0 .5-.22.5-.5a.54.54 0 00-.14-.35c-.41-.46-.63-1.05-.63-1.65a2.5 2.5 0 012.5-2.5H16c2.21 0 4-1.79 4-4 0-3.86-3.59-7-8-7z"}},{tag:"circle",attr:{cx:"6.5",cy:"11.5",r:"1.5"}},{tag:"circle",attr:{cx:"9.5",cy:"7.5",r:"1.5"}},{tag:"circle",attr:{cx:"14.5",cy:"7.5",r:"1.5"}},{tag:"circle",attr:{cx:"17.5",cy:"11.5",r:"1.5"}}]})(A)}function MxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6.455 19L2 22.5V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6.455zm-.692-2H20V5H4v13.385L5.763 17zM11 10h2v2h-2v-2zm-4 0h2v2H7v-2zm8 0h2v2h-2v-2z"}}]}]})(A)}function SxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21 15l-6 5.996L4.002 21A.998.998 0 0 1 3 20.007V3.993C3 3.445 3.445 3 3.993 3h16.014c.548 0 .993.456.993 1.002V15zM19 5H5v14h8v-5a1 1 0 0 1 .883-.993L14 13l5-.001V5zm-.829 9.999L15 15v3.169l3.171-3.17z"}}]}]})(A)}function NxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M14.828 7.757l-5.656 5.657a1 1 0 1 0 1.414 1.414l5.657-5.656A3 3 0 1 0 12 4.929l-5.657 5.657a5 5 0 1 0 7.071 7.07L19.071 12l1.414 1.414-5.657 5.657a7 7 0 1 1-9.9-9.9l5.658-5.656a5 5 0 0 1 7.07 7.07L12 16.244A3 3 0 1 1 7.757 12l5.657-5.657 1.414 1.414z"}}]}]})(A)}function RxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M4.25 3l1.166-.624 8 5.333v1.248l-8 5.334-1.166-.624V3zm1.5 1.401v7.864l5.898-3.932L5.75 4.401z"}}]})(A)}function PxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{d:"M2 2v12h12V2H2zm10.75 10.75h-9.5v-9.5h9.5v9.5z"}}]})(A)}function TxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{d:"M14 1H3L2 2v11l1 1h11l1-1V2l-1-1zM8 13H3V2h5v11zm6 0H9V2h5v11z"}}]})(A)}function LxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{d:"M14 1H3L2 2v11l1 1h11l1-1V2l-1-1zm0 12H3V8h11v5zm0-6H3V2h11v5z"}}]})(A)}function FxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M3 1C2.44771 1 2 1.44772 2 2V13C2 13.5523 2.44772 14 3 14H10.5C10.7761 14 11 13.7761 11 13.5C11 13.2239 10.7761 13 10.5 13H3V2L10.5 2C10.7761 2 11 1.77614 11 1.5C11 1.22386 10.7761 1 10.5 1H3ZM12.6036 4.89645C12.4083 4.70118 12.0917 4.70118 11.8964 4.89645C11.7012 5.09171 11.7012 5.40829 11.8964 5.60355L13.2929 7H6.5C6.22386 7 6 7.22386 6 7.5C6 7.77614 6.22386 8 6.5 8H13.2929L11.8964 9.39645C11.7012 9.59171 11.7012 9.90829 11.8964 10.1036C12.0917 10.2988 12.4083 10.2988 12.6036 10.1036L14.8536 7.85355C15.0488 7.65829 15.0488 7.34171 14.8536 7.14645L12.6036 4.89645Z",fill:"currentColor"}}]})(A)}function OxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M8.69667 0.0403541C8.90859 0.131038 9.03106 0.354857 8.99316 0.582235L8.0902 6.00001H12.5C12.6893 6.00001 12.8625 6.10701 12.9472 6.27641C13.0319 6.4458 13.0136 6.6485 12.8999 6.80001L6.89997 14.8C6.76167 14.9844 6.51521 15.0503 6.30328 14.9597C6.09135 14.869 5.96888 14.6452 6.00678 14.4178L6.90974 9H2.49999C2.31061 9 2.13748 8.893 2.05278 8.72361C1.96809 8.55422 1.98636 8.35151 2.09999 8.2L8.09997 0.200038C8.23828 0.0156255 8.48474 -0.0503301 8.69667 0.0403541ZM3.49999 8.00001H7.49997C7.64695 8.00001 7.78648 8.06467 7.88148 8.17682C7.97648 8.28896 8.01733 8.43723 7.99317 8.5822L7.33027 12.5596L11.5 7.00001H7.49997C7.353 7.00001 7.21347 6.93534 7.11846 6.8232C7.02346 6.71105 6.98261 6.56279 7.00678 6.41781L7.66968 2.44042L3.49999 8.00001Z",fill:"currentColor"}}]})(A)}function HxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M12 13C12.5523 13 13 12.5523 13 12V3C13 2.44771 12.5523 2 12 2H3C2.44771 2 2 2.44771 2 3V6.5C2 6.77614 2.22386 7 2.5 7C2.77614 7 3 6.77614 3 6.5V3H12V12H8.5C8.22386 12 8 12.2239 8 12.5C8 12.7761 8.22386 13 8.5 13H12ZM9 6.5C9 6.5001 9 6.50021 9 6.50031V6.50035V9.5C9 9.77614 8.77614 10 8.5 10C8.22386 10 8 9.77614 8 9.5V7.70711L2.85355 12.8536C2.65829 13.0488 2.34171 13.0488 2.14645 12.8536C1.95118 12.6583 1.95118 12.3417 2.14645 12.1464L7.29289 7H5.5C5.22386 7 5 6.77614 5 6.5C5 6.22386 5.22386 6 5.5 6H8.5C8.56779 6 8.63244 6.01349 8.69139 6.03794C8.74949 6.06198 8.80398 6.09744 8.85143 6.14433C8.94251 6.23434 8.9992 6.35909 8.99999 6.49708L8.99999 6.49738",fill:"currentColor"}}]})(A)}function GxA(A){return UA({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.53 16.122a3 3 0 00-5.78 1.128 2.25 2.25 0 01-2.4 2.245 4.5 4.5 0 008.4-2.245c0-.399-.078-.78-.22-1.128zm0 0a15.998 15.998 0 003.388-1.62m-5.043-.025a15.994 15.994 0 011.622-3.395m3.42 3.42a15.995 15.995 0 004.764-4.648l3.876-5.814a1.151 1.151 0 00-1.597-1.597L14.146 6.32a15.996 15.996 0 00-4.649 4.763m3.42 3.42a6.776 6.776 0 00-3.42-3.42"}}]})(A)}function UxA(A){return UA({tag:"svg",attr:{version:"1.1",viewBox:"0 0 17 17"},child:[{tag:"g",attr:{},child:[]},{tag:"path",attr:{d:"M6 8h-6v-6h1v4.109c1.013-3.193 4.036-5.484 7.5-5.484 3.506 0 6.621 2.36 7.574 5.739l-0.963 0.271c-0.832-2.95-3.551-5.011-6.611-5.011-3.226 0.001-6.016 2.276-6.708 5.376h4.208v1zM11 9v1h4.208c-0.693 3.101-3.479 5.375-6.708 5.375-3.062 0-5.78-2.061-6.611-5.011l-0.963 0.271c0.952 3.379 4.067 5.739 7.574 5.739 3.459 0 6.475-2.28 7.5-5.482v4.108h1v-6h-6z"}}]})(A)}function KxA(A){return UA({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}},{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}}]})(A)}function YxA(A){return UA({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"}}]})(A)}function $xA(A){return UA({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"}}]})(A)}function jxA(A){return UA({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 10h16M4 14h16M4 18h16"}}]})(A)}const qxA=A=>d.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("path",{d:"M12 8.5C16.9706 8.5 21 7.15685 21 5.5C21 3.84315 16.9706 2.5 12 2.5C7.02944 2.5 3 3.84315 3 5.5C3 7.15685 7.02944 8.5 12 8.5Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M21 12.5C21 14.16 17 15.5 12 15.5C7 15.5 3 14.16 3 12.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M3 5.5V19.5C3 21.16 7 22.5 12 22.5C17 22.5 21 21.16 21 19.5V5.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),JxA=A=>Q.jsx(qxA,{...A}),zxA=A=>d.createElement("svg",{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"16px",height:"16px",viewBox:"0 0 16 16",...A},d.createElement("g",{id:"surface1"},d.createElement("path",{stroke:"none",fillRule:"nonzero",fillOpacity:1,d:"M 9.886719 5.171875 L 6.113281 8.941406 C 5.855469 9.203125 5.855469 9.625 6.113281 9.886719 C 6.375 10.144531 6.796875 10.144531 7.058594 9.886719 L 10.828125 6.113281 C 11.609375 5.332031 11.609375 4.066406 10.828125 3.285156 C 10.046875 2.503906 8.78125 2.503906 8 3.285156 L 4.230469 7.058594 C 2.925781 8.359375 2.925781 10.46875 4.230469 11.769531 C 5.53125 13.074219 7.640625 13.074219 8.941406 11.769531 L 12.714844 8 L 13.65625 8.941406 L 9.886719 12.714844 C 8.0625 14.535156 5.109375 14.535156 3.285156 12.714844 C 1.464844 10.890625 1.464844 7.9375 3.285156 6.113281 L 7.058594 2.34375 C 8.359375 1.042969 10.46875 1.042969 11.769531 2.34375 C 13.074219 3.644531 13.074219 5.753906 11.769531 7.058594 L 8 10.828125 C 7.21875 11.609375 5.953125 11.609375 5.171875 10.828125 C 4.390625 10.046875 4.390625 8.78125 5.171875 8 L 8.941406 4.230469 Z M 9.886719 5.171875 "}))),WxA=A=>Q.jsx(zxA,{...A}),VxA=A=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("path",{d:"M10 13C10.4295 13.5741 10.9774 14.0491 11.6066 14.3929C12.2357 14.7367 12.9315 14.9411 13.6467 14.9923C14.3618 15.0435 15.0796 14.9403 15.7513 14.6897C16.4231 14.4392 17.0331 14.047 17.54 13.54L20.54 10.54C21.4508 9.59695 21.9548 8.33394 21.9434 7.02296C21.932 5.71198 21.4061 4.45791 20.4791 3.53087C19.5521 2.60383 18.298 2.07799 16.987 2.0666C15.676 2.0552 14.413 2.55918 13.47 3.46997L11.75 5.17997",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M14.0002 11.0012C13.5707 10.4271 13.0228 9.95202 12.3936 9.60826C11.7645 9.2645 11.0687 9.06009 10.3535 9.00887C9.63841 8.95765 8.92061 9.06083 8.24885 9.31142C7.5771 9.56201 6.96709 9.95413 6.4602 10.4612L3.4602 13.4612C2.54941 14.4042 2.04544 15.6672 2.05683 16.9782C2.06822 18.2892 2.59407 19.5433 3.52111 20.4703C4.44815 21.3973 5.70221 21.9232 7.01319 21.9346C8.32418 21.946 9.58719 21.442 10.5302 20.5312L12.2402 18.8212",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),XxA={binding:"_binding_14mdd_1"},ZxA=A=>Q.jsx(VxA,{className:XxA.binding,...A}),A2A=A=>Q.jsx(w7,{...A}),e2A=A=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("path",{d:"M14 10.6669V5.33359C13.9998 5.09978 13.938 4.87013 13.821 4.6677C13.704 4.46527 13.5358 4.29717 13.3333 4.18026L8.66667 1.51359C8.46397 1.39657 8.23405 1.33496 8 1.33496C7.76595 1.33496 7.53603 1.39657 7.33333 1.51359L2.66667 4.18026C2.46418 4.29717 2.29599 4.46527 2.17897 4.6677C2.06196 4.87013 2.00024 5.09978 2 5.33359V10.6669C2.00024 10.9007 2.06196 11.1304 2.17897 11.3328C2.29599 11.5353 2.46418 11.7034 2.66667 11.8203L7.33333 14.4869C7.53603 14.604 7.76595 14.6656 8 14.6656C8.23405 14.6656 8.46397 14.604 8.66667 14.4869L13.3333 11.8203C13.5358 11.7034 13.704 11.5353 13.821 11.3328C13.938 11.1304 13.9998 10.9007 14 10.6669Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M2.18018 4.63965L8.00018 8.00632L13.8202 4.63965",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M8 14.72V8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),t2A=A=>Q.jsx(e2A,{...A}),r2A=A=>Q.jsx(ybA,{...A}),n2A=A=>Q.jsx(m7,{...A}),o2A=A=>Q.jsx(Q7,{...A}),i2A=A=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("path",{d:"M8.6665 1.33301H3.99984C3.64622 1.33301 3.30708 1.47348 3.05703 1.72353C2.80698 1.97358 2.6665 2.31272 2.6665 2.66634V13.333C2.6665 13.6866 2.80698 14.0258 3.05703 14.2758C3.30708 14.5259 3.64622 14.6663 3.99984 14.6663H11.9998C12.3535 14.6663 12.6926 14.5259 12.9426 14.2758C13.1927 14.0258 13.3332 13.6866 13.3332 13.333V5.99967L8.6665 1.33301Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M8.6665 1.33301V5.99967H13.3332",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M9.3335 10.6667L10.6668 9.33333L9.3335 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M6.6665 8.00033L5.33317 9.33366L6.6665 10.667",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),a2A=A=>Q.jsx(i2A,{...A}),s2A=A=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("path",{d:"M14 10.6669V5.33359C13.9998 5.09978 13.938 4.87013 13.821 4.6677C13.704 4.46527 13.5358 4.29717 13.3333 4.18026L8.66667 1.51359C8.46397 1.39657 8.23405 1.33496 8 1.33496C7.76595 1.33496 7.53603 1.39657 7.33333 1.51359L2.66667 4.18026C2.46418 4.29717 2.29599 4.46527 2.17897 4.6677C2.06196 4.87013 2.00024 5.09978 2 5.33359V10.6669C2.00024 10.9007 2.06196 11.1304 2.17897 11.3328C2.29599 11.5353 2.46418 11.7034 2.66667 11.8203L7.33333 14.4869C7.53603 14.604 7.76595 14.6656 8 14.6656C8.23405 14.6656 8.46397 14.604 8.66667 14.4869L13.3333 11.8203C13.5358 11.7034 13.704 11.5353 13.821 11.3328C13.938 11.1304 13.9998 10.9007 14 10.6669Z",stroke:"#3B3B3B",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M5 2.80664L8 4.53997L11 2.80664",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M5 13.1933V9.73333L2 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M14 8L11 9.73333V13.1933",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M2.18018 4.63965L8.00018 8.00632L13.8202 4.63965",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M8 14.72V8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),l2A=A=>Q.jsx(s2A,{...A}),c2A=A=>Q.jsx(I7,{...A}),u2A=A=>Q.jsx(xxA,{...A}),f2A=A=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("path",{d:"M12 8C16.9706 8 21 6.65685 21 5C21 3.34315 16.9706 2 12 2C7.02944 2 3 3.34315 3 5C3 6.65685 7.02944 8 12 8Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M21 12C21 13.66 17 15 12 15C7 15 3 13.66 3 12",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M3 5V19C3 20.66 7 22 12 22C17 22 21 20.66 21 19V5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),g2A={database:"_database_14jkq_1"},d2A=A=>Q.jsx(f2A,{className:g2A.database,...A}),h2A=A=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("path",{d:"M9.33317 1.33301H3.99984C3.64622 1.33301 3.30708 1.47348 3.05703 1.72353C2.80698 1.97358 2.6665 2.31272 2.6665 2.66634V13.333C2.6665 13.6866 2.80698 14.0258 3.05703 14.2758C3.30708 14.5259 3.64622 14.6663 3.99984 14.6663H11.9998C12.3535 14.6663 12.6926 14.5259 12.9426 14.2758C13.1927 14.0258 13.3332 13.6866 13.3332 13.333V5.33301L9.33317 1.33301Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M9.3335 1.33301V5.33301H13.3335",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M10.6668 8.66699H5.3335",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M10.6668 11.333H5.3335",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M6.66683 6H6.00016H5.3335",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),p2A=A=>Q.jsx(h2A,{...A}),B2A=A=>d.createElement("svg",{width:22,height:28,viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("g",{clipPath:"url(#clip0_1811_15061)"},d.createElement("path",{d:"M22.2271 7.38281L16.304 5.74219L14.6117 0H2.76551C1.36355 0 0.227051 1.10179 0.227051 2.46094V25.5391C0.227051 26.8982 1.36355 28 2.76551 28H19.6886C21.0906 28 22.2271 26.8982 22.2271 25.5391V7.38281Z",fill:"currentColor"}),d.createElement("path",{d:"M22.227 7.38281H16.3039C15.3731 7.38281 14.6116 6.64453 14.6116 5.74219V0C14.8316 0 15.0516 0.0820312 15.2038 0.246148L21.9731 6.80865C22.1423 6.95625 22.227 7.16953 22.227 7.38281Z",fill:"currentColor"}),d.createElement("path",{d:"M16.304 13.1797H6.15011C5.68241 13.1797 5.30396 12.8128 5.30396 12.3594C5.30396 11.906 5.68241 11.5391 6.15011 11.5391H16.304C16.7717 11.5391 17.1501 11.906 17.1501 12.3594C17.1501 12.8128 16.7717 13.1797 16.304 13.1797Z",fill:"white"}),d.createElement("path",{d:"M16.304 16.4609H6.15011C5.68241 16.4609 5.30396 16.094 5.30396 15.6406C5.30396 15.1872 5.68241 14.8203 6.15011 14.8203H16.304C16.7717 14.8203 17.1501 15.1872 17.1501 15.6406C17.1501 16.094 16.7717 16.4609 16.304 16.4609Z",fill:"white"}),d.createElement("path",{d:"M16.304 19.7422H6.15011C5.68241 19.7422 5.30396 19.3753 5.30396 18.9219C5.30396 18.4685 5.68241 18.1016 6.15011 18.1016H16.304C16.7717 18.1016 17.1501 18.4685 17.1501 18.9219C17.1501 19.3753 16.7717 19.7422 16.304 19.7422Z",fill:"white"}),d.createElement("path",{d:"M12.9193 23.0234H6.15011C5.68241 23.0234 5.30396 22.6565 5.30396 22.2031C5.30396 21.7497 5.68241 21.3828 6.15011 21.3828H12.9193C13.387 21.3828 13.7655 21.7497 13.7655 22.2031C13.7655 22.6565 13.387 23.0234 12.9193 23.0234Z",fill:"white"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_1811_15061"},d.createElement("rect",{width:22,height:28,fill:"white"})))),y7=A=>Q.jsx(B2A,{...A}),E2A=A=>Q.jsx(mxA,{...A}),C2A=A=>Q.jsx(QxA,{...A}),m2A=A=>Q.jsx(bxA,{...A}),Q2A=A=>d.createElement("svg",{viewBox:"0 0 30 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("path",{d:"M7.58122 0H1C0.447715 0 0 0.447715 0 0.999999V21.0737H30V3.71273H12.0217L7.58122 0Z",fill:"#ADDAE9"}),d.createElement("path",{d:"M10.9928 0.157898H29C29.5523 0.157898 30 0.605613 30 1.1579V20C30 20.5523 29.5523 21 29 21H1.00002C0.447731 21 1.71661e-05 20.5523 1.71661e-05 20V3.93087C1.71661e-05 3.37858 0.447733 2.93087 1.00002 2.93087H6.55236L10.9928 0.157898Z",fill:"#CAE9F3"})),w2A=A=>Q.jsx(Q2A,{...A}),I2A=A=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("path",{d:"M21 16.0019V8.00186C20.9996 7.65113 20.9071 7.30667 20.7315 7.00302C20.556 6.69937 20.3037 6.44722 20 6.27186L13 2.27186C12.696 2.09632 12.3511 2.00391 12 2.00391C11.6489 2.00391 11.304 2.09632 11 2.27186L4 6.27186C3.69626 6.44722 3.44398 6.69937 3.26846 7.00302C3.09294 7.30667 3.00036 7.65113 3 8.00186V16.0019C3.00036 16.3526 3.09294 16.697 3.26846 17.0007C3.44398 17.3043 3.69626 17.5565 4 17.7319L11 21.7319C11.304 21.9074 11.6489 21.9998 12 21.9998C12.3511 21.9998 12.696 21.9074 13 21.7319L20 17.7319C20.3037 17.5565 20.556 17.3043 20.7315 17.0007C20.9071 16.697 20.9996 16.3526 21 16.0019Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M3.26953 6.96094L11.9995 12.0109L20.7295 6.96094",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M12 22.08V12",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),v2A=A=>Q.jsx(I2A,{...A}),D2A=A=>Q.jsx(WbA,{...A}),y2A=A=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("path",{d:"M22 3H2L10 12.46V19L14 21V12.46L22 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),b2A=A=>Q.jsx(y2A,{...A}),x2A=A=>d.createElement("svg",{viewBox:"0 0 30 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("path",{d:"M7.58122 0H1C0.447715 0 0 0.447715 0 0.999999V21.0737H30V3.71273H12.0217L7.58122 0Z",fill:"#ADDAE9"}),d.createElement("rect",{x:1.2179,y:2.44446,width:28.0128,height:15.8889,fill:"white"}),d.createElement("path",{d:"M10.9928 1.1579H29C29.5523 1.1579 30 1.60561 30 2.1579V21C30 21.5523 29.5523 22 29 22H1.00002C0.447731 22 1.71661e-05 21.5523 1.71661e-05 21V4.93087C1.71661e-05 4.37858 0.447733 3.93087 1.00002 3.93087H6.55236L10.9928 1.1579Z",fill:"#CAE9F3"})),k2A=A=>Q.jsx(x2A,{...A}),_2A=A=>Q.jsx(DxA,{...A}),M2A=A=>Q.jsx(TbA,{...A}),S2A=A=>Q.jsx(yxA,{...A}),N2A=A=>d.createElement("svg",{width:22,height:28,viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("g",{clipPath:"url(#clip0_1960_14704)"},d.createElement("path",{d:"M22.2271 7.38281L16.304 5.74219L14.6117 0H1.91936C0.984697 0 0.227051 0.734508 0.227051 1.64062V26.3594C0.227051 27.2655 0.984697 28 1.91936 28H20.5347C21.4694 28 22.2271 27.2655 22.2271 26.3594V7.38281Z",fill:"#F2F2F2"}),d.createElement("path",{d:"M22.2271 7.38281V26.3594C22.2271 27.2655 21.4695 28 20.5348 28H11.3625V0H14.6117L16.304 5.74219L22.2271 7.38281Z",fill:"#F2F2F2"}),d.createElement("path",{d:"M22.227 7.38281H16.3039C15.3731 7.38281 14.6116 6.64453 14.6116 5.74219V0C14.8316 0 15.0516 0.0820312 15.2038 0.246148L21.9731 6.80865C22.1423 6.95625 22.227 7.16953 22.227 7.38281Z",fill:"#E1E1E1"}),d.createElement("path",{d:"M9 17L14.1962 21.5H3.80385L9 17Z",fill:"#8BDC6F"}),d.createElement("path",{d:"M13 14L18.1963 21.5H7.80396L13 14Z",fill:"#8BDC6F"}),d.createElement("circle",{cx:7,cy:11,r:2,fill:"#EFC942"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_1960_14704"},d.createElement("rect",{width:22,height:28,fill:"white"})))),R2A=A=>Q.jsx(N2A,{...A});function P2A(A){return UA({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M74.6 256c0-38.3 31.1-69.4 69.4-69.4h88V144h-88c-61.8 0-112 50.2-112 112s50.2 112 112 112h88v-42.6h-88c-38.3 0-69.4-31.1-69.4-69.4zm85.4 22h192v-44H160v44zm208-134h-88v42.6h88c38.3 0 69.4 31.1 69.4 69.4s-31.1 69.4-69.4 69.4h-88V368h88c61.8 0 112-50.2 112-112s-50.2-112-112-112z"}}]})(A)}const T2A=A=>Q.jsx(P2A,{...A}),L2A=A=>Q.jsx(I7,{...A}),F2A=A=>Q.jsx(jxA,{...A}),O2A=A=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...A},d.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),d.createElement("path",{d:"M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z"})),H2A=A=>Q.jsx(O2A,{...A}),G2A=A=>Q.jsx(ObA,{...A}),U2A=A=>d.createElement("svg",{viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("g",{clipPath:"url(#clip0_1813_15242)"},d.createElement("path",{d:"M21.788 7.38281L16.3739 5.74219L14.827 0H3.22546C2.37112 0 1.67859 0.734508 1.67859 1.64062V26.3594C1.67859 27.2655 2.37112 28 3.22546 28H20.2411C21.0954 28 21.788 27.2655 21.788 26.3594V7.38281Z",fill:"#EDEDED"}),d.createElement("path",{d:"M21.7879 7.38281V26.3594C21.7879 27.2655 21.0954 28 20.2411 28H11.8571V0H14.827L16.3739 5.74219L21.7879 7.38281Z",fill:"#EDEDED"}),d.createElement("path",{d:"M21.788 7.38281H16.3739C15.5231 7.38281 14.827 6.64453 14.827 5.74219V0C15.0281 0 15.2292 0.0820312 15.3684 0.246148L21.5559 6.80865C21.7106 6.95625 21.788 7.16953 21.788 7.38281Z",fill:"#BDBDBD"}),d.createElement("path",{d:"M20.5333 22.4259C20.5333 22.925 20.1483 23.3333 19.6778 23.3333H0.855556C0.385 23.3333 0 22.925 0 22.4259V13.3519C0 12.8528 0.385 12.4445 0.855556 12.4445H19.6778C20.1483 12.4445 20.5333 12.8528 20.5333 13.3519V22.4259Z",fill:"#FF3E3E"}),d.createElement("path",{d:"M4.25304 17.732V16.448H4.98504C5.09304 16.448 5.19704 16.456 5.29704 16.472C5.39704 16.488 5.48504 16.52 5.56104 16.568C5.63704 16.612 5.69704 16.676 5.74104 16.76C5.78904 16.844 5.81304 16.954 5.81304 17.09C5.81304 17.226 5.78904 17.336 5.74104 17.42C5.69704 17.504 5.63704 17.57 5.56104 17.618C5.48504 17.662 5.39704 17.692 5.29704 17.708C5.19704 17.724 5.09304 17.732 4.98504 17.732H4.25304ZM3.31104 15.716V20H4.25304V18.464H5.24304C5.51104 18.464 5.73904 18.426 5.92704 18.35C6.11504 18.27 6.26704 18.166 6.38304 18.038C6.50304 17.91 6.58904 17.764 6.64104 17.6C6.69704 17.432 6.72504 17.262 6.72504 17.09C6.72504 16.914 6.69704 16.744 6.64104 16.58C6.58904 16.416 6.50304 16.27 6.38304 16.142C6.26704 16.014 6.11504 15.912 5.92704 15.836C5.73904 15.756 5.51104 15.716 5.24304 15.716H3.31104Z",fill:"white"}),d.createElement("path",{d:"M8.85499 19.208V16.508H9.52699C9.75899 16.508 9.95299 16.542 10.109 16.61C10.269 16.674 10.397 16.768 10.493 16.892C10.589 17.016 10.657 17.166 10.697 17.342C10.741 17.514 10.763 17.708 10.763 17.924C10.763 18.16 10.733 18.36 10.673 18.524C10.613 18.688 10.533 18.822 10.433 18.926C10.333 19.026 10.219 19.098 10.091 19.142C9.96299 19.186 9.83099 19.208 9.69499 19.208H8.85499ZM7.91299 15.716V20H9.76099C10.089 20 10.373 19.946 10.613 19.838C10.857 19.726 11.059 19.574 11.219 19.382C11.383 19.19 11.505 18.962 11.585 18.698C11.665 18.434 11.705 18.146 11.705 17.834C11.705 17.478 11.655 17.168 11.555 16.904C11.459 16.64 11.323 16.42 11.147 16.244C10.975 16.068 10.769 15.936 10.529 15.848C10.293 15.76 10.037 15.716 9.76099 15.716H7.91299Z",fill:"white"}),d.createElement("path",{d:"M12.9603 15.716V20H13.9023V18.23H15.6963V17.498H13.9023V16.508H15.9723V15.716H12.9603Z",fill:"white"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_1813_15242"},d.createElement("rect",{width:22,height:28,fill:"white"})))),K2A=A=>Q.jsx(U2A,{...A}),Y2A=A=>Q.jsx($xA,{...A}),$2A=A=>Q.jsx(HbA,{...A}),j2A=A=>d.createElement("svg",{viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("g",{clipPath:"url(#clip0_1960_14734)"},d.createElement("path",{d:"M22.2271 7.38281L16.304 5.74219L14.6117 0H1.91936C0.984697 0 0.227051 0.734508 0.227051 1.64062V26.3594C0.227051 27.2655 0.984697 28 1.91936 28H20.5347C21.4694 28 22.2271 27.2655 22.2271 26.3594V7.38281Z",fill:"#F2F2F2"}),d.createElement("path",{d:"M22.2271 7.38281V26.3594C22.2271 27.2655 21.4695 28 20.5348 28H11.3625V0H14.6117L16.304 5.74219L22.2271 7.38281Z",fill:"#F2F2F2"}),d.createElement("path",{d:"M22.227 7.38281H16.3039C15.3731 7.38281 14.6116 6.64453 14.6116 5.74219V0C14.8316 0 15.0516 0.0820312 15.2038 0.246148L21.9731 6.80865C22.1423 6.95625 22.227 7.16953 22.227 7.38281Z",fill:"#E1E1E1"}),d.createElement("path",{d:"M9 17L14.1962 21.5H3.80385L9 17Z",fill:"#8BDC6F"}),d.createElement("path",{d:"M13 14L18.1963 21.5H7.80396L13 14Z",fill:"#8BDC6F"}),d.createElement("circle",{cx:7,cy:11,r:2,fill:"#EFC942"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_1960_14734"},d.createElement("rect",{width:22,height:28,fill:"white"})))),q2A=A=>Q.jsx(j2A,{...A}),J2A=A=>Q.jsx(AxA,{...A}),z2A=A=>Q.jsx(UbA,{...A}),W2A=A=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("path",{d:"M18 8C19.6569 8 21 6.65685 21 5C21 3.34315 19.6569 2 18 2C16.3431 2 15 3.34315 15 5C15 6.65685 16.3431 8 18 8Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M6 15C7.65685 15 9 13.6569 9 12C9 10.3431 7.65685 9 6 9C4.34315 9 3 10.3431 3 12C3 13.6569 4.34315 15 6 15Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M18 22C19.6569 22 21 20.6569 21 19C21 17.3431 19.6569 16 18 16C16.3431 16 15 17.3431 15 19C15 20.6569 16.3431 22 18 22Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M8.58984 13.51L15.4198 17.49",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M15.4098 6.51001L8.58984 10.49",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),V2A=A=>Q.jsx(W2A,{...A}),X2A=A=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...A},d.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),d.createElement("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),d.createElement("path",{d:"M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7"})),Z2A=A=>Q.jsx(X2A,{...A}),AkA=A=>Q.jsx(vxA,{...A}),ekA=A=>d.createElement("svg",{width:22,height:28,viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("g",{clipPath:"url(#clip0_1811_14941)"},d.createElement("path",{d:"M21.7881 7.38281L16.374 5.74219L14.8271 0H3.22559C2.37125 0 1.67871 0.734508 1.67871 1.64062V26.3594C1.67871 27.2655 2.37125 28 3.22559 28H20.2412C21.0956 28 21.7881 27.2655 21.7881 26.3594V7.38281Z",fill:"#EDEDED"}),d.createElement("path",{d:"M21.7881 7.38281V26.3594C21.7881 27.2655 21.0955 28 20.2412 28H11.8572V0H14.8271L16.374 5.74219L21.7881 7.38281Z",fill:"#EDEDED"}),d.createElement("path",{d:"M21.7881 7.38281H16.374C15.5232 7.38281 14.8271 6.64453 14.8271 5.74219V0C15.0282 0 15.2293 0.0820312 15.3685 0.246148L21.556 6.80865C21.7107 6.95625 21.7881 7.16953 21.7881 7.38281Z",fill:"#BDBDBD"}),d.createElement("path",{d:"M20.5333 22.4259C20.5333 22.925 20.1483 23.3333 19.6778 23.3333H0.855556C0.385 23.3333 0 22.925 0 22.4259V13.3519C0 12.8528 0.385 12.4444 0.855556 12.4444H19.6778C20.1483 12.4444 20.5333 12.8528 20.5333 13.3519V22.4259Z",fill:"#161C28"}),d.createElement("path",{d:"M4.62629 16.508V20H5.56828V16.508H6.85229V15.716H3.34229V16.508H4.62629Z",fill:"white"}),d.createElement("path",{d:"M8.99625 17.756L7.50225 20H8.55825L9.51225 18.518L10.4483 20H11.5703L10.0763 17.762L11.4503 15.716H10.4183L9.54825 17.084L8.70825 15.716H7.61625L8.99625 17.756Z",fill:"white"}),d.createElement("path",{d:"M13.4962 16.508V20H14.4382V16.508H15.7222V15.716H12.2122V16.508H13.4962Z",fill:"white"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_1811_14941"},d.createElement("rect",{width:22,height:28,fill:"white"})))),tkA=A=>Q.jsx(ekA,{...A}),rkA=A=>d.createElement("svg",{viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("g",{clipPath:"url(#clip0_1811_14989)"},d.createElement("path",{d:"M22.2271 7.38281L16.304 5.74219L14.6117 0H1.91936C0.984697 0 0.227051 0.734508 0.227051 1.64062V26.3594C0.227051 27.2655 0.984697 28 1.91936 28H20.5347C21.4694 28 22.2271 27.2655 22.2271 26.3594V7.38281Z",fill:"#C9E3F4"}),d.createElement("path",{d:"M22.2271 7.38281V26.3594C22.2271 27.2655 21.4695 28 20.5348 28H11.3625V0H14.6117L16.304 5.74219L22.2271 7.38281Z",fill:"#C9E3F4"}),d.createElement("path",{d:"M22.227 7.38281H16.3039C15.3731 7.38281 14.6116 6.64453 14.6116 5.74219V0C14.8316 0 15.0516 0.0820312 15.2038 0.246148L21.9731 6.80865C22.1423 6.95625 22.227 7.16953 22.227 7.38281Z",fill:"#AAC4D6"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_1811_14989"},d.createElement("rect",{width:22,height:28,fill:"white"})))),nkA=A=>Q.jsx(rkA,{...A}),okA=A=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("path",{d:"M10 12.4503C10.3236 12.894 10.7365 13.2612 11.2106 13.5269C11.6847 13.7926 12.209 13.9505 12.7479 13.9901C13.2868 14.0297 13.8277 13.95 14.3339 13.7563C14.8401 13.5626 15.2998 13.2596 15.6817 12.8677L17.9424 10.549C18.6287 9.82019 19.0084 8.84404 18.9999 7.83081C18.9913 6.81758 18.595 5.84834 17.8965 5.13185C17.1979 4.41536 16.2529 4.00895 15.265 4.00015C14.2771 3.99134 13.3254 4.38085 12.6148 5.08478L11.3187 6.4064",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M13 10.5497C12.6764 10.106 12.2635 9.73881 11.7894 9.47313C11.3153 9.20745 10.791 9.04946 10.2521 9.00987C9.7132 8.97029 9.17231 9.05004 8.66611 9.24371C8.15991 9.43738 7.70024 9.74045 7.31828 10.1323L5.05764 12.451C4.37132 13.1798 3.99156 14.156 4.00014 15.1692C4.00873 16.1824 4.40497 17.1517 5.10354 17.8681C5.80211 18.5846 6.7471 18.991 7.73498 18.9999C8.72287 19.0087 9.6746 18.6192 10.3852 17.9152L11.6738 16.5936",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M8.1582 2.67383L9.06952 5.30645",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M18.4316 17.667L16.8262 15.3902",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M5 5.28906L7.23775 6.94848",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M20.7402 14.2783L18.1301 13.3044",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ikA=A=>Q.jsx(okA,{...A}),akA=A=>Q.jsx(v7,{...A}),b7=A=>Q.jsx(txA,{...A}),skA=A=>d.createElement("svg",{width:22,height:28,viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("path",{d:"M21.9982 7.38281L16.0756 5.74219L14.3835 0H1.69217C0.757586 0 0 0.734508 0 1.64062V26.3594C0 27.2655 0.757586 28 1.69217 28H20.3061C21.2407 28 21.9982 27.2655 21.9982 26.3594V7.38281Z",fill:"#59C36A"}),d.createElement("path",{d:"M21.9982 7.38281V26.3594C21.9982 27.2655 21.2406 28 20.306 28H11.1345V0H14.3834L16.0756 5.74219L21.9982 7.38281Z",fill:"#59C36A"}),d.createElement("path",{d:"M16.0753 11.5391H5.92226C5.4546 11.5391 5.07617 11.906 5.07617 12.3594V22.2031C5.07617 22.6565 5.4546 23.0234 5.92226 23.0234H16.0753C16.543 23.0234 16.9214 22.6565 16.9214 22.2031V12.3594C16.9214 11.906 16.543 11.5391 16.0753 11.5391ZM6.76834 16.4609H10.1527V18.1016H6.76834V16.4609ZM11.8449 16.4609H15.2292V18.1016H11.8449V16.4609ZM15.2292 14.8203H11.8449V13.1797H15.2292V14.8203ZM10.1527 13.1797V14.8203H6.76834V13.1797H10.1527ZM6.76834 19.7422H10.1527V21.3828H6.76834V19.7422ZM11.8449 21.3828V19.7422H15.2292V21.3828H11.8449Z",fill:"white"}),d.createElement("path",{d:"M16.0758 11.5391H11.1365V23.0234H16.0758C16.5435 23.0234 16.9219 22.6565 16.9219 22.2031V12.3594C16.9219 11.906 16.5435 11.5391 16.0758 11.5391ZM15.2297 21.3828H11.8454V19.7422H15.2297V21.3828ZM15.2297 18.1016H11.8454V16.4609H15.2297V18.1016ZM15.2297 14.8203H11.8454V13.1797H15.2297V14.8203Z",fill:"white"}),d.createElement("path",{d:"M21.9995 7.38281H16.0769C15.1462 7.38281 14.3848 6.64453 14.3848 5.74219V0C14.6047 0 14.8247 0.0820312 14.977 0.246148L21.7457 6.80865C21.9149 6.95625 21.9995 7.16953 21.9995 7.38281Z",fill:"#A0DEB0"})),lkA=A=>Q.jsx(skA,{...A});function ckA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.953 2C6.465 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.493 2 11.953 2zM12 20c-4.411 0-8-3.589-8-8s3.567-8 7.953-8C16.391 4 20 7.589 20 12s-3.589 8-8 8z"}},{tag:"path",attr:{d:"M11 7h2v7h-2zm0 8h2v2h-2z"}}]})(A)}const x7=A=>Q.jsx(ckA,{...A}),ukA=A=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-trending-up",width:24,height:24,viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...A},d.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),d.createElement("path",{d:"M3 17l6 -6l4 4l8 -8"}),d.createElement("path",{d:"M14 7l7 0l0 7"})),fkA=A=>Q.jsx(ukA,{...A}),gkA=A=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-trending-down",width:24,height:24,viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...A},d.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),d.createElement("path",{d:"M3 7l6 6l4 -4l8 8"}),d.createElement("path",{d:"M21 10l0 7l-7 0"})),dkA=A=>Q.jsx(gkA,{...A}),hkA=A=>Q.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",...A,children:[Q.jsx("rect",{id:"sortasc",x:"0",y:"0",width:"24",height:"24",fill:"none"}),Q.jsx("path",{d:"M12,2l7,8l-14,-0l7,-8Z",fill:"currentColor"}),Q.jsx("path",{d:"M12,22l-7,-8l14,-0l-7,8Z",fill:"currentColor",fillOpacity:.5})]}),pkA=A=>Q.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",...A,children:[Q.jsx("rect",{id:"sortasc",x:"0",y:"0",width:"24",height:"24",fill:"none"}),Q.jsx("path",{d:"M12,2l7,8l-14,-0l7,-8Z",fill:"currentColor",fillOpacity:.5}),Q.jsx("path",{d:"M12,22l-7,-8l14,-0l-7,8Z",fill:"currentColor"})]}),BkA=A=>Q.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",...A,children:[Q.jsx("rect",{id:"sortasc",x:"0",y:"0",width:"24",height:"24",fill:"none"}),Q.jsx("path",{d:"M12,2l7,8l-14,-0l7,-8Z",fill:"currentColor",fillOpacity:.5}),Q.jsx("path",{d:"M12,22l-7,-8l14,-0l-7,8Z",fill:"currentColor",fillOpacity:.5})]}),EkA=A=>d.createElement("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:"icon ms-1",...A},d.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),d.createElement("path",{d:"M5 12l14 0"})),CkA=A=>Q.jsx(EkA,{...A}),nw=new Map;function vA(A,e){typeof A=="object"?A.forEach(t=>{nw.set(t,{renderer:e})}):nw.set(A,{renderer:e})}vA("assign",A=>Q.jsx(v7,{...A})),vA("arrowup",A=>Q.jsx(ixA,{...A})),vA("arrowleft",A=>Q.jsx(nxA,{...A})),vA("arrowright",A=>Q.jsx(oxA,{...A})),vA("pause",A=>Q.jsx(lxA,{...A})),vA("play",A=>Q.jsx(cxA,{...A})),vA("hamburger",A=>Q.jsx(XbA,{...A})),vA("send",A=>Q.jsx(exA,{...A})),vA("users",A=>Q.jsx(JbA,{...A})),vA("refresh",A=>Q.jsx(GbA,{...A})),vA("chevrondown",A=>Q.jsx(bbA,{...A})),vA("chevronup",A=>Q.jsx(xbA,{...A})),vA("dotmenu",A=>Q.jsx(C2A,{...A})),vA("dotmenuhorizontal",A=>Q.jsx(E2A,{...A})),vA("noresult",A=>Q.jsx(KbA,{...A})),vA("crm",A=>Q.jsx(D7,{...A})),vA("chat",A=>Q.jsx(D7,{...A})),vA("pencil",A=>Q.jsx(wxA,{...A})),vA("cube",A=>Q.jsx(CxA,{...A})),vA("apps",A=>Q.jsx(w7,{...A})),vA("permissions",A=>Q.jsx(LbA,{...A})),vA("close",A=>Q.jsx(zbA,{...A})),vA("star",A=>Q.jsx(YbA,{...A})),vA("help",A=>Q.jsx(PbA,{...A})),vA("compactlist",A=>Q.jsx(c2A,{...A})),vA("copy",A=>Q.jsx(u2A,{...A})),vA("move",A=>Q.jsx(MbA,{...A})),vA("rename",A=>Q.jsx(kxA,{...A})),vA("hyperlink",A=>Q.jsx(S2A,{...A})),vA("globe",A=>Q.jsx(_2A,{...A})),vA("link",A=>Q.jsx(T2A,{...A})),vA("looseList",A=>Q.jsx(F2A,{...A})),vA("options",A=>Q.jsx(G2A,{...A})),vA("search",A=>Q.jsx(z2A,{...A})),vA("filter",A=>Q.jsx(b2A,{...A})),vA("trash",A=>Q.jsx(AkA,{...A})),vA("pen",A=>Q.jsx(Y2A,{...A})),vA("email",A=>Q.jsx(m2A,{...A})),vA("phone",A=>Q.jsx($2A,{...A})),vA("home",A=>Q.jsx(M2A,{...A})),vA("user",A=>Q.jsx(akA,{...A})),vA("exit",A=>Q.jsx(FxA,{...A})),vA("adduser",A=>Q.jsx(qbA,{...A})),vA("userminus",A=>Q.jsx(jbA,{...A})),vA("plus",A=>Q.jsx(J2A,{...A})),vA("plus-circle",A=>Q.jsx(ZbA,{...A})),vA("filledplus",A=>Q.jsx(D2A,{...A})),vA("chevronright",A=>Q.jsx(o2A,{...A})),vA("chevronleft",A=>Q.jsx(n2A,{...A})),vA("checkmark",A=>Q.jsx(r2A,{...A})),vA("valid",A=>Q.jsx(DbA,{...A})),vA("info",A=>Q.jsx(vbA,{...A})),vA("error",A=>Q.jsx(x7,{...A})),vA("warning",A=>Q.jsx(b7,{...A})),vA("board",A=>Q.jsx(A2A,{...A})),vA("list",A=>Q.jsx(L2A,{...A})),vA("folder",A=>Q.jsx(k2A,{...A})),vA("folder-outline",A=>Q.jsx(NbA,{...A})),vA("emptyfolder",A=>Q.jsx(w2A,{...A})),vA("pdf",A=>Q.jsx(K2A,{...A})),vA("txt",A=>Q.jsx(tkA,{...A})),vA("doc",A=>Q.jsx(y7,{...A})),vA("docx",A=>Q.jsx(y7,{...A})),vA("doc-outline",A=>Q.jsx(p2A,{...A})),vA("conf",A=>Q.jsx(hxA,{...A})),vA("code",A=>Q.jsx(a2A,{...A})),vA("codesandbox",A=>Q.jsx(l2A,{...A})),vA("box",A=>Q.jsx(t2A,{...A})),vA(["xls","xlsx"],A=>Q.jsx(lkA,{...A})),vA(["jpg","jpeg","png","webp","svg","gif","tif","ppt","pptx"],A=>Q.jsx(R2A,{...A})),vA("unknownfile",A=>Q.jsx(nkA,{...A})),vA("photo",A=>Q.jsx(q2A,{...A})),vA("previous",A=>Q.jsx(ExA,{...A})),vA("next",A=>Q.jsx(BxA,{...A})),vA("like",A=>Q.jsx(VbA,{...A})),vA("reply",A=>Q.jsx(uxA,{...A})),vA("attach",A=>Q.jsx(WxA,{...A})),vA("attach2",A=>Q.jsx(NxA,{...A})),vA("emoji",A=>Q.jsx(pxA,{...A})),vA("message",A=>Q.jsx(MxA,{...A})),vA("upload",A=>Q.jsx($bA,{...A})),vA("split-vertical",A=>Q.jsx(LxA,{...A})),vA("split-horizontal",A=>Q.jsx(TxA,{...A})),vA("swap",A=>Q.jsx(IxA,{...A})),vA("download",A=>Q.jsx(SbA,{...A})),vA("note",A=>Q.jsx(SxA,{...A})),vA("binding",A=>Q.jsx(ZxA,{...A})),vA("database",A=>Q.jsx(d2A,{...A})),vA("unlink",A=>Q.jsx(ikA,{...A})),vA("api",A=>Q.jsx(JxA,{...A})),vA("expression",A=>Q.jsx(v2A,{...A})),vA("chat",A=>Q.jsx(axA,{...A})),vA("hash",A=>Q.jsx(sxA,{...A})),vA("drive",A=>Q.jsx(RbA,{...A})),vA("lock",A=>Q.jsx(FbA,{...A})),vA("start",A=>Q.jsx(RxA,{...A})),vA("stop",A=>Q.jsx(PxA,{...A})),vA("restart",A=>Q.jsx(UxA,{...A})),vA("duplicate",A=>Q.jsx(YxA,{...A})),vA("connect",A=>Q.jsx(OxA,{...A})),vA("cog",A=>Q.jsx(KxA,{...A})),vA("sun",A=>Q.jsx(Z2A,{...A})),vA("moon",A=>Q.jsx(H2A,{...A})),vA("share",A=>Q.jsx(V2A,{...A})),vA("new-window",A=>Q.jsx(HxA,{...A})),vA("paint",A=>Q.jsx(GxA,{...A})),vA("palette",A=>Q.jsx(_xA,{...A})),vA("trending-up",A=>Q.jsx(fkA,{...A})),vA("trending-down",A=>Q.jsx(dkA,{...A})),vA("trending-level",A=>Q.jsx(CkA,{...A})),vA("sortasc",A=>Q.jsx(hkA,{...A})),vA("sortdesc",A=>Q.jsx(pkA,{...A})),vA("nosort",A=>Q.jsx(BkA,{...A})),vA("arrowdown",A=>Q.jsx(rxA,{...A})),vA("square",A=>Q.jsx(dxA,{...A})),vA("squarehalf",A=>Q.jsx(gxA,{...A})),vA("squarefill",A=>Q.jsx(fxA,{...A}));function mkA({children:A}){const e=d.useCallback(()=>Array.from(nw.keys()),[]),t=d.useCallback(l=>nw.get(l),[]),[r,n]=d.useState({}),o=d.useRef({}),i=d.useRef(null),a=d.useCallback(async l=>{if(o.current[l])return;const c=await(await fetch(l)).text(),u=document.createElement("div");u.style.display="none",u.innerHTML=c;const g={};for(let E=0;E<u.children[0].attributes.length;E++){const C=u.children[0].attributes[E];C.nodeName!=="class"&&(g[C.nodeName]=C.nodeValue)}Object.keys(g).forEach(E=>{u.children[0].removeAttribute(E)});const h=document.createElementNS("http://www.w3.org/2000/svg","symbol");h.innerHTML=u.children[0].innerHTML,h.id=l,h.setAttributeNS(null,"viewBox",g.viewBox),o.current[l]||(i.current.appendChild(h),o.current[l]=!0);const B={name:l,attributes:g};n(E=>({...E,[l]:B}))},[]),s=d.useMemo(()=>({getRegisteredIconNames:e,lookupIconRenderer:t,ensureCustomSvgIcon:a,customSvgs:r}),[r,a,e,t]);return Q.jsxs(oH.Provider,{value:s,children:[A,Q.jsx("svg",{style:{display:"none"},ref:i})]})}const k7=d.createContext(null);function QkA(){return d.useContext(k7)}function wkA(A){return(A?new Date(A):new Date).toJSON()}function IkA(A){return new Date(A).toLocaleDateString()}function vkA(A){return new Date(A).toLocaleString()}function DkA(A){return new Date(A).toLocaleTimeString()}function ykA(A){return xn(new Date(A),"H:m")}function bkA(A){return new Date(A).toLocaleDateString([],{month:"numeric",day:"2-digit"})}function _7(A){return A?new Date(A):new Date}function xkA(A,e,t){return A?LQA(A,e,t):"-"}function kkA(A){return A?Xm(new Date(A))?new Date(A).toLocaleTimeString():hQA(new Date(A))?`${omA(new Date(A),new Date)}`:new Date(A).toLocaleString():"-"}function _kA(A){return A?Xm(new Date(A))?"Today":lO(new Date(A))?"Yesterday":new Date(A).toLocaleDateString():"-"}function MkA(A){return Xm(new Date(A))}function SkA(A){return lO(new Date(A))}function NkA(A){return BQA(new Date(A))}const M7={isoDateString:wkA,formatDate:IkA,formatDateTime:vkA,formatTime:DkA,formatTimeWithoutSeconds:ykA,formatDateWithoutYear:bkA,getDate:_7,getDateUntilNow:xkA,smartFormatDateTime:kkA,smartFormatDate:_kA,isToday:MkA,isYesterday:SkA,isTomorrow:NkA},S7={capitalize:NdA,pluralize:jQA,defaultTo:rBA,toHashObject:qQA,findByField:JQA,distinct:zQA},ra={themeVars:'"[]"',base:"_base_gzmhm_13",hoverContainer:"_hoverContainer_gzmhm_22",handlesClick:"_handlesClick_gzmhm_32",vertical:"_vertical_gzmhm_36",reverse:"_reverse_gzmhm_40",horizontal:"_horizontal_gzmhm_44",justifyItemsStart:"_justifyItemsStart_gzmhm_52",justifyItemsCenter:"_justifyItemsCenter_gzmhm_56",justifyItemsStretch:"_justifyItemsStretch_gzmhm_60",justifyItemsEnd:"_justifyItemsEnd_gzmhm_64",alignItemsStart:"_alignItemsStart_gzmhm_69",alignItemsCenter:"_alignItemsCenter_gzmhm_73",alignItemsStretch:"_alignItemsStretch_gzmhm_77",alignItemsEnd:"_alignItemsEnd_gzmhm_81"};function kA({description:A,shortDescription:e,specializedFrom:t,status:r,props:n,events:o,contextVars:i,apis:a,nonVisual:s,opaque:l,themeVars:c,defaultThemeVars:u,toneSpecificThemeVars:g,allowArbitraryProps:h,docFolder:B}){return{description:A,shortDescription:e,specializedFrom:t,status:r,props:n,events:o,contextVars:i,apis:a,nonVisual:s,opaque:l,themeVars:c,defaultThemeVars:u,toneSpecificThemeVars:g,allowArbitraryProps:h,docFolder:B}}function j(A,e,t,r,n){return{description:A,availableValues:e,valueType:t,defaultValue:r,isValid:n}}function Zu(A){return{description:A??"This property is for internal use only.",isInternal:!0}}function sc(A){return{description:`This event is triggered when the ${A} is clicked.`}}function To(A){return{description:`This event is triggered when the ${A} has received the focus.`}}function Lo(A){return{description:`This event is triggered when the ${A} has lost the focus.`}}function lo(A){return{description:`This event is triggered when value of ${A} has changed.`}}function N7(){return{description:"The `true` value of this property signals that the component is in an _intedeterminate state_."}}function pn(){return{description:"This property sets the label of the component."}}function Ws(A){return{description:"Places the label at the given position of the component.",availableValues:fH,defaultValue:A}}function lc(A){return{description:`This property sets the width of the \`${A}\`.`}}function cc(A){return{description:`This boolean value indicates if the \`${A}\` labels can be split into multiple lines if it would overflow the available label width.`,valueType:"boolean",defaultValue:!1}}function Fo(){return{description:"If this property is set to `true`, the component gets the focus automatically when displayed.",valueType:"boolean",defaultValue:!1}}function na(A){return{description:"This property sets the component's initial value.",defaultValue:A}}function Xa(){return{description:"Set this property to `true` to disallow changing the component value."}}function Yn(){return{description:"This boolean property value indicates whether the component responds to user events (`true`) or not (`false`).",valueType:"boolean",defaultValue:!0}}function R7(){return{description:"The `true` value of the property indicates if the user can select multiple items.",valueType:"boolean",defaultValue:!1}}function Za(){return{description:"This property allows you to set the validation status of the input component.",availableValues:CDA}}function P7(){return{description:"You can query this read-only API property to query the component's current value (`true`: checked, `false`: unchecked)."}}function Vs(){return{description:"You can use this method to set the component's current value programmatically (`true`: checked, `false`: unchecked)."}}function zt(A){return{description:A,valueType:"ComponentDef"}}function Af(){return{description:"A placeholder text that is visible in the input field when its empty."}}function NB(){return{description:"This property sets the maximum length of the input it accepts."}}function As(){return{description:"Set this property to `true` to indicate it must have a value before submitting the containing form."}}function T7(){return{description:"This property sets a text to appear at the start (left side when the left-to-right direction is set) of the input."}}function L7(){return{description:"This property sets an icon to appear at the start (left side when the left-to-right direction is set) of the input."}}function F7(){return{description:"This property sets a text to appear on the end (right side when the left-to-right direction is set) of the input."}}function O7(){return{description:"This property sets an icon to appear on the end (right side when the left-to-right direction is set) of the input."}}function RkA(A){return{description:`This property indicates if the ${A} is expanded (\`true\`) or collapsed (\`false\`).`}}function PkA(A){return{description:`This method expands the ${A}.`}}function TkA(A){return{description:`This method collapses the ${A}.`}}function es(A){return{description:`This method sets the focus on the ${A}.`}}function qk(){return{description:"You can query the component's value. If no value is set, it will retrieve `undefined`."}}function LkA(A){return{description:`This event is triggered when the ${A} has been displayed. The event handler has a single boolean argument set to \`true\`, indicating that the user opened the component.`}}function FkA(A){return{description:`This event is triggered when the ${A} has been closed. The event handler has a single boolean argument set to \`true\`, indicating that the user closed the component.`}}function H7(A){return{description:`This property allows you to define a custom trigger instead of the default one provided by \`${A}\`.`,valueType:"ComponentDef"}}function OkA(A){return{description:"This property sets the main axis along which the nested components are rendered.",availableValues:vk,valueType:"string",defaultValue:A}}function HkA(A,e,t){return d.useMemo(()=>A==="horizontal"?{horizontal:e&&ra[`justifyItems${sB(e)}`],vertical:t&&ra[`alignItems${sB(t)}`]}:{horizontal:e&&ra[`alignItems${sB(e)}`],vertical:t&&ra[`justifyItems${sB(t)}`]},[A,e,t])}const G7="vertical",co=d.forwardRef(function({uid:e,children:t,orientation:r=G7,horizontalAlignment:n,verticalAlignment:o,style:i,reverse:a,hoverContainer:s,visibleOnHover:l,onClick:c,onMount:u,...g},h){ywA(u);const{horizontal:B,vertical:E}=HkA(r,n,o);return Q.jsx("div",{...g,onClick:c,ref:h,style:i,className:KA(ra.base,{[ra.vertical]:r==="vertical",[ra.horizontal]:r==="horizontal",[ra.reverse]:a,[ra.hoverContainer]:s,"display-on-hover":l,[ra.handlesClick]:!!c},B??"",E??""),children:t})}),wd="Stack",Jk=j("Manages the horizontal content alignment for each child element in the Stack."),zk=j("Manages the vertical content alignment for each child element in the Stack."),ow=kA({description:"`Stack` is a layout container displaying children in a horizontal or vertical stack.",props:{gap:j("Optional size value indicating the gap between child elements."),reverse:j("Optional boolean property to reverse the order of child elements."),wrapContent:j("Optional boolean which wraps the content if set to true and the available space is not big enough. Works in all orientations."),hoverContainer:j("Reserved for future use"),visibleOnHover:j("Reserved for future use")},events:{click:sc(wd),mounted:j("Reserved for future use")},themeVars:ne(ra.themeVars)}),RB={...ow,props:{...ow.props,orientation:j("An optional property that governs the Stack's orientation (whether the Stack lays out its children in a row or a column)."),horizontalAlignment:Jk,verticalAlignment:zk}},GkA={...RB,specializedFrom:wd,description:"This component represents a stack rendering its contents vertically.",props:{...ow.props,horizontalAlignment:Jk,verticalAlignment:zk}},UkA={...RB,specializedFrom:wd,description:"This component represents a stack rendering its contents horizontally.",props:{...ow.props,horizontalAlignment:Jk,verticalAlignment:zk}},KkA={...RB,specializedFrom:wd,description:"This component represents a stack that renders its contents vertically and aligns that in the center along both axes."},YkA={...RB,specializedFrom:wd,description:"This component represents a stack that renders its contents horizontally and aligns that in the center along both axes."};function PB({node:A,layoutNonCss:e,extractValue:t,layoutCss:r,lookupEventHandler:n,renderChild:o,orientation:i=e.orientation||G7,horizontalAlignment:a=e.horizontalAlignment,verticalAlignment:s=e.verticalAlignment}){var l,c,u;if(!F2(A.children))throw new QB;return Q.jsx(co,{orientation:i,horizontalAlignment:a,verticalAlignment:s,reverse:t((l=A.props)==null?void 0:l.reverse),hoverContainer:t((c=A.props)==null?void 0:c.hoverContainer),visibleOnHover:t((u=A.props)==null?void 0:u.visibleOnHover),style:r,onMount:n("mounted"),children:o(A.children,{type:"Stack",orientation:i})})}const $kA=RA(wd,RB,({node:A,extractValue:e,renderChild:t,layoutCss:r,layoutNonCss:n,lookupEventHandler:o})=>PB({node:A,layoutNonCss:n,extractValue:e,layoutCss:r,lookupEventHandler:o,renderChild:t})),jkA=RA("VStack",GkA,({node:A,extractValue:e,renderChild:t,layoutCss:r,layoutNonCss:n,lookupEventHandler:o})=>PB({node:A,layoutNonCss:n,extractValue:e,layoutCss:r,lookupEventHandler:o,renderChild:t,orientation:"vertical"})),qkA=RA("HStack",UkA,({node:A,extractValue:e,renderChild:t,layoutCss:r,layoutNonCss:n,lookupEventHandler:o})=>PB({node:A,layoutNonCss:n,extractValue:e,layoutCss:r,lookupEventHandler:o,renderChild:t,orientation:"horizontal"})),JkA=RA("CVStack",KkA,({node:A,extractValue:e,renderChild:t,layoutCss:r,layoutNonCss:n,lookupEventHandler:o})=>PB({node:A,layoutNonCss:n,extractValue:e,layoutCss:r,lookupEventHandler:o,renderChild:t,orientation:"vertical",horizontalAlignment:"center",verticalAlignment:"center"})),zkA=RA("CHStack",YkA,({node:A,extractValue:e,renderChild:t,layoutCss:r,layoutNonCss:n,lookupEventHandler:o})=>PB({node:A,layoutNonCss:n,extractValue:e,layoutCss:r,lookupEventHandler:o,renderChild:t,orientation:"horizontal",horizontalAlignment:"center",verticalAlignment:"center"})),U7={themeVars:'"[]"',spacer:"_spacer_1414d_13"},K7=()=>Q.jsx("div",{className:U7.spacer}),Y7="SpaceFiller",WkA=kA({description:`The \`${Y7}\` is a component that works well in layout containers to fill the remaining (unused) space. Its behavior depends on the layout container in which it is used.`,themeVars:ne(U7.themeVars)}),VkA=RA(Y7,WkA,()=>Q.jsx(K7,{})),ts={themeVars:`'{"Input:radius-Textarea-default": "var(--xmlui-radius-Textarea-default)", "Input:color-border-Textarea-default": "var(--xmlui-color-border-Textarea-default)", "Input:thickness-border-Textarea-default": "var(--xmlui-thickness-border-Textarea-default)", "Input:style-border-Textarea-default": "var(--xmlui-style-border-Textarea-default)", "Input:font-size-Textarea-default": "var(--xmlui-font-size-Textarea-default)", "Input:padding-Textarea-default": "var(--xmlui-padding-Textarea-default)", "Input:color-bg-Textarea-default": "var(--xmlui-color-bg-Textarea-default)", "Input:shadow-Textarea-default": "var(--xmlui-shadow-Textarea-default)", "Input:color-text-Textarea-default": "var(--xmlui-color-text-Textarea-default)", "Input:color-border-Textarea-default--hover": "var(--xmlui-color-border-Textarea-default--hover)", "Input:color-bg-Textarea-default--hover": "var(--xmlui-color-bg-Textarea-default--hover)", "Input:shadow-Textarea-default--hover": "var(--xmlui-shadow-Textarea-default--hover)", "Input:color-text-Textarea-default--hover": "var(--xmlui-color-text-Textarea-default--hover)", "Input:color-border-Textarea-default--focus": "var(--xmlui-color-border-Textarea-default--focus)", "Input:color-bg-Textarea-default--focus": "var(--xmlui-color-bg-Textarea-default--focus)", "Input:shadow-Textarea-default--focus": "var(--xmlui-shadow-Textarea-default--focus)", "Input:color-text-Textarea-default--focus": "var(--xmlui-color-text-Textarea-default--focus)", "Input:thickness-outline-Textarea-default--focus": "var(--xmlui-thickness-outline-Textarea-default--focus)", "Input:color-outline-Textarea-default--focus": "var(--xmlui-color-outline-Textarea-default--focus)", "Input:style-outline-Textarea-default--focus": "var(--xmlui-style-outline-Textarea-default--focus)", "Input:offset-outline-Textarea-default--focus": "var(--xmlui-offset-outline-Textarea-default--focus)", "Input:color-placeholder-Textarea-default": "var(--xmlui-color-placeholder-Textarea-default)", "Input:radius-Textarea-error": "var(--xmlui-radius-Textarea-error)", "Input:color-border-Textarea-error": "var(--xmlui-color-border-Textarea-error)", "Input:thickness-border-Textarea-error": "var(--xmlui-thickness-border-Textarea-error)", "Input:style-border-Textarea-error": "var(--xmlui-style-border-Textarea-error)", "Input:font-size-Textarea-error": "var(--xmlui-font-size-Textarea-error)", "Input:padding-Textarea-error": "var(--xmlui-padding-Textarea-error)", "Input:color-bg-Textarea-error": "var(--xmlui-color-bg-Textarea-error)", "Input:shadow-Textarea-error": "var(--xmlui-shadow-Textarea-error)", "Input:color-text-Textarea-error": "var(--xmlui-color-text-Textarea-error)", "Input:color-border-Textarea-error--hover": "var(--xmlui-color-border-Textarea-error--hover)", "Input:color-bg-Textarea-error--hover": "var(--xmlui-color-bg-Textarea-error--hover)", "Input:shadow-Textarea-error--hover": "var(--xmlui-shadow-Textarea-error--hover)", "Input:color-text-Textarea-error--hover": "var(--xmlui-color-text-Textarea-error--hover)", "Input:color-border-Textarea-error--focus": "var(--xmlui-color-border-Textarea-error--focus)", "Input:color-bg-Textarea-error--focus": "var(--xmlui-color-bg-Textarea-error--focus)", "Input:shadow-Textarea-error--focus": "var(--xmlui-shadow-Textarea-error--focus)", "Input:color-text-Textarea-error--focus": "var(--xmlui-color-text-Textarea-error--focus)", "Input:thickness-outline-Textarea-error--focus": "var(--xmlui-thickness-outline-Textarea-error--focus)", "Input:color-outline-Textarea-error--focus": "var(--xmlui-color-outline-Textarea-error--focus)", "Input:style-outline-Textarea-error--focus": "var(--xmlui-style-outline-Textarea-error--focus)", "Input:offset-outline-Textarea-error--focus": "var(--xmlui-offset-outline-Textarea-error--focus)", "Input:color-placeholder-Textarea-error": "var(--xmlui-color-placeholder-Textarea-error)", "Input:radius-Textarea-warning": "var(--xmlui-radius-Textarea-warning)", "Input:color-border-Textarea-warning": "var(--xmlui-color-border-Textarea-warning)", "Input:thickness-border-Textarea-warning": "var(--xmlui-thickness-border-Textarea-warning)", "Input:style-border-Textarea-warning": "var(--xmlui-style-border-Textarea-warning)", "Input:font-size-Textarea-warning": "var(--xmlui-font-size-Textarea-warning)", "Input:padding-Textarea-warning": "var(--xmlui-padding-Textarea-warning)", "Input:color-bg-Textarea-warning": "var(--xmlui-color-bg-Textarea-warning)", "Input:shadow-Textarea-warning": "var(--xmlui-shadow-Textarea-warning)", "Input:color-text-Textarea-warning": "var(--xmlui-color-text-Textarea-warning)", "Input:color-border-Textarea-warning--hover": "var(--xmlui-color-border-Textarea-warning--hover)", "Input:color-bg-Textarea-warning--hover": "var(--xmlui-color-bg-Textarea-warning--hover)", "Input:shadow-Textarea-warning--hover": "var(--xmlui-shadow-Textarea-warning--hover)", "Input:color-text-Textarea-warning--hover": "var(--xmlui-color-text-Textarea-warning--hover)", "Input:color-border-Textarea-warning--focus": "var(--xmlui-color-border-Textarea-warning--focus)", "Input:color-bg-Textarea-warning--focus": "var(--xmlui-color-bg-Textarea-warning--focus)", "Input:shadow-Textarea-warning--focus": "var(--xmlui-shadow-Textarea-warning--focus)", "Input:color-text-Textarea-warning--focus": "var(--xmlui-color-text-Textarea-warning--focus)", "Input:thickness-outline-Textarea-warning--focus": "var(--xmlui-thickness-outline-Textarea-warning--focus)", "Input:color-outline-Textarea-warning--focus": "var(--xmlui-color-outline-Textarea-warning--focus)", "Input:style-outline-Textarea-warning--focus": "var(--xmlui-style-outline-Textarea-warning--focus)", "Input:offset-outline-Textarea-warning--focus": "var(--xmlui-offset-outline-Textarea-warning--focus)", "Input:color-placeholder-Textarea-warning": "var(--xmlui-color-placeholder-Textarea-warning)", "Input:radius-Textarea-success": "var(--xmlui-radius-Textarea-success)", "Input:color-border-Textarea-success": "var(--xmlui-color-border-Textarea-success)", "Input:thickness-border-Textarea-success": "var(--xmlui-thickness-border-Textarea-success)", "Input:style-border-Textarea-success": "var(--xmlui-style-border-Textarea-success)", "Input:font-size-Textarea-success": "var(--xmlui-font-size-Textarea-success)", "Input:padding-Textarea-success": "var(--xmlui-padding-Textarea-success)", "Input:color-bg-Textarea-success": "var(--xmlui-color-bg-Textarea-success)", "Input:shadow-Textarea-success": "var(--xmlui-shadow-Textarea-success)", "Input:color-text-Textarea-success": "var(--xmlui-color-text-Textarea-success)", "Input:color-border-Textarea-success--hover": "var(--xmlui-color-border-Textarea-success--hover)", "Input:color-bg-Textarea-success--hover": "var(--xmlui-color-bg-Textarea-success--hover)", "Input:shadow-Textarea-success--hover": "var(--xmlui-shadow-Textarea-success--hover)", "Input:color-text-Textarea-success--hover": "var(--xmlui-color-text-Textarea-success--hover)", "Input:color-border-Textarea-success--focus": "var(--xmlui-color-border-Textarea-success--focus)", "Input:color-bg-Textarea-success--focus": "var(--xmlui-color-bg-Textarea-success--focus)", "Input:shadow-Textarea-success--focus": "var(--xmlui-shadow-Textarea-success--focus)", "Input:color-text-Textarea-success--focus": "var(--xmlui-color-text-Textarea-success--focus)", "Input:thickness-outline-Textarea-success--focus": "var(--xmlui-thickness-outline-Textarea-success--focus)", "Input:color-outline-Textarea-success--focus": "var(--xmlui-color-outline-Textarea-success--focus)", "Input:style-outline-Textarea-success--focus": "var(--xmlui-style-outline-Textarea-success--focus)", "Input:offset-outline-Textarea-success--focus": "var(--xmlui-offset-outline-Textarea-success--focus)", "Input:color-placeholder-Textarea-success": "var(--xmlui-color-placeholder-Textarea-success)", "Input:color-bg-Textarea--disabled": "var(--xmlui-color-bg-Textarea--disabled)", "Input:color-text-Textarea--disabled": "var(--xmlui-color-text-Textarea--disabled)", "Input:color-border-Textarea--disabled": "var(--xmlui-color-border-Textarea--disabled)"}'`,textarea:"_textarea_8qfuq_13",error:"_error_8qfuq_53",warning:"_warning_8qfuq_85",valid:"_valid_8qfuq_117",resizeHorizontal:"_resizeHorizontal_8qfuq_156",resizeVertical:"_resizeVertical_8qfuq_160",resizeBoth:"_resizeBoth_8qfuq_164"},$7=(A,e)=>{if(typeof A=="function"){A(e);return}A.current=e},XkA=(A,e)=>{const t=d.useRef();return d.useCallback(r=>{A.current=r,t.current&&$7(t.current,null),t.current=e,e&&$7(e,r)},[e])},ZkA=()=>{},A4A=({maxRows:A,minRows:e,onChange:t=ZkA,style:r,...n},o)=>{const i=d.useRef(null),a=XkA(i,o),[s,l]=d.useState(),[c,u]=d.useState();return d.useEffect(()=>{if(!i.current)return;const g=getComputedStyle(i.current),h=parseFloat(g.lineHeight),B=parseFloat(g.paddingTop)+parseFloat(g.paddingBottom),E=parseFloat(g.borderTop)+parseFloat(g.borderBottom),C=(g.boxSizing==="border-box"?E:0)+B;l(h*(e??1)+C),u(h*(A??1e4)+C)},[i.current,A,e]),Q.jsx("textarea",{ref:a,...n,onChange:t,style:{...r,minHeight:s,maxHeight:c}})},e4A=d.forwardRef(A4A);function t4A(A,e){if(A==null)return{};var t={};for(var r in A)if({}.hasOwnProperty.call(A,r)){if(e.includes(r))continue;t[r]=A[r]}return t}var r4A=d.useLayoutEffect,n4A=function(e){var t=d.useRef(e);return r4A(function(){t.current=e}),t},j7=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},o4A=function(e,t){var r=d.useRef();return d.useCallback(function(n){e.current=n,r.current&&j7(r.current,null),r.current=t,t&&j7(t,n)},[t])},q7={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},i4A=function(e){Object.keys(q7).forEach(function(t){e.style.setProperty(t,q7[t],"important")})},J7=i4A,$n=null,z7=function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize};function a4A(A,e,t,r){t===void 0&&(t=1),r===void 0&&(r=1/0),$n||($n=document.createElement("textarea"),$n.setAttribute("tabindex","-1"),$n.setAttribute("aria-hidden","true"),J7($n)),$n.parentNode===null&&document.body.appendChild($n);var n=A.paddingSize,o=A.borderSize,i=A.sizingStyle,a=i.boxSizing;Object.keys(i).forEach(function(g){var h=g;$n.style[h]=i[h]}),J7($n),$n.value=e;var s=z7($n,A);$n.value=e,s=z7($n,A),$n.value="x";var l=$n.scrollHeight-n,c=l*t;a==="border-box"&&(c=c+n+o),s=Math.max(c,s);var u=l*r;return a==="border-box"&&(u=u+n+o),s=Math.min(u,s),[s,l]}var W7=function(){},s4A=function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},l4A=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],c4A=!!document.documentElement.currentStyle,u4A=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=s4A(l4A,t),n=r.boxSizing;if(n==="")return null;c4A&&n==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var o=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),i=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:o,borderSize:i}},f4A=u4A;function V7(A,e,t){var r=n4A(t);d.useLayoutEffect(function(){var n=function(i){return r.current(i)};if(A)return A.addEventListener(e,n),function(){return A.removeEventListener(e,n)}},[])}var g4A=function(e){V7(window,"resize",e)},d4A=function(e){V7(document.fonts,"loadingdone",e)},h4A=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],p4A=function(e,t){var r=e.cacheMeasurements,n=e.maxRows,o=e.minRows,i=e.onChange,a=i===void 0?W7:i,s=e.onHeightChange,l=s===void 0?W7:s,c=t4A(e,h4A),u=c.value!==void 0,g=d.useRef(null),h=o4A(g,t),B=d.useRef(0),E=d.useRef(),C=function(){var v=g.current,y=r&&E.current?E.current:f4A(v);if(y){E.current=y;var x=a4A(y,v.value||v.placeholder||"x",o,n),b=x[0],k=x[1];B.current!==b&&(B.current=b,v.style.setProperty("height",b+"px","important"),l(b,{rowHeight:k}))}},m=function(v){u||C(),a(v)};return d.useLayoutEffect(C),g4A(C),d4A(C),d.createElement("textarea",le({},c,{onChange:m,ref:h}))},B4A=d.forwardRef(p4A);const vi={themeVars:`'{"color-text-FormItemLabel": "var(--xmlui-color-text-FormItemLabel)", "font-family-FormItemLabel": "var(--xmlui-font-family-FormItemLabel)", "font-size-FormItemLabel": "var(--xmlui-font-size-FormItemLabel)", "font-weight-FormItemLabel": "var(--xmlui-font-weight-FormItemLabel)", "font-style-FormItemLabel": "var(--xmlui-font-style-FormItemLabel)", "transform-text-FormItemLabel": "var(--xmlui-transform-text-FormItemLabel)", "color-text-FormItemLabel-required": "var(--xmlui-color-text-FormItemLabel-required)", "font-size-FormItemLabel-required": "var(--xmlui-font-size-FormItemLabel-required)", "font-weight-FormItemLabel-required": "var(--xmlui-font-weight-FormItemLabel-required)", "font-style-FormItemLabel-required": "var(--xmlui-font-style-FormItemLabel-required)", "transform-text-FormItemLabel-required": "var(--xmlui-transform-text-FormItemLabel-required)", "color-text-FormItemLabel-requiredMark": "var(--xmlui-color-text-FormItemLabel-requiredMark)"}'`,container:"_container_knwya_13",top:"_top_knwya_20",end:"_end_knwya_25",bottom:"_bottom_knwya_31",start:"_start_knwya_36",shrinkToLabel:"_shrinkToLabel_knwya_42",inputLabel:"_inputLabel_knwya_45",disabled:"_disabled_knwya_58",labelBreak:"_labelBreak_knwya_62",required:"_required_knwya_66",requiredMark:"_requiredMark_knwya_73"},Wk={themeVars:`'{"size-Spinner": "var(--xmlui-size-Spinner)", "thickness-Spinner": "var(--xmlui-thickness-Spinner)", "color-border-Spinner": "var(--xmlui-color-border-Spinner)"}'`,"lds-ring":"_lds-ring_xu4p3_13",fullScreenSpinnerWrapper:"_fullScreenSpinnerWrapper_xu4p3_54"},iw=d.forwardRef(function({delay:e=400,fullScreen:t=!1,style:r},n){const[o,i]=d.useState(e===0);d.useEffect(()=>{const s=setTimeout(()=>{i(!0)},e);return()=>{clearTimeout(s)}},[e]);const a=Q.jsx(Q.Fragment,{children:Q.jsxs("div",{className:Wk["lds-ring"],style:r,ref:n,children:[Q.jsx("div",{}),Q.jsx("div",{}),Q.jsx("div",{}),Q.jsx("div",{})]})});return o?t?Q.jsx("div",{className:Wk.fullScreenSpinnerWrapper,children:a}):a:null}),E4A=/^[0-9]+$/,rs=d.forwardRef(function({id:e,labelPosition:t="top",style:r,label:n,labelBreak:o=!0,labelWidth:i,enabled:a=!0,required:s=!1,children:l,validationInProgress:c=!1,shrinkToLabel:u=!1,onFocus:g,onBlur:h,labelStyle:B,validationResult:E},C){const m=d.useId(),I=e||m;return n===void 0?Q.jsx(oc,{style:r,id:I,onFocus:g,onBlur:h,ref:C,children:l}):Q.jsxs("div",{style:r,ref:C,children:[Q.jsxs("div",{className:KA(vi.container,{[vi.top]:t==="top",[vi.bottom]:t==="bottom",[vi.start]:t==="start",[vi.end]:t==="end",[vi.shrinkToLabel]:u}),onFocus:g,onBlur:h,children:[n&&Q.jsxs("label",{htmlFor:I,onClick:()=>document.getElementById(I).focus(),style:{...B,width:i&&E4A.test(i)?`${i}px`:i,flexShrink:i!==void 0?0:void 0},className:KA(vi.inputLabel,{[vi.required]:s,[vi.disabled]:!a,[vi.labelBreak]:o}),children:[n," ",s&&Q.jsx("span",{className:vi.requiredMark,children:"*"}),c&&Q.jsx(iw,{style:{height:"1em",width:"1em",marginLeft:"1em",alignSelf:"center"}})]}),d.Children.only(Q.jsx(oc,{id:I,children:l}))]}),E]})}),C4A={horizontal:ts.resizeHorizontal,vertical:ts.resizeVertical,both:ts.resizeBoth},X7=d.forwardRef(function({id:e,value:t="",placeholder:r="",required:n=!1,readOnly:o=!1,allowCopy:i=!0,updateState:a=ve,validationStatus:s,autoFocus:l=!1,initialValue:c="",resize:u,onDidChange:g=ve,onFocus:h=ve,onBlur:B=ve,controlled:E=!0,enterSubmits:C=!0,escResets:m,style:I,registerComponentApi:v,autoSize:y,maxRows:x,minRows:b,maxLength:k,rows:M=2,enabled:N=!0,label:F,labelPosition:L,labelWidth:T,labelBreak:P},G){const H=d.useRef(null),[z,q]=d.useState(null),[O,Y]=_A.useState(!1),S=d.useCallback(aA=>{a({value:aA}),g(aA)},[g,a]),J=d.useCallback(aA=>{S(aA.target.value)},[S]);d.useEffect(()=>{a({value:c},{initial:!0})},[c,a]);const $=aA=>i?!0:(aA.preventDefault(),!1),U=()=>{Y(!0),h==null||h()},AA=()=>{Y(!1),B==null||B()},Z=d.useCallback(()=>{setTimeout(()=>{var aA;(aA=H.current)==null||aA.focus()},0)},[]),tA=d.useCallback(aA=>{const rA=H==null?void 0:H.current;if(rA&&aA){const X=rA.selectionStart,cA=rA.value;J({target:{value:cA.substring(0,X)+aA+cA.substring(X)}}),q(X+aA.length)}},[H,J]),nA=ze(aA=>{S(aA)});d.useEffect(()=>{if(z){const aA=H==null?void 0:H.current;aA&&(aA.setSelectionRange(z,z),q(null))}},[t,z,H]),d.useEffect(()=>{v==null||v({focus:Z,insert:tA,setValue:nA})},[Z,tA,v,nA]);const sA=d.useCallback(aA=>{var rA,X;aA.currentTarget.form&&C&&aA.key.toLowerCase()==="enter"&&!aA.shiftKey&&(aA.preventDefault(),(rA=aA.currentTarget.form)==null||rA.requestSubmit()),aA.currentTarget.form&&m&&aA.key.toLowerCase()==="escape"&&!aA.shiftKey&&(aA.preventDefault(),(X=aA.currentTarget.form)==null||X.reset())},[C,m]),iA={className:KA(ts.textarea,u?C4A[u]:"",{[ts.focused]:O,[ts.disabled]:!N,[ts.error]:s==="error",[ts.warning]:s==="warning",[ts.valid]:s==="valid"}),ref:H,style:I,value:E?t||"":void 0,disabled:!N,autoFocus:l,name:e,placeholder:r,required:n,maxLength:k,"aria-multiline":!0,"aria-readonly":o,readOnly:o,onChange:J,onCopy:$,onFocus:U,onBlur:AA,onKeyDown:sA,autoComplete:"off"};return u==="both"||u==="horizontal"||u==="vertical"?Q.jsx(rs,{ref:G,labelPosition:L,label:F,labelWidth:T,labelBreak:P,required:n,enabled:N,onFocus:h,onBlur:B,style:I,children:Q.jsx(e4A,{...iA,style:I,maxRows:x,minRows:b,rows:M})}):y||!YF(x)||!YF(b)?Q.jsx(rs,{ref:G,labelPosition:L,label:F,labelWidth:T,labelBreak:P,required:n,enabled:N,onFocus:h,onBlur:B,style:I,children:Q.jsx(B4A,{...iA,style:I,maxRows:x,minRows:b,rows:M})}):Q.jsx(rs,{ref:G,labelPosition:L,label:F,labelWidth:T,labelBreak:P,required:n,enabled:N,onFocus:h,onBlur:B,style:I,children:Q.jsx("textarea",{...iA,rows:M})})}),Di="TextArea",m4A=[{value:"undefined",description:"No resizing"},{value:"horizontal",description:"Can only resize horizontally"},{value:"vertical",description:"Can only resize vertically"},{value:"both",description:"Can resize in both dimensions"}],Q4A=kA({status:"experimental",description:`\`${Di}\` is a component that provides a multiline text input area.`,props:{enterSubmits:j("This optional boolean property indicates whether pressing the `Enter` key on the keyboard prompts the parent `Form` component to submit. The default value is is `true`."),escResets:j(`This boolean property indicates whether the ${Di} contents should be reset when pressing the ESC key.`),maxRows:j(`This optional number property maximizes the number of lines the \`${Di}\` can grow to.`),minRows:j(`This optional number property indicates the minimum number of lines the \`${Di}\` has and specifies its size accordingly.`),rows:j("Specifies the number of lines or rows (and thus, its size) the component has."),autoSize:j(`If set to \`true\`, this boolean property enables the \`${Di}\` to resize automatically based on the number of lines inside it.`,null,"boolean",!1),placeholder:Af(),initialValue:na(),label:pn(),labelPosition:Ws("top"),labelWidth:lc(Di),labelBreak:cc(Di),maxLength:NB(),autoFocus:Fo(),required:As(),readOnly:Xa(),enabled:Yn(),validationStatus:Za(),resize:j("This optional property specifies in which dimensions can the `TextArea` be resized by the user.",m4A)},events:{gotFocus:To(Di),lostFocus:Lo(Di),didChange:lo(Di)},apis:{focus:es(Di),value:j("You can query the component's value. If no value is set, it will retrieve `undefined`."),setValue:Vs()},themeVars:ne(ts.themeVars)}),w4A=RA(Di,Q4A,({node:A,extractValue:e,state:t,updateState:r,layoutCss:n,registerComponentApi:o,lookupEventHandler:i})=>{const a=e(A.props.initialValue);return Q.jsx(X7,{value:t==null?void 0:t.value,initialValue:a,updateState:r,autoFocus:e.asOptionalBoolean(A.props.autoFocus),enabled:e.asOptionalBoolean(A.props.enabled),placeholder:e(A.props.placeholder),onDidChange:i("didChange"),onFocus:i("gotFocus"),onBlur:i("lostFocus"),readOnly:e.asOptionalBoolean(A.props.readOnly),resize:A.props.resize,enterSubmits:e.asOptionalBoolean(A.props.enterSubmits),escResets:e.asOptionalBoolean(A.props.escResets),style:n,registerComponentApi:o,maxRows:e.asOptionalNumber(A.props.maxRows),minRows:e.asOptionalNumber(A.props.minRows),maxLength:e.asOptionalNumber(A.props.maxLength),rows:e.asOptionalNumber(A.props.rows),autoSize:e.asOptionalBoolean(A.props.autoSize),validationStatus:e(A.props.validationStatus),label:e(A.props.label),labelPosition:e(A.props.labelPosition),labelWidth:e(A.props.labelWidth),labelBreak:e.asOptionalBoolean(A.props.labelBreak),required:e.asOptionalBoolean(A.props.required)},`${A.uid}-${a}`)}),oa={themeVars:`'{"radius-NavLink": "var(--xmlui-radius-NavLink)", "color-bg-NavLink": "var(--xmlui-color-bg-NavLink)", "color-bg-NavLink--hover": "var(--xmlui-color-bg-NavLink--hover)", "color-bg-NavLink--hover--active": "var(--xmlui-color-bg-NavLink--hover--active)", "color-bg-NavLink--active": "var(--xmlui-color-bg-NavLink--active)", "color-bg-NavLink--pressed": "var(--xmlui-color-bg-NavLink--pressed)", "color-bg-NavLink--pressed--active": "var(--xmlui-color-bg-NavLink--pressed--active)", "padding-horizontal-NavLink": "var(--xmlui-padding-horizontal-NavLink)", "padding-vertical-NavLink": "var(--xmlui-padding-vertical-NavLink)", "font-size-NavLink": "var(--xmlui-font-size-NavLink)", "color-text-NavLink": "var(--xmlui-color-text-NavLink)", "color-text-NavLink--hover": "var(--xmlui-color-text-NavLink--hover)", "color-text-NavLink--active": "var(--xmlui-color-text-NavLink--active)", "color-text-NavLink--hover--active": "var(--xmlui-color-text-NavLink--hover--active)", "color-text-NavLink--pressed": "var(--xmlui-color-text-NavLink--pressed)", "color-text-NavLink--pressed--active": "var(--xmlui-color-text-NavLink--pressed--active)", "color-icon-NavLink": "var(--xmlui-color-icon-NavLink)", "font-family-NavLink": "var(--xmlui-font-family-NavLink)", "font-weight-NavLink": "var(--xmlui-font-weight-NavLink)", "font-weight-NavLink--pressed": "var(--xmlui-font-weight-NavLink--pressed)", "font-weight-NavLink--active": "var(--xmlui-font-weight-NavLink--active)", "radius-indicator-NavLink": "var(--xmlui-radius-indicator-NavLink)", "thickness-indicator-NavLink": "var(--xmlui-thickness-indicator-NavLink)", "color-indicator-NavLink": "var(--xmlui-color-indicator-NavLink)", "color-indicator-NavLink--hover": "var(--xmlui-color-indicator-NavLink--hover)", "color-indicator-NavLink--active": "var(--xmlui-color-indicator-NavLink--active)", "color-indicator-NavLink--pressed": "var(--xmlui-color-indicator-NavLink--pressed)", "thickness-outline-NavLink--focus": "var(--xmlui-thickness-outline-NavLink--focus)", "color-outline-NavLink--focus": "var(--xmlui-color-outline-NavLink--focus)", "style-outline-NavLink--focus": "var(--xmlui-style-outline-NavLink--focus)", "offset-outline-NavLink--focus": "var(--xmlui-offset-outline-NavLink--focus)"}'`,content:"_content_qpkxv_13",base:"_base_qpkxv_13",icon:"_icon_qpkxv_33",includeHoverIndicator:"_includeHoverIndicator_qpkxv_39",displayActive:"_displayActive_qpkxv_49",navItemActive:"_navItemActive_qpkxv_86",disabled:"_disabled_qpkxv_121",vertical:"_vertical_qpkxv_125",indented:"_indented_qpkxv_134"},I4A=[{value:"vertical",description:"This layout puts the navigation bar on the left side and displays its items vertically. The main content is aligned to the right (including the header and the footer), and its content is a single scroll container; every part of it moves as you scroll the page. This layout does not display the logo in the app header."},{value:"vertical-sticky",description:"Similar to `vertical`, the header and the navigation bar dock to the top of the main content's viewport, while the footer sticks to the bottom. This layout does not display the logo in the app header."},{value:"vertical-full-header",description:"Similar to `vertical-sticky`. However, the header and the navigation bar dock to the top of the app's window, while the footer sticks to the bottom."},{value:"condensed",description:"Similar to `horizontal`. However, the header and the navigation bar are in a single header block. (default)"},{value:"condensed-sticky",description:"However, the header and the navigation bar are in a single header block."},{value:"horizontal",description:"This layout stacks the layout sections in a single column in this order: header, navigation bar, main content, and footer. The application is a single scroll container; every part moves as you scroll the page."},{value:"horizontal-sticky",description:"Similar to `horizontal`, the header and the navigation bar dock to the top of the viewport, while the footer sticks to the bottom."}],Z7=d.createContext(null);function Id(){return d.useContext(Z7)}const ye={themeVars:`'{"width-navPanel-App": "var(--xmlui-width-navPanel-App)", "shadow-header-App": "var(--xmlui-shadow-header-App)", "shadow-pages-App": "var(--xmlui-shadow-pages-App)", "max-content-width-App": "var(--xmlui-max-content-width-App)", "color-bg-AppHeader": "var(--xmlui-color-bg-AppHeader)", "border-bottom-AppHeader": "var(--xmlui-border-bottom-AppHeader)"}'`,wrapper:"_wrapper_1e0pi_13",vertical:"_vertical_1e0pi_23",contentWrapper:"_contentWrapper_1e0pi_27",navPanelWrapper:"_navPanelWrapper_1e0pi_32",PagesWrapper:"_PagesWrapper_1e0pi_36",footerWrapper:"_footerWrapper_1e0pi_40",sticky:"_sticky_1e0pi_43",horizontal:"_horizontal_1e0pi_47",verticalFullHeader:"_verticalFullHeader_1e0pi_68",PagesWrapperInner:"_PagesWrapperInner_1e0pi_85",scrollWholePage:"_scrollWholePage_1e0pi_97",headerWrapper:"_headerWrapper_1e0pi_100",content:"_content_1e0pi_27",noScrollbarGutters:"_noScrollbarGutters_1e0pi_138"},ef={overlay:"_overlay_p470r_39","blur-in":"_blur-in_p470r_1","blur-out":"_blur-out_p470r_1",sheetContent:"_sheetContent_p470r_55","slide-in-from-left":"_slide-in-from-left_p470r_1","slide-out-to-left":"_slide-out-to-left_p470r_1",top:"_top_p470r_70",bottom:"_bottom_p470r_76",left:"_left_p470r_82",right:"_right_p470r_91",close:"_close_p470r_101"},AG=d.forwardRef((A,e)=>d.createElement(kr.span,le({},A,{ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...A.style}}))),v4A=AG,D4A=XH,y4A=ZH,eG=d.forwardRef(({className:A,...e},t)=>Q.jsx(Ok,{className:KA(ef.overlay,A),...e,ref:t}));eG.displayName=Ok.displayName;const tG=d.forwardRef(({side:A="left",className:e,children:t,...r},n)=>{const{root:o}=nr();return Q.jsxs(y4A,{container:o,children:[Q.jsx(eG,{}),Q.jsxs(Hk,{forceMount:!0,ref:n,className:KA(ef.sheetContent,{[ef.top]:A==="top",[ef.bottom]:A==="bottom",[ef.left]:A==="left",[ef.right]:A==="right"},e),...r,children:[t,Q.jsxs(e7,{className:ef.close,children:[Q.jsx(be,{name:"close"}),Q.jsx(AG,{children:"Close"})]})]})]})});tG.displayName=Hk.displayName;const b4A=d.forwardRef(({className:A,...e},t)=>Q.jsx(Gk,{ref:t,className:KA("text-lg font-semibold text-foreground",A),...e}));b4A.displayName=Gk.displayName;const x4A=d.forwardRef(({className:A,...e},t)=>Q.jsx(A7,{ref:t,className:KA("text-sm text-muted-foreground",A),...e}));x4A.displayName=A7.displayName;const ns=_A.createContext(null),Xs={themeVars:`'{"padding-horizontal-AppHeader": "var(--xmlui-padding-horizontal-AppHeader)", "padding-vertical-AppHeader": "var(--xmlui-padding-vertical-AppHeader)", "padding-top-AppHeader": "var(--xmlui-padding-top-AppHeader)", "padding-bottom-AppHeader": "var(--xmlui-padding-bottom-AppHeader)", "padding-left-AppHeader": "var(--xmlui-padding-left-AppHeader)", "padding-right-AppHeader": "var(--xmlui-padding-right-AppHeader)", "padding-AppHeader": "var(--xmlui-padding-AppHeader)", "padding-horizontal-logo-AppHeader": "var(--xmlui-padding-horizontal-logo-AppHeader)", "padding-vertical-logo-AppHeader": "var(--xmlui-padding-vertical-logo-AppHeader)", "padding-top-logo-AppHeader": "var(--xmlui-padding-top-logo-AppHeader)", "padding-bottom-logo-AppHeader": "var(--xmlui-padding-bottom-logo-AppHeader)", "padding-left-logo-AppHeader": "var(--xmlui-padding-left-logo-AppHeader)", "padding-right-logo-AppHeader": "var(--xmlui-padding-right-logo-AppHeader)", "padding-logo-AppHeader": "var(--xmlui-padding-logo-AppHeader)", "color-border-horizontal-AppHeader": "var(--xmlui-color-border-horizontal-AppHeader)", "thickness-border-horizontal-AppHeader": "var(--xmlui-thickness-border-horizontal-AppHeader)", "style-border-horizontal-AppHeader": "var(--xmlui-style-border-horizontal-AppHeader)", "color-border-vertical-AppHeader": "var(--xmlui-color-border-vertical-AppHeader)", "thickness-border-vertical-AppHeader": "var(--xmlui-thickness-border-vertical-AppHeader)", "style-border-vertical-AppHeader": "var(--xmlui-style-border-vertical-AppHeader)", "color-border-left-AppHeader": "var(--xmlui-color-border-left-AppHeader)", "thickness-border-left-AppHeader": "var(--xmlui-thickness-border-left-AppHeader)", "style-border-left-AppHeader": "var(--xmlui-style-border-left-AppHeader)", "color-border-right-AppHeader": "var(--xmlui-color-border-right-AppHeader)", "thickness-border-right-AppHeader": "var(--xmlui-thickness-border-right-AppHeader)", "style-border-right-AppHeader": "var(--xmlui-style-border-right-AppHeader)", "color-border-top-AppHeader": "var(--xmlui-color-border-top-AppHeader)", "thickness-border-top-AppHeader": "var(--xmlui-thickness-border-top-AppHeader)", "style-border-top-AppHeader": "var(--xmlui-style-border-top-AppHeader)", "color-border-bottom-AppHeader": "var(--xmlui-color-border-bottom-AppHeader)", "thickness-border-bottom-AppHeader": "var(--xmlui-thickness-border-bottom-AppHeader)", "style-border-bottom-AppHeader": "var(--xmlui-style-border-bottom-AppHeader)", "color-border-AppHeader": "var(--xmlui-color-border-AppHeader)", "thickness-border-AppHeader": "var(--xmlui-thickness-border-AppHeader)", "style-border-AppHeader": "var(--xmlui-style-border-AppHeader)", "radius-AppHeader": "var(--xmlui-radius-AppHeader)", "width-logo-AppHeader": "var(--xmlui-width-logo-AppHeader)", "align-content-AppHeader": "var(--xmlui-align-content-AppHeader)", "height-AppHeader": "var(--xmlui-height-AppHeader)", "color-bg-AppHeader": "var(--xmlui-color-bg-AppHeader)", "max-content-width-AppHeader": "var(--xmlui-max-content-width-AppHeader)"}'`,header:"_header_1h7yt_13",headerInner:"_headerInner_1h7yt_36",full:"_full_1h7yt_51",childrenWrapper:"_childrenWrapper_1h7yt_55",logoAndTitle:"_logoAndTitle_1h7yt_67",logoContainer:"_logoContainer_1h7yt_80",customLogoContainer:"_customLogoContainer_1h7yt_89",rightItems:"_rightItems_1h7yt_98",appHub:"_appHub_1h7yt_110"},Vk={themeVars:'"[]"',img:"_img_dk2s3_13",clickable:"_clickable_dk2s3_19"},Xk=d.forwardRef(function({src:e,alt:t,fit:r="contain",style:n,onClick:o,aspectRatio:i,lazyLoad:a},s){return Q.jsx("img",{src:e,ref:s,alt:t,loading:a?"lazy":"eager",className:KA(Vk.img,{[Vk.clickable]:!!o}),style:{objectFit:r,boxShadow:"none",...n,aspectRatio:i},onClick:o})}),aw=d.forwardRef(function({style:e},t){const r=rG();return r?Q.jsx(Xk,{ref:t,src:r,alt:"Logo",style:{width:"auto",boxShadow:"none",...e}}):null});function rG(){const{logo:A,logoLight:e,logoDark:t}=Id()||{},r={light:e,dark:t},{activeThemeTone:n}=nr(),o=G2("resource:logo")||A;return G2(`resource:logo-${n}`)||r[n]||o}const k4A=({children:A,profileMenu:e,style:t=qe,logoContent:r,className:n,canRestrictContentWidth:o,navPanelVisible:i=!0,toggleDrawer:a,showLogo:s,hasRegisteredNavPanel:l,title:c,titleContent:u})=>{const{mediaSize:g}=Ii(),h=rG(),B=g.sizeIndex<2?null:!u&&c?Q.jsx(TB,{to:"/",displayActive:!1,style:{paddingLeft:0},children:c}):u;return Q.jsx("div",{className:KA(Xs.header,n),style:t,children:Q.jsxs("div",{className:KA(Xs.headerInner,{[Xs.full]:!o}),children:[!i&&l&&Q.jsx(or,{onClick:a,icon:Q.jsx(be,{name:"hamburger"}),variant:"ghost",style:{color:"inherit",flexShrink:0}}),Q.jsx("div",{className:Xs.logoAndTitle,children:(s||!i)&&(r?Q.jsxs(Q.Fragment,{children:[Q.jsx("div",{className:Xs.customLogoContainer,children:r}),B]}):Q.jsxs(Q.Fragment,{children:[!!h&&Q.jsx("div",{className:Xs.logoContainer,children:Q.jsx(TB,{to:"/",displayActive:!1,style:{padding:0,height:"100%"},children:Q.jsx(aw,{})})}),B]}))}),Q.jsx("div",{className:Xs.childrenWrapper,children:A}),e&&Q.jsx("div",{className:Xs.rightItems,children:e})]})})};function nG({children:A,logoContent:e,profileMenu:t,style:r,className:n,title:o,titleContent:i,showLogo:a=!0,renderChild:s}){const l=Id(),{navPanelVisible:c,toggleDrawer:u,layout:g,hasRegisteredNavPanel:h,navPanelDef:B,logoContentDef:E}=l||{},C=g!=="vertical"&&g!=="vertical-sticky"&&a,m=g!=="vertical-full-header";return Q.jsxs(k4A,{hasRegisteredNavPanel:h,navPanelVisible:c,toggleDrawer:u,canRestrictContentWidth:m,showLogo:C,logoContent:e||s(E),profileMenu:t,style:r,className:n,title:o,titleContent:i,children:[(g==null?void 0:g.startsWith("condensed"))&&c&&Q.jsx("div",{style:{minWidth:0},children:s(B)}),A]})}function _4A(A){if(typeof A=="number")return A+"px";const e=A.trim();if(e.startsWith("var("))return e;const t=parseFloat(e),r=t.toString(),n=e.replace(r,"");return Number.isNaN(t)?"0px":n===""?r+"px":e}function M4A(A,e){const t=getComputedStyle(document.getElementById("_ui-engine-theme-root")).getPropertyValue(Vl(A));return e==="hex"?Pu(t).hex().toString():Pu(t).toString()}function oG(A){const e=A&&A>0?A:0;return e>1?{WebkitLineClamp:e,lineClamp:e,display:"-webkit-box",WebkitBoxOrient:"vertical",boxOrient:"vertical",whiteSpace:"initial"}:qe}function iG(A){if(typeof A=="number")return A+"px";if(typeof A=="string"&&/^\d+$/.test(A.trim())){const e=parseInt(A,10);if(!isNaN(e))return e+"px"}return A==null?void 0:A.toString()}const S4A=()=>{const A=d.useRef(!1),e=d.useRef(0);if(d.useEffect(()=>{function n(){A.current=!1}return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[]),A.current)return e.current;if(typeof document>"u")return 0;const t=document.createElement("div");t.style.visibility="hidden",t.style.overflow="scroll",document.body.appendChild(t);const r=t.offsetWidth-t.clientWidth;return t.parentNode.removeChild(t),A.current=!0,e.current=r,window.devicePixelRatio!==Math.round(window.devicePixelRatio)&&(e.current=r-.5),e.current};function N4A({children:A,style:e,layout:t,loggedInUser:r,scrollWholePage:n,noScrollbarGutters:o=!1,onReady:i=$l,header:a,navPanel:s,footer:l,navPanelDef:c,logoContentDef:u,logo:g,logoDark:h,logoLight:B,defaultTone:E,defaultTheme:C,renderChild:m,name:I}){const{getThemeVar:v}=nr(),{setActiveThemeTone:y,setActiveThemeId:x}=cB(),b=d.useRef(!1),k=t||v("layout-App")||"condensed-sticky",M=k==null?void 0:k.trim().replace(/[\u2013\u2014\u2011]/g,"-"),{setLoggedInUser:N,mediaSize:F}=Ii(),L=a!==void 0,T=c!==void 0,P=d.useMemo(()=>{const{padding:EA,paddingLeft:IA,paddingRight:DA,paddingTop:SA,paddingBottom:JA,...jA}=e;return{...jA,"--page-padding-left":EA||IA,"--page-padding-right":EA||DA,"--page-padding-top":EA||SA,"--page-padding-bottom":EA||JA}},[e]);d.useEffect(()=>{N(r)},[r,N]),d.useEffect(()=>{if(!b.current)return b.current=!0,(E==="dark"||E==="light")&&y(E),C&&x(C),()=>{b.current=!1}},[E,C,y,x]),d.useEffect(()=>{i()},[i]);const G=F.largeScreen||!L&&M!=="condensed"&&M!=="condensed-sticky",H=d.useRef(null),z=d.useRef(null),q=n?H:z,[O,Y]=d.useState(0),[S,J]=d.useState(0),$=S4A(),U=d.useRef(),AA=d.useCallback(EA=>{U.current=EA},[]),Z=d.useRef(),tA=d.useCallback(EA=>{Z.current=EA},[]);aQ(U,d.useCallback(EA=>{var IA,DA;Y((DA=(IA=EA==null?void 0:EA[0])==null?void 0:IA.contentRect)==null?void 0:DA.height)},[])),aQ(Z,d.useCallback(EA=>{var IA,DA;J((DA=(IA=EA==null?void 0:EA[0])==null?void 0:IA.contentRect)==null?void 0:DA.height)},[]));const nA=d.useMemo(()=>({"--header-height":n?S+"px":0,"--footer-height":n?O+"px":0,"--scrollbar-width":$+"px"}),[O,S,n,$]),[sA,iA]=d.useState(!1),aA=Ji(),rA=d.useCallback(()=>{iA(EA=>!EA)},[]);d.useLayoutEffect(()=>{var EA;(EA=H.current)==null||EA.scrollTo(0,0)},[aA.pathname]);const X=d.useMemo(()=>({hasRegisteredNavPanel:T,hasRegisteredHeader:L,navPanelVisible:G,drawerVisible:sA,layout:M,logo:g,logoDark:h,logoLight:B,showDrawer:()=>{iA(!0)},hideDrawer:()=>{iA(!1)},toggleDrawer:rA,navPanelDef:c,logoContentDef:u}),[T,L,G,sA,M,g,h,B,rA,c,u]);d.useEffect(()=>{G&&iA(!1)},[G]),d.useEffect(()=>{iA(!1)},[aA,M]);const cA=[ye.wrapper,{[ye.scrollWholePage]:n,[ye.noScrollbarGutters]:o,"media-large":F.largeScreen,"media-small":F.smallScreen,"media-desktop":F.desktop,"media-phone":F.phone,"media-tablet":F.tablet}];let hA;switch(M){case"vertical":hA=Q.jsxs("div",{className:KA(cA,ye.vertical),style:nA,children:[G&&Q.jsx("div",{className:KA(ye.navPanelWrapper),children:s}),Q.jsxs("div",{className:ye.contentWrapper,ref:H,children:[Q.jsx("header",{ref:tA,className:KA(ye.headerWrapper),children:a}),Q.jsx("div",{className:ye.PagesWrapper,ref:z,children:Q.jsx(ns.Provider,{value:q,children:Q.jsx("div",{className:ye.PagesWrapperInner,style:P,children:A})})}),Q.jsx("div",{className:ye.footerWrapper,ref:AA,children:l})]})]});break;case"vertical-sticky":hA=Q.jsxs("div",{className:KA(cA,ye.vertical,ye.sticky),style:nA,children:[G&&Q.jsx("div",{className:KA(ye.navPanelWrapper),children:s}),Q.jsxs("div",{className:ye.contentWrapper,ref:H,children:[Q.jsx("header",{ref:tA,className:KA(ye.headerWrapper,ye.sticky),children:a}),Q.jsx("div",{className:ye.PagesWrapper,ref:z,children:Q.jsx(ns.Provider,{value:q,children:Q.jsx("div",{className:ye.PagesWrapperInner,style:P,children:A})})}),Q.jsx("div",{className:ye.footerWrapper,ref:AA,children:l})]})]});break;case"vertical-full-header":hA=Q.jsxs("div",{className:KA(cA,ye.verticalFullHeader),style:nA,ref:H,children:[Q.jsx("header",{className:KA(ye.headerWrapper,ye.sticky),ref:tA,children:a}),Q.jsxs("div",{className:ye.content,children:[G&&Q.jsx("aside",{className:ye.navPanelWrapper,children:s}),Q.jsx("main",{className:ye.contentWrapper,children:Q.jsx("div",{className:ye.PagesWrapper,ref:z,children:Q.jsx(ns.Provider,{value:q,children:Q.jsx("div",{className:ye.PagesWrapperInner,style:P,children:A})})})})]}),Q.jsx("div",{className:ye.footerWrapper,ref:AA,children:l})]});break;case"condensed":case"condensed-sticky":hA=Q.jsxs("div",{className:KA(cA,ye.horizontal,{[ye.sticky]:M==="condensed-sticky"}),style:nA,ref:H,children:[Q.jsxs("header",{className:KA("app-layout-condensed",ye.headerWrapper,{[ye.sticky]:M==="condensed-sticky"}),ref:tA,children:[!L&&T&&Q.jsx(nG,{renderChild:m}),a]}),Q.jsx("div",{className:ye.PagesWrapper,ref:z,children:Q.jsx(ns.Provider,{value:q,children:Q.jsx("div",{className:ye.PagesWrapperInner,style:P,children:A})})}),Q.jsx("div",{className:ye.footerWrapper,ref:AA,children:l})]});break;case"horizontal":{hA=Q.jsxs("div",{className:KA(cA,ye.horizontal),style:nA,ref:H,children:[Q.jsxs("header",{className:KA(ye.headerWrapper),ref:tA,children:[a,G&&Q.jsx("div",{className:ye.navPanelWrapper,children:s})]}),Q.jsx("div",{className:ye.PagesWrapper,ref:z,children:Q.jsx(ns.Provider,{value:q,children:Q.jsx("div",{className:ye.PagesWrapperInner,style:P,children:A})})}),Q.jsx("div",{className:ye.footerWrapper,ref:AA,children:l})]});break}case"horizontal-sticky":hA=Q.jsxs("div",{className:KA(cA,ye.horizontal,ye.sticky),style:nA,ref:H,children:[Q.jsxs("header",{className:KA(ye.headerWrapper,ye.sticky),ref:tA,children:[a,G&&Q.jsx("div",{className:ye.navPanelWrapper,children:s})]}),Q.jsx("div",{className:ye.PagesWrapper,ref:z,children:Q.jsx(ns.Provider,{value:q,children:Q.jsx("div",{className:ye.PagesWrapperInner,style:P,children:A})})}),Q.jsx("div",{className:ye.footerWrapper,ref:AA,children:l})]});break;default:throw new Error("layout type not supported: "+M)}return Q.jsxs(Q.Fragment,{children:[I!==void 0&&Q.jsx(Nu,{defaultTitle:I,titleTemplate:`%s | ${I}`}),Q.jsxs(Z7.Provider,{value:X,children:[Q.jsx(D4A,{open:sA,onOpenChange:EA=>iA(EA),children:Q.jsx(tG,{side:"left",children:m(c,{inDrawer:!0})})}),hA]})]})}function aG(A){switch(A){case"vertical":case"vertical-sticky":case"vertical-full-header":return"vertical";default:return"horizontal"}}const os={themeVars:`'{"color-border-horizontal-NavPanel": "var(--xmlui-color-border-horizontal-NavPanel)", "thickness-border-horizontal-NavPanel": "var(--xmlui-thickness-border-horizontal-NavPanel)", "style-border-horizontal-NavPanel": "var(--xmlui-style-border-horizontal-NavPanel)", "color-border-vertical-NavPanel": "var(--xmlui-color-border-vertical-NavPanel)", "thickness-border-vertical-NavPanel": "var(--xmlui-thickness-border-vertical-NavPanel)", "style-border-vertical-NavPanel": "var(--xmlui-style-border-vertical-NavPanel)", "color-border-left-NavPanel": "var(--xmlui-color-border-left-NavPanel)", "thickness-border-left-NavPanel": "var(--xmlui-thickness-border-left-NavPanel)", "style-border-left-NavPanel": "var(--xmlui-style-border-left-NavPanel)", "color-border-right-NavPanel": "var(--xmlui-color-border-right-NavPanel)", "thickness-border-right-NavPanel": "var(--xmlui-thickness-border-right-NavPanel)", "style-border-right-NavPanel": "var(--xmlui-style-border-right-NavPanel)", "color-border-top-NavPanel": "var(--xmlui-color-border-top-NavPanel)", "thickness-border-top-NavPanel": "var(--xmlui-thickness-border-top-NavPanel)", "style-border-top-NavPanel": "var(--xmlui-style-border-top-NavPanel)", "color-border-bottom-NavPanel": "var(--xmlui-color-border-bottom-NavPanel)", "thickness-border-bottom-NavPanel": "var(--xmlui-thickness-border-bottom-NavPanel)", "style-border-bottom-NavPanel": "var(--xmlui-style-border-bottom-NavPanel)", "color-border-NavPanel": "var(--xmlui-color-border-NavPanel)", "thickness-border-NavPanel": "var(--xmlui-thickness-border-NavPanel)", "style-border-NavPanel": "var(--xmlui-style-border-NavPanel)", "radius-NavPanel": "var(--xmlui-radius-NavPanel)", "color-bg-NavPanel": "var(--xmlui-color-bg-NavPanel)", "shadow-NavPanel": "var(--xmlui-shadow-NavPanel)", "height-AppHeader": "var(--xmlui-height-AppHeader)", "max-content-width-App": "var(--xmlui-max-content-width-App)", "padding-horizontal-NavPanel": "var(--xmlui-padding-horizontal-NavPanel)", "padding-horizontal-logo-NavPanel": "var(--xmlui-padding-horizontal-logo-NavPanel)", "padding-vertical-logo-NavPanel": "var(--xmlui-padding-vertical-logo-NavPanel)", "margin-bottom-logo-NavPanel": "var(--xmlui-margin-bottom-logo-NavPanel)", "padding-vertical-AppHeader": "var(--xmlui-padding-vertical-AppHeader)", "align-content-AppHeader": "var(--xmlui-align-content-AppHeader)"}'`,wrapper:"_wrapper_dzy35_13",condensed:"_condensed_dzy35_40",horizontal:"_horizontal_dzy35_43",wrapperInner:"_wrapperInner_dzy35_48",logoWrapper:"_logoWrapper_dzy35_67",inDrawer:"_inDrawer_dzy35_77"},Zk=_A.createContext(null),R4A={inDrawer:!0};function P4A({logoContent:A,children:e,className:t,style:r}){const n=d.useRef(null);return Q.jsx(Zk.Provider,{value:R4A,children:Q.jsx("div",{ref:n,className:KA(os.wrapper,t),children:Q.jsxs(ns.Provider,{value:n,children:[Q.jsx("div",{className:KA(os.logoWrapper,os.inDrawer),children:A||Q.jsx(aw,{})}),Q.jsx("div",{className:os.wrapperInner,style:r,children:e})]})})})}const T4A=d.forwardRef(function({children:e,style:t,logoContent:r,className:n,inDrawer:o,renderChild:i},a){var E;const s=d.useRef(null),l=a?Zr(s,a):s,c=Id(),u=aG(c==null?void 0:c.layout)==="horizontal",g=(c==null?void 0:c.layout)==="vertical"||(c==null?void 0:c.layout)==="vertical-sticky",h=(E=c==null?void 0:c.layout)==null?void 0:E.startsWith("condensed"),B=r||i(c==null?void 0:c.logoContentDef);return o?Q.jsx(P4A,{style:t,logoContent:B,className:n,children:e}):Q.jsx("div",{ref:l,className:KA(os.wrapper,n,{[os.horizontal]:u,[os.condensed]:h}),children:Q.jsxs(ns.Provider,{value:s,children:[g&&Q.jsx("div",{className:KA(os.logoWrapper),children:B||Q.jsx(aw,{})}),Q.jsx("div",{className:os.wrapperInner,style:t,children:e})]})})});function sw(A){return!A||typeof A=="string"||typeof A=="number"?A:A.queryParams!==void 0?{...A,search:new URLSearchParams(JF(A.queryParams,$F)).toString()}:A}const TB=d.forwardRef(function({uid:e,children:t,disabled:r,to:n,sx:o={},displayActive:i=!0,vertical:a,style:s,onClick:l,icon:c,forceActive:u,...g},h){const B=Id(),E=d.useContext(Zk);let C=a;B&&C===void 0&&(C=aG(B.layout)==="vertical"||(E==null?void 0:E.inDrawer));const m=d.useMemo(()=>{if(n)return sw(n)},[n]),I={...o,...s},v=KA(oa.content,oa.base,{[oa.disabled]:r,[oa.vertical]:C,[oa.includeHoverIndicator]:i,[oa.navItemActive]:i&&u});let y;return r||!m?y=Q.jsxs("button",{...g,ref:h,onClick:l,className:v,style:I,disabled:r,children:[c,t]}):y=Q.jsxs(qb,{id:e,...g,ref:h,to:m,style:I,onClick:l,className:({isActive:x})=>KA(v,{[oa.displayActive]:i,[oa.navItemActive]:i&&(x||u)}),children:[c,t]}),y}),lw="NavLink",L4A=kA({description:`The \`${lw}\` component defines a navigation target (app navigation menu item) within the app; it is associated with a particular in-app navigation target (or an external link).`,props:{to:j("This property defines the URL of the link."),enabled:Yn(),active:j("This property indicates if the particular navigation is an active link. An active link has a particular visual appearance, provided its [`displayActive`](#displayactive) property is set to `true`."),target:j("This property specifies how to open the clicked link."),label:pn(),vertical:j(`This property sets how the active status is displayed on the \`${lw}\` component. If set to true, the indicator is displayed on the side which lends itself to a vertically aligned navigation menu.`),displayActive:j("This Boolean property indicates if the active state of a link should have a visual indication. Setting it to `false` removes the visual indication of an active link."),icon:j("This property allows you to add an icon (specify the icon's name) to the navigation link.")},events:{click:sc(lw)},themeVars:ne(oa.themeVars),defaultThemeVars:{"radius-NavLink":"$radius","color-bg-NavLink":"transparent","padding-horizontal-NavLink":"$space-4","padding-vertical-NavLink":"$space-2","font-size-NavLink":"$font-size-small","font-weight-NavLink":"$font-weight-normal","font-family-NavLink":"$font-family","color-text-NavLink":"$color-text-primary","font-weight-NavLink--pressed":"$font-weight-normal","thickness-indicator-NavLink":"$space-0_5","color-outline-NavLink--focus":"$color-outline--focus","thickness-outline-NavLink--focus":"$thickness-outline--focus","style-outline-NavLink--focus":"$style-outline--focus","offset-outline-NavLink--focus":"-1px","radius-indicator-NavLink":"$radius",light:{"color-icon-NavLink":"$color-surface-500","color-indicator-NavLink--active":"$color-primary-500","color-indicator-NavLink--pressed":"$color-primary-500","color-indicator-NavLink--hover":"$color-primary-600"},dark:{"color-indicator-NavLink--active":"$color-primary-500","color-indicator-NavLink--pressed":"$color-primary-500","color-indicator-NavLink--hover":"$color-primary-400"}}}),F4A=RA(lw,L4A,({node:A,extractValue:e,renderChild:t,layoutCss:r})=>{var o;const n=e.asString(A.props.icon);return Q.jsx(TB,{uid:A.uid,to:e(A.props.to),disabled:!e.asOptionalBoolean(A.props.enabled??!0),vertical:e.asOptionalBoolean(A.props.vertical),displayActive:e.asOptionalBoolean(A.props.displayActive),forceActive:e.asOptionalBoolean(A.props.active),style:r,target:e((o=A.props)==null?void 0:o.target),icon:Q.jsx(be,{name:n,className:oa.icon}),children:e.asDisplayText(A.props.label)||t(A.children)})}),vd={themeVars:`'{"color-text-Link": "var(--xmlui-color-text-Link)", "color-text-Link--active": "var(--xmlui-color-text-Link--active)", "color-text-Link--hover": "var(--xmlui-color-text-Link--hover)", "color-text-Link--hover--active": "var(--xmlui-color-text-Link--hover--active)", "font-family-Link": "var(--xmlui-font-family-Link)", "font-size-Link": "var(--xmlui-font-size-Link)", "font-weight-Link": "var(--xmlui-font-weight-Link)", "font-weight-Link--active": "var(--xmlui-font-weight-Link--active)", "color-decoration-Link": "var(--xmlui-color-decoration-Link)", "offset-decoration-Link": "var(--xmlui-offset-decoration-Link)", "line-decoration-Link": "var(--xmlui-line-decoration-Link)", "style-decoration-Link": "var(--xmlui-style-decoration-Link)", "thickness-decoration-Link": "var(--xmlui-thickness-decoration-Link)", "padding-icon-Link": "var(--xmlui-padding-icon-Link)", "gap-icon-Link": "var(--xmlui-gap-icon-Link)", "thickness-outline-Link--focus": "var(--xmlui-thickness-outline-Link--focus)", "color-outline-Link--focus": "var(--xmlui-color-outline-Link--focus)", "style-outline-Link--focus": "var(--xmlui-style-outline-Link--focus)", "offset-outline-Link--focus": "var(--xmlui-offset-outline-Link--focus)"}'`,container:"_container_nq0ie_13",active:"_active_nq0ie_28",disabled:"_disabled_nq0ie_32",iconWrapper:"_iconWrapper_nq0ie_48"},A4=d.forwardRef(function({to:e,children:t,icon:r,active:n,onClick:o,target:i,disabled:a,style:s},l){const c=!!r&&!t,u=d.useMemo(()=>sw(e),[e]),g=e?WT:"div";return Q.jsxs(g,{ref:l,to:u,style:s,target:i,onClick:o,className:KA(vd.container,{[vd.iconLink]:c,[vd.active]:n,[vd.disabled]:a}),children:[r&&Q.jsx("div",{className:vd.iconWrapper,children:Q.jsx(be,{name:r})}),t]})}),Zt="Link",O4A=kA({description:`A \`${Zt}\` component represents a navigation target within the app or a reference to an external web URL.`,props:{to:j("This property defines the URL of the link."),enabled:Yn(),active:j("Indicates whether this link is active or not. If so, it will have a distinct visual appearance.",null,"boolean",!1),target:j(`This property specifies where to open the link represented by the \`${Zt}\`. This property accepts the following values (in accordance with the HTML standard):`,cDA,"string","_self"),label:pn(),icon:j("This property allows you to add an icon (specify the icon's name) to the link.")},themeVars:ne(vd.themeVars),defaultThemeVars:{[`color-text-${Zt}--hover--active`]:`$color-text-${Zt}--active`,[`color-text-decoration-${Zt}--hover`]:"$color-surface-400A80",[`color-text-decoration-${Zt}--active`]:"$color-surface200",[`font-weight-${Zt}--active`]:"$font-weight-bold",[`color-decoration-${Zt}`]:"$color-surface-400",[`offset-decoration-${Zt}`]:"$space-1",[`line-decoration-${Zt}`]:"underline",[`style-decoration-${Zt}`]:"dashed",[`thickness-decoration-${Zt}`]:"$space-0_5",[`color-outline-${Zt}--focus`]:"$color-outline--focus",[`thickness-outline-${Zt}--focus`]:"$thickness-outline--focus",[`style-outline-${Zt}--focus`]:"$style-outline--focus",[`offset-outline-${Zt}--focus`]:"$offset-outline--focus",[`font-size-${Zt}`]:"inherit",[`gap-icon-${Zt}`]:"$gap-tight",[`padding-icon-${Zt}`]:"$space-0_5",light:{[`color-text-${Zt}`]:"$color-primary-500",[`color-text-${Zt}--active`]:"$color-primary-500"},dark:{[`color-text-${Zt}`]:"$color-primary-500",[`color-text-${Zt}--active`]:"$color-primary-500"}}}),H4A=RA(Zt,O4A,({node:A,extractValue:e,lookupEventHandler:t,renderChild:r,layoutCss:n})=>{var o;return Q.jsx(A4,{to:e(A.props.to),icon:e(A.props.icon),active:e.asOptionalBoolean(A.props.active,!1),target:e((o=A.props)==null?void 0:o.target),style:n,disabled:!e.asOptionalBoolean(A.props.enabled??!0),children:A.props.label?e.asDisplayText(A.props.label):r(A.children)})}),Oo=d.memo(({node:A,item:e,context:t,renderChild:r,layoutContext:n,contextVars:o=qe,itemKey:i="$item",contextKey:a="$context"})=>{const s=kn(o),l=d.useMemo(()=>i===a?{type:"Container",contextVars:{[i]:{...e,...t},...s},children:Array.isArray(A)?A:[A]}:{type:"Container",contextVars:{[i]:e,[a]:t,...s},children:Array.isArray(A)?A:[A]},[t,e,A,s]);return Q.jsx(Q.Fragment,{children:r(l,n)})}),LA="Button",G4A=kA({description:"Button is an interactive element that triggers an action when clicked.",status:"stable",props:{autoFocus:j("Indicates if the button should receive focus when the page loads.",null,"boolean",!1),variant:j("The button variant determines the level of emphasis the button should possess.",lH,"string","solid"),themeColor:j("Sets the button color scheme defined in the application theme.",aH,"string","primary"),size:j("The size of the button.",HQ,"string","sm"),label:j(`This property is an optional string to set a label for the ${LA}. If no label is specified and an icon is set, the ${LA} will modify its styling to look like a small icon button. When the ${LA} has nested children, it will display them and ignore the value of the \`label\` prop.`),type:j(`This optional string describes how the ${LA} appears in an HTML context. You rarely need to set this property explicitly.`,gDA,"string",sH),enabled:j("The value of this property indicates whether the button accepts actions (`true`) or does not react to them (`false`).",null,null,!0),icon:j(`This string value denotes an icon name. The framework will render an icon if XMLUI recognizes the icon by its name. If no label is specified and an icon is set, the ${LA} displays only that icon.`),iconPosition:j(`This optional string determines the location of the icon in the ${LA}.`,uH,"string","start"),contentPosition:j(`This optional value determines how the label and icon (or nested children) should be placedinside the ${LA} component.`,hDA,"string","center")},events:{click:sc(LA),gotFocus:To(LA),lostFocus:Lo(LA)},themeVars:ne(Ur.themeVars),defaultThemeVars:{[`width-${LA}`]:"fit-content",[`height-${LA}`]:"fit-content",[`radius-${LA}`]:"$radius",[`font-size-${LA}`]:"$font-size-small",[`font-weight-${LA}`]:"$font-weight-medium",[`color-bg-${LA}-primary`]:"$color-primary-500",[`color-bg-${LA}-attention`]:"$color-bg-attention",[`color-border-${LA}-attention`]:"$color-attention",[`color-bg-${LA}--disabled`]:"$color-bg--disabled",[`color-border-${LA}--disabled`]:"$color-border--disabled",[`style-border-${LA}`]:"solid",[`color-text-${LA}--disabled`]:"$color-text--disabled",[`color-outline-${LA}--focus`]:"$color-outline--focus",[`thickness-border-${LA}`]:"1px",[`thickness-outline-${LA}--focus`]:"$thickness-outline--focus",[`style-outline-${LA}--focus`]:"$style-outline--focus",[`offset-outline-${LA}--focus`]:"$offset-outline--focus",[`padding-horizontal-${LA}-xs`]:"$space-1",[`padding-vertical-${LA}-xs`]:"$space-0_5",[`padding-horizontal-${LA}-sm`]:"$space-4",[`padding-vertical-${LA}-sm`]:"$space-2",[`padding-horizontal-${LA}-md`]:"$space-4",[`padding-vertical-${LA}-md`]:"$space-3",[`padding-horizontal-${LA}-lg`]:"$space-5",[`padding-vertical-${LA}-lg`]:"$space-4",light:{[`color-text-${LA}`]:"$color-surface-950",[`color-text-${LA}-solid`]:"$color-surface-50",[`color-border-${LA}-primary`]:"$color-primary-500",[`color-bg-${LA}-primary--hover`]:"$color-primary-400",[`color-bg-${LA}-primary--active`]:"$color-primary-500",[`color-bg-${LA}-primary-outlined--hover`]:"$color-primary-50",[`color-bg-${LA}-primary-outlined--active`]:"$color-primary-100",[`color-border-${LA}-primary-outlined`]:"$color-primary-600",[`color-border-${LA}-primary-outlined--hover`]:"$color-primary-500",[`color-text-${LA}-primary-outlined`]:"$color-primary-900",[`color-text-${LA}-primary-outlined--hover`]:"$color-primary-950",[`color-text-${LA}-primary-outlined--active`]:"$color-primary-900",[`color-bg-${LA}-primary-ghost--hover`]:"$color-primary-50",[`color-bg-${LA}-primary-ghost--active`]:"$color-primary-100",[`color-border-${LA}-secondary`]:"$color-secondary-100",[`color-bg-${LA}-secondary`]:"$color-secondary-500",[`color-bg-${LA}-secondary--hover`]:"$color-secondary-400",[`color-bg-${LA}-secondary--active`]:"$color-secondary-500",[`color-bg-${LA}-secondary-outlined--hover`]:"$color-secondary-50",[`color-bg-${LA}-secondary-outlined--active`]:"$color-secondary-100",[`color-bg-${LA}-secondary-ghost--hover`]:"$color-secondary-100",[`color-bg-${LA}-secondary-ghost--active`]:"$color-secondary-100",[`color-bg-${LA}-attention--hover`]:"$color-danger-400",[`color-bg-${LA}-attention--active`]:"$color-danger-500",[`color-bg-${LA}-attention-outlined--hover`]:"$color-danger-50",[`color-bg-${LA}-attention-outlined--active`]:"$color-danger-100",[`color-bg-${LA}-attention-ghost--hover`]:"$color-danger-50",[`color-bg-${LA}-attention-ghost--active`]:"$color-danger-100"},dark:{[`color-text-${LA}`]:"$color-surface-50",[`color-text-${LA}-solid`]:"$color-surface-50",[`color-border-${LA}-primary`]:"$color-primary-500",[`color-bg-${LA}-primary--hover`]:"$color-primary-600",[`color-bg-${LA}-primary--active`]:"$color-primary-500",[`color-bg-${LA}-primary-outlined--hover`]:"$color-primary-900",[`color-bg-${LA}-primary-outlined--active`]:"$color-primary-950",[`color-border-${LA}-primary-outlined`]:"$color-primary-600",[`color-border-${LA}-primary-outlined--hover`]:"$color-primary-500",[`color-text-${LA}-primary-outlined`]:"$color-primary-100",[`color-text-${LA}-primary-outlined--hover`]:"$color-primary-50",[`color-text-${LA}-primary-outlined--active`]:"$color-primary-100",[`color-bg-${LA}-primary-ghost--hover`]:"$color-primary-900",[`color-bg-${LA}-primary-ghost--active`]:"$color-primary-950",[`color-border-${LA}-secondary`]:"$color-secondary-500",[`color-bg-${LA}-secondary`]:"$color-secondary-500",[`color-bg-${LA}-secondary--hover`]:"$color-secondary-400",[`color-bg-${LA}-secondary--active`]:"$color-secondary-500",[`color-bg-${LA}-secondary-outlined--hover`]:"$color-secondary-600",[`color-bg-${LA}-secondary-outlined--active`]:"$color-secondary-500",[`color-bg-${LA}-secondary-ghost--hover`]:"$color-secondary-900",[`color-bg-${LA}-secondary-ghost--active`]:"$color-secondary-950",[`color-bg-${LA}-attention--hover`]:"$color-danger-400",[`color-bg-${LA}-attention--active`]:"$color-danger-500",[`color-bg-${LA}-attention-outlined--hover`]:"$color-danger-900",[`color-bg-${LA}-attention-outlined--active`]:"$color-danger-950",[`color-bg-${LA}-attention-ghost--hover`]:"$color-danger-900",[`color-bg-${LA}-attention-ghost--active`]:"$color-danger-950"}}}),U4A=RA("Button",G4A,({node:A,extractValue:e,renderChild:t,lookupEventHandler:r,layoutCss:n})=>{const o=e.asString(A.props.icon),i=e.asDisplayText(A.props.label);return Q.jsx(or,{type:A.props.type,variant:e(A.props.variant),themeColor:e(A.props.themeColor),autoFocus:e.asOptionalBoolean(A.props.autoFocus),size:e(A.props.size),icon:o&&Q.jsx(be,{name:o}),iconPosition:e(A.props.iconPosition),contentPosition:e(A.props.contentPosition),disabled:!e.asOptionalBoolean(A.props.enabled??!0),onClick:r("click"),onFocus:r("gotFocus"),onBlur:r("lostFocus"),style:n,children:t(A.children,{type:"Stack",orientation:"horizontal"})||i})}),yi={themeVars:`'{"Heading:color-text-H1": "var(--xmlui-color-text-H1)", "Heading:letter-spacing-H1": "var(--xmlui-letter-spacing-H1)", "Heading:font-family-H1": "var(--xmlui-font-family-H1)", "Heading:font-weight-H1": "var(--xmlui-font-weight-H1)", "font-size-H1": "var(--xmlui-font-size-H1)", "line-height-H1": "var(--xmlui-line-height-H1)", "margin-top-H1": "var(--xmlui-margin-top-H1)", "margin-bottom-H1": "var(--xmlui-margin-bottom-H1)", "Heading:line-decoration-H1": "var(--xmlui-line-decoration-H1)", "Heading:color-decoration-H1": "var(--xmlui-color-decoration-H1)", "Heading:style-decoration-H1": "var(--xmlui-style-decoration-H1)", "Heading:thickness-decoration-H1": "var(--xmlui-thickness-decoration-H1)", "Heading:offset-decoration-H1": "var(--xmlui-offset-decoration-H1)", "Heading:color-text-H2": "var(--xmlui-color-text-H2)", "Heading:letter-spacing-H2": "var(--xmlui-letter-spacing-H2)", "Heading:font-family-H2": "var(--xmlui-font-family-H2)", "Heading:font-weight-H2": "var(--xmlui-font-weight-H2)", "font-size-H2": "var(--xmlui-font-size-H2)", "line-height-H2": "var(--xmlui-line-height-H2)", "margin-top-H2": "var(--xmlui-margin-top-H2)", "margin-bottom-H2": "var(--xmlui-margin-bottom-H2)", "Heading:line-decoration-H2": "var(--xmlui-line-decoration-H2)", "Heading:color-decoration-H2": "var(--xmlui-color-decoration-H2)", "Heading:style-decoration-H2": "var(--xmlui-style-decoration-H2)", "Heading:thickness-decoration-H2": "var(--xmlui-thickness-decoration-H2)", "Heading:offset-decoration-H2": "var(--xmlui-offset-decoration-H2)", "Heading:color-text-H3": "var(--xmlui-color-text-H3)", "Heading:letter-spacing-H3": "var(--xmlui-letter-spacing-H3)", "Heading:font-family-H3": "var(--xmlui-font-family-H3)", "Heading:font-weight-H3": "var(--xmlui-font-weight-H3)", "font-size-H3": "var(--xmlui-font-size-H3)", "line-height-H3": "var(--xmlui-line-height-H3)", "margin-top-H3": "var(--xmlui-margin-top-H3)", "margin-bottom-H3": "var(--xmlui-margin-bottom-H3)", "Heading:line-decoration-H3": "var(--xmlui-line-decoration-H3)", "Heading:color-decoration-H3": "var(--xmlui-color-decoration-H3)", "Heading:style-decoration-H3": "var(--xmlui-style-decoration-H3)", "Heading:thickness-decoration-H3": "var(--xmlui-thickness-decoration-H3)", "Heading:offset-decoration-H3": "var(--xmlui-offset-decoration-H3)", "Heading:color-text-H4": "var(--xmlui-color-text-H4)", "Heading:letter-spacing-H4": "var(--xmlui-letter-spacing-H4)", "Heading:font-family-H4": "var(--xmlui-font-family-H4)", "Heading:font-weight-H4": "var(--xmlui-font-weight-H4)", "font-size-H4": "var(--xmlui-font-size-H4)", "line-height-H4": "var(--xmlui-line-height-H4)", "margin-top-H4": "var(--xmlui-margin-top-H4)", "margin-bottom-H4": "var(--xmlui-margin-bottom-H4)", "Heading:line-decoration-H4": "var(--xmlui-line-decoration-H4)", "Heading:color-decoration-H4": "var(--xmlui-color-decoration-H4)", "Heading:style-decoration-H4": "var(--xmlui-style-decoration-H4)", "Heading:thickness-decoration-H4": "var(--xmlui-thickness-decoration-H4)", "Heading:offset-decoration-H4": "var(--xmlui-offset-decoration-H4)", "Heading:color-text-H5": "var(--xmlui-color-text-H5)", "Heading:letter-spacing-H5": "var(--xmlui-letter-spacing-H5)", "Heading:font-family-H5": "var(--xmlui-font-family-H5)", "Heading:font-weight-H5": "var(--xmlui-font-weight-H5)", "font-size-H5": "var(--xmlui-font-size-H5)", "line-height-H5": "var(--xmlui-line-height-H5)", "margin-top-H5": "var(--xmlui-margin-top-H5)", "margin-bottom-H5": "var(--xmlui-margin-bottom-H5)", "Heading:line-decoration-H5": "var(--xmlui-line-decoration-H5)", "Heading:color-decoration-H5": "var(--xmlui-color-decoration-H5)", "Heading:style-decoration-H5": "var(--xmlui-style-decoration-H5)", "Heading:thickness-decoration-H5": "var(--xmlui-thickness-decoration-H5)", "Heading:offset-decoration-H5": "var(--xmlui-offset-decoration-H5)", "Heading:color-text-H6": "var(--xmlui-color-text-H6)", "Heading:letter-spacing-H6": "var(--xmlui-letter-spacing-H6)", "Heading:font-family-H6": "var(--xmlui-font-family-H6)", "Heading:font-weight-H6": "var(--xmlui-font-weight-H6)", "font-size-H6": "var(--xmlui-font-size-H6)", "line-height-H6": "var(--xmlui-line-height-H6)", "margin-top-H6": "var(--xmlui-margin-top-H6)", "margin-bottom-H6": "var(--xmlui-margin-bottom-H6)", "Heading:line-decoration-H6": "var(--xmlui-line-decoration-H6)", "Heading:color-decoration-H6": "var(--xmlui-color-decoration-H6)", "Heading:style-decoration-H6": "var(--xmlui-style-decoration-H6)", "Heading:thickness-decoration-H6": "var(--xmlui-thickness-decoration-H6)", "Heading:offset-decoration-H6": "var(--xmlui-offset-decoration-H6)"}'`,heading:"_heading_1tifa_13",h1:"_h1_1tifa_13",h2:"_h2_1tifa_28",h3:"_h3_1tifa_43",h4:"_h4_1tifa_58",h5:"_h5_1tifa_73",h6:"_h6_1tifa_88",truncateOverflow:"_truncateOverflow_1tifa_108",preserveLinebreaks:"_preserveLinebreaks_1tifa_114",noEllipsis:"_noEllipsis_1tifa_118"},sG=A=>typeof A=="object"&&A!=null&&A.nodeType===1,lG=(A,e)=>(!e||A!=="hidden")&&A!=="visible"&&A!=="clip",e4=(A,e)=>{if(A.clientHeight<A.scrollHeight||A.clientWidth<A.scrollWidth){const t=getComputedStyle(A,null);return lG(t.overflowY,e)||lG(t.overflowX,e)||(r=>{const n=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!n&&(n.clientHeight<r.scrollHeight||n.clientWidth<r.scrollWidth)})(A)}return!1},cw=(A,e,t,r,n,o,i,a)=>o<A&&i>e||o>A&&i<e?0:o<=A&&a<=t||i>=e&&a>=t?o-A-r:i>e&&a<t||o<A&&a>t?i-e+n:0,K4A=A=>{const e=A.parentElement;return e??(A.getRootNode().host||null)},cG=(A,e)=>{var t,r,n,o;if(typeof document>"u")return[];const{scrollMode:i,block:a,inline:s,boundary:l,skipOverflowHiddenElements:c}=e,u=typeof l=="function"?l:z=>z!==l;if(!sG(A))throw new TypeError("Invalid target");const g=document.scrollingElement||document.documentElement,h=[];let B=A;for(;sG(B)&&u(B);){if(B=K4A(B),B===g){h.push(B);break}B!=null&&B===document.body&&e4(B)&&!e4(document.documentElement)||B!=null&&e4(B,c)&&h.push(B)}const E=(r=(t=window.visualViewport)==null?void 0:t.width)!=null?r:innerWidth,C=(o=(n=window.visualViewport)==null?void 0:n.height)!=null?o:innerHeight,{scrollX:m,scrollY:I}=window,{height:v,width:y,top:x,right:b,bottom:k,left:M}=A.getBoundingClientRect(),{top:N,right:F,bottom:L,left:T}=(z=>{const q=window.getComputedStyle(z);return{top:parseFloat(q.scrollMarginTop)||0,right:parseFloat(q.scrollMarginRight)||0,bottom:parseFloat(q.scrollMarginBottom)||0,left:parseFloat(q.scrollMarginLeft)||0}})(A);let P=a==="start"||a==="nearest"?x-N:a==="end"?k+L:x+v/2-N+L,G=s==="center"?M+y/2-T+F:s==="end"?b+F:M-T;const H=[];for(let z=0;z<h.length;z++){const q=h[z],{height:O,width:Y,top:S,right:J,bottom:$,left:U}=q.getBoundingClientRect();if(i==="if-needed"&&x>=0&&M>=0&&k<=C&&b<=E&&x>=S&&k<=$&&M>=U&&b<=J)return H;const AA=getComputedStyle(q),Z=parseInt(AA.borderLeftWidth,10),tA=parseInt(AA.borderTopWidth,10),nA=parseInt(AA.borderRightWidth,10),sA=parseInt(AA.borderBottomWidth,10);let iA=0,aA=0;const rA="offsetWidth"in q?q.offsetWidth-q.clientWidth-Z-nA:0,X="offsetHeight"in q?q.offsetHeight-q.clientHeight-tA-sA:0,cA="offsetWidth"in q?q.offsetWidth===0?0:Y/q.offsetWidth:0,hA="offsetHeight"in q?q.offsetHeight===0?0:O/q.offsetHeight:0;if(g===q)iA=a==="start"?P:a==="end"?P-C:a==="nearest"?cw(I,I+C,C,tA,sA,I+P,I+P+v,v):P-C/2,aA=s==="start"?G:s==="center"?G-E/2:s==="end"?G-E:cw(m,m+E,E,Z,nA,m+G,m+G+y,y),iA=Math.max(0,iA+I),aA=Math.max(0,aA+m);else{iA=a==="start"?P-S-tA:a==="end"?P-$+sA+X:a==="nearest"?cw(S,$,O,tA,sA+X,P,P+v,v):P-(S+O/2)+X/2,aA=s==="start"?G-U-Z:s==="center"?G-(U+Y/2)+rA/2:s==="end"?G-J+nA+rA:cw(U,J,Y,Z,nA+rA,G,G+y,y);const{scrollLeft:EA,scrollTop:IA}=q;iA=hA===0?0:Math.max(0,Math.min(IA+iA/hA,q.scrollHeight-O/hA+X)),aA=cA===0?0:Math.max(0,Math.min(EA+aA/cA,q.scrollWidth-Y/cA+rA)),P+=IA-iA,G+=EA-aA}H.push({el:q,top:iA,left:aA})}return H},Y4A=A=>A===!1?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&Object.keys(e).length!==0)(A)?A:{block:"start",inline:"nearest"};function t4(A,e){if(!A.isConnected||!(n=>{let o=n;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(A))return;const t=(n=>{const o=window.getComputedStyle(n);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(A);if((n=>typeof n=="object"&&typeof n.behavior=="function")(e))return e.behavior(cG(A,e));const r=typeof e=="boolean"||e==null?void 0:e.behavior;for(const{el:n,top:o,left:i}of cG(A,Y4A(e))){const a=o-t.top+t.bottom,s=i-t.left+t.right;n.scroll({top:a,left:s,behavior:r})}}const uw=d.createContext(null);function $4A({children:A}){const[e,t]=d.useState({}),[r,n]=d.useState(!1),[o,i]=d.useState(null),a=d.useRef(null),s=d.useRef(null);d.useEffect(()=>{if(r){const h=B=>{B.forEach(E=>{E!=null&&E.isIntersecting&&i(E.target.id)})};return a.current=new IntersectionObserver(h,{rootMargin:"0px 0px -50%",threshold:[0,1]}),Object.values(e).forEach(B=>{var E,C;return(C=(E=a==null?void 0:a.current)==null?void 0:E.observe)==null?void 0:C.call(E,B.anchor)}),()=>{var B;return(B=a.current)==null?void 0:B.disconnect()}}},[e,r]);const l=d.useCallback(h=>(t(B=>({...B,[h.id]:h})),()=>{t(B=>{const E={...B};return delete E[h.id],E})}),[]),c=d.useCallback(h=>{e[h]&&i(h)},[e]),u=d.useMemo(()=>Object.values(e).sort(function(h,B){return h.anchor===B.anchor?0:h.anchor.compareDocumentPosition(B.anchor)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),[e]);d.useEffect(()=>{var B;const h=window.location.hash;if(h){if(s!=null&&s.current)return;s.current=(B=u.find(E=>`#${E.id}`===h))==null?void 0:B.anchor,s.current&&t4(s.current,{block:"start",inline:"start",behavior:"instant",scrollMode:"always"})}},[u]);const g=d.useMemo(()=>({registerHeading:l,headings:u,observeIntersection:r,setObserveIntersection:n,activeAnchorId:o,setActiveAnchorId:c}),[l,u,r,o,c]);return Q.jsx(uw.Provider,{value:g,children:A})}function j4A(){const A=d.useContext(uw);if(!A)throw new Error("useTableOfContents must be used within a TableOfContentsProvider");return A}const Zs=d.forwardRef(function({uid:e,level:t="h1",children:r,sx:n,style:o,title:i,maxLines:a=0,preserveLinebreaks:s,ellipses:l=!0,className:c},u){const g=t==null?void 0:t.toLowerCase(),h=d.useRef(null),[B,E]=d.useState(null),C=d.useRef(null),m=d.useContext(uw),I=m==null?void 0:m.registerHeading,v=m==null?void 0:m.observeIntersection,y=u?Zr(h,u):h;return d.useEffect(()=>{var x,b,k,M;if(v&&h.current){const N=(M=(k=(b=(x=h.current.textContent)==null?void 0:x.trim())==null?void 0:b.replace(/[^\w\s-]/g,""))==null?void 0:k.replace(/\s+/g,"-"))==null?void 0:M.toLowerCase();E(N||null)}},[v]),d.useEffect(()=>{if(v&&h.current&&B)return I==null?void 0:I({id:B,level:parseInt(t.replace("h","")),text:h.current.textContent.trim(),anchor:C.current})},[B,v,I,t]),Q.jsxs(g,{ref:y,id:e,title:i,style:{...n,...o,...oG(a)},className:KA(yi.heading,yi[g],c||"",{[yi.truncateOverflow]:a>0,[yi.preserveLinebreaks]:s,[yi.noEllipsis]:!l}),children:[B&&v&&Q.jsx("span",{ref:C,id:B,style:{width:0,height:0}}),r]})}),bi="Heading",tf=j(`This property determines the text displayed in the heading. \`${bi}\` also accepts nested text instead of specifying the \`value\`. If both \`value\` and a nested text are used, the \`value\` will be displayed.`),rf=j("This property determines the maximum number of lines the component can wrap to. If there is not enough space for all of the text, the component wraps the text up to as many lines as specified."),q4A=j("This property indicates whether ellipses should be displayed (`true`) when the heading text is cropped or not (`false`)."),J4A=j("This property indicates whether linebreaks should be preserved when displaying text."),Dd=A=>`Represents a heading level ${A} text`,z4A=kA({description:"Represents a heading text",props:{value:tf,level:j("This property sets the visual significance (level) of the heading."),maxLines:rf,ellipses:q4A,preserveLinebreaks:J4A},themeVars:ne(yi.themeVars),defaultThemeVars:{[`font-family-${bi}`]:"$font-family",[`color-text-${bi}`]:"$color-text-primary",[`font-weight-${bi}`]:"$font-weight-bold",[`letter-spacing-${bi} `]:"0",light:{},dark:{}}}),fw="H1",W4A=kA({description:Dd(1),specializedFrom:bi,props:{value:tf,maxLines:rf},themeVars:ne(yi.themeVars),defaultThemeVars:{[`font-size-${fw}`]:"$font-size-large",[`margin-top-${fw}`]:"0",[`margin-bottom-${fw}`]:"0",light:{},dark:{}}}),gw="H2",V4A=kA({description:Dd(2),specializedFrom:bi,props:{value:tf,maxLines:rf},themeVars:ne(yi.themeVars),defaultThemeVars:{[`font-size-${gw}`]:"$font-size-medium",[`margin-top-${gw}`]:"0",[`margin-bottom-${gw}`]:"0",light:{},dark:{}}}),dw="H3",X4A=kA({description:Dd(3),specializedFrom:bi,props:{value:tf,maxLines:rf},themeVars:ne(yi.themeVars),defaultThemeVars:{[`font-size-${dw}`]:"$font-size-normal",[`margin-top-${dw}`]:"0",[`margin-bottom-${dw}`]:"0",light:{},dark:{}}}),hw="H4",Z4A=kA({description:Dd(4),specializedFrom:bi,props:{value:tf,maxLines:rf},themeVars:ne(yi.themeVars),defaultThemeVars:{[`font-size-${hw}`]:"$font-size-small",[`margin-top-${hw}`]:"0",[`margin-bottom-${hw}`]:"0",light:{},dark:{}}}),pw="H5",A_A=kA({description:Dd(5),specializedFrom:bi,props:{value:tf,maxLines:rf},themeVars:ne(yi.themeVars),defaultThemeVars:{[`font-size-${pw}`]:"$font-size-smaller",[`margin-top-${pw}`]:"0",[`margin-bottom-${pw}`]:"0",light:{},dark:{}}}),Bw="H6",e_A=kA({description:Dd(6),specializedFrom:bi,props:{value:tf,maxLines:rf},themeVars:ne(yi.themeVars),defaultThemeVars:{[`font-size-${Bw}`]:"$font-size-tiny",[`margin-top-${Bw}`]:"0",[`margin-bottom-${Bw}`]:"0",light:{},dark:{}}});function nf({node:A,extractValue:e,layoutCss:t,level:r,renderChild:n}){return Q.jsx(Zs,{uid:A.uid,level:e.asOptionalString(r)??"h1",maxLines:e.asOptionalNumber(A.props.maxLines),preserveLinebreaks:e.asOptionalBoolean(A.props.preserveLinebreaks,!1),ellipses:e.asOptionalBoolean(A.props.ellipses,!0),style:t,children:e.asDisplayText(A.props.value)||n(A.children)})}const t_A=RA(bi,z4A,({node:A,extractValue:e,layoutCss:t,layoutNonCss:r,renderChild:n})=>nf({node:A,extractValue:e,layoutCss:t,layoutNonCss:r,level:A.props.level,renderChild:n})),r_A=RA(fw,W4A,({node:A,extractValue:e,layoutCss:t,layoutNonCss:r,renderChild:n})=>nf({node:A,extractValue:e,layoutCss:t,layoutNonCss:r,level:"h1",renderChild:n})),n_A=RA(gw,V4A,({node:A,extractValue:e,layoutCss:t,layoutNonCss:r,renderChild:n})=>nf({node:A,extractValue:e,layoutCss:t,layoutNonCss:r,level:"h2",renderChild:n})),o_A=RA(dw,X4A,({node:A,extractValue:e,layoutCss:t,layoutNonCss:r,renderChild:n})=>nf({node:A,extractValue:e,layoutCss:t,layoutNonCss:r,level:"h3",renderChild:n})),i_A=RA(hw,Z4A,({node:A,extractValue:e,layoutCss:t,layoutNonCss:r,renderChild:n})=>nf({node:A,extractValue:e,layoutCss:t,layoutNonCss:r,level:"h4",renderChild:n})),a_A=RA(pw,A_A,({node:A,extractValue:e,layoutCss:t,layoutNonCss:r,renderChild:n})=>nf({node:A,extractValue:e,layoutCss:t,layoutNonCss:r,level:"h5",renderChild:n})),s_A=RA(Bw,e_A,({node:A,extractValue:e,layoutCss:t,layoutNonCss:r,renderChild:n})=>nf({node:A,extractValue:e,layoutCss:t,layoutNonCss:r,level:"h6",renderChild:n})),yd={themeVars:`'{"font-family-Text-abbr": "var(--xmlui-font-family-Text-abbr)", "font-size-Text-abbr": "var(--xmlui-font-size-Text-abbr)", "font-weight-Text-abbr": "var(--xmlui-font-weight-Text-abbr)", "font-style-Text-abbr": "var(--xmlui-font-style-Text-abbr)", "font-stretch-Text-abbr": "var(--xmlui-font-stretch-Text-abbr)", "line-decoration-Text-abbr": "var(--xmlui-line-decoration-Text-abbr)", "color-decoration-Text-abbr": "var(--xmlui-color-decoration-Text-abbr)", "style-decoration-Text-abbr": "var(--xmlui-style-decoration-Text-abbr)", "thickness-decoration-Text-abbr": "var(--xmlui-thickness-decoration-Text-abbr)", "offset-decoration-Text-abbr": "var(--xmlui-offset-decoration-Text-abbr)", "line-height-Text-abbr": "var(--xmlui-line-height-Text-abbr)", "color-Text-abbr": "var(--xmlui-color-Text-abbr)", "color-bg-Text-abbr": "var(--xmlui-color-bg-Text-abbr)", "border-radius-Text-abbr": "var(--xmlui-border-radius-Text-abbr)", "color-border-Text-abbr": "var(--xmlui-color-border-Text-abbr)", "thickness-border-Text-abbr": "var(--xmlui-thickness-border-Text-abbr)", "style-border-Text-abbr": "var(--xmlui-style-border-Text-abbr)", "margin-top-Text-abbr": "var(--xmlui-margin-top-Text-abbr)", "margin-bottom-Text-abbr": "var(--xmlui-margin-bottom-Text-abbr)", "padding-horizontal-Text-abbr": "var(--xmlui-padding-horizontal-Text-abbr)", "padding-vertical-Text-abbr": "var(--xmlui-padding-vertical-Text-abbr)", "transform-Text-abbr": "var(--xmlui-transform-Text-abbr)", "align-vertical-Text-abbr": "var(--xmlui-align-vertical-Text-abbr)", "letter-spacing-Text-abbr": "var(--xmlui-letter-spacing-Text-abbr)", "font-family-Text-cite": "var(--xmlui-font-family-Text-cite)", "font-size-Text-cite": "var(--xmlui-font-size-Text-cite)", "font-weight-Text-cite": "var(--xmlui-font-weight-Text-cite)", "font-style-Text-cite": "var(--xmlui-font-style-Text-cite)", "font-stretch-Text-cite": "var(--xmlui-font-stretch-Text-cite)", "line-decoration-Text-cite": "var(--xmlui-line-decoration-Text-cite)", "color-decoration-Text-cite": "var(--xmlui-color-decoration-Text-cite)", "style-decoration-Text-cite": "var(--xmlui-style-decoration-Text-cite)", "thickness-decoration-Text-cite": "var(--xmlui-thickness-decoration-Text-cite)", "offset-decoration-Text-cite": "var(--xmlui-offset-decoration-Text-cite)", "line-height-Text-cite": "var(--xmlui-line-height-Text-cite)", "color-Text-cite": "var(--xmlui-color-Text-cite)", "color-bg-Text-cite": "var(--xmlui-color-bg-Text-cite)", "border-radius-Text-cite": "var(--xmlui-border-radius-Text-cite)", "color-border-Text-cite": "var(--xmlui-color-border-Text-cite)", "thickness-border-Text-cite": "var(--xmlui-thickness-border-Text-cite)", "style-border-Text-cite": "var(--xmlui-style-border-Text-cite)", "margin-top-Text-cite": "var(--xmlui-margin-top-Text-cite)", "margin-bottom-Text-cite": "var(--xmlui-margin-bottom-Text-cite)", "padding-horizontal-Text-cite": "var(--xmlui-padding-horizontal-Text-cite)", "padding-vertical-Text-cite": "var(--xmlui-padding-vertical-Text-cite)", "transform-Text-cite": "var(--xmlui-transform-Text-cite)", "align-vertical-Text-cite": "var(--xmlui-align-vertical-Text-cite)", "letter-spacing-Text-cite": "var(--xmlui-letter-spacing-Text-cite)", "font-family-Text-code": "var(--xmlui-font-family-Text-code)", "font-size-Text-code": "var(--xmlui-font-size-Text-code)", "font-weight-Text-code": "var(--xmlui-font-weight-Text-code)", "font-style-Text-code": "var(--xmlui-font-style-Text-code)", "font-stretch-Text-code": "var(--xmlui-font-stretch-Text-code)", "line-decoration-Text-code": "var(--xmlui-line-decoration-Text-code)", "color-decoration-Text-code": "var(--xmlui-color-decoration-Text-code)", "style-decoration-Text-code": "var(--xmlui-style-decoration-Text-code)", "thickness-decoration-Text-code": "var(--xmlui-thickness-decoration-Text-code)", "offset-decoration-Text-code": "var(--xmlui-offset-decoration-Text-code)", "line-height-Text-code": "var(--xmlui-line-height-Text-code)", "color-Text-code": "var(--xmlui-color-Text-code)", "color-bg-Text-code": "var(--xmlui-color-bg-Text-code)", "border-radius-Text-code": "var(--xmlui-border-radius-Text-code)", "color-border-Text-code": "var(--xmlui-color-border-Text-code)", "thickness-border-Text-code": "var(--xmlui-thickness-border-Text-code)", "style-border-Text-code": "var(--xmlui-style-border-Text-code)", "margin-top-Text-code": "var(--xmlui-margin-top-Text-code)", "margin-bottom-Text-code": "var(--xmlui-margin-bottom-Text-code)", "padding-horizontal-Text-code": "var(--xmlui-padding-horizontal-Text-code)", "padding-vertical-Text-code": "var(--xmlui-padding-vertical-Text-code)", "transform-Text-code": "var(--xmlui-transform-Text-code)", "align-vertical-Text-code": "var(--xmlui-align-vertical-Text-code)", "letter-spacing-Text-code": "var(--xmlui-letter-spacing-Text-code)", "font-family-Text-codefence": "var(--xmlui-font-family-Text-codefence)", "font-size-Text-codefence": "var(--xmlui-font-size-Text-codefence)", "font-weight-Text-codefence": "var(--xmlui-font-weight-Text-codefence)", "font-style-Text-codefence": "var(--xmlui-font-style-Text-codefence)", "font-stretch-Text-codefence": "var(--xmlui-font-stretch-Text-codefence)", "line-decoration-Text-codefence": "var(--xmlui-line-decoration-Text-codefence)", "color-decoration-Text-codefence": "var(--xmlui-color-decoration-Text-codefence)", "style-decoration-Text-codefence": "var(--xmlui-style-decoration-Text-codefence)", "thickness-decoration-Text-codefence": "var(--xmlui-thickness-decoration-Text-codefence)", "offset-decoration-Text-codefence": "var(--xmlui-offset-decoration-Text-codefence)", "line-height-Text-codefence": "var(--xmlui-line-height-Text-codefence)", "color-Text-codefence": "var(--xmlui-color-Text-codefence)", "color-bg-Text-codefence": "var(--xmlui-color-bg-Text-codefence)", "border-radius-Text-codefence": "var(--xmlui-border-radius-Text-codefence)", "color-border-Text-codefence": "var(--xmlui-color-border-Text-codefence)", "thickness-border-Text-codefence": "var(--xmlui-thickness-border-Text-codefence)", "style-border-Text-codefence": "var(--xmlui-style-border-Text-codefence)", "margin-top-Text-codefence": "var(--xmlui-margin-top-Text-codefence)", "margin-bottom-Text-codefence": "var(--xmlui-margin-bottom-Text-codefence)", "padding-horizontal-Text-codefence": "var(--xmlui-padding-horizontal-Text-codefence)", "padding-vertical-Text-codefence": "var(--xmlui-padding-vertical-Text-codefence)", "transform-Text-codefence": "var(--xmlui-transform-Text-codefence)", "align-vertical-Text-codefence": "var(--xmlui-align-vertical-Text-codefence)", "letter-spacing-Text-codefence": "var(--xmlui-letter-spacing-Text-codefence)", "font-family-Text-deleted": "var(--xmlui-font-family-Text-deleted)", "font-size-Text-deleted": "var(--xmlui-font-size-Text-deleted)", "font-weight-Text-deleted": "var(--xmlui-font-weight-Text-deleted)", "font-style-Text-deleted": "var(--xmlui-font-style-Text-deleted)", "font-stretch-Text-deleted": "var(--xmlui-font-stretch-Text-deleted)", "line-decoration-Text-deleted": "var(--xmlui-line-decoration-Text-deleted)", "color-decoration-Text-deleted": "var(--xmlui-color-decoration-Text-deleted)", "style-decoration-Text-deleted": "var(--xmlui-style-decoration-Text-deleted)", "thickness-decoration-Text-deleted": "var(--xmlui-thickness-decoration-Text-deleted)", "offset-decoration-Text-deleted": "var(--xmlui-offset-decoration-Text-deleted)", "line-height-Text-deleted": "var(--xmlui-line-height-Text-deleted)", "color-Text-deleted": "var(--xmlui-color-Text-deleted)", "color-bg-Text-deleted": "var(--xmlui-color-bg-Text-deleted)", "border-radius-Text-deleted": "var(--xmlui-border-radius-Text-deleted)", "color-border-Text-deleted": "var(--xmlui-color-border-Text-deleted)", "thickness-border-Text-deleted": "var(--xmlui-thickness-border-Text-deleted)", "style-border-Text-deleted": "var(--xmlui-style-border-Text-deleted)", "margin-top-Text-deleted": "var(--xmlui-margin-top-Text-deleted)", "margin-bottom-Text-deleted": "var(--xmlui-margin-bottom-Text-deleted)", "padding-horizontal-Text-deleted": "var(--xmlui-padding-horizontal-Text-deleted)", "padding-vertical-Text-deleted": "var(--xmlui-padding-vertical-Text-deleted)", "transform-Text-deleted": "var(--xmlui-transform-Text-deleted)", "align-vertical-Text-deleted": "var(--xmlui-align-vertical-Text-deleted)", "letter-spacing-Text-deleted": "var(--xmlui-letter-spacing-Text-deleted)", "font-family-Text-inserted": "var(--xmlui-font-family-Text-inserted)", "font-size-Text-inserted": "var(--xmlui-font-size-Text-inserted)", "font-weight-Text-inserted": "var(--xmlui-font-weight-Text-inserted)", "font-style-Text-inserted": "var(--xmlui-font-style-Text-inserted)", "font-stretch-Text-inserted": "var(--xmlui-font-stretch-Text-inserted)", "line-decoration-Text-inserted": "var(--xmlui-line-decoration-Text-inserted)", "color-decoration-Text-inserted": "var(--xmlui-color-decoration-Text-inserted)", "style-decoration-Text-inserted": "var(--xmlui-style-decoration-Text-inserted)", "thickness-decoration-Text-inserted": "var(--xmlui-thickness-decoration-Text-inserted)", "offset-decoration-Text-inserted": "var(--xmlui-offset-decoration-Text-inserted)", "line-height-Text-inserted": "var(--xmlui-line-height-Text-inserted)", "color-Text-inserted": "var(--xmlui-color-Text-inserted)", "color-bg-Text-inserted": "var(--xmlui-color-bg-Text-inserted)", "border-radius-Text-inserted": "var(--xmlui-border-radius-Text-inserted)", "color-border-Text-inserted": "var(--xmlui-color-border-Text-inserted)", "thickness-border-Text-inserted": "var(--xmlui-thickness-border-Text-inserted)", "style-border-Text-inserted": "var(--xmlui-style-border-Text-inserted)", "margin-top-Text-inserted": "var(--xmlui-margin-top-Text-inserted)", "margin-bottom-Text-inserted": "var(--xmlui-margin-bottom-Text-inserted)", "padding-horizontal-Text-inserted": "var(--xmlui-padding-horizontal-Text-inserted)", "padding-vertical-Text-inserted": "var(--xmlui-padding-vertical-Text-inserted)", "transform-Text-inserted": "var(--xmlui-transform-Text-inserted)", "align-vertical-Text-inserted": "var(--xmlui-align-vertical-Text-inserted)", "letter-spacing-Text-inserted": "var(--xmlui-letter-spacing-Text-inserted)", "font-family-Text-keyboard": "var(--xmlui-font-family-Text-keyboard)", "font-size-Text-keyboard": "var(--xmlui-font-size-Text-keyboard)", "font-weight-Text-keyboard": "var(--xmlui-font-weight-Text-keyboard)", "font-style-Text-keyboard": "var(--xmlui-font-style-Text-keyboard)", "font-stretch-Text-keyboard": "var(--xmlui-font-stretch-Text-keyboard)", "line-decoration-Text-keyboard": "var(--xmlui-line-decoration-Text-keyboard)", "color-decoration-Text-keyboard": "var(--xmlui-color-decoration-Text-keyboard)", "style-decoration-Text-keyboard": "var(--xmlui-style-decoration-Text-keyboard)", "thickness-decoration-Text-keyboard": "var(--xmlui-thickness-decoration-Text-keyboard)", "offset-decoration-Text-keyboard": "var(--xmlui-offset-decoration-Text-keyboard)", "line-height-Text-keyboard": "var(--xmlui-line-height-Text-keyboard)", "color-Text-keyboard": "var(--xmlui-color-Text-keyboard)", "color-bg-Text-keyboard": "var(--xmlui-color-bg-Text-keyboard)", "border-radius-Text-keyboard": "var(--xmlui-border-radius-Text-keyboard)", "color-border-Text-keyboard": "var(--xmlui-color-border-Text-keyboard)", "thickness-border-Text-keyboard": "var(--xmlui-thickness-border-Text-keyboard)", "style-border-Text-keyboard": "var(--xmlui-style-border-Text-keyboard)", "margin-top-Text-keyboard": "var(--xmlui-margin-top-Text-keyboard)", "margin-bottom-Text-keyboard": "var(--xmlui-margin-bottom-Text-keyboard)", "padding-horizontal-Text-keyboard": "var(--xmlui-padding-horizontal-Text-keyboard)", "padding-vertical-Text-keyboard": "var(--xmlui-padding-vertical-Text-keyboard)", "transform-Text-keyboard": "var(--xmlui-transform-Text-keyboard)", "align-vertical-Text-keyboard": "var(--xmlui-align-vertical-Text-keyboard)", "letter-spacing-Text-keyboard": "var(--xmlui-letter-spacing-Text-keyboard)", "font-family-Text-marked": "var(--xmlui-font-family-Text-marked)", "font-size-Text-marked": "var(--xmlui-font-size-Text-marked)", "font-weight-Text-marked": "var(--xmlui-font-weight-Text-marked)", "font-style-Text-marked": "var(--xmlui-font-style-Text-marked)", "font-stretch-Text-marked": "var(--xmlui-font-stretch-Text-marked)", "line-decoration-Text-marked": "var(--xmlui-line-decoration-Text-marked)", "color-decoration-Text-marked": "var(--xmlui-color-decoration-Text-marked)", "style-decoration-Text-marked": "var(--xmlui-style-decoration-Text-marked)", "thickness-decoration-Text-marked": "var(--xmlui-thickness-decoration-Text-marked)", "offset-decoration-Text-marked": "var(--xmlui-offset-decoration-Text-marked)", "line-height-Text-marked": "var(--xmlui-line-height-Text-marked)", "color-Text-marked": "var(--xmlui-color-Text-marked)", "color-bg-Text-marked": "var(--xmlui-color-bg-Text-marked)", "border-radius-Text-marked": "var(--xmlui-border-radius-Text-marked)", "color-border-Text-marked": "var(--xmlui-color-border-Text-marked)", "thickness-border-Text-marked": "var(--xmlui-thickness-border-Text-marked)", "style-border-Text-marked": "var(--xmlui-style-border-Text-marked)", "margin-top-Text-marked": "var(--xmlui-margin-top-Text-marked)", "margin-bottom-Text-marked": "var(--xmlui-margin-bottom-Text-marked)", "padding-horizontal-Text-marked": "var(--xmlui-padding-horizontal-Text-marked)", "padding-vertical-Text-marked": "var(--xmlui-padding-vertical-Text-marked)", "transform-Text-marked": "var(--xmlui-transform-Text-marked)", "align-vertical-Text-marked": "var(--xmlui-align-vertical-Text-marked)", "letter-spacing-Text-marked": "var(--xmlui-letter-spacing-Text-marked)", "font-family-Text-mono": "var(--xmlui-font-family-Text-mono)", "font-size-Text-mono": "var(--xmlui-font-size-Text-mono)", "font-weight-Text-mono": "var(--xmlui-font-weight-Text-mono)", "font-style-Text-mono": "var(--xmlui-font-style-Text-mono)", "font-stretch-Text-mono": "var(--xmlui-font-stretch-Text-mono)", "line-decoration-Text-mono": "var(--xmlui-line-decoration-Text-mono)", "color-decoration-Text-mono": "var(--xmlui-color-decoration-Text-mono)", "style-decoration-Text-mono": "var(--xmlui-style-decoration-Text-mono)", "thickness-decoration-Text-mono": "var(--xmlui-thickness-decoration-Text-mono)", "offset-decoration-Text-mono": "var(--xmlui-offset-decoration-Text-mono)", "line-height-Text-mono": "var(--xmlui-line-height-Text-mono)", "color-Text-mono": "var(--xmlui-color-Text-mono)", "color-bg-Text-mono": "var(--xmlui-color-bg-Text-mono)", "border-radius-Text-mono": "var(--xmlui-border-radius-Text-mono)", "color-border-Text-mono": "var(--xmlui-color-border-Text-mono)", "thickness-border-Text-mono": "var(--xmlui-thickness-border-Text-mono)", "style-border-Text-mono": "var(--xmlui-style-border-Text-mono)", "margin-top-Text-mono": "var(--xmlui-margin-top-Text-mono)", "margin-bottom-Text-mono": "var(--xmlui-margin-bottom-Text-mono)", "padding-horizontal-Text-mono": "var(--xmlui-padding-horizontal-Text-mono)", "padding-vertical-Text-mono": "var(--xmlui-padding-vertical-Text-mono)", "transform-Text-mono": "var(--xmlui-transform-Text-mono)", "align-vertical-Text-mono": "var(--xmlui-align-vertical-Text-mono)", "letter-spacing-Text-mono": "var(--xmlui-letter-spacing-Text-mono)", "font-family-Text-sample": "var(--xmlui-font-family-Text-sample)", "font-size-Text-sample": "var(--xmlui-font-size-Text-sample)", "font-weight-Text-sample": "var(--xmlui-font-weight-Text-sample)", "font-style-Text-sample": "var(--xmlui-font-style-Text-sample)", "font-stretch-Text-sample": "var(--xmlui-font-stretch-Text-sample)", "line-decoration-Text-sample": "var(--xmlui-line-decoration-Text-sample)", "color-decoration-Text-sample": "var(--xmlui-color-decoration-Text-sample)", "style-decoration-Text-sample": "var(--xmlui-style-decoration-Text-sample)", "thickness-decoration-Text-sample": "var(--xmlui-thickness-decoration-Text-sample)", "offset-decoration-Text-sample": "var(--xmlui-offset-decoration-Text-sample)", "line-height-Text-sample": "var(--xmlui-line-height-Text-sample)", "color-Text-sample": "var(--xmlui-color-Text-sample)", "color-bg-Text-sample": "var(--xmlui-color-bg-Text-sample)", "border-radius-Text-sample": "var(--xmlui-border-radius-Text-sample)", "color-border-Text-sample": "var(--xmlui-color-border-Text-sample)", "thickness-border-Text-sample": "var(--xmlui-thickness-border-Text-sample)", "style-border-Text-sample": "var(--xmlui-style-border-Text-sample)", "margin-top-Text-sample": "var(--xmlui-margin-top-Text-sample)", "margin-bottom-Text-sample": "var(--xmlui-margin-bottom-Text-sample)", "padding-horizontal-Text-sample": "var(--xmlui-padding-horizontal-Text-sample)", "padding-vertical-Text-sample": "var(--xmlui-padding-vertical-Text-sample)", "transform-Text-sample": "var(--xmlui-transform-Text-sample)", "align-vertical-Text-sample": "var(--xmlui-align-vertical-Text-sample)", "letter-spacing-Text-sample": "var(--xmlui-letter-spacing-Text-sample)", "font-family-Text-sup": "var(--xmlui-font-family-Text-sup)", "font-size-Text-sup": "var(--xmlui-font-size-Text-sup)", "font-weight-Text-sup": "var(--xmlui-font-weight-Text-sup)", "font-style-Text-sup": "var(--xmlui-font-style-Text-sup)", "font-stretch-Text-sup": "var(--xmlui-font-stretch-Text-sup)", "line-decoration-Text-sup": "var(--xmlui-line-decoration-Text-sup)", "color-decoration-Text-sup": "var(--xmlui-color-decoration-Text-sup)", "style-decoration-Text-sup": "var(--xmlui-style-decoration-Text-sup)", "thickness-decoration-Text-sup": "var(--xmlui-thickness-decoration-Text-sup)", "offset-decoration-Text-sup": "var(--xmlui-offset-decoration-Text-sup)", "line-height-Text-sup": "var(--xmlui-line-height-Text-sup)", "color-Text-sup": "var(--xmlui-color-Text-sup)", "color-bg-Text-sup": "var(--xmlui-color-bg-Text-sup)", "border-radius-Text-sup": "var(--xmlui-border-radius-Text-sup)", "color-border-Text-sup": "var(--xmlui-color-border-Text-sup)", "thickness-border-Text-sup": "var(--xmlui-thickness-border-Text-sup)", "style-border-Text-sup": "var(--xmlui-style-border-Text-sup)", "margin-top-Text-sup": "var(--xmlui-margin-top-Text-sup)", "margin-bottom-Text-sup": "var(--xmlui-margin-bottom-Text-sup)", "padding-horizontal-Text-sup": "var(--xmlui-padding-horizontal-Text-sup)", "padding-vertical-Text-sup": "var(--xmlui-padding-vertical-Text-sup)", "transform-Text-sup": "var(--xmlui-transform-Text-sup)", "align-vertical-Text-sup": "var(--xmlui-align-vertical-Text-sup)", "letter-spacing-Text-sup": "var(--xmlui-letter-spacing-Text-sup)", "font-family-Text-sub": "var(--xmlui-font-family-Text-sub)", "font-size-Text-sub": "var(--xmlui-font-size-Text-sub)", "font-weight-Text-sub": "var(--xmlui-font-weight-Text-sub)", "font-style-Text-sub": "var(--xmlui-font-style-Text-sub)", "font-stretch-Text-sub": "var(--xmlui-font-stretch-Text-sub)", "line-decoration-Text-sub": "var(--xmlui-line-decoration-Text-sub)", "color-decoration-Text-sub": "var(--xmlui-color-decoration-Text-sub)", "style-decoration-Text-sub": "var(--xmlui-style-decoration-Text-sub)", "thickness-decoration-Text-sub": "var(--xmlui-thickness-decoration-Text-sub)", "offset-decoration-Text-sub": "var(--xmlui-offset-decoration-Text-sub)", "line-height-Text-sub": "var(--xmlui-line-height-Text-sub)", "color-Text-sub": "var(--xmlui-color-Text-sub)", "color-bg-Text-sub": "var(--xmlui-color-bg-Text-sub)", "border-radius-Text-sub": "var(--xmlui-border-radius-Text-sub)", "color-border-Text-sub": "var(--xmlui-color-border-Text-sub)", "thickness-border-Text-sub": "var(--xmlui-thickness-border-Text-sub)", "style-border-Text-sub": "var(--xmlui-style-border-Text-sub)", "margin-top-Text-sub": "var(--xmlui-margin-top-Text-sub)", "margin-bottom-Text-sub": "var(--xmlui-margin-bottom-Text-sub)", "padding-horizontal-Text-sub": "var(--xmlui-padding-horizontal-Text-sub)", "padding-vertical-Text-sub": "var(--xmlui-padding-vertical-Text-sub)", "transform-Text-sub": "var(--xmlui-transform-Text-sub)", "align-vertical-Text-sub": "var(--xmlui-align-vertical-Text-sub)", "letter-spacing-Text-sub": "var(--xmlui-letter-spacing-Text-sub)", "font-family-Text-var": "var(--xmlui-font-family-Text-var)", "font-size-Text-var": "var(--xmlui-font-size-Text-var)", "font-weight-Text-var": "var(--xmlui-font-weight-Text-var)", "font-style-Text-var": "var(--xmlui-font-style-Text-var)", "font-stretch-Text-var": "var(--xmlui-font-stretch-Text-var)", "line-decoration-Text-var": "var(--xmlui-line-decoration-Text-var)", "color-decoration-Text-var": "var(--xmlui-color-decoration-Text-var)", "style-decoration-Text-var": "var(--xmlui-style-decoration-Text-var)", "thickness-decoration-Text-var": "var(--xmlui-thickness-decoration-Text-var)", "offset-decoration-Text-var": "var(--xmlui-offset-decoration-Text-var)", "line-height-Text-var": "var(--xmlui-line-height-Text-var)", "color-Text-var": "var(--xmlui-color-Text-var)", "color-bg-Text-var": "var(--xmlui-color-bg-Text-var)", "border-radius-Text-var": "var(--xmlui-border-radius-Text-var)", "color-border-Text-var": "var(--xmlui-color-border-Text-var)", "thickness-border-Text-var": "var(--xmlui-thickness-border-Text-var)", "style-border-Text-var": "var(--xmlui-style-border-Text-var)", "margin-top-Text-var": "var(--xmlui-margin-top-Text-var)", "margin-bottom-Text-var": "var(--xmlui-margin-bottom-Text-var)", "padding-horizontal-Text-var": "var(--xmlui-padding-horizontal-Text-var)", "padding-vertical-Text-var": "var(--xmlui-padding-vertical-Text-var)", "transform-Text-var": "var(--xmlui-transform-Text-var)", "align-vertical-Text-var": "var(--xmlui-align-vertical-Text-var)", "letter-spacing-Text-var": "var(--xmlui-letter-spacing-Text-var)", "font-family-Text-title": "var(--xmlui-font-family-Text-title)", "font-size-Text-title": "var(--xmlui-font-size-Text-title)", "font-weight-Text-title": "var(--xmlui-font-weight-Text-title)", "font-style-Text-title": "var(--xmlui-font-style-Text-title)", "font-stretch-Text-title": "var(--xmlui-font-stretch-Text-title)", "line-decoration-Text-title": "var(--xmlui-line-decoration-Text-title)", "color-decoration-Text-title": "var(--xmlui-color-decoration-Text-title)", "style-decoration-Text-title": "var(--xmlui-style-decoration-Text-title)", "thickness-decoration-Text-title": "var(--xmlui-thickness-decoration-Text-title)", "offset-decoration-Text-title": "var(--xmlui-offset-decoration-Text-title)", "line-height-Text-title": "var(--xmlui-line-height-Text-title)", "color-Text-title": "var(--xmlui-color-Text-title)", "color-bg-Text-title": "var(--xmlui-color-bg-Text-title)", "border-radius-Text-title": "var(--xmlui-border-radius-Text-title)", "color-border-Text-title": "var(--xmlui-color-border-Text-title)", "thickness-border-Text-title": "var(--xmlui-thickness-border-Text-title)", "style-border-Text-title": "var(--xmlui-style-border-Text-title)", "margin-top-Text-title": "var(--xmlui-margin-top-Text-title)", "margin-bottom-Text-title": "var(--xmlui-margin-bottom-Text-title)", "padding-horizontal-Text-title": "var(--xmlui-padding-horizontal-Text-title)", "padding-vertical-Text-title": "var(--xmlui-padding-vertical-Text-title)", "transform-Text-title": "var(--xmlui-transform-Text-title)", "align-vertical-Text-title": "var(--xmlui-align-vertical-Text-title)", "letter-spacing-Text-title": "var(--xmlui-letter-spacing-Text-title)", "font-family-Text-subtitle": "var(--xmlui-font-family-Text-subtitle)", "font-size-Text-subtitle": "var(--xmlui-font-size-Text-subtitle)", "font-weight-Text-subtitle": "var(--xmlui-font-weight-Text-subtitle)", "font-style-Text-subtitle": "var(--xmlui-font-style-Text-subtitle)", "font-stretch-Text-subtitle": "var(--xmlui-font-stretch-Text-subtitle)", "line-decoration-Text-subtitle": "var(--xmlui-line-decoration-Text-subtitle)", "color-decoration-Text-subtitle": "var(--xmlui-color-decoration-Text-subtitle)", "style-decoration-Text-subtitle": "var(--xmlui-style-decoration-Text-subtitle)", "thickness-decoration-Text-subtitle": "var(--xmlui-thickness-decoration-Text-subtitle)", "offset-decoration-Text-subtitle": "var(--xmlui-offset-decoration-Text-subtitle)", "line-height-Text-subtitle": "var(--xmlui-line-height-Text-subtitle)", "color-Text-subtitle": "var(--xmlui-color-Text-subtitle)", "color-bg-Text-subtitle": "var(--xmlui-color-bg-Text-subtitle)", "border-radius-Text-subtitle": "var(--xmlui-border-radius-Text-subtitle)", "color-border-Text-subtitle": "var(--xmlui-color-border-Text-subtitle)", "thickness-border-Text-subtitle": "var(--xmlui-thickness-border-Text-subtitle)", "style-border-Text-subtitle": "var(--xmlui-style-border-Text-subtitle)", "margin-top-Text-subtitle": "var(--xmlui-margin-top-Text-subtitle)", "margin-bottom-Text-subtitle": "var(--xmlui-margin-bottom-Text-subtitle)", "padding-horizontal-Text-subtitle": "var(--xmlui-padding-horizontal-Text-subtitle)", "padding-vertical-Text-subtitle": "var(--xmlui-padding-vertical-Text-subtitle)", "transform-Text-subtitle": "var(--xmlui-transform-Text-subtitle)", "align-vertical-Text-subtitle": "var(--xmlui-align-vertical-Text-subtitle)", "letter-spacing-Text-subtitle": "var(--xmlui-letter-spacing-Text-subtitle)", "font-family-Text-small": "var(--xmlui-font-family-Text-small)", "font-size-Text-small": "var(--xmlui-font-size-Text-small)", "font-weight-Text-small": "var(--xmlui-font-weight-Text-small)", "font-style-Text-small": "var(--xmlui-font-style-Text-small)", "font-stretch-Text-small": "var(--xmlui-font-stretch-Text-small)", "line-decoration-Text-small": "var(--xmlui-line-decoration-Text-small)", "color-decoration-Text-small": "var(--xmlui-color-decoration-Text-small)", "style-decoration-Text-small": "var(--xmlui-style-decoration-Text-small)", "thickness-decoration-Text-small": "var(--xmlui-thickness-decoration-Text-small)", "offset-decoration-Text-small": "var(--xmlui-offset-decoration-Text-small)", "line-height-Text-small": "var(--xmlui-line-height-Text-small)", "color-Text-small": "var(--xmlui-color-Text-small)", "color-bg-Text-small": "var(--xmlui-color-bg-Text-small)", "border-radius-Text-small": "var(--xmlui-border-radius-Text-small)", "color-border-Text-small": "var(--xmlui-color-border-Text-small)", "thickness-border-Text-small": "var(--xmlui-thickness-border-Text-small)", "style-border-Text-small": "var(--xmlui-style-border-Text-small)", "margin-top-Text-small": "var(--xmlui-margin-top-Text-small)", "margin-bottom-Text-small": "var(--xmlui-margin-bottom-Text-small)", "padding-horizontal-Text-small": "var(--xmlui-padding-horizontal-Text-small)", "padding-vertical-Text-small": "var(--xmlui-padding-vertical-Text-small)", "transform-Text-small": "var(--xmlui-transform-Text-small)", "align-vertical-Text-small": "var(--xmlui-align-vertical-Text-small)", "letter-spacing-Text-small": "var(--xmlui-letter-spacing-Text-small)", "font-family-Text-caption": "var(--xmlui-font-family-Text-caption)", "font-size-Text-caption": "var(--xmlui-font-size-Text-caption)", "font-weight-Text-caption": "var(--xmlui-font-weight-Text-caption)", "font-style-Text-caption": "var(--xmlui-font-style-Text-caption)", "font-stretch-Text-caption": "var(--xmlui-font-stretch-Text-caption)", "line-decoration-Text-caption": "var(--xmlui-line-decoration-Text-caption)", "color-decoration-Text-caption": "var(--xmlui-color-decoration-Text-caption)", "style-decoration-Text-caption": "var(--xmlui-style-decoration-Text-caption)", "thickness-decoration-Text-caption": "var(--xmlui-thickness-decoration-Text-caption)", "offset-decoration-Text-caption": "var(--xmlui-offset-decoration-Text-caption)", "line-height-Text-caption": "var(--xmlui-line-height-Text-caption)", "color-Text-caption": "var(--xmlui-color-Text-caption)", "color-bg-Text-caption": "var(--xmlui-color-bg-Text-caption)", "border-radius-Text-caption": "var(--xmlui-border-radius-Text-caption)", "color-border-Text-caption": "var(--xmlui-color-border-Text-caption)", "thickness-border-Text-caption": "var(--xmlui-thickness-border-Text-caption)", "style-border-Text-caption": "var(--xmlui-style-border-Text-caption)", "margin-top-Text-caption": "var(--xmlui-margin-top-Text-caption)", "margin-bottom-Text-caption": "var(--xmlui-margin-bottom-Text-caption)", "padding-horizontal-Text-caption": "var(--xmlui-padding-horizontal-Text-caption)", "padding-vertical-Text-caption": "var(--xmlui-padding-vertical-Text-caption)", "transform-Text-caption": "var(--xmlui-transform-Text-caption)", "align-vertical-Text-caption": "var(--xmlui-align-vertical-Text-caption)", "letter-spacing-Text-caption": "var(--xmlui-letter-spacing-Text-caption)", "font-family-Text-placeholder": "var(--xmlui-font-family-Text-placeholder)", "font-size-Text-placeholder": "var(--xmlui-font-size-Text-placeholder)", "font-weight-Text-placeholder": "var(--xmlui-font-weight-Text-placeholder)", "font-style-Text-placeholder": "var(--xmlui-font-style-Text-placeholder)", "font-stretch-Text-placeholder": "var(--xmlui-font-stretch-Text-placeholder)", "line-decoration-Text-placeholder": "var(--xmlui-line-decoration-Text-placeholder)", "color-decoration-Text-placeholder": "var(--xmlui-color-decoration-Text-placeholder)", "style-decoration-Text-placeholder": "var(--xmlui-style-decoration-Text-placeholder)", "thickness-decoration-Text-placeholder": "var(--xmlui-thickness-decoration-Text-placeholder)", "offset-decoration-Text-placeholder": "var(--xmlui-offset-decoration-Text-placeholder)", "line-height-Text-placeholder": "var(--xmlui-line-height-Text-placeholder)", "color-Text-placeholder": "var(--xmlui-color-Text-placeholder)", "color-bg-Text-placeholder": "var(--xmlui-color-bg-Text-placeholder)", "border-radius-Text-placeholder": "var(--xmlui-border-radius-Text-placeholder)", "color-border-Text-placeholder": "var(--xmlui-color-border-Text-placeholder)", "thickness-border-Text-placeholder": "var(--xmlui-thickness-border-Text-placeholder)", "style-border-Text-placeholder": "var(--xmlui-style-border-Text-placeholder)", "margin-top-Text-placeholder": "var(--xmlui-margin-top-Text-placeholder)", "margin-bottom-Text-placeholder": "var(--xmlui-margin-bottom-Text-placeholder)", "padding-horizontal-Text-placeholder": "var(--xmlui-padding-horizontal-Text-placeholder)", "padding-vertical-Text-placeholder": "var(--xmlui-padding-vertical-Text-placeholder)", "transform-Text-placeholder": "var(--xmlui-transform-Text-placeholder)", "align-vertical-Text-placeholder": "var(--xmlui-align-vertical-Text-placeholder)", "letter-spacing-Text-placeholder": "var(--xmlui-letter-spacing-Text-placeholder)", "font-family-Text-paragraph": "var(--xmlui-font-family-Text-paragraph)", "font-size-Text-paragraph": "var(--xmlui-font-size-Text-paragraph)", "font-weight-Text-paragraph": "var(--xmlui-font-weight-Text-paragraph)", "font-style-Text-paragraph": "var(--xmlui-font-style-Text-paragraph)", "font-stretch-Text-paragraph": "var(--xmlui-font-stretch-Text-paragraph)", "line-decoration-Text-paragraph": "var(--xmlui-line-decoration-Text-paragraph)", "color-decoration-Text-paragraph": "var(--xmlui-color-decoration-Text-paragraph)", "style-decoration-Text-paragraph": "var(--xmlui-style-decoration-Text-paragraph)", "thickness-decoration-Text-paragraph": "var(--xmlui-thickness-decoration-Text-paragraph)", "offset-decoration-Text-paragraph": "var(--xmlui-offset-decoration-Text-paragraph)", "line-height-Text-paragraph": "var(--xmlui-line-height-Text-paragraph)", "color-Text-paragraph": "var(--xmlui-color-Text-paragraph)", "color-bg-Text-paragraph": "var(--xmlui-color-bg-Text-paragraph)", "border-radius-Text-paragraph": "var(--xmlui-border-radius-Text-paragraph)", "color-border-Text-paragraph": "var(--xmlui-color-border-Text-paragraph)", "thickness-border-Text-paragraph": "var(--xmlui-thickness-border-Text-paragraph)", "style-border-Text-paragraph": "var(--xmlui-style-border-Text-paragraph)", "margin-top-Text-paragraph": "var(--xmlui-margin-top-Text-paragraph)", "margin-bottom-Text-paragraph": "var(--xmlui-margin-bottom-Text-paragraph)", "padding-horizontal-Text-paragraph": "var(--xmlui-padding-horizontal-Text-paragraph)", "padding-vertical-Text-paragraph": "var(--xmlui-padding-vertical-Text-paragraph)", "transform-Text-paragraph": "var(--xmlui-transform-Text-paragraph)", "align-vertical-Text-paragraph": "var(--xmlui-align-vertical-Text-paragraph)", "letter-spacing-Text-paragraph": "var(--xmlui-letter-spacing-Text-paragraph)", "font-family-Text-subheading": "var(--xmlui-font-family-Text-subheading)", "font-size-Text-subheading": "var(--xmlui-font-size-Text-subheading)", "font-weight-Text-subheading": "var(--xmlui-font-weight-Text-subheading)", "font-style-Text-subheading": "var(--xmlui-font-style-Text-subheading)", "font-stretch-Text-subheading": "var(--xmlui-font-stretch-Text-subheading)", "line-decoration-Text-subheading": "var(--xmlui-line-decoration-Text-subheading)", "color-decoration-Text-subheading": "var(--xmlui-color-decoration-Text-subheading)", "style-decoration-Text-subheading": "var(--xmlui-style-decoration-Text-subheading)", "thickness-decoration-Text-subheading": "var(--xmlui-thickness-decoration-Text-subheading)", "offset-decoration-Text-subheading": "var(--xmlui-offset-decoration-Text-subheading)", "line-height-Text-subheading": "var(--xmlui-line-height-Text-subheading)", "color-Text-subheading": "var(--xmlui-color-Text-subheading)", "color-bg-Text-subheading": "var(--xmlui-color-bg-Text-subheading)", "border-radius-Text-subheading": "var(--xmlui-border-radius-Text-subheading)", "color-border-Text-subheading": "var(--xmlui-color-border-Text-subheading)", "thickness-border-Text-subheading": "var(--xmlui-thickness-border-Text-subheading)", "style-border-Text-subheading": "var(--xmlui-style-border-Text-subheading)", "margin-top-Text-subheading": "var(--xmlui-margin-top-Text-subheading)", "margin-bottom-Text-subheading": "var(--xmlui-margin-bottom-Text-subheading)", "padding-horizontal-Text-subheading": "var(--xmlui-padding-horizontal-Text-subheading)", "padding-vertical-Text-subheading": "var(--xmlui-padding-vertical-Text-subheading)", "transform-Text-subheading": "var(--xmlui-transform-Text-subheading)", "align-vertical-Text-subheading": "var(--xmlui-align-vertical-Text-subheading)", "letter-spacing-Text-subheading": "var(--xmlui-letter-spacing-Text-subheading)", "font-family-Text-tableheading": "var(--xmlui-font-family-Text-tableheading)", "font-size-Text-tableheading": "var(--xmlui-font-size-Text-tableheading)", "font-weight-Text-tableheading": "var(--xmlui-font-weight-Text-tableheading)", "font-style-Text-tableheading": "var(--xmlui-font-style-Text-tableheading)", "font-stretch-Text-tableheading": "var(--xmlui-font-stretch-Text-tableheading)", "line-decoration-Text-tableheading": "var(--xmlui-line-decoration-Text-tableheading)", "color-decoration-Text-tableheading": "var(--xmlui-color-decoration-Text-tableheading)", "style-decoration-Text-tableheading": "var(--xmlui-style-decoration-Text-tableheading)", "thickness-decoration-Text-tableheading": "var(--xmlui-thickness-decoration-Text-tableheading)", "offset-decoration-Text-tableheading": "var(--xmlui-offset-decoration-Text-tableheading)", "line-height-Text-tableheading": "var(--xmlui-line-height-Text-tableheading)", "color-Text-tableheading": "var(--xmlui-color-Text-tableheading)", "color-bg-Text-tableheading": "var(--xmlui-color-bg-Text-tableheading)", "border-radius-Text-tableheading": "var(--xmlui-border-radius-Text-tableheading)", "color-border-Text-tableheading": "var(--xmlui-color-border-Text-tableheading)", "thickness-border-Text-tableheading": "var(--xmlui-thickness-border-Text-tableheading)", "style-border-Text-tableheading": "var(--xmlui-style-border-Text-tableheading)", "margin-top-Text-tableheading": "var(--xmlui-margin-top-Text-tableheading)", "margin-bottom-Text-tableheading": "var(--xmlui-margin-bottom-Text-tableheading)", "padding-horizontal-Text-tableheading": "var(--xmlui-padding-horizontal-Text-tableheading)", "padding-vertical-Text-tableheading": "var(--xmlui-padding-vertical-Text-tableheading)", "transform-Text-tableheading": "var(--xmlui-transform-Text-tableheading)", "align-vertical-Text-tableheading": "var(--xmlui-align-vertical-Text-tableheading)", "letter-spacing-Text-tableheading": "var(--xmlui-letter-spacing-Text-tableheading)", "font-family-Text-secondary": "var(--xmlui-font-family-Text-secondary)", "font-size-Text-secondary": "var(--xmlui-font-size-Text-secondary)", "font-weight-Text-secondary": "var(--xmlui-font-weight-Text-secondary)", "font-style-Text-secondary": "var(--xmlui-font-style-Text-secondary)", "font-stretch-Text-secondary": "var(--xmlui-font-stretch-Text-secondary)", "line-decoration-Text-secondary": "var(--xmlui-line-decoration-Text-secondary)", "color-decoration-Text-secondary": "var(--xmlui-color-decoration-Text-secondary)", "style-decoration-Text-secondary": "var(--xmlui-style-decoration-Text-secondary)", "thickness-decoration-Text-secondary": "var(--xmlui-thickness-decoration-Text-secondary)", "offset-decoration-Text-secondary": "var(--xmlui-offset-decoration-Text-secondary)", "line-height-Text-secondary": "var(--xmlui-line-height-Text-secondary)", "color-Text-secondary": "var(--xmlui-color-Text-secondary)", "color-bg-Text-secondary": "var(--xmlui-color-bg-Text-secondary)", "border-radius-Text-secondary": "var(--xmlui-border-radius-Text-secondary)", "color-border-Text-secondary": "var(--xmlui-color-border-Text-secondary)", "thickness-border-Text-secondary": "var(--xmlui-thickness-border-Text-secondary)", "style-border-Text-secondary": "var(--xmlui-style-border-Text-secondary)", "margin-top-Text-secondary": "var(--xmlui-margin-top-Text-secondary)", "margin-bottom-Text-secondary": "var(--xmlui-margin-bottom-Text-secondary)", "padding-horizontal-Text-secondary": "var(--xmlui-padding-horizontal-Text-secondary)", "padding-vertical-Text-secondary": "var(--xmlui-padding-vertical-Text-secondary)", "transform-Text-secondary": "var(--xmlui-transform-Text-secondary)", "align-vertical-Text-secondary": "var(--xmlui-align-vertical-Text-secondary)", "letter-spacing-Text-secondary": "var(--xmlui-letter-spacing-Text-secondary)"}'`,text:"_text_1v46g_13",abbr:"_abbr_1v46g_23",cite:"_cite_1v46g_51",codefence:"_codefence_1v46g_79",code:"_code_1v46g_79",deleted:"_deleted_1v46g_135",inserted:"_inserted_1v46g_178",keyboard:"_keyboard_1v46g_221",marked:"_marked_1v46g_249",mono:"_mono_1v46g_292",sample:"_sample_1v46g_320",sup:"_sup_1v46g_348",sub:"_sub_1v46g_376",var:"_var_1v46g_404",title:"_title_1v46g_432",subtitle:"_subtitle_1v46g_460",small:"_small_1v46g_488",caption:"_caption_1v46g_516",placeholder:"_placeholder_1v46g_544",paragraph:"_paragraph_1v46g_572",subheading:"_subheading_1v46g_600",tableheading:"_tableheading_1v46g_628",secondary:"_secondary_1v46g_656",strong:"_strong_1v46g_684",truncateOverflow:"_truncateOverflow_1v46g_692",preserveLinebreaks:"_preserveLinebreaks_1v46g_699",noEllipsis:"_noEllipsis_1v46g_703"},Bn=d.forwardRef(function({uid:e,variant:t,maxLines:r=0,style:n,children:o,preserveLinebreaks:i,ellipses:a=!0,...s},l){const c=d.useRef(null),u=l?Zr(c,l):c,g=d.useMemo(()=>!t||!dH[t]?"div":dH[t],[t]);return Q.jsx(Q.Fragment,{children:Q.jsx(g,{...s,ref:u,className:KA([yd.text,yd[t||"default"],{[yd.truncateOverflow]:r>0,[yd.preserveLinebreaks]:i,[yd.noEllipsis]:!a}]),style:{...n,...oG(r)},children:o})})}),ZA="Text",l_A=kA({description:`The \`${ZA}\` component displays textual information in a number of optional styles and variants.`,props:{value:j(`The text to be displayed. This value can also be set via nesting the text into the \`${ZA}\` component.`),variant:j("Optional string value that provides named presets for text variants with a unique combination of font style, weight, size, color and other parameters.",mDA),maxLines:j("This property determines the maximum number of lines the component can wrap to. If there is no space to display all the contents, the component displays up to as many lines as specified in this property."),preserveLinebreaks:j("This property indicates if linebreaks should be preserved when displaying text."),ellipses:j("This property indicates whether ellipses should be displayed when the text is cropped (`true`) or not (`false`).")},themeVars:ne(yd.themeVars),defaultThemeVars:{[`border-radius-${ZA}`]:"$radius",[`style-border-${ZA}`]:"solid",[`font-size-${ZA}`]:"$font-size-small",[`thickness-border-${ZA}`]:"$space-0",[`font-weight-${ZA}-abbr`]:"$font-weight-bold",[`transform-${ZA}-abbr`]:"uppercase",[`font-size-${ZA}-secondary`]:"$font-size-small",[`font-style-${ZA}-cite`]:"italic",[`color-${ZA}`]:"$color-text-primary",[`font-family-${ZA}`]:"$font-family",[`font-weight-${ZA}`]:"$font-weight-normal",[`font-family-${ZA}-code`]:"$font-family-monospace",[`font-size-${ZA}-code`]:"$font-size-small",[`thickness-border-${ZA}-code`]:"1px",[`padding-horizontal-${ZA}-code`]:"$space-1",[`line-decoration-${ZA}-deleted`]:"line-through",[`line-decoration-${ZA}-inserted`]:"underline",[`font-family-${ZA}-keyboard`]:"$font-family-monospace",[`font-size-${ZA}-keyboard`]:"$font-size-small",[`font-weight-${ZA}-keyboard`]:"$font-weight-bold",[`thickness-border-${ZA}-keyboard`]:"1px",[`padding-horizontal-${ZA}-keyboard`]:"$space-1",[`font-family-${ZA}-sample`]:"$font-family-monospace",[`font-size-${ZA}-sample`]:"$font-size-small",[`font-size-${ZA}-sup`]:"$font-size-smaller",[`align-vertical-${ZA}-sup`]:"super",[`font-size-${ZA}-sub`]:"$font-size-smaller",[`align-vertical-${ZA}-sub`]:"sub",[`font-style-${ZA}-var`]:"italic",[`font-family-${ZA}-mono`]:"$font-family-monospace",[`font-size-${ZA}-title`]:"$font-size-large",[`font-size-${ZA}-subtitle`]:"$font-size-medium",[`font-size-${ZA}-small`]:"$font-size-small",[`line-height-${ZA}-small`]:"$line-height-tight",[`letter-spacing-${ZA}-caption`]:"0.05rem",[`font-size-${ZA}-placeholder`]:"$font-size-small",[`font-family-${ZA}-codefence`]:"$font-family-monospace",[`padding-horizontal-${ZA}-codefence`]:"$space-3",[`padding-vertical-${ZA}-codefence`]:"$space-2",[`padding-vertical-${ZA}-paragraph`]:"$space-1",[`font-size-${ZA}-subheading`]:"$font-size-H6",[`font-weight-${ZA}-subheading`]:"$font-weight-bold",[`letter-spacing-${ZA}-subheading`]:"0.04em",[`transform-${ZA}-subheading`]:"uppercase",[`margin-top-${ZA}-tableheading`]:"$space-1",[`margin-bottom-${ZA}-tableheading`]:"$space-4",[`padding-horizontal-${ZA}-tableheading`]:"$space-1",[`font-weight-${ZA}-tableheading`]:"$font-weight-bold",light:{[`color-bg-${ZA}-code`]:"$color-surface-100",[`color-border-${ZA}-code`]:"$color-surface-200",[`color-bg-${ZA}-keyboard`]:"$color-surface-200",[`color-border-${ZA}-keyboard`]:"$color-surface-300",[`color-bg-${ZA}-marked`]:"yellow",[`color-${ZA}-placeholder`]:"$color-surface-500",[`color-bg-${ZA}-codefence`]:"$color-primary-100",[`color-${ZA}-codefence`]:"$color-surface-900",[`color-${ZA}-subheading`]:"$color-text-secondary",[`color-${ZA}-secondary`]:"$color-text-secondary"},dark:{[`color-bg-${ZA}-code`]:"$color-surface-800",[`color-border-${ZA}-code`]:"$color-surface-700",[`color-bg-${ZA}-keyboard`]:"$color-surface-800",[`color-border-${ZA}-keyboard`]:"$color-surface-700",[`color-bg-${ZA}-marked`]:"orange",[`color-${ZA}-placeholder`]:"$color-surface-500",[`color-bg-${ZA}-codefence`]:"$color-primary-800",[`color-${ZA}-codefence`]:"$color-surface-200",[`color-${ZA}-subheading`]:"$color-text-secondary",[`color-${ZA}-secondary`]:"$color-text-secondary"}}}),c_A=RA(ZA,l_A,({node:A,extractValue:e,layoutCss:t,renderChild:r})=>{const{variant:n,maxLines:o,preserveLinebreaks:i,ellipses:a,value:s,...l}=A.props,c=Object.fromEntries(Object.entries(l).filter(([u,g])=>IDA.includes(u)).map(([u,g])=>[u,e(g)]));return Q.jsx(Bn,{variant:e(n),maxLines:e.asOptionalNumber(o),style:t,preserveLinebreaks:e.asOptionalBoolean(i,!1),ellipses:e.asOptionalBoolean(a,!0),...c,children:e.asDisplayText(s)||r(A.children)})}),uG="Fragment",u_A=kA({description:`The \`${uG}\` component encloses multiple child components into a single root component, so it can be used where only a single component definition is allowed.`,opaque:!0}),f_A=RA(uG,u_A,({node:A,extractValue:e,renderChild:t,layoutContext:r})=>Q.jsx(d.Fragment,{children:t(A.children,r)},e(A.uid))),xt={themeVars:`'{"color-text-pagination-Table": "var(--xmlui-color-text-pagination-Table)", "color-bg-Table": "var(--xmlui-color-bg-Table)", "color-text-Table": "var(--xmlui-color-text-Table)", "color-bg-row-Table": "var(--xmlui-color-bg-row-Table)", "color-bg-row-Table--hover": "var(--xmlui-color-bg-row-Table--hover)", "color-bg-selected-Table": "var(--xmlui-color-bg-selected-Table)", "color-bg-selected-Table--hover": "var(--xmlui-color-bg-selected-Table--hover)", "color-bg-heading-Table": "var(--xmlui-color-bg-heading-Table)", "color-bg-heading-Table--hover": "var(--xmlui-color-bg-heading-Table--hover)", "color-bg-heading-Table--active": "var(--xmlui-color-bg-heading-Table--active)", "padding-horizontal-heading-Table": "var(--xmlui-padding-horizontal-heading-Table)", "padding-vertical-heading-Table": "var(--xmlui-padding-vertical-heading-Table)", "padding-heading-Table": "var(--xmlui-padding-heading-Table)", "padding-horizontal-cell-Table": "var(--xmlui-padding-horizontal-cell-Table)", "padding-horizontal-cell-first-Table": "var(--xmlui-padding-horizontal-cell-first-Table)", "padding-horizontal-cell-last-Table": "var(--xmlui-padding-horizontal-cell-last-Table)", "padding-vertical-cell-Table": "var(--xmlui-padding-vertical-cell-Table)", "padding-cell-Table": "var(--xmlui-padding-cell-Table)", "color-border-cell-Table": "var(--xmlui-color-border-cell-Table)", "thickness-border-cell-Table": "var(--xmlui-thickness-border-cell-Table)", "style-border-cell-Table": "var(--xmlui-style-border-cell-Table)", "border-cell-Table": "var(--xmlui-border-cell-Table)", "color-bg-pagination-Table": "var(--xmlui-color-bg-pagination-Table)", "color-text-heading-Table": "var(--xmlui-color-text-heading-Table)", "font-weight-row-Table": "var(--xmlui-font-weight-row-Table)", "font-size-row-Table": "var(--xmlui-font-size-row-Table)", "font-weight-heading-Table": "var(--xmlui-font-weight-heading-Table)", "font-size-heading-Table": "var(--xmlui-font-size-heading-Table)", "transform-text-heading-Table": "var(--xmlui-transform-text-heading-Table)", "thickness-outline-heading-Table--focus": "var(--xmlui-thickness-outline-heading-Table--focus)", "color-outline-heading-Table--focus": "var(--xmlui-color-outline-heading-Table--focus)", "style-outline-heading-Table--focus": "var(--xmlui-style-outline-heading-Table--focus)", "offset-outline-heading-Table--focus": "var(--xmlui-offset-outline-heading-Table--focus)"}'`,wrapper:"_wrapper_7jlv4_13",noScroll:"_noScroll_7jlv4_19",headerWrapper:"_headerWrapper_7jlv4_23",tableBody:"_tableBody_7jlv4_23",clickableHeader:"_clickableHeader_7jlv4_29",headerContent:"_headerContent_7jlv4_39",headerRow:"_headerRow_7jlv4_67",columnCell:"_columnCell_7jlv4_72",cell:"_cell_7jlv4_72",table:"_table_7jlv4_23",row:"_row_7jlv4_83",checkBoxWrapper:"_checkBoxWrapper_7jlv4_89",showInHeader:"_showInHeader_7jlv4_93",selected:"_selected_7jlv4_96",allSelected:"_allSelected_7jlv4_96",focused:"_focused_7jlv4_142",disabled:"_disabled_7jlv4_154",noRows:"_noRows_7jlv4_179",pagination:"_pagination_7jlv4_185",paginationLabel:"_paginationLabel_7jlv4_201",paginationSelect:"_paginationSelect_7jlv4_206",paginationButtons:"_paginationButtons_7jlv4_212",searchIconWrapper:"_searchIconWrapper_7jlv4_217",loadingWrapper:"_loadingWrapper_7jlv4_224",resizer:"_resizer_7jlv4_239",isResizing:"_isResizing_7jlv4_261"};var g_A={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_Pdf:"false",VITE_USED_COMPONENTS_Chart:"false",VITE_USER_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_XMLUI_VERSION:"0.7.18 (built 1/31/2025)"};function uc(A,e){return typeof A=="function"?A(e):A}function Ho(A,e){return t=>{e.setState(r=>({...r,[A]:uc(t,r[A])}))}}function Ew(A){return A instanceof Function}function d_A(A){return Array.isArray(A)&&A.every(e=>typeof e=="number")}function h_A(A,e){const t=[],r=n=>{n.forEach(o=>{t.push(o);const i=e(o);i!=null&&i.length&&r(i)})};return r(A),t}function Se(A,e,t){let r=[],n;return o=>{let i;t.key&&t.debug&&(i=Date.now());const a=A(o);if(!(a.length!==r.length||a.some((c,u)=>r[u]!==c)))return n;r=a;let l;if(t.key&&t.debug&&(l=Date.now()),n=e(...a),t==null||t.onChange==null||t.onChange(n),t.key&&t.debug&&t!=null&&t.debug()){const c=Math.round((Date.now()-i)*100)/100,u=Math.round((Date.now()-l)*100)/100,g=u/16,h=(B,E)=>{for(B=String(B);B.length<E;)B=" "+B;return B};console.info(`%c⏱ ${h(u,5)} /${h(c,5)} ms`,`
|
|
400
|
+
`)),Object.setPrototypeOf(this,tw.prototype)}}const abA=d.memo(d.forwardRef(function({node:e,parentState:t,resolvedKey:r,parentStateFieldPartChanged:n,parentRegisterComponentApi:o,layoutContextRef:i,parentRenderContext:a,isImplicit:s,parentDispatch:l,uidInfoRef:c},u){const[g,h]=d.useState(0),B=ibA(),E=d.useRef(new Map),C=kn(d.useMemo(()=>hbA(t,e.uses),[e.uses,t])),m=$k(),I=rbA(m),[v,y]=d.useReducer(I,qe),[x,b]=d.useState(qe),k=kn(d.useMemo(()=>{const J={...v};for(const $ of Object.getOwnPropertySymbols(v)){const U=v[$];$.description&&(J[$.description]=U)}if(Reflect.ownKeys(x).length===0)return J;for(const $ of Object.getOwnPropertySymbols(x)){const U=x[$];if($.description){const AA=$.description;J[AA]={...J[AA]||{},...U}}J[$]={...J[$],...U}}return J},[v,x])),M=d7(C,k,e.contextVars),N=e.scriptCollected;if(N!=null&&N.moduleErrors&&!jl(N.moduleErrors))throw new tw(N.moduleErrors);if(e.scriptError&&!jl(e.scriptError))throw new tw(e.scriptError);const F=sQ(v),L=kn({...N==null?void 0:N.functions,...e.functions,...N==null?void 0:N.vars,...e.vars}),T=d.useMemo(()=>{const J={};return Object.entries(L).forEach(([$,U])=>{rw(U)&&U.tree.type==="ArrowE"&&(J[$]=RQ(U.tree,F))}),zyA(J)},[F,L]),P=h7(L,T,M,d.useRef(new Map)),G=kn({...P,...M}),H=h7(L,T,G,E),z=pbA(H,k),q=d7(C,e.contextVars,z,B),O=d.useCallback((J,$)=>{b(No(U=>{U[J]||(U[J]={}),Object.entries($).forEach(([AA,Z])=>{U[J][AA]!==Z&&(U[J][AA]=Z)})}))},[]),Y=d.useRef(k),S=d.useCallback((J,$,U,AA)=>{const Z=J[0];Z in Y.current||Z in H?y(QbA(J,$,U,AA)):(!e.uses||e.uses.includes(Z))&&n(J,$,U,AA)},[H,e.uses,n]);return Q.jsx(Zp,{node:e,location:"container",children:Q.jsx(obA,{resolvedKey:r,node:e,componentState:q,dispatch:y,parentDispatch:l,setVersion:h,version:g,stateFieldPartChanged:S,registerComponentApi:O,parentRegisterComponentApi:o,layoutContextRef:i,parentRenderContext:a,memoedVarsRef:E,isImplicit:s,ref:u,uidInfoRef:c})})})),sbA=A=>{var t,r;if(A.type==="Container")return A;const e={...A,props:{...A.props}};return delete e.loaders,delete e.vars,delete e.functions,delete e.script,delete e.scriptCollected,delete e.scriptError,delete e.uses,(t=e.props)==null||delete t.uses,delete e.api,delete e.contextVars,{type:"Container",uid:A.uid,when:A.when,loaders:A.loaders,vars:A.vars,functions:A.functions,scriptCollected:A.scriptCollected,scriptError:A.scriptError,uses:A.uses,api:A.api,containerUid:"containerUid"in A&&A.containerUid,apiBoundContainer:"apiBoundContainer"in A&&A.apiBoundContainer,contextVars:A.contextVars,props:{debug:(r=A.props)==null?void 0:r.debug},children:[e]}},lbA=d.memo(d.forwardRef(function({resolvedKey:e,node:t,parentState:r,parentStateFieldPartChanged:n,parentRegisterComponentApi:o,layoutContextRef:i,parentRenderContext:a,parentDispatch:s,uidInfoRef:l},c){const u=d.useMemo(()=>sbA(t),[t]);return Q.jsx(Zp,{node:t,location:"container",children:Q.jsx(abA,{parentStateFieldPartChanged:n,resolvedKey:e,node:u,parentState:r,layoutContextRef:i,parentRenderContext:a,isImplicit:t.type!=="Container"&&u.uses===void 0,parentRegisterComponentApi:o,parentDispatch:s,ref:c,uidInfoRef:l})})}));function g7({node:A,state:e,dispatch:t,appContext:r,lookupAction:n,lookupSyncCallback:o,registerComponentApi:i,renderChild:a,stateFieldPartChanged:s,layoutContext:l,parentRenderContext:c,memoedVarsRef:u,cleanup:g,uidInfoRef:h}){var C,m,I;if(!ck(A.when,e,r))return null;const B=(C=A.props)==null?void 0:C.value;if(A.type==="TextNodeCData")return B??"";if(A.type==="TextNode")return Fe(e,B,r,!0);if(A.type==="Slot"){let v;const y=(m=A.props)==null?void 0:m.name;if(console.log("templateName",y),y){if(!y.endsWith("Template"))throw new Error(`Slot name '${y}' is not valid. A named slot should use a name ending with 'Template'.`);v=(I=c==null?void 0:c.props)==null?void 0:I[y]}else v=c==null?void 0:c.children;if(v||(v=A.children),v){const x=Array.isArray(v)?v:[v];if(x.length===1&&c&&(x[0].type==="TextNodeCData"||x[0].type==="TextNode"))return c.renderChild(x)}}const E=Fe(e,A.uid,r,!0);return Q.jsx(dbA,{resolvedKey:E,node:A,cleanup:g,stateFieldPartChanged:s,memoedVarsRef:u,state:e,dispatch:t,appContext:r,lookupAction:n,lookupSyncCallback:o,registerComponentApi:i,renderChild:a,layoutContext:l,parentRenderContext:c,uidInfoRef:h},E)}function cbA(A){var n;let e=!1,t=A.loaders,r;return(n=A.children)==null||n.forEach(o=>{(o==null?void 0:o.type)==="DataSource"?(e=!0,t||(t=[]),t.push({uid:o.uid,type:"DataLoader",props:o.props,events:o.events,when:o.when})):(r||(r=[]),r.push(o))}),e?{...A,children:r,loaders:t}:A}function ubA(A,e){if(!A.props)return A;let t={...A},r=!1;return Object.entries(A.props).forEach(([n,o])=>{let i;try{i=Fe(e.current,o)}catch{}(i==null?void 0:i.type)==="loader"&&(r=!0,t={...t,props:{...t.props,[n]:{type:"DataSourceRef",uid:i.uid}}})}),r?t:A}function fbA(A,e,t){var r;return!((r=A.props)!=null&&r.__DATA_RESOLVED)&&A.props&&"data"in A.props&&e?Fe(t.current,A.props.data)==="loaderValue"?A:{...A,props:{...A.props,data:{type:"DataSource",props:{url:A.props.data}}}}:A}function gbA(A){return A.props&&"raw_data"in A.props?{...A,props:{...A.props,__DATA_RESOLVED:!0,data:A.props.raw_data}}:A}const dbA=d.memo(d.forwardRef(function({node:e,state:t,dispatch:r,appContext:n,lookupAction:o,lookupSyncCallback:i,registerComponentApi:a,renderChild:s,stateFieldPartChanged:l,layoutContext:c,parentRenderContext:u,memoedVarsRef:g,resolvedKey:h,cleanup:B,uidInfoRef:E,...C},m){var k;const I=d.useRef(c),v=d.useMemo(()=>{let M=cbA(e);return M=ubA(M,E),M=gbA(M),M},[e,E]),y=d.useMemo(()=>{var N;return typeof Fe(t,(N=v.props)==null?void 0:N.data,n,!0)=="string"},[n,(k=v.props)==null?void 0:k.data,t]),x=d.useMemo(()=>fbA(v,y,E),[v,y,E]);let b=null;return NwA(x)?b=Q.jsx(lbA,{resolvedKey:h,node:x,parentState:t,parentDispatch:r,layoutContextRef:I,parentRenderContext:u,parentStateFieldPartChanged:l,parentRegisterComponentApi:a,uidInfoRef:E,ref:m}):b=Q.jsx($yA,{onUnmount:B,memoedVarsRef:g,node:x,state:t,dispatch:r,appContext:n,lookupAction:o,lookupSyncCallback:i,registerComponentApi:a,renderChild:s,parentRenderContext:u,layoutContextRef:I,ref:m,uidInfoRef:E,...C}),b}));function hbA(A,e){return e?e.length===0?qe:VF(A,e):A}function d7(...A){const e=d.useMemo(()=>{let t={};return A.forEach((r=qe)=>{r!==qe&&(t={...t,...r})}),t},[A]);return kn(e)}function pbA(A,e){const t=d.useMemo(()=>{const r={...A};return Reflect.ownKeys(e).forEach(n=>{const o=e[n];r[n]===void 0?r[n]=o:_o(r[n])&&_o(o)?r[n]=wm(Fa(r[n]),o):Array.isArray(r[n])&&Array.isArray(o)?r[n]=Object.assign([],r[n],o):r[n]=o}),r},[A,e]);return kn(t)}class BbA extends Error{constructor(e,t){super(`Error on var: ${e} - ${(t==null?void 0:t.message)||"unknown"}`)}}function rw(A){return A&&typeof A=="object"&&A[ew]}function h7(A=qe,e=qe,t,r){const n=Ii(),o=sQ(t),i=d.useMemo(()=>{const a={};return Object.entries(A).forEach(([s,l])=>{if(s==="$props")a[s]=l;else if(!rw(l)&&typeof l!="string")a[s]=l;else{r.current.has(l)||r.current.set(l,{getDependencies:gB((B,E)=>{if(rw(B))return RQ(B.tree,E);const C=QQ(B);let m=new Set;return C.forEach(I=>{I.type==="expression"&&(m=new Set([...m,...RQ(I.value,E)]))}),Array.from(m)}),obtainValue:gB((B,E,C,m,I,v)=>{try{return rw(B)?hn(B.tree,{localContext:E,appContext:C,options:{defaultToOptionalMemberAccess:!0}}):Fe(E,B,C,m)}catch(y){throw console.log(E),new BbA(B,y)}},([B,E,C,m,I,v],[y,x,b,k,M,N])=>lB(I,M)&&lB(v,N))});const c={...a,...t};let u=[];e[s]?u=e[s]:(r.current.get(l).getDependencies(l,o).forEach(B=>{e[B]?u.push(...e[B]):u.push(B)}),u=[...new Set(u)]);const g=eQ(c,u),h=eQ(n,u);a[s]=r.current.get(l).obtainValue(l,c,n,!0,g,h)}}),a},[n,t,e,r,o,A]);return kn(i)}function jk(A,e){return A!==void 0&&e!==void 0}function EbA(A,e){return{type:en.EVENT_HANDLER_STARTED,payload:{uid:A,eventName:e}}}function CbA(A,e){return{type:en.EVENT_HANDLER_COMPLETED,payload:{uid:A,eventName:e}}}function mbA(A,e,t){return{type:en.EVENT_HANDLER_ERROR,payload:{uid:A,eventName:e,error:t}}}function QbA(A,e,t,r){return{type:en.STATE_PART_CHANGED,payload:{path:A,value:e,target:t,actionType:r}}}function p7({uidInfo:A,uidInfoRef:e,loaders:t=Jt,componentState:r,dispatch:n,appContext:o,registerComponentApi:i,lookupAction:a,lookupSyncCallback:s,cleanup:l,memoedVarsRef:c}){return t.map(g=>{if(g!=null&&g.uid){if(A[g.uid])throw new Error(`Another ${A[g.uid]} definition in this container already uses the uid '${g.uid}'`);A[g.uid]="loader",e.current[g.uid]={type:"loader",value:"loaderValue",uid:g.uid}}const h=u({loader:g,componentState:r,dispatch:n,appContext:o,registerComponentApi:i,lookupAction:a,lookupSyncCallback:s,memoedVarsRef:c,cleanup:l});if(h!==void 0)return Q.jsx(d.Fragment,{children:h},g.uid)});function u({loader:g,componentState:h,dispatch:B,appContext:E,registerComponentApi:C,lookupAction:m,lookupSyncCallback:I,cleanup:v,memoedVarsRef:y}){return!g||!ck(g.when,h,E)?null:Q.jsx(WyA,{onUnmount:v,node:g,state:h,dispatch:B,registerComponentApi:C,lookupAction:m,lookupSyncCallback:I,memoedVarsRef:y,appContext:E})}}var B7={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},E7=_A.createContext&&_A.createContext(B7),ac=function(){return ac=Object.assign||function(A){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},ac.apply(this,arguments)},wbA=function(A,e){var t={};for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&e.indexOf(r)<0&&(t[r]=A[r]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(A);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(A,r[n])&&(t[r[n]]=A[r[n]]);return t};function C7(A){return A&&A.map(function(e,t){return _A.createElement(e.tag,ac({key:t},e.attr),C7(e.child))})}function UA(A){return function(e){return _A.createElement(IbA,ac({attr:ac({},A.attr)},e),C7(A.child))}}function IbA(A){var e=function(t){var r=A.attr,n=A.size,o=A.title,i=wbA(A,["attr","size","title"]),a=n||t.size||"1em",s;return t.className&&(s=t.className),A.className&&(s=(s?s+" ":"")+A.className),_A.createElement("svg",ac({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,i,{className:s,style:ac(ac({color:A.color||t.color},t.style),A.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&_A.createElement("title",null,o),A.children)};return E7!==void 0?_A.createElement(E7.Consumer,null,function(t){return e(t)}):e(B7)}function vbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"}},{tag:"line",attr:{x1:"12",y1:"8",x2:"12",y2:"12"}},{tag:"line",attr:{x1:"12",y1:"16",x2:"12.01",y2:"16"}}]})(A)}function DbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}},{tag:"polyline",attr:{points:"22 4 12 14.01 9 11.01"}}]})(A)}function ybA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"20 6 9 17 4 12"}}]})(A)}function bbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"6 9 12 15 18 9"}}]})(A)}function m7(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"15 18 9 12 15 6"}}]})(A)}function Q7(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"9 18 15 12 9 6"}}]})(A)}function xbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"18 15 12 9 6 15"}}]})(A)}function kbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"11 17 6 12 11 7"}},{tag:"polyline",attr:{points:"18 17 13 12 18 7"}}]})(A)}function _bA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"13 17 18 12 13 7"}},{tag:"polyline",attr:{points:"6 17 11 12 6 7"}}]})(A)}function MbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{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"}},{tag:"rect",attr:{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}}]})(A)}function SbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}},{tag:"polyline",attr:{points:"7 10 12 15 17 10"}},{tag:"line",attr:{x1:"12",y1:"15",x2:"12",y2:"3"}}]})(A)}function NbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"}}]})(A)}function w7(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"3",width:"7",height:"7"}},{tag:"rect",attr:{x:"14",y:"3",width:"7",height:"7"}},{tag:"rect",attr:{x:"14",y:"14",width:"7",height:"7"}},{tag:"rect",attr:{x:"3",y:"14",width:"7",height:"7"}}]})(A)}function RbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"22",y1:"12",x2:"2",y2:"12"}},{tag:"path",attr:{d:"M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"}},{tag:"line",attr:{x1:"6",y1:"16",x2:"6.01",y2:"16"}},{tag:"line",attr:{x1:"10",y1:"16",x2:"10.01",y2:"16"}}]})(A)}function PbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"}},{tag:"path",attr:{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}},{tag:"line",attr:{x1:"12",y1:"17",x2:"12.01",y2:"17"}}]})(A)}function TbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}},{tag:"polyline",attr:{points:"9 22 9 12 15 12 15 22"}}]})(A)}function LbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"}}]})(A)}function I7(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"8",y1:"6",x2:"21",y2:"6"}},{tag:"line",attr:{x1:"8",y1:"12",x2:"21",y2:"12"}},{tag:"line",attr:{x1:"8",y1:"18",x2:"21",y2:"18"}},{tag:"line",attr:{x1:"3",y1:"6",x2:"3.01",y2:"6"}},{tag:"line",attr:{x1:"3",y1:"12",x2:"3.01",y2:"12"}},{tag:"line",attr:{x1:"3",y1:"18",x2:"3.01",y2:"18"}}]})(A)}function FbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}},{tag:"path",attr:{d:"M7 11V7a5 5 0 0 1 10 0v4"}}]})(A)}function ObA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"1"}},{tag:"circle",attr:{cx:"19",cy:"12",r:"1"}},{tag:"circle",attr:{cx:"5",cy:"12",r:"1"}}]})(A)}function HbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"}}]})(A)}function GbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"1 4 1 10 7 10"}},{tag:"polyline",attr:{points:"23 20 23 14 17 14"}},{tag:"path",attr:{d:"M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15"}}]})(A)}function UbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"11",cy:"11",r:"8"}},{tag:"line",attr:{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}}]})(A)}function KbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"}},{tag:"line",attr:{x1:"4.93",y1:"4.93",x2:"19.07",y2:"19.07"}}]})(A)}function YbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"}}]})(A)}function $bA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}},{tag:"polyline",attr:{points:"17 8 12 3 7 8"}},{tag:"line",attr:{x1:"12",y1:"3",x2:"12",y2:"15"}}]})(A)}function jbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}},{tag:"circle",attr:{cx:"8.5",cy:"7",r:"4"}},{tag:"line",attr:{x1:"23",y1:"11",x2:"17",y2:"11"}}]})(A)}function qbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}},{tag:"circle",attr:{cx:"8.5",cy:"7",r:"4"}},{tag:"line",attr:{x1:"20",y1:"8",x2:"20",y2:"14"}},{tag:"line",attr:{x1:"23",y1:"11",x2:"17",y2:"11"}}]})(A)}function v7(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}},{tag:"circle",attr:{cx:"12",cy:"7",r:"4"}}]})(A)}function JbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}},{tag:"circle",attr:{cx:"9",cy:"7",r:"4"}},{tag:"path",attr:{d:"M23 21v-2a4 4 0 0 0-3-3.87"}},{tag:"path",attr:{d:"M16 3.13a4 4 0 0 1 0 7.75"}}]})(A)}function zbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"}},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"}}]})(A)}function WbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm192 472c0 4.4-3.6 8-8 8H544v152c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V544H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h152V328c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v152h152c4.4 0 8 3.6 8 8v48z"}}]})(A)}function VbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 0 0-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 0 0 471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0 1 42.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]})(A)}function XbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]})(A)}function ZbA(A){return UA({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]})(A)}function AxA(A){return UA({tag:"svg",attr:{t:"1551322312294",style:"",viewBox:"0 0 1024 1024",version:"1.1"},child:[{tag:"defs",attr:{},child:[]},{tag:"path",attr:{d:"M474 152m8 0l60 0q8 0 8 8l0 704q0 8-8 8l-60 0q-8 0-8-8l0-704q0-8 8-8Z"}},{tag:"path",attr:{d:"M168 474m8 0l672 0q8 0 8 8l0 60q0 8-8 8l-672 0q-8 0-8-8l0-60q0-8 8-8Z"}}]})(A)}function exA(A){return UA({tag:"svg",attr:{t:"1569683742680",viewBox:"0 0 1024 1024",version:"1.1"},child:[{tag:"defs",attr:{},child:[]},{tag:"path",attr:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2-8.5 2.1-13.8 10.7-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-0.9 3.7-0.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 0.7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-0.8 4.2-2.6 5-5 1.4-4.2-0.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]})(A)}function txA(A){return UA({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M464 720a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]})(A)}function rxA(A){return UA({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M8 4a.5.5 0 0 1 .5.5v5.793l2.146-2.147a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 1 1 .708-.708L7.5 10.293V4.5A.5.5 0 0 1 8 4z"}}]})(A)}function nxA(A){return UA({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M12 8a.5.5 0 0 1-.5.5H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 7.5H11.5a.5.5 0 0 1 .5.5z"}}]})(A)}function oxA(A){return UA({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"}}]})(A)}function ixA(A){return UA({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M8 12a.5.5 0 0 0 .5-.5V5.707l2.146 2.147a.5.5 0 0 0 .708-.708l-3-3a.5.5 0 0 0-.708 0l-3 3a.5.5 0 1 0 .708.708L7.5 5.707V11.5a.5.5 0 0 0 .5.5z"}}]})(A)}function axA(A){return UA({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M5 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm4 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"}},{tag:"path",attr:{d:"m2.165 15.803.02-.004c1.83-.363 2.948-.842 3.468-1.105A9.06 9.06 0 0 0 8 15c4.418 0 8-3.134 8-7s-3.582-7-8-7-8 3.134-8 7c0 1.76.743 3.37 1.97 4.6a10.437 10.437 0 0 1-.524 2.318l-.003.011a10.722 10.722 0 0 1-.244.637c-.079.186.074.394.273.362a21.673 21.673 0 0 0 .693-.125zm.8-3.108a1 1 0 0 0-.287-.801C1.618 10.83 1 9.468 1 8c0-3.192 3.004-6 7-6s7 2.808 7 6c0 3.193-3.004 6-7 6a8.06 8.06 0 0 1-2.088-.272 1 1 0 0 0-.711.074c-.387.196-1.24.57-2.634.893a10.97 10.97 0 0 0 .398-2z"}}]})(A)}function sxA(A){return UA({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8.39 12.648a1.32 1.32 0 0 0-.015.18c0 .305.21.508.5.508.266 0 .492-.172.555-.477l.554-2.703h1.204c.421 0 .617-.234.617-.547 0-.312-.188-.53-.617-.53h-.985l.516-2.524h1.265c.43 0 .618-.227.618-.547 0-.313-.188-.524-.618-.524h-1.046l.476-2.304a1.06 1.06 0 0 0 .016-.164.51.51 0 0 0-.516-.516.54.54 0 0 0-.539.43l-.523 2.554H7.617l.477-2.304c.008-.04.015-.118.015-.164a.512.512 0 0 0-.523-.516.539.539 0 0 0-.531.43L6.53 5.484H5.414c-.43 0-.617.22-.617.532 0 .312.187.539.617.539h.906l-.515 2.523H4.609c-.421 0-.609.219-.609.531 0 .313.188.547.61.547h.976l-.516 2.492c-.008.04-.015.125-.015.18 0 .305.21.508.5.508.265 0 .492-.172.554-.477l.555-2.703h2.242l-.515 2.492zm-1-6.109h2.266l-.515 2.563H6.859l.532-2.563z"}}]})(A)}function lxA(A){return UA({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M6 3.5a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-1 0V4a.5.5 0 0 1 .5-.5zm4 0a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-1 0V4a.5.5 0 0 1 .5-.5z"}}]})(A)}function cxA(A){return UA({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M10.804 8 5 4.633v6.734L10.804 8zm.792-.696a.802.802 0 0 1 0 1.392l-6.363 3.692C4.713 12.69 4 12.345 4 11.692V4.308c0-.653.713-.998 1.233-.696l6.363 3.692z"}}]})(A)}function uxA(A){return UA({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M6.598 5.013a.144.144 0 0 1 .202.134V6.3a.5.5 0 0 0 .5.5c.667 0 2.013.005 3.3.822.984.624 1.99 1.76 2.595 3.876-1.02-.983-2.185-1.516-3.205-1.799a8.74 8.74 0 0 0-1.921-.306 7.404 7.404 0 0 0-.798.008h-.013l-.005.001h-.001L7.3 9.9l-.05-.498a.5.5 0 0 0-.45.498v1.153c0 .108-.11.176-.202.134L2.614 8.254a.503.503 0 0 0-.042-.028.147.147 0 0 1 0-.252.499.499 0 0 0 .042-.028l3.984-2.933zM7.8 10.386c.068 0 .143.003.223.006.434.02 1.034.086 1.7.271 1.326.368 2.896 1.202 3.94 3.08a.5.5 0 0 0 .933-.305c-.464-3.71-1.886-5.662-3.46-6.66-1.245-.79-2.527-.942-3.336-.971v-.66a1.144 1.144 0 0 0-1.767-.96l-3.994 2.94a1.147 1.147 0 0 0 0 1.946l3.994 2.94a1.144 1.144 0 0 0 1.767-.96v-.667z"}}]})(A)}function fxA(A){return UA({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2z"}}]})(A)}function gxA(A){return UA({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 15V1h6a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H8zm6 1a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12z"}}]})(A)}function dxA(A){return UA({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"}}]})(A)}function hxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",stroke:"#000",strokeWidth:"2",d:"M4.99787498,8.99999999 L4.99787498,0.999999992 L19.4999998,0.999999992 L22.9999998,4.50000005 L23,23 L16,23 M18,1 L18,6 L23,6 M9,14 L9,11 M9,20 C10.6568542,20 12,18.6568542 12,17 C12,15.3431458 10.6568542,14 9,14 C7.34314575,14 6,15.3431458 6,17 C6,18.6568542 7.34314575,20 9,20 Z M9,23 L9,20 M12,17 L15,17 M3,17 L6,17 M5,13 L7,15 M11,19 L13,21 M13,13 L11,15 M7,19 L5,21"}}]})(A)}function pxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12,1.73A10.27,10.27,0,1,0,22.24,12,10.25,10.25,0,0,0,12,1.73ZM21,12a9,9,0,1,1-9-9A9,9,0,0,1,21,12Z"}},{tag:"path",attr:{d:"M8.8,11.05a1.55,1.55,0,1,0-1.51-1.5A1.56,1.56,0,0,0,8.8,11.05Z"}},{tag:"path",attr:{d:"M15.44,11.05a1.55,1.55,0,1,0,0-3.09,1.53,1.53,0,0,0-1.51,1.59A1.51,1.51,0,0,0,15.44,11.05Z"}},{tag:"path",attr:{d:"M12.19,16.35A6.58,6.58,0,0,1,6.9,13.5a5.71,5.71,0,0,0,5.3,4,5.54,5.54,0,0,0,5.31-4A6.27,6.27,0,0,1,12.19,16.35Z"}}]})(A)}function BxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"polyline",attr:{fill:"none",stroke:"#000",strokeWidth:"2",points:"7 2 17 12 7 22"}}]})(A)}function ExA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"polyline",attr:{fill:"none",stroke:"#000",strokeWidth:"2",points:"7 2 17 12 7 22",transform:"matrix(-1 0 0 1 24 0)"}}]})(A)}function D7(A){return UA({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"32",d:"M408 64H104a56.16 56.16 0 00-56 56v192a56.16 56.16 0 0056 56h40v80l93.72-78.14a8 8 0 015.13-1.86H408a56.16 56.16 0 0056-56V120a56.16 56.16 0 00-56-56z"}}]})(A)}function CxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M448 341.37V170.61A32 32 0 00432.11 143l-152-88.46a47.94 47.94 0 00-48.24 0L79.89 143A32 32 0 0064 170.61v170.76A32 32 0 0079.89 369l152 88.46a48 48 0 0048.24 0l152-88.46A32 32 0 00448 341.37z"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M69 153.99l187 110 187-110m-187 310v-200"}}]})(A)}function mxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"circle",attr:{cx:"256",cy:"256",r:"48"}},{tag:"circle",attr:{cx:"416",cy:"256",r:"48"}},{tag:"circle",attr:{cx:"96",cy:"256",r:"48"}}]})(A)}function QxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"circle",attr:{cx:"256",cy:"256",r:"48"}},{tag:"circle",attr:{cx:"256",cy:"416",r:"48"}},{tag:"circle",attr:{cx:"256",cy:"96",r:"48"}}]})(A)}function wxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"44",d:"M358.62 129.28L86.49 402.08 70 442l39.92-16.49 272.8-272.13-24.1-24.1zm54.45-54.44l-11.79 11.78 24.1 24.1 11.79-11.79a16.51 16.51 0 000-23.34l-.75-.75a16.51 16.51 0 00-23.35 0z"}}]})(A)}function IxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M464 208L352 96 240 208m112-94.87V416M48 304l112 112 112-112m-112 94V96"}}]})(A)}function vxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M14.12 10.47L12 12.59l-2.13-2.12-1.41 1.41L10.59 14l-2.12 2.12 1.41 1.41L12 15.41l2.12 2.12 1.41-1.41L13.41 14l2.12-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4zM6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9z"}}]})(A)}function DxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95a15.65 15.65 0 00-1.38-3.56A8.03 8.03 0 0118.92 8zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2s.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56A7.987 7.987 0 015.08 16zm2.95-8H5.08a7.987 7.987 0 014.33-3.56A15.65 15.65 0 008.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2s.07-1.35.16-2h4.68c.09.65.16 1.32.16 2s-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95a8.03 8.03 0 01-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2s-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"}}]})(A)}function yxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19 19H5V5h7V3H5a2 2 0 00-2 2v14a2 2 0 002 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}}]})(A)}function bxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V8l8 5 8-5v10zm-8-7L4 6h16l-8 5z"}}]})(A)}function xxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}}]})(A)}function kxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15 16l-4 4h10v-4zM12.06 7.19L3 16.25V20h3.75l9.06-9.06-3.75-3.75zM5.92 18H5v-.92l7.06-7.06.92.92L5.92 18zM18.71 8.04a.996.996 0 000-1.41l-2.34-2.34a1.001 1.001 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}}]})(A)}function _xA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 22C6.49 22 2 17.51 2 12S6.49 2 12 2s10 4.04 10 9c0 3.31-2.69 6-6 6h-1.77c-.28 0-.5.22-.5.5 0 .12.05.23.13.33.41.47.64 1.06.64 1.67A2.5 2.5 0 0112 22zm0-18c-4.41 0-8 3.59-8 8s3.59 8 8 8c.28 0 .5-.22.5-.5a.54.54 0 00-.14-.35c-.41-.46-.63-1.05-.63-1.65a2.5 2.5 0 012.5-2.5H16c2.21 0 4-1.79 4-4 0-3.86-3.59-7-8-7z"}},{tag:"circle",attr:{cx:"6.5",cy:"11.5",r:"1.5"}},{tag:"circle",attr:{cx:"9.5",cy:"7.5",r:"1.5"}},{tag:"circle",attr:{cx:"14.5",cy:"7.5",r:"1.5"}},{tag:"circle",attr:{cx:"17.5",cy:"11.5",r:"1.5"}}]})(A)}function MxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6.455 19L2 22.5V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6.455zm-.692-2H20V5H4v13.385L5.763 17zM11 10h2v2h-2v-2zm-4 0h2v2H7v-2zm8 0h2v2h-2v-2z"}}]}]})(A)}function SxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21 15l-6 5.996L4.002 21A.998.998 0 0 1 3 20.007V3.993C3 3.445 3.445 3 3.993 3h16.014c.548 0 .993.456.993 1.002V15zM19 5H5v14h8v-5a1 1 0 0 1 .883-.993L14 13l5-.001V5zm-.829 9.999L15 15v3.169l3.171-3.17z"}}]}]})(A)}function NxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M14.828 7.757l-5.656 5.657a1 1 0 1 0 1.414 1.414l5.657-5.656A3 3 0 1 0 12 4.929l-5.657 5.657a5 5 0 1 0 7.071 7.07L19.071 12l1.414 1.414-5.657 5.657a7 7 0 1 1-9.9-9.9l5.658-5.656a5 5 0 0 1 7.07 7.07L12 16.244A3 3 0 1 1 7.757 12l5.657-5.657 1.414 1.414z"}}]}]})(A)}function RxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M4.25 3l1.166-.624 8 5.333v1.248l-8 5.334-1.166-.624V3zm1.5 1.401v7.864l5.898-3.932L5.75 4.401z"}}]})(A)}function PxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{d:"M2 2v12h12V2H2zm10.75 10.75h-9.5v-9.5h9.5v9.5z"}}]})(A)}function TxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{d:"M14 1H3L2 2v11l1 1h11l1-1V2l-1-1zM8 13H3V2h5v11zm6 0H9V2h5v11z"}}]})(A)}function LxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{d:"M14 1H3L2 2v11l1 1h11l1-1V2l-1-1zm0 12H3V8h11v5zm0-6H3V2h11v5z"}}]})(A)}function FxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M3 1C2.44771 1 2 1.44772 2 2V13C2 13.5523 2.44772 14 3 14H10.5C10.7761 14 11 13.7761 11 13.5C11 13.2239 10.7761 13 10.5 13H3V2L10.5 2C10.7761 2 11 1.77614 11 1.5C11 1.22386 10.7761 1 10.5 1H3ZM12.6036 4.89645C12.4083 4.70118 12.0917 4.70118 11.8964 4.89645C11.7012 5.09171 11.7012 5.40829 11.8964 5.60355L13.2929 7H6.5C6.22386 7 6 7.22386 6 7.5C6 7.77614 6.22386 8 6.5 8H13.2929L11.8964 9.39645C11.7012 9.59171 11.7012 9.90829 11.8964 10.1036C12.0917 10.2988 12.4083 10.2988 12.6036 10.1036L14.8536 7.85355C15.0488 7.65829 15.0488 7.34171 14.8536 7.14645L12.6036 4.89645Z",fill:"currentColor"}}]})(A)}function OxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M8.69667 0.0403541C8.90859 0.131038 9.03106 0.354857 8.99316 0.582235L8.0902 6.00001H12.5C12.6893 6.00001 12.8625 6.10701 12.9472 6.27641C13.0319 6.4458 13.0136 6.6485 12.8999 6.80001L6.89997 14.8C6.76167 14.9844 6.51521 15.0503 6.30328 14.9597C6.09135 14.869 5.96888 14.6452 6.00678 14.4178L6.90974 9H2.49999C2.31061 9 2.13748 8.893 2.05278 8.72361C1.96809 8.55422 1.98636 8.35151 2.09999 8.2L8.09997 0.200038C8.23828 0.0156255 8.48474 -0.0503301 8.69667 0.0403541ZM3.49999 8.00001H7.49997C7.64695 8.00001 7.78648 8.06467 7.88148 8.17682C7.97648 8.28896 8.01733 8.43723 7.99317 8.5822L7.33027 12.5596L11.5 7.00001H7.49997C7.353 7.00001 7.21347 6.93534 7.11846 6.8232C7.02346 6.71105 6.98261 6.56279 7.00678 6.41781L7.66968 2.44042L3.49999 8.00001Z",fill:"currentColor"}}]})(A)}function HxA(A){return UA({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M12 13C12.5523 13 13 12.5523 13 12V3C13 2.44771 12.5523 2 12 2H3C2.44771 2 2 2.44771 2 3V6.5C2 6.77614 2.22386 7 2.5 7C2.77614 7 3 6.77614 3 6.5V3H12V12H8.5C8.22386 12 8 12.2239 8 12.5C8 12.7761 8.22386 13 8.5 13H12ZM9 6.5C9 6.5001 9 6.50021 9 6.50031V6.50035V9.5C9 9.77614 8.77614 10 8.5 10C8.22386 10 8 9.77614 8 9.5V7.70711L2.85355 12.8536C2.65829 13.0488 2.34171 13.0488 2.14645 12.8536C1.95118 12.6583 1.95118 12.3417 2.14645 12.1464L7.29289 7H5.5C5.22386 7 5 6.77614 5 6.5C5 6.22386 5.22386 6 5.5 6H8.5C8.56779 6 8.63244 6.01349 8.69139 6.03794C8.74949 6.06198 8.80398 6.09744 8.85143 6.14433C8.94251 6.23434 8.9992 6.35909 8.99999 6.49708L8.99999 6.49738",fill:"currentColor"}}]})(A)}function GxA(A){return UA({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.53 16.122a3 3 0 00-5.78 1.128 2.25 2.25 0 01-2.4 2.245 4.5 4.5 0 008.4-2.245c0-.399-.078-.78-.22-1.128zm0 0a15.998 15.998 0 003.388-1.62m-5.043-.025a15.994 15.994 0 011.622-3.395m3.42 3.42a15.995 15.995 0 004.764-4.648l3.876-5.814a1.151 1.151 0 00-1.597-1.597L14.146 6.32a15.996 15.996 0 00-4.649 4.763m3.42 3.42a6.776 6.776 0 00-3.42-3.42"}}]})(A)}function UxA(A){return UA({tag:"svg",attr:{version:"1.1",viewBox:"0 0 17 17"},child:[{tag:"g",attr:{},child:[]},{tag:"path",attr:{d:"M6 8h-6v-6h1v4.109c1.013-3.193 4.036-5.484 7.5-5.484 3.506 0 6.621 2.36 7.574 5.739l-0.963 0.271c-0.832-2.95-3.551-5.011-6.611-5.011-3.226 0.001-6.016 2.276-6.708 5.376h4.208v1zM11 9v1h4.208c-0.693 3.101-3.479 5.375-6.708 5.375-3.062 0-5.78-2.061-6.611-5.011l-0.963 0.271c0.952 3.379 4.067 5.739 7.574 5.739 3.459 0 6.475-2.28 7.5-5.482v4.108h1v-6h-6z"}}]})(A)}function KxA(A){return UA({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}},{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}}]})(A)}function YxA(A){return UA({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"}}]})(A)}function $xA(A){return UA({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"}}]})(A)}function jxA(A){return UA({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 10h16M4 14h16M4 18h16"}}]})(A)}const qxA=A=>d.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("path",{d:"M12 8.5C16.9706 8.5 21 7.15685 21 5.5C21 3.84315 16.9706 2.5 12 2.5C7.02944 2.5 3 3.84315 3 5.5C3 7.15685 7.02944 8.5 12 8.5Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M21 12.5C21 14.16 17 15.5 12 15.5C7 15.5 3 14.16 3 12.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M3 5.5V19.5C3 21.16 7 22.5 12 22.5C17 22.5 21 21.16 21 19.5V5.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),JxA=A=>Q.jsx(qxA,{...A}),zxA=A=>d.createElement("svg",{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"16px",height:"16px",viewBox:"0 0 16 16",...A},d.createElement("g",{id:"surface1"},d.createElement("path",{stroke:"none",fillRule:"nonzero",fillOpacity:1,d:"M 9.886719 5.171875 L 6.113281 8.941406 C 5.855469 9.203125 5.855469 9.625 6.113281 9.886719 C 6.375 10.144531 6.796875 10.144531 7.058594 9.886719 L 10.828125 6.113281 C 11.609375 5.332031 11.609375 4.066406 10.828125 3.285156 C 10.046875 2.503906 8.78125 2.503906 8 3.285156 L 4.230469 7.058594 C 2.925781 8.359375 2.925781 10.46875 4.230469 11.769531 C 5.53125 13.074219 7.640625 13.074219 8.941406 11.769531 L 12.714844 8 L 13.65625 8.941406 L 9.886719 12.714844 C 8.0625 14.535156 5.109375 14.535156 3.285156 12.714844 C 1.464844 10.890625 1.464844 7.9375 3.285156 6.113281 L 7.058594 2.34375 C 8.359375 1.042969 10.46875 1.042969 11.769531 2.34375 C 13.074219 3.644531 13.074219 5.753906 11.769531 7.058594 L 8 10.828125 C 7.21875 11.609375 5.953125 11.609375 5.171875 10.828125 C 4.390625 10.046875 4.390625 8.78125 5.171875 8 L 8.941406 4.230469 Z M 9.886719 5.171875 "}))),WxA=A=>Q.jsx(zxA,{...A}),VxA=A=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("path",{d:"M10 13C10.4295 13.5741 10.9774 14.0491 11.6066 14.3929C12.2357 14.7367 12.9315 14.9411 13.6467 14.9923C14.3618 15.0435 15.0796 14.9403 15.7513 14.6897C16.4231 14.4392 17.0331 14.047 17.54 13.54L20.54 10.54C21.4508 9.59695 21.9548 8.33394 21.9434 7.02296C21.932 5.71198 21.4061 4.45791 20.4791 3.53087C19.5521 2.60383 18.298 2.07799 16.987 2.0666C15.676 2.0552 14.413 2.55918 13.47 3.46997L11.75 5.17997",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M14.0002 11.0012C13.5707 10.4271 13.0228 9.95202 12.3936 9.60826C11.7645 9.2645 11.0687 9.06009 10.3535 9.00887C9.63841 8.95765 8.92061 9.06083 8.24885 9.31142C7.5771 9.56201 6.96709 9.95413 6.4602 10.4612L3.4602 13.4612C2.54941 14.4042 2.04544 15.6672 2.05683 16.9782C2.06822 18.2892 2.59407 19.5433 3.52111 20.4703C4.44815 21.3973 5.70221 21.9232 7.01319 21.9346C8.32418 21.946 9.58719 21.442 10.5302 20.5312L12.2402 18.8212",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),XxA={binding:"_binding_14mdd_1"},ZxA=A=>Q.jsx(VxA,{className:XxA.binding,...A}),A2A=A=>Q.jsx(w7,{...A}),e2A=A=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("path",{d:"M14 10.6669V5.33359C13.9998 5.09978 13.938 4.87013 13.821 4.6677C13.704 4.46527 13.5358 4.29717 13.3333 4.18026L8.66667 1.51359C8.46397 1.39657 8.23405 1.33496 8 1.33496C7.76595 1.33496 7.53603 1.39657 7.33333 1.51359L2.66667 4.18026C2.46418 4.29717 2.29599 4.46527 2.17897 4.6677C2.06196 4.87013 2.00024 5.09978 2 5.33359V10.6669C2.00024 10.9007 2.06196 11.1304 2.17897 11.3328C2.29599 11.5353 2.46418 11.7034 2.66667 11.8203L7.33333 14.4869C7.53603 14.604 7.76595 14.6656 8 14.6656C8.23405 14.6656 8.46397 14.604 8.66667 14.4869L13.3333 11.8203C13.5358 11.7034 13.704 11.5353 13.821 11.3328C13.938 11.1304 13.9998 10.9007 14 10.6669Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M2.18018 4.63965L8.00018 8.00632L13.8202 4.63965",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M8 14.72V8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),t2A=A=>Q.jsx(e2A,{...A}),r2A=A=>Q.jsx(ybA,{...A}),n2A=A=>Q.jsx(m7,{...A}),o2A=A=>Q.jsx(Q7,{...A}),i2A=A=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("path",{d:"M8.6665 1.33301H3.99984C3.64622 1.33301 3.30708 1.47348 3.05703 1.72353C2.80698 1.97358 2.6665 2.31272 2.6665 2.66634V13.333C2.6665 13.6866 2.80698 14.0258 3.05703 14.2758C3.30708 14.5259 3.64622 14.6663 3.99984 14.6663H11.9998C12.3535 14.6663 12.6926 14.5259 12.9426 14.2758C13.1927 14.0258 13.3332 13.6866 13.3332 13.333V5.99967L8.6665 1.33301Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M8.6665 1.33301V5.99967H13.3332",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M9.3335 10.6667L10.6668 9.33333L9.3335 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M6.6665 8.00033L5.33317 9.33366L6.6665 10.667",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),a2A=A=>Q.jsx(i2A,{...A}),s2A=A=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("path",{d:"M14 10.6669V5.33359C13.9998 5.09978 13.938 4.87013 13.821 4.6677C13.704 4.46527 13.5358 4.29717 13.3333 4.18026L8.66667 1.51359C8.46397 1.39657 8.23405 1.33496 8 1.33496C7.76595 1.33496 7.53603 1.39657 7.33333 1.51359L2.66667 4.18026C2.46418 4.29717 2.29599 4.46527 2.17897 4.6677C2.06196 4.87013 2.00024 5.09978 2 5.33359V10.6669C2.00024 10.9007 2.06196 11.1304 2.17897 11.3328C2.29599 11.5353 2.46418 11.7034 2.66667 11.8203L7.33333 14.4869C7.53603 14.604 7.76595 14.6656 8 14.6656C8.23405 14.6656 8.46397 14.604 8.66667 14.4869L13.3333 11.8203C13.5358 11.7034 13.704 11.5353 13.821 11.3328C13.938 11.1304 13.9998 10.9007 14 10.6669Z",stroke:"#3B3B3B",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M5 2.80664L8 4.53997L11 2.80664",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M5 13.1933V9.73333L2 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M14 8L11 9.73333V13.1933",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M2.18018 4.63965L8.00018 8.00632L13.8202 4.63965",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M8 14.72V8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),l2A=A=>Q.jsx(s2A,{...A}),c2A=A=>Q.jsx(I7,{...A}),u2A=A=>Q.jsx(xxA,{...A}),f2A=A=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("path",{d:"M12 8C16.9706 8 21 6.65685 21 5C21 3.34315 16.9706 2 12 2C7.02944 2 3 3.34315 3 5C3 6.65685 7.02944 8 12 8Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M21 12C21 13.66 17 15 12 15C7 15 3 13.66 3 12",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M3 5V19C3 20.66 7 22 12 22C17 22 21 20.66 21 19V5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),g2A={database:"_database_14jkq_1"},d2A=A=>Q.jsx(f2A,{className:g2A.database,...A}),h2A=A=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("path",{d:"M9.33317 1.33301H3.99984C3.64622 1.33301 3.30708 1.47348 3.05703 1.72353C2.80698 1.97358 2.6665 2.31272 2.6665 2.66634V13.333C2.6665 13.6866 2.80698 14.0258 3.05703 14.2758C3.30708 14.5259 3.64622 14.6663 3.99984 14.6663H11.9998C12.3535 14.6663 12.6926 14.5259 12.9426 14.2758C13.1927 14.0258 13.3332 13.6866 13.3332 13.333V5.33301L9.33317 1.33301Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M9.3335 1.33301V5.33301H13.3335",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M10.6668 8.66699H5.3335",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M10.6668 11.333H5.3335",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M6.66683 6H6.00016H5.3335",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),p2A=A=>Q.jsx(h2A,{...A}),B2A=A=>d.createElement("svg",{width:22,height:28,viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("g",{clipPath:"url(#clip0_1811_15061)"},d.createElement("path",{d:"M22.2271 7.38281L16.304 5.74219L14.6117 0H2.76551C1.36355 0 0.227051 1.10179 0.227051 2.46094V25.5391C0.227051 26.8982 1.36355 28 2.76551 28H19.6886C21.0906 28 22.2271 26.8982 22.2271 25.5391V7.38281Z",fill:"currentColor"}),d.createElement("path",{d:"M22.227 7.38281H16.3039C15.3731 7.38281 14.6116 6.64453 14.6116 5.74219V0C14.8316 0 15.0516 0.0820312 15.2038 0.246148L21.9731 6.80865C22.1423 6.95625 22.227 7.16953 22.227 7.38281Z",fill:"currentColor"}),d.createElement("path",{d:"M16.304 13.1797H6.15011C5.68241 13.1797 5.30396 12.8128 5.30396 12.3594C5.30396 11.906 5.68241 11.5391 6.15011 11.5391H16.304C16.7717 11.5391 17.1501 11.906 17.1501 12.3594C17.1501 12.8128 16.7717 13.1797 16.304 13.1797Z",fill:"white"}),d.createElement("path",{d:"M16.304 16.4609H6.15011C5.68241 16.4609 5.30396 16.094 5.30396 15.6406C5.30396 15.1872 5.68241 14.8203 6.15011 14.8203H16.304C16.7717 14.8203 17.1501 15.1872 17.1501 15.6406C17.1501 16.094 16.7717 16.4609 16.304 16.4609Z",fill:"white"}),d.createElement("path",{d:"M16.304 19.7422H6.15011C5.68241 19.7422 5.30396 19.3753 5.30396 18.9219C5.30396 18.4685 5.68241 18.1016 6.15011 18.1016H16.304C16.7717 18.1016 17.1501 18.4685 17.1501 18.9219C17.1501 19.3753 16.7717 19.7422 16.304 19.7422Z",fill:"white"}),d.createElement("path",{d:"M12.9193 23.0234H6.15011C5.68241 23.0234 5.30396 22.6565 5.30396 22.2031C5.30396 21.7497 5.68241 21.3828 6.15011 21.3828H12.9193C13.387 21.3828 13.7655 21.7497 13.7655 22.2031C13.7655 22.6565 13.387 23.0234 12.9193 23.0234Z",fill:"white"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_1811_15061"},d.createElement("rect",{width:22,height:28,fill:"white"})))),y7=A=>Q.jsx(B2A,{...A}),E2A=A=>Q.jsx(mxA,{...A}),C2A=A=>Q.jsx(QxA,{...A}),m2A=A=>Q.jsx(bxA,{...A}),Q2A=A=>d.createElement("svg",{viewBox:"0 0 30 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("path",{d:"M7.58122 0H1C0.447715 0 0 0.447715 0 0.999999V21.0737H30V3.71273H12.0217L7.58122 0Z",fill:"#ADDAE9"}),d.createElement("path",{d:"M10.9928 0.157898H29C29.5523 0.157898 30 0.605613 30 1.1579V20C30 20.5523 29.5523 21 29 21H1.00002C0.447731 21 1.71661e-05 20.5523 1.71661e-05 20V3.93087C1.71661e-05 3.37858 0.447733 2.93087 1.00002 2.93087H6.55236L10.9928 0.157898Z",fill:"#CAE9F3"})),w2A=A=>Q.jsx(Q2A,{...A}),I2A=A=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("path",{d:"M21 16.0019V8.00186C20.9996 7.65113 20.9071 7.30667 20.7315 7.00302C20.556 6.69937 20.3037 6.44722 20 6.27186L13 2.27186C12.696 2.09632 12.3511 2.00391 12 2.00391C11.6489 2.00391 11.304 2.09632 11 2.27186L4 6.27186C3.69626 6.44722 3.44398 6.69937 3.26846 7.00302C3.09294 7.30667 3.00036 7.65113 3 8.00186V16.0019C3.00036 16.3526 3.09294 16.697 3.26846 17.0007C3.44398 17.3043 3.69626 17.5565 4 17.7319L11 21.7319C11.304 21.9074 11.6489 21.9998 12 21.9998C12.3511 21.9998 12.696 21.9074 13 21.7319L20 17.7319C20.3037 17.5565 20.556 17.3043 20.7315 17.0007C20.9071 16.697 20.9996 16.3526 21 16.0019Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M3.26953 6.96094L11.9995 12.0109L20.7295 6.96094",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M12 22.08V12",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),v2A=A=>Q.jsx(I2A,{...A}),D2A=A=>Q.jsx(WbA,{...A}),y2A=A=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("path",{d:"M22 3H2L10 12.46V19L14 21V12.46L22 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),b2A=A=>Q.jsx(y2A,{...A}),x2A=A=>d.createElement("svg",{viewBox:"0 0 30 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("path",{d:"M7.58122 0H1C0.447715 0 0 0.447715 0 0.999999V21.0737H30V3.71273H12.0217L7.58122 0Z",fill:"#ADDAE9"}),d.createElement("rect",{x:1.2179,y:2.44446,width:28.0128,height:15.8889,fill:"white"}),d.createElement("path",{d:"M10.9928 1.1579H29C29.5523 1.1579 30 1.60561 30 2.1579V21C30 21.5523 29.5523 22 29 22H1.00002C0.447731 22 1.71661e-05 21.5523 1.71661e-05 21V4.93087C1.71661e-05 4.37858 0.447733 3.93087 1.00002 3.93087H6.55236L10.9928 1.1579Z",fill:"#CAE9F3"})),k2A=A=>Q.jsx(x2A,{...A}),_2A=A=>Q.jsx(DxA,{...A}),M2A=A=>Q.jsx(TbA,{...A}),S2A=A=>Q.jsx(yxA,{...A}),N2A=A=>d.createElement("svg",{width:22,height:28,viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("g",{clipPath:"url(#clip0_1960_14704)"},d.createElement("path",{d:"M22.2271 7.38281L16.304 5.74219L14.6117 0H1.91936C0.984697 0 0.227051 0.734508 0.227051 1.64062V26.3594C0.227051 27.2655 0.984697 28 1.91936 28H20.5347C21.4694 28 22.2271 27.2655 22.2271 26.3594V7.38281Z",fill:"#F2F2F2"}),d.createElement("path",{d:"M22.2271 7.38281V26.3594C22.2271 27.2655 21.4695 28 20.5348 28H11.3625V0H14.6117L16.304 5.74219L22.2271 7.38281Z",fill:"#F2F2F2"}),d.createElement("path",{d:"M22.227 7.38281H16.3039C15.3731 7.38281 14.6116 6.64453 14.6116 5.74219V0C14.8316 0 15.0516 0.0820312 15.2038 0.246148L21.9731 6.80865C22.1423 6.95625 22.227 7.16953 22.227 7.38281Z",fill:"#E1E1E1"}),d.createElement("path",{d:"M9 17L14.1962 21.5H3.80385L9 17Z",fill:"#8BDC6F"}),d.createElement("path",{d:"M13 14L18.1963 21.5H7.80396L13 14Z",fill:"#8BDC6F"}),d.createElement("circle",{cx:7,cy:11,r:2,fill:"#EFC942"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_1960_14704"},d.createElement("rect",{width:22,height:28,fill:"white"})))),R2A=A=>Q.jsx(N2A,{...A});function P2A(A){return UA({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M74.6 256c0-38.3 31.1-69.4 69.4-69.4h88V144h-88c-61.8 0-112 50.2-112 112s50.2 112 112 112h88v-42.6h-88c-38.3 0-69.4-31.1-69.4-69.4zm85.4 22h192v-44H160v44zm208-134h-88v42.6h88c38.3 0 69.4 31.1 69.4 69.4s-31.1 69.4-69.4 69.4h-88V368h88c61.8 0 112-50.2 112-112s-50.2-112-112-112z"}}]})(A)}const T2A=A=>Q.jsx(P2A,{...A}),L2A=A=>Q.jsx(I7,{...A}),F2A=A=>Q.jsx(jxA,{...A}),O2A=A=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...A},d.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),d.createElement("path",{d:"M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z"})),H2A=A=>Q.jsx(O2A,{...A}),G2A=A=>Q.jsx(ObA,{...A}),U2A=A=>d.createElement("svg",{viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("g",{clipPath:"url(#clip0_1813_15242)"},d.createElement("path",{d:"M21.788 7.38281L16.3739 5.74219L14.827 0H3.22546C2.37112 0 1.67859 0.734508 1.67859 1.64062V26.3594C1.67859 27.2655 2.37112 28 3.22546 28H20.2411C21.0954 28 21.788 27.2655 21.788 26.3594V7.38281Z",fill:"#EDEDED"}),d.createElement("path",{d:"M21.7879 7.38281V26.3594C21.7879 27.2655 21.0954 28 20.2411 28H11.8571V0H14.827L16.3739 5.74219L21.7879 7.38281Z",fill:"#EDEDED"}),d.createElement("path",{d:"M21.788 7.38281H16.3739C15.5231 7.38281 14.827 6.64453 14.827 5.74219V0C15.0281 0 15.2292 0.0820312 15.3684 0.246148L21.5559 6.80865C21.7106 6.95625 21.788 7.16953 21.788 7.38281Z",fill:"#BDBDBD"}),d.createElement("path",{d:"M20.5333 22.4259C20.5333 22.925 20.1483 23.3333 19.6778 23.3333H0.855556C0.385 23.3333 0 22.925 0 22.4259V13.3519C0 12.8528 0.385 12.4445 0.855556 12.4445H19.6778C20.1483 12.4445 20.5333 12.8528 20.5333 13.3519V22.4259Z",fill:"#FF3E3E"}),d.createElement("path",{d:"M4.25304 17.732V16.448H4.98504C5.09304 16.448 5.19704 16.456 5.29704 16.472C5.39704 16.488 5.48504 16.52 5.56104 16.568C5.63704 16.612 5.69704 16.676 5.74104 16.76C5.78904 16.844 5.81304 16.954 5.81304 17.09C5.81304 17.226 5.78904 17.336 5.74104 17.42C5.69704 17.504 5.63704 17.57 5.56104 17.618C5.48504 17.662 5.39704 17.692 5.29704 17.708C5.19704 17.724 5.09304 17.732 4.98504 17.732H4.25304ZM3.31104 15.716V20H4.25304V18.464H5.24304C5.51104 18.464 5.73904 18.426 5.92704 18.35C6.11504 18.27 6.26704 18.166 6.38304 18.038C6.50304 17.91 6.58904 17.764 6.64104 17.6C6.69704 17.432 6.72504 17.262 6.72504 17.09C6.72504 16.914 6.69704 16.744 6.64104 16.58C6.58904 16.416 6.50304 16.27 6.38304 16.142C6.26704 16.014 6.11504 15.912 5.92704 15.836C5.73904 15.756 5.51104 15.716 5.24304 15.716H3.31104Z",fill:"white"}),d.createElement("path",{d:"M8.85499 19.208V16.508H9.52699C9.75899 16.508 9.95299 16.542 10.109 16.61C10.269 16.674 10.397 16.768 10.493 16.892C10.589 17.016 10.657 17.166 10.697 17.342C10.741 17.514 10.763 17.708 10.763 17.924C10.763 18.16 10.733 18.36 10.673 18.524C10.613 18.688 10.533 18.822 10.433 18.926C10.333 19.026 10.219 19.098 10.091 19.142C9.96299 19.186 9.83099 19.208 9.69499 19.208H8.85499ZM7.91299 15.716V20H9.76099C10.089 20 10.373 19.946 10.613 19.838C10.857 19.726 11.059 19.574 11.219 19.382C11.383 19.19 11.505 18.962 11.585 18.698C11.665 18.434 11.705 18.146 11.705 17.834C11.705 17.478 11.655 17.168 11.555 16.904C11.459 16.64 11.323 16.42 11.147 16.244C10.975 16.068 10.769 15.936 10.529 15.848C10.293 15.76 10.037 15.716 9.76099 15.716H7.91299Z",fill:"white"}),d.createElement("path",{d:"M12.9603 15.716V20H13.9023V18.23H15.6963V17.498H13.9023V16.508H15.9723V15.716H12.9603Z",fill:"white"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_1813_15242"},d.createElement("rect",{width:22,height:28,fill:"white"})))),K2A=A=>Q.jsx(U2A,{...A}),Y2A=A=>Q.jsx($xA,{...A}),$2A=A=>Q.jsx(HbA,{...A}),j2A=A=>d.createElement("svg",{viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("g",{clipPath:"url(#clip0_1960_14734)"},d.createElement("path",{d:"M22.2271 7.38281L16.304 5.74219L14.6117 0H1.91936C0.984697 0 0.227051 0.734508 0.227051 1.64062V26.3594C0.227051 27.2655 0.984697 28 1.91936 28H20.5347C21.4694 28 22.2271 27.2655 22.2271 26.3594V7.38281Z",fill:"#F2F2F2"}),d.createElement("path",{d:"M22.2271 7.38281V26.3594C22.2271 27.2655 21.4695 28 20.5348 28H11.3625V0H14.6117L16.304 5.74219L22.2271 7.38281Z",fill:"#F2F2F2"}),d.createElement("path",{d:"M22.227 7.38281H16.3039C15.3731 7.38281 14.6116 6.64453 14.6116 5.74219V0C14.8316 0 15.0516 0.0820312 15.2038 0.246148L21.9731 6.80865C22.1423 6.95625 22.227 7.16953 22.227 7.38281Z",fill:"#E1E1E1"}),d.createElement("path",{d:"M9 17L14.1962 21.5H3.80385L9 17Z",fill:"#8BDC6F"}),d.createElement("path",{d:"M13 14L18.1963 21.5H7.80396L13 14Z",fill:"#8BDC6F"}),d.createElement("circle",{cx:7,cy:11,r:2,fill:"#EFC942"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_1960_14734"},d.createElement("rect",{width:22,height:28,fill:"white"})))),q2A=A=>Q.jsx(j2A,{...A}),J2A=A=>Q.jsx(AxA,{...A}),z2A=A=>Q.jsx(UbA,{...A}),W2A=A=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("path",{d:"M18 8C19.6569 8 21 6.65685 21 5C21 3.34315 19.6569 2 18 2C16.3431 2 15 3.34315 15 5C15 6.65685 16.3431 8 18 8Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M6 15C7.65685 15 9 13.6569 9 12C9 10.3431 7.65685 9 6 9C4.34315 9 3 10.3431 3 12C3 13.6569 4.34315 15 6 15Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M18 22C19.6569 22 21 20.6569 21 19C21 17.3431 19.6569 16 18 16C16.3431 16 15 17.3431 15 19C15 20.6569 16.3431 22 18 22Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M8.58984 13.51L15.4198 17.49",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M15.4098 6.51001L8.58984 10.49",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),V2A=A=>Q.jsx(W2A,{...A}),X2A=A=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...A},d.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),d.createElement("path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}),d.createElement("path",{d:"M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7"})),Z2A=A=>Q.jsx(X2A,{...A}),AkA=A=>Q.jsx(vxA,{...A}),ekA=A=>d.createElement("svg",{width:22,height:28,viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("g",{clipPath:"url(#clip0_1811_14941)"},d.createElement("path",{d:"M21.7881 7.38281L16.374 5.74219L14.8271 0H3.22559C2.37125 0 1.67871 0.734508 1.67871 1.64062V26.3594C1.67871 27.2655 2.37125 28 3.22559 28H20.2412C21.0956 28 21.7881 27.2655 21.7881 26.3594V7.38281Z",fill:"#EDEDED"}),d.createElement("path",{d:"M21.7881 7.38281V26.3594C21.7881 27.2655 21.0955 28 20.2412 28H11.8572V0H14.8271L16.374 5.74219L21.7881 7.38281Z",fill:"#EDEDED"}),d.createElement("path",{d:"M21.7881 7.38281H16.374C15.5232 7.38281 14.8271 6.64453 14.8271 5.74219V0C15.0282 0 15.2293 0.0820312 15.3685 0.246148L21.556 6.80865C21.7107 6.95625 21.7881 7.16953 21.7881 7.38281Z",fill:"#BDBDBD"}),d.createElement("path",{d:"M20.5333 22.4259C20.5333 22.925 20.1483 23.3333 19.6778 23.3333H0.855556C0.385 23.3333 0 22.925 0 22.4259V13.3519C0 12.8528 0.385 12.4444 0.855556 12.4444H19.6778C20.1483 12.4444 20.5333 12.8528 20.5333 13.3519V22.4259Z",fill:"#161C28"}),d.createElement("path",{d:"M4.62629 16.508V20H5.56828V16.508H6.85229V15.716H3.34229V16.508H4.62629Z",fill:"white"}),d.createElement("path",{d:"M8.99625 17.756L7.50225 20H8.55825L9.51225 18.518L10.4483 20H11.5703L10.0763 17.762L11.4503 15.716H10.4183L9.54825 17.084L8.70825 15.716H7.61625L8.99625 17.756Z",fill:"white"}),d.createElement("path",{d:"M13.4962 16.508V20H14.4382V16.508H15.7222V15.716H12.2122V16.508H13.4962Z",fill:"white"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_1811_14941"},d.createElement("rect",{width:22,height:28,fill:"white"})))),tkA=A=>Q.jsx(ekA,{...A}),rkA=A=>d.createElement("svg",{viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("g",{clipPath:"url(#clip0_1811_14989)"},d.createElement("path",{d:"M22.2271 7.38281L16.304 5.74219L14.6117 0H1.91936C0.984697 0 0.227051 0.734508 0.227051 1.64062V26.3594C0.227051 27.2655 0.984697 28 1.91936 28H20.5347C21.4694 28 22.2271 27.2655 22.2271 26.3594V7.38281Z",fill:"#C9E3F4"}),d.createElement("path",{d:"M22.2271 7.38281V26.3594C22.2271 27.2655 21.4695 28 20.5348 28H11.3625V0H14.6117L16.304 5.74219L22.2271 7.38281Z",fill:"#C9E3F4"}),d.createElement("path",{d:"M22.227 7.38281H16.3039C15.3731 7.38281 14.6116 6.64453 14.6116 5.74219V0C14.8316 0 15.0516 0.0820312 15.2038 0.246148L21.9731 6.80865C22.1423 6.95625 22.227 7.16953 22.227 7.38281Z",fill:"#AAC4D6"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_1811_14989"},d.createElement("rect",{width:22,height:28,fill:"white"})))),nkA=A=>Q.jsx(rkA,{...A}),okA=A=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("path",{d:"M10 12.4503C10.3236 12.894 10.7365 13.2612 11.2106 13.5269C11.6847 13.7926 12.209 13.9505 12.7479 13.9901C13.2868 14.0297 13.8277 13.95 14.3339 13.7563C14.8401 13.5626 15.2998 13.2596 15.6817 12.8677L17.9424 10.549C18.6287 9.82019 19.0084 8.84404 18.9999 7.83081C18.9913 6.81758 18.595 5.84834 17.8965 5.13185C17.1979 4.41536 16.2529 4.00895 15.265 4.00015C14.2771 3.99134 13.3254 4.38085 12.6148 5.08478L11.3187 6.4064",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M13 10.5497C12.6764 10.106 12.2635 9.73881 11.7894 9.47313C11.3153 9.20745 10.791 9.04946 10.2521 9.00987C9.7132 8.97029 9.17231 9.05004 8.66611 9.24371C8.15991 9.43738 7.70024 9.74045 7.31828 10.1323L5.05764 12.451C4.37132 13.1798 3.99156 14.156 4.00014 15.1692C4.00873 16.1824 4.40497 17.1517 5.10354 17.8681C5.80211 18.5846 6.7471 18.991 7.73498 18.9999C8.72287 19.0087 9.6746 18.6192 10.3852 17.9152L11.6738 16.5936",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M8.1582 2.67383L9.06952 5.30645",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M18.4316 17.667L16.8262 15.3902",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M5 5.28906L7.23775 6.94848",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M20.7402 14.2783L18.1301 13.3044",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ikA=A=>Q.jsx(okA,{...A}),akA=A=>Q.jsx(v7,{...A}),b7=A=>Q.jsx(txA,{...A}),skA=A=>d.createElement("svg",{width:22,height:28,viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},d.createElement("path",{d:"M21.9982 7.38281L16.0756 5.74219L14.3835 0H1.69217C0.757586 0 0 0.734508 0 1.64062V26.3594C0 27.2655 0.757586 28 1.69217 28H20.3061C21.2407 28 21.9982 27.2655 21.9982 26.3594V7.38281Z",fill:"#59C36A"}),d.createElement("path",{d:"M21.9982 7.38281V26.3594C21.9982 27.2655 21.2406 28 20.306 28H11.1345V0H14.3834L16.0756 5.74219L21.9982 7.38281Z",fill:"#59C36A"}),d.createElement("path",{d:"M16.0753 11.5391H5.92226C5.4546 11.5391 5.07617 11.906 5.07617 12.3594V22.2031C5.07617 22.6565 5.4546 23.0234 5.92226 23.0234H16.0753C16.543 23.0234 16.9214 22.6565 16.9214 22.2031V12.3594C16.9214 11.906 16.543 11.5391 16.0753 11.5391ZM6.76834 16.4609H10.1527V18.1016H6.76834V16.4609ZM11.8449 16.4609H15.2292V18.1016H11.8449V16.4609ZM15.2292 14.8203H11.8449V13.1797H15.2292V14.8203ZM10.1527 13.1797V14.8203H6.76834V13.1797H10.1527ZM6.76834 19.7422H10.1527V21.3828H6.76834V19.7422ZM11.8449 21.3828V19.7422H15.2292V21.3828H11.8449Z",fill:"white"}),d.createElement("path",{d:"M16.0758 11.5391H11.1365V23.0234H16.0758C16.5435 23.0234 16.9219 22.6565 16.9219 22.2031V12.3594C16.9219 11.906 16.5435 11.5391 16.0758 11.5391ZM15.2297 21.3828H11.8454V19.7422H15.2297V21.3828ZM15.2297 18.1016H11.8454V16.4609H15.2297V18.1016ZM15.2297 14.8203H11.8454V13.1797H15.2297V14.8203Z",fill:"white"}),d.createElement("path",{d:"M21.9995 7.38281H16.0769C15.1462 7.38281 14.3848 6.64453 14.3848 5.74219V0C14.6047 0 14.8247 0.0820312 14.977 0.246148L21.7457 6.80865C21.9149 6.95625 21.9995 7.16953 21.9995 7.38281Z",fill:"#A0DEB0"})),lkA=A=>Q.jsx(skA,{...A});function ckA(A){return UA({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.953 2C6.465 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.493 2 11.953 2zM12 20c-4.411 0-8-3.589-8-8s3.567-8 7.953-8C16.391 4 20 7.589 20 12s-3.589 8-8 8z"}},{tag:"path",attr:{d:"M11 7h2v7h-2zm0 8h2v2h-2z"}}]})(A)}const x7=A=>Q.jsx(ckA,{...A}),ukA=A=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-trending-up",width:24,height:24,viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...A},d.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),d.createElement("path",{d:"M3 17l6 -6l4 4l8 -8"}),d.createElement("path",{d:"M14 7l7 0l0 7"})),fkA=A=>Q.jsx(ukA,{...A}),gkA=A=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-trending-down",width:24,height:24,viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...A},d.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),d.createElement("path",{d:"M3 7l6 6l4 -4l8 8"}),d.createElement("path",{d:"M21 10l0 7l-7 0"})),dkA=A=>Q.jsx(gkA,{...A}),hkA=A=>Q.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",...A,children:[Q.jsx("rect",{id:"sortasc",x:"0",y:"0",width:"24",height:"24",fill:"none"}),Q.jsx("path",{d:"M12,2l7,8l-14,-0l7,-8Z",fill:"currentColor"}),Q.jsx("path",{d:"M12,22l-7,-8l14,-0l-7,8Z",fill:"currentColor",fillOpacity:.5})]}),pkA=A=>Q.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",...A,children:[Q.jsx("rect",{id:"sortasc",x:"0",y:"0",width:"24",height:"24",fill:"none"}),Q.jsx("path",{d:"M12,2l7,8l-14,-0l7,-8Z",fill:"currentColor",fillOpacity:.5}),Q.jsx("path",{d:"M12,22l-7,-8l14,-0l-7,8Z",fill:"currentColor"})]}),BkA=A=>Q.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",...A,children:[Q.jsx("rect",{id:"sortasc",x:"0",y:"0",width:"24",height:"24",fill:"none"}),Q.jsx("path",{d:"M12,2l7,8l-14,-0l7,-8Z",fill:"currentColor",fillOpacity:.5}),Q.jsx("path",{d:"M12,22l-7,-8l14,-0l-7,8Z",fill:"currentColor",fillOpacity:.5})]}),EkA=A=>d.createElement("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:"icon ms-1",...A},d.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),d.createElement("path",{d:"M5 12l14 0"})),CkA=A=>Q.jsx(EkA,{...A}),nw=new Map;function vA(A,e){typeof A=="object"?A.forEach(t=>{nw.set(t,{renderer:e})}):nw.set(A,{renderer:e})}vA("assign",A=>Q.jsx(v7,{...A})),vA("arrowup",A=>Q.jsx(ixA,{...A})),vA("arrowleft",A=>Q.jsx(nxA,{...A})),vA("arrowright",A=>Q.jsx(oxA,{...A})),vA("pause",A=>Q.jsx(lxA,{...A})),vA("play",A=>Q.jsx(cxA,{...A})),vA("hamburger",A=>Q.jsx(XbA,{...A})),vA("send",A=>Q.jsx(exA,{...A})),vA("users",A=>Q.jsx(JbA,{...A})),vA("refresh",A=>Q.jsx(GbA,{...A})),vA("chevrondown",A=>Q.jsx(bbA,{...A})),vA("chevronup",A=>Q.jsx(xbA,{...A})),vA("dotmenu",A=>Q.jsx(C2A,{...A})),vA("dotmenuhorizontal",A=>Q.jsx(E2A,{...A})),vA("noresult",A=>Q.jsx(KbA,{...A})),vA("crm",A=>Q.jsx(D7,{...A})),vA("chat",A=>Q.jsx(D7,{...A})),vA("pencil",A=>Q.jsx(wxA,{...A})),vA("cube",A=>Q.jsx(CxA,{...A})),vA("apps",A=>Q.jsx(w7,{...A})),vA("permissions",A=>Q.jsx(LbA,{...A})),vA("close",A=>Q.jsx(zbA,{...A})),vA("star",A=>Q.jsx(YbA,{...A})),vA("help",A=>Q.jsx(PbA,{...A})),vA("compactlist",A=>Q.jsx(c2A,{...A})),vA("copy",A=>Q.jsx(u2A,{...A})),vA("move",A=>Q.jsx(MbA,{...A})),vA("rename",A=>Q.jsx(kxA,{...A})),vA("hyperlink",A=>Q.jsx(S2A,{...A})),vA("globe",A=>Q.jsx(_2A,{...A})),vA("link",A=>Q.jsx(T2A,{...A})),vA("looseList",A=>Q.jsx(F2A,{...A})),vA("options",A=>Q.jsx(G2A,{...A})),vA("search",A=>Q.jsx(z2A,{...A})),vA("filter",A=>Q.jsx(b2A,{...A})),vA("trash",A=>Q.jsx(AkA,{...A})),vA("pen",A=>Q.jsx(Y2A,{...A})),vA("email",A=>Q.jsx(m2A,{...A})),vA("phone",A=>Q.jsx($2A,{...A})),vA("home",A=>Q.jsx(M2A,{...A})),vA("user",A=>Q.jsx(akA,{...A})),vA("exit",A=>Q.jsx(FxA,{...A})),vA("adduser",A=>Q.jsx(qbA,{...A})),vA("userminus",A=>Q.jsx(jbA,{...A})),vA("plus",A=>Q.jsx(J2A,{...A})),vA("plus-circle",A=>Q.jsx(ZbA,{...A})),vA("filledplus",A=>Q.jsx(D2A,{...A})),vA("chevronright",A=>Q.jsx(o2A,{...A})),vA("chevronleft",A=>Q.jsx(n2A,{...A})),vA("checkmark",A=>Q.jsx(r2A,{...A})),vA("valid",A=>Q.jsx(DbA,{...A})),vA("info",A=>Q.jsx(vbA,{...A})),vA("error",A=>Q.jsx(x7,{...A})),vA("warning",A=>Q.jsx(b7,{...A})),vA("board",A=>Q.jsx(A2A,{...A})),vA("list",A=>Q.jsx(L2A,{...A})),vA("folder",A=>Q.jsx(k2A,{...A})),vA("folder-outline",A=>Q.jsx(NbA,{...A})),vA("emptyfolder",A=>Q.jsx(w2A,{...A})),vA("pdf",A=>Q.jsx(K2A,{...A})),vA("txt",A=>Q.jsx(tkA,{...A})),vA("doc",A=>Q.jsx(y7,{...A})),vA("docx",A=>Q.jsx(y7,{...A})),vA("doc-outline",A=>Q.jsx(p2A,{...A})),vA("conf",A=>Q.jsx(hxA,{...A})),vA("code",A=>Q.jsx(a2A,{...A})),vA("codesandbox",A=>Q.jsx(l2A,{...A})),vA("box",A=>Q.jsx(t2A,{...A})),vA(["xls","xlsx"],A=>Q.jsx(lkA,{...A})),vA(["jpg","jpeg","png","webp","svg","gif","tif","ppt","pptx"],A=>Q.jsx(R2A,{...A})),vA("unknownfile",A=>Q.jsx(nkA,{...A})),vA("photo",A=>Q.jsx(q2A,{...A})),vA("previous",A=>Q.jsx(ExA,{...A})),vA("next",A=>Q.jsx(BxA,{...A})),vA("like",A=>Q.jsx(VbA,{...A})),vA("reply",A=>Q.jsx(uxA,{...A})),vA("attach",A=>Q.jsx(WxA,{...A})),vA("attach2",A=>Q.jsx(NxA,{...A})),vA("emoji",A=>Q.jsx(pxA,{...A})),vA("message",A=>Q.jsx(MxA,{...A})),vA("upload",A=>Q.jsx($bA,{...A})),vA("split-vertical",A=>Q.jsx(LxA,{...A})),vA("split-horizontal",A=>Q.jsx(TxA,{...A})),vA("swap",A=>Q.jsx(IxA,{...A})),vA("download",A=>Q.jsx(SbA,{...A})),vA("note",A=>Q.jsx(SxA,{...A})),vA("binding",A=>Q.jsx(ZxA,{...A})),vA("database",A=>Q.jsx(d2A,{...A})),vA("unlink",A=>Q.jsx(ikA,{...A})),vA("api",A=>Q.jsx(JxA,{...A})),vA("expression",A=>Q.jsx(v2A,{...A})),vA("chat",A=>Q.jsx(axA,{...A})),vA("hash",A=>Q.jsx(sxA,{...A})),vA("drive",A=>Q.jsx(RbA,{...A})),vA("lock",A=>Q.jsx(FbA,{...A})),vA("start",A=>Q.jsx(RxA,{...A})),vA("stop",A=>Q.jsx(PxA,{...A})),vA("restart",A=>Q.jsx(UxA,{...A})),vA("duplicate",A=>Q.jsx(YxA,{...A})),vA("connect",A=>Q.jsx(OxA,{...A})),vA("cog",A=>Q.jsx(KxA,{...A})),vA("sun",A=>Q.jsx(Z2A,{...A})),vA("moon",A=>Q.jsx(H2A,{...A})),vA("share",A=>Q.jsx(V2A,{...A})),vA("new-window",A=>Q.jsx(HxA,{...A})),vA("paint",A=>Q.jsx(GxA,{...A})),vA("palette",A=>Q.jsx(_xA,{...A})),vA("trending-up",A=>Q.jsx(fkA,{...A})),vA("trending-down",A=>Q.jsx(dkA,{...A})),vA("trending-level",A=>Q.jsx(CkA,{...A})),vA("sortasc",A=>Q.jsx(hkA,{...A})),vA("sortdesc",A=>Q.jsx(pkA,{...A})),vA("nosort",A=>Q.jsx(BkA,{...A})),vA("arrowdown",A=>Q.jsx(rxA,{...A})),vA("square",A=>Q.jsx(dxA,{...A})),vA("squarehalf",A=>Q.jsx(gxA,{...A})),vA("squarefill",A=>Q.jsx(fxA,{...A}));function mkA({children:A}){const e=d.useCallback(()=>Array.from(nw.keys()),[]),t=d.useCallback(l=>nw.get(l),[]),[r,n]=d.useState({}),o=d.useRef({}),i=d.useRef(null),a=d.useCallback(async l=>{if(o.current[l])return;const c=await(await fetch(l)).text(),u=document.createElement("div");u.style.display="none",u.innerHTML=c;const g={};for(let E=0;E<u.children[0].attributes.length;E++){const C=u.children[0].attributes[E];C.nodeName!=="class"&&(g[C.nodeName]=C.nodeValue)}Object.keys(g).forEach(E=>{u.children[0].removeAttribute(E)});const h=document.createElementNS("http://www.w3.org/2000/svg","symbol");h.innerHTML=u.children[0].innerHTML,h.id=l,h.setAttributeNS(null,"viewBox",g.viewBox),o.current[l]||(i.current.appendChild(h),o.current[l]=!0);const B={name:l,attributes:g};n(E=>({...E,[l]:B}))},[]),s=d.useMemo(()=>({getRegisteredIconNames:e,lookupIconRenderer:t,ensureCustomSvgIcon:a,customSvgs:r}),[r,a,e,t]);return Q.jsxs(oH.Provider,{value:s,children:[A,Q.jsx("svg",{style:{display:"none"},ref:i})]})}const k7=d.createContext(null);function QkA(){return d.useContext(k7)}function wkA(A){return(A?new Date(A):new Date).toJSON()}function IkA(A){return new Date(A).toLocaleDateString()}function vkA(A){return new Date(A).toLocaleString()}function DkA(A){return new Date(A).toLocaleTimeString()}function ykA(A){return xn(new Date(A),"H:m")}function bkA(A){return new Date(A).toLocaleDateString([],{month:"numeric",day:"2-digit"})}function _7(A){return A?new Date(A):new Date}function xkA(A,e,t){return A?LQA(A,e,t):"-"}function kkA(A){return A?Xm(new Date(A))?new Date(A).toLocaleTimeString():hQA(new Date(A))?`${omA(new Date(A),new Date)}`:new Date(A).toLocaleString():"-"}function _kA(A){return A?Xm(new Date(A))?"Today":lO(new Date(A))?"Yesterday":new Date(A).toLocaleDateString():"-"}function MkA(A){return Xm(new Date(A))}function SkA(A){return lO(new Date(A))}function NkA(A){return BQA(new Date(A))}const M7={isoDateString:wkA,formatDate:IkA,formatDateTime:vkA,formatTime:DkA,formatTimeWithoutSeconds:ykA,formatDateWithoutYear:bkA,getDate:_7,getDateUntilNow:xkA,smartFormatDateTime:kkA,smartFormatDate:_kA,isToday:MkA,isYesterday:SkA,isTomorrow:NkA},S7={capitalize:NdA,pluralize:jQA,defaultTo:rBA,toHashObject:qQA,findByField:JQA,distinct:zQA},ra={themeVars:'"[]"',base:"_base_gzmhm_13",hoverContainer:"_hoverContainer_gzmhm_22",handlesClick:"_handlesClick_gzmhm_32",vertical:"_vertical_gzmhm_36",reverse:"_reverse_gzmhm_40",horizontal:"_horizontal_gzmhm_44",justifyItemsStart:"_justifyItemsStart_gzmhm_52",justifyItemsCenter:"_justifyItemsCenter_gzmhm_56",justifyItemsStretch:"_justifyItemsStretch_gzmhm_60",justifyItemsEnd:"_justifyItemsEnd_gzmhm_64",alignItemsStart:"_alignItemsStart_gzmhm_69",alignItemsCenter:"_alignItemsCenter_gzmhm_73",alignItemsStretch:"_alignItemsStretch_gzmhm_77",alignItemsEnd:"_alignItemsEnd_gzmhm_81"};function kA({description:A,shortDescription:e,specializedFrom:t,status:r,props:n,events:o,contextVars:i,apis:a,nonVisual:s,opaque:l,themeVars:c,defaultThemeVars:u,toneSpecificThemeVars:g,allowArbitraryProps:h,docFolder:B}){return{description:A,shortDescription:e,specializedFrom:t,status:r,props:n,events:o,contextVars:i,apis:a,nonVisual:s,opaque:l,themeVars:c,defaultThemeVars:u,toneSpecificThemeVars:g,allowArbitraryProps:h,docFolder:B}}function j(A,e,t,r,n){return{description:A,availableValues:e,valueType:t,defaultValue:r,isValid:n}}function Zu(A){return{description:A??"This property is for internal use only.",isInternal:!0}}function sc(A){return{description:`This event is triggered when the ${A} is clicked.`}}function To(A){return{description:`This event is triggered when the ${A} has received the focus.`}}function Lo(A){return{description:`This event is triggered when the ${A} has lost the focus.`}}function lo(A){return{description:`This event is triggered when value of ${A} has changed.`}}function N7(){return{description:"The `true` value of this property signals that the component is in an _intedeterminate state_."}}function pn(){return{description:"This property sets the label of the component."}}function Ws(A){return{description:"Places the label at the given position of the component.",availableValues:fH,defaultValue:A}}function lc(A){return{description:`This property sets the width of the \`${A}\`.`}}function cc(A){return{description:`This boolean value indicates if the \`${A}\` labels can be split into multiple lines if it would overflow the available label width.`,valueType:"boolean",defaultValue:!1}}function Fo(){return{description:"If this property is set to `true`, the component gets the focus automatically when displayed.",valueType:"boolean",defaultValue:!1}}function na(A){return{description:"This property sets the component's initial value.",defaultValue:A}}function Xa(){return{description:"Set this property to `true` to disallow changing the component value."}}function Yn(){return{description:"This boolean property value indicates whether the component responds to user events (`true`) or not (`false`).",valueType:"boolean",defaultValue:!0}}function R7(){return{description:"The `true` value of the property indicates if the user can select multiple items.",valueType:"boolean",defaultValue:!1}}function Za(){return{description:"This property allows you to set the validation status of the input component.",availableValues:CDA}}function P7(){return{description:"You can query this read-only API property to query the component's current value (`true`: checked, `false`: unchecked)."}}function Vs(){return{description:"You can use this method to set the component's current value programmatically (`true`: checked, `false`: unchecked)."}}function zt(A){return{description:A,valueType:"ComponentDef"}}function Af(){return{description:"A placeholder text that is visible in the input field when its empty."}}function NB(){return{description:"This property sets the maximum length of the input it accepts."}}function As(){return{description:"Set this property to `true` to indicate it must have a value before submitting the containing form."}}function T7(){return{description:"This property sets a text to appear at the start (left side when the left-to-right direction is set) of the input."}}function L7(){return{description:"This property sets an icon to appear at the start (left side when the left-to-right direction is set) of the input."}}function F7(){return{description:"This property sets a text to appear on the end (right side when the left-to-right direction is set) of the input."}}function O7(){return{description:"This property sets an icon to appear on the end (right side when the left-to-right direction is set) of the input."}}function RkA(A){return{description:`This property indicates if the ${A} is expanded (\`true\`) or collapsed (\`false\`).`}}function PkA(A){return{description:`This method expands the ${A}.`}}function TkA(A){return{description:`This method collapses the ${A}.`}}function es(A){return{description:`This method sets the focus on the ${A}.`}}function qk(){return{description:"You can query the component's value. If no value is set, it will retrieve `undefined`."}}function LkA(A){return{description:`This event is triggered when the ${A} has been displayed. The event handler has a single boolean argument set to \`true\`, indicating that the user opened the component.`}}function FkA(A){return{description:`This event is triggered when the ${A} has been closed. The event handler has a single boolean argument set to \`true\`, indicating that the user closed the component.`}}function H7(A){return{description:`This property allows you to define a custom trigger instead of the default one provided by \`${A}\`.`,valueType:"ComponentDef"}}function OkA(A){return{description:"This property sets the main axis along which the nested components are rendered.",availableValues:vk,valueType:"string",defaultValue:A}}function HkA(A,e,t){return d.useMemo(()=>A==="horizontal"?{horizontal:e&&ra[`justifyItems${sB(e)}`],vertical:t&&ra[`alignItems${sB(t)}`]}:{horizontal:e&&ra[`alignItems${sB(e)}`],vertical:t&&ra[`justifyItems${sB(t)}`]},[A,e,t])}const G7="vertical",co=d.forwardRef(function({uid:e,children:t,orientation:r=G7,horizontalAlignment:n,verticalAlignment:o,style:i,reverse:a,hoverContainer:s,visibleOnHover:l,onClick:c,onMount:u,...g},h){ywA(u);const{horizontal:B,vertical:E}=HkA(r,n,o);return Q.jsx("div",{...g,onClick:c,ref:h,style:i,className:KA(ra.base,{[ra.vertical]:r==="vertical",[ra.horizontal]:r==="horizontal",[ra.reverse]:a,[ra.hoverContainer]:s,"display-on-hover":l,[ra.handlesClick]:!!c},B??"",E??""),children:t})}),wd="Stack",Jk=j("Manages the horizontal content alignment for each child element in the Stack."),zk=j("Manages the vertical content alignment for each child element in the Stack."),ow=kA({description:"`Stack` is a layout container displaying children in a horizontal or vertical stack.",props:{gap:j("Optional size value indicating the gap between child elements."),reverse:j("Optional boolean property to reverse the order of child elements."),wrapContent:j("Optional boolean which wraps the content if set to true and the available space is not big enough. Works in all orientations."),hoverContainer:j("Reserved for future use"),visibleOnHover:j("Reserved for future use")},events:{click:sc(wd),mounted:j("Reserved for future use")},themeVars:ne(ra.themeVars)}),RB={...ow,props:{...ow.props,orientation:j("An optional property that governs the Stack's orientation (whether the Stack lays out its children in a row or a column)."),horizontalAlignment:Jk,verticalAlignment:zk}},GkA={...RB,specializedFrom:wd,description:"This component represents a stack rendering its contents vertically.",props:{...ow.props,horizontalAlignment:Jk,verticalAlignment:zk}},UkA={...RB,specializedFrom:wd,description:"This component represents a stack rendering its contents horizontally.",props:{...ow.props,horizontalAlignment:Jk,verticalAlignment:zk}},KkA={...RB,specializedFrom:wd,description:"This component represents a stack that renders its contents vertically and aligns that in the center along both axes."},YkA={...RB,specializedFrom:wd,description:"This component represents a stack that renders its contents horizontally and aligns that in the center along both axes."};function PB({node:A,layoutNonCss:e,extractValue:t,layoutCss:r,lookupEventHandler:n,renderChild:o,orientation:i=e.orientation||G7,horizontalAlignment:a=e.horizontalAlignment,verticalAlignment:s=e.verticalAlignment}){var l,c,u;if(!F2(A.children))throw new QB;return Q.jsx(co,{orientation:i,horizontalAlignment:a,verticalAlignment:s,reverse:t((l=A.props)==null?void 0:l.reverse),hoverContainer:t((c=A.props)==null?void 0:c.hoverContainer),visibleOnHover:t((u=A.props)==null?void 0:u.visibleOnHover),style:r,onMount:n("mounted"),children:o(A.children,{type:"Stack",orientation:i})})}const $kA=RA(wd,RB,({node:A,extractValue:e,renderChild:t,layoutCss:r,layoutNonCss:n,lookupEventHandler:o})=>PB({node:A,layoutNonCss:n,extractValue:e,layoutCss:r,lookupEventHandler:o,renderChild:t})),jkA=RA("VStack",GkA,({node:A,extractValue:e,renderChild:t,layoutCss:r,layoutNonCss:n,lookupEventHandler:o})=>PB({node:A,layoutNonCss:n,extractValue:e,layoutCss:r,lookupEventHandler:o,renderChild:t,orientation:"vertical"})),qkA=RA("HStack",UkA,({node:A,extractValue:e,renderChild:t,layoutCss:r,layoutNonCss:n,lookupEventHandler:o})=>PB({node:A,layoutNonCss:n,extractValue:e,layoutCss:r,lookupEventHandler:o,renderChild:t,orientation:"horizontal"})),JkA=RA("CVStack",KkA,({node:A,extractValue:e,renderChild:t,layoutCss:r,layoutNonCss:n,lookupEventHandler:o})=>PB({node:A,layoutNonCss:n,extractValue:e,layoutCss:r,lookupEventHandler:o,renderChild:t,orientation:"vertical",horizontalAlignment:"center",verticalAlignment:"center"})),zkA=RA("CHStack",YkA,({node:A,extractValue:e,renderChild:t,layoutCss:r,layoutNonCss:n,lookupEventHandler:o})=>PB({node:A,layoutNonCss:n,extractValue:e,layoutCss:r,lookupEventHandler:o,renderChild:t,orientation:"horizontal",horizontalAlignment:"center",verticalAlignment:"center"})),U7={themeVars:'"[]"',spacer:"_spacer_1414d_13"},K7=()=>Q.jsx("div",{className:U7.spacer}),Y7="SpaceFiller",WkA=kA({description:`The \`${Y7}\` is a component that works well in layout containers to fill the remaining (unused) space. Its behavior depends on the layout container in which it is used.`,themeVars:ne(U7.themeVars)}),VkA=RA(Y7,WkA,()=>Q.jsx(K7,{})),ts={themeVars:`'{"Input:radius-Textarea-default": "var(--xmlui-radius-Textarea-default)", "Input:color-border-Textarea-default": "var(--xmlui-color-border-Textarea-default)", "Input:thickness-border-Textarea-default": "var(--xmlui-thickness-border-Textarea-default)", "Input:style-border-Textarea-default": "var(--xmlui-style-border-Textarea-default)", "Input:font-size-Textarea-default": "var(--xmlui-font-size-Textarea-default)", "Input:padding-Textarea-default": "var(--xmlui-padding-Textarea-default)", "Input:color-bg-Textarea-default": "var(--xmlui-color-bg-Textarea-default)", "Input:shadow-Textarea-default": "var(--xmlui-shadow-Textarea-default)", "Input:color-text-Textarea-default": "var(--xmlui-color-text-Textarea-default)", "Input:color-border-Textarea-default--hover": "var(--xmlui-color-border-Textarea-default--hover)", "Input:color-bg-Textarea-default--hover": "var(--xmlui-color-bg-Textarea-default--hover)", "Input:shadow-Textarea-default--hover": "var(--xmlui-shadow-Textarea-default--hover)", "Input:color-text-Textarea-default--hover": "var(--xmlui-color-text-Textarea-default--hover)", "Input:color-border-Textarea-default--focus": "var(--xmlui-color-border-Textarea-default--focus)", "Input:color-bg-Textarea-default--focus": "var(--xmlui-color-bg-Textarea-default--focus)", "Input:shadow-Textarea-default--focus": "var(--xmlui-shadow-Textarea-default--focus)", "Input:color-text-Textarea-default--focus": "var(--xmlui-color-text-Textarea-default--focus)", "Input:thickness-outline-Textarea-default--focus": "var(--xmlui-thickness-outline-Textarea-default--focus)", "Input:color-outline-Textarea-default--focus": "var(--xmlui-color-outline-Textarea-default--focus)", "Input:style-outline-Textarea-default--focus": "var(--xmlui-style-outline-Textarea-default--focus)", "Input:offset-outline-Textarea-default--focus": "var(--xmlui-offset-outline-Textarea-default--focus)", "Input:color-placeholder-Textarea-default": "var(--xmlui-color-placeholder-Textarea-default)", "Input:radius-Textarea-error": "var(--xmlui-radius-Textarea-error)", "Input:color-border-Textarea-error": "var(--xmlui-color-border-Textarea-error)", "Input:thickness-border-Textarea-error": "var(--xmlui-thickness-border-Textarea-error)", "Input:style-border-Textarea-error": "var(--xmlui-style-border-Textarea-error)", "Input:font-size-Textarea-error": "var(--xmlui-font-size-Textarea-error)", "Input:padding-Textarea-error": "var(--xmlui-padding-Textarea-error)", "Input:color-bg-Textarea-error": "var(--xmlui-color-bg-Textarea-error)", "Input:shadow-Textarea-error": "var(--xmlui-shadow-Textarea-error)", "Input:color-text-Textarea-error": "var(--xmlui-color-text-Textarea-error)", "Input:color-border-Textarea-error--hover": "var(--xmlui-color-border-Textarea-error--hover)", "Input:color-bg-Textarea-error--hover": "var(--xmlui-color-bg-Textarea-error--hover)", "Input:shadow-Textarea-error--hover": "var(--xmlui-shadow-Textarea-error--hover)", "Input:color-text-Textarea-error--hover": "var(--xmlui-color-text-Textarea-error--hover)", "Input:color-border-Textarea-error--focus": "var(--xmlui-color-border-Textarea-error--focus)", "Input:color-bg-Textarea-error--focus": "var(--xmlui-color-bg-Textarea-error--focus)", "Input:shadow-Textarea-error--focus": "var(--xmlui-shadow-Textarea-error--focus)", "Input:color-text-Textarea-error--focus": "var(--xmlui-color-text-Textarea-error--focus)", "Input:thickness-outline-Textarea-error--focus": "var(--xmlui-thickness-outline-Textarea-error--focus)", "Input:color-outline-Textarea-error--focus": "var(--xmlui-color-outline-Textarea-error--focus)", "Input:style-outline-Textarea-error--focus": "var(--xmlui-style-outline-Textarea-error--focus)", "Input:offset-outline-Textarea-error--focus": "var(--xmlui-offset-outline-Textarea-error--focus)", "Input:color-placeholder-Textarea-error": "var(--xmlui-color-placeholder-Textarea-error)", "Input:radius-Textarea-warning": "var(--xmlui-radius-Textarea-warning)", "Input:color-border-Textarea-warning": "var(--xmlui-color-border-Textarea-warning)", "Input:thickness-border-Textarea-warning": "var(--xmlui-thickness-border-Textarea-warning)", "Input:style-border-Textarea-warning": "var(--xmlui-style-border-Textarea-warning)", "Input:font-size-Textarea-warning": "var(--xmlui-font-size-Textarea-warning)", "Input:padding-Textarea-warning": "var(--xmlui-padding-Textarea-warning)", "Input:color-bg-Textarea-warning": "var(--xmlui-color-bg-Textarea-warning)", "Input:shadow-Textarea-warning": "var(--xmlui-shadow-Textarea-warning)", "Input:color-text-Textarea-warning": "var(--xmlui-color-text-Textarea-warning)", "Input:color-border-Textarea-warning--hover": "var(--xmlui-color-border-Textarea-warning--hover)", "Input:color-bg-Textarea-warning--hover": "var(--xmlui-color-bg-Textarea-warning--hover)", "Input:shadow-Textarea-warning--hover": "var(--xmlui-shadow-Textarea-warning--hover)", "Input:color-text-Textarea-warning--hover": "var(--xmlui-color-text-Textarea-warning--hover)", "Input:color-border-Textarea-warning--focus": "var(--xmlui-color-border-Textarea-warning--focus)", "Input:color-bg-Textarea-warning--focus": "var(--xmlui-color-bg-Textarea-warning--focus)", "Input:shadow-Textarea-warning--focus": "var(--xmlui-shadow-Textarea-warning--focus)", "Input:color-text-Textarea-warning--focus": "var(--xmlui-color-text-Textarea-warning--focus)", "Input:thickness-outline-Textarea-warning--focus": "var(--xmlui-thickness-outline-Textarea-warning--focus)", "Input:color-outline-Textarea-warning--focus": "var(--xmlui-color-outline-Textarea-warning--focus)", "Input:style-outline-Textarea-warning--focus": "var(--xmlui-style-outline-Textarea-warning--focus)", "Input:offset-outline-Textarea-warning--focus": "var(--xmlui-offset-outline-Textarea-warning--focus)", "Input:color-placeholder-Textarea-warning": "var(--xmlui-color-placeholder-Textarea-warning)", "Input:radius-Textarea-success": "var(--xmlui-radius-Textarea-success)", "Input:color-border-Textarea-success": "var(--xmlui-color-border-Textarea-success)", "Input:thickness-border-Textarea-success": "var(--xmlui-thickness-border-Textarea-success)", "Input:style-border-Textarea-success": "var(--xmlui-style-border-Textarea-success)", "Input:font-size-Textarea-success": "var(--xmlui-font-size-Textarea-success)", "Input:padding-Textarea-success": "var(--xmlui-padding-Textarea-success)", "Input:color-bg-Textarea-success": "var(--xmlui-color-bg-Textarea-success)", "Input:shadow-Textarea-success": "var(--xmlui-shadow-Textarea-success)", "Input:color-text-Textarea-success": "var(--xmlui-color-text-Textarea-success)", "Input:color-border-Textarea-success--hover": "var(--xmlui-color-border-Textarea-success--hover)", "Input:color-bg-Textarea-success--hover": "var(--xmlui-color-bg-Textarea-success--hover)", "Input:shadow-Textarea-success--hover": "var(--xmlui-shadow-Textarea-success--hover)", "Input:color-text-Textarea-success--hover": "var(--xmlui-color-text-Textarea-success--hover)", "Input:color-border-Textarea-success--focus": "var(--xmlui-color-border-Textarea-success--focus)", "Input:color-bg-Textarea-success--focus": "var(--xmlui-color-bg-Textarea-success--focus)", "Input:shadow-Textarea-success--focus": "var(--xmlui-shadow-Textarea-success--focus)", "Input:color-text-Textarea-success--focus": "var(--xmlui-color-text-Textarea-success--focus)", "Input:thickness-outline-Textarea-success--focus": "var(--xmlui-thickness-outline-Textarea-success--focus)", "Input:color-outline-Textarea-success--focus": "var(--xmlui-color-outline-Textarea-success--focus)", "Input:style-outline-Textarea-success--focus": "var(--xmlui-style-outline-Textarea-success--focus)", "Input:offset-outline-Textarea-success--focus": "var(--xmlui-offset-outline-Textarea-success--focus)", "Input:color-placeholder-Textarea-success": "var(--xmlui-color-placeholder-Textarea-success)", "Input:color-bg-Textarea--disabled": "var(--xmlui-color-bg-Textarea--disabled)", "Input:color-text-Textarea--disabled": "var(--xmlui-color-text-Textarea--disabled)", "Input:color-border-Textarea--disabled": "var(--xmlui-color-border-Textarea--disabled)"}'`,textarea:"_textarea_8qfuq_13",error:"_error_8qfuq_53",warning:"_warning_8qfuq_85",valid:"_valid_8qfuq_117",resizeHorizontal:"_resizeHorizontal_8qfuq_156",resizeVertical:"_resizeVertical_8qfuq_160",resizeBoth:"_resizeBoth_8qfuq_164"},$7=(A,e)=>{if(typeof A=="function"){A(e);return}A.current=e},XkA=(A,e)=>{const t=d.useRef();return d.useCallback(r=>{A.current=r,t.current&&$7(t.current,null),t.current=e,e&&$7(e,r)},[e])},ZkA=()=>{},A4A=({maxRows:A,minRows:e,onChange:t=ZkA,style:r,...n},o)=>{const i=d.useRef(null),a=XkA(i,o),[s,l]=d.useState(),[c,u]=d.useState();return d.useEffect(()=>{if(!i.current)return;const g=getComputedStyle(i.current),h=parseFloat(g.lineHeight),B=parseFloat(g.paddingTop)+parseFloat(g.paddingBottom),E=parseFloat(g.borderTop)+parseFloat(g.borderBottom),C=(g.boxSizing==="border-box"?E:0)+B;l(h*(e??1)+C),u(h*(A??1e4)+C)},[i.current,A,e]),Q.jsx("textarea",{ref:a,...n,onChange:t,style:{...r,minHeight:s,maxHeight:c}})},e4A=d.forwardRef(A4A);function t4A(A,e){if(A==null)return{};var t={};for(var r in A)if({}.hasOwnProperty.call(A,r)){if(e.includes(r))continue;t[r]=A[r]}return t}var r4A=d.useLayoutEffect,n4A=function(e){var t=d.useRef(e);return r4A(function(){t.current=e}),t},j7=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},o4A=function(e,t){var r=d.useRef();return d.useCallback(function(n){e.current=n,r.current&&j7(r.current,null),r.current=t,t&&j7(t,n)},[t])},q7={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},i4A=function(e){Object.keys(q7).forEach(function(t){e.style.setProperty(t,q7[t],"important")})},J7=i4A,$n=null,z7=function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize};function a4A(A,e,t,r){t===void 0&&(t=1),r===void 0&&(r=1/0),$n||($n=document.createElement("textarea"),$n.setAttribute("tabindex","-1"),$n.setAttribute("aria-hidden","true"),J7($n)),$n.parentNode===null&&document.body.appendChild($n);var n=A.paddingSize,o=A.borderSize,i=A.sizingStyle,a=i.boxSizing;Object.keys(i).forEach(function(g){var h=g;$n.style[h]=i[h]}),J7($n),$n.value=e;var s=z7($n,A);$n.value=e,s=z7($n,A),$n.value="x";var l=$n.scrollHeight-n,c=l*t;a==="border-box"&&(c=c+n+o),s=Math.max(c,s);var u=l*r;return a==="border-box"&&(u=u+n+o),s=Math.min(u,s),[s,l]}var W7=function(){},s4A=function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},l4A=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],c4A=!!document.documentElement.currentStyle,u4A=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=s4A(l4A,t),n=r.boxSizing;if(n==="")return null;c4A&&n==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var o=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),i=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:o,borderSize:i}},f4A=u4A;function V7(A,e,t){var r=n4A(t);d.useLayoutEffect(function(){var n=function(i){return r.current(i)};if(A)return A.addEventListener(e,n),function(){return A.removeEventListener(e,n)}},[])}var g4A=function(e){V7(window,"resize",e)},d4A=function(e){V7(document.fonts,"loadingdone",e)},h4A=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],p4A=function(e,t){var r=e.cacheMeasurements,n=e.maxRows,o=e.minRows,i=e.onChange,a=i===void 0?W7:i,s=e.onHeightChange,l=s===void 0?W7:s,c=t4A(e,h4A),u=c.value!==void 0,g=d.useRef(null),h=o4A(g,t),B=d.useRef(0),E=d.useRef(),C=function(){var v=g.current,y=r&&E.current?E.current:f4A(v);if(y){E.current=y;var x=a4A(y,v.value||v.placeholder||"x",o,n),b=x[0],k=x[1];B.current!==b&&(B.current=b,v.style.setProperty("height",b+"px","important"),l(b,{rowHeight:k}))}},m=function(v){u||C(),a(v)};return d.useLayoutEffect(C),g4A(C),d4A(C),d.createElement("textarea",le({},c,{onChange:m,ref:h}))},B4A=d.forwardRef(p4A);const vi={themeVars:`'{"color-text-FormItemLabel": "var(--xmlui-color-text-FormItemLabel)", "font-family-FormItemLabel": "var(--xmlui-font-family-FormItemLabel)", "font-size-FormItemLabel": "var(--xmlui-font-size-FormItemLabel)", "font-weight-FormItemLabel": "var(--xmlui-font-weight-FormItemLabel)", "font-style-FormItemLabel": "var(--xmlui-font-style-FormItemLabel)", "transform-text-FormItemLabel": "var(--xmlui-transform-text-FormItemLabel)", "color-text-FormItemLabel-required": "var(--xmlui-color-text-FormItemLabel-required)", "font-size-FormItemLabel-required": "var(--xmlui-font-size-FormItemLabel-required)", "font-weight-FormItemLabel-required": "var(--xmlui-font-weight-FormItemLabel-required)", "font-style-FormItemLabel-required": "var(--xmlui-font-style-FormItemLabel-required)", "transform-text-FormItemLabel-required": "var(--xmlui-transform-text-FormItemLabel-required)", "color-text-FormItemLabel-requiredMark": "var(--xmlui-color-text-FormItemLabel-requiredMark)"}'`,container:"_container_knwya_13",top:"_top_knwya_20",end:"_end_knwya_25",bottom:"_bottom_knwya_31",start:"_start_knwya_36",shrinkToLabel:"_shrinkToLabel_knwya_42",inputLabel:"_inputLabel_knwya_45",disabled:"_disabled_knwya_58",labelBreak:"_labelBreak_knwya_62",required:"_required_knwya_66",requiredMark:"_requiredMark_knwya_73"},Wk={themeVars:`'{"size-Spinner": "var(--xmlui-size-Spinner)", "thickness-Spinner": "var(--xmlui-thickness-Spinner)", "color-border-Spinner": "var(--xmlui-color-border-Spinner)"}'`,"lds-ring":"_lds-ring_xu4p3_13",fullScreenSpinnerWrapper:"_fullScreenSpinnerWrapper_xu4p3_54"},iw=d.forwardRef(function({delay:e=400,fullScreen:t=!1,style:r},n){const[o,i]=d.useState(e===0);d.useEffect(()=>{const s=setTimeout(()=>{i(!0)},e);return()=>{clearTimeout(s)}},[e]);const a=Q.jsx(Q.Fragment,{children:Q.jsxs("div",{className:Wk["lds-ring"],style:r,ref:n,children:[Q.jsx("div",{}),Q.jsx("div",{}),Q.jsx("div",{}),Q.jsx("div",{})]})});return o?t?Q.jsx("div",{className:Wk.fullScreenSpinnerWrapper,children:a}):a:null}),E4A=/^[0-9]+$/,rs=d.forwardRef(function({id:e,labelPosition:t="top",style:r,label:n,labelBreak:o=!0,labelWidth:i,enabled:a=!0,required:s=!1,children:l,validationInProgress:c=!1,shrinkToLabel:u=!1,onFocus:g,onBlur:h,labelStyle:B,validationResult:E},C){const m=d.useId(),I=e||m;return n===void 0?Q.jsx(oc,{style:r,id:I,onFocus:g,onBlur:h,ref:C,children:l}):Q.jsxs("div",{style:r,ref:C,children:[Q.jsxs("div",{className:KA(vi.container,{[vi.top]:t==="top",[vi.bottom]:t==="bottom",[vi.start]:t==="start",[vi.end]:t==="end",[vi.shrinkToLabel]:u}),onFocus:g,onBlur:h,children:[n&&Q.jsxs("label",{htmlFor:I,onClick:()=>document.getElementById(I).focus(),style:{...B,width:i&&E4A.test(i)?`${i}px`:i,flexShrink:i!==void 0?0:void 0},className:KA(vi.inputLabel,{[vi.required]:s,[vi.disabled]:!a,[vi.labelBreak]:o}),children:[n," ",s&&Q.jsx("span",{className:vi.requiredMark,children:"*"}),c&&Q.jsx(iw,{style:{height:"1em",width:"1em",marginLeft:"1em",alignSelf:"center"}})]}),d.Children.only(Q.jsx(oc,{id:I,children:l}))]}),E]})}),C4A={horizontal:ts.resizeHorizontal,vertical:ts.resizeVertical,both:ts.resizeBoth},X7=d.forwardRef(function({id:e,value:t="",placeholder:r="",required:n=!1,readOnly:o=!1,allowCopy:i=!0,updateState:a=ve,validationStatus:s,autoFocus:l=!1,initialValue:c="",resize:u,onDidChange:g=ve,onFocus:h=ve,onBlur:B=ve,controlled:E=!0,enterSubmits:C=!0,escResets:m,style:I,registerComponentApi:v,autoSize:y,maxRows:x,minRows:b,maxLength:k,rows:M=2,enabled:N=!0,label:F,labelPosition:L,labelWidth:T,labelBreak:P},G){const H=d.useRef(null),[z,q]=d.useState(null),[O,Y]=_A.useState(!1),S=d.useCallback(aA=>{a({value:aA}),g(aA)},[g,a]),J=d.useCallback(aA=>{S(aA.target.value)},[S]);d.useEffect(()=>{a({value:c},{initial:!0})},[c,a]);const $=aA=>i?!0:(aA.preventDefault(),!1),U=()=>{Y(!0),h==null||h()},AA=()=>{Y(!1),B==null||B()},Z=d.useCallback(()=>{setTimeout(()=>{var aA;(aA=H.current)==null||aA.focus()},0)},[]),tA=d.useCallback(aA=>{const rA=H==null?void 0:H.current;if(rA&&aA){const X=rA.selectionStart,cA=rA.value;J({target:{value:cA.substring(0,X)+aA+cA.substring(X)}}),q(X+aA.length)}},[H,J]),nA=ze(aA=>{S(aA)});d.useEffect(()=>{if(z){const aA=H==null?void 0:H.current;aA&&(aA.setSelectionRange(z,z),q(null))}},[t,z,H]),d.useEffect(()=>{v==null||v({focus:Z,insert:tA,setValue:nA})},[Z,tA,v,nA]);const sA=d.useCallback(aA=>{var rA,X;aA.currentTarget.form&&C&&aA.key.toLowerCase()==="enter"&&!aA.shiftKey&&(aA.preventDefault(),(rA=aA.currentTarget.form)==null||rA.requestSubmit()),aA.currentTarget.form&&m&&aA.key.toLowerCase()==="escape"&&!aA.shiftKey&&(aA.preventDefault(),(X=aA.currentTarget.form)==null||X.reset())},[C,m]),iA={className:KA(ts.textarea,u?C4A[u]:"",{[ts.focused]:O,[ts.disabled]:!N,[ts.error]:s==="error",[ts.warning]:s==="warning",[ts.valid]:s==="valid"}),ref:H,style:I,value:E?t||"":void 0,disabled:!N,autoFocus:l,name:e,placeholder:r,required:n,maxLength:k,"aria-multiline":!0,"aria-readonly":o,readOnly:o,onChange:J,onCopy:$,onFocus:U,onBlur:AA,onKeyDown:sA,autoComplete:"off"};return u==="both"||u==="horizontal"||u==="vertical"?Q.jsx(rs,{ref:G,labelPosition:L,label:F,labelWidth:T,labelBreak:P,required:n,enabled:N,onFocus:h,onBlur:B,style:I,children:Q.jsx(e4A,{...iA,style:I,maxRows:x,minRows:b,rows:M})}):y||!YF(x)||!YF(b)?Q.jsx(rs,{ref:G,labelPosition:L,label:F,labelWidth:T,labelBreak:P,required:n,enabled:N,onFocus:h,onBlur:B,style:I,children:Q.jsx(B4A,{...iA,style:I,maxRows:x,minRows:b,rows:M})}):Q.jsx(rs,{ref:G,labelPosition:L,label:F,labelWidth:T,labelBreak:P,required:n,enabled:N,onFocus:h,onBlur:B,style:I,children:Q.jsx("textarea",{...iA,rows:M})})}),Di="TextArea",m4A=[{value:"undefined",description:"No resizing"},{value:"horizontal",description:"Can only resize horizontally"},{value:"vertical",description:"Can only resize vertically"},{value:"both",description:"Can resize in both dimensions"}],Q4A=kA({status:"experimental",description:`\`${Di}\` is a component that provides a multiline text input area.`,props:{enterSubmits:j("This optional boolean property indicates whether pressing the `Enter` key on the keyboard prompts the parent `Form` component to submit. The default value is is `true`."),escResets:j(`This boolean property indicates whether the ${Di} contents should be reset when pressing the ESC key.`),maxRows:j(`This optional number property maximizes the number of lines the \`${Di}\` can grow to.`),minRows:j(`This optional number property indicates the minimum number of lines the \`${Di}\` has and specifies its size accordingly.`),rows:j("Specifies the number of lines or rows (and thus, its size) the component has."),autoSize:j(`If set to \`true\`, this boolean property enables the \`${Di}\` to resize automatically based on the number of lines inside it.`,null,"boolean",!1),placeholder:Af(),initialValue:na(),label:pn(),labelPosition:Ws("top"),labelWidth:lc(Di),labelBreak:cc(Di),maxLength:NB(),autoFocus:Fo(),required:As(),readOnly:Xa(),enabled:Yn(),validationStatus:Za(),resize:j("This optional property specifies in which dimensions can the `TextArea` be resized by the user.",m4A)},events:{gotFocus:To(Di),lostFocus:Lo(Di),didChange:lo(Di)},apis:{focus:es(Di),value:j("You can query the component's value. If no value is set, it will retrieve `undefined`."),setValue:Vs()},themeVars:ne(ts.themeVars)}),w4A=RA(Di,Q4A,({node:A,extractValue:e,state:t,updateState:r,layoutCss:n,registerComponentApi:o,lookupEventHandler:i})=>{const a=e(A.props.initialValue);return Q.jsx(X7,{value:t==null?void 0:t.value,initialValue:a,updateState:r,autoFocus:e.asOptionalBoolean(A.props.autoFocus),enabled:e.asOptionalBoolean(A.props.enabled),placeholder:e(A.props.placeholder),onDidChange:i("didChange"),onFocus:i("gotFocus"),onBlur:i("lostFocus"),readOnly:e.asOptionalBoolean(A.props.readOnly),resize:A.props.resize,enterSubmits:e.asOptionalBoolean(A.props.enterSubmits),escResets:e.asOptionalBoolean(A.props.escResets),style:n,registerComponentApi:o,maxRows:e.asOptionalNumber(A.props.maxRows),minRows:e.asOptionalNumber(A.props.minRows),maxLength:e.asOptionalNumber(A.props.maxLength),rows:e.asOptionalNumber(A.props.rows),autoSize:e.asOptionalBoolean(A.props.autoSize),validationStatus:e(A.props.validationStatus),label:e(A.props.label),labelPosition:e(A.props.labelPosition),labelWidth:e(A.props.labelWidth),labelBreak:e.asOptionalBoolean(A.props.labelBreak),required:e.asOptionalBoolean(A.props.required)},`${A.uid}-${a}`)}),oa={themeVars:`'{"radius-NavLink": "var(--xmlui-radius-NavLink)", "color-bg-NavLink": "var(--xmlui-color-bg-NavLink)", "color-bg-NavLink--hover": "var(--xmlui-color-bg-NavLink--hover)", "color-bg-NavLink--hover--active": "var(--xmlui-color-bg-NavLink--hover--active)", "color-bg-NavLink--active": "var(--xmlui-color-bg-NavLink--active)", "color-bg-NavLink--pressed": "var(--xmlui-color-bg-NavLink--pressed)", "color-bg-NavLink--pressed--active": "var(--xmlui-color-bg-NavLink--pressed--active)", "padding-horizontal-NavLink": "var(--xmlui-padding-horizontal-NavLink)", "padding-vertical-NavLink": "var(--xmlui-padding-vertical-NavLink)", "font-size-NavLink": "var(--xmlui-font-size-NavLink)", "color-text-NavLink": "var(--xmlui-color-text-NavLink)", "color-text-NavLink--hover": "var(--xmlui-color-text-NavLink--hover)", "color-text-NavLink--active": "var(--xmlui-color-text-NavLink--active)", "color-text-NavLink--hover--active": "var(--xmlui-color-text-NavLink--hover--active)", "color-text-NavLink--pressed": "var(--xmlui-color-text-NavLink--pressed)", "color-text-NavLink--pressed--active": "var(--xmlui-color-text-NavLink--pressed--active)", "color-icon-NavLink": "var(--xmlui-color-icon-NavLink)", "font-family-NavLink": "var(--xmlui-font-family-NavLink)", "font-weight-NavLink": "var(--xmlui-font-weight-NavLink)", "font-weight-NavLink--pressed": "var(--xmlui-font-weight-NavLink--pressed)", "font-weight-NavLink--active": "var(--xmlui-font-weight-NavLink--active)", "radius-indicator-NavLink": "var(--xmlui-radius-indicator-NavLink)", "thickness-indicator-NavLink": "var(--xmlui-thickness-indicator-NavLink)", "color-indicator-NavLink": "var(--xmlui-color-indicator-NavLink)", "color-indicator-NavLink--hover": "var(--xmlui-color-indicator-NavLink--hover)", "color-indicator-NavLink--active": "var(--xmlui-color-indicator-NavLink--active)", "color-indicator-NavLink--pressed": "var(--xmlui-color-indicator-NavLink--pressed)", "thickness-outline-NavLink--focus": "var(--xmlui-thickness-outline-NavLink--focus)", "color-outline-NavLink--focus": "var(--xmlui-color-outline-NavLink--focus)", "style-outline-NavLink--focus": "var(--xmlui-style-outline-NavLink--focus)", "offset-outline-NavLink--focus": "var(--xmlui-offset-outline-NavLink--focus)"}'`,content:"_content_qpkxv_13",base:"_base_qpkxv_13",icon:"_icon_qpkxv_33",includeHoverIndicator:"_includeHoverIndicator_qpkxv_39",displayActive:"_displayActive_qpkxv_49",navItemActive:"_navItemActive_qpkxv_86",disabled:"_disabled_qpkxv_121",vertical:"_vertical_qpkxv_125",indented:"_indented_qpkxv_134"},I4A=[{value:"vertical",description:"This layout puts the navigation bar on the left side and displays its items vertically. The main content is aligned to the right (including the header and the footer), and its content is a single scroll container; every part of it moves as you scroll the page. This layout does not display the logo in the app header."},{value:"vertical-sticky",description:"Similar to `vertical`, the header and the navigation bar dock to the top of the main content's viewport, while the footer sticks to the bottom. This layout does not display the logo in the app header."},{value:"vertical-full-header",description:"Similar to `vertical-sticky`. However, the header and the navigation bar dock to the top of the app's window, while the footer sticks to the bottom."},{value:"condensed",description:"Similar to `horizontal`. However, the header and the navigation bar are in a single header block. (default)"},{value:"condensed-sticky",description:"However, the header and the navigation bar are in a single header block."},{value:"horizontal",description:"This layout stacks the layout sections in a single column in this order: header, navigation bar, main content, and footer. The application is a single scroll container; every part moves as you scroll the page."},{value:"horizontal-sticky",description:"Similar to `horizontal`, the header and the navigation bar dock to the top of the viewport, while the footer sticks to the bottom."}],Z7=d.createContext(null);function Id(){return d.useContext(Z7)}const ye={themeVars:`'{"width-navPanel-App": "var(--xmlui-width-navPanel-App)", "shadow-header-App": "var(--xmlui-shadow-header-App)", "shadow-pages-App": "var(--xmlui-shadow-pages-App)", "max-content-width-App": "var(--xmlui-max-content-width-App)", "color-bg-AppHeader": "var(--xmlui-color-bg-AppHeader)", "border-bottom-AppHeader": "var(--xmlui-border-bottom-AppHeader)"}'`,wrapper:"_wrapper_1e0pi_13",vertical:"_vertical_1e0pi_23",contentWrapper:"_contentWrapper_1e0pi_27",navPanelWrapper:"_navPanelWrapper_1e0pi_32",PagesWrapper:"_PagesWrapper_1e0pi_36",footerWrapper:"_footerWrapper_1e0pi_40",sticky:"_sticky_1e0pi_43",horizontal:"_horizontal_1e0pi_47",verticalFullHeader:"_verticalFullHeader_1e0pi_68",PagesWrapperInner:"_PagesWrapperInner_1e0pi_85",scrollWholePage:"_scrollWholePage_1e0pi_97",headerWrapper:"_headerWrapper_1e0pi_100",content:"_content_1e0pi_27",noScrollbarGutters:"_noScrollbarGutters_1e0pi_138"},ef={overlay:"_overlay_p470r_39","blur-in":"_blur-in_p470r_1","blur-out":"_blur-out_p470r_1",sheetContent:"_sheetContent_p470r_55","slide-in-from-left":"_slide-in-from-left_p470r_1","slide-out-to-left":"_slide-out-to-left_p470r_1",top:"_top_p470r_70",bottom:"_bottom_p470r_76",left:"_left_p470r_82",right:"_right_p470r_91",close:"_close_p470r_101"},AG=d.forwardRef((A,e)=>d.createElement(kr.span,le({},A,{ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...A.style}}))),v4A=AG,D4A=XH,y4A=ZH,eG=d.forwardRef(({className:A,...e},t)=>Q.jsx(Ok,{className:KA(ef.overlay,A),...e,ref:t}));eG.displayName=Ok.displayName;const tG=d.forwardRef(({side:A="left",className:e,children:t,...r},n)=>{const{root:o}=nr();return Q.jsxs(y4A,{container:o,children:[Q.jsx(eG,{}),Q.jsxs(Hk,{forceMount:!0,ref:n,className:KA(ef.sheetContent,{[ef.top]:A==="top",[ef.bottom]:A==="bottom",[ef.left]:A==="left",[ef.right]:A==="right"},e),...r,children:[t,Q.jsxs(e7,{className:ef.close,children:[Q.jsx(be,{name:"close"}),Q.jsx(AG,{children:"Close"})]})]})]})});tG.displayName=Hk.displayName;const b4A=d.forwardRef(({className:A,...e},t)=>Q.jsx(Gk,{ref:t,className:KA("text-lg font-semibold text-foreground",A),...e}));b4A.displayName=Gk.displayName;const x4A=d.forwardRef(({className:A,...e},t)=>Q.jsx(A7,{ref:t,className:KA("text-sm text-muted-foreground",A),...e}));x4A.displayName=A7.displayName;const ns=_A.createContext(null),Xs={themeVars:`'{"padding-horizontal-AppHeader": "var(--xmlui-padding-horizontal-AppHeader)", "padding-vertical-AppHeader": "var(--xmlui-padding-vertical-AppHeader)", "padding-top-AppHeader": "var(--xmlui-padding-top-AppHeader)", "padding-bottom-AppHeader": "var(--xmlui-padding-bottom-AppHeader)", "padding-left-AppHeader": "var(--xmlui-padding-left-AppHeader)", "padding-right-AppHeader": "var(--xmlui-padding-right-AppHeader)", "padding-AppHeader": "var(--xmlui-padding-AppHeader)", "padding-horizontal-logo-AppHeader": "var(--xmlui-padding-horizontal-logo-AppHeader)", "padding-vertical-logo-AppHeader": "var(--xmlui-padding-vertical-logo-AppHeader)", "padding-top-logo-AppHeader": "var(--xmlui-padding-top-logo-AppHeader)", "padding-bottom-logo-AppHeader": "var(--xmlui-padding-bottom-logo-AppHeader)", "padding-left-logo-AppHeader": "var(--xmlui-padding-left-logo-AppHeader)", "padding-right-logo-AppHeader": "var(--xmlui-padding-right-logo-AppHeader)", "padding-logo-AppHeader": "var(--xmlui-padding-logo-AppHeader)", "color-border-horizontal-AppHeader": "var(--xmlui-color-border-horizontal-AppHeader)", "thickness-border-horizontal-AppHeader": "var(--xmlui-thickness-border-horizontal-AppHeader)", "style-border-horizontal-AppHeader": "var(--xmlui-style-border-horizontal-AppHeader)", "color-border-vertical-AppHeader": "var(--xmlui-color-border-vertical-AppHeader)", "thickness-border-vertical-AppHeader": "var(--xmlui-thickness-border-vertical-AppHeader)", "style-border-vertical-AppHeader": "var(--xmlui-style-border-vertical-AppHeader)", "color-border-left-AppHeader": "var(--xmlui-color-border-left-AppHeader)", "thickness-border-left-AppHeader": "var(--xmlui-thickness-border-left-AppHeader)", "style-border-left-AppHeader": "var(--xmlui-style-border-left-AppHeader)", "color-border-right-AppHeader": "var(--xmlui-color-border-right-AppHeader)", "thickness-border-right-AppHeader": "var(--xmlui-thickness-border-right-AppHeader)", "style-border-right-AppHeader": "var(--xmlui-style-border-right-AppHeader)", "color-border-top-AppHeader": "var(--xmlui-color-border-top-AppHeader)", "thickness-border-top-AppHeader": "var(--xmlui-thickness-border-top-AppHeader)", "style-border-top-AppHeader": "var(--xmlui-style-border-top-AppHeader)", "color-border-bottom-AppHeader": "var(--xmlui-color-border-bottom-AppHeader)", "thickness-border-bottom-AppHeader": "var(--xmlui-thickness-border-bottom-AppHeader)", "style-border-bottom-AppHeader": "var(--xmlui-style-border-bottom-AppHeader)", "color-border-AppHeader": "var(--xmlui-color-border-AppHeader)", "thickness-border-AppHeader": "var(--xmlui-thickness-border-AppHeader)", "style-border-AppHeader": "var(--xmlui-style-border-AppHeader)", "radius-AppHeader": "var(--xmlui-radius-AppHeader)", "width-logo-AppHeader": "var(--xmlui-width-logo-AppHeader)", "align-content-AppHeader": "var(--xmlui-align-content-AppHeader)", "height-AppHeader": "var(--xmlui-height-AppHeader)", "color-bg-AppHeader": "var(--xmlui-color-bg-AppHeader)", "max-content-width-AppHeader": "var(--xmlui-max-content-width-AppHeader)"}'`,header:"_header_1h7yt_13",headerInner:"_headerInner_1h7yt_36",full:"_full_1h7yt_51",childrenWrapper:"_childrenWrapper_1h7yt_55",logoAndTitle:"_logoAndTitle_1h7yt_67",logoContainer:"_logoContainer_1h7yt_80",customLogoContainer:"_customLogoContainer_1h7yt_89",rightItems:"_rightItems_1h7yt_98",appHub:"_appHub_1h7yt_110"},Vk={themeVars:'"[]"',img:"_img_dk2s3_13",clickable:"_clickable_dk2s3_19"},Xk=d.forwardRef(function({src:e,alt:t,fit:r="contain",style:n,onClick:o,aspectRatio:i,lazyLoad:a},s){return Q.jsx("img",{src:e,ref:s,alt:t,loading:a?"lazy":"eager",className:KA(Vk.img,{[Vk.clickable]:!!o}),style:{objectFit:r,boxShadow:"none",...n,aspectRatio:i},onClick:o})}),aw=d.forwardRef(function({style:e},t){const r=rG();return r?Q.jsx(Xk,{ref:t,src:r,alt:"Logo",style:{width:"auto",boxShadow:"none",...e}}):null});function rG(){const{logo:A,logoLight:e,logoDark:t}=Id()||{},r={light:e,dark:t},{activeThemeTone:n}=nr(),o=G2("resource:logo")||A;return G2(`resource:logo-${n}`)||r[n]||o}const k4A=({children:A,profileMenu:e,style:t=qe,logoContent:r,className:n,canRestrictContentWidth:o,navPanelVisible:i=!0,toggleDrawer:a,showLogo:s,hasRegisteredNavPanel:l,title:c,titleContent:u})=>{const{mediaSize:g}=Ii(),h=rG(),B=g.sizeIndex<2?null:!u&&c?Q.jsx(TB,{to:"/",displayActive:!1,style:{paddingLeft:0},children:c}):u;return Q.jsx("div",{className:KA(Xs.header,n),style:t,children:Q.jsxs("div",{className:KA(Xs.headerInner,{[Xs.full]:!o}),children:[!i&&l&&Q.jsx(or,{onClick:a,icon:Q.jsx(be,{name:"hamburger"}),variant:"ghost",style:{color:"inherit",flexShrink:0}}),Q.jsx("div",{className:Xs.logoAndTitle,children:(s||!i)&&(r?Q.jsxs(Q.Fragment,{children:[Q.jsx("div",{className:Xs.customLogoContainer,children:r}),B]}):Q.jsxs(Q.Fragment,{children:[!!h&&Q.jsx("div",{className:Xs.logoContainer,children:Q.jsx(TB,{to:"/",displayActive:!1,style:{padding:0,height:"100%"},children:Q.jsx(aw,{})})}),B]}))}),Q.jsx("div",{className:Xs.childrenWrapper,children:A}),e&&Q.jsx("div",{className:Xs.rightItems,children:e})]})})};function nG({children:A,logoContent:e,profileMenu:t,style:r,className:n,title:o,titleContent:i,showLogo:a=!0,renderChild:s}){const l=Id(),{navPanelVisible:c,toggleDrawer:u,layout:g,hasRegisteredNavPanel:h,navPanelDef:B,logoContentDef:E}=l||{},C=g!=="vertical"&&g!=="vertical-sticky"&&a,m=g!=="vertical-full-header";return Q.jsxs(k4A,{hasRegisteredNavPanel:h,navPanelVisible:c,toggleDrawer:u,canRestrictContentWidth:m,showLogo:C,logoContent:e||s(E),profileMenu:t,style:r,className:n,title:o,titleContent:i,children:[(g==null?void 0:g.startsWith("condensed"))&&c&&Q.jsx("div",{style:{minWidth:0},children:s(B)}),A]})}function _4A(A){if(typeof A=="number")return A+"px";const e=A.trim();if(e.startsWith("var("))return e;const t=parseFloat(e),r=t.toString(),n=e.replace(r,"");return Number.isNaN(t)?"0px":n===""?r+"px":e}function M4A(A,e){const t=getComputedStyle(document.getElementById("_ui-engine-theme-root")).getPropertyValue(Vl(A));return e==="hex"?Pu(t).hex().toString():Pu(t).toString()}function oG(A){const e=A&&A>0?A:0;return e>1?{WebkitLineClamp:e,lineClamp:e,display:"-webkit-box",WebkitBoxOrient:"vertical",boxOrient:"vertical",whiteSpace:"initial"}:qe}function iG(A){if(typeof A=="number")return A+"px";if(typeof A=="string"&&/^\d+$/.test(A.trim())){const e=parseInt(A,10);if(!isNaN(e))return e+"px"}return A==null?void 0:A.toString()}const S4A=()=>{const A=d.useRef(!1),e=d.useRef(0);if(d.useEffect(()=>{function n(){A.current=!1}return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[]),A.current)return e.current;if(typeof document>"u")return 0;const t=document.createElement("div");t.style.visibility="hidden",t.style.overflow="scroll",document.body.appendChild(t);const r=t.offsetWidth-t.clientWidth;return t.parentNode.removeChild(t),A.current=!0,e.current=r,window.devicePixelRatio!==Math.round(window.devicePixelRatio)&&(e.current=r-.5),e.current};function N4A({children:A,style:e,layout:t,loggedInUser:r,scrollWholePage:n,noScrollbarGutters:o=!1,onReady:i=$l,header:a,navPanel:s,footer:l,navPanelDef:c,logoContentDef:u,logo:g,logoDark:h,logoLight:B,defaultTone:E,defaultTheme:C,renderChild:m,name:I}){const{getThemeVar:v}=nr(),{setActiveThemeTone:y,setActiveThemeId:x}=cB(),b=d.useRef(!1),k=t||v("layout-App")||"condensed-sticky",M=k==null?void 0:k.trim().replace(/[\u2013\u2014\u2011]/g,"-"),{setLoggedInUser:N,mediaSize:F}=Ii(),L=a!==void 0,T=c!==void 0,P=d.useMemo(()=>{const{padding:EA,paddingLeft:IA,paddingRight:DA,paddingTop:SA,paddingBottom:JA,...jA}=e;return{...jA,"--page-padding-left":EA||IA,"--page-padding-right":EA||DA,"--page-padding-top":EA||SA,"--page-padding-bottom":EA||JA}},[e]);d.useEffect(()=>{N(r)},[r,N]),d.useEffect(()=>{if(!b.current)return b.current=!0,(E==="dark"||E==="light")&&y(E),C&&x(C),()=>{b.current=!1}},[E,C,y,x]),d.useEffect(()=>{i()},[i]);const G=F.largeScreen||!L&&M!=="condensed"&&M!=="condensed-sticky",H=d.useRef(null),z=d.useRef(null),q=n?H:z,[O,Y]=d.useState(0),[S,J]=d.useState(0),$=S4A(),U=d.useRef(),AA=d.useCallback(EA=>{U.current=EA},[]),Z=d.useRef(),tA=d.useCallback(EA=>{Z.current=EA},[]);aQ(U,d.useCallback(EA=>{var IA,DA;Y((DA=(IA=EA==null?void 0:EA[0])==null?void 0:IA.contentRect)==null?void 0:DA.height)},[])),aQ(Z,d.useCallback(EA=>{var IA,DA;J((DA=(IA=EA==null?void 0:EA[0])==null?void 0:IA.contentRect)==null?void 0:DA.height)},[]));const nA=d.useMemo(()=>({"--header-height":n?S+"px":0,"--footer-height":n?O+"px":0,"--scrollbar-width":$+"px"}),[O,S,n,$]),[sA,iA]=d.useState(!1),aA=Ji(),rA=d.useCallback(()=>{iA(EA=>!EA)},[]);d.useLayoutEffect(()=>{var EA;(EA=H.current)==null||EA.scrollTo(0,0)},[aA.pathname]);const X=d.useMemo(()=>({hasRegisteredNavPanel:T,hasRegisteredHeader:L,navPanelVisible:G,drawerVisible:sA,layout:M,logo:g,logoDark:h,logoLight:B,showDrawer:()=>{iA(!0)},hideDrawer:()=>{iA(!1)},toggleDrawer:rA,navPanelDef:c,logoContentDef:u}),[T,L,G,sA,M,g,h,B,rA,c,u]);d.useEffect(()=>{G&&iA(!1)},[G]),d.useEffect(()=>{iA(!1)},[aA,M]);const cA=[ye.wrapper,{[ye.scrollWholePage]:n,[ye.noScrollbarGutters]:o,"media-large":F.largeScreen,"media-small":F.smallScreen,"media-desktop":F.desktop,"media-phone":F.phone,"media-tablet":F.tablet}];let hA;switch(M){case"vertical":hA=Q.jsxs("div",{className:KA(cA,ye.vertical),style:nA,children:[G&&Q.jsx("div",{className:KA(ye.navPanelWrapper),children:s}),Q.jsxs("div",{className:ye.contentWrapper,ref:H,children:[Q.jsx("header",{ref:tA,className:KA(ye.headerWrapper),children:a}),Q.jsx("div",{className:ye.PagesWrapper,ref:z,children:Q.jsx(ns.Provider,{value:q,children:Q.jsx("div",{className:ye.PagesWrapperInner,style:P,children:A})})}),Q.jsx("div",{className:ye.footerWrapper,ref:AA,children:l})]})]});break;case"vertical-sticky":hA=Q.jsxs("div",{className:KA(cA,ye.vertical,ye.sticky),style:nA,children:[G&&Q.jsx("div",{className:KA(ye.navPanelWrapper),children:s}),Q.jsxs("div",{className:ye.contentWrapper,ref:H,children:[Q.jsx("header",{ref:tA,className:KA(ye.headerWrapper,ye.sticky),children:a}),Q.jsx("div",{className:ye.PagesWrapper,ref:z,children:Q.jsx(ns.Provider,{value:q,children:Q.jsx("div",{className:ye.PagesWrapperInner,style:P,children:A})})}),Q.jsx("div",{className:ye.footerWrapper,ref:AA,children:l})]})]});break;case"vertical-full-header":hA=Q.jsxs("div",{className:KA(cA,ye.verticalFullHeader),style:nA,ref:H,children:[Q.jsx("header",{className:KA(ye.headerWrapper,ye.sticky),ref:tA,children:a}),Q.jsxs("div",{className:ye.content,children:[G&&Q.jsx("aside",{className:ye.navPanelWrapper,children:s}),Q.jsx("main",{className:ye.contentWrapper,children:Q.jsx("div",{className:ye.PagesWrapper,ref:z,children:Q.jsx(ns.Provider,{value:q,children:Q.jsx("div",{className:ye.PagesWrapperInner,style:P,children:A})})})})]}),Q.jsx("div",{className:ye.footerWrapper,ref:AA,children:l})]});break;case"condensed":case"condensed-sticky":hA=Q.jsxs("div",{className:KA(cA,ye.horizontal,{[ye.sticky]:M==="condensed-sticky"}),style:nA,ref:H,children:[Q.jsxs("header",{className:KA("app-layout-condensed",ye.headerWrapper,{[ye.sticky]:M==="condensed-sticky"}),ref:tA,children:[!L&&T&&Q.jsx(nG,{renderChild:m}),a]}),Q.jsx("div",{className:ye.PagesWrapper,ref:z,children:Q.jsx(ns.Provider,{value:q,children:Q.jsx("div",{className:ye.PagesWrapperInner,style:P,children:A})})}),Q.jsx("div",{className:ye.footerWrapper,ref:AA,children:l})]});break;case"horizontal":{hA=Q.jsxs("div",{className:KA(cA,ye.horizontal),style:nA,ref:H,children:[Q.jsxs("header",{className:KA(ye.headerWrapper),ref:tA,children:[a,G&&Q.jsx("div",{className:ye.navPanelWrapper,children:s})]}),Q.jsx("div",{className:ye.PagesWrapper,ref:z,children:Q.jsx(ns.Provider,{value:q,children:Q.jsx("div",{className:ye.PagesWrapperInner,style:P,children:A})})}),Q.jsx("div",{className:ye.footerWrapper,ref:AA,children:l})]});break}case"horizontal-sticky":hA=Q.jsxs("div",{className:KA(cA,ye.horizontal,ye.sticky),style:nA,ref:H,children:[Q.jsxs("header",{className:KA(ye.headerWrapper,ye.sticky),ref:tA,children:[a,G&&Q.jsx("div",{className:ye.navPanelWrapper,children:s})]}),Q.jsx("div",{className:ye.PagesWrapper,ref:z,children:Q.jsx(ns.Provider,{value:q,children:Q.jsx("div",{className:ye.PagesWrapperInner,style:P,children:A})})}),Q.jsx("div",{className:ye.footerWrapper,ref:AA,children:l})]});break;default:throw new Error("layout type not supported: "+M)}return Q.jsxs(Q.Fragment,{children:[I!==void 0&&Q.jsx(Nu,{defaultTitle:I,titleTemplate:`%s | ${I}`}),Q.jsxs(Z7.Provider,{value:X,children:[Q.jsx(D4A,{open:sA,onOpenChange:EA=>iA(EA),children:Q.jsx(tG,{side:"left",children:m(c,{inDrawer:!0})})}),hA]})]})}function aG(A){switch(A){case"vertical":case"vertical-sticky":case"vertical-full-header":return"vertical";default:return"horizontal"}}const os={themeVars:`'{"color-border-horizontal-NavPanel": "var(--xmlui-color-border-horizontal-NavPanel)", "thickness-border-horizontal-NavPanel": "var(--xmlui-thickness-border-horizontal-NavPanel)", "style-border-horizontal-NavPanel": "var(--xmlui-style-border-horizontal-NavPanel)", "color-border-vertical-NavPanel": "var(--xmlui-color-border-vertical-NavPanel)", "thickness-border-vertical-NavPanel": "var(--xmlui-thickness-border-vertical-NavPanel)", "style-border-vertical-NavPanel": "var(--xmlui-style-border-vertical-NavPanel)", "color-border-left-NavPanel": "var(--xmlui-color-border-left-NavPanel)", "thickness-border-left-NavPanel": "var(--xmlui-thickness-border-left-NavPanel)", "style-border-left-NavPanel": "var(--xmlui-style-border-left-NavPanel)", "color-border-right-NavPanel": "var(--xmlui-color-border-right-NavPanel)", "thickness-border-right-NavPanel": "var(--xmlui-thickness-border-right-NavPanel)", "style-border-right-NavPanel": "var(--xmlui-style-border-right-NavPanel)", "color-border-top-NavPanel": "var(--xmlui-color-border-top-NavPanel)", "thickness-border-top-NavPanel": "var(--xmlui-thickness-border-top-NavPanel)", "style-border-top-NavPanel": "var(--xmlui-style-border-top-NavPanel)", "color-border-bottom-NavPanel": "var(--xmlui-color-border-bottom-NavPanel)", "thickness-border-bottom-NavPanel": "var(--xmlui-thickness-border-bottom-NavPanel)", "style-border-bottom-NavPanel": "var(--xmlui-style-border-bottom-NavPanel)", "color-border-NavPanel": "var(--xmlui-color-border-NavPanel)", "thickness-border-NavPanel": "var(--xmlui-thickness-border-NavPanel)", "style-border-NavPanel": "var(--xmlui-style-border-NavPanel)", "radius-NavPanel": "var(--xmlui-radius-NavPanel)", "color-bg-NavPanel": "var(--xmlui-color-bg-NavPanel)", "shadow-NavPanel": "var(--xmlui-shadow-NavPanel)", "height-AppHeader": "var(--xmlui-height-AppHeader)", "max-content-width-App": "var(--xmlui-max-content-width-App)", "padding-horizontal-NavPanel": "var(--xmlui-padding-horizontal-NavPanel)", "padding-horizontal-logo-NavPanel": "var(--xmlui-padding-horizontal-logo-NavPanel)", "padding-vertical-logo-NavPanel": "var(--xmlui-padding-vertical-logo-NavPanel)", "margin-bottom-logo-NavPanel": "var(--xmlui-margin-bottom-logo-NavPanel)", "padding-vertical-AppHeader": "var(--xmlui-padding-vertical-AppHeader)", "align-content-AppHeader": "var(--xmlui-align-content-AppHeader)"}'`,wrapper:"_wrapper_dzy35_13",condensed:"_condensed_dzy35_40",horizontal:"_horizontal_dzy35_43",wrapperInner:"_wrapperInner_dzy35_48",logoWrapper:"_logoWrapper_dzy35_67",inDrawer:"_inDrawer_dzy35_77"},Zk=_A.createContext(null),R4A={inDrawer:!0};function P4A({logoContent:A,children:e,className:t,style:r}){const n=d.useRef(null);return Q.jsx(Zk.Provider,{value:R4A,children:Q.jsx("div",{ref:n,className:KA(os.wrapper,t),children:Q.jsxs(ns.Provider,{value:n,children:[Q.jsx("div",{className:KA(os.logoWrapper,os.inDrawer),children:A||Q.jsx(aw,{})}),Q.jsx("div",{className:os.wrapperInner,style:r,children:e})]})})})}const T4A=d.forwardRef(function({children:e,style:t,logoContent:r,className:n,inDrawer:o,renderChild:i},a){var E;const s=d.useRef(null),l=a?Zr(s,a):s,c=Id(),u=aG(c==null?void 0:c.layout)==="horizontal",g=(c==null?void 0:c.layout)==="vertical"||(c==null?void 0:c.layout)==="vertical-sticky",h=(E=c==null?void 0:c.layout)==null?void 0:E.startsWith("condensed"),B=r||i(c==null?void 0:c.logoContentDef);return o?Q.jsx(P4A,{style:t,logoContent:B,className:n,children:e}):Q.jsx("div",{ref:l,className:KA(os.wrapper,n,{[os.horizontal]:u,[os.condensed]:h}),children:Q.jsxs(ns.Provider,{value:s,children:[g&&Q.jsx("div",{className:KA(os.logoWrapper),children:B||Q.jsx(aw,{})}),Q.jsx("div",{className:os.wrapperInner,style:t,children:e})]})})});function sw(A){return!A||typeof A=="string"||typeof A=="number"?A:A.queryParams!==void 0?{...A,search:new URLSearchParams(JF(A.queryParams,$F)).toString()}:A}const TB=d.forwardRef(function({uid:e,children:t,disabled:r,to:n,sx:o={},displayActive:i=!0,vertical:a,style:s,onClick:l,icon:c,forceActive:u,...g},h){const B=Id(),E=d.useContext(Zk);let C=a;B&&C===void 0&&(C=aG(B.layout)==="vertical"||(E==null?void 0:E.inDrawer));const m=d.useMemo(()=>{if(n)return sw(n)},[n]),I={...o,...s},v=KA(oa.content,oa.base,{[oa.disabled]:r,[oa.vertical]:C,[oa.includeHoverIndicator]:i,[oa.navItemActive]:i&&u});let y;return r||!m?y=Q.jsxs("button",{...g,ref:h,onClick:l,className:v,style:I,disabled:r,children:[c,t]}):y=Q.jsxs(qb,{id:e,...g,ref:h,to:m,style:I,onClick:l,className:({isActive:x})=>KA(v,{[oa.displayActive]:i,[oa.navItemActive]:i&&(x||u)}),children:[c,t]}),y}),lw="NavLink",L4A=kA({description:`The \`${lw}\` component defines a navigation target (app navigation menu item) within the app; it is associated with a particular in-app navigation target (or an external link).`,props:{to:j("This property defines the URL of the link."),enabled:Yn(),active:j("This property indicates if the particular navigation is an active link. An active link has a particular visual appearance, provided its [`displayActive`](#displayactive) property is set to `true`."),target:j("This property specifies how to open the clicked link."),label:pn(),vertical:j(`This property sets how the active status is displayed on the \`${lw}\` component. If set to true, the indicator is displayed on the side which lends itself to a vertically aligned navigation menu.`),displayActive:j("This Boolean property indicates if the active state of a link should have a visual indication. Setting it to `false` removes the visual indication of an active link."),icon:j("This property allows you to add an icon (specify the icon's name) to the navigation link.")},events:{click:sc(lw)},themeVars:ne(oa.themeVars),defaultThemeVars:{"radius-NavLink":"$radius","color-bg-NavLink":"transparent","padding-horizontal-NavLink":"$space-4","padding-vertical-NavLink":"$space-2","font-size-NavLink":"$font-size-small","font-weight-NavLink":"$font-weight-normal","font-family-NavLink":"$font-family","color-text-NavLink":"$color-text-primary","font-weight-NavLink--pressed":"$font-weight-normal","thickness-indicator-NavLink":"$space-0_5","color-outline-NavLink--focus":"$color-outline--focus","thickness-outline-NavLink--focus":"$thickness-outline--focus","style-outline-NavLink--focus":"$style-outline--focus","offset-outline-NavLink--focus":"-1px","radius-indicator-NavLink":"$radius",light:{"color-icon-NavLink":"$color-surface-500","color-indicator-NavLink--active":"$color-primary-500","color-indicator-NavLink--pressed":"$color-primary-500","color-indicator-NavLink--hover":"$color-primary-600"},dark:{"color-indicator-NavLink--active":"$color-primary-500","color-indicator-NavLink--pressed":"$color-primary-500","color-indicator-NavLink--hover":"$color-primary-400"}}}),F4A=RA(lw,L4A,({node:A,extractValue:e,renderChild:t,layoutCss:r})=>{var o;const n=e.asString(A.props.icon);return Q.jsx(TB,{uid:A.uid,to:e(A.props.to),disabled:!e.asOptionalBoolean(A.props.enabled??!0),vertical:e.asOptionalBoolean(A.props.vertical),displayActive:e.asOptionalBoolean(A.props.displayActive),forceActive:e.asOptionalBoolean(A.props.active),style:r,target:e((o=A.props)==null?void 0:o.target),icon:Q.jsx(be,{name:n,className:oa.icon}),children:e.asDisplayText(A.props.label)||t(A.children)})}),vd={themeVars:`'{"color-text-Link": "var(--xmlui-color-text-Link)", "color-text-Link--active": "var(--xmlui-color-text-Link--active)", "color-text-Link--hover": "var(--xmlui-color-text-Link--hover)", "color-text-Link--hover--active": "var(--xmlui-color-text-Link--hover--active)", "font-family-Link": "var(--xmlui-font-family-Link)", "font-size-Link": "var(--xmlui-font-size-Link)", "font-weight-Link": "var(--xmlui-font-weight-Link)", "font-weight-Link--active": "var(--xmlui-font-weight-Link--active)", "color-decoration-Link": "var(--xmlui-color-decoration-Link)", "offset-decoration-Link": "var(--xmlui-offset-decoration-Link)", "line-decoration-Link": "var(--xmlui-line-decoration-Link)", "style-decoration-Link": "var(--xmlui-style-decoration-Link)", "thickness-decoration-Link": "var(--xmlui-thickness-decoration-Link)", "padding-icon-Link": "var(--xmlui-padding-icon-Link)", "gap-icon-Link": "var(--xmlui-gap-icon-Link)", "thickness-outline-Link--focus": "var(--xmlui-thickness-outline-Link--focus)", "color-outline-Link--focus": "var(--xmlui-color-outline-Link--focus)", "style-outline-Link--focus": "var(--xmlui-style-outline-Link--focus)", "offset-outline-Link--focus": "var(--xmlui-offset-outline-Link--focus)"}'`,container:"_container_nq0ie_13",active:"_active_nq0ie_28",disabled:"_disabled_nq0ie_32",iconWrapper:"_iconWrapper_nq0ie_48"},A4=d.forwardRef(function({to:e,children:t,icon:r,active:n,onClick:o,target:i,disabled:a,style:s},l){const c=!!r&&!t,u=d.useMemo(()=>sw(e),[e]),g=e?WT:"div";return Q.jsxs(g,{ref:l,to:u,style:s,target:i,onClick:o,className:KA(vd.container,{[vd.iconLink]:c,[vd.active]:n,[vd.disabled]:a}),children:[r&&Q.jsx("div",{className:vd.iconWrapper,children:Q.jsx(be,{name:r})}),t]})}),Zt="Link",O4A=kA({description:`A \`${Zt}\` component represents a navigation target within the app or a reference to an external web URL.`,props:{to:j("This property defines the URL of the link."),enabled:Yn(),active:j("Indicates whether this link is active or not. If so, it will have a distinct visual appearance.",null,"boolean",!1),target:j(`This property specifies where to open the link represented by the \`${Zt}\`. This property accepts the following values (in accordance with the HTML standard):`,cDA,"string","_self"),label:pn(),icon:j("This property allows you to add an icon (specify the icon's name) to the link.")},themeVars:ne(vd.themeVars),defaultThemeVars:{[`color-text-${Zt}--hover--active`]:`$color-text-${Zt}--active`,[`color-text-decoration-${Zt}--hover`]:"$color-surface-400A80",[`color-text-decoration-${Zt}--active`]:"$color-surface200",[`font-weight-${Zt}--active`]:"$font-weight-bold",[`color-decoration-${Zt}`]:"$color-surface-400",[`offset-decoration-${Zt}`]:"$space-1",[`line-decoration-${Zt}`]:"underline",[`style-decoration-${Zt}`]:"dashed",[`thickness-decoration-${Zt}`]:"$space-0_5",[`color-outline-${Zt}--focus`]:"$color-outline--focus",[`thickness-outline-${Zt}--focus`]:"$thickness-outline--focus",[`style-outline-${Zt}--focus`]:"$style-outline--focus",[`offset-outline-${Zt}--focus`]:"$offset-outline--focus",[`font-size-${Zt}`]:"inherit",[`gap-icon-${Zt}`]:"$gap-tight",[`padding-icon-${Zt}`]:"$space-0_5",light:{[`color-text-${Zt}`]:"$color-primary-500",[`color-text-${Zt}--active`]:"$color-primary-500"},dark:{[`color-text-${Zt}`]:"$color-primary-500",[`color-text-${Zt}--active`]:"$color-primary-500"}}}),H4A=RA(Zt,O4A,({node:A,extractValue:e,lookupEventHandler:t,renderChild:r,layoutCss:n})=>{var o;return Q.jsx(A4,{to:e(A.props.to),icon:e(A.props.icon),active:e.asOptionalBoolean(A.props.active,!1),target:e((o=A.props)==null?void 0:o.target),style:n,disabled:!e.asOptionalBoolean(A.props.enabled??!0),children:A.props.label?e.asDisplayText(A.props.label):r(A.children)})}),Oo=d.memo(({node:A,item:e,context:t,renderChild:r,layoutContext:n,contextVars:o=qe,itemKey:i="$item",contextKey:a="$context"})=>{const s=kn(o),l=d.useMemo(()=>i===a?{type:"Container",contextVars:{[i]:{...e,...t},...s},children:Array.isArray(A)?A:[A]}:{type:"Container",contextVars:{[i]:e,[a]:t,...s},children:Array.isArray(A)?A:[A]},[t,e,A,s]);return Q.jsx(Q.Fragment,{children:r(l,n)})}),LA="Button",G4A=kA({description:"Button is an interactive element that triggers an action when clicked.",status:"stable",props:{autoFocus:j("Indicates if the button should receive focus when the page loads.",null,"boolean",!1),variant:j("The button variant determines the level of emphasis the button should possess.",lH,"string","solid"),themeColor:j("Sets the button color scheme defined in the application theme.",aH,"string","primary"),size:j("The size of the button.",HQ,"string","sm"),label:j(`This property is an optional string to set a label for the ${LA}. If no label is specified and an icon is set, the ${LA} will modify its styling to look like a small icon button. When the ${LA} has nested children, it will display them and ignore the value of the \`label\` prop.`),type:j(`This optional string describes how the ${LA} appears in an HTML context. You rarely need to set this property explicitly.`,gDA,"string",sH),enabled:j("The value of this property indicates whether the button accepts actions (`true`) or does not react to them (`false`).",null,null,!0),icon:j(`This string value denotes an icon name. The framework will render an icon if XMLUI recognizes the icon by its name. If no label is specified and an icon is set, the ${LA} displays only that icon.`),iconPosition:j(`This optional string determines the location of the icon in the ${LA}.`,uH,"string","start"),contentPosition:j(`This optional value determines how the label and icon (or nested children) should be placedinside the ${LA} component.`,hDA,"string","center")},events:{click:sc(LA),gotFocus:To(LA),lostFocus:Lo(LA)},themeVars:ne(Ur.themeVars),defaultThemeVars:{[`width-${LA}`]:"fit-content",[`height-${LA}`]:"fit-content",[`radius-${LA}`]:"$radius",[`font-size-${LA}`]:"$font-size-small",[`font-weight-${LA}`]:"$font-weight-medium",[`color-bg-${LA}-primary`]:"$color-primary-500",[`color-bg-${LA}-attention`]:"$color-bg-attention",[`color-border-${LA}-attention`]:"$color-attention",[`color-bg-${LA}--disabled`]:"$color-bg--disabled",[`color-border-${LA}--disabled`]:"$color-border--disabled",[`style-border-${LA}`]:"solid",[`color-text-${LA}--disabled`]:"$color-text--disabled",[`color-outline-${LA}--focus`]:"$color-outline--focus",[`thickness-border-${LA}`]:"1px",[`thickness-outline-${LA}--focus`]:"$thickness-outline--focus",[`style-outline-${LA}--focus`]:"$style-outline--focus",[`offset-outline-${LA}--focus`]:"$offset-outline--focus",[`padding-horizontal-${LA}-xs`]:"$space-1",[`padding-vertical-${LA}-xs`]:"$space-0_5",[`padding-horizontal-${LA}-sm`]:"$space-4",[`padding-vertical-${LA}-sm`]:"$space-2",[`padding-horizontal-${LA}-md`]:"$space-4",[`padding-vertical-${LA}-md`]:"$space-3",[`padding-horizontal-${LA}-lg`]:"$space-5",[`padding-vertical-${LA}-lg`]:"$space-4",light:{[`color-text-${LA}`]:"$color-surface-950",[`color-text-${LA}-solid`]:"$color-surface-50",[`color-border-${LA}-primary`]:"$color-primary-500",[`color-bg-${LA}-primary--hover`]:"$color-primary-400",[`color-bg-${LA}-primary--active`]:"$color-primary-500",[`color-bg-${LA}-primary-outlined--hover`]:"$color-primary-50",[`color-bg-${LA}-primary-outlined--active`]:"$color-primary-100",[`color-border-${LA}-primary-outlined`]:"$color-primary-600",[`color-border-${LA}-primary-outlined--hover`]:"$color-primary-500",[`color-text-${LA}-primary-outlined`]:"$color-primary-900",[`color-text-${LA}-primary-outlined--hover`]:"$color-primary-950",[`color-text-${LA}-primary-outlined--active`]:"$color-primary-900",[`color-bg-${LA}-primary-ghost--hover`]:"$color-primary-50",[`color-bg-${LA}-primary-ghost--active`]:"$color-primary-100",[`color-border-${LA}-secondary`]:"$color-secondary-100",[`color-bg-${LA}-secondary`]:"$color-secondary-500",[`color-bg-${LA}-secondary--hover`]:"$color-secondary-400",[`color-bg-${LA}-secondary--active`]:"$color-secondary-500",[`color-bg-${LA}-secondary-outlined--hover`]:"$color-secondary-50",[`color-bg-${LA}-secondary-outlined--active`]:"$color-secondary-100",[`color-bg-${LA}-secondary-ghost--hover`]:"$color-secondary-100",[`color-bg-${LA}-secondary-ghost--active`]:"$color-secondary-100",[`color-bg-${LA}-attention--hover`]:"$color-danger-400",[`color-bg-${LA}-attention--active`]:"$color-danger-500",[`color-bg-${LA}-attention-outlined--hover`]:"$color-danger-50",[`color-bg-${LA}-attention-outlined--active`]:"$color-danger-100",[`color-bg-${LA}-attention-ghost--hover`]:"$color-danger-50",[`color-bg-${LA}-attention-ghost--active`]:"$color-danger-100"},dark:{[`color-text-${LA}`]:"$color-surface-50",[`color-text-${LA}-solid`]:"$color-surface-50",[`color-border-${LA}-primary`]:"$color-primary-500",[`color-bg-${LA}-primary--hover`]:"$color-primary-600",[`color-bg-${LA}-primary--active`]:"$color-primary-500",[`color-bg-${LA}-primary-outlined--hover`]:"$color-primary-900",[`color-bg-${LA}-primary-outlined--active`]:"$color-primary-950",[`color-border-${LA}-primary-outlined`]:"$color-primary-600",[`color-border-${LA}-primary-outlined--hover`]:"$color-primary-500",[`color-text-${LA}-primary-outlined`]:"$color-primary-100",[`color-text-${LA}-primary-outlined--hover`]:"$color-primary-50",[`color-text-${LA}-primary-outlined--active`]:"$color-primary-100",[`color-bg-${LA}-primary-ghost--hover`]:"$color-primary-900",[`color-bg-${LA}-primary-ghost--active`]:"$color-primary-950",[`color-border-${LA}-secondary`]:"$color-secondary-500",[`color-bg-${LA}-secondary`]:"$color-secondary-500",[`color-bg-${LA}-secondary--hover`]:"$color-secondary-400",[`color-bg-${LA}-secondary--active`]:"$color-secondary-500",[`color-bg-${LA}-secondary-outlined--hover`]:"$color-secondary-600",[`color-bg-${LA}-secondary-outlined--active`]:"$color-secondary-500",[`color-bg-${LA}-secondary-ghost--hover`]:"$color-secondary-900",[`color-bg-${LA}-secondary-ghost--active`]:"$color-secondary-950",[`color-bg-${LA}-attention--hover`]:"$color-danger-400",[`color-bg-${LA}-attention--active`]:"$color-danger-500",[`color-bg-${LA}-attention-outlined--hover`]:"$color-danger-900",[`color-bg-${LA}-attention-outlined--active`]:"$color-danger-950",[`color-bg-${LA}-attention-ghost--hover`]:"$color-danger-900",[`color-bg-${LA}-attention-ghost--active`]:"$color-danger-950"}}}),U4A=RA("Button",G4A,({node:A,extractValue:e,renderChild:t,lookupEventHandler:r,layoutCss:n})=>{const o=e.asString(A.props.icon),i=e.asDisplayText(A.props.label);return Q.jsx(or,{type:A.props.type,variant:e(A.props.variant),themeColor:e(A.props.themeColor),autoFocus:e.asOptionalBoolean(A.props.autoFocus),size:e(A.props.size),icon:o&&Q.jsx(be,{name:o}),iconPosition:e(A.props.iconPosition),contentPosition:e(A.props.contentPosition),disabled:!e.asOptionalBoolean(A.props.enabled??!0),onClick:r("click"),onFocus:r("gotFocus"),onBlur:r("lostFocus"),style:n,children:t(A.children,{type:"Stack",orientation:"horizontal"})||i})}),yi={themeVars:`'{"Heading:color-text-H1": "var(--xmlui-color-text-H1)", "Heading:letter-spacing-H1": "var(--xmlui-letter-spacing-H1)", "Heading:font-family-H1": "var(--xmlui-font-family-H1)", "Heading:font-weight-H1": "var(--xmlui-font-weight-H1)", "font-size-H1": "var(--xmlui-font-size-H1)", "line-height-H1": "var(--xmlui-line-height-H1)", "margin-top-H1": "var(--xmlui-margin-top-H1)", "margin-bottom-H1": "var(--xmlui-margin-bottom-H1)", "Heading:line-decoration-H1": "var(--xmlui-line-decoration-H1)", "Heading:color-decoration-H1": "var(--xmlui-color-decoration-H1)", "Heading:style-decoration-H1": "var(--xmlui-style-decoration-H1)", "Heading:thickness-decoration-H1": "var(--xmlui-thickness-decoration-H1)", "Heading:offset-decoration-H1": "var(--xmlui-offset-decoration-H1)", "Heading:color-text-H2": "var(--xmlui-color-text-H2)", "Heading:letter-spacing-H2": "var(--xmlui-letter-spacing-H2)", "Heading:font-family-H2": "var(--xmlui-font-family-H2)", "Heading:font-weight-H2": "var(--xmlui-font-weight-H2)", "font-size-H2": "var(--xmlui-font-size-H2)", "line-height-H2": "var(--xmlui-line-height-H2)", "margin-top-H2": "var(--xmlui-margin-top-H2)", "margin-bottom-H2": "var(--xmlui-margin-bottom-H2)", "Heading:line-decoration-H2": "var(--xmlui-line-decoration-H2)", "Heading:color-decoration-H2": "var(--xmlui-color-decoration-H2)", "Heading:style-decoration-H2": "var(--xmlui-style-decoration-H2)", "Heading:thickness-decoration-H2": "var(--xmlui-thickness-decoration-H2)", "Heading:offset-decoration-H2": "var(--xmlui-offset-decoration-H2)", "Heading:color-text-H3": "var(--xmlui-color-text-H3)", "Heading:letter-spacing-H3": "var(--xmlui-letter-spacing-H3)", "Heading:font-family-H3": "var(--xmlui-font-family-H3)", "Heading:font-weight-H3": "var(--xmlui-font-weight-H3)", "font-size-H3": "var(--xmlui-font-size-H3)", "line-height-H3": "var(--xmlui-line-height-H3)", "margin-top-H3": "var(--xmlui-margin-top-H3)", "margin-bottom-H3": "var(--xmlui-margin-bottom-H3)", "Heading:line-decoration-H3": "var(--xmlui-line-decoration-H3)", "Heading:color-decoration-H3": "var(--xmlui-color-decoration-H3)", "Heading:style-decoration-H3": "var(--xmlui-style-decoration-H3)", "Heading:thickness-decoration-H3": "var(--xmlui-thickness-decoration-H3)", "Heading:offset-decoration-H3": "var(--xmlui-offset-decoration-H3)", "Heading:color-text-H4": "var(--xmlui-color-text-H4)", "Heading:letter-spacing-H4": "var(--xmlui-letter-spacing-H4)", "Heading:font-family-H4": "var(--xmlui-font-family-H4)", "Heading:font-weight-H4": "var(--xmlui-font-weight-H4)", "font-size-H4": "var(--xmlui-font-size-H4)", "line-height-H4": "var(--xmlui-line-height-H4)", "margin-top-H4": "var(--xmlui-margin-top-H4)", "margin-bottom-H4": "var(--xmlui-margin-bottom-H4)", "Heading:line-decoration-H4": "var(--xmlui-line-decoration-H4)", "Heading:color-decoration-H4": "var(--xmlui-color-decoration-H4)", "Heading:style-decoration-H4": "var(--xmlui-style-decoration-H4)", "Heading:thickness-decoration-H4": "var(--xmlui-thickness-decoration-H4)", "Heading:offset-decoration-H4": "var(--xmlui-offset-decoration-H4)", "Heading:color-text-H5": "var(--xmlui-color-text-H5)", "Heading:letter-spacing-H5": "var(--xmlui-letter-spacing-H5)", "Heading:font-family-H5": "var(--xmlui-font-family-H5)", "Heading:font-weight-H5": "var(--xmlui-font-weight-H5)", "font-size-H5": "var(--xmlui-font-size-H5)", "line-height-H5": "var(--xmlui-line-height-H5)", "margin-top-H5": "var(--xmlui-margin-top-H5)", "margin-bottom-H5": "var(--xmlui-margin-bottom-H5)", "Heading:line-decoration-H5": "var(--xmlui-line-decoration-H5)", "Heading:color-decoration-H5": "var(--xmlui-color-decoration-H5)", "Heading:style-decoration-H5": "var(--xmlui-style-decoration-H5)", "Heading:thickness-decoration-H5": "var(--xmlui-thickness-decoration-H5)", "Heading:offset-decoration-H5": "var(--xmlui-offset-decoration-H5)", "Heading:color-text-H6": "var(--xmlui-color-text-H6)", "Heading:letter-spacing-H6": "var(--xmlui-letter-spacing-H6)", "Heading:font-family-H6": "var(--xmlui-font-family-H6)", "Heading:font-weight-H6": "var(--xmlui-font-weight-H6)", "font-size-H6": "var(--xmlui-font-size-H6)", "line-height-H6": "var(--xmlui-line-height-H6)", "margin-top-H6": "var(--xmlui-margin-top-H6)", "margin-bottom-H6": "var(--xmlui-margin-bottom-H6)", "Heading:line-decoration-H6": "var(--xmlui-line-decoration-H6)", "Heading:color-decoration-H6": "var(--xmlui-color-decoration-H6)", "Heading:style-decoration-H6": "var(--xmlui-style-decoration-H6)", "Heading:thickness-decoration-H6": "var(--xmlui-thickness-decoration-H6)", "Heading:offset-decoration-H6": "var(--xmlui-offset-decoration-H6)"}'`,heading:"_heading_1tifa_13",h1:"_h1_1tifa_13",h2:"_h2_1tifa_28",h3:"_h3_1tifa_43",h4:"_h4_1tifa_58",h5:"_h5_1tifa_73",h6:"_h6_1tifa_88",truncateOverflow:"_truncateOverflow_1tifa_108",preserveLinebreaks:"_preserveLinebreaks_1tifa_114",noEllipsis:"_noEllipsis_1tifa_118"},sG=A=>typeof A=="object"&&A!=null&&A.nodeType===1,lG=(A,e)=>(!e||A!=="hidden")&&A!=="visible"&&A!=="clip",e4=(A,e)=>{if(A.clientHeight<A.scrollHeight||A.clientWidth<A.scrollWidth){const t=getComputedStyle(A,null);return lG(t.overflowY,e)||lG(t.overflowX,e)||(r=>{const n=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!n&&(n.clientHeight<r.scrollHeight||n.clientWidth<r.scrollWidth)})(A)}return!1},cw=(A,e,t,r,n,o,i,a)=>o<A&&i>e||o>A&&i<e?0:o<=A&&a<=t||i>=e&&a>=t?o-A-r:i>e&&a<t||o<A&&a>t?i-e+n:0,K4A=A=>{const e=A.parentElement;return e??(A.getRootNode().host||null)},cG=(A,e)=>{var t,r,n,o;if(typeof document>"u")return[];const{scrollMode:i,block:a,inline:s,boundary:l,skipOverflowHiddenElements:c}=e,u=typeof l=="function"?l:z=>z!==l;if(!sG(A))throw new TypeError("Invalid target");const g=document.scrollingElement||document.documentElement,h=[];let B=A;for(;sG(B)&&u(B);){if(B=K4A(B),B===g){h.push(B);break}B!=null&&B===document.body&&e4(B)&&!e4(document.documentElement)||B!=null&&e4(B,c)&&h.push(B)}const E=(r=(t=window.visualViewport)==null?void 0:t.width)!=null?r:innerWidth,C=(o=(n=window.visualViewport)==null?void 0:n.height)!=null?o:innerHeight,{scrollX:m,scrollY:I}=window,{height:v,width:y,top:x,right:b,bottom:k,left:M}=A.getBoundingClientRect(),{top:N,right:F,bottom:L,left:T}=(z=>{const q=window.getComputedStyle(z);return{top:parseFloat(q.scrollMarginTop)||0,right:parseFloat(q.scrollMarginRight)||0,bottom:parseFloat(q.scrollMarginBottom)||0,left:parseFloat(q.scrollMarginLeft)||0}})(A);let P=a==="start"||a==="nearest"?x-N:a==="end"?k+L:x+v/2-N+L,G=s==="center"?M+y/2-T+F:s==="end"?b+F:M-T;const H=[];for(let z=0;z<h.length;z++){const q=h[z],{height:O,width:Y,top:S,right:J,bottom:$,left:U}=q.getBoundingClientRect();if(i==="if-needed"&&x>=0&&M>=0&&k<=C&&b<=E&&x>=S&&k<=$&&M>=U&&b<=J)return H;const AA=getComputedStyle(q),Z=parseInt(AA.borderLeftWidth,10),tA=parseInt(AA.borderTopWidth,10),nA=parseInt(AA.borderRightWidth,10),sA=parseInt(AA.borderBottomWidth,10);let iA=0,aA=0;const rA="offsetWidth"in q?q.offsetWidth-q.clientWidth-Z-nA:0,X="offsetHeight"in q?q.offsetHeight-q.clientHeight-tA-sA:0,cA="offsetWidth"in q?q.offsetWidth===0?0:Y/q.offsetWidth:0,hA="offsetHeight"in q?q.offsetHeight===0?0:O/q.offsetHeight:0;if(g===q)iA=a==="start"?P:a==="end"?P-C:a==="nearest"?cw(I,I+C,C,tA,sA,I+P,I+P+v,v):P-C/2,aA=s==="start"?G:s==="center"?G-E/2:s==="end"?G-E:cw(m,m+E,E,Z,nA,m+G,m+G+y,y),iA=Math.max(0,iA+I),aA=Math.max(0,aA+m);else{iA=a==="start"?P-S-tA:a==="end"?P-$+sA+X:a==="nearest"?cw(S,$,O,tA,sA+X,P,P+v,v):P-(S+O/2)+X/2,aA=s==="start"?G-U-Z:s==="center"?G-(U+Y/2)+rA/2:s==="end"?G-J+nA+rA:cw(U,J,Y,Z,nA+rA,G,G+y,y);const{scrollLeft:EA,scrollTop:IA}=q;iA=hA===0?0:Math.max(0,Math.min(IA+iA/hA,q.scrollHeight-O/hA+X)),aA=cA===0?0:Math.max(0,Math.min(EA+aA/cA,q.scrollWidth-Y/cA+rA)),P+=IA-iA,G+=EA-aA}H.push({el:q,top:iA,left:aA})}return H},Y4A=A=>A===!1?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&Object.keys(e).length!==0)(A)?A:{block:"start",inline:"nearest"};function t4(A,e){if(!A.isConnected||!(n=>{let o=n;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(A))return;const t=(n=>{const o=window.getComputedStyle(n);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(A);if((n=>typeof n=="object"&&typeof n.behavior=="function")(e))return e.behavior(cG(A,e));const r=typeof e=="boolean"||e==null?void 0:e.behavior;for(const{el:n,top:o,left:i}of cG(A,Y4A(e))){const a=o-t.top+t.bottom,s=i-t.left+t.right;n.scroll({top:a,left:s,behavior:r})}}const uw=d.createContext(null);function $4A({children:A}){const[e,t]=d.useState({}),[r,n]=d.useState(!1),[o,i]=d.useState(null),a=d.useRef(null),s=d.useRef(null);d.useEffect(()=>{if(r){const h=B=>{B.forEach(E=>{E!=null&&E.isIntersecting&&i(E.target.id)})};return a.current=new IntersectionObserver(h,{rootMargin:"0px 0px -50%",threshold:[0,1]}),Object.values(e).forEach(B=>{var E,C;return(C=(E=a==null?void 0:a.current)==null?void 0:E.observe)==null?void 0:C.call(E,B.anchor)}),()=>{var B;return(B=a.current)==null?void 0:B.disconnect()}}},[e,r]);const l=d.useCallback(h=>(t(B=>({...B,[h.id]:h})),()=>{t(B=>{const E={...B};return delete E[h.id],E})}),[]),c=d.useCallback(h=>{e[h]&&i(h)},[e]),u=d.useMemo(()=>Object.values(e).sort(function(h,B){return h.anchor===B.anchor?0:h.anchor.compareDocumentPosition(B.anchor)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),[e]);d.useEffect(()=>{var B;const h=window.location.hash;if(h){if(s!=null&&s.current)return;s.current=(B=u.find(E=>`#${E.id}`===h))==null?void 0:B.anchor,s.current&&t4(s.current,{block:"start",inline:"start",behavior:"instant",scrollMode:"always"})}},[u]);const g=d.useMemo(()=>({registerHeading:l,headings:u,observeIntersection:r,setObserveIntersection:n,activeAnchorId:o,setActiveAnchorId:c}),[l,u,r,o,c]);return Q.jsx(uw.Provider,{value:g,children:A})}function j4A(){const A=d.useContext(uw);if(!A)throw new Error("useTableOfContents must be used within a TableOfContentsProvider");return A}const Zs=d.forwardRef(function({uid:e,level:t="h1",children:r,sx:n,style:o,title:i,maxLines:a=0,preserveLinebreaks:s,ellipses:l=!0,className:c},u){const g=t==null?void 0:t.toLowerCase(),h=d.useRef(null),[B,E]=d.useState(null),C=d.useRef(null),m=d.useContext(uw),I=m==null?void 0:m.registerHeading,v=m==null?void 0:m.observeIntersection,y=u?Zr(h,u):h;return d.useEffect(()=>{var x,b,k,M;if(v&&h.current){const N=(M=(k=(b=(x=h.current.textContent)==null?void 0:x.trim())==null?void 0:b.replace(/[^\w\s-]/g,""))==null?void 0:k.replace(/\s+/g,"-"))==null?void 0:M.toLowerCase();E(N||null)}},[v]),d.useEffect(()=>{if(v&&h.current&&B)return I==null?void 0:I({id:B,level:parseInt(t.replace("h","")),text:h.current.textContent.trim(),anchor:C.current})},[B,v,I,t]),Q.jsxs(g,{ref:y,id:e,title:i,style:{...n,...o,...oG(a)},className:KA(yi.heading,yi[g],c||"",{[yi.truncateOverflow]:a>0,[yi.preserveLinebreaks]:s,[yi.noEllipsis]:!l}),children:[B&&v&&Q.jsx("span",{ref:C,id:B,style:{width:0,height:0}}),r]})}),bi="Heading",tf=j(`This property determines the text displayed in the heading. \`${bi}\` also accepts nested text instead of specifying the \`value\`. If both \`value\` and a nested text are used, the \`value\` will be displayed.`),rf=j("This property determines the maximum number of lines the component can wrap to. If there is not enough space for all of the text, the component wraps the text up to as many lines as specified."),q4A=j("This property indicates whether ellipses should be displayed (`true`) when the heading text is cropped or not (`false`)."),J4A=j("This property indicates whether linebreaks should be preserved when displaying text."),Dd=A=>`Represents a heading level ${A} text`,z4A=kA({description:"Represents a heading text",props:{value:tf,level:j("This property sets the visual significance (level) of the heading."),maxLines:rf,ellipses:q4A,preserveLinebreaks:J4A},themeVars:ne(yi.themeVars),defaultThemeVars:{[`font-family-${bi}`]:"$font-family",[`color-text-${bi}`]:"$color-text-primary",[`font-weight-${bi}`]:"$font-weight-bold",[`letter-spacing-${bi} `]:"0",light:{},dark:{}}}),fw="H1",W4A=kA({description:Dd(1),specializedFrom:bi,props:{value:tf,maxLines:rf},themeVars:ne(yi.themeVars),defaultThemeVars:{[`font-size-${fw}`]:"$font-size-large",[`margin-top-${fw}`]:"0",[`margin-bottom-${fw}`]:"0",light:{},dark:{}}}),gw="H2",V4A=kA({description:Dd(2),specializedFrom:bi,props:{value:tf,maxLines:rf},themeVars:ne(yi.themeVars),defaultThemeVars:{[`font-size-${gw}`]:"$font-size-medium",[`margin-top-${gw}`]:"0",[`margin-bottom-${gw}`]:"0",light:{},dark:{}}}),dw="H3",X4A=kA({description:Dd(3),specializedFrom:bi,props:{value:tf,maxLines:rf},themeVars:ne(yi.themeVars),defaultThemeVars:{[`font-size-${dw}`]:"$font-size-normal",[`margin-top-${dw}`]:"0",[`margin-bottom-${dw}`]:"0",light:{},dark:{}}}),hw="H4",Z4A=kA({description:Dd(4),specializedFrom:bi,props:{value:tf,maxLines:rf},themeVars:ne(yi.themeVars),defaultThemeVars:{[`font-size-${hw}`]:"$font-size-small",[`margin-top-${hw}`]:"0",[`margin-bottom-${hw}`]:"0",light:{},dark:{}}}),pw="H5",A_A=kA({description:Dd(5),specializedFrom:bi,props:{value:tf,maxLines:rf},themeVars:ne(yi.themeVars),defaultThemeVars:{[`font-size-${pw}`]:"$font-size-smaller",[`margin-top-${pw}`]:"0",[`margin-bottom-${pw}`]:"0",light:{},dark:{}}}),Bw="H6",e_A=kA({description:Dd(6),specializedFrom:bi,props:{value:tf,maxLines:rf},themeVars:ne(yi.themeVars),defaultThemeVars:{[`font-size-${Bw}`]:"$font-size-tiny",[`margin-top-${Bw}`]:"0",[`margin-bottom-${Bw}`]:"0",light:{},dark:{}}});function nf({node:A,extractValue:e,layoutCss:t,level:r,renderChild:n}){return Q.jsx(Zs,{uid:A.uid,level:e.asOptionalString(r)??"h1",maxLines:e.asOptionalNumber(A.props.maxLines),preserveLinebreaks:e.asOptionalBoolean(A.props.preserveLinebreaks,!1),ellipses:e.asOptionalBoolean(A.props.ellipses,!0),style:t,children:e.asDisplayText(A.props.value)||n(A.children)})}const t_A=RA(bi,z4A,({node:A,extractValue:e,layoutCss:t,layoutNonCss:r,renderChild:n})=>nf({node:A,extractValue:e,layoutCss:t,layoutNonCss:r,level:A.props.level,renderChild:n})),r_A=RA(fw,W4A,({node:A,extractValue:e,layoutCss:t,layoutNonCss:r,renderChild:n})=>nf({node:A,extractValue:e,layoutCss:t,layoutNonCss:r,level:"h1",renderChild:n})),n_A=RA(gw,V4A,({node:A,extractValue:e,layoutCss:t,layoutNonCss:r,renderChild:n})=>nf({node:A,extractValue:e,layoutCss:t,layoutNonCss:r,level:"h2",renderChild:n})),o_A=RA(dw,X4A,({node:A,extractValue:e,layoutCss:t,layoutNonCss:r,renderChild:n})=>nf({node:A,extractValue:e,layoutCss:t,layoutNonCss:r,level:"h3",renderChild:n})),i_A=RA(hw,Z4A,({node:A,extractValue:e,layoutCss:t,layoutNonCss:r,renderChild:n})=>nf({node:A,extractValue:e,layoutCss:t,layoutNonCss:r,level:"h4",renderChild:n})),a_A=RA(pw,A_A,({node:A,extractValue:e,layoutCss:t,layoutNonCss:r,renderChild:n})=>nf({node:A,extractValue:e,layoutCss:t,layoutNonCss:r,level:"h5",renderChild:n})),s_A=RA(Bw,e_A,({node:A,extractValue:e,layoutCss:t,layoutNonCss:r,renderChild:n})=>nf({node:A,extractValue:e,layoutCss:t,layoutNonCss:r,level:"h6",renderChild:n})),yd={themeVars:`'{"font-family-Text-abbr": "var(--xmlui-font-family-Text-abbr)", "font-size-Text-abbr": "var(--xmlui-font-size-Text-abbr)", "font-weight-Text-abbr": "var(--xmlui-font-weight-Text-abbr)", "font-style-Text-abbr": "var(--xmlui-font-style-Text-abbr)", "font-stretch-Text-abbr": "var(--xmlui-font-stretch-Text-abbr)", "line-decoration-Text-abbr": "var(--xmlui-line-decoration-Text-abbr)", "color-decoration-Text-abbr": "var(--xmlui-color-decoration-Text-abbr)", "style-decoration-Text-abbr": "var(--xmlui-style-decoration-Text-abbr)", "thickness-decoration-Text-abbr": "var(--xmlui-thickness-decoration-Text-abbr)", "offset-decoration-Text-abbr": "var(--xmlui-offset-decoration-Text-abbr)", "line-height-Text-abbr": "var(--xmlui-line-height-Text-abbr)", "color-Text-abbr": "var(--xmlui-color-Text-abbr)", "color-bg-Text-abbr": "var(--xmlui-color-bg-Text-abbr)", "border-radius-Text-abbr": "var(--xmlui-border-radius-Text-abbr)", "color-border-Text-abbr": "var(--xmlui-color-border-Text-abbr)", "thickness-border-Text-abbr": "var(--xmlui-thickness-border-Text-abbr)", "style-border-Text-abbr": "var(--xmlui-style-border-Text-abbr)", "margin-top-Text-abbr": "var(--xmlui-margin-top-Text-abbr)", "margin-bottom-Text-abbr": "var(--xmlui-margin-bottom-Text-abbr)", "padding-horizontal-Text-abbr": "var(--xmlui-padding-horizontal-Text-abbr)", "padding-vertical-Text-abbr": "var(--xmlui-padding-vertical-Text-abbr)", "transform-Text-abbr": "var(--xmlui-transform-Text-abbr)", "align-vertical-Text-abbr": "var(--xmlui-align-vertical-Text-abbr)", "letter-spacing-Text-abbr": "var(--xmlui-letter-spacing-Text-abbr)", "font-family-Text-cite": "var(--xmlui-font-family-Text-cite)", "font-size-Text-cite": "var(--xmlui-font-size-Text-cite)", "font-weight-Text-cite": "var(--xmlui-font-weight-Text-cite)", "font-style-Text-cite": "var(--xmlui-font-style-Text-cite)", "font-stretch-Text-cite": "var(--xmlui-font-stretch-Text-cite)", "line-decoration-Text-cite": "var(--xmlui-line-decoration-Text-cite)", "color-decoration-Text-cite": "var(--xmlui-color-decoration-Text-cite)", "style-decoration-Text-cite": "var(--xmlui-style-decoration-Text-cite)", "thickness-decoration-Text-cite": "var(--xmlui-thickness-decoration-Text-cite)", "offset-decoration-Text-cite": "var(--xmlui-offset-decoration-Text-cite)", "line-height-Text-cite": "var(--xmlui-line-height-Text-cite)", "color-Text-cite": "var(--xmlui-color-Text-cite)", "color-bg-Text-cite": "var(--xmlui-color-bg-Text-cite)", "border-radius-Text-cite": "var(--xmlui-border-radius-Text-cite)", "color-border-Text-cite": "var(--xmlui-color-border-Text-cite)", "thickness-border-Text-cite": "var(--xmlui-thickness-border-Text-cite)", "style-border-Text-cite": "var(--xmlui-style-border-Text-cite)", "margin-top-Text-cite": "var(--xmlui-margin-top-Text-cite)", "margin-bottom-Text-cite": "var(--xmlui-margin-bottom-Text-cite)", "padding-horizontal-Text-cite": "var(--xmlui-padding-horizontal-Text-cite)", "padding-vertical-Text-cite": "var(--xmlui-padding-vertical-Text-cite)", "transform-Text-cite": "var(--xmlui-transform-Text-cite)", "align-vertical-Text-cite": "var(--xmlui-align-vertical-Text-cite)", "letter-spacing-Text-cite": "var(--xmlui-letter-spacing-Text-cite)", "font-family-Text-code": "var(--xmlui-font-family-Text-code)", "font-size-Text-code": "var(--xmlui-font-size-Text-code)", "font-weight-Text-code": "var(--xmlui-font-weight-Text-code)", "font-style-Text-code": "var(--xmlui-font-style-Text-code)", "font-stretch-Text-code": "var(--xmlui-font-stretch-Text-code)", "line-decoration-Text-code": "var(--xmlui-line-decoration-Text-code)", "color-decoration-Text-code": "var(--xmlui-color-decoration-Text-code)", "style-decoration-Text-code": "var(--xmlui-style-decoration-Text-code)", "thickness-decoration-Text-code": "var(--xmlui-thickness-decoration-Text-code)", "offset-decoration-Text-code": "var(--xmlui-offset-decoration-Text-code)", "line-height-Text-code": "var(--xmlui-line-height-Text-code)", "color-Text-code": "var(--xmlui-color-Text-code)", "color-bg-Text-code": "var(--xmlui-color-bg-Text-code)", "border-radius-Text-code": "var(--xmlui-border-radius-Text-code)", "color-border-Text-code": "var(--xmlui-color-border-Text-code)", "thickness-border-Text-code": "var(--xmlui-thickness-border-Text-code)", "style-border-Text-code": "var(--xmlui-style-border-Text-code)", "margin-top-Text-code": "var(--xmlui-margin-top-Text-code)", "margin-bottom-Text-code": "var(--xmlui-margin-bottom-Text-code)", "padding-horizontal-Text-code": "var(--xmlui-padding-horizontal-Text-code)", "padding-vertical-Text-code": "var(--xmlui-padding-vertical-Text-code)", "transform-Text-code": "var(--xmlui-transform-Text-code)", "align-vertical-Text-code": "var(--xmlui-align-vertical-Text-code)", "letter-spacing-Text-code": "var(--xmlui-letter-spacing-Text-code)", "font-family-Text-codefence": "var(--xmlui-font-family-Text-codefence)", "font-size-Text-codefence": "var(--xmlui-font-size-Text-codefence)", "font-weight-Text-codefence": "var(--xmlui-font-weight-Text-codefence)", "font-style-Text-codefence": "var(--xmlui-font-style-Text-codefence)", "font-stretch-Text-codefence": "var(--xmlui-font-stretch-Text-codefence)", "line-decoration-Text-codefence": "var(--xmlui-line-decoration-Text-codefence)", "color-decoration-Text-codefence": "var(--xmlui-color-decoration-Text-codefence)", "style-decoration-Text-codefence": "var(--xmlui-style-decoration-Text-codefence)", "thickness-decoration-Text-codefence": "var(--xmlui-thickness-decoration-Text-codefence)", "offset-decoration-Text-codefence": "var(--xmlui-offset-decoration-Text-codefence)", "line-height-Text-codefence": "var(--xmlui-line-height-Text-codefence)", "color-Text-codefence": "var(--xmlui-color-Text-codefence)", "color-bg-Text-codefence": "var(--xmlui-color-bg-Text-codefence)", "border-radius-Text-codefence": "var(--xmlui-border-radius-Text-codefence)", "color-border-Text-codefence": "var(--xmlui-color-border-Text-codefence)", "thickness-border-Text-codefence": "var(--xmlui-thickness-border-Text-codefence)", "style-border-Text-codefence": "var(--xmlui-style-border-Text-codefence)", "margin-top-Text-codefence": "var(--xmlui-margin-top-Text-codefence)", "margin-bottom-Text-codefence": "var(--xmlui-margin-bottom-Text-codefence)", "padding-horizontal-Text-codefence": "var(--xmlui-padding-horizontal-Text-codefence)", "padding-vertical-Text-codefence": "var(--xmlui-padding-vertical-Text-codefence)", "transform-Text-codefence": "var(--xmlui-transform-Text-codefence)", "align-vertical-Text-codefence": "var(--xmlui-align-vertical-Text-codefence)", "letter-spacing-Text-codefence": "var(--xmlui-letter-spacing-Text-codefence)", "font-family-Text-deleted": "var(--xmlui-font-family-Text-deleted)", "font-size-Text-deleted": "var(--xmlui-font-size-Text-deleted)", "font-weight-Text-deleted": "var(--xmlui-font-weight-Text-deleted)", "font-style-Text-deleted": "var(--xmlui-font-style-Text-deleted)", "font-stretch-Text-deleted": "var(--xmlui-font-stretch-Text-deleted)", "line-decoration-Text-deleted": "var(--xmlui-line-decoration-Text-deleted)", "color-decoration-Text-deleted": "var(--xmlui-color-decoration-Text-deleted)", "style-decoration-Text-deleted": "var(--xmlui-style-decoration-Text-deleted)", "thickness-decoration-Text-deleted": "var(--xmlui-thickness-decoration-Text-deleted)", "offset-decoration-Text-deleted": "var(--xmlui-offset-decoration-Text-deleted)", "line-height-Text-deleted": "var(--xmlui-line-height-Text-deleted)", "color-Text-deleted": "var(--xmlui-color-Text-deleted)", "color-bg-Text-deleted": "var(--xmlui-color-bg-Text-deleted)", "border-radius-Text-deleted": "var(--xmlui-border-radius-Text-deleted)", "color-border-Text-deleted": "var(--xmlui-color-border-Text-deleted)", "thickness-border-Text-deleted": "var(--xmlui-thickness-border-Text-deleted)", "style-border-Text-deleted": "var(--xmlui-style-border-Text-deleted)", "margin-top-Text-deleted": "var(--xmlui-margin-top-Text-deleted)", "margin-bottom-Text-deleted": "var(--xmlui-margin-bottom-Text-deleted)", "padding-horizontal-Text-deleted": "var(--xmlui-padding-horizontal-Text-deleted)", "padding-vertical-Text-deleted": "var(--xmlui-padding-vertical-Text-deleted)", "transform-Text-deleted": "var(--xmlui-transform-Text-deleted)", "align-vertical-Text-deleted": "var(--xmlui-align-vertical-Text-deleted)", "letter-spacing-Text-deleted": "var(--xmlui-letter-spacing-Text-deleted)", "font-family-Text-inserted": "var(--xmlui-font-family-Text-inserted)", "font-size-Text-inserted": "var(--xmlui-font-size-Text-inserted)", "font-weight-Text-inserted": "var(--xmlui-font-weight-Text-inserted)", "font-style-Text-inserted": "var(--xmlui-font-style-Text-inserted)", "font-stretch-Text-inserted": "var(--xmlui-font-stretch-Text-inserted)", "line-decoration-Text-inserted": "var(--xmlui-line-decoration-Text-inserted)", "color-decoration-Text-inserted": "var(--xmlui-color-decoration-Text-inserted)", "style-decoration-Text-inserted": "var(--xmlui-style-decoration-Text-inserted)", "thickness-decoration-Text-inserted": "var(--xmlui-thickness-decoration-Text-inserted)", "offset-decoration-Text-inserted": "var(--xmlui-offset-decoration-Text-inserted)", "line-height-Text-inserted": "var(--xmlui-line-height-Text-inserted)", "color-Text-inserted": "var(--xmlui-color-Text-inserted)", "color-bg-Text-inserted": "var(--xmlui-color-bg-Text-inserted)", "border-radius-Text-inserted": "var(--xmlui-border-radius-Text-inserted)", "color-border-Text-inserted": "var(--xmlui-color-border-Text-inserted)", "thickness-border-Text-inserted": "var(--xmlui-thickness-border-Text-inserted)", "style-border-Text-inserted": "var(--xmlui-style-border-Text-inserted)", "margin-top-Text-inserted": "var(--xmlui-margin-top-Text-inserted)", "margin-bottom-Text-inserted": "var(--xmlui-margin-bottom-Text-inserted)", "padding-horizontal-Text-inserted": "var(--xmlui-padding-horizontal-Text-inserted)", "padding-vertical-Text-inserted": "var(--xmlui-padding-vertical-Text-inserted)", "transform-Text-inserted": "var(--xmlui-transform-Text-inserted)", "align-vertical-Text-inserted": "var(--xmlui-align-vertical-Text-inserted)", "letter-spacing-Text-inserted": "var(--xmlui-letter-spacing-Text-inserted)", "font-family-Text-keyboard": "var(--xmlui-font-family-Text-keyboard)", "font-size-Text-keyboard": "var(--xmlui-font-size-Text-keyboard)", "font-weight-Text-keyboard": "var(--xmlui-font-weight-Text-keyboard)", "font-style-Text-keyboard": "var(--xmlui-font-style-Text-keyboard)", "font-stretch-Text-keyboard": "var(--xmlui-font-stretch-Text-keyboard)", "line-decoration-Text-keyboard": "var(--xmlui-line-decoration-Text-keyboard)", "color-decoration-Text-keyboard": "var(--xmlui-color-decoration-Text-keyboard)", "style-decoration-Text-keyboard": "var(--xmlui-style-decoration-Text-keyboard)", "thickness-decoration-Text-keyboard": "var(--xmlui-thickness-decoration-Text-keyboard)", "offset-decoration-Text-keyboard": "var(--xmlui-offset-decoration-Text-keyboard)", "line-height-Text-keyboard": "var(--xmlui-line-height-Text-keyboard)", "color-Text-keyboard": "var(--xmlui-color-Text-keyboard)", "color-bg-Text-keyboard": "var(--xmlui-color-bg-Text-keyboard)", "border-radius-Text-keyboard": "var(--xmlui-border-radius-Text-keyboard)", "color-border-Text-keyboard": "var(--xmlui-color-border-Text-keyboard)", "thickness-border-Text-keyboard": "var(--xmlui-thickness-border-Text-keyboard)", "style-border-Text-keyboard": "var(--xmlui-style-border-Text-keyboard)", "margin-top-Text-keyboard": "var(--xmlui-margin-top-Text-keyboard)", "margin-bottom-Text-keyboard": "var(--xmlui-margin-bottom-Text-keyboard)", "padding-horizontal-Text-keyboard": "var(--xmlui-padding-horizontal-Text-keyboard)", "padding-vertical-Text-keyboard": "var(--xmlui-padding-vertical-Text-keyboard)", "transform-Text-keyboard": "var(--xmlui-transform-Text-keyboard)", "align-vertical-Text-keyboard": "var(--xmlui-align-vertical-Text-keyboard)", "letter-spacing-Text-keyboard": "var(--xmlui-letter-spacing-Text-keyboard)", "font-family-Text-marked": "var(--xmlui-font-family-Text-marked)", "font-size-Text-marked": "var(--xmlui-font-size-Text-marked)", "font-weight-Text-marked": "var(--xmlui-font-weight-Text-marked)", "font-style-Text-marked": "var(--xmlui-font-style-Text-marked)", "font-stretch-Text-marked": "var(--xmlui-font-stretch-Text-marked)", "line-decoration-Text-marked": "var(--xmlui-line-decoration-Text-marked)", "color-decoration-Text-marked": "var(--xmlui-color-decoration-Text-marked)", "style-decoration-Text-marked": "var(--xmlui-style-decoration-Text-marked)", "thickness-decoration-Text-marked": "var(--xmlui-thickness-decoration-Text-marked)", "offset-decoration-Text-marked": "var(--xmlui-offset-decoration-Text-marked)", "line-height-Text-marked": "var(--xmlui-line-height-Text-marked)", "color-Text-marked": "var(--xmlui-color-Text-marked)", "color-bg-Text-marked": "var(--xmlui-color-bg-Text-marked)", "border-radius-Text-marked": "var(--xmlui-border-radius-Text-marked)", "color-border-Text-marked": "var(--xmlui-color-border-Text-marked)", "thickness-border-Text-marked": "var(--xmlui-thickness-border-Text-marked)", "style-border-Text-marked": "var(--xmlui-style-border-Text-marked)", "margin-top-Text-marked": "var(--xmlui-margin-top-Text-marked)", "margin-bottom-Text-marked": "var(--xmlui-margin-bottom-Text-marked)", "padding-horizontal-Text-marked": "var(--xmlui-padding-horizontal-Text-marked)", "padding-vertical-Text-marked": "var(--xmlui-padding-vertical-Text-marked)", "transform-Text-marked": "var(--xmlui-transform-Text-marked)", "align-vertical-Text-marked": "var(--xmlui-align-vertical-Text-marked)", "letter-spacing-Text-marked": "var(--xmlui-letter-spacing-Text-marked)", "font-family-Text-mono": "var(--xmlui-font-family-Text-mono)", "font-size-Text-mono": "var(--xmlui-font-size-Text-mono)", "font-weight-Text-mono": "var(--xmlui-font-weight-Text-mono)", "font-style-Text-mono": "var(--xmlui-font-style-Text-mono)", "font-stretch-Text-mono": "var(--xmlui-font-stretch-Text-mono)", "line-decoration-Text-mono": "var(--xmlui-line-decoration-Text-mono)", "color-decoration-Text-mono": "var(--xmlui-color-decoration-Text-mono)", "style-decoration-Text-mono": "var(--xmlui-style-decoration-Text-mono)", "thickness-decoration-Text-mono": "var(--xmlui-thickness-decoration-Text-mono)", "offset-decoration-Text-mono": "var(--xmlui-offset-decoration-Text-mono)", "line-height-Text-mono": "var(--xmlui-line-height-Text-mono)", "color-Text-mono": "var(--xmlui-color-Text-mono)", "color-bg-Text-mono": "var(--xmlui-color-bg-Text-mono)", "border-radius-Text-mono": "var(--xmlui-border-radius-Text-mono)", "color-border-Text-mono": "var(--xmlui-color-border-Text-mono)", "thickness-border-Text-mono": "var(--xmlui-thickness-border-Text-mono)", "style-border-Text-mono": "var(--xmlui-style-border-Text-mono)", "margin-top-Text-mono": "var(--xmlui-margin-top-Text-mono)", "margin-bottom-Text-mono": "var(--xmlui-margin-bottom-Text-mono)", "padding-horizontal-Text-mono": "var(--xmlui-padding-horizontal-Text-mono)", "padding-vertical-Text-mono": "var(--xmlui-padding-vertical-Text-mono)", "transform-Text-mono": "var(--xmlui-transform-Text-mono)", "align-vertical-Text-mono": "var(--xmlui-align-vertical-Text-mono)", "letter-spacing-Text-mono": "var(--xmlui-letter-spacing-Text-mono)", "font-family-Text-sample": "var(--xmlui-font-family-Text-sample)", "font-size-Text-sample": "var(--xmlui-font-size-Text-sample)", "font-weight-Text-sample": "var(--xmlui-font-weight-Text-sample)", "font-style-Text-sample": "var(--xmlui-font-style-Text-sample)", "font-stretch-Text-sample": "var(--xmlui-font-stretch-Text-sample)", "line-decoration-Text-sample": "var(--xmlui-line-decoration-Text-sample)", "color-decoration-Text-sample": "var(--xmlui-color-decoration-Text-sample)", "style-decoration-Text-sample": "var(--xmlui-style-decoration-Text-sample)", "thickness-decoration-Text-sample": "var(--xmlui-thickness-decoration-Text-sample)", "offset-decoration-Text-sample": "var(--xmlui-offset-decoration-Text-sample)", "line-height-Text-sample": "var(--xmlui-line-height-Text-sample)", "color-Text-sample": "var(--xmlui-color-Text-sample)", "color-bg-Text-sample": "var(--xmlui-color-bg-Text-sample)", "border-radius-Text-sample": "var(--xmlui-border-radius-Text-sample)", "color-border-Text-sample": "var(--xmlui-color-border-Text-sample)", "thickness-border-Text-sample": "var(--xmlui-thickness-border-Text-sample)", "style-border-Text-sample": "var(--xmlui-style-border-Text-sample)", "margin-top-Text-sample": "var(--xmlui-margin-top-Text-sample)", "margin-bottom-Text-sample": "var(--xmlui-margin-bottom-Text-sample)", "padding-horizontal-Text-sample": "var(--xmlui-padding-horizontal-Text-sample)", "padding-vertical-Text-sample": "var(--xmlui-padding-vertical-Text-sample)", "transform-Text-sample": "var(--xmlui-transform-Text-sample)", "align-vertical-Text-sample": "var(--xmlui-align-vertical-Text-sample)", "letter-spacing-Text-sample": "var(--xmlui-letter-spacing-Text-sample)", "font-family-Text-sup": "var(--xmlui-font-family-Text-sup)", "font-size-Text-sup": "var(--xmlui-font-size-Text-sup)", "font-weight-Text-sup": "var(--xmlui-font-weight-Text-sup)", "font-style-Text-sup": "var(--xmlui-font-style-Text-sup)", "font-stretch-Text-sup": "var(--xmlui-font-stretch-Text-sup)", "line-decoration-Text-sup": "var(--xmlui-line-decoration-Text-sup)", "color-decoration-Text-sup": "var(--xmlui-color-decoration-Text-sup)", "style-decoration-Text-sup": "var(--xmlui-style-decoration-Text-sup)", "thickness-decoration-Text-sup": "var(--xmlui-thickness-decoration-Text-sup)", "offset-decoration-Text-sup": "var(--xmlui-offset-decoration-Text-sup)", "line-height-Text-sup": "var(--xmlui-line-height-Text-sup)", "color-Text-sup": "var(--xmlui-color-Text-sup)", "color-bg-Text-sup": "var(--xmlui-color-bg-Text-sup)", "border-radius-Text-sup": "var(--xmlui-border-radius-Text-sup)", "color-border-Text-sup": "var(--xmlui-color-border-Text-sup)", "thickness-border-Text-sup": "var(--xmlui-thickness-border-Text-sup)", "style-border-Text-sup": "var(--xmlui-style-border-Text-sup)", "margin-top-Text-sup": "var(--xmlui-margin-top-Text-sup)", "margin-bottom-Text-sup": "var(--xmlui-margin-bottom-Text-sup)", "padding-horizontal-Text-sup": "var(--xmlui-padding-horizontal-Text-sup)", "padding-vertical-Text-sup": "var(--xmlui-padding-vertical-Text-sup)", "transform-Text-sup": "var(--xmlui-transform-Text-sup)", "align-vertical-Text-sup": "var(--xmlui-align-vertical-Text-sup)", "letter-spacing-Text-sup": "var(--xmlui-letter-spacing-Text-sup)", "font-family-Text-sub": "var(--xmlui-font-family-Text-sub)", "font-size-Text-sub": "var(--xmlui-font-size-Text-sub)", "font-weight-Text-sub": "var(--xmlui-font-weight-Text-sub)", "font-style-Text-sub": "var(--xmlui-font-style-Text-sub)", "font-stretch-Text-sub": "var(--xmlui-font-stretch-Text-sub)", "line-decoration-Text-sub": "var(--xmlui-line-decoration-Text-sub)", "color-decoration-Text-sub": "var(--xmlui-color-decoration-Text-sub)", "style-decoration-Text-sub": "var(--xmlui-style-decoration-Text-sub)", "thickness-decoration-Text-sub": "var(--xmlui-thickness-decoration-Text-sub)", "offset-decoration-Text-sub": "var(--xmlui-offset-decoration-Text-sub)", "line-height-Text-sub": "var(--xmlui-line-height-Text-sub)", "color-Text-sub": "var(--xmlui-color-Text-sub)", "color-bg-Text-sub": "var(--xmlui-color-bg-Text-sub)", "border-radius-Text-sub": "var(--xmlui-border-radius-Text-sub)", "color-border-Text-sub": "var(--xmlui-color-border-Text-sub)", "thickness-border-Text-sub": "var(--xmlui-thickness-border-Text-sub)", "style-border-Text-sub": "var(--xmlui-style-border-Text-sub)", "margin-top-Text-sub": "var(--xmlui-margin-top-Text-sub)", "margin-bottom-Text-sub": "var(--xmlui-margin-bottom-Text-sub)", "padding-horizontal-Text-sub": "var(--xmlui-padding-horizontal-Text-sub)", "padding-vertical-Text-sub": "var(--xmlui-padding-vertical-Text-sub)", "transform-Text-sub": "var(--xmlui-transform-Text-sub)", "align-vertical-Text-sub": "var(--xmlui-align-vertical-Text-sub)", "letter-spacing-Text-sub": "var(--xmlui-letter-spacing-Text-sub)", "font-family-Text-var": "var(--xmlui-font-family-Text-var)", "font-size-Text-var": "var(--xmlui-font-size-Text-var)", "font-weight-Text-var": "var(--xmlui-font-weight-Text-var)", "font-style-Text-var": "var(--xmlui-font-style-Text-var)", "font-stretch-Text-var": "var(--xmlui-font-stretch-Text-var)", "line-decoration-Text-var": "var(--xmlui-line-decoration-Text-var)", "color-decoration-Text-var": "var(--xmlui-color-decoration-Text-var)", "style-decoration-Text-var": "var(--xmlui-style-decoration-Text-var)", "thickness-decoration-Text-var": "var(--xmlui-thickness-decoration-Text-var)", "offset-decoration-Text-var": "var(--xmlui-offset-decoration-Text-var)", "line-height-Text-var": "var(--xmlui-line-height-Text-var)", "color-Text-var": "var(--xmlui-color-Text-var)", "color-bg-Text-var": "var(--xmlui-color-bg-Text-var)", "border-radius-Text-var": "var(--xmlui-border-radius-Text-var)", "color-border-Text-var": "var(--xmlui-color-border-Text-var)", "thickness-border-Text-var": "var(--xmlui-thickness-border-Text-var)", "style-border-Text-var": "var(--xmlui-style-border-Text-var)", "margin-top-Text-var": "var(--xmlui-margin-top-Text-var)", "margin-bottom-Text-var": "var(--xmlui-margin-bottom-Text-var)", "padding-horizontal-Text-var": "var(--xmlui-padding-horizontal-Text-var)", "padding-vertical-Text-var": "var(--xmlui-padding-vertical-Text-var)", "transform-Text-var": "var(--xmlui-transform-Text-var)", "align-vertical-Text-var": "var(--xmlui-align-vertical-Text-var)", "letter-spacing-Text-var": "var(--xmlui-letter-spacing-Text-var)", "font-family-Text-title": "var(--xmlui-font-family-Text-title)", "font-size-Text-title": "var(--xmlui-font-size-Text-title)", "font-weight-Text-title": "var(--xmlui-font-weight-Text-title)", "font-style-Text-title": "var(--xmlui-font-style-Text-title)", "font-stretch-Text-title": "var(--xmlui-font-stretch-Text-title)", "line-decoration-Text-title": "var(--xmlui-line-decoration-Text-title)", "color-decoration-Text-title": "var(--xmlui-color-decoration-Text-title)", "style-decoration-Text-title": "var(--xmlui-style-decoration-Text-title)", "thickness-decoration-Text-title": "var(--xmlui-thickness-decoration-Text-title)", "offset-decoration-Text-title": "var(--xmlui-offset-decoration-Text-title)", "line-height-Text-title": "var(--xmlui-line-height-Text-title)", "color-Text-title": "var(--xmlui-color-Text-title)", "color-bg-Text-title": "var(--xmlui-color-bg-Text-title)", "border-radius-Text-title": "var(--xmlui-border-radius-Text-title)", "color-border-Text-title": "var(--xmlui-color-border-Text-title)", "thickness-border-Text-title": "var(--xmlui-thickness-border-Text-title)", "style-border-Text-title": "var(--xmlui-style-border-Text-title)", "margin-top-Text-title": "var(--xmlui-margin-top-Text-title)", "margin-bottom-Text-title": "var(--xmlui-margin-bottom-Text-title)", "padding-horizontal-Text-title": "var(--xmlui-padding-horizontal-Text-title)", "padding-vertical-Text-title": "var(--xmlui-padding-vertical-Text-title)", "transform-Text-title": "var(--xmlui-transform-Text-title)", "align-vertical-Text-title": "var(--xmlui-align-vertical-Text-title)", "letter-spacing-Text-title": "var(--xmlui-letter-spacing-Text-title)", "font-family-Text-subtitle": "var(--xmlui-font-family-Text-subtitle)", "font-size-Text-subtitle": "var(--xmlui-font-size-Text-subtitle)", "font-weight-Text-subtitle": "var(--xmlui-font-weight-Text-subtitle)", "font-style-Text-subtitle": "var(--xmlui-font-style-Text-subtitle)", "font-stretch-Text-subtitle": "var(--xmlui-font-stretch-Text-subtitle)", "line-decoration-Text-subtitle": "var(--xmlui-line-decoration-Text-subtitle)", "color-decoration-Text-subtitle": "var(--xmlui-color-decoration-Text-subtitle)", "style-decoration-Text-subtitle": "var(--xmlui-style-decoration-Text-subtitle)", "thickness-decoration-Text-subtitle": "var(--xmlui-thickness-decoration-Text-subtitle)", "offset-decoration-Text-subtitle": "var(--xmlui-offset-decoration-Text-subtitle)", "line-height-Text-subtitle": "var(--xmlui-line-height-Text-subtitle)", "color-Text-subtitle": "var(--xmlui-color-Text-subtitle)", "color-bg-Text-subtitle": "var(--xmlui-color-bg-Text-subtitle)", "border-radius-Text-subtitle": "var(--xmlui-border-radius-Text-subtitle)", "color-border-Text-subtitle": "var(--xmlui-color-border-Text-subtitle)", "thickness-border-Text-subtitle": "var(--xmlui-thickness-border-Text-subtitle)", "style-border-Text-subtitle": "var(--xmlui-style-border-Text-subtitle)", "margin-top-Text-subtitle": "var(--xmlui-margin-top-Text-subtitle)", "margin-bottom-Text-subtitle": "var(--xmlui-margin-bottom-Text-subtitle)", "padding-horizontal-Text-subtitle": "var(--xmlui-padding-horizontal-Text-subtitle)", "padding-vertical-Text-subtitle": "var(--xmlui-padding-vertical-Text-subtitle)", "transform-Text-subtitle": "var(--xmlui-transform-Text-subtitle)", "align-vertical-Text-subtitle": "var(--xmlui-align-vertical-Text-subtitle)", "letter-spacing-Text-subtitle": "var(--xmlui-letter-spacing-Text-subtitle)", "font-family-Text-small": "var(--xmlui-font-family-Text-small)", "font-size-Text-small": "var(--xmlui-font-size-Text-small)", "font-weight-Text-small": "var(--xmlui-font-weight-Text-small)", "font-style-Text-small": "var(--xmlui-font-style-Text-small)", "font-stretch-Text-small": "var(--xmlui-font-stretch-Text-small)", "line-decoration-Text-small": "var(--xmlui-line-decoration-Text-small)", "color-decoration-Text-small": "var(--xmlui-color-decoration-Text-small)", "style-decoration-Text-small": "var(--xmlui-style-decoration-Text-small)", "thickness-decoration-Text-small": "var(--xmlui-thickness-decoration-Text-small)", "offset-decoration-Text-small": "var(--xmlui-offset-decoration-Text-small)", "line-height-Text-small": "var(--xmlui-line-height-Text-small)", "color-Text-small": "var(--xmlui-color-Text-small)", "color-bg-Text-small": "var(--xmlui-color-bg-Text-small)", "border-radius-Text-small": "var(--xmlui-border-radius-Text-small)", "color-border-Text-small": "var(--xmlui-color-border-Text-small)", "thickness-border-Text-small": "var(--xmlui-thickness-border-Text-small)", "style-border-Text-small": "var(--xmlui-style-border-Text-small)", "margin-top-Text-small": "var(--xmlui-margin-top-Text-small)", "margin-bottom-Text-small": "var(--xmlui-margin-bottom-Text-small)", "padding-horizontal-Text-small": "var(--xmlui-padding-horizontal-Text-small)", "padding-vertical-Text-small": "var(--xmlui-padding-vertical-Text-small)", "transform-Text-small": "var(--xmlui-transform-Text-small)", "align-vertical-Text-small": "var(--xmlui-align-vertical-Text-small)", "letter-spacing-Text-small": "var(--xmlui-letter-spacing-Text-small)", "font-family-Text-caption": "var(--xmlui-font-family-Text-caption)", "font-size-Text-caption": "var(--xmlui-font-size-Text-caption)", "font-weight-Text-caption": "var(--xmlui-font-weight-Text-caption)", "font-style-Text-caption": "var(--xmlui-font-style-Text-caption)", "font-stretch-Text-caption": "var(--xmlui-font-stretch-Text-caption)", "line-decoration-Text-caption": "var(--xmlui-line-decoration-Text-caption)", "color-decoration-Text-caption": "var(--xmlui-color-decoration-Text-caption)", "style-decoration-Text-caption": "var(--xmlui-style-decoration-Text-caption)", "thickness-decoration-Text-caption": "var(--xmlui-thickness-decoration-Text-caption)", "offset-decoration-Text-caption": "var(--xmlui-offset-decoration-Text-caption)", "line-height-Text-caption": "var(--xmlui-line-height-Text-caption)", "color-Text-caption": "var(--xmlui-color-Text-caption)", "color-bg-Text-caption": "var(--xmlui-color-bg-Text-caption)", "border-radius-Text-caption": "var(--xmlui-border-radius-Text-caption)", "color-border-Text-caption": "var(--xmlui-color-border-Text-caption)", "thickness-border-Text-caption": "var(--xmlui-thickness-border-Text-caption)", "style-border-Text-caption": "var(--xmlui-style-border-Text-caption)", "margin-top-Text-caption": "var(--xmlui-margin-top-Text-caption)", "margin-bottom-Text-caption": "var(--xmlui-margin-bottom-Text-caption)", "padding-horizontal-Text-caption": "var(--xmlui-padding-horizontal-Text-caption)", "padding-vertical-Text-caption": "var(--xmlui-padding-vertical-Text-caption)", "transform-Text-caption": "var(--xmlui-transform-Text-caption)", "align-vertical-Text-caption": "var(--xmlui-align-vertical-Text-caption)", "letter-spacing-Text-caption": "var(--xmlui-letter-spacing-Text-caption)", "font-family-Text-placeholder": "var(--xmlui-font-family-Text-placeholder)", "font-size-Text-placeholder": "var(--xmlui-font-size-Text-placeholder)", "font-weight-Text-placeholder": "var(--xmlui-font-weight-Text-placeholder)", "font-style-Text-placeholder": "var(--xmlui-font-style-Text-placeholder)", "font-stretch-Text-placeholder": "var(--xmlui-font-stretch-Text-placeholder)", "line-decoration-Text-placeholder": "var(--xmlui-line-decoration-Text-placeholder)", "color-decoration-Text-placeholder": "var(--xmlui-color-decoration-Text-placeholder)", "style-decoration-Text-placeholder": "var(--xmlui-style-decoration-Text-placeholder)", "thickness-decoration-Text-placeholder": "var(--xmlui-thickness-decoration-Text-placeholder)", "offset-decoration-Text-placeholder": "var(--xmlui-offset-decoration-Text-placeholder)", "line-height-Text-placeholder": "var(--xmlui-line-height-Text-placeholder)", "color-Text-placeholder": "var(--xmlui-color-Text-placeholder)", "color-bg-Text-placeholder": "var(--xmlui-color-bg-Text-placeholder)", "border-radius-Text-placeholder": "var(--xmlui-border-radius-Text-placeholder)", "color-border-Text-placeholder": "var(--xmlui-color-border-Text-placeholder)", "thickness-border-Text-placeholder": "var(--xmlui-thickness-border-Text-placeholder)", "style-border-Text-placeholder": "var(--xmlui-style-border-Text-placeholder)", "margin-top-Text-placeholder": "var(--xmlui-margin-top-Text-placeholder)", "margin-bottom-Text-placeholder": "var(--xmlui-margin-bottom-Text-placeholder)", "padding-horizontal-Text-placeholder": "var(--xmlui-padding-horizontal-Text-placeholder)", "padding-vertical-Text-placeholder": "var(--xmlui-padding-vertical-Text-placeholder)", "transform-Text-placeholder": "var(--xmlui-transform-Text-placeholder)", "align-vertical-Text-placeholder": "var(--xmlui-align-vertical-Text-placeholder)", "letter-spacing-Text-placeholder": "var(--xmlui-letter-spacing-Text-placeholder)", "font-family-Text-paragraph": "var(--xmlui-font-family-Text-paragraph)", "font-size-Text-paragraph": "var(--xmlui-font-size-Text-paragraph)", "font-weight-Text-paragraph": "var(--xmlui-font-weight-Text-paragraph)", "font-style-Text-paragraph": "var(--xmlui-font-style-Text-paragraph)", "font-stretch-Text-paragraph": "var(--xmlui-font-stretch-Text-paragraph)", "line-decoration-Text-paragraph": "var(--xmlui-line-decoration-Text-paragraph)", "color-decoration-Text-paragraph": "var(--xmlui-color-decoration-Text-paragraph)", "style-decoration-Text-paragraph": "var(--xmlui-style-decoration-Text-paragraph)", "thickness-decoration-Text-paragraph": "var(--xmlui-thickness-decoration-Text-paragraph)", "offset-decoration-Text-paragraph": "var(--xmlui-offset-decoration-Text-paragraph)", "line-height-Text-paragraph": "var(--xmlui-line-height-Text-paragraph)", "color-Text-paragraph": "var(--xmlui-color-Text-paragraph)", "color-bg-Text-paragraph": "var(--xmlui-color-bg-Text-paragraph)", "border-radius-Text-paragraph": "var(--xmlui-border-radius-Text-paragraph)", "color-border-Text-paragraph": "var(--xmlui-color-border-Text-paragraph)", "thickness-border-Text-paragraph": "var(--xmlui-thickness-border-Text-paragraph)", "style-border-Text-paragraph": "var(--xmlui-style-border-Text-paragraph)", "margin-top-Text-paragraph": "var(--xmlui-margin-top-Text-paragraph)", "margin-bottom-Text-paragraph": "var(--xmlui-margin-bottom-Text-paragraph)", "padding-horizontal-Text-paragraph": "var(--xmlui-padding-horizontal-Text-paragraph)", "padding-vertical-Text-paragraph": "var(--xmlui-padding-vertical-Text-paragraph)", "transform-Text-paragraph": "var(--xmlui-transform-Text-paragraph)", "align-vertical-Text-paragraph": "var(--xmlui-align-vertical-Text-paragraph)", "letter-spacing-Text-paragraph": "var(--xmlui-letter-spacing-Text-paragraph)", "font-family-Text-subheading": "var(--xmlui-font-family-Text-subheading)", "font-size-Text-subheading": "var(--xmlui-font-size-Text-subheading)", "font-weight-Text-subheading": "var(--xmlui-font-weight-Text-subheading)", "font-style-Text-subheading": "var(--xmlui-font-style-Text-subheading)", "font-stretch-Text-subheading": "var(--xmlui-font-stretch-Text-subheading)", "line-decoration-Text-subheading": "var(--xmlui-line-decoration-Text-subheading)", "color-decoration-Text-subheading": "var(--xmlui-color-decoration-Text-subheading)", "style-decoration-Text-subheading": "var(--xmlui-style-decoration-Text-subheading)", "thickness-decoration-Text-subheading": "var(--xmlui-thickness-decoration-Text-subheading)", "offset-decoration-Text-subheading": "var(--xmlui-offset-decoration-Text-subheading)", "line-height-Text-subheading": "var(--xmlui-line-height-Text-subheading)", "color-Text-subheading": "var(--xmlui-color-Text-subheading)", "color-bg-Text-subheading": "var(--xmlui-color-bg-Text-subheading)", "border-radius-Text-subheading": "var(--xmlui-border-radius-Text-subheading)", "color-border-Text-subheading": "var(--xmlui-color-border-Text-subheading)", "thickness-border-Text-subheading": "var(--xmlui-thickness-border-Text-subheading)", "style-border-Text-subheading": "var(--xmlui-style-border-Text-subheading)", "margin-top-Text-subheading": "var(--xmlui-margin-top-Text-subheading)", "margin-bottom-Text-subheading": "var(--xmlui-margin-bottom-Text-subheading)", "padding-horizontal-Text-subheading": "var(--xmlui-padding-horizontal-Text-subheading)", "padding-vertical-Text-subheading": "var(--xmlui-padding-vertical-Text-subheading)", "transform-Text-subheading": "var(--xmlui-transform-Text-subheading)", "align-vertical-Text-subheading": "var(--xmlui-align-vertical-Text-subheading)", "letter-spacing-Text-subheading": "var(--xmlui-letter-spacing-Text-subheading)", "font-family-Text-tableheading": "var(--xmlui-font-family-Text-tableheading)", "font-size-Text-tableheading": "var(--xmlui-font-size-Text-tableheading)", "font-weight-Text-tableheading": "var(--xmlui-font-weight-Text-tableheading)", "font-style-Text-tableheading": "var(--xmlui-font-style-Text-tableheading)", "font-stretch-Text-tableheading": "var(--xmlui-font-stretch-Text-tableheading)", "line-decoration-Text-tableheading": "var(--xmlui-line-decoration-Text-tableheading)", "color-decoration-Text-tableheading": "var(--xmlui-color-decoration-Text-tableheading)", "style-decoration-Text-tableheading": "var(--xmlui-style-decoration-Text-tableheading)", "thickness-decoration-Text-tableheading": "var(--xmlui-thickness-decoration-Text-tableheading)", "offset-decoration-Text-tableheading": "var(--xmlui-offset-decoration-Text-tableheading)", "line-height-Text-tableheading": "var(--xmlui-line-height-Text-tableheading)", "color-Text-tableheading": "var(--xmlui-color-Text-tableheading)", "color-bg-Text-tableheading": "var(--xmlui-color-bg-Text-tableheading)", "border-radius-Text-tableheading": "var(--xmlui-border-radius-Text-tableheading)", "color-border-Text-tableheading": "var(--xmlui-color-border-Text-tableheading)", "thickness-border-Text-tableheading": "var(--xmlui-thickness-border-Text-tableheading)", "style-border-Text-tableheading": "var(--xmlui-style-border-Text-tableheading)", "margin-top-Text-tableheading": "var(--xmlui-margin-top-Text-tableheading)", "margin-bottom-Text-tableheading": "var(--xmlui-margin-bottom-Text-tableheading)", "padding-horizontal-Text-tableheading": "var(--xmlui-padding-horizontal-Text-tableheading)", "padding-vertical-Text-tableheading": "var(--xmlui-padding-vertical-Text-tableheading)", "transform-Text-tableheading": "var(--xmlui-transform-Text-tableheading)", "align-vertical-Text-tableheading": "var(--xmlui-align-vertical-Text-tableheading)", "letter-spacing-Text-tableheading": "var(--xmlui-letter-spacing-Text-tableheading)", "font-family-Text-secondary": "var(--xmlui-font-family-Text-secondary)", "font-size-Text-secondary": "var(--xmlui-font-size-Text-secondary)", "font-weight-Text-secondary": "var(--xmlui-font-weight-Text-secondary)", "font-style-Text-secondary": "var(--xmlui-font-style-Text-secondary)", "font-stretch-Text-secondary": "var(--xmlui-font-stretch-Text-secondary)", "line-decoration-Text-secondary": "var(--xmlui-line-decoration-Text-secondary)", "color-decoration-Text-secondary": "var(--xmlui-color-decoration-Text-secondary)", "style-decoration-Text-secondary": "var(--xmlui-style-decoration-Text-secondary)", "thickness-decoration-Text-secondary": "var(--xmlui-thickness-decoration-Text-secondary)", "offset-decoration-Text-secondary": "var(--xmlui-offset-decoration-Text-secondary)", "line-height-Text-secondary": "var(--xmlui-line-height-Text-secondary)", "color-Text-secondary": "var(--xmlui-color-Text-secondary)", "color-bg-Text-secondary": "var(--xmlui-color-bg-Text-secondary)", "border-radius-Text-secondary": "var(--xmlui-border-radius-Text-secondary)", "color-border-Text-secondary": "var(--xmlui-color-border-Text-secondary)", "thickness-border-Text-secondary": "var(--xmlui-thickness-border-Text-secondary)", "style-border-Text-secondary": "var(--xmlui-style-border-Text-secondary)", "margin-top-Text-secondary": "var(--xmlui-margin-top-Text-secondary)", "margin-bottom-Text-secondary": "var(--xmlui-margin-bottom-Text-secondary)", "padding-horizontal-Text-secondary": "var(--xmlui-padding-horizontal-Text-secondary)", "padding-vertical-Text-secondary": "var(--xmlui-padding-vertical-Text-secondary)", "transform-Text-secondary": "var(--xmlui-transform-Text-secondary)", "align-vertical-Text-secondary": "var(--xmlui-align-vertical-Text-secondary)", "letter-spacing-Text-secondary": "var(--xmlui-letter-spacing-Text-secondary)"}'`,text:"_text_1v46g_13",abbr:"_abbr_1v46g_23",cite:"_cite_1v46g_51",codefence:"_codefence_1v46g_79",code:"_code_1v46g_79",deleted:"_deleted_1v46g_135",inserted:"_inserted_1v46g_178",keyboard:"_keyboard_1v46g_221",marked:"_marked_1v46g_249",mono:"_mono_1v46g_292",sample:"_sample_1v46g_320",sup:"_sup_1v46g_348",sub:"_sub_1v46g_376",var:"_var_1v46g_404",title:"_title_1v46g_432",subtitle:"_subtitle_1v46g_460",small:"_small_1v46g_488",caption:"_caption_1v46g_516",placeholder:"_placeholder_1v46g_544",paragraph:"_paragraph_1v46g_572",subheading:"_subheading_1v46g_600",tableheading:"_tableheading_1v46g_628",secondary:"_secondary_1v46g_656",strong:"_strong_1v46g_684",truncateOverflow:"_truncateOverflow_1v46g_692",preserveLinebreaks:"_preserveLinebreaks_1v46g_699",noEllipsis:"_noEllipsis_1v46g_703"},Bn=d.forwardRef(function({uid:e,variant:t,maxLines:r=0,style:n,children:o,preserveLinebreaks:i,ellipses:a=!0,...s},l){const c=d.useRef(null),u=l?Zr(c,l):c,g=d.useMemo(()=>!t||!dH[t]?"div":dH[t],[t]);return Q.jsx(Q.Fragment,{children:Q.jsx(g,{...s,ref:u,className:KA([yd.text,yd[t||"default"],{[yd.truncateOverflow]:r>0,[yd.preserveLinebreaks]:i,[yd.noEllipsis]:!a}]),style:{...n,...oG(r)},children:o})})}),ZA="Text",l_A=kA({description:`The \`${ZA}\` component displays textual information in a number of optional styles and variants.`,props:{value:j(`The text to be displayed. This value can also be set via nesting the text into the \`${ZA}\` component.`),variant:j("Optional string value that provides named presets for text variants with a unique combination of font style, weight, size, color and other parameters.",mDA),maxLines:j("This property determines the maximum number of lines the component can wrap to. If there is no space to display all the contents, the component displays up to as many lines as specified in this property."),preserveLinebreaks:j("This property indicates if linebreaks should be preserved when displaying text."),ellipses:j("This property indicates whether ellipses should be displayed when the text is cropped (`true`) or not (`false`).")},themeVars:ne(yd.themeVars),defaultThemeVars:{[`border-radius-${ZA}`]:"$radius",[`style-border-${ZA}`]:"solid",[`font-size-${ZA}`]:"$font-size-small",[`thickness-border-${ZA}`]:"$space-0",[`font-weight-${ZA}-abbr`]:"$font-weight-bold",[`transform-${ZA}-abbr`]:"uppercase",[`font-size-${ZA}-secondary`]:"$font-size-small",[`font-style-${ZA}-cite`]:"italic",[`color-${ZA}`]:"$color-text-primary",[`font-family-${ZA}`]:"$font-family",[`font-weight-${ZA}`]:"$font-weight-normal",[`font-family-${ZA}-code`]:"$font-family-monospace",[`font-size-${ZA}-code`]:"$font-size-small",[`thickness-border-${ZA}-code`]:"1px",[`padding-horizontal-${ZA}-code`]:"$space-1",[`line-decoration-${ZA}-deleted`]:"line-through",[`line-decoration-${ZA}-inserted`]:"underline",[`font-family-${ZA}-keyboard`]:"$font-family-monospace",[`font-size-${ZA}-keyboard`]:"$font-size-small",[`font-weight-${ZA}-keyboard`]:"$font-weight-bold",[`thickness-border-${ZA}-keyboard`]:"1px",[`padding-horizontal-${ZA}-keyboard`]:"$space-1",[`font-family-${ZA}-sample`]:"$font-family-monospace",[`font-size-${ZA}-sample`]:"$font-size-small",[`font-size-${ZA}-sup`]:"$font-size-smaller",[`align-vertical-${ZA}-sup`]:"super",[`font-size-${ZA}-sub`]:"$font-size-smaller",[`align-vertical-${ZA}-sub`]:"sub",[`font-style-${ZA}-var`]:"italic",[`font-family-${ZA}-mono`]:"$font-family-monospace",[`font-size-${ZA}-title`]:"$font-size-large",[`font-size-${ZA}-subtitle`]:"$font-size-medium",[`font-size-${ZA}-small`]:"$font-size-small",[`line-height-${ZA}-small`]:"$line-height-tight",[`letter-spacing-${ZA}-caption`]:"0.05rem",[`font-size-${ZA}-placeholder`]:"$font-size-small",[`font-family-${ZA}-codefence`]:"$font-family-monospace",[`padding-horizontal-${ZA}-codefence`]:"$space-3",[`padding-vertical-${ZA}-codefence`]:"$space-2",[`padding-vertical-${ZA}-paragraph`]:"$space-1",[`font-size-${ZA}-subheading`]:"$font-size-H6",[`font-weight-${ZA}-subheading`]:"$font-weight-bold",[`letter-spacing-${ZA}-subheading`]:"0.04em",[`transform-${ZA}-subheading`]:"uppercase",[`margin-top-${ZA}-tableheading`]:"$space-1",[`margin-bottom-${ZA}-tableheading`]:"$space-4",[`padding-horizontal-${ZA}-tableheading`]:"$space-1",[`font-weight-${ZA}-tableheading`]:"$font-weight-bold",light:{[`color-bg-${ZA}-code`]:"$color-surface-100",[`color-border-${ZA}-code`]:"$color-surface-200",[`color-bg-${ZA}-keyboard`]:"$color-surface-200",[`color-border-${ZA}-keyboard`]:"$color-surface-300",[`color-bg-${ZA}-marked`]:"yellow",[`color-${ZA}-placeholder`]:"$color-surface-500",[`color-bg-${ZA}-codefence`]:"$color-primary-100",[`color-${ZA}-codefence`]:"$color-surface-900",[`color-${ZA}-subheading`]:"$color-text-secondary",[`color-${ZA}-secondary`]:"$color-text-secondary"},dark:{[`color-bg-${ZA}-code`]:"$color-surface-800",[`color-border-${ZA}-code`]:"$color-surface-700",[`color-bg-${ZA}-keyboard`]:"$color-surface-800",[`color-border-${ZA}-keyboard`]:"$color-surface-700",[`color-bg-${ZA}-marked`]:"orange",[`color-${ZA}-placeholder`]:"$color-surface-500",[`color-bg-${ZA}-codefence`]:"$color-primary-800",[`color-${ZA}-codefence`]:"$color-surface-200",[`color-${ZA}-subheading`]:"$color-text-secondary",[`color-${ZA}-secondary`]:"$color-text-secondary"}}}),c_A=RA(ZA,l_A,({node:A,extractValue:e,layoutCss:t,renderChild:r})=>{const{variant:n,maxLines:o,preserveLinebreaks:i,ellipses:a,value:s,...l}=A.props,c=Object.fromEntries(Object.entries(l).filter(([u,g])=>IDA.includes(u)).map(([u,g])=>[u,e(g)]));return Q.jsx(Bn,{variant:e(n),maxLines:e.asOptionalNumber(o),style:t,preserveLinebreaks:e.asOptionalBoolean(i,!1),ellipses:e.asOptionalBoolean(a,!0),...c,children:e.asDisplayText(s)||r(A.children)})}),uG="Fragment",u_A=kA({description:`The \`${uG}\` component encloses multiple child components into a single root component, so it can be used where only a single component definition is allowed.`,opaque:!0}),f_A=RA(uG,u_A,({node:A,extractValue:e,renderChild:t,layoutContext:r})=>Q.jsx(d.Fragment,{children:t(A.children,r)},e(A.uid))),xt={themeVars:`'{"color-text-pagination-Table": "var(--xmlui-color-text-pagination-Table)", "color-bg-Table": "var(--xmlui-color-bg-Table)", "color-text-Table": "var(--xmlui-color-text-Table)", "color-bg-row-Table": "var(--xmlui-color-bg-row-Table)", "color-bg-row-Table--hover": "var(--xmlui-color-bg-row-Table--hover)", "color-bg-selected-Table": "var(--xmlui-color-bg-selected-Table)", "color-bg-selected-Table--hover": "var(--xmlui-color-bg-selected-Table--hover)", "color-bg-heading-Table": "var(--xmlui-color-bg-heading-Table)", "color-bg-heading-Table--hover": "var(--xmlui-color-bg-heading-Table--hover)", "color-bg-heading-Table--active": "var(--xmlui-color-bg-heading-Table--active)", "padding-horizontal-heading-Table": "var(--xmlui-padding-horizontal-heading-Table)", "padding-vertical-heading-Table": "var(--xmlui-padding-vertical-heading-Table)", "padding-heading-Table": "var(--xmlui-padding-heading-Table)", "padding-horizontal-cell-Table": "var(--xmlui-padding-horizontal-cell-Table)", "padding-horizontal-cell-first-Table": "var(--xmlui-padding-horizontal-cell-first-Table)", "padding-horizontal-cell-last-Table": "var(--xmlui-padding-horizontal-cell-last-Table)", "padding-vertical-cell-Table": "var(--xmlui-padding-vertical-cell-Table)", "padding-cell-Table": "var(--xmlui-padding-cell-Table)", "color-border-cell-Table": "var(--xmlui-color-border-cell-Table)", "thickness-border-cell-Table": "var(--xmlui-thickness-border-cell-Table)", "style-border-cell-Table": "var(--xmlui-style-border-cell-Table)", "border-cell-Table": "var(--xmlui-border-cell-Table)", "color-bg-pagination-Table": "var(--xmlui-color-bg-pagination-Table)", "color-text-heading-Table": "var(--xmlui-color-text-heading-Table)", "font-weight-row-Table": "var(--xmlui-font-weight-row-Table)", "font-size-row-Table": "var(--xmlui-font-size-row-Table)", "font-weight-heading-Table": "var(--xmlui-font-weight-heading-Table)", "font-size-heading-Table": "var(--xmlui-font-size-heading-Table)", "transform-text-heading-Table": "var(--xmlui-transform-text-heading-Table)", "thickness-outline-heading-Table--focus": "var(--xmlui-thickness-outline-heading-Table--focus)", "color-outline-heading-Table--focus": "var(--xmlui-color-outline-heading-Table--focus)", "style-outline-heading-Table--focus": "var(--xmlui-style-outline-heading-Table--focus)", "offset-outline-heading-Table--focus": "var(--xmlui-offset-outline-heading-Table--focus)"}'`,wrapper:"_wrapper_7jlv4_13",noScroll:"_noScroll_7jlv4_19",headerWrapper:"_headerWrapper_7jlv4_23",tableBody:"_tableBody_7jlv4_23",clickableHeader:"_clickableHeader_7jlv4_29",headerContent:"_headerContent_7jlv4_39",headerRow:"_headerRow_7jlv4_67",columnCell:"_columnCell_7jlv4_72",cell:"_cell_7jlv4_72",table:"_table_7jlv4_23",row:"_row_7jlv4_83",checkBoxWrapper:"_checkBoxWrapper_7jlv4_89",showInHeader:"_showInHeader_7jlv4_93",selected:"_selected_7jlv4_96",allSelected:"_allSelected_7jlv4_96",focused:"_focused_7jlv4_142",disabled:"_disabled_7jlv4_154",noRows:"_noRows_7jlv4_179",pagination:"_pagination_7jlv4_185",paginationLabel:"_paginationLabel_7jlv4_201",paginationSelect:"_paginationSelect_7jlv4_206",paginationButtons:"_paginationButtons_7jlv4_212",searchIconWrapper:"_searchIconWrapper_7jlv4_217",loadingWrapper:"_loadingWrapper_7jlv4_224",resizer:"_resizer_7jlv4_239",isResizing:"_isResizing_7jlv4_261"};var g_A={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_Pdf:"false",VITE_USED_COMPONENTS_Chart:"false",VITE_USER_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_XMLUI_VERSION:"0.7.19 (built 1/31/2025)"};function uc(A,e){return typeof A=="function"?A(e):A}function Ho(A,e){return t=>{e.setState(r=>({...r,[A]:uc(t,r[A])}))}}function Ew(A){return A instanceof Function}function d_A(A){return Array.isArray(A)&&A.every(e=>typeof e=="number")}function h_A(A,e){const t=[],r=n=>{n.forEach(o=>{t.push(o);const i=e(o);i!=null&&i.length&&r(i)})};return r(A),t}function Se(A,e,t){let r=[],n;return o=>{let i;t.key&&t.debug&&(i=Date.now());const a=A(o);if(!(a.length!==r.length||a.some((c,u)=>r[u]!==c)))return n;r=a;let l;if(t.key&&t.debug&&(l=Date.now()),n=e(...a),t==null||t.onChange==null||t.onChange(n),t.key&&t.debug&&t!=null&&t.debug()){const c=Math.round((Date.now()-i)*100)/100,u=Math.round((Date.now()-l)*100)/100,g=u/16,h=(B,E)=>{for(B=String(B);B.length<E;)B=" "+B;return B};console.info(`%c⏱ ${h(u,5)} /${h(c,5)} ms`,`
|
|
401
401
|
font-size: .6rem;
|
|
402
402
|
font-weight: bold;
|
|
403
403
|
color: hsl(${Math.max(0,Math.min(120-120*g,120))}deg 100% 31%);`,t==null?void 0:t.key)}return n}}function Ne(A,e,t,r){return{debug:()=>{var n;return(n=A==null?void 0:A.debugAll)!=null?n:A[e]},key:g_A.NODE_ENV==="development",onChange:r}}function p_A(A,e,t,r){const n=()=>{var i;return(i=o.getValue())!=null?i:A.options.renderFallbackValue},o={id:`${e.id}_${t.id}`,row:e,column:t,getValue:()=>e.getValue(r),renderValue:n,getContext:Se(()=>[A,t,e,o],(i,a,s,l)=>({table:i,column:a,row:s,cell:l,getValue:l.getValue,renderValue:l.renderValue}),Ne(A.options,"debugCells"))};return A._features.forEach(i=>{i.createCell==null||i.createCell(o,t,e,A)},{}),o}function B_A(A,e,t,r){var n,o;const a={...A._getDefaultColumnDef(),...e},s=a.accessorKey;let l=(n=(o=a.id)!=null?o:s?s.replace(".","_"):void 0)!=null?n:typeof a.header=="string"?a.header:void 0,c;if(a.accessorFn?c=a.accessorFn:s&&(s.includes(".")?c=g=>{let h=g;for(const E of s.split(".")){var B;h=(B=h)==null?void 0:B[E]}return h}:c=g=>g[a.accessorKey]),!l)throw new Error;let u={id:`${String(l)}`,accessorFn:c,parent:r,depth:t,columnDef:a,columns:[],getFlatColumns:Se(()=>[!0],()=>{var g;return[u,...(g=u.columns)==null?void 0:g.flatMap(h=>h.getFlatColumns())]},Ne(A.options,"debugColumns")),getLeafColumns:Se(()=>[A._getOrderColumnsFn()],g=>{var h;if((h=u.columns)!=null&&h.length){let B=u.columns.flatMap(E=>E.getLeafColumns());return g(B)}return[u]},Ne(A.options,"debugColumns"))};for(const g of A._features)g.createColumn==null||g.createColumn(u,A);return u}const Mn="debugHeaders";function fG(A,e,t){var r;let o={id:(r=t.id)!=null?r:e.id,column:e,index:t.index,isPlaceholder:!!t.isPlaceholder,placeholderId:t.placeholderId,depth:t.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const i=[],a=s=>{s.subHeaders&&s.subHeaders.length&&s.subHeaders.map(a),i.push(s)};return a(o),i},getContext:()=>({table:A,header:o,column:e})};return A._features.forEach(i=>{i.createHeader==null||i.createHeader(o,A)}),o}const E_A={createTable:A=>{A.getHeaderGroups=Se(()=>[A.getAllColumns(),A.getVisibleLeafColumns(),A.getState().columnPinning.left,A.getState().columnPinning.right],(e,t,r,n)=>{var o,i;const a=(o=r==null?void 0:r.map(u=>t.find(g=>g.id===u)).filter(Boolean))!=null?o:[],s=(i=n==null?void 0:n.map(u=>t.find(g=>g.id===u)).filter(Boolean))!=null?i:[],l=t.filter(u=>!(r!=null&&r.includes(u.id))&&!(n!=null&&n.includes(u.id)));return Cw(e,[...a,...l,...s],A)},Ne(A.options,Mn)),A.getCenterHeaderGroups=Se(()=>[A.getAllColumns(),A.getVisibleLeafColumns(),A.getState().columnPinning.left,A.getState().columnPinning.right],(e,t,r,n)=>(t=t.filter(o=>!(r!=null&&r.includes(o.id))&&!(n!=null&&n.includes(o.id))),Cw(e,t,A,"center")),Ne(A.options,Mn)),A.getLeftHeaderGroups=Se(()=>[A.getAllColumns(),A.getVisibleLeafColumns(),A.getState().columnPinning.left],(e,t,r)=>{var n;const o=(n=r==null?void 0:r.map(i=>t.find(a=>a.id===i)).filter(Boolean))!=null?n:[];return Cw(e,o,A,"left")},Ne(A.options,Mn)),A.getRightHeaderGroups=Se(()=>[A.getAllColumns(),A.getVisibleLeafColumns(),A.getState().columnPinning.right],(e,t,r)=>{var n;const o=(n=r==null?void 0:r.map(i=>t.find(a=>a.id===i)).filter(Boolean))!=null?n:[];return Cw(e,o,A,"right")},Ne(A.options,Mn)),A.getFooterGroups=Se(()=>[A.getHeaderGroups()],e=>[...e].reverse(),Ne(A.options,Mn)),A.getLeftFooterGroups=Se(()=>[A.getLeftHeaderGroups()],e=>[...e].reverse(),Ne(A.options,Mn)),A.getCenterFooterGroups=Se(()=>[A.getCenterHeaderGroups()],e=>[...e].reverse(),Ne(A.options,Mn)),A.getRightFooterGroups=Se(()=>[A.getRightHeaderGroups()],e=>[...e].reverse(),Ne(A.options,Mn)),A.getFlatHeaders=Se(()=>[A.getHeaderGroups()],e=>e.map(t=>t.headers).flat(),Ne(A.options,Mn)),A.getLeftFlatHeaders=Se(()=>[A.getLeftHeaderGroups()],e=>e.map(t=>t.headers).flat(),Ne(A.options,Mn)),A.getCenterFlatHeaders=Se(()=>[A.getCenterHeaderGroups()],e=>e.map(t=>t.headers).flat(),Ne(A.options,Mn)),A.getRightFlatHeaders=Se(()=>[A.getRightHeaderGroups()],e=>e.map(t=>t.headers).flat(),Ne(A.options,Mn)),A.getCenterLeafHeaders=Se(()=>[A.getCenterFlatHeaders()],e=>e.filter(t=>{var r;return!((r=t.subHeaders)!=null&&r.length)}),Ne(A.options,Mn)),A.getLeftLeafHeaders=Se(()=>[A.getLeftFlatHeaders()],e=>e.filter(t=>{var r;return!((r=t.subHeaders)!=null&&r.length)}),Ne(A.options,Mn)),A.getRightLeafHeaders=Se(()=>[A.getRightFlatHeaders()],e=>e.filter(t=>{var r;return!((r=t.subHeaders)!=null&&r.length)}),Ne(A.options,Mn)),A.getLeafHeaders=Se(()=>[A.getLeftHeaderGroups(),A.getCenterHeaderGroups(),A.getRightHeaderGroups()],(e,t,r)=>{var n,o,i,a,s,l;return[...(n=(o=e[0])==null?void 0:o.headers)!=null?n:[],...(i=(a=t[0])==null?void 0:a.headers)!=null?i:[],...(s=(l=r[0])==null?void 0:l.headers)!=null?s:[]].map(c=>c.getLeafHeaders()).flat()},Ne(A.options,Mn))}};function Cw(A,e,t,r){var n,o;let i=0;const a=function(g,h){h===void 0&&(h=1),i=Math.max(i,h),g.filter(B=>B.getIsVisible()).forEach(B=>{var E;(E=B.columns)!=null&&E.length&&a(B.columns,h+1)},0)};a(A);let s=[];const l=(g,h)=>{const B={depth:h,id:[r,`${h}`].filter(Boolean).join("_"),headers:[]},E=[];g.forEach(C=>{const m=[...E].reverse()[0],I=C.column.depth===B.depth;let v,y=!1;if(I&&C.column.parent?v=C.column.parent:(v=C.column,y=!0),m&&(m==null?void 0:m.column)===v)m.subHeaders.push(C);else{const x=fG(t,v,{id:[r,h,v.id,C==null?void 0:C.id].filter(Boolean).join("_"),isPlaceholder:y,placeholderId:y?`${E.filter(b=>b.column===v).length}`:void 0,depth:h,index:E.length});x.subHeaders.push(C),E.push(x)}B.headers.push(C),C.headerGroup=B}),s.push(B),h>0&&l(E,h-1)},c=e.map((g,h)=>fG(t,g,{depth:i,index:h}));l(c,i-1),s.reverse();const u=g=>g.filter(B=>B.column.getIsVisible()).map(B=>{let E=0,C=0,m=[0];B.subHeaders&&B.subHeaders.length?(m=[],u(B.subHeaders).forEach(v=>{let{colSpan:y,rowSpan:x}=v;E+=y,m.push(x)})):E=1;const I=Math.min(...m);return C=C+I,B.colSpan=E,B.rowSpan=C,{colSpan:E,rowSpan:C}});return u((n=(o=s[0])==null?void 0:o.headers)!=null?n:[]),s}const C_A=(A,e,t,r,n,o,i)=>{let a={id:e,index:r,original:t,depth:n,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:s=>{if(a._valuesCache.hasOwnProperty(s))return a._valuesCache[s];const l=A.getColumn(s);if(l!=null&&l.accessorFn)return a._valuesCache[s]=l.accessorFn(a.original,r),a._valuesCache[s]},getUniqueValues:s=>{if(a._uniqueValuesCache.hasOwnProperty(s))return a._uniqueValuesCache[s];const l=A.getColumn(s);if(l!=null&&l.accessorFn)return l.columnDef.getUniqueValues?(a._uniqueValuesCache[s]=l.columnDef.getUniqueValues(a.original,r),a._uniqueValuesCache[s]):(a._uniqueValuesCache[s]=[a.getValue(s)],a._uniqueValuesCache[s])},renderValue:s=>{var l;return(l=a.getValue(s))!=null?l:A.options.renderFallbackValue},subRows:[],getLeafRows:()=>h_A(a.subRows,s=>s.subRows),getParentRow:()=>a.parentId?A.getRow(a.parentId,!0):void 0,getParentRows:()=>{let s=[],l=a;for(;;){const c=l.getParentRow();if(!c)break;s.push(c),l=c}return s.reverse()},getAllCells:Se(()=>[A.getAllLeafColumns()],s=>s.map(l=>p_A(A,a,l,l.id)),Ne(A.options,"debugRows")),_getAllCellsByColumnId:Se(()=>[a.getAllCells()],s=>s.reduce((l,c)=>(l[c.column.id]=c,l),{}),Ne(A.options,"debugRows"))};for(let s=0;s<A._features.length;s++){const l=A._features[s];l==null||l.createRow==null||l.createRow(a,A)}return a},m_A={createColumn:(A,e)=>{A._getFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,A.id),A.getFacetedRowModel=()=>A._getFacetedRowModel?A._getFacetedRowModel():e.getPreFilteredRowModel(),A._getFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,A.id),A.getFacetedUniqueValues=()=>A._getFacetedUniqueValues?A._getFacetedUniqueValues():new Map,A._getFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,A.id),A.getFacetedMinMaxValues=()=>{if(A._getFacetedMinMaxValues)return A._getFacetedMinMaxValues()}}},gG=(A,e,t)=>{var r;const n=t.toLowerCase();return!!(!((r=A.getValue(e))==null||(r=r.toString())==null||(r=r.toLowerCase())==null)&&r.includes(n))};gG.autoRemove=A=>ia(A);const dG=(A,e,t)=>{var r;return!!(!((r=A.getValue(e))==null||(r=r.toString())==null)&&r.includes(t))};dG.autoRemove=A=>ia(A);const hG=(A,e,t)=>{var r;return((r=A.getValue(e))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(t==null?void 0:t.toLowerCase())};hG.autoRemove=A=>ia(A);const pG=(A,e,t)=>{var r;return(r=A.getValue(e))==null?void 0:r.includes(t)};pG.autoRemove=A=>ia(A)||!(A!=null&&A.length);const BG=(A,e,t)=>!t.some(r=>{var n;return!((n=A.getValue(e))!=null&&n.includes(r))});BG.autoRemove=A=>ia(A)||!(A!=null&&A.length);const EG=(A,e,t)=>t.some(r=>{var n;return(n=A.getValue(e))==null?void 0:n.includes(r)});EG.autoRemove=A=>ia(A)||!(A!=null&&A.length);const CG=(A,e,t)=>A.getValue(e)===t;CG.autoRemove=A=>ia(A);const mG=(A,e,t)=>A.getValue(e)==t;mG.autoRemove=A=>ia(A);const r4=(A,e,t)=>{let[r,n]=t;const o=A.getValue(e);return o>=r&&o<=n};r4.resolveFilterValue=A=>{let[e,t]=A,r=typeof e!="number"?parseFloat(e):e,n=typeof t!="number"?parseFloat(t):t,o=e===null||Number.isNaN(r)?-1/0:r,i=t===null||Number.isNaN(n)?1/0:n;if(o>i){const a=o;o=i,i=a}return[o,i]},r4.autoRemove=A=>ia(A)||ia(A[0])&&ia(A[1]);const Al={includesString:gG,includesStringSensitive:dG,equalsString:hG,arrIncludes:pG,arrIncludesAll:BG,arrIncludesSome:EG,equals:CG,weakEquals:mG,inNumberRange:r4};function ia(A){return A==null||A===""}const Q_A={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:A=>({columnFilters:[],...A}),getDefaultOptions:A=>({onColumnFiltersChange:Ho("columnFilters",A),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(A,e)=>{A.getAutoFilterFn=()=>{const t=e.getCoreRowModel().flatRows[0],r=t==null?void 0:t.getValue(A.id);return typeof r=="string"?Al.includesString:typeof r=="number"?Al.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Al.equals:Array.isArray(r)?Al.arrIncludes:Al.weakEquals},A.getFilterFn=()=>{var t,r;return Ew(A.columnDef.filterFn)?A.columnDef.filterFn:A.columnDef.filterFn==="auto"?A.getAutoFilterFn():(t=(r=e.options.filterFns)==null?void 0:r[A.columnDef.filterFn])!=null?t:Al[A.columnDef.filterFn]},A.getCanFilter=()=>{var t,r,n;return((t=A.columnDef.enableColumnFilter)!=null?t:!0)&&((r=e.options.enableColumnFilters)!=null?r:!0)&&((n=e.options.enableFilters)!=null?n:!0)&&!!A.accessorFn},A.getIsFiltered=()=>A.getFilterIndex()>-1,A.getFilterValue=()=>{var t;return(t=e.getState().columnFilters)==null||(t=t.find(r=>r.id===A.id))==null?void 0:t.value},A.getFilterIndex=()=>{var t,r;return(t=(r=e.getState().columnFilters)==null?void 0:r.findIndex(n=>n.id===A.id))!=null?t:-1},A.setFilterValue=t=>{e.setColumnFilters(r=>{const n=A.getFilterFn(),o=r==null?void 0:r.find(c=>c.id===A.id),i=uc(t,o?o.value:void 0);if(QG(n,i,A)){var a;return(a=r==null?void 0:r.filter(c=>c.id!==A.id))!=null?a:[]}const s={id:A.id,value:i};if(o){var l;return(l=r==null?void 0:r.map(c=>c.id===A.id?s:c))!=null?l:[]}return r!=null&&r.length?[...r,s]:[s]})}},createRow:(A,e)=>{A.columnFilters={},A.columnFiltersMeta={}},createTable:A=>{A.setColumnFilters=e=>{const t=A.getAllLeafColumns(),r=n=>{var o;return(o=uc(e,n))==null?void 0:o.filter(i=>{const a=t.find(s=>s.id===i.id);if(a){const s=a.getFilterFn();if(QG(s,i.value,a))return!1}return!0})};A.options.onColumnFiltersChange==null||A.options.onColumnFiltersChange(r)},A.resetColumnFilters=e=>{var t,r;A.setColumnFilters(e?[]:(t=(r=A.initialState)==null?void 0:r.columnFilters)!=null?t:[])},A.getPreFilteredRowModel=()=>A.getCoreRowModel(),A.getFilteredRowModel=()=>(!A._getFilteredRowModel&&A.options.getFilteredRowModel&&(A._getFilteredRowModel=A.options.getFilteredRowModel(A)),A.options.manualFiltering||!A._getFilteredRowModel?A.getPreFilteredRowModel():A._getFilteredRowModel())}};function QG(A,e,t){return(A&&A.autoRemove?A.autoRemove(e,t):!1)||typeof e>"u"||typeof e=="string"&&!e}const n4={sum:(A,e,t)=>t.reduce((r,n)=>{const o=n.getValue(A);return r+(typeof o=="number"?o:0)},0),min:(A,e,t)=>{let r;return t.forEach(n=>{const o=n.getValue(A);o!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}),r},max:(A,e,t)=>{let r;return t.forEach(n=>{const o=n.getValue(A);o!=null&&(r<o||r===void 0&&o>=o)&&(r=o)}),r},extent:(A,e,t)=>{let r,n;return t.forEach(o=>{const i=o.getValue(A);i!=null&&(r===void 0?i>=i&&(r=n=i):(r>i&&(r=i),n<i&&(n=i)))}),[r,n]},mean:(A,e)=>{let t=0,r=0;if(e.forEach(n=>{let o=n.getValue(A);o!=null&&(o=+o)>=o&&(++t,r+=o)}),t)return r/t},median:(A,e)=>{if(!e.length)return;const t=e.map(o=>o.getValue(A));if(!d_A(t))return;if(t.length===1)return t[0];const r=Math.floor(t.length/2),n=t.sort((o,i)=>o-i);return t.length%2!==0?n[r]:(n[r-1]+n[r])/2},unique:(A,e)=>Array.from(new Set(e.map(t=>t.getValue(A))).values()),uniqueCount:(A,e)=>new Set(e.map(t=>t.getValue(A))).size,count:(A,e)=>e.length},w_A={getDefaultColumnDef:()=>({aggregatedCell:A=>{var e,t;return(e=(t=A.getValue())==null||t.toString==null?void 0:t.toString())!=null?e:null},aggregationFn:"auto"}),getInitialState:A=>({grouping:[],...A}),getDefaultOptions:A=>({onGroupingChange:Ho("grouping",A),groupedColumnMode:"reorder"}),createColumn:(A,e)=>{A.toggleGrouping=()=>{e.setGrouping(t=>t!=null&&t.includes(A.id)?t.filter(r=>r!==A.id):[...t??[],A.id])},A.getCanGroup=()=>{var t,r;return((t=A.columnDef.enableGrouping)!=null?t:!0)&&((r=e.options.enableGrouping)!=null?r:!0)&&(!!A.accessorFn||!!A.columnDef.getGroupingValue)},A.getIsGrouped=()=>{var t;return(t=e.getState().grouping)==null?void 0:t.includes(A.id)},A.getGroupedIndex=()=>{var t;return(t=e.getState().grouping)==null?void 0:t.indexOf(A.id)},A.getToggleGroupingHandler=()=>{const t=A.getCanGroup();return()=>{t&&A.toggleGrouping()}},A.getAutoAggregationFn=()=>{const t=e.getCoreRowModel().flatRows[0],r=t==null?void 0:t.getValue(A.id);if(typeof r=="number")return n4.sum;if(Object.prototype.toString.call(r)==="[object Date]")return n4.extent},A.getAggregationFn=()=>{var t,r;if(!A)throw new Error;return Ew(A.columnDef.aggregationFn)?A.columnDef.aggregationFn:A.columnDef.aggregationFn==="auto"?A.getAutoAggregationFn():(t=(r=e.options.aggregationFns)==null?void 0:r[A.columnDef.aggregationFn])!=null?t:n4[A.columnDef.aggregationFn]}},createTable:A=>{A.setGrouping=e=>A.options.onGroupingChange==null?void 0:A.options.onGroupingChange(e),A.resetGrouping=e=>{var t,r;A.setGrouping(e?[]:(t=(r=A.initialState)==null?void 0:r.grouping)!=null?t:[])},A.getPreGroupedRowModel=()=>A.getFilteredRowModel(),A.getGroupedRowModel=()=>(!A._getGroupedRowModel&&A.options.getGroupedRowModel&&(A._getGroupedRowModel=A.options.getGroupedRowModel(A)),A.options.manualGrouping||!A._getGroupedRowModel?A.getPreGroupedRowModel():A._getGroupedRowModel())},createRow:(A,e)=>{A.getIsGrouped=()=>!!A.groupingColumnId,A.getGroupingValue=t=>{if(A._groupingValuesCache.hasOwnProperty(t))return A._groupingValuesCache[t];const r=e.getColumn(t);return r!=null&&r.columnDef.getGroupingValue?(A._groupingValuesCache[t]=r.columnDef.getGroupingValue(A.original),A._groupingValuesCache[t]):A.getValue(t)},A._groupingValuesCache={}},createCell:(A,e,t,r)=>{A.getIsGrouped=()=>e.getIsGrouped()&&e.id===t.groupingColumnId,A.getIsPlaceholder=()=>!A.getIsGrouped()&&e.getIsGrouped(),A.getIsAggregated=()=>{var n;return!A.getIsGrouped()&&!A.getIsPlaceholder()&&!!((n=t.subRows)!=null&&n.length)}}};function I_A(A,e,t){if(!(e!=null&&e.length)||!t)return A;const r=A.filter(o=>!e.includes(o.id));return t==="remove"?r:[...e.map(o=>A.find(i=>i.id===o)).filter(Boolean),...r]}const v_A={getInitialState:A=>({columnOrder:[],...A}),getDefaultOptions:A=>({onColumnOrderChange:Ho("columnOrder",A)}),createColumn:(A,e)=>{A.getIndex=Se(t=>[LB(e,t)],t=>t.findIndex(r=>r.id===A.id),Ne(e.options,"debugColumns")),A.getIsFirstColumn=t=>{var r;return((r=LB(e,t)[0])==null?void 0:r.id)===A.id},A.getIsLastColumn=t=>{var r;const n=LB(e,t);return((r=n[n.length-1])==null?void 0:r.id)===A.id}},createTable:A=>{A.setColumnOrder=e=>A.options.onColumnOrderChange==null?void 0:A.options.onColumnOrderChange(e),A.resetColumnOrder=e=>{var t;A.setColumnOrder(e?[]:(t=A.initialState.columnOrder)!=null?t:[])},A._getOrderColumnsFn=Se(()=>[A.getState().columnOrder,A.getState().grouping,A.options.groupedColumnMode],(e,t,r)=>n=>{let o=[];if(!(e!=null&&e.length))o=n;else{const i=[...e],a=[...n];for(;a.length&&i.length;){const s=i.shift(),l=a.findIndex(c=>c.id===s);l>-1&&o.push(a.splice(l,1)[0])}o=[...o,...a]}return I_A(o,t,r)},Ne(A.options,"debugTable"))}},o4=()=>({left:[],right:[]}),D_A={getInitialState:A=>({columnPinning:o4(),...A}),getDefaultOptions:A=>({onColumnPinningChange:Ho("columnPinning",A)}),createColumn:(A,e)=>{A.pin=t=>{const r=A.getLeafColumns().map(n=>n.id).filter(Boolean);e.setColumnPinning(n=>{var o,i;if(t==="right"){var a,s;return{left:((a=n==null?void 0:n.left)!=null?a:[]).filter(u=>!(r!=null&&r.includes(u))),right:[...((s=n==null?void 0:n.right)!=null?s:[]).filter(u=>!(r!=null&&r.includes(u))),...r]}}if(t==="left"){var l,c;return{left:[...((l=n==null?void 0:n.left)!=null?l:[]).filter(u=>!(r!=null&&r.includes(u))),...r],right:((c=n==null?void 0:n.right)!=null?c:[]).filter(u=>!(r!=null&&r.includes(u)))}}return{left:((o=n==null?void 0:n.left)!=null?o:[]).filter(u=>!(r!=null&&r.includes(u))),right:((i=n==null?void 0:n.right)!=null?i:[]).filter(u=>!(r!=null&&r.includes(u)))}})},A.getCanPin=()=>A.getLeafColumns().some(r=>{var n,o,i;return((n=r.columnDef.enablePinning)!=null?n:!0)&&((o=(i=e.options.enableColumnPinning)!=null?i:e.options.enablePinning)!=null?o:!0)}),A.getIsPinned=()=>{const t=A.getLeafColumns().map(a=>a.id),{left:r,right:n}=e.getState().columnPinning,o=t.some(a=>r==null?void 0:r.includes(a)),i=t.some(a=>n==null?void 0:n.includes(a));return o?"left":i?"right":!1},A.getPinnedIndex=()=>{var t,r;const n=A.getIsPinned();return n?(t=(r=e.getState().columnPinning)==null||(r=r[n])==null?void 0:r.indexOf(A.id))!=null?t:-1:0}},createRow:(A,e)=>{A.getCenterVisibleCells=Se(()=>[A._getAllVisibleCells(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n)=>{const o=[...r??[],...n??[]];return t.filter(i=>!o.includes(i.column.id))},Ne(e.options,"debugRows")),A.getLeftVisibleCells=Se(()=>[A._getAllVisibleCells(),e.getState().columnPinning.left],(t,r)=>(r??[]).map(o=>t.find(i=>i.column.id===o)).filter(Boolean).map(o=>({...o,position:"left"})),Ne(e.options,"debugRows")),A.getRightVisibleCells=Se(()=>[A._getAllVisibleCells(),e.getState().columnPinning.right],(t,r)=>(r??[]).map(o=>t.find(i=>i.column.id===o)).filter(Boolean).map(o=>({...o,position:"right"})),Ne(e.options,"debugRows"))},createTable:A=>{A.setColumnPinning=e=>A.options.onColumnPinningChange==null?void 0:A.options.onColumnPinningChange(e),A.resetColumnPinning=e=>{var t,r;return A.setColumnPinning(e?o4():(t=(r=A.initialState)==null?void 0:r.columnPinning)!=null?t:o4())},A.getIsSomeColumnsPinned=e=>{var t;const r=A.getState().columnPinning;if(!e){var n,o;return!!((n=r.left)!=null&&n.length||(o=r.right)!=null&&o.length)}return!!((t=r[e])!=null&&t.length)},A.getLeftLeafColumns=Se(()=>[A.getAllLeafColumns(),A.getState().columnPinning.left],(e,t)=>(t??[]).map(r=>e.find(n=>n.id===r)).filter(Boolean),Ne(A.options,"debugColumns")),A.getRightLeafColumns=Se(()=>[A.getAllLeafColumns(),A.getState().columnPinning.right],(e,t)=>(t??[]).map(r=>e.find(n=>n.id===r)).filter(Boolean),Ne(A.options,"debugColumns")),A.getCenterLeafColumns=Se(()=>[A.getAllLeafColumns(),A.getState().columnPinning.left,A.getState().columnPinning.right],(e,t,r)=>{const n=[...t??[],...r??[]];return e.filter(o=>!n.includes(o.id))},Ne(A.options,"debugColumns"))}},mw={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},i4=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),y_A={getDefaultColumnDef:()=>mw,getInitialState:A=>({columnSizing:{},columnSizingInfo:i4(),...A}),getDefaultOptions:A=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Ho("columnSizing",A),onColumnSizingInfoChange:Ho("columnSizingInfo",A)}),createColumn:(A,e)=>{A.getSize=()=>{var t,r,n;const o=e.getState().columnSizing[A.id];return Math.min(Math.max((t=A.columnDef.minSize)!=null?t:mw.minSize,(r=o??A.columnDef.size)!=null?r:mw.size),(n=A.columnDef.maxSize)!=null?n:mw.maxSize)},A.getStart=Se(t=>[t,LB(e,t),e.getState().columnSizing],(t,r)=>r.slice(0,A.getIndex(t)).reduce((n,o)=>n+o.getSize(),0),Ne(e.options,"debugColumns")),A.getAfter=Se(t=>[t,LB(e,t),e.getState().columnSizing],(t,r)=>r.slice(A.getIndex(t)+1).reduce((n,o)=>n+o.getSize(),0),Ne(e.options,"debugColumns")),A.resetSize=()=>{e.setColumnSizing(t=>{let{[A.id]:r,...n}=t;return n})},A.getCanResize=()=>{var t,r;return((t=A.columnDef.enableResizing)!=null?t:!0)&&((r=e.options.enableColumnResizing)!=null?r:!0)},A.getIsResizing=()=>e.getState().columnSizingInfo.isResizingColumn===A.id},createHeader:(A,e)=>{A.getSize=()=>{let t=0;const r=n=>{if(n.subHeaders.length)n.subHeaders.forEach(r);else{var o;t+=(o=n.column.getSize())!=null?o:0}};return r(A),t},A.getStart=()=>{if(A.index>0){const t=A.headerGroup.headers[A.index-1];return t.getStart()+t.getSize()}return 0},A.getResizeHandler=t=>{const r=e.getColumn(A.column.id),n=r==null?void 0:r.getCanResize();return o=>{if(!r||!n||(o.persist==null||o.persist(),a4(o)&&o.touches&&o.touches.length>1))return;const i=A.getSize(),a=A?A.getLeafHeaders().map(m=>[m.column.id,m.column.getSize()]):[[r.id,r.getSize()]],s=a4(o)?Math.round(o.touches[0].clientX):o.clientX,l={},c=(m,I)=>{typeof I=="number"&&(e.setColumnSizingInfo(v=>{var y,x;const b=e.options.columnResizeDirection==="rtl"?-1:1,k=(I-((y=v==null?void 0:v.startOffset)!=null?y:0))*b,M=Math.max(k/((x=v==null?void 0:v.startSize)!=null?x:0),-.999999);return v.columnSizingStart.forEach(N=>{let[F,L]=N;l[F]=Math.round(Math.max(L+L*M,0)*100)/100}),{...v,deltaOffset:k,deltaPercentage:M}}),(e.options.columnResizeMode==="onChange"||m==="end")&&e.setColumnSizing(v=>({...v,...l})))},u=m=>c("move",m),g=m=>{c("end",m),e.setColumnSizingInfo(I=>({...I,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=t||typeof document<"u"?document:null,B={moveHandler:m=>u(m.clientX),upHandler:m=>{h==null||h.removeEventListener("mousemove",B.moveHandler),h==null||h.removeEventListener("mouseup",B.upHandler),g(m.clientX)}},E={moveHandler:m=>(m.cancelable&&(m.preventDefault(),m.stopPropagation()),u(m.touches[0].clientX),!1),upHandler:m=>{var I;h==null||h.removeEventListener("touchmove",E.moveHandler),h==null||h.removeEventListener("touchend",E.upHandler),m.cancelable&&(m.preventDefault(),m.stopPropagation()),g((I=m.touches[0])==null?void 0:I.clientX)}},C=b_A()?{passive:!1}:!1;a4(o)?(h==null||h.addEventListener("touchmove",E.moveHandler,C),h==null||h.addEventListener("touchend",E.upHandler,C)):(h==null||h.addEventListener("mousemove",B.moveHandler,C),h==null||h.addEventListener("mouseup",B.upHandler,C)),e.setColumnSizingInfo(m=>({...m,startOffset:s,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:r.id}))}}},createTable:A=>{A.setColumnSizing=e=>A.options.onColumnSizingChange==null?void 0:A.options.onColumnSizingChange(e),A.setColumnSizingInfo=e=>A.options.onColumnSizingInfoChange==null?void 0:A.options.onColumnSizingInfoChange(e),A.resetColumnSizing=e=>{var t;A.setColumnSizing(e?{}:(t=A.initialState.columnSizing)!=null?t:{})},A.resetHeaderSizeInfo=e=>{var t;A.setColumnSizingInfo(e?i4():(t=A.initialState.columnSizingInfo)!=null?t:i4())},A.getTotalSize=()=>{var e,t;return(e=(t=A.getHeaderGroups()[0])==null?void 0:t.headers.reduce((r,n)=>r+n.getSize(),0))!=null?e:0},A.getLeftTotalSize=()=>{var e,t;return(e=(t=A.getLeftHeaderGroups()[0])==null?void 0:t.headers.reduce((r,n)=>r+n.getSize(),0))!=null?e:0},A.getCenterTotalSize=()=>{var e,t;return(e=(t=A.getCenterHeaderGroups()[0])==null?void 0:t.headers.reduce((r,n)=>r+n.getSize(),0))!=null?e:0},A.getRightTotalSize=()=>{var e,t;return(e=(t=A.getRightHeaderGroups()[0])==null?void 0:t.headers.reduce((r,n)=>r+n.getSize(),0))!=null?e:0}}};let Qw=null;function b_A(){if(typeof Qw=="boolean")return Qw;let A=!1;try{const e={get passive(){return A=!0,!1}},t=()=>{};window.addEventListener("test",t,e),window.removeEventListener("test",t)}catch{A=!1}return Qw=A,Qw}function a4(A){return A.type==="touchstart"}const x_A={getInitialState:A=>({columnVisibility:{},...A}),getDefaultOptions:A=>({onColumnVisibilityChange:Ho("columnVisibility",A)}),createColumn:(A,e)=>{A.toggleVisibility=t=>{A.getCanHide()&&e.setColumnVisibility(r=>({...r,[A.id]:t??!A.getIsVisible()}))},A.getIsVisible=()=>{var t,r;const n=A.columns;return(t=n.length?n.some(o=>o.getIsVisible()):(r=e.getState().columnVisibility)==null?void 0:r[A.id])!=null?t:!0},A.getCanHide=()=>{var t,r;return((t=A.columnDef.enableHiding)!=null?t:!0)&&((r=e.options.enableHiding)!=null?r:!0)},A.getToggleVisibilityHandler=()=>t=>{A.toggleVisibility==null||A.toggleVisibility(t.target.checked)}},createRow:(A,e)=>{A._getAllVisibleCells=Se(()=>[A.getAllCells(),e.getState().columnVisibility],t=>t.filter(r=>r.column.getIsVisible()),Ne(e.options,"debugRows")),A.getVisibleCells=Se(()=>[A.getLeftVisibleCells(),A.getCenterVisibleCells(),A.getRightVisibleCells()],(t,r,n)=>[...t,...r,...n],Ne(e.options,"debugRows"))},createTable:A=>{const e=(t,r)=>Se(()=>[r(),r().filter(n=>n.getIsVisible()).map(n=>n.id).join("_")],n=>n.filter(o=>o.getIsVisible==null?void 0:o.getIsVisible()),Ne(A.options,"debugColumns"));A.getVisibleFlatColumns=e("getVisibleFlatColumns",()=>A.getAllFlatColumns()),A.getVisibleLeafColumns=e("getVisibleLeafColumns",()=>A.getAllLeafColumns()),A.getLeftVisibleLeafColumns=e("getLeftVisibleLeafColumns",()=>A.getLeftLeafColumns()),A.getRightVisibleLeafColumns=e("getRightVisibleLeafColumns",()=>A.getRightLeafColumns()),A.getCenterVisibleLeafColumns=e("getCenterVisibleLeafColumns",()=>A.getCenterLeafColumns()),A.setColumnVisibility=t=>A.options.onColumnVisibilityChange==null?void 0:A.options.onColumnVisibilityChange(t),A.resetColumnVisibility=t=>{var r;A.setColumnVisibility(t?{}:(r=A.initialState.columnVisibility)!=null?r:{})},A.toggleAllColumnsVisible=t=>{var r;t=(r=t)!=null?r:!A.getIsAllColumnsVisible(),A.setColumnVisibility(A.getAllLeafColumns().reduce((n,o)=>({...n,[o.id]:t||!(o.getCanHide!=null&&o.getCanHide())}),{}))},A.getIsAllColumnsVisible=()=>!A.getAllLeafColumns().some(t=>!(t.getIsVisible!=null&&t.getIsVisible())),A.getIsSomeColumnsVisible=()=>A.getAllLeafColumns().some(t=>t.getIsVisible==null?void 0:t.getIsVisible()),A.getToggleAllColumnsVisibilityHandler=()=>t=>{var r;A.toggleAllColumnsVisible((r=t.target)==null?void 0:r.checked)}}};function LB(A,e){return e?e==="center"?A.getCenterVisibleLeafColumns():e==="left"?A.getLeftVisibleLeafColumns():A.getRightVisibleLeafColumns():A.getVisibleLeafColumns()}const k_A={createTable:A=>{A._getGlobalFacetedRowModel=A.options.getFacetedRowModel&&A.options.getFacetedRowModel(A,"__global__"),A.getGlobalFacetedRowModel=()=>A.options.manualFiltering||!A._getGlobalFacetedRowModel?A.getPreFilteredRowModel():A._getGlobalFacetedRowModel(),A._getGlobalFacetedUniqueValues=A.options.getFacetedUniqueValues&&A.options.getFacetedUniqueValues(A,"__global__"),A.getGlobalFacetedUniqueValues=()=>A._getGlobalFacetedUniqueValues?A._getGlobalFacetedUniqueValues():new Map,A._getGlobalFacetedMinMaxValues=A.options.getFacetedMinMaxValues&&A.options.getFacetedMinMaxValues(A,"__global__"),A.getGlobalFacetedMinMaxValues=()=>{if(A._getGlobalFacetedMinMaxValues)return A._getGlobalFacetedMinMaxValues()}}},__A={getInitialState:A=>({globalFilter:void 0,...A}),getDefaultOptions:A=>({onGlobalFilterChange:Ho("globalFilter",A),globalFilterFn:"auto",getColumnCanGlobalFilter:e=>{var t;const r=(t=A.getCoreRowModel().flatRows[0])==null||(t=t._getAllCellsByColumnId()[e.id])==null?void 0:t.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(A,e)=>{A.getCanGlobalFilter=()=>{var t,r,n,o;return((t=A.columnDef.enableGlobalFilter)!=null?t:!0)&&((r=e.options.enableGlobalFilter)!=null?r:!0)&&((n=e.options.enableFilters)!=null?n:!0)&&((o=e.options.getColumnCanGlobalFilter==null?void 0:e.options.getColumnCanGlobalFilter(A))!=null?o:!0)&&!!A.accessorFn}},createTable:A=>{A.getGlobalAutoFilterFn=()=>Al.includesString,A.getGlobalFilterFn=()=>{var e,t;const{globalFilterFn:r}=A.options;return Ew(r)?r:r==="auto"?A.getGlobalAutoFilterFn():(e=(t=A.options.filterFns)==null?void 0:t[r])!=null?e:Al[r]},A.setGlobalFilter=e=>{A.options.onGlobalFilterChange==null||A.options.onGlobalFilterChange(e)},A.resetGlobalFilter=e=>{A.setGlobalFilter(e?void 0:A.initialState.globalFilter)}}},M_A={getInitialState:A=>({expanded:{},...A}),getDefaultOptions:A=>({onExpandedChange:Ho("expanded",A),paginateExpandedRows:!0}),createTable:A=>{let e=!1,t=!1;A._autoResetExpanded=()=>{var r,n;if(!e){A._queue(()=>{e=!0});return}if((r=(n=A.options.autoResetAll)!=null?n:A.options.autoResetExpanded)!=null?r:!A.options.manualExpanding){if(t)return;t=!0,A._queue(()=>{A.resetExpanded(),t=!1})}},A.setExpanded=r=>A.options.onExpandedChange==null?void 0:A.options.onExpandedChange(r),A.toggleAllRowsExpanded=r=>{r??!A.getIsAllRowsExpanded()?A.setExpanded(!0):A.setExpanded({})},A.resetExpanded=r=>{var n,o;A.setExpanded(r?{}:(n=(o=A.initialState)==null?void 0:o.expanded)!=null?n:{})},A.getCanSomeRowsExpand=()=>A.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),A.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),A.toggleAllRowsExpanded()},A.getIsSomeRowsExpanded=()=>{const r=A.getState().expanded;return r===!0||Object.values(r).some(Boolean)},A.getIsAllRowsExpanded=()=>{const r=A.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||A.getRowModel().flatRows.some(n=>!n.getIsExpanded()))},A.getExpandedDepth=()=>{let r=0;return(A.getState().expanded===!0?Object.keys(A.getRowModel().rowsById):Object.keys(A.getState().expanded)).forEach(o=>{const i=o.split(".");r=Math.max(r,i.length)}),r},A.getPreExpandedRowModel=()=>A.getSortedRowModel(),A.getExpandedRowModel=()=>(!A._getExpandedRowModel&&A.options.getExpandedRowModel&&(A._getExpandedRowModel=A.options.getExpandedRowModel(A)),A.options.manualExpanding||!A._getExpandedRowModel?A.getPreExpandedRowModel():A._getExpandedRowModel())},createRow:(A,e)=>{A.toggleExpanded=t=>{e.setExpanded(r=>{var n;const o=r===!0?!0:!!(r!=null&&r[A.id]);let i={};if(r===!0?Object.keys(e.getRowModel().rowsById).forEach(a=>{i[a]=!0}):i=r,t=(n=t)!=null?n:!o,!o&&t)return{...i,[A.id]:!0};if(o&&!t){const{[A.id]:a,...s}=i;return s}return r})},A.getIsExpanded=()=>{var t;const r=e.getState().expanded;return!!((t=e.options.getIsRowExpanded==null?void 0:e.options.getIsRowExpanded(A))!=null?t:r===!0||r!=null&&r[A.id])},A.getCanExpand=()=>{var t,r,n;return(t=e.options.getRowCanExpand==null?void 0:e.options.getRowCanExpand(A))!=null?t:((r=e.options.enableExpanding)!=null?r:!0)&&!!((n=A.subRows)!=null&&n.length)},A.getIsAllParentsExpanded=()=>{let t=!0,r=A;for(;t&&r.parentId;)r=e.getRow(r.parentId,!0),t=r.getIsExpanded();return t},A.getToggleExpandedHandler=()=>{const t=A.getCanExpand();return()=>{t&&A.toggleExpanded()}}}},s4=0,l4=10,c4=()=>({pageIndex:s4,pageSize:l4}),S_A={getInitialState:A=>({...A,pagination:{...c4(),...A==null?void 0:A.pagination}}),getDefaultOptions:A=>({onPaginationChange:Ho("pagination",A)}),createTable:A=>{let e=!1,t=!1;A._autoResetPageIndex=()=>{var r,n;if(!e){A._queue(()=>{e=!0});return}if((r=(n=A.options.autoResetAll)!=null?n:A.options.autoResetPageIndex)!=null?r:!A.options.manualPagination){if(t)return;t=!0,A._queue(()=>{A.resetPageIndex(),t=!1})}},A.setPagination=r=>{const n=o=>uc(r,o);return A.options.onPaginationChange==null?void 0:A.options.onPaginationChange(n)},A.resetPagination=r=>{var n;A.setPagination(r?c4():(n=A.initialState.pagination)!=null?n:c4())},A.setPageIndex=r=>{A.setPagination(n=>{let o=uc(r,n.pageIndex);const i=typeof A.options.pageCount>"u"||A.options.pageCount===-1?Number.MAX_SAFE_INTEGER:A.options.pageCount-1;return o=Math.max(0,Math.min(o,i)),{...n,pageIndex:o}})},A.resetPageIndex=r=>{var n,o;A.setPageIndex(r?s4:(n=(o=A.initialState)==null||(o=o.pagination)==null?void 0:o.pageIndex)!=null?n:s4)},A.resetPageSize=r=>{var n,o;A.setPageSize(r?l4:(n=(o=A.initialState)==null||(o=o.pagination)==null?void 0:o.pageSize)!=null?n:l4)},A.setPageSize=r=>{A.setPagination(n=>{const o=Math.max(1,uc(r,n.pageSize)),i=n.pageSize*n.pageIndex,a=Math.floor(i/o);return{...n,pageIndex:a,pageSize:o}})},A.setPageCount=r=>A.setPagination(n=>{var o;let i=uc(r,(o=A.options.pageCount)!=null?o:-1);return typeof i=="number"&&(i=Math.max(-1,i)),{...n,pageCount:i}}),A.getPageOptions=Se(()=>[A.getPageCount()],r=>{let n=[];return r&&r>0&&(n=[...new Array(r)].fill(null).map((o,i)=>i)),n},Ne(A.options,"debugTable")),A.getCanPreviousPage=()=>A.getState().pagination.pageIndex>0,A.getCanNextPage=()=>{const{pageIndex:r}=A.getState().pagination,n=A.getPageCount();return n===-1?!0:n===0?!1:r<n-1},A.previousPage=()=>A.setPageIndex(r=>r-1),A.nextPage=()=>A.setPageIndex(r=>r+1),A.firstPage=()=>A.setPageIndex(0),A.lastPage=()=>A.setPageIndex(A.getPageCount()-1),A.getPrePaginationRowModel=()=>A.getExpandedRowModel(),A.getPaginationRowModel=()=>(!A._getPaginationRowModel&&A.options.getPaginationRowModel&&(A._getPaginationRowModel=A.options.getPaginationRowModel(A)),A.options.manualPagination||!A._getPaginationRowModel?A.getPrePaginationRowModel():A._getPaginationRowModel()),A.getPageCount=()=>{var r;return(r=A.options.pageCount)!=null?r:Math.ceil(A.getRowCount()/A.getState().pagination.pageSize)},A.getRowCount=()=>{var r;return(r=A.options.rowCount)!=null?r:A.getPrePaginationRowModel().rows.length}}},u4=()=>({top:[],bottom:[]}),N_A={getInitialState:A=>({rowPinning:u4(),...A}),getDefaultOptions:A=>({onRowPinningChange:Ho("rowPinning",A)}),createRow:(A,e)=>{A.pin=(t,r,n)=>{const o=r?A.getLeafRows().map(s=>{let{id:l}=s;return l}):[],i=n?A.getParentRows().map(s=>{let{id:l}=s;return l}):[],a=new Set([...i,A.id,...o]);e.setRowPinning(s=>{var l,c;if(t==="bottom"){var u,g;return{top:((u=s==null?void 0:s.top)!=null?u:[]).filter(E=>!(a!=null&&a.has(E))),bottom:[...((g=s==null?void 0:s.bottom)!=null?g:[]).filter(E=>!(a!=null&&a.has(E))),...Array.from(a)]}}if(t==="top"){var h,B;return{top:[...((h=s==null?void 0:s.top)!=null?h:[]).filter(E=>!(a!=null&&a.has(E))),...Array.from(a)],bottom:((B=s==null?void 0:s.bottom)!=null?B:[]).filter(E=>!(a!=null&&a.has(E)))}}return{top:((l=s==null?void 0:s.top)!=null?l:[]).filter(E=>!(a!=null&&a.has(E))),bottom:((c=s==null?void 0:s.bottom)!=null?c:[]).filter(E=>!(a!=null&&a.has(E)))}})},A.getCanPin=()=>{var t;const{enableRowPinning:r,enablePinning:n}=e.options;return typeof r=="function"?r(A):(t=r??n)!=null?t:!0},A.getIsPinned=()=>{const t=[A.id],{top:r,bottom:n}=e.getState().rowPinning,o=t.some(a=>r==null?void 0:r.includes(a)),i=t.some(a=>n==null?void 0:n.includes(a));return o?"top":i?"bottom":!1},A.getPinnedIndex=()=>{var t,r;const n=A.getIsPinned();if(!n)return-1;const o=(t=e._getPinnedRows(n))==null?void 0:t.map(i=>{let{id:a}=i;return a});return(r=o==null?void 0:o.indexOf(A.id))!=null?r:-1}},createTable:A=>{A.setRowPinning=e=>A.options.onRowPinningChange==null?void 0:A.options.onRowPinningChange(e),A.resetRowPinning=e=>{var t,r;return A.setRowPinning(e?u4():(t=(r=A.initialState)==null?void 0:r.rowPinning)!=null?t:u4())},A.getIsSomeRowsPinned=e=>{var t;const r=A.getState().rowPinning;if(!e){var n,o;return!!((n=r.top)!=null&&n.length||(o=r.bottom)!=null&&o.length)}return!!((t=r[e])!=null&&t.length)},A._getPinnedRows=Se(e=>[A.getRowModel().rows,A.getState().rowPinning[e],e],(e,t,r)=>{var n;return((n=A.options.keepPinnedRows)==null||n?(t??[]).map(i=>{const a=A.getRow(i,!0);return a.getIsAllParentsExpanded()?a:null}):(t??[]).map(i=>e.find(a=>a.id===i))).filter(Boolean).map(i=>({...i,position:r}))},Ne(A.options,"debugRows")),A.getTopRows=()=>A._getPinnedRows("top"),A.getBottomRows=()=>A._getPinnedRows("bottom"),A.getCenterRows=Se(()=>[A.getRowModel().rows,A.getState().rowPinning.top,A.getState().rowPinning.bottom],(e,t,r)=>{const n=new Set([...t??[],...r??[]]);return e.filter(o=>!n.has(o.id))},Ne(A.options,"debugRows"))}},R_A={getInitialState:A=>({rowSelection:{},...A}),getDefaultOptions:A=>({onRowSelectionChange:Ho("rowSelection",A),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:A=>{A.setRowSelection=e=>A.options.onRowSelectionChange==null?void 0:A.options.onRowSelectionChange(e),A.resetRowSelection=e=>{var t;return A.setRowSelection(e?{}:(t=A.initialState.rowSelection)!=null?t:{})},A.toggleAllRowsSelected=e=>{A.setRowSelection(t=>{e=typeof e<"u"?e:!A.getIsAllRowsSelected();const r={...t},n=A.getPreGroupedRowModel().flatRows;return e?n.forEach(o=>{o.getCanSelect()&&(r[o.id]=!0)}):n.forEach(o=>{delete r[o.id]}),r})},A.toggleAllPageRowsSelected=e=>A.setRowSelection(t=>{const r=typeof e<"u"?e:!A.getIsAllPageRowsSelected(),n={...t};return A.getRowModel().rows.forEach(o=>{f4(n,o.id,r,!0,A)}),n}),A.getPreSelectedRowModel=()=>A.getCoreRowModel(),A.getSelectedRowModel=Se(()=>[A.getState().rowSelection,A.getCoreRowModel()],(e,t)=>Object.keys(e).length?g4(A,t):{rows:[],flatRows:[],rowsById:{}},Ne(A.options,"debugTable")),A.getFilteredSelectedRowModel=Se(()=>[A.getState().rowSelection,A.getFilteredRowModel()],(e,t)=>Object.keys(e).length?g4(A,t):{rows:[],flatRows:[],rowsById:{}},Ne(A.options,"debugTable")),A.getGroupedSelectedRowModel=Se(()=>[A.getState().rowSelection,A.getSortedRowModel()],(e,t)=>Object.keys(e).length?g4(A,t):{rows:[],flatRows:[],rowsById:{}},Ne(A.options,"debugTable")),A.getIsAllRowsSelected=()=>{const e=A.getFilteredRowModel().flatRows,{rowSelection:t}=A.getState();let r=!!(e.length&&Object.keys(t).length);return r&&e.some(n=>n.getCanSelect()&&!t[n.id])&&(r=!1),r},A.getIsAllPageRowsSelected=()=>{const e=A.getPaginationRowModel().flatRows.filter(n=>n.getCanSelect()),{rowSelection:t}=A.getState();let r=!!e.length;return r&&e.some(n=>!t[n.id])&&(r=!1),r},A.getIsSomeRowsSelected=()=>{var e;const t=Object.keys((e=A.getState().rowSelection)!=null?e:{}).length;return t>0&&t<A.getFilteredRowModel().flatRows.length},A.getIsSomePageRowsSelected=()=>{const e=A.getPaginationRowModel().flatRows;return A.getIsAllPageRowsSelected()?!1:e.filter(t=>t.getCanSelect()).some(t=>t.getIsSelected()||t.getIsSomeSelected())},A.getToggleAllRowsSelectedHandler=()=>e=>{A.toggleAllRowsSelected(e.target.checked)},A.getToggleAllPageRowsSelectedHandler=()=>e=>{A.toggleAllPageRowsSelected(e.target.checked)}},createRow:(A,e)=>{A.toggleSelected=(t,r)=>{const n=A.getIsSelected();e.setRowSelection(o=>{var i;if(t=typeof t<"u"?t:!n,A.getCanSelect()&&n===t)return o;const a={...o};return f4(a,A.id,t,(i=r==null?void 0:r.selectChildren)!=null?i:!0,e),a})},A.getIsSelected=()=>{const{rowSelection:t}=e.getState();return d4(A,t)},A.getIsSomeSelected=()=>{const{rowSelection:t}=e.getState();return h4(A,t)==="some"},A.getIsAllSubRowsSelected=()=>{const{rowSelection:t}=e.getState();return h4(A,t)==="all"},A.getCanSelect=()=>{var t;return typeof e.options.enableRowSelection=="function"?e.options.enableRowSelection(A):(t=e.options.enableRowSelection)!=null?t:!0},A.getCanSelectSubRows=()=>{var t;return typeof e.options.enableSubRowSelection=="function"?e.options.enableSubRowSelection(A):(t=e.options.enableSubRowSelection)!=null?t:!0},A.getCanMultiSelect=()=>{var t;return typeof e.options.enableMultiRowSelection=="function"?e.options.enableMultiRowSelection(A):(t=e.options.enableMultiRowSelection)!=null?t:!0},A.getToggleSelectedHandler=()=>{const t=A.getCanSelect();return r=>{var n;t&&A.toggleSelected((n=r.target)==null?void 0:n.checked)}}}},f4=(A,e,t,r,n)=>{var o;const i=n.getRow(e,!0);t?(i.getCanMultiSelect()||Object.keys(A).forEach(a=>delete A[a]),i.getCanSelect()&&(A[e]=!0)):delete A[e],r&&(o=i.subRows)!=null&&o.length&&i.getCanSelectSubRows()&&i.subRows.forEach(a=>f4(A,a.id,t,r,n))};function g4(A,e){const t=A.getState().rowSelection,r=[],n={},o=function(i,a){return i.map(s=>{var l;const c=d4(s,t);if(c&&(r.push(s),n[s.id]=s),(l=s.subRows)!=null&&l.length&&(s={...s,subRows:o(s.subRows)}),c)return s}).filter(Boolean)};return{rows:o(e.rows),flatRows:r,rowsById:n}}function d4(A,e){var t;return(t=e[A.id])!=null?t:!1}function h4(A,e,t){var r;if(!((r=A.subRows)!=null&&r.length))return!1;let n=!0,o=!1;return A.subRows.forEach(i=>{if(!(o&&!n)&&(i.getCanSelect()&&(d4(i,e)?o=!0:n=!1),i.subRows&&i.subRows.length)){const a=h4(i,e);a==="all"?o=!0:(a==="some"&&(o=!0),n=!1)}}),n?"all":o?"some":!1}const p4=/([0-9]+)/gm,P_A=(A,e,t)=>wG(fc(A.getValue(t)).toLowerCase(),fc(e.getValue(t)).toLowerCase()),T_A=(A,e,t)=>wG(fc(A.getValue(t)),fc(e.getValue(t))),L_A=(A,e,t)=>B4(fc(A.getValue(t)).toLowerCase(),fc(e.getValue(t)).toLowerCase()),F_A=(A,e,t)=>B4(fc(A.getValue(t)),fc(e.getValue(t))),O_A=(A,e,t)=>{const r=A.getValue(t),n=e.getValue(t);return r>n?1:r<n?-1:0},H_A=(A,e,t)=>B4(A.getValue(t),e.getValue(t));function B4(A,e){return A===e?0:A>e?1:-1}function fc(A){return typeof A=="number"?isNaN(A)||A===1/0||A===-1/0?"":String(A):typeof A=="string"?A:""}function wG(A,e){const t=A.split(p4).filter(Boolean),r=e.split(p4).filter(Boolean);for(;t.length&&r.length;){const n=t.shift(),o=r.shift(),i=parseInt(n,10),a=parseInt(o,10),s=[i,a].sort();if(isNaN(s[0])){if(n>o)return 1;if(o>n)return-1;continue}if(isNaN(s[1]))return isNaN(i)?-1:1;if(i>a)return 1;if(a>i)return-1}return t.length-r.length}const FB={alphanumeric:P_A,alphanumericCaseSensitive:T_A,text:L_A,textCaseSensitive:F_A,datetime:O_A,basic:H_A},G_A=[E_A,x_A,v_A,D_A,m_A,Q_A,k_A,__A,{getInitialState:A=>({sorting:[],...A}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:A=>({onSortingChange:Ho("sorting",A),isMultiSortEvent:e=>e.shiftKey}),createColumn:(A,e)=>{A.getAutoSortingFn=()=>{const t=e.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const n of t){const o=n==null?void 0:n.getValue(A.id);if(Object.prototype.toString.call(o)==="[object Date]")return FB.datetime;if(typeof o=="string"&&(r=!0,o.split(p4).length>1))return FB.alphanumeric}return r?FB.text:FB.basic},A.getAutoSortDir=()=>{const t=e.getFilteredRowModel().flatRows[0];return typeof(t==null?void 0:t.getValue(A.id))=="string"?"asc":"desc"},A.getSortingFn=()=>{var t,r;if(!A)throw new Error;return Ew(A.columnDef.sortingFn)?A.columnDef.sortingFn:A.columnDef.sortingFn==="auto"?A.getAutoSortingFn():(t=(r=e.options.sortingFns)==null?void 0:r[A.columnDef.sortingFn])!=null?t:FB[A.columnDef.sortingFn]},A.toggleSorting=(t,r)=>{const n=A.getNextSortingOrder(),o=typeof t<"u"&&t!==null;e.setSorting(i=>{const a=i==null?void 0:i.find(h=>h.id===A.id),s=i==null?void 0:i.findIndex(h=>h.id===A.id);let l=[],c,u=o?t:n==="desc";if(i!=null&&i.length&&A.getCanMultiSort()&&r?a?c="toggle":c="add":i!=null&&i.length&&s!==i.length-1?c="replace":a?c="toggle":c="replace",c==="toggle"&&(o||n||(c="remove")),c==="add"){var g;l=[...i,{id:A.id,desc:u}],l.splice(0,l.length-((g=e.options.maxMultiSortColCount)!=null?g:Number.MAX_SAFE_INTEGER))}else c==="toggle"?l=i.map(h=>h.id===A.id?{...h,desc:u}:h):c==="remove"?l=i.filter(h=>h.id!==A.id):l=[{id:A.id,desc:u}];return l})},A.getFirstSortDir=()=>{var t,r;return((t=(r=A.columnDef.sortDescFirst)!=null?r:e.options.sortDescFirst)!=null?t:A.getAutoSortDir()==="desc")?"desc":"asc"},A.getNextSortingOrder=t=>{var r,n;const o=A.getFirstSortDir(),i=A.getIsSorted();return i?i!==o&&((r=e.options.enableSortingRemoval)==null||r)&&(!(t&&(n=e.options.enableMultiRemove)!=null)||n)?!1:i==="desc"?"asc":"desc":o},A.getCanSort=()=>{var t,r;return((t=A.columnDef.enableSorting)!=null?t:!0)&&((r=e.options.enableSorting)!=null?r:!0)&&!!A.accessorFn},A.getCanMultiSort=()=>{var t,r;return(t=(r=A.columnDef.enableMultiSort)!=null?r:e.options.enableMultiSort)!=null?t:!!A.accessorFn},A.getIsSorted=()=>{var t;const r=(t=e.getState().sorting)==null?void 0:t.find(n=>n.id===A.id);return r?r.desc?"desc":"asc":!1},A.getSortIndex=()=>{var t,r;return(t=(r=e.getState().sorting)==null?void 0:r.findIndex(n=>n.id===A.id))!=null?t:-1},A.clearSorting=()=>{e.setSorting(t=>t!=null&&t.length?t.filter(r=>r.id!==A.id):[])},A.getToggleSortingHandler=()=>{const t=A.getCanSort();return r=>{t&&(r.persist==null||r.persist(),A.toggleSorting==null||A.toggleSorting(void 0,A.getCanMultiSort()?e.options.isMultiSortEvent==null?void 0:e.options.isMultiSortEvent(r):!1))}}},createTable:A=>{A.setSorting=e=>A.options.onSortingChange==null?void 0:A.options.onSortingChange(e),A.resetSorting=e=>{var t,r;A.setSorting(e?[]:(t=(r=A.initialState)==null?void 0:r.sorting)!=null?t:[])},A.getPreSortedRowModel=()=>A.getGroupedRowModel(),A.getSortedRowModel=()=>(!A._getSortedRowModel&&A.options.getSortedRowModel&&(A._getSortedRowModel=A.options.getSortedRowModel(A)),A.options.manualSorting||!A._getSortedRowModel?A.getPreSortedRowModel():A._getSortedRowModel())}},w_A,M_A,S_A,N_A,R_A,y_A];function U_A(A){var e,t;const r=[...G_A,...(e=A._features)!=null?e:[]];let n={_features:r};const o=n._features.reduce((g,h)=>Object.assign(g,h.getDefaultOptions==null?void 0:h.getDefaultOptions(n)),{}),i=g=>n.options.mergeOptions?n.options.mergeOptions(o,g):{...o,...g};let s={...{},...(t=A.initialState)!=null?t:{}};n._features.forEach(g=>{var h;s=(h=g.getInitialState==null?void 0:g.getInitialState(s))!=null?h:s});const l=[];let c=!1;const u={_features:r,options:{...o,...A},initialState:s,_queue:g=>{l.push(g),c||(c=!0,Promise.resolve().then(()=>{for(;l.length;)l.shift()();c=!1}).catch(h=>setTimeout(()=>{throw h})))},reset:()=>{n.setState(n.initialState)},setOptions:g=>{const h=uc(g,n.options);n.options=i(h)},getState:()=>n.options.state,setState:g=>{n.options.onStateChange==null||n.options.onStateChange(g)},_getRowId:(g,h,B)=>{var E;return(E=n.options.getRowId==null?void 0:n.options.getRowId(g,h,B))!=null?E:`${B?[B.id,h].join("."):h}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(g,h)=>{let B=(h?n.getPrePaginationRowModel():n.getRowModel()).rowsById[g];if(!B&&(B=n.getCoreRowModel().rowsById[g],!B))throw new Error;return B},_getDefaultColumnDef:Se(()=>[n.options.defaultColumn],g=>{var h;return g=(h=g)!=null?h:{},{header:B=>{const E=B.header.column.columnDef;return E.accessorKey?E.accessorKey:E.accessorFn?E.id:null},cell:B=>{var E,C;return(E=(C=B.renderValue())==null||C.toString==null?void 0:C.toString())!=null?E:null},...n._features.reduce((B,E)=>Object.assign(B,E.getDefaultColumnDef==null?void 0:E.getDefaultColumnDef()),{}),...g}},Ne(A,"debugColumns")),_getColumnDefs:()=>n.options.columns,getAllColumns:Se(()=>[n._getColumnDefs()],g=>{const h=function(B,E,C){return C===void 0&&(C=0),B.map(m=>{const I=B_A(n,m,C,E),v=m;return I.columns=v.columns?h(v.columns,I,C+1):[],I})};return h(g)},Ne(A,"debugColumns")),getAllFlatColumns:Se(()=>[n.getAllColumns()],g=>g.flatMap(h=>h.getFlatColumns()),Ne(A,"debugColumns")),_getAllFlatColumnsById:Se(()=>[n.getAllFlatColumns()],g=>g.reduce((h,B)=>(h[B.id]=B,h),{}),Ne(A,"debugColumns")),getAllLeafColumns:Se(()=>[n.getAllColumns(),n._getOrderColumnsFn()],(g,h)=>{let B=g.flatMap(E=>E.getLeafColumns());return h(B)},Ne(A,"debugColumns")),getColumn:g=>n._getAllFlatColumnsById()[g]};Object.assign(n,u);for(let g=0;g<n._features.length;g++){const h=n._features[g];h==null||h.createTable==null||h.createTable(n)}return n}function K_A(){return A=>Se(()=>[A.options.data],e=>{const t={rows:[],flatRows:[],rowsById:{}},r=function(n,o,i){o===void 0&&(o=0);const a=[];for(let l=0;l<n.length;l++){const c=C_A(A,A._getRowId(n[l],l,i),n[l],l,o,void 0,i==null?void 0:i.id);if(t.flatRows.push(c),t.rowsById[c.id]=c,a.push(c),A.options.getSubRows){var s;c.originalSubRows=A.options.getSubRows(n[l],l),(s=c.originalSubRows)!=null&&s.length&&(c.subRows=r(c.originalSubRows,o+1,c))}}return a};return t.rows=r(e),t},Ne(A.options,"debugTable","getRowModel",()=>A._autoResetPageIndex()))}function Y_A(A){const e=[],t=r=>{var n;e.push(r),(n=r.subRows)!=null&&n.length&&r.getIsExpanded()&&r.subRows.forEach(t)};return A.rows.forEach(t),{rows:e,flatRows:A.flatRows,rowsById:A.rowsById}}function $_A(A){return e=>Se(()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded],(t,r)=>{if(!r.rows.length)return r;const{pageSize:n,pageIndex:o}=t;let{rows:i,flatRows:a,rowsById:s}=r;const l=n*o,c=l+n;i=i.slice(l,c);let u;e.options.paginateExpandedRows?u={rows:i,flatRows:a,rowsById:s}:u=Y_A({rows:i,flatRows:a,rowsById:s}),u.flatRows=[];const g=h=>{u.flatRows.push(h),h.subRows.length&&h.subRows.forEach(g)};return u.rows.forEach(g),u},Ne(e.options,"debugTable"))}/**
|
|
@@ -412,11 +412,11 @@ ${A.errorObject}`,r=["color: red","color: inherited"]);throw t&&console.log(t,..
|
|
|
412
412
|
*/function IG(A,e){return A?j_A(A)?d.createElement(A,e):A:null}function j_A(A){return q_A(A)||typeof A=="function"||J_A(A)}function q_A(A){return typeof A=="function"&&(()=>{const e=Object.getPrototypeOf(A);return e.prototype&&e.prototype.isReactComponent})()}function J_A(A){return typeof A=="object"&&typeof A.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(A.$$typeof.description)}function z_A(A){const e={state:{},onStateChange:()=>{},renderFallbackValue:null,...A},[t]=d.useState(()=>({current:U_A(e)})),[r,n]=d.useState(()=>t.current.initialState);return t.current.setOptions(o=>({...o,...A,state:{...r,...A.state},onStateChange:i=>{n(i),A.onStateChange==null||A.onStateChange(i)}})),t.current}const W_A={value:Jt},V_A=({children:A})=>{const[e,t]=d.useState(W_A);return Q.jsx(vG,{updateState:t,selectedItems:e.value,children:A})},vG=({updateState:A=$l,idKey:e="id",children:t,selectedItems:r=Jt,registerComponentApi:n=$l})=>{const[o,i]=d.useState(r),a=d.useRef(!1),s=ze((g=Jt)=>{i(g);let h=g.filter(B=>!!r.find(E=>E[e]===B[e]));(!$p(r,h)||!a.current)&&(a.current=!0,A({value:h}))}),l=ze(g=>{A({value:o.filter(h=>g.includes(h[e]))})}),c=ze(()=>{l(Jt)});d.useLayoutEffect(()=>{n({clearSelection:c,setSelectedRowIds:l,refreshSelection:s})},[c,l,n,s]);const u=d.useMemo(()=>({selectedItems:r,setSelectedRowIds:l,refreshSelection:s,idKey:e}),[s,r,l,e]);return Q.jsx(DG.Provider,{value:u,children:t})},DG=_A.createContext(null);function yG(){return d.useContext(DG)}function X_A({items:A=Jt,visibleItems:e=A,rowsSelectable:t,enableMultiRowSelection:r,onSelectionDidChange:n}){const[o,i]=d.useState(-1),[a,s]=d.useState(null),{selectedItems:l,setSelectedRowIds:c,refreshSelection:u,idKey:g}=yG(),h=d.useMemo(()=>e.map(F=>F[g]),[g,e]);d.useEffect(()=>{u(t?A:Jt)},[u,A,t]);const B=Ya(r);d.useEffect(()=>{B&&!r&&l.length>1&&c([l[0][g]])},[r,g,B,l,c]),d.useEffect(()=>{t&&o!==-1&&!h[o]&&h[0]&&i(0)},[o,t,i,h]);const E=ze((F,L={})=>{if(!t)return;const T=h[F],{shiftKey:P,metaKey:G,ctrlKey:H}=L,z=!r||!P&&!G&&!H;let q,O=[...l.map(Y=>Y[g])];if(z)q={from:T,to:T},O=[T];else if(P){let Y,S,J,$;if(a){let AA=h.indexOf(a.from),Z=h.indexOf(a.to),tA=Math.min(AA,Z),nA=Math.max(AA,Z);const sA=h.slice(tA,nA+1);O=O.filter(rA=>!sA.includes(rA)),J=a.from,$=T;let iA=h.indexOf(J),aA=h.indexOf($);Y=Math.min(iA,aA),S=Math.max(iA,aA)}else J=T,$=T,Y=F,S=F;const U=h.slice(Y,S+1);O=OBA(O,U),q={from:J,to:$}}else q={from:T,to:T},G||H?O.includes(T)?O=O.filter(Y=>Y!==T):O.push(T):O=[T];i(F),c(A5(O)),s(q)}),C=ze((F,L)=>{if(!t)return;const T=h.indexOf(F[g]);E(T,L)}),m=ze(F=>{if(t){if(F.key==="ArrowDown"){F.preventDefault();let L=Math.min(e.length-1,o+1);o!==e.length-1&&E(L,F)}if(F.key==="PageDown"){F.preventDefault();const L=Math.min(e.length-1,o+8);E(L,F)}if(F.key==="ArrowUp"){F.preventDefault();let L=Math.max(0,o-1);o>=0&&E(L,F)}if(F.key==="PageUp"){F.preventDefault();const L=Math.max(0,o-8);E(L,F)}}});d.useEffect(()=>{n==null||n(l)},[l,n]);const I=ze(F=>{t&&(!r&&F||c(F?A.map(L=>L[g]):[]))}),v=d.useMemo(()=>{let F={};return l.forEach(L=>{F[L[g]]=!0}),F},[g,l]),y=d.useCallback(()=>l,[l]),x=d.useCallback(()=>l.map(F=>F[g]),[g,l]),b=d.useCallback(()=>{I(!1)},[I]),k=d.useCallback(()=>{I(!0)},[I]),M=d.useCallback(F=>{if(!t)return;let L=Array.isArray(F)?F:[F];L.length>1&&!r&&(L=[L[0]]),c(L)},[r,t,c]),N=d.useMemo(()=>({getSelectedItems:y,getSelectedIds:x,clearSelection:b,selectAll:k,selectId:M}),[b,x,y,k,M]);return{onKeyDown:m,focusedIndex:o,toggleRowIndex:E,toggleRow:C,checkAllRows:I,selectedRowIdMap:v,selectedItems:l,idKey:g,selectionApi:N}}const gc={themeVars:`'{"Input:radius-Checkbox-default": "var(--xmlui-radius-Checkbox-default)", "Input:color-border-Checkbox-default": "var(--xmlui-color-border-Checkbox-default)", "Input:color-bg-Checkbox-default": "var(--xmlui-color-bg-Checkbox-default)", "Input:thickness-outline-Checkbox-default--focus": "var(--xmlui-thickness-outline-Checkbox-default--focus)", "Input:color-outline-Checkbox-default--focus": "var(--xmlui-color-outline-Checkbox-default--focus)", "Input:style-outline-Checkbox-default--focus": "var(--xmlui-style-outline-Checkbox-default--focus)", "Input:offset-outline-Checkbox-default--focus": "var(--xmlui-offset-outline-Checkbox-default--focus)", "Input:color-border-Checkbox-default--hover": "var(--xmlui-color-border-Checkbox-default--hover)", "Input:color-bg-Checkbox--disabled": "var(--xmlui-color-bg-Checkbox--disabled)", "Input:color-border-Checkbox--disabled": "var(--xmlui-color-border-Checkbox--disabled)", "Input:radius-Checkbox-error": "var(--xmlui-radius-Checkbox-error)", "Input:color-border-Checkbox-error": "var(--xmlui-color-border-Checkbox-error)", "Input:color-bg-Checkbox-error": "var(--xmlui-color-bg-Checkbox-error)", "Input:thickness-outline-Checkbox-error--focus": "var(--xmlui-thickness-outline-Checkbox-error--focus)", "Input:color-outline-Checkbox-error--focus": "var(--xmlui-color-outline-Checkbox-error--focus)", "Input:style-outline-Checkbox-error--focus": "var(--xmlui-style-outline-Checkbox-error--focus)", "Input:offset-outline-Checkbox-error--focus": "var(--xmlui-offset-outline-Checkbox-error--focus)", "Input:radius-Checkbox-warning": "var(--xmlui-radius-Checkbox-warning)", "Input:color-border-Checkbox-warning": "var(--xmlui-color-border-Checkbox-warning)", "Input:color-bg-Checkbox-warning": "var(--xmlui-color-bg-Checkbox-warning)", "Input:thickness-outline-Checkbox-warning--focus": "var(--xmlui-thickness-outline-Checkbox-warning--focus)", "Input:color-outline-Checkbox-warning--focus": "var(--xmlui-color-outline-Checkbox-warning--focus)", "Input:style-outline-Checkbox-warning--focus": "var(--xmlui-style-outline-Checkbox-warning--focus)", "Input:offset-outline-Checkbox-warning--focus": "var(--xmlui-offset-outline-Checkbox-warning--focus)", "Input:radius-Checkbox-success": "var(--xmlui-radius-Checkbox-success)", "Input:color-border-Checkbox-success": "var(--xmlui-color-border-Checkbox-success)", "Input:color-bg-Checkbox-success": "var(--xmlui-color-bg-Checkbox-success)", "Input:thickness-outline-Checkbox-success--focus": "var(--xmlui-thickness-outline-Checkbox-success--focus)", "Input:color-outline-Checkbox-success--focus": "var(--xmlui-color-outline-Checkbox-success--focus)", "Input:style-outline-Checkbox-success--focus": "var(--xmlui-style-outline-Checkbox-success--focus)", "Input:offset-outline-Checkbox-success--focus": "var(--xmlui-offset-outline-Checkbox-success--focus)", "color-bg-indicator-Checkbox": "var(--xmlui-color-bg-indicator-Checkbox)", "Input:color-border-checked-Checkbox": "var(--xmlui-color-border-checked-Checkbox)", "Input:color-bg-checked-Checkbox": "var(--xmlui-color-bg-checked-Checkbox)", "Input:color-border-checked-Checkbox-error": "var(--xmlui-color-border-checked-Checkbox-error)", "Input:color-bg-checked-Checkbox-error": "var(--xmlui-color-bg-checked-Checkbox-error)", "Input:color-border-checked-Checkbox-warning": "var(--xmlui-color-border-checked-Checkbox-warning)", "Input:color-bg-checked-Checkbox-warning": "var(--xmlui-color-bg-checked-Checkbox-warning)", "Input:color-border-checked-Checkbox-success": "var(--xmlui-color-border-checked-Checkbox-success)", "Input:color-bg-checked-Checkbox-success": "var(--xmlui-color-bg-checked-Checkbox-success)", "Input:color-border-Switch": "var(--xmlui-color-border-Switch)", "Input:color-bg-Switch": "var(--xmlui-color-bg-Switch)", "Input:color-border-Switch-default--hover": "var(--xmlui-color-border-Switch-default--hover)", "Input:color-bg-Switch--disabled": "var(--xmlui-color-bg-Switch--disabled)", "Input:color-border-Switch--disabled": "var(--xmlui-color-border-Switch--disabled)", "Input:color-border-Switch-error": "var(--xmlui-color-border-Switch-error)", "Input:color-border-Switch-warning": "var(--xmlui-color-border-Switch-warning)", "Input:color-border-Switch-success": "var(--xmlui-color-border-Switch-success)", "color-bg-indicator-Switch": "var(--xmlui-color-bg-indicator-Switch)", "Input:color-border-checked-Switch": "var(--xmlui-color-border-checked-Switch)", "Input:color-bg-checked-Switch": "var(--xmlui-color-bg-checked-Switch)", "Input:color-border-checked-Switch-error": "var(--xmlui-color-border-checked-Switch-error)", "Input:color-bg-checked-Switch-error": "var(--xmlui-color-bg-checked-Switch-error)", "Input:color-border-checked-Switch-warning": "var(--xmlui-color-border-checked-Switch-warning)", "Input:color-bg-checked-Switch-warning": "var(--xmlui-color-bg-checked-Switch-warning)", "Input:color-border-checked-Switch-success": "var(--xmlui-color-border-checked-Switch-success)", "Input:color-bg-checked-Switch-success": "var(--xmlui-color-bg-checked-Switch-success)", "Input:thickness-outline-Switch--focus": "var(--xmlui-thickness-outline-Switch--focus)", "Input:color-outline-Switch--focus": "var(--xmlui-color-outline-Switch--focus)", "Input:style-outline-Switch--focus": "var(--xmlui-style-outline-Switch--focus)", "Input:offset-outline-Switch--focus": "var(--xmlui-offset-outline-Switch--focus)"}'`,resetAppearance:"_resetAppearance_fdujw_13",checkbox:"_checkbox_fdujw_21",error:"_error_fdujw_50",warning:"_warning_fdujw_61",valid:"_valid_fdujw_72",switch:"_switch_fdujw_132"},OB=d.forwardRef(function({id:e,initialValue:t=!1,value:r=!1,enabled:n=!0,style:o,readOnly:i,validationStatus:a="none",updateState:s=ve,onDidChange:l=ve,onFocus:c=ve,onBlur:u=ve,variant:g="checkbox",indeterminate:h=!1,className:B,label:E,labelPosition:C="start",labelWidth:m,labelBreak:I,required:v,registerComponentApi:y},x){const b=_A.useRef(null);d.useEffect(()=>{s({value:t},{initial:!0})},[t,s]);const k=d.useCallback(P=>{var G;((G=b.current)==null?void 0:G.checked)!==P&&(s({value:P}),l(P))},[l,s]),M=d.useCallback(P=>{i||(s({value:P.target.checked}),l(P.target.checked))},[l,i,s]),N=d.useCallback(()=>{c==null||c()},[c]),F=d.useCallback(()=>{u==null||u()},[u]);d.useEffect(()=>{typeof h=="boolean"&&b.current&&(b.current.indeterminate=h)},[h]);const L=d.useCallback(()=>{var P;(P=b.current)==null||P.focus()},[]),T=ze(P=>{k(P)});return d.useEffect(()=>{y==null||y({focus:L,setValue:T})},[L,y,T]),Q.jsx(rs,{ref:x,id:e,label:E,style:o,labelPosition:C,labelWidth:m,labelBreak:I,required:v,enabled:n,shrinkToLabel:!0,labelStyle:{pointerEvents:i?"none":void 0},children:Q.jsx("input",{ref:b,type:"checkbox",role:g,checked:r,disabled:!n,required:v,readOnly:i,"aria-readonly":i,"aria-checked":r,onChange:M,onFocus:N,onBlur:F,className:KA(gc.resetAppearance,B,{[gc.checkbox]:g==="checkbox",[gc.switch]:g==="switch",[gc.error]:a==="error",[gc.warning]:a==="warning",[gc.valid]:a==="valid"})})})});function bd(A,e,t){let r=t.initialDeps??[],n;return()=>{var o,i,a,s;let l;t.key&&((o=t.debug)!=null&&o.call(t))&&(l=Date.now());const c=A();if(!(c.length!==r.length||c.some((h,B)=>r[B]!==h)))return n;r=c;let g;if(t.key&&((i=t.debug)!=null&&i.call(t))&&(g=Date.now()),n=e(...c),t.key&&((a=t.debug)!=null&&a.call(t))){const h=Math.round((Date.now()-l)*100)/100,B=Math.round((Date.now()-g)*100)/100,E=B/16,C=(m,I)=>{for(m=String(m);m.length<I;)m=" "+m;return m};console.info(`%c⏱ ${C(B,5)} /${C(h,5)} ms`,`
|
|
413
413
|
font-size: .6rem;
|
|
414
414
|
font-weight: bold;
|
|
415
|
-
color: hsl(${Math.max(0,Math.min(120-120*E,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(s=t==null?void 0:t.onChange)==null||s.call(t,n),n}}function E4(A,e){if(A===void 0)throw new Error("Unexpected undefined");return A}const Z_A=(A,e)=>Math.abs(A-e)<1,A3A=(A,e,t)=>{let r;return function(...n){A.clearTimeout(r),r=A.setTimeout(()=>e.apply(this,n),t)}};var HB={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_Pdf:"false",VITE_USED_COMPONENTS_Chart:"false",VITE_USER_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_XMLUI_VERSION:"0.7.18 (built 1/31/2025)"};const e3A=A=>A,bG=A=>{const e=Math.max(A.startIndex-A.overscan,0),t=Math.min(A.endIndex+A.overscan,A.count-1),r=[];for(let n=e;n<=t;n++)r.push(n);return r},t3A=(A,e)=>{const t=A.scrollElement;if(!t)return;const r=A.targetWindow;if(!r)return;const n=i=>{const{width:a,height:s}=i;e({width:Math.round(a),height:Math.round(s)})};if(n(t.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const o=new r.ResizeObserver(i=>{const a=i[0];if(a!=null&&a.borderBoxSize){const s=a.borderBoxSize[0];if(s){n({width:s.inlineSize,height:s.blockSize});return}}n(t.getBoundingClientRect())});return o.observe(t,{box:"border-box"}),()=>{o.unobserve(t)}},xG={passive:!0},r3A=typeof window>"u"?!0:"onscrollend"in window,kG=(A,e)=>{const t=A.scrollElement;if(!t)return;const r=A.targetWindow;if(!r)return;let n=0;const o=r3A?()=>{}:A3A(r,()=>{e(n,!1)},A.options.isScrollingResetDelay),i=l=>()=>{const{horizontal:c,isRtl:u}=A.options;n=c?t.scrollLeft*(u&&-1||1):t.scrollTop,o(),e(n,l)},a=i(!0),s=i(!1);return s(),t.addEventListener("scroll",a,xG),t.addEventListener("scrollend",s,xG),()=>{t.removeEventListener("scroll",a),t.removeEventListener("scrollend",s)}},n3A=(A,e,t)=>{if(e!=null&&e.borderBoxSize){const r=e.borderBoxSize[0];if(r)return Math.round(r[t.options.horizontal?"inlineSize":"blockSize"])}return Math.round(A.getBoundingClientRect()[t.options.horizontal?"width":"height"])},o3A=(A,{adjustments:e=0,behavior:t},r)=>{var n,o;const i=A+e;(o=(n=r.scrollElement)==null?void 0:n.scrollTo)==null||o.call(n,{[r.options.horizontal?"left":"top"]:i,behavior:t})};class i3A{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null;const r=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(n=>{n.forEach(o=>{this._measureElement(o.target,o)})}));return{disconnect:()=>{var n;(n=r())==null||n.disconnect(),t=null},observe:n=>{var o;return(o=r())==null?void 0:o.observe(n,{box:"border-box"})},unobserve:n=>{var o;return(o=r())==null?void 0:o.unobserve(n)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([r,n])=>{typeof n>"u"&&delete t[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:e3A,rangeExtractor:bG,onChange:()=>{},measureElement:n3A,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,...t}},this.notify=t=>{var r,n;(n=(r=this.options).onChange)==null||n.call(r,this,t)},this.maybeNotify=bd(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:HB.NODE_ENV!=="production",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this.elementsCache.forEach(n=>{this.observer.observe(n)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,n=>{this.scrollRect=n,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(n,o)=>{this.scrollAdjustments=0,this.scrollDirection=o?this.getScrollOffset()<n?"forward":"backward":null,this.scrollOffset=n,this.isScrolling=o,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(t,r)=>{const n=new Map,o=new Map;for(let i=r-1;i>=0;i--){const a=t[i];if(n.has(a.lane))continue;const s=o.get(a.lane);if(s==null||a.end>s.end?o.set(a.lane,a):a.end<s.end&&n.set(a.lane,!0),n.size===this.options.lanes)break}return o.size===this.options.lanes?Array.from(o.values()).sort((i,a)=>i.end===a.end?i.index-a.index:i.end-a.end)[0]:void 0},this.getMeasurementOptions=bd(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,r,n,o,i)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:r,scrollMargin:n,getItemKey:o,enabled:i}),{key:!1}),this.getMeasurements=bd(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:r,scrollMargin:n,getItemKey:o,enabled:i},a)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const s=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const l=this.measurementsCache.slice(0,s);for(let c=s;c<t;c++){const u=o(c),g=this.options.lanes===1?l[c-1]:this.getFurthestMeasurement(l,c),h=g?g.end+this.options.gap:r+n,B=a.get(u),E=typeof B=="number"?B:this.options.estimateSize(c),C=h+E,m=g?g.lane:c%this.options.lanes;l[c]={index:c,start:h,size:E,end:C,key:u,lane:m}}return this.measurementsCache=l,l},{key:HB.NODE_ENV!=="production",debug:()=>this.options.debug}),this.calculateRange=bd(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(t,r,n)=>this.range=t.length>0&&r>0?a3A({measurements:t,outerSize:r,scrollOffset:n}):null,{key:HB.NODE_ENV!=="production",debug:()=>this.options.debug}),this.getIndexes=bd(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(t,r,n,o)=>r===null?[]:t({startIndex:r.startIndex,endIndex:r.endIndex,overscan:n,count:o}),{key:HB.NODE_ENV!=="production",debug:()=>this.options.debug}),this.indexFromElement=t=>{const r=this.options.indexAttribute,n=t.getAttribute(r);return n?parseInt(n,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(t,r)=>{const n=this.indexFromElement(t),o=this.measurementsCache[n];if(!o)return;const i=o.key,a=this.elementsCache.get(i);a!==t&&(a&&this.observer.unobserve(a),this.observer.observe(t),this.elementsCache.set(i,t)),t.isConnected&&this.resizeItem(n,this.options.measureElement(t,r,this))},this.resizeItem=(t,r)=>{const n=this.measurementsCache[t];if(!n)return;const o=this.itemSizeCache.get(n.key)??n.size,i=r-o;i!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(n,i,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,r)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((r,n)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(n))});return}this._measureElement(t,void 0)},this.getVirtualItems=bd(()=>[this.getIndexes(),this.getMeasurements()],(t,r)=>{const n=[];for(let o=0,i=t.length;o<i;o++){const a=t[o],s=r[a];n.push(s)}return n},{key:HB.NODE_ENV!=="production",debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const r=this.getMeasurements();if(r.length!==0)return E4(r[_G(0,r.length-1,n=>E4(r[n]).start,t)])},this.getOffsetForAlignment=(t,r)=>{const n=this.getSize(),o=this.getScrollOffset();r==="auto"&&(t<=o?r="start":t>=o+n?r="end":r="start"),r==="start"?t=t:r==="end"?t=t-n:r==="center"&&(t=t-n/2);const i=this.options.horizontal?"scrollWidth":"scrollHeight",s=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[i]:this.scrollElement[i]:0)-n;return Math.max(Math.min(s,t),0)},this.getOffsetForIndex=(t,r="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const n=this.measurementsCache[t];if(!n)return;const o=this.getSize(),i=this.getScrollOffset();if(r==="auto")if(n.end>=i+o-this.options.scrollPaddingEnd)r="end";else if(n.start<=i+this.options.scrollPaddingStart)r="start";else return[i,r];const a=r==="end"?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,r),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(t,{align:r="start",behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,r),{adjustments:void 0,behavior:n})},this.scrollToIndex=(t,{align:r="auto",behavior:n}={})=>{t=Math.max(0,Math.min(t,this.options.count-1)),this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const o=this.getOffsetForIndex(t,r);if(!o)return;const[i,a]=o;this._scrollToOffset(i,{adjustments:void 0,behavior:n}),n!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(t))){const[l]=E4(this.getOffsetForIndex(t,a));Z_A(l,this.getScrollOffset())||this.scrollToIndex(t,{align:a,behavior:n})}else this.scrollToIndex(t,{align:a,behavior:n})}))},this.scrollBy=(t,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var t;const r=this.getMeasurements();let n;return r.length===0?n=this.options.paddingStart:n=this.options.lanes===1?((t=r[r.length-1])==null?void 0:t.end)??0:Math.max(...r.slice(-this.options.lanes).map(o=>o.end)),Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:r,behavior:n})=>{this.options.scrollToFn(t,{behavior:n,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}const _G=(A,e,t,r)=>{for(;A<=e;){const n=(A+e)/2|0,o=t(n);if(o<r)A=n+1;else if(o>r)e=n-1;else return n}return A>0?A-1:0};function a3A({measurements:A,outerSize:e,scrollOffset:t}){const r=A.length-1,o=_G(0,r,a=>A[a].start,t);let i=o;for(;i<r&&A[i].end<t+e;)i++;return{startIndex:o,endIndex:i}}const s3A=typeof document<"u"?d.useLayoutEffect:d.useEffect;function l3A(A){const e=d.useReducer(()=>({}),{})[1],t={...A,onChange:(n,o)=>{var i;o?Dr.flushSync(e):e(),(i=A.onChange)==null||i.call(A,n,o)}},[r]=d.useState(()=>new i3A(t));return r.setOptions(t),d.useEffect(()=>r._didMount(),[]),s3A(()=>r._willUpdate()),r}function MG(A){return l3A({observeElementRect:t3A,observeElementOffset:kG,scrollToFn:o3A,...A})}function c3A(A){return!1}const u3A=42,f3A=[10],SG=A=>{const e=A.getIsPinned();return{left:e==="left"?`${A.getStart("left")}px`:void 0,right:e==="right"?`${A.getAfter("right")}px`:void 0,opacity:e?.95:void 0,position:e?"sticky":"relative",backgroundColor:e?"inherit":void 0,zIndex:e?1:void 0}},g3A=d.forwardRef(({data:A=Jt,columns:e=Jt,isPaginated:t=!1,loading:r=!1,headerHeight:n,rowsSelectable:o=!1,enableMultiRowSelection:i=!0,pageSizes:a=f3A,rowDisabledPredicate:s=c3A,sortBy:l,sortingDirection:c="ascending",iconSortAsc:u,iconSortDesc:g,iconNoSort:h,sortingDidChange:B,willSort:E,style:C,noDataRenderer:m,autoFocus:I=!1,hideHeader:v=!1,hideNoDataView:y=!1,alwaysShowSelectionHeader:x=!1,registerComponentApi:b,onSelectionDidChange:k},M)=>{var Ke,Ct,kt,Ce;const{getThemeVar:N}=nr(),F=Array.isArray(A)?A:Jt,L=d.useRef(null),T=M?Zr(L,M):L,P=d.useRef(null),G=d.useRef(null),H=l!==void 0,z=d.useMemo(()=>e||(F.length?Object.keys(F[0]).map(YA=>({header:YA,accessorKey:YA})):Jt),[e,F]);d.useEffect(()=>{I&&L.current.focus()},[I]);const[q,O]=d.useState(Jt),{toggleRow:Y,checkAllRows:S,focusedIndex:J,onKeyDown:$,selectedRowIdMap:U,idKey:AA,selectionApi:Z}=X_A({items:F,visibleItems:q,rowsSelectable:o,enableMultiRowSelection:i,onSelectionDidChange:k}),tA=d.useMemo(()=>F.map((YA,PA)=>({...YA,order:PA+1})),[F]),[nA,sA]=d.useState(l),[iA,aA]=d.useState(c);d.useLayoutEffect(()=>{sA(l)},[l]),d.useLayoutEffect(()=>{aA(c)},[c]);const rA=d.useMemo(()=>!nA||H?tA:WF(tA,nA,iA==="ascending"?"asc":"desc"),[nA,iA,tA,H]),X=d.useCallback(async YA=>{let PA="ascending",oe=YA;nA===YA&&(iA==="ascending"?PA="descending":oe=void 0),await(E==null?void 0:E(oe,PA))!==!1&&(aA(PA),sA(oe),B==null||B(oe,PA))},[nA,E,B,iA]),cA=d.useMemo(()=>z.map((YA,PA)=>{const{width:oe,starSizedWidth:Te}=Lr(YA.width,!0,"width"),{width:Ut}=Lr(YA.minWidth,!1,"minWidth"),{width:Xe}=Lr(YA.maxWidth,!1,"maxWidth");return{...YA,header:YA.header??YA.accessorKey??" ",id:"col_"+PA,size:oe,minSize:Ut,maxSize:Xe,enableResizing:YA.canResize,enableSorting:YA.canSort,enablePinning:YA.pinTo!==void 0,meta:{starSizedWidth:Te,pinTo:YA.pinTo,style:YA.style,accessorKey:YA.accessorKey,cellRenderer:YA.cellRenderer}};function Lr(Fr,Zn,Kt){let wn,Nl;const Fn=g2(Fr)?N(Fr):Fr;if(typeof Fn=="number")Nl=Fn;else if(typeof Fn=="string"){const lg=Fn.match(/^\s*\*\s*$/);if(Zn&&lg)wn="1*";else{const xs=Fn.match(/^\s*(\d+)\s*\*\s*$/);if(Zn&&xs)wn=xs[1]+"*";else{const Xh=Fn.match(/^\s*(\d+)\s*(px)?\s*$/);if(Xh)Nl=Number(Xh[1]);else throw new Error(`Invalid TableColumnDef '${Kt}' value: ${Fn}`)}}}return Nl===void 0&&wn===void 0&&Zn&&(wn="1*"),{width:Nl,starSizedWidth:wn}}}),[N,z]),hA=d.useMemo(()=>o?[{id:"select",size:u3A,enableResizing:!1,enablePinning:!0,meta:{pinTo:"left"},header:({table:PA})=>i?Q.jsx(OB,{className:KA(xt.checkBoxWrapper,{[xt.showInHeader]:x}),value:PA.getIsAllRowsSelected(),indeterminate:PA.getIsSomeRowsSelected(),onDidChange:oe=>{S(oe)}}):null,cell:({row:PA})=>Q.jsx(OB,{className:xt.checkBoxWrapper,value:PA.getIsSelected(),indeterminate:PA.getIsSomeSelected(),onDidChange:()=>{Y(PA.original,{metaKey:!0})}})},...cA]:cA,[o,cA,i,x,S,Y]),[EA,IA]=d.useState({pageSize:t?a[0]:Number.MAX_VALUE,pageIndex:0}),DA=Ya(t);d.useEffect(()=>{!DA&&t&&IA(YA=>({...YA,pageSize:a[0]})),DA&&!t&&IA(YA=>({pageIndex:0,pageSize:Number.MAX_VALUE}))},[t,a,DA]);const[SA,JA]=d.useState({}),jA=d.useMemo(()=>{const YA=[],PA=[];return hA.forEach(oe=>{var Te,Ut;((Te=oe.meta)==null?void 0:Te.pinTo)==="right"&&PA.push(oe.id),((Ut=oe.meta)==null?void 0:Ut.pinTo)==="left"&&YA.push(oe.id)}),{left:YA,right:PA}},[hA]),$A=z_A({columns:hA,data:rA,getCoreRowModel:K_A(),getPaginationRowModel:t?$_A():void 0,enableRowSelection:o,enableMultiRowSelection:i,columnResizeMode:"onChange",getRowId:d.useCallback(YA=>YA[AA]+"",[AA]),state:d.useMemo(()=>({pagination:EA,rowSelection:U,columnSizing:SA,columnPinning:jA}),[jA,SA,EA,U]),onColumnSizingChange:JA,onPaginationChange:IA}),VA=$A.getRowModel().rows;d.useEffect(()=>{O(VA.map(YA=>YA.original))},[VA]);const pe=d.useContext(ns),bA=pe&&(C==null?void 0:C.maxHeight)===void 0&&(C==null?void 0:C.height)===void 0&&(C==null?void 0:C.flex)===void 0,qA=d.useCallback((YA,PA)=>kG(YA,(oe,Te)=>{var Xe;const Ut=bA&&((Xe=L.current)==null?void 0:Xe.offsetTop)||0;PA(oe-Ut,Te)}),[bA]),dA=MG({count:VA.length,getScrollElement:d.useCallback(()=>bA&&(pe!=null&&pe.current)?pe==null?void 0:pe.current:L.current,[pe,bA]),observeElementOffset:qA,estimateSize:d.useCallback(()=>G.current||30,[]),overscan:5}),wA=dA.getVirtualItems().length>0&&((Ct=(Ke=dA.getVirtualItems())==null?void 0:Ke[0])==null?void 0:Ct.start)||0,HA=dA.getVirtualItems().length>0?dA.getTotalSize()-(((Ce=(kt=dA.getVirtualItems())==null?void 0:kt[dA.getVirtualItems().length-1])==null?void 0:Ce.end)||0):0,Ae=F.length!==0,ce=d.useRef({}),te=d.useCallback(YA=>{ce.current[YA]=!0},[]),Pe=ze(()=>{if(!P.current)return;let YA=P.current.clientWidth-1;const PA={},oe=[],Te={};$A.getAllColumns().forEach(Xe=>{var Ln,Lr;if(Xe.columnDef.size!==void 0||ce.current[Xe.id])YA-=SA[Xe.id]||Xe.columnDef.size||0;else{oe.push(Xe);let Fr;(Ln=Xe.columnDef.meta)!=null&&Ln.starSizedWidth?Fr=Number((Lr=Xe.columnDef.meta)==null?void 0:Lr.starSizedWidth.replace("*","").trim())||1:Fr=1,Te[Xe.id]=Fr}});const Ut=Object.values(Te).reduce((Xe,Ln)=>Xe+Ln,0);oe.forEach(Xe=>{PA[Xe.id]=Math.floor(YA*(Te[Xe.id]/Ut))}),Dr.flushSync(()=>{JA(Xe=>({...Xe,...PA}))})});return aQ(P,Pe),Aa(()=>{queueMicrotask(()=>{Pe()})},[Pe,z]),Aa(()=>{b(Z)},[b,Z]),Q.jsxs("div",{className:KA(xt.wrapper,{[xt.noScroll]:bA}),tabIndex:-1,onKeyDown:$,ref:T,style:C,children:[Q.jsxs("table",{className:xt.table,ref:P,style:{borderRight:"1px solid transparent"},children:[!v&&Q.jsx("thead",{style:{height:n},className:xt.headerWrapper,children:$A.getHeaderGroups().map((YA,PA)=>Q.jsx("tr",{className:KA(xt.headerRow,{[xt.allSelected]:$A.getIsAllRowsSelected()}),children:YA.headers.map((oe,Te)=>{var Lr,Fr;const{width:Ut,...Xe}=((Lr=oe.column.columnDef.meta)==null?void 0:Lr.style)||{},Ln=oe.getSize();return Q.jsxs("th",{className:xt.columnCell,colSpan:oe.colSpan,style:{position:"relative",width:Ln,...SG(oe.column)},children:[Q.jsx(d3A,{hasSorting:oe.column.columnDef.enableSorting,updateSorting:()=>{var Zn;return X((Zn=oe.column.columnDef.meta)==null?void 0:Zn.accessorKey)},children:Q.jsxs("div",{className:xt.headerContent,style:Xe,children:[IG(oe.column.columnDef.header,oe.getContext()),Q.jsx("span",{style:{display:"inline-flex",maxWidth:16},children:oe.column.columnDef.enableSorting&&Q.jsx(h3A,{iconSortAsc:u,iconSortDesc:g,iconNoSort:h,direction:((Fr=oe.column.columnDef.meta)==null?void 0:Fr.accessorKey)===nA?iA:void 0})})]})}),oe.column.getCanResize()&&Q.jsx("div",{onDoubleClick:()=>{ce.current[oe.column.id]=!1,oe.column.columnDef.size!==void 0?oe.column.resetSize():Pe()},onMouseDown:Zn=>{te(oe.column.id),oe.getResizeHandler()(Zn)},onTouchStart:Zn=>{te(oe.column.id),oe.getResizeHandler()(Zn)},className:KA(xt.resizer,{[xt.isResizing]:oe.column.getIsResizing()})})]},`${oe.id}-${Te}`)})},`${YA.id}-${PA}`))}),Ae&&Q.jsxs("tbody",{className:xt.tableBody,children:[wA>0&&Q.jsx("tr",{children:Q.jsx("td",{style:{height:`${wA}px`}})}),dA.getVirtualItems().map(YA=>{const PA=YA.index,oe=VA[PA];return Q.jsx("tr",{"data-index":PA,className:KA(xt.row,{[xt.selected]:oe.getIsSelected(),[xt.focused]:J===PA,[xt.disabled]:s(oe.original)}),ref:Te=>{Te&&G.current===null&&(G.current=Math.round(Te.getBoundingClientRect().height)),dA.measureElement(Te)},onClick:Te=>{Te.defaultPrevented||Te.target.tagName.toLowerCase()==="input"||Y(oe.original,Te)},children:oe.getVisibleCells().map((Te,Ut)=>{var Lr,Fr;const Xe=(Fr=(Lr=Te.column.columnDef)==null?void 0:Lr.meta)==null?void 0:Fr.cellRenderer,Ln=Te.column.getSize();return Q.jsx("td",{className:xt.cell,style:{width:Ln,...SG(Te.column)},children:Xe?Xe(Te.row.original):IG(Te.column.columnDef.cell,Te.getContext())},`${Te.id}-${Ut}`)})},`${oe.id}-${PA}`)}),HA>0&&Q.jsx("tr",{children:Q.jsx("td",{style:{height:`${HA}px`}})})]})]}),r&&!Ae&&Q.jsx("div",{className:xt.loadingWrapper,children:Q.jsx(iw,{})}),!y&&!r&&!Ae&&(m?m():Q.jsx("div",{className:xt.noRows,children:"No data available"})),t&&Ae&&VA.length>0&&EA&&Q.jsxs("div",{className:xt.pagination,children:[Q.jsx("div",{style:{flex:1},children:Q.jsxs("span",{className:xt.paginationLabel,children:["Showing ",VA[0].original.order," to ",VA[VA.length-1].original.order," of"," ",F.length," entries"]})}),a.length>1&&Q.jsxs("div",{children:[Q.jsx("span",{className:xt.paginationLabel,children:"Rows per page"}),Q.jsx("select",{className:xt.paginationSelect,value:EA.pageSize,onChange:YA=>{$A.setPageSize(Number(YA.target.value))},children:a.map(YA=>Q.jsx("option",{value:YA,children:YA},YA))})]}),Q.jsxs("div",{className:xt.paginationButtons,children:[Q.jsx(or,{onClick:()=>$A.setPageIndex(0),disabled:!$A.getCanPreviousPage(),type:"button",variant:"ghost",children:Q.jsx(kbA,{})}),Q.jsx(or,{onClick:()=>$A.previousPage(),disabled:!$A.getCanPreviousPage(),type:"button",variant:"ghost",children:Q.jsx(m7,{})}),Q.jsx(or,{onClick:()=>$A.nextPage(),disabled:!$A.getCanNextPage(),type:"button",variant:"ghost",children:Q.jsx(Q7,{})}),Q.jsx(or,{onClick:()=>$A.setPageIndex($A.getPageCount()-1),disabled:!$A.getCanNextPage(),type:"button",variant:"ghost",children:Q.jsx(_bA,{})})]})]})]})});function d3A({hasSorting:A,updateSorting:e,children:t}){return A?Q.jsx("button",{className:xt.clickableHeader,onClick:e,children:t}):Q.jsx(Q.Fragment,{children:t})}function h3A({direction:A,iconSortAsc:e="sortasc:Table",iconSortDesc:t="sortdesc:Table",iconNoSort:r="nosort:Table"}){return A==="ascending"?Q.jsx(be,{name:e,fallback:"sortasc",size:"12"}):A==="descending"?Q.jsx(be,{name:t,fallback:"sortdesc",size:"12"}):r!=="-"?Q.jsx(be,{name:r,fallback:"nosort",size:"12"}):Q.jsx(be,{name:r,size:"12"})}const C4=d.createContext({registerColumn:(A,e)=>{},unRegisterColumn:A=>{}});function p3A(){return d.useContext(C4)}const Qe="Table",B3A=kA({description:`\`${Qe}\` is a component that displays cells organized into rows and columns. The \`${Qe}\` component is virtualized so it only renders visible cells.`,props:{items:j("You can use `items` as an alias for the `data` property. When you bind the table to a data source (e.g. an API endpoint), the `data` acts as the property that accepts a URL to fetch information from an API. When both `items` and `data` are used, `items` has priority."),data:j("The component receives data via this property. The `data` property is a list of items that the `Table` can display."),isPaginated:j(`This property adds pagination controls to the \`${Qe}\`.`),loading:j("This boolean property indicates if the component is fetching (or processing) data. This property is useful when data is loaded conditionally or receiving it takes some time."),headerHeight:j("This optional property is used to specify the height of the table header."),rowsSelectable:j("Indicates whether the rows are selectable (`true`) or not (`false`)."),pageSizes:j("Describes how big a page should be for pagination."),rowDisabledPredicate:j("This property defines a predicate function with a return value that determines if the row should be disabled. The function retrieves the item to display and should return a Boolean-like value."),noDataTemplate:zt("A property to customize what to display if the table does not contain any data."),sortBy:j("This property is used to determine which data attributes to sort by."),sortDirection:j("This property determines the sort order to be `ascending` or `descending`. This property only works if the [`sortBy`](#sortby) property is also set."),autoFocus:Fo(),hideHeader:j("Set the header visibility using this property. Set it to `true` to hide the header."),iconNoSort:j(`Allows the customization of the icon displayed in the ${Qe} column header when when sorting is enabled and sorting is not done according to the column.`),iconSortAsc:j(`Allows the customization of the icon displayed in the ${Qe} column header when sorting is enabled, sorting is done according to the column, and the column is sorted in ascending order.`),iconSortDesc:j(`Allows the customization of the icon displayed in the ${Qe} column header when sorting is enabled, sorting is done according to the column, and the column is sorted in descending order.`),enableMultiRowSelection:j("This boolean property indicates whether you can select multiple rows in the table. This property only has an effect when the rowsSelectable property is set. Setting it to `false` limits selection to a single row."),alwaysShowSelectionHeader:j("This property indicates when the row selection header is displayed. When the value is `true,` the selection header is always visible. Otherwise, it is displayed only when hovered.",null,"boolean",!1)},events:{sortingDidChange:j("This event is fired when the table data sorting has changed. It has two arguments: the column's name and the sort direction. When the column name is empty, the table displays the data list as it received it."),willSort:j("This event is fired before the table data is sorted. It has two arguments: the column's name and the sort direction. When the method returns a literal `false` value (and not any other falsy one), the method indicates that the sorting should be aborted."),selectionDidChange:j("This event is triggered when the table's current selection (the rows selected) changes. Its parameter is an array of the selected table row items. ")},apis:{clearSelection:j("This method clears the list of currently selected table rows."),getSelectedItems:j("This method returns the list of currently selected table rows items."),getSelectedIds:j("This method returns the list of currently selected table rows IDs."),selectAll:j("This method selects all the rows in the table. This method has no effect if the rowsSelectable property is set to `false`."),selectId:j("This method selects the row with the specified ID. This method has no effect if the `rowsSelectable` property is set to `false`. The method argument can be a single id or an array of them.")},themeVars:ne(xt.themeVars),defaultThemeVars:{[`padding-horizontal-heading-${Qe}`]:"$space-2",[`padding-vertical-heading-${Qe}`]:"$space-2",[`padding-heading-${Qe}`]:`$padding-vertical-heading-${Qe} $padding-horizontal-heading-${Qe}`,[`padding-horizontal-cell-${Qe}`]:"$space-2",[`padding-horizontal-cell-first-${Qe}`]:"$space-5",[`padding-horizontal-cell-last-${Qe}`]:"$space-5",[`padding-vertical-cell-${Qe}`]:"$space-2",[`padding-cell-${Qe}`]:`$padding-vertical-cell-${Qe} $padding-horizontal-cell-${Qe}`,[`thickness-border-cell-${Qe}`]:"1px",[`style-border-cell-${Qe}`]:"solid",[`border-cell-${Qe}`]:`$thickness-border-cell-${Qe} $style-border-cell-${Qe} $color-border-cell-${Qe}`,[`thickness-outline-heading-${Qe}--focus`]:"$thickness-outline--focus",[`style-outline-heading-${Qe}--focus`]:"$style-outline--focus",[`offset-outline-heading-${Qe}--focus`]:"$offset-outline--focus",[`font-size-heading-${Qe}`]:"$font-size-tiny",[`font-weight-heading-${Qe}`]:"$font-weight-bold",[`transform-text-heading-${Qe}`]:"uppercase",[`font-size-row-${Qe}`]:"$font-size-small",[`color-bg-${Qe}`]:"$color-bg",[`color-bg-row-${Qe}`]:"inherit",[`color-border-cell-${Qe}`]:"$color-border",[`color-bg-selected-${Qe}--hover`]:`$color-bg-row-${Qe}--hover`,[`color-bg-pagination-${Qe}`]:`$color-bg-${Qe}`,[`color-outline-heading-${Qe}--focus`]:"$color-outline--focus",[`color-text-pagination-${Qe}`]:"$color-secondary",light:{[`color-bg-row-${Qe}--hover`]:"$color-primary-50",[`color-bg-selected-${Qe}`]:"$color-primary-100",[`color-bg-heading-${Qe}--hover`]:"$color-surface-200",[`color-bg-heading-${Qe}--active`]:"$color-surface-300",[`color-bg-heading-${Qe}`]:"$color-surface-100",[`color-text-heading-${Qe}`]:"$color-surface-500"},dark:{[`color-bg-row-${Qe}--hover`]:"$color-primary-900",[`color-bg-selected-${Qe}`]:"$color-primary-800",[`color-bg-heading-${Qe}--hover`]:"$color-surface-800",[`color-bg-heading-${Qe}`]:"$color-surface-950",[`color-bg-heading-${Qe}--active`]:"$color-surface-700"}}}),E3A=({extractValue:A,node:e,renderChild:t,lookupEventHandler:r,lookupSyncCallback:n,layoutCss:o,registerComponentApi:i})=>{var y,x,b,k,M,N;const a=A(e.props.items)||A(e.props.data),[s,l]=d.useState(Jt),[c,u]=d.useState(qe),g=d.useRef([]),[h,B]=d.useState(0),E=d.useMemo(()=>({registerColumn:(F,L)=>{l(No(T=>{T.findIndex(G=>G===L)<0&&T.push(L)})),u(No(T=>{T[L]=F}))},unRegisterColumn:F=>{l(No(L=>L.filter(T=>T!==F))),u(No(L=>{delete L[F]}))}}),[]),C=d.useMemo(()=>({registerColumn:(F,L)=>{g.current.find(T=>T===L)||(B(T=>T+1),g.current.push(L))},unRegisterColumn:F=>{g.current.find(L=>L===F)&&(g.current=g.current.filter(L=>L!==F),B(L=>L+1))}}),[]),m=d.useMemo(()=>s.map(F=>c[F]),[s,c]),I=yG(),v=Q.jsxs(Q.Fragment,{children:[Q.jsx(C4.Provider,{value:E,children:t(e.children)},h),Q.jsx(C4.Provider,{value:C,children:t(e.children)}),Q.jsx(g3A,{data:a,columns:m,pageSizes:A(e.props.pageSizes),rowsSelectable:A.asOptionalBoolean(e.props.rowsSelectable),registerComponentApi:i,noDataRenderer:e.props.noDataTemplate&&(()=>t(e.props.noDataTemplate)),hideNoDataView:e.props.noDataTemplate===null||e.props.noDataTemplate==="",loading:A.asOptionalBoolean(e.props.loading),isPaginated:A.asOptionalBoolean((y=e.props)==null?void 0:y.isPaginated),headerHeight:A.asSize(e.props.headerHeight),rowDisabledPredicate:n(e.props.rowDisabledPredicate),sortBy:A((x=e.props)==null?void 0:x.sortBy),sortingDirection:A((b=e.props)==null?void 0:b.sortDirection),iconSortAsc:A.asOptionalString((k=e.props)==null?void 0:k.iconSortAsc),iconSortDesc:A.asOptionalString((M=e.props)==null?void 0:M.iconSortDesc),iconNoSort:A.asOptionalString((N=e.props)==null?void 0:N.iconNoSort),sortingDidChange:r("sortingDidChange"),onSelectionDidChange:r("selectionDidChange"),willSort:r("willSort"),style:o,uid:e.uid,autoFocus:A.asOptionalBoolean(e.props.autoFocus),hideHeader:A.asOptionalBoolean(e.props.hideHeader),enableMultiRowSelection:A.asOptionalBoolean(e.props.enableMultiRowSelection),alwaysShowSelectionHeader:A.asOptionalBoolean(e.props.alwaysShowSelectionHeader)})]});return I===null?Q.jsx(V_A,{children:v}):v},C3A=RA(Qe,B3A,({extractValue:A,node:e,renderChild:t,lookupEventHandler:r,lookupSyncCallback:n,layoutCss:o,registerComponentApi:i})=>Q.jsx(E3A,{node:e,extractValue:A,lookupEventHandler:r,lookupSyncCallback:n,layoutCss:o,renderChild:t,registerComponentApi:i})),ww={themeVars:`'{"color-bg-StickyBox": "var(--xmlui-color-bg-StickyBox)"}'`,wrapper:"_wrapper_1qgtv_13",top:"_top_1qgtv_18",bottom:"_bottom_1qgtv_21"};function m3A({children:A,uid:e,layout:t,to:r="top"}){return Q.jsx("div",{className:KA(ww.wrapper,{[ww.top]:r==="top",[ww.bottom]:r==="bottom"}),style:t,children:A})}const m4="StickyBox",Q3A=kA({status:"experimental",description:`The \`${m4}\` is a component that "sticks" or remains fixed at the top or bottom position on the screen as the user scrolls.`,props:{to:j("This property determines whether the StickyBox should be anchored to the `top` or `bottom`.")},themeVars:ne(ww.themeVars),defaultThemeVars:{[`color-bg-${m4}`]:"$color-bg"}}),w3A=RA(m4,Q3A,({node:A,renderChild:e,extractValue:t,layoutCss:r})=>{var n;return Q.jsx(m3A,{uid:A.uid,layout:r,to:t((n=A.props)==null?void 0:n.to),children:e(A.children)})}),Q4={themeVars:`'{"color-bg-Badge": "var(--xmlui-color-bg-Badge)", "radius-Badge": "var(--xmlui-radius-Badge)", "color-text-Badge": "var(--xmlui-color-text-Badge)", "font-size-Badge": "var(--xmlui-font-size-Badge)", "font-size-Badge-pill": "var(--xmlui-font-size-Badge-pill)", "font-weight-Badge": "var(--xmlui-font-weight-Badge)", "font-weight-Badge-pill": "var(--xmlui-font-weight-Badge-pill)", "padding-horizontal-Badge": "var(--xmlui-padding-horizontal-Badge)", "padding-vertical-Badge": "var(--xmlui-padding-vertical-Badge)", "padding-Badge": "var(--xmlui-padding-Badge)", "padding-horizontal-Badge-pill": "var(--xmlui-padding-horizontal-Badge-pill)", "padding-vertical-Badge-pill": "var(--xmlui-padding-vertical-Badge-pill)", "padding-Badge-pill": "var(--xmlui-padding-Badge-pill)"}'`,badge:"_badge_xcyhw_13",pill:"_pill_xcyhw_29"},I3A=d.forwardRef(function({children:e,color:t,variant:r="badge"},n){return Q.jsx("div",{ref:n,className:KA({[Q4.badge]:r==="badge",[Q4.pill]:r==="pill"}),style:t?typeof t=="string"?{backgroundColor:t}:{backgroundColor:t.background,color:t.label}:void 0,children:e})}),rn="Badge",v3A=kA({status:"stable",description:`The \`${rn}\` is a text label that accepts a color map to define its background color and, optionally, its label color.`,props:{value:j("The text that the component displays"),variant:j("Modifies the shape of the component. Comes in the regular `badge` variant or the `pill` variant with fully rounded corners."),colorMap:j(`The \`${rn}\` component supports the mapping of a list of colors using the \`value\` prop as the key. Provide the component with a list or key-value pairs in two ways:`),themeColor:j("(**NOT IMPLEMENTED YET**) The theme color of the component."),indicatorText:j("(**NOT IMPLEMENTED YET**) This property defines the text to display in the indicator. If it is not defined or empty, no indicator is displayed unless the `forceIndicator` property is set."),forceIndicator:j("(**NOT IMPLEMENTED YET**) This property forces the display of the indicator, even if the `indicatorText` property is not defined or empty."),indicatorThemeColor:j("(**NOT IMPLEMENTED YET**) The theme color of the indicator."),indicatorPosition:j("(**NOT IMPLEMENTED YET**) The position of the indicator.")},events:{},themeVars:ne(Q4.themeVars),defaultThemeVars:{[`padding-horizontal-${rn}`]:"$space-2",[`padding-vertical-${rn}`]:"$space-0_5",[`padding-${rn}`]:`$padding-vertical-${rn} $padding-horizontal-${rn}`,[`padding-${rn}-pill`]:`$padding-vertical-${rn}-pill $padding-horizontal-${rn}-pill`,[`radius-${rn}`]:"4px",[`font-size-${rn}`]:"0.8em",[`font-size-${rn}-pill`]:"0.8em",light:{[`color-bg-${rn}`]:"rgba($color-secondary-500-rgb, .6)",[`color-text-${rn}`]:"white"},dark:{[`color-bg-${rn}`]:"rgba($color-secondary-500-rgb, .6)",[`color-text-${rn}`]:"$color-surface-50"}}}),D3A=RA(rn,v3A,({node:A,extractValue:e,renderChild:t})=>{var o;const r=e.asDisplayText(A.props.value),n=e((o=A.props)==null?void 0:o.colorMap);return Q.jsx(I3A,{variant:e(A.props.variant),color:n==null?void 0:n[r],children:r||t(A.children)})}),of={themeVars:`'{"color-bg-Avatar": "var(--xmlui-color-bg-Avatar)", "color-border-Avatar": "var(--xmlui-color-border-Avatar)", "thickness-border-Avatar": "var(--xmlui-thickness-border-Avatar)", "style-border-Avatar": "var(--xmlui-style-border-Avatar)", "border-Avatar": "var(--xmlui-border-Avatar)", "radius-Avatar": "var(--xmlui-radius-Avatar)", "shadow-Avatar": "var(--xmlui-shadow-Avatar)", "color-text-Avatar": "var(--xmlui-color-text-Avatar)", "font-weight-Avatar": "var(--xmlui-font-weight-Avatar)"}'`,container:"_container_1fbc9_13",xs:"_xs_1fbc9_34",sm:"_sm_1fbc9_41",md:"_md_1fbc9_48",lg:"_lg_1fbc9_55",clickable:"_clickable_1fbc9_62"},NG=d.forwardRef(function({size:e="sm",url:t,name:r,style:n,onClick:o,...i},a){let s=null;return!t&&r&&(s=r.trim().split(" ").filter(l=>!!l.trim().length).map(l=>l[0].toUpperCase()).slice(0,3)),Q.jsx("div",{...i,ref:a,className:KA(of.container,{[of.xs]:e==="xs",[of.sm]:e==="sm",[of.md]:e==="md",[of.lg]:e==="lg",[of.clickable]:!!o}),style:{backgroundImage:t?`url(${t})`:"none",...n},onClick:o,children:s})}),Kr="Avatar",y3A=kA({description:`The \`${Kr}\` component represents a user, group (or other entity's) avatar with a small image or initials.`,props:{size:j(`This property defines the display size of the ${Kr}.`,HQ,"string","sm"),name:j(`This property sets the name value the ${Kr} uses to display initials.`),url:j(`This property specifies the URL of the image to display in the ${Kr}.`)},events:{click:j("This event is triggered when the avatar is clicked.")},themeVars:ne(of.themeVars),defaultThemeVars:{[`radius-${Kr}`]:"4px",[`thickness-border-${Kr}`]:"0px",[`style-border-${Kr}`]:"solid",[`border-${Kr}`]:`$thickness-border-${Kr} $style-border-${Kr} $color-border-${Kr}`,[`shadow-${Kr}`]:"inset 0 0 0 1px rgba(4,32,69,0.1)",[`color-text-${Kr}`]:"$color-text-secondary",[`font-weight-${Kr}`]:"$font-weight-bold",light:{[`color-bg-${Kr}`]:"$color-surface-100",[`color-border-${Kr}`]:"$color-surface-400A80"},dark:{[`color-bg-${Kr}`]:"$color-surface-800",[`color-border-${Kr}`]:"$color-surface-700"}}}),b3A=RA(Kr,y3A,({node:A,extractValue:e,lookupEventHandler:t,layoutCss:r,extractResourceUrl:n})=>{var o;return Q.jsx(NG,{size:(o=A.props)==null?void 0:o.size,url:n(A.props.url),name:e(A.props.name),style:r,onClick:t("click")})}),Iw={themeVars:`'{"color-bg-ContentSeparator": "var(--xmlui-color-bg-ContentSeparator)", "size-ContentSeparator": "var(--xmlui-size-ContentSeparator)"}'`,separator:"_separator_qlxwk_13",horizontal:"_horizontal_qlxwk_16",vertical:"_vertical_qlxwk_20"},RG=({orientation:A="horizontal",size:e,style:t})=>Q.jsx("div",{className:KA(Iw.separator,{[Iw.horizontal]:A==="horizontal",[Iw.vertical]:A==="vertical"}),style:{height:A==="horizontal"?e:void 0,width:A==="horizontal"?"100%":e,...t}}),vw="ContentSeparator",x3A=kA({description:`A \`${vw}\` is a component that divides or separates content visually within a layout. It serves as a visual cue to distinguish between different sections or groups of content, helping to improve readability and organization.`,props:{size:j("This property defines the component's height (if the `orientation` is horizontal) or the width (if the `orientation` is vertical)."),orientation:j("Sets the main axis of the component",vk)},themeVars:ne(Iw.themeVars),defaultThemeVars:{[`color-bg-${vw}`]:"$color-border",[`size-${vw}`]:"1px",light:{},dark:{}}}),k3A=RA(vw,x3A,({node:A,layoutCss:e,layoutNonCss:t,extractValue:r})=>Q.jsx(RG,{orientation:t.orientation,size:r.asSize(A.props.size),style:e})),GB={themeVars:`'{"padding-Card": "var(--xmlui-padding-Card)", "padding-horizontal-Card": "var(--xmlui-padding-horizontal-Card)", "padding-vertical-Card": "var(--xmlui-padding-vertical-Card)", "shadow-Card": "var(--xmlui-shadow-Card)", "color-bg-Card": "var(--xmlui-color-bg-Card)", "radius-Card": "var(--xmlui-radius-Card)", "color-border-Card": "var(--xmlui-color-border-Card)", "thickness-border-Card": "var(--xmlui-thickness-border-Card)", "style-border-Card": "var(--xmlui-style-border-Card)", "border-Card": "var(--xmlui-border-Card)"}'`,wrapper:"_wrapper_qmtvs_13",horizontal:"_horizontal_qmtvs_23",vertical:"_vertical_qmtvs_28",isClickable:"_isClickable_qmtvs_31"},PG="vertical",TG=d.forwardRef(function({children:e,orientation:t=PG,style:r,title:n,subtitle:o,linkTo:i,avatarUrl:a,showAvatar:s=!!a||!1,onClick:l},c){const u={level:"h2"};return Q.jsxs("div",{ref:c,className:KA(GB.wrapper,{[GB.isClickable]:!!l,[GB.vertical]:t==="vertical",[GB.horizontal]:t==="horizontal"}),style:r,onClick:l,children:[[n,o,a,s].some(Boolean)&&Q.jsxs(co,{orientation:"horizontal",verticalAlignment:"center",style:{gap:"1rem"},children:[s&&Q.jsx(NG,{url:a,name:n}),Q.jsxs(co,{orientation:"vertical",children:[i?n?Q.jsx(A4,{to:i+"",children:Q.jsx(Zs,{...u,children:n})}):null:n?Q.jsx(Zs,{...u,children:n}):null,o!==void 0&&Q.jsx(Bn,{variant:"small",children:o})]})]}),e]})}),ir="Card",_3A=kA({description:`The \`${ir}\` component is a container for cohesive elements, often rendered visually as a card.`,props:{avatarUrl:j(`Show the avatar (\`true\`) or not (\`false\`). If not specified, the ${ir} will show the first letters of the [\`title\`](#title).`),showAvatar:j(`Indicates whether the ${ir} should be displayed`,null,"boolean"),title:j("This prop sets the prestyled title."),subtitle:j("This prop sets the prestyled subtitle."),linkTo:j("This property wraps the title in a `Link` component that is clickable to navigate."),orientation:j(`An optional property that governs the ${ir}'s orientation (whether the ${ir} lays out its children in a row or a column). If the orientation is set to \`horizontal\`, the ${ir} will display its children in a row, except for its [\`title\`](#title) and [\`subtitle\`](#subtitle).`,vk,"string",PG)},events:{click:sc(ir)},themeVars:ne(GB.themeVars),defaultThemeVars:{[`padding-horizontal-${ir}`]:"$space-4",[`padding-vertical-${ir}`]:"$space-4",[`padding-${ir}`]:`$padding-vertical-${ir} $padding-horizontal-${ir}`,[`color-border-${ir}`]:"$color-border",[`thickness-border-${ir}`]:"1px",[`style-border-${ir}`]:"solid",[`border-${ir}`]:`$thickness-border-${ir} $style-border-${ir} $color-border-${ir}`,[`radius-${ir}`]:"$radius",[`shadow-${ir}`]:"none",light:{[`color-bg-${ir}`]:"white"},dark:{[`color-bg-${ir}`]:"$color-surface-900"}}}),M3A=RA("Card",_3A,({node:A,extractValue:e,renderChild:t,layoutCss:r})=>Q.jsx(TG,{style:r,title:e.asOptionalString(A.props.title),linkTo:e.asOptionalString(A.props.linkTo),subtitle:e.asOptionalString(A.props.subtitle),avatarUrl:e.asOptionalString(A.props.avatarUrl),showAvatar:e.asOptionalBoolean(A.props.showAvatar),orientation:e.asOptionalString(A.props.orientation),children:t(A.children,{type:"Stack",orientation:"vertical"})})),dc={themeVars:'"[]"',outer:"_outer_aarhe_13",flowContainer:"_flowContainer_aarhe_17",horizontal:"_horizontal_aarhe_21",flowItem:"_flowItem_aarhe_24",vertical:"_vertical_aarhe_32",break:"_break_aarhe_47",forceBreak:"_forceBreak_aarhe_47",starSized:"_starSized_aarhe_47"},w4={},LG=d.createContext({rowGap:0,columnGap:0,setNumberOfChildren:$l}),FG=({force:A})=>Q.jsx("div",{className:KA(dc.break,{[dc.forceBreak]:A})}),S3A=d.forwardRef(function({children:e,forceBreak:t,...r},n){const{rowGap:o,columnGap:i,setNumberOfChildren:a}=d.useContext(LG);Aa(()=>(a(M=>M+1),()=>{a(M=>M-1)}),[a]);const{activeTheme:s,root:l}=nr(),c=r.width||"100%",u=r.minWidth||void 0,g=r.maxWidth||void 0,{width:h=c,minWidth:B,maxWidth:E,flex:C}=d.useMemo(()=>i7({width:c,maxWidth:g,minWidth:u},s.themeVars,{type:"Stack",orientation:"horizontal"}).cssProps||{},[g,u,c,s.themeVars]),m=d.useMemo(()=>{if(h&&typeof h=="string"&&h.startsWith("var(")){if(!w4[h]){const M=h.substring(4,h.length-1),N=getComputedStyle(l).getPropertyValue(M);w4[h]=N||c}return w4[h]}return h||c},[c,l,h]),I=typeof m=="string"&&m.endsWith("%"),v=_4A(i),y=Xl("(max-width: 420px)"),x=Xl("(max-width: 800px)"),b={minWidth:B,maxWidth:E,width:I?`min(${h} * ${y?"8":x?"4":"1"}, 100%)`:`min(calc(${h} + ${v}), 100%)`,paddingBottom:o,flex:C},k=C!==void 0;return k&&(b.width="100%",b.minWidth=B||"1px"),Q.jsxs(Q.Fragment,{children:[Q.jsx("div",{style:{...b,paddingRight:v},className:KA(dc.flowItem,{[dc.starSized]:k}),ref:n,children:e}),k&&Q.jsx(FG,{})]})}),N3A=d.forwardRef(function({style:e,columnGap:t=0,rowGap:r=0,children:n},o){const[i,a]=d.useState(0),s=i===1?0:t,l=iG(r),c=iG(s),u=d.useMemo(()=>({marginRight:`calc(-1 * ${c})`,marginBottom:`calc(-1 * ${l})`}),[c,l]),g=d.useMemo(()=>({rowGap:l,columnGap:c,setNumberOfChildren:a}),[c,l]);return Q.jsx(LG.Provider,{value:g,children:Q.jsx("div",{style:e,ref:o,children:Q.jsx("div",{className:dc.outer,children:Q.jsx("div",{className:KA(dc.flowContainer,dc.horizontal),style:u,children:n})})})})}),Dw="FlowLayout",R3A=kA({description:"This layout component is used to position content in rows with an auto wrapping feature: if the length of the items exceed the available space the layout will wrap into a new line.",props:{gap:j(`This property defines the gap between items in the same row and between rows. The ${Dw} component creates a new row when an item is about to overflow the current row.`),columnGap:j("The `columnGap` property specifies the space between items in a single row; it overrides the `gap` value."),rowGap:j(`The \`rowGap\` property specifies the space between the ${Dw} rows; it overrides the \`gap\` value.`),shadow:j(`${Dw} does not support shadow, we're waiting for a decent solution.`)},themeVars:ne(dc.themeVars)}),P3A=RA(Dw,R3A,({node:A,renderChild:e,layoutCss:t,extractValue:r})=>{var i,a;if(!F2(A.children))throw new QB;const n=r.asSize((i=A.props)==null?void 0:i.columnGap)||t.gap||r.asSize("$space-4"),o=r.asSize((a=A.props)==null?void 0:a.rowGap)||t.gap||r.asSize("$space-4");return Q.jsx(N3A,{style:t,columnGap:n,rowGap:o,children:e(A.children,{wrapChild:({node:s,extractValue:l},c,u)=>{var E,C,m;if(u!=null&&u.opaque)return c;if(s.type==="SpaceFiller")return Q.jsx(FG,{force:!0});const g=l((E=s.props)==null?void 0:E.width),h=l((C=s.props)==null?void 0:C.minWidth),B=l((m=s.props)==null?void 0:m.maxWidth);return Q.jsx(S3A,{width:g,minWidth:h,maxWidth:B,forceBreak:s.type==="SpaceFiller",children:c})}})})});function yw(A,e){return{[`padding-left-${A}`]:(e==null?void 0:e.left)??`$padding-horizontal-${A}`,[`padding-right-${A}`]:(e==null?void 0:e.right)??`$padding-horizontal-${A}`,[`padding-top-${A}`]:(e==null?void 0:e.top)??`$padding-vertical-${A}`,[`padding-bottom-${A}`]:(e==null?void 0:e.bottom)??`$padding-vertical-${A}`,[`padding-horizontal-${A}`]:(e==null?void 0:e.horizontal)??"",[`padding-vertical-${A}`]:(e==null?void 0:e.vertical)??"",[`padding-${A}`]:(e==null?void 0:e.all)??`$padding-top-${A} $padding-right-${A} $padding-bottom-${A} $padding-left-${A}`}}function I4(A,e){var r,n,o,i,a,s;return{[`radius-${A}`]:"$radius",...t("left",(e==null?void 0:e.left)??(e==null?void 0:e.horizontal)??(e==null?void 0:e.all)),...t("right",(e==null?void 0:e.right)??(e==null?void 0:e.horizontal)??(e==null?void 0:e.all)),...t("top",(e==null?void 0:e.top)??(e==null?void 0:e.vertical)??(e==null?void 0:e.all)),...t("bottom",(e==null?void 0:e.bottom)??(e==null?void 0:e.vertical)??(e==null?void 0:e.all)),...t("horizontal",(e==null?void 0:e.horizontal)??(e==null?void 0:e.all)),...t("vertical",(e==null?void 0:e.vertical)??(e==null?void 0:e.all)),[`color-border-${A}`]:((r=e==null?void 0:e.all)==null?void 0:r.color)??"",[`thickness-border-${A}`]:((n=e==null?void 0:e.all)==null?void 0:n.thickness)??"",[`style-border-${A}`]:((o=e==null?void 0:e.all)==null?void 0:o.style)??"",[`border-${A}`]:`${((i=e==null?void 0:e.all)==null?void 0:i.thickness)??`$thickness-border-${A}`} ${((a=e==null?void 0:e.all)==null?void 0:a.style)??`$style-border-${A}`} ${((s=e==null?void 0:e.all)==null?void 0:s.color)??`$color-border-${A}`} `};function t(l,c){return{[`color-border-${l}-${A}`]:(c==null?void 0:c.color)??"",[`thickness-border-${l}-${A}`]:(c==null?void 0:c.thickness)??"",[`style-border-${l}-${A}`]:(c==null?void 0:c.style)??"",[`border-${l}-${A}`]:(c==null?void 0:c.all)??`$thickness-border-${l}-${A} $style-border-${l}-${A} $color-border-${l}-${A}`}}}const uo="ModalDialog",T3A=kA({description:`The \`${uo}\` component defines a modal dialog UI element that can be displayed over the existing UI - triggered by some action.`,props:{fullScreen:j("Toggles whether the dialog encompasses the whole UI (`true`) or not and has a minimum width and height (`false`)."),title:j("Provides a prestyled heading to display the intent of the dialog."),closeButtonVisible:j("Shows (`true`) or hides (`false`) the visibility of the close button on the dialog."),isInitiallyOpen:j("This property sets whether the modal dialog appears open (`true`) or not (`false`) when the page is it is defined on is rendered.")},events:{open:j(`This event is fired when the \`${uo}\` is opened either via a \`when\` or an imperative API call (\`open()\`).`),close:j(`This event is fired when the close button is pressed or the user clicks outside the \`${uo}\`.`)},apis:{close:j(`This method is used to close the \`${uo}\`. Invoke it using \`modalId.close()\` where \`modalId\` refers to a \`ModalDialog\` component.`),open:j("This method imperatively opens the modal dialog. You can pass an arbitrary number of parameters to the method. In the `ModalDialog` instance, you can access those with the `$paramq` and `$params` context values.")},contextVars:{$param:j("This value represents the first parameters passed to the `open()` method to display the modal dialog."),$params:j("This value represents the array of parameters passed to the `open()` method. You can use `$params[0]` to access the first and `$params[1]` to access the second (and so on) parameters. `$param` is the same as `$params[0]`.")},themeVars:ne(rc.themeVars),defaultThemeVars:{...yw(uo,{all:"$space-7"}),[`color-bg-${uo}`]:"$color-bg-primary",[`color-bg-overlay-${uo}`]:"$color-bg-overlay",[`color-text-${uo}`]:"$color-text-primary",[`radius-${uo}`]:"$radius",[`font-family-${uo}`]:"$font-family",[`max-width-${uo}`]:"450px",[`margin-bottom-title-${uo}`]:"0",dark:{[`color-bg-${uo}`]:"$color-bg-primary"}}}),L3A=RA(uo,T3A,({node:A,extractValue:e,layoutCss:t,renderChild:r,lookupEventHandler:n,registerComponentApi:o,layoutContext:i})=>{var a,s;return i!=null&&i._insideModalFrame?Q.jsx(Qd,{style:t,fullScreen:e((a=A.props)==null?void 0:a.fullScreen),title:e((s=A.props)==null?void 0:s.title),closeButtonVisible:e.asOptionalBoolean(A.props.closeButtonVisible),children:r(A.children,{type:"Stack"})}):Q.jsx(NyA,{isInitiallyOpen:A.when!==void 0,registerComponentApi:o,onClose:n("close"),onOpen:n("open"),renderDialog:({openParams:l,ref:c})=>Q.jsx(Oo,{node:A,renderChild:r,layoutContext:{_insideModalFrame:!0},contextVars:{$param:l==null?void 0:l[0],$params:l}})})}),v4={themeVars:`'{"padding-vertical-NoResult": "var(--xmlui-padding-vertical-NoResult)", "gap-icon-NoResult": "var(--xmlui-gap-icon-NoResult)", "size-icon-NoResult": "var(--xmlui-size-icon-NoResult)"}'`,wrapper:"_wrapper_9giub_13",icon:"_icon_9giub_22"},F3A=d.forwardRef(function({label:e,icon:t,hideIcon:r=!1,style:n},o){return Q.jsxs("div",{className:v4.wrapper,style:n,ref:o,children:[!r&&Q.jsx(be,{name:t??"noresult",className:v4.icon}),e]})}),UB="NoResult",O3A=kA({description:`\`${UB}\` is a component that displays a visual indication that some data query (search) resulted in no (zero) items.`,props:{label:pn(),icon:j("This property defines the icon to display with the component."),hideIcon:j("This boolean property indicates if the icon should be hidden.")},themeVars:ne(v4.themeVars),defaultThemeVars:{[`padding-vertical-${UB}`]:"$space-2",[`gap-icon-${UB}`]:"$space-2",[`size-icon-${UB}`]:"$space-8",light:{},dark:{}}}),H3A=RA(UB,O3A,({node:A,extractValue:e,layoutCss:t})=>Q.jsx(F3A,{label:e.asDisplayText(A.props.label||A.children||"No results found"),icon:A.props.icon,hideIcon:e.asOptionalBoolean(A.props.hideIcon),style:t})),D4={themeVars:`'{"color-bg-FileUploadDropZone": "var(--xmlui-color-bg-FileUploadDropZone)", "color-text-FileUploadDropZone": "var(--xmlui-color-text-FileUploadDropZone)", "color-bg-dropping-FileUploadDropZone": "var(--xmlui-color-bg-dropping-FileUploadDropZone)", "opacity-dropping-FileUploadDropZone": "var(--xmlui-opacity-dropping-FileUploadDropZone)"}'`,wrapper:"_wrapper_u50h5_13",dropPlaceholder:"_dropPlaceholder_u50h5_21"};var G3A=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function KB(A,e){var t=U3A(A);if(typeof t.path!="string"){var r=A.webkitRelativePath;Object.defineProperty(t,"path",{value:typeof e=="string"?e:typeof r=="string"&&r.length>0?r:A.name,writable:!1,configurable:!1,enumerable:!0})}return t}function U3A(A){var e=A.name,t=e&&e.lastIndexOf(".")!==-1;if(t&&!A.type){var r=e.split(".").pop().toLowerCase(),n=G3A.get(r);n&&Object.defineProperty(A,"type",{value:n,writable:!1,configurable:!1,enumerable:!0})}return A}var K3A=[".DS_Store","Thumbs.db"];function Y3A(A){return gd(this,void 0,void 0,function(){return dd(this,function(e){return bw(A)&&$3A(A.dataTransfer)?[2,z3A(A.dataTransfer,A.type)]:j3A(A)?[2,q3A(A)]:Array.isArray(A)&&A.every(function(t){return"getFile"in t&&typeof t.getFile=="function"})?[2,J3A(A)]:[2,[]]})})}function $3A(A){return bw(A)}function j3A(A){return bw(A)&&bw(A.target)}function bw(A){return typeof A=="object"&&A!==null}function q3A(A){return y4(A.target.files).map(function(e){return KB(e)})}function J3A(A){return gd(this,void 0,void 0,function(){var e;return dd(this,function(t){switch(t.label){case 0:return[4,Promise.all(A.map(function(r){return r.getFile()}))];case 1:return e=t.sent(),[2,e.map(function(r){return KB(r)})]}})})}function z3A(A,e){return gd(this,void 0,void 0,function(){var t,r;return dd(this,function(n){switch(n.label){case 0:return A.items?(t=y4(A.items).filter(function(o){return o.kind==="file"}),e!=="drop"?[2,t]:[4,Promise.all(t.map(W3A))]):[3,2];case 1:return r=n.sent(),[2,OG(HG(r))];case 2:return[2,OG(y4(A.files).map(function(o){return KB(o)}))]}})})}function OG(A){return A.filter(function(e){return K3A.indexOf(e.name)===-1})}function y4(A){if(A===null)return[];for(var e=[],t=0;t<A.length;t++){var r=A[t];e.push(r)}return e}function W3A(A){if(typeof A.webkitGetAsEntry!="function")return GG(A);var e=A.webkitGetAsEntry();return e&&e.isDirectory?UG(e):GG(A)}function HG(A){return A.reduce(function(e,t){return hd(hd([],bH(e),!1),bH(Array.isArray(t)?HG(t):[t]),!1)},[])}function GG(A){var e=A.getAsFile();if(!e)return Promise.reject("".concat(A," is not a File"));var t=KB(e);return Promise.resolve(t)}function V3A(A){return gd(this,void 0,void 0,function(){return dd(this,function(e){return[2,A.isDirectory?UG(A):X3A(A)]})})}function UG(A){var e=A.createReader();return new Promise(function(t,r){var n=[];function o(){var i=this;e.readEntries(function(a){return gd(i,void 0,void 0,function(){var s,l,c;return dd(this,function(u){switch(u.label){case 0:if(a.length)return[3,5];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,Promise.all(n)];case 2:return s=u.sent(),t(s),[3,4];case 3:return l=u.sent(),r(l),[3,4];case 4:return[3,6];case 5:c=Promise.all(a.map(V3A)),n.push(c),o(),u.label=6;case 6:return[2]}})})},function(a){r(a)})}o()})}function X3A(A){return gd(this,void 0,void 0,function(){return dd(this,function(e){return[2,new Promise(function(t,r){A.file(function(n){var o=KB(n,A.fullPath);t(o)},function(n){r(n)})})]})})}var Z3A=function(A,e){if(A&&e){var t=Array.isArray(e)?e:e.split(","),r=A.name||"",n=(A.type||"").toLowerCase(),o=n.replace(/\/.*$/,"");return t.some(function(i){var a=i.trim().toLowerCase();return a.charAt(0)==="."?r.toLowerCase().endsWith(a):a.endsWith("/*")?o===a.replace(/\/.*$/,""):n===a})}return!0};function KG(A){return t8A(A)||e8A(A)||qG(A)||A8A()}function A8A(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
415
|
+
color: hsl(${Math.max(0,Math.min(120-120*E,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(s=t==null?void 0:t.onChange)==null||s.call(t,n),n}}function E4(A,e){if(A===void 0)throw new Error("Unexpected undefined");return A}const Z_A=(A,e)=>Math.abs(A-e)<1,A3A=(A,e,t)=>{let r;return function(...n){A.clearTimeout(r),r=A.setTimeout(()=>e.apply(this,n),t)}};var HB={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_Pdf:"false",VITE_USED_COMPONENTS_Chart:"false",VITE_USER_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_XMLUI_VERSION:"0.7.19 (built 1/31/2025)"};const e3A=A=>A,bG=A=>{const e=Math.max(A.startIndex-A.overscan,0),t=Math.min(A.endIndex+A.overscan,A.count-1),r=[];for(let n=e;n<=t;n++)r.push(n);return r},t3A=(A,e)=>{const t=A.scrollElement;if(!t)return;const r=A.targetWindow;if(!r)return;const n=i=>{const{width:a,height:s}=i;e({width:Math.round(a),height:Math.round(s)})};if(n(t.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const o=new r.ResizeObserver(i=>{const a=i[0];if(a!=null&&a.borderBoxSize){const s=a.borderBoxSize[0];if(s){n({width:s.inlineSize,height:s.blockSize});return}}n(t.getBoundingClientRect())});return o.observe(t,{box:"border-box"}),()=>{o.unobserve(t)}},xG={passive:!0},r3A=typeof window>"u"?!0:"onscrollend"in window,kG=(A,e)=>{const t=A.scrollElement;if(!t)return;const r=A.targetWindow;if(!r)return;let n=0;const o=r3A?()=>{}:A3A(r,()=>{e(n,!1)},A.options.isScrollingResetDelay),i=l=>()=>{const{horizontal:c,isRtl:u}=A.options;n=c?t.scrollLeft*(u&&-1||1):t.scrollTop,o(),e(n,l)},a=i(!0),s=i(!1);return s(),t.addEventListener("scroll",a,xG),t.addEventListener("scrollend",s,xG),()=>{t.removeEventListener("scroll",a),t.removeEventListener("scrollend",s)}},n3A=(A,e,t)=>{if(e!=null&&e.borderBoxSize){const r=e.borderBoxSize[0];if(r)return Math.round(r[t.options.horizontal?"inlineSize":"blockSize"])}return Math.round(A.getBoundingClientRect()[t.options.horizontal?"width":"height"])},o3A=(A,{adjustments:e=0,behavior:t},r)=>{var n,o;const i=A+e;(o=(n=r.scrollElement)==null?void 0:n.scrollTo)==null||o.call(n,{[r.options.horizontal?"left":"top"]:i,behavior:t})};class i3A{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null;const r=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(n=>{n.forEach(o=>{this._measureElement(o.target,o)})}));return{disconnect:()=>{var n;(n=r())==null||n.disconnect(),t=null},observe:n=>{var o;return(o=r())==null?void 0:o.observe(n,{box:"border-box"})},unobserve:n=>{var o;return(o=r())==null?void 0:o.unobserve(n)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([r,n])=>{typeof n>"u"&&delete t[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:e3A,rangeExtractor:bG,onChange:()=>{},measureElement:n3A,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,...t}},this.notify=t=>{var r,n;(n=(r=this.options).onChange)==null||n.call(r,this,t)},this.maybeNotify=bd(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:HB.NODE_ENV!=="production",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this.elementsCache.forEach(n=>{this.observer.observe(n)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,n=>{this.scrollRect=n,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(n,o)=>{this.scrollAdjustments=0,this.scrollDirection=o?this.getScrollOffset()<n?"forward":"backward":null,this.scrollOffset=n,this.isScrolling=o,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(t,r)=>{const n=new Map,o=new Map;for(let i=r-1;i>=0;i--){const a=t[i];if(n.has(a.lane))continue;const s=o.get(a.lane);if(s==null||a.end>s.end?o.set(a.lane,a):a.end<s.end&&n.set(a.lane,!0),n.size===this.options.lanes)break}return o.size===this.options.lanes?Array.from(o.values()).sort((i,a)=>i.end===a.end?i.index-a.index:i.end-a.end)[0]:void 0},this.getMeasurementOptions=bd(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,r,n,o,i)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:r,scrollMargin:n,getItemKey:o,enabled:i}),{key:!1}),this.getMeasurements=bd(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:r,scrollMargin:n,getItemKey:o,enabled:i},a)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const s=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const l=this.measurementsCache.slice(0,s);for(let c=s;c<t;c++){const u=o(c),g=this.options.lanes===1?l[c-1]:this.getFurthestMeasurement(l,c),h=g?g.end+this.options.gap:r+n,B=a.get(u),E=typeof B=="number"?B:this.options.estimateSize(c),C=h+E,m=g?g.lane:c%this.options.lanes;l[c]={index:c,start:h,size:E,end:C,key:u,lane:m}}return this.measurementsCache=l,l},{key:HB.NODE_ENV!=="production",debug:()=>this.options.debug}),this.calculateRange=bd(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(t,r,n)=>this.range=t.length>0&&r>0?a3A({measurements:t,outerSize:r,scrollOffset:n}):null,{key:HB.NODE_ENV!=="production",debug:()=>this.options.debug}),this.getIndexes=bd(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(t,r,n,o)=>r===null?[]:t({startIndex:r.startIndex,endIndex:r.endIndex,overscan:n,count:o}),{key:HB.NODE_ENV!=="production",debug:()=>this.options.debug}),this.indexFromElement=t=>{const r=this.options.indexAttribute,n=t.getAttribute(r);return n?parseInt(n,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(t,r)=>{const n=this.indexFromElement(t),o=this.measurementsCache[n];if(!o)return;const i=o.key,a=this.elementsCache.get(i);a!==t&&(a&&this.observer.unobserve(a),this.observer.observe(t),this.elementsCache.set(i,t)),t.isConnected&&this.resizeItem(n,this.options.measureElement(t,r,this))},this.resizeItem=(t,r)=>{const n=this.measurementsCache[t];if(!n)return;const o=this.itemSizeCache.get(n.key)??n.size,i=r-o;i!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(n,i,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,r)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((r,n)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(n))});return}this._measureElement(t,void 0)},this.getVirtualItems=bd(()=>[this.getIndexes(),this.getMeasurements()],(t,r)=>{const n=[];for(let o=0,i=t.length;o<i;o++){const a=t[o],s=r[a];n.push(s)}return n},{key:HB.NODE_ENV!=="production",debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const r=this.getMeasurements();if(r.length!==0)return E4(r[_G(0,r.length-1,n=>E4(r[n]).start,t)])},this.getOffsetForAlignment=(t,r)=>{const n=this.getSize(),o=this.getScrollOffset();r==="auto"&&(t<=o?r="start":t>=o+n?r="end":r="start"),r==="start"?t=t:r==="end"?t=t-n:r==="center"&&(t=t-n/2);const i=this.options.horizontal?"scrollWidth":"scrollHeight",s=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[i]:this.scrollElement[i]:0)-n;return Math.max(Math.min(s,t),0)},this.getOffsetForIndex=(t,r="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const n=this.measurementsCache[t];if(!n)return;const o=this.getSize(),i=this.getScrollOffset();if(r==="auto")if(n.end>=i+o-this.options.scrollPaddingEnd)r="end";else if(n.start<=i+this.options.scrollPaddingStart)r="start";else return[i,r];const a=r==="end"?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,r),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(t,{align:r="start",behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,r),{adjustments:void 0,behavior:n})},this.scrollToIndex=(t,{align:r="auto",behavior:n}={})=>{t=Math.max(0,Math.min(t,this.options.count-1)),this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const o=this.getOffsetForIndex(t,r);if(!o)return;const[i,a]=o;this._scrollToOffset(i,{adjustments:void 0,behavior:n}),n!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(t))){const[l]=E4(this.getOffsetForIndex(t,a));Z_A(l,this.getScrollOffset())||this.scrollToIndex(t,{align:a,behavior:n})}else this.scrollToIndex(t,{align:a,behavior:n})}))},this.scrollBy=(t,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var t;const r=this.getMeasurements();let n;return r.length===0?n=this.options.paddingStart:n=this.options.lanes===1?((t=r[r.length-1])==null?void 0:t.end)??0:Math.max(...r.slice(-this.options.lanes).map(o=>o.end)),Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:r,behavior:n})=>{this.options.scrollToFn(t,{behavior:n,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}const _G=(A,e,t,r)=>{for(;A<=e;){const n=(A+e)/2|0,o=t(n);if(o<r)A=n+1;else if(o>r)e=n-1;else return n}return A>0?A-1:0};function a3A({measurements:A,outerSize:e,scrollOffset:t}){const r=A.length-1,o=_G(0,r,a=>A[a].start,t);let i=o;for(;i<r&&A[i].end<t+e;)i++;return{startIndex:o,endIndex:i}}const s3A=typeof document<"u"?d.useLayoutEffect:d.useEffect;function l3A(A){const e=d.useReducer(()=>({}),{})[1],t={...A,onChange:(n,o)=>{var i;o?Dr.flushSync(e):e(),(i=A.onChange)==null||i.call(A,n,o)}},[r]=d.useState(()=>new i3A(t));return r.setOptions(t),d.useEffect(()=>r._didMount(),[]),s3A(()=>r._willUpdate()),r}function MG(A){return l3A({observeElementRect:t3A,observeElementOffset:kG,scrollToFn:o3A,...A})}function c3A(A){return!1}const u3A=42,f3A=[10],SG=A=>{const e=A.getIsPinned();return{left:e==="left"?`${A.getStart("left")}px`:void 0,right:e==="right"?`${A.getAfter("right")}px`:void 0,opacity:e?.95:void 0,position:e?"sticky":"relative",backgroundColor:e?"inherit":void 0,zIndex:e?1:void 0}},g3A=d.forwardRef(({data:A=Jt,columns:e=Jt,isPaginated:t=!1,loading:r=!1,headerHeight:n,rowsSelectable:o=!1,enableMultiRowSelection:i=!0,pageSizes:a=f3A,rowDisabledPredicate:s=c3A,sortBy:l,sortingDirection:c="ascending",iconSortAsc:u,iconSortDesc:g,iconNoSort:h,sortingDidChange:B,willSort:E,style:C,noDataRenderer:m,autoFocus:I=!1,hideHeader:v=!1,hideNoDataView:y=!1,alwaysShowSelectionHeader:x=!1,registerComponentApi:b,onSelectionDidChange:k},M)=>{var Ke,Ct,kt,Ce;const{getThemeVar:N}=nr(),F=Array.isArray(A)?A:Jt,L=d.useRef(null),T=M?Zr(L,M):L,P=d.useRef(null),G=d.useRef(null),H=l!==void 0,z=d.useMemo(()=>e||(F.length?Object.keys(F[0]).map(YA=>({header:YA,accessorKey:YA})):Jt),[e,F]);d.useEffect(()=>{I&&L.current.focus()},[I]);const[q,O]=d.useState(Jt),{toggleRow:Y,checkAllRows:S,focusedIndex:J,onKeyDown:$,selectedRowIdMap:U,idKey:AA,selectionApi:Z}=X_A({items:F,visibleItems:q,rowsSelectable:o,enableMultiRowSelection:i,onSelectionDidChange:k}),tA=d.useMemo(()=>F.map((YA,PA)=>({...YA,order:PA+1})),[F]),[nA,sA]=d.useState(l),[iA,aA]=d.useState(c);d.useLayoutEffect(()=>{sA(l)},[l]),d.useLayoutEffect(()=>{aA(c)},[c]);const rA=d.useMemo(()=>!nA||H?tA:WF(tA,nA,iA==="ascending"?"asc":"desc"),[nA,iA,tA,H]),X=d.useCallback(async YA=>{let PA="ascending",oe=YA;nA===YA&&(iA==="ascending"?PA="descending":oe=void 0),await(E==null?void 0:E(oe,PA))!==!1&&(aA(PA),sA(oe),B==null||B(oe,PA))},[nA,E,B,iA]),cA=d.useMemo(()=>z.map((YA,PA)=>{const{width:oe,starSizedWidth:Te}=Lr(YA.width,!0,"width"),{width:Ut}=Lr(YA.minWidth,!1,"minWidth"),{width:Xe}=Lr(YA.maxWidth,!1,"maxWidth");return{...YA,header:YA.header??YA.accessorKey??" ",id:"col_"+PA,size:oe,minSize:Ut,maxSize:Xe,enableResizing:YA.canResize,enableSorting:YA.canSort,enablePinning:YA.pinTo!==void 0,meta:{starSizedWidth:Te,pinTo:YA.pinTo,style:YA.style,accessorKey:YA.accessorKey,cellRenderer:YA.cellRenderer}};function Lr(Fr,Zn,Kt){let wn,Nl;const Fn=g2(Fr)?N(Fr):Fr;if(typeof Fn=="number")Nl=Fn;else if(typeof Fn=="string"){const lg=Fn.match(/^\s*\*\s*$/);if(Zn&&lg)wn="1*";else{const xs=Fn.match(/^\s*(\d+)\s*\*\s*$/);if(Zn&&xs)wn=xs[1]+"*";else{const Xh=Fn.match(/^\s*(\d+)\s*(px)?\s*$/);if(Xh)Nl=Number(Xh[1]);else throw new Error(`Invalid TableColumnDef '${Kt}' value: ${Fn}`)}}}return Nl===void 0&&wn===void 0&&Zn&&(wn="1*"),{width:Nl,starSizedWidth:wn}}}),[N,z]),hA=d.useMemo(()=>o?[{id:"select",size:u3A,enableResizing:!1,enablePinning:!0,meta:{pinTo:"left"},header:({table:PA})=>i?Q.jsx(OB,{className:KA(xt.checkBoxWrapper,{[xt.showInHeader]:x}),value:PA.getIsAllRowsSelected(),indeterminate:PA.getIsSomeRowsSelected(),onDidChange:oe=>{S(oe)}}):null,cell:({row:PA})=>Q.jsx(OB,{className:xt.checkBoxWrapper,value:PA.getIsSelected(),indeterminate:PA.getIsSomeSelected(),onDidChange:()=>{Y(PA.original,{metaKey:!0})}})},...cA]:cA,[o,cA,i,x,S,Y]),[EA,IA]=d.useState({pageSize:t?a[0]:Number.MAX_VALUE,pageIndex:0}),DA=Ya(t);d.useEffect(()=>{!DA&&t&&IA(YA=>({...YA,pageSize:a[0]})),DA&&!t&&IA(YA=>({pageIndex:0,pageSize:Number.MAX_VALUE}))},[t,a,DA]);const[SA,JA]=d.useState({}),jA=d.useMemo(()=>{const YA=[],PA=[];return hA.forEach(oe=>{var Te,Ut;((Te=oe.meta)==null?void 0:Te.pinTo)==="right"&&PA.push(oe.id),((Ut=oe.meta)==null?void 0:Ut.pinTo)==="left"&&YA.push(oe.id)}),{left:YA,right:PA}},[hA]),$A=z_A({columns:hA,data:rA,getCoreRowModel:K_A(),getPaginationRowModel:t?$_A():void 0,enableRowSelection:o,enableMultiRowSelection:i,columnResizeMode:"onChange",getRowId:d.useCallback(YA=>YA[AA]+"",[AA]),state:d.useMemo(()=>({pagination:EA,rowSelection:U,columnSizing:SA,columnPinning:jA}),[jA,SA,EA,U]),onColumnSizingChange:JA,onPaginationChange:IA}),VA=$A.getRowModel().rows;d.useEffect(()=>{O(VA.map(YA=>YA.original))},[VA]);const pe=d.useContext(ns),bA=pe&&(C==null?void 0:C.maxHeight)===void 0&&(C==null?void 0:C.height)===void 0&&(C==null?void 0:C.flex)===void 0,qA=d.useCallback((YA,PA)=>kG(YA,(oe,Te)=>{var Xe;const Ut=bA&&((Xe=L.current)==null?void 0:Xe.offsetTop)||0;PA(oe-Ut,Te)}),[bA]),dA=MG({count:VA.length,getScrollElement:d.useCallback(()=>bA&&(pe!=null&&pe.current)?pe==null?void 0:pe.current:L.current,[pe,bA]),observeElementOffset:qA,estimateSize:d.useCallback(()=>G.current||30,[]),overscan:5}),wA=dA.getVirtualItems().length>0&&((Ct=(Ke=dA.getVirtualItems())==null?void 0:Ke[0])==null?void 0:Ct.start)||0,HA=dA.getVirtualItems().length>0?dA.getTotalSize()-(((Ce=(kt=dA.getVirtualItems())==null?void 0:kt[dA.getVirtualItems().length-1])==null?void 0:Ce.end)||0):0,Ae=F.length!==0,ce=d.useRef({}),te=d.useCallback(YA=>{ce.current[YA]=!0},[]),Pe=ze(()=>{if(!P.current)return;let YA=P.current.clientWidth-1;const PA={},oe=[],Te={};$A.getAllColumns().forEach(Xe=>{var Ln,Lr;if(Xe.columnDef.size!==void 0||ce.current[Xe.id])YA-=SA[Xe.id]||Xe.columnDef.size||0;else{oe.push(Xe);let Fr;(Ln=Xe.columnDef.meta)!=null&&Ln.starSizedWidth?Fr=Number((Lr=Xe.columnDef.meta)==null?void 0:Lr.starSizedWidth.replace("*","").trim())||1:Fr=1,Te[Xe.id]=Fr}});const Ut=Object.values(Te).reduce((Xe,Ln)=>Xe+Ln,0);oe.forEach(Xe=>{PA[Xe.id]=Math.floor(YA*(Te[Xe.id]/Ut))}),Dr.flushSync(()=>{JA(Xe=>({...Xe,...PA}))})});return aQ(P,Pe),Aa(()=>{queueMicrotask(()=>{Pe()})},[Pe,z]),Aa(()=>{b(Z)},[b,Z]),Q.jsxs("div",{className:KA(xt.wrapper,{[xt.noScroll]:bA}),tabIndex:-1,onKeyDown:$,ref:T,style:C,children:[Q.jsxs("table",{className:xt.table,ref:P,style:{borderRight:"1px solid transparent"},children:[!v&&Q.jsx("thead",{style:{height:n},className:xt.headerWrapper,children:$A.getHeaderGroups().map((YA,PA)=>Q.jsx("tr",{className:KA(xt.headerRow,{[xt.allSelected]:$A.getIsAllRowsSelected()}),children:YA.headers.map((oe,Te)=>{var Lr,Fr;const{width:Ut,...Xe}=((Lr=oe.column.columnDef.meta)==null?void 0:Lr.style)||{},Ln=oe.getSize();return Q.jsxs("th",{className:xt.columnCell,colSpan:oe.colSpan,style:{position:"relative",width:Ln,...SG(oe.column)},children:[Q.jsx(d3A,{hasSorting:oe.column.columnDef.enableSorting,updateSorting:()=>{var Zn;return X((Zn=oe.column.columnDef.meta)==null?void 0:Zn.accessorKey)},children:Q.jsxs("div",{className:xt.headerContent,style:Xe,children:[IG(oe.column.columnDef.header,oe.getContext()),Q.jsx("span",{style:{display:"inline-flex",maxWidth:16},children:oe.column.columnDef.enableSorting&&Q.jsx(h3A,{iconSortAsc:u,iconSortDesc:g,iconNoSort:h,direction:((Fr=oe.column.columnDef.meta)==null?void 0:Fr.accessorKey)===nA?iA:void 0})})]})}),oe.column.getCanResize()&&Q.jsx("div",{onDoubleClick:()=>{ce.current[oe.column.id]=!1,oe.column.columnDef.size!==void 0?oe.column.resetSize():Pe()},onMouseDown:Zn=>{te(oe.column.id),oe.getResizeHandler()(Zn)},onTouchStart:Zn=>{te(oe.column.id),oe.getResizeHandler()(Zn)},className:KA(xt.resizer,{[xt.isResizing]:oe.column.getIsResizing()})})]},`${oe.id}-${Te}`)})},`${YA.id}-${PA}`))}),Ae&&Q.jsxs("tbody",{className:xt.tableBody,children:[wA>0&&Q.jsx("tr",{children:Q.jsx("td",{style:{height:`${wA}px`}})}),dA.getVirtualItems().map(YA=>{const PA=YA.index,oe=VA[PA];return Q.jsx("tr",{"data-index":PA,className:KA(xt.row,{[xt.selected]:oe.getIsSelected(),[xt.focused]:J===PA,[xt.disabled]:s(oe.original)}),ref:Te=>{Te&&G.current===null&&(G.current=Math.round(Te.getBoundingClientRect().height)),dA.measureElement(Te)},onClick:Te=>{Te.defaultPrevented||Te.target.tagName.toLowerCase()==="input"||Y(oe.original,Te)},children:oe.getVisibleCells().map((Te,Ut)=>{var Lr,Fr;const Xe=(Fr=(Lr=Te.column.columnDef)==null?void 0:Lr.meta)==null?void 0:Fr.cellRenderer,Ln=Te.column.getSize();return Q.jsx("td",{className:xt.cell,style:{width:Ln,...SG(Te.column)},children:Xe?Xe(Te.row.original):IG(Te.column.columnDef.cell,Te.getContext())},`${Te.id}-${Ut}`)})},`${oe.id}-${PA}`)}),HA>0&&Q.jsx("tr",{children:Q.jsx("td",{style:{height:`${HA}px`}})})]})]}),r&&!Ae&&Q.jsx("div",{className:xt.loadingWrapper,children:Q.jsx(iw,{})}),!y&&!r&&!Ae&&(m?m():Q.jsx("div",{className:xt.noRows,children:"No data available"})),t&&Ae&&VA.length>0&&EA&&Q.jsxs("div",{className:xt.pagination,children:[Q.jsx("div",{style:{flex:1},children:Q.jsxs("span",{className:xt.paginationLabel,children:["Showing ",VA[0].original.order," to ",VA[VA.length-1].original.order," of"," ",F.length," entries"]})}),a.length>1&&Q.jsxs("div",{children:[Q.jsx("span",{className:xt.paginationLabel,children:"Rows per page"}),Q.jsx("select",{className:xt.paginationSelect,value:EA.pageSize,onChange:YA=>{$A.setPageSize(Number(YA.target.value))},children:a.map(YA=>Q.jsx("option",{value:YA,children:YA},YA))})]}),Q.jsxs("div",{className:xt.paginationButtons,children:[Q.jsx(or,{onClick:()=>$A.setPageIndex(0),disabled:!$A.getCanPreviousPage(),type:"button",variant:"ghost",children:Q.jsx(kbA,{})}),Q.jsx(or,{onClick:()=>$A.previousPage(),disabled:!$A.getCanPreviousPage(),type:"button",variant:"ghost",children:Q.jsx(m7,{})}),Q.jsx(or,{onClick:()=>$A.nextPage(),disabled:!$A.getCanNextPage(),type:"button",variant:"ghost",children:Q.jsx(Q7,{})}),Q.jsx(or,{onClick:()=>$A.setPageIndex($A.getPageCount()-1),disabled:!$A.getCanNextPage(),type:"button",variant:"ghost",children:Q.jsx(_bA,{})})]})]})]})});function d3A({hasSorting:A,updateSorting:e,children:t}){return A?Q.jsx("button",{className:xt.clickableHeader,onClick:e,children:t}):Q.jsx(Q.Fragment,{children:t})}function h3A({direction:A,iconSortAsc:e="sortasc:Table",iconSortDesc:t="sortdesc:Table",iconNoSort:r="nosort:Table"}){return A==="ascending"?Q.jsx(be,{name:e,fallback:"sortasc",size:"12"}):A==="descending"?Q.jsx(be,{name:t,fallback:"sortdesc",size:"12"}):r!=="-"?Q.jsx(be,{name:r,fallback:"nosort",size:"12"}):Q.jsx(be,{name:r,size:"12"})}const C4=d.createContext({registerColumn:(A,e)=>{},unRegisterColumn:A=>{}});function p3A(){return d.useContext(C4)}const Qe="Table",B3A=kA({description:`\`${Qe}\` is a component that displays cells organized into rows and columns. The \`${Qe}\` component is virtualized so it only renders visible cells.`,props:{items:j("You can use `items` as an alias for the `data` property. When you bind the table to a data source (e.g. an API endpoint), the `data` acts as the property that accepts a URL to fetch information from an API. When both `items` and `data` are used, `items` has priority."),data:j("The component receives data via this property. The `data` property is a list of items that the `Table` can display."),isPaginated:j(`This property adds pagination controls to the \`${Qe}\`.`),loading:j("This boolean property indicates if the component is fetching (or processing) data. This property is useful when data is loaded conditionally or receiving it takes some time."),headerHeight:j("This optional property is used to specify the height of the table header."),rowsSelectable:j("Indicates whether the rows are selectable (`true`) or not (`false`)."),pageSizes:j("Describes how big a page should be for pagination."),rowDisabledPredicate:j("This property defines a predicate function with a return value that determines if the row should be disabled. The function retrieves the item to display and should return a Boolean-like value."),noDataTemplate:zt("A property to customize what to display if the table does not contain any data."),sortBy:j("This property is used to determine which data attributes to sort by."),sortDirection:j("This property determines the sort order to be `ascending` or `descending`. This property only works if the [`sortBy`](#sortby) property is also set."),autoFocus:Fo(),hideHeader:j("Set the header visibility using this property. Set it to `true` to hide the header."),iconNoSort:j(`Allows the customization of the icon displayed in the ${Qe} column header when when sorting is enabled and sorting is not done according to the column.`),iconSortAsc:j(`Allows the customization of the icon displayed in the ${Qe} column header when sorting is enabled, sorting is done according to the column, and the column is sorted in ascending order.`),iconSortDesc:j(`Allows the customization of the icon displayed in the ${Qe} column header when sorting is enabled, sorting is done according to the column, and the column is sorted in descending order.`),enableMultiRowSelection:j("This boolean property indicates whether you can select multiple rows in the table. This property only has an effect when the rowsSelectable property is set. Setting it to `false` limits selection to a single row."),alwaysShowSelectionHeader:j("This property indicates when the row selection header is displayed. When the value is `true,` the selection header is always visible. Otherwise, it is displayed only when hovered.",null,"boolean",!1)},events:{sortingDidChange:j("This event is fired when the table data sorting has changed. It has two arguments: the column's name and the sort direction. When the column name is empty, the table displays the data list as it received it."),willSort:j("This event is fired before the table data is sorted. It has two arguments: the column's name and the sort direction. When the method returns a literal `false` value (and not any other falsy one), the method indicates that the sorting should be aborted."),selectionDidChange:j("This event is triggered when the table's current selection (the rows selected) changes. Its parameter is an array of the selected table row items. ")},apis:{clearSelection:j("This method clears the list of currently selected table rows."),getSelectedItems:j("This method returns the list of currently selected table rows items."),getSelectedIds:j("This method returns the list of currently selected table rows IDs."),selectAll:j("This method selects all the rows in the table. This method has no effect if the rowsSelectable property is set to `false`."),selectId:j("This method selects the row with the specified ID. This method has no effect if the `rowsSelectable` property is set to `false`. The method argument can be a single id or an array of them.")},themeVars:ne(xt.themeVars),defaultThemeVars:{[`padding-horizontal-heading-${Qe}`]:"$space-2",[`padding-vertical-heading-${Qe}`]:"$space-2",[`padding-heading-${Qe}`]:`$padding-vertical-heading-${Qe} $padding-horizontal-heading-${Qe}`,[`padding-horizontal-cell-${Qe}`]:"$space-2",[`padding-horizontal-cell-first-${Qe}`]:"$space-5",[`padding-horizontal-cell-last-${Qe}`]:"$space-5",[`padding-vertical-cell-${Qe}`]:"$space-2",[`padding-cell-${Qe}`]:`$padding-vertical-cell-${Qe} $padding-horizontal-cell-${Qe}`,[`thickness-border-cell-${Qe}`]:"1px",[`style-border-cell-${Qe}`]:"solid",[`border-cell-${Qe}`]:`$thickness-border-cell-${Qe} $style-border-cell-${Qe} $color-border-cell-${Qe}`,[`thickness-outline-heading-${Qe}--focus`]:"$thickness-outline--focus",[`style-outline-heading-${Qe}--focus`]:"$style-outline--focus",[`offset-outline-heading-${Qe}--focus`]:"$offset-outline--focus",[`font-size-heading-${Qe}`]:"$font-size-tiny",[`font-weight-heading-${Qe}`]:"$font-weight-bold",[`transform-text-heading-${Qe}`]:"uppercase",[`font-size-row-${Qe}`]:"$font-size-small",[`color-bg-${Qe}`]:"$color-bg",[`color-bg-row-${Qe}`]:"inherit",[`color-border-cell-${Qe}`]:"$color-border",[`color-bg-selected-${Qe}--hover`]:`$color-bg-row-${Qe}--hover`,[`color-bg-pagination-${Qe}`]:`$color-bg-${Qe}`,[`color-outline-heading-${Qe}--focus`]:"$color-outline--focus",[`color-text-pagination-${Qe}`]:"$color-secondary",light:{[`color-bg-row-${Qe}--hover`]:"$color-primary-50",[`color-bg-selected-${Qe}`]:"$color-primary-100",[`color-bg-heading-${Qe}--hover`]:"$color-surface-200",[`color-bg-heading-${Qe}--active`]:"$color-surface-300",[`color-bg-heading-${Qe}`]:"$color-surface-100",[`color-text-heading-${Qe}`]:"$color-surface-500"},dark:{[`color-bg-row-${Qe}--hover`]:"$color-primary-900",[`color-bg-selected-${Qe}`]:"$color-primary-800",[`color-bg-heading-${Qe}--hover`]:"$color-surface-800",[`color-bg-heading-${Qe}`]:"$color-surface-950",[`color-bg-heading-${Qe}--active`]:"$color-surface-700"}}}),E3A=({extractValue:A,node:e,renderChild:t,lookupEventHandler:r,lookupSyncCallback:n,layoutCss:o,registerComponentApi:i})=>{var y,x,b,k,M,N;const a=A(e.props.items)||A(e.props.data),[s,l]=d.useState(Jt),[c,u]=d.useState(qe),g=d.useRef([]),[h,B]=d.useState(0),E=d.useMemo(()=>({registerColumn:(F,L)=>{l(No(T=>{T.findIndex(G=>G===L)<0&&T.push(L)})),u(No(T=>{T[L]=F}))},unRegisterColumn:F=>{l(No(L=>L.filter(T=>T!==F))),u(No(L=>{delete L[F]}))}}),[]),C=d.useMemo(()=>({registerColumn:(F,L)=>{g.current.find(T=>T===L)||(B(T=>T+1),g.current.push(L))},unRegisterColumn:F=>{g.current.find(L=>L===F)&&(g.current=g.current.filter(L=>L!==F),B(L=>L+1))}}),[]),m=d.useMemo(()=>s.map(F=>c[F]),[s,c]),I=yG(),v=Q.jsxs(Q.Fragment,{children:[Q.jsx(C4.Provider,{value:E,children:t(e.children)},h),Q.jsx(C4.Provider,{value:C,children:t(e.children)}),Q.jsx(g3A,{data:a,columns:m,pageSizes:A(e.props.pageSizes),rowsSelectable:A.asOptionalBoolean(e.props.rowsSelectable),registerComponentApi:i,noDataRenderer:e.props.noDataTemplate&&(()=>t(e.props.noDataTemplate)),hideNoDataView:e.props.noDataTemplate===null||e.props.noDataTemplate==="",loading:A.asOptionalBoolean(e.props.loading),isPaginated:A.asOptionalBoolean((y=e.props)==null?void 0:y.isPaginated),headerHeight:A.asSize(e.props.headerHeight),rowDisabledPredicate:n(e.props.rowDisabledPredicate),sortBy:A((x=e.props)==null?void 0:x.sortBy),sortingDirection:A((b=e.props)==null?void 0:b.sortDirection),iconSortAsc:A.asOptionalString((k=e.props)==null?void 0:k.iconSortAsc),iconSortDesc:A.asOptionalString((M=e.props)==null?void 0:M.iconSortDesc),iconNoSort:A.asOptionalString((N=e.props)==null?void 0:N.iconNoSort),sortingDidChange:r("sortingDidChange"),onSelectionDidChange:r("selectionDidChange"),willSort:r("willSort"),style:o,uid:e.uid,autoFocus:A.asOptionalBoolean(e.props.autoFocus),hideHeader:A.asOptionalBoolean(e.props.hideHeader),enableMultiRowSelection:A.asOptionalBoolean(e.props.enableMultiRowSelection),alwaysShowSelectionHeader:A.asOptionalBoolean(e.props.alwaysShowSelectionHeader)})]});return I===null?Q.jsx(V_A,{children:v}):v},C3A=RA(Qe,B3A,({extractValue:A,node:e,renderChild:t,lookupEventHandler:r,lookupSyncCallback:n,layoutCss:o,registerComponentApi:i})=>Q.jsx(E3A,{node:e,extractValue:A,lookupEventHandler:r,lookupSyncCallback:n,layoutCss:o,renderChild:t,registerComponentApi:i})),ww={themeVars:`'{"color-bg-StickyBox": "var(--xmlui-color-bg-StickyBox)"}'`,wrapper:"_wrapper_1qgtv_13",top:"_top_1qgtv_18",bottom:"_bottom_1qgtv_21"};function m3A({children:A,uid:e,layout:t,to:r="top"}){return Q.jsx("div",{className:KA(ww.wrapper,{[ww.top]:r==="top",[ww.bottom]:r==="bottom"}),style:t,children:A})}const m4="StickyBox",Q3A=kA({status:"experimental",description:`The \`${m4}\` is a component that "sticks" or remains fixed at the top or bottom position on the screen as the user scrolls.`,props:{to:j("This property determines whether the StickyBox should be anchored to the `top` or `bottom`.")},themeVars:ne(ww.themeVars),defaultThemeVars:{[`color-bg-${m4}`]:"$color-bg"}}),w3A=RA(m4,Q3A,({node:A,renderChild:e,extractValue:t,layoutCss:r})=>{var n;return Q.jsx(m3A,{uid:A.uid,layout:r,to:t((n=A.props)==null?void 0:n.to),children:e(A.children)})}),Q4={themeVars:`'{"color-bg-Badge": "var(--xmlui-color-bg-Badge)", "radius-Badge": "var(--xmlui-radius-Badge)", "color-text-Badge": "var(--xmlui-color-text-Badge)", "font-size-Badge": "var(--xmlui-font-size-Badge)", "font-size-Badge-pill": "var(--xmlui-font-size-Badge-pill)", "font-weight-Badge": "var(--xmlui-font-weight-Badge)", "font-weight-Badge-pill": "var(--xmlui-font-weight-Badge-pill)", "padding-horizontal-Badge": "var(--xmlui-padding-horizontal-Badge)", "padding-vertical-Badge": "var(--xmlui-padding-vertical-Badge)", "padding-Badge": "var(--xmlui-padding-Badge)", "padding-horizontal-Badge-pill": "var(--xmlui-padding-horizontal-Badge-pill)", "padding-vertical-Badge-pill": "var(--xmlui-padding-vertical-Badge-pill)", "padding-Badge-pill": "var(--xmlui-padding-Badge-pill)"}'`,badge:"_badge_xcyhw_13",pill:"_pill_xcyhw_29"},I3A=d.forwardRef(function({children:e,color:t,variant:r="badge"},n){return Q.jsx("div",{ref:n,className:KA({[Q4.badge]:r==="badge",[Q4.pill]:r==="pill"}),style:t?typeof t=="string"?{backgroundColor:t}:{backgroundColor:t.background,color:t.label}:void 0,children:e})}),rn="Badge",v3A=kA({status:"stable",description:`The \`${rn}\` is a text label that accepts a color map to define its background color and, optionally, its label color.`,props:{value:j("The text that the component displays"),variant:j("Modifies the shape of the component. Comes in the regular `badge` variant or the `pill` variant with fully rounded corners."),colorMap:j(`The \`${rn}\` component supports the mapping of a list of colors using the \`value\` prop as the key. Provide the component with a list or key-value pairs in two ways:`),themeColor:j("(**NOT IMPLEMENTED YET**) The theme color of the component."),indicatorText:j("(**NOT IMPLEMENTED YET**) This property defines the text to display in the indicator. If it is not defined or empty, no indicator is displayed unless the `forceIndicator` property is set."),forceIndicator:j("(**NOT IMPLEMENTED YET**) This property forces the display of the indicator, even if the `indicatorText` property is not defined or empty."),indicatorThemeColor:j("(**NOT IMPLEMENTED YET**) The theme color of the indicator."),indicatorPosition:j("(**NOT IMPLEMENTED YET**) The position of the indicator.")},events:{},themeVars:ne(Q4.themeVars),defaultThemeVars:{[`padding-horizontal-${rn}`]:"$space-2",[`padding-vertical-${rn}`]:"$space-0_5",[`padding-${rn}`]:`$padding-vertical-${rn} $padding-horizontal-${rn}`,[`padding-${rn}-pill`]:`$padding-vertical-${rn}-pill $padding-horizontal-${rn}-pill`,[`radius-${rn}`]:"4px",[`font-size-${rn}`]:"0.8em",[`font-size-${rn}-pill`]:"0.8em",light:{[`color-bg-${rn}`]:"rgba($color-secondary-500-rgb, .6)",[`color-text-${rn}`]:"white"},dark:{[`color-bg-${rn}`]:"rgba($color-secondary-500-rgb, .6)",[`color-text-${rn}`]:"$color-surface-50"}}}),D3A=RA(rn,v3A,({node:A,extractValue:e,renderChild:t})=>{var o;const r=e.asDisplayText(A.props.value),n=e((o=A.props)==null?void 0:o.colorMap);return Q.jsx(I3A,{variant:e(A.props.variant),color:n==null?void 0:n[r],children:r||t(A.children)})}),of={themeVars:`'{"color-bg-Avatar": "var(--xmlui-color-bg-Avatar)", "color-border-Avatar": "var(--xmlui-color-border-Avatar)", "thickness-border-Avatar": "var(--xmlui-thickness-border-Avatar)", "style-border-Avatar": "var(--xmlui-style-border-Avatar)", "border-Avatar": "var(--xmlui-border-Avatar)", "radius-Avatar": "var(--xmlui-radius-Avatar)", "shadow-Avatar": "var(--xmlui-shadow-Avatar)", "color-text-Avatar": "var(--xmlui-color-text-Avatar)", "font-weight-Avatar": "var(--xmlui-font-weight-Avatar)"}'`,container:"_container_1fbc9_13",xs:"_xs_1fbc9_34",sm:"_sm_1fbc9_41",md:"_md_1fbc9_48",lg:"_lg_1fbc9_55",clickable:"_clickable_1fbc9_62"},NG=d.forwardRef(function({size:e="sm",url:t,name:r,style:n,onClick:o,...i},a){let s=null;return!t&&r&&(s=r.trim().split(" ").filter(l=>!!l.trim().length).map(l=>l[0].toUpperCase()).slice(0,3)),Q.jsx("div",{...i,ref:a,className:KA(of.container,{[of.xs]:e==="xs",[of.sm]:e==="sm",[of.md]:e==="md",[of.lg]:e==="lg",[of.clickable]:!!o}),style:{backgroundImage:t?`url(${t})`:"none",...n},onClick:o,children:s})}),Kr="Avatar",y3A=kA({description:`The \`${Kr}\` component represents a user, group (or other entity's) avatar with a small image or initials.`,props:{size:j(`This property defines the display size of the ${Kr}.`,HQ,"string","sm"),name:j(`This property sets the name value the ${Kr} uses to display initials.`),url:j(`This property specifies the URL of the image to display in the ${Kr}.`)},events:{click:j("This event is triggered when the avatar is clicked.")},themeVars:ne(of.themeVars),defaultThemeVars:{[`radius-${Kr}`]:"4px",[`thickness-border-${Kr}`]:"0px",[`style-border-${Kr}`]:"solid",[`border-${Kr}`]:`$thickness-border-${Kr} $style-border-${Kr} $color-border-${Kr}`,[`shadow-${Kr}`]:"inset 0 0 0 1px rgba(4,32,69,0.1)",[`color-text-${Kr}`]:"$color-text-secondary",[`font-weight-${Kr}`]:"$font-weight-bold",light:{[`color-bg-${Kr}`]:"$color-surface-100",[`color-border-${Kr}`]:"$color-surface-400A80"},dark:{[`color-bg-${Kr}`]:"$color-surface-800",[`color-border-${Kr}`]:"$color-surface-700"}}}),b3A=RA(Kr,y3A,({node:A,extractValue:e,lookupEventHandler:t,layoutCss:r,extractResourceUrl:n})=>{var o;return Q.jsx(NG,{size:(o=A.props)==null?void 0:o.size,url:n(A.props.url),name:e(A.props.name),style:r,onClick:t("click")})}),Iw={themeVars:`'{"color-bg-ContentSeparator": "var(--xmlui-color-bg-ContentSeparator)", "size-ContentSeparator": "var(--xmlui-size-ContentSeparator)"}'`,separator:"_separator_qlxwk_13",horizontal:"_horizontal_qlxwk_16",vertical:"_vertical_qlxwk_20"},RG=({orientation:A="horizontal",size:e,style:t})=>Q.jsx("div",{className:KA(Iw.separator,{[Iw.horizontal]:A==="horizontal",[Iw.vertical]:A==="vertical"}),style:{height:A==="horizontal"?e:void 0,width:A==="horizontal"?"100%":e,...t}}),vw="ContentSeparator",x3A=kA({description:`A \`${vw}\` is a component that divides or separates content visually within a layout. It serves as a visual cue to distinguish between different sections or groups of content, helping to improve readability and organization.`,props:{size:j("This property defines the component's height (if the `orientation` is horizontal) or the width (if the `orientation` is vertical)."),orientation:j("Sets the main axis of the component",vk)},themeVars:ne(Iw.themeVars),defaultThemeVars:{[`color-bg-${vw}`]:"$color-border",[`size-${vw}`]:"1px",light:{},dark:{}}}),k3A=RA(vw,x3A,({node:A,layoutCss:e,layoutNonCss:t,extractValue:r})=>Q.jsx(RG,{orientation:t.orientation,size:r.asSize(A.props.size),style:e})),GB={themeVars:`'{"padding-Card": "var(--xmlui-padding-Card)", "padding-horizontal-Card": "var(--xmlui-padding-horizontal-Card)", "padding-vertical-Card": "var(--xmlui-padding-vertical-Card)", "shadow-Card": "var(--xmlui-shadow-Card)", "color-bg-Card": "var(--xmlui-color-bg-Card)", "radius-Card": "var(--xmlui-radius-Card)", "color-border-Card": "var(--xmlui-color-border-Card)", "thickness-border-Card": "var(--xmlui-thickness-border-Card)", "style-border-Card": "var(--xmlui-style-border-Card)", "border-Card": "var(--xmlui-border-Card)"}'`,wrapper:"_wrapper_qmtvs_13",horizontal:"_horizontal_qmtvs_23",vertical:"_vertical_qmtvs_28",isClickable:"_isClickable_qmtvs_31"},PG="vertical",TG=d.forwardRef(function({children:e,orientation:t=PG,style:r,title:n,subtitle:o,linkTo:i,avatarUrl:a,showAvatar:s=!!a||!1,onClick:l},c){const u={level:"h2"};return Q.jsxs("div",{ref:c,className:KA(GB.wrapper,{[GB.isClickable]:!!l,[GB.vertical]:t==="vertical",[GB.horizontal]:t==="horizontal"}),style:r,onClick:l,children:[[n,o,a,s].some(Boolean)&&Q.jsxs(co,{orientation:"horizontal",verticalAlignment:"center",style:{gap:"1rem"},children:[s&&Q.jsx(NG,{url:a,name:n}),Q.jsxs(co,{orientation:"vertical",children:[i?n?Q.jsx(A4,{to:i+"",children:Q.jsx(Zs,{...u,children:n})}):null:n?Q.jsx(Zs,{...u,children:n}):null,o!==void 0&&Q.jsx(Bn,{variant:"small",children:o})]})]}),e]})}),ir="Card",_3A=kA({description:`The \`${ir}\` component is a container for cohesive elements, often rendered visually as a card.`,props:{avatarUrl:j(`Show the avatar (\`true\`) or not (\`false\`). If not specified, the ${ir} will show the first letters of the [\`title\`](#title).`),showAvatar:j(`Indicates whether the ${ir} should be displayed`,null,"boolean"),title:j("This prop sets the prestyled title."),subtitle:j("This prop sets the prestyled subtitle."),linkTo:j("This property wraps the title in a `Link` component that is clickable to navigate."),orientation:j(`An optional property that governs the ${ir}'s orientation (whether the ${ir} lays out its children in a row or a column). If the orientation is set to \`horizontal\`, the ${ir} will display its children in a row, except for its [\`title\`](#title) and [\`subtitle\`](#subtitle).`,vk,"string",PG)},events:{click:sc(ir)},themeVars:ne(GB.themeVars),defaultThemeVars:{[`padding-horizontal-${ir}`]:"$space-4",[`padding-vertical-${ir}`]:"$space-4",[`padding-${ir}`]:`$padding-vertical-${ir} $padding-horizontal-${ir}`,[`color-border-${ir}`]:"$color-border",[`thickness-border-${ir}`]:"1px",[`style-border-${ir}`]:"solid",[`border-${ir}`]:`$thickness-border-${ir} $style-border-${ir} $color-border-${ir}`,[`radius-${ir}`]:"$radius",[`shadow-${ir}`]:"none",light:{[`color-bg-${ir}`]:"white"},dark:{[`color-bg-${ir}`]:"$color-surface-900"}}}),M3A=RA("Card",_3A,({node:A,extractValue:e,renderChild:t,layoutCss:r})=>Q.jsx(TG,{style:r,title:e.asOptionalString(A.props.title),linkTo:e.asOptionalString(A.props.linkTo),subtitle:e.asOptionalString(A.props.subtitle),avatarUrl:e.asOptionalString(A.props.avatarUrl),showAvatar:e.asOptionalBoolean(A.props.showAvatar),orientation:e.asOptionalString(A.props.orientation),children:t(A.children,{type:"Stack",orientation:"vertical"})})),dc={themeVars:'"[]"',outer:"_outer_aarhe_13",flowContainer:"_flowContainer_aarhe_17",horizontal:"_horizontal_aarhe_21",flowItem:"_flowItem_aarhe_24",vertical:"_vertical_aarhe_32",break:"_break_aarhe_47",forceBreak:"_forceBreak_aarhe_47",starSized:"_starSized_aarhe_47"},w4={},LG=d.createContext({rowGap:0,columnGap:0,setNumberOfChildren:$l}),FG=({force:A})=>Q.jsx("div",{className:KA(dc.break,{[dc.forceBreak]:A})}),S3A=d.forwardRef(function({children:e,forceBreak:t,...r},n){const{rowGap:o,columnGap:i,setNumberOfChildren:a}=d.useContext(LG);Aa(()=>(a(M=>M+1),()=>{a(M=>M-1)}),[a]);const{activeTheme:s,root:l}=nr(),c=r.width||"100%",u=r.minWidth||void 0,g=r.maxWidth||void 0,{width:h=c,minWidth:B,maxWidth:E,flex:C}=d.useMemo(()=>i7({width:c,maxWidth:g,minWidth:u},s.themeVars,{type:"Stack",orientation:"horizontal"}).cssProps||{},[g,u,c,s.themeVars]),m=d.useMemo(()=>{if(h&&typeof h=="string"&&h.startsWith("var(")){if(!w4[h]){const M=h.substring(4,h.length-1),N=getComputedStyle(l).getPropertyValue(M);w4[h]=N||c}return w4[h]}return h||c},[c,l,h]),I=typeof m=="string"&&m.endsWith("%"),v=_4A(i),y=Xl("(max-width: 420px)"),x=Xl("(max-width: 800px)"),b={minWidth:B,maxWidth:E,width:I?`min(${h} * ${y?"8":x?"4":"1"}, 100%)`:`min(calc(${h} + ${v}), 100%)`,paddingBottom:o,flex:C},k=C!==void 0;return k&&(b.width="100%",b.minWidth=B||"1px"),Q.jsxs(Q.Fragment,{children:[Q.jsx("div",{style:{...b,paddingRight:v},className:KA(dc.flowItem,{[dc.starSized]:k}),ref:n,children:e}),k&&Q.jsx(FG,{})]})}),N3A=d.forwardRef(function({style:e,columnGap:t=0,rowGap:r=0,children:n},o){const[i,a]=d.useState(0),s=i===1?0:t,l=iG(r),c=iG(s),u=d.useMemo(()=>({marginRight:`calc(-1 * ${c})`,marginBottom:`calc(-1 * ${l})`}),[c,l]),g=d.useMemo(()=>({rowGap:l,columnGap:c,setNumberOfChildren:a}),[c,l]);return Q.jsx(LG.Provider,{value:g,children:Q.jsx("div",{style:e,ref:o,children:Q.jsx("div",{className:dc.outer,children:Q.jsx("div",{className:KA(dc.flowContainer,dc.horizontal),style:u,children:n})})})})}),Dw="FlowLayout",R3A=kA({description:"This layout component is used to position content in rows with an auto wrapping feature: if the length of the items exceed the available space the layout will wrap into a new line.",props:{gap:j(`This property defines the gap between items in the same row and between rows. The ${Dw} component creates a new row when an item is about to overflow the current row.`),columnGap:j("The `columnGap` property specifies the space between items in a single row; it overrides the `gap` value."),rowGap:j(`The \`rowGap\` property specifies the space between the ${Dw} rows; it overrides the \`gap\` value.`),shadow:j(`${Dw} does not support shadow, we're waiting for a decent solution.`)},themeVars:ne(dc.themeVars)}),P3A=RA(Dw,R3A,({node:A,renderChild:e,layoutCss:t,extractValue:r})=>{var i,a;if(!F2(A.children))throw new QB;const n=r.asSize((i=A.props)==null?void 0:i.columnGap)||t.gap||r.asSize("$space-4"),o=r.asSize((a=A.props)==null?void 0:a.rowGap)||t.gap||r.asSize("$space-4");return Q.jsx(N3A,{style:t,columnGap:n,rowGap:o,children:e(A.children,{wrapChild:({node:s,extractValue:l},c,u)=>{var E,C,m;if(u!=null&&u.opaque)return c;if(s.type==="SpaceFiller")return Q.jsx(FG,{force:!0});const g=l((E=s.props)==null?void 0:E.width),h=l((C=s.props)==null?void 0:C.minWidth),B=l((m=s.props)==null?void 0:m.maxWidth);return Q.jsx(S3A,{width:g,minWidth:h,maxWidth:B,forceBreak:s.type==="SpaceFiller",children:c})}})})});function yw(A,e){return{[`padding-left-${A}`]:(e==null?void 0:e.left)??`$padding-horizontal-${A}`,[`padding-right-${A}`]:(e==null?void 0:e.right)??`$padding-horizontal-${A}`,[`padding-top-${A}`]:(e==null?void 0:e.top)??`$padding-vertical-${A}`,[`padding-bottom-${A}`]:(e==null?void 0:e.bottom)??`$padding-vertical-${A}`,[`padding-horizontal-${A}`]:(e==null?void 0:e.horizontal)??"",[`padding-vertical-${A}`]:(e==null?void 0:e.vertical)??"",[`padding-${A}`]:(e==null?void 0:e.all)??`$padding-top-${A} $padding-right-${A} $padding-bottom-${A} $padding-left-${A}`}}function I4(A,e){var r,n,o,i,a,s;return{[`radius-${A}`]:"$radius",...t("left",(e==null?void 0:e.left)??(e==null?void 0:e.horizontal)??(e==null?void 0:e.all)),...t("right",(e==null?void 0:e.right)??(e==null?void 0:e.horizontal)??(e==null?void 0:e.all)),...t("top",(e==null?void 0:e.top)??(e==null?void 0:e.vertical)??(e==null?void 0:e.all)),...t("bottom",(e==null?void 0:e.bottom)??(e==null?void 0:e.vertical)??(e==null?void 0:e.all)),...t("horizontal",(e==null?void 0:e.horizontal)??(e==null?void 0:e.all)),...t("vertical",(e==null?void 0:e.vertical)??(e==null?void 0:e.all)),[`color-border-${A}`]:((r=e==null?void 0:e.all)==null?void 0:r.color)??"",[`thickness-border-${A}`]:((n=e==null?void 0:e.all)==null?void 0:n.thickness)??"",[`style-border-${A}`]:((o=e==null?void 0:e.all)==null?void 0:o.style)??"",[`border-${A}`]:`${((i=e==null?void 0:e.all)==null?void 0:i.thickness)??`$thickness-border-${A}`} ${((a=e==null?void 0:e.all)==null?void 0:a.style)??`$style-border-${A}`} ${((s=e==null?void 0:e.all)==null?void 0:s.color)??`$color-border-${A}`} `};function t(l,c){return{[`color-border-${l}-${A}`]:(c==null?void 0:c.color)??"",[`thickness-border-${l}-${A}`]:(c==null?void 0:c.thickness)??"",[`style-border-${l}-${A}`]:(c==null?void 0:c.style)??"",[`border-${l}-${A}`]:(c==null?void 0:c.all)??`$thickness-border-${l}-${A} $style-border-${l}-${A} $color-border-${l}-${A}`}}}const uo="ModalDialog",T3A=kA({description:`The \`${uo}\` component defines a modal dialog UI element that can be displayed over the existing UI - triggered by some action.`,props:{fullScreen:j("Toggles whether the dialog encompasses the whole UI (`true`) or not and has a minimum width and height (`false`)."),title:j("Provides a prestyled heading to display the intent of the dialog."),closeButtonVisible:j("Shows (`true`) or hides (`false`) the visibility of the close button on the dialog."),isInitiallyOpen:j("This property sets whether the modal dialog appears open (`true`) or not (`false`) when the page is it is defined on is rendered.")},events:{open:j(`This event is fired when the \`${uo}\` is opened either via a \`when\` or an imperative API call (\`open()\`).`),close:j(`This event is fired when the close button is pressed or the user clicks outside the \`${uo}\`.`)},apis:{close:j(`This method is used to close the \`${uo}\`. Invoke it using \`modalId.close()\` where \`modalId\` refers to a \`ModalDialog\` component.`),open:j("This method imperatively opens the modal dialog. You can pass an arbitrary number of parameters to the method. In the `ModalDialog` instance, you can access those with the `$paramq` and `$params` context values.")},contextVars:{$param:j("This value represents the first parameters passed to the `open()` method to display the modal dialog."),$params:j("This value represents the array of parameters passed to the `open()` method. You can use `$params[0]` to access the first and `$params[1]` to access the second (and so on) parameters. `$param` is the same as `$params[0]`.")},themeVars:ne(rc.themeVars),defaultThemeVars:{...yw(uo,{all:"$space-7"}),[`color-bg-${uo}`]:"$color-bg-primary",[`color-bg-overlay-${uo}`]:"$color-bg-overlay",[`color-text-${uo}`]:"$color-text-primary",[`radius-${uo}`]:"$radius",[`font-family-${uo}`]:"$font-family",[`max-width-${uo}`]:"450px",[`margin-bottom-title-${uo}`]:"0",dark:{[`color-bg-${uo}`]:"$color-bg-primary"}}}),L3A=RA(uo,T3A,({node:A,extractValue:e,layoutCss:t,renderChild:r,lookupEventHandler:n,registerComponentApi:o,layoutContext:i})=>{var a,s;return i!=null&&i._insideModalFrame?Q.jsx(Qd,{style:t,fullScreen:e((a=A.props)==null?void 0:a.fullScreen),title:e((s=A.props)==null?void 0:s.title),closeButtonVisible:e.asOptionalBoolean(A.props.closeButtonVisible),children:r(A.children,{type:"Stack"})}):Q.jsx(NyA,{isInitiallyOpen:A.when!==void 0,registerComponentApi:o,onClose:n("close"),onOpen:n("open"),renderDialog:({openParams:l,ref:c})=>Q.jsx(Oo,{node:A,renderChild:r,layoutContext:{_insideModalFrame:!0},contextVars:{$param:l==null?void 0:l[0],$params:l}})})}),v4={themeVars:`'{"padding-vertical-NoResult": "var(--xmlui-padding-vertical-NoResult)", "gap-icon-NoResult": "var(--xmlui-gap-icon-NoResult)", "size-icon-NoResult": "var(--xmlui-size-icon-NoResult)"}'`,wrapper:"_wrapper_9giub_13",icon:"_icon_9giub_22"},F3A=d.forwardRef(function({label:e,icon:t,hideIcon:r=!1,style:n},o){return Q.jsxs("div",{className:v4.wrapper,style:n,ref:o,children:[!r&&Q.jsx(be,{name:t??"noresult",className:v4.icon}),e]})}),UB="NoResult",O3A=kA({description:`\`${UB}\` is a component that displays a visual indication that some data query (search) resulted in no (zero) items.`,props:{label:pn(),icon:j("This property defines the icon to display with the component."),hideIcon:j("This boolean property indicates if the icon should be hidden.")},themeVars:ne(v4.themeVars),defaultThemeVars:{[`padding-vertical-${UB}`]:"$space-2",[`gap-icon-${UB}`]:"$space-2",[`size-icon-${UB}`]:"$space-8",light:{},dark:{}}}),H3A=RA(UB,O3A,({node:A,extractValue:e,layoutCss:t})=>Q.jsx(F3A,{label:e.asDisplayText(A.props.label||A.children||"No results found"),icon:A.props.icon,hideIcon:e.asOptionalBoolean(A.props.hideIcon),style:t})),D4={themeVars:`'{"color-bg-FileUploadDropZone": "var(--xmlui-color-bg-FileUploadDropZone)", "color-text-FileUploadDropZone": "var(--xmlui-color-text-FileUploadDropZone)", "color-bg-dropping-FileUploadDropZone": "var(--xmlui-color-bg-dropping-FileUploadDropZone)", "opacity-dropping-FileUploadDropZone": "var(--xmlui-opacity-dropping-FileUploadDropZone)"}'`,wrapper:"_wrapper_u50h5_13",dropPlaceholder:"_dropPlaceholder_u50h5_21"};var G3A=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function KB(A,e){var t=U3A(A);if(typeof t.path!="string"){var r=A.webkitRelativePath;Object.defineProperty(t,"path",{value:typeof e=="string"?e:typeof r=="string"&&r.length>0?r:A.name,writable:!1,configurable:!1,enumerable:!0})}return t}function U3A(A){var e=A.name,t=e&&e.lastIndexOf(".")!==-1;if(t&&!A.type){var r=e.split(".").pop().toLowerCase(),n=G3A.get(r);n&&Object.defineProperty(A,"type",{value:n,writable:!1,configurable:!1,enumerable:!0})}return A}var K3A=[".DS_Store","Thumbs.db"];function Y3A(A){return gd(this,void 0,void 0,function(){return dd(this,function(e){return bw(A)&&$3A(A.dataTransfer)?[2,z3A(A.dataTransfer,A.type)]:j3A(A)?[2,q3A(A)]:Array.isArray(A)&&A.every(function(t){return"getFile"in t&&typeof t.getFile=="function"})?[2,J3A(A)]:[2,[]]})})}function $3A(A){return bw(A)}function j3A(A){return bw(A)&&bw(A.target)}function bw(A){return typeof A=="object"&&A!==null}function q3A(A){return y4(A.target.files).map(function(e){return KB(e)})}function J3A(A){return gd(this,void 0,void 0,function(){var e;return dd(this,function(t){switch(t.label){case 0:return[4,Promise.all(A.map(function(r){return r.getFile()}))];case 1:return e=t.sent(),[2,e.map(function(r){return KB(r)})]}})})}function z3A(A,e){return gd(this,void 0,void 0,function(){var t,r;return dd(this,function(n){switch(n.label){case 0:return A.items?(t=y4(A.items).filter(function(o){return o.kind==="file"}),e!=="drop"?[2,t]:[4,Promise.all(t.map(W3A))]):[3,2];case 1:return r=n.sent(),[2,OG(HG(r))];case 2:return[2,OG(y4(A.files).map(function(o){return KB(o)}))]}})})}function OG(A){return A.filter(function(e){return K3A.indexOf(e.name)===-1})}function y4(A){if(A===null)return[];for(var e=[],t=0;t<A.length;t++){var r=A[t];e.push(r)}return e}function W3A(A){if(typeof A.webkitGetAsEntry!="function")return GG(A);var e=A.webkitGetAsEntry();return e&&e.isDirectory?UG(e):GG(A)}function HG(A){return A.reduce(function(e,t){return hd(hd([],bH(e),!1),bH(Array.isArray(t)?HG(t):[t]),!1)},[])}function GG(A){var e=A.getAsFile();if(!e)return Promise.reject("".concat(A," is not a File"));var t=KB(e);return Promise.resolve(t)}function V3A(A){return gd(this,void 0,void 0,function(){return dd(this,function(e){return[2,A.isDirectory?UG(A):X3A(A)]})})}function UG(A){var e=A.createReader();return new Promise(function(t,r){var n=[];function o(){var i=this;e.readEntries(function(a){return gd(i,void 0,void 0,function(){var s,l,c;return dd(this,function(u){switch(u.label){case 0:if(a.length)return[3,5];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,Promise.all(n)];case 2:return s=u.sent(),t(s),[3,4];case 3:return l=u.sent(),r(l),[3,4];case 4:return[3,6];case 5:c=Promise.all(a.map(V3A)),n.push(c),o(),u.label=6;case 6:return[2]}})})},function(a){r(a)})}o()})}function X3A(A){return gd(this,void 0,void 0,function(){return dd(this,function(e){return[2,new Promise(function(t,r){A.file(function(n){var o=KB(n,A.fullPath);t(o)},function(n){r(n)})})]})})}var Z3A=function(A,e){if(A&&e){var t=Array.isArray(e)?e:e.split(","),r=A.name||"",n=(A.type||"").toLowerCase(),o=n.replace(/\/.*$/,"");return t.some(function(i){var a=i.trim().toLowerCase();return a.charAt(0)==="."?r.toLowerCase().endsWith(a):a.endsWith("/*")?o===a.replace(/\/.*$/,""):n===a})}return!0};function KG(A){return t8A(A)||e8A(A)||qG(A)||A8A()}function A8A(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
416
416
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e8A(A){if(typeof Symbol<"u"&&A[Symbol.iterator]!=null||A["@@iterator"]!=null)return Array.from(A)}function t8A(A){if(Array.isArray(A))return b4(A)}function YG(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(A);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(A,n).enumerable})),t.push.apply(t,r)}return t}function $G(A){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?YG(Object(t),!0).forEach(function(r){jG(A,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(t)):YG(Object(t)).forEach(function(r){Object.defineProperty(A,r,Object.getOwnPropertyDescriptor(t,r))})}return A}function jG(A,e,t){return e in A?Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):A[e]=t,A}function YB(A,e){return o8A(A)||n8A(A,e)||qG(A,e)||r8A()}function r8A(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
417
417
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qG(A,e){if(A){if(typeof A=="string")return b4(A,e);var t=Object.prototype.toString.call(A).slice(8,-1);if(t==="Object"&&A.constructor&&(t=A.constructor.name),t==="Map"||t==="Set")return Array.from(A);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return b4(A,e)}}function b4(A,e){(e==null||e>A.length)&&(e=A.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=A[t];return r}function n8A(A,e){var t=A==null?null:typeof Symbol<"u"&&A[Symbol.iterator]||A["@@iterator"];if(t!=null){var r=[],n=!0,o=!1,i,a;try{for(t=t.call(A);!(n=(i=t.next()).done)&&(r.push(i.value),!(e&&r.length===e));n=!0);}catch(s){o=!0,a=s}finally{try{!n&&t.return!=null&&t.return()}finally{if(o)throw a}}return r}}function o8A(A){if(Array.isArray(A))return A}var JG="file-invalid-type",zG="file-too-large",WG="file-too-small",VG="too-many-files",i8A={FileInvalidType:JG,FileTooLarge:zG,FileTooSmall:WG,TooManyFiles:VG},a8A=function(e){e=Array.isArray(e)&&e.length===1?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:JG,message:"File type must be ".concat(t)}},XG=function(e){return{code:zG,message:"File is larger than ".concat(e," ").concat(e===1?"byte":"bytes")}},ZG=function(e){return{code:WG,message:"File is smaller than ".concat(e," ").concat(e===1?"byte":"bytes")}},s8A={code:VG,message:"Too many files"};function AU(A,e){var t=A.type==="application/x-moz-file"||Z3A(A,e);return[t,t?null:a8A(e)]}function eU(A,e,t){if(af(A.size))if(af(e)&&af(t)){if(A.size>t)return[!1,XG(t)];if(A.size<e)return[!1,ZG(e)]}else{if(af(e)&&A.size<e)return[!1,ZG(e)];if(af(t)&&A.size>t)return[!1,XG(t)]}return[!0,null]}function af(A){return A!=null}function l8A(A){var e=A.files,t=A.accept,r=A.minSize,n=A.maxSize,o=A.multiple,i=A.maxFiles,a=A.validator;return!o&&e.length>1||o&&i>=1&&e.length>i?!1:e.every(function(s){var l=AU(s,t),c=YB(l,1),u=c[0],g=eU(s,r,n),h=YB(g,1),B=h[0],E=a?a(s):null;return u&&B&&!E})}function xw(A){return typeof A.isPropagationStopped=="function"?A.isPropagationStopped():typeof A.cancelBubble<"u"?A.cancelBubble:!1}function kw(A){return A.dataTransfer?Array.prototype.some.call(A.dataTransfer.types,function(e){return e==="Files"||e==="application/x-moz-file"}):!!A.target&&!!A.target.files}function tU(A){A.preventDefault()}function c8A(A){return A.indexOf("MSIE")!==-1||A.indexOf("Trident/")!==-1}function u8A(A){return A.indexOf("Edge/")!==-1}function f8A(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return c8A(A)||u8A(A)}function is(){for(var A=arguments.length,e=new Array(A),t=0;t<A;t++)e[t]=arguments[t];return function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return e.some(function(a){return!xw(r)&&a&&a.apply(void 0,[r].concat(o)),xw(r)})}}function g8A(){return"showOpenFilePicker"in window}function d8A(A){if(af(A)){var e=Object.entries(A).filter(function(t){var r=YB(t,2),n=r[0],o=r[1],i=!0;return rU(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),i=!1),(!Array.isArray(o)||!o.every(nU))&&(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),i=!1),i}).reduce(function(t,r){var n=YB(r,2),o=n[0],i=n[1];return $G($G({},t),{},jG({},o,i))},{});return[{description:"Files",accept:e}]}return A}function h8A(A){if(af(A))return Object.entries(A).reduce(function(e,t){var r=YB(t,2),n=r[0],o=r[1];return[].concat(KG(e),[n],KG(o))},[]).filter(function(e){return rU(e)||nU(e)}).join(",")}function p8A(A){return A instanceof DOMException&&(A.name==="AbortError"||A.code===A.ABORT_ERR)}function B8A(A){return A instanceof DOMException&&(A.name==="SecurityError"||A.code===A.SECURITY_ERR)}function rU(A){return A==="audio/*"||A==="video/*"||A==="image/*"||A==="text/*"||/\w+\/[-+.\w]+/g.test(A)}function nU(A){return/^.*\.[\w]+$/.test(A)}var E8A=["children"],C8A=["open"],m8A=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Q8A=["refKey","onChange","onClick"];function w8A(A){return D8A(A)||v8A(A)||oU(A)||I8A()}function I8A(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
418
418
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v8A(A){if(typeof Symbol<"u"&&A[Symbol.iterator]!=null||A["@@iterator"]!=null)return Array.from(A)}function D8A(A){if(Array.isArray(A))return k4(A)}function x4(A,e){return x8A(A)||b8A(A,e)||oU(A,e)||y8A()}function y8A(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
419
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oU(A,e){if(A){if(typeof A=="string")return k4(A,e);var t=Object.prototype.toString.call(A).slice(8,-1);if(t==="Object"&&A.constructor&&(t=A.constructor.name),t==="Map"||t==="Set")return Array.from(A);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return k4(A,e)}}function k4(A,e){(e==null||e>A.length)&&(e=A.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=A[t];return r}function b8A(A,e){var t=A==null?null:typeof Symbol<"u"&&A[Symbol.iterator]||A["@@iterator"];if(t!=null){var r=[],n=!0,o=!1,i,a;try{for(t=t.call(A);!(n=(i=t.next()).done)&&(r.push(i.value),!(e&&r.length===e));n=!0);}catch(s){o=!0,a=s}finally{try{!n&&t.return!=null&&t.return()}finally{if(o)throw a}}return r}}function x8A(A){if(Array.isArray(A))return A}function iU(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(A);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(A,n).enumerable})),t.push.apply(t,r)}return t}function ar(A){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?iU(Object(t),!0).forEach(function(r){_4(A,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(t)):iU(Object(t)).forEach(function(r){Object.defineProperty(A,r,Object.getOwnPropertyDescriptor(t,r))})}return A}function _4(A,e,t){return e in A?Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):A[e]=t,A}function _w(A,e){if(A==null)return{};var t=k8A(A,e),r,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(A);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(A,r)&&(t[r]=A[r])}return t}function k8A(A,e){if(A==null)return{};var t={},r=Object.keys(A),n,o;for(o=0;o<r.length;o++)n=r[o],!(e.indexOf(n)>=0)&&(t[n]=A[n]);return t}var Mw=d.forwardRef(function(A,e){var t=A.children,r=_w(A,E8A),n=sU(r),o=n.open,i=_w(n,C8A);return d.useImperativeHandle(e,function(){return{open:o}},[o]),_A.createElement(d.Fragment,null,t(ar(ar({},i),{},{open:o})))});Mw.displayName="Dropzone";var aU={disabled:!1,getFilesFromEvent:Y3A,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Mw.defaultProps=aU,Mw.propTypes={children:eA.func,accept:eA.objectOf(eA.arrayOf(eA.string)),multiple:eA.bool,preventDropOnDocument:eA.bool,noClick:eA.bool,noKeyboard:eA.bool,noDrag:eA.bool,noDragEventsBubbling:eA.bool,minSize:eA.number,maxSize:eA.number,maxFiles:eA.number,disabled:eA.bool,getFilesFromEvent:eA.func,onFileDialogCancel:eA.func,onFileDialogOpen:eA.func,useFsAccessApi:eA.bool,autoFocus:eA.bool,onDragEnter:eA.func,onDragLeave:eA.func,onDragOver:eA.func,onDrop:eA.func,onDropAccepted:eA.func,onDropRejected:eA.func,onError:eA.func,validator:eA.func};var M4={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function sU(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=ar(ar({},aU),A),t=e.accept,r=e.disabled,n=e.getFilesFromEvent,o=e.maxSize,i=e.minSize,a=e.multiple,s=e.maxFiles,l=e.onDragEnter,c=e.onDragLeave,u=e.onDragOver,g=e.onDrop,h=e.onDropAccepted,B=e.onDropRejected,E=e.onFileDialogCancel,C=e.onFileDialogOpen,m=e.useFsAccessApi,I=e.autoFocus,v=e.preventDropOnDocument,y=e.noClick,x=e.noKeyboard,b=e.noDrag,k=e.noDragEventsBubbling,M=e.onError,N=e.validator,F=d.useMemo(function(){return h8A(t)},[t]),L=d.useMemo(function(){return d8A(t)},[t]),T=d.useMemo(function(){return typeof C=="function"?C:lU},[C]),P=d.useMemo(function(){return typeof E=="function"?E:lU},[E]),G=d.useRef(null),H=d.useRef(null),z=d.useReducer(_8A,M4),q=x4(z,2),O=q[0],Y=q[1],S=O.isFocused,J=O.isFileDialogActive,$=d.useRef(typeof window<"u"&&window.isSecureContext&&m&&g8A()),U=function(){!$.current&&J&&setTimeout(function(){if(H.current){var qA=H.current.files;qA.length||(Y({type:"closeDialog"}),P())}},300)};d.useEffect(function(){return window.addEventListener("focus",U,!1),function(){window.removeEventListener("focus",U,!1)}},[H,J,P,$]);var AA=d.useRef([]),Z=function(qA){G.current&&G.current.contains(qA.target)||(qA.preventDefault(),AA.current=[])};d.useEffect(function(){return v&&(document.addEventListener("dragover",tU,!1),document.addEventListener("drop",Z,!1)),function(){v&&(document.removeEventListener("dragover",tU),document.removeEventListener("drop",Z))}},[G,v]),d.useEffect(function(){return!r&&I&&G.current&&G.current.focus(),function(){}},[G,I,r]);var tA=d.useCallback(function(bA){M?M(bA):console.error(bA)},[M]),nA=d.useCallback(function(bA){bA.preventDefault(),bA.persist(),jA(bA),AA.current=[].concat(w8A(AA.current),[bA.target]),kw(bA)&&Promise.resolve(n(bA)).then(function(qA){if(!(xw(bA)&&!k)){var dA=qA.length,wA=dA>0&&l8A({files:qA,accept:F,minSize:i,maxSize:o,multiple:a,maxFiles:s,validator:N}),HA=dA>0&&!wA;Y({isDragAccept:wA,isDragReject:HA,isDragActive:!0,type:"setDraggedFiles"}),l&&l(bA)}}).catch(function(qA){return tA(qA)})},[n,l,tA,k,F,i,o,a,s,N]),sA=d.useCallback(function(bA){bA.preventDefault(),bA.persist(),jA(bA);var qA=kw(bA);if(qA&&bA.dataTransfer)try{bA.dataTransfer.dropEffect="copy"}catch{}return qA&&u&&u(bA),!1},[u,k]),iA=d.useCallback(function(bA){bA.preventDefault(),bA.persist(),jA(bA);var qA=AA.current.filter(function(wA){return G.current&&G.current.contains(wA)}),dA=qA.indexOf(bA.target);dA!==-1&&qA.splice(dA,1),AA.current=qA,!(qA.length>0)&&(Y({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),kw(bA)&&c&&c(bA))},[G,c,k]),aA=d.useCallback(function(bA,qA){var dA=[],wA=[];bA.forEach(function(HA){var Ae=AU(HA,F),ce=x4(Ae,2),te=ce[0],Pe=ce[1],Ke=eU(HA,i,o),Ct=x4(Ke,2),kt=Ct[0],Ce=Ct[1],YA=N?N(HA):null;if(te&&kt&&!YA)dA.push(HA);else{var PA=[Pe,Ce];YA&&(PA=PA.concat(YA)),wA.push({file:HA,errors:PA.filter(function(oe){return oe})})}}),(!a&&dA.length>1||a&&s>=1&&dA.length>s)&&(dA.forEach(function(HA){wA.push({file:HA,errors:[s8A]})}),dA.splice(0)),Y({acceptedFiles:dA,fileRejections:wA,type:"setFiles"}),g&&g(dA,wA,qA),wA.length>0&&B&&B(wA,qA),dA.length>0&&h&&h(dA,qA)},[Y,a,F,i,o,s,g,h,B,N]),rA=d.useCallback(function(bA){bA.preventDefault(),bA.persist(),jA(bA),AA.current=[],kw(bA)&&Promise.resolve(n(bA)).then(function(qA){xw(bA)&&!k||aA(qA,bA)}).catch(function(qA){return tA(qA)}),Y({type:"reset"})},[n,aA,tA,k]),X=d.useCallback(function(){if($.current){Y({type:"openDialog"}),T();var bA={multiple:a,types:L};window.showOpenFilePicker(bA).then(function(qA){return n(qA)}).then(function(qA){aA(qA,null),Y({type:"closeDialog"})}).catch(function(qA){p8A(qA)?(P(qA),Y({type:"closeDialog"})):B8A(qA)?($.current=!1,H.current?(H.current.value=null,H.current.click()):tA(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):tA(qA)});return}H.current&&(Y({type:"openDialog"}),T(),H.current.value=null,H.current.click())},[Y,T,P,m,aA,tA,L,a]),cA=d.useCallback(function(bA){!G.current||!G.current.isEqualNode(bA.target)||(bA.key===" "||bA.key==="Enter"||bA.keyCode===32||bA.keyCode===13)&&(bA.preventDefault(),X())},[G,X]),hA=d.useCallback(function(){Y({type:"focus"})},[]),EA=d.useCallback(function(){Y({type:"blur"})},[]),IA=d.useCallback(function(){y||(f8A()?setTimeout(X,0):X())},[y,X]),DA=function(qA){return r?null:qA},SA=function(qA){return x?null:DA(qA)},JA=function(qA){return b?null:DA(qA)},jA=function(qA){k&&qA.stopPropagation()},$A=d.useMemo(function(){return function(){var bA=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},qA=bA.refKey,dA=qA===void 0?"ref":qA,wA=bA.role,HA=bA.onKeyDown,Ae=bA.onFocus,ce=bA.onBlur,te=bA.onClick,Pe=bA.onDragEnter,Ke=bA.onDragOver,Ct=bA.onDragLeave,kt=bA.onDrop,Ce=_w(bA,m8A);return ar(ar(_4({onKeyDown:SA(is(HA,cA)),onFocus:SA(is(Ae,hA)),onBlur:SA(is(ce,EA)),onClick:DA(is(te,IA)),onDragEnter:JA(is(Pe,nA)),onDragOver:JA(is(Ke,sA)),onDragLeave:JA(is(Ct,iA)),onDrop:JA(is(kt,rA)),role:typeof wA=="string"&&wA!==""?wA:"presentation"},dA,G),!r&&!x?{tabIndex:0}:{}),Ce)}},[G,cA,hA,EA,IA,nA,sA,iA,rA,x,b,r]),VA=d.useCallback(function(bA){bA.stopPropagation()},[]),pe=d.useMemo(function(){return function(){var bA=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},qA=bA.refKey,dA=qA===void 0?"ref":qA,wA=bA.onChange,HA=bA.onClick,Ae=_w(bA,Q8A),ce=_4({accept:F,multiple:a,type:"file",style:{display:"none"},onChange:DA(is(wA,rA)),onClick:DA(is(HA,VA)),tabIndex:-1},dA,H);return ar(ar({},ce),Ae)}},[H,t,a,rA,r]);return ar(ar({},O),{},{isFocused:S&&!r,getRootProps:$A,getInputProps:pe,rootRef:G,inputRef:H,open:DA(X)})}function _8A(A,e){switch(e.type){case"focus":return ar(ar({},A),{},{isFocused:!0});case"blur":return ar(ar({},A),{},{isFocused:!1});case"openDialog":return ar(ar({},M4),{},{isFileDialogActive:!0});case"closeDialog":return ar(ar({},A),{},{isFileDialogActive:!1});case"setDraggedFiles":return ar(ar({},A),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return ar(ar({},A),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections});case"reset":return ar({},M4);default:return A}}function lU(){}const cU=Object.freeze(Object.defineProperty({__proto__:null,ErrorCode:i8A,default:Mw,useDropzone:sU},Symbol.toStringTag,{value:"Module"})),{useDropzone:M8A}=cU,S8A=d.forwardRef(function({children:e,onUpload:t=XQA,uid:r="fileUploadDialog",registerComponentApi:n,style:o,allowPaste:i=!0,text:a="Drop files here",disabled:s=!1},l){const c=d.useCallback(async I=>{I.length&&(t==null||t(I))},[t]),{getRootProps:u,getInputProps:g,isDragActive:h,open:B,inputRef:E}=M8A({onDrop:c,noClick:!0,noKeyboard:!0,noDragEventsBubbling:!0,disabled:s}),C=ze(()=>{B()}),m=d.useCallback(I=>{var v,y;if(i&&E.current&&(v=I.clipboardData)!=null&&v.files){const x=((y=I.clipboardData)==null?void 0:y.items)||[],b=[];for(let k=0;k<x.length;k++){const M=x[k];if(M.kind==="file"){const N=M.getAsFile();N!==null&&b.push(N)}}b.length>0&&(I.stopPropagation(),I.preventDefault(),E.current.files=I.clipboardData.files,E.current.dispatchEvent(new Event("change",{bubbles:!0})))}},[i,E]);return d.useEffect(()=>{n({open:C})},[C,n,r]),Q.jsxs("div",{...u(),style:o,className:D4.wrapper,onPaste:m,ref:l,children:[Q.jsx("input",{...g()}),e,h&&Q.jsxs("div",{className:D4.dropPlaceholder,children:[Q.jsx(be,{name:"upload"}),a]})]})}),uU="FileUploadDropZone",N8A=kA({description:`The \`${uU}\` component allows users to upload files to a web application by dragging and dropping files from their local file system onto a designated area within the UI.`,props:{text:j('With this property, you can change the default text ("Drop files here") to display when files are dragged over the drop zone.'),allowPaste:j("This property indicates if the drop zone accepts files pasted from the clipboard (`true`) or only dragged files (`false`)."),enabled:j("If set to `false`, the drop zone will be disabled and users will not be able to upload files.",null,"boolean",!0)},events:{upload:j("This component accepts files for upload but does not perform the actual operation. It fires the `upload` event and passes the list files to upload in the method's argument. You can use the passed file information to implement the upload (according to the protocol your backend supports).")},themeVars:ne(D4.themeVars),defaultThemeVars:{"color-bg-FileUploadDropZone":"$color-bg","color-bg-dropping-FileUploadDropZone":"$color-bg--selected","opacity-dropping-FileUploadDropZone":"0.5","color-text-FileUploadDropZone":"$color-text",light:{},dark:{}}}),R8A=RA(uU,N8A,({node:A,extractValue:e,renderChild:t,lookupEventHandler:r,registerComponentApi:n,layoutCss:o})=>Q.jsx(S8A,{onUpload:r("upload"),uid:e(A.uid),registerComponentApi:n,style:o,allowPaste:e(A.props.allowPaste),text:e(A.props.text),disabled:!e.asOptionalBoolean(A.props.enabled,!0),children:t(A.children,{type:"Stack"})})),S4="Icon",P8A=kA({status:"experimental",description:"This component is the representation of an icon.",props:{name:j("This string property specifies the name of the icon to display. All icons have unique names and identifying the name is case-sensitive."),size:j(`This property defines the size of the \`${S4}\`. Note that setting the \`height\` and/or the \`width\` of the component will override this property.`),fallback:j("This optional property provides a way to handle situations when the provided [icon name](#name) is not found in the registry.")},themeVars:ne(nH.themeVars),defaultThemeVars:{[`size-${S4}`]:"1.25em"}}),T8A=RA(S4,P8A,({node:A,extractValue:e,layoutCss:t})=>Q.jsx(be,{name:e.asOptionalString(A.props.name),size:e(A.props.size),style:t,fallback:e.asOptionalString(A.props.fallback)}));function L8A({items:A,renderItem:e,reverse:t=!1}){const r=d.useMemo(()=>{if(!A)return[];let n=A;return _o(A)&&(n=Object.values(A)),t?[...n].reverse():n},[A,t]);return!r||!Array.isArray(r)?null:Q.jsx(Q.Fragment,{children:r.map((n,o)=>e({$item:n,$itemIndex:o,$isFirst:o===0,$isLast:o===r.length-1},o))})}const fU="Items",F8A=kA({description:`The \`${fU}\` component maps sequential data items into component instances, representing each data item as a particular component.`,props:{items:zt("This property contains the list of data items this component renders."),data:j("This property contains the list of data items (obtained from a data source) this component renders."),reverse:j("This property reverses the order in which data is mapped to template components."),itemTemplate:zt("The component template to display a single item")},contextVars:{$item:zt("This value represents the current iteration item while the component renders its children."),$itemIndex:zt("This integer value represents the current iteration index (zero-based) while rendering children."),$isFirst:zt("This boolean value indicates if the component renders its first item."),$isLast:zt("This boolean value indicates if the component renders its last item.")},opaque:!0}),O8A=RA(fU,F8A,A=>{const{node:e,renderChild:t,extractValue:r,layoutContext:n}=A;return Q.jsx(L8A,{items:r(e.props.items)||r(e.props.data),reverse:r(e.props.reverse),renderItem:(o,i)=>Q.jsx(Oo,{contextVars:o,node:e.children||e.props.itemTemplate,renderChild:t,layoutContext:n},i)})}),gU="SelectionStore",H8A=kA({status:"deprecated",description:`The \`${gU}\` is a non-visual component that may wrap components (items) and manage their selection state to accommodate the usage of other actions.`,props:{idKey:j('The selected items in the selection store needs to have a unique ID to use as an unambiguous key for that particular item. This property uniquely identifies the selected object item via a given property. By default, the key attribute is `"id"`.')}}),G8A=RA(gU,H8A,A=>{const{node:e,state:t,updateState:r,renderChild:n,registerComponentApi:o}=A;return Q.jsx(vG,{updateState:r,idKey:e.props.idKey,selectedItems:t==null?void 0:t.value,registerComponentApi:o,children:n(e.children)})}),N4="Image",U8A=kA({description:`The \`${N4}\` component represents or depicts an object, scene, idea, or other concept with a picture.`,props:{src:j("This property is used to indicate the source (path) of the image to display."),alt:j("This property specifies an alternate text for the image."),fit:j("This property sets how the image content should be resized to fit its container."),lazyLoad:j("Lazy loading instructs the browser to load the image only when it is imminently needed (e.g. user scrolls to it). The default value is eager (`false`)."),aspectRatio:j("This property sets a preferred aspect ratio for the image, which will be used in the calculation of auto sizes and some other layout functions."),animation:j("The animation object to be applied to the component")},events:{click:sc(N4)},themeVars:ne(Vk.themeVars)}),K8A=RA(N4,U8A,({node:A,extractValue:e,layoutCss:t,extractResourceUrl:r})=>Q.jsx(Xk,{src:r(A.props.src),alt:e(A.props.alt),fit:e(A.props.fit),lazyLoad:e.asOptionalBoolean(A.props.lazyLoad),aspectRatio:e(A.props.aspectRatio),style:t,animation:e(A.props.animation)})),Y8A=({title:A})=>Q.jsx(Nu,{title:A}),$8A="PageMetaTitle",j8A=kA({description:"A PageMetaTitle component allows setting up (or changing) the app title to display with the current browser tab.",props:{value:j("This property sets the page's title to display in the browser tab.")}}),q8A=RA($8A,j8A,({node:A,extractValue:e,renderChild:t})=>Q.jsx(Y8A,{title:e(A.props.value)||t(A.children)})),R4={themeVars:`'{"color-bg-ProgressBar": "var(--xmlui-color-bg-ProgressBar)", "color-indicator-ProgressBar": "var(--xmlui-color-indicator-ProgressBar)", "radius-ProgressBar": "var(--xmlui-radius-ProgressBar)", "radius-indicator-ProgressBar": "var(--xmlui-radius-indicator-ProgressBar)", "thickness-ProgressBar": "var(--xmlui-thickness-ProgressBar)"}'`,wrapper:"_wrapper_1s8j7_13",bar:"_bar_1s8j7_22"},J8A=d.forwardRef(function({value:e=0,style:t},r){return Q.jsx("div",{className:R4.wrapper,style:t,ref:r,children:Q.jsx("div",{style:{width:`${e*100}%`},className:R4.bar})})}),el="ProgressBar",z8A=kA({description:`A \`${el}\` component visually represents the progress of a task or process.`,props:{value:j("This property defines the progress value with a number between 0 and 1.")},themeVars:ne(R4.themeVars),defaultThemeVars:{[`radius-${el}`]:"$radius",[`radius-indicator-${el}`]:"0px",[`thickness-${el}`]:"$space-2",light:{[`color-bg-${el}`]:"$color-surface-200",[`color-indicator-${el}`]:"$color-primary-500"},dark:{[`color-bg-${el}`]:"$color-surface-700",[`color-indicator-${el}`]:"$color-primary-500"}}}),W8A=RA(el,z8A,({node:A,extractValue:e,layoutCss:t})=>Q.jsx(J8A,{value:Math.max(0,Math.min(1,e(A.props.value))),style:t})),jn={themeVars:`'{"padding-Splitter": "var(--xmlui-padding-Splitter)", "shadow-Splitter": "var(--xmlui-shadow-Splitter)", "color-bg-Splitter": "var(--xmlui-color-bg-Splitter)", "radius-Splitter": "var(--xmlui-radius-Splitter)", "color-border-Splitter": "var(--xmlui-color-border-Splitter)", "thickness-border-Splitter": "var(--xmlui-thickness-border-Splitter)", "style-border-Splitter": "var(--xmlui-style-border-Splitter)", "border-Splitter": "var(--xmlui-border-Splitter)", "color-bg-resizer-Splitter": "var(--xmlui-color-bg-resizer-Splitter)", "thickness-resizer-Splitter": "var(--xmlui-thickness-resizer-Splitter)", "cursor-resizer-horizontal-Splitter": "var(--xmlui-cursor-resizer-horizontal-Splitter)", "cursor-resizer-vertical-Splitter": "var(--xmlui-cursor-resizer-vertical-Splitter)"}'`,splitter:"_splitter_1a9gt_13",vertical:"_vertical_1a9gt_27",horizontal:"_horizontal_1a9gt_30",panel:"_panel_1a9gt_34",primaryPanel:"_primaryPanel_1a9gt_41",secondaryPanel:"_secondaryPanel_1a9gt_48",resizer:"_resizer_1a9gt_54",floatingResizer:"_floatingResizer_1a9gt_70"},$B=(A,e)=>{if(A.endsWith("px"))return parseInt(A,10);if(A.endsWith("%"))return parseInt(A,10)/100*e;throw new Error("Invalid size format. Use px or %.")},Sw=(A,e)=>A/e*100,dU=({initialPrimarySize:A="50%",minPrimarySize:e="0%",maxPrimarySize:t="100%",orientation:r="vertical",children:n,style:o,swapped:i=!1,floating:a=!1,splitterTemplate:s,resize:l=ve})=>{var x;const[c,u]=d.useState(0),[g,h]=d.useState(null),[B,E]=d.useState(!1),[C,m]=d.useState(null),[I,v]=d.useState(null),y=d.useMemo(()=>a?I:C,[a,C,I]);return d.useEffect(()=>{if(g){const b=r==="horizontal"?g.getBoundingClientRect().width:g.getBoundingClientRect().height,k=$B(A,b);u(k),l&&l([Sw(k,b),Sw(b-k,b)])}},[A,r,l,g,i]),d.useEffect(()=>{const b=N=>{if(g&&y){const F=r==="horizontal"?g.getBoundingClientRect().width:g.getBoundingClientRect().height,L=Math.min(Math.max(r==="horizontal"?N.clientX-g.getBoundingClientRect().left:N.clientY-g.getBoundingClientRect().top,$B(e,F)),$B(t,F));u(L),l&&l([Sw(L,F),Sw(F-L,F)])}},k=()=>{document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",k)},M=()=>{document.addEventListener("mousemove",b),document.addEventListener("mouseup",k)};return y&&y.addEventListener("mousedown",M),()=>{y&&y.removeEventListener("mousedown",M),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",k)}},[e,t,r,l,a,y,g]),d.useEffect(()=>{const b=k=>{const M=r==="horizontal"?k.clientX:k.clientY;if(g){const F=(r==="horizontal"?g.getBoundingClientRect().left:g.getBoundingClientRect().top)+c;M>F-20&&M<F+20?E(!0):E(!1)}};return g&&(g.addEventListener("mousemove",b),g.addEventListener("mouseleave",()=>E(!1))),()=>{g&&(g.removeEventListener("mouseleave",()=>E(!1)),g.removeEventListener("mousemove",b))}},[c,r,g]),d.useEffect(()=>{I&&(I.style.opacity=B?"1":"0")},[I,B]),Q.jsx("div",{ref:b=>h(b),className:KA(jn.splitter,{[jn.horizontal]:r==="horizontal",[jn.vertical]:r==="vertical"}),style:o,children:_A.Children.count(n)>1?Q.jsxs(Q.Fragment,{children:[Q.jsx("div",{style:i?{}:{flexBasis:c},className:KA({[jn.primaryPanel]:!i,[jn.secondaryPanel]:i}),children:_A.Children.toArray(n)[0]}),!a&&Q.jsx("div",{className:KA(jn.resizer,{[jn.horizontal]:r==="horizontal",[jn.vertical]:r==="vertical"}),ref:b=>m(b),children:s}),Q.jsx("div",{className:KA({[jn.primaryPanel]:i,[jn.secondaryPanel]:!i}),style:i?{flexBasis:c}:{},children:_A.Children.toArray(n)[1]}),a&&Q.jsx("div",{ref:b=>v(b),className:KA(jn.floatingResizer,{[jn.horizontal]:r==="horizontal",[jn.vertical]:r==="vertical"}),style:{top:r==="horizontal"?0:c,left:r==="horizontal"?c:0},children:s})]}):Q.jsx(Q.Fragment,{children:((x=_A.Children.toArray(n))==null?void 0:x[0])&&Q.jsx("div",{className:jn.panel,children:_A.Children.toArray(n)[0]})})})},tl="Splitter",Nw=kA({description:`The \`${tl}\` component divides a container (such as a window, panel, pane, etc.) into two resizable sections.`,props:{swapped:j(`This optional booelan property indicates whether the \`${tl}\` sections are layed out as primary and secondary (\`false\`) or secondary and primary (\`true\`) from left to right.`),splitterTemplate:zt("The divider can be customized using XMLUI components via this property."),initialPrimarySize:j("This optional number property sets the initial size of the primary section. The unit of the size value is in pixels or percentages."),minPrimarySize:j("This property sets the minimum size the primary section can have. The unit of the size value is in pixels or percentages."),maxPrimarySize:j("This property sets the maximum size the primary section can have. The unit of the size value is in pixels or percentages."),floating:j("Toggles whether the resizer is visible (`false`) or not (`true`) when not hovered or dragged. The default value is `false`, meaning the resizer is visible all the time.")},events:{resize:j("This event fires when the component is resized.")},themeVars:ne(jn.themeVars),defaultThemeVars:{[`color-bg-resizer-${tl}`]:"$color-bg-Card",[`thickness-resizer-${tl}`]:"5px",[`cursor-resizer-horizontal-${tl}`]:"ew-resize",[`cursor-resizer-vertical-${tl}`]:"ns-resize"}}),V8A={...Nw,props:{...Nw.props,orientation:j("Sets whether the `Splitter` divides the container horizontally and lays out the section on top of each other (`vertical`), or vertically by placing the sections next to each other (`horizontal`).")}},X8A={...Nw,specializedFrom:tl},Z8A={...Nw,specializedFrom:tl},AMA="vertical";function P4({node:A,extractValue:e,layoutNonCss:t,layoutCss:r,renderChild:n,lookupEventHandler:o,orientation:i=t.orientation??AMA}){var a,s,l,c,u,g;if(!F2(A.children))throw new QB;return Q.jsx(dU,{style:r,swapped:e.asOptionalBoolean((a=A.props)==null?void 0:a.swapped),orientation:i,splitterTemplate:n((s=A.props)==null?void 0:s.splitterTemplate),initialPrimarySize:e((l=A.props)==null?void 0:l.initialPrimarySize),minPrimarySize:e((c=A.props)==null?void 0:c.minPrimarySize),maxPrimarySize:e((u=A.props)==null?void 0:u.maxPrimarySize),floating:e.asOptionalBoolean((g=A.props)==null?void 0:g.floating),resize:o("resize"),children:n(A.children)})}const eMA=RA(tl,V8A,({node:A,extractValue:e,renderChild:t,layoutCss:r,layoutNonCss:n,lookupEventHandler:o})=>P4({node:A,extractValue:e,layoutCss:r,layoutNonCss:n,renderChild:t,lookupEventHandler:o})),tMA=RA("VSplitter",Z8A,({node:A,extractValue:e,renderChild:t,layoutCss:r,layoutNonCss:n,lookupEventHandler:o})=>P4({node:A,extractValue:e,layoutCss:r,layoutNonCss:n,renderChild:t,orientation:"vertical",lookupEventHandler:o})),rMA=RA("HSplitter",X8A,({node:A,extractValue:e,renderChild:t,layoutCss:r,layoutNonCss:n,lookupEventHandler:o})=>P4({node:A,extractValue:e,layoutCss:r,layoutNonCss:n,renderChild:t,orientation:"horizontal",lookupEventHandler:o}));var hc=(A=>(A.ACTION_ITEM_STARTED="ACTION_ITEM_STARTED",A.ACTION_ITEM_PROGRESS="ACTION_ITEM_PROGRESS",A.ACTION_ITEM_COMPLETED="ACTION_ITEM_COMPLETED",A.CLEAR_COMPLETED_ACTION_ITEMS="CLEAR_COMPLETED_ACTION_ITEMS",A.ACTION_ITEM_ERROR="ACTION_ITEM_ERROR",A.ACTION_QUEUE_INITIALIZED="ACTION_QUEUE_INITIALIZED",A.ACTION_ITEM_REMOVED="ACTION_ITEM_REMOVED",A))(hc||{});function nMA(A){return{type:"ACTION_ITEM_STARTED",payload:{actionItemId:A}}}function oMA(A,e){return{type:"ACTION_ITEM_PROGRESS",payload:{actionItemId:A,progressEvent:e}}}function iMA(A,e){return{type:"ACTION_ITEM_COMPLETED",payload:{actionItemId:A,result:e}}}function hU(A){return{type:"ACTION_ITEM_REMOVED",payload:{actionItemId:A}}}function aMA(){return{type:"CLEAR_COMPLETED_ACTION_ITEMS",payload:{}}}function sMA(A,e){return{type:"ACTION_ITEM_ERROR",payload:{actionItemId:A,error:e}}}function pU(A,e,t){return{type:"ACTION_QUEUE_INITIALIZED",payload:{queue:A,actionItemIds:t,batchId:e}}}const lMA=No((A,e)=>{switch(e.type){case hc.ACTION_QUEUE_INITIALIZED:{const t={},r={};e.payload.queue.forEach((o,i)=>{r[e.payload.actionItemIds[i]]=o});const n=Object.keys(r);return Object.entries(r).forEach(([o,i])=>{t[o]={batchId:e.payload.batchId,actionItemId:o,status:"pending",item:i}}),{queue:[...A.queue||[],...n],queueState:{...A.queueState,...t}}}case hc.ACTION_ITEM_STARTED:{A.queueState[e.payload.actionItemId]&&(A.queueState[e.payload.actionItemId].status="started");break}case hc.ACTION_ITEM_PROGRESS:{A.queueState[e.payload.actionItemId]&&(A.queueState[e.payload.actionItemId].status="in-progress",A.queueState[e.payload.actionItemId].progress=e.payload.progressEvent);break}case hc.ACTION_ITEM_COMPLETED:{A.queue=A.queue.filter(t=>t!==e.payload.actionItemId),A.queueState[e.payload.actionItemId]&&(A.queueState[e.payload.actionItemId].status="completed",A.queueState[e.payload.actionItemId].result=e.payload.result);break}case hc.ACTION_ITEM_REMOVED:{A.queue=A.queue.filter(t=>t!==e.payload.actionItemId),delete A.queueState[e.payload.actionItemId];break}case hc.ACTION_ITEM_ERROR:{A.queue=A.queue.filter(t=>t!==e.payload.actionItemId),A.queueState[e.payload.actionItemId]&&(A.queueState[e.payload.actionItemId].status="error",A.queueState[e.payload.actionItemId].error=e.payload.error);break}case hc.CLEAR_COMPLETED_ACTION_ITEMS:{A.queueState&&Object.entries(A.queueState).forEach(([t,r])=>{(r.status==="completed"||r.status==="error")&&delete A.queueState[t]});break}default:throw new Error}}),cMA={queue:[],queueState:{}};function uMA({registerComponentApi:A,willProcessItem:e,processItem:t,didProcessItem:r,processItemError:n,onComplete:o,renderProgressFeedback:i,renderResultFeedback:a,clearAfterFinish:s=!0}){const l=d.useRef(new Set),[c,u]=d.useReducer(lMA,cMA);let g=Ii();const h=ze(M=>{const N=aB();return u(pU([M],aB(),[N])),N}),B=ze(M=>{const N=M.map(()=>aB());return u(pU(M,aB(),N)),N}),E=d.useCallback(()=>{u(aMA())},[]),C=d.useCallback(M=>{M&&u(hU(M))},[]),m=d.useCallback(()=>c.queue.length,[c.queue.length]),I=d.useCallback(()=>Object.values(c.queueState),[c.queueState]);d.useEffect(()=>{A({enqueueItem:h,enqueueItems:B,clearCompleted:E,remove:C,getQueueLength:m,getQueuedItems:I})},[A,h,B,E,C,m,I]);const v=d.useCallback(async M=>{const N=c.queueState[M];if((N==null?void 0:N.status)!=="pending"||l.current.has(M))return;l.current.add(M);const F=N.item;let L={};try{const T=await(e==null?void 0:e({item:F,actionItemId:M,processItemContext:L}));if(L={...L,willProcessResult:T},T===!1){u(hU(M));return}u(nMA(M));const P=await(t==null?void 0:t({item:F,actionItemId:M,processItemContext:L,onProgress:G=>{u(oMA(M,G))}}));L={...L,processResult:P},await(r==null?void 0:r({item:F,actionItemId:M,processItemContext:L})),u(iMA(M,P))}catch(T){let P=await(n==null?void 0:n(T,{item:F,actionItemId:M,processItemContext:L}));u(sMA(M,T)),P!==!1&&g.signError(T)}finally{l.current.delete(M)}},[g,r,u,t,n,c.queueState,e]),y=d.useRef(),x=c.queue,b=Ya(x),k=d.useCallback(()=>{o==null||o();const M=I(),N=I().filter(L=>L.status==="completed"),F=a==null?void 0:a(N,M);if(F&&N.length){let L=y.current;br.success(Q.jsx(Q.Fragment,{children:F}),{id:L})}else if(y.current){let L=y.current;br.dismiss(L)}s&&E()},[s,E,I,o,a]);return d.useLayoutEffect(()=>{if(x.length&&i){const M=I(),N=I().filter(L=>L.status==="completed"),F=i==null?void 0:i(N,M);F&&y.current?br.loading(Q.jsx(Q.Fragment,{children:F}),{id:y.current}):y.current=br.loading(Q.jsx(Q.Fragment,{children:F}))}},[i,x==null?void 0:x.length]),d.useEffect(()=>{if(!x||b===x||$p(b,x))return;if(b!=null&&b.length&&!x.length){k();return}let M=x[0];(async()=>await v(M))()},[k,v,b,x]),null}const fMA="Queue",gMA=kA({description:"The `Queue` component provides an API to enqueue elements and defines events to process queued elements in a FIFO order.",props:{progressFeedback:j("This property defines the component template of the UI that displays progress information whenever, the queue's `progressReport` function in invoked."),resultFeedback:j("This property defines the component template of the UI that displays result information when the queue becomes empty after processing all queued items."),clearAfterFinish:j("This property indicates the completed items (successful or error) should be removed from the queue after completion.")},nonVisual:!0,events:{willProcess:j("This event is triggered to process a particular item."),process:j("This event is fired to process the next item in the queue. If the processing cannot proceed because of some error, raise an exception, and the queue will handle that."),didProcess:j("This event is fired when the processing of a queued item has been successfully processed."),processError:j("This event is fired when processing an item raises an error. The event handler method receives two parameters. The first is the error raised during the processing of the item; the second is an object with these properties:"),complete:j("The queue fires this event when the queue gets empty after processing all items. The event handler has no arguments.")},apis:{enqueueItem:j("This method enqueues the item passed in the method parameter. The new item will be processed after the current queue items have been handled. The method retrieves the unique ID of the newly added item; this ID can be used later in other methods, such as `remove`."),enqueueItems:j("This method enqueues the array of items passed in the method parameter. The new items will be processed after the current queue items have been handled. The method retrieves an array of unique IDs, one for each new item. An item ID can be used later in other methods, such as `remove`."),getQueuedItems:j("You can use this method to return the items in the queue. These items contain all entries not removed from the queue yet, including pending, in-progress, and completed items."),getQueueLength:j("This method retrieves the current queue length. The queue contains only those items that are not fully processed yet."),remove:j("This method retrieves the current queue length. The queue contains only those items that are not fully processed yet.")},contextVars:{$completedItems:j("A list containing the queue items that have been completed (fully processed)."),$queuedItems:j("A list containing the items waiting in the queue, icluding the completed items.")}}),dMA=RA(fMA,gMA,({node:A,registerComponentApi:e,lookupEventHandler:t,renderChild:r,extractValue:n})=>Q.jsx(uMA,{registerComponentApi:e,renderResultFeedback:A.props.resultFeedback?(o,i)=>Q.jsx(Oo,{node:A.props.resultFeedback,contextVars:{$completedItems:o,$queuedItems:i},renderChild:r}):void 0,renderProgressFeedback:A.props.progressFeedback?(o,i)=>Q.jsx(Oo,{node:A.props.progressFeedback,contextVars:{$completedItems:o,$queuedItems:i},renderChild:r}):void 0,willProcessItem:t("willProcess"),processItem:t("process",{signError:!1}),didProcessItem:t("didProcess"),processItemError:t("processError"),onComplete:t("complete"),clearAfterFinish:n.asOptionalBoolean(A.props.clearAfterFinish)})),BU=d.forwardRef(({node:A,lookupSyncCallback:e,lookupEventHandler:t,compound:r,api:n,scriptCollected:o,renderChild:i,extractValue:a,layoutContext:s,uid:l,updateState:c},u)=>{const g=d.useMemo(()=>{const N={};return A.props&&Object.entries(A.props).forEach(([F,L])=>{const T=a(L,!0);T!=null&&T._ARROW_EXPR_?N[F]=e(T):N[F]=T}),N},[a,e,A.props]),h=kn(g),B=d.useMemo(()=>{var G;const{loaders:N,vars:F,functions:L,scriptError:T,...P}=r;return{type:"Container",uses:Jt,api:n,scriptCollected:o,loaders:N,vars:F,functions:L,scriptError:T,containerUid:l,props:{debug:(G=r.props)==null?void 0:G.debug},children:[P]}},[n,r,o,l]),E=ze((N,...F)=>{const L=t(N);if(L)return L(...F)}),C=ze(N=>!!t(N)),m=d.useMemo(()=>({$props:h,...B.vars,emitEvent:E,hasEventHandler:C,updateState:c}),[B.vars,E,C,h,c]),I=kn(m),v=d.useMemo(()=>({...B,vars:I}),[B,I]),y=kn(v),x=d.useMemo(()=>Object.entries(A.props).some(([N,F])=>{var L;return N.endsWith("Template")||zr(F)&&F.type!==void 0||jt(F)&&((L=F[0])==null?void 0:L.type)!==void 0}),[A.props]),b=d.useMemo(()=>{if(!(!x&&(!A.children||A.children.length===0)))return{renderChild:i,props:A.props,children:A.children}},[x,A.children,A.props,i]),k=s&&{...s,wrapChild:void 0},M=i(y,k,b);return u&&M&&d.isValidElement(M)?_A.cloneElement(M,{ref:Zr(u,M.ref)}):_A.isValidElement(M)?M:Q.jsx(Q.Fragment,{children:M})});BU.displayName="CompoundComponent";const rl={themeVars:'"[]"',infoWrapper:"_infoWrapper_pfst8_13",loadingWrapper:"_loadingWrapper_pfst8_18",noRows:"_noRows_pfst8_26",borderCollapse:"_borderCollapse_pfst8_36",sectioned:"_sectioned_pfst8_36",row:"_row_pfst8_36",section:"_section_pfst8_36",sectionFooter:"_sectionFooter_pfst8_52"},EU=_A.createContext({isExpanded:A=>!1,toggleExpanded:(A,e)=>{}}),hMA=({children:A,onHeightChanged:e,rowIndex:t,itemType:r})=>{const n=d.useRef(null);return aQ(n,d.useCallback(()=>{e==null||e(n.current)},[e])),Q.jsx("div",{ref:o=>{e==null||e(o),n.current=o},className:_n({[rl.row]:r==="ITEM",[rl.section]:r==="SECTION",[rl.sectionFooter]:r==="SECTION_FOOTER"}),"data-list-item-type":r,"data-index":t,children:A})};function pMA({groupsInitiallyExpanded:A=!0,expanded:e=qe,items:t,limit:r,groupBy:n,orderBy:o,availableGroups:i,defaultGroups:a=Jt}){const s=d.useMemo(()=>{if(!o)return t;let h=o;Array.isArray(o)||(h=[o]);const B=h.map(C=>m=>yn(m,C.field)),E=h.map(C=>C.direction);return WF(t,B,E)},[t,o]),l=d.useMemo(()=>r?s.slice(0,r-1):s,[s,r]),c=d.useMemo(()=>n===void 0?qe:uBA(l,h=>h[n]),[l,n]),u=d.useMemo(()=>{if(n===void 0)return Jt;let h=A5([...a,...Object.keys(c)]);return i&&(h=RBA(h,B=>i.indexOf(B))),h},[n,c,a,i]);return{rows:d.useMemo(()=>{if(n===void 0)return l;const h=[];return u.forEach(B=>{h.push({id:B,items:c[B],_row_type:"SECTION",key:B}),(e[B]||e[B]===void 0&&A)&&(h.push(...c[B]||[]),h.push({id:`${B}_footer`,items:c[B],_row_type:"SECTION_FOOTER",key:B}))}),h},[n,u,l,e,A,c]),sectionedItems:c,sections:u}}const BMA=(A,e)=>{if(!A)return null;let t,r;if(typeof A=="object"){const n=Object.values(bBA(A,"id"));if(!n.length)return null;t=n[0],r=void 0,n.length>1&&(r=n[1])}else if(typeof A=="string"||typeof A=="number")t=A+"",r=void 0;else return null;return Q.jsx(TG,{title:t,subtitle:r})},EMA=d.forwardRef(function({items:e=Jt,itemRenderer:t=BMA,sectionRenderer:r,sectionFooterRenderer:n,loading:o,limit:i,groupBy:a,orderBy:s,availableGroups:l,scrollAnchor:c="top",requestFetchPrevPage:u=$l,requestFetchNextPage:g=$l,selectedIndex:h,resetSelectedIndex:B=$l,pageInfo:E,idKey:C="id",style:m,emptyListPlaceholder:I,groupsInitiallyExpanded:v=!0,defaultGroups:y=Jt,registerComponentApi:x,borderCollapse:b=!0},k){var hA;const M=d.useContext(ns),N=d.useRef(null),F=k?Zr(N,k):N,L=d.useRef(null),[T,P]=d.useState(c==="bottom"),[G,H]=d.useState(qe),z=d.useCallback((EA,IA)=>{H(DA=>({...DA,[EA]:IA}))},[]),q=d.useMemo(()=>({isExpanded:EA=>G[EA]||G[EA]===void 0&&v,toggleExpanded:z}),[G,v,z]),{rows:O}=pMA({groupsInitiallyExpanded:v,defaultGroups:y,expanded:G,items:e,limit:i,groupBy:a,orderBy:s,availableGroups:l}),Y=M&&(m==null?void 0:m.maxHeight)===void 0&&(m==null?void 0:m.height)===void 0&&(m==null?void 0:m.flex)===void 0,S=Y?M:N,$=MG({count:O.length,scrollMargin:Y&&((hA=N.current)==null?void 0:hA.offsetTop)||0,getScrollElement:d.useCallback(()=>S.current,[S]),estimateSize:d.useCallback(()=>10,[]),rangeExtractor:d.useCallback(EA=>bG(EA),[]),getItemKey:d.useCallback(EA=>O[EA][C]??EA,[C,O]),overscan:5}),U=d.useCallback((EA,IA)=>{$.scrollToIndex(EA),requestAnimationFrame(()=>{IA==null||IA()})},[$]),AA=ze(()=>{O.length&&U(O.length-1)}),Z=ze(()=>{O.length&&U(0)});d.useLayoutEffect(()=>{x==null||x({scrollToBottom:AA,scrollToTop:Z})},[x,AA,Z]);const tA=$.getVirtualItems(),nA=$.getTotalSize();d.useEffect(()=>{if(h&&$){const EA=tA.findIndex(IA=>IA.key===h);U(EA),B()}},[B,$,h,U,tA]);const sA=Ya(nA),iA=tA[0],aA=tA[tA.length-1],rA=d.useRef(!1);d.useLayoutEffect(()=>{O.length&&c==="bottom"&&!rA.current&&(rA.current=!0,U(O.length-1))},[O.length,c,U]),d.useLayoutEffect(()=>{if(sA&&sA!==nA&&c==="bottom"){const EA=nA-sA;P(!0),queueMicrotask(()=>{S.current.scrollBy({left:0,top:EA}),P(!1)})}},[iA==null?void 0:iA.index,sA,$,c,S,nA]);const X=d.useRef(null);d.useEffect(()=>{T||E&&iA&&iA.index===0&&E.hasPrevPage&&!E.isFetchingPrevPage&&(async()=>(P(!0),X.current&&clearTimeout(X.current),await u(),X.current=setTimeout(()=>{P(!1)},500)))()},[iA,E,u,T]),d.useEffect(()=>{T||E&&aA&&aA.index===e.length-1&&E.hasNextPage&&!E.isFetchingNextPage&&(async()=>(P(!0),X.current&&clearTimeout(X.current),await g(),X.current=setTimeout(()=>{P(!1)},500)))()},[e.length,aA,E,g,T]);const cA=iA?iA.start-$.options.scrollMargin:0;return Q.jsx(EU.Provider,{value:q,children:Q.jsxs("div",{ref:F,className:rl.scrollParent,style:{overflow:Y?"initial":"auto",maxHeight:"100%",...m},children:[o&&tA.length===0&&Q.jsx("div",{className:rl.loadingWrapper,children:Q.jsx(iw,{})}),!o&&tA.length===0&&(I??Q.jsx("div",{className:rl.noRows,children:Q.jsx(Bn,{children:"No data available"})})),(!o&&tA.length>0||e.length>0)&&Q.jsx("div",{ref:L,style:{height:`${nA}px`,width:"100%",position:"relative"},children:Q.jsx("div",{"data-list-container":!0,className:_n({[rl.sectioned]:a!==void 0,[rl.borderCollapse]:b}),style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${cA}px)`},children:tA.map(EA=>{const IA=O[EA.index];let DA=EA.key,SA;switch(IA._row_type){case"SECTION":SA=(r==null?void 0:r(IA,IA[C]))??null,DA=`section_${DA}`;break;case"SECTION_FOOTER":SA=n==null?void 0:n(IA,IA[C]),DA=`section_footer_${DA}`;break;default:SA=t(IA,IA[C])??null;break}return Q.jsx(hMA,{onHeightChanged:$.measureElement,rowIndex:EA.index,itemType:IA._row_type||"ITEM",children:SA},DA)})})})]})})});function CMA({node:A,renderChild:e,item:t}){const{isExpanded:r,toggleExpanded:n}=d.useContext(EU),o=t.id,i=r(o),a=d.useMemo(()=>({isExpanded:i,toggle:()=>{n(o,!i)}}),[i,o,n]);return Q.jsx(Oo,{node:A,renderChild:e,item:t,context:a,itemKey:"$group",contextKey:"$group"})}const sf="List",mMA=kA({status:"experimental",description:`The \`${sf}\` component is a robust layout container that renders associated data items as a list of components. \`${sf}\` is virtualized; it renders only items that are visible in the viewport.`,props:{data:j("The component receives data via this property. The `data` property is a list of items that the `List` can display."),items:j("You can use `items` as an alias for the `data` property. When you bind the list to a data source (e.g. an API endpoint), the `data` acts as the property that accepts a URL to fetch information from an API.When both `items` and `data` are used, `items` has priority."),loading:j("This property delays the rendering of children until it is set to `false`, or the component receives usable list items via the [`data`](#data) property."),limit:j(`This property limits the number of items displayed in the \`${sf}\`.`),scrollAnchor:j("This property pins the scroll position to a specified location of the list. Available values are shown below.",gH,"string","top"),groupBy:j("This property sets which attribute of the data is used to group the list items. If the attribute does not appear in the data, it will be ignored."),orderBy:j("This property enables the ordering of list items by specifying an attribute in the data."),availableGroups:j(`This property is an array of group names that the \`${sf}\` will display.`),groupHeaderTemplate:zt("Enables the customization of how the groups are displayed, similarly to the [`itemTemplate`](#itemtemplate). You can use the `$item` context variable to access an item group and map its individual attributes."),groupFooterTemplate:zt("Enables the customization of how the the footer of each group is displayed. Combine with [`groupHeaderTemplate`](#groupHeaderTemplate) to customize sections. You can use the `$item` context variable to access an item group and map its individual attributes."),itemTemplate:zt("This property allows the customization of mapping data items to components. You can use the `$item` context variable to access an item and map its individual attributes."),emptyListTemplate:zt("This property defines the template to display when the list is empty."),pageInfo:j(`This property contains the current page information. Setting this property also enures the \`${sf}\` uses pagination.`),idKey:j('Denotes which attribute of an item acts as the ID or key of the item. Default is `"id"`.'),selectedIndex:j("This property scrolls to a specific item indicated by its index."),groupsInitiallyExpanded:j("This Boolean property defines whether the list groups are initially expanded."),defaultGroups:j(`This property adds a list of default groups for the \`${sf}\` and displays the group headers in the specified order. If the data contains group headers not in this list, those headers are also displayed (after the ones in this list); however, their order is not deterministic.`),hideEmptyGroups:j("This boolean property indicates if empty groups should be hidden (no header and footer are displayed).",null,"boolean",!0),borderCollapse:j("Collapse items borders",null,"boolean",!0)},contextVars:{$item:j("This property represents the value of an item in the data list.")},themeVars:ne(rl.themeVars)}),QMA=RA(sf,mMA,({node:A,extractValue:e,renderChild:t,lookupAction:r,layoutCss:n,layoutContext:o,lookupEventHandler:i,registerComponentApi:a})=>{var c;const s=A.props.itemTemplate||A.children,l=e.asOptionalBoolean(A.props.hideEmptyGroups,!0);return Q.jsx(EMA,{registerComponentApi:a,style:n,loading:e.asOptionalBoolean(A.props.loading),items:e(A.props.items)||e(A.props.data),limit:e(A.props.limit),groupBy:e(A.props.groupBy),orderBy:e(A.props.orderBy),availableGroups:e(A.props.availableGroups),scrollAnchor:A.props.scrollAnchor,pageInfo:e(A.props.pageInfo),idKey:e(A.props.idKey),requestFetchPrevPage:i("requestFetchPrevPage"),requestFetchNextPage:i("requestFetchNextPage"),selectedIndex:e(A.props.selectedIndex),resetSelectedIndex:r((c=A.events)==null?void 0:c.resetSelectedIndex),emptyListPlaceholder:t(A.props.emptyListTemplate),groupsInitiallyExpanded:e.asOptionalBoolean(A.props.groupsInitiallyExpanded),defaultGroups:e(A.props.defaultGroups),borderCollapse:e.asOptionalBoolean(A.props.borderCollapse,!0),itemRenderer:s&&(u=>Q.jsx(Oo,{node:s,item:u,renderChild:t,layoutContext:o})),sectionRenderer:A.props.groupBy?u=>{var g;return(((g=u.items)==null?void 0:g.length)??0)>0||!l?Q.jsx(CMA,{node:A.props.groupHeaderTemplate??{type:"Fragment"},renderChild:t,item:u}):null}:void 0,sectionFooterRenderer:A.props.groupFooterTemplate?u=>{var g;return(((g=u.items)==null?void 0:g.length)??0)>0||!l?Q.jsx(Oo,{node:A.props.groupFooterTemplate??{type:"Fragment"},item:u,renderChild:t,itemKey:"$group",contextKey:"$group"}):null}:void 0})}),T4={themeVars:'"[]"',wrapper:"_wrapper_1hlil_13",visibleOnHover:"_visibleOnHover_1hlil_16"};function wMA({children:A,top:e,right:t,bottom:r,left:n,visibleOnHover:o=!1}){return Q.jsx("div",{style:{top:e,right:t,bottom:r,left:n},className:KA(T4.wrapper,{[T4.visibleOnHover]:o}),children:A})}const IMA="PositionedContainer",vMA=kA({status:"deprecated",description:"(**OBSOLETE**) This component was created for the ChatEngine app.",props:{visibleOnHover:j("No description")},themeVars:ne(T4.themeVars)}),DMA=RA(IMA,vMA,({node:A,extractValue:e,renderChild:t,layoutCss:r})=>Q.jsx(wMA,{top:r.top,right:r.right,bottom:r.bottom,left:r.left,visibleOnHover:e.asOptionalBoolean(A.props.visibleOnHover),children:t(A.children)}));function yMA({listenTo:A,onChange:e,throttleWaitInMs:t=0}){const r=Ya(A),n=d.useMemo(()=>t!==0&&e?XF(e,t,{leading:!0}):e,[e,t]);return d.useEffect(()=>{n&&!$p(r,A)&&(n==null||n({prevValue:r,newValue:A}))},[A,n,r]),null}const L4="ChangeListener",bMA=kA({description:`\`${L4}\` is a functional component (it renders no UI) to trigger an action when a particular value (component property, state, etc.) changes.`,props:{listenTo:j("Value to the changes of which this component listens."),throttleWaitInMs:j("This variable sets a throttling time (in milliseconds) to apply when executing the `didChange` event handler. All changes within that throttling time will only fire the `didChange` event once.")},events:{didChange:lo(L4)}}),xMA=RA(L4,bMA,({node:A,lookupEventHandler:e,extractValue:t})=>Q.jsx(yMA,{listenTo:t(A.props.listenTo),throttleWaitInMs:t(A.props.throttleWaitInMs),onChange:e("didChange")}));var F4=CT(),kMA={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_Pdf:"false",VITE_USED_COMPONENTS_Chart:"false",VITE_USER_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_XMLUI_VERSION:"0.7.18 (built 1/31/2025)"};const Rw=Symbol(),_MA=Symbol(),CU=typeof window>"u"||/ServerSideRendering/.test(window.navigator&&window.navigator.userAgent)?d.useEffect:d.useLayoutEffect,MMA=F4.unstable_runWithPriority?A=>F4.unstable_runWithPriority(F4.unstable_NormalPriority,A):A=>A();function mU(A){const e=d.createContext({[Rw]:{v:{current:A},n:{current:-1},l:new Set,u:r=>r()}});var t;return e[_MA]=e.Provider,e.Provider=(t=e.Provider,({value:r,children:n})=>{const o=d.useRef(r),i=d.useRef(0),[a,s]=d.useState(null);a&&(a(r),s(null));const l=d.useRef();if(!l.current){const c=new Set,u=(g,h)=>{Dr.unstable_batchedUpdates(()=>{i.current+=1;const B={n:i.current};h!=null&&h.suspense&&(B.n*=-1,B.p=new Promise(E=>{s(()=>C=>{B.v=C,delete B.p,E(C)})})),c.forEach(E=>E(B)),g()})};l.current={[Rw]:{v:o,n:i,l:c,u}}}return CU(()=>{o.current=r,i.current+=1,MMA(()=>{l.current[Rw].l.forEach(c=>{c({n:i.current,v:r})})})},[r]),d.createElement(t,{value:l.current},n)}),delete e.Consumer,e}function QU(A,e){const t=d.useContext(A)[Rw];if(typeof process=="object"&&kMA.NODE_ENV!=="production"&&!t)throw new Error("useContextSelector requires special context");const{v:{current:r},n:{current:n},l:o}=t,i=e(r),[a,s]=d.useReducer((l,c)=>{if(!c)return[r,i];if("p"in c)throw c.p;if(c.n===n)return Object.is(l[1],i)?l:[r,i];try{if("v"in c){if(Object.is(l[0],c.v))return l;const u=e(c.v);return Object.is(l[1],u)?l:[c.v,u]}}catch{}return[...l]},[r,i]);return Object.is(a[1],i)||s(),CU(()=>(o.add(s),()=>{o.delete(s)}),[o]),a[1]}const wU=mU(void 0);function xi(A){return QU(wU,A)}var ki=(A=>(A.FIELD_LOST_FOCUS="FormActionKind:FIELD_LOST_FOCUS",A.FIELD_VALUE_CHANGED="FormActionKind:FIELD_VALUE_CHANGED",A.FIELD_FOCUSED="FormActionKind:FIELD_FOCUSED",A.FIELD_VALIDATED="FormActionKind:FIELD_VALIDATED",A.FIELD_INITIALIZED="FormActionKind:FIELD_INITIALIZED",A.FIELD_REMOVED="FormActionKind:FIELD_REMOVED",A.TRIED_TO_SUBMIT="FormActionKind:TRIED_TO_SUBMIT",A.BACKEND_VALIDATION_ARRIVED="FormActionKind:BACKEND_VALIDATION_ARRIVED",A.SUBMITTING="FormActionKind:SUBMITTING",A.SUBMITTED="FormActionKind:SUBMITTED",A.RESET="FormActionKind:RESET",A))(ki||{});function SMA(A,e){return{type:"FormActionKind:FIELD_INITIALIZED",payload:{uid:A,value:e}}}function IU(A,e){return{type:"FormActionKind:FIELD_VALUE_CHANGED",payload:{uid:A,value:e}}}function NMA(A){return{type:"FormActionKind:FIELD_FOCUSED",payload:{uid:A}}}function RMA(A){return{type:"FormActionKind:FIELD_LOST_FOCUS",payload:{uid:A}}}function vU(A,e){return{type:"FormActionKind:FIELD_VALIDATED",payload:{uid:A,validationResult:e}}}function PMA(A){return{type:"FormActionKind:FIELD_REMOVED",payload:{uid:A}}}function TMA(){return{type:"FormActionKind:TRIED_TO_SUBMIT",payload:{}}}function LMA(){return{type:"FormActionKind:SUBMITTING",payload:{}}}function FMA(){return{type:"FormActionKind:SUBMITTED",payload:{}}}function OMA(A){return{type:"FormActionKind:RESET",payload:{originalSubject:A}}}function HMA({generalValidationResults:A=[],fieldValidationResults:e={}}){return{type:"FormActionKind:BACKEND_VALIDATION_ARRIVED",payload:{generalValidationResults:A,fieldValidationResults:e}}}function GMA(A){return A==null||A===""?!0:typeof A=="string"?A.trim().length===0:jl(A)}function DU(A="",e){return typeof A=="string"?A.length>=e:(console.warn("minLength can only be used on strings"),!0)}function yU(A="",e){return typeof A=="string"?A.length<=e:(console.warn("maxLength can only be used on strings"),!0)}function bU(A="",e){return typeof A!="string"&&!KF(A)&&console.warn("Range can only be used on strings and numbers"),Number(A)>=e}function xU(A="",e){return typeof A!="string"&&!KF(A)&&console.warn("Range can only be used on strings and numbers"),Number(A)<=e}function UMA(A="",e){if(typeof A=="string")return t(e).test(A);return console.warn("Regex can only be used on strings"),!0;function t(r){const n=r.match(/^([/~@;%#'])(.*?)\1([gimsuy]*)$/);return n?new RegExp(n[2],n[3]):new RegExp(r)}}class kU{constructor(e,t,r){this.validations=e,this.onValidate=t,this.value=r,this.preValidate=()=>{const n=this.validateRequired();let o=[n];return(!n||n.isValid)&&o.push(this.validateLength(),this.validateRange(),this.validatePattern(),this.validateRegex()),o=o.filter(i=>i!==void 0),{isValid:o.find(i=>!i.isValid)===void 0,validatedValue:this.value,partial:this.onValidate!==void 0,validations:o}},this.validate=async()=>{const n=this.preValidate(),o=await this.validateCustom()||[];return n.validations.push(...o.map(i=>({...i,async:!0}))),{isValid:n.validations.find(i=>!i.isValid)===void 0,validatedValue:this.value,partial:!1,validations:n.validations}}}validateRequired(){const{required:e,requiredInvalidMessage:t}=this.validations;if(e)return{isValid:!GMA(this.value),invalidMessage:t||"This field is required",severity:"error"}}validateLength(){const{minLength:e,maxLength:t,lengthInvalidMessage:r,lengthInvalidSeverity:n="error"}=this.validations;if(!(e===void 0&&t===void 0))return e!==void 0&&t===void 0?{isValid:DU(this.value,e),invalidMessage:r||`Input should be at least ${e} ${MU(e,"character")}`,severity:n}:e===void 0&&t!==void 0?{isValid:yU(this.value,t),invalidMessage:r||`Input should be up to ${t} ${MU(t,"character")}`,severity:n}:{isValid:DU(this.value,e)&&yU(this.value,t),invalidMessage:r||`Input length should be between ${e} and ${t}`,severity:n}}validateRange(){const{minValue:e,maxValue:t,rangeInvalidMessage:r,rangeInvalidSeverity:n="error"}=this.validations;if(!(e===void 0&&t===void 0))return e!==void 0&&t===void 0?{isValid:bU(this.value,e),invalidMessage:r||`Input should be bigger than ${e}`,severity:n}:e===void 0&&t!==void 0?{isValid:xU(this.value,t),invalidMessage:r||`Input should be smaller than ${t}`,severity:n}:{isValid:bU(this.value,e)&&xU(this.value,t),invalidMessage:r||`Input should be between ${e} and ${t}`,severity:n}}validatePattern(){const{pattern:e,patternInvalidMessage:t,patternInvalidSeverity:r="error"}=this.validations;if(e)switch(e.toLowerCase()){case"email":return{isValid:/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(this.value),invalidMessage:t||"Not a valid email address",severity:r};case"phone":return{isValid:/^[a-zA-Z0-9#*)(+.\-_&']+$/g.test(this.value),invalidMessage:t||"Not a valid phone number",severity:r};case"url":let n;try{n=new URL(this.value)}catch{}return!n||n.protocol&&!["http:","https:"].includes(n.protocol)?{isValid:!1,invalidMessage:"Not a valid URL",severity:r}:{isValid:!0,severity:"valid"};default:return console.warn("Unknown pattern provided"),{isValid:!0,severity:"valid"}}}validateRegex(){const{regex:e,regexInvalidMessage:t,regexInvalidSeverity:r="error"}=this.validations;if(e!==void 0)return{isValid:UMA(this.value,e),invalidMessage:t||"Input is not in the correct format",severity:r}}async validateCustom(){if(!this.onValidate)return;const e=await this.onValidate(this.value);return typeof e=="boolean"?[{isValid:e,invalidMessage:"Invalid input",severity:"error"}]:jt(e)?e:[e]}}async function _U(A,e,t){return await new kU(A,e,t).validate()}function KMA(A,e,t,r,n,o=0){const i=d.useDeferredValue(t),a=d.useMemo(()=>o!==0?WQA(_U,o,{trailing:!0,leading:!0}):_U,[o]);d.useEffect(function(){const l=new kU(A,e,i);let c=!1;const u=l.preValidate();return c||(r(vU(n,u)),u.partial&&(async()=>{const g=await a(A,e,i);c||r(vU(n,g))})()),()=>{c=!0}},[n,i,r,e,a,A])}function YMA(A,e,t,r="errorLate"){const n=xi(m=>m.interactionFlags[A])||qe,o=n.forceShowValidationResult,i=n.focused,a=n.isValidLostFocus,s=n.isValidOnFocus,l=n.invalidToValid,c=!t||t.validatedValue!==e,u=n.isDirty,g=(t==null?void 0:t.isValid)===!0;let h="none";for(const m of(t==null?void 0:t.validations)||[])if(!m.isValid&&(h!=="error"&&m.severity==="warning"&&(h="warning"),m.severity==="error")){h="error";break}let B=!1;switch(r){case"errorLate":B=u&&(i?!l&&!s:!a);break;case"onChanged":B=u;break;case"onLostFocus":B=u&&(!i&&!g||!a&&!g)}B=B||o;const[E,C]=d.useState(B);return E!==B&&!c&&C(B),c&&(B=E),{isHelperTextShown:B,validationStatus:B?h:"none"}}function Pw(A){if(A!==void 0)return A==="error"||A==="warning"||A==="valid"||A==="none"?A:"none"}function $MA(A){const e={error:[],warning:[],valid:[],none:[]};return Object.entries(A).forEach(([t,r])=>{r.validations.forEach(n=>{n.isValid||(e[n.severity]=e[n.severity]||[],e[n.severity].push(n))})}),e}function MU(A,e){return A===1?e:e+"s"}const aa={themeVars:`'{"Input:radius-TextBox-default": "var(--xmlui-radius-TextBox-default)", "Input:color-border-TextBox-default": "var(--xmlui-color-border-TextBox-default)", "Input:thickness-border-TextBox-default": "var(--xmlui-thickness-border-TextBox-default)", "Input:style-border-TextBox-default": "var(--xmlui-style-border-TextBox-default)", "Input:font-size-TextBox-default": "var(--xmlui-font-size-TextBox-default)", "Input:padding-TextBox-default": "var(--xmlui-padding-TextBox-default)", "Input:color-bg-TextBox-default": "var(--xmlui-color-bg-TextBox-default)", "Input:shadow-TextBox-default": "var(--xmlui-shadow-TextBox-default)", "Input:color-text-TextBox-default": "var(--xmlui-color-text-TextBox-default)", "Input:color-border-TextBox-default--hover": "var(--xmlui-color-border-TextBox-default--hover)", "Input:color-bg-TextBox-default--hover": "var(--xmlui-color-bg-TextBox-default--hover)", "Input:shadow-TextBox-default--hover": "var(--xmlui-shadow-TextBox-default--hover)", "Input:color-text-TextBox-default--hover": "var(--xmlui-color-text-TextBox-default--hover)", "Input:color-border-TextBox-default--focus": "var(--xmlui-color-border-TextBox-default--focus)", "Input:color-bg-TextBox-default--focus": "var(--xmlui-color-bg-TextBox-default--focus)", "Input:shadow-TextBox-default--focus": "var(--xmlui-shadow-TextBox-default--focus)", "Input:color-text-TextBox-default--focus": "var(--xmlui-color-text-TextBox-default--focus)", "Input:thickness-outline-TextBox-default--focus": "var(--xmlui-thickness-outline-TextBox-default--focus)", "Input:color-outline-TextBox-default--focus": "var(--xmlui-color-outline-TextBox-default--focus)", "Input:style-outline-TextBox-default--focus": "var(--xmlui-style-outline-TextBox-default--focus)", "Input:offset-outline-TextBox-default--focus": "var(--xmlui-offset-outline-TextBox-default--focus)", "Input:color-placeholder-TextBox-default": "var(--xmlui-color-placeholder-TextBox-default)", "Input:color-adornment-TextBox-default": "var(--xmlui-color-adornment-TextBox-default)", "Input:radius-TextBox-error": "var(--xmlui-radius-TextBox-error)", "Input:color-border-TextBox-error": "var(--xmlui-color-border-TextBox-error)", "Input:thickness-border-TextBox-error": "var(--xmlui-thickness-border-TextBox-error)", "Input:style-border-TextBox-error": "var(--xmlui-style-border-TextBox-error)", "Input:font-size-TextBox-error": "var(--xmlui-font-size-TextBox-error)", "Input:padding-TextBox-error": "var(--xmlui-padding-TextBox-error)", "Input:color-bg-TextBox-error": "var(--xmlui-color-bg-TextBox-error)", "Input:shadow-TextBox-error": "var(--xmlui-shadow-TextBox-error)", "Input:color-text-TextBox-error": "var(--xmlui-color-text-TextBox-error)", "Input:color-border-TextBox-error--hover": "var(--xmlui-color-border-TextBox-error--hover)", "Input:color-bg-TextBox-error--hover": "var(--xmlui-color-bg-TextBox-error--hover)", "Input:shadow-TextBox-error--hover": "var(--xmlui-shadow-TextBox-error--hover)", "Input:color-text-TextBox-error--hover": "var(--xmlui-color-text-TextBox-error--hover)", "Input:color-border-TextBox-error--focus": "var(--xmlui-color-border-TextBox-error--focus)", "Input:color-bg-TextBox-error--focus": "var(--xmlui-color-bg-TextBox-error--focus)", "Input:shadow-TextBox-error--focus": "var(--xmlui-shadow-TextBox-error--focus)", "Input:color-text-TextBox-error--focus": "var(--xmlui-color-text-TextBox-error--focus)", "Input:thickness-outline-TextBox-error--focus": "var(--xmlui-thickness-outline-TextBox-error--focus)", "Input:color-outline-TextBox-error--focus": "var(--xmlui-color-outline-TextBox-error--focus)", "Input:style-outline-TextBox-error--focus": "var(--xmlui-style-outline-TextBox-error--focus)", "Input:offset-outline-TextBox-error--focus": "var(--xmlui-offset-outline-TextBox-error--focus)", "Input:color-placeholder-TextBox-error": "var(--xmlui-color-placeholder-TextBox-error)", "Input:color-adornment-TextBox-error": "var(--xmlui-color-adornment-TextBox-error)", "Input:radius-TextBox-warning": "var(--xmlui-radius-TextBox-warning)", "Input:color-border-TextBox-warning": "var(--xmlui-color-border-TextBox-warning)", "Input:thickness-border-TextBox-warning": "var(--xmlui-thickness-border-TextBox-warning)", "Input:style-border-TextBox-warning": "var(--xmlui-style-border-TextBox-warning)", "Input:font-size-TextBox-warning": "var(--xmlui-font-size-TextBox-warning)", "Input:padding-TextBox-warning": "var(--xmlui-padding-TextBox-warning)", "Input:color-bg-TextBox-warning": "var(--xmlui-color-bg-TextBox-warning)", "Input:shadow-TextBox-warning": "var(--xmlui-shadow-TextBox-warning)", "Input:color-text-TextBox-warning": "var(--xmlui-color-text-TextBox-warning)", "Input:color-border-TextBox-warning--hover": "var(--xmlui-color-border-TextBox-warning--hover)", "Input:color-bg-TextBox-warning--hover": "var(--xmlui-color-bg-TextBox-warning--hover)", "Input:shadow-TextBox-warning--hover": "var(--xmlui-shadow-TextBox-warning--hover)", "Input:color-text-TextBox-warning--hover": "var(--xmlui-color-text-TextBox-warning--hover)", "Input:color-border-TextBox-warning--focus": "var(--xmlui-color-border-TextBox-warning--focus)", "Input:color-bg-TextBox-warning--focus": "var(--xmlui-color-bg-TextBox-warning--focus)", "Input:shadow-TextBox-warning--focus": "var(--xmlui-shadow-TextBox-warning--focus)", "Input:color-text-TextBox-warning--focus": "var(--xmlui-color-text-TextBox-warning--focus)", "Input:thickness-outline-TextBox-warning--focus": "var(--xmlui-thickness-outline-TextBox-warning--focus)", "Input:color-outline-TextBox-warning--focus": "var(--xmlui-color-outline-TextBox-warning--focus)", "Input:style-outline-TextBox-warning--focus": "var(--xmlui-style-outline-TextBox-warning--focus)", "Input:offset-outline-TextBox-warning--focus": "var(--xmlui-offset-outline-TextBox-warning--focus)", "Input:color-placeholder-TextBox-warning": "var(--xmlui-color-placeholder-TextBox-warning)", "Input:color-adornment-TextBox-warning": "var(--xmlui-color-adornment-TextBox-warning)", "Input:radius-TextBox-success": "var(--xmlui-radius-TextBox-success)", "Input:color-border-TextBox-success": "var(--xmlui-color-border-TextBox-success)", "Input:thickness-border-TextBox-success": "var(--xmlui-thickness-border-TextBox-success)", "Input:style-border-TextBox-success": "var(--xmlui-style-border-TextBox-success)", "Input:font-size-TextBox-success": "var(--xmlui-font-size-TextBox-success)", "Input:padding-TextBox-success": "var(--xmlui-padding-TextBox-success)", "Input:color-bg-TextBox-success": "var(--xmlui-color-bg-TextBox-success)", "Input:shadow-TextBox-success": "var(--xmlui-shadow-TextBox-success)", "Input:color-text-TextBox-success": "var(--xmlui-color-text-TextBox-success)", "Input:color-border-TextBox-success--hover": "var(--xmlui-color-border-TextBox-success--hover)", "Input:color-bg-TextBox-success--hover": "var(--xmlui-color-bg-TextBox-success--hover)", "Input:shadow-TextBox-success--hover": "var(--xmlui-shadow-TextBox-success--hover)", "Input:color-text-TextBox-success--hover": "var(--xmlui-color-text-TextBox-success--hover)", "Input:color-border-TextBox-success--focus": "var(--xmlui-color-border-TextBox-success--focus)", "Input:color-bg-TextBox-success--focus": "var(--xmlui-color-bg-TextBox-success--focus)", "Input:shadow-TextBox-success--focus": "var(--xmlui-shadow-TextBox-success--focus)", "Input:color-text-TextBox-success--focus": "var(--xmlui-color-text-TextBox-success--focus)", "Input:thickness-outline-TextBox-success--focus": "var(--xmlui-thickness-outline-TextBox-success--focus)", "Input:color-outline-TextBox-success--focus": "var(--xmlui-color-outline-TextBox-success--focus)", "Input:style-outline-TextBox-success--focus": "var(--xmlui-style-outline-TextBox-success--focus)", "Input:offset-outline-TextBox-success--focus": "var(--xmlui-offset-outline-TextBox-success--focus)", "Input:color-placeholder-TextBox-success": "var(--xmlui-color-placeholder-TextBox-success)", "Input:color-adornment-TextBox-success": "var(--xmlui-color-adornment-TextBox-success)", "Input:color-bg-TextBox--disabled": "var(--xmlui-color-bg-TextBox--disabled)", "Input:color-text-TextBox--disabled": "var(--xmlui-color-text-TextBox--disabled)", "Input:color-border-TextBox--disabled": "var(--xmlui-color-border-TextBox--disabled)"}'`,inputRoot:"_inputRoot_1s937_13",input:"_input_1s937_13",adornment:"_adornment_1s937_53",error:"_error_1s937_56",warning:"_warning_1s937_91",valid:"_valid_1s937_126",readOnly:"_readOnly_1s937_178"},jMA={wrapper:"_wrapper_18f9r_13"};function Tw({iconName:A,text:e,className:t}){return Q.jsx(Q.Fragment,{children:A||e?Q.jsxs("div",{className:KA(jMA.wrapper,t),children:[Q.jsx(be,{name:A,style:{color:"inherit"}}),e&&Q.jsx("div",{style:{display:"flex",userSelect:"none"},children:Q.jsx(Bn,{style:{fontSize:"inherit"},children:e})})]}):null})}const Lw=d.forwardRef(function({id:e,type:t="text",value:r="",updateState:n=ve,initialValue:o="",style:i,maxLength:a,enabled:s=!0,placeholder:l,validationStatus:c="none",onDidChange:u=ve,onFocus:g=ve,onBlur:h=ve,registerComponentApi:B,startText:E,startIcon:C,endText:m,endIcon:I,autoFocus:v,readOnly:y,tabIndex:x,label:b,labelPosition:k,labelWidth:M,labelBreak:N,required:F},L){const T=d.useRef(null);d.useEffect(()=>{v&&setTimeout(()=>{var J;(J=T.current)==null||J.focus()},0)},[v]);const[P,G]=_A.useState(r);d.useEffect(()=>{G(r)},[r]),d.useEffect(()=>{n({value:o},{initial:!0})},[o,n]);const H=d.useCallback(J=>{G(J),n({value:J}),u(J)},[u,n]),z=d.useCallback(J=>{H(J.target.value)},[H]),q=d.useCallback(()=>{g==null||g()},[g]),O=d.useCallback(()=>{h==null||h()},[h]),Y=d.useCallback(()=>{var J;(J=T.current)==null||J.focus()},[]),S=ze(J=>{H(J)});return d.useEffect(()=>{B==null||B({focus:Y,setValue:S})},[Y,B,S]),Q.jsx(rs,{labelPosition:k,label:b,labelWidth:M,labelBreak:N,required:F,enabled:s,onFocus:g,onBlur:h,style:i,ref:L,children:Q.jsxs("div",{className:KA(aa.inputRoot,{[aa.disabled]:!s,[aa.readOnly]:y,[aa.error]:c==="error",[aa.warning]:c==="warning",[aa.valid]:c==="valid"}),tabIndex:-1,onFocus:Y,children:[Q.jsx(Tw,{text:E,iconName:C,className:aa.adornment}),Q.jsx("input",{id:e,type:t,className:KA(aa.input,{[aa.readOnly]:y}),disabled:!s,value:P,maxLength:a,placeholder:l,onChange:z,onFocus:q,onBlur:O,ref:T,readOnly:y,autoFocus:v,tabIndex:s?x:-1,required:F}),Q.jsx(Tw,{text:m,iconName:I,className:aa.adornment})]})})}),Fw={themeVars:'"[]"',container:"_container_mle43_13",textBoxWrapper:"_textBoxWrapper_mle43_21",button:"_button_mle43_27"},{useDropzone:qMA}=cU,SU=({id:A,enabled:e=!0,style:t,buttonLabel:r="Browse",buttonIcon:n,buttonIconPosition:o,variant:i,buttonThemeColor:a,buttonSize:s,autoFocus:l,validationStatus:c,updateState:u=ve,onDidChange:g=ve,onFocus:h=ve,onBlur:B=ve,registerComponentApi:E,value:C,initialValue:m,acceptsFileType:I,multiple:v=!1,directory:y=!1,label:x,labelPosition:b,labelWidth:k,labelBreak:M,required:N})=>{const F=O4(m)?m:void 0,L=O4(C)?C:void 0,T=d.useRef(null),P=typeof I=="string"?I:I==null?void 0:I.join(",");d.useEffect(()=>{l&&setTimeout(()=>{var $;($=T.current)==null||$.focus()},0)},[l]),d.useEffect(()=>{u({value:F},{initial:!0})},[F,u]);const G=d.useCallback(()=>{B==null||B()},[B]),H=d.useCallback(()=>{var $;($=T.current)==null||$.focus()},[]),z=d.useCallback($=>{$.length&&(u({value:$}),g($))},[u,g]),{getRootProps:q,getInputProps:O,open:Y}=qMA({disabled:!e,multiple:v||y,onDrop:z,noClick:!0,noKeyboard:!0,noDragEventsBubbling:!0,useFsAccessApi:y===!1}),S=d.useCallback(()=>{h==null||h()},[h]),J=ze(()=>{Y()});return d.useEffect(()=>{E==null||E({focus:H,open:J})},[H,J,E]),Q.jsx(rs,{labelPosition:b,label:x,labelWidth:k,labelBreak:M,required:N,enabled:e,onFocus:h,onBlur:B,style:t,children:Q.jsxs("div",{className:Fw.container,children:[Q.jsxs("button",{...q({tabIndex:0,onFocus:S,onBlur:G,disabled:!e,className:Fw.textBoxWrapper,onClick:Y,ref:T,type:"button"}),children:[Q.jsx(v4A,{children:Q.jsx("input",{...O({webkitdirectory:y?"true":void 0}),accept:P})}),Q.jsx(Lw,{enabled:e,value:(L==null?void 0:L.map($=>$.name).join(", "))||"",validationStatus:c,readOnly:!0,tabIndex:-1})]}),Q.jsx(or,{id:A,disabled:!e,type:"button",onClick:Y,icon:n,iconPosition:o,variant:i,themeColor:a,size:s,className:Fw.button,autoFocus:l,children:r})]})})};function JMA(A){return A instanceof File}function O4(A){return Array.isArray(A)&&A.every(JMA)}const qn={themeVars:`'{"Input:radius-NumberBox-default": "var(--xmlui-radius-NumberBox-default)", "Input:color-border-NumberBox-default": "var(--xmlui-color-border-NumberBox-default)", "Input:thickness-border-NumberBox-default": "var(--xmlui-thickness-border-NumberBox-default)", "Input:style-border-NumberBox-default": "var(--xmlui-style-border-NumberBox-default)", "Input:font-size-NumberBox-default": "var(--xmlui-font-size-NumberBox-default)", "Input:color-bg-NumberBox-default": "var(--xmlui-color-bg-NumberBox-default)", "Input:shadow-NumberBox-default": "var(--xmlui-shadow-NumberBox-default)", "Input:color-text-NumberBox-default": "var(--xmlui-color-text-NumberBox-default)", "Input:color-border-NumberBox-default--hover": "var(--xmlui-color-border-NumberBox-default--hover)", "Input:color-bg-NumberBox-default--hover": "var(--xmlui-color-bg-NumberBox-default--hover)", "Input:shadow-NumberBox-default--hover": "var(--xmlui-shadow-NumberBox-default--hover)", "Input:color-text-NumberBox-default--hover": "var(--xmlui-color-text-NumberBox-default--hover)", "Input:color-border-NumberBox-default--focus": "var(--xmlui-color-border-NumberBox-default--focus)", "Input:color-bg-NumberBox-default--focus": "var(--xmlui-color-bg-NumberBox-default--focus)", "Input:shadow-NumberBox-default--focus": "var(--xmlui-shadow-NumberBox-default--focus)", "Input:color-text-NumberBox-default--focus": "var(--xmlui-color-text-NumberBox-default--focus)", "Input:thickness-outline-NumberBox-default--focus": "var(--xmlui-thickness-outline-NumberBox-default--focus)", "Input:color-outline-NumberBox-default--focus": "var(--xmlui-color-outline-NumberBox-default--focus)", "Input:style-outline-NumberBox-default--focus": "var(--xmlui-style-outline-NumberBox-default--focus)", "Input:offset-outline-NumberBox-default--focus": "var(--xmlui-offset-outline-NumberBox-default--focus)", "Input:color-placeholder-NumberBox-default": "var(--xmlui-color-placeholder-NumberBox-default)", "Input:color-adornment-NumberBox-default": "var(--xmlui-color-adornment-NumberBox-default)", "Input:radius-NumberBox-error": "var(--xmlui-radius-NumberBox-error)", "Input:color-border-NumberBox-error": "var(--xmlui-color-border-NumberBox-error)", "Input:thickness-border-NumberBox-error": "var(--xmlui-thickness-border-NumberBox-error)", "Input:style-border-NumberBox-error": "var(--xmlui-style-border-NumberBox-error)", "Input:font-size-NumberBox-error": "var(--xmlui-font-size-NumberBox-error)", "Input:color-bg-NumberBox-error": "var(--xmlui-color-bg-NumberBox-error)", "Input:shadow-NumberBox-error": "var(--xmlui-shadow-NumberBox-error)", "Input:color-text-NumberBox-error": "var(--xmlui-color-text-NumberBox-error)", "Input:color-border-NumberBox-error--hover": "var(--xmlui-color-border-NumberBox-error--hover)", "Input:color-bg-NumberBox-error--hover": "var(--xmlui-color-bg-NumberBox-error--hover)", "Input:shadow-NumberBox-error--hover": "var(--xmlui-shadow-NumberBox-error--hover)", "Input:color-text-NumberBox-error--hover": "var(--xmlui-color-text-NumberBox-error--hover)", "Input:color-border-NumberBox-error--focus": "var(--xmlui-color-border-NumberBox-error--focus)", "Input:color-bg-NumberBox-error--focus": "var(--xmlui-color-bg-NumberBox-error--focus)", "Input:shadow-NumberBox-error--focus": "var(--xmlui-shadow-NumberBox-error--focus)", "Input:color-text-NumberBox-error--focus": "var(--xmlui-color-text-NumberBox-error--focus)", "Input:thickness-outline-NumberBox-error--focus": "var(--xmlui-thickness-outline-NumberBox-error--focus)", "Input:color-outline-NumberBox-error--focus": "var(--xmlui-color-outline-NumberBox-error--focus)", "Input:style-outline-NumberBox-error--focus": "var(--xmlui-style-outline-NumberBox-error--focus)", "Input:offset-outline-NumberBox-error--focus": "var(--xmlui-offset-outline-NumberBox-error--focus)", "Input:color-placeholder-NumberBox-error": "var(--xmlui-color-placeholder-NumberBox-error)", "Input:color-adornment-NumberBox-error": "var(--xmlui-color-adornment-NumberBox-error)", "Input:radius-NumberBox-warning": "var(--xmlui-radius-NumberBox-warning)", "Input:color-border-NumberBox-warning": "var(--xmlui-color-border-NumberBox-warning)", "Input:thickness-border-NumberBox-warning": "var(--xmlui-thickness-border-NumberBox-warning)", "Input:style-border-NumberBox-warning": "var(--xmlui-style-border-NumberBox-warning)", "Input:font-size-NumberBox-warning": "var(--xmlui-font-size-NumberBox-warning)", "Input:color-bg-NumberBox-warning": "var(--xmlui-color-bg-NumberBox-warning)", "Input:shadow-NumberBox-warning": "var(--xmlui-shadow-NumberBox-warning)", "Input:color-text-NumberBox-warning": "var(--xmlui-color-text-NumberBox-warning)", "Input:color-border-NumberBox-warning--hover": "var(--xmlui-color-border-NumberBox-warning--hover)", "Input:color-bg-NumberBox-warning--hover": "var(--xmlui-color-bg-NumberBox-warning--hover)", "Input:shadow-NumberBox-warning--hover": "var(--xmlui-shadow-NumberBox-warning--hover)", "Input:color-text-NumberBox-warning--hover": "var(--xmlui-color-text-NumberBox-warning--hover)", "Input:color-border-NumberBox-warning--focus": "var(--xmlui-color-border-NumberBox-warning--focus)", "Input:color-bg-NumberBox-warning--focus": "var(--xmlui-color-bg-NumberBox-warning--focus)", "Input:shadow-NumberBox-warning--focus": "var(--xmlui-shadow-NumberBox-warning--focus)", "Input:color-text-NumberBox-warning--focus": "var(--xmlui-color-text-NumberBox-warning--focus)", "Input:thickness-outline-NumberBox-warning--focus": "var(--xmlui-thickness-outline-NumberBox-warning--focus)", "Input:color-outline-NumberBox-warning--focus": "var(--xmlui-color-outline-NumberBox-warning--focus)", "Input:style-outline-NumberBox-warning--focus": "var(--xmlui-style-outline-NumberBox-warning--focus)", "Input:offset-outline-NumberBox-warning--focus": "var(--xmlui-offset-outline-NumberBox-warning--focus)", "Input:color-placeholder-NumberBox-warning": "var(--xmlui-color-placeholder-NumberBox-warning)", "Input:color-adornment-NumberBox-warning": "var(--xmlui-color-adornment-NumberBox-warning)", "Input:radius-NumberBox-success": "var(--xmlui-radius-NumberBox-success)", "Input:color-border-NumberBox-success": "var(--xmlui-color-border-NumberBox-success)", "Input:thickness-border-NumberBox-success": "var(--xmlui-thickness-border-NumberBox-success)", "Input:style-border-NumberBox-success": "var(--xmlui-style-border-NumberBox-success)", "Input:font-size-NumberBox-success": "var(--xmlui-font-size-NumberBox-success)", "Input:color-bg-NumberBox-success": "var(--xmlui-color-bg-NumberBox-success)", "Input:shadow-NumberBox-success": "var(--xmlui-shadow-NumberBox-success)", "Input:color-text-NumberBox-success": "var(--xmlui-color-text-NumberBox-success)", "Input:color-border-NumberBox-success--hover": "var(--xmlui-color-border-NumberBox-success--hover)", "Input:color-bg-NumberBox-success--hover": "var(--xmlui-color-bg-NumberBox-success--hover)", "Input:shadow-NumberBox-success--hover": "var(--xmlui-shadow-NumberBox-success--hover)", "Input:color-text-NumberBox-success--hover": "var(--xmlui-color-text-NumberBox-success--hover)", "Input:color-border-NumberBox-success--focus": "var(--xmlui-color-border-NumberBox-success--focus)", "Input:color-bg-NumberBox-success--focus": "var(--xmlui-color-bg-NumberBox-success--focus)", "Input:shadow-NumberBox-success--focus": "var(--xmlui-shadow-NumberBox-success--focus)", "Input:color-text-NumberBox-success--focus": "var(--xmlui-color-text-NumberBox-success--focus)", "Input:thickness-outline-NumberBox-success--focus": "var(--xmlui-thickness-outline-NumberBox-success--focus)", "Input:color-outline-NumberBox-success--focus": "var(--xmlui-color-outline-NumberBox-success--focus)", "Input:style-outline-NumberBox-success--focus": "var(--xmlui-style-outline-NumberBox-success--focus)", "Input:offset-outline-NumberBox-success--focus": "var(--xmlui-offset-outline-NumberBox-success--focus)", "Input:color-placeholder-NumberBox-success": "var(--xmlui-color-placeholder-NumberBox-success)", "Input:color-adornment-NumberBox-success": "var(--xmlui-color-adornment-NumberBox-success)", "Input:color-bg-NumberBox--disabled": "var(--xmlui-color-bg-NumberBox--disabled)", "Input:color-text-NumberBox--disabled": "var(--xmlui-color-text-NumberBox--disabled)", "Input:color-border-NumberBox--disabled": "var(--xmlui-color-border-NumberBox--disabled)"}'`,inputRoot:"_inputRoot_zavgy_13",input:"_input_zavgy_13",adornment:"_adornment_zavgy_53",error:"_error_zavgy_56",warning:"_warning_zavgy_90",valid:"_valid_zavgy_124",spinnerBox:"_spinnerBox_zavgy_184",spinnerButton:"_spinnerButton_zavgy_191",readOnly:"_readOnly_zavgy_197"},Ow=999999999999999,H4=".",Hw="e",zMA=/^-?\d+$/,WMA=/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/,VMA=1;function NU(A){return typeof A>"u"||A===null||A===""}function G4(A){return typeof A=="string"?A:typeof A=="number"?A.toString():""}function XMA(A,e,t){let r=A;return A<e&&(r=e),A>t&&(r=t),r}function RU(A,e=!1){return(e?eSA:ZMA)(A)?(typeof A=="string"&&(A=e?Number.parseInt(A):+A),A):null}function ZMA(A){return typeof A=="string"&&A.length>0?!Number.isNaN(+A)&&ASA(A):typeof A=="number"}function ASA(A){const e=A.split(".")[0];return Math.abs(Number.parseInt(e))<=Ow}function eSA(A){return typeof A=="string"&&A.length>0&&![Hw,H4].some(e=>A.includes(e))?Number.isSafeInteger(+A):typeof A=="number"?Number.isSafeInteger(A):!1}const PU=d.forwardRef(function({id:e,value:t,initialValue:r,style:n,enabled:o=!0,placeholder:i,validationStatus:a="none",hasSpinBox:s=!0,step:l,integersOnly:c=!1,zeroOrPositive:u=!1,min:g=u?0:-Ow,max:h=Ow,maxLength:B,updateState:E=ve,onDidChange:C=ve,onFocus:m=ve,onBlur:I=ve,registerComponentApi:v,startText:y,startIcon:x,endText:b,endIcon:k,autoFocus:M,readOnly:N,required:F,label:L,labelPosition:T,labelWidth:P,labelBreak:G},H){g=Math.max(u?0:-Ow,g);const z=RU(l,!0)??VMA,q=d.useRef(null),O=d.useRef(null),Y=d.useRef(null);d.useEffect(()=>{M&&setTimeout(()=>{var X;(X=q.current)==null||X.focus()},0)},[M]);const[S,J]=_A.useState(G4(t));d.useEffect(()=>{J(G4(t))},[t]),d.useEffect(()=>{E({value:r},{initial:!0})},[r,E]);const $=d.useCallback((X,cA)=>{J(cA),E({value:X}),C(X)},[C,E]),U=d.useCallback(X=>{const cA=X.target.value;$(cA,cA)},[$]),AA=d.useCallback(()=>{if(N)return;const X=TU(S,z,g,h,c);X!==void 0&&$(X,X.toString())},[S,z,g,h,c,$,N]),Z=d.useCallback(()=>{if(N)return;const X=TU(S,-z,g,h,c);X!==void 0&&$(X,X.toString())},[S,z,g,h,c,$,N]);LU(O.current,AA),LU(Y.current,Z);const tA=X=>{var jA;let cA=!1;const hA=X.target.value??"",EA=X.target.selectionStart,DA=hA.substring(0,X.target.selectionStart).indexOf(Hw);switch(X.data){case"-":cA=!0,DA===-1?hA.startsWith("-")||JA("-"+hA,EA+1):hA[DA+1]!=="-"&&JA(hA.substring(0,DA+1)+"-"+hA.substring(DA+1),EA+1);break;case"+":cA=!0,DA===-1?hA.startsWith("-")&&JA(hA.substring(1),EA-1):hA[DA+1]==="-"&&JA(hA.substring(0,DA+1)+hA.substring(DA+2),EA-1);break;case H4:(c||hA.includes(H4)||DA!==-1)&&(cA=!0);break;case Hw:if(c){cA=!0;break}(hA.includes(Hw)||SA(EA,2))&&(cA=!0);break;default:let $A=X.data;const VA=X.target.selectionStart;if(((jA=X.data)==null?void 0:jA.length)>0){if($A.startsWith("-")){if(VA>0){cA=!0;break}}else if($A.startsWith("+")){cA=!0;break}const pe=hA.substring(0,VA)+$A+hA.substring(X.target.selectionEnd);c&&!zMA.test(pe)?cA=!0:WMA.test(pe)||(cA=!0);break}if(X.data<"0"||X.data>"9"){cA=!0;break}if(hA.startsWith("-")&&VA===0){cA=!0;break}DA!==-1&&SA(DA+1,1)&&(cA=!0);break}cA&&X.preventDefault();return;function SA($A,VA){let pe=0;for(;$A<hA.length;)if(/\d/.test(hA[$A++]))pe++;else{pe=VA+1;break}return pe>VA}function JA($A,VA){var pe;X.target.value=$A,$($A,$A),(pe=q.current)==null||pe.setSelectionRange(VA,VA)}},nA=d.useCallback(X=>{X.code==="ArrowUp"&&(X.preventDefault(),AA()),X.code==="ArrowDown"&&(X.preventDefault(),Z())},[AA,Z]),sA=d.useCallback(()=>{m==null||m()},[m]),iA=d.useCallback(()=>{J(G4(t)),I==null||I()},[t,I]),aA=d.useCallback(()=>{var X;(X=q.current)==null||X.focus()},[]),rA=ze(X=>{$(X,NU(X)?"":String(X))});return d.useEffect(()=>{v==null||v({focus:aA,setValue:rA})},[aA,v,rA]),Q.jsx(rs,{ref:H,labelPosition:T,label:L,labelWidth:P,labelBreak:G,required:F,enabled:o,onFocus:m,onBlur:I,style:n,children:Q.jsxs("div",{className:KA(qn.inputRoot,{[qn.readOnly]:N,[qn.disabled]:!o,[qn.noSpinBox]:!s,[qn.error]:a==="error",[qn.warning]:a==="warning",[qn.valid]:a==="valid"}),tabIndex:-1,onFocus:()=>{var X;(X=q.current)==null||X.focus()},children:[Q.jsx(Tw,{text:y,iconName:x,className:qn.adornment}),Q.jsx("input",{id:e,type:"text",inputMode:"numeric",className:KA(qn.input,{[qn.readOnly]:N}),disabled:!o,value:S,step:l,placeholder:i,onChange:U,onFocus:sA,onBlur:iA,onBeforeInput:tA,onKeyDown:nA,readOnly:N,ref:q,autoFocus:M,maxLength:B,required:F}),Q.jsx(Tw,{text:b,iconName:k,className:qn.adornment}),s&&Q.jsxs("div",{className:qn.spinnerBox,children:[Q.jsx(or,{"data-spinner":"up",type:"button",variant:"ghost",themeColor:"secondary",tabIndex:-1,className:qn.spinnerButton,disabled:!o||N,ref:O,children:Q.jsx(be,{name:"chevronup",size:"sm"})}),Q.jsx(or,{"data-spinner":"down",type:"button",tabIndex:-1,variant:"ghost",themeColor:"secondary",className:qn.spinnerButton,disabled:!o||N,ref:Y,children:Q.jsx(be,{name:"chevrondown",size:"sm"})})]})]})})});function TU(A,e,t,r,n){const o=RU(A,n);if(!NU(o))return XMA(o+e,t,r)}function LU(A,e,t=500){const r=d.useRef(0),n=d.useRef(0),o=d.useRef(e);d.useEffect(()=>{o.current=e},[e]),d.useEffect(()=>{const i=()=>{var l;(l=o.current)==null||l.call(o),r.current=window.setTimeout(()=>{n.current=window.setInterval(()=>{var c;(c=o.current)==null||c.call(o)},100)},t)},a=()=>{clearTimeout(r.current),clearInterval(n.current)},s=()=>{clearTimeout(r.current),clearInterval(n.current)};return A==null||A.addEventListener("mousedown",i),A==null||A.addEventListener("mouseup",a),A==null||A.addEventListener("mouseout",s),()=>{A==null||A.removeEventListener("mousedown",i),A==null||A.removeEventListener("mouseup",a),A==null||A.removeEventListener("mouseout",s)}},[A,e,t])}function FU(A,[e,t]){return Math.min(t,Math.max(e,A))}function _r(A,e,{checkForDefaultPrevented:t=!0}={}){return function(n){if(A==null||A(n),t===!1||!n.defaultPrevented)return e==null?void 0:e(n)}}function tSA(A,e=[]){let t=[];function r(o,i){const a=d.createContext(i),s=t.length;t=[...t,i];function l(u){const{scope:g,children:h,...B}=u,E=(g==null?void 0:g[A][s])||a,C=d.useMemo(()=>B,Object.values(B));return Q.jsx(E.Provider,{value:C,children:h})}function c(u,g){const h=(g==null?void 0:g[A][s])||a,B=d.useContext(h);if(B)return B;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${o}\``)}return l.displayName=o+"Provider",[l,c]}const n=()=>{const o=t.map(i=>d.createContext(i));return function(a){const s=(a==null?void 0:a[A])||o;return d.useMemo(()=>({[`__scope${A}`]:{...a,[A]:s}}),[a,s])}};return n.scopeName=A,[r,rSA(n,...e)]}function rSA(...A){const e=A[0];if(A.length===1)return e;const t=()=>{const r=A.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(o){const i=r.reduce((a,{useScope:s,scopeName:l})=>{const u=s(o)[`__scope${l}`];return{...a,...u}},{});return d.useMemo(()=>({[`__scope${e.scopeName}`]:i}),[i])}};return t.scopeName=e.scopeName,t}function nSA(A,e){typeof A=="function"?A(e):A!=null&&(A.current=e)}function OU(...A){return e=>A.forEach(t=>nSA(t,e))}function En(...A){return d.useCallback(OU(...A),A)}var jB=d.forwardRef((A,e)=>{const{children:t,...r}=A,n=d.Children.toArray(t),o=n.find(iSA);if(o){const i=o.props.children,a=n.map(s=>s===o?d.Children.count(i)>1?d.Children.only(null):d.isValidElement(i)?i.props.children:null:s);return Q.jsx(U4,{...r,ref:e,children:d.isValidElement(i)?d.cloneElement(i,void 0,a):null})}return Q.jsx(U4,{...r,ref:e,children:t})});jB.displayName="Slot";var U4=d.forwardRef((A,e)=>{const{children:t,...r}=A;if(d.isValidElement(t)){const n=sSA(t);return d.cloneElement(t,{...aSA(r,t.props),ref:e?OU(e,n):n})}return d.Children.count(t)>1?d.Children.only(null):null});U4.displayName="SlotClone";var oSA=({children:A})=>Q.jsx(Q.Fragment,{children:A});function iSA(A){return d.isValidElement(A)&&A.type===oSA}function aSA(A,e){const t={...e};for(const r in e){const n=A[r],o=e[r];/^on[A-Z]/.test(r)?n&&o?t[r]=(...a)=>{o(...a),n(...a)}:n&&(t[r]=n):r==="style"?t[r]={...n,...o}:r==="className"&&(t[r]=[n,o].filter(Boolean).join(" "))}return{...A,...t}}function sSA(A){var r,n;let e=(r=Object.getOwnPropertyDescriptor(A.props,"ref"))==null?void 0:r.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?A.ref:(e=(n=Object.getOwnPropertyDescriptor(A,"ref"))==null?void 0:n.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?A.props.ref:A.props.ref||A.ref)}function lSA(A){const e=A+"CollectionProvider",[t,r]=tSA(e),[n,o]=t(e,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:B,children:E}=h,C=_A.useRef(null),m=_A.useRef(new Map).current;return Q.jsx(n,{scope:B,itemMap:m,collectionRef:C,children:E})};i.displayName=e;const a=A+"CollectionSlot",s=_A.forwardRef((h,B)=>{const{scope:E,children:C}=h,m=o(a,E),I=En(B,m.collectionRef);return Q.jsx(jB,{ref:I,children:C})});s.displayName=a;const l=A+"CollectionItemSlot",c="data-radix-collection-item",u=_A.forwardRef((h,B)=>{const{scope:E,children:C,...m}=h,I=_A.useRef(null),v=En(B,I),y=o(l,E);return _A.useEffect(()=>(y.itemMap.set(I,{ref:I,...m}),()=>void y.itemMap.delete(I))),Q.jsx(jB,{[c]:"",ref:v,children:C})});u.displayName=l;function g(h){const B=o(A+"CollectionConsumer",h);return _A.useCallback(()=>{const C=B.collectionRef.current;if(!C)return[];const m=Array.from(C.querySelectorAll(`[${c}]`));return Array.from(B.itemMap.values()).sort((y,x)=>m.indexOf(y.ref.current)-m.indexOf(x.ref.current))},[B.collectionRef,B.itemMap])}return[{Provider:i,Slot:s,ItemSlot:u},g,r]}function cSA(A,e=[]){let t=[];function r(o,i){const a=d.createContext(i),s=t.length;t=[...t,i];const l=u=>{var m;const{scope:g,children:h,...B}=u,E=((m=g==null?void 0:g[A])==null?void 0:m[s])||a,C=d.useMemo(()=>B,Object.values(B));return Q.jsx(E.Provider,{value:C,children:h})};l.displayName=o+"Provider";function c(u,g){var E;const h=((E=g==null?void 0:g[A])==null?void 0:E[s])||a,B=d.useContext(h);if(B)return B;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${o}\``)}return[l,c]}const n=()=>{const o=t.map(i=>d.createContext(i));return function(a){const s=(a==null?void 0:a[A])||o;return d.useMemo(()=>({[`__scope${A}`]:{...a,[A]:s}}),[a,s])}};return n.scopeName=A,[r,uSA(n,...e)]}function uSA(...A){const e=A[0];if(A.length===1)return e;const t=()=>{const r=A.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(o){const i=r.reduce((a,{useScope:s,scopeName:l})=>{const u=s(o)[`__scope${l}`];return{...a,...u}},{});return d.useMemo(()=>({[`__scope${e.scopeName}`]:i}),[i])}};return t.scopeName=e.scopeName,t}var fSA=d.createContext(void 0);function gSA(A){const e=d.useContext(fSA);return A||e||"ltr"}var dSA=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Mr=dSA.reduce((A,e)=>{const t=d.forwardRef((r,n)=>{const{asChild:o,...i}=r,a=o?jB:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Q.jsx(a,{...i,ref:n})});return t.displayName=`Primitive.${e}`,{...A,[e]:t}},{});function hSA(A,e){A&&Dr.flushSync(()=>A.dispatchEvent(e))}function nl(A){const e=d.useRef(A);return d.useEffect(()=>{e.current=A}),d.useMemo(()=>(...t)=>{var r;return(r=e.current)==null?void 0:r.call(e,...t)},[])}function pSA(A,e=globalThis==null?void 0:globalThis.document){const t=nl(A);d.useEffect(()=>{const r=n=>{n.key==="Escape"&&t(n)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[t,e])}var BSA="DismissableLayer",K4="dismissableLayer.update",ESA="dismissableLayer.pointerDownOutside",CSA="dismissableLayer.focusOutside",HU,GU=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),UU=d.forwardRef((A,e)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:r,onPointerDownOutside:n,onFocusOutside:o,onInteractOutside:i,onDismiss:a,...s}=A,l=d.useContext(GU),[c,u]=d.useState(null),g=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=d.useState({}),B=En(e,k=>u(k)),E=Array.from(l.layers),[C]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),m=E.indexOf(C),I=c?E.indexOf(c):-1,v=l.layersWithOutsidePointerEventsDisabled.size>0,y=I>=m,x=wSA(k=>{const M=k.target,N=[...l.branches].some(F=>F.contains(M));!y||N||(n==null||n(k),i==null||i(k),k.defaultPrevented||a==null||a())},g),b=ISA(k=>{const M=k.target;[...l.branches].some(F=>F.contains(M))||(o==null||o(k),i==null||i(k),k.defaultPrevented||a==null||a())},g);return pSA(k=>{I===l.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},g),d.useEffect(()=>{if(c)return t&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(HU=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),KU(),()=>{t&&l.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=HU)}},[c,g,t,l]),d.useEffect(()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),KU())},[c,l]),d.useEffect(()=>{const k=()=>h({});return document.addEventListener(K4,k),()=>document.removeEventListener(K4,k)},[]),Q.jsx(Mr.div,{...s,ref:B,style:{pointerEvents:v?y?"auto":"none":void 0,...A.style},onFocusCapture:_r(A.onFocusCapture,b.onFocusCapture),onBlurCapture:_r(A.onBlurCapture,b.onBlurCapture),onPointerDownCapture:_r(A.onPointerDownCapture,x.onPointerDownCapture)})});UU.displayName=BSA;var mSA="DismissableLayerBranch",QSA=d.forwardRef((A,e)=>{const t=d.useContext(GU),r=d.useRef(null),n=En(e,r);return d.useEffect(()=>{const o=r.current;if(o)return t.branches.add(o),()=>{t.branches.delete(o)}},[t.branches]),Q.jsx(Mr.div,{...A,ref:n})});QSA.displayName=mSA;function wSA(A,e=globalThis==null?void 0:globalThis.document){const t=nl(A),r=d.useRef(!1),n=d.useRef(()=>{});return d.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let s=function(){YU(ESA,t,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",n.current),n.current=s,e.addEventListener("click",n.current,{once:!0})):s()}else e.removeEventListener("click",n.current);r.current=!1},i=window.setTimeout(()=>{e.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),e.removeEventListener("pointerdown",o),e.removeEventListener("click",n.current)}},[e,t]),{onPointerDownCapture:()=>r.current=!0}}function ISA(A,e=globalThis==null?void 0:globalThis.document){const t=nl(A),r=d.useRef(!1);return d.useEffect(()=>{const n=o=>{o.target&&!r.current&&YU(CSA,t,{originalEvent:o},{discrete:!1})};return e.addEventListener("focusin",n),()=>e.removeEventListener("focusin",n)},[e,t]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function KU(){const A=new CustomEvent(K4);document.dispatchEvent(A)}function YU(A,e,t,{discrete:r}){const n=t.originalEvent.target,o=new CustomEvent(A,{bubbles:!1,cancelable:!0,detail:t});e&&n.addEventListener(A,e,{once:!0}),r?hSA(n,o):n.dispatchEvent(o)}var Y4=0;function vSA(){d.useEffect(()=>{const A=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",A[0]??$U()),document.body.insertAdjacentElement("beforeend",A[1]??$U()),Y4++,()=>{Y4===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Y4--}},[])}function $U(){const A=document.createElement("span");return A.setAttribute("data-radix-focus-guard",""),A.tabIndex=0,A.style.outline="none",A.style.opacity="0",A.style.position="fixed",A.style.pointerEvents="none",A}var $4="focusScope.autoFocusOnMount",j4="focusScope.autoFocusOnUnmount",jU={bubbles:!1,cancelable:!0},DSA="FocusScope",qU=d.forwardRef((A,e)=>{const{loop:t=!1,trapped:r=!1,onMountAutoFocus:n,onUnmountAutoFocus:o,...i}=A,[a,s]=d.useState(null),l=nl(n),c=nl(o),u=d.useRef(null),g=En(e,E=>s(E)),h=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let E=function(v){if(h.paused||!a)return;const y=v.target;a.contains(y)?u.current=y:pc(u.current,{select:!0})},C=function(v){if(h.paused||!a)return;const y=v.relatedTarget;y!==null&&(a.contains(y)||pc(u.current,{select:!0}))},m=function(v){if(document.activeElement===document.body)for(const x of v)x.removedNodes.length>0&&pc(a)};document.addEventListener("focusin",E),document.addEventListener("focusout",C);const I=new MutationObserver(m);return a&&I.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",C),I.disconnect()}}},[r,a,h.paused]),d.useEffect(()=>{if(a){WU.add(h);const E=document.activeElement;if(!a.contains(E)){const m=new CustomEvent($4,jU);a.addEventListener($4,l),a.dispatchEvent(m),m.defaultPrevented||(ySA(MSA(JU(a)),{select:!0}),document.activeElement===E&&pc(a))}return()=>{a.removeEventListener($4,l),setTimeout(()=>{const m=new CustomEvent(j4,jU);a.addEventListener(j4,c),a.dispatchEvent(m),m.defaultPrevented||pc(E??document.body,{select:!0}),a.removeEventListener(j4,c),WU.remove(h)},0)}}},[a,l,c,h]);const B=d.useCallback(E=>{if(!t&&!r||h.paused)return;const C=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,m=document.activeElement;if(C&&m){const I=E.currentTarget,[v,y]=bSA(I);v&&y?!E.shiftKey&&m===y?(E.preventDefault(),t&&pc(v,{select:!0})):E.shiftKey&&m===v&&(E.preventDefault(),t&&pc(y,{select:!0})):m===I&&E.preventDefault()}},[t,r,h.paused]);return Q.jsx(Mr.div,{tabIndex:-1,...i,ref:g,onKeyDown:B})});qU.displayName=DSA;function ySA(A,{select:e=!1}={}){const t=document.activeElement;for(const r of A)if(pc(r,{select:e}),document.activeElement!==t)return}function bSA(A){const e=JU(A),t=zU(e,A),r=zU(e.reverse(),A);return[t,r]}function JU(A){const e=[],t=document.createTreeWalker(A,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const n=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||n?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)e.push(t.currentNode);return e}function zU(A,e){for(const t of A)if(!xSA(t,{upTo:e}))return t}function xSA(A,{upTo:e}){if(getComputedStyle(A).visibility==="hidden")return!0;for(;A;){if(e!==void 0&&A===e)return!1;if(getComputedStyle(A).display==="none")return!0;A=A.parentElement}return!1}function kSA(A){return A instanceof HTMLInputElement&&"select"in A}function pc(A,{select:e=!1}={}){if(A&&A.focus){const t=document.activeElement;A.focus({preventScroll:!0}),A!==t&&kSA(A)&&e&&A.select()}}var WU=_SA();function _SA(){let A=[];return{add(e){const t=A[0];e!==t&&(t==null||t.pause()),A=VU(A,e),A.unshift(e)},remove(e){var t;A=VU(A,e),(t=A[0])==null||t.resume()}}}function VU(A,e){const t=[...A],r=t.indexOf(e);return r!==-1&&t.splice(r,1),t}function MSA(A){return A.filter(e=>e.tagName!=="A")}var Go=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{},SSA=Ps.useId||(()=>{}),NSA=0;function q4(A){const[e,t]=d.useState(SSA());return Go(()=>{t(r=>r??String(NSA++))},[A]),e?`radix-${e}`:""}const RSA=["top","right","bottom","left"],as=Math.min,Uo=Math.max,Gw=Math.round,Uw=Math.floor,Bc=A=>({x:A,y:A}),PSA={left:"right",right:"left",bottom:"top",top:"bottom"},TSA={start:"end",end:"start"};function J4(A,e,t){return Uo(A,as(e,t))}function ol(A,e){return typeof A=="function"?A(e):A}function il(A){return A.split("-")[0]}function xd(A){return A.split("-")[1]}function z4(A){return A==="x"?"y":"x"}function W4(A){return A==="y"?"height":"width"}function Ec(A){return["top","bottom"].includes(il(A))?"y":"x"}function V4(A){return z4(Ec(A))}function LSA(A,e,t){t===void 0&&(t=!1);const r=xd(A),n=V4(A),o=W4(n);let i=n==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(i=Kw(i)),[i,Kw(i)]}function FSA(A){const e=Kw(A);return[X4(A),e,X4(e)]}function X4(A){return A.replace(/start|end/g,e=>TSA[e])}function OSA(A,e,t){const r=["left","right"],n=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(A){case"top":case"bottom":return t?e?n:r:e?r:n;case"left":case"right":return e?o:i;default:return[]}}function HSA(A,e,t,r){const n=xd(A);let o=OSA(il(A),t==="start",r);return n&&(o=o.map(i=>i+"-"+n),e&&(o=o.concat(o.map(X4)))),o}function Kw(A){return A.replace(/left|right|bottom|top/g,e=>PSA[e])}function GSA(A){return{top:0,right:0,bottom:0,left:0,...A}}function XU(A){return typeof A!="number"?GSA(A):{top:A,right:A,bottom:A,left:A}}function Yw(A){const{x:e,y:t,width:r,height:n}=A;return{width:r,height:n,top:t,left:e,right:e+r,bottom:t+n,x:e,y:t}}function ZU(A,e,t){let{reference:r,floating:n}=A;const o=Ec(e),i=V4(e),a=W4(i),s=il(e),l=o==="y",c=r.x+r.width/2-n.width/2,u=r.y+r.height/2-n.height/2,g=r[a]/2-n[a]/2;let h;switch(s){case"top":h={x:c,y:r.y-n.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:u};break;case"left":h={x:r.x-n.width,y:u};break;default:h={x:r.x,y:r.y}}switch(xd(e)){case"start":h[i]-=g*(t&&l?-1:1);break;case"end":h[i]+=g*(t&&l?-1:1);break}return h}const USA=async(A,e,t)=>{const{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:i}=t,a=o.filter(Boolean),s=await(i.isRTL==null?void 0:i.isRTL(e));let l=await i.getElementRects({reference:A,floating:e,strategy:n}),{x:c,y:u}=ZU(l,r,s),g=r,h={},B=0;for(let E=0;E<a.length;E++){const{name:C,fn:m}=a[E],{x:I,y:v,data:y,reset:x}=await m({x:c,y:u,initialPlacement:r,placement:g,strategy:n,middlewareData:h,rects:l,platform:i,elements:{reference:A,floating:e}});c=I??c,u=v??u,h={...h,[C]:{...h[C],...y}},x&&B<=50&&(B++,typeof x=="object"&&(x.placement&&(g=x.placement),x.rects&&(l=x.rects===!0?await i.getElementRects({reference:A,floating:e,strategy:n}):x.rects),{x:c,y:u}=ZU(l,g,s)),E=-1)}return{x:c,y:u,placement:g,strategy:n,middlewareData:h}};async function qB(A,e){var t;e===void 0&&(e={});const{x:r,y:n,platform:o,rects:i,elements:a,strategy:s}=A,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:u="floating",altBoundary:g=!1,padding:h=0}=ol(e,A),B=XU(h),C=a[g?u==="floating"?"reference":"floating":u],m=Yw(await o.getClippingRect({element:(t=await(o.isElement==null?void 0:o.isElement(C)))==null||t?C:C.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:l,rootBoundary:c,strategy:s})),I=u==="floating"?{x:r,y:n,width:i.floating.width,height:i.floating.height}:i.reference,v=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),y=await(o.isElement==null?void 0:o.isElement(v))?await(o.getScale==null?void 0:o.getScale(v))||{x:1,y:1}:{x:1,y:1},x=Yw(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:I,offsetParent:v,strategy:s}):I);return{top:(m.top-x.top+B.top)/y.y,bottom:(x.bottom-m.bottom+B.bottom)/y.y,left:(m.left-x.left+B.left)/y.x,right:(x.right-m.right+B.right)/y.x}}const KSA=A=>({name:"arrow",options:A,async fn(e){const{x:t,y:r,placement:n,rects:o,platform:i,elements:a,middlewareData:s}=e,{element:l,padding:c=0}=ol(A,e)||{};if(l==null)return{};const u=XU(c),g={x:t,y:r},h=V4(n),B=W4(h),E=await i.getDimensions(l),C=h==="y",m=C?"top":"left",I=C?"bottom":"right",v=C?"clientHeight":"clientWidth",y=o.reference[B]+o.reference[h]-g[h]-o.floating[B],x=g[h]-o.reference[h],b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let k=b?b[v]:0;(!k||!await(i.isElement==null?void 0:i.isElement(b)))&&(k=a.floating[v]||o.floating[B]);const M=y/2-x/2,N=k/2-E[B]/2-1,F=as(u[m],N),L=as(u[I],N),T=F,P=k-E[B]-L,G=k/2-E[B]/2+M,H=J4(T,G,P),z=!s.arrow&&xd(n)!=null&&G!==H&&o.reference[B]/2-(G<T?F:L)-E[B]/2<0,q=z?G<T?G-T:G-P:0;return{[h]:g[h]+q,data:{[h]:H,centerOffset:G-H-q,...z&&{alignmentOffset:q}},reset:z}}}),YSA=function(A){return A===void 0&&(A={}),{name:"flip",options:A,async fn(e){var t,r;const{placement:n,middlewareData:o,rects:i,initialPlacement:a,platform:s,elements:l}=e,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:B="none",flipAlignment:E=!0,...C}=ol(A,e);if((t=o.arrow)!=null&&t.alignmentOffset)return{};const m=il(n),I=Ec(a),v=il(a)===a,y=await(s.isRTL==null?void 0:s.isRTL(l.floating)),x=g||(v||!E?[Kw(a)]:FSA(a)),b=B!=="none";!g&&b&&x.push(...HSA(a,E,B,y));const k=[a,...x],M=await qB(e,C),N=[];let F=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&N.push(M[m]),u){const G=LSA(n,i,y);N.push(M[G[0]],M[G[1]])}if(F=[...F,{placement:n,overflows:N}],!N.every(G=>G<=0)){var L,T;const G=(((L=o.flip)==null?void 0:L.index)||0)+1,H=k[G];if(H)return{data:{index:G,overflows:F},reset:{placement:H}};let z=(T=F.filter(q=>q.overflows[0]<=0).sort((q,O)=>q.overflows[1]-O.overflows[1])[0])==null?void 0:T.placement;if(!z)switch(h){case"bestFit":{var P;const q=(P=F.filter(O=>{if(b){const Y=Ec(O.placement);return Y===I||Y==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(Y=>Y>0).reduce((Y,S)=>Y+S,0)]).sort((O,Y)=>O[1]-Y[1])[0])==null?void 0:P[0];q&&(z=q);break}case"initialPlacement":z=a;break}if(n!==z)return{reset:{placement:z}}}return{}}}};function AK(A,e){return{top:A.top-e.height,right:A.right-e.width,bottom:A.bottom-e.height,left:A.left-e.width}}function eK(A){return RSA.some(e=>A[e]>=0)}const $SA=function(A){return A===void 0&&(A={}),{name:"hide",options:A,async fn(e){const{rects:t}=e,{strategy:r="referenceHidden",...n}=ol(A,e);switch(r){case"referenceHidden":{const o=await qB(e,{...n,elementContext:"reference"}),i=AK(o,t.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:eK(i)}}}case"escaped":{const o=await qB(e,{...n,altBoundary:!0}),i=AK(o,t.floating);return{data:{escapedOffsets:i,escaped:eK(i)}}}default:return{}}}}};async function jSA(A,e){const{placement:t,platform:r,elements:n}=A,o=await(r.isRTL==null?void 0:r.isRTL(n.floating)),i=il(t),a=xd(t),s=Ec(t)==="y",l=["left","top"].includes(i)?-1:1,c=o&&s?-1:1,u=ol(e,A);let{mainAxis:g,crossAxis:h,alignmentAxis:B}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&typeof B=="number"&&(h=a==="end"?B*-1:B),s?{x:h*c,y:g*l}:{x:g*l,y:h*c}}const qSA=function(A){return A===void 0&&(A=0),{name:"offset",options:A,async fn(e){var t,r;const{x:n,y:o,placement:i,middlewareData:a}=e,s=await jSA(e,A);return i===((t=a.offset)==null?void 0:t.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:n+s.x,y:o+s.y,data:{...s,placement:i}}}}},JSA=function(A){return A===void 0&&(A={}),{name:"shift",options:A,async fn(e){const{x:t,y:r,placement:n}=e,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:C=>{let{x:m,y:I}=C;return{x:m,y:I}}},...s}=ol(A,e),l={x:t,y:r},c=await qB(e,s),u=Ec(il(n)),g=z4(u);let h=l[g],B=l[u];if(o){const C=g==="y"?"top":"left",m=g==="y"?"bottom":"right",I=h+c[C],v=h-c[m];h=J4(I,h,v)}if(i){const C=u==="y"?"top":"left",m=u==="y"?"bottom":"right",I=B+c[C],v=B-c[m];B=J4(I,B,v)}const E=a.fn({...e,[g]:h,[u]:B});return{...E,data:{x:E.x-t,y:E.y-r}}}}},zSA=function(A){return A===void 0&&(A={}),{options:A,fn(e){const{x:t,y:r,placement:n,rects:o,middlewareData:i}=e,{offset:a=0,mainAxis:s=!0,crossAxis:l=!0}=ol(A,e),c={x:t,y:r},u=Ec(n),g=z4(u);let h=c[g],B=c[u];const E=ol(a,e),C=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(s){const v=g==="y"?"height":"width",y=o.reference[g]-o.floating[v]+C.mainAxis,x=o.reference[g]+o.reference[v]-C.mainAxis;h<y?h=y:h>x&&(h=x)}if(l){var m,I;const v=g==="y"?"width":"height",y=["top","left"].includes(il(n)),x=o.reference[u]-o.floating[v]+(y&&((m=i.offset)==null?void 0:m[u])||0)+(y?0:C.crossAxis),b=o.reference[u]+o.reference[v]+(y?0:((I=i.offset)==null?void 0:I[u])||0)-(y?C.crossAxis:0);B<x?B=x:B>b&&(B=b)}return{[g]:h,[u]:B}}}},WSA=function(A){return A===void 0&&(A={}),{name:"size",options:A,async fn(e){const{placement:t,rects:r,platform:n,elements:o}=e,{apply:i=()=>{},...a}=ol(A,e),s=await qB(e,a),l=il(t),c=xd(t),u=Ec(t)==="y",{width:g,height:h}=r.floating;let B,E;l==="top"||l==="bottom"?(B=l,E=c===(await(n.isRTL==null?void 0:n.isRTL(o.floating))?"start":"end")?"left":"right"):(E=l,B=c==="end"?"top":"bottom");const C=h-s.top-s.bottom,m=g-s.left-s.right,I=as(h-s[B],C),v=as(g-s[E],m),y=!e.middlewareData.shift;let x=I,b=v;if(u?b=c||y?as(v,m):m:x=c||y?as(I,C):C,y&&!c){const M=Uo(s.left,0),N=Uo(s.right,0),F=Uo(s.top,0),L=Uo(s.bottom,0);u?b=g-2*(M!==0||N!==0?M+N:Uo(s.left,s.right)):x=h-2*(F!==0||L!==0?F+L:Uo(s.top,s.bottom))}await i({...e,availableWidth:b,availableHeight:x});const k=await n.getDimensions(o.floating);return g!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}};function kd(A){return tK(A)?(A.nodeName||"").toLowerCase():"#document"}function Ko(A){var e;return(A==null||(e=A.ownerDocument)==null?void 0:e.defaultView)||window}function al(A){var e;return(e=(tK(A)?A.ownerDocument:A.document)||window.document)==null?void 0:e.documentElement}function tK(A){return A instanceof Node||A instanceof Ko(A).Node}function sa(A){return A instanceof Element||A instanceof Ko(A).Element}function ss(A){return A instanceof HTMLElement||A instanceof Ko(A).HTMLElement}function rK(A){return typeof ShadowRoot>"u"?!1:A instanceof ShadowRoot||A instanceof Ko(A).ShadowRoot}function JB(A){const{overflow:e,overflowX:t,overflowY:r,display:n}=la(A);return/auto|scroll|overlay|hidden|clip/.test(e+r+t)&&!["inline","contents"].includes(n)}function VSA(A){return["table","td","th"].includes(kd(A))}function $w(A){return[":popover-open",":modal"].some(e=>{try{return A.matches(e)}catch{return!1}})}function Z4(A){const e=A_(),t=sa(A)?la(A):A;return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(t.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(t.contain||"").includes(r))}function XSA(A){let e=Cc(A);for(;ss(e)&&!_d(e);){if(Z4(e))return e;if($w(e))return null;e=Cc(e)}return null}function A_(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function _d(A){return["html","body","#document"].includes(kd(A))}function la(A){return Ko(A).getComputedStyle(A)}function jw(A){return sa(A)?{scrollLeft:A.scrollLeft,scrollTop:A.scrollTop}:{scrollLeft:A.scrollX,scrollTop:A.scrollY}}function Cc(A){if(kd(A)==="html")return A;const e=A.assignedSlot||A.parentNode||rK(A)&&A.host||al(A);return rK(e)?e.host:e}function nK(A){const e=Cc(A);return _d(e)?A.ownerDocument?A.ownerDocument.body:A.body:ss(e)&&JB(e)?e:nK(e)}function zB(A,e,t){var r;e===void 0&&(e=[]),t===void 0&&(t=!0);const n=nK(A),o=n===((r=A.ownerDocument)==null?void 0:r.body),i=Ko(n);if(o){const a=e_(i);return e.concat(i,i.visualViewport||[],JB(n)?n:[],a&&t?zB(a):[])}return e.concat(n,zB(n,[],t))}function e_(A){return A.parent&&Object.getPrototypeOf(A.parent)?A.frameElement:null}function oK(A){const e=la(A);let t=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const n=ss(A),o=n?A.offsetWidth:t,i=n?A.offsetHeight:r,a=Gw(t)!==o||Gw(r)!==i;return a&&(t=o,r=i),{width:t,height:r,$:a}}function t_(A){return sa(A)?A:A.contextElement}function Md(A){const e=t_(A);if(!ss(e))return Bc(1);const t=e.getBoundingClientRect(),{width:r,height:n,$:o}=oK(e);let i=(o?Gw(t.width):t.width)/r,a=(o?Gw(t.height):t.height)/n;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const ZSA=Bc(0);function iK(A){const e=Ko(A);return!A_()||!e.visualViewport?ZSA:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ANA(A,e,t){return e===void 0&&(e=!1),!t||e&&t!==Ko(A)?!1:e}function lf(A,e,t,r){e===void 0&&(e=!1),t===void 0&&(t=!1);const n=A.getBoundingClientRect(),o=t_(A);let i=Bc(1);e&&(r?sa(r)&&(i=Md(r)):i=Md(A));const a=ANA(o,t,r)?iK(o):Bc(0);let s=(n.left+a.x)/i.x,l=(n.top+a.y)/i.y,c=n.width/i.x,u=n.height/i.y;if(o){const g=Ko(o),h=r&&sa(r)?Ko(r):r;let B=g,E=e_(B);for(;E&&r&&h!==B;){const C=Md(E),m=E.getBoundingClientRect(),I=la(E),v=m.left+(E.clientLeft+parseFloat(I.paddingLeft))*C.x,y=m.top+(E.clientTop+parseFloat(I.paddingTop))*C.y;s*=C.x,l*=C.y,c*=C.x,u*=C.y,s+=v,l+=y,B=Ko(E),E=e_(B)}}return Yw({width:c,height:u,x:s,y:l})}function eNA(A){let{elements:e,rect:t,offsetParent:r,strategy:n}=A;const o=n==="fixed",i=al(r),a=e?$w(e.floating):!1;if(r===i||a&&o)return t;let s={scrollLeft:0,scrollTop:0},l=Bc(1);const c=Bc(0),u=ss(r);if((u||!u&&!o)&&((kd(r)!=="body"||JB(i))&&(s=jw(r)),ss(r))){const g=lf(r);l=Md(r),c.x=g.x+r.clientLeft,c.y=g.y+r.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+c.x,y:t.y*l.y-s.scrollTop*l.y+c.y}}function tNA(A){return Array.from(A.getClientRects())}function aK(A){return lf(al(A)).left+jw(A).scrollLeft}function rNA(A){const e=al(A),t=jw(A),r=A.ownerDocument.body,n=Uo(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=Uo(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let i=-t.scrollLeft+aK(A);const a=-t.scrollTop;return la(r).direction==="rtl"&&(i+=Uo(e.clientWidth,r.clientWidth)-n),{width:n,height:o,x:i,y:a}}function nNA(A,e){const t=Ko(A),r=al(A),n=t.visualViewport;let o=r.clientWidth,i=r.clientHeight,a=0,s=0;if(n){o=n.width,i=n.height;const l=A_();(!l||l&&e==="fixed")&&(a=n.offsetLeft,s=n.offsetTop)}return{width:o,height:i,x:a,y:s}}function oNA(A,e){const t=lf(A,!0,e==="fixed"),r=t.top+A.clientTop,n=t.left+A.clientLeft,o=ss(A)?Md(A):Bc(1),i=A.clientWidth*o.x,a=A.clientHeight*o.y,s=n*o.x,l=r*o.y;return{width:i,height:a,x:s,y:l}}function sK(A,e,t){let r;if(e==="viewport")r=nNA(A,t);else if(e==="document")r=rNA(al(A));else if(sa(e))r=oNA(e,t);else{const n=iK(A);r={...e,x:e.x-n.x,y:e.y-n.y}}return Yw(r)}function lK(A,e){const t=Cc(A);return t===e||!sa(t)||_d(t)?!1:la(t).position==="fixed"||lK(t,e)}function iNA(A,e){const t=e.get(A);if(t)return t;let r=zB(A,[],!1).filter(a=>sa(a)&&kd(a)!=="body"),n=null;const o=la(A).position==="fixed";let i=o?Cc(A):A;for(;sa(i)&&!_d(i);){const a=la(i),s=Z4(i);!s&&a.position==="fixed"&&(n=null),(o?!s&&!n:!s&&a.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||JB(i)&&!s&&lK(A,i))?r=r.filter(c=>c!==i):n=a,i=Cc(i)}return e.set(A,r),r}function aNA(A){let{element:e,boundary:t,rootBoundary:r,strategy:n}=A;const i=[...t==="clippingAncestors"?$w(e)?[]:iNA(e,this._c):[].concat(t),r],a=i[0],s=i.reduce((l,c)=>{const u=sK(e,c,n);return l.top=Uo(u.top,l.top),l.right=as(u.right,l.right),l.bottom=as(u.bottom,l.bottom),l.left=Uo(u.left,l.left),l},sK(e,a,n));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function sNA(A){const{width:e,height:t}=oK(A);return{width:e,height:t}}function lNA(A,e,t){const r=ss(e),n=al(e),o=t==="fixed",i=lf(A,!0,o,e);let a={scrollLeft:0,scrollTop:0};const s=Bc(0);if(r||!r&&!o)if((kd(e)!=="body"||JB(n))&&(a=jw(e)),r){const u=lf(e,!0,o,e);s.x=u.x+e.clientLeft,s.y=u.y+e.clientTop}else n&&(s.x=aK(n));const l=i.left+a.scrollLeft-s.x,c=i.top+a.scrollTop-s.y;return{x:l,y:c,width:i.width,height:i.height}}function r_(A){return la(A).position==="static"}function cK(A,e){return!ss(A)||la(A).position==="fixed"?null:e?e(A):A.offsetParent}function uK(A,e){const t=Ko(A);if($w(A))return t;if(!ss(A)){let n=Cc(A);for(;n&&!_d(n);){if(sa(n)&&!r_(n))return n;n=Cc(n)}return t}let r=cK(A,e);for(;r&&VSA(r)&&r_(r);)r=cK(r,e);return r&&_d(r)&&r_(r)&&!Z4(r)?t:r||XSA(A)||t}const cNA=async function(A){const e=this.getOffsetParent||uK,t=this.getDimensions,r=await t(A.floating);return{reference:lNA(A.reference,await e(A.floating),A.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function uNA(A){return la(A).direction==="rtl"}const fNA={convertOffsetParentRelativeRectToViewportRelativeRect:eNA,getDocumentElement:al,getClippingRect:aNA,getOffsetParent:uK,getElementRects:cNA,getClientRects:tNA,getDimensions:sNA,getScale:Md,isElement:sa,isRTL:uNA};function gNA(A,e){let t=null,r;const n=al(A);function o(){var a;clearTimeout(r),(a=t)==null||a.disconnect(),t=null}function i(a,s){a===void 0&&(a=!1),s===void 0&&(s=1),o();const{left:l,top:c,width:u,height:g}=A.getBoundingClientRect();if(a||e(),!u||!g)return;const h=Uw(c),B=Uw(n.clientWidth-(l+u)),E=Uw(n.clientHeight-(c+g)),C=Uw(l),I={rootMargin:-h+"px "+-B+"px "+-E+"px "+-C+"px",threshold:Uo(0,as(1,s))||1};let v=!0;function y(x){const b=x[0].intersectionRatio;if(b!==s){if(!v)return i();b?i(!1,b):r=setTimeout(()=>{i(!1,1e-7)},1e3)}v=!1}try{t=new IntersectionObserver(y,{...I,root:n.ownerDocument})}catch{t=new IntersectionObserver(y,I)}t.observe(A)}return i(!0),o}function n_(A,e,t,r){r===void 0&&(r={});const{ancestorScroll:n=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,l=t_(A),c=n||o?[...l?zB(l):[],...zB(e)]:[];c.forEach(m=>{n&&m.addEventListener("scroll",t,{passive:!0}),o&&m.addEventListener("resize",t)});const u=l&&a?gNA(l,t):null;let g=-1,h=null;i&&(h=new ResizeObserver(m=>{let[I]=m;I&&I.target===l&&h&&(h.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var v;(v=h)==null||v.observe(e)})),t()}),l&&!s&&h.observe(l),h.observe(e));let B,E=s?lf(A):null;s&&C();function C(){const m=lf(A);E&&(m.x!==E.x||m.y!==E.y||m.width!==E.width||m.height!==E.height)&&t(),E=m,B=requestAnimationFrame(C)}return t(),()=>{var m;c.forEach(I=>{n&&I.removeEventListener("scroll",t),o&&I.removeEventListener("resize",t)}),u==null||u(),(m=h)==null||m.disconnect(),h=null,s&&cancelAnimationFrame(B)}}const dNA=qSA,hNA=JSA,pNA=YSA,BNA=WSA,ENA=$SA,fK=KSA,CNA=zSA,mNA=(A,e,t)=>{const r=new Map,n={platform:fNA,...t},o={...n.platform,_c:r};return USA(A,e,{...n,platform:o})};var qw=typeof document<"u"?d.useLayoutEffect:d.useEffect;function Jw(A,e){if(A===e)return!0;if(typeof A!=typeof e)return!1;if(typeof A=="function"&&A.toString()===e.toString())return!0;let t,r,n;if(A&&e&&typeof A=="object"){if(Array.isArray(A)){if(t=A.length,t!==e.length)return!1;for(r=t;r--!==0;)if(!Jw(A[r],e[r]))return!1;return!0}if(n=Object.keys(A),t=n.length,t!==Object.keys(e).length)return!1;for(r=t;r--!==0;)if(!{}.hasOwnProperty.call(e,n[r]))return!1;for(r=t;r--!==0;){const o=n[r];if(!(o==="_owner"&&A.$$typeof)&&!Jw(A[o],e[o]))return!1}return!0}return A!==A&&e!==e}function gK(A){return typeof window>"u"?1:(A.ownerDocument.defaultView||window).devicePixelRatio||1}function dK(A,e){const t=gK(A);return Math.round(e*t)/t}function hK(A){const e=d.useRef(A);return qw(()=>{e.current=A}),e}function o_(A){A===void 0&&(A={});const{placement:e="bottom",strategy:t="absolute",middleware:r=[],platform:n,elements:{reference:o,floating:i}={},transform:a=!0,whileElementsMounted:s,open:l}=A,[c,u]=d.useState({x:0,y:0,strategy:t,placement:e,middlewareData:{},isPositioned:!1}),[g,h]=d.useState(r);Jw(g,r)||h(r);const[B,E]=d.useState(null),[C,m]=d.useState(null),I=d.useCallback(q=>{q!==b.current&&(b.current=q,E(q))},[]),v=d.useCallback(q=>{q!==k.current&&(k.current=q,m(q))},[]),y=o||B,x=i||C,b=d.useRef(null),k=d.useRef(null),M=d.useRef(c),N=s!=null,F=hK(s),L=hK(n),T=d.useCallback(()=>{if(!b.current||!k.current)return;const q={placement:e,strategy:t,middleware:g};L.current&&(q.platform=L.current),mNA(b.current,k.current,q).then(O=>{const Y={...O,isPositioned:!0};P.current&&!Jw(M.current,Y)&&(M.current=Y,Dr.flushSync(()=>{u(Y)}))})},[g,e,t,L]);qw(()=>{l===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,u(q=>({...q,isPositioned:!1})))},[l]);const P=d.useRef(!1);qw(()=>(P.current=!0,()=>{P.current=!1}),[]),qw(()=>{if(y&&(b.current=y),x&&(k.current=x),y&&x){if(F.current)return F.current(y,x,T);T()}},[y,x,T,F,N]);const G=d.useMemo(()=>({reference:b,floating:k,setReference:I,setFloating:v}),[I,v]),H=d.useMemo(()=>({reference:y,floating:x}),[y,x]),z=d.useMemo(()=>{const q={position:t,left:0,top:0};if(!H.floating)return q;const O=dK(H.floating,c.x),Y=dK(H.floating,c.y);return a?{...q,transform:"translate("+O+"px, "+Y+"px)",...gK(H.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:O,top:Y}},[t,a,H.floating,c.x,c.y]);return d.useMemo(()=>({...c,update:T,refs:G,elements:H,floatingStyles:z}),[c,T,G,H,z])}const QNA=A=>{function e(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:A,fn(t){const{element:r,padding:n}=typeof A=="function"?A(t):A;return r&&e(r)?r.current!=null?fK({element:r.current,padding:n}).fn(t):{}:r?fK({element:r,padding:n}).fn(t):{}}}},i_=(A,e)=>({...dNA(A),options:[A,e]}),a_=(A,e)=>({...hNA(A),options:[A,e]}),s_=(A,e)=>({...CNA(A),options:[A,e]}),l_=(A,e)=>({...pNA(A),options:[A,e]}),c_=(A,e)=>({...BNA(A),options:[A,e]}),u_=(A,e)=>({...ENA(A),options:[A,e]}),f_=(A,e)=>({...QNA(A),options:[A,e]});var wNA="Arrow",pK=d.forwardRef((A,e)=>{const{children:t,width:r=10,height:n=5,...o}=A;return Q.jsx(Mr.svg,{...o,ref:e,width:r,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:A.asChild?t:Q.jsx("polygon",{points:"0,0 30,0 15,10"})})});pK.displayName=wNA;var INA=pK;function vNA(A,e=[]){let t=[];function r(o,i){const a=d.createContext(i),s=t.length;t=[...t,i];function l(u){const{scope:g,children:h,...B}=u,E=(g==null?void 0:g[A][s])||a,C=d.useMemo(()=>B,Object.values(B));return Q.jsx(E.Provider,{value:C,children:h})}function c(u,g){const h=(g==null?void 0:g[A][s])||a,B=d.useContext(h);if(B)return B;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${o}\``)}return l.displayName=o+"Provider",[l,c]}const n=()=>{const o=t.map(i=>d.createContext(i));return function(a){const s=(a==null?void 0:a[A])||o;return d.useMemo(()=>({[`__scope${A}`]:{...a,[A]:s}}),[a,s])}};return n.scopeName=A,[r,DNA(n,...e)]}function DNA(...A){const e=A[0];if(A.length===1)return e;const t=()=>{const r=A.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(o){const i=r.reduce((a,{useScope:s,scopeName:l})=>{const u=s(o)[`__scope${l}`];return{...a,...u}},{});return d.useMemo(()=>({[`__scope${e.scopeName}`]:i}),[i])}};return t.scopeName=e.scopeName,t}function yNA(A){const[e,t]=d.useState(void 0);return Go(()=>{if(A){t({width:A.offsetWidth,height:A.offsetHeight});const r=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;const o=n[0];let i,a;if("borderBoxSize"in o){const s=o.borderBoxSize,l=Array.isArray(s)?s[0]:s;i=l.inlineSize,a=l.blockSize}else i=A.offsetWidth,a=A.offsetHeight;t({width:i,height:a})});return r.observe(A,{box:"border-box"}),()=>r.unobserve(A)}else t(void 0)},[A]),e}var g_="Popper",[BK,EK]=vNA(g_),[bNA,CK]=BK(g_),mK=A=>{const{__scopePopper:e,children:t}=A,[r,n]=d.useState(null);return Q.jsx(bNA,{scope:e,anchor:r,onAnchorChange:n,children:t})};mK.displayName=g_;var QK="PopperAnchor",wK=d.forwardRef((A,e)=>{const{__scopePopper:t,virtualRef:r,...n}=A,o=CK(QK,t),i=d.useRef(null),a=En(e,i);return d.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:Q.jsx(Mr.div,{...n,ref:a})});wK.displayName=QK;var d_="PopperContent",[xNA,kNA]=BK(d_),IK=d.forwardRef((A,e)=>{var nA,sA,iA,aA,rA,X;const{__scopePopper:t,side:r="bottom",sideOffset:n=0,align:o="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:s=!0,collisionBoundary:l=[],collisionPadding:c=0,sticky:u="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:B,...E}=A,C=CK(d_,t),[m,I]=d.useState(null),v=En(e,cA=>I(cA)),[y,x]=d.useState(null),b=yNA(y),k=(b==null?void 0:b.width)??0,M=(b==null?void 0:b.height)??0,N=r+(o!=="center"?"-"+o:""),F=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},L=Array.isArray(l)?l:[l],T=L.length>0,P={padding:F,boundary:L.filter(MNA),altBoundary:T},{refs:G,floatingStyles:H,placement:z,isPositioned:q,middlewareData:O}=o_({strategy:"fixed",placement:N,whileElementsMounted:(...cA)=>n_(...cA,{animationFrame:h==="always"}),elements:{reference:C.anchor},middleware:[i_({mainAxis:n+M,alignmentAxis:i}),s&&a_({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?s_():void 0,...P}),s&&l_({...P}),c_({...P,apply:({elements:cA,rects:hA,availableWidth:EA,availableHeight:IA})=>{const{width:DA,height:SA}=hA.reference,JA=cA.floating.style;JA.setProperty("--radix-popper-available-width",`${EA}px`),JA.setProperty("--radix-popper-available-height",`${IA}px`),JA.setProperty("--radix-popper-anchor-width",`${DA}px`),JA.setProperty("--radix-popper-anchor-height",`${SA}px`)}}),y&&f_({element:y,padding:a}),SNA({arrowWidth:k,arrowHeight:M}),g&&u_({strategy:"referenceHidden",...P})]}),[Y,S]=yK(z),J=nl(B);Go(()=>{q&&(J==null||J())},[q,J]);const $=(nA=O.arrow)==null?void 0:nA.x,U=(sA=O.arrow)==null?void 0:sA.y,AA=((iA=O.arrow)==null?void 0:iA.centerOffset)!==0,[Z,tA]=d.useState();return Go(()=>{m&&tA(window.getComputedStyle(m).zIndex)},[m]),Q.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:q?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Z,"--radix-popper-transform-origin":[(aA=O.transformOrigin)==null?void 0:aA.x,(rA=O.transformOrigin)==null?void 0:rA.y].join(" "),...((X=O.hide)==null?void 0:X.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:A.dir,children:Q.jsx(xNA,{scope:t,placedSide:Y,onArrowChange:x,arrowX:$,arrowY:U,shouldHideArrow:AA,children:Q.jsx(Mr.div,{"data-side":Y,"data-align":S,...E,ref:v,style:{...E.style,animation:q?void 0:"none"}})})})});IK.displayName=d_;var vK="PopperArrow",_NA={top:"bottom",right:"left",bottom:"top",left:"right"},DK=d.forwardRef(function(e,t){const{__scopePopper:r,...n}=e,o=kNA(vK,r),i=_NA[o.placedSide];return Q.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:Q.jsx(INA,{...n,ref:t,style:{...n.style,display:"block"}})})});DK.displayName=vK;function MNA(A){return A!==null}var SNA=A=>({name:"transformOrigin",options:A,fn(e){var C,m,I;const{placement:t,rects:r,middlewareData:n}=e,i=((C=n.arrow)==null?void 0:C.centerOffset)!==0,a=i?0:A.arrowWidth,s=i?0:A.arrowHeight,[l,c]=yK(t),u={start:"0%",center:"50%",end:"100%"}[c],g=(((m=n.arrow)==null?void 0:m.x)??0)+a/2,h=(((I=n.arrow)==null?void 0:I.y)??0)+s/2;let B="",E="";return l==="bottom"?(B=i?u:`${g}px`,E=`${-s}px`):l==="top"?(B=i?u:`${g}px`,E=`${r.floating.height+s}px`):l==="right"?(B=`${-s}px`,E=i?u:`${h}px`):l==="left"&&(B=`${r.floating.width+s}px`,E=i?u:`${h}px`),{data:{x:B,y:E}}}});function yK(A){const[e,t="center"]=A.split("-");return[e,t]}var NNA=mK,RNA=wK,PNA=IK,TNA=DK,LNA="Portal",bK=d.forwardRef((A,e)=>{var a;const{container:t,...r}=A,[n,o]=d.useState(!1);Go(()=>o(!0),[]);const i=t||n&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?yp.createPortal(Q.jsx(Mr.div,{...r,ref:e}),i):null});bK.displayName=LNA;function xK({prop:A,defaultProp:e,onChange:t=()=>{}}){const[r,n]=FNA({defaultProp:e,onChange:t}),o=A!==void 0,i=o?A:r,a=nl(t),s=d.useCallback(l=>{if(o){const u=typeof l=="function"?l(A):l;u!==A&&a(u)}else n(l)},[o,A,n,a]);return[i,s]}function FNA({defaultProp:A,onChange:e}){const t=d.useState(A),[r]=t,n=d.useRef(r),o=nl(e);return d.useEffect(()=>{n.current!==r&&(o(r),n.current=r)},[r,n,o]),t}function ONA(A){const e=d.useRef({value:A,previous:A});return d.useMemo(()=>(e.current.value!==A&&(e.current.previous=e.current.value,e.current.value=A),e.current.previous),[A])}var HNA="VisuallyHidden",kK=d.forwardRef((A,e)=>Q.jsx(Mr.span,{...A,ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...A.style}}));kK.displayName=HNA;var _K=KQ(),h_=function(){},zw=d.forwardRef(function(A,e){var t=d.useRef(null),r=d.useState({onScrollCapture:h_,onWheelCapture:h_,onTouchMoveCapture:h_}),n=r[0],o=r[1],i=A.forwardProps,a=A.children,s=A.className,l=A.removeScrollBar,c=A.enabled,u=A.shards,g=A.sideCar,h=A.noIsolation,B=A.inert,E=A.allowPinchZoom,C=A.as,m=C===void 0?"div":C,I=A.gapMode,v=kB(A,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),y=g,x=UQ([t,e]),b=bt(bt({},v),n);return d.createElement(d.Fragment,null,c&&d.createElement(y,{sideCar:_K,removeScrollBar:l,shards:u,noIsolation:h,inert:B,setCallbacks:o,allowPinchZoom:!!E,lockRef:t,gapMode:I}),i?d.cloneElement(d.Children.only(a),bt(bt({},b),{ref:x})):d.createElement(m,bt({},b,{className:s,ref:x}),a))});zw.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},zw.classNames={fullWidth:Xu,zeroRight:Vu};var p_=!1;if(typeof window<"u")try{var Ww=Object.defineProperty({},"passive",{get:function(){return p_=!0,!0}});window.addEventListener("test",Ww,Ww),window.removeEventListener("test",Ww,Ww)}catch{p_=!1}var Sd=p_?{passive:!1}:!1,GNA=function(A){return A.tagName==="TEXTAREA"},MK=function(A,e){if(!(A instanceof Element))return!1;var t=window.getComputedStyle(A);return t[e]!=="hidden"&&!(t.overflowY===t.overflowX&&!GNA(A)&&t[e]==="visible")},UNA=function(A){return MK(A,"overflowY")},KNA=function(A){return MK(A,"overflowX")},SK=function(A,e){var t=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=NK(A,r);if(n){var o=RK(A,r),i=o[1],a=o[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==t.body);return!1},YNA=function(A){var e=A.scrollTop,t=A.scrollHeight,r=A.clientHeight;return[e,t,r]},$NA=function(A){var e=A.scrollLeft,t=A.scrollWidth,r=A.clientWidth;return[e,t,r]},NK=function(A,e){return A==="v"?UNA(e):KNA(e)},RK=function(A,e){return A==="v"?YNA(e):$NA(e)},jNA=function(A,e){return A==="h"&&e==="rtl"?-1:1},qNA=function(A,e,t,r,n){var o=jNA(A,window.getComputedStyle(e).direction),i=o*r,a=t.target,s=e.contains(a),l=!1,c=i>0,u=0,g=0;do{var h=RK(A,a),B=h[0],E=h[1],C=h[2],m=E-C-o*B;(B||m)&&NK(A,a)&&(u+=m,g+=B),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!s&&a!==document.body||s&&(e.contains(a)||e===a));return(c&&(Math.abs(u)<1||!n)||!c&&(Math.abs(g)<1||!n))&&(l=!0),l},Vw=function(A){return"changedTouches"in A?[A.changedTouches[0].clientX,A.changedTouches[0].clientY]:[0,0]},PK=function(A){return[A.deltaX,A.deltaY]},TK=function(A){return A&&"current"in A?A.current:A},JNA=function(A,e){return A[0]===e[0]&&A[1]===e[1]},zNA=function(A){return`
|
|
419
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oU(A,e){if(A){if(typeof A=="string")return k4(A,e);var t=Object.prototype.toString.call(A).slice(8,-1);if(t==="Object"&&A.constructor&&(t=A.constructor.name),t==="Map"||t==="Set")return Array.from(A);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return k4(A,e)}}function k4(A,e){(e==null||e>A.length)&&(e=A.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=A[t];return r}function b8A(A,e){var t=A==null?null:typeof Symbol<"u"&&A[Symbol.iterator]||A["@@iterator"];if(t!=null){var r=[],n=!0,o=!1,i,a;try{for(t=t.call(A);!(n=(i=t.next()).done)&&(r.push(i.value),!(e&&r.length===e));n=!0);}catch(s){o=!0,a=s}finally{try{!n&&t.return!=null&&t.return()}finally{if(o)throw a}}return r}}function x8A(A){if(Array.isArray(A))return A}function iU(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(A);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(A,n).enumerable})),t.push.apply(t,r)}return t}function ar(A){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?iU(Object(t),!0).forEach(function(r){_4(A,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(t)):iU(Object(t)).forEach(function(r){Object.defineProperty(A,r,Object.getOwnPropertyDescriptor(t,r))})}return A}function _4(A,e,t){return e in A?Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):A[e]=t,A}function _w(A,e){if(A==null)return{};var t=k8A(A,e),r,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(A);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(A,r)&&(t[r]=A[r])}return t}function k8A(A,e){if(A==null)return{};var t={},r=Object.keys(A),n,o;for(o=0;o<r.length;o++)n=r[o],!(e.indexOf(n)>=0)&&(t[n]=A[n]);return t}var Mw=d.forwardRef(function(A,e){var t=A.children,r=_w(A,E8A),n=sU(r),o=n.open,i=_w(n,C8A);return d.useImperativeHandle(e,function(){return{open:o}},[o]),_A.createElement(d.Fragment,null,t(ar(ar({},i),{},{open:o})))});Mw.displayName="Dropzone";var aU={disabled:!1,getFilesFromEvent:Y3A,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Mw.defaultProps=aU,Mw.propTypes={children:eA.func,accept:eA.objectOf(eA.arrayOf(eA.string)),multiple:eA.bool,preventDropOnDocument:eA.bool,noClick:eA.bool,noKeyboard:eA.bool,noDrag:eA.bool,noDragEventsBubbling:eA.bool,minSize:eA.number,maxSize:eA.number,maxFiles:eA.number,disabled:eA.bool,getFilesFromEvent:eA.func,onFileDialogCancel:eA.func,onFileDialogOpen:eA.func,useFsAccessApi:eA.bool,autoFocus:eA.bool,onDragEnter:eA.func,onDragLeave:eA.func,onDragOver:eA.func,onDrop:eA.func,onDropAccepted:eA.func,onDropRejected:eA.func,onError:eA.func,validator:eA.func};var M4={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function sU(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=ar(ar({},aU),A),t=e.accept,r=e.disabled,n=e.getFilesFromEvent,o=e.maxSize,i=e.minSize,a=e.multiple,s=e.maxFiles,l=e.onDragEnter,c=e.onDragLeave,u=e.onDragOver,g=e.onDrop,h=e.onDropAccepted,B=e.onDropRejected,E=e.onFileDialogCancel,C=e.onFileDialogOpen,m=e.useFsAccessApi,I=e.autoFocus,v=e.preventDropOnDocument,y=e.noClick,x=e.noKeyboard,b=e.noDrag,k=e.noDragEventsBubbling,M=e.onError,N=e.validator,F=d.useMemo(function(){return h8A(t)},[t]),L=d.useMemo(function(){return d8A(t)},[t]),T=d.useMemo(function(){return typeof C=="function"?C:lU},[C]),P=d.useMemo(function(){return typeof E=="function"?E:lU},[E]),G=d.useRef(null),H=d.useRef(null),z=d.useReducer(_8A,M4),q=x4(z,2),O=q[0],Y=q[1],S=O.isFocused,J=O.isFileDialogActive,$=d.useRef(typeof window<"u"&&window.isSecureContext&&m&&g8A()),U=function(){!$.current&&J&&setTimeout(function(){if(H.current){var qA=H.current.files;qA.length||(Y({type:"closeDialog"}),P())}},300)};d.useEffect(function(){return window.addEventListener("focus",U,!1),function(){window.removeEventListener("focus",U,!1)}},[H,J,P,$]);var AA=d.useRef([]),Z=function(qA){G.current&&G.current.contains(qA.target)||(qA.preventDefault(),AA.current=[])};d.useEffect(function(){return v&&(document.addEventListener("dragover",tU,!1),document.addEventListener("drop",Z,!1)),function(){v&&(document.removeEventListener("dragover",tU),document.removeEventListener("drop",Z))}},[G,v]),d.useEffect(function(){return!r&&I&&G.current&&G.current.focus(),function(){}},[G,I,r]);var tA=d.useCallback(function(bA){M?M(bA):console.error(bA)},[M]),nA=d.useCallback(function(bA){bA.preventDefault(),bA.persist(),jA(bA),AA.current=[].concat(w8A(AA.current),[bA.target]),kw(bA)&&Promise.resolve(n(bA)).then(function(qA){if(!(xw(bA)&&!k)){var dA=qA.length,wA=dA>0&&l8A({files:qA,accept:F,minSize:i,maxSize:o,multiple:a,maxFiles:s,validator:N}),HA=dA>0&&!wA;Y({isDragAccept:wA,isDragReject:HA,isDragActive:!0,type:"setDraggedFiles"}),l&&l(bA)}}).catch(function(qA){return tA(qA)})},[n,l,tA,k,F,i,o,a,s,N]),sA=d.useCallback(function(bA){bA.preventDefault(),bA.persist(),jA(bA);var qA=kw(bA);if(qA&&bA.dataTransfer)try{bA.dataTransfer.dropEffect="copy"}catch{}return qA&&u&&u(bA),!1},[u,k]),iA=d.useCallback(function(bA){bA.preventDefault(),bA.persist(),jA(bA);var qA=AA.current.filter(function(wA){return G.current&&G.current.contains(wA)}),dA=qA.indexOf(bA.target);dA!==-1&&qA.splice(dA,1),AA.current=qA,!(qA.length>0)&&(Y({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),kw(bA)&&c&&c(bA))},[G,c,k]),aA=d.useCallback(function(bA,qA){var dA=[],wA=[];bA.forEach(function(HA){var Ae=AU(HA,F),ce=x4(Ae,2),te=ce[0],Pe=ce[1],Ke=eU(HA,i,o),Ct=x4(Ke,2),kt=Ct[0],Ce=Ct[1],YA=N?N(HA):null;if(te&&kt&&!YA)dA.push(HA);else{var PA=[Pe,Ce];YA&&(PA=PA.concat(YA)),wA.push({file:HA,errors:PA.filter(function(oe){return oe})})}}),(!a&&dA.length>1||a&&s>=1&&dA.length>s)&&(dA.forEach(function(HA){wA.push({file:HA,errors:[s8A]})}),dA.splice(0)),Y({acceptedFiles:dA,fileRejections:wA,type:"setFiles"}),g&&g(dA,wA,qA),wA.length>0&&B&&B(wA,qA),dA.length>0&&h&&h(dA,qA)},[Y,a,F,i,o,s,g,h,B,N]),rA=d.useCallback(function(bA){bA.preventDefault(),bA.persist(),jA(bA),AA.current=[],kw(bA)&&Promise.resolve(n(bA)).then(function(qA){xw(bA)&&!k||aA(qA,bA)}).catch(function(qA){return tA(qA)}),Y({type:"reset"})},[n,aA,tA,k]),X=d.useCallback(function(){if($.current){Y({type:"openDialog"}),T();var bA={multiple:a,types:L};window.showOpenFilePicker(bA).then(function(qA){return n(qA)}).then(function(qA){aA(qA,null),Y({type:"closeDialog"})}).catch(function(qA){p8A(qA)?(P(qA),Y({type:"closeDialog"})):B8A(qA)?($.current=!1,H.current?(H.current.value=null,H.current.click()):tA(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):tA(qA)});return}H.current&&(Y({type:"openDialog"}),T(),H.current.value=null,H.current.click())},[Y,T,P,m,aA,tA,L,a]),cA=d.useCallback(function(bA){!G.current||!G.current.isEqualNode(bA.target)||(bA.key===" "||bA.key==="Enter"||bA.keyCode===32||bA.keyCode===13)&&(bA.preventDefault(),X())},[G,X]),hA=d.useCallback(function(){Y({type:"focus"})},[]),EA=d.useCallback(function(){Y({type:"blur"})},[]),IA=d.useCallback(function(){y||(f8A()?setTimeout(X,0):X())},[y,X]),DA=function(qA){return r?null:qA},SA=function(qA){return x?null:DA(qA)},JA=function(qA){return b?null:DA(qA)},jA=function(qA){k&&qA.stopPropagation()},$A=d.useMemo(function(){return function(){var bA=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},qA=bA.refKey,dA=qA===void 0?"ref":qA,wA=bA.role,HA=bA.onKeyDown,Ae=bA.onFocus,ce=bA.onBlur,te=bA.onClick,Pe=bA.onDragEnter,Ke=bA.onDragOver,Ct=bA.onDragLeave,kt=bA.onDrop,Ce=_w(bA,m8A);return ar(ar(_4({onKeyDown:SA(is(HA,cA)),onFocus:SA(is(Ae,hA)),onBlur:SA(is(ce,EA)),onClick:DA(is(te,IA)),onDragEnter:JA(is(Pe,nA)),onDragOver:JA(is(Ke,sA)),onDragLeave:JA(is(Ct,iA)),onDrop:JA(is(kt,rA)),role:typeof wA=="string"&&wA!==""?wA:"presentation"},dA,G),!r&&!x?{tabIndex:0}:{}),Ce)}},[G,cA,hA,EA,IA,nA,sA,iA,rA,x,b,r]),VA=d.useCallback(function(bA){bA.stopPropagation()},[]),pe=d.useMemo(function(){return function(){var bA=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},qA=bA.refKey,dA=qA===void 0?"ref":qA,wA=bA.onChange,HA=bA.onClick,Ae=_w(bA,Q8A),ce=_4({accept:F,multiple:a,type:"file",style:{display:"none"},onChange:DA(is(wA,rA)),onClick:DA(is(HA,VA)),tabIndex:-1},dA,H);return ar(ar({},ce),Ae)}},[H,t,a,rA,r]);return ar(ar({},O),{},{isFocused:S&&!r,getRootProps:$A,getInputProps:pe,rootRef:G,inputRef:H,open:DA(X)})}function _8A(A,e){switch(e.type){case"focus":return ar(ar({},A),{},{isFocused:!0});case"blur":return ar(ar({},A),{},{isFocused:!1});case"openDialog":return ar(ar({},M4),{},{isFileDialogActive:!0});case"closeDialog":return ar(ar({},A),{},{isFileDialogActive:!1});case"setDraggedFiles":return ar(ar({},A),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return ar(ar({},A),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections});case"reset":return ar({},M4);default:return A}}function lU(){}const cU=Object.freeze(Object.defineProperty({__proto__:null,ErrorCode:i8A,default:Mw,useDropzone:sU},Symbol.toStringTag,{value:"Module"})),{useDropzone:M8A}=cU,S8A=d.forwardRef(function({children:e,onUpload:t=XQA,uid:r="fileUploadDialog",registerComponentApi:n,style:o,allowPaste:i=!0,text:a="Drop files here",disabled:s=!1},l){const c=d.useCallback(async I=>{I.length&&(t==null||t(I))},[t]),{getRootProps:u,getInputProps:g,isDragActive:h,open:B,inputRef:E}=M8A({onDrop:c,noClick:!0,noKeyboard:!0,noDragEventsBubbling:!0,disabled:s}),C=ze(()=>{B()}),m=d.useCallback(I=>{var v,y;if(i&&E.current&&(v=I.clipboardData)!=null&&v.files){const x=((y=I.clipboardData)==null?void 0:y.items)||[],b=[];for(let k=0;k<x.length;k++){const M=x[k];if(M.kind==="file"){const N=M.getAsFile();N!==null&&b.push(N)}}b.length>0&&(I.stopPropagation(),I.preventDefault(),E.current.files=I.clipboardData.files,E.current.dispatchEvent(new Event("change",{bubbles:!0})))}},[i,E]);return d.useEffect(()=>{n({open:C})},[C,n,r]),Q.jsxs("div",{...u(),style:o,className:D4.wrapper,onPaste:m,ref:l,children:[Q.jsx("input",{...g()}),e,h&&Q.jsxs("div",{className:D4.dropPlaceholder,children:[Q.jsx(be,{name:"upload"}),a]})]})}),uU="FileUploadDropZone",N8A=kA({description:`The \`${uU}\` component allows users to upload files to a web application by dragging and dropping files from their local file system onto a designated area within the UI.`,props:{text:j('With this property, you can change the default text ("Drop files here") to display when files are dragged over the drop zone.'),allowPaste:j("This property indicates if the drop zone accepts files pasted from the clipboard (`true`) or only dragged files (`false`)."),enabled:j("If set to `false`, the drop zone will be disabled and users will not be able to upload files.",null,"boolean",!0)},events:{upload:j("This component accepts files for upload but does not perform the actual operation. It fires the `upload` event and passes the list files to upload in the method's argument. You can use the passed file information to implement the upload (according to the protocol your backend supports).")},themeVars:ne(D4.themeVars),defaultThemeVars:{"color-bg-FileUploadDropZone":"$color-bg","color-bg-dropping-FileUploadDropZone":"$color-bg--selected","opacity-dropping-FileUploadDropZone":"0.5","color-text-FileUploadDropZone":"$color-text",light:{},dark:{}}}),R8A=RA(uU,N8A,({node:A,extractValue:e,renderChild:t,lookupEventHandler:r,registerComponentApi:n,layoutCss:o})=>Q.jsx(S8A,{onUpload:r("upload"),uid:e(A.uid),registerComponentApi:n,style:o,allowPaste:e(A.props.allowPaste),text:e(A.props.text),disabled:!e.asOptionalBoolean(A.props.enabled,!0),children:t(A.children,{type:"Stack"})})),S4="Icon",P8A=kA({status:"experimental",description:"This component is the representation of an icon.",props:{name:j("This string property specifies the name of the icon to display. All icons have unique names and identifying the name is case-sensitive."),size:j(`This property defines the size of the \`${S4}\`. Note that setting the \`height\` and/or the \`width\` of the component will override this property.`),fallback:j("This optional property provides a way to handle situations when the provided [icon name](#name) is not found in the registry.")},themeVars:ne(nH.themeVars),defaultThemeVars:{[`size-${S4}`]:"1.25em"}}),T8A=RA(S4,P8A,({node:A,extractValue:e,layoutCss:t})=>Q.jsx(be,{name:e.asOptionalString(A.props.name),size:e(A.props.size),style:t,fallback:e.asOptionalString(A.props.fallback)}));function L8A({items:A,renderItem:e,reverse:t=!1}){const r=d.useMemo(()=>{if(!A)return[];let n=A;return _o(A)&&(n=Object.values(A)),t?[...n].reverse():n},[A,t]);return!r||!Array.isArray(r)?null:Q.jsx(Q.Fragment,{children:r.map((n,o)=>e({$item:n,$itemIndex:o,$isFirst:o===0,$isLast:o===r.length-1},o))})}const fU="Items",F8A=kA({description:`The \`${fU}\` component maps sequential data items into component instances, representing each data item as a particular component.`,props:{items:zt("This property contains the list of data items this component renders."),data:j("This property contains the list of data items (obtained from a data source) this component renders."),reverse:j("This property reverses the order in which data is mapped to template components."),itemTemplate:zt("The component template to display a single item")},contextVars:{$item:zt("This value represents the current iteration item while the component renders its children."),$itemIndex:zt("This integer value represents the current iteration index (zero-based) while rendering children."),$isFirst:zt("This boolean value indicates if the component renders its first item."),$isLast:zt("This boolean value indicates if the component renders its last item.")},opaque:!0}),O8A=RA(fU,F8A,A=>{const{node:e,renderChild:t,extractValue:r,layoutContext:n}=A;return Q.jsx(L8A,{items:r(e.props.items)||r(e.props.data),reverse:r(e.props.reverse),renderItem:(o,i)=>Q.jsx(Oo,{contextVars:o,node:e.children||e.props.itemTemplate,renderChild:t,layoutContext:n},i)})}),gU="SelectionStore",H8A=kA({status:"deprecated",description:`The \`${gU}\` is a non-visual component that may wrap components (items) and manage their selection state to accommodate the usage of other actions.`,props:{idKey:j('The selected items in the selection store needs to have a unique ID to use as an unambiguous key for that particular item. This property uniquely identifies the selected object item via a given property. By default, the key attribute is `"id"`.')}}),G8A=RA(gU,H8A,A=>{const{node:e,state:t,updateState:r,renderChild:n,registerComponentApi:o}=A;return Q.jsx(vG,{updateState:r,idKey:e.props.idKey,selectedItems:t==null?void 0:t.value,registerComponentApi:o,children:n(e.children)})}),N4="Image",U8A=kA({description:`The \`${N4}\` component represents or depicts an object, scene, idea, or other concept with a picture.`,props:{src:j("This property is used to indicate the source (path) of the image to display."),alt:j("This property specifies an alternate text for the image."),fit:j("This property sets how the image content should be resized to fit its container."),lazyLoad:j("Lazy loading instructs the browser to load the image only when it is imminently needed (e.g. user scrolls to it). The default value is eager (`false`)."),aspectRatio:j("This property sets a preferred aspect ratio for the image, which will be used in the calculation of auto sizes and some other layout functions."),animation:j("The animation object to be applied to the component")},events:{click:sc(N4)},themeVars:ne(Vk.themeVars)}),K8A=RA(N4,U8A,({node:A,extractValue:e,layoutCss:t,extractResourceUrl:r})=>Q.jsx(Xk,{src:r(A.props.src),alt:e(A.props.alt),fit:e(A.props.fit),lazyLoad:e.asOptionalBoolean(A.props.lazyLoad),aspectRatio:e(A.props.aspectRatio),style:t,animation:e(A.props.animation)})),Y8A=({title:A})=>Q.jsx(Nu,{title:A}),$8A="PageMetaTitle",j8A=kA({description:"A PageMetaTitle component allows setting up (or changing) the app title to display with the current browser tab.",props:{value:j("This property sets the page's title to display in the browser tab.")}}),q8A=RA($8A,j8A,({node:A,extractValue:e,renderChild:t})=>Q.jsx(Y8A,{title:e(A.props.value)||t(A.children)})),R4={themeVars:`'{"color-bg-ProgressBar": "var(--xmlui-color-bg-ProgressBar)", "color-indicator-ProgressBar": "var(--xmlui-color-indicator-ProgressBar)", "radius-ProgressBar": "var(--xmlui-radius-ProgressBar)", "radius-indicator-ProgressBar": "var(--xmlui-radius-indicator-ProgressBar)", "thickness-ProgressBar": "var(--xmlui-thickness-ProgressBar)"}'`,wrapper:"_wrapper_1s8j7_13",bar:"_bar_1s8j7_22"},J8A=d.forwardRef(function({value:e=0,style:t},r){return Q.jsx("div",{className:R4.wrapper,style:t,ref:r,children:Q.jsx("div",{style:{width:`${e*100}%`},className:R4.bar})})}),el="ProgressBar",z8A=kA({description:`A \`${el}\` component visually represents the progress of a task or process.`,props:{value:j("This property defines the progress value with a number between 0 and 1.")},themeVars:ne(R4.themeVars),defaultThemeVars:{[`radius-${el}`]:"$radius",[`radius-indicator-${el}`]:"0px",[`thickness-${el}`]:"$space-2",light:{[`color-bg-${el}`]:"$color-surface-200",[`color-indicator-${el}`]:"$color-primary-500"},dark:{[`color-bg-${el}`]:"$color-surface-700",[`color-indicator-${el}`]:"$color-primary-500"}}}),W8A=RA(el,z8A,({node:A,extractValue:e,layoutCss:t})=>Q.jsx(J8A,{value:Math.max(0,Math.min(1,e(A.props.value))),style:t})),jn={themeVars:`'{"padding-Splitter": "var(--xmlui-padding-Splitter)", "shadow-Splitter": "var(--xmlui-shadow-Splitter)", "color-bg-Splitter": "var(--xmlui-color-bg-Splitter)", "radius-Splitter": "var(--xmlui-radius-Splitter)", "color-border-Splitter": "var(--xmlui-color-border-Splitter)", "thickness-border-Splitter": "var(--xmlui-thickness-border-Splitter)", "style-border-Splitter": "var(--xmlui-style-border-Splitter)", "border-Splitter": "var(--xmlui-border-Splitter)", "color-bg-resizer-Splitter": "var(--xmlui-color-bg-resizer-Splitter)", "thickness-resizer-Splitter": "var(--xmlui-thickness-resizer-Splitter)", "cursor-resizer-horizontal-Splitter": "var(--xmlui-cursor-resizer-horizontal-Splitter)", "cursor-resizer-vertical-Splitter": "var(--xmlui-cursor-resizer-vertical-Splitter)"}'`,splitter:"_splitter_1a9gt_13",vertical:"_vertical_1a9gt_27",horizontal:"_horizontal_1a9gt_30",panel:"_panel_1a9gt_34",primaryPanel:"_primaryPanel_1a9gt_41",secondaryPanel:"_secondaryPanel_1a9gt_48",resizer:"_resizer_1a9gt_54",floatingResizer:"_floatingResizer_1a9gt_70"},$B=(A,e)=>{if(A.endsWith("px"))return parseInt(A,10);if(A.endsWith("%"))return parseInt(A,10)/100*e;throw new Error("Invalid size format. Use px or %.")},Sw=(A,e)=>A/e*100,dU=({initialPrimarySize:A="50%",minPrimarySize:e="0%",maxPrimarySize:t="100%",orientation:r="vertical",children:n,style:o,swapped:i=!1,floating:a=!1,splitterTemplate:s,resize:l=ve})=>{var x;const[c,u]=d.useState(0),[g,h]=d.useState(null),[B,E]=d.useState(!1),[C,m]=d.useState(null),[I,v]=d.useState(null),y=d.useMemo(()=>a?I:C,[a,C,I]);return d.useEffect(()=>{if(g){const b=r==="horizontal"?g.getBoundingClientRect().width:g.getBoundingClientRect().height,k=$B(A,b);u(k),l&&l([Sw(k,b),Sw(b-k,b)])}},[A,r,l,g,i]),d.useEffect(()=>{const b=N=>{if(g&&y){const F=r==="horizontal"?g.getBoundingClientRect().width:g.getBoundingClientRect().height,L=Math.min(Math.max(r==="horizontal"?N.clientX-g.getBoundingClientRect().left:N.clientY-g.getBoundingClientRect().top,$B(e,F)),$B(t,F));u(L),l&&l([Sw(L,F),Sw(F-L,F)])}},k=()=>{document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",k)},M=()=>{document.addEventListener("mousemove",b),document.addEventListener("mouseup",k)};return y&&y.addEventListener("mousedown",M),()=>{y&&y.removeEventListener("mousedown",M),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",k)}},[e,t,r,l,a,y,g]),d.useEffect(()=>{const b=k=>{const M=r==="horizontal"?k.clientX:k.clientY;if(g){const F=(r==="horizontal"?g.getBoundingClientRect().left:g.getBoundingClientRect().top)+c;M>F-20&&M<F+20?E(!0):E(!1)}};return g&&(g.addEventListener("mousemove",b),g.addEventListener("mouseleave",()=>E(!1))),()=>{g&&(g.removeEventListener("mouseleave",()=>E(!1)),g.removeEventListener("mousemove",b))}},[c,r,g]),d.useEffect(()=>{I&&(I.style.opacity=B?"1":"0")},[I,B]),Q.jsx("div",{ref:b=>h(b),className:KA(jn.splitter,{[jn.horizontal]:r==="horizontal",[jn.vertical]:r==="vertical"}),style:o,children:_A.Children.count(n)>1?Q.jsxs(Q.Fragment,{children:[Q.jsx("div",{style:i?{}:{flexBasis:c},className:KA({[jn.primaryPanel]:!i,[jn.secondaryPanel]:i}),children:_A.Children.toArray(n)[0]}),!a&&Q.jsx("div",{className:KA(jn.resizer,{[jn.horizontal]:r==="horizontal",[jn.vertical]:r==="vertical"}),ref:b=>m(b),children:s}),Q.jsx("div",{className:KA({[jn.primaryPanel]:i,[jn.secondaryPanel]:!i}),style:i?{flexBasis:c}:{},children:_A.Children.toArray(n)[1]}),a&&Q.jsx("div",{ref:b=>v(b),className:KA(jn.floatingResizer,{[jn.horizontal]:r==="horizontal",[jn.vertical]:r==="vertical"}),style:{top:r==="horizontal"?0:c,left:r==="horizontal"?c:0},children:s})]}):Q.jsx(Q.Fragment,{children:((x=_A.Children.toArray(n))==null?void 0:x[0])&&Q.jsx("div",{className:jn.panel,children:_A.Children.toArray(n)[0]})})})},tl="Splitter",Nw=kA({description:`The \`${tl}\` component divides a container (such as a window, panel, pane, etc.) into two resizable sections.`,props:{swapped:j(`This optional booelan property indicates whether the \`${tl}\` sections are layed out as primary and secondary (\`false\`) or secondary and primary (\`true\`) from left to right.`),splitterTemplate:zt("The divider can be customized using XMLUI components via this property."),initialPrimarySize:j("This optional number property sets the initial size of the primary section. The unit of the size value is in pixels or percentages."),minPrimarySize:j("This property sets the minimum size the primary section can have. The unit of the size value is in pixels or percentages."),maxPrimarySize:j("This property sets the maximum size the primary section can have. The unit of the size value is in pixels or percentages."),floating:j("Toggles whether the resizer is visible (`false`) or not (`true`) when not hovered or dragged. The default value is `false`, meaning the resizer is visible all the time.")},events:{resize:j("This event fires when the component is resized.")},themeVars:ne(jn.themeVars),defaultThemeVars:{[`color-bg-resizer-${tl}`]:"$color-bg-Card",[`thickness-resizer-${tl}`]:"5px",[`cursor-resizer-horizontal-${tl}`]:"ew-resize",[`cursor-resizer-vertical-${tl}`]:"ns-resize"}}),V8A={...Nw,props:{...Nw.props,orientation:j("Sets whether the `Splitter` divides the container horizontally and lays out the section on top of each other (`vertical`), or vertically by placing the sections next to each other (`horizontal`).")}},X8A={...Nw,specializedFrom:tl},Z8A={...Nw,specializedFrom:tl},AMA="vertical";function P4({node:A,extractValue:e,layoutNonCss:t,layoutCss:r,renderChild:n,lookupEventHandler:o,orientation:i=t.orientation??AMA}){var a,s,l,c,u,g;if(!F2(A.children))throw new QB;return Q.jsx(dU,{style:r,swapped:e.asOptionalBoolean((a=A.props)==null?void 0:a.swapped),orientation:i,splitterTemplate:n((s=A.props)==null?void 0:s.splitterTemplate),initialPrimarySize:e((l=A.props)==null?void 0:l.initialPrimarySize),minPrimarySize:e((c=A.props)==null?void 0:c.minPrimarySize),maxPrimarySize:e((u=A.props)==null?void 0:u.maxPrimarySize),floating:e.asOptionalBoolean((g=A.props)==null?void 0:g.floating),resize:o("resize"),children:n(A.children)})}const eMA=RA(tl,V8A,({node:A,extractValue:e,renderChild:t,layoutCss:r,layoutNonCss:n,lookupEventHandler:o})=>P4({node:A,extractValue:e,layoutCss:r,layoutNonCss:n,renderChild:t,lookupEventHandler:o})),tMA=RA("VSplitter",Z8A,({node:A,extractValue:e,renderChild:t,layoutCss:r,layoutNonCss:n,lookupEventHandler:o})=>P4({node:A,extractValue:e,layoutCss:r,layoutNonCss:n,renderChild:t,orientation:"vertical",lookupEventHandler:o})),rMA=RA("HSplitter",X8A,({node:A,extractValue:e,renderChild:t,layoutCss:r,layoutNonCss:n,lookupEventHandler:o})=>P4({node:A,extractValue:e,layoutCss:r,layoutNonCss:n,renderChild:t,orientation:"horizontal",lookupEventHandler:o}));var hc=(A=>(A.ACTION_ITEM_STARTED="ACTION_ITEM_STARTED",A.ACTION_ITEM_PROGRESS="ACTION_ITEM_PROGRESS",A.ACTION_ITEM_COMPLETED="ACTION_ITEM_COMPLETED",A.CLEAR_COMPLETED_ACTION_ITEMS="CLEAR_COMPLETED_ACTION_ITEMS",A.ACTION_ITEM_ERROR="ACTION_ITEM_ERROR",A.ACTION_QUEUE_INITIALIZED="ACTION_QUEUE_INITIALIZED",A.ACTION_ITEM_REMOVED="ACTION_ITEM_REMOVED",A))(hc||{});function nMA(A){return{type:"ACTION_ITEM_STARTED",payload:{actionItemId:A}}}function oMA(A,e){return{type:"ACTION_ITEM_PROGRESS",payload:{actionItemId:A,progressEvent:e}}}function iMA(A,e){return{type:"ACTION_ITEM_COMPLETED",payload:{actionItemId:A,result:e}}}function hU(A){return{type:"ACTION_ITEM_REMOVED",payload:{actionItemId:A}}}function aMA(){return{type:"CLEAR_COMPLETED_ACTION_ITEMS",payload:{}}}function sMA(A,e){return{type:"ACTION_ITEM_ERROR",payload:{actionItemId:A,error:e}}}function pU(A,e,t){return{type:"ACTION_QUEUE_INITIALIZED",payload:{queue:A,actionItemIds:t,batchId:e}}}const lMA=No((A,e)=>{switch(e.type){case hc.ACTION_QUEUE_INITIALIZED:{const t={},r={};e.payload.queue.forEach((o,i)=>{r[e.payload.actionItemIds[i]]=o});const n=Object.keys(r);return Object.entries(r).forEach(([o,i])=>{t[o]={batchId:e.payload.batchId,actionItemId:o,status:"pending",item:i}}),{queue:[...A.queue||[],...n],queueState:{...A.queueState,...t}}}case hc.ACTION_ITEM_STARTED:{A.queueState[e.payload.actionItemId]&&(A.queueState[e.payload.actionItemId].status="started");break}case hc.ACTION_ITEM_PROGRESS:{A.queueState[e.payload.actionItemId]&&(A.queueState[e.payload.actionItemId].status="in-progress",A.queueState[e.payload.actionItemId].progress=e.payload.progressEvent);break}case hc.ACTION_ITEM_COMPLETED:{A.queue=A.queue.filter(t=>t!==e.payload.actionItemId),A.queueState[e.payload.actionItemId]&&(A.queueState[e.payload.actionItemId].status="completed",A.queueState[e.payload.actionItemId].result=e.payload.result);break}case hc.ACTION_ITEM_REMOVED:{A.queue=A.queue.filter(t=>t!==e.payload.actionItemId),delete A.queueState[e.payload.actionItemId];break}case hc.ACTION_ITEM_ERROR:{A.queue=A.queue.filter(t=>t!==e.payload.actionItemId),A.queueState[e.payload.actionItemId]&&(A.queueState[e.payload.actionItemId].status="error",A.queueState[e.payload.actionItemId].error=e.payload.error);break}case hc.CLEAR_COMPLETED_ACTION_ITEMS:{A.queueState&&Object.entries(A.queueState).forEach(([t,r])=>{(r.status==="completed"||r.status==="error")&&delete A.queueState[t]});break}default:throw new Error}}),cMA={queue:[],queueState:{}};function uMA({registerComponentApi:A,willProcessItem:e,processItem:t,didProcessItem:r,processItemError:n,onComplete:o,renderProgressFeedback:i,renderResultFeedback:a,clearAfterFinish:s=!0}){const l=d.useRef(new Set),[c,u]=d.useReducer(lMA,cMA);let g=Ii();const h=ze(M=>{const N=aB();return u(pU([M],aB(),[N])),N}),B=ze(M=>{const N=M.map(()=>aB());return u(pU(M,aB(),N)),N}),E=d.useCallback(()=>{u(aMA())},[]),C=d.useCallback(M=>{M&&u(hU(M))},[]),m=d.useCallback(()=>c.queue.length,[c.queue.length]),I=d.useCallback(()=>Object.values(c.queueState),[c.queueState]);d.useEffect(()=>{A({enqueueItem:h,enqueueItems:B,clearCompleted:E,remove:C,getQueueLength:m,getQueuedItems:I})},[A,h,B,E,C,m,I]);const v=d.useCallback(async M=>{const N=c.queueState[M];if((N==null?void 0:N.status)!=="pending"||l.current.has(M))return;l.current.add(M);const F=N.item;let L={};try{const T=await(e==null?void 0:e({item:F,actionItemId:M,processItemContext:L}));if(L={...L,willProcessResult:T},T===!1){u(hU(M));return}u(nMA(M));const P=await(t==null?void 0:t({item:F,actionItemId:M,processItemContext:L,onProgress:G=>{u(oMA(M,G))}}));L={...L,processResult:P},await(r==null?void 0:r({item:F,actionItemId:M,processItemContext:L})),u(iMA(M,P))}catch(T){let P=await(n==null?void 0:n(T,{item:F,actionItemId:M,processItemContext:L}));u(sMA(M,T)),P!==!1&&g.signError(T)}finally{l.current.delete(M)}},[g,r,u,t,n,c.queueState,e]),y=d.useRef(),x=c.queue,b=Ya(x),k=d.useCallback(()=>{o==null||o();const M=I(),N=I().filter(L=>L.status==="completed"),F=a==null?void 0:a(N,M);if(F&&N.length){let L=y.current;br.success(Q.jsx(Q.Fragment,{children:F}),{id:L})}else if(y.current){let L=y.current;br.dismiss(L)}s&&E()},[s,E,I,o,a]);return d.useLayoutEffect(()=>{if(x.length&&i){const M=I(),N=I().filter(L=>L.status==="completed"),F=i==null?void 0:i(N,M);F&&y.current?br.loading(Q.jsx(Q.Fragment,{children:F}),{id:y.current}):y.current=br.loading(Q.jsx(Q.Fragment,{children:F}))}},[i,x==null?void 0:x.length]),d.useEffect(()=>{if(!x||b===x||$p(b,x))return;if(b!=null&&b.length&&!x.length){k();return}let M=x[0];(async()=>await v(M))()},[k,v,b,x]),null}const fMA="Queue",gMA=kA({description:"The `Queue` component provides an API to enqueue elements and defines events to process queued elements in a FIFO order.",props:{progressFeedback:j("This property defines the component template of the UI that displays progress information whenever, the queue's `progressReport` function in invoked."),resultFeedback:j("This property defines the component template of the UI that displays result information when the queue becomes empty after processing all queued items."),clearAfterFinish:j("This property indicates the completed items (successful or error) should be removed from the queue after completion.")},nonVisual:!0,events:{willProcess:j("This event is triggered to process a particular item."),process:j("This event is fired to process the next item in the queue. If the processing cannot proceed because of some error, raise an exception, and the queue will handle that."),didProcess:j("This event is fired when the processing of a queued item has been successfully processed."),processError:j("This event is fired when processing an item raises an error. The event handler method receives two parameters. The first is the error raised during the processing of the item; the second is an object with these properties:"),complete:j("The queue fires this event when the queue gets empty after processing all items. The event handler has no arguments.")},apis:{enqueueItem:j("This method enqueues the item passed in the method parameter. The new item will be processed after the current queue items have been handled. The method retrieves the unique ID of the newly added item; this ID can be used later in other methods, such as `remove`."),enqueueItems:j("This method enqueues the array of items passed in the method parameter. The new items will be processed after the current queue items have been handled. The method retrieves an array of unique IDs, one for each new item. An item ID can be used later in other methods, such as `remove`."),getQueuedItems:j("You can use this method to return the items in the queue. These items contain all entries not removed from the queue yet, including pending, in-progress, and completed items."),getQueueLength:j("This method retrieves the current queue length. The queue contains only those items that are not fully processed yet."),remove:j("This method retrieves the current queue length. The queue contains only those items that are not fully processed yet.")},contextVars:{$completedItems:j("A list containing the queue items that have been completed (fully processed)."),$queuedItems:j("A list containing the items waiting in the queue, icluding the completed items.")}}),dMA=RA(fMA,gMA,({node:A,registerComponentApi:e,lookupEventHandler:t,renderChild:r,extractValue:n})=>Q.jsx(uMA,{registerComponentApi:e,renderResultFeedback:A.props.resultFeedback?(o,i)=>Q.jsx(Oo,{node:A.props.resultFeedback,contextVars:{$completedItems:o,$queuedItems:i},renderChild:r}):void 0,renderProgressFeedback:A.props.progressFeedback?(o,i)=>Q.jsx(Oo,{node:A.props.progressFeedback,contextVars:{$completedItems:o,$queuedItems:i},renderChild:r}):void 0,willProcessItem:t("willProcess"),processItem:t("process",{signError:!1}),didProcessItem:t("didProcess"),processItemError:t("processError"),onComplete:t("complete"),clearAfterFinish:n.asOptionalBoolean(A.props.clearAfterFinish)})),BU=d.forwardRef(({node:A,lookupSyncCallback:e,lookupEventHandler:t,compound:r,api:n,scriptCollected:o,renderChild:i,extractValue:a,layoutContext:s,uid:l,updateState:c},u)=>{const g=d.useMemo(()=>{const N={};return A.props&&Object.entries(A.props).forEach(([F,L])=>{const T=a(L,!0);T!=null&&T._ARROW_EXPR_?N[F]=e(T):N[F]=T}),N},[a,e,A.props]),h=kn(g),B=d.useMemo(()=>{var G;const{loaders:N,vars:F,functions:L,scriptError:T,...P}=r;return{type:"Container",uses:Jt,api:n,scriptCollected:o,loaders:N,vars:F,functions:L,scriptError:T,containerUid:l,props:{debug:(G=r.props)==null?void 0:G.debug},children:[P]}},[n,r,o,l]),E=ze((N,...F)=>{const L=t(N);if(L)return L(...F)}),C=ze(N=>!!t(N)),m=d.useMemo(()=>({$props:h,...B.vars,emitEvent:E,hasEventHandler:C,updateState:c}),[B.vars,E,C,h,c]),I=kn(m),v=d.useMemo(()=>({...B,vars:I}),[B,I]),y=kn(v),x=d.useMemo(()=>Object.entries(A.props).some(([N,F])=>{var L;return N.endsWith("Template")||zr(F)&&F.type!==void 0||jt(F)&&((L=F[0])==null?void 0:L.type)!==void 0}),[A.props]),b=d.useMemo(()=>{if(!(!x&&(!A.children||A.children.length===0)))return{renderChild:i,props:A.props,children:A.children}},[x,A.children,A.props,i]),k=s&&{...s,wrapChild:void 0},M=i(y,k,b);return u&&M&&d.isValidElement(M)?_A.cloneElement(M,{ref:Zr(u,M.ref)}):_A.isValidElement(M)?M:Q.jsx(Q.Fragment,{children:M})});BU.displayName="CompoundComponent";const rl={themeVars:'"[]"',infoWrapper:"_infoWrapper_pfst8_13",loadingWrapper:"_loadingWrapper_pfst8_18",noRows:"_noRows_pfst8_26",borderCollapse:"_borderCollapse_pfst8_36",sectioned:"_sectioned_pfst8_36",row:"_row_pfst8_36",section:"_section_pfst8_36",sectionFooter:"_sectionFooter_pfst8_52"},EU=_A.createContext({isExpanded:A=>!1,toggleExpanded:(A,e)=>{}}),hMA=({children:A,onHeightChanged:e,rowIndex:t,itemType:r})=>{const n=d.useRef(null);return aQ(n,d.useCallback(()=>{e==null||e(n.current)},[e])),Q.jsx("div",{ref:o=>{e==null||e(o),n.current=o},className:_n({[rl.row]:r==="ITEM",[rl.section]:r==="SECTION",[rl.sectionFooter]:r==="SECTION_FOOTER"}),"data-list-item-type":r,"data-index":t,children:A})};function pMA({groupsInitiallyExpanded:A=!0,expanded:e=qe,items:t,limit:r,groupBy:n,orderBy:o,availableGroups:i,defaultGroups:a=Jt}){const s=d.useMemo(()=>{if(!o)return t;let h=o;Array.isArray(o)||(h=[o]);const B=h.map(C=>m=>yn(m,C.field)),E=h.map(C=>C.direction);return WF(t,B,E)},[t,o]),l=d.useMemo(()=>r?s.slice(0,r-1):s,[s,r]),c=d.useMemo(()=>n===void 0?qe:uBA(l,h=>h[n]),[l,n]),u=d.useMemo(()=>{if(n===void 0)return Jt;let h=A5([...a,...Object.keys(c)]);return i&&(h=RBA(h,B=>i.indexOf(B))),h},[n,c,a,i]);return{rows:d.useMemo(()=>{if(n===void 0)return l;const h=[];return u.forEach(B=>{h.push({id:B,items:c[B],_row_type:"SECTION",key:B}),(e[B]||e[B]===void 0&&A)&&(h.push(...c[B]||[]),h.push({id:`${B}_footer`,items:c[B],_row_type:"SECTION_FOOTER",key:B}))}),h},[n,u,l,e,A,c]),sectionedItems:c,sections:u}}const BMA=(A,e)=>{if(!A)return null;let t,r;if(typeof A=="object"){const n=Object.values(bBA(A,"id"));if(!n.length)return null;t=n[0],r=void 0,n.length>1&&(r=n[1])}else if(typeof A=="string"||typeof A=="number")t=A+"",r=void 0;else return null;return Q.jsx(TG,{title:t,subtitle:r})},EMA=d.forwardRef(function({items:e=Jt,itemRenderer:t=BMA,sectionRenderer:r,sectionFooterRenderer:n,loading:o,limit:i,groupBy:a,orderBy:s,availableGroups:l,scrollAnchor:c="top",requestFetchPrevPage:u=$l,requestFetchNextPage:g=$l,selectedIndex:h,resetSelectedIndex:B=$l,pageInfo:E,idKey:C="id",style:m,emptyListPlaceholder:I,groupsInitiallyExpanded:v=!0,defaultGroups:y=Jt,registerComponentApi:x,borderCollapse:b=!0},k){var hA;const M=d.useContext(ns),N=d.useRef(null),F=k?Zr(N,k):N,L=d.useRef(null),[T,P]=d.useState(c==="bottom"),[G,H]=d.useState(qe),z=d.useCallback((EA,IA)=>{H(DA=>({...DA,[EA]:IA}))},[]),q=d.useMemo(()=>({isExpanded:EA=>G[EA]||G[EA]===void 0&&v,toggleExpanded:z}),[G,v,z]),{rows:O}=pMA({groupsInitiallyExpanded:v,defaultGroups:y,expanded:G,items:e,limit:i,groupBy:a,orderBy:s,availableGroups:l}),Y=M&&(m==null?void 0:m.maxHeight)===void 0&&(m==null?void 0:m.height)===void 0&&(m==null?void 0:m.flex)===void 0,S=Y?M:N,$=MG({count:O.length,scrollMargin:Y&&((hA=N.current)==null?void 0:hA.offsetTop)||0,getScrollElement:d.useCallback(()=>S.current,[S]),estimateSize:d.useCallback(()=>10,[]),rangeExtractor:d.useCallback(EA=>bG(EA),[]),getItemKey:d.useCallback(EA=>O[EA][C]??EA,[C,O]),overscan:5}),U=d.useCallback((EA,IA)=>{$.scrollToIndex(EA),requestAnimationFrame(()=>{IA==null||IA()})},[$]),AA=ze(()=>{O.length&&U(O.length-1)}),Z=ze(()=>{O.length&&U(0)});d.useLayoutEffect(()=>{x==null||x({scrollToBottom:AA,scrollToTop:Z})},[x,AA,Z]);const tA=$.getVirtualItems(),nA=$.getTotalSize();d.useEffect(()=>{if(h&&$){const EA=tA.findIndex(IA=>IA.key===h);U(EA),B()}},[B,$,h,U,tA]);const sA=Ya(nA),iA=tA[0],aA=tA[tA.length-1],rA=d.useRef(!1);d.useLayoutEffect(()=>{O.length&&c==="bottom"&&!rA.current&&(rA.current=!0,U(O.length-1))},[O.length,c,U]),d.useLayoutEffect(()=>{if(sA&&sA!==nA&&c==="bottom"){const EA=nA-sA;P(!0),queueMicrotask(()=>{S.current.scrollBy({left:0,top:EA}),P(!1)})}},[iA==null?void 0:iA.index,sA,$,c,S,nA]);const X=d.useRef(null);d.useEffect(()=>{T||E&&iA&&iA.index===0&&E.hasPrevPage&&!E.isFetchingPrevPage&&(async()=>(P(!0),X.current&&clearTimeout(X.current),await u(),X.current=setTimeout(()=>{P(!1)},500)))()},[iA,E,u,T]),d.useEffect(()=>{T||E&&aA&&aA.index===e.length-1&&E.hasNextPage&&!E.isFetchingNextPage&&(async()=>(P(!0),X.current&&clearTimeout(X.current),await g(),X.current=setTimeout(()=>{P(!1)},500)))()},[e.length,aA,E,g,T]);const cA=iA?iA.start-$.options.scrollMargin:0;return Q.jsx(EU.Provider,{value:q,children:Q.jsxs("div",{ref:F,className:rl.scrollParent,style:{overflow:Y?"initial":"auto",maxHeight:"100%",...m},children:[o&&tA.length===0&&Q.jsx("div",{className:rl.loadingWrapper,children:Q.jsx(iw,{})}),!o&&tA.length===0&&(I??Q.jsx("div",{className:rl.noRows,children:Q.jsx(Bn,{children:"No data available"})})),(!o&&tA.length>0||e.length>0)&&Q.jsx("div",{ref:L,style:{height:`${nA}px`,width:"100%",position:"relative"},children:Q.jsx("div",{"data-list-container":!0,className:_n({[rl.sectioned]:a!==void 0,[rl.borderCollapse]:b}),style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${cA}px)`},children:tA.map(EA=>{const IA=O[EA.index];let DA=EA.key,SA;switch(IA._row_type){case"SECTION":SA=(r==null?void 0:r(IA,IA[C]))??null,DA=`section_${DA}`;break;case"SECTION_FOOTER":SA=n==null?void 0:n(IA,IA[C]),DA=`section_footer_${DA}`;break;default:SA=t(IA,IA[C])??null;break}return Q.jsx(hMA,{onHeightChanged:$.measureElement,rowIndex:EA.index,itemType:IA._row_type||"ITEM",children:SA},DA)})})})]})})});function CMA({node:A,renderChild:e,item:t}){const{isExpanded:r,toggleExpanded:n}=d.useContext(EU),o=t.id,i=r(o),a=d.useMemo(()=>({isExpanded:i,toggle:()=>{n(o,!i)}}),[i,o,n]);return Q.jsx(Oo,{node:A,renderChild:e,item:t,context:a,itemKey:"$group",contextKey:"$group"})}const sf="List",mMA=kA({status:"experimental",description:`The \`${sf}\` component is a robust layout container that renders associated data items as a list of components. \`${sf}\` is virtualized; it renders only items that are visible in the viewport.`,props:{data:j("The component receives data via this property. The `data` property is a list of items that the `List` can display."),items:j("You can use `items` as an alias for the `data` property. When you bind the list to a data source (e.g. an API endpoint), the `data` acts as the property that accepts a URL to fetch information from an API.When both `items` and `data` are used, `items` has priority."),loading:j("This property delays the rendering of children until it is set to `false`, or the component receives usable list items via the [`data`](#data) property."),limit:j(`This property limits the number of items displayed in the \`${sf}\`.`),scrollAnchor:j("This property pins the scroll position to a specified location of the list. Available values are shown below.",gH,"string","top"),groupBy:j("This property sets which attribute of the data is used to group the list items. If the attribute does not appear in the data, it will be ignored."),orderBy:j("This property enables the ordering of list items by specifying an attribute in the data."),availableGroups:j(`This property is an array of group names that the \`${sf}\` will display.`),groupHeaderTemplate:zt("Enables the customization of how the groups are displayed, similarly to the [`itemTemplate`](#itemtemplate). You can use the `$item` context variable to access an item group and map its individual attributes."),groupFooterTemplate:zt("Enables the customization of how the the footer of each group is displayed. Combine with [`groupHeaderTemplate`](#groupHeaderTemplate) to customize sections. You can use the `$item` context variable to access an item group and map its individual attributes."),itemTemplate:zt("This property allows the customization of mapping data items to components. You can use the `$item` context variable to access an item and map its individual attributes."),emptyListTemplate:zt("This property defines the template to display when the list is empty."),pageInfo:j(`This property contains the current page information. Setting this property also enures the \`${sf}\` uses pagination.`),idKey:j('Denotes which attribute of an item acts as the ID or key of the item. Default is `"id"`.'),selectedIndex:j("This property scrolls to a specific item indicated by its index."),groupsInitiallyExpanded:j("This Boolean property defines whether the list groups are initially expanded."),defaultGroups:j(`This property adds a list of default groups for the \`${sf}\` and displays the group headers in the specified order. If the data contains group headers not in this list, those headers are also displayed (after the ones in this list); however, their order is not deterministic.`),hideEmptyGroups:j("This boolean property indicates if empty groups should be hidden (no header and footer are displayed).",null,"boolean",!0),borderCollapse:j("Collapse items borders",null,"boolean",!0)},contextVars:{$item:j("This property represents the value of an item in the data list.")},themeVars:ne(rl.themeVars)}),QMA=RA(sf,mMA,({node:A,extractValue:e,renderChild:t,lookupAction:r,layoutCss:n,layoutContext:o,lookupEventHandler:i,registerComponentApi:a})=>{var c;const s=A.props.itemTemplate||A.children,l=e.asOptionalBoolean(A.props.hideEmptyGroups,!0);return Q.jsx(EMA,{registerComponentApi:a,style:n,loading:e.asOptionalBoolean(A.props.loading),items:e(A.props.items)||e(A.props.data),limit:e(A.props.limit),groupBy:e(A.props.groupBy),orderBy:e(A.props.orderBy),availableGroups:e(A.props.availableGroups),scrollAnchor:A.props.scrollAnchor,pageInfo:e(A.props.pageInfo),idKey:e(A.props.idKey),requestFetchPrevPage:i("requestFetchPrevPage"),requestFetchNextPage:i("requestFetchNextPage"),selectedIndex:e(A.props.selectedIndex),resetSelectedIndex:r((c=A.events)==null?void 0:c.resetSelectedIndex),emptyListPlaceholder:t(A.props.emptyListTemplate),groupsInitiallyExpanded:e.asOptionalBoolean(A.props.groupsInitiallyExpanded),defaultGroups:e(A.props.defaultGroups),borderCollapse:e.asOptionalBoolean(A.props.borderCollapse,!0),itemRenderer:s&&(u=>Q.jsx(Oo,{node:s,item:u,renderChild:t,layoutContext:o})),sectionRenderer:A.props.groupBy?u=>{var g;return(((g=u.items)==null?void 0:g.length)??0)>0||!l?Q.jsx(CMA,{node:A.props.groupHeaderTemplate??{type:"Fragment"},renderChild:t,item:u}):null}:void 0,sectionFooterRenderer:A.props.groupFooterTemplate?u=>{var g;return(((g=u.items)==null?void 0:g.length)??0)>0||!l?Q.jsx(Oo,{node:A.props.groupFooterTemplate??{type:"Fragment"},item:u,renderChild:t,itemKey:"$group",contextKey:"$group"}):null}:void 0})}),T4={themeVars:'"[]"',wrapper:"_wrapper_1hlil_13",visibleOnHover:"_visibleOnHover_1hlil_16"};function wMA({children:A,top:e,right:t,bottom:r,left:n,visibleOnHover:o=!1}){return Q.jsx("div",{style:{top:e,right:t,bottom:r,left:n},className:KA(T4.wrapper,{[T4.visibleOnHover]:o}),children:A})}const IMA="PositionedContainer",vMA=kA({status:"deprecated",description:"(**OBSOLETE**) This component was created for the ChatEngine app.",props:{visibleOnHover:j("No description")},themeVars:ne(T4.themeVars)}),DMA=RA(IMA,vMA,({node:A,extractValue:e,renderChild:t,layoutCss:r})=>Q.jsx(wMA,{top:r.top,right:r.right,bottom:r.bottom,left:r.left,visibleOnHover:e.asOptionalBoolean(A.props.visibleOnHover),children:t(A.children)}));function yMA({listenTo:A,onChange:e,throttleWaitInMs:t=0}){const r=Ya(A),n=d.useMemo(()=>t!==0&&e?XF(e,t,{leading:!0}):e,[e,t]);return d.useEffect(()=>{n&&!$p(r,A)&&(n==null||n({prevValue:r,newValue:A}))},[A,n,r]),null}const L4="ChangeListener",bMA=kA({description:`\`${L4}\` is a functional component (it renders no UI) to trigger an action when a particular value (component property, state, etc.) changes.`,props:{listenTo:j("Value to the changes of which this component listens."),throttleWaitInMs:j("This variable sets a throttling time (in milliseconds) to apply when executing the `didChange` event handler. All changes within that throttling time will only fire the `didChange` event once.")},events:{didChange:lo(L4)}}),xMA=RA(L4,bMA,({node:A,lookupEventHandler:e,extractValue:t})=>Q.jsx(yMA,{listenTo:t(A.props.listenTo),throttleWaitInMs:t(A.props.throttleWaitInMs),onChange:e("didChange")}));var F4=CT(),kMA={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_Pdf:"false",VITE_USED_COMPONENTS_Chart:"false",VITE_USER_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_XMLUI_VERSION:"0.7.19 (built 1/31/2025)"};const Rw=Symbol(),_MA=Symbol(),CU=typeof window>"u"||/ServerSideRendering/.test(window.navigator&&window.navigator.userAgent)?d.useEffect:d.useLayoutEffect,MMA=F4.unstable_runWithPriority?A=>F4.unstable_runWithPriority(F4.unstable_NormalPriority,A):A=>A();function mU(A){const e=d.createContext({[Rw]:{v:{current:A},n:{current:-1},l:new Set,u:r=>r()}});var t;return e[_MA]=e.Provider,e.Provider=(t=e.Provider,({value:r,children:n})=>{const o=d.useRef(r),i=d.useRef(0),[a,s]=d.useState(null);a&&(a(r),s(null));const l=d.useRef();if(!l.current){const c=new Set,u=(g,h)=>{Dr.unstable_batchedUpdates(()=>{i.current+=1;const B={n:i.current};h!=null&&h.suspense&&(B.n*=-1,B.p=new Promise(E=>{s(()=>C=>{B.v=C,delete B.p,E(C)})})),c.forEach(E=>E(B)),g()})};l.current={[Rw]:{v:o,n:i,l:c,u}}}return CU(()=>{o.current=r,i.current+=1,MMA(()=>{l.current[Rw].l.forEach(c=>{c({n:i.current,v:r})})})},[r]),d.createElement(t,{value:l.current},n)}),delete e.Consumer,e}function QU(A,e){const t=d.useContext(A)[Rw];if(typeof process=="object"&&kMA.NODE_ENV!=="production"&&!t)throw new Error("useContextSelector requires special context");const{v:{current:r},n:{current:n},l:o}=t,i=e(r),[a,s]=d.useReducer((l,c)=>{if(!c)return[r,i];if("p"in c)throw c.p;if(c.n===n)return Object.is(l[1],i)?l:[r,i];try{if("v"in c){if(Object.is(l[0],c.v))return l;const u=e(c.v);return Object.is(l[1],u)?l:[c.v,u]}}catch{}return[...l]},[r,i]);return Object.is(a[1],i)||s(),CU(()=>(o.add(s),()=>{o.delete(s)}),[o]),a[1]}const wU=mU(void 0);function xi(A){return QU(wU,A)}var ki=(A=>(A.FIELD_LOST_FOCUS="FormActionKind:FIELD_LOST_FOCUS",A.FIELD_VALUE_CHANGED="FormActionKind:FIELD_VALUE_CHANGED",A.FIELD_FOCUSED="FormActionKind:FIELD_FOCUSED",A.FIELD_VALIDATED="FormActionKind:FIELD_VALIDATED",A.FIELD_INITIALIZED="FormActionKind:FIELD_INITIALIZED",A.FIELD_REMOVED="FormActionKind:FIELD_REMOVED",A.TRIED_TO_SUBMIT="FormActionKind:TRIED_TO_SUBMIT",A.BACKEND_VALIDATION_ARRIVED="FormActionKind:BACKEND_VALIDATION_ARRIVED",A.SUBMITTING="FormActionKind:SUBMITTING",A.SUBMITTED="FormActionKind:SUBMITTED",A.RESET="FormActionKind:RESET",A))(ki||{});function SMA(A,e){return{type:"FormActionKind:FIELD_INITIALIZED",payload:{uid:A,value:e}}}function IU(A,e){return{type:"FormActionKind:FIELD_VALUE_CHANGED",payload:{uid:A,value:e}}}function NMA(A){return{type:"FormActionKind:FIELD_FOCUSED",payload:{uid:A}}}function RMA(A){return{type:"FormActionKind:FIELD_LOST_FOCUS",payload:{uid:A}}}function vU(A,e){return{type:"FormActionKind:FIELD_VALIDATED",payload:{uid:A,validationResult:e}}}function PMA(A){return{type:"FormActionKind:FIELD_REMOVED",payload:{uid:A}}}function TMA(){return{type:"FormActionKind:TRIED_TO_SUBMIT",payload:{}}}function LMA(){return{type:"FormActionKind:SUBMITTING",payload:{}}}function FMA(){return{type:"FormActionKind:SUBMITTED",payload:{}}}function OMA(A){return{type:"FormActionKind:RESET",payload:{originalSubject:A}}}function HMA({generalValidationResults:A=[],fieldValidationResults:e={}}){return{type:"FormActionKind:BACKEND_VALIDATION_ARRIVED",payload:{generalValidationResults:A,fieldValidationResults:e}}}function GMA(A){return A==null||A===""?!0:typeof A=="string"?A.trim().length===0:jl(A)}function DU(A="",e){return typeof A=="string"?A.length>=e:(console.warn("minLength can only be used on strings"),!0)}function yU(A="",e){return typeof A=="string"?A.length<=e:(console.warn("maxLength can only be used on strings"),!0)}function bU(A="",e){return typeof A!="string"&&!KF(A)&&console.warn("Range can only be used on strings and numbers"),Number(A)>=e}function xU(A="",e){return typeof A!="string"&&!KF(A)&&console.warn("Range can only be used on strings and numbers"),Number(A)<=e}function UMA(A="",e){if(typeof A=="string")return t(e).test(A);return console.warn("Regex can only be used on strings"),!0;function t(r){const n=r.match(/^([/~@;%#'])(.*?)\1([gimsuy]*)$/);return n?new RegExp(n[2],n[3]):new RegExp(r)}}class kU{constructor(e,t,r){this.validations=e,this.onValidate=t,this.value=r,this.preValidate=()=>{const n=this.validateRequired();let o=[n];return(!n||n.isValid)&&o.push(this.validateLength(),this.validateRange(),this.validatePattern(),this.validateRegex()),o=o.filter(i=>i!==void 0),{isValid:o.find(i=>!i.isValid)===void 0,validatedValue:this.value,partial:this.onValidate!==void 0,validations:o}},this.validate=async()=>{const n=this.preValidate(),o=await this.validateCustom()||[];return n.validations.push(...o.map(i=>({...i,async:!0}))),{isValid:n.validations.find(i=>!i.isValid)===void 0,validatedValue:this.value,partial:!1,validations:n.validations}}}validateRequired(){const{required:e,requiredInvalidMessage:t}=this.validations;if(e)return{isValid:!GMA(this.value),invalidMessage:t||"This field is required",severity:"error"}}validateLength(){const{minLength:e,maxLength:t,lengthInvalidMessage:r,lengthInvalidSeverity:n="error"}=this.validations;if(!(e===void 0&&t===void 0))return e!==void 0&&t===void 0?{isValid:DU(this.value,e),invalidMessage:r||`Input should be at least ${e} ${MU(e,"character")}`,severity:n}:e===void 0&&t!==void 0?{isValid:yU(this.value,t),invalidMessage:r||`Input should be up to ${t} ${MU(t,"character")}`,severity:n}:{isValid:DU(this.value,e)&&yU(this.value,t),invalidMessage:r||`Input length should be between ${e} and ${t}`,severity:n}}validateRange(){const{minValue:e,maxValue:t,rangeInvalidMessage:r,rangeInvalidSeverity:n="error"}=this.validations;if(!(e===void 0&&t===void 0))return e!==void 0&&t===void 0?{isValid:bU(this.value,e),invalidMessage:r||`Input should be bigger than ${e}`,severity:n}:e===void 0&&t!==void 0?{isValid:xU(this.value,t),invalidMessage:r||`Input should be smaller than ${t}`,severity:n}:{isValid:bU(this.value,e)&&xU(this.value,t),invalidMessage:r||`Input should be between ${e} and ${t}`,severity:n}}validatePattern(){const{pattern:e,patternInvalidMessage:t,patternInvalidSeverity:r="error"}=this.validations;if(e)switch(e.toLowerCase()){case"email":return{isValid:/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(this.value),invalidMessage:t||"Not a valid email address",severity:r};case"phone":return{isValid:/^[a-zA-Z0-9#*)(+.\-_&']+$/g.test(this.value),invalidMessage:t||"Not a valid phone number",severity:r};case"url":let n;try{n=new URL(this.value)}catch{}return!n||n.protocol&&!["http:","https:"].includes(n.protocol)?{isValid:!1,invalidMessage:"Not a valid URL",severity:r}:{isValid:!0,severity:"valid"};default:return console.warn("Unknown pattern provided"),{isValid:!0,severity:"valid"}}}validateRegex(){const{regex:e,regexInvalidMessage:t,regexInvalidSeverity:r="error"}=this.validations;if(e!==void 0)return{isValid:UMA(this.value,e),invalidMessage:t||"Input is not in the correct format",severity:r}}async validateCustom(){if(!this.onValidate)return;const e=await this.onValidate(this.value);return typeof e=="boolean"?[{isValid:e,invalidMessage:"Invalid input",severity:"error"}]:jt(e)?e:[e]}}async function _U(A,e,t){return await new kU(A,e,t).validate()}function KMA(A,e,t,r,n,o=0){const i=d.useDeferredValue(t),a=d.useMemo(()=>o!==0?WQA(_U,o,{trailing:!0,leading:!0}):_U,[o]);d.useEffect(function(){const l=new kU(A,e,i);let c=!1;const u=l.preValidate();return c||(r(vU(n,u)),u.partial&&(async()=>{const g=await a(A,e,i);c||r(vU(n,g))})()),()=>{c=!0}},[n,i,r,e,a,A])}function YMA(A,e,t,r="errorLate"){const n=xi(m=>m.interactionFlags[A])||qe,o=n.forceShowValidationResult,i=n.focused,a=n.isValidLostFocus,s=n.isValidOnFocus,l=n.invalidToValid,c=!t||t.validatedValue!==e,u=n.isDirty,g=(t==null?void 0:t.isValid)===!0;let h="none";for(const m of(t==null?void 0:t.validations)||[])if(!m.isValid&&(h!=="error"&&m.severity==="warning"&&(h="warning"),m.severity==="error")){h="error";break}let B=!1;switch(r){case"errorLate":B=u&&(i?!l&&!s:!a);break;case"onChanged":B=u;break;case"onLostFocus":B=u&&(!i&&!g||!a&&!g)}B=B||o;const[E,C]=d.useState(B);return E!==B&&!c&&C(B),c&&(B=E),{isHelperTextShown:B,validationStatus:B?h:"none"}}function Pw(A){if(A!==void 0)return A==="error"||A==="warning"||A==="valid"||A==="none"?A:"none"}function $MA(A){const e={error:[],warning:[],valid:[],none:[]};return Object.entries(A).forEach(([t,r])=>{r.validations.forEach(n=>{n.isValid||(e[n.severity]=e[n.severity]||[],e[n.severity].push(n))})}),e}function MU(A,e){return A===1?e:e+"s"}const aa={themeVars:`'{"Input:radius-TextBox-default": "var(--xmlui-radius-TextBox-default)", "Input:color-border-TextBox-default": "var(--xmlui-color-border-TextBox-default)", "Input:thickness-border-TextBox-default": "var(--xmlui-thickness-border-TextBox-default)", "Input:style-border-TextBox-default": "var(--xmlui-style-border-TextBox-default)", "Input:font-size-TextBox-default": "var(--xmlui-font-size-TextBox-default)", "Input:padding-TextBox-default": "var(--xmlui-padding-TextBox-default)", "Input:color-bg-TextBox-default": "var(--xmlui-color-bg-TextBox-default)", "Input:shadow-TextBox-default": "var(--xmlui-shadow-TextBox-default)", "Input:color-text-TextBox-default": "var(--xmlui-color-text-TextBox-default)", "Input:color-border-TextBox-default--hover": "var(--xmlui-color-border-TextBox-default--hover)", "Input:color-bg-TextBox-default--hover": "var(--xmlui-color-bg-TextBox-default--hover)", "Input:shadow-TextBox-default--hover": "var(--xmlui-shadow-TextBox-default--hover)", "Input:color-text-TextBox-default--hover": "var(--xmlui-color-text-TextBox-default--hover)", "Input:color-border-TextBox-default--focus": "var(--xmlui-color-border-TextBox-default--focus)", "Input:color-bg-TextBox-default--focus": "var(--xmlui-color-bg-TextBox-default--focus)", "Input:shadow-TextBox-default--focus": "var(--xmlui-shadow-TextBox-default--focus)", "Input:color-text-TextBox-default--focus": "var(--xmlui-color-text-TextBox-default--focus)", "Input:thickness-outline-TextBox-default--focus": "var(--xmlui-thickness-outline-TextBox-default--focus)", "Input:color-outline-TextBox-default--focus": "var(--xmlui-color-outline-TextBox-default--focus)", "Input:style-outline-TextBox-default--focus": "var(--xmlui-style-outline-TextBox-default--focus)", "Input:offset-outline-TextBox-default--focus": "var(--xmlui-offset-outline-TextBox-default--focus)", "Input:color-placeholder-TextBox-default": "var(--xmlui-color-placeholder-TextBox-default)", "Input:color-adornment-TextBox-default": "var(--xmlui-color-adornment-TextBox-default)", "Input:radius-TextBox-error": "var(--xmlui-radius-TextBox-error)", "Input:color-border-TextBox-error": "var(--xmlui-color-border-TextBox-error)", "Input:thickness-border-TextBox-error": "var(--xmlui-thickness-border-TextBox-error)", "Input:style-border-TextBox-error": "var(--xmlui-style-border-TextBox-error)", "Input:font-size-TextBox-error": "var(--xmlui-font-size-TextBox-error)", "Input:padding-TextBox-error": "var(--xmlui-padding-TextBox-error)", "Input:color-bg-TextBox-error": "var(--xmlui-color-bg-TextBox-error)", "Input:shadow-TextBox-error": "var(--xmlui-shadow-TextBox-error)", "Input:color-text-TextBox-error": "var(--xmlui-color-text-TextBox-error)", "Input:color-border-TextBox-error--hover": "var(--xmlui-color-border-TextBox-error--hover)", "Input:color-bg-TextBox-error--hover": "var(--xmlui-color-bg-TextBox-error--hover)", "Input:shadow-TextBox-error--hover": "var(--xmlui-shadow-TextBox-error--hover)", "Input:color-text-TextBox-error--hover": "var(--xmlui-color-text-TextBox-error--hover)", "Input:color-border-TextBox-error--focus": "var(--xmlui-color-border-TextBox-error--focus)", "Input:color-bg-TextBox-error--focus": "var(--xmlui-color-bg-TextBox-error--focus)", "Input:shadow-TextBox-error--focus": "var(--xmlui-shadow-TextBox-error--focus)", "Input:color-text-TextBox-error--focus": "var(--xmlui-color-text-TextBox-error--focus)", "Input:thickness-outline-TextBox-error--focus": "var(--xmlui-thickness-outline-TextBox-error--focus)", "Input:color-outline-TextBox-error--focus": "var(--xmlui-color-outline-TextBox-error--focus)", "Input:style-outline-TextBox-error--focus": "var(--xmlui-style-outline-TextBox-error--focus)", "Input:offset-outline-TextBox-error--focus": "var(--xmlui-offset-outline-TextBox-error--focus)", "Input:color-placeholder-TextBox-error": "var(--xmlui-color-placeholder-TextBox-error)", "Input:color-adornment-TextBox-error": "var(--xmlui-color-adornment-TextBox-error)", "Input:radius-TextBox-warning": "var(--xmlui-radius-TextBox-warning)", "Input:color-border-TextBox-warning": "var(--xmlui-color-border-TextBox-warning)", "Input:thickness-border-TextBox-warning": "var(--xmlui-thickness-border-TextBox-warning)", "Input:style-border-TextBox-warning": "var(--xmlui-style-border-TextBox-warning)", "Input:font-size-TextBox-warning": "var(--xmlui-font-size-TextBox-warning)", "Input:padding-TextBox-warning": "var(--xmlui-padding-TextBox-warning)", "Input:color-bg-TextBox-warning": "var(--xmlui-color-bg-TextBox-warning)", "Input:shadow-TextBox-warning": "var(--xmlui-shadow-TextBox-warning)", "Input:color-text-TextBox-warning": "var(--xmlui-color-text-TextBox-warning)", "Input:color-border-TextBox-warning--hover": "var(--xmlui-color-border-TextBox-warning--hover)", "Input:color-bg-TextBox-warning--hover": "var(--xmlui-color-bg-TextBox-warning--hover)", "Input:shadow-TextBox-warning--hover": "var(--xmlui-shadow-TextBox-warning--hover)", "Input:color-text-TextBox-warning--hover": "var(--xmlui-color-text-TextBox-warning--hover)", "Input:color-border-TextBox-warning--focus": "var(--xmlui-color-border-TextBox-warning--focus)", "Input:color-bg-TextBox-warning--focus": "var(--xmlui-color-bg-TextBox-warning--focus)", "Input:shadow-TextBox-warning--focus": "var(--xmlui-shadow-TextBox-warning--focus)", "Input:color-text-TextBox-warning--focus": "var(--xmlui-color-text-TextBox-warning--focus)", "Input:thickness-outline-TextBox-warning--focus": "var(--xmlui-thickness-outline-TextBox-warning--focus)", "Input:color-outline-TextBox-warning--focus": "var(--xmlui-color-outline-TextBox-warning--focus)", "Input:style-outline-TextBox-warning--focus": "var(--xmlui-style-outline-TextBox-warning--focus)", "Input:offset-outline-TextBox-warning--focus": "var(--xmlui-offset-outline-TextBox-warning--focus)", "Input:color-placeholder-TextBox-warning": "var(--xmlui-color-placeholder-TextBox-warning)", "Input:color-adornment-TextBox-warning": "var(--xmlui-color-adornment-TextBox-warning)", "Input:radius-TextBox-success": "var(--xmlui-radius-TextBox-success)", "Input:color-border-TextBox-success": "var(--xmlui-color-border-TextBox-success)", "Input:thickness-border-TextBox-success": "var(--xmlui-thickness-border-TextBox-success)", "Input:style-border-TextBox-success": "var(--xmlui-style-border-TextBox-success)", "Input:font-size-TextBox-success": "var(--xmlui-font-size-TextBox-success)", "Input:padding-TextBox-success": "var(--xmlui-padding-TextBox-success)", "Input:color-bg-TextBox-success": "var(--xmlui-color-bg-TextBox-success)", "Input:shadow-TextBox-success": "var(--xmlui-shadow-TextBox-success)", "Input:color-text-TextBox-success": "var(--xmlui-color-text-TextBox-success)", "Input:color-border-TextBox-success--hover": "var(--xmlui-color-border-TextBox-success--hover)", "Input:color-bg-TextBox-success--hover": "var(--xmlui-color-bg-TextBox-success--hover)", "Input:shadow-TextBox-success--hover": "var(--xmlui-shadow-TextBox-success--hover)", "Input:color-text-TextBox-success--hover": "var(--xmlui-color-text-TextBox-success--hover)", "Input:color-border-TextBox-success--focus": "var(--xmlui-color-border-TextBox-success--focus)", "Input:color-bg-TextBox-success--focus": "var(--xmlui-color-bg-TextBox-success--focus)", "Input:shadow-TextBox-success--focus": "var(--xmlui-shadow-TextBox-success--focus)", "Input:color-text-TextBox-success--focus": "var(--xmlui-color-text-TextBox-success--focus)", "Input:thickness-outline-TextBox-success--focus": "var(--xmlui-thickness-outline-TextBox-success--focus)", "Input:color-outline-TextBox-success--focus": "var(--xmlui-color-outline-TextBox-success--focus)", "Input:style-outline-TextBox-success--focus": "var(--xmlui-style-outline-TextBox-success--focus)", "Input:offset-outline-TextBox-success--focus": "var(--xmlui-offset-outline-TextBox-success--focus)", "Input:color-placeholder-TextBox-success": "var(--xmlui-color-placeholder-TextBox-success)", "Input:color-adornment-TextBox-success": "var(--xmlui-color-adornment-TextBox-success)", "Input:color-bg-TextBox--disabled": "var(--xmlui-color-bg-TextBox--disabled)", "Input:color-text-TextBox--disabled": "var(--xmlui-color-text-TextBox--disabled)", "Input:color-border-TextBox--disabled": "var(--xmlui-color-border-TextBox--disabled)"}'`,inputRoot:"_inputRoot_1s937_13",input:"_input_1s937_13",adornment:"_adornment_1s937_53",error:"_error_1s937_56",warning:"_warning_1s937_91",valid:"_valid_1s937_126",readOnly:"_readOnly_1s937_178"},jMA={wrapper:"_wrapper_18f9r_13"};function Tw({iconName:A,text:e,className:t}){return Q.jsx(Q.Fragment,{children:A||e?Q.jsxs("div",{className:KA(jMA.wrapper,t),children:[Q.jsx(be,{name:A,style:{color:"inherit"}}),e&&Q.jsx("div",{style:{display:"flex",userSelect:"none"},children:Q.jsx(Bn,{style:{fontSize:"inherit"},children:e})})]}):null})}const Lw=d.forwardRef(function({id:e,type:t="text",value:r="",updateState:n=ve,initialValue:o="",style:i,maxLength:a,enabled:s=!0,placeholder:l,validationStatus:c="none",onDidChange:u=ve,onFocus:g=ve,onBlur:h=ve,registerComponentApi:B,startText:E,startIcon:C,endText:m,endIcon:I,autoFocus:v,readOnly:y,tabIndex:x,label:b,labelPosition:k,labelWidth:M,labelBreak:N,required:F},L){const T=d.useRef(null);d.useEffect(()=>{v&&setTimeout(()=>{var J;(J=T.current)==null||J.focus()},0)},[v]);const[P,G]=_A.useState(r);d.useEffect(()=>{G(r)},[r]),d.useEffect(()=>{n({value:o},{initial:!0})},[o,n]);const H=d.useCallback(J=>{G(J),n({value:J}),u(J)},[u,n]),z=d.useCallback(J=>{H(J.target.value)},[H]),q=d.useCallback(()=>{g==null||g()},[g]),O=d.useCallback(()=>{h==null||h()},[h]),Y=d.useCallback(()=>{var J;(J=T.current)==null||J.focus()},[]),S=ze(J=>{H(J)});return d.useEffect(()=>{B==null||B({focus:Y,setValue:S})},[Y,B,S]),Q.jsx(rs,{labelPosition:k,label:b,labelWidth:M,labelBreak:N,required:F,enabled:s,onFocus:g,onBlur:h,style:i,ref:L,children:Q.jsxs("div",{className:KA(aa.inputRoot,{[aa.disabled]:!s,[aa.readOnly]:y,[aa.error]:c==="error",[aa.warning]:c==="warning",[aa.valid]:c==="valid"}),tabIndex:-1,onFocus:Y,children:[Q.jsx(Tw,{text:E,iconName:C,className:aa.adornment}),Q.jsx("input",{id:e,type:t,className:KA(aa.input,{[aa.readOnly]:y}),disabled:!s,value:P,maxLength:a,placeholder:l,onChange:z,onFocus:q,onBlur:O,ref:T,readOnly:y,autoFocus:v,tabIndex:s?x:-1,required:F}),Q.jsx(Tw,{text:m,iconName:I,className:aa.adornment})]})})}),Fw={themeVars:'"[]"',container:"_container_mle43_13",textBoxWrapper:"_textBoxWrapper_mle43_21",button:"_button_mle43_27"},{useDropzone:qMA}=cU,SU=({id:A,enabled:e=!0,style:t,buttonLabel:r="Browse",buttonIcon:n,buttonIconPosition:o,variant:i,buttonThemeColor:a,buttonSize:s,autoFocus:l,validationStatus:c,updateState:u=ve,onDidChange:g=ve,onFocus:h=ve,onBlur:B=ve,registerComponentApi:E,value:C,initialValue:m,acceptsFileType:I,multiple:v=!1,directory:y=!1,label:x,labelPosition:b,labelWidth:k,labelBreak:M,required:N})=>{const F=O4(m)?m:void 0,L=O4(C)?C:void 0,T=d.useRef(null),P=typeof I=="string"?I:I==null?void 0:I.join(",");d.useEffect(()=>{l&&setTimeout(()=>{var $;($=T.current)==null||$.focus()},0)},[l]),d.useEffect(()=>{u({value:F},{initial:!0})},[F,u]);const G=d.useCallback(()=>{B==null||B()},[B]),H=d.useCallback(()=>{var $;($=T.current)==null||$.focus()},[]),z=d.useCallback($=>{$.length&&(u({value:$}),g($))},[u,g]),{getRootProps:q,getInputProps:O,open:Y}=qMA({disabled:!e,multiple:v||y,onDrop:z,noClick:!0,noKeyboard:!0,noDragEventsBubbling:!0,useFsAccessApi:y===!1}),S=d.useCallback(()=>{h==null||h()},[h]),J=ze(()=>{Y()});return d.useEffect(()=>{E==null||E({focus:H,open:J})},[H,J,E]),Q.jsx(rs,{labelPosition:b,label:x,labelWidth:k,labelBreak:M,required:N,enabled:e,onFocus:h,onBlur:B,style:t,children:Q.jsxs("div",{className:Fw.container,children:[Q.jsxs("button",{...q({tabIndex:0,onFocus:S,onBlur:G,disabled:!e,className:Fw.textBoxWrapper,onClick:Y,ref:T,type:"button"}),children:[Q.jsx(v4A,{children:Q.jsx("input",{...O({webkitdirectory:y?"true":void 0}),accept:P})}),Q.jsx(Lw,{enabled:e,value:(L==null?void 0:L.map($=>$.name).join(", "))||"",validationStatus:c,readOnly:!0,tabIndex:-1})]}),Q.jsx(or,{id:A,disabled:!e,type:"button",onClick:Y,icon:n,iconPosition:o,variant:i,themeColor:a,size:s,className:Fw.button,autoFocus:l,children:r})]})})};function JMA(A){return A instanceof File}function O4(A){return Array.isArray(A)&&A.every(JMA)}const qn={themeVars:`'{"Input:radius-NumberBox-default": "var(--xmlui-radius-NumberBox-default)", "Input:color-border-NumberBox-default": "var(--xmlui-color-border-NumberBox-default)", "Input:thickness-border-NumberBox-default": "var(--xmlui-thickness-border-NumberBox-default)", "Input:style-border-NumberBox-default": "var(--xmlui-style-border-NumberBox-default)", "Input:font-size-NumberBox-default": "var(--xmlui-font-size-NumberBox-default)", "Input:color-bg-NumberBox-default": "var(--xmlui-color-bg-NumberBox-default)", "Input:shadow-NumberBox-default": "var(--xmlui-shadow-NumberBox-default)", "Input:color-text-NumberBox-default": "var(--xmlui-color-text-NumberBox-default)", "Input:color-border-NumberBox-default--hover": "var(--xmlui-color-border-NumberBox-default--hover)", "Input:color-bg-NumberBox-default--hover": "var(--xmlui-color-bg-NumberBox-default--hover)", "Input:shadow-NumberBox-default--hover": "var(--xmlui-shadow-NumberBox-default--hover)", "Input:color-text-NumberBox-default--hover": "var(--xmlui-color-text-NumberBox-default--hover)", "Input:color-border-NumberBox-default--focus": "var(--xmlui-color-border-NumberBox-default--focus)", "Input:color-bg-NumberBox-default--focus": "var(--xmlui-color-bg-NumberBox-default--focus)", "Input:shadow-NumberBox-default--focus": "var(--xmlui-shadow-NumberBox-default--focus)", "Input:color-text-NumberBox-default--focus": "var(--xmlui-color-text-NumberBox-default--focus)", "Input:thickness-outline-NumberBox-default--focus": "var(--xmlui-thickness-outline-NumberBox-default--focus)", "Input:color-outline-NumberBox-default--focus": "var(--xmlui-color-outline-NumberBox-default--focus)", "Input:style-outline-NumberBox-default--focus": "var(--xmlui-style-outline-NumberBox-default--focus)", "Input:offset-outline-NumberBox-default--focus": "var(--xmlui-offset-outline-NumberBox-default--focus)", "Input:color-placeholder-NumberBox-default": "var(--xmlui-color-placeholder-NumberBox-default)", "Input:color-adornment-NumberBox-default": "var(--xmlui-color-adornment-NumberBox-default)", "Input:radius-NumberBox-error": "var(--xmlui-radius-NumberBox-error)", "Input:color-border-NumberBox-error": "var(--xmlui-color-border-NumberBox-error)", "Input:thickness-border-NumberBox-error": "var(--xmlui-thickness-border-NumberBox-error)", "Input:style-border-NumberBox-error": "var(--xmlui-style-border-NumberBox-error)", "Input:font-size-NumberBox-error": "var(--xmlui-font-size-NumberBox-error)", "Input:color-bg-NumberBox-error": "var(--xmlui-color-bg-NumberBox-error)", "Input:shadow-NumberBox-error": "var(--xmlui-shadow-NumberBox-error)", "Input:color-text-NumberBox-error": "var(--xmlui-color-text-NumberBox-error)", "Input:color-border-NumberBox-error--hover": "var(--xmlui-color-border-NumberBox-error--hover)", "Input:color-bg-NumberBox-error--hover": "var(--xmlui-color-bg-NumberBox-error--hover)", "Input:shadow-NumberBox-error--hover": "var(--xmlui-shadow-NumberBox-error--hover)", "Input:color-text-NumberBox-error--hover": "var(--xmlui-color-text-NumberBox-error--hover)", "Input:color-border-NumberBox-error--focus": "var(--xmlui-color-border-NumberBox-error--focus)", "Input:color-bg-NumberBox-error--focus": "var(--xmlui-color-bg-NumberBox-error--focus)", "Input:shadow-NumberBox-error--focus": "var(--xmlui-shadow-NumberBox-error--focus)", "Input:color-text-NumberBox-error--focus": "var(--xmlui-color-text-NumberBox-error--focus)", "Input:thickness-outline-NumberBox-error--focus": "var(--xmlui-thickness-outline-NumberBox-error--focus)", "Input:color-outline-NumberBox-error--focus": "var(--xmlui-color-outline-NumberBox-error--focus)", "Input:style-outline-NumberBox-error--focus": "var(--xmlui-style-outline-NumberBox-error--focus)", "Input:offset-outline-NumberBox-error--focus": "var(--xmlui-offset-outline-NumberBox-error--focus)", "Input:color-placeholder-NumberBox-error": "var(--xmlui-color-placeholder-NumberBox-error)", "Input:color-adornment-NumberBox-error": "var(--xmlui-color-adornment-NumberBox-error)", "Input:radius-NumberBox-warning": "var(--xmlui-radius-NumberBox-warning)", "Input:color-border-NumberBox-warning": "var(--xmlui-color-border-NumberBox-warning)", "Input:thickness-border-NumberBox-warning": "var(--xmlui-thickness-border-NumberBox-warning)", "Input:style-border-NumberBox-warning": "var(--xmlui-style-border-NumberBox-warning)", "Input:font-size-NumberBox-warning": "var(--xmlui-font-size-NumberBox-warning)", "Input:color-bg-NumberBox-warning": "var(--xmlui-color-bg-NumberBox-warning)", "Input:shadow-NumberBox-warning": "var(--xmlui-shadow-NumberBox-warning)", "Input:color-text-NumberBox-warning": "var(--xmlui-color-text-NumberBox-warning)", "Input:color-border-NumberBox-warning--hover": "var(--xmlui-color-border-NumberBox-warning--hover)", "Input:color-bg-NumberBox-warning--hover": "var(--xmlui-color-bg-NumberBox-warning--hover)", "Input:shadow-NumberBox-warning--hover": "var(--xmlui-shadow-NumberBox-warning--hover)", "Input:color-text-NumberBox-warning--hover": "var(--xmlui-color-text-NumberBox-warning--hover)", "Input:color-border-NumberBox-warning--focus": "var(--xmlui-color-border-NumberBox-warning--focus)", "Input:color-bg-NumberBox-warning--focus": "var(--xmlui-color-bg-NumberBox-warning--focus)", "Input:shadow-NumberBox-warning--focus": "var(--xmlui-shadow-NumberBox-warning--focus)", "Input:color-text-NumberBox-warning--focus": "var(--xmlui-color-text-NumberBox-warning--focus)", "Input:thickness-outline-NumberBox-warning--focus": "var(--xmlui-thickness-outline-NumberBox-warning--focus)", "Input:color-outline-NumberBox-warning--focus": "var(--xmlui-color-outline-NumberBox-warning--focus)", "Input:style-outline-NumberBox-warning--focus": "var(--xmlui-style-outline-NumberBox-warning--focus)", "Input:offset-outline-NumberBox-warning--focus": "var(--xmlui-offset-outline-NumberBox-warning--focus)", "Input:color-placeholder-NumberBox-warning": "var(--xmlui-color-placeholder-NumberBox-warning)", "Input:color-adornment-NumberBox-warning": "var(--xmlui-color-adornment-NumberBox-warning)", "Input:radius-NumberBox-success": "var(--xmlui-radius-NumberBox-success)", "Input:color-border-NumberBox-success": "var(--xmlui-color-border-NumberBox-success)", "Input:thickness-border-NumberBox-success": "var(--xmlui-thickness-border-NumberBox-success)", "Input:style-border-NumberBox-success": "var(--xmlui-style-border-NumberBox-success)", "Input:font-size-NumberBox-success": "var(--xmlui-font-size-NumberBox-success)", "Input:color-bg-NumberBox-success": "var(--xmlui-color-bg-NumberBox-success)", "Input:shadow-NumberBox-success": "var(--xmlui-shadow-NumberBox-success)", "Input:color-text-NumberBox-success": "var(--xmlui-color-text-NumberBox-success)", "Input:color-border-NumberBox-success--hover": "var(--xmlui-color-border-NumberBox-success--hover)", "Input:color-bg-NumberBox-success--hover": "var(--xmlui-color-bg-NumberBox-success--hover)", "Input:shadow-NumberBox-success--hover": "var(--xmlui-shadow-NumberBox-success--hover)", "Input:color-text-NumberBox-success--hover": "var(--xmlui-color-text-NumberBox-success--hover)", "Input:color-border-NumberBox-success--focus": "var(--xmlui-color-border-NumberBox-success--focus)", "Input:color-bg-NumberBox-success--focus": "var(--xmlui-color-bg-NumberBox-success--focus)", "Input:shadow-NumberBox-success--focus": "var(--xmlui-shadow-NumberBox-success--focus)", "Input:color-text-NumberBox-success--focus": "var(--xmlui-color-text-NumberBox-success--focus)", "Input:thickness-outline-NumberBox-success--focus": "var(--xmlui-thickness-outline-NumberBox-success--focus)", "Input:color-outline-NumberBox-success--focus": "var(--xmlui-color-outline-NumberBox-success--focus)", "Input:style-outline-NumberBox-success--focus": "var(--xmlui-style-outline-NumberBox-success--focus)", "Input:offset-outline-NumberBox-success--focus": "var(--xmlui-offset-outline-NumberBox-success--focus)", "Input:color-placeholder-NumberBox-success": "var(--xmlui-color-placeholder-NumberBox-success)", "Input:color-adornment-NumberBox-success": "var(--xmlui-color-adornment-NumberBox-success)", "Input:color-bg-NumberBox--disabled": "var(--xmlui-color-bg-NumberBox--disabled)", "Input:color-text-NumberBox--disabled": "var(--xmlui-color-text-NumberBox--disabled)", "Input:color-border-NumberBox--disabled": "var(--xmlui-color-border-NumberBox--disabled)"}'`,inputRoot:"_inputRoot_zavgy_13",input:"_input_zavgy_13",adornment:"_adornment_zavgy_53",error:"_error_zavgy_56",warning:"_warning_zavgy_90",valid:"_valid_zavgy_124",spinnerBox:"_spinnerBox_zavgy_184",spinnerButton:"_spinnerButton_zavgy_191",readOnly:"_readOnly_zavgy_197"},Ow=999999999999999,H4=".",Hw="e",zMA=/^-?\d+$/,WMA=/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/,VMA=1;function NU(A){return typeof A>"u"||A===null||A===""}function G4(A){return typeof A=="string"?A:typeof A=="number"?A.toString():""}function XMA(A,e,t){let r=A;return A<e&&(r=e),A>t&&(r=t),r}function RU(A,e=!1){return(e?eSA:ZMA)(A)?(typeof A=="string"&&(A=e?Number.parseInt(A):+A),A):null}function ZMA(A){return typeof A=="string"&&A.length>0?!Number.isNaN(+A)&&ASA(A):typeof A=="number"}function ASA(A){const e=A.split(".")[0];return Math.abs(Number.parseInt(e))<=Ow}function eSA(A){return typeof A=="string"&&A.length>0&&![Hw,H4].some(e=>A.includes(e))?Number.isSafeInteger(+A):typeof A=="number"?Number.isSafeInteger(A):!1}const PU=d.forwardRef(function({id:e,value:t,initialValue:r,style:n,enabled:o=!0,placeholder:i,validationStatus:a="none",hasSpinBox:s=!0,step:l,integersOnly:c=!1,zeroOrPositive:u=!1,min:g=u?0:-Ow,max:h=Ow,maxLength:B,updateState:E=ve,onDidChange:C=ve,onFocus:m=ve,onBlur:I=ve,registerComponentApi:v,startText:y,startIcon:x,endText:b,endIcon:k,autoFocus:M,readOnly:N,required:F,label:L,labelPosition:T,labelWidth:P,labelBreak:G},H){g=Math.max(u?0:-Ow,g);const z=RU(l,!0)??VMA,q=d.useRef(null),O=d.useRef(null),Y=d.useRef(null);d.useEffect(()=>{M&&setTimeout(()=>{var X;(X=q.current)==null||X.focus()},0)},[M]);const[S,J]=_A.useState(G4(t));d.useEffect(()=>{J(G4(t))},[t]),d.useEffect(()=>{E({value:r},{initial:!0})},[r,E]);const $=d.useCallback((X,cA)=>{J(cA),E({value:X}),C(X)},[C,E]),U=d.useCallback(X=>{const cA=X.target.value;$(cA,cA)},[$]),AA=d.useCallback(()=>{if(N)return;const X=TU(S,z,g,h,c);X!==void 0&&$(X,X.toString())},[S,z,g,h,c,$,N]),Z=d.useCallback(()=>{if(N)return;const X=TU(S,-z,g,h,c);X!==void 0&&$(X,X.toString())},[S,z,g,h,c,$,N]);LU(O.current,AA),LU(Y.current,Z);const tA=X=>{var jA;let cA=!1;const hA=X.target.value??"",EA=X.target.selectionStart,DA=hA.substring(0,X.target.selectionStart).indexOf(Hw);switch(X.data){case"-":cA=!0,DA===-1?hA.startsWith("-")||JA("-"+hA,EA+1):hA[DA+1]!=="-"&&JA(hA.substring(0,DA+1)+"-"+hA.substring(DA+1),EA+1);break;case"+":cA=!0,DA===-1?hA.startsWith("-")&&JA(hA.substring(1),EA-1):hA[DA+1]==="-"&&JA(hA.substring(0,DA+1)+hA.substring(DA+2),EA-1);break;case H4:(c||hA.includes(H4)||DA!==-1)&&(cA=!0);break;case Hw:if(c){cA=!0;break}(hA.includes(Hw)||SA(EA,2))&&(cA=!0);break;default:let $A=X.data;const VA=X.target.selectionStart;if(((jA=X.data)==null?void 0:jA.length)>0){if($A.startsWith("-")){if(VA>0){cA=!0;break}}else if($A.startsWith("+")){cA=!0;break}const pe=hA.substring(0,VA)+$A+hA.substring(X.target.selectionEnd);c&&!zMA.test(pe)?cA=!0:WMA.test(pe)||(cA=!0);break}if(X.data<"0"||X.data>"9"){cA=!0;break}if(hA.startsWith("-")&&VA===0){cA=!0;break}DA!==-1&&SA(DA+1,1)&&(cA=!0);break}cA&&X.preventDefault();return;function SA($A,VA){let pe=0;for(;$A<hA.length;)if(/\d/.test(hA[$A++]))pe++;else{pe=VA+1;break}return pe>VA}function JA($A,VA){var pe;X.target.value=$A,$($A,$A),(pe=q.current)==null||pe.setSelectionRange(VA,VA)}},nA=d.useCallback(X=>{X.code==="ArrowUp"&&(X.preventDefault(),AA()),X.code==="ArrowDown"&&(X.preventDefault(),Z())},[AA,Z]),sA=d.useCallback(()=>{m==null||m()},[m]),iA=d.useCallback(()=>{J(G4(t)),I==null||I()},[t,I]),aA=d.useCallback(()=>{var X;(X=q.current)==null||X.focus()},[]),rA=ze(X=>{$(X,NU(X)?"":String(X))});return d.useEffect(()=>{v==null||v({focus:aA,setValue:rA})},[aA,v,rA]),Q.jsx(rs,{ref:H,labelPosition:T,label:L,labelWidth:P,labelBreak:G,required:F,enabled:o,onFocus:m,onBlur:I,style:n,children:Q.jsxs("div",{className:KA(qn.inputRoot,{[qn.readOnly]:N,[qn.disabled]:!o,[qn.noSpinBox]:!s,[qn.error]:a==="error",[qn.warning]:a==="warning",[qn.valid]:a==="valid"}),tabIndex:-1,onFocus:()=>{var X;(X=q.current)==null||X.focus()},children:[Q.jsx(Tw,{text:y,iconName:x,className:qn.adornment}),Q.jsx("input",{id:e,type:"text",inputMode:"numeric",className:KA(qn.input,{[qn.readOnly]:N}),disabled:!o,value:S,step:l,placeholder:i,onChange:U,onFocus:sA,onBlur:iA,onBeforeInput:tA,onKeyDown:nA,readOnly:N,ref:q,autoFocus:M,maxLength:B,required:F}),Q.jsx(Tw,{text:b,iconName:k,className:qn.adornment}),s&&Q.jsxs("div",{className:qn.spinnerBox,children:[Q.jsx(or,{"data-spinner":"up",type:"button",variant:"ghost",themeColor:"secondary",tabIndex:-1,className:qn.spinnerButton,disabled:!o||N,ref:O,children:Q.jsx(be,{name:"chevronup",size:"sm"})}),Q.jsx(or,{"data-spinner":"down",type:"button",tabIndex:-1,variant:"ghost",themeColor:"secondary",className:qn.spinnerButton,disabled:!o||N,ref:Y,children:Q.jsx(be,{name:"chevrondown",size:"sm"})})]})]})})});function TU(A,e,t,r,n){const o=RU(A,n);if(!NU(o))return XMA(o+e,t,r)}function LU(A,e,t=500){const r=d.useRef(0),n=d.useRef(0),o=d.useRef(e);d.useEffect(()=>{o.current=e},[e]),d.useEffect(()=>{const i=()=>{var l;(l=o.current)==null||l.call(o),r.current=window.setTimeout(()=>{n.current=window.setInterval(()=>{var c;(c=o.current)==null||c.call(o)},100)},t)},a=()=>{clearTimeout(r.current),clearInterval(n.current)},s=()=>{clearTimeout(r.current),clearInterval(n.current)};return A==null||A.addEventListener("mousedown",i),A==null||A.addEventListener("mouseup",a),A==null||A.addEventListener("mouseout",s),()=>{A==null||A.removeEventListener("mousedown",i),A==null||A.removeEventListener("mouseup",a),A==null||A.removeEventListener("mouseout",s)}},[A,e,t])}function FU(A,[e,t]){return Math.min(t,Math.max(e,A))}function _r(A,e,{checkForDefaultPrevented:t=!0}={}){return function(n){if(A==null||A(n),t===!1||!n.defaultPrevented)return e==null?void 0:e(n)}}function tSA(A,e=[]){let t=[];function r(o,i){const a=d.createContext(i),s=t.length;t=[...t,i];function l(u){const{scope:g,children:h,...B}=u,E=(g==null?void 0:g[A][s])||a,C=d.useMemo(()=>B,Object.values(B));return Q.jsx(E.Provider,{value:C,children:h})}function c(u,g){const h=(g==null?void 0:g[A][s])||a,B=d.useContext(h);if(B)return B;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${o}\``)}return l.displayName=o+"Provider",[l,c]}const n=()=>{const o=t.map(i=>d.createContext(i));return function(a){const s=(a==null?void 0:a[A])||o;return d.useMemo(()=>({[`__scope${A}`]:{...a,[A]:s}}),[a,s])}};return n.scopeName=A,[r,rSA(n,...e)]}function rSA(...A){const e=A[0];if(A.length===1)return e;const t=()=>{const r=A.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(o){const i=r.reduce((a,{useScope:s,scopeName:l})=>{const u=s(o)[`__scope${l}`];return{...a,...u}},{});return d.useMemo(()=>({[`__scope${e.scopeName}`]:i}),[i])}};return t.scopeName=e.scopeName,t}function nSA(A,e){typeof A=="function"?A(e):A!=null&&(A.current=e)}function OU(...A){return e=>A.forEach(t=>nSA(t,e))}function En(...A){return d.useCallback(OU(...A),A)}var jB=d.forwardRef((A,e)=>{const{children:t,...r}=A,n=d.Children.toArray(t),o=n.find(iSA);if(o){const i=o.props.children,a=n.map(s=>s===o?d.Children.count(i)>1?d.Children.only(null):d.isValidElement(i)?i.props.children:null:s);return Q.jsx(U4,{...r,ref:e,children:d.isValidElement(i)?d.cloneElement(i,void 0,a):null})}return Q.jsx(U4,{...r,ref:e,children:t})});jB.displayName="Slot";var U4=d.forwardRef((A,e)=>{const{children:t,...r}=A;if(d.isValidElement(t)){const n=sSA(t);return d.cloneElement(t,{...aSA(r,t.props),ref:e?OU(e,n):n})}return d.Children.count(t)>1?d.Children.only(null):null});U4.displayName="SlotClone";var oSA=({children:A})=>Q.jsx(Q.Fragment,{children:A});function iSA(A){return d.isValidElement(A)&&A.type===oSA}function aSA(A,e){const t={...e};for(const r in e){const n=A[r],o=e[r];/^on[A-Z]/.test(r)?n&&o?t[r]=(...a)=>{o(...a),n(...a)}:n&&(t[r]=n):r==="style"?t[r]={...n,...o}:r==="className"&&(t[r]=[n,o].filter(Boolean).join(" "))}return{...A,...t}}function sSA(A){var r,n;let e=(r=Object.getOwnPropertyDescriptor(A.props,"ref"))==null?void 0:r.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?A.ref:(e=(n=Object.getOwnPropertyDescriptor(A,"ref"))==null?void 0:n.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?A.props.ref:A.props.ref||A.ref)}function lSA(A){const e=A+"CollectionProvider",[t,r]=tSA(e),[n,o]=t(e,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:B,children:E}=h,C=_A.useRef(null),m=_A.useRef(new Map).current;return Q.jsx(n,{scope:B,itemMap:m,collectionRef:C,children:E})};i.displayName=e;const a=A+"CollectionSlot",s=_A.forwardRef((h,B)=>{const{scope:E,children:C}=h,m=o(a,E),I=En(B,m.collectionRef);return Q.jsx(jB,{ref:I,children:C})});s.displayName=a;const l=A+"CollectionItemSlot",c="data-radix-collection-item",u=_A.forwardRef((h,B)=>{const{scope:E,children:C,...m}=h,I=_A.useRef(null),v=En(B,I),y=o(l,E);return _A.useEffect(()=>(y.itemMap.set(I,{ref:I,...m}),()=>void y.itemMap.delete(I))),Q.jsx(jB,{[c]:"",ref:v,children:C})});u.displayName=l;function g(h){const B=o(A+"CollectionConsumer",h);return _A.useCallback(()=>{const C=B.collectionRef.current;if(!C)return[];const m=Array.from(C.querySelectorAll(`[${c}]`));return Array.from(B.itemMap.values()).sort((y,x)=>m.indexOf(y.ref.current)-m.indexOf(x.ref.current))},[B.collectionRef,B.itemMap])}return[{Provider:i,Slot:s,ItemSlot:u},g,r]}function cSA(A,e=[]){let t=[];function r(o,i){const a=d.createContext(i),s=t.length;t=[...t,i];const l=u=>{var m;const{scope:g,children:h,...B}=u,E=((m=g==null?void 0:g[A])==null?void 0:m[s])||a,C=d.useMemo(()=>B,Object.values(B));return Q.jsx(E.Provider,{value:C,children:h})};l.displayName=o+"Provider";function c(u,g){var E;const h=((E=g==null?void 0:g[A])==null?void 0:E[s])||a,B=d.useContext(h);if(B)return B;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${o}\``)}return[l,c]}const n=()=>{const o=t.map(i=>d.createContext(i));return function(a){const s=(a==null?void 0:a[A])||o;return d.useMemo(()=>({[`__scope${A}`]:{...a,[A]:s}}),[a,s])}};return n.scopeName=A,[r,uSA(n,...e)]}function uSA(...A){const e=A[0];if(A.length===1)return e;const t=()=>{const r=A.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(o){const i=r.reduce((a,{useScope:s,scopeName:l})=>{const u=s(o)[`__scope${l}`];return{...a,...u}},{});return d.useMemo(()=>({[`__scope${e.scopeName}`]:i}),[i])}};return t.scopeName=e.scopeName,t}var fSA=d.createContext(void 0);function gSA(A){const e=d.useContext(fSA);return A||e||"ltr"}var dSA=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Mr=dSA.reduce((A,e)=>{const t=d.forwardRef((r,n)=>{const{asChild:o,...i}=r,a=o?jB:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Q.jsx(a,{...i,ref:n})});return t.displayName=`Primitive.${e}`,{...A,[e]:t}},{});function hSA(A,e){A&&Dr.flushSync(()=>A.dispatchEvent(e))}function nl(A){const e=d.useRef(A);return d.useEffect(()=>{e.current=A}),d.useMemo(()=>(...t)=>{var r;return(r=e.current)==null?void 0:r.call(e,...t)},[])}function pSA(A,e=globalThis==null?void 0:globalThis.document){const t=nl(A);d.useEffect(()=>{const r=n=>{n.key==="Escape"&&t(n)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[t,e])}var BSA="DismissableLayer",K4="dismissableLayer.update",ESA="dismissableLayer.pointerDownOutside",CSA="dismissableLayer.focusOutside",HU,GU=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),UU=d.forwardRef((A,e)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:r,onPointerDownOutside:n,onFocusOutside:o,onInteractOutside:i,onDismiss:a,...s}=A,l=d.useContext(GU),[c,u]=d.useState(null),g=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=d.useState({}),B=En(e,k=>u(k)),E=Array.from(l.layers),[C]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),m=E.indexOf(C),I=c?E.indexOf(c):-1,v=l.layersWithOutsidePointerEventsDisabled.size>0,y=I>=m,x=wSA(k=>{const M=k.target,N=[...l.branches].some(F=>F.contains(M));!y||N||(n==null||n(k),i==null||i(k),k.defaultPrevented||a==null||a())},g),b=ISA(k=>{const M=k.target;[...l.branches].some(F=>F.contains(M))||(o==null||o(k),i==null||i(k),k.defaultPrevented||a==null||a())},g);return pSA(k=>{I===l.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},g),d.useEffect(()=>{if(c)return t&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(HU=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),KU(),()=>{t&&l.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=HU)}},[c,g,t,l]),d.useEffect(()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),KU())},[c,l]),d.useEffect(()=>{const k=()=>h({});return document.addEventListener(K4,k),()=>document.removeEventListener(K4,k)},[]),Q.jsx(Mr.div,{...s,ref:B,style:{pointerEvents:v?y?"auto":"none":void 0,...A.style},onFocusCapture:_r(A.onFocusCapture,b.onFocusCapture),onBlurCapture:_r(A.onBlurCapture,b.onBlurCapture),onPointerDownCapture:_r(A.onPointerDownCapture,x.onPointerDownCapture)})});UU.displayName=BSA;var mSA="DismissableLayerBranch",QSA=d.forwardRef((A,e)=>{const t=d.useContext(GU),r=d.useRef(null),n=En(e,r);return d.useEffect(()=>{const o=r.current;if(o)return t.branches.add(o),()=>{t.branches.delete(o)}},[t.branches]),Q.jsx(Mr.div,{...A,ref:n})});QSA.displayName=mSA;function wSA(A,e=globalThis==null?void 0:globalThis.document){const t=nl(A),r=d.useRef(!1),n=d.useRef(()=>{});return d.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let s=function(){YU(ESA,t,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",n.current),n.current=s,e.addEventListener("click",n.current,{once:!0})):s()}else e.removeEventListener("click",n.current);r.current=!1},i=window.setTimeout(()=>{e.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),e.removeEventListener("pointerdown",o),e.removeEventListener("click",n.current)}},[e,t]),{onPointerDownCapture:()=>r.current=!0}}function ISA(A,e=globalThis==null?void 0:globalThis.document){const t=nl(A),r=d.useRef(!1);return d.useEffect(()=>{const n=o=>{o.target&&!r.current&&YU(CSA,t,{originalEvent:o},{discrete:!1})};return e.addEventListener("focusin",n),()=>e.removeEventListener("focusin",n)},[e,t]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function KU(){const A=new CustomEvent(K4);document.dispatchEvent(A)}function YU(A,e,t,{discrete:r}){const n=t.originalEvent.target,o=new CustomEvent(A,{bubbles:!1,cancelable:!0,detail:t});e&&n.addEventListener(A,e,{once:!0}),r?hSA(n,o):n.dispatchEvent(o)}var Y4=0;function vSA(){d.useEffect(()=>{const A=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",A[0]??$U()),document.body.insertAdjacentElement("beforeend",A[1]??$U()),Y4++,()=>{Y4===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Y4--}},[])}function $U(){const A=document.createElement("span");return A.setAttribute("data-radix-focus-guard",""),A.tabIndex=0,A.style.outline="none",A.style.opacity="0",A.style.position="fixed",A.style.pointerEvents="none",A}var $4="focusScope.autoFocusOnMount",j4="focusScope.autoFocusOnUnmount",jU={bubbles:!1,cancelable:!0},DSA="FocusScope",qU=d.forwardRef((A,e)=>{const{loop:t=!1,trapped:r=!1,onMountAutoFocus:n,onUnmountAutoFocus:o,...i}=A,[a,s]=d.useState(null),l=nl(n),c=nl(o),u=d.useRef(null),g=En(e,E=>s(E)),h=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let E=function(v){if(h.paused||!a)return;const y=v.target;a.contains(y)?u.current=y:pc(u.current,{select:!0})},C=function(v){if(h.paused||!a)return;const y=v.relatedTarget;y!==null&&(a.contains(y)||pc(u.current,{select:!0}))},m=function(v){if(document.activeElement===document.body)for(const x of v)x.removedNodes.length>0&&pc(a)};document.addEventListener("focusin",E),document.addEventListener("focusout",C);const I=new MutationObserver(m);return a&&I.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",C),I.disconnect()}}},[r,a,h.paused]),d.useEffect(()=>{if(a){WU.add(h);const E=document.activeElement;if(!a.contains(E)){const m=new CustomEvent($4,jU);a.addEventListener($4,l),a.dispatchEvent(m),m.defaultPrevented||(ySA(MSA(JU(a)),{select:!0}),document.activeElement===E&&pc(a))}return()=>{a.removeEventListener($4,l),setTimeout(()=>{const m=new CustomEvent(j4,jU);a.addEventListener(j4,c),a.dispatchEvent(m),m.defaultPrevented||pc(E??document.body,{select:!0}),a.removeEventListener(j4,c),WU.remove(h)},0)}}},[a,l,c,h]);const B=d.useCallback(E=>{if(!t&&!r||h.paused)return;const C=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,m=document.activeElement;if(C&&m){const I=E.currentTarget,[v,y]=bSA(I);v&&y?!E.shiftKey&&m===y?(E.preventDefault(),t&&pc(v,{select:!0})):E.shiftKey&&m===v&&(E.preventDefault(),t&&pc(y,{select:!0})):m===I&&E.preventDefault()}},[t,r,h.paused]);return Q.jsx(Mr.div,{tabIndex:-1,...i,ref:g,onKeyDown:B})});qU.displayName=DSA;function ySA(A,{select:e=!1}={}){const t=document.activeElement;for(const r of A)if(pc(r,{select:e}),document.activeElement!==t)return}function bSA(A){const e=JU(A),t=zU(e,A),r=zU(e.reverse(),A);return[t,r]}function JU(A){const e=[],t=document.createTreeWalker(A,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const n=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||n?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)e.push(t.currentNode);return e}function zU(A,e){for(const t of A)if(!xSA(t,{upTo:e}))return t}function xSA(A,{upTo:e}){if(getComputedStyle(A).visibility==="hidden")return!0;for(;A;){if(e!==void 0&&A===e)return!1;if(getComputedStyle(A).display==="none")return!0;A=A.parentElement}return!1}function kSA(A){return A instanceof HTMLInputElement&&"select"in A}function pc(A,{select:e=!1}={}){if(A&&A.focus){const t=document.activeElement;A.focus({preventScroll:!0}),A!==t&&kSA(A)&&e&&A.select()}}var WU=_SA();function _SA(){let A=[];return{add(e){const t=A[0];e!==t&&(t==null||t.pause()),A=VU(A,e),A.unshift(e)},remove(e){var t;A=VU(A,e),(t=A[0])==null||t.resume()}}}function VU(A,e){const t=[...A],r=t.indexOf(e);return r!==-1&&t.splice(r,1),t}function MSA(A){return A.filter(e=>e.tagName!=="A")}var Go=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{},SSA=Ps.useId||(()=>{}),NSA=0;function q4(A){const[e,t]=d.useState(SSA());return Go(()=>{t(r=>r??String(NSA++))},[A]),e?`radix-${e}`:""}const RSA=["top","right","bottom","left"],as=Math.min,Uo=Math.max,Gw=Math.round,Uw=Math.floor,Bc=A=>({x:A,y:A}),PSA={left:"right",right:"left",bottom:"top",top:"bottom"},TSA={start:"end",end:"start"};function J4(A,e,t){return Uo(A,as(e,t))}function ol(A,e){return typeof A=="function"?A(e):A}function il(A){return A.split("-")[0]}function xd(A){return A.split("-")[1]}function z4(A){return A==="x"?"y":"x"}function W4(A){return A==="y"?"height":"width"}function Ec(A){return["top","bottom"].includes(il(A))?"y":"x"}function V4(A){return z4(Ec(A))}function LSA(A,e,t){t===void 0&&(t=!1);const r=xd(A),n=V4(A),o=W4(n);let i=n==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(i=Kw(i)),[i,Kw(i)]}function FSA(A){const e=Kw(A);return[X4(A),e,X4(e)]}function X4(A){return A.replace(/start|end/g,e=>TSA[e])}function OSA(A,e,t){const r=["left","right"],n=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(A){case"top":case"bottom":return t?e?n:r:e?r:n;case"left":case"right":return e?o:i;default:return[]}}function HSA(A,e,t,r){const n=xd(A);let o=OSA(il(A),t==="start",r);return n&&(o=o.map(i=>i+"-"+n),e&&(o=o.concat(o.map(X4)))),o}function Kw(A){return A.replace(/left|right|bottom|top/g,e=>PSA[e])}function GSA(A){return{top:0,right:0,bottom:0,left:0,...A}}function XU(A){return typeof A!="number"?GSA(A):{top:A,right:A,bottom:A,left:A}}function Yw(A){const{x:e,y:t,width:r,height:n}=A;return{width:r,height:n,top:t,left:e,right:e+r,bottom:t+n,x:e,y:t}}function ZU(A,e,t){let{reference:r,floating:n}=A;const o=Ec(e),i=V4(e),a=W4(i),s=il(e),l=o==="y",c=r.x+r.width/2-n.width/2,u=r.y+r.height/2-n.height/2,g=r[a]/2-n[a]/2;let h;switch(s){case"top":h={x:c,y:r.y-n.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:u};break;case"left":h={x:r.x-n.width,y:u};break;default:h={x:r.x,y:r.y}}switch(xd(e)){case"start":h[i]-=g*(t&&l?-1:1);break;case"end":h[i]+=g*(t&&l?-1:1);break}return h}const USA=async(A,e,t)=>{const{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:i}=t,a=o.filter(Boolean),s=await(i.isRTL==null?void 0:i.isRTL(e));let l=await i.getElementRects({reference:A,floating:e,strategy:n}),{x:c,y:u}=ZU(l,r,s),g=r,h={},B=0;for(let E=0;E<a.length;E++){const{name:C,fn:m}=a[E],{x:I,y:v,data:y,reset:x}=await m({x:c,y:u,initialPlacement:r,placement:g,strategy:n,middlewareData:h,rects:l,platform:i,elements:{reference:A,floating:e}});c=I??c,u=v??u,h={...h,[C]:{...h[C],...y}},x&&B<=50&&(B++,typeof x=="object"&&(x.placement&&(g=x.placement),x.rects&&(l=x.rects===!0?await i.getElementRects({reference:A,floating:e,strategy:n}):x.rects),{x:c,y:u}=ZU(l,g,s)),E=-1)}return{x:c,y:u,placement:g,strategy:n,middlewareData:h}};async function qB(A,e){var t;e===void 0&&(e={});const{x:r,y:n,platform:o,rects:i,elements:a,strategy:s}=A,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:u="floating",altBoundary:g=!1,padding:h=0}=ol(e,A),B=XU(h),C=a[g?u==="floating"?"reference":"floating":u],m=Yw(await o.getClippingRect({element:(t=await(o.isElement==null?void 0:o.isElement(C)))==null||t?C:C.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:l,rootBoundary:c,strategy:s})),I=u==="floating"?{x:r,y:n,width:i.floating.width,height:i.floating.height}:i.reference,v=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),y=await(o.isElement==null?void 0:o.isElement(v))?await(o.getScale==null?void 0:o.getScale(v))||{x:1,y:1}:{x:1,y:1},x=Yw(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:I,offsetParent:v,strategy:s}):I);return{top:(m.top-x.top+B.top)/y.y,bottom:(x.bottom-m.bottom+B.bottom)/y.y,left:(m.left-x.left+B.left)/y.x,right:(x.right-m.right+B.right)/y.x}}const KSA=A=>({name:"arrow",options:A,async fn(e){const{x:t,y:r,placement:n,rects:o,platform:i,elements:a,middlewareData:s}=e,{element:l,padding:c=0}=ol(A,e)||{};if(l==null)return{};const u=XU(c),g={x:t,y:r},h=V4(n),B=W4(h),E=await i.getDimensions(l),C=h==="y",m=C?"top":"left",I=C?"bottom":"right",v=C?"clientHeight":"clientWidth",y=o.reference[B]+o.reference[h]-g[h]-o.floating[B],x=g[h]-o.reference[h],b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let k=b?b[v]:0;(!k||!await(i.isElement==null?void 0:i.isElement(b)))&&(k=a.floating[v]||o.floating[B]);const M=y/2-x/2,N=k/2-E[B]/2-1,F=as(u[m],N),L=as(u[I],N),T=F,P=k-E[B]-L,G=k/2-E[B]/2+M,H=J4(T,G,P),z=!s.arrow&&xd(n)!=null&&G!==H&&o.reference[B]/2-(G<T?F:L)-E[B]/2<0,q=z?G<T?G-T:G-P:0;return{[h]:g[h]+q,data:{[h]:H,centerOffset:G-H-q,...z&&{alignmentOffset:q}},reset:z}}}),YSA=function(A){return A===void 0&&(A={}),{name:"flip",options:A,async fn(e){var t,r;const{placement:n,middlewareData:o,rects:i,initialPlacement:a,platform:s,elements:l}=e,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:B="none",flipAlignment:E=!0,...C}=ol(A,e);if((t=o.arrow)!=null&&t.alignmentOffset)return{};const m=il(n),I=Ec(a),v=il(a)===a,y=await(s.isRTL==null?void 0:s.isRTL(l.floating)),x=g||(v||!E?[Kw(a)]:FSA(a)),b=B!=="none";!g&&b&&x.push(...HSA(a,E,B,y));const k=[a,...x],M=await qB(e,C),N=[];let F=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&N.push(M[m]),u){const G=LSA(n,i,y);N.push(M[G[0]],M[G[1]])}if(F=[...F,{placement:n,overflows:N}],!N.every(G=>G<=0)){var L,T;const G=(((L=o.flip)==null?void 0:L.index)||0)+1,H=k[G];if(H)return{data:{index:G,overflows:F},reset:{placement:H}};let z=(T=F.filter(q=>q.overflows[0]<=0).sort((q,O)=>q.overflows[1]-O.overflows[1])[0])==null?void 0:T.placement;if(!z)switch(h){case"bestFit":{var P;const q=(P=F.filter(O=>{if(b){const Y=Ec(O.placement);return Y===I||Y==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(Y=>Y>0).reduce((Y,S)=>Y+S,0)]).sort((O,Y)=>O[1]-Y[1])[0])==null?void 0:P[0];q&&(z=q);break}case"initialPlacement":z=a;break}if(n!==z)return{reset:{placement:z}}}return{}}}};function AK(A,e){return{top:A.top-e.height,right:A.right-e.width,bottom:A.bottom-e.height,left:A.left-e.width}}function eK(A){return RSA.some(e=>A[e]>=0)}const $SA=function(A){return A===void 0&&(A={}),{name:"hide",options:A,async fn(e){const{rects:t}=e,{strategy:r="referenceHidden",...n}=ol(A,e);switch(r){case"referenceHidden":{const o=await qB(e,{...n,elementContext:"reference"}),i=AK(o,t.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:eK(i)}}}case"escaped":{const o=await qB(e,{...n,altBoundary:!0}),i=AK(o,t.floating);return{data:{escapedOffsets:i,escaped:eK(i)}}}default:return{}}}}};async function jSA(A,e){const{placement:t,platform:r,elements:n}=A,o=await(r.isRTL==null?void 0:r.isRTL(n.floating)),i=il(t),a=xd(t),s=Ec(t)==="y",l=["left","top"].includes(i)?-1:1,c=o&&s?-1:1,u=ol(e,A);let{mainAxis:g,crossAxis:h,alignmentAxis:B}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&typeof B=="number"&&(h=a==="end"?B*-1:B),s?{x:h*c,y:g*l}:{x:g*l,y:h*c}}const qSA=function(A){return A===void 0&&(A=0),{name:"offset",options:A,async fn(e){var t,r;const{x:n,y:o,placement:i,middlewareData:a}=e,s=await jSA(e,A);return i===((t=a.offset)==null?void 0:t.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:n+s.x,y:o+s.y,data:{...s,placement:i}}}}},JSA=function(A){return A===void 0&&(A={}),{name:"shift",options:A,async fn(e){const{x:t,y:r,placement:n}=e,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:C=>{let{x:m,y:I}=C;return{x:m,y:I}}},...s}=ol(A,e),l={x:t,y:r},c=await qB(e,s),u=Ec(il(n)),g=z4(u);let h=l[g],B=l[u];if(o){const C=g==="y"?"top":"left",m=g==="y"?"bottom":"right",I=h+c[C],v=h-c[m];h=J4(I,h,v)}if(i){const C=u==="y"?"top":"left",m=u==="y"?"bottom":"right",I=B+c[C],v=B-c[m];B=J4(I,B,v)}const E=a.fn({...e,[g]:h,[u]:B});return{...E,data:{x:E.x-t,y:E.y-r}}}}},zSA=function(A){return A===void 0&&(A={}),{options:A,fn(e){const{x:t,y:r,placement:n,rects:o,middlewareData:i}=e,{offset:a=0,mainAxis:s=!0,crossAxis:l=!0}=ol(A,e),c={x:t,y:r},u=Ec(n),g=z4(u);let h=c[g],B=c[u];const E=ol(a,e),C=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(s){const v=g==="y"?"height":"width",y=o.reference[g]-o.floating[v]+C.mainAxis,x=o.reference[g]+o.reference[v]-C.mainAxis;h<y?h=y:h>x&&(h=x)}if(l){var m,I;const v=g==="y"?"width":"height",y=["top","left"].includes(il(n)),x=o.reference[u]-o.floating[v]+(y&&((m=i.offset)==null?void 0:m[u])||0)+(y?0:C.crossAxis),b=o.reference[u]+o.reference[v]+(y?0:((I=i.offset)==null?void 0:I[u])||0)-(y?C.crossAxis:0);B<x?B=x:B>b&&(B=b)}return{[g]:h,[u]:B}}}},WSA=function(A){return A===void 0&&(A={}),{name:"size",options:A,async fn(e){const{placement:t,rects:r,platform:n,elements:o}=e,{apply:i=()=>{},...a}=ol(A,e),s=await qB(e,a),l=il(t),c=xd(t),u=Ec(t)==="y",{width:g,height:h}=r.floating;let B,E;l==="top"||l==="bottom"?(B=l,E=c===(await(n.isRTL==null?void 0:n.isRTL(o.floating))?"start":"end")?"left":"right"):(E=l,B=c==="end"?"top":"bottom");const C=h-s.top-s.bottom,m=g-s.left-s.right,I=as(h-s[B],C),v=as(g-s[E],m),y=!e.middlewareData.shift;let x=I,b=v;if(u?b=c||y?as(v,m):m:x=c||y?as(I,C):C,y&&!c){const M=Uo(s.left,0),N=Uo(s.right,0),F=Uo(s.top,0),L=Uo(s.bottom,0);u?b=g-2*(M!==0||N!==0?M+N:Uo(s.left,s.right)):x=h-2*(F!==0||L!==0?F+L:Uo(s.top,s.bottom))}await i({...e,availableWidth:b,availableHeight:x});const k=await n.getDimensions(o.floating);return g!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}};function kd(A){return tK(A)?(A.nodeName||"").toLowerCase():"#document"}function Ko(A){var e;return(A==null||(e=A.ownerDocument)==null?void 0:e.defaultView)||window}function al(A){var e;return(e=(tK(A)?A.ownerDocument:A.document)||window.document)==null?void 0:e.documentElement}function tK(A){return A instanceof Node||A instanceof Ko(A).Node}function sa(A){return A instanceof Element||A instanceof Ko(A).Element}function ss(A){return A instanceof HTMLElement||A instanceof Ko(A).HTMLElement}function rK(A){return typeof ShadowRoot>"u"?!1:A instanceof ShadowRoot||A instanceof Ko(A).ShadowRoot}function JB(A){const{overflow:e,overflowX:t,overflowY:r,display:n}=la(A);return/auto|scroll|overlay|hidden|clip/.test(e+r+t)&&!["inline","contents"].includes(n)}function VSA(A){return["table","td","th"].includes(kd(A))}function $w(A){return[":popover-open",":modal"].some(e=>{try{return A.matches(e)}catch{return!1}})}function Z4(A){const e=A_(),t=sa(A)?la(A):A;return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(t.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(t.contain||"").includes(r))}function XSA(A){let e=Cc(A);for(;ss(e)&&!_d(e);){if(Z4(e))return e;if($w(e))return null;e=Cc(e)}return null}function A_(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function _d(A){return["html","body","#document"].includes(kd(A))}function la(A){return Ko(A).getComputedStyle(A)}function jw(A){return sa(A)?{scrollLeft:A.scrollLeft,scrollTop:A.scrollTop}:{scrollLeft:A.scrollX,scrollTop:A.scrollY}}function Cc(A){if(kd(A)==="html")return A;const e=A.assignedSlot||A.parentNode||rK(A)&&A.host||al(A);return rK(e)?e.host:e}function nK(A){const e=Cc(A);return _d(e)?A.ownerDocument?A.ownerDocument.body:A.body:ss(e)&&JB(e)?e:nK(e)}function zB(A,e,t){var r;e===void 0&&(e=[]),t===void 0&&(t=!0);const n=nK(A),o=n===((r=A.ownerDocument)==null?void 0:r.body),i=Ko(n);if(o){const a=e_(i);return e.concat(i,i.visualViewport||[],JB(n)?n:[],a&&t?zB(a):[])}return e.concat(n,zB(n,[],t))}function e_(A){return A.parent&&Object.getPrototypeOf(A.parent)?A.frameElement:null}function oK(A){const e=la(A);let t=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const n=ss(A),o=n?A.offsetWidth:t,i=n?A.offsetHeight:r,a=Gw(t)!==o||Gw(r)!==i;return a&&(t=o,r=i),{width:t,height:r,$:a}}function t_(A){return sa(A)?A:A.contextElement}function Md(A){const e=t_(A);if(!ss(e))return Bc(1);const t=e.getBoundingClientRect(),{width:r,height:n,$:o}=oK(e);let i=(o?Gw(t.width):t.width)/r,a=(o?Gw(t.height):t.height)/n;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const ZSA=Bc(0);function iK(A){const e=Ko(A);return!A_()||!e.visualViewport?ZSA:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ANA(A,e,t){return e===void 0&&(e=!1),!t||e&&t!==Ko(A)?!1:e}function lf(A,e,t,r){e===void 0&&(e=!1),t===void 0&&(t=!1);const n=A.getBoundingClientRect(),o=t_(A);let i=Bc(1);e&&(r?sa(r)&&(i=Md(r)):i=Md(A));const a=ANA(o,t,r)?iK(o):Bc(0);let s=(n.left+a.x)/i.x,l=(n.top+a.y)/i.y,c=n.width/i.x,u=n.height/i.y;if(o){const g=Ko(o),h=r&&sa(r)?Ko(r):r;let B=g,E=e_(B);for(;E&&r&&h!==B;){const C=Md(E),m=E.getBoundingClientRect(),I=la(E),v=m.left+(E.clientLeft+parseFloat(I.paddingLeft))*C.x,y=m.top+(E.clientTop+parseFloat(I.paddingTop))*C.y;s*=C.x,l*=C.y,c*=C.x,u*=C.y,s+=v,l+=y,B=Ko(E),E=e_(B)}}return Yw({width:c,height:u,x:s,y:l})}function eNA(A){let{elements:e,rect:t,offsetParent:r,strategy:n}=A;const o=n==="fixed",i=al(r),a=e?$w(e.floating):!1;if(r===i||a&&o)return t;let s={scrollLeft:0,scrollTop:0},l=Bc(1);const c=Bc(0),u=ss(r);if((u||!u&&!o)&&((kd(r)!=="body"||JB(i))&&(s=jw(r)),ss(r))){const g=lf(r);l=Md(r),c.x=g.x+r.clientLeft,c.y=g.y+r.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+c.x,y:t.y*l.y-s.scrollTop*l.y+c.y}}function tNA(A){return Array.from(A.getClientRects())}function aK(A){return lf(al(A)).left+jw(A).scrollLeft}function rNA(A){const e=al(A),t=jw(A),r=A.ownerDocument.body,n=Uo(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=Uo(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let i=-t.scrollLeft+aK(A);const a=-t.scrollTop;return la(r).direction==="rtl"&&(i+=Uo(e.clientWidth,r.clientWidth)-n),{width:n,height:o,x:i,y:a}}function nNA(A,e){const t=Ko(A),r=al(A),n=t.visualViewport;let o=r.clientWidth,i=r.clientHeight,a=0,s=0;if(n){o=n.width,i=n.height;const l=A_();(!l||l&&e==="fixed")&&(a=n.offsetLeft,s=n.offsetTop)}return{width:o,height:i,x:a,y:s}}function oNA(A,e){const t=lf(A,!0,e==="fixed"),r=t.top+A.clientTop,n=t.left+A.clientLeft,o=ss(A)?Md(A):Bc(1),i=A.clientWidth*o.x,a=A.clientHeight*o.y,s=n*o.x,l=r*o.y;return{width:i,height:a,x:s,y:l}}function sK(A,e,t){let r;if(e==="viewport")r=nNA(A,t);else if(e==="document")r=rNA(al(A));else if(sa(e))r=oNA(e,t);else{const n=iK(A);r={...e,x:e.x-n.x,y:e.y-n.y}}return Yw(r)}function lK(A,e){const t=Cc(A);return t===e||!sa(t)||_d(t)?!1:la(t).position==="fixed"||lK(t,e)}function iNA(A,e){const t=e.get(A);if(t)return t;let r=zB(A,[],!1).filter(a=>sa(a)&&kd(a)!=="body"),n=null;const o=la(A).position==="fixed";let i=o?Cc(A):A;for(;sa(i)&&!_d(i);){const a=la(i),s=Z4(i);!s&&a.position==="fixed"&&(n=null),(o?!s&&!n:!s&&a.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||JB(i)&&!s&&lK(A,i))?r=r.filter(c=>c!==i):n=a,i=Cc(i)}return e.set(A,r),r}function aNA(A){let{element:e,boundary:t,rootBoundary:r,strategy:n}=A;const i=[...t==="clippingAncestors"?$w(e)?[]:iNA(e,this._c):[].concat(t),r],a=i[0],s=i.reduce((l,c)=>{const u=sK(e,c,n);return l.top=Uo(u.top,l.top),l.right=as(u.right,l.right),l.bottom=as(u.bottom,l.bottom),l.left=Uo(u.left,l.left),l},sK(e,a,n));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function sNA(A){const{width:e,height:t}=oK(A);return{width:e,height:t}}function lNA(A,e,t){const r=ss(e),n=al(e),o=t==="fixed",i=lf(A,!0,o,e);let a={scrollLeft:0,scrollTop:0};const s=Bc(0);if(r||!r&&!o)if((kd(e)!=="body"||JB(n))&&(a=jw(e)),r){const u=lf(e,!0,o,e);s.x=u.x+e.clientLeft,s.y=u.y+e.clientTop}else n&&(s.x=aK(n));const l=i.left+a.scrollLeft-s.x,c=i.top+a.scrollTop-s.y;return{x:l,y:c,width:i.width,height:i.height}}function r_(A){return la(A).position==="static"}function cK(A,e){return!ss(A)||la(A).position==="fixed"?null:e?e(A):A.offsetParent}function uK(A,e){const t=Ko(A);if($w(A))return t;if(!ss(A)){let n=Cc(A);for(;n&&!_d(n);){if(sa(n)&&!r_(n))return n;n=Cc(n)}return t}let r=cK(A,e);for(;r&&VSA(r)&&r_(r);)r=cK(r,e);return r&&_d(r)&&r_(r)&&!Z4(r)?t:r||XSA(A)||t}const cNA=async function(A){const e=this.getOffsetParent||uK,t=this.getDimensions,r=await t(A.floating);return{reference:lNA(A.reference,await e(A.floating),A.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function uNA(A){return la(A).direction==="rtl"}const fNA={convertOffsetParentRelativeRectToViewportRelativeRect:eNA,getDocumentElement:al,getClippingRect:aNA,getOffsetParent:uK,getElementRects:cNA,getClientRects:tNA,getDimensions:sNA,getScale:Md,isElement:sa,isRTL:uNA};function gNA(A,e){let t=null,r;const n=al(A);function o(){var a;clearTimeout(r),(a=t)==null||a.disconnect(),t=null}function i(a,s){a===void 0&&(a=!1),s===void 0&&(s=1),o();const{left:l,top:c,width:u,height:g}=A.getBoundingClientRect();if(a||e(),!u||!g)return;const h=Uw(c),B=Uw(n.clientWidth-(l+u)),E=Uw(n.clientHeight-(c+g)),C=Uw(l),I={rootMargin:-h+"px "+-B+"px "+-E+"px "+-C+"px",threshold:Uo(0,as(1,s))||1};let v=!0;function y(x){const b=x[0].intersectionRatio;if(b!==s){if(!v)return i();b?i(!1,b):r=setTimeout(()=>{i(!1,1e-7)},1e3)}v=!1}try{t=new IntersectionObserver(y,{...I,root:n.ownerDocument})}catch{t=new IntersectionObserver(y,I)}t.observe(A)}return i(!0),o}function n_(A,e,t,r){r===void 0&&(r={});const{ancestorScroll:n=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,l=t_(A),c=n||o?[...l?zB(l):[],...zB(e)]:[];c.forEach(m=>{n&&m.addEventListener("scroll",t,{passive:!0}),o&&m.addEventListener("resize",t)});const u=l&&a?gNA(l,t):null;let g=-1,h=null;i&&(h=new ResizeObserver(m=>{let[I]=m;I&&I.target===l&&h&&(h.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var v;(v=h)==null||v.observe(e)})),t()}),l&&!s&&h.observe(l),h.observe(e));let B,E=s?lf(A):null;s&&C();function C(){const m=lf(A);E&&(m.x!==E.x||m.y!==E.y||m.width!==E.width||m.height!==E.height)&&t(),E=m,B=requestAnimationFrame(C)}return t(),()=>{var m;c.forEach(I=>{n&&I.removeEventListener("scroll",t),o&&I.removeEventListener("resize",t)}),u==null||u(),(m=h)==null||m.disconnect(),h=null,s&&cancelAnimationFrame(B)}}const dNA=qSA,hNA=JSA,pNA=YSA,BNA=WSA,ENA=$SA,fK=KSA,CNA=zSA,mNA=(A,e,t)=>{const r=new Map,n={platform:fNA,...t},o={...n.platform,_c:r};return USA(A,e,{...n,platform:o})};var qw=typeof document<"u"?d.useLayoutEffect:d.useEffect;function Jw(A,e){if(A===e)return!0;if(typeof A!=typeof e)return!1;if(typeof A=="function"&&A.toString()===e.toString())return!0;let t,r,n;if(A&&e&&typeof A=="object"){if(Array.isArray(A)){if(t=A.length,t!==e.length)return!1;for(r=t;r--!==0;)if(!Jw(A[r],e[r]))return!1;return!0}if(n=Object.keys(A),t=n.length,t!==Object.keys(e).length)return!1;for(r=t;r--!==0;)if(!{}.hasOwnProperty.call(e,n[r]))return!1;for(r=t;r--!==0;){const o=n[r];if(!(o==="_owner"&&A.$$typeof)&&!Jw(A[o],e[o]))return!1}return!0}return A!==A&&e!==e}function gK(A){return typeof window>"u"?1:(A.ownerDocument.defaultView||window).devicePixelRatio||1}function dK(A,e){const t=gK(A);return Math.round(e*t)/t}function hK(A){const e=d.useRef(A);return qw(()=>{e.current=A}),e}function o_(A){A===void 0&&(A={});const{placement:e="bottom",strategy:t="absolute",middleware:r=[],platform:n,elements:{reference:o,floating:i}={},transform:a=!0,whileElementsMounted:s,open:l}=A,[c,u]=d.useState({x:0,y:0,strategy:t,placement:e,middlewareData:{},isPositioned:!1}),[g,h]=d.useState(r);Jw(g,r)||h(r);const[B,E]=d.useState(null),[C,m]=d.useState(null),I=d.useCallback(q=>{q!==b.current&&(b.current=q,E(q))},[]),v=d.useCallback(q=>{q!==k.current&&(k.current=q,m(q))},[]),y=o||B,x=i||C,b=d.useRef(null),k=d.useRef(null),M=d.useRef(c),N=s!=null,F=hK(s),L=hK(n),T=d.useCallback(()=>{if(!b.current||!k.current)return;const q={placement:e,strategy:t,middleware:g};L.current&&(q.platform=L.current),mNA(b.current,k.current,q).then(O=>{const Y={...O,isPositioned:!0};P.current&&!Jw(M.current,Y)&&(M.current=Y,Dr.flushSync(()=>{u(Y)}))})},[g,e,t,L]);qw(()=>{l===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,u(q=>({...q,isPositioned:!1})))},[l]);const P=d.useRef(!1);qw(()=>(P.current=!0,()=>{P.current=!1}),[]),qw(()=>{if(y&&(b.current=y),x&&(k.current=x),y&&x){if(F.current)return F.current(y,x,T);T()}},[y,x,T,F,N]);const G=d.useMemo(()=>({reference:b,floating:k,setReference:I,setFloating:v}),[I,v]),H=d.useMemo(()=>({reference:y,floating:x}),[y,x]),z=d.useMemo(()=>{const q={position:t,left:0,top:0};if(!H.floating)return q;const O=dK(H.floating,c.x),Y=dK(H.floating,c.y);return a?{...q,transform:"translate("+O+"px, "+Y+"px)",...gK(H.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:O,top:Y}},[t,a,H.floating,c.x,c.y]);return d.useMemo(()=>({...c,update:T,refs:G,elements:H,floatingStyles:z}),[c,T,G,H,z])}const QNA=A=>{function e(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:A,fn(t){const{element:r,padding:n}=typeof A=="function"?A(t):A;return r&&e(r)?r.current!=null?fK({element:r.current,padding:n}).fn(t):{}:r?fK({element:r,padding:n}).fn(t):{}}}},i_=(A,e)=>({...dNA(A),options:[A,e]}),a_=(A,e)=>({...hNA(A),options:[A,e]}),s_=(A,e)=>({...CNA(A),options:[A,e]}),l_=(A,e)=>({...pNA(A),options:[A,e]}),c_=(A,e)=>({...BNA(A),options:[A,e]}),u_=(A,e)=>({...ENA(A),options:[A,e]}),f_=(A,e)=>({...QNA(A),options:[A,e]});var wNA="Arrow",pK=d.forwardRef((A,e)=>{const{children:t,width:r=10,height:n=5,...o}=A;return Q.jsx(Mr.svg,{...o,ref:e,width:r,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:A.asChild?t:Q.jsx("polygon",{points:"0,0 30,0 15,10"})})});pK.displayName=wNA;var INA=pK;function vNA(A,e=[]){let t=[];function r(o,i){const a=d.createContext(i),s=t.length;t=[...t,i];function l(u){const{scope:g,children:h,...B}=u,E=(g==null?void 0:g[A][s])||a,C=d.useMemo(()=>B,Object.values(B));return Q.jsx(E.Provider,{value:C,children:h})}function c(u,g){const h=(g==null?void 0:g[A][s])||a,B=d.useContext(h);if(B)return B;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${o}\``)}return l.displayName=o+"Provider",[l,c]}const n=()=>{const o=t.map(i=>d.createContext(i));return function(a){const s=(a==null?void 0:a[A])||o;return d.useMemo(()=>({[`__scope${A}`]:{...a,[A]:s}}),[a,s])}};return n.scopeName=A,[r,DNA(n,...e)]}function DNA(...A){const e=A[0];if(A.length===1)return e;const t=()=>{const r=A.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(o){const i=r.reduce((a,{useScope:s,scopeName:l})=>{const u=s(o)[`__scope${l}`];return{...a,...u}},{});return d.useMemo(()=>({[`__scope${e.scopeName}`]:i}),[i])}};return t.scopeName=e.scopeName,t}function yNA(A){const[e,t]=d.useState(void 0);return Go(()=>{if(A){t({width:A.offsetWidth,height:A.offsetHeight});const r=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;const o=n[0];let i,a;if("borderBoxSize"in o){const s=o.borderBoxSize,l=Array.isArray(s)?s[0]:s;i=l.inlineSize,a=l.blockSize}else i=A.offsetWidth,a=A.offsetHeight;t({width:i,height:a})});return r.observe(A,{box:"border-box"}),()=>r.unobserve(A)}else t(void 0)},[A]),e}var g_="Popper",[BK,EK]=vNA(g_),[bNA,CK]=BK(g_),mK=A=>{const{__scopePopper:e,children:t}=A,[r,n]=d.useState(null);return Q.jsx(bNA,{scope:e,anchor:r,onAnchorChange:n,children:t})};mK.displayName=g_;var QK="PopperAnchor",wK=d.forwardRef((A,e)=>{const{__scopePopper:t,virtualRef:r,...n}=A,o=CK(QK,t),i=d.useRef(null),a=En(e,i);return d.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:Q.jsx(Mr.div,{...n,ref:a})});wK.displayName=QK;var d_="PopperContent",[xNA,kNA]=BK(d_),IK=d.forwardRef((A,e)=>{var nA,sA,iA,aA,rA,X;const{__scopePopper:t,side:r="bottom",sideOffset:n=0,align:o="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:s=!0,collisionBoundary:l=[],collisionPadding:c=0,sticky:u="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:B,...E}=A,C=CK(d_,t),[m,I]=d.useState(null),v=En(e,cA=>I(cA)),[y,x]=d.useState(null),b=yNA(y),k=(b==null?void 0:b.width)??0,M=(b==null?void 0:b.height)??0,N=r+(o!=="center"?"-"+o:""),F=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},L=Array.isArray(l)?l:[l],T=L.length>0,P={padding:F,boundary:L.filter(MNA),altBoundary:T},{refs:G,floatingStyles:H,placement:z,isPositioned:q,middlewareData:O}=o_({strategy:"fixed",placement:N,whileElementsMounted:(...cA)=>n_(...cA,{animationFrame:h==="always"}),elements:{reference:C.anchor},middleware:[i_({mainAxis:n+M,alignmentAxis:i}),s&&a_({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?s_():void 0,...P}),s&&l_({...P}),c_({...P,apply:({elements:cA,rects:hA,availableWidth:EA,availableHeight:IA})=>{const{width:DA,height:SA}=hA.reference,JA=cA.floating.style;JA.setProperty("--radix-popper-available-width",`${EA}px`),JA.setProperty("--radix-popper-available-height",`${IA}px`),JA.setProperty("--radix-popper-anchor-width",`${DA}px`),JA.setProperty("--radix-popper-anchor-height",`${SA}px`)}}),y&&f_({element:y,padding:a}),SNA({arrowWidth:k,arrowHeight:M}),g&&u_({strategy:"referenceHidden",...P})]}),[Y,S]=yK(z),J=nl(B);Go(()=>{q&&(J==null||J())},[q,J]);const $=(nA=O.arrow)==null?void 0:nA.x,U=(sA=O.arrow)==null?void 0:sA.y,AA=((iA=O.arrow)==null?void 0:iA.centerOffset)!==0,[Z,tA]=d.useState();return Go(()=>{m&&tA(window.getComputedStyle(m).zIndex)},[m]),Q.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:q?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Z,"--radix-popper-transform-origin":[(aA=O.transformOrigin)==null?void 0:aA.x,(rA=O.transformOrigin)==null?void 0:rA.y].join(" "),...((X=O.hide)==null?void 0:X.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:A.dir,children:Q.jsx(xNA,{scope:t,placedSide:Y,onArrowChange:x,arrowX:$,arrowY:U,shouldHideArrow:AA,children:Q.jsx(Mr.div,{"data-side":Y,"data-align":S,...E,ref:v,style:{...E.style,animation:q?void 0:"none"}})})})});IK.displayName=d_;var vK="PopperArrow",_NA={top:"bottom",right:"left",bottom:"top",left:"right"},DK=d.forwardRef(function(e,t){const{__scopePopper:r,...n}=e,o=kNA(vK,r),i=_NA[o.placedSide];return Q.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:Q.jsx(INA,{...n,ref:t,style:{...n.style,display:"block"}})})});DK.displayName=vK;function MNA(A){return A!==null}var SNA=A=>({name:"transformOrigin",options:A,fn(e){var C,m,I;const{placement:t,rects:r,middlewareData:n}=e,i=((C=n.arrow)==null?void 0:C.centerOffset)!==0,a=i?0:A.arrowWidth,s=i?0:A.arrowHeight,[l,c]=yK(t),u={start:"0%",center:"50%",end:"100%"}[c],g=(((m=n.arrow)==null?void 0:m.x)??0)+a/2,h=(((I=n.arrow)==null?void 0:I.y)??0)+s/2;let B="",E="";return l==="bottom"?(B=i?u:`${g}px`,E=`${-s}px`):l==="top"?(B=i?u:`${g}px`,E=`${r.floating.height+s}px`):l==="right"?(B=`${-s}px`,E=i?u:`${h}px`):l==="left"&&(B=`${r.floating.width+s}px`,E=i?u:`${h}px`),{data:{x:B,y:E}}}});function yK(A){const[e,t="center"]=A.split("-");return[e,t]}var NNA=mK,RNA=wK,PNA=IK,TNA=DK,LNA="Portal",bK=d.forwardRef((A,e)=>{var a;const{container:t,...r}=A,[n,o]=d.useState(!1);Go(()=>o(!0),[]);const i=t||n&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?yp.createPortal(Q.jsx(Mr.div,{...r,ref:e}),i):null});bK.displayName=LNA;function xK({prop:A,defaultProp:e,onChange:t=()=>{}}){const[r,n]=FNA({defaultProp:e,onChange:t}),o=A!==void 0,i=o?A:r,a=nl(t),s=d.useCallback(l=>{if(o){const u=typeof l=="function"?l(A):l;u!==A&&a(u)}else n(l)},[o,A,n,a]);return[i,s]}function FNA({defaultProp:A,onChange:e}){const t=d.useState(A),[r]=t,n=d.useRef(r),o=nl(e);return d.useEffect(()=>{n.current!==r&&(o(r),n.current=r)},[r,n,o]),t}function ONA(A){const e=d.useRef({value:A,previous:A});return d.useMemo(()=>(e.current.value!==A&&(e.current.previous=e.current.value,e.current.value=A),e.current.previous),[A])}var HNA="VisuallyHidden",kK=d.forwardRef((A,e)=>Q.jsx(Mr.span,{...A,ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...A.style}}));kK.displayName=HNA;var _K=KQ(),h_=function(){},zw=d.forwardRef(function(A,e){var t=d.useRef(null),r=d.useState({onScrollCapture:h_,onWheelCapture:h_,onTouchMoveCapture:h_}),n=r[0],o=r[1],i=A.forwardProps,a=A.children,s=A.className,l=A.removeScrollBar,c=A.enabled,u=A.shards,g=A.sideCar,h=A.noIsolation,B=A.inert,E=A.allowPinchZoom,C=A.as,m=C===void 0?"div":C,I=A.gapMode,v=kB(A,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),y=g,x=UQ([t,e]),b=bt(bt({},v),n);return d.createElement(d.Fragment,null,c&&d.createElement(y,{sideCar:_K,removeScrollBar:l,shards:u,noIsolation:h,inert:B,setCallbacks:o,allowPinchZoom:!!E,lockRef:t,gapMode:I}),i?d.cloneElement(d.Children.only(a),bt(bt({},b),{ref:x})):d.createElement(m,bt({},b,{className:s,ref:x}),a))});zw.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},zw.classNames={fullWidth:Xu,zeroRight:Vu};var p_=!1;if(typeof window<"u")try{var Ww=Object.defineProperty({},"passive",{get:function(){return p_=!0,!0}});window.addEventListener("test",Ww,Ww),window.removeEventListener("test",Ww,Ww)}catch{p_=!1}var Sd=p_?{passive:!1}:!1,GNA=function(A){return A.tagName==="TEXTAREA"},MK=function(A,e){if(!(A instanceof Element))return!1;var t=window.getComputedStyle(A);return t[e]!=="hidden"&&!(t.overflowY===t.overflowX&&!GNA(A)&&t[e]==="visible")},UNA=function(A){return MK(A,"overflowY")},KNA=function(A){return MK(A,"overflowX")},SK=function(A,e){var t=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=NK(A,r);if(n){var o=RK(A,r),i=o[1],a=o[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==t.body);return!1},YNA=function(A){var e=A.scrollTop,t=A.scrollHeight,r=A.clientHeight;return[e,t,r]},$NA=function(A){var e=A.scrollLeft,t=A.scrollWidth,r=A.clientWidth;return[e,t,r]},NK=function(A,e){return A==="v"?UNA(e):KNA(e)},RK=function(A,e){return A==="v"?YNA(e):$NA(e)},jNA=function(A,e){return A==="h"&&e==="rtl"?-1:1},qNA=function(A,e,t,r,n){var o=jNA(A,window.getComputedStyle(e).direction),i=o*r,a=t.target,s=e.contains(a),l=!1,c=i>0,u=0,g=0;do{var h=RK(A,a),B=h[0],E=h[1],C=h[2],m=E-C-o*B;(B||m)&&NK(A,a)&&(u+=m,g+=B),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!s&&a!==document.body||s&&(e.contains(a)||e===a));return(c&&(Math.abs(u)<1||!n)||!c&&(Math.abs(g)<1||!n))&&(l=!0),l},Vw=function(A){return"changedTouches"in A?[A.changedTouches[0].clientX,A.changedTouches[0].clientY]:[0,0]},PK=function(A){return[A.deltaX,A.deltaY]},TK=function(A){return A&&"current"in A?A.current:A},JNA=function(A,e){return A[0]===e[0]&&A[1]===e[1]},zNA=function(A){return`
|
|
420
420
|
.block-interactivity-`.concat(A,` {pointer-events: none;}
|
|
421
421
|
.allow-interactivity-`).concat(A,` {pointer-events: all;}
|
|
422
422
|
`)},WNA=0,Nd=[];function VNA(A){var e=d.useRef([]),t=d.useRef([0,0]),r=d.useRef(),n=d.useState(WNA++)[0],o=d.useState(_B)[0],i=d.useRef(A);d.useEffect(function(){i.current=A},[A]),d.useEffect(function(){if(A.inert){document.body.classList.add("block-interactivity-".concat(n));var E=hd([A.lockRef.current],(A.shards||[]).map(TK),!0).filter(Boolean);return E.forEach(function(C){return C.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),E.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(n))})}}},[A.inert,A.lockRef.current,A.shards]);var a=d.useCallback(function(E,C){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!i.current.allowPinchZoom;var m=Vw(E),I=t.current,v="deltaX"in E?E.deltaX:I[0]-m[0],y="deltaY"in E?E.deltaY:I[1]-m[1],x,b=E.target,k=Math.abs(v)>Math.abs(y)?"h":"v";if("touches"in E&&k==="h"&&b.type==="range")return!1;var M=SK(k,b);if(!M)return!0;if(M?x=k:(x=k==="v"?"h":"v",M=SK(k,b)),!M)return!1;if(!r.current&&"changedTouches"in E&&(v||y)&&(r.current=x),!x)return!0;var N=r.current||x;return qNA(N,C,E,N==="h"?v:y,!0)},[]),s=d.useCallback(function(E){var C=E;if(!(!Nd.length||Nd[Nd.length-1]!==o)){var m="deltaY"in C?PK(C):Vw(C),I=e.current.filter(function(x){return x.name===C.type&&(x.target===C.target||C.target===x.shadowParent)&&JNA(x.delta,m)})[0];if(I&&I.should){C.cancelable&&C.preventDefault();return}if(!I){var v=(i.current.shards||[]).map(TK).filter(Boolean).filter(function(x){return x.contains(C.target)}),y=v.length>0?a(C,v[0]):!i.current.noIsolation;y&&C.cancelable&&C.preventDefault()}}},[]),l=d.useCallback(function(E,C,m,I){var v={name:E,delta:C,target:m,should:I,shadowParent:XNA(m)};e.current.push(v),setTimeout(function(){e.current=e.current.filter(function(y){return y!==v})},1)},[]),c=d.useCallback(function(E){t.current=Vw(E),r.current=void 0},[]),u=d.useCallback(function(E){l(E.type,PK(E),E.target,a(E,A.lockRef.current))},[]),g=d.useCallback(function(E){l(E.type,Vw(E),E.target,a(E,A.lockRef.current))},[]);d.useEffect(function(){return Nd.push(o),A.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:g}),document.addEventListener("wheel",s,Sd),document.addEventListener("touchmove",s,Sd),document.addEventListener("touchstart",c,Sd),function(){Nd=Nd.filter(function(E){return E!==o}),document.removeEventListener("wheel",s,Sd),document.removeEventListener("touchmove",s,Sd),document.removeEventListener("touchstart",c,Sd)}},[]);var h=A.removeScrollBar,B=A.inert;return d.createElement(d.Fragment,null,B?d.createElement(o,{styles:zNA(n)}):null,h?d.createElement(jQ,{gapMode:A.gapMode}):null)}function XNA(A){for(var e=null;A!==null;)A instanceof ShadowRoot&&(e=A.host,A=A.host),A=A.parentNode;return e}const ZNA=YQ(_K,VNA);var LK=d.forwardRef(function(A,e){return d.createElement(zw,bt({},A,{ref:e,sideCar:ZNA}))});LK.classNames=zw.classNames;var ARA=[" ","Enter","ArrowUp","ArrowDown"],eRA=[" ","Enter"],WB="Select",[Xw,Zw,tRA]=lSA(WB),[Rd,Ome]=cSA(WB,[tRA,EK]),AI=EK(),[rRA,mc]=Rd(WB),[nRA,oRA]=Rd(WB),FK=A=>{const{__scopeSelect:e,children:t,open:r,defaultOpen:n,onOpenChange:o,value:i,defaultValue:a,onValueChange:s,dir:l,name:c,autoComplete:u,disabled:g,required:h,form:B}=A,E=AI(e),[C,m]=d.useState(null),[I,v]=d.useState(null),[y,x]=d.useState(!1),b=gSA(l),[k=!1,M]=xK({prop:r,defaultProp:n,onChange:o}),[N,F]=xK({prop:i,defaultProp:a,onChange:s}),L=d.useRef(null),T=C?B||!!C.closest("form"):!0,[P,G]=d.useState(new Set),H=Array.from(P).map(z=>z.props.value).join(";");return Q.jsx(NNA,{...E,children:Q.jsxs(rRA,{required:h,scope:e,trigger:C,onTriggerChange:m,valueNode:I,onValueNodeChange:v,valueNodeHasChildren:y,onValueNodeHasChildrenChange:x,contentId:q4(),value:N,onValueChange:F,open:k,onOpenChange:M,dir:b,triggerPointerDownPosRef:L,disabled:g,children:[Q.jsx(Xw.Provider,{scope:e,children:Q.jsx(nRA,{scope:A.__scopeSelect,onNativeOptionAdd:d.useCallback(z=>{G(q=>new Set(q).add(z))},[]),onNativeOptionRemove:d.useCallback(z=>{G(q=>{const O=new Set(q);return O.delete(z),O})},[]),children:t})}),T?Q.jsxs(aY,{"aria-hidden":!0,required:h,tabIndex:-1,name:c,autoComplete:u,value:N,onChange:z=>F(z.target.value),disabled:g,form:B,children:[N===void 0?Q.jsx("option",{value:""}):null,Array.from(P)]},H):null]})})};FK.displayName=WB;var OK="SelectTrigger",HK=d.forwardRef((A,e)=>{const{__scopeSelect:t,disabled:r=!1,...n}=A,o=AI(t),i=mc(OK,t),a=i.disabled||r,s=En(e,i.onTriggerChange),l=Zw(t),c=d.useRef("touch"),[u,g,h]=sY(E=>{const C=l().filter(v=>!v.disabled),m=C.find(v=>v.value===i.value),I=lY(C,E,m);I!==void 0&&i.onValueChange(I.value)}),B=E=>{a||(i.onOpenChange(!0),h()),E&&(i.triggerPointerDownPosRef.current={x:Math.round(E.pageX),y:Math.round(E.pageY)})};return Q.jsx(RNA,{asChild:!0,...o,children:Q.jsx(Mr.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":iY(i.value)?"":void 0,...n,ref:s,onClick:_r(n.onClick,E=>{E.currentTarget.focus(),c.current!=="mouse"&&B(E)}),onPointerDown:_r(n.onPointerDown,E=>{c.current=E.pointerType;const C=E.target;C.hasPointerCapture(E.pointerId)&&C.releasePointerCapture(E.pointerId),E.button===0&&E.ctrlKey===!1&&E.pointerType==="mouse"&&(B(E),E.preventDefault())}),onKeyDown:_r(n.onKeyDown,E=>{const C=u.current!=="";!(E.ctrlKey||E.altKey||E.metaKey)&&E.key.length===1&&g(E.key),!(C&&E.key===" ")&&ARA.includes(E.key)&&(B(),E.preventDefault())})})})});HK.displayName=OK;var GK="SelectValue",UK=d.forwardRef((A,e)=>{const{__scopeSelect:t,className:r,style:n,children:o,placeholder:i="",...a}=A,s=mc(GK,t),{onValueNodeHasChildrenChange:l}=s,c=o!==void 0,u=En(e,s.onValueNodeChange);return Go(()=>{l(c)},[l,c]),Q.jsx(Mr.span,{...a,ref:u,style:{pointerEvents:"none"},children:iY(s.value)?Q.jsx(Q.Fragment,{children:i}):o})});UK.displayName=GK;var iRA="SelectIcon",KK=d.forwardRef((A,e)=>{const{__scopeSelect:t,children:r,...n}=A;return Q.jsx(Mr.span,{"aria-hidden":!0,...n,ref:e,children:r||"▼"})});KK.displayName=iRA;var aRA="SelectPortal",YK=A=>Q.jsx(bK,{asChild:!0,...A});YK.displayName=aRA;var cf="SelectContent",$K=d.forwardRef((A,e)=>{const t=mc(cf,A.__scopeSelect),[r,n]=d.useState();if(Go(()=>{n(new DocumentFragment)},[]),!t.open){const o=r;return o?Dr.createPortal(Q.jsx(jK,{scope:A.__scopeSelect,children:Q.jsx(Xw.Slot,{scope:A.__scopeSelect,children:Q.jsx("div",{children:A.children})})}),o):null}return Q.jsx(qK,{...A,ref:e})});$K.displayName=cf;var ca=10,[jK,Qc]=Rd(cf),sRA="SelectContentImpl",qK=d.forwardRef((A,e)=>{const{__scopeSelect:t,position:r="item-aligned",onCloseAutoFocus:n,onEscapeKeyDown:o,onPointerDownOutside:i,side:a,sideOffset:s,align:l,alignOffset:c,arrowPadding:u,collisionBoundary:g,collisionPadding:h,sticky:B,hideWhenDetached:E,avoidCollisions:C,...m}=A,I=mc(cf,t),[v,y]=d.useState(null),[x,b]=d.useState(null),k=En(e,nA=>y(nA)),[M,N]=d.useState(null),[F,L]=d.useState(null),T=Zw(t),[P,G]=d.useState(!1),H=d.useRef(!1);d.useEffect(()=>{if(v)return MB(v)},[v]),vSA();const z=d.useCallback(nA=>{const[sA,...iA]=T().map(X=>X.ref.current),[aA]=iA.slice(-1),rA=document.activeElement;for(const X of nA)if(X===rA||(X==null||X.scrollIntoView({block:"nearest"}),X===sA&&x&&(x.scrollTop=0),X===aA&&x&&(x.scrollTop=x.scrollHeight),X==null||X.focus(),document.activeElement!==rA))return},[T,x]),q=d.useCallback(()=>z([M,v]),[z,M,v]);d.useEffect(()=>{P&&q()},[P,q]);const{onOpenChange:O,triggerPointerDownPosRef:Y}=I;d.useEffect(()=>{if(v){let nA={x:0,y:0};const sA=aA=>{var rA,X;nA={x:Math.abs(Math.round(aA.pageX)-(((rA=Y.current)==null?void 0:rA.x)??0)),y:Math.abs(Math.round(aA.pageY)-(((X=Y.current)==null?void 0:X.y)??0))}},iA=aA=>{nA.x<=10&&nA.y<=10?aA.preventDefault():v.contains(aA.target)||O(!1),document.removeEventListener("pointermove",sA),Y.current=null};return Y.current!==null&&(document.addEventListener("pointermove",sA),document.addEventListener("pointerup",iA,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",sA),document.removeEventListener("pointerup",iA,{capture:!0})}}},[v,O,Y]),d.useEffect(()=>{const nA=()=>O(!1);return window.addEventListener("blur",nA),window.addEventListener("resize",nA),()=>{window.removeEventListener("blur",nA),window.removeEventListener("resize",nA)}},[O]);const[S,J]=sY(nA=>{const sA=T().filter(rA=>!rA.disabled),iA=sA.find(rA=>rA.ref.current===document.activeElement),aA=lY(sA,nA,iA);aA&&setTimeout(()=>aA.ref.current.focus())}),$=d.useCallback((nA,sA,iA)=>{const aA=!H.current&&!iA;(I.value!==void 0&&I.value===sA||aA)&&(N(nA),aA&&(H.current=!0))},[I.value]),U=d.useCallback(()=>v==null?void 0:v.focus(),[v]),AA=d.useCallback((nA,sA,iA)=>{const aA=!H.current&&!iA;(I.value!==void 0&&I.value===sA||aA)&&L(nA)},[I.value]),Z=r==="popper"?B_:JK,tA=Z===B_?{side:a,sideOffset:s,align:l,alignOffset:c,arrowPadding:u,collisionBoundary:g,collisionPadding:h,sticky:B,hideWhenDetached:E,avoidCollisions:C}:{};return Q.jsx(jK,{scope:t,content:v,viewport:x,onViewportChange:b,itemRefCallback:$,selectedItem:M,onItemLeave:U,itemTextRefCallback:AA,focusSelectedItem:q,selectedItemText:F,position:r,isPositioned:P,searchRef:S,children:Q.jsx(LK,{as:jB,allowPinchZoom:!0,children:Q.jsx(qU,{asChild:!0,trapped:I.open,onMountAutoFocus:nA=>{nA.preventDefault()},onUnmountAutoFocus:_r(n,nA=>{var sA;(sA=I.trigger)==null||sA.focus({preventScroll:!0}),nA.preventDefault()}),children:Q.jsx(UU,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:nA=>nA.preventDefault(),onDismiss:()=>I.onOpenChange(!1),children:Q.jsx(Z,{role:"listbox",id:I.contentId,"data-state":I.open?"open":"closed",dir:I.dir,onContextMenu:nA=>nA.preventDefault(),...m,...tA,onPlaced:()=>G(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...m.style},onKeyDown:_r(m.onKeyDown,nA=>{const sA=nA.ctrlKey||nA.altKey||nA.metaKey;if(nA.key==="Tab"&&nA.preventDefault(),!sA&&nA.key.length===1&&J(nA.key),["ArrowUp","ArrowDown","Home","End"].includes(nA.key)){let aA=T().filter(rA=>!rA.disabled).map(rA=>rA.ref.current);if(["ArrowUp","End"].includes(nA.key)&&(aA=aA.slice().reverse()),["ArrowUp","ArrowDown"].includes(nA.key)){const rA=nA.target,X=aA.indexOf(rA);aA=aA.slice(X+1)}setTimeout(()=>z(aA)),nA.preventDefault()}})})})})})})});qK.displayName=sRA;var lRA="SelectItemAlignedPosition",JK=d.forwardRef((A,e)=>{const{__scopeSelect:t,onPlaced:r,...n}=A,o=mc(cf,t),i=Qc(cf,t),[a,s]=d.useState(null),[l,c]=d.useState(null),u=En(e,k=>c(k)),g=Zw(t),h=d.useRef(!1),B=d.useRef(!0),{viewport:E,selectedItem:C,selectedItemText:m,focusSelectedItem:I}=i,v=d.useCallback(()=>{if(o.trigger&&o.valueNode&&a&&l&&E&&C&&m){const k=o.trigger.getBoundingClientRect(),M=l.getBoundingClientRect(),N=o.valueNode.getBoundingClientRect(),F=m.getBoundingClientRect();if(o.dir!=="rtl"){const rA=F.left-M.left,X=N.left-rA,cA=k.left-X,hA=k.width+cA,EA=Math.max(hA,M.width),IA=window.innerWidth-ca,DA=FU(X,[ca,Math.max(ca,IA-EA)]);a.style.minWidth=hA+"px",a.style.left=DA+"px"}else{const rA=M.right-F.right,X=window.innerWidth-N.right-rA,cA=window.innerWidth-k.right-X,hA=k.width+cA,EA=Math.max(hA,M.width),IA=window.innerWidth-ca,DA=FU(X,[ca,Math.max(ca,IA-EA)]);a.style.minWidth=hA+"px",a.style.right=DA+"px"}const L=g(),T=window.innerHeight-ca*2,P=E.scrollHeight,G=window.getComputedStyle(l),H=parseInt(G.borderTopWidth,10),z=parseInt(G.paddingTop,10),q=parseInt(G.borderBottomWidth,10),O=parseInt(G.paddingBottom,10),Y=H+z+P+O+q,S=Math.min(C.offsetHeight*5,Y),J=window.getComputedStyle(E),$=parseInt(J.paddingTop,10),U=parseInt(J.paddingBottom,10),AA=k.top+k.height/2-ca,Z=T-AA,tA=C.offsetHeight/2,nA=C.offsetTop+tA,sA=H+z+nA,iA=Y-sA;if(sA<=AA){const rA=L.length>0&&C===L[L.length-1].ref.current;a.style.bottom="0px";const X=l.clientHeight-E.offsetTop-E.offsetHeight,cA=Math.max(Z,tA+(rA?U:0)+X+q),hA=sA+cA;a.style.height=hA+"px"}else{const rA=L.length>0&&C===L[0].ref.current;a.style.top="0px";const cA=Math.max(AA,H+E.offsetTop+(rA?$:0)+tA)+iA;a.style.height=cA+"px",E.scrollTop=sA-AA+E.offsetTop}a.style.margin=`${ca}px 0`,a.style.minHeight=S+"px",a.style.maxHeight=T+"px",r==null||r(),requestAnimationFrame(()=>h.current=!0)}},[g,o.trigger,o.valueNode,a,l,E,C,m,o.dir,r]);Go(()=>v(),[v]);const[y,x]=d.useState();Go(()=>{l&&x(window.getComputedStyle(l).zIndex)},[l]);const b=d.useCallback(k=>{k&&B.current===!0&&(v(),I==null||I(),B.current=!1)},[v,I]);return Q.jsx(uRA,{scope:t,contentWrapper:a,shouldExpandOnScrollRef:h,onScrollButtonChange:b,children:Q.jsx("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:y},children:Q.jsx(Mr.div,{...n,ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...n.style}})})})});JK.displayName=lRA;var cRA="SelectPopperPosition",B_=d.forwardRef((A,e)=>{const{__scopeSelect:t,align:r="start",collisionPadding:n=ca,...o}=A,i=AI(t);return Q.jsx(PNA,{...i,...o,ref:e,align:r,collisionPadding:n,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});B_.displayName=cRA;var[uRA,E_]=Rd(cf,{}),C_="SelectViewport",zK=d.forwardRef((A,e)=>{const{__scopeSelect:t,nonce:r,...n}=A,o=Qc(C_,t),i=E_(C_,t),a=En(e,o.onViewportChange),s=d.useRef(0);return Q.jsxs(Q.Fragment,{children:[Q.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),Q.jsx(Xw.Slot,{scope:t,children:Q.jsx(Mr.div,{"data-radix-select-viewport":"",role:"presentation",...n,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...n.style},onScroll:_r(n.onScroll,l=>{const c=l.currentTarget,{contentWrapper:u,shouldExpandOnScrollRef:g}=i;if(g!=null&&g.current&&u){const h=Math.abs(s.current-c.scrollTop);if(h>0){const B=window.innerHeight-ca*2,E=parseFloat(u.style.minHeight),C=parseFloat(u.style.height),m=Math.max(E,C);if(m<B){const I=m+h,v=Math.min(B,I),y=I-v;u.style.height=v+"px",u.style.bottom==="0px"&&(c.scrollTop=y>0?y:0,u.style.justifyContent="flex-end")}}}s.current=c.scrollTop})})})]})});zK.displayName=C_;var WK="SelectGroup",[fRA,gRA]=Rd(WK),dRA=d.forwardRef((A,e)=>{const{__scopeSelect:t,...r}=A,n=q4();return Q.jsx(fRA,{scope:t,id:n,children:Q.jsx(Mr.div,{role:"group","aria-labelledby":n,...r,ref:e})})});dRA.displayName=WK;var VK="SelectLabel",hRA=d.forwardRef((A,e)=>{const{__scopeSelect:t,...r}=A,n=gRA(VK,t);return Q.jsx(Mr.div,{id:n.id,...r,ref:e})});hRA.displayName=VK;var eI="SelectItem",[pRA,XK]=Rd(eI),ZK=d.forwardRef((A,e)=>{const{__scopeSelect:t,value:r,disabled:n=!1,textValue:o,...i}=A,a=mc(eI,t),s=Qc(eI,t),l=a.value===r,[c,u]=d.useState(o??""),[g,h]=d.useState(!1),B=En(e,I=>{var v;return(v=s.itemRefCallback)==null?void 0:v.call(s,I,r,n)}),E=q4(),C=d.useRef("touch"),m=()=>{n||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return Q.jsx(pRA,{scope:t,value:r,disabled:n,textId:E,isSelected:l,onItemTextChange:d.useCallback(I=>{u(v=>v||((I==null?void 0:I.textContent)??"").trim())},[]),children:Q.jsx(Xw.ItemSlot,{scope:t,value:r,disabled:n,textValue:c,children:Q.jsx(Mr.div,{role:"option","aria-labelledby":E,"data-highlighted":g?"":void 0,"aria-selected":l&&g,"data-state":l?"checked":"unchecked","aria-disabled":n||void 0,"data-disabled":n?"":void 0,tabIndex:n?void 0:-1,...i,ref:B,onFocus:_r(i.onFocus,()=>h(!0)),onBlur:_r(i.onBlur,()=>h(!1)),onClick:_r(i.onClick,()=>{C.current!=="mouse"&&m()}),onPointerUp:_r(i.onPointerUp,()=>{C.current==="mouse"&&m()}),onPointerDown:_r(i.onPointerDown,I=>{C.current=I.pointerType}),onPointerMove:_r(i.onPointerMove,I=>{var v;C.current=I.pointerType,n?(v=s.onItemLeave)==null||v.call(s):C.current==="mouse"&&I.currentTarget.focus({preventScroll:!0})}),onPointerLeave:_r(i.onPointerLeave,I=>{var v;I.currentTarget===document.activeElement&&((v=s.onItemLeave)==null||v.call(s))}),onKeyDown:_r(i.onKeyDown,I=>{var y;((y=s.searchRef)==null?void 0:y.current)!==""&&I.key===" "||(eRA.includes(I.key)&&m(),I.key===" "&&I.preventDefault())})})})})});ZK.displayName=eI;var VB="SelectItemText",AY=d.forwardRef((A,e)=>{const{__scopeSelect:t,className:r,style:n,...o}=A,i=mc(VB,t),a=Qc(VB,t),s=XK(VB,t),l=oRA(VB,t),[c,u]=d.useState(null),g=En(e,m=>u(m),s.onItemTextChange,m=>{var I;return(I=a.itemTextRefCallback)==null?void 0:I.call(a,m,s.value,s.disabled)}),h=c==null?void 0:c.textContent,B=d.useMemo(()=>Q.jsx("option",{value:s.value,disabled:s.disabled,children:h},s.value),[s.disabled,s.value,h]),{onNativeOptionAdd:E,onNativeOptionRemove:C}=l;return Go(()=>(E(B),()=>C(B)),[E,C,B]),Q.jsxs(Q.Fragment,{children:[Q.jsx(Mr.span,{id:s.textId,...o,ref:g}),s.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Dr.createPortal(o.children,i.valueNode):null]})});AY.displayName=VB;var eY="SelectItemIndicator",tY=d.forwardRef((A,e)=>{const{__scopeSelect:t,...r}=A;return XK(eY,t).isSelected?Q.jsx(Mr.span,{"aria-hidden":!0,...r,ref:e}):null});tY.displayName=eY;var m_="SelectScrollUpButton",rY=d.forwardRef((A,e)=>{const t=Qc(m_,A.__scopeSelect),r=E_(m_,A.__scopeSelect),[n,o]=d.useState(!1),i=En(e,r.onScrollButtonChange);return Go(()=>{if(t.viewport&&t.isPositioned){let a=function(){const l=s.scrollTop>0;o(l)};const s=t.viewport;return a(),s.addEventListener("scroll",a),()=>s.removeEventListener("scroll",a)}},[t.viewport,t.isPositioned]),n?Q.jsx(oY,{...A,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:s}=t;a&&s&&(a.scrollTop=a.scrollTop-s.offsetHeight)}}):null});rY.displayName=m_;var Q_="SelectScrollDownButton",nY=d.forwardRef((A,e)=>{const t=Qc(Q_,A.__scopeSelect),r=E_(Q_,A.__scopeSelect),[n,o]=d.useState(!1),i=En(e,r.onScrollButtonChange);return Go(()=>{if(t.viewport&&t.isPositioned){let a=function(){const l=s.scrollHeight-s.clientHeight,c=Math.ceil(s.scrollTop)<l;o(c)};const s=t.viewport;return a(),s.addEventListener("scroll",a),()=>s.removeEventListener("scroll",a)}},[t.viewport,t.isPositioned]),n?Q.jsx(oY,{...A,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:s}=t;a&&s&&(a.scrollTop=a.scrollTop+s.offsetHeight)}}):null});nY.displayName=Q_;var oY=d.forwardRef((A,e)=>{const{__scopeSelect:t,onAutoScroll:r,...n}=A,o=Qc("SelectScrollButton",t),i=d.useRef(null),a=Zw(t),s=d.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return d.useEffect(()=>()=>s(),[s]),Go(()=>{var c;const l=a().find(u=>u.ref.current===document.activeElement);(c=l==null?void 0:l.ref.current)==null||c.scrollIntoView({block:"nearest"})},[a]),Q.jsx(Mr.div,{"aria-hidden":!0,...n,ref:e,style:{flexShrink:0,...n.style},onPointerDown:_r(n.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:_r(n.onPointerMove,()=>{var l;(l=o.onItemLeave)==null||l.call(o),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:_r(n.onPointerLeave,()=>{s()})})}),BRA="SelectSeparator",ERA=d.forwardRef((A,e)=>{const{__scopeSelect:t,...r}=A;return Q.jsx(Mr.div,{"aria-hidden":!0,...r,ref:e})});ERA.displayName=BRA;var w_="SelectArrow",CRA=d.forwardRef((A,e)=>{const{__scopeSelect:t,...r}=A,n=AI(t),o=mc(w_,t),i=Qc(w_,t);return o.open&&i.position==="popper"?Q.jsx(TNA,{...n,...r,ref:e}):null});CRA.displayName=w_;function iY(A){return A===""||A===void 0}var aY=d.forwardRef((A,e)=>{const{value:t,...r}=A,n=d.useRef(null),o=En(e,n),i=ONA(t);return d.useEffect(()=>{const a=n.current,s=window.HTMLSelectElement.prototype,c=Object.getOwnPropertyDescriptor(s,"value").set;if(i!==t&&c){const u=new Event("change",{bubbles:!0});c.call(a,t),a.dispatchEvent(u)}},[i,t]),Q.jsx(kK,{asChild:!0,children:Q.jsx("select",{...r,ref:o,defaultValue:t})})});aY.displayName="BubbleSelect";function sY(A){const e=nl(A),t=d.useRef(""),r=d.useRef(0),n=d.useCallback(i=>{const a=t.current+i;e(a),function s(l){t.current=l,window.clearTimeout(r.current),l!==""&&(r.current=window.setTimeout(()=>s(""),1e3))}(a)},[e]),o=d.useCallback(()=>{t.current="",window.clearTimeout(r.current)},[]);return d.useEffect(()=>()=>window.clearTimeout(r.current),[]),[t,n,o]}function lY(A,e,t){const n=e.length>1&&Array.from(e).every(l=>l===e[0])?e[0]:e,o=t?A.indexOf(t):-1;let i=mRA(A,Math.max(o,0));n.length===1&&(i=i.filter(l=>l!==t));const s=i.find(l=>l.textValue.toLowerCase().startsWith(n.toLowerCase()));return s!==t?s:void 0}function mRA(A,e){return A.map((t,r)=>A[(e+r)%A.length])}var QRA=FK,wRA=HK,IRA=UK,vRA=KK,DRA=YK,yRA=$K,bRA=zK,xRA=ZK,kRA=AY,_RA=tY,MRA=rY,SRA=nY;const cY=d.createContext(null);function uY(){return d.useContext(cY)}const Et={themeVars:`'{"Input:font-size-Select-default": "var(--xmlui-font-size-Select-default)", "Input:color-placeholder-Select-default": "var(--xmlui-color-placeholder-Select-default)", "Input:color-text-Select-default": "var(--xmlui-color-text-Select-default)", "Input:font-size-Select-error": "var(--xmlui-font-size-Select-error)", "Input:color-placeholder-Select-error": "var(--xmlui-color-placeholder-Select-error)", "Input:color-text-Select-error": "var(--xmlui-color-text-Select-error)", "Input:font-size-Select-warning": "var(--xmlui-font-size-Select-warning)", "Input:color-placeholder-Select-warning": "var(--xmlui-color-placeholder-Select-warning)", "Input:color-text-Select-warning": "var(--xmlui-color-text-Select-warning)", "Input:font-size-Select-success": "var(--xmlui-font-size-Select-success)", "Input:color-placeholder-Select-success": "var(--xmlui-color-placeholder-Select-success)", "Input:color-text-Select-success": "var(--xmlui-color-text-Select-success)", "Input:radius-Select-default": "var(--xmlui-radius-Select-default)", "Input:color-border-Select-default": "var(--xmlui-color-border-Select-default)", "Input:thickness-border-Select-default": "var(--xmlui-thickness-border-Select-default)", "Input:style-border-Select-default": "var(--xmlui-style-border-Select-default)", "Input:color-bg-Select-default": "var(--xmlui-color-bg-Select-default)", "Input:shadow-Select-default": "var(--xmlui-shadow-Select-default)", "Input:color-border-Select-default--hover": "var(--xmlui-color-border-Select-default--hover)", "Input:color-bg-Select-default--hover": "var(--xmlui-color-bg-Select-default--hover)", "Input:shadow-Select-default--hover": "var(--xmlui-shadow-Select-default--hover)", "Input:color-text-Select-default--hover": "var(--xmlui-color-text-Select-default--hover)", "Input:thickness-outline-Select-default--focus": "var(--xmlui-thickness-outline-Select-default--focus)", "Input:color-outline-Select-default--focus": "var(--xmlui-color-outline-Select-default--focus)", "Input:style-outline-Select-default--focus": "var(--xmlui-style-outline-Select-default--focus)", "Input:offset-outline-Select-default--focus": "var(--xmlui-offset-outline-Select-default--focus)", "Input:radius-Select-error": "var(--xmlui-radius-Select-error)", "Input:color-border-Select-error": "var(--xmlui-color-border-Select-error)", "Input:thickness-border-Select-error": "var(--xmlui-thickness-border-Select-error)", "Input:style-border-Select-error": "var(--xmlui-style-border-Select-error)", "Input:color-bg-Select-error": "var(--xmlui-color-bg-Select-error)", "Input:shadow-Select-error": "var(--xmlui-shadow-Select-error)", "Input:color-border-Select-error--hover": "var(--xmlui-color-border-Select-error--hover)", "Input:color-bg-Select-error--hover": "var(--xmlui-color-bg-Select-error--hover)", "Input:shadow-Select-error--hover": "var(--xmlui-shadow-Select-error--hover)", "Input:color-text-Select-error--hover": "var(--xmlui-color-text-Select-error--hover)", "Input:thickness-outline-Select-error--focus": "var(--xmlui-thickness-outline-Select-error--focus)", "Input:color-outline-Select-error--focus": "var(--xmlui-color-outline-Select-error--focus)", "Input:style-outline-Select-error--focus": "var(--xmlui-style-outline-Select-error--focus)", "Input:offset-outline-Select-error--focus": "var(--xmlui-offset-outline-Select-error--focus)", "Input:radius-Select-warning": "var(--xmlui-radius-Select-warning)", "Input:color-border-Select-warning": "var(--xmlui-color-border-Select-warning)", "Input:thickness-border-Select-warning": "var(--xmlui-thickness-border-Select-warning)", "Input:style-border-Select-warning": "var(--xmlui-style-border-Select-warning)", "Input:color-bg-Select-warning": "var(--xmlui-color-bg-Select-warning)", "Input:shadow-Select-warning": "var(--xmlui-shadow-Select-warning)", "Input:color-border-Select-warning--hover": "var(--xmlui-color-border-Select-warning--hover)", "Input:color-bg-Select-warning--hover": "var(--xmlui-color-bg-Select-warning--hover)", "Input:shadow-Select-warning--hover": "var(--xmlui-shadow-Select-warning--hover)", "Input:color-text-Select-warning--hover": "var(--xmlui-color-text-Select-warning--hover)", "Input:thickness-outline-Select-warning--focus": "var(--xmlui-thickness-outline-Select-warning--focus)", "Input:color-outline-Select-warning--focus": "var(--xmlui-color-outline-Select-warning--focus)", "Input:style-outline-Select-warning--focus": "var(--xmlui-style-outline-Select-warning--focus)", "Input:offset-outline-Select-warning--focus": "var(--xmlui-offset-outline-Select-warning--focus)", "Input:radius-Select-success": "var(--xmlui-radius-Select-success)", "Input:color-border-Select-success": "var(--xmlui-color-border-Select-success)", "Input:thickness-border-Select-success": "var(--xmlui-thickness-border-Select-success)", "Input:style-border-Select-success": "var(--xmlui-style-border-Select-success)", "Input:color-bg-Select-success": "var(--xmlui-color-bg-Select-success)", "Input:shadow-Select-success": "var(--xmlui-shadow-Select-success)", "Input:color-border-Select-success--hover": "var(--xmlui-color-border-Select-success--hover)", "Input:color-bg-Select-success--hover": "var(--xmlui-color-bg-Select-success--hover)", "Input:shadow-Select-success--hover": "var(--xmlui-shadow-Select-success--hover)", "Input:color-text-Select-success--hover": "var(--xmlui-color-text-Select-success--hover)", "Input:thickness-outline-Select-success--focus": "var(--xmlui-thickness-outline-Select-success--focus)", "Input:color-outline-Select-success--focus": "var(--xmlui-color-outline-Select-success--focus)", "Input:style-outline-Select-success--focus": "var(--xmlui-style-outline-Select-success--focus)", "Input:offset-outline-Select-success--focus": "var(--xmlui-offset-outline-Select-success--focus)", "opacity-Select--disabled": "var(--xmlui-opacity-Select--disabled)", "Input:color-bg-Select--disabled": "var(--xmlui-color-bg-Select--disabled)", "Input:color-text-Select--disabled": "var(--xmlui-color-text-Select--disabled)", "Input:color-border-Select--disabled": "var(--xmlui-color-border-Select--disabled)", "padding-vertical-Select-badge": "var(--xmlui-padding-vertical-Select-badge)", "padding-horizontal-Select-badge": "var(--xmlui-padding-horizontal-Select-badge)", "Input:font-size-Select-badge": "var(--xmlui-font-size-Select-badge)", "Input:color-bg-Select-badge": "var(--xmlui-color-bg-Select-badge)", "Input:color-text-Select-badge": "var(--xmlui-color-text-Select-badge)", "Input:color-bg-Select-badge--hover": "var(--xmlui-color-bg-Select-badge--hover)", "Input:color-text-Select-badge--hover": "var(--xmlui-color-text-Select-badge--hover)", "Input:color-bg-Select-badge--active": "var(--xmlui-color-bg-Select-badge--active)", "Input:color-text-Select-badge--active": "var(--xmlui-color-text-Select-badge--active)", "Input:color-placeholder-Select": "var(--xmlui-color-placeholder-Select)", "Input:color-bg-menu-Select": "var(--xmlui-color-bg-menu-Select)", "Input:radius-menu-Select": "var(--xmlui-radius-menu-Select)", "Input:shadow-menu-Select": "var(--xmlui-shadow-menu-Select)", "Input:thickness-border-menu-Select": "var(--xmlui-thickness-border-menu-Select)", "Input:color-border-menu-Select": "var(--xmlui-color-border-menu-Select)", "color-bg-item-Select": "var(--xmlui-color-bg-item-Select)", "color-bg-item-Select--hover": "var(--xmlui-color-bg-item-Select--hover)", "opacity-text-item-Select--disabled": "var(--xmlui-opacity-text-item-Select--disabled)", "font-size-Select": "var(--xmlui-font-size-Select)", "color-bg-item-Select--active": "var(--xmlui-color-bg-item-Select--active)", "color-text-indicator-Select": "var(--xmlui-color-text-indicator-Select)"}'`,selectValue:"_selectValue_z2kxg_13",error:"_error_z2kxg_21",warning:"_warning_z2kxg_29",valid:"_valid_z2kxg_37",selectTrigger:"_selectTrigger_z2kxg_46",badgeListContainer:"_badgeListContainer_z2kxg_170",badgeList:"_badgeList_z2kxg_170",badge:"_badge_z2kxg_170",actions:"_actions_z2kxg_210",placeholder:"_placeholder_z2kxg_216",emptyList:"_emptyList_z2kxg_221",selectScrollUpButton:"_selectScrollUpButton_z2kxg_231",selectScrollDownButton:"_selectScrollDownButton_z2kxg_240",command:"_command_z2kxg_249",commandInputContainer:"_commandInputContainer_z2kxg_259",commandInput:"_commandInput_z2kxg_259",commandList:"_commandList_z2kxg_284",selectContent:"_selectContent_z2kxg_289",fadeIn:"_fadeIn_z2kxg_1",zoomIn:"_zoomIn_z2kxg_1",fadeOut:"_fadeOut_z2kxg_1",zoomOut:"_zoomOut_z2kxg_1",slideInFromTop:"_slideInFromTop_z2kxg_1",slideInFromRight:"_slideInFromRight_z2kxg_1",slideInFromLeft:"_slideInFromLeft_z2kxg_1",slideInFromBottom:"_slideInFromBottom_z2kxg_1",multiComboboxOption:"_multiComboboxOption_z2kxg_329",selectItem:"_selectItem_z2kxg_349",selectItemIndicator:"_selectItemIndicator_z2kxg_377",selectViewport:"_selectViewport_z2kxg_388",selectEmpty:"_selectEmpty_z2kxg_394",srOnly:"_srOnly_z2kxg_405"},fY=_A.createContext(null);function NRA(){return _A.useContext(fY)}function tI({children:A,Component:e}){return Q.jsx(fY.Provider,{value:e,children:A})}var gY=1,RRA=.9,PRA=.8,TRA=.17,I_=.1,v_=.999,LRA=.9999,FRA=.99,ORA=/[\\\/_+.#"@\[\(\{&]/,HRA=/[\\\/_+.#"@\[\(\{&]/g,GRA=/[\s-]/,dY=/[\s-]/g;function D_(A,e,t,r,n,o,i){if(o===e.length)return n===A.length?gY:FRA;var a=`${n},${o}`;if(i[a]!==void 0)return i[a];for(var s=r.charAt(o),l=t.indexOf(s,n),c=0,u,g,h,B;l>=0;)u=D_(A,e,t,r,l+1,o+1,i),u>c&&(l===n?u*=gY:ORA.test(A.charAt(l-1))?(u*=PRA,h=A.slice(n,l-1).match(HRA),h&&n>0&&(u*=Math.pow(v_,h.length))):GRA.test(A.charAt(l-1))?(u*=RRA,B=A.slice(n,l-1).match(dY),B&&n>0&&(u*=Math.pow(v_,B.length))):(u*=TRA,n>0&&(u*=Math.pow(v_,l-n))),A.charAt(l)!==e.charAt(o)&&(u*=LRA)),(u<I_&&t.charAt(l-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&t.charAt(l-1)!==r.charAt(o))&&(g=D_(A,e,t,r,l+1,o+2,i),g*I_>u&&(u=g*I_)),u>c&&(c=u),l=t.indexOf(s,l+1);return i[a]=c,c}function hY(A){return A.toLowerCase().replace(dY," ")}function URA(A,e,t){return A=t&&t.length>0?`${A+" "+t.join(" ")}`:A,D_(A,e,hY(A),hY(e),0,0,{})}function wc(A,e,{checkForDefaultPrevented:t=!0}={}){return function(n){if(A==null||A(n),t===!1||!n.defaultPrevented)return e==null?void 0:e(n)}}function KRA(A,e){typeof A=="function"?A(e):A!=null&&(A.current=e)}function pY(...A){return e=>A.forEach(t=>KRA(t,e))}function uf(...A){return d.useCallback(pY(...A),A)}function YRA(A,e){const t=d.createContext(e),r=o=>{const{children:i,...a}=o,s=d.useMemo(()=>a,Object.values(a));return Q.jsx(t.Provider,{value:s,children:i})};r.displayName=A+"Provider";function n(o){const i=d.useContext(t);if(i)return i;if(e!==void 0)return e;throw new Error(`\`${o}\` must be used within \`${A}\``)}return[r,n]}function $RA(A,e=[]){let t=[];function r(o,i){const a=d.createContext(i),s=t.length;t=[...t,i];const l=u=>{var m;const{scope:g,children:h,...B}=u,E=((m=g==null?void 0:g[A])==null?void 0:m[s])||a,C=d.useMemo(()=>B,Object.values(B));return Q.jsx(E.Provider,{value:C,children:h})};l.displayName=o+"Provider";function c(u,g){var E;const h=((E=g==null?void 0:g[A])==null?void 0:E[s])||a,B=d.useContext(h);if(B)return B;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${o}\``)}return[l,c]}const n=()=>{const o=t.map(i=>d.createContext(i));return function(a){const s=(a==null?void 0:a[A])||o;return d.useMemo(()=>({[`__scope${A}`]:{...a,[A]:s}}),[a,s])}};return n.scopeName=A,[r,jRA(n,...e)]}function jRA(...A){const e=A[0];if(A.length===1)return e;const t=()=>{const r=A.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(o){const i=r.reduce((a,{useScope:s,scopeName:l})=>{const u=s(o)[`__scope${l}`];return{...a,...u}},{});return d.useMemo(()=>({[`__scope${e.scopeName}`]:i}),[i])}};return t.scopeName=e.scopeName,t}var rI=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{},qRA=Ps.useId||(()=>{}),JRA=0;function sl(A){const[e,t]=d.useState(qRA());return rI(()=>{t(r=>r??String(JRA++))},[A]),e?`radix-${e}`:""}function ff(A){const e=d.useRef(A);return d.useEffect(()=>{e.current=A}),d.useMemo(()=>(...t)=>{var r;return(r=e.current)==null?void 0:r.call(e,...t)},[])}function zRA({prop:A,defaultProp:e,onChange:t=()=>{}}){const[r,n]=WRA({defaultProp:e,onChange:t}),o=A!==void 0,i=o?A:r,a=ff(t),s=d.useCallback(l=>{if(o){const u=typeof l=="function"?l(A):l;u!==A&&a(u)}else n(l)},[o,A,n,a]);return[i,s]}function WRA({defaultProp:A,onChange:e}){const t=d.useState(A),[r]=t,n=d.useRef(r),o=ff(e);return d.useEffect(()=>{n.current!==r&&(o(r),n.current=r)},[r,n,o]),t}var y_=d.forwardRef((A,e)=>{const{children:t,...r}=A,n=d.Children.toArray(t),o=n.find(XRA);if(o){const i=o.props.children,a=n.map(s=>s===o?d.Children.count(i)>1?d.Children.only(null):d.isValidElement(i)?i.props.children:null:s);return Q.jsx(b_,{...r,ref:e,children:d.isValidElement(i)?d.cloneElement(i,void 0,a):null})}return Q.jsx(b_,{...r,ref:e,children:t})});y_.displayName="Slot";var b_=d.forwardRef((A,e)=>{const{children:t,...r}=A;if(d.isValidElement(t)){const n=A6A(t);return d.cloneElement(t,{...ZRA(r,t.props),ref:e?pY(e,n):n})}return d.Children.count(t)>1?d.Children.only(null):null});b_.displayName="SlotClone";var VRA=({children:A})=>Q.jsx(Q.Fragment,{children:A});function XRA(A){return d.isValidElement(A)&&A.type===VRA}function ZRA(A,e){const t={...e};for(const r in e){const n=A[r],o=e[r];/^on[A-Z]/.test(r)?n&&o?t[r]=(...a)=>{o(...a),n(...a)}:n&&(t[r]=n):r==="style"?t[r]={...n,...o}:r==="className"&&(t[r]=[n,o].filter(Boolean).join(" "))}return{...A,...t}}function A6A(A){var r,n;let e=(r=Object.getOwnPropertyDescriptor(A.props,"ref"))==null?void 0:r.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?A.ref:(e=(n=Object.getOwnPropertyDescriptor(A,"ref"))==null?void 0:n.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?A.props.ref:A.props.ref||A.ref)}var e6A=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Cn=e6A.reduce((A,e)=>{const t=d.forwardRef((r,n)=>{const{asChild:o,...i}=r,a=o?y_:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Q.jsx(a,{...i,ref:n})});return t.displayName=`Primitive.${e}`,{...A,[e]:t}},{});function t6A(A,e){A&&Dr.flushSync(()=>A.dispatchEvent(e))}function r6A(A,e=globalThis==null?void 0:globalThis.document){const t=ff(A);d.useEffect(()=>{const r=n=>{n.key==="Escape"&&t(n)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[t,e])}var n6A="DismissableLayer",x_="dismissableLayer.update",o6A="dismissableLayer.pointerDownOutside",i6A="dismissableLayer.focusOutside",BY,EY=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),CY=d.forwardRef((A,e)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:r,onPointerDownOutside:n,onFocusOutside:o,onInteractOutside:i,onDismiss:a,...s}=A,l=d.useContext(EY),[c,u]=d.useState(null),g=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=d.useState({}),B=uf(e,k=>u(k)),E=Array.from(l.layers),[C]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),m=E.indexOf(C),I=c?E.indexOf(c):-1,v=l.layersWithOutsidePointerEventsDisabled.size>0,y=I>=m,x=l6A(k=>{const M=k.target,N=[...l.branches].some(F=>F.contains(M));!y||N||(n==null||n(k),i==null||i(k),k.defaultPrevented||a==null||a())},g),b=c6A(k=>{const M=k.target;[...l.branches].some(F=>F.contains(M))||(o==null||o(k),i==null||i(k),k.defaultPrevented||a==null||a())},g);return r6A(k=>{I===l.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},g),d.useEffect(()=>{if(c)return t&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(BY=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),mY(),()=>{t&&l.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=BY)}},[c,g,t,l]),d.useEffect(()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),mY())},[c,l]),d.useEffect(()=>{const k=()=>h({});return document.addEventListener(x_,k),()=>document.removeEventListener(x_,k)},[]),Q.jsx(Cn.div,{...s,ref:B,style:{pointerEvents:v?y?"auto":"none":void 0,...A.style},onFocusCapture:wc(A.onFocusCapture,b.onFocusCapture),onBlurCapture:wc(A.onBlurCapture,b.onBlurCapture),onPointerDownCapture:wc(A.onPointerDownCapture,x.onPointerDownCapture)})});CY.displayName=n6A;var a6A="DismissableLayerBranch",s6A=d.forwardRef((A,e)=>{const t=d.useContext(EY),r=d.useRef(null),n=uf(e,r);return d.useEffect(()=>{const o=r.current;if(o)return t.branches.add(o),()=>{t.branches.delete(o)}},[t.branches]),Q.jsx(Cn.div,{...A,ref:n})});s6A.displayName=a6A;function l6A(A,e=globalThis==null?void 0:globalThis.document){const t=ff(A),r=d.useRef(!1),n=d.useRef(()=>{});return d.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let s=function(){QY(o6A,t,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",n.current),n.current=s,e.addEventListener("click",n.current,{once:!0})):s()}else e.removeEventListener("click",n.current);r.current=!1},i=window.setTimeout(()=>{e.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),e.removeEventListener("pointerdown",o),e.removeEventListener("click",n.current)}},[e,t]),{onPointerDownCapture:()=>r.current=!0}}function c6A(A,e=globalThis==null?void 0:globalThis.document){const t=ff(A),r=d.useRef(!1);return d.useEffect(()=>{const n=o=>{o.target&&!r.current&&QY(i6A,t,{originalEvent:o},{discrete:!1})};return e.addEventListener("focusin",n),()=>e.removeEventListener("focusin",n)},[e,t]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function mY(){const A=new CustomEvent(x_);document.dispatchEvent(A)}function QY(A,e,t,{discrete:r}){const n=t.originalEvent.target,o=new CustomEvent(A,{bubbles:!1,cancelable:!0,detail:t});e&&n.addEventListener(A,e,{once:!0}),r?t6A(n,o):n.dispatchEvent(o)}var k_="focusScope.autoFocusOnMount",__="focusScope.autoFocusOnUnmount",wY={bubbles:!1,cancelable:!0},u6A="FocusScope",IY=d.forwardRef((A,e)=>{const{loop:t=!1,trapped:r=!1,onMountAutoFocus:n,onUnmountAutoFocus:o,...i}=A,[a,s]=d.useState(null),l=ff(n),c=ff(o),u=d.useRef(null),g=uf(e,E=>s(E)),h=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let E=function(v){if(h.paused||!a)return;const y=v.target;a.contains(y)?u.current=y:Ic(u.current,{select:!0})},C=function(v){if(h.paused||!a)return;const y=v.relatedTarget;y!==null&&(a.contains(y)||Ic(u.current,{select:!0}))},m=function(v){if(document.activeElement===document.body)for(const x of v)x.removedNodes.length>0&&Ic(a)};document.addEventListener("focusin",E),document.addEventListener("focusout",C);const I=new MutationObserver(m);return a&&I.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",C),I.disconnect()}}},[r,a,h.paused]),d.useEffect(()=>{if(a){yY.add(h);const E=document.activeElement;if(!a.contains(E)){const m=new CustomEvent(k_,wY);a.addEventListener(k_,l),a.dispatchEvent(m),m.defaultPrevented||(f6A(B6A(vY(a)),{select:!0}),document.activeElement===E&&Ic(a))}return()=>{a.removeEventListener(k_,l),setTimeout(()=>{const m=new CustomEvent(__,wY);a.addEventListener(__,c),a.dispatchEvent(m),m.defaultPrevented||Ic(E??document.body,{select:!0}),a.removeEventListener(__,c),yY.remove(h)},0)}}},[a,l,c,h]);const B=d.useCallback(E=>{if(!t&&!r||h.paused)return;const C=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,m=document.activeElement;if(C&&m){const I=E.currentTarget,[v,y]=g6A(I);v&&y?!E.shiftKey&&m===y?(E.preventDefault(),t&&Ic(v,{select:!0})):E.shiftKey&&m===v&&(E.preventDefault(),t&&Ic(y,{select:!0})):m===I&&E.preventDefault()}},[t,r,h.paused]);return Q.jsx(Cn.div,{tabIndex:-1,...i,ref:g,onKeyDown:B})});IY.displayName=u6A;function f6A(A,{select:e=!1}={}){const t=document.activeElement;for(const r of A)if(Ic(r,{select:e}),document.activeElement!==t)return}function g6A(A){const e=vY(A),t=DY(e,A),r=DY(e.reverse(),A);return[t,r]}function vY(A){const e=[],t=document.createTreeWalker(A,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const n=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||n?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)e.push(t.currentNode);return e}function DY(A,e){for(const t of A)if(!d6A(t,{upTo:e}))return t}function d6A(A,{upTo:e}){if(getComputedStyle(A).visibility==="hidden")return!0;for(;A;){if(e!==void 0&&A===e)return!1;if(getComputedStyle(A).display==="none")return!0;A=A.parentElement}return!1}function h6A(A){return A instanceof HTMLInputElement&&"select"in A}function Ic(A,{select:e=!1}={}){if(A&&A.focus){const t=document.activeElement;A.focus({preventScroll:!0}),A!==t&&h6A(A)&&e&&A.select()}}var yY=p6A();function p6A(){let A=[];return{add(e){const t=A[0];e!==t&&(t==null||t.pause()),A=bY(A,e),A.unshift(e)},remove(e){var t;A=bY(A,e),(t=A[0])==null||t.resume()}}}function bY(A,e){const t=[...A],r=t.indexOf(e);return r!==-1&&t.splice(r,1),t}function B6A(A){return A.filter(e=>e.tagName!=="A")}var E6A="Portal",xY=d.forwardRef((A,e)=>{var a;const{container:t,...r}=A,[n,o]=d.useState(!1);rI(()=>o(!0),[]);const i=t||n&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?yp.createPortal(Q.jsx(Cn.div,{...r,ref:e}),i):null});xY.displayName=E6A;function C6A(A,e){return d.useReducer((t,r)=>e[t][r]??t,A)}var nI=A=>{const{present:e,children:t}=A,r=m6A(e),n=typeof t=="function"?t({present:r.isPresent}):d.Children.only(t),o=uf(r.ref,Q6A(n));return typeof t=="function"||r.isPresent?d.cloneElement(n,{ref:o}):null};nI.displayName="Presence";function m6A(A){const[e,t]=d.useState(),r=d.useRef({}),n=d.useRef(A),o=d.useRef("none"),i=A?"mounted":"unmounted",[a,s]=C6A(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const l=oI(r.current);o.current=a==="mounted"?l:"none"},[a]),rI(()=>{const l=r.current,c=n.current;if(c!==A){const g=o.current,h=oI(l);A?s("MOUNT"):h==="none"||(l==null?void 0:l.display)==="none"?s("UNMOUNT"):s(c&&g!==h?"ANIMATION_OUT":"UNMOUNT"),n.current=A}},[A,s]),rI(()=>{if(e){let l;const c=e.ownerDocument.defaultView??window,u=h=>{const E=oI(r.current).includes(h.animationName);if(h.target===e&&E&&(s("ANIMATION_END"),!n.current)){const C=e.style.animationFillMode;e.style.animationFillMode="forwards",l=c.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=C)})}},g=h=>{h.target===e&&(o.current=oI(r.current))};return e.addEventListener("animationstart",g),e.addEventListener("animationcancel",u),e.addEventListener("animationend",u),()=>{c.clearTimeout(l),e.removeEventListener("animationstart",g),e.removeEventListener("animationcancel",u),e.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:d.useCallback(l=>{l&&(r.current=getComputedStyle(l)),t(l)},[])}}function oI(A){return(A==null?void 0:A.animationName)||"none"}function Q6A(A){var r,n;let e=(r=Object.getOwnPropertyDescriptor(A.props,"ref"))==null?void 0:r.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?A.ref:(e=(n=Object.getOwnPropertyDescriptor(A,"ref"))==null?void 0:n.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?A.props.ref:A.props.ref||A.ref)}var M_=0;function w6A(){d.useEffect(()=>{const A=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",A[0]??kY()),document.body.insertAdjacentElement("beforeend",A[1]??kY()),M_++,()=>{M_===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),M_--}},[])}function kY(){const A=document.createElement("span");return A.setAttribute("data-radix-focus-guard",""),A.tabIndex=0,A.style.outline="none",A.style.opacity="0",A.style.position="fixed",A.style.pointerEvents="none",A}var _Y=KQ(),S_=function(){},iI=d.forwardRef(function(A,e){var t=d.useRef(null),r=d.useState({onScrollCapture:S_,onWheelCapture:S_,onTouchMoveCapture:S_}),n=r[0],o=r[1],i=A.forwardProps,a=A.children,s=A.className,l=A.removeScrollBar,c=A.enabled,u=A.shards,g=A.sideCar,h=A.noIsolation,B=A.inert,E=A.allowPinchZoom,C=A.as,m=C===void 0?"div":C,I=A.gapMode,v=kB(A,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),y=g,x=UQ([t,e]),b=bt(bt({},v),n);return d.createElement(d.Fragment,null,c&&d.createElement(y,{sideCar:_Y,removeScrollBar:l,shards:u,noIsolation:h,inert:B,setCallbacks:o,allowPinchZoom:!!E,lockRef:t,gapMode:I}),i?d.cloneElement(d.Children.only(a),bt(bt({},b),{ref:x})):d.createElement(m,bt({},b,{className:s,ref:x}),a))});iI.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},iI.classNames={fullWidth:Xu,zeroRight:Vu};var N_=!1;if(typeof window<"u")try{var aI=Object.defineProperty({},"passive",{get:function(){return N_=!0,!0}});window.addEventListener("test",aI,aI),window.removeEventListener("test",aI,aI)}catch{N_=!1}var Pd=N_?{passive:!1}:!1,I6A=function(A){return A.tagName==="TEXTAREA"},MY=function(A,e){if(!(A instanceof Element))return!1;var t=window.getComputedStyle(A);return t[e]!=="hidden"&&!(t.overflowY===t.overflowX&&!I6A(A)&&t[e]==="visible")},v6A=function(A){return MY(A,"overflowY")},D6A=function(A){return MY(A,"overflowX")},SY=function(A,e){var t=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=NY(A,r);if(n){var o=RY(A,r),i=o[1],a=o[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==t.body);return!1},y6A=function(A){var e=A.scrollTop,t=A.scrollHeight,r=A.clientHeight;return[e,t,r]},b6A=function(A){var e=A.scrollLeft,t=A.scrollWidth,r=A.clientWidth;return[e,t,r]},NY=function(A,e){return A==="v"?v6A(e):D6A(e)},RY=function(A,e){return A==="v"?y6A(e):b6A(e)},x6A=function(A,e){return A==="h"&&e==="rtl"?-1:1},k6A=function(A,e,t,r,n){var o=x6A(A,window.getComputedStyle(e).direction),i=o*r,a=t.target,s=e.contains(a),l=!1,c=i>0,u=0,g=0;do{var h=RY(A,a),B=h[0],E=h[1],C=h[2],m=E-C-o*B;(B||m)&&NY(A,a)&&(u+=m,g+=B),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!s&&a!==document.body||s&&(e.contains(a)||e===a));return(c&&(Math.abs(u)<1||!n)||!c&&(Math.abs(g)<1||!n))&&(l=!0),l},sI=function(A){return"changedTouches"in A?[A.changedTouches[0].clientX,A.changedTouches[0].clientY]:[0,0]},PY=function(A){return[A.deltaX,A.deltaY]},TY=function(A){return A&&"current"in A?A.current:A},_6A=function(A,e){return A[0]===e[0]&&A[1]===e[1]},M6A=function(A){return`
|
|
@@ -553,7 +553,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
553
553
|
<Slot />
|
|
554
554
|
</Button>
|
|
555
555
|
</Component>
|
|
556
|
-
`),metadata:bJA},Ri={themeVars:`'{"padding-vertical-TableOfContentsItem": "var(--xmlui-padding-vertical-TableOfContentsItem)", "padding-horizontal-TableOfContentsItem": "var(--xmlui-padding-horizontal-TableOfContentsItem)", "padding-horizontal-TableOfContentsItem-level-1": "var(--xmlui-padding-horizontal-TableOfContentsItem-level-1)", "padding-horizontal-TableOfContentsItem-level-2": "var(--xmlui-padding-horizontal-TableOfContentsItem-level-2)", "padding-horizontal-TableOfContentsItem-level-3": "var(--xmlui-padding-horizontal-TableOfContentsItem-level-3)", "padding-horizontal-TableOfContentsItem-level-4": "var(--xmlui-padding-horizontal-TableOfContentsItem-level-4)", "padding-horizontal-TableOfContentsItem-level-5": "var(--xmlui-padding-horizontal-TableOfContentsItem-level-5)", "padding-horizontal-TableOfContentsItem-level-6": "var(--xmlui-padding-horizontal-TableOfContentsItem-level-6)", "color-bg-TableOfContents": "var(--xmlui-color-bg-TableOfContents)", "width-TableOfContents": "var(--xmlui-width-TableOfContents)", "height-TableOfContents": "var(--xmlui-height-TableOfContents)", "border-radius-TableOfContents": "var(--xmlui-border-radius-TableOfContents)", "color-border-TableOfContents": "var(--xmlui-color-border-TableOfContents)", "thickness-border-TableOfContents": "var(--xmlui-thickness-border-TableOfContents)", "style-border-TableOfContents": "var(--xmlui-style-border-TableOfContents)", "margin-top-TableOfContents": "var(--xmlui-margin-top-TableOfContents)", "margin-bottom-TableOfContents": "var(--xmlui-margin-bottom-TableOfContents)", "padding-vertical-TableOfContents": "var(--xmlui-padding-vertical-TableOfContents)", "padding-horizontal-TableOfContents": "var(--xmlui-padding-horizontal-TableOfContents)", "border-width-TableOfContentsItem": "var(--xmlui-border-width-TableOfContentsItem)", "border-style-TableOfContentsItem": "var(--xmlui-border-style-TableOfContentsItem)", "border-color-TableOfContentsItem": "var(--xmlui-border-color-TableOfContentsItem)", "color-TableOfContentsItem": "var(--xmlui-color-TableOfContentsItem)", "font-size-TableOfContentsItem": "var(--xmlui-font-size-TableOfContentsItem)", "font-weight-TableOfContentsItem": "var(--xmlui-font-weight-TableOfContentsItem)", "font-family-TableOfContentsItem": "var(--xmlui-font-family-TableOfContentsItem)", "transform-TableOfContentsItem": "var(--xmlui-transform-TableOfContentsItem)", "align-vertical-TableOfContentsItem": "var(--xmlui-align-vertical-TableOfContentsItem)", "letter-spacing-TableOfContentsItem": "var(--xmlui-letter-spacing-TableOfContentsItem)", "border-color-TableOfContentsItem--active": "var(--xmlui-border-color-TableOfContentsItem--active)", "color-TableOfContentsItem--active": "var(--xmlui-color-TableOfContentsItem--active)", "font-weight-TableOfContentsItem--active": "var(--xmlui-font-weight-TableOfContentsItem--active)"}'`,nav:"_nav_1soaw_13",list:"_list_1soaw_35",listItem:"_listItem_1soaw_40",link:"_link_1soaw_44",head_1:"_head_1_1soaw_56",head_2:"_head_2_1soaw_59",head_3:"_head_3_1soaw_62",head_4:"_head_4_1soaw_65",head_5:"_head_5_1soaw_68",head_6:"_head_6_1soaw_71",active:"_active_1soaw_74"},kJA=d.forwardRef(function({style:e,smoothScrolling:t},r){const n=d.useRef(null),{headings:o,setObserveIntersection:i,activeAnchorId:a,setActiveAnchorId:s}=j4A(),l=r?Zr(n,r):n;return d.useEffect(()=>{i(!0)},[i]),d.useEffect(()=>{if(a&&(n!=null&&n.current)){const c=n.current.querySelector(`#${a}`);c&&t4(c,{block:"center",inline:"center",behavior:"smooth",scrollMode:"always",boundary:n.current})}},[a,o]),Q.jsx("div",{className:Ri.nav,ref:l,style:e,children:Q.jsx("ul",{className:Ri.list,children:o.map(c=>Q.jsx("li",{className:_n(Ri.listItem,{[Ri.active]:c.id===a}),children:Q.jsx(qb,{className:_n(Ri.link,{[Ri.head_1]:c.level===1,[Ri.head_2]:c.level===2,[Ri.head_3]:c.level===3,[Ri.head_4]:c.level===4,[Ri.head_5]:c.level===5,[Ri.head_6]:c.level===6}),to:`#${c.id}`,onClick:()=>{t&&t4(c.anchor,{block:"start",inline:"start",behavior:"smooth",scrollMode:"if-needed"}),s(c.id)},id:c.id,children:c.text})},c.id))})})}),Ge="TableOfContents",_JA=kA({status:"experimental",description:`The \`${Ge}\` component collects headings and bookmarks within the current page and displays them in a tree representing their hierarchy. When you select an item in this tree, the component navigates the page to the selected position.`,props:{smoothScrolling:j("This property indicates that smooth scrolling is used while scrolling the selected table of contents items into view.")},themeVars:ne(Ri.themeVars),defaultThemeVars:{[`width-${Ge}`]:"auto",[`height-${Ge}`]:"auto",[`font-size-${Ge}Item`]:"$font-size-smaller",[`font-weight-${Ge}Item`]:"$font-weight-normal",[`font-family-${Ge}Item`]:"$font-family",[`border-radius-${Ge}Item`]:"0",[`border-width-${Ge}Item`]:"$space-0_5",[`border-style-${Ge}Item`]:"solid",[`border-radius-${Ge}Item--active`]:"0",[`border-width-${Ge}Item--active`]:"$space-0_5",[`border-style-${Ge}Item--active`]:"solid",[`font-weight-${Ge}Item--active`]:"$font-weight-bold",[`color-bg-${Ge}`]:"transparent",[`padding-horizontal-${Ge}`]:"$space-8",[`padding-vertical-${Ge}`]:"$space-4",[`padding-horizontal-${Ge}Item`]:"$space-2",[`padding-vertical-${Ge}Item`]:"$space-2",[`padding-horizontal-${Ge}Item-level-1`]:"unset",[`padding-horizontal-${Ge}Item-level-2`]:"unset",[`padding-horizontal-${Ge}Item-level-3`]:"unset",[`padding-horizontal-${Ge}Item-level-4`]:"unset",[`padding-horizontal-${Ge}Item-level-5`]:"unset",[`padding-horizontal-${Ge}Item-level-6`]:"unset",[`margin-top-${Ge}`]:"0",[`margin-bottom-${Ge}`]:"0",[`border-radius-${Ge}`]:"0",[`border-width-${Ge}`]:"0",[`border-color-${Ge}`]:"transparent",[`border-style-${Ge}`]:"solid",[`transform-${Ge}Item`]:"none",[`align-vertical-${Ge}Item`]:"baseline",[`letter-spacing-${Ge}Item`]:"0",light:{[`color-${Ge}Item`]:"$color-text-primary",[`border-color-${Ge}Item`]:"$color-border",[`border-color-${Ge}Item--active`]:"$color-primary-500",[`color-${Ge}Item--active`]:"$color-primary-500"},dark:{[`color-${Ge}Item`]:"$color-text-primary",[`border-color-${Ge}Item`]:"$color-border",[`border-color-${Ge}Item--active`]:"$color-primary-500",[`color-${Ge}Item--active`]:"$color-text-secondary"}}}),MJA=RA(Ge,_JA,({layoutCss:A,node:e,extractValue:t})=>{var r;return Q.jsx(kJA,{style:A,smoothScrolling:t.asOptionalBoolean((r=e.props)==null?void 0:r.smoothScrolling)})}),Cl={themeVars:`'{"radius-Accordion": "var(--xmlui-radius-Accordion)", "color-border-Accordion": "var(--xmlui-color-border-Accordion)", "thickness-border-Accordion": "var(--xmlui-thickness-border-Accordion)", "style-border-Accordion": "var(--xmlui-style-border-Accordion)", "align-vertical-header-Accordion": "var(--xmlui-align-vertical-header-Accordion)", "font-size-header-Accordion": "var(--xmlui-font-size-header-Accordion)", "font-weight-header-Accordion": "var(--xmlui-font-weight-header-Accordion)", "font-style-header-Accordion": "var(--xmlui-font-style-header-Accordion)", "padding-vertical-header-Accordion": "var(--xmlui-padding-vertical-header-Accordion)", "padding-horizontal-header-Accordion": "var(--xmlui-padding-horizontal-header-Accordion)", "color-bg-header-Accordion": "var(--xmlui-color-bg-header-Accordion)", "color-header-Accordion": "var(--xmlui-color-header-Accordion)", "color-bg-header-Accordion-hover": "var(--xmlui-color-bg-header-Accordion-hover)", "color-content-Accordion": "var(--xmlui-color-content-Accordion)", "color-bg-content-Accordion": "var(--xmlui-color-bg-content-Accordion)", "width-icon-Accordion": "var(--xmlui-width-icon-Accordion)", "height-icon-Accordion": "var(--xmlui-height-icon-Accordion)", "color-icon-Accordion": "var(--xmlui-color-icon-Accordion)"}'`,root:"_root_lik78_13",item:"_item_lik78_24",header:"_header_lik78_43",trigger:"_trigger_lik78_48",triggerStart:"_triggerStart_lik78_66",contentWrapper:"_contentWrapper_lik78_70",slideDown:"_slideDown_lik78_1",slideUp:"_slideUp_lik78_1",content:"_content_lik78_70",chevron:"_chevron_lik78_86"};function hV(A,e=[]){let t=[];function r(o,i){const a=d.createContext(i),s=t.length;t=[...t,i];function l(u){const{scope:g,children:h,...B}=u,E=(g==null?void 0:g[A][s])||a,C=d.useMemo(()=>B,Object.values(B));return Q.jsx(E.Provider,{value:C,children:h})}function c(u,g){const h=(g==null?void 0:g[A][s])||a,B=d.useContext(h);if(B)return B;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${o}\``)}return l.displayName=o+"Provider",[l,c]}const n=()=>{const o=t.map(i=>d.createContext(i));return function(a){const s=(a==null?void 0:a[A])||o;return d.useMemo(()=>({[`__scope${A}`]:{...a,[A]:s}}),[a,s])}};return n.scopeName=A,[r,SJA(n,...e)]}function SJA(...A){const e=A[0];if(A.length===1)return e;const t=()=>{const r=A.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(o){const i=r.reduce((a,{useScope:s,scopeName:l})=>{const u=s(o)[`__scope${l}`];return{...a,...u}},{});return d.useMemo(()=>({[`__scope${e.scopeName}`]:i}),[i])}};return t.scopeName=e.scopeName,t}function NJA(A,e){typeof A=="function"?A(e):A!=null&&(A.current=e)}function pV(...A){return e=>A.forEach(t=>NJA(t,e))}function lM(...A){return d.useCallback(pV(...A),A)}var h1=d.forwardRef((A,e)=>{const{children:t,...r}=A,n=d.Children.toArray(t),o=n.find(PJA);if(o){const i=o.props.children,a=n.map(s=>s===o?d.Children.count(i)>1?d.Children.only(null):d.isValidElement(i)?i.props.children:null:s);return Q.jsx(cM,{...r,ref:e,children:d.isValidElement(i)?d.cloneElement(i,void 0,a):null})}return Q.jsx(cM,{...r,ref:e,children:t})});h1.displayName="Slot";var cM=d.forwardRef((A,e)=>{const{children:t,...r}=A;if(d.isValidElement(t)){const n=LJA(t);return d.cloneElement(t,{...TJA(r,t.props),ref:e?pV(e,n):n})}return d.Children.count(t)>1?d.Children.only(null):null});cM.displayName="SlotClone";var RJA=({children:A})=>Q.jsx(Q.Fragment,{children:A});function PJA(A){return d.isValidElement(A)&&A.type===RJA}function TJA(A,e){const t={...e};for(const r in e){const n=A[r],o=e[r];/^on[A-Z]/.test(r)?n&&o?t[r]=(...a)=>{o(...a),n(...a)}:n&&(t[r]=n):r==="style"?t[r]={...n,...o}:r==="className"&&(t[r]=[n,o].filter(Boolean).join(" "))}return{...A,...t}}function LJA(A){var r,n;let e=(r=Object.getOwnPropertyDescriptor(A.props,"ref"))==null?void 0:r.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?A.ref:(e=(n=Object.getOwnPropertyDescriptor(A,"ref"))==null?void 0:n.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?A.props.ref:A.props.ref||A.ref)}function FJA(A){const e=A+"CollectionProvider",[t,r]=hV(e),[n,o]=t(e,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:B,children:E}=h,C=_A.useRef(null),m=_A.useRef(new Map).current;return Q.jsx(n,{scope:B,itemMap:m,collectionRef:C,children:E})};i.displayName=e;const a=A+"CollectionSlot",s=_A.forwardRef((h,B)=>{const{scope:E,children:C}=h,m=o(a,E),I=lM(B,m.collectionRef);return Q.jsx(h1,{ref:I,children:C})});s.displayName=a;const l=A+"CollectionItemSlot",c="data-radix-collection-item",u=_A.forwardRef((h,B)=>{const{scope:E,children:C,...m}=h,I=_A.useRef(null),v=lM(B,I),y=o(l,E);return _A.useEffect(()=>(y.itemMap.set(I,{ref:I,...m}),()=>void y.itemMap.delete(I))),Q.jsx(h1,{[c]:"",ref:v,children:C})});u.displayName=l;function g(h){const B=o(A+"CollectionConsumer",h);return _A.useCallback(()=>{const C=B.collectionRef.current;if(!C)return[];const m=Array.from(C.querySelectorAll(`[${c}]`));return Array.from(B.itemMap.values()).sort((y,x)=>m.indexOf(y.ref.current)-m.indexOf(x.ref.current))},[B.collectionRef,B.itemMap])}return[{Provider:i,Slot:s,ItemSlot:u},g,r]}function OJA(A,e,{checkForDefaultPrevented:t=!0}={}){return function(n){if(A==null||A(n),t===!1||!n.defaultPrevented)return e==null?void 0:e(n)}}function BV(A){const e=d.useRef(A);return d.useEffect(()=>{e.current=A}),d.useMemo(()=>(...t)=>{var r;return(r=e.current)==null?void 0:r.call(e,...t)},[])}function EV({prop:A,defaultProp:e,onChange:t=()=>{}}){const[r,n]=HJA({defaultProp:e,onChange:t}),o=A!==void 0,i=o?A:r,a=BV(t),s=d.useCallback(l=>{if(o){const u=typeof l=="function"?l(A):l;u!==A&&a(u)}else n(l)},[o,A,n,a]);return[i,s]}function HJA({defaultProp:A,onChange:e}){const t=d.useState(A),[r]=t,n=d.useRef(r),o=BV(e);return d.useEffect(()=>{n.current!==r&&(o(r),n.current=r)},[r,n,o]),t}var GJA=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],CV=GJA.reduce((A,e)=>{const t=d.forwardRef((r,n)=>{const{asChild:o,...i}=r,a=o?h1:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Q.jsx(a,{...i,ref:n})});return t.displayName=`Primitive.${e}`,{...A,[e]:t}},{});function UJA(A,e,{checkForDefaultPrevented:t=!0}={}){return function(n){if(A==null||A(n),t===!1||!n.defaultPrevented)return e==null?void 0:e(n)}}function KJA(A,e=[]){let t=[];function r(o,i){const a=d.createContext(i),s=t.length;t=[...t,i];function l(u){const{scope:g,children:h,...B}=u,E=(g==null?void 0:g[A][s])||a,C=d.useMemo(()=>B,Object.values(B));return Q.jsx(E.Provider,{value:C,children:h})}function c(u,g){const h=(g==null?void 0:g[A][s])||a,B=d.useContext(h);if(B)return B;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${o}\``)}return l.displayName=o+"Provider",[l,c]}const n=()=>{const o=t.map(i=>d.createContext(i));return function(a){const s=(a==null?void 0:a[A])||o;return d.useMemo(()=>({[`__scope${A}`]:{...a,[A]:s}}),[a,s])}};return n.scopeName=A,[r,YJA(n,...e)]}function YJA(...A){const e=A[0];if(A.length===1)return e;const t=()=>{const r=A.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(o){const i=r.reduce((a,{useScope:s,scopeName:l})=>{const u=s(o)[`__scope${l}`];return{...a,...u}},{});return d.useMemo(()=>({[`__scope${e.scopeName}`]:i}),[i])}};return t.scopeName=e.scopeName,t}function mV(A){const e=d.useRef(A);return d.useEffect(()=>{e.current=A}),d.useMemo(()=>(...t)=>{var r;return(r=e.current)==null?void 0:r.call(e,...t)},[])}function $JA({prop:A,defaultProp:e,onChange:t=()=>{}}){const[r,n]=jJA({defaultProp:e,onChange:t}),o=A!==void 0,i=o?A:r,a=mV(t),s=d.useCallback(l=>{if(o){const u=typeof l=="function"?l(A):l;u!==A&&a(u)}else n(l)},[o,A,n,a]);return[i,s]}function jJA({defaultProp:A,onChange:e}){const t=d.useState(A),[r]=t,n=d.useRef(r),o=mV(e);return d.useEffect(()=>{n.current!==r&&(o(r),n.current=r)},[r,n,o]),t}var p1=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{};function qJA(A,e){typeof A=="function"?A(e):A!=null&&(A.current=e)}function QV(...A){return e=>A.forEach(t=>qJA(t,e))}function wV(...A){return d.useCallback(QV(...A),A)}var IV=d.forwardRef((A,e)=>{const{children:t,...r}=A,n=d.Children.toArray(t),o=n.find(zJA);if(o){const i=o.props.children,a=n.map(s=>s===o?d.Children.count(i)>1?d.Children.only(null):d.isValidElement(i)?i.props.children:null:s);return Q.jsx(uM,{...r,ref:e,children:d.isValidElement(i)?d.cloneElement(i,void 0,a):null})}return Q.jsx(uM,{...r,ref:e,children:t})});IV.displayName="Slot";var uM=d.forwardRef((A,e)=>{const{children:t,...r}=A;if(d.isValidElement(t)){const n=VJA(t);return d.cloneElement(t,{...WJA(r,t.props),ref:e?QV(e,n):n})}return d.Children.count(t)>1?d.Children.only(null):null});uM.displayName="SlotClone";var JJA=({children:A})=>Q.jsx(Q.Fragment,{children:A});function zJA(A){return d.isValidElement(A)&&A.type===JJA}function WJA(A,e){const t={...e};for(const r in e){const n=A[r],o=e[r];/^on[A-Z]/.test(r)?n&&o?t[r]=(...a)=>{o(...a),n(...a)}:n&&(t[r]=n):r==="style"?t[r]={...n,...o}:r==="className"&&(t[r]=[n,o].filter(Boolean).join(" "))}return{...A,...t}}function VJA(A){var r,n;let e=(r=Object.getOwnPropertyDescriptor(A.props,"ref"))==null?void 0:r.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?A.ref:(e=(n=Object.getOwnPropertyDescriptor(A,"ref"))==null?void 0:n.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?A.props.ref:A.props.ref||A.ref)}var XJA=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],fM=XJA.reduce((A,e)=>{const t=d.forwardRef((r,n)=>{const{asChild:o,...i}=r,a=o?IV:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Q.jsx(a,{...i,ref:n})});return t.displayName=`Primitive.${e}`,{...A,[e]:t}},{});function ZJA(A,e){return d.useReducer((t,r)=>e[t][r]??t,A)}var vV=A=>{const{present:e,children:t}=A,r=AzA(e),n=typeof t=="function"?t({present:r.isPresent}):d.Children.only(t),o=wV(r.ref,ezA(n));return typeof t=="function"||r.isPresent?d.cloneElement(n,{ref:o}):null};vV.displayName="Presence";function AzA(A){const[e,t]=d.useState(),r=d.useRef({}),n=d.useRef(A),o=d.useRef("none"),i=A?"mounted":"unmounted",[a,s]=ZJA(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const l=B1(r.current);o.current=a==="mounted"?l:"none"},[a]),p1(()=>{const l=r.current,c=n.current;if(c!==A){const g=o.current,h=B1(l);A?s("MOUNT"):h==="none"||(l==null?void 0:l.display)==="none"?s("UNMOUNT"):s(c&&g!==h?"ANIMATION_OUT":"UNMOUNT"),n.current=A}},[A,s]),p1(()=>{if(e){const l=u=>{const h=B1(r.current).includes(u.animationName);u.target===e&&h&&Dr.flushSync(()=>s("ANIMATION_END"))},c=u=>{u.target===e&&(o.current=B1(r.current))};return e.addEventListener("animationstart",c),e.addEventListener("animationcancel",l),e.addEventListener("animationend",l),()=>{e.removeEventListener("animationstart",c),e.removeEventListener("animationcancel",l),e.removeEventListener("animationend",l)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:d.useCallback(l=>{l&&(r.current=getComputedStyle(l)),t(l)},[])}}function B1(A){return(A==null?void 0:A.animationName)||"none"}function ezA(A){var r,n;let e=(r=Object.getOwnPropertyDescriptor(A.props,"ref"))==null?void 0:r.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?A.ref:(e=(n=Object.getOwnPropertyDescriptor(A,"ref"))==null?void 0:n.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?A.props.ref:A.props.ref||A.ref)}var tzA=Ps.useId||(()=>{}),rzA=0;function nzA(A){const[e,t]=d.useState(tzA());return p1(()=>{A||t(r=>r??String(rzA++))},[A]),A||(e?`radix-${e}`:"")}var gM="Collapsible",[ozA,DV]=KJA(gM),[izA,dM]=ozA(gM),yV=d.forwardRef((A,e)=>{const{__scopeCollapsible:t,open:r,defaultOpen:n,disabled:o,onOpenChange:i,...a}=A,[s=!1,l]=$JA({prop:r,defaultProp:n,onChange:i});return Q.jsx(izA,{scope:t,disabled:o,contentId:nzA(),open:s,onOpenToggle:d.useCallback(()=>l(c=>!c),[l]),children:Q.jsx(fM.div,{"data-state":pM(s),"data-disabled":o?"":void 0,...a,ref:e})})});yV.displayName=gM;var bV="CollapsibleTrigger",xV=d.forwardRef((A,e)=>{const{__scopeCollapsible:t,...r}=A,n=dM(bV,t);return Q.jsx(fM.button,{type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":pM(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...r,ref:e,onClick:UJA(A.onClick,n.onOpenToggle)})});xV.displayName=bV;var hM="CollapsibleContent",kV=d.forwardRef((A,e)=>{const{forceMount:t,...r}=A,n=dM(hM,A.__scopeCollapsible);return Q.jsx(vV,{present:t||n.open,children:({present:o})=>Q.jsx(azA,{...r,ref:e,present:o})})});kV.displayName=hM;var azA=d.forwardRef((A,e)=>{const{__scopeCollapsible:t,present:r,children:n,...o}=A,i=dM(hM,t),[a,s]=d.useState(r),l=d.useRef(null),c=wV(e,l),u=d.useRef(0),g=u.current,h=d.useRef(0),B=h.current,E=i.open||a,C=d.useRef(E),m=d.useRef();return d.useEffect(()=>{const I=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(I)},[]),p1(()=>{const I=l.current;if(I){m.current=m.current||{transitionDuration:I.style.transitionDuration,animationName:I.style.animationName},I.style.transitionDuration="0s",I.style.animationName="none";const v=I.getBoundingClientRect();u.current=v.height,h.current=v.width,C.current||(I.style.transitionDuration=m.current.transitionDuration,I.style.animationName=m.current.animationName),s(r)}},[i.open,r]),Q.jsx(fM.div,{"data-state":pM(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!E,...o,ref:c,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":B?`${B}px`:void 0,...A.style},children:E&&n})});function pM(A){return A?"open":"closed"}var szA=yV,lzA=xV,czA=kV,uzA=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{},fzA=Ps.useId||(()=>{}),gzA=0;function dzA(A){const[e,t]=d.useState(fzA());return uzA(()=>{t(r=>r??String(gzA++))},[A]),e?`radix-${e}`:""}var hzA=d.createContext(void 0);function pzA(A){const e=d.useContext(hzA);return A||e||"ltr"}var ml="Accordion",BzA=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[BM,EzA,CzA]=FJA(ml),[E1,G1e]=hV(ml,[CzA,DV]),EM=DV(),_V=_A.forwardRef((A,e)=>{const{type:t,...r}=A,n=r,o=r;return Q.jsx(BM.Provider,{scope:A.__scopeAccordion,children:t==="multiple"?Q.jsx(IzA,{...o,ref:e}):Q.jsx(wzA,{...n,ref:e})})});_V.displayName=ml;var[MV,mzA]=E1(ml),[SV,QzA]=E1(ml,{collapsible:!1}),wzA=_A.forwardRef((A,e)=>{const{value:t,defaultValue:r,onValueChange:n=()=>{},collapsible:o=!1,...i}=A,[a,s]=EV({prop:t,defaultProp:r,onChange:n});return Q.jsx(MV,{scope:A.__scopeAccordion,value:a?[a]:[],onItemOpen:s,onItemClose:_A.useCallback(()=>o&&s(""),[o,s]),children:Q.jsx(SV,{scope:A.__scopeAccordion,collapsible:o,children:Q.jsx(NV,{...i,ref:e})})})}),IzA=_A.forwardRef((A,e)=>{const{value:t,defaultValue:r,onValueChange:n=()=>{},...o}=A,[i=[],a]=EV({prop:t,defaultProp:r,onChange:n}),s=_A.useCallback(c=>a((u=[])=>[...u,c]),[a]),l=_A.useCallback(c=>a((u=[])=>u.filter(g=>g!==c)),[a]);return Q.jsx(MV,{scope:A.__scopeAccordion,value:i,onItemOpen:s,onItemClose:l,children:Q.jsx(SV,{scope:A.__scopeAccordion,collapsible:!0,children:Q.jsx(NV,{...o,ref:e})})})}),[vzA,C1]=E1(ml),NV=_A.forwardRef((A,e)=>{const{__scopeAccordion:t,disabled:r,dir:n,orientation:o="vertical",...i}=A,a=_A.useRef(null),s=lM(a,e),l=EzA(t),u=pzA(n)==="ltr",g=OJA(A.onKeyDown,h=>{var M;if(!BzA.includes(h.key))return;const B=h.target,E=l().filter(N=>{var F;return!((F=N.ref.current)!=null&&F.disabled)}),C=E.findIndex(N=>N.ref.current===B),m=E.length;if(C===-1)return;h.preventDefault();let I=C;const v=0,y=m-1,x=()=>{I=C+1,I>y&&(I=v)},b=()=>{I=C-1,I<v&&(I=y)};switch(h.key){case"Home":I=v;break;case"End":I=y;break;case"ArrowRight":o==="horizontal"&&(u?x():b());break;case"ArrowDown":o==="vertical"&&x();break;case"ArrowLeft":o==="horizontal"&&(u?b():x());break;case"ArrowUp":o==="vertical"&&b();break}const k=I%m;(M=E[k].ref.current)==null||M.focus()});return Q.jsx(vzA,{scope:t,disabled:r,direction:n,orientation:o,children:Q.jsx(BM.Slot,{scope:t,children:Q.jsx(CV.div,{...i,"data-orientation":o,ref:s,onKeyDown:r?void 0:g})})})}),m1="AccordionItem",[DzA,CM]=E1(m1),RV=_A.forwardRef((A,e)=>{const{__scopeAccordion:t,value:r,...n}=A,o=C1(m1,t),i=mzA(m1,t),a=EM(t),s=dzA(),l=r&&i.value.includes(r)||!1,c=o.disabled||A.disabled;return Q.jsx(DzA,{scope:t,open:l,disabled:c,triggerId:s,children:Q.jsx(szA,{"data-orientation":o.orientation,"data-state":HV(l),...a,...n,ref:e,disabled:c,open:l,onOpenChange:u=>{u?i.onItemOpen(r):i.onItemClose(r)}})})});RV.displayName=m1;var PV="AccordionHeader",TV=_A.forwardRef((A,e)=>{const{__scopeAccordion:t,...r}=A,n=C1(ml,t),o=CM(PV,t);return Q.jsx(CV.h3,{"data-orientation":n.orientation,"data-state":HV(o.open),"data-disabled":o.disabled?"":void 0,...r,ref:e})});TV.displayName=PV;var mM="AccordionTrigger",LV=_A.forwardRef((A,e)=>{const{__scopeAccordion:t,...r}=A,n=C1(ml,t),o=CM(mM,t),i=QzA(mM,t),a=EM(t);return Q.jsx(BM.ItemSlot,{scope:t,children:Q.jsx(lzA,{"aria-disabled":o.open&&!i.collapsible||void 0,"data-orientation":n.orientation,id:o.triggerId,...a,...r,ref:e})})});LV.displayName=mM;var FV="AccordionContent",OV=_A.forwardRef((A,e)=>{const{__scopeAccordion:t,...r}=A,n=C1(ml,t),o=CM(FV,t),i=EM(t);return Q.jsx(czA,{role:"region","aria-labelledby":o.triggerId,"data-orientation":n.orientation,...i,...r,ref:e,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...A.style}})});OV.displayName=FV;function HV(A){return A?"open":"closed"}var yzA=_V,bzA=RV,xzA=TV,kzA=LV,_zA=OV;const GV=d.createContext({expandedItems:null,rotateExpanded:null,expandItem:ve,register:ve,unRegister:ve,hideIcon:null,expandedIcon:null,collapsedIcon:null,triggerPosition:null});function MzA(){return d.useContext(GV)}const SzA=d.forwardRef(function({style:e,children:t,hideIcon:r=!1,expandedIcon:n,collapsedIcon:o="chevrondown",triggerPosition:i="end",onDisplayDidChange:a=ve,registerComponentApi:s,rotateExpanded:l="180deg"},c){const[u,g]=d.useState([]),[h,B]=d.useState(new Set),E=d.useCallback(k=>{g(M=>M.filter(N=>N!==`${k}`))},[g]),C=d.useCallback(k=>{u.includes(`${k}`)||g(M=>[...M,`${k}`])},[g,u]),m=d.useCallback(k=>{u.includes(`${k}`)?E(k):C(k)},[g,u]),I=d.useCallback(k=>{B(M=>(M.add(k),M))},[B]),v=d.useCallback(k=>{B(M=>(M.delete(k),M))},[B]),y=d.useCallback(k=>{if(h.has(`trigger_${k}`)){const M=document.getElementById(`trigger_${k}`);M&&M.focus()}},[h]),x=d.useCallback(k=>u.includes(`${k}`),[u]);d.useEffect(()=>{s==null||s({expanded:x,expand:C,collapse:E,toggle:m,focus:y})},[s,C,E,m,y,x]);const b=d.useMemo(()=>({register:I,unRegister:v,expandItem:C,expandedItems:u,hideIcon:r,expandedIcon:n,collapsedIcon:o,triggerPosition:i,rotateExpanded:l}),[I,v,u,r,n,o,i,C,l]);return d.useEffect(()=>{a==null||a(u)},[u,a]),Q.jsx(GV.Provider,{value:b,children:Q.jsx(yzA,{style:e,ref:c,value:u,type:"multiple",className:Cl.root,onValueChange:k=>g(k),children:t})})}),st="Accordion",NzA=kA({status:"in progress",description:`(**NOT IMPLEMENTED YET**) The \`${st}\` component is a collapsible container that toggles the display of content sections. It helps organize information by expanding or collapsing it based on user interaction.`,props:{triggerPosition:j("This property indicates the position where the trigger icon should be displayed. The `start` value signs the trigger is before the header text (template), and `end` indicates that it follows the header.",EDA,null,"end"),collapsedIcon:j("This property is the name of the icon that is displayed when the accordion is collapsed."),expandedIcon:j("This property is the name of the icon that is displayed when the accordion is expanded."),hideIcon:j("This property indicates that the trigger icon is not displayed (`true`).",null,"boolean",!1),rotateExpanded:j("This optional property defines the rotation angle of the expanded icon (relative to the collapsed icon).")},events:{displayDidChange:lo(st)},apis:{expanded:RkA(st),expand:PkA(st),collapse:TkA(st),toggle:j(`This method toggles the state of the ${st} between expanded and collapsed.`),focus:es(st)},themeVars:ne(Cl.themeVars),defaultThemeVars:{[`padding-horizontal-header-${st}`]:"$space-3",[`padding-vertical-header-${st}`]:"$space-3",[`align-vertical-header-${st}`]:"center",[`font-size-header-${st}`]:"$font-size-normal",[`font-weight-header-${st}`]:"$font-weight-normal",[`font-family-header-${st}`]:"$font-family",[`radius-${st}`]:"$radius",[`thickness-border-${st}`]:"0",[`style-border-${st}`]:"solid",[`width-icon-${st}`]:"",[`height-icon-${st}`]:"",light:{[`color-bg-header-${st}`]:"$color-primary-500",[`color-bg-header-${st}-hover`]:"$color-primary-400",[`color-header-${st}`]:"$color-surface-50",[`color-content-${st}`]:"$color-text-primary",[`color-bg-content-${st}`]:"transparent",[`color-border-${st}`]:"transparent",[`color-icon-${st}`]:"$color-surface-50"},dark:{[`color-bg-header-${st}`]:"$color-primary-500",[`color-bg-header-${st}-hover`]:"$color-primary-600",[`color-header-${st}`]:"$color-surface-50",[`color-content-${st}`]:"$color-text-primary",[`color-bg-content-${st}`]:"transparent",[`color-border-${st}`]:"transparent",[`color-icon-${st}`]:"$color-surface-50"}}}),RzA=RA(st,NzA,({node:A,renderChild:e,extractValue:t,lookupEventHandler:r,registerComponentApi:n,layoutCss:o})=>{var i;return Q.jsx(SzA,{style:o,triggerPosition:t((i=A.props)==null?void 0:i.triggerPosition),collapsedIcon:t(A.props.collapsedIcon),expandedIcon:t(A.props.expandedIcon),hideIcon:t.asOptionalBoolean(A.props.hideIcon),rotateExpanded:t(A.props.rotateExpanded),onDisplayDidChange:r("displayDidChange"),registerComponentApi:n,children:e(A.children)})}),PzA={themeVars:'"[]"'},TzA=d.forwardRef(function({style:e},t){return Q.jsx("div",{ref:t,style:{backgroundColor:"orange",color:"white",padding:2,...e},children:"Alert component is not implemented yet"})}),_E="Alert",LzA=kA({status:"in progress",description:`(**NOT IMPLEMENTED YET**) The \`${_E}\` component is a panel used to display important notifications or feedback to users. It helps convey different statuses or levels of urgency, such as success, warning, error, and others.`,props:{statusColor:j(`The value of this optional property sets the string to provide a color scheme for the ${_E}.`,pDA,"string","primary"),dismissable:j(`This property's \`true\` value indicates if this alert is dismissable by the user. When the user closes the ${_E}, it gets hidden.`),autoDismissInMs:j("Timeout for the alert to be dismissed"),showIcon:j("Indicates if the alert should display an icon"),icon:j("Icon to be displayed in the alert")},events:{},apis:{dismiss:j(`This method dismisses the ${_E}. It triggers the \`didDismiss\` event with the argument set to \`false\`.`)},themeVars:ne(PzA.themeVars),defaultThemeVars:{light:{},dark:{}}}),FzA=RA(_E,LzA,({layoutCss:A})=>Q.jsx(TzA,{})),nn={themeVars:`'{"padding-OffCanvas": "var(--xmlui-padding-OffCanvas)", "padding-horizontal-OffCanvas": "var(--xmlui-padding-horizontal-OffCanvas)", "padding-vertical-OffCanvas": "var(--xmlui-padding-vertical-OffCanvas)", "shadow-vertical-OffCanvas": "var(--xmlui-shadow-vertical-OffCanvas)", "shadow-horizontal-OffCanvas": "var(--xmlui-shadow-horizontal-OffCanvas)", "color-bg-OffCanvas": "var(--xmlui-color-bg-OffCanvas)", "width-OffCanvas": "var(--xmlui-width-OffCanvas)", "margin-bottom-title-OffCanvas": "var(--xmlui-margin-bottom-title-OffCanvas)"}'`,overlay:"_overlay_c932c_13",overlayVisible:"_overlayVisible_c932c_26",offCanvas:"_offCanvas_c932c_31",right:"_right_c932c_46",left:"_left_c932c_53",top:"_top_c932c_60",bottom:"_bottom_c932c_69",open:"_open_c932c_78",button:"_button_c932c_82",closeButton:"_closeButton_c932c_92",spacer:"_spacer_c932c_103",offCanvasHeader:"_offCanvasHeader_c932c_108",offCanvasButtonSpace:"_offCanvasButtonSpace_c932c_115",offCanvasTitle:"_offCanvasTitle_c932c_119"},OzA=({title:A,isInitiallyOpen:e,onClose:t,placement:r="right",showCloseButton:n=!0,children:o,allowScroll:i=!0,showBackdrop:a=!1,style:s})=>{const[l,c]=d.useState(e),[u,g]=d.useState(r);return d.useEffect(()=>(l&&!i?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[l,i]),Q.jsxs(Q.Fragment,{children:[a&&Q.jsx("div",{className:KA(nn.overlay,{[nn.overlayVisible]:l}),onClick:t}),Q.jsxs("div",{className:KA(nn.offCanvas,{[nn.open]:l,[nn.left]:u==="left",[nn.right]:u==="right",[nn.top]:u==="top",[nn.bottom]:u==="bottom"}),style:s,children:[Q.jsxs("header",{className:nn.offCanvasHeader,children:[!!A&&Q.jsx("span",{className:nn.offCanvasTitle,children:A}),Q.jsx("div",{className:nn.spacer}),n&&Q.jsxs(Q.Fragment,{children:[u!=="left"&&Q.jsx("button",{className:nn.button,onClick:()=>{g("left")},children:"←"}),u!=="right"&&Q.jsx("button",{className:nn.button,onClick:()=>{g("right")},children:"→"}),u!=="top"&&Q.jsx("button",{className:nn.button,onClick:()=>{g("top")},children:"↑"}),u!=="bottom"&&Q.jsx("button",{className:nn.button,onClick:()=>{g("bottom")},children:"↓"}),Q.jsx("div",{className:nn.offCanvasButtonSpace}),Q.jsx("button",{className:nn.button,onClick:()=>{c(!1),t==null||t()},children:"×"})]})]}),o]})]})},ME="OffCanvas",HzA=kA({status:"in progress",description:"(**NOT IMPLEMENTED YET**) The `OffCanvas` component is a hidden panel that slides into view from the side of the screen. It helps display additional content or navigation without disrupting the main interface.",props:{title:j("This property sets the title of the component.",null,"string"),isInitiallyOpen:j("This property indicates if the component is initially open.",null,"boolean",!1),enableBackdrop:j("This property indicates if the backdrop is enabled when the component is displayed. When the backdrop is not enabled, clicking outside `OffCanvas` will not close it.",null,"boolean",!0),enableBodyScroll:j("This property indicates if the body scroll is enabled when the component is displayed.",null,"boolean",!1),noCloseOnBackdropClick:j(`When this property is set to \`true\`, the ${ME} does not close when the user clicks on its backdrop.`,null,"boolean",!1),placement:j(`This property indicates the position where the ${ME} should be docked to.`,BDA),autoCloseInMs:j("This property sets a timeout. When the timeout expires, the component gets hidden.")},events:{didOpen:LkA(ME),didClose:FkA(ME)},apis:{open:j("This method opens the component. It triggers the `didOpen` event with the argument set to `false`."),close:j("This method closes the component. It triggers the `didClose` event with the argument set to `false`.")},themeVars:ne(nn.themeVars),defaultThemeVars:{"width-OffCanvas":"600px","padding-OffCanvas":"$padding-tight","padding-vertical-OffCanvas":"$padding-tight","padding-horizontal-OffCanvas":"$padding-normal","color-bg-OffCanvas":"$color-bg","shadow-horizontal-OffCanvas":"0 2px 10px rgba(0, 0, 0, 0.2)","shadow-vertical-OffCanvas":"0 2px 10px rgba(0, 0, 0, 0.2)",light:{},dark:{}}}),GzA=RA(ME,HzA,({node:A,extractValue:e,lookupEventHandler:t,renderChild:r,layoutCss:n})=>Q.jsx(OzA,{style:n,title:e(A.props.title),isInitiallyOpen:e.asOptionalBoolean(A.props.isInitiallyOpen,!1),placement:e(A.props.placement),children:r(A.children)})),UzA=d.forwardRef(function({children:e,label:t,style:r},n){const o=d.useId(),{register:i,unRegister:a,activeTabId:s}=tJA();return d.useEffect(()=>{i({children:e,label:t,id:o})},[o,e,t,i]),d.useEffect(()=>()=>{a(o)},[o,a]),s!==o?null:Q.jsx(AJA,{value:o,className:ah.tabsContent,ref:n,style:r,children:e},o)}),QM="TabItem",KzA=kA({description:`\`${QM}\` is a non-visual component describing a tab. Tabs component may use nested ${QM} instances from which the user can select.`,props:{label:pn()}}),YzA=RA(QM,KzA,A=>{const{node:e,renderChild:t,extractValue:r}=A;return Q.jsx(UzA,{label:r(e.props.label),children:t(e.children)})}),$zA={themeVars:'"[]"'},jzA=d.forwardRef(function({style:e},t){return Q.jsx("div",{ref:t,style:{backgroundColor:"orangered",color:"white",padding:2,...e},children:"Range component is not implemented yet"})}),SE="Range",qzA=kA({status:"in progress",description:`(**NOT IMPLEMENTED YET**) The \`${SE}\` component allows you to select a numeric range (lower and upper boundary values) between the complete range specified by minimum and maximum values.`,props:{initialValue:j(""),minValue:j("This property specifies the minimum value of the entire value domain to select the lower and upper boundary range values.",null,"number",0),maxValue:j("This property specifies the maximum value of the entire value domain to select the lower and upper boundary range values.",null,"number",10),lowerInclusive:j("This boolean property specifies whether the lower boundary value is inclusive (`true`) or exclusive (`false`).",null,"boolean",!0),upperInclusive:j("This boolean property specifies whether the upper boundary value is inclusive (`true`) or exclusive (`false`).",null,"boolean",!0),complementary:j("This boolean property specifies whether the range is complementary to the selected set of values (`true`) or not (`false`). The value of this property is indicated visually.",null,"boolean",!1)},events:{didChange:j("This event is fired when a range boundary has been changed. The event parameters are the new lower and upper boundary values (in this order)."),getFocus:To(SE),dostFocus:Lo(SE)},apis:{focus:es(SE),value:j("You can query the component's value. The value is a two-item array with the lower (first) and upper (second) boundary values."),setValue:j("This method sets the component's lower and upper range values. The value must be a two-item array with the lower (first) and upper (second) boundary values.")},themeVars:ne($zA.themeVars),defaultThemeVars:{light:{},dark:{}}}),JzA=RA(SE,qzA,({node:A,extractValue:e,lookupEventHandler:t,layoutCss:r})=>Q.jsx(jzA,{}));function zzA(A){return Q.jsx("div",{children:A})}const WzA=d.forwardRef(function({id:e,header:t,headerRenderer:r=zzA,content:n,initiallyExpanded:o,style:i},a){const s=d.useId(),l=d.useMemo(()=>e?`${e}`:s,[e,s]),c=d.useMemo(()=>`trigger_${l}`,[l]),{rotateExpanded:u,expandedItems:g,hideIcon:h,expandedIcon:B,collapsedIcon:E,triggerPosition:C,expandItem:m,register:I,unRegister:v}=MzA(),y=d.useMemo(()=>g.includes(l),[l,g]),[x,b]=d.useState(!1);return d.useEffect(()=>{x||(b(!0),o&&m(l))},[m,l,o,x]),d.useEffect(()=>{I(c)},[I,c]),d.useEffect(()=>()=>{v(c)},[c,v]),Q.jsxs(bzA,{value:l,className:Cl.item,ref:a,style:i,children:[Q.jsx(xzA,{className:Cl.header,children:Q.jsxs(kzA,{id:`trigger_${l}`,className:_n(Cl.trigger,{[Cl.triggerStart]:C==="start"}),children:[r(t),!h&&Q.jsx("span",{style:{transform:y&&!B?`rotate(${u})`:"rotate(0deg)",transition:"transform 300ms cubic-bezier(0.87, 0, 0.13, 1)"},children:Q.jsx(be,{name:y&&B||E,className:Cl.chevron})})]})}),Q.jsx(_zA,{className:Cl.contentWrapper,children:Q.jsx("div",{className:Cl.content,children:n})})]},l)}),Q1="AccordionItem",VzA=kA({description:`\`${Q1}\` is a non-visual component describing a tab. Tabs component may use nested ${Q1} instances from which the user can select.`,props:{header:j("This property declares the text used in the component's header."),headerTemplate:zt("This property describes the template to use as the component's header."),initiallyExpanded:j(`This property indicates if the ${Q1} is expanded (\`true\`) or collapsed (\`false\`).`,null,"boolean",!1)}}),XzA=RA(Q1,VzA,A=>{const{node:e,renderChild:t,extractValue:r,layoutCss:n}=A;return Q.jsx(WzA,{style:n,id:r(e.uid),header:r(e.props.header),initiallyExpanded:r.asOptionalBoolean(e.props.initiallyExpanded),headerRenderer:e.props.headerTemplate?o=>Q.jsx(Oo,{node:e.props.headerTemplate??{type:"Fragment"},item:o,renderChild:t}):void 0,content:t(e.children)})}),ZzA={themeVars:'"[]"'},AWA=d.forwardRef(function({style:e},t){return Q.jsx("div",{ref:t,style:{backgroundColor:"orangered",color:"white",padding:2,...e},children:"Slider component is not implemented yet"})}),ch="Slider",eWA=kA({status:"in progress",description:`(**NOT IMPLEMENTED YET**) The \`${ch}\` component allows you to select a numeric value between a range specified by minimum and maximum values.`,props:{minValue:j("This property specifies the minimum value of the allowed input range.",null,"number",0),maxValue:j("This property specifies the maximum value of the allowed input range.",null,"number",10),rangeHighlight:j("This property indicates if you want to highlight a specific part of the input range.",[{value:"none",description:"No highlight (default)"},{value:"lower",description:"Highlight the lower part of the range (from the minimum to the current slider value)"},{value:"upper",description:"Highlight the upper part of the range (from the current slider value to the maximum)"}],"string","none")},events:{didChange:lo(ch),getFocus:To(ch),dostFocus:Lo(ch)},apis:{focus:es(ch),value:qk(),setValue:Vs()},themeVars:ne(ZzA.themeVars),defaultThemeVars:{light:{},dark:{}}}),tWA=RA(ch,eWA,({node:A,extractValue:e,lookupEventHandler:t,layoutCss:r})=>Q.jsx(AWA,{style:r})),rWA={themeVars:'"[]"'},nWA=d.forwardRef(function({},e){return Q.jsx("div",{ref:e,style:{backgroundColor:"orangered",color:"white",padding:2},children:"ButtonGroup component is not implemented yet"})}),UV="ButtonGroup",oWA=kA({status:"in progress",description:`(**NOT IMPLEMENTED YET**) The \`${UV}\` component is a container that embeds buttons used together for a particular reason. It provides a view that emphasizes this coherency.`,props:{themeColor:j("This optional property specifies the default theme color for the buttons in the group. Individual buttons may override this setting with their `themeColor` property.",aH,"string","primary"),variant:j("This optional property specifies the default variant for the buttons in the group. Individual buttons may override this setting with their `variant` property.",lH,"string","solid"),orientation:OkA("horizontal"),buttonWidth:j("When this optional property is set, all buttons within the group will have the specified width. If it is empty, each button's width accommodates its content."),gap:j("When this optional property is set, adjacent buttons will have the specified gap between them. If this property is not set, the buttons will be merged into one group.")},themeVars:ne(rWA.themeVars),defaultThemeVars:{light:{},dark:{}}}),iWA=RA(UV,oWA,({})=>Q.jsx(nWA,{}));function aWA(A){return Object.prototype.toString.call(A)==="[object Object]"}function KV(A){return aWA(A)||Array.isArray(A)}function sWA(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function wM(A,e){const t=Object.keys(A),r=Object.keys(e);if(t.length!==r.length)return!1;const n=JSON.stringify(Object.keys(A.breakpoints||{})),o=JSON.stringify(Object.keys(e.breakpoints||{}));return n!==o?!1:t.every(i=>{const a=A[i],s=e[i];return typeof a=="function"?`${a}`==`${s}`:!KV(a)||!KV(s)?a===s:wM(a,s)})}function YV(A){return A.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function lWA(A,e){if(A.length!==e.length)return!1;const t=YV(A),r=YV(e);return t.every((n,o)=>{const i=r[o];return wM(n,i)})}function IM(A){return typeof A=="number"}function vM(A){return typeof A=="string"}function w1(A){return typeof A=="boolean"}function $V(A){return Object.prototype.toString.call(A)==="[object Object]"}function sr(A){return Math.abs(A)}function DM(A){return Math.sign(A)}function NE(A,e){return sr(A-e)}function cWA(A,e){if(A===0||e===0||sr(A)<=sr(e))return 0;const t=NE(sr(A),sr(e));return sr(t/A)}function RE(A){return TE(A).map(Number)}function wa(A){return A[PE(A)]}function PE(A){return Math.max(0,A.length-1)}function yM(A,e){return e===PE(A)}function jV(A,e=0){return Array.from(Array(A),(t,r)=>e+r)}function TE(A){return Object.keys(A)}function qV(A,e){return[A,e].reduce((t,r)=>(TE(r).forEach(n=>{const o=t[n],i=r[n],a=$V(o)&&$V(i);t[n]=a?qV(o,i):i}),t),{})}function bM(A,e){return typeof e.MouseEvent<"u"&&A instanceof e.MouseEvent}function uWA(A,e){const t={start:r,center:n,end:o};function r(){return 0}function n(s){return o(s)/2}function o(s){return e-s}function i(s,l){return vM(A)?t[A](s):A(e,s,l)}return{measure:i}}function LE(){let A=[];function e(n,o,i,a={passive:!0}){let s;if("addEventListener"in n)n.addEventListener(o,i,a),s=()=>n.removeEventListener(o,i,a);else{const l=n;l.addListener(i),s=()=>l.removeListener(i)}return A.push(s),r}function t(){A=A.filter(n=>n())}const r={add:e,clear:t};return r}function fWA(A,e,t,r){const n=LE(),o=1e3/60;let i=null,a=0,s=0;function l(){n.add(A,"visibilitychange",()=>{A.hidden&&B()})}function c(){h(),n.clear()}function u(C){if(!s)return;i||(i=C);const m=C-i;for(i=C,a+=m;a>=o;)t(o),a-=o;const I=a/o;r(I),s&&e.requestAnimationFrame(u)}function g(){s||(s=e.requestAnimationFrame(u))}function h(){e.cancelAnimationFrame(s),i=null,a=0,s=0}function B(){i=null,a=0}return{init:l,destroy:c,start:g,stop:h,update:()=>t(o),render:r}}function gWA(A,e){const t=e==="rtl",r=A==="y",n=r?"y":"x",o=r?"x":"y",i=!r&&t?-1:1,a=c(),s=u();function l(B){const{height:E,width:C}=B;return r?E:C}function c(){return r?"top":t?"right":"left"}function u(){return r?"bottom":t?"left":"right"}function g(B){return B*i}return{scroll:n,cross:o,startEdge:a,endEdge:s,measureSize:l,direction:g}}function Mf(A=0,e=0){const t=sr(A-e);function r(l){return l<A}function n(l){return l>e}function o(l){return r(l)||n(l)}function i(l){return o(l)?r(l)?A:e:l}function a(l){return t?l-t*Math.ceil((l-e)/t):l}return{length:t,max:e,min:A,constrain:i,reachedAny:o,reachedMax:n,reachedMin:r,removeOffset:a}}function JV(A,e,t){const{constrain:r}=Mf(0,A),n=A+1;let o=i(e);function i(g){return t?sr((n+g)%n):r(g)}function a(){return o}function s(g){return o=i(g),u}function l(g){return c().set(a()+g)}function c(){return JV(A,a(),t)}const u={get:a,set:s,add:l,clone:c};return u}function dWA(A,e,t,r,n,o,i,a,s,l,c,u,g,h,B,E,C,m,I){const{cross:v,direction:y}=A,x=["INPUT","SELECT","TEXTAREA"],b={passive:!1},k=LE(),M=LE(),N=Mf(50,225).constrain(h.measure(20)),F={mouse:300,touch:400},L={mouse:500,touch:600},T=B?43:25;let P=!1,G=0,H=0,z=!1,q=!1,O=!1,Y=!1;function S(X){if(!I)return;function cA(EA){(w1(I)||I(X,EA))&&tA(EA)}const hA=e;k.add(hA,"dragstart",EA=>EA.preventDefault(),b).add(hA,"touchmove",()=>{},b).add(hA,"touchend",()=>{}).add(hA,"touchstart",cA).add(hA,"mousedown",cA).add(hA,"touchcancel",sA).add(hA,"contextmenu",sA).add(hA,"click",iA,!0)}function J(){k.clear(),M.clear()}function $(){const X=Y?t:e;M.add(X,"touchmove",nA,b).add(X,"touchend",sA).add(X,"mousemove",nA,b).add(X,"mouseup",sA)}function U(X){const cA=X.nodeName||"";return x.includes(cA)}function AA(){return(B?L:F)[Y?"mouse":"touch"]}function Z(X,cA){const hA=u.add(DM(X)*-1),EA=c.byDistance(X,!B).distance;return B||sr(X)<N?EA:C&&cA?EA*.5:c.byIndex(hA.get(),0).distance}function tA(X){const cA=bM(X,r);Y=cA,O=B&&cA&&!X.buttons&&P,P=NE(n.get(),i.get())>=2,!(cA&&X.button!==0)&&(U(X.target)||(z=!0,o.pointerDown(X),l.useFriction(0).useDuration(0),n.set(i),$(),G=o.readPoint(X),H=o.readPoint(X,v),g.emit("pointerDown")))}function nA(X){if(!bM(X,r)&&X.touches.length>=2)return sA(X);const hA=o.readPoint(X),EA=o.readPoint(X,v),IA=NE(hA,G),DA=NE(EA,H);if(!q&&!Y&&(!X.cancelable||(q=IA>DA,!q)))return sA(X);const SA=o.pointerMove(X);IA>E&&(O=!0),l.useFriction(.3).useDuration(.75),a.start(),n.add(y(SA)),X.preventDefault()}function sA(X){const hA=c.byDistance(0,!1).index!==u.get(),EA=o.pointerUp(X)*AA(),IA=Z(y(EA),hA),DA=cWA(EA,IA),SA=T-10*DA,JA=m+DA/50;q=!1,z=!1,M.clear(),l.useDuration(SA).useFriction(JA),s.distance(IA,!B),Y=!1,g.emit("pointerUp")}function iA(X){O&&(X.stopPropagation(),X.preventDefault(),O=!1)}function aA(){return z}return{init:S,destroy:J,pointerDown:aA}}function hWA(A,e){let r,n;function o(u){return u.timeStamp}function i(u,g){const B=`client${(g||A.scroll)==="x"?"X":"Y"}`;return(bM(u,e)?u:u.touches[0])[B]}function a(u){return r=u,n=u,i(u)}function s(u){const g=i(u)-i(n),h=o(u)-o(r)>170;return n=u,h&&(r=u),g}function l(u){if(!r||!n)return 0;const g=i(n)-i(r),h=o(u)-o(r),B=o(u)-o(n)>170,E=g/h;return h&&!B&&sr(E)>.1?E:0}return{pointerDown:a,pointerMove:s,pointerUp:l,readPoint:i}}function pWA(){function A(t){const{offsetTop:r,offsetLeft:n,offsetWidth:o,offsetHeight:i}=t;return{top:r,right:n+o,bottom:r+i,left:n,width:o,height:i}}return{measure:A}}function BWA(A){function e(r){return A*(r/100)}return{measure:e}}function EWA(A,e,t,r,n,o,i){const a=[A].concat(r);let s,l,c=[],u=!1;function g(C){return n.measureSize(i.measure(C))}function h(C){if(!o)return;l=g(A),c=r.map(g);function m(I){for(const v of I){if(u)return;const y=v.target===A,x=r.indexOf(v.target),b=y?l:c[x],k=g(y?A:r[x]);if(sr(k-b)>=.5){C.reInit(),e.emit("resize");break}}}s=new ResizeObserver(I=>{(w1(o)||o(C,I))&&m(I)}),t.requestAnimationFrame(()=>{a.forEach(I=>s.observe(I))})}function B(){u=!0,s&&s.disconnect()}return{init:h,destroy:B}}function CWA(A,e,t,r,n,o){let i=0,a=0,s=n,l=o,c=A.get(),u=0;function g(b){const k=b/1e3,M=s*k,N=r.get()-A.get(),F=!s;let L=0;return F?(i=0,t.set(r),A.set(r),L=N):(t.set(A),i+=N/M,i*=l,c+=i,A.add(i*k),L=c-u),a=DM(L),u=c,x}function h(){const b=r.get()-e.get();return sr(b)<.001}function B(){return s}function E(){return a}function C(){return i}function m(){return v(n)}function I(){return y(o)}function v(b){return s=b,x}function y(b){return l=b,x}const x={direction:E,duration:B,velocity:C,seek:g,settled:h,useBaseFriction:I,useBaseDuration:m,useFriction:y,useDuration:v};return x}function mWA(A,e,t,r,n){const o=n.measure(10),i=n.measure(50),a=Mf(.1,.99);let s=!1;function l(){return!(s||!A.reachedAny(t.get())||!A.reachedAny(e.get()))}function c(h){if(!l())return;const B=A.reachedMin(e.get())?"min":"max",E=sr(A[B]-e.get()),C=t.get()-e.get(),m=a.constrain(E/i);t.subtract(C*m),!h&&sr(C)<o&&(t.set(A.constrain(t.get())),r.useDuration(25).useBaseFriction())}function u(h){s=!h}return{shouldConstrain:l,constrain:c,toggleActive:u}}function QWA(A,e,t,r,n){const o=Mf(-e+A,0),i=u(),a=c(),s=g();function l(B,E){return NE(B,E)<1}function c(){const B=i[0],E=wa(i),C=i.lastIndexOf(B),m=i.indexOf(E)+1;return Mf(C,m)}function u(){return t.map((B,E)=>{const{min:C,max:m}=o,I=o.constrain(B),v=!E,y=yM(t,E);return v?m:y||l(C,I)?C:l(m,I)?m:I}).map(B=>parseFloat(B.toFixed(3)))}function g(){if(e<=A+n)return[o.max];if(r==="keepSnaps")return i;const{min:B,max:E}=a;return i.slice(B,E)}return{snapsContained:s,scrollContainLimit:a}}function wWA(A,e,t){const r=e[0],n=t?r-A:wa(e);return{limit:Mf(n,r)}}function IWA(A,e,t,r){const o=e.min+.1,i=e.max+.1,{reachedMin:a,reachedMax:s}=Mf(o,i);function l(g){return g===1?s(t.get()):g===-1?a(t.get()):!1}function c(g){if(!l(g))return;const h=A*(g*-1);r.forEach(B=>B.add(h))}return{loop:c}}function vWA(A){const{max:e,length:t}=A;function r(o){const i=o-e;return t?i/-t:0}return{get:r}}function DWA(A,e,t,r,n){const{startEdge:o,endEdge:i}=A,{groupSlides:a}=n,s=u().map(e.measure),l=g(),c=h();function u(){return a(r).map(E=>wa(E)[i]-E[0][o]).map(sr)}function g(){return r.map(E=>t[o]-E[o]).map(E=>-sr(E))}function h(){return a(l).map(E=>E[0]).map((E,C)=>E+s[C])}return{snaps:l,snapsAligned:c}}function yWA(A,e,t,r,n,o){const{groupSlides:i}=n,{min:a,max:s}=r,l=c();function c(){const g=i(o),h=!A||e==="keepSnaps";return t.length===1?[o]:h?g:g.slice(a,s).map((B,E,C)=>{const m=!E,I=yM(C,E);if(m){const v=wa(C[0])+1;return jV(v)}if(I){const v=PE(o)-wa(C)[0]+1;return jV(v,wa(C)[0])}return B})}return{slideRegistry:l}}function bWA(A,e,t,r,n){const{reachedAny:o,removeOffset:i,constrain:a}=r;function s(B){return B.concat().sort((E,C)=>sr(E)-sr(C))[0]}function l(B){const E=A?i(B):a(B),C=e.map((I,v)=>({diff:c(I-E,0),index:v})).sort((I,v)=>sr(I.diff)-sr(v.diff)),{index:m}=C[0];return{index:m,distance:E}}function c(B,E){const C=[B,B+t,B-t];if(!A)return B;if(!E)return s(C);const m=C.filter(I=>DM(I)===E);return m.length?s(m):wa(C)-t}function u(B,E){const C=e[B]-n.get(),m=c(C,E);return{index:B,distance:m}}function g(B,E){const C=n.get()+B,{index:m,distance:I}=l(C),v=!A&&o(C);if(!E||v)return{index:m,distance:B};const y=e[m]-I,x=B+c(y,0);return{index:m,distance:x}}return{byDistance:g,byIndex:u,shortcut:c}}function xWA(A,e,t,r,n,o,i){function a(u){const g=u.distance,h=u.index!==e.get();o.add(g),g&&(r.duration()?A.start():(A.update(),A.render(1),A.update())),h&&(t.set(e.get()),e.set(u.index),i.emit("select"))}function s(u,g){const h=n.byDistance(u,g);a(h)}function l(u,g){const h=e.clone().set(u),B=n.byIndex(h.get(),g);a(B)}return{distance:s,index:l}}function kWA(A,e,t,r,n,o,i,a){const s={passive:!0,capture:!0};let l=0;function c(h){if(!a)return;function B(E){if(new Date().getTime()-l>10)return;i.emit("slideFocusStart"),A.scrollLeft=0;const I=t.findIndex(v=>v.includes(E));IM(I)&&(n.useDuration(0),r.index(I,0),i.emit("slideFocus"))}o.add(document,"keydown",u,!1),e.forEach((E,C)=>{o.add(E,"focus",m=>{(w1(a)||a(h,m))&&B(C)},s)})}function u(h){h.code==="Tab"&&(l=new Date().getTime())}return{init:c}}function FE(A){let e=A;function t(){return e}function r(s){e=i(s)}function n(s){e+=i(s)}function o(s){e-=i(s)}function i(s){return IM(s)?s:s.get()}return{get:t,set:r,add:n,subtract:o}}function zV(A,e){const t=A.scroll==="x"?o:i,r=e.style;let n=!1;function o(u){return`translate3d(${u}px,0px,0px)`}function i(u){return`translate3d(0px,${u}px,0px)`}function a(u){n||(r.transform=t(A.direction(u)))}function s(u){n=!u}function l(){n||(r.transform="",e.getAttribute("style")||e.removeAttribute("style"))}return{clear:l,to:a,toggleActive:s}}function _WA(A,e,t,r,n,o,i,a,s){const c=RE(n),u=RE(n).reverse(),g=m().concat(I());function h(k,M){return k.reduce((N,F)=>N-n[F],M)}function B(k,M){return k.reduce((N,F)=>h(N,M)>0?N.concat([F]):N,[])}function E(k){return o.map((M,N)=>({start:M-r[N]+.5+k,end:M+e-.5+k}))}function C(k,M,N){const F=E(M);return k.map(L=>{const T=N?0:-t,P=N?t:0,G=N?"end":"start",H=F[L][G];return{index:L,loopPoint:H,slideLocation:FE(-1),translate:zV(A,s[L]),target:()=>a.get()>H?T:P}})}function m(){const k=i[0],M=B(u,k);return C(M,t,!1)}function I(){const k=e-i[0]-1,M=B(c,k);return C(M,-t,!0)}function v(){return g.every(({index:k})=>{const M=c.filter(N=>N!==k);return h(M,e)<=.1})}function y(){g.forEach(k=>{const{target:M,translate:N,slideLocation:F}=k,L=M();L!==F.get()&&(N.to(L),F.set(L))})}function x(){g.forEach(k=>k.translate.clear())}return{canLoop:v,clear:x,loop:y,loopPoints:g}}function MWA(A,e,t){let r,n=!1;function o(s){if(!t)return;function l(c){for(const u of c)if(u.type==="childList"){s.reInit(),e.emit("slidesChanged");break}}r=new MutationObserver(c=>{n||(w1(t)||t(s,c))&&l(c)}),r.observe(A,{childList:!0})}function i(){r&&r.disconnect(),n=!0}return{init:o,destroy:i}}function SWA(A,e,t,r){const n={};let o=null,i=null,a,s=!1;function l(){a=new IntersectionObserver(B=>{s||(B.forEach(E=>{const C=e.indexOf(E.target);n[C]=E}),o=null,i=null,t.emit("slidesInView"))},{root:A.parentElement,threshold:r}),e.forEach(B=>a.observe(B))}function c(){a&&a.disconnect(),s=!0}function u(B){return TE(n).reduce((E,C)=>{const m=parseInt(C),{isIntersecting:I}=n[m];return(B&&I||!B&&!I)&&E.push(m),E},[])}function g(B=!0){if(B&&o)return o;if(!B&&i)return i;const E=u(B);return B&&(o=E),B||(i=E),E}return{init:l,destroy:c,get:g}}function NWA(A,e,t,r,n,o){const{measureSize:i,startEdge:a,endEdge:s}=A,l=t[0]&&n,c=B(),u=E(),g=t.map(i),h=C();function B(){if(!l)return 0;const I=t[0];return sr(e[a]-I[a])}function E(){if(!l)return 0;const I=o.getComputedStyle(wa(r));return parseFloat(I.getPropertyValue(`margin-${s}`))}function C(){return t.map((I,v,y)=>{const x=!v,b=yM(y,v);return x?g[v]+c:b?g[v]+u:y[v+1][a]-I[a]}).map(sr)}return{slideSizes:g,slideSizesWithGaps:h,startGap:c,endGap:u}}function RWA(A,e,t,r,n,o,i,a,s){const{startEdge:l,endEdge:c,direction:u}=A,g=IM(t);function h(m,I){return RE(m).filter(v=>v%I===0).map(v=>m.slice(v,v+I))}function B(m){return m.length?RE(m).reduce((I,v,y)=>{const x=wa(I)||0,b=x===0,k=v===PE(m),M=n[l]-o[x][l],N=n[l]-o[v][c],F=!r&&b?u(i):0,L=!r&&k?u(a):0,T=sr(N-L-(M+F));return y&&T>e+s&&I.push(v),k&&I.push(m.length),I},[]).map((I,v,y)=>{const x=Math.max(y[v-1]||0);return m.slice(x,I)}):[]}function E(m){return g?h(m,t):B(m)}return{groupSlides:E}}function PWA(A,e,t,r,n,o,i){const{align:a,axis:s,direction:l,startIndex:c,loop:u,duration:g,dragFree:h,dragThreshold:B,inViewThreshold:E,slidesToScroll:C,skipSnaps:m,containScroll:I,watchResize:v,watchSlides:y,watchDrag:x,watchFocus:b}=o,k=2,M=pWA(),N=M.measure(e),F=t.map(M.measure),L=gWA(s,l),T=L.measureSize(N),P=BWA(T),G=uWA(a,T),H=!u&&!!I,z=u||!!I,{slideSizes:q,slideSizesWithGaps:O,startGap:Y,endGap:S}=NWA(L,N,F,t,z,n),J=RWA(L,T,C,u,N,F,Y,S,k),{snaps:$,snapsAligned:U}=DWA(L,G,N,F,J),AA=-wa($)+wa(O),{snapsContained:Z,scrollContainLimit:tA}=QWA(T,AA,U,I,k),nA=H?Z:U,{limit:sA}=wWA(AA,nA,u),iA=JV(PE(nA),c,u),aA=iA.clone(),rA=RE(t),X=({dragHandler:ce,scrollBody:te,scrollBounds:Pe,options:{loop:Ke}},Ct)=>{Ke||Pe.constrain(ce.pointerDown()),te.seek(Ct)},cA=({scrollBody:ce,translate:te,location:Pe,offsetLocation:Ke,scrollLooper:Ct,slideLooper:kt,dragHandler:Ce,animation:YA,eventHandler:PA,scrollBounds:oe,options:{loop:Te}},Ut)=>{const Xe=ce.settled(),Ln=!oe.shouldConstrain(),Lr=Te?Xe:Xe&&Ln;Lr&&!Ce.pointerDown()&&(YA.stop(),PA.emit("settle")),Lr||PA.emit("scroll");const Fr=Pe.get()*Ut+SA.get()*(1-Ut);Ke.set(Fr),Te&&(Ct.loop(ce.direction()),kt.loop()),te.to(Ke.get())},hA=fWA(r,n,ce=>X(Ae,ce),ce=>cA(Ae,ce)),EA=.68,IA=nA[iA.get()],DA=FE(IA),SA=FE(IA),JA=FE(IA),jA=FE(IA),$A=CWA(DA,JA,SA,jA,g,EA),VA=bWA(u,nA,AA,sA,jA),pe=xWA(hA,iA,aA,$A,VA,jA,i),bA=vWA(sA),qA=LE(),dA=SWA(e,t,i,E),{slideRegistry:wA}=yWA(H,I,nA,tA,J,rA),HA=kWA(A,t,wA,pe,$A,qA,i,b),Ae={ownerDocument:r,ownerWindow:n,eventHandler:i,containerRect:N,slideRects:F,animation:hA,axis:L,dragHandler:dWA(L,A,r,n,jA,hWA(L,n),DA,hA,pe,$A,VA,iA,i,P,h,B,m,EA,x),eventStore:qA,percentOfView:P,index:iA,indexPrevious:aA,limit:sA,location:DA,offsetLocation:JA,previousLocation:SA,options:o,resizeHandler:EWA(e,i,n,t,L,v,M),scrollBody:$A,scrollBounds:mWA(sA,JA,jA,$A,P),scrollLooper:IWA(AA,sA,JA,[DA,JA,SA,jA]),scrollProgress:bA,scrollSnapList:nA.map(bA.get),scrollSnaps:nA,scrollTarget:VA,scrollTo:pe,slideLooper:_WA(L,T,AA,q,O,$,nA,JA,t),slideFocus:HA,slidesHandler:MWA(e,i,y),slidesInView:dA,slideIndexes:rA,slideRegistry:wA,slidesToScroll:J,target:jA,translate:zV(L,e)};return Ae}function TWA(){let A={},e;function t(l){e=l}function r(l){return A[l]||[]}function n(l){return r(l).forEach(c=>c(e,l)),s}function o(l,c){return A[l]=r(l).concat([c]),s}function i(l,c){return A[l]=r(l).filter(u=>u!==c),s}function a(){A={}}const s={init:t,emit:n,off:i,on:o,clear:a};return s}const LWA={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function FWA(A){function e(o,i){return qV(o,i||{})}function t(o){const i=o.breakpoints||{},a=TE(i).filter(s=>A.matchMedia(s).matches).map(s=>i[s]).reduce((s,l)=>e(s,l),{});return e(o,a)}function r(o){return o.map(i=>TE(i.breakpoints||{})).reduce((i,a)=>i.concat(a),[]).map(A.matchMedia)}return{mergeOptions:e,optionsAtMedia:t,optionsMediaQueries:r}}function OWA(A){let e=[];function t(o,i){return e=i.filter(({options:a})=>A.optionsAtMedia(a).active!==!1),e.forEach(a=>a.init(o,A)),i.reduce((a,s)=>Object.assign(a,{[s.name]:s}),{})}function r(){e=e.filter(o=>o.destroy())}return{init:t,destroy:r}}function I1(A,e,t){const r=A.ownerDocument,n=r.defaultView,o=FWA(n),i=OWA(o),a=LE(),s=TWA(),{mergeOptions:l,optionsAtMedia:c,optionsMediaQueries:u}=o,{on:g,off:h,emit:B}=s,E=L;let C=!1,m,I=l(LWA,I1.globalOptions),v=l(I),y=[],x,b,k;function M(){const{container:rA,slides:X}=v;b=(vM(rA)?A.querySelector(rA):rA)||A.children[0];const hA=vM(X)?b.querySelectorAll(X):X;k=[].slice.call(hA||b.children)}function N(rA){const X=PWA(A,b,k,r,n,rA,s);if(rA.loop&&!X.slideLooper.canLoop()){const cA=Object.assign({},rA,{loop:!1});return N(cA)}return X}function F(rA,X){C||(I=l(I,rA),v=c(I),y=X||y,M(),m=N(v),u([I,...y.map(({options:cA})=>cA)]).forEach(cA=>a.add(cA,"change",L)),v.active&&(m.translate.to(m.location.get()),m.animation.init(),m.slidesInView.init(),m.slideFocus.init(aA),m.eventHandler.init(aA),m.resizeHandler.init(aA),m.slidesHandler.init(aA),m.options.loop&&m.slideLooper.loop(),b.offsetParent&&k.length&&m.dragHandler.init(aA),x=i.init(aA,y)))}function L(rA,X){const cA=J();T(),F(l({startIndex:cA},rA),X),s.emit("reInit")}function T(){m.dragHandler.destroy(),m.eventStore.clear(),m.translate.clear(),m.slideLooper.clear(),m.resizeHandler.destroy(),m.slidesHandler.destroy(),m.slidesInView.destroy(),m.animation.destroy(),i.destroy(),a.clear()}function P(){C||(C=!0,a.clear(),T(),s.emit("destroy"),s.clear())}function G(rA,X,cA){!v.active||C||(m.scrollBody.useBaseFriction().useDuration(X===!0?0:v.duration),m.scrollTo.index(rA,cA||0))}function H(rA){const X=m.index.add(1).get();G(X,rA,-1)}function z(rA){const X=m.index.add(-1).get();G(X,rA,1)}function q(){return m.index.add(1).get()!==J()}function O(){return m.index.add(-1).get()!==J()}function Y(){return m.scrollSnapList}function S(){return m.scrollProgress.get(m.location.get())}function J(){return m.index.get()}function $(){return m.indexPrevious.get()}function U(){return m.slidesInView.get()}function AA(){return m.slidesInView.get(!1)}function Z(){return x}function tA(){return m}function nA(){return A}function sA(){return b}function iA(){return k}const aA={canScrollNext:q,canScrollPrev:O,containerNode:sA,internalEngine:tA,destroy:P,off:h,on:g,emit:B,plugins:Z,previousScrollSnap:$,reInit:E,rootNode:nA,scrollNext:H,scrollPrev:z,scrollProgress:S,scrollSnapList:Y,scrollTo:G,selectedScrollSnap:J,slideNodes:iA,slidesInView:U,slidesNotInView:AA};return F(e,t),setTimeout(()=>s.emit("init"),0),aA}I1.globalOptions=void 0;function xM(A={},e=[]){const t=d.useRef(A),r=d.useRef(e),[n,o]=d.useState(),[i,a]=d.useState(),s=d.useCallback(()=>{n&&n.reInit(t.current,r.current)},[n]);return d.useEffect(()=>{wM(t.current,A)||(t.current=A,s())},[A,s]),d.useEffect(()=>{lWA(r.current,e)||(r.current=e,s())},[e,s]),d.useEffect(()=>{if(sWA()&&i){I1.globalOptions=xM.globalOptions;const l=I1(i,t.current,r.current);return o(l),()=>l.destroy()}else o(void 0)},[i,o]),[a,n]}xM.globalOptions=void 0;const Wn={themeVars:`'{"width-Carousel": "var(--xmlui-width-Carousel)", "height-Carousel": "var(--xmlui-height-Carousel)", "height-control-Carousel": "var(--xmlui-height-control-Carousel)", "width-control-Carousel": "var(--xmlui-width-control-Carousel)", "color-text-control-Carousel": "var(--xmlui-color-text-control-Carousel)", "color-bg-control-Carousel": "var(--xmlui-color-bg-control-Carousel)", "radius-control-Carousel": "var(--xmlui-radius-control-Carousel)", "color-bg-control-hover-Carousel": "var(--xmlui-color-bg-control-hover-Carousel)", "color-text-control-hover-Carousel": "var(--xmlui-color-text-control-hover-Carousel)", "color-bg-control-active-Carousel": "var(--xmlui-color-bg-control-active-Carousel)", "color-text-control-active-Carousel": "var(--xmlui-color-text-control-active-Carousel)", "color-text-control-disabled-Carousel": "var(--xmlui-color-text-control-disabled-Carousel)", "color-bg-control-disabled-Carousel": "var(--xmlui-color-bg-control-disabled-Carousel)", "width-indicator-Carousel": "var(--xmlui-width-indicator-Carousel)", "height-indicator-Carousel": "var(--xmlui-height-indicator-Carousel)", "color-text-indicator-Carousel": "var(--xmlui-color-text-indicator-Carousel)", "color-bg-indicator-Carousel": "var(--xmlui-color-bg-indicator-Carousel)", "color-bg-indicator-hover-Carousel": "var(--xmlui-color-bg-indicator-hover-Carousel)", "color-text-indicator-hover-Carousel": "var(--xmlui-color-text-indicator-hover-Carousel)", "color-bg-indicator-active-Carousel": "var(--xmlui-color-bg-indicator-active-Carousel)", "color-text-indicator-active-Carousel": "var(--xmlui-color-text-indicator-active-Carousel)"}'`,carousel:"_carousel_11a03_13",innerWrapper:"_innerWrapper_11a03_22",carouselContentWrapper:"_carouselContentWrapper_11a03_30",carouselContent:"_carouselContent_11a03_30",vertical:"_vertical_11a03_40",carouselItem:"_carouselItem_11a03_44",controls:"_controls_11a03_51",controlButton:"_controlButton_11a03_60",indicators:"_indicators_11a03_87",indicator:"_indicator_11a03_87",active:"_active_11a03_107"},HWA={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function kM(A={}){let e,t,r,n=!1,o=!0,i=!1,a=0;function s(y,x){t=y;const{mergeOptions:b,optionsAtMedia:k}=x,M=b(HWA,kM.globalOptions),N=b(M,A);if(e=k(N),t.scrollSnapList().length<=1)return;i=e.jump,r=!1;const{eventStore:F,ownerDocument:L}=t.internalEngine(),T=t.rootNode(),P=e.rootNode&&e.rootNode(T)||T,G=t.containerNode();t.on("pointerDown",u),e.stopOnInteraction||t.on("pointerUp",c),e.stopOnMouseEnter&&(F.add(P,"mouseenter",()=>{o=!1,u()}),e.stopOnInteraction||F.add(P,"mouseleave",()=>{o=!0,c()})),e.stopOnFocusIn&&(t.on("slideFocusStart",u),e.stopOnInteraction||F.add(G,"focusout",c)),F.add(L,"visibilitychange",g),e.playOnInit&&!h()&&c()}function l(){t.off("pointerDown",u).off("pointerUp",c).off("slideFocusStart",u),u(),r=!0,n=!1}function c(){if(r||!o)return;n||t.emit("autoplay:play");const{ownerWindow:y}=t.internalEngine();y.clearInterval(a),a=y.setInterval(I,e.delay),n=!0}function u(){if(r)return;n&&t.emit("autoplay:stop");const{ownerWindow:y}=t.internalEngine();y.clearInterval(a),a=0,n=!1}function g(){if(h())return o=n,u();o&&c()}function h(){const{ownerDocument:y}=t.internalEngine();return y.visibilityState==="hidden"}function B(y){typeof y<"u"&&(i=y),o=!0,c()}function E(){n&&u()}function C(){n&&B()}function m(){return n}function I(){const{index:y}=t.internalEngine(),x=y.clone().add(1).get(),b=t.scrollSnapList().length-1;e.stopOnLastSnap&&x===b&&u(),t.canScrollNext()?t.scrollNext(i):t.scrollTo(0,i)}return{name:"autoplay",options:A,init:s,destroy:l,play:B,stop:E,reset:C,isPlaying:m}}kM.globalOptions=void 0;const WV=d.createContext({register:A=>{},unRegister:A=>{}}),GWA=()=>{const A=d.useContext(WV);if(!A)throw new Error("useCarousel must be used within a Carousel");return A};function UWA(){const[A,e]=d.useState([]),t=d.useMemo(()=>({register:r=>{e(No(n=>{const o=n.findIndex(i=>i.id===r.id);o<0?n.push(r):n[o]=r}))},unRegister:r=>{e(No(n=>n.filter(o=>o.id!==r)))}}),[e]);return{carouselItems:A,carouselContextValue:t}}const KWA=d.forwardRef(function({orientation:e="horizontal",children:t,style:r,indicators:n=!0,onDisplayDidChange:o=ve,autoplay:i=!1,controls:a=!0,loop:s=!1,startIndex:l=0,prevIcon:c,nextIcon:u,transitionDuration:g,autoplayInterval:h=5e3,stopAutoplayOnInteraction:B=!0,registerComponentApi:E},C){const m=d.useRef(null),[I,v]=d.useState(0),[y,x]=d.useState([]),[b,k]=d.useState(!1),{carouselContextValue:M,carouselItems:N}=UWA(),F=C?Zr(m,C):m,[L,T]=xM({axis:e==="horizontal"?"x":"y",loop:s,startIndex:l,duration:g},y),P=c||e==="horizontal"?"arrowleft":"arrowup",G=u||e==="horizontal"?"arrowright":"arrowdown";d.useEffect(()=>{i&&x([kM({delay:h,stopOnInteraction:B})])},[h,i,B]);const H=d.useCallback(()=>{var nA;const Z=(nA=T==null?void 0:T.plugins())==null?void 0:nA.autoplay;if(!Z)return;(Z.isPlaying()?Z.stop:Z.play)()},[T]);d.useEffect(()=>{var tA;const Z=(tA=T==null?void 0:T.plugins())==null?void 0:tA.autoplay;Z&&(k(Z.isPlaying()),T.on("autoplay:play",()=>k(!0)).on("autoplay:stop",()=>k(!1)).on("reInit",()=>k(Z.isPlaying())))},[T]);const z=d.useCallback(Z=>{T==null||T.scrollTo(Z)},[T]),[q,O]=d.useState(!1),[Y,S]=d.useState(!1),J=d.useCallback(Z=>{if(!Z)return;const tA=Z.selectedScrollSnap();o(tA),v(tA),O(Z.canScrollPrev()),S(Z.canScrollNext())},[o]),$=d.useCallback(()=>{T&&(T==null||T.scrollPrev())},[T]),U=d.useCallback(()=>{T==null||T.scrollNext()},[T]),AA=d.useCallback(Z=>{e==="horizontal"?Z.key==="ArrowLeft"?(Z.preventDefault(),$()):Z.key==="ArrowRight"&&(Z.preventDefault(),U()):Z.key==="ArrowUp"?(Z.preventDefault(),$()):Z.key==="ArrowDown"&&(Z.preventDefault(),U())},[e,$,U]);return d.useEffect(()=>{E==null||E({scrollTo:z,scrollPrev:$,scrollNext:U,canScrollPrev:()=>q,canScrollNext:()=>Y})},[E,z,$,U,q,Y]),d.useEffect(()=>{if(T)return J(T),T.on("init",J),T.on("reInit",J),T.on("select",J),()=>{T==null||T.off("select",J)}},[T,J]),d.useEffect(()=>{m!=null&&m.current&&m.current.addEventListener("keydown",AA)},[F,AA]),Q.jsxs(WV.Provider,{value:M,children:[t,Q.jsxs("div",{style:r,ref:F,className:KA(Wn.carousel),role:"region",tabIndex:-1,"aria-roledescription":"carousel",children:[Q.jsx("div",{ref:L,className:Wn.carouselContentWrapper,children:Q.jsx("div",{className:KA(Wn.carouselContent,{[Wn.horizontal]:e==="horizontal",[Wn.vertical]:e==="vertical"}),children:N.map((Z,tA)=>Q.jsx("div",{role:"group","aria-roledescription":"slide",className:KA(Wn.carouselItem),children:Q.jsx("div",{className:Wn.innerWrapper,ref:Z.ref,style:Z.style,children:tA===I?Z.children:null})},Z.id))})}),a&&Q.jsxs("div",{className:Wn.controls,children:[i&&Q.jsx("button",{className:Wn.controlButton,onClick:H,children:b?Q.jsx(be,{name:"pause"}):Q.jsx(be,{name:"play"})}),Q.jsx("button",{className:Wn.controlButton,disabled:!q,onClick:$,children:Q.jsx(be,{name:P})}),Q.jsx("button",{className:Wn.controlButton,onClick:U,disabled:!Y,children:Q.jsx(be,{name:G})})]}),n&&Q.jsx("div",{className:Wn.indicators,children:N.map((Z,tA)=>Q.jsx("button",{type:"button",onClick:()=>z(tA),className:KA(Wn.indicator,{[Wn.active]:tA===I}),"aria-current":tA===I},tA))})]})]})}),lr="Carousel",YWA=kA({status:"in progress",description:"This component displays a slideshow by cycling through elements (images, text, or custom slides) like a carousel.",props:{orientation:j("This property indicates the orientation of the carousel. The `horizontal` value indicates that the carousel moves horizontally, and the `vertical` value indicates that the carousel moves vertically.",["horizontal","vertical"],null,"horizontal"),indicators:j("This property indicates whether the carousel displays the indicators.",null,null,"true"),controls:j("This property indicates whether the carousel displays the controls.",null,null,"true"),autoplay:j("This property indicates whether the carousel automatically scrolls.",null,null,"false"),loop:j("This property indicates whether the carousel loops.",null,null,"false"),startIndex:j("This property indicates the index of the first slide to display.",null,null,"0"),transitionDuration:j("This property specifies the duration of the transition between slides."),autoplayInterval:j("This property specifies the interval between autoplay transitions."),stopAutoplayOnInteraction:j("This property indicates whether autoplay stops on interaction."),prevIcon:j("This property specifies the icon to display for the previous control."),nextIcon:j("This property specifies the icon to display for the next control."),keyboard:j("This property indicates whether the carousel responds to keyboard events.")},events:{displayDidChange:lo(lr)},apis:{canScrollPrev:j("This method returns `true` if the carousel can scroll to the previous slide."),canScrollNext:j("This method returns `true` if the carousel can scroll to the next slide."),scrollTo:j("This method scrolls the carousel to the specified slide index."),scrollPrev:j("This method scrolls the carousel to the previous slide."),scrollNext:j("This method scrolls the carousel to the next slide.")},themeVars:ne(Wn.themeVars),defaultThemeVars:{[`color-bg-control-${lr}`]:"$color-primary",[`color-text-control-${lr}`]:"$color-text",[`color-bg-control-hover-${lr}`]:"$color-primary",[`color-text-control-hover-${lr}`]:"$color-text",[`color-bg-control-active-${lr}`]:"$color-primary",[`color-bg-control-disabled-${lr}`]:"$color-surface-200",[`color-text-control-disabled-${lr}`]:"$color-text-disabled",[`color-text-control-active-${lr}`]:"$color-primary",[`color-bg-indicator-${lr}`]:"$color-surface-200",[`color-bg-indicator-active-${lr}`]:"$color-primary",[`color-text-indicator-${lr}`]:"$color-primary",[`color-text-indicator-active-${lr}`]:"$color-primary",[`color-bg-indicator-hover-${lr}`]:"$color-surface-200",[`color-text-indicator-hover-${lr}`]:"$color-primary",[`width-indicator-${lr}`]:"25px",[`height-indicator-${lr}`]:"6px",[`height-control-${lr}`]:"36px",[`width-control-${lr}`]:"36px",[`radius-control-${lr}`]:"50%",[`height-${lr}`]:"100%",[`width-${lr}`]:"100%"}}),$WA=RA(lr,YWA,({node:A,renderChild:e,layoutCss:t,extractValue:r,lookupEventHandler:n,registerComponentApi:o})=>{var i,a,s,l,c,u,g,h,B,E,C,m;return Q.jsx(KWA,{style:t,stopAutoplayOnInteraction:r.asOptionalBoolean((i=A.props)==null?void 0:i.stopAutoplayOnInteraction),autoplayInterval:r.asOptionalNumber((a=A.props)==null?void 0:a.autoplayInterval),transitionDuration:r.asOptionalNumber((s=A.props)==null?void 0:s.transitionDuration),indicators:r.asOptionalBoolean((l=A.props)==null?void 0:l.indicators),controls:r.asOptionalBoolean((c=A.props)==null?void 0:c.controls),orientation:r((u=A.props)==null?void 0:u.orientation),onDisplayDidChange:n("displayDidChange"),autoplay:r.asOptionalBoolean((g=A.props)==null?void 0:g.autoplay),registerComponentApi:o,loop:r.asOptionalBoolean((h=A.props)==null?void 0:h.loop),startIndex:r.asOptionalNumber((B=A.props)==null?void 0:B.startIndex),prevIcon:r((E=A.props)==null?void 0:E.prevIcon),nextIcon:r((C=A.props)==null?void 0:C.nextIcon),keyboard:r.asOptionalBoolean((m=A.props)==null?void 0:m.keyboard),children:e(A.children)})}),jWA=d.forwardRef(function({children:e,style:t},r){const n=d.useId(),{register:o,unRegister:i}=GWA();return d.useEffect(()=>{o({children:e,style:t,ref:r,id:n})},[n,e,t,o,r]),d.useEffect(()=>()=>{i(n)},[n,i]),null}),qWA="CarouselItem",JWA=kA({}),zWA=RA(qWA,JWA,A=>{const{node:e,renderChild:t}=A;return Q.jsx(jWA,{children:t(e.children)})}),WWA={breakout:"_breakout_ovaa2_1"},VWA=({children:A})=>Q.jsx("div",{className:WWA.breakout,children:A}),VV="Breakout",XWA=kA({description:`The \`${VV}\` component creates a breakout section. It allows its child to occupy the entire width of the UI even if the app or the parent container constrains the maximum content width.`}),ZWA=RA(VV,XWA,({node:A,renderChild:e})=>Q.jsx(VWA,{children:e(A.children)})),XV="ToneChangerButton",AVA=kA({status:"experimental",docFolder:"ThemeChanger",description:`The \`${XV}\` component is a component that allows the user to change the tone of the app.`,props:{}});function eVA(){const{activeThemeTone:A,setActiveThemeTone:e}=cB();return Q.jsx(or,{variant:"ghost",icon:Q.jsx(be,{name:A==="light"?"moon":"sun"}),onClick:()=>{e(A==="light"?"dark":"light")}})}const tVA=RA(XV,AVA,()=>Q.jsx(eVA,{}));function rVA({registerComponentApi:A,node:e,uid:t}){const r=ze(async(n,...o)=>{var a,s,l,c;const i=o[1];return await UW(n,{...e.props,body:e.props.body||(i!=null&&i.passAsDefaultBody?o[0]:void 0),uid:t,params:{$param:o[0],$params:o},onError:(a=e.events)==null?void 0:a.error,onProgress:(s=e.events)==null?void 0:s.progress,onBeforeRequest:(l=e.events)==null?void 0:l.beforeRequest,onSuccess:(c=e.events)==null?void 0:c.success},{resolveBindingExpressions:!0})});return d.useEffect(()=>{A({execute:r,_SUPPORT_IMPLICIT_CONTEXT:!0})},[r,A]),null}const OE="APICall",nVA=kA({description:`\`${OE}\` is used to mutate (create, update or delete) some data on the backend. It is similar in nature to the \`DataSource\` component which retrieves data from the backend.`,props:{method:j("The method of data manipulation can be done via setting this property. The following HTTP methods are available: `post`, `put`, and `delete`."),url:j("Use this property to set the URL to send data to."),rawBody:j("This property sets the request body to the value provided here without any conversion. Use the * `body` property if you want the object sent in JSON. When you define `body` and `rawBody`, the latest one prevails."),body:j("This property sets the request body. The object you pass here will be serialized to JSON when sending the request. Use the `rawBody` property to send another request body using its native format. When you define `body` and `rawBody`, the latest one prevails."),queryParams:j("This property sets the query parameters for the request. The object you pass here will be serialized to a query string and appended to the request URL. You can specify key and value pairs where the key is the name of a particular query parameter and the value is that parameter's value."),headers:j("You can define request header values as key and value pairs, where the key is the ID of the particular header and the value is that header's value."),confirmTitle:j(`This optional string sets the title in the confirmation dialog that is displayed before the \`${OE}\` is executed.`),confirmMessage:j(`This optional string sets the message in the confirmation dialog that is displayed before the \`${OE}\` is executed.`),confirmButtonLabel:j(`This optional string property enables the customization of the submit button in the confirmation dialog that is displayed before the \`${OE}\` is executed.`),inProgressNotificationMessage:j("This property customizes the message that is displayed in a toast while the API operation is in progress."),errorNotificationMessage:j("This property defines the message to display automatically when the operation results in an error."),completedNotificationMessage:j("This property defines the message to display automatically when the operation has been completed."),payloadType:Zu(),invalidates:Zu(),updates:Zu(),optimisticValue:Zu(),getOptimisticValue:Zu()},events:{beforeRequest:j("This event fires before the request is sent. Returning an explicit boolean'false' value will prevent the request from being sent."),success:j("This event fires when a request results in a success."),error:j("This event fires when a request results in an error."),progress:Zu()},contextVars:{$param:j("This value represents the first parameters passed to the `execute()` method to display the modal dialog."),$params:j("This value represents the array of parameters passed to the `execute()` method. You can use `$params[0]` to access the first and `$params[1]` to access the second (and so on) parameters. `$param` is the same as `$params[0]`.")},apis:{execute:j("This method triggers the invocation of the API. You can pass an arbitrary number of parameters to the method. In the `APICall` instance, you can access those with the `$param` and `$params` context values.")}}),oVA=RA(OE,nVA,({node:A,registerComponentApi:e,uid:t,extractValue:r})=>Q.jsx(rVA,{registerComponentApi:e,node:A,uid:t})),ZV="Option",iVA=kA({description:`\`${ZV}\` is a non-visual component describing a selection option. Other components (such as \`Select\`, \`Combobox\`, and others) may use nested \`Option\` instances from which the user can select.`,props:{label:j("This property defines the text to display for the option. If `label` is not defined, `Option` will use the `value` as the label."),value:j("This property defines the value of the option. If `value` is not defined, `Option` will use the `label` as the value."),enabled:Yn()}}),AX=d.memo(A=>{const e=NRA();return e?Q.jsx(e,{...A}):null});AX.displayName="OptionNative";const aVA=RA(ZV,iVA,({node:A,extractValue:e,layoutCss:t,renderChild:r})=>Q.jsx(AX,{value:e(A.props.value),label:e.asOptionalString(A.props.label)||r(A.children),enabled:e.asOptionalBoolean(A.props.enabled),style:t})),cr="AutoComplete",sVA=kA({description:"This component is a dropdown with a list of options. According to the `multi` property, the user can select one or more items.",status:"experimental",props:{placeholder:Af(),initialValue:na(),maxLength:NB(),autoFocus:Fo(),required:As(),readOnly:Xa(),enabled:Yn(),validationStatus:Za(),dropdownHeight:j("This property sets the height of the dropdown list."),multi:R7(),optionTemplate:zt("This property enables the customization of list items. To access the attributes of a list item use the `$item` context variable."),emptyListTemplate:j("This property defines the template to display when the list of options is empty.")},events:{gotFocus:To(cr),lostFocus:Lo(cr),didChange:lo(cr)},apis:{focus:es(cr),value:j("You can query the component's value. If no value is set, it will retrieve `undefined`."),setValue:Vs()},contextVars:{$item:j("This context value represents an item when you define an option item template. Use `$item.value` and `$item.label` to refer to the value and label of the particular option.")},themeVars:ne(Jn.themeVars),defaultThemeVars:{[`color-bg-menu-${cr}`]:"$color-bg-primary",[`shadow-menu-${cr}`]:"$shadow-md",[`radius-menu-${cr}`]:"$radius",[`color-bg-item-${cr}`]:"$color-bg-dropdown-item",[`color-bg-item-${cr}--hover`]:"$color-bg-dropdown-item--active",[`color-bg-item-${cr}--active`]:"$color-bg-dropdown-item--active","min-height-Input":"39px",[`color-bg-${cr}-badge`]:"$color-primary-500",[`font-size-${cr}-badge`]:"$font-size-small",[`padding-horizontal-${cr}-badge`]:"$space-1",[`padding-vertical-${cr}-badge`]:"$space-1",light:{[`color-bg-${cr}-badge--hover`]:"$color-primary-400",[`color-bg-${cr}-badge--active`]:"$color-primary-500",[`color-text-item-${cr}--disabled`]:"$color-surface-200",[`color-text-${cr}-badge`]:"$color-surface-50"},dark:{[`color-bg-${cr}-badge--hover`]:"$color-primary-600",[`color-bg-${cr}-badge--active`]:"$color-primary-500",[`color-text-${cr}-badge`]:"$color-surface-50",[`color-text-item-${cr}--disabled`]:"$color-surface-800"}}}),lVA=RA(cr,sVA,({node:A,state:e,updateState:t,extractValue:r,renderChild:n,lookupEventHandler:o,layoutCss:i,registerComponentApi:a})=>Q.jsx(Eq,{multi:r.asOptionalBoolean(A.props.multi),style:i,updateState:t,initialValue:r(A.props.initialValue),value:e==null?void 0:e.value,autoFocus:r.asOptionalBoolean(A.props.autoFocus),enabled:r.asOptionalBoolean(A.props.enabled),placeholder:r.asOptionalString(A.props.placeholder),validationStatus:r(A.props.validationStatus),onDidChange:o("didChange"),onFocus:o("gotFocus"),onBlur:o("lostFocus"),registerComponentApi:a,emptyListTemplate:n(A.props.emptyListTemplate),dropdownHeight:r(A.props.dropdownHeight),optionRenderer:A.props.optionTemplate?s=>Q.jsx(Oo,{node:A.props.optionTemplate,item:s,renderChild:n}):void 0,children:n(A.children)})),v1={themeVars:'"[]"',backdropContainer:"_backdropContainer_18iuc_13",backdrop:"_backdrop_18iuc_13",overlay:"_overlay_18iuc_26"},cVA=d.forwardRef(function({style:e,children:t,overlayTemplate:r,backgroundColor:n="black",opacity:o="0.1"},i){const a={...e,width:void 0};return Q.jsxs("div",{className:v1.backdropContainer,style:{width:e.width??"fit-content"},ref:i,children:[t,Q.jsx("div",{className:v1.backdrop,style:{...a,backgroundColor:n,opacity:o}}),r&&Q.jsx("div",{className:v1.overlay,children:r})]})}),eX="Backdrop",uVA=kA({status:"stable",description:`The \`${eX}\` component is a semi-transparent overlay that appears on top of its child component to obscure or highlight the content behind it.`,props:{overlayTemplate:zt("This property defines the component template for an optional overlay to display over the component."),backgroundColor:j("The background color of the backdrop.",null,"string","black"),opacity:j("The opacity of the backdrop.",null,"number",.1)},themeVars:ne(v1.themeVars)}),fVA=RA(eX,uVA,({node:A,extractValue:e,renderChild:t,layoutCss:r})=>{var n;return Q.jsx(cVA,{style:r,overlayTemplate:t((n=A.props)==null?void 0:n.overlayTemplate),backgroundColor:e.asOptionalString(A.props.backgroundColor),opacity:e.asString(A.props.opacity),children:t(A.children)})});var Ye={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_Pdf:"false",VITE_USED_COMPONENTS_Chart:"false",VITE_USER_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_XMLUI_VERSION:"0.7.18 (built 1/31/2025)"};const gVA=VQ("DataSource"),dVA=VQ("TextNode"),hVA=VQ("TextNodeCData");class _M{constructor(e={},t){var r,n,o,i;this.componentManager=t,this.pool=new Map,this.themeVars=new Set,this.defaultThemeVars={},this.actionFns=new Map,this.loaders=new Map,this.registerComponentRenderer=({type:a,renderer:s,metadata:l})=>{this.pool.set(a,{renderer:s,descriptor:l}),l!=null&&l.themeVars&&Object.keys(l.themeVars).forEach(c=>this.themeVars.add(c)),l!=null&&l.defaultThemeVars&&wm(this.defaultThemeVars,l==null?void 0:l.defaultThemeVars)},this.componentManager=t,Ye.VITE_USED_COMPONENTS_Stack!=="false"&&(this.registerComponentRenderer($kA),this.registerComponentRenderer(jkA),this.registerComponentRenderer(qkA),this.registerComponentRenderer(JkA),this.registerComponentRenderer(zkA)),this.registerComponentRenderer(V7A),this.registerComponentRenderer(gVA),this.registerComponentRenderer(dVA),this.registerComponentRenderer(hVA),Ye.VITE_USED_COMPONENTS_SpaceFiller!=="false"&&this.registerComponentRenderer(VkA),Ye.VITE_USED_COMPONENTS_Textarea!=="false"&&this.registerComponentRenderer(w4A),Ye.VITE_USED_COMPONENTS_AppHeader!=="false"&&this.registerComponentRenderer(yjA),Ye.VITE_USED_COMPONENTS_Footer!=="false"&&this.registerComponentRenderer(O7A),Ye.VITE_USED_COMPONENTS_Logo!=="false"&&this.registerComponentRenderer(j7A),Ye.VITE_USED_COMPONENTS_NavLink!=="false"&&this.registerComponentRenderer(F4A),Ye.VITE_USED_COMPONENTS_NavGroup!=="false"&&this.registerComponentRenderer(Y7A),Ye.VITE_USED_COMPONENTS_Link!=="false"&&this.registerComponentRenderer(H4A),Ye.VITE_USED_COMPONENTS_Form!=="false"&&(this.registerComponentRenderer(vOA),this.registerComponentRenderer(gOA)),Ye.VITE_USED_COMPONENTS_Button!=="false"&&this.registerComponentRenderer(U4A),Ye.VITE_USED_COMPONENTS_Checkbox!=="false"&&this.registerComponentRenderer(wjA),Ye.VITE_USED_COMPONENTS_Switch!=="false"&&this.registerComponentRenderer(vjA),Ye.VITE_USED_COMPONENTS_Heading!=="false"&&(this.registerComponentRenderer(t_A),this.registerComponentRenderer(r_A),this.registerComponentRenderer(n_A),this.registerComponentRenderer(o_A),this.registerComponentRenderer(i_A),this.registerComponentRenderer(a_A),this.registerComponentRenderer(s_A)),Ye.VITE_USED_COMPONENTS_Text!=="false"&&this.registerComponentRenderer(c_A),Ye.VITE_USED_COMPONENTS_Fragment!=="false"&&this.registerComponentRenderer(f_A),Ye.VITE_USED_COMPONENTS_Table!=="false"&&(this.registerComponentRenderer(C3A),this.registerComponentRenderer(KjA)),Ye.VITE_USED_COMPONENTS_List!=="false"&&this.registerComponentRenderer(QMA),Ye.VITE_USED_COMPONENTS_App!=="false"&&this.registerComponentRenderer(b7A),Ye.VITE_USED_COMPONENTS_NavPanel!=="false"&&this.registerComponentRenderer(k7A),Ye.VITE_USED_COMPONENTS_Pages!=="false"&&(this.registerComponentRenderer(T7A),this.registerComponentRenderer(R7A)),Ye.VITE_USED_COMPONENTS_Redirect!=="false"&&this.registerComponentRenderer(wqA),Ye.VITE_USED_COMPONENTS_StickyBox!=="false"&&this.registerComponentRenderer(w3A),Ye.VITE_USED_COMPONENTS_Badge!=="false"&&this.registerComponentRenderer(D3A),Ye.VITE_USED_COMPONENTS_Avatar!=="false"&&this.registerComponentRenderer(b3A),Ye.VITE_USED_COMPONENTS_ContentSeparator!=="false"&&this.registerComponentRenderer(k3A),Ye.VITE_USED_COMPONENTS_Card!=="false"&&this.registerComponentRenderer(M3A),Ye.VITE_USED_COMPONENTS_FlowLayout!=="false"&&this.registerComponentRenderer(P3A),Ye.VITE_USED_COMPONENTS_ModalDialog!=="false"&&this.registerComponentRenderer(L3A),Ye.VITE_USED_COMPONENTS_NoResult!=="false"&&this.registerComponentRenderer(H3A),Ye.VITE_USED_COMPONENTS_Option!=="false"&&this.registerComponentRenderer(aVA),Ye.VITE_USED_COMPONENTS_TabItem!=="false"&&this.registerComponentRenderer(YzA),Ye.VITE_USED_COMPONENTS_AccordionItem!=="false"&&this.registerComponentRenderer(XzA),Ye.VITE_USED_COMPONENTS_CarouselItem!=="false"&&this.registerComponentRenderer(zWA),Ye.VITE_USED_COMPONENTS_FileUploadDropZone!=="false"&&this.registerComponentRenderer(R8A),Ye.VITE_USED_COMPONENTS_Icon!=="false"&&this.registerComponentRenderer(T8A),Ye.VITE_USED_COMPONENTS_Items!=="false"&&this.registerComponentRenderer(O8A),Ye.VITE_USED_COMPONENTS_SelectionStore!=="false"&&this.registerComponentRenderer(G8A),Ye.VITE_USED_COMPONENTS_Image!=="false"&&this.registerComponentRenderer(K8A),Ye.VITE_USER_COMPONENTS_Markdown!=="false"&&this.registerComponentRenderer(k$A),Ye.VITE_INCLUDE_REST_COMPONENTS!=="false"&&(this.registerComponentRenderer(q8A),this.registerComponentRenderer(W8A),this.registerComponentRenderer(eMA),this.registerComponentRenderer(tMA),this.registerComponentRenderer(rMA),this.registerComponentRenderer(dMA),this.registerComponentRenderer(DMA),this.registerComponentRenderer(xMA),this.registerComponentRenderer(wOA),this.registerComponentRenderer(dOA),this.registerComponentRenderer(pOA),this.registerComponentRenderer(o7A),this.registerComponentRenderer(a7A),this.registerComponentRenderer(D7A),this.registerComponentRenderer(J7A),this.registerComponentRenderer(Z7A),this.registerComponentRenderer(mqA),this.registerComponentRenderer(eGA),this.registerComponentRenderer(M$A),this.registerComponentRenderer(lVA),this.registerComponentRenderer(TW),this.registerComponentRenderer(P$A),this.registerComponentRenderer(tVA),this.registerCompoundComponentRenderer(mjA),this.registerComponentRenderer(TW),this.registerComponentRenderer(kjA),this.registerComponentRenderer(MjA),this.registerComponentRenderer(NjA),this.registerComponentRenderer(oJA),this.registerComponentRenderer(lJA),this.registerComponentRenderer(MJA),this.registerComponentRenderer(ZWA)),this.registerComponentRenderer(HjA),this.registerComponentRenderer(fJA),this.registerComponentRenderer(oVA),this.registerCompoundComponentRenderer(dJA),this.registerCompoundComponentRenderer(BJA),this.registerCompoundComponentRenderer(mJA),this.registerCompoundComponentRenderer(wJA),this.registerCompoundComponentRenderer(DJA),this.registerCompoundComponentRenderer(xJA),this.registerComponentRenderer($WA),this.registerComponentRenderer(RzA),this.registerComponentRenderer(FzA),this.registerComponentRenderer(GzA),this.registerComponentRenderer(JzA),this.registerComponentRenderer(tWA),this.registerComponentRenderer(iWA),this.registerComponentRenderer(fVA),(r=e.components)==null||r.forEach(a=>{this.registerComponentRenderer(a)}),(n=e.compoundComponents)==null||n.forEach(a=>{this.registerCompoundComponentRenderer({compoundComponentDef:a})}),this.registerActionFn(zjA),this.registerActionFn(ZjA),this.registerActionFn(eqA),this.registerActionFn(rqA),this.registerActionFn(oqA),(o=e.actions)==null||o.forEach(a=>{this.registerActionFn(a)}),this.registerLoaderRenderer(sqA),this.registerLoaderRenderer(uqA),this.registerLoaderRenderer(dqA),this.registerLoaderRenderer(EqA),(i=this.componentManager)==null||i.subscribeToRegistrations(this.registerComponentRenderer)}get componentThemeVars(){return this.themeVars}get componentDefaultThemeVars(){return this.defaultThemeVars}get actionFunctions(){return this.actionFns}getRegisteredComponentKeys(){return Array.from(this.pool.keys())}lookupComponentRenderer(e){return this.pool.get(e)}lookupAction(e){return this.actionFns.get(e)}lookupLoaderRenderer(e){return this.loaders.get(e)}hasComponent(e){return this.pool.get(e)!==void 0||this.loaders.get(e)!==void 0||this.actionFns.get(e)!==void 0}registerCompoundComponentRenderer({compoundComponentDef:e,metadata:t}){this.pool.set(e.name,{renderer:r=>Q.jsx(BU,{api:e.api,scriptCollected:e.scriptCollected,compound:e.component,...r}),isCompoundComponent:!0}),t!=null&&t.themeVars&&Object.keys(t.themeVars).forEach(r=>this.themeVars.add(r)),t!=null&&t.defaultThemeVars&&wm(this.defaultThemeVars,t==null?void 0:t.defaultThemeVars)}registerActionFn({actionName:e,actionFn:t}){this.actionFns.set(e,t)}registerLoaderRenderer({type:e,renderer:t}){this.loaders.set(e,t)}destroy(){var e;(e=this.componentManager)==null||e.unSubscribeFromRegistrations(this.registerComponentRenderer)}}function pVA({children:A,contributes:e,componentManager:t}){const[r,n]=d.useState(()=>new _M(e,t));return d.useEffect(()=>{n(o=>(o.destroy(),new _M(e,t)))},[t,e]),Q.jsx(vO.Provider,{value:r,children:A})}const tX={dialogContent:"_dialogContent_1rief_13",dialogActions:"_dialogActions_1rief_18"},BVA=({title:A,description:e,children:t,isOpen:r,onClose:n,buttons:o})=>Q.jsxs(Qd,{onClose:n,isInitiallyOpen:r,title:A,children:[Q.jsxs("div",{className:tX.dialogContent,children:[Q.jsx("div",{id:"dialogDesc",children:Q.jsx(Bn,{children:e})}),t]}),!!o&&Q.jsx("footer",{className:tX.dialogActions,children:o})]}),rX=_A.createContext({confirm:async(A,e,t)=>!1}),EVA=()=>d.useContext(rX),CVA=({children:A})=>{const[e,t]=d.useState(!1),[r,n]=d.useState("Are you sure?"),[o,i]=d.useState(),[a,s]=d.useState([]),l=d.useRef(null),c=d.useRef(null);d.useEffect(()=>{e&&setTimeout(()=>{var C;const E=(C=c.current)==null?void 0:C.querySelectorAll("button");E&&E[E.length-1].focus()},0)},[e]);const u=d.useCallback(async(E,C,m)=>(typeof E=="string"?(n(E),s([{label:m||"Ok",value:!0}]),i(C)):(n(E.title),s(E.buttons),i(E.message)),t(!0),new Promise(function(I){l.current=I})),[]),g=d.useCallback(E=>{l.current&&l.current(E),t(!1)},[]),h=d.useCallback(()=>{l.current&&l.current(!1),t(!1)},[]),B=d.useMemo(()=>({confirm:u}),[u]);return Q.jsxs(rX.Provider,{value:B,children:[A,e&&Q.jsx(BVA,{title:r,description:o,isOpen:!0,onClose:h,buttons:Q.jsxs(co,{orientation:"horizontal",horizontalAlignment:"end",style:{width:"100%",gap:"1em"},ref:c,children:[Q.jsx(or,{variant:"ghost",themeColor:"secondary",size:"sm",onClick:h,children:"Cancel"}),a.length>1?Q.jsx("div",{style:{flex:1}}):void 0,a.map(({label:E,value:C,variant:m="solid",themeColor:I="attention"},v)=>Q.jsx(or,{variant:m,themeColor:I,size:"sm",type:"submit",onClick:()=>{g(C)},children:E},v))]})})]})},mVA="0.7.18";function QVA(A,e){if(A.length===0)return 0;const r=nX(A)/A.length;return e?Number(r.toFixed(e)):r}function nX(A){return A.reduce((e,t)=>e+t,0)}const wVA={avg:QVA,sum:nX};var oX={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_Pdf:"false",VITE_USED_COMPONENTS_Chart:"false",VITE_USER_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_XMLUI_VERSION:"0.7.18 (built 1/31/2025)"};a0A();const iX=new cuA({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),IVA={differenceInMinutes:(A,e)=>ACA(new Date(A),new Date(e)),isSameDay:(A,e)=>!A||!e?!1:Xr(new Date(A),new Date(e)),isToday:A=>Xm(new Date(A)),isThisYear:A=>pQA(new Date(A))};function vVA(A){br.error(typeof A=="string"?A:A.message||"Something went wrong")}function DVA({rootContainer:A,routerBaseName:e,globalProps:t,standalone:r,trackContainerHeight:n,decorateComponentsWithTestId:o,debugEnabled:i}){const[a,s]=d.useState(null),l=$k(),c=iQ(),u=Mp(),{confirm:g}=EVA(),{activeThemeId:h,activeThemeTone:B,setActiveThemeId:E,setActiveThemeTone:C,availableThemeIds:m,root:I,toggleThemeTone:v}=cB();DwA(te=>{te.code==="KeyT"&&te.altKey&&te.ctrlKey&&te.shiftKey&&E(m[(m.indexOf(h)+1)%m.length]),te.code==="KeyO"&&te.altKey&&te.ctrlKey&&te.shiftKey&&C(Om[(Om.indexOf(B)+1)%Om.length]),te.code==="KeyS"&&te.altKey&&te.ctrlKey&&te.shiftKey&&l.setDisplayStateView(!l.displayStateView)});const[y,x]=d.useState("0"),[b,k]=d.useState("0"),[M,N]=d.useState("0"),[F,L]=d.useState("0"),[T,P]=d.useState("0"),[G,H]=d.useState("0"),[z,q]=d.useState("0"),[O,Y]=d.useState("0"),[S,J]=d.useState("0"),[$,U]=d.useState("0"),AA=te=>{const Pe=te.match(/^(\d+)px$/);return Pe?`${parseInt(Pe[1])-.02}px`:"0"},Z=d.useRef();Aa(()=>(n&&I&&I!==document.body&&(Z!=null&&Z.current&&Z.current.unobserve(I),Z.current=new ResizeObserver(te=>{I.style.setProperty("--containerHeight",te[0].contentRect.height+"px")}),Z.current&&Z.current.observe(I)),()=>{Z!=null&&Z.current&&Z.current.unobserve(I)}),[I,Z,n]),Aa(()=>{const te=getComputedStyle(I).getPropertyValue(Vl("media-max-width-phone"));x(te),k(AA(te));const Pe=getComputedStyle(I).getPropertyValue(Vl("media-max-width-landscape-phone"));N(Pe),L(AA(Pe));const Ke=getComputedStyle(I).getPropertyValue(Vl("media-max-width-tablet"));P(Ke),H(AA(Ke));const Ct=getComputedStyle(I).getPropertyValue(Vl("media-max-width-desktop"));q(Ct),Y(AA(Ct));const kt=getComputedStyle(I).getPropertyValue(Vl("media-max-width-large-desktop"));J(kt),U(AA(kt))},[h,I]);const tA=Xl(`(max-width: ${b})`),nA=Xl(`(min-width: ${y}) and (max-width: ${F})`),sA=Xl(`(min-width: ${M}) and (max-width: ${G})`),iA=Xl(`(min-width: ${T}) and (max-width: ${O})`),aA=Xl(`(min-width: ${z}) and (max-width: ${$})`);let rA="xs",X=0;const cA=Xl(`(min-width: ${S})`);cA?(rA="xxl",X=5):aA?(rA="xl",X=4):iA?(rA="lg",X=3):sA?(rA="md",X=2):nA&&(rA="sm",X=1);const hA=IwA(),EA=vwA(),IA=QkA(),DA=Ji(),SA=d.useRef("");d.useEffect(()=>{DA.hash&&(SA.current=DA.hash.slice(1)),SA.current&&setTimeout(()=>{var te;(te=document.getElementById(SA.current))==null||te.scrollIntoView({behavior:"instant",block:"start"}),SA.current=""},100)},[DA]);const JA=d.useMemo(()=>{const te={_SUPPORT_IMPLICIT_CONTEXT:!0};for(const[Pe,Ke]of c.actionFunctions)te[Pe]=Ke;return te},[c.actionFunctions]),jA=d.useMemo(()=>({isInIFrame:hA}),[hA]),$A=d.useMemo(()=>({isWindowFocused:EA}),[EA]),VA=d.useMemo(()=>({phone:tA,landscapePhone:nA,tablet:sA,desktop:iA,largeDesktop:aA,xlDesktop:cA,smallScreen:tA||nA||sA,largeScreen:!(tA||nA||sA),size:rA,sizeIndex:X}),[tA,nA,sA,iA,aA,cA,rA,X]),pe=d.useMemo(()=>t?{...t}:qe,[t]),bA=d.useMemo(()=>({version:mVA,Actions:JA,appGlobals:pe,debugEnabled:i,decorateComponentsWithTestId:o,environment:$A,mediaSize:VA,queryClient:iX,standalone:r,...M7,...wVA,formatFileSizeInBytes:YQA,getFileExtension:$QA,navigate:u,routerBaseName:e,confirm:g,signError:vVA,toast:br,activeThemeId:h,activeThemeTone:B,availableThemeIds:m,setTheme:E,setThemeTone:C,toggleThemeTone:v,loggedInUser:a,setLoggedInUser:s,delay:Zg,DateUtils:IVA,embed:jA,apiInterceptorContext:IA,getPropertyByPath:yn,...S7}),[JA,h,B,IA,m,g,i,o,jA,$A,pe,a,VA,u,e,E,C,v,r]),[qA,dA]=d.useState(qe),wA=d.useCallback((te,Pe)=>{dA(Ke=>({...Ke,[te]:Pe}))},[]),HA=d.useCallback((te,Pe)=>{dA(Ke=>({...Ke,[te]:{...Ke[te]||{},...Pe}}))},[]),Ae=d.useMemo(()=>({registerAppState:wA,appState:qA,update:HA}),[qA,wA,HA]),ce=d.useRef(new Map);return Q.jsx(c7.Provider,{value:bA,children:Q.jsx(gV.Provider,{value:Ae,children:nbA(A,ce)})})}const yVA=({node:A,previewMode:e=!1,servedFromSingleFile:t=!1,routerBaseName:r="",contributes:n=qe,globalProps:o,standalone:i,trackContainerHeight:a,decorateComponentsWithTestId:s,debugEnabled:l,defaultTheme:c,defaultTone:u,resources:g,resourceMap:h,sources:B})=>{e&&(Su.canUseDOM=!1);const E=(o==null?void 0:o.name)||"XMLUI app",C=(o==null?void 0:o.useHashBasedRouting)??!0,m=Q.jsxs(Su,{children:[Q.jsx(Nu,{defaultTitle:E,titleTemplate:`%s | ${E}`}),Q.jsx(mkA,{children:Q.jsx(xwA,{resourceMap:h,themes:n.themes,defaultTheme:c,defaultTone:u,resources:g,children:Q.jsx(OyA,{sources:B,children:Q.jsx(CVA,{children:Q.jsx(DVA,{rootContainer:A,routerBaseName:r,globalProps:o,standalone:i,trackContainerHeight:a,decorateComponentsWithTestId:s,debugEnabled:l})})})})})]}),I=e?CcA:t||C?HT:xcA;return Q.jsx(_A.StrictMode,{children:Q.jsx(Zp,{node:A,location:"root-outer",children:Q.jsxs(BuA,{client:iX,children:[(typeof window>"u"||oX.VITE_REMIX)&&m,!(typeof window>"u"||oX.VITE_REMIX)&&Q.jsx(I,{basename:I===HT?void 0:r,children:m})]})})})};function aX({apiInterceptor:A,contributes:e,node:t,decorateComponentsWithTestId:r,debugEnabled:n,defaultTheme:o,defaultTone:i,resources:a,globalProps:s,standalone:l,trackContainerHeight:c,routerBaseName:u,previewMode:g,servedFromSingleFile:h,resourceMap:B,sources:E,componentManager:C}){const m=d.useMemo(()=>({type:"Container",uid:"root",children:[t.type==="Theme"?{...t,props:{...t.props,root:!0}}:{type:"Theme",props:{root:!0},children:[t]}],uses:[]}),[t]);return Q.jsx(pVA,{contributes:e,componentManager:C,children:Q.jsx(AbA,{debugConfig:s==null?void 0:s.debug,children:Q.jsx(yVA,{resourceMap:B,apiInterceptor:A,node:m,contributes:e,resources:a,routerBaseName:u,decorateComponentsWithTestId:r,debugEnabled:n,defaultTheme:o,defaultTone:i,globalProps:s,standalone:l,trackContainerHeight:c,previewMode:g,servedFromSingleFile:h,sources:E})})})}var sX={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_Pdf:"false",VITE_USED_COMPONENTS_Chart:"false",VITE_USER_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_XMLUI_VERSION:"0.7.18 (built 1/31/2025)"};function bVA({interceptor:A,children:e,apiWorker:t,useHashBasedRouting:r}){const[n,o]=d.useState(!A);d.useEffect(()=>{if(A){o(!1);let a;return(async()=>{{const{createApiInterceptorWorker:s}=await Promise.resolve().then(()=>Xge);if(A&&(a=await s(A,t),!t)){const l=L2(sX.VITE_MOCK_WORKER_LOCATION);await a.start({onUnhandledRequest:"bypass",quiet:!0,serviceWorker:{url:l}})}}o(!0)})(),()=>{t||a==null||a.stop()}}},[t,A,r]);const i=d.useMemo(()=>({isMocked:a=>A!==void 0&&!!sX.VITE_MOCK_ENABLED}),[A]);return Q.jsx(k7.Provider,{value:i,children:n&&e||null})}const D1="xmlui",uh="xmlui.xs";function xVA(A,e,t,r){const n=[],o={},i=new Set,a=new Set;if(A&&HE(A,null,s,o,t),!o.abort)for(const g of e)l(g.name)||c("M007","Component",g.name),g.name==="Component"&&c("M008","Component",g.name),t.componentRegistered(g.name)&&c("M009","Component",g.name),a.has(g.name)?c("M010","Component",g.name):a.add(g.name),i.clear(),HE(g.component,null,s,o,t);return n;function s(g,h,B,E){if(!B)return;if(!t.componentRegistered(g.type)){c("M001",(h==null?void 0:h.type)??"Root",g.type);return}g.uid&&(l(g.uid)?i.has(g.uid)?c("M003",g.type,g.uid):i.add(g.uid):c("M002",g.type,g.type,g.uid));const C=t.getComponentProps(g.type)??{},m=g.props??{};for(const x of Object.keys(m))if(C[x]){const k=m[x];if(typeof k=="string")try{QQ(k)}catch(M){c("M006",g.type,x,M.message)}}else{const k=x.split("-");k.length===1&&Yk.includes(x)||k.length===2&&Yk.includes(k[0])&&uDA.includes(k[1])||t.acceptArbitraryProps(g.type)||c("M005",g.type,g.type,x)}const I=t.getComponentEvents(g.type)??{},v=g.events??{};for(const x of Object.keys(v))if(I[x]){const k=v[x];if(typeof k=="string"){const M=new nd(k);try{M.parseStatements(),M.errors.length>0&&c("M012",g.type,x,M.errors[0].text)}catch(N){c("M012",g.type,x,N.message)}}}else c("M011",g.type,g.type,x);const y=t.getComponentValidator(g.type);if(y){const x=y(g,r);if(x)if(Array.isArray(x))for(const b of x)c("M013",g.type,b);else c("M013",g.type,x)}}function l(g){return/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(g)}function c(g,h,...B){u(g,h,!1,...B)}function u(g,h,B,...E){let C=kVA[g]??"Unkonwn error";E&&E.forEach((I,v)=>C=m(C,`{${v}}`,E[v].toString())),n.push({name:h,code:g,message:C,isWarning:B,args:E});function m(I,v,y){do I=I.replace(v,y);while(I.includes(v));return I}}}function HE(A,e,t,r={},n){if(t(A,e,!0,r),r.abort||r.cancel)return;const o=n.getComponentProps(A.type)??{},i=A.props??{};for(const l of Object.keys(i)){const c=o[l];if(!c)continue;const u=i[l];if(c.type==="ComponentDef"&&u.type&&(HE(u,A,t,r,n),r.abort||r.cancel))return}const a=n.getComponentEvents(A.type)??{},s=A.events??{};for(const l of Object.keys(s)){if(!a[l])continue;const u=s[l];if(typeof u=="object"&&u.type){if(HE(u,A,t,r,n),r.abort)return;if(r.cancel)break}}if(A.children)for(const l of A.children){if(HE(l,A,t,r,n),r.abort)return;if(r.cancel)break}t(A,void 0,!1,r)}const kVA={M001:"The component '{0}' is not registered",M002:"The '{0}' element has an invalid id: '{1}'",M003:"Invalid component identifier: '{0}'",M004:"Duplicated component identifier: '{0}'",M005:"The '{0}' element has an invalid property: '{1}'",M006:"Parsing property value of '{0}' failed: {1}",M007:"The name of a reusable component is invalid: '{0}'",M008:"The name of a reusable component must not be '{0}', as it is a reserved name",M009:"A reusable component cannot have the name of a registered component: '{0}'",M010:"Duplicated reusable component name: '{0}'",M011:"The '{0}' element has an invalid event: '{1}'",M012:"Parsing event value of '{0}' failed: {1}",M013:"Component validation failed: '{0}'"};var Ql={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_Pdf:"false",VITE_USED_COMPONENTS_Chart:"false",VITE_USER_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_XMLUI_VERSION:"0.7.18 (built 1/31/2025)"};const MM="Main."+D1,_VA="Main."+uh,lX="config.json";function cX({appDef:A,decorateComponentsWithTestId:e,debugEnabled:t=!1,runtime:r,components:n,componentManager:o}){const i=d.useMemo(()=>typeof window<"u"&&window.location.href.startsWith("file"),[]),a=MVA(A,r,o);if(SVA(a),!a)return null;const{apiInterceptor:s,name:l,appGlobals:c,defaultTheme:u,defaultTone:g,resources:h,resourceMap:B,entryPoint:E,components:C,themes:m,sources:I}=a,v=typeof window<"u"&&window.XMLUI_MOCK_API?window.XMLUI_MOCK_API:s,y=e||(typeof window<"u"?window.XMLUI_MOCK_TEST_ID:!1),x=(c==null?void 0:c.useHashBasedRouting)??!0;return Q.jsx(bVA,{interceptor:v,useHashBasedRouting:x,children:Q.jsx(aX,{servedFromSingleFile:i,decorateComponentsWithTestId:y,node:E,standalone:!0,debugEnabled:t,routerBaseName:typeof window<"u"&&window.__PUBLIC_PATH||"",globalProps:{name:l,...c||{}},defaultTheme:u,defaultTone:g,resources:h,resourceMap:B,sources:I,componentManager:o,contributes:{compoundComponents:C,components:n,themes:m}})})}async function SM(A){if(!A.ok)throw new Error(`Failed to fetch ${A.url}`);const e=await A.text(),t=A.url;let{component:r,errors:n,erroneousCompoundComponentName:o}=RW(e,t);if(n.length>0){const i=o??A.url.substring(A.url.lastIndexOf("/")+1,A.url.length-6);r=hjA(n,t,i)}return{component:r,src:e,file:t,hasError:n.length>0}}async function NM(A){if(!A.ok)throw new Error(`Failed to fetch ${A.url}`);const e=await A.text(),t=new nd(e);try{t.parseStatements()}catch{if(t.errors.length>0)return{component:pjA(t.errors[0],A.url),file:A.url,hasError:!0}}const r=u7("Main",e,()=>"",n=>n);return Object.keys(r.moduleErrors??{}).length>0?{component:BjA(r.moduleErrors,A.url),file:A.url,hasError:!0}:(JyA(r),{codeBehind:r,file:A.url})}function y1(A,e){return A.endsWith(`/${e}.ts`)||A.endsWith(`/${e}.js`)||A.endsWith(`/${e}.${D1}`)||A.endsWith(`/${e}.${uh}`)}function uX(A,e){return A.includes(`/${e}/`)}function fX(A){const e={},t={},r={},n=[];let o,i,a,s;for(const[g,h]of Object.entries(A))y1(g,"config")&&(o=h.default),(y1(g,"Main")||y1(g,"App"))&&(g.endsWith(uh)?a=h.default:(i=h.default.component,h.default.file&&(e[h.default.file]=h.default.src))),y1(g,"api")&&(s=h.default),uX(g,"components")&&(g.endsWith(`.${uh}`)?r[g]=h.default:(t[g]=h.default.component,e[h.default.file]=h.default.src)),uX(g,"themes")&&n.push(h.default);const l=(o==null?void 0:o.entryPoint)||i,c={...l,vars:{...a==null?void 0:a.vars,...l==null?void 0:l.vars},functions:a==null?void 0:a.functions,scriptError:a==null?void 0:a.moduleErrors};let u=[];return o!=null&&o.components?u=o.components:Object.entries(t).forEach(([g,h])=>{const B=r[`${g}.xs`],E={...h,component:{...h.component,vars:{...h.component.vars,...B==null?void 0:B.vars},functions:B==null?void 0:B.functions,scriptError:B==null?void 0:B.moduleErrors}};u.push(E)}),{...o,entryPoint:c,components:u,themes:(o==null?void 0:o.themes)||n,apiInterceptor:(o==null?void 0:o.apiInterceptor)||s,sources:e}}function gX(A,e){return e?{...e,entryPoint:e.entryPoint||A.entryPoint,components:e.components||A.components,themes:e.themes||A.themes,apiInterceptor:e.apiInterceptor||A.apiInterceptor}:A}async function hs(A){return fetch(L2(A),{headers:{"Cache-Control":"no-cache, no-store"}})}function MVA(A,e=qe,t){const[r,n]=d.useState(()=>{const o=fX(e),i=gX(o,A);if((Ql.VITE_DEV_MODE||Ql.VITE_BUILD_MODE==="INLINE_ALL")&&!Ql.VITE_STANDALONE){if(!i)throw new Error("couldn't find the application metadata");return i}return null});return Aa(()=>{(async function(){var N,F,L,T;const o=fX(e),i=gX(o,A);if((Ql.VITE_DEV_MODE||Ql.VITE_BUILD_MODE==="INLINE_ALL")&&!Ql.VITE_STANDALONE){if(!i)throw new Error("couldn't find the application metadata");n(i);return}if(Ql.VITE_BUILD_MODE==="CONFIG_ONLY"){const G=await(await hs(lX)).json(),H=[];(N=G.themes)==null||N.forEach(q=>{H.push(hs(q).then(O=>O.json()))});const z=await Promise.all(H);n({...i,name:G.name,appGlobals:G.appGlobals,defaultTheme:G.defaultTheme,resources:G.resources,resourceMap:G.resourceMap,themes:z});return}const a=new Promise(async P=>{try{const G=await hs(MM);G.ok?P(SM(G)):P({component:djA(`Failed to load the main component (${MM})`),file:MM,hasError:!0})}catch{P(null)}}),s=new Promise(async P=>{try{const G=await hs(_VA),H=await NM(G);P(H.hasError?H:H.codeBehind)}catch{P(null)}});let l;try{l=await(await hs(lX)).json()}catch{}const c=(F=l==null?void 0:l.themes)==null?void 0:F.map(P=>hs(P).then(G=>G.json())),u=(L=l==null?void 0:l.components)==null?void 0:L.map(async P=>{const G=await hs(P);return P.endsWith(`.${D1}`)?await SM(G):await NM(G)}),[g,h,B,E]=await Promise.all([a,s,Promise.all(u||[]),Promise.all(c||[])]),C=[];g.hasError&&C.push(g.component),h!=null&&h.hasError&&C.push(h.component),B.forEach(P=>{P.hasError&&C.push(P.component)});const m={},I={};g.file&&(m[g.file]=g.src),B.forEach(P=>{var G;(G=P==null?void 0:P.file)!=null&&G.endsWith(`.${uh}`)?I[P.file]=P.codeBehind:P.file&&(m[P.file]=P.src)});const v={...g.component,vars:{...h==null?void 0:h.vars,...g.component.vars},functions:h==null?void 0:h.functions,scriptError:h==null?void 0:h.moduleErrors},y=(T=v.props)==null?void 0:T.defaultTheme;y&&typeof y=="string"&&!y.includes("{")&&!bO.find(P=>P.id===y)&&!E.find(P=>P.id===y)&&E.push(await hs(`themes/${y}.json`).then(P=>P.json()));const x=B.filter(P=>{var G;return!((G=P==null?void 0:P.file)!=null&&G.endsWith(".xmlui.xs"))}).map(P=>{const G=I[P.file+".xs"];return{...P.component,component:{...P.component.component,vars:{...P.component.component.vars,...G==null?void 0:G.vars},functions:G==null?void 0:G.functions,scriptError:G==null?void 0:G.moduleErrors}}});let b=dX(v,x,void 0,t);const k=new Set;for(;b.size>0;){const P=[...b].map(async H=>{try{const z=hs(`components/${H}.${D1}`),q=new Promise(async J=>{try{const $=await NM(await hs(`components/${H}.${uh}`));$.hasError&&C.push($.component),J($.hasError?$.component:$.codeBehind)}catch{J(null)}}),[O,Y]=await Promise.all([z,q]),S=await SM(O);return S.hasError&&C.push(S.component),m[S.file]=S.src,{...S.component,component:{...S.component.component,vars:{...S.component.component.vars,...Y==null?void 0:Y.vars},functions:Y==null?void 0:Y.functions,scriptError:Y==null?void 0:Y.moduleErrors}}}catch{return k.add(H),null}}),G=await Promise.all(P);x.push(...G.filter(H=>!!H)),b=dX(v,x,k,t)}const M=C.length>0?{type:"VStack",props:{gap:0,padding:0},children:C}:null;n({...l,themes:E,sources:m,components:x,entryPoint:M||v})})()},[e,A]),r}function dX(A,e,t=new Set,r){const n=new _M({compoundComponents:e},r),o=xVA(A,e,{getComponentProps:i=>{var a,s;return(s=(a=n.lookupComponentRenderer(i))==null?void 0:a.descriptor)==null?void 0:s.props},acceptArbitraryProps:()=>!0,getComponentValidator:()=>null,getComponentEvents:()=>null,componentRegistered:i=>n.hasComponent(i)});return n.destroy(),new Set(o.filter(i=>i.code==="M001").map(i=>i.args[0]).filter(i=>!t.has(i)))}function SVA(A){const e=d.useRef(!1);d.useEffect(()=>{if(e.current)return;e.current=!0;let t=`XMLUI version: ${Ql.VITE_XMLUI_VERSION}`;A!=null&&A.name&&(t+=`; ${A.name} version: ${Ql.VITE_APP_VERSION||"dev"}`),console.log(t)},[A==null?void 0:A.name])}let b1=null;function hX(A,e,t){let r=document.getElementById("root");return r||(r=document.createElement("div"),r.setAttribute("id","root"),document.body.appendChild(r)),b1||(b1=Sb.createRoot(r)),b1.render(Q.jsx(cX,{runtime:A,components:e,componentManager:t})),b1}class NVA{constructor(){this.subscriptions=new Set,this.registeredComponents=[]}subscribeToRegistrations(e){this.subscriptions.add(e),this.registeredComponents.forEach(t=>{e(t)})}unSubscribeFromRegistrations(e){this.subscriptions.delete(e)}registerComponent(e){(Array.isArray(e)?e:[e]).forEach(t=>{this.registeredComponents.push(t),this.subscriptions.forEach(r=>{r(t)})})}}const RVA=Object.freeze(Object.defineProperty({__proto__:null,AppRoot:aX,Button:or,ErrorBoundary:Zp,Icon:be,Splitter:dU,Stack:co,StandaloneApp:cX,createComponentRenderer:RA,createMetadata:kA,d:j,getColor:M4A,parseScssVar:ne,startApp:hX,toCssVar:io,useColors:bwA,useTheme:nr},Symbol.toStringTag,{value:"Module"})),pX=new NVA;document.addEventListener("DOMContentLoaded",function(){if(!document.getElementById("root")){const A=document.createElement("div");A.id="root",document.getElementsByTagName("body")[0].appendChild(A)}hX(void 0,void 0,pX)}),window.React=_A,window.jsxRuntime=NlA,window.ReactDOM=yp;const PVA={...RVA,standalone:pX};let GE=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function TVA(A){return RM(A)}function RM(A){return Array.isArray(A)?LVA(A):typeof A=="object"?FVA(A):A}function LVA(A){let e=[];for(let t=0,r=A.length;t<r;t++)e[t]=RM(A[t]);return e}function FVA(A){let e={};for(let t in A)e[t]=RM(A[t]);return e}function BX(A,...e){return e.forEach(t=>{for(let r in t)A[r]=t[r]}),A}function EX(A){const e=~A.lastIndexOf("/")||~A.lastIndexOf("\\");return e===0?A:~e===A.length-1?EX(A.substring(0,A.length-1)):A.substr(~e+1)}var PM=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,x1=class{static hasCaptures(A){return A===null?!1:(PM.lastIndex=0,PM.test(A))}static replaceCaptures(A,e,t){return A.replace(PM,(r,n,o,i)=>{let a=t[parseInt(n||o,10)];if(a){let s=e.substring(a.start,a.end);for(;s[0]===".";)s=s.substring(1);switch(i){case"downcase":return s.toLowerCase();case"upcase":return s.toUpperCase();default:return s}}else return r})}};function CX(A,e){return A<e?-1:A>e?1:0}function mX(A,e){if(A===null&&e===null)return 0;if(!A)return-1;if(!e)return 1;let t=A.length,r=e.length;if(t===r){for(let n=0;n<t;n++){let o=CX(A[n],e[n]);if(o!==0)return o}return 0}return t-r}function QX(A){return!!(/^#[0-9a-f]{6}$/i.test(A)||/^#[0-9a-f]{8}$/i.test(A)||/^#[0-9a-f]{3}$/i.test(A)||/^#[0-9a-f]{4}$/i.test(A))}function wX(A){return A.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var IX=class{constructor(A){this.fn=A,this.cache=new Map}get(A){if(this.cache.has(A))return this.cache.get(A);const e=this.fn(A);return this.cache.set(A,e),e}},k1=class{constructor(A,e,t){this._colorMap=A,this._defaults=e,this._root=t,this._cachedMatchRoot=new IX(r=>this._root.match(r))}static createFromRawTheme(A,e){return this.createFromParsedTheme(GVA(A),e)}static createFromParsedTheme(A,e){return KVA(A,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(A){if(A===null)return this._defaults;const e=A.scopeName,r=this._cachedMatchRoot.get(e).find(n=>OVA(A.parent,n.parentScopes));return r?new vX(r.fontStyle,r.foreground,r.background):null}},TM=class _b{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const r of t)e=new _b(e,r);return e}static from(...e){let t=null;for(let r=0;r<e.length;r++)t=new _b(t,e[r]);return t}push(e){return new _b(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let r=this;for(;r&&r!==e;)t.push(r.scopeName),r=r.parent;return r===e?t.reverse():void 0}};function OVA(A,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let r=e[t],n=!1;if(r===">"){if(t===e.length-1)return!1;r=e[++t],n=!0}for(;A&&!HVA(A.scopeName,r);){if(n)return!1;A=A.parent}if(!A)return!1;A=A.parent}return!0}function HVA(A,e){return e===A||A.startsWith(e)&&A[e.length]==="."}var vX=class{constructor(A,e,t){this.fontStyle=A,this.foregroundId=e,this.backgroundId=t}};function GVA(A){if(!A)return[];if(!A.settings||!Array.isArray(A.settings))return[];let e=A.settings,t=[],r=0;for(let n=0,o=e.length;n<o;n++){let i=e[n];if(!i.settings)continue;let a;if(typeof i.scope=="string"){let u=i.scope;u=u.replace(/^[,]+/,""),u=u.replace(/[,]+$/,""),a=u.split(",")}else Array.isArray(i.scope)?a=i.scope:a=[""];let s=-1;if(typeof i.settings.fontStyle=="string"){s=0;let u=i.settings.fontStyle.split(" ");for(let g=0,h=u.length;g<h;g++)switch(u[g]){case"italic":s=s|1;break;case"bold":s=s|2;break;case"underline":s=s|4;break;case"strikethrough":s=s|8;break}}let l=null;typeof i.settings.foreground=="string"&&QX(i.settings.foreground)&&(l=i.settings.foreground);let c=null;typeof i.settings.background=="string"&&QX(i.settings.background)&&(c=i.settings.background);for(let u=0,g=a.length;u<g;u++){let B=a[u].trim().split(" "),E=B[B.length-1],C=null;B.length>1&&(C=B.slice(0,B.length-1),C.reverse()),t[r++]=new UVA(E,C,n,s,l,c)}}return t}var UVA=class{constructor(A,e,t,r,n,o){this.scope=A,this.parentScopes=e,this.index=t,this.fontStyle=r,this.foreground=n,this.background=o}},ps=(A=>(A[A.NotSet=-1]="NotSet",A[A.None=0]="None",A[A.Italic=1]="Italic",A[A.Bold=2]="Bold",A[A.Underline=4]="Underline",A[A.Strikethrough=8]="Strikethrough",A))(ps||{});function KVA(A,e){A.sort((s,l)=>{let c=CX(s.scope,l.scope);return c!==0||(c=mX(s.parentScopes,l.parentScopes),c!==0)?c:s.index-l.index});let t=0,r="#000000",n="#ffffff";for(;A.length>=1&&A[0].scope==="";){let s=A.shift();s.fontStyle!==-1&&(t=s.fontStyle),s.foreground!==null&&(r=s.foreground),s.background!==null&&(n=s.background)}let o=new YVA(e),i=new vX(t,o.getId(r),o.getId(n)),a=new jVA(new LM(0,null,-1,0,0),[]);for(let s=0,l=A.length;s<l;s++){let c=A[s];a.insert(0,c.scope,c.parentScopes,c.fontStyle,o.getId(c.foreground),o.getId(c.background))}return new k1(o,i,a)}var YVA=class{constructor(A){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(A)){this._isFrozen=!0;for(let e=0,t=A.length;e<t;e++)this._color2id[A[e]]=e,this._id2color[e]=A[e]}else this._isFrozen=!1}getId(A){if(A===null)return 0;A=A.toUpperCase();let e=this._color2id[A];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${A}`);return e=++this._lastColorId,this._color2id[A]=e,this._id2color[e]=A,e}getColorMap(){return this._id2color.slice(0)}},$VA=Object.freeze([]),LM=class xlA{constructor(e,t,r,n,o){this.scopeDepth=e,this.parentScopes=t||$VA,this.fontStyle=r,this.foreground=n,this.background=o}clone(){return new xlA(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=e[r].clone();return t}acceptOverwrite(e,t,r,n){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),r!==0&&(this.foreground=r),n!==0&&(this.background=n)}},jVA=class cT{constructor(e,t=[],r={}){this._mainRule=e,this._children=r,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let r=0,n=0;for(;e.parentScopes[r]===">"&&r++,t.parentScopes[n]===">"&&n++,!(r>=e.parentScopes.length||n>=t.parentScopes.length);){const o=t.parentScopes[n].length-e.parentScopes[r].length;if(o!==0)return o;r++,n++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let r=e.indexOf("."),n,o;if(r===-1?(n=e,o=""):(n=e.substring(0,r),o=e.substring(r+1)),this._children.hasOwnProperty(n))return this._children[n].match(o)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(cT._cmpBySpecificity),t}insert(e,t,r,n,o,i){if(t===""){this._doInsertHere(e,r,n,o,i);return}let a=t.indexOf("."),s,l;a===-1?(s=t,l=""):(s=t.substring(0,a),l=t.substring(a+1));let c;this._children.hasOwnProperty(s)?c=this._children[s]:(c=new cT(this._mainRule.clone(),LM.cloneArr(this._rulesWithParentScopes)),this._children[s]=c),c.insert(e+1,l,r,n,o,i)}_doInsertHere(e,t,r,n,o){if(t===null){this._mainRule.acceptOverwrite(e,r,n,o);return}for(let i=0,a=this._rulesWithParentScopes.length;i<a;i++){let s=this._rulesWithParentScopes[i];if(mX(s.parentScopes,t)===0){s.acceptOverwrite(e,r,n,o);return}}r===-1&&(r=this._mainRule.fontStyle),n===0&&(n=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new LM(e,t,r,n,o))}},Sf=class qi{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=qi.getLanguageId(e),r=qi.getTokenType(e),n=qi.getFontStyle(e),o=qi.getForeground(e),i=qi.getBackground(e);console.log({languageId:t,tokenType:r,fontStyle:n,foreground:o,background:i})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,r,n,o,i,a){let s=qi.getLanguageId(e),l=qi.getTokenType(e),c=qi.containsBalancedBrackets(e)?1:0,u=qi.getFontStyle(e),g=qi.getForeground(e),h=qi.getBackground(e);return t!==0&&(s=t),r!==8&&(l=r),n!==null&&(c=n?1:0),o!==-1&&(u=o),i!==0&&(g=i),a!==0&&(h=a),(s<<0|l<<8|c<<10|u<<11|g<<15|h<<24)>>>0}};function yve(A){return A}function bve(A){return A}function _1(A,e){const t=[],r=qVA(A);let n=r.next();for(;n!==null;){let s=0;if(n.length===2&&n.charAt(1)===":"){switch(n.charAt(0)){case"R":s=1;break;case"L":s=-1;break;default:console.log(`Unknown priority ${n} in scope selector`)}n=r.next()}let l=i();if(t.push({matcher:l,priority:s}),n!==",")break;n=r.next()}return t;function o(){if(n==="-"){n=r.next();const s=o();return l=>!!s&&!s(l)}if(n==="("){n=r.next();const s=a();return n===")"&&(n=r.next()),s}if(DX(n)){const s=[];do s.push(n),n=r.next();while(DX(n));return l=>e(s,l)}return null}function i(){const s=[];let l=o();for(;l;)s.push(l),l=o();return c=>s.every(u=>u(c))}function a(){const s=[];let l=i();for(;l&&(s.push(l),n==="|"||n===",");){do n=r.next();while(n==="|"||n===",");l=i()}return c=>s.some(u=>u(c))}}function DX(A){return!!A&&!!A.match(/[\w\.:]+/)}function qVA(A){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(A);return{next:()=>{if(!t)return null;const r=t[0];return t=e.exec(A),r}}}function yX(A){typeof A.dispose=="function"&&A.dispose()}var UE=class{constructor(A){this.scopeName=A}toKey(){return this.scopeName}},JVA=class{constructor(A,e){this.scopeName=A,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},zVA=class{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(A){const e=A.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(A))}},WVA=class{constructor(A,e){this.repo=A,this.initialScopeName=e,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new UE(this.initialScopeName)]}processQueue(){const A=this.Q;this.Q=[];const e=new zVA;for(const t of A)VVA(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof UE){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function VVA(A,e,t,r){const n=t.lookup(A.scopeName);if(!n){if(A.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const o=t.lookup(e);A instanceof UE?M1({baseGrammar:o,selfGrammar:n},r):FM(A.ruleName,{baseGrammar:o,selfGrammar:n,repository:n.repository},r);const i=t.injections(A.scopeName);if(i)for(const a of i)r.add(new UE(a))}function FM(A,e,t){if(e.repository&&e.repository[A]){const r=e.repository[A];S1([r],e,t)}}function M1(A,e){A.selfGrammar.patterns&&Array.isArray(A.selfGrammar.patterns)&&S1(A.selfGrammar.patterns,{...A,repository:A.selfGrammar.repository},e),A.selfGrammar.injections&&S1(Object.values(A.selfGrammar.injections),{...A,repository:A.selfGrammar.repository},e)}function S1(A,e,t){for(const r of A){if(t.visitedRule.has(r))continue;t.visitedRule.add(r);const n=r.repository?BX({},e.repository,r.repository):e.repository;Array.isArray(r.patterns)&&S1(r.patterns,{...e,repository:n},t);const o=r.include;if(!o)continue;const i=bX(o);switch(i.kind){case 0:M1({...e,selfGrammar:e.baseGrammar},t);break;case 1:M1(e,t);break;case 2:FM(i.ruleName,{...e,repository:n},t);break;case 3:case 4:const a=i.scopeName===e.selfGrammar.scopeName?e.selfGrammar:i.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(a){const s={baseGrammar:e.baseGrammar,selfGrammar:a,repository:n};i.kind===4?FM(i.ruleName,s,t):M1(s,t)}else i.kind===4?t.add(new JVA(i.scopeName,i.ruleName)):t.add(new UE(i.scopeName));break}}}var XVA=class{constructor(){this.kind=0}},ZVA=class{constructor(){this.kind=1}},AXA=class{constructor(A){this.ruleName=A,this.kind=2}},eXA=class{constructor(A){this.scopeName=A,this.kind=3}},tXA=class{constructor(A,e){this.scopeName=A,this.ruleName=e,this.kind=4}};function bX(A){if(A==="$base")return new XVA;if(A==="$self")return new ZVA;const e=A.indexOf("#");if(e===-1)return new eXA(A);if(e===0)return new AXA(A.substring(1));{const t=A.substring(0,e),r=A.substring(e+1);return new tXA(t,r)}}var rXA=/\\(\d+)/,xX=/\\(\d+)/g,nXA=-1,kX=-2;function xve(A){return A}function kve(A){return A}var KE=class{constructor(A,e,t,r){this.$location=A,this.id=e,this._name=t||null,this._nameIsCapturing=x1.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=x1.hasCaptures(this._contentName)}get debugName(){const A=this.$location?`${EX(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${A}`}getName(A,e){return!this._nameIsCapturing||this._name===null||A===null||e===null?this._name:x1.replaceCaptures(this._name,A,e)}getContentName(A,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:x1.replaceCaptures(this._contentName,A,e)}},oXA=class extends KE{constructor(A,e,t,r,n){super(A,e,t,r),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(A,e){throw new Error("Not supported!")}compile(A,e){throw new Error("Not supported!")}compileAG(A,e,t,r){throw new Error("Not supported!")}},iXA=class extends KE{constructor(A,e,t,r,n){super(A,e,t,null),this._match=new YE(r,this.id),this.captures=n,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(A,e){e.push(this._match)}compile(A,e){return this._getCachedCompiledPatterns(A).compile(A)}compileAG(A,e,t,r){return this._getCachedCompiledPatterns(A).compileAG(A,t,r)}_getCachedCompiledPatterns(A){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new $E,this.collectPatterns(A,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},_X=class extends KE{constructor(A,e,t,r,n){super(A,e,t,r),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(A,e){for(const t of this.patterns)A.getRule(t).collectPatterns(A,e)}compile(A,e){return this._getCachedCompiledPatterns(A).compile(A)}compileAG(A,e,t,r){return this._getCachedCompiledPatterns(A).compileAG(A,t,r)}_getCachedCompiledPatterns(A){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new $E,this.collectPatterns(A,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},OM=class extends KE{constructor(A,e,t,r,n,o,i,a,s,l){super(A,e,t,r),this._begin=new YE(n,this.id),this.beginCaptures=o,this._end=new YE(i||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=s||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(A,e){return this._end.resolveBackReferences(A,e)}collectPatterns(A,e){e.push(this._begin)}compile(A,e){return this._getCachedCompiledPatterns(A,e).compile(A)}compileAG(A,e,t,r){return this._getCachedCompiledPatterns(A,e).compileAG(A,t,r)}_getCachedCompiledPatterns(A,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new $E;for(const t of this.patterns)A.getRule(t).collectPatterns(A,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},N1=class extends KE{constructor(A,e,t,r,n,o,i,a,s){super(A,e,t,r),this._begin=new YE(n,this.id),this.beginCaptures=o,this.whileCaptures=a,this._while=new YE(i,kX),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(A,e){return this._while.resolveBackReferences(A,e)}collectPatterns(A,e){e.push(this._begin)}compile(A,e){return this._getCachedCompiledPatterns(A).compile(A)}compileAG(A,e,t,r){return this._getCachedCompiledPatterns(A).compileAG(A,t,r)}_getCachedCompiledPatterns(A){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new $E;for(const e of this.patterns)A.getRule(e).collectPatterns(A,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(A,e){return this._getCachedCompiledWhilePatterns(A,e).compile(A)}compileWhileAG(A,e,t,r){return this._getCachedCompiledWhilePatterns(A,e).compileAG(A,t,r)}_getCachedCompiledWhilePatterns(A,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new $E,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||""),this._cachedCompiledWhilePatterns}},MX=class Kn{static createCaptureRule(e,t,r,n,o){return e.registerRule(i=>new oXA(t,i,r,n,o))}static getCompiledRuleId(e,t,r){return e.id||t.registerRule(n=>{if(e.id=n,e.match)return new iXA(e.$vscodeTextmateLocation,e.id,e.name,e.match,Kn._compileCaptures(e.captures,t,r));if(typeof e.begin>"u"){e.repository&&(r=BX({},r,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new _X(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,Kn._compilePatterns(o,t,r))}return e.while?new N1(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,Kn._compileCaptures(e.beginCaptures||e.captures,t,r),e.while,Kn._compileCaptures(e.whileCaptures||e.captures,t,r),Kn._compilePatterns(e.patterns,t,r)):new OM(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,Kn._compileCaptures(e.beginCaptures||e.captures,t,r),e.end,Kn._compileCaptures(e.endCaptures||e.captures,t,r),e.applyEndPatternLast,Kn._compilePatterns(e.patterns,t,r))}),e.id}static _compileCaptures(e,t,r){let n=[];if(e){let o=0;for(const i in e){if(i==="$vscodeTextmateLocation")continue;const a=parseInt(i,10);a>o&&(o=a)}for(let i=0;i<=o;i++)n[i]=null;for(const i in e){if(i==="$vscodeTextmateLocation")continue;const a=parseInt(i,10);let s=0;e[i].patterns&&(s=Kn.getCompiledRuleId(e[i],t,r)),n[a]=Kn.createCaptureRule(t,e[i].$vscodeTextmateLocation,e[i].name,e[i].contentName,s)}}return n}static _compilePatterns(e,t,r){let n=[];if(e)for(let o=0,i=e.length;o<i;o++){const a=e[o];let s=-1;if(a.include){const l=bX(a.include);switch(l.kind){case 0:case 1:s=Kn.getCompiledRuleId(r[a.include],t,r);break;case 2:let c=r[l.ruleName];c&&(s=Kn.getCompiledRuleId(c,t,r));break;case 3:case 4:const u=l.scopeName,g=l.kind===4?l.ruleName:null,h=t.getExternalGrammar(u,r);if(h)if(g){let B=h.repository[g];B&&(s=Kn.getCompiledRuleId(B,t,h.repository))}else s=Kn.getCompiledRuleId(h.repository.$self,t,h.repository);break}}else s=Kn.getCompiledRuleId(a,t,r);if(s!==-1){const l=t.getRule(s);let c=!1;if((l instanceof _X||l instanceof OM||l instanceof N1)&&l.hasMissingPatterns&&l.patterns.length===0&&(c=!0),c)continue;n.push(s)}}return{patterns:n,hasMissingPatterns:(e?e.length:0)!==n.length}}},YE=class klA{constructor(e,t){if(e){const r=e.length;let n=0,o=[],i=!1;for(let a=0;a<r;a++)if(e.charAt(a)==="\\"&&a+1<r){const l=e.charAt(a+1);l==="z"?(o.push(e.substring(n,a)),o.push("$(?!\\n)(?<!\\n)"),n=a+2):(l==="A"||l==="G")&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(o.push(e.substring(n,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=rXA.test(this.source)}clone(){return new klA(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let r=t.map(n=>e.substring(n.start,n.end));return xX.lastIndex=0,this.source.replace(xX,(n,o)=>wX(r[parseInt(o,10)]||""))}_buildAnchorCache(){let e=[],t=[],r=[],n=[],o,i,a,s;for(o=0,i=this.source.length;o<i;o++)a=this.source.charAt(o),e[o]=a,t[o]=a,r[o]=a,n[o]=a,a==="\\"&&o+1<i&&(s=this.source.charAt(o+1),s==="A"?(e[o+1]="",t[o+1]="",r[o+1]="A",n[o+1]="A"):s==="G"?(e[o+1]="",t[o+1]="G",r[o+1]="",n[o+1]="G"):(e[o+1]=s,t[o+1]=s,r[o+1]=s,n[o+1]=s),o++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:r.join(""),A1_G1:n.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},$E=class{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(A){this._items.push(A),this._hasAnchors=this._hasAnchors||A.hasAnchor}unshift(A){this._items.unshift(A),this._hasAnchors=this._hasAnchors||A.hasAnchor}length(){return this._items.length}setSource(A,e){this._items[A].source!==e&&(this._disposeCaches(),this._items[A].setSource(e))}compile(A){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new SX(A,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(A,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(A,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(A,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(A,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(A,e,t)),this._anchorCache.A0_G0):this.compile(A)}_resolveAnchors(A,e,t){let r=this._items.map(n=>n.resolveAnchors(e,t));return new SX(A,r,this._items.map(n=>n.ruleId))}},SX=class{constructor(A,e,t){this.regExps=e,this.rules=t,this.scanner=A.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const A=[];for(let e=0,t=this.rules.length;e<t;e++)A.push(" - "+this.rules[e]+": "+this.regExps[e]);return A.join(`
|
|
556
|
+
`),metadata:bJA},Ri={themeVars:`'{"padding-vertical-TableOfContentsItem": "var(--xmlui-padding-vertical-TableOfContentsItem)", "padding-horizontal-TableOfContentsItem": "var(--xmlui-padding-horizontal-TableOfContentsItem)", "padding-horizontal-TableOfContentsItem-level-1": "var(--xmlui-padding-horizontal-TableOfContentsItem-level-1)", "padding-horizontal-TableOfContentsItem-level-2": "var(--xmlui-padding-horizontal-TableOfContentsItem-level-2)", "padding-horizontal-TableOfContentsItem-level-3": "var(--xmlui-padding-horizontal-TableOfContentsItem-level-3)", "padding-horizontal-TableOfContentsItem-level-4": "var(--xmlui-padding-horizontal-TableOfContentsItem-level-4)", "padding-horizontal-TableOfContentsItem-level-5": "var(--xmlui-padding-horizontal-TableOfContentsItem-level-5)", "padding-horizontal-TableOfContentsItem-level-6": "var(--xmlui-padding-horizontal-TableOfContentsItem-level-6)", "color-bg-TableOfContents": "var(--xmlui-color-bg-TableOfContents)", "width-TableOfContents": "var(--xmlui-width-TableOfContents)", "height-TableOfContents": "var(--xmlui-height-TableOfContents)", "border-radius-TableOfContents": "var(--xmlui-border-radius-TableOfContents)", "color-border-TableOfContents": "var(--xmlui-color-border-TableOfContents)", "thickness-border-TableOfContents": "var(--xmlui-thickness-border-TableOfContents)", "style-border-TableOfContents": "var(--xmlui-style-border-TableOfContents)", "margin-top-TableOfContents": "var(--xmlui-margin-top-TableOfContents)", "margin-bottom-TableOfContents": "var(--xmlui-margin-bottom-TableOfContents)", "padding-vertical-TableOfContents": "var(--xmlui-padding-vertical-TableOfContents)", "padding-horizontal-TableOfContents": "var(--xmlui-padding-horizontal-TableOfContents)", "border-width-TableOfContentsItem": "var(--xmlui-border-width-TableOfContentsItem)", "border-style-TableOfContentsItem": "var(--xmlui-border-style-TableOfContentsItem)", "border-color-TableOfContentsItem": "var(--xmlui-border-color-TableOfContentsItem)", "color-TableOfContentsItem": "var(--xmlui-color-TableOfContentsItem)", "font-size-TableOfContentsItem": "var(--xmlui-font-size-TableOfContentsItem)", "font-weight-TableOfContentsItem": "var(--xmlui-font-weight-TableOfContentsItem)", "font-family-TableOfContentsItem": "var(--xmlui-font-family-TableOfContentsItem)", "transform-TableOfContentsItem": "var(--xmlui-transform-TableOfContentsItem)", "align-vertical-TableOfContentsItem": "var(--xmlui-align-vertical-TableOfContentsItem)", "letter-spacing-TableOfContentsItem": "var(--xmlui-letter-spacing-TableOfContentsItem)", "border-color-TableOfContentsItem--active": "var(--xmlui-border-color-TableOfContentsItem--active)", "color-TableOfContentsItem--active": "var(--xmlui-color-TableOfContentsItem--active)", "font-weight-TableOfContentsItem--active": "var(--xmlui-font-weight-TableOfContentsItem--active)"}'`,nav:"_nav_1soaw_13",list:"_list_1soaw_35",listItem:"_listItem_1soaw_40",link:"_link_1soaw_44",head_1:"_head_1_1soaw_56",head_2:"_head_2_1soaw_59",head_3:"_head_3_1soaw_62",head_4:"_head_4_1soaw_65",head_5:"_head_5_1soaw_68",head_6:"_head_6_1soaw_71",active:"_active_1soaw_74"},kJA=d.forwardRef(function({style:e,smoothScrolling:t},r){const n=d.useRef(null),{headings:o,setObserveIntersection:i,activeAnchorId:a,setActiveAnchorId:s}=j4A(),l=r?Zr(n,r):n;return d.useEffect(()=>{i(!0)},[i]),d.useEffect(()=>{if(a&&(n!=null&&n.current)){const c=n.current.querySelector(`#${a}`);c&&t4(c,{block:"center",inline:"center",behavior:"smooth",scrollMode:"always",boundary:n.current})}},[a,o]),Q.jsx("div",{className:Ri.nav,ref:l,style:e,children:Q.jsx("ul",{className:Ri.list,children:o.map(c=>Q.jsx("li",{className:_n(Ri.listItem,{[Ri.active]:c.id===a}),children:Q.jsx(qb,{className:_n(Ri.link,{[Ri.head_1]:c.level===1,[Ri.head_2]:c.level===2,[Ri.head_3]:c.level===3,[Ri.head_4]:c.level===4,[Ri.head_5]:c.level===5,[Ri.head_6]:c.level===6}),to:`#${c.id}`,onClick:()=>{t&&t4(c.anchor,{block:"start",inline:"start",behavior:"smooth",scrollMode:"if-needed"}),s(c.id)},id:c.id,children:c.text})},c.id))})})}),Ge="TableOfContents",_JA=kA({status:"experimental",description:`The \`${Ge}\` component collects headings and bookmarks within the current page and displays them in a tree representing their hierarchy. When you select an item in this tree, the component navigates the page to the selected position.`,props:{smoothScrolling:j("This property indicates that smooth scrolling is used while scrolling the selected table of contents items into view.")},themeVars:ne(Ri.themeVars),defaultThemeVars:{[`width-${Ge}`]:"auto",[`height-${Ge}`]:"auto",[`font-size-${Ge}Item`]:"$font-size-smaller",[`font-weight-${Ge}Item`]:"$font-weight-normal",[`font-family-${Ge}Item`]:"$font-family",[`border-radius-${Ge}Item`]:"0",[`border-width-${Ge}Item`]:"$space-0_5",[`border-style-${Ge}Item`]:"solid",[`border-radius-${Ge}Item--active`]:"0",[`border-width-${Ge}Item--active`]:"$space-0_5",[`border-style-${Ge}Item--active`]:"solid",[`font-weight-${Ge}Item--active`]:"$font-weight-bold",[`color-bg-${Ge}`]:"transparent",[`padding-horizontal-${Ge}`]:"$space-8",[`padding-vertical-${Ge}`]:"$space-4",[`padding-horizontal-${Ge}Item`]:"$space-2",[`padding-vertical-${Ge}Item`]:"$space-2",[`padding-horizontal-${Ge}Item-level-1`]:"unset",[`padding-horizontal-${Ge}Item-level-2`]:"unset",[`padding-horizontal-${Ge}Item-level-3`]:"unset",[`padding-horizontal-${Ge}Item-level-4`]:"unset",[`padding-horizontal-${Ge}Item-level-5`]:"unset",[`padding-horizontal-${Ge}Item-level-6`]:"unset",[`margin-top-${Ge}`]:"0",[`margin-bottom-${Ge}`]:"0",[`border-radius-${Ge}`]:"0",[`border-width-${Ge}`]:"0",[`border-color-${Ge}`]:"transparent",[`border-style-${Ge}`]:"solid",[`transform-${Ge}Item`]:"none",[`align-vertical-${Ge}Item`]:"baseline",[`letter-spacing-${Ge}Item`]:"0",light:{[`color-${Ge}Item`]:"$color-text-primary",[`border-color-${Ge}Item`]:"$color-border",[`border-color-${Ge}Item--active`]:"$color-primary-500",[`color-${Ge}Item--active`]:"$color-primary-500"},dark:{[`color-${Ge}Item`]:"$color-text-primary",[`border-color-${Ge}Item`]:"$color-border",[`border-color-${Ge}Item--active`]:"$color-primary-500",[`color-${Ge}Item--active`]:"$color-text-secondary"}}}),MJA=RA(Ge,_JA,({layoutCss:A,node:e,extractValue:t})=>{var r;return Q.jsx(kJA,{style:A,smoothScrolling:t.asOptionalBoolean((r=e.props)==null?void 0:r.smoothScrolling)})}),Cl={themeVars:`'{"radius-Accordion": "var(--xmlui-radius-Accordion)", "color-border-Accordion": "var(--xmlui-color-border-Accordion)", "thickness-border-Accordion": "var(--xmlui-thickness-border-Accordion)", "style-border-Accordion": "var(--xmlui-style-border-Accordion)", "align-vertical-header-Accordion": "var(--xmlui-align-vertical-header-Accordion)", "font-size-header-Accordion": "var(--xmlui-font-size-header-Accordion)", "font-weight-header-Accordion": "var(--xmlui-font-weight-header-Accordion)", "font-style-header-Accordion": "var(--xmlui-font-style-header-Accordion)", "padding-vertical-header-Accordion": "var(--xmlui-padding-vertical-header-Accordion)", "padding-horizontal-header-Accordion": "var(--xmlui-padding-horizontal-header-Accordion)", "color-bg-header-Accordion": "var(--xmlui-color-bg-header-Accordion)", "color-header-Accordion": "var(--xmlui-color-header-Accordion)", "color-bg-header-Accordion-hover": "var(--xmlui-color-bg-header-Accordion-hover)", "color-content-Accordion": "var(--xmlui-color-content-Accordion)", "color-bg-content-Accordion": "var(--xmlui-color-bg-content-Accordion)", "width-icon-Accordion": "var(--xmlui-width-icon-Accordion)", "height-icon-Accordion": "var(--xmlui-height-icon-Accordion)", "color-icon-Accordion": "var(--xmlui-color-icon-Accordion)"}'`,root:"_root_lik78_13",item:"_item_lik78_24",header:"_header_lik78_43",trigger:"_trigger_lik78_48",triggerStart:"_triggerStart_lik78_66",contentWrapper:"_contentWrapper_lik78_70",slideDown:"_slideDown_lik78_1",slideUp:"_slideUp_lik78_1",content:"_content_lik78_70",chevron:"_chevron_lik78_86"};function hV(A,e=[]){let t=[];function r(o,i){const a=d.createContext(i),s=t.length;t=[...t,i];function l(u){const{scope:g,children:h,...B}=u,E=(g==null?void 0:g[A][s])||a,C=d.useMemo(()=>B,Object.values(B));return Q.jsx(E.Provider,{value:C,children:h})}function c(u,g){const h=(g==null?void 0:g[A][s])||a,B=d.useContext(h);if(B)return B;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${o}\``)}return l.displayName=o+"Provider",[l,c]}const n=()=>{const o=t.map(i=>d.createContext(i));return function(a){const s=(a==null?void 0:a[A])||o;return d.useMemo(()=>({[`__scope${A}`]:{...a,[A]:s}}),[a,s])}};return n.scopeName=A,[r,SJA(n,...e)]}function SJA(...A){const e=A[0];if(A.length===1)return e;const t=()=>{const r=A.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(o){const i=r.reduce((a,{useScope:s,scopeName:l})=>{const u=s(o)[`__scope${l}`];return{...a,...u}},{});return d.useMemo(()=>({[`__scope${e.scopeName}`]:i}),[i])}};return t.scopeName=e.scopeName,t}function NJA(A,e){typeof A=="function"?A(e):A!=null&&(A.current=e)}function pV(...A){return e=>A.forEach(t=>NJA(t,e))}function lM(...A){return d.useCallback(pV(...A),A)}var h1=d.forwardRef((A,e)=>{const{children:t,...r}=A,n=d.Children.toArray(t),o=n.find(PJA);if(o){const i=o.props.children,a=n.map(s=>s===o?d.Children.count(i)>1?d.Children.only(null):d.isValidElement(i)?i.props.children:null:s);return Q.jsx(cM,{...r,ref:e,children:d.isValidElement(i)?d.cloneElement(i,void 0,a):null})}return Q.jsx(cM,{...r,ref:e,children:t})});h1.displayName="Slot";var cM=d.forwardRef((A,e)=>{const{children:t,...r}=A;if(d.isValidElement(t)){const n=LJA(t);return d.cloneElement(t,{...TJA(r,t.props),ref:e?pV(e,n):n})}return d.Children.count(t)>1?d.Children.only(null):null});cM.displayName="SlotClone";var RJA=({children:A})=>Q.jsx(Q.Fragment,{children:A});function PJA(A){return d.isValidElement(A)&&A.type===RJA}function TJA(A,e){const t={...e};for(const r in e){const n=A[r],o=e[r];/^on[A-Z]/.test(r)?n&&o?t[r]=(...a)=>{o(...a),n(...a)}:n&&(t[r]=n):r==="style"?t[r]={...n,...o}:r==="className"&&(t[r]=[n,o].filter(Boolean).join(" "))}return{...A,...t}}function LJA(A){var r,n;let e=(r=Object.getOwnPropertyDescriptor(A.props,"ref"))==null?void 0:r.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?A.ref:(e=(n=Object.getOwnPropertyDescriptor(A,"ref"))==null?void 0:n.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?A.props.ref:A.props.ref||A.ref)}function FJA(A){const e=A+"CollectionProvider",[t,r]=hV(e),[n,o]=t(e,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:B,children:E}=h,C=_A.useRef(null),m=_A.useRef(new Map).current;return Q.jsx(n,{scope:B,itemMap:m,collectionRef:C,children:E})};i.displayName=e;const a=A+"CollectionSlot",s=_A.forwardRef((h,B)=>{const{scope:E,children:C}=h,m=o(a,E),I=lM(B,m.collectionRef);return Q.jsx(h1,{ref:I,children:C})});s.displayName=a;const l=A+"CollectionItemSlot",c="data-radix-collection-item",u=_A.forwardRef((h,B)=>{const{scope:E,children:C,...m}=h,I=_A.useRef(null),v=lM(B,I),y=o(l,E);return _A.useEffect(()=>(y.itemMap.set(I,{ref:I,...m}),()=>void y.itemMap.delete(I))),Q.jsx(h1,{[c]:"",ref:v,children:C})});u.displayName=l;function g(h){const B=o(A+"CollectionConsumer",h);return _A.useCallback(()=>{const C=B.collectionRef.current;if(!C)return[];const m=Array.from(C.querySelectorAll(`[${c}]`));return Array.from(B.itemMap.values()).sort((y,x)=>m.indexOf(y.ref.current)-m.indexOf(x.ref.current))},[B.collectionRef,B.itemMap])}return[{Provider:i,Slot:s,ItemSlot:u},g,r]}function OJA(A,e,{checkForDefaultPrevented:t=!0}={}){return function(n){if(A==null||A(n),t===!1||!n.defaultPrevented)return e==null?void 0:e(n)}}function BV(A){const e=d.useRef(A);return d.useEffect(()=>{e.current=A}),d.useMemo(()=>(...t)=>{var r;return(r=e.current)==null?void 0:r.call(e,...t)},[])}function EV({prop:A,defaultProp:e,onChange:t=()=>{}}){const[r,n]=HJA({defaultProp:e,onChange:t}),o=A!==void 0,i=o?A:r,a=BV(t),s=d.useCallback(l=>{if(o){const u=typeof l=="function"?l(A):l;u!==A&&a(u)}else n(l)},[o,A,n,a]);return[i,s]}function HJA({defaultProp:A,onChange:e}){const t=d.useState(A),[r]=t,n=d.useRef(r),o=BV(e);return d.useEffect(()=>{n.current!==r&&(o(r),n.current=r)},[r,n,o]),t}var GJA=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],CV=GJA.reduce((A,e)=>{const t=d.forwardRef((r,n)=>{const{asChild:o,...i}=r,a=o?h1:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Q.jsx(a,{...i,ref:n})});return t.displayName=`Primitive.${e}`,{...A,[e]:t}},{});function UJA(A,e,{checkForDefaultPrevented:t=!0}={}){return function(n){if(A==null||A(n),t===!1||!n.defaultPrevented)return e==null?void 0:e(n)}}function KJA(A,e=[]){let t=[];function r(o,i){const a=d.createContext(i),s=t.length;t=[...t,i];function l(u){const{scope:g,children:h,...B}=u,E=(g==null?void 0:g[A][s])||a,C=d.useMemo(()=>B,Object.values(B));return Q.jsx(E.Provider,{value:C,children:h})}function c(u,g){const h=(g==null?void 0:g[A][s])||a,B=d.useContext(h);if(B)return B;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${o}\``)}return l.displayName=o+"Provider",[l,c]}const n=()=>{const o=t.map(i=>d.createContext(i));return function(a){const s=(a==null?void 0:a[A])||o;return d.useMemo(()=>({[`__scope${A}`]:{...a,[A]:s}}),[a,s])}};return n.scopeName=A,[r,YJA(n,...e)]}function YJA(...A){const e=A[0];if(A.length===1)return e;const t=()=>{const r=A.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(o){const i=r.reduce((a,{useScope:s,scopeName:l})=>{const u=s(o)[`__scope${l}`];return{...a,...u}},{});return d.useMemo(()=>({[`__scope${e.scopeName}`]:i}),[i])}};return t.scopeName=e.scopeName,t}function mV(A){const e=d.useRef(A);return d.useEffect(()=>{e.current=A}),d.useMemo(()=>(...t)=>{var r;return(r=e.current)==null?void 0:r.call(e,...t)},[])}function $JA({prop:A,defaultProp:e,onChange:t=()=>{}}){const[r,n]=jJA({defaultProp:e,onChange:t}),o=A!==void 0,i=o?A:r,a=mV(t),s=d.useCallback(l=>{if(o){const u=typeof l=="function"?l(A):l;u!==A&&a(u)}else n(l)},[o,A,n,a]);return[i,s]}function jJA({defaultProp:A,onChange:e}){const t=d.useState(A),[r]=t,n=d.useRef(r),o=mV(e);return d.useEffect(()=>{n.current!==r&&(o(r),n.current=r)},[r,n,o]),t}var p1=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{};function qJA(A,e){typeof A=="function"?A(e):A!=null&&(A.current=e)}function QV(...A){return e=>A.forEach(t=>qJA(t,e))}function wV(...A){return d.useCallback(QV(...A),A)}var IV=d.forwardRef((A,e)=>{const{children:t,...r}=A,n=d.Children.toArray(t),o=n.find(zJA);if(o){const i=o.props.children,a=n.map(s=>s===o?d.Children.count(i)>1?d.Children.only(null):d.isValidElement(i)?i.props.children:null:s);return Q.jsx(uM,{...r,ref:e,children:d.isValidElement(i)?d.cloneElement(i,void 0,a):null})}return Q.jsx(uM,{...r,ref:e,children:t})});IV.displayName="Slot";var uM=d.forwardRef((A,e)=>{const{children:t,...r}=A;if(d.isValidElement(t)){const n=VJA(t);return d.cloneElement(t,{...WJA(r,t.props),ref:e?QV(e,n):n})}return d.Children.count(t)>1?d.Children.only(null):null});uM.displayName="SlotClone";var JJA=({children:A})=>Q.jsx(Q.Fragment,{children:A});function zJA(A){return d.isValidElement(A)&&A.type===JJA}function WJA(A,e){const t={...e};for(const r in e){const n=A[r],o=e[r];/^on[A-Z]/.test(r)?n&&o?t[r]=(...a)=>{o(...a),n(...a)}:n&&(t[r]=n):r==="style"?t[r]={...n,...o}:r==="className"&&(t[r]=[n,o].filter(Boolean).join(" "))}return{...A,...t}}function VJA(A){var r,n;let e=(r=Object.getOwnPropertyDescriptor(A.props,"ref"))==null?void 0:r.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?A.ref:(e=(n=Object.getOwnPropertyDescriptor(A,"ref"))==null?void 0:n.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?A.props.ref:A.props.ref||A.ref)}var XJA=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],fM=XJA.reduce((A,e)=>{const t=d.forwardRef((r,n)=>{const{asChild:o,...i}=r,a=o?IV:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Q.jsx(a,{...i,ref:n})});return t.displayName=`Primitive.${e}`,{...A,[e]:t}},{});function ZJA(A,e){return d.useReducer((t,r)=>e[t][r]??t,A)}var vV=A=>{const{present:e,children:t}=A,r=AzA(e),n=typeof t=="function"?t({present:r.isPresent}):d.Children.only(t),o=wV(r.ref,ezA(n));return typeof t=="function"||r.isPresent?d.cloneElement(n,{ref:o}):null};vV.displayName="Presence";function AzA(A){const[e,t]=d.useState(),r=d.useRef({}),n=d.useRef(A),o=d.useRef("none"),i=A?"mounted":"unmounted",[a,s]=ZJA(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const l=B1(r.current);o.current=a==="mounted"?l:"none"},[a]),p1(()=>{const l=r.current,c=n.current;if(c!==A){const g=o.current,h=B1(l);A?s("MOUNT"):h==="none"||(l==null?void 0:l.display)==="none"?s("UNMOUNT"):s(c&&g!==h?"ANIMATION_OUT":"UNMOUNT"),n.current=A}},[A,s]),p1(()=>{if(e){const l=u=>{const h=B1(r.current).includes(u.animationName);u.target===e&&h&&Dr.flushSync(()=>s("ANIMATION_END"))},c=u=>{u.target===e&&(o.current=B1(r.current))};return e.addEventListener("animationstart",c),e.addEventListener("animationcancel",l),e.addEventListener("animationend",l),()=>{e.removeEventListener("animationstart",c),e.removeEventListener("animationcancel",l),e.removeEventListener("animationend",l)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:d.useCallback(l=>{l&&(r.current=getComputedStyle(l)),t(l)},[])}}function B1(A){return(A==null?void 0:A.animationName)||"none"}function ezA(A){var r,n;let e=(r=Object.getOwnPropertyDescriptor(A.props,"ref"))==null?void 0:r.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?A.ref:(e=(n=Object.getOwnPropertyDescriptor(A,"ref"))==null?void 0:n.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?A.props.ref:A.props.ref||A.ref)}var tzA=Ps.useId||(()=>{}),rzA=0;function nzA(A){const[e,t]=d.useState(tzA());return p1(()=>{A||t(r=>r??String(rzA++))},[A]),A||(e?`radix-${e}`:"")}var gM="Collapsible",[ozA,DV]=KJA(gM),[izA,dM]=ozA(gM),yV=d.forwardRef((A,e)=>{const{__scopeCollapsible:t,open:r,defaultOpen:n,disabled:o,onOpenChange:i,...a}=A,[s=!1,l]=$JA({prop:r,defaultProp:n,onChange:i});return Q.jsx(izA,{scope:t,disabled:o,contentId:nzA(),open:s,onOpenToggle:d.useCallback(()=>l(c=>!c),[l]),children:Q.jsx(fM.div,{"data-state":pM(s),"data-disabled":o?"":void 0,...a,ref:e})})});yV.displayName=gM;var bV="CollapsibleTrigger",xV=d.forwardRef((A,e)=>{const{__scopeCollapsible:t,...r}=A,n=dM(bV,t);return Q.jsx(fM.button,{type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":pM(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...r,ref:e,onClick:UJA(A.onClick,n.onOpenToggle)})});xV.displayName=bV;var hM="CollapsibleContent",kV=d.forwardRef((A,e)=>{const{forceMount:t,...r}=A,n=dM(hM,A.__scopeCollapsible);return Q.jsx(vV,{present:t||n.open,children:({present:o})=>Q.jsx(azA,{...r,ref:e,present:o})})});kV.displayName=hM;var azA=d.forwardRef((A,e)=>{const{__scopeCollapsible:t,present:r,children:n,...o}=A,i=dM(hM,t),[a,s]=d.useState(r),l=d.useRef(null),c=wV(e,l),u=d.useRef(0),g=u.current,h=d.useRef(0),B=h.current,E=i.open||a,C=d.useRef(E),m=d.useRef();return d.useEffect(()=>{const I=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(I)},[]),p1(()=>{const I=l.current;if(I){m.current=m.current||{transitionDuration:I.style.transitionDuration,animationName:I.style.animationName},I.style.transitionDuration="0s",I.style.animationName="none";const v=I.getBoundingClientRect();u.current=v.height,h.current=v.width,C.current||(I.style.transitionDuration=m.current.transitionDuration,I.style.animationName=m.current.animationName),s(r)}},[i.open,r]),Q.jsx(fM.div,{"data-state":pM(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!E,...o,ref:c,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":B?`${B}px`:void 0,...A.style},children:E&&n})});function pM(A){return A?"open":"closed"}var szA=yV,lzA=xV,czA=kV,uzA=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{},fzA=Ps.useId||(()=>{}),gzA=0;function dzA(A){const[e,t]=d.useState(fzA());return uzA(()=>{t(r=>r??String(gzA++))},[A]),e?`radix-${e}`:""}var hzA=d.createContext(void 0);function pzA(A){const e=d.useContext(hzA);return A||e||"ltr"}var ml="Accordion",BzA=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[BM,EzA,CzA]=FJA(ml),[E1,G1e]=hV(ml,[CzA,DV]),EM=DV(),_V=_A.forwardRef((A,e)=>{const{type:t,...r}=A,n=r,o=r;return Q.jsx(BM.Provider,{scope:A.__scopeAccordion,children:t==="multiple"?Q.jsx(IzA,{...o,ref:e}):Q.jsx(wzA,{...n,ref:e})})});_V.displayName=ml;var[MV,mzA]=E1(ml),[SV,QzA]=E1(ml,{collapsible:!1}),wzA=_A.forwardRef((A,e)=>{const{value:t,defaultValue:r,onValueChange:n=()=>{},collapsible:o=!1,...i}=A,[a,s]=EV({prop:t,defaultProp:r,onChange:n});return Q.jsx(MV,{scope:A.__scopeAccordion,value:a?[a]:[],onItemOpen:s,onItemClose:_A.useCallback(()=>o&&s(""),[o,s]),children:Q.jsx(SV,{scope:A.__scopeAccordion,collapsible:o,children:Q.jsx(NV,{...i,ref:e})})})}),IzA=_A.forwardRef((A,e)=>{const{value:t,defaultValue:r,onValueChange:n=()=>{},...o}=A,[i=[],a]=EV({prop:t,defaultProp:r,onChange:n}),s=_A.useCallback(c=>a((u=[])=>[...u,c]),[a]),l=_A.useCallback(c=>a((u=[])=>u.filter(g=>g!==c)),[a]);return Q.jsx(MV,{scope:A.__scopeAccordion,value:i,onItemOpen:s,onItemClose:l,children:Q.jsx(SV,{scope:A.__scopeAccordion,collapsible:!0,children:Q.jsx(NV,{...o,ref:e})})})}),[vzA,C1]=E1(ml),NV=_A.forwardRef((A,e)=>{const{__scopeAccordion:t,disabled:r,dir:n,orientation:o="vertical",...i}=A,a=_A.useRef(null),s=lM(a,e),l=EzA(t),u=pzA(n)==="ltr",g=OJA(A.onKeyDown,h=>{var M;if(!BzA.includes(h.key))return;const B=h.target,E=l().filter(N=>{var F;return!((F=N.ref.current)!=null&&F.disabled)}),C=E.findIndex(N=>N.ref.current===B),m=E.length;if(C===-1)return;h.preventDefault();let I=C;const v=0,y=m-1,x=()=>{I=C+1,I>y&&(I=v)},b=()=>{I=C-1,I<v&&(I=y)};switch(h.key){case"Home":I=v;break;case"End":I=y;break;case"ArrowRight":o==="horizontal"&&(u?x():b());break;case"ArrowDown":o==="vertical"&&x();break;case"ArrowLeft":o==="horizontal"&&(u?b():x());break;case"ArrowUp":o==="vertical"&&b();break}const k=I%m;(M=E[k].ref.current)==null||M.focus()});return Q.jsx(vzA,{scope:t,disabled:r,direction:n,orientation:o,children:Q.jsx(BM.Slot,{scope:t,children:Q.jsx(CV.div,{...i,"data-orientation":o,ref:s,onKeyDown:r?void 0:g})})})}),m1="AccordionItem",[DzA,CM]=E1(m1),RV=_A.forwardRef((A,e)=>{const{__scopeAccordion:t,value:r,...n}=A,o=C1(m1,t),i=mzA(m1,t),a=EM(t),s=dzA(),l=r&&i.value.includes(r)||!1,c=o.disabled||A.disabled;return Q.jsx(DzA,{scope:t,open:l,disabled:c,triggerId:s,children:Q.jsx(szA,{"data-orientation":o.orientation,"data-state":HV(l),...a,...n,ref:e,disabled:c,open:l,onOpenChange:u=>{u?i.onItemOpen(r):i.onItemClose(r)}})})});RV.displayName=m1;var PV="AccordionHeader",TV=_A.forwardRef((A,e)=>{const{__scopeAccordion:t,...r}=A,n=C1(ml,t),o=CM(PV,t);return Q.jsx(CV.h3,{"data-orientation":n.orientation,"data-state":HV(o.open),"data-disabled":o.disabled?"":void 0,...r,ref:e})});TV.displayName=PV;var mM="AccordionTrigger",LV=_A.forwardRef((A,e)=>{const{__scopeAccordion:t,...r}=A,n=C1(ml,t),o=CM(mM,t),i=QzA(mM,t),a=EM(t);return Q.jsx(BM.ItemSlot,{scope:t,children:Q.jsx(lzA,{"aria-disabled":o.open&&!i.collapsible||void 0,"data-orientation":n.orientation,id:o.triggerId,...a,...r,ref:e})})});LV.displayName=mM;var FV="AccordionContent",OV=_A.forwardRef((A,e)=>{const{__scopeAccordion:t,...r}=A,n=C1(ml,t),o=CM(FV,t),i=EM(t);return Q.jsx(czA,{role:"region","aria-labelledby":o.triggerId,"data-orientation":n.orientation,...i,...r,ref:e,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...A.style}})});OV.displayName=FV;function HV(A){return A?"open":"closed"}var yzA=_V,bzA=RV,xzA=TV,kzA=LV,_zA=OV;const GV=d.createContext({expandedItems:null,rotateExpanded:null,expandItem:ve,register:ve,unRegister:ve,hideIcon:null,expandedIcon:null,collapsedIcon:null,triggerPosition:null});function MzA(){return d.useContext(GV)}const SzA=d.forwardRef(function({style:e,children:t,hideIcon:r=!1,expandedIcon:n,collapsedIcon:o="chevrondown",triggerPosition:i="end",onDisplayDidChange:a=ve,registerComponentApi:s,rotateExpanded:l="180deg"},c){const[u,g]=d.useState([]),[h,B]=d.useState(new Set),E=d.useCallback(k=>{g(M=>M.filter(N=>N!==`${k}`))},[g]),C=d.useCallback(k=>{u.includes(`${k}`)||g(M=>[...M,`${k}`])},[g,u]),m=d.useCallback(k=>{u.includes(`${k}`)?E(k):C(k)},[g,u]),I=d.useCallback(k=>{B(M=>(M.add(k),M))},[B]),v=d.useCallback(k=>{B(M=>(M.delete(k),M))},[B]),y=d.useCallback(k=>{if(h.has(`trigger_${k}`)){const M=document.getElementById(`trigger_${k}`);M&&M.focus()}},[h]),x=d.useCallback(k=>u.includes(`${k}`),[u]);d.useEffect(()=>{s==null||s({expanded:x,expand:C,collapse:E,toggle:m,focus:y})},[s,C,E,m,y,x]);const b=d.useMemo(()=>({register:I,unRegister:v,expandItem:C,expandedItems:u,hideIcon:r,expandedIcon:n,collapsedIcon:o,triggerPosition:i,rotateExpanded:l}),[I,v,u,r,n,o,i,C,l]);return d.useEffect(()=>{a==null||a(u)},[u,a]),Q.jsx(GV.Provider,{value:b,children:Q.jsx(yzA,{style:e,ref:c,value:u,type:"multiple",className:Cl.root,onValueChange:k=>g(k),children:t})})}),st="Accordion",NzA=kA({status:"in progress",description:`(**NOT IMPLEMENTED YET**) The \`${st}\` component is a collapsible container that toggles the display of content sections. It helps organize information by expanding or collapsing it based on user interaction.`,props:{triggerPosition:j("This property indicates the position where the trigger icon should be displayed. The `start` value signs the trigger is before the header text (template), and `end` indicates that it follows the header.",EDA,null,"end"),collapsedIcon:j("This property is the name of the icon that is displayed when the accordion is collapsed."),expandedIcon:j("This property is the name of the icon that is displayed when the accordion is expanded."),hideIcon:j("This property indicates that the trigger icon is not displayed (`true`).",null,"boolean",!1),rotateExpanded:j("This optional property defines the rotation angle of the expanded icon (relative to the collapsed icon).")},events:{displayDidChange:lo(st)},apis:{expanded:RkA(st),expand:PkA(st),collapse:TkA(st),toggle:j(`This method toggles the state of the ${st} between expanded and collapsed.`),focus:es(st)},themeVars:ne(Cl.themeVars),defaultThemeVars:{[`padding-horizontal-header-${st}`]:"$space-3",[`padding-vertical-header-${st}`]:"$space-3",[`align-vertical-header-${st}`]:"center",[`font-size-header-${st}`]:"$font-size-normal",[`font-weight-header-${st}`]:"$font-weight-normal",[`font-family-header-${st}`]:"$font-family",[`radius-${st}`]:"$radius",[`thickness-border-${st}`]:"0",[`style-border-${st}`]:"solid",[`width-icon-${st}`]:"",[`height-icon-${st}`]:"",light:{[`color-bg-header-${st}`]:"$color-primary-500",[`color-bg-header-${st}-hover`]:"$color-primary-400",[`color-header-${st}`]:"$color-surface-50",[`color-content-${st}`]:"$color-text-primary",[`color-bg-content-${st}`]:"transparent",[`color-border-${st}`]:"transparent",[`color-icon-${st}`]:"$color-surface-50"},dark:{[`color-bg-header-${st}`]:"$color-primary-500",[`color-bg-header-${st}-hover`]:"$color-primary-600",[`color-header-${st}`]:"$color-surface-50",[`color-content-${st}`]:"$color-text-primary",[`color-bg-content-${st}`]:"transparent",[`color-border-${st}`]:"transparent",[`color-icon-${st}`]:"$color-surface-50"}}}),RzA=RA(st,NzA,({node:A,renderChild:e,extractValue:t,lookupEventHandler:r,registerComponentApi:n,layoutCss:o})=>{var i;return Q.jsx(SzA,{style:o,triggerPosition:t((i=A.props)==null?void 0:i.triggerPosition),collapsedIcon:t(A.props.collapsedIcon),expandedIcon:t(A.props.expandedIcon),hideIcon:t.asOptionalBoolean(A.props.hideIcon),rotateExpanded:t(A.props.rotateExpanded),onDisplayDidChange:r("displayDidChange"),registerComponentApi:n,children:e(A.children)})}),PzA={themeVars:'"[]"'},TzA=d.forwardRef(function({style:e},t){return Q.jsx("div",{ref:t,style:{backgroundColor:"orange",color:"white",padding:2,...e},children:"Alert component is not implemented yet"})}),_E="Alert",LzA=kA({status:"in progress",description:`(**NOT IMPLEMENTED YET**) The \`${_E}\` component is a panel used to display important notifications or feedback to users. It helps convey different statuses or levels of urgency, such as success, warning, error, and others.`,props:{statusColor:j(`The value of this optional property sets the string to provide a color scheme for the ${_E}.`,pDA,"string","primary"),dismissable:j(`This property's \`true\` value indicates if this alert is dismissable by the user. When the user closes the ${_E}, it gets hidden.`),autoDismissInMs:j("Timeout for the alert to be dismissed"),showIcon:j("Indicates if the alert should display an icon"),icon:j("Icon to be displayed in the alert")},events:{},apis:{dismiss:j(`This method dismisses the ${_E}. It triggers the \`didDismiss\` event with the argument set to \`false\`.`)},themeVars:ne(PzA.themeVars),defaultThemeVars:{light:{},dark:{}}}),FzA=RA(_E,LzA,({layoutCss:A})=>Q.jsx(TzA,{})),nn={themeVars:`'{"padding-OffCanvas": "var(--xmlui-padding-OffCanvas)", "padding-horizontal-OffCanvas": "var(--xmlui-padding-horizontal-OffCanvas)", "padding-vertical-OffCanvas": "var(--xmlui-padding-vertical-OffCanvas)", "shadow-vertical-OffCanvas": "var(--xmlui-shadow-vertical-OffCanvas)", "shadow-horizontal-OffCanvas": "var(--xmlui-shadow-horizontal-OffCanvas)", "color-bg-OffCanvas": "var(--xmlui-color-bg-OffCanvas)", "width-OffCanvas": "var(--xmlui-width-OffCanvas)", "margin-bottom-title-OffCanvas": "var(--xmlui-margin-bottom-title-OffCanvas)"}'`,overlay:"_overlay_c932c_13",overlayVisible:"_overlayVisible_c932c_26",offCanvas:"_offCanvas_c932c_31",right:"_right_c932c_46",left:"_left_c932c_53",top:"_top_c932c_60",bottom:"_bottom_c932c_69",open:"_open_c932c_78",button:"_button_c932c_82",closeButton:"_closeButton_c932c_92",spacer:"_spacer_c932c_103",offCanvasHeader:"_offCanvasHeader_c932c_108",offCanvasButtonSpace:"_offCanvasButtonSpace_c932c_115",offCanvasTitle:"_offCanvasTitle_c932c_119"},OzA=({title:A,isInitiallyOpen:e,onClose:t,placement:r="right",showCloseButton:n=!0,children:o,allowScroll:i=!0,showBackdrop:a=!1,style:s})=>{const[l,c]=d.useState(e),[u,g]=d.useState(r);return d.useEffect(()=>(l&&!i?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[l,i]),Q.jsxs(Q.Fragment,{children:[a&&Q.jsx("div",{className:KA(nn.overlay,{[nn.overlayVisible]:l}),onClick:t}),Q.jsxs("div",{className:KA(nn.offCanvas,{[nn.open]:l,[nn.left]:u==="left",[nn.right]:u==="right",[nn.top]:u==="top",[nn.bottom]:u==="bottom"}),style:s,children:[Q.jsxs("header",{className:nn.offCanvasHeader,children:[!!A&&Q.jsx("span",{className:nn.offCanvasTitle,children:A}),Q.jsx("div",{className:nn.spacer}),n&&Q.jsxs(Q.Fragment,{children:[u!=="left"&&Q.jsx("button",{className:nn.button,onClick:()=>{g("left")},children:"←"}),u!=="right"&&Q.jsx("button",{className:nn.button,onClick:()=>{g("right")},children:"→"}),u!=="top"&&Q.jsx("button",{className:nn.button,onClick:()=>{g("top")},children:"↑"}),u!=="bottom"&&Q.jsx("button",{className:nn.button,onClick:()=>{g("bottom")},children:"↓"}),Q.jsx("div",{className:nn.offCanvasButtonSpace}),Q.jsx("button",{className:nn.button,onClick:()=>{c(!1),t==null||t()},children:"×"})]})]}),o]})]})},ME="OffCanvas",HzA=kA({status:"in progress",description:"(**NOT IMPLEMENTED YET**) The `OffCanvas` component is a hidden panel that slides into view from the side of the screen. It helps display additional content or navigation without disrupting the main interface.",props:{title:j("This property sets the title of the component.",null,"string"),isInitiallyOpen:j("This property indicates if the component is initially open.",null,"boolean",!1),enableBackdrop:j("This property indicates if the backdrop is enabled when the component is displayed. When the backdrop is not enabled, clicking outside `OffCanvas` will not close it.",null,"boolean",!0),enableBodyScroll:j("This property indicates if the body scroll is enabled when the component is displayed.",null,"boolean",!1),noCloseOnBackdropClick:j(`When this property is set to \`true\`, the ${ME} does not close when the user clicks on its backdrop.`,null,"boolean",!1),placement:j(`This property indicates the position where the ${ME} should be docked to.`,BDA),autoCloseInMs:j("This property sets a timeout. When the timeout expires, the component gets hidden.")},events:{didOpen:LkA(ME),didClose:FkA(ME)},apis:{open:j("This method opens the component. It triggers the `didOpen` event with the argument set to `false`."),close:j("This method closes the component. It triggers the `didClose` event with the argument set to `false`.")},themeVars:ne(nn.themeVars),defaultThemeVars:{"width-OffCanvas":"600px","padding-OffCanvas":"$padding-tight","padding-vertical-OffCanvas":"$padding-tight","padding-horizontal-OffCanvas":"$padding-normal","color-bg-OffCanvas":"$color-bg","shadow-horizontal-OffCanvas":"0 2px 10px rgba(0, 0, 0, 0.2)","shadow-vertical-OffCanvas":"0 2px 10px rgba(0, 0, 0, 0.2)",light:{},dark:{}}}),GzA=RA(ME,HzA,({node:A,extractValue:e,lookupEventHandler:t,renderChild:r,layoutCss:n})=>Q.jsx(OzA,{style:n,title:e(A.props.title),isInitiallyOpen:e.asOptionalBoolean(A.props.isInitiallyOpen,!1),placement:e(A.props.placement),children:r(A.children)})),UzA=d.forwardRef(function({children:e,label:t,style:r},n){const o=d.useId(),{register:i,unRegister:a,activeTabId:s}=tJA();return d.useEffect(()=>{i({children:e,label:t,id:o})},[o,e,t,i]),d.useEffect(()=>()=>{a(o)},[o,a]),s!==o?null:Q.jsx(AJA,{value:o,className:ah.tabsContent,ref:n,style:r,children:e},o)}),QM="TabItem",KzA=kA({description:`\`${QM}\` is a non-visual component describing a tab. Tabs component may use nested ${QM} instances from which the user can select.`,props:{label:pn()}}),YzA=RA(QM,KzA,A=>{const{node:e,renderChild:t,extractValue:r}=A;return Q.jsx(UzA,{label:r(e.props.label),children:t(e.children)})}),$zA={themeVars:'"[]"'},jzA=d.forwardRef(function({style:e},t){return Q.jsx("div",{ref:t,style:{backgroundColor:"orangered",color:"white",padding:2,...e},children:"Range component is not implemented yet"})}),SE="Range",qzA=kA({status:"in progress",description:`(**NOT IMPLEMENTED YET**) The \`${SE}\` component allows you to select a numeric range (lower and upper boundary values) between the complete range specified by minimum and maximum values.`,props:{initialValue:j(""),minValue:j("This property specifies the minimum value of the entire value domain to select the lower and upper boundary range values.",null,"number",0),maxValue:j("This property specifies the maximum value of the entire value domain to select the lower and upper boundary range values.",null,"number",10),lowerInclusive:j("This boolean property specifies whether the lower boundary value is inclusive (`true`) or exclusive (`false`).",null,"boolean",!0),upperInclusive:j("This boolean property specifies whether the upper boundary value is inclusive (`true`) or exclusive (`false`).",null,"boolean",!0),complementary:j("This boolean property specifies whether the range is complementary to the selected set of values (`true`) or not (`false`). The value of this property is indicated visually.",null,"boolean",!1)},events:{didChange:j("This event is fired when a range boundary has been changed. The event parameters are the new lower and upper boundary values (in this order)."),getFocus:To(SE),dostFocus:Lo(SE)},apis:{focus:es(SE),value:j("You can query the component's value. The value is a two-item array with the lower (first) and upper (second) boundary values."),setValue:j("This method sets the component's lower and upper range values. The value must be a two-item array with the lower (first) and upper (second) boundary values.")},themeVars:ne($zA.themeVars),defaultThemeVars:{light:{},dark:{}}}),JzA=RA(SE,qzA,({node:A,extractValue:e,lookupEventHandler:t,layoutCss:r})=>Q.jsx(jzA,{}));function zzA(A){return Q.jsx("div",{children:A})}const WzA=d.forwardRef(function({id:e,header:t,headerRenderer:r=zzA,content:n,initiallyExpanded:o,style:i},a){const s=d.useId(),l=d.useMemo(()=>e?`${e}`:s,[e,s]),c=d.useMemo(()=>`trigger_${l}`,[l]),{rotateExpanded:u,expandedItems:g,hideIcon:h,expandedIcon:B,collapsedIcon:E,triggerPosition:C,expandItem:m,register:I,unRegister:v}=MzA(),y=d.useMemo(()=>g.includes(l),[l,g]),[x,b]=d.useState(!1);return d.useEffect(()=>{x||(b(!0),o&&m(l))},[m,l,o,x]),d.useEffect(()=>{I(c)},[I,c]),d.useEffect(()=>()=>{v(c)},[c,v]),Q.jsxs(bzA,{value:l,className:Cl.item,ref:a,style:i,children:[Q.jsx(xzA,{className:Cl.header,children:Q.jsxs(kzA,{id:`trigger_${l}`,className:_n(Cl.trigger,{[Cl.triggerStart]:C==="start"}),children:[r(t),!h&&Q.jsx("span",{style:{transform:y&&!B?`rotate(${u})`:"rotate(0deg)",transition:"transform 300ms cubic-bezier(0.87, 0, 0.13, 1)"},children:Q.jsx(be,{name:y&&B||E,className:Cl.chevron})})]})}),Q.jsx(_zA,{className:Cl.contentWrapper,children:Q.jsx("div",{className:Cl.content,children:n})})]},l)}),Q1="AccordionItem",VzA=kA({description:`\`${Q1}\` is a non-visual component describing a tab. Tabs component may use nested ${Q1} instances from which the user can select.`,props:{header:j("This property declares the text used in the component's header."),headerTemplate:zt("This property describes the template to use as the component's header."),initiallyExpanded:j(`This property indicates if the ${Q1} is expanded (\`true\`) or collapsed (\`false\`).`,null,"boolean",!1)}}),XzA=RA(Q1,VzA,A=>{const{node:e,renderChild:t,extractValue:r,layoutCss:n}=A;return Q.jsx(WzA,{style:n,id:r(e.uid),header:r(e.props.header),initiallyExpanded:r.asOptionalBoolean(e.props.initiallyExpanded),headerRenderer:e.props.headerTemplate?o=>Q.jsx(Oo,{node:e.props.headerTemplate??{type:"Fragment"},item:o,renderChild:t}):void 0,content:t(e.children)})}),ZzA={themeVars:'"[]"'},AWA=d.forwardRef(function({style:e},t){return Q.jsx("div",{ref:t,style:{backgroundColor:"orangered",color:"white",padding:2,...e},children:"Slider component is not implemented yet"})}),ch="Slider",eWA=kA({status:"in progress",description:`(**NOT IMPLEMENTED YET**) The \`${ch}\` component allows you to select a numeric value between a range specified by minimum and maximum values.`,props:{minValue:j("This property specifies the minimum value of the allowed input range.",null,"number",0),maxValue:j("This property specifies the maximum value of the allowed input range.",null,"number",10),rangeHighlight:j("This property indicates if you want to highlight a specific part of the input range.",[{value:"none",description:"No highlight (default)"},{value:"lower",description:"Highlight the lower part of the range (from the minimum to the current slider value)"},{value:"upper",description:"Highlight the upper part of the range (from the current slider value to the maximum)"}],"string","none")},events:{didChange:lo(ch),getFocus:To(ch),dostFocus:Lo(ch)},apis:{focus:es(ch),value:qk(),setValue:Vs()},themeVars:ne(ZzA.themeVars),defaultThemeVars:{light:{},dark:{}}}),tWA=RA(ch,eWA,({node:A,extractValue:e,lookupEventHandler:t,layoutCss:r})=>Q.jsx(AWA,{style:r})),rWA={themeVars:'"[]"'},nWA=d.forwardRef(function({},e){return Q.jsx("div",{ref:e,style:{backgroundColor:"orangered",color:"white",padding:2},children:"ButtonGroup component is not implemented yet"})}),UV="ButtonGroup",oWA=kA({status:"in progress",description:`(**NOT IMPLEMENTED YET**) The \`${UV}\` component is a container that embeds buttons used together for a particular reason. It provides a view that emphasizes this coherency.`,props:{themeColor:j("This optional property specifies the default theme color for the buttons in the group. Individual buttons may override this setting with their `themeColor` property.",aH,"string","primary"),variant:j("This optional property specifies the default variant for the buttons in the group. Individual buttons may override this setting with their `variant` property.",lH,"string","solid"),orientation:OkA("horizontal"),buttonWidth:j("When this optional property is set, all buttons within the group will have the specified width. If it is empty, each button's width accommodates its content."),gap:j("When this optional property is set, adjacent buttons will have the specified gap between them. If this property is not set, the buttons will be merged into one group.")},themeVars:ne(rWA.themeVars),defaultThemeVars:{light:{},dark:{}}}),iWA=RA(UV,oWA,({})=>Q.jsx(nWA,{}));function aWA(A){return Object.prototype.toString.call(A)==="[object Object]"}function KV(A){return aWA(A)||Array.isArray(A)}function sWA(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function wM(A,e){const t=Object.keys(A),r=Object.keys(e);if(t.length!==r.length)return!1;const n=JSON.stringify(Object.keys(A.breakpoints||{})),o=JSON.stringify(Object.keys(e.breakpoints||{}));return n!==o?!1:t.every(i=>{const a=A[i],s=e[i];return typeof a=="function"?`${a}`==`${s}`:!KV(a)||!KV(s)?a===s:wM(a,s)})}function YV(A){return A.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function lWA(A,e){if(A.length!==e.length)return!1;const t=YV(A),r=YV(e);return t.every((n,o)=>{const i=r[o];return wM(n,i)})}function IM(A){return typeof A=="number"}function vM(A){return typeof A=="string"}function w1(A){return typeof A=="boolean"}function $V(A){return Object.prototype.toString.call(A)==="[object Object]"}function sr(A){return Math.abs(A)}function DM(A){return Math.sign(A)}function NE(A,e){return sr(A-e)}function cWA(A,e){if(A===0||e===0||sr(A)<=sr(e))return 0;const t=NE(sr(A),sr(e));return sr(t/A)}function RE(A){return TE(A).map(Number)}function wa(A){return A[PE(A)]}function PE(A){return Math.max(0,A.length-1)}function yM(A,e){return e===PE(A)}function jV(A,e=0){return Array.from(Array(A),(t,r)=>e+r)}function TE(A){return Object.keys(A)}function qV(A,e){return[A,e].reduce((t,r)=>(TE(r).forEach(n=>{const o=t[n],i=r[n],a=$V(o)&&$V(i);t[n]=a?qV(o,i):i}),t),{})}function bM(A,e){return typeof e.MouseEvent<"u"&&A instanceof e.MouseEvent}function uWA(A,e){const t={start:r,center:n,end:o};function r(){return 0}function n(s){return o(s)/2}function o(s){return e-s}function i(s,l){return vM(A)?t[A](s):A(e,s,l)}return{measure:i}}function LE(){let A=[];function e(n,o,i,a={passive:!0}){let s;if("addEventListener"in n)n.addEventListener(o,i,a),s=()=>n.removeEventListener(o,i,a);else{const l=n;l.addListener(i),s=()=>l.removeListener(i)}return A.push(s),r}function t(){A=A.filter(n=>n())}const r={add:e,clear:t};return r}function fWA(A,e,t,r){const n=LE(),o=1e3/60;let i=null,a=0,s=0;function l(){n.add(A,"visibilitychange",()=>{A.hidden&&B()})}function c(){h(),n.clear()}function u(C){if(!s)return;i||(i=C);const m=C-i;for(i=C,a+=m;a>=o;)t(o),a-=o;const I=a/o;r(I),s&&e.requestAnimationFrame(u)}function g(){s||(s=e.requestAnimationFrame(u))}function h(){e.cancelAnimationFrame(s),i=null,a=0,s=0}function B(){i=null,a=0}return{init:l,destroy:c,start:g,stop:h,update:()=>t(o),render:r}}function gWA(A,e){const t=e==="rtl",r=A==="y",n=r?"y":"x",o=r?"x":"y",i=!r&&t?-1:1,a=c(),s=u();function l(B){const{height:E,width:C}=B;return r?E:C}function c(){return r?"top":t?"right":"left"}function u(){return r?"bottom":t?"left":"right"}function g(B){return B*i}return{scroll:n,cross:o,startEdge:a,endEdge:s,measureSize:l,direction:g}}function Mf(A=0,e=0){const t=sr(A-e);function r(l){return l<A}function n(l){return l>e}function o(l){return r(l)||n(l)}function i(l){return o(l)?r(l)?A:e:l}function a(l){return t?l-t*Math.ceil((l-e)/t):l}return{length:t,max:e,min:A,constrain:i,reachedAny:o,reachedMax:n,reachedMin:r,removeOffset:a}}function JV(A,e,t){const{constrain:r}=Mf(0,A),n=A+1;let o=i(e);function i(g){return t?sr((n+g)%n):r(g)}function a(){return o}function s(g){return o=i(g),u}function l(g){return c().set(a()+g)}function c(){return JV(A,a(),t)}const u={get:a,set:s,add:l,clone:c};return u}function dWA(A,e,t,r,n,o,i,a,s,l,c,u,g,h,B,E,C,m,I){const{cross:v,direction:y}=A,x=["INPUT","SELECT","TEXTAREA"],b={passive:!1},k=LE(),M=LE(),N=Mf(50,225).constrain(h.measure(20)),F={mouse:300,touch:400},L={mouse:500,touch:600},T=B?43:25;let P=!1,G=0,H=0,z=!1,q=!1,O=!1,Y=!1;function S(X){if(!I)return;function cA(EA){(w1(I)||I(X,EA))&&tA(EA)}const hA=e;k.add(hA,"dragstart",EA=>EA.preventDefault(),b).add(hA,"touchmove",()=>{},b).add(hA,"touchend",()=>{}).add(hA,"touchstart",cA).add(hA,"mousedown",cA).add(hA,"touchcancel",sA).add(hA,"contextmenu",sA).add(hA,"click",iA,!0)}function J(){k.clear(),M.clear()}function $(){const X=Y?t:e;M.add(X,"touchmove",nA,b).add(X,"touchend",sA).add(X,"mousemove",nA,b).add(X,"mouseup",sA)}function U(X){const cA=X.nodeName||"";return x.includes(cA)}function AA(){return(B?L:F)[Y?"mouse":"touch"]}function Z(X,cA){const hA=u.add(DM(X)*-1),EA=c.byDistance(X,!B).distance;return B||sr(X)<N?EA:C&&cA?EA*.5:c.byIndex(hA.get(),0).distance}function tA(X){const cA=bM(X,r);Y=cA,O=B&&cA&&!X.buttons&&P,P=NE(n.get(),i.get())>=2,!(cA&&X.button!==0)&&(U(X.target)||(z=!0,o.pointerDown(X),l.useFriction(0).useDuration(0),n.set(i),$(),G=o.readPoint(X),H=o.readPoint(X,v),g.emit("pointerDown")))}function nA(X){if(!bM(X,r)&&X.touches.length>=2)return sA(X);const hA=o.readPoint(X),EA=o.readPoint(X,v),IA=NE(hA,G),DA=NE(EA,H);if(!q&&!Y&&(!X.cancelable||(q=IA>DA,!q)))return sA(X);const SA=o.pointerMove(X);IA>E&&(O=!0),l.useFriction(.3).useDuration(.75),a.start(),n.add(y(SA)),X.preventDefault()}function sA(X){const hA=c.byDistance(0,!1).index!==u.get(),EA=o.pointerUp(X)*AA(),IA=Z(y(EA),hA),DA=cWA(EA,IA),SA=T-10*DA,JA=m+DA/50;q=!1,z=!1,M.clear(),l.useDuration(SA).useFriction(JA),s.distance(IA,!B),Y=!1,g.emit("pointerUp")}function iA(X){O&&(X.stopPropagation(),X.preventDefault(),O=!1)}function aA(){return z}return{init:S,destroy:J,pointerDown:aA}}function hWA(A,e){let r,n;function o(u){return u.timeStamp}function i(u,g){const B=`client${(g||A.scroll)==="x"?"X":"Y"}`;return(bM(u,e)?u:u.touches[0])[B]}function a(u){return r=u,n=u,i(u)}function s(u){const g=i(u)-i(n),h=o(u)-o(r)>170;return n=u,h&&(r=u),g}function l(u){if(!r||!n)return 0;const g=i(n)-i(r),h=o(u)-o(r),B=o(u)-o(n)>170,E=g/h;return h&&!B&&sr(E)>.1?E:0}return{pointerDown:a,pointerMove:s,pointerUp:l,readPoint:i}}function pWA(){function A(t){const{offsetTop:r,offsetLeft:n,offsetWidth:o,offsetHeight:i}=t;return{top:r,right:n+o,bottom:r+i,left:n,width:o,height:i}}return{measure:A}}function BWA(A){function e(r){return A*(r/100)}return{measure:e}}function EWA(A,e,t,r,n,o,i){const a=[A].concat(r);let s,l,c=[],u=!1;function g(C){return n.measureSize(i.measure(C))}function h(C){if(!o)return;l=g(A),c=r.map(g);function m(I){for(const v of I){if(u)return;const y=v.target===A,x=r.indexOf(v.target),b=y?l:c[x],k=g(y?A:r[x]);if(sr(k-b)>=.5){C.reInit(),e.emit("resize");break}}}s=new ResizeObserver(I=>{(w1(o)||o(C,I))&&m(I)}),t.requestAnimationFrame(()=>{a.forEach(I=>s.observe(I))})}function B(){u=!0,s&&s.disconnect()}return{init:h,destroy:B}}function CWA(A,e,t,r,n,o){let i=0,a=0,s=n,l=o,c=A.get(),u=0;function g(b){const k=b/1e3,M=s*k,N=r.get()-A.get(),F=!s;let L=0;return F?(i=0,t.set(r),A.set(r),L=N):(t.set(A),i+=N/M,i*=l,c+=i,A.add(i*k),L=c-u),a=DM(L),u=c,x}function h(){const b=r.get()-e.get();return sr(b)<.001}function B(){return s}function E(){return a}function C(){return i}function m(){return v(n)}function I(){return y(o)}function v(b){return s=b,x}function y(b){return l=b,x}const x={direction:E,duration:B,velocity:C,seek:g,settled:h,useBaseFriction:I,useBaseDuration:m,useFriction:y,useDuration:v};return x}function mWA(A,e,t,r,n){const o=n.measure(10),i=n.measure(50),a=Mf(.1,.99);let s=!1;function l(){return!(s||!A.reachedAny(t.get())||!A.reachedAny(e.get()))}function c(h){if(!l())return;const B=A.reachedMin(e.get())?"min":"max",E=sr(A[B]-e.get()),C=t.get()-e.get(),m=a.constrain(E/i);t.subtract(C*m),!h&&sr(C)<o&&(t.set(A.constrain(t.get())),r.useDuration(25).useBaseFriction())}function u(h){s=!h}return{shouldConstrain:l,constrain:c,toggleActive:u}}function QWA(A,e,t,r,n){const o=Mf(-e+A,0),i=u(),a=c(),s=g();function l(B,E){return NE(B,E)<1}function c(){const B=i[0],E=wa(i),C=i.lastIndexOf(B),m=i.indexOf(E)+1;return Mf(C,m)}function u(){return t.map((B,E)=>{const{min:C,max:m}=o,I=o.constrain(B),v=!E,y=yM(t,E);return v?m:y||l(C,I)?C:l(m,I)?m:I}).map(B=>parseFloat(B.toFixed(3)))}function g(){if(e<=A+n)return[o.max];if(r==="keepSnaps")return i;const{min:B,max:E}=a;return i.slice(B,E)}return{snapsContained:s,scrollContainLimit:a}}function wWA(A,e,t){const r=e[0],n=t?r-A:wa(e);return{limit:Mf(n,r)}}function IWA(A,e,t,r){const o=e.min+.1,i=e.max+.1,{reachedMin:a,reachedMax:s}=Mf(o,i);function l(g){return g===1?s(t.get()):g===-1?a(t.get()):!1}function c(g){if(!l(g))return;const h=A*(g*-1);r.forEach(B=>B.add(h))}return{loop:c}}function vWA(A){const{max:e,length:t}=A;function r(o){const i=o-e;return t?i/-t:0}return{get:r}}function DWA(A,e,t,r,n){const{startEdge:o,endEdge:i}=A,{groupSlides:a}=n,s=u().map(e.measure),l=g(),c=h();function u(){return a(r).map(E=>wa(E)[i]-E[0][o]).map(sr)}function g(){return r.map(E=>t[o]-E[o]).map(E=>-sr(E))}function h(){return a(l).map(E=>E[0]).map((E,C)=>E+s[C])}return{snaps:l,snapsAligned:c}}function yWA(A,e,t,r,n,o){const{groupSlides:i}=n,{min:a,max:s}=r,l=c();function c(){const g=i(o),h=!A||e==="keepSnaps";return t.length===1?[o]:h?g:g.slice(a,s).map((B,E,C)=>{const m=!E,I=yM(C,E);if(m){const v=wa(C[0])+1;return jV(v)}if(I){const v=PE(o)-wa(C)[0]+1;return jV(v,wa(C)[0])}return B})}return{slideRegistry:l}}function bWA(A,e,t,r,n){const{reachedAny:o,removeOffset:i,constrain:a}=r;function s(B){return B.concat().sort((E,C)=>sr(E)-sr(C))[0]}function l(B){const E=A?i(B):a(B),C=e.map((I,v)=>({diff:c(I-E,0),index:v})).sort((I,v)=>sr(I.diff)-sr(v.diff)),{index:m}=C[0];return{index:m,distance:E}}function c(B,E){const C=[B,B+t,B-t];if(!A)return B;if(!E)return s(C);const m=C.filter(I=>DM(I)===E);return m.length?s(m):wa(C)-t}function u(B,E){const C=e[B]-n.get(),m=c(C,E);return{index:B,distance:m}}function g(B,E){const C=n.get()+B,{index:m,distance:I}=l(C),v=!A&&o(C);if(!E||v)return{index:m,distance:B};const y=e[m]-I,x=B+c(y,0);return{index:m,distance:x}}return{byDistance:g,byIndex:u,shortcut:c}}function xWA(A,e,t,r,n,o,i){function a(u){const g=u.distance,h=u.index!==e.get();o.add(g),g&&(r.duration()?A.start():(A.update(),A.render(1),A.update())),h&&(t.set(e.get()),e.set(u.index),i.emit("select"))}function s(u,g){const h=n.byDistance(u,g);a(h)}function l(u,g){const h=e.clone().set(u),B=n.byIndex(h.get(),g);a(B)}return{distance:s,index:l}}function kWA(A,e,t,r,n,o,i,a){const s={passive:!0,capture:!0};let l=0;function c(h){if(!a)return;function B(E){if(new Date().getTime()-l>10)return;i.emit("slideFocusStart"),A.scrollLeft=0;const I=t.findIndex(v=>v.includes(E));IM(I)&&(n.useDuration(0),r.index(I,0),i.emit("slideFocus"))}o.add(document,"keydown",u,!1),e.forEach((E,C)=>{o.add(E,"focus",m=>{(w1(a)||a(h,m))&&B(C)},s)})}function u(h){h.code==="Tab"&&(l=new Date().getTime())}return{init:c}}function FE(A){let e=A;function t(){return e}function r(s){e=i(s)}function n(s){e+=i(s)}function o(s){e-=i(s)}function i(s){return IM(s)?s:s.get()}return{get:t,set:r,add:n,subtract:o}}function zV(A,e){const t=A.scroll==="x"?o:i,r=e.style;let n=!1;function o(u){return`translate3d(${u}px,0px,0px)`}function i(u){return`translate3d(0px,${u}px,0px)`}function a(u){n||(r.transform=t(A.direction(u)))}function s(u){n=!u}function l(){n||(r.transform="",e.getAttribute("style")||e.removeAttribute("style"))}return{clear:l,to:a,toggleActive:s}}function _WA(A,e,t,r,n,o,i,a,s){const c=RE(n),u=RE(n).reverse(),g=m().concat(I());function h(k,M){return k.reduce((N,F)=>N-n[F],M)}function B(k,M){return k.reduce((N,F)=>h(N,M)>0?N.concat([F]):N,[])}function E(k){return o.map((M,N)=>({start:M-r[N]+.5+k,end:M+e-.5+k}))}function C(k,M,N){const F=E(M);return k.map(L=>{const T=N?0:-t,P=N?t:0,G=N?"end":"start",H=F[L][G];return{index:L,loopPoint:H,slideLocation:FE(-1),translate:zV(A,s[L]),target:()=>a.get()>H?T:P}})}function m(){const k=i[0],M=B(u,k);return C(M,t,!1)}function I(){const k=e-i[0]-1,M=B(c,k);return C(M,-t,!0)}function v(){return g.every(({index:k})=>{const M=c.filter(N=>N!==k);return h(M,e)<=.1})}function y(){g.forEach(k=>{const{target:M,translate:N,slideLocation:F}=k,L=M();L!==F.get()&&(N.to(L),F.set(L))})}function x(){g.forEach(k=>k.translate.clear())}return{canLoop:v,clear:x,loop:y,loopPoints:g}}function MWA(A,e,t){let r,n=!1;function o(s){if(!t)return;function l(c){for(const u of c)if(u.type==="childList"){s.reInit(),e.emit("slidesChanged");break}}r=new MutationObserver(c=>{n||(w1(t)||t(s,c))&&l(c)}),r.observe(A,{childList:!0})}function i(){r&&r.disconnect(),n=!0}return{init:o,destroy:i}}function SWA(A,e,t,r){const n={};let o=null,i=null,a,s=!1;function l(){a=new IntersectionObserver(B=>{s||(B.forEach(E=>{const C=e.indexOf(E.target);n[C]=E}),o=null,i=null,t.emit("slidesInView"))},{root:A.parentElement,threshold:r}),e.forEach(B=>a.observe(B))}function c(){a&&a.disconnect(),s=!0}function u(B){return TE(n).reduce((E,C)=>{const m=parseInt(C),{isIntersecting:I}=n[m];return(B&&I||!B&&!I)&&E.push(m),E},[])}function g(B=!0){if(B&&o)return o;if(!B&&i)return i;const E=u(B);return B&&(o=E),B||(i=E),E}return{init:l,destroy:c,get:g}}function NWA(A,e,t,r,n,o){const{measureSize:i,startEdge:a,endEdge:s}=A,l=t[0]&&n,c=B(),u=E(),g=t.map(i),h=C();function B(){if(!l)return 0;const I=t[0];return sr(e[a]-I[a])}function E(){if(!l)return 0;const I=o.getComputedStyle(wa(r));return parseFloat(I.getPropertyValue(`margin-${s}`))}function C(){return t.map((I,v,y)=>{const x=!v,b=yM(y,v);return x?g[v]+c:b?g[v]+u:y[v+1][a]-I[a]}).map(sr)}return{slideSizes:g,slideSizesWithGaps:h,startGap:c,endGap:u}}function RWA(A,e,t,r,n,o,i,a,s){const{startEdge:l,endEdge:c,direction:u}=A,g=IM(t);function h(m,I){return RE(m).filter(v=>v%I===0).map(v=>m.slice(v,v+I))}function B(m){return m.length?RE(m).reduce((I,v,y)=>{const x=wa(I)||0,b=x===0,k=v===PE(m),M=n[l]-o[x][l],N=n[l]-o[v][c],F=!r&&b?u(i):0,L=!r&&k?u(a):0,T=sr(N-L-(M+F));return y&&T>e+s&&I.push(v),k&&I.push(m.length),I},[]).map((I,v,y)=>{const x=Math.max(y[v-1]||0);return m.slice(x,I)}):[]}function E(m){return g?h(m,t):B(m)}return{groupSlides:E}}function PWA(A,e,t,r,n,o,i){const{align:a,axis:s,direction:l,startIndex:c,loop:u,duration:g,dragFree:h,dragThreshold:B,inViewThreshold:E,slidesToScroll:C,skipSnaps:m,containScroll:I,watchResize:v,watchSlides:y,watchDrag:x,watchFocus:b}=o,k=2,M=pWA(),N=M.measure(e),F=t.map(M.measure),L=gWA(s,l),T=L.measureSize(N),P=BWA(T),G=uWA(a,T),H=!u&&!!I,z=u||!!I,{slideSizes:q,slideSizesWithGaps:O,startGap:Y,endGap:S}=NWA(L,N,F,t,z,n),J=RWA(L,T,C,u,N,F,Y,S,k),{snaps:$,snapsAligned:U}=DWA(L,G,N,F,J),AA=-wa($)+wa(O),{snapsContained:Z,scrollContainLimit:tA}=QWA(T,AA,U,I,k),nA=H?Z:U,{limit:sA}=wWA(AA,nA,u),iA=JV(PE(nA),c,u),aA=iA.clone(),rA=RE(t),X=({dragHandler:ce,scrollBody:te,scrollBounds:Pe,options:{loop:Ke}},Ct)=>{Ke||Pe.constrain(ce.pointerDown()),te.seek(Ct)},cA=({scrollBody:ce,translate:te,location:Pe,offsetLocation:Ke,scrollLooper:Ct,slideLooper:kt,dragHandler:Ce,animation:YA,eventHandler:PA,scrollBounds:oe,options:{loop:Te}},Ut)=>{const Xe=ce.settled(),Ln=!oe.shouldConstrain(),Lr=Te?Xe:Xe&&Ln;Lr&&!Ce.pointerDown()&&(YA.stop(),PA.emit("settle")),Lr||PA.emit("scroll");const Fr=Pe.get()*Ut+SA.get()*(1-Ut);Ke.set(Fr),Te&&(Ct.loop(ce.direction()),kt.loop()),te.to(Ke.get())},hA=fWA(r,n,ce=>X(Ae,ce),ce=>cA(Ae,ce)),EA=.68,IA=nA[iA.get()],DA=FE(IA),SA=FE(IA),JA=FE(IA),jA=FE(IA),$A=CWA(DA,JA,SA,jA,g,EA),VA=bWA(u,nA,AA,sA,jA),pe=xWA(hA,iA,aA,$A,VA,jA,i),bA=vWA(sA),qA=LE(),dA=SWA(e,t,i,E),{slideRegistry:wA}=yWA(H,I,nA,tA,J,rA),HA=kWA(A,t,wA,pe,$A,qA,i,b),Ae={ownerDocument:r,ownerWindow:n,eventHandler:i,containerRect:N,slideRects:F,animation:hA,axis:L,dragHandler:dWA(L,A,r,n,jA,hWA(L,n),DA,hA,pe,$A,VA,iA,i,P,h,B,m,EA,x),eventStore:qA,percentOfView:P,index:iA,indexPrevious:aA,limit:sA,location:DA,offsetLocation:JA,previousLocation:SA,options:o,resizeHandler:EWA(e,i,n,t,L,v,M),scrollBody:$A,scrollBounds:mWA(sA,JA,jA,$A,P),scrollLooper:IWA(AA,sA,JA,[DA,JA,SA,jA]),scrollProgress:bA,scrollSnapList:nA.map(bA.get),scrollSnaps:nA,scrollTarget:VA,scrollTo:pe,slideLooper:_WA(L,T,AA,q,O,$,nA,JA,t),slideFocus:HA,slidesHandler:MWA(e,i,y),slidesInView:dA,slideIndexes:rA,slideRegistry:wA,slidesToScroll:J,target:jA,translate:zV(L,e)};return Ae}function TWA(){let A={},e;function t(l){e=l}function r(l){return A[l]||[]}function n(l){return r(l).forEach(c=>c(e,l)),s}function o(l,c){return A[l]=r(l).concat([c]),s}function i(l,c){return A[l]=r(l).filter(u=>u!==c),s}function a(){A={}}const s={init:t,emit:n,off:i,on:o,clear:a};return s}const LWA={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function FWA(A){function e(o,i){return qV(o,i||{})}function t(o){const i=o.breakpoints||{},a=TE(i).filter(s=>A.matchMedia(s).matches).map(s=>i[s]).reduce((s,l)=>e(s,l),{});return e(o,a)}function r(o){return o.map(i=>TE(i.breakpoints||{})).reduce((i,a)=>i.concat(a),[]).map(A.matchMedia)}return{mergeOptions:e,optionsAtMedia:t,optionsMediaQueries:r}}function OWA(A){let e=[];function t(o,i){return e=i.filter(({options:a})=>A.optionsAtMedia(a).active!==!1),e.forEach(a=>a.init(o,A)),i.reduce((a,s)=>Object.assign(a,{[s.name]:s}),{})}function r(){e=e.filter(o=>o.destroy())}return{init:t,destroy:r}}function I1(A,e,t){const r=A.ownerDocument,n=r.defaultView,o=FWA(n),i=OWA(o),a=LE(),s=TWA(),{mergeOptions:l,optionsAtMedia:c,optionsMediaQueries:u}=o,{on:g,off:h,emit:B}=s,E=L;let C=!1,m,I=l(LWA,I1.globalOptions),v=l(I),y=[],x,b,k;function M(){const{container:rA,slides:X}=v;b=(vM(rA)?A.querySelector(rA):rA)||A.children[0];const hA=vM(X)?b.querySelectorAll(X):X;k=[].slice.call(hA||b.children)}function N(rA){const X=PWA(A,b,k,r,n,rA,s);if(rA.loop&&!X.slideLooper.canLoop()){const cA=Object.assign({},rA,{loop:!1});return N(cA)}return X}function F(rA,X){C||(I=l(I,rA),v=c(I),y=X||y,M(),m=N(v),u([I,...y.map(({options:cA})=>cA)]).forEach(cA=>a.add(cA,"change",L)),v.active&&(m.translate.to(m.location.get()),m.animation.init(),m.slidesInView.init(),m.slideFocus.init(aA),m.eventHandler.init(aA),m.resizeHandler.init(aA),m.slidesHandler.init(aA),m.options.loop&&m.slideLooper.loop(),b.offsetParent&&k.length&&m.dragHandler.init(aA),x=i.init(aA,y)))}function L(rA,X){const cA=J();T(),F(l({startIndex:cA},rA),X),s.emit("reInit")}function T(){m.dragHandler.destroy(),m.eventStore.clear(),m.translate.clear(),m.slideLooper.clear(),m.resizeHandler.destroy(),m.slidesHandler.destroy(),m.slidesInView.destroy(),m.animation.destroy(),i.destroy(),a.clear()}function P(){C||(C=!0,a.clear(),T(),s.emit("destroy"),s.clear())}function G(rA,X,cA){!v.active||C||(m.scrollBody.useBaseFriction().useDuration(X===!0?0:v.duration),m.scrollTo.index(rA,cA||0))}function H(rA){const X=m.index.add(1).get();G(X,rA,-1)}function z(rA){const X=m.index.add(-1).get();G(X,rA,1)}function q(){return m.index.add(1).get()!==J()}function O(){return m.index.add(-1).get()!==J()}function Y(){return m.scrollSnapList}function S(){return m.scrollProgress.get(m.location.get())}function J(){return m.index.get()}function $(){return m.indexPrevious.get()}function U(){return m.slidesInView.get()}function AA(){return m.slidesInView.get(!1)}function Z(){return x}function tA(){return m}function nA(){return A}function sA(){return b}function iA(){return k}const aA={canScrollNext:q,canScrollPrev:O,containerNode:sA,internalEngine:tA,destroy:P,off:h,on:g,emit:B,plugins:Z,previousScrollSnap:$,reInit:E,rootNode:nA,scrollNext:H,scrollPrev:z,scrollProgress:S,scrollSnapList:Y,scrollTo:G,selectedScrollSnap:J,slideNodes:iA,slidesInView:U,slidesNotInView:AA};return F(e,t),setTimeout(()=>s.emit("init"),0),aA}I1.globalOptions=void 0;function xM(A={},e=[]){const t=d.useRef(A),r=d.useRef(e),[n,o]=d.useState(),[i,a]=d.useState(),s=d.useCallback(()=>{n&&n.reInit(t.current,r.current)},[n]);return d.useEffect(()=>{wM(t.current,A)||(t.current=A,s())},[A,s]),d.useEffect(()=>{lWA(r.current,e)||(r.current=e,s())},[e,s]),d.useEffect(()=>{if(sWA()&&i){I1.globalOptions=xM.globalOptions;const l=I1(i,t.current,r.current);return o(l),()=>l.destroy()}else o(void 0)},[i,o]),[a,n]}xM.globalOptions=void 0;const Wn={themeVars:`'{"width-Carousel": "var(--xmlui-width-Carousel)", "height-Carousel": "var(--xmlui-height-Carousel)", "height-control-Carousel": "var(--xmlui-height-control-Carousel)", "width-control-Carousel": "var(--xmlui-width-control-Carousel)", "color-text-control-Carousel": "var(--xmlui-color-text-control-Carousel)", "color-bg-control-Carousel": "var(--xmlui-color-bg-control-Carousel)", "radius-control-Carousel": "var(--xmlui-radius-control-Carousel)", "color-bg-control-hover-Carousel": "var(--xmlui-color-bg-control-hover-Carousel)", "color-text-control-hover-Carousel": "var(--xmlui-color-text-control-hover-Carousel)", "color-bg-control-active-Carousel": "var(--xmlui-color-bg-control-active-Carousel)", "color-text-control-active-Carousel": "var(--xmlui-color-text-control-active-Carousel)", "color-text-control-disabled-Carousel": "var(--xmlui-color-text-control-disabled-Carousel)", "color-bg-control-disabled-Carousel": "var(--xmlui-color-bg-control-disabled-Carousel)", "width-indicator-Carousel": "var(--xmlui-width-indicator-Carousel)", "height-indicator-Carousel": "var(--xmlui-height-indicator-Carousel)", "color-text-indicator-Carousel": "var(--xmlui-color-text-indicator-Carousel)", "color-bg-indicator-Carousel": "var(--xmlui-color-bg-indicator-Carousel)", "color-bg-indicator-hover-Carousel": "var(--xmlui-color-bg-indicator-hover-Carousel)", "color-text-indicator-hover-Carousel": "var(--xmlui-color-text-indicator-hover-Carousel)", "color-bg-indicator-active-Carousel": "var(--xmlui-color-bg-indicator-active-Carousel)", "color-text-indicator-active-Carousel": "var(--xmlui-color-text-indicator-active-Carousel)"}'`,carousel:"_carousel_11a03_13",innerWrapper:"_innerWrapper_11a03_22",carouselContentWrapper:"_carouselContentWrapper_11a03_30",carouselContent:"_carouselContent_11a03_30",vertical:"_vertical_11a03_40",carouselItem:"_carouselItem_11a03_44",controls:"_controls_11a03_51",controlButton:"_controlButton_11a03_60",indicators:"_indicators_11a03_87",indicator:"_indicator_11a03_87",active:"_active_11a03_107"},HWA={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function kM(A={}){let e,t,r,n=!1,o=!0,i=!1,a=0;function s(y,x){t=y;const{mergeOptions:b,optionsAtMedia:k}=x,M=b(HWA,kM.globalOptions),N=b(M,A);if(e=k(N),t.scrollSnapList().length<=1)return;i=e.jump,r=!1;const{eventStore:F,ownerDocument:L}=t.internalEngine(),T=t.rootNode(),P=e.rootNode&&e.rootNode(T)||T,G=t.containerNode();t.on("pointerDown",u),e.stopOnInteraction||t.on("pointerUp",c),e.stopOnMouseEnter&&(F.add(P,"mouseenter",()=>{o=!1,u()}),e.stopOnInteraction||F.add(P,"mouseleave",()=>{o=!0,c()})),e.stopOnFocusIn&&(t.on("slideFocusStart",u),e.stopOnInteraction||F.add(G,"focusout",c)),F.add(L,"visibilitychange",g),e.playOnInit&&!h()&&c()}function l(){t.off("pointerDown",u).off("pointerUp",c).off("slideFocusStart",u),u(),r=!0,n=!1}function c(){if(r||!o)return;n||t.emit("autoplay:play");const{ownerWindow:y}=t.internalEngine();y.clearInterval(a),a=y.setInterval(I,e.delay),n=!0}function u(){if(r)return;n&&t.emit("autoplay:stop");const{ownerWindow:y}=t.internalEngine();y.clearInterval(a),a=0,n=!1}function g(){if(h())return o=n,u();o&&c()}function h(){const{ownerDocument:y}=t.internalEngine();return y.visibilityState==="hidden"}function B(y){typeof y<"u"&&(i=y),o=!0,c()}function E(){n&&u()}function C(){n&&B()}function m(){return n}function I(){const{index:y}=t.internalEngine(),x=y.clone().add(1).get(),b=t.scrollSnapList().length-1;e.stopOnLastSnap&&x===b&&u(),t.canScrollNext()?t.scrollNext(i):t.scrollTo(0,i)}return{name:"autoplay",options:A,init:s,destroy:l,play:B,stop:E,reset:C,isPlaying:m}}kM.globalOptions=void 0;const WV=d.createContext({register:A=>{},unRegister:A=>{}}),GWA=()=>{const A=d.useContext(WV);if(!A)throw new Error("useCarousel must be used within a Carousel");return A};function UWA(){const[A,e]=d.useState([]),t=d.useMemo(()=>({register:r=>{e(No(n=>{const o=n.findIndex(i=>i.id===r.id);o<0?n.push(r):n[o]=r}))},unRegister:r=>{e(No(n=>n.filter(o=>o.id!==r)))}}),[e]);return{carouselItems:A,carouselContextValue:t}}const KWA=d.forwardRef(function({orientation:e="horizontal",children:t,style:r,indicators:n=!0,onDisplayDidChange:o=ve,autoplay:i=!1,controls:a=!0,loop:s=!1,startIndex:l=0,prevIcon:c,nextIcon:u,transitionDuration:g=25,autoplayInterval:h=5e3,stopAutoplayOnInteraction:B=!0,registerComponentApi:E},C){const m=d.useRef(null),[I,v]=d.useState(0),[y,x]=d.useState([]),[b,k]=d.useState(!1),{carouselContextValue:M,carouselItems:N}=UWA(),F=C?Zr(m,C):m,[L,T]=xM({axis:e==="horizontal"?"x":"y",loop:s,startIndex:l,duration:g},y),P=c||e==="horizontal"?"arrowleft":"arrowup",G=u||e==="horizontal"?"arrowright":"arrowdown";d.useEffect(()=>{i&&x([kM({delay:h,stopOnInteraction:B})])},[h,i,B]);const H=d.useCallback(()=>{var nA;const Z=(nA=T==null?void 0:T.plugins())==null?void 0:nA.autoplay;if(!Z)return;(Z.isPlaying()?Z.stop:Z.play)()},[T]);d.useEffect(()=>{var tA;const Z=(tA=T==null?void 0:T.plugins())==null?void 0:tA.autoplay;Z&&(k(Z.isPlaying()),T.on("autoplay:play",()=>k(!0)).on("autoplay:stop",()=>k(!1)).on("reInit",()=>k(Z.isPlaying())))},[T]);const z=d.useCallback(Z=>{T==null||T.scrollTo(Z)},[T]),[q,O]=d.useState(!1),[Y,S]=d.useState(!1),J=d.useCallback(Z=>{if(!Z)return;const tA=Z.selectedScrollSnap();o(tA),v(tA),O(Z.canScrollPrev()),S(Z.canScrollNext())},[o]),$=d.useCallback(()=>{T&&(T==null||T.scrollPrev())},[T]),U=d.useCallback(()=>{T==null||T.scrollNext()},[T]),AA=d.useCallback(Z=>{e==="horizontal"?Z.key==="ArrowLeft"?(Z.preventDefault(),$()):Z.key==="ArrowRight"&&(Z.preventDefault(),U()):Z.key==="ArrowUp"?(Z.preventDefault(),$()):Z.key==="ArrowDown"&&(Z.preventDefault(),U())},[e,$,U]);return d.useEffect(()=>{E==null||E({scrollTo:z,scrollPrev:$,scrollNext:U,canScrollPrev:()=>q,canScrollNext:()=>Y})},[E,z,$,U,q,Y]),d.useEffect(()=>{if(T)return J(T),T.on("init",J),T.on("reInit",J),T.on("select",J),()=>{T==null||T.off("select",J)}},[T,J]),d.useEffect(()=>{m!=null&&m.current&&m.current.addEventListener("keydown",AA)},[F,AA]),Q.jsxs(WV.Provider,{value:M,children:[t,Q.jsxs("div",{style:r,ref:F,className:KA(Wn.carousel),role:"region",tabIndex:-1,"aria-roledescription":"carousel",children:[Q.jsx("div",{ref:L,className:Wn.carouselContentWrapper,children:Q.jsx("div",{className:KA(Wn.carouselContent,{[Wn.horizontal]:e==="horizontal",[Wn.vertical]:e==="vertical"}),children:N.map((Z,tA)=>Q.jsx("div",{role:"group","aria-roledescription":"slide",className:KA(Wn.carouselItem),children:Q.jsx("div",{className:Wn.innerWrapper,ref:Z.ref,style:Z.style,children:Z.children})},Z.id))})}),a&&Q.jsxs("div",{className:Wn.controls,children:[i&&Q.jsx("button",{className:Wn.controlButton,onClick:H,children:b?Q.jsx(be,{name:"pause"}):Q.jsx(be,{name:"play"})}),Q.jsx("button",{className:Wn.controlButton,disabled:!q,onClick:$,children:Q.jsx(be,{name:P})}),Q.jsx("button",{className:Wn.controlButton,onClick:U,disabled:!Y,children:Q.jsx(be,{name:G})})]}),n&&Q.jsx("div",{className:Wn.indicators,children:N.map((Z,tA)=>Q.jsx("button",{type:"button",onClick:()=>z(tA),className:KA(Wn.indicator,{[Wn.active]:tA===I}),"aria-current":tA===I},tA))})]})]})}),lr="Carousel",YWA=kA({status:"in progress",description:"This component displays a slideshow by cycling through elements (images, text, or custom slides) like a carousel.",props:{orientation:j("This property indicates the orientation of the carousel. The `horizontal` value indicates that the carousel moves horizontally, and the `vertical` value indicates that the carousel moves vertically.",["horizontal","vertical"],null,"horizontal"),indicators:j("This property indicates whether the carousel displays the indicators.",null,null,"true"),controls:j("This property indicates whether the carousel displays the controls.",null,null,"true"),autoplay:j("This property indicates whether the carousel automatically scrolls.",null,null,"false"),loop:j("This property indicates whether the carousel loops.",null,null,"false"),startIndex:j("This property indicates the index of the first slide to display.",null,null,"0"),transitionDuration:j("This property specifies the duration of the transition between slides."),autoplayInterval:j("This property specifies the interval between autoplay transitions."),stopAutoplayOnInteraction:j("This property indicates whether autoplay stops on interaction."),prevIcon:j("This property specifies the icon to display for the previous control."),nextIcon:j("This property specifies the icon to display for the next control."),keyboard:j("This property indicates whether the carousel responds to keyboard events.")},events:{displayDidChange:lo(lr)},apis:{canScrollPrev:j("This method returns `true` if the carousel can scroll to the previous slide."),canScrollNext:j("This method returns `true` if the carousel can scroll to the next slide."),scrollTo:j("This method scrolls the carousel to the specified slide index."),scrollPrev:j("This method scrolls the carousel to the previous slide."),scrollNext:j("This method scrolls the carousel to the next slide.")},themeVars:ne(Wn.themeVars),defaultThemeVars:{[`color-bg-control-${lr}`]:"$color-primary",[`color-text-control-${lr}`]:"$color-text",[`color-bg-control-hover-${lr}`]:"$color-primary",[`color-text-control-hover-${lr}`]:"$color-text",[`color-bg-control-active-${lr}`]:"$color-primary",[`color-bg-control-disabled-${lr}`]:"$color-surface-200",[`color-text-control-disabled-${lr}`]:"$color-text-disabled",[`color-text-control-active-${lr}`]:"$color-primary",[`color-bg-indicator-${lr}`]:"$color-surface-200",[`color-bg-indicator-active-${lr}`]:"$color-primary",[`color-text-indicator-${lr}`]:"$color-primary",[`color-text-indicator-active-${lr}`]:"$color-primary",[`color-bg-indicator-hover-${lr}`]:"$color-surface-200",[`color-text-indicator-hover-${lr}`]:"$color-primary",[`width-indicator-${lr}`]:"25px",[`height-indicator-${lr}`]:"6px",[`height-control-${lr}`]:"36px",[`width-control-${lr}`]:"36px",[`radius-control-${lr}`]:"50%",[`height-${lr}`]:"100%",[`width-${lr}`]:"100%"}}),$WA=RA(lr,YWA,({node:A,renderChild:e,layoutCss:t,extractValue:r,lookupEventHandler:n,registerComponentApi:o})=>{var i,a,s,l,c,u,g,h,B,E,C,m;return Q.jsx(KWA,{style:t,stopAutoplayOnInteraction:r.asOptionalBoolean((i=A.props)==null?void 0:i.stopAutoplayOnInteraction),autoplayInterval:r.asOptionalNumber((a=A.props)==null?void 0:a.autoplayInterval),transitionDuration:r.asOptionalNumber((s=A.props)==null?void 0:s.transitionDuration),indicators:r.asOptionalBoolean((l=A.props)==null?void 0:l.indicators),controls:r.asOptionalBoolean((c=A.props)==null?void 0:c.controls),orientation:r((u=A.props)==null?void 0:u.orientation),onDisplayDidChange:n("displayDidChange"),autoplay:r.asOptionalBoolean((g=A.props)==null?void 0:g.autoplay),registerComponentApi:o,loop:r.asOptionalBoolean((h=A.props)==null?void 0:h.loop),startIndex:r.asOptionalNumber((B=A.props)==null?void 0:B.startIndex),prevIcon:r((E=A.props)==null?void 0:E.prevIcon),nextIcon:r((C=A.props)==null?void 0:C.nextIcon),keyboard:r.asOptionalBoolean((m=A.props)==null?void 0:m.keyboard),children:e(A.children)})}),jWA=d.forwardRef(function({children:e,style:t},r){const n=d.useId(),{register:o,unRegister:i}=GWA();return d.useEffect(()=>{o({children:e,style:t,ref:r,id:n})},[n,e,t,o,r]),d.useEffect(()=>()=>{i(n)},[n,i]),null}),qWA="CarouselItem",JWA=kA({}),zWA=RA(qWA,JWA,A=>{const{node:e,renderChild:t}=A;return Q.jsx(jWA,{children:t(e.children)})}),WWA={breakout:"_breakout_ovaa2_1"},VWA=({children:A})=>Q.jsx("div",{className:WWA.breakout,children:A}),VV="Breakout",XWA=kA({description:`The \`${VV}\` component creates a breakout section. It allows its child to occupy the entire width of the UI even if the app or the parent container constrains the maximum content width.`}),ZWA=RA(VV,XWA,({node:A,renderChild:e})=>Q.jsx(VWA,{children:e(A.children)})),XV="ToneChangerButton",AVA=kA({status:"experimental",docFolder:"ThemeChanger",description:`The \`${XV}\` component is a component that allows the user to change the tone of the app.`,props:{}});function eVA(){const{activeThemeTone:A,setActiveThemeTone:e}=cB();return Q.jsx(or,{variant:"ghost",icon:Q.jsx(be,{name:A==="light"?"moon":"sun"}),onClick:()=>{e(A==="light"?"dark":"light")}})}const tVA=RA(XV,AVA,()=>Q.jsx(eVA,{}));function rVA({registerComponentApi:A,node:e,uid:t}){const r=ze(async(n,...o)=>{var a,s,l,c;const i=o[1];return await UW(n,{...e.props,body:e.props.body||(i!=null&&i.passAsDefaultBody?o[0]:void 0),uid:t,params:{$param:o[0],$params:o},onError:(a=e.events)==null?void 0:a.error,onProgress:(s=e.events)==null?void 0:s.progress,onBeforeRequest:(l=e.events)==null?void 0:l.beforeRequest,onSuccess:(c=e.events)==null?void 0:c.success},{resolveBindingExpressions:!0})});return d.useEffect(()=>{A({execute:r,_SUPPORT_IMPLICIT_CONTEXT:!0})},[r,A]),null}const OE="APICall",nVA=kA({description:`\`${OE}\` is used to mutate (create, update or delete) some data on the backend. It is similar in nature to the \`DataSource\` component which retrieves data from the backend.`,props:{method:j("The method of data manipulation can be done via setting this property. The following HTTP methods are available: `post`, `put`, and `delete`."),url:j("Use this property to set the URL to send data to."),rawBody:j("This property sets the request body to the value provided here without any conversion. Use the * `body` property if you want the object sent in JSON. When you define `body` and `rawBody`, the latest one prevails."),body:j("This property sets the request body. The object you pass here will be serialized to JSON when sending the request. Use the `rawBody` property to send another request body using its native format. When you define `body` and `rawBody`, the latest one prevails."),queryParams:j("This property sets the query parameters for the request. The object you pass here will be serialized to a query string and appended to the request URL. You can specify key and value pairs where the key is the name of a particular query parameter and the value is that parameter's value."),headers:j("You can define request header values as key and value pairs, where the key is the ID of the particular header and the value is that header's value."),confirmTitle:j(`This optional string sets the title in the confirmation dialog that is displayed before the \`${OE}\` is executed.`),confirmMessage:j(`This optional string sets the message in the confirmation dialog that is displayed before the \`${OE}\` is executed.`),confirmButtonLabel:j(`This optional string property enables the customization of the submit button in the confirmation dialog that is displayed before the \`${OE}\` is executed.`),inProgressNotificationMessage:j("This property customizes the message that is displayed in a toast while the API operation is in progress."),errorNotificationMessage:j("This property defines the message to display automatically when the operation results in an error."),completedNotificationMessage:j("This property defines the message to display automatically when the operation has been completed."),payloadType:Zu(),invalidates:Zu(),updates:Zu(),optimisticValue:Zu(),getOptimisticValue:Zu()},events:{beforeRequest:j("This event fires before the request is sent. Returning an explicit boolean'false' value will prevent the request from being sent."),success:j("This event fires when a request results in a success."),error:j("This event fires when a request results in an error."),progress:Zu()},contextVars:{$param:j("This value represents the first parameters passed to the `execute()` method to display the modal dialog."),$params:j("This value represents the array of parameters passed to the `execute()` method. You can use `$params[0]` to access the first and `$params[1]` to access the second (and so on) parameters. `$param` is the same as `$params[0]`.")},apis:{execute:j("This method triggers the invocation of the API. You can pass an arbitrary number of parameters to the method. In the `APICall` instance, you can access those with the `$param` and `$params` context values.")}}),oVA=RA(OE,nVA,({node:A,registerComponentApi:e,uid:t,extractValue:r})=>Q.jsx(rVA,{registerComponentApi:e,node:A,uid:t})),ZV="Option",iVA=kA({description:`\`${ZV}\` is a non-visual component describing a selection option. Other components (such as \`Select\`, \`Combobox\`, and others) may use nested \`Option\` instances from which the user can select.`,props:{label:j("This property defines the text to display for the option. If `label` is not defined, `Option` will use the `value` as the label."),value:j("This property defines the value of the option. If `value` is not defined, `Option` will use the `label` as the value."),enabled:Yn()}}),AX=d.memo(A=>{const e=NRA();return e?Q.jsx(e,{...A}):null});AX.displayName="OptionNative";const aVA=RA(ZV,iVA,({node:A,extractValue:e,layoutCss:t,renderChild:r})=>Q.jsx(AX,{value:e(A.props.value),label:e.asOptionalString(A.props.label)||r(A.children),enabled:e.asOptionalBoolean(A.props.enabled),style:t})),cr="AutoComplete",sVA=kA({description:"This component is a dropdown with a list of options. According to the `multi` property, the user can select one or more items.",status:"experimental",props:{placeholder:Af(),initialValue:na(),maxLength:NB(),autoFocus:Fo(),required:As(),readOnly:Xa(),enabled:Yn(),validationStatus:Za(),dropdownHeight:j("This property sets the height of the dropdown list."),multi:R7(),optionTemplate:zt("This property enables the customization of list items. To access the attributes of a list item use the `$item` context variable."),emptyListTemplate:j("This property defines the template to display when the list of options is empty.")},events:{gotFocus:To(cr),lostFocus:Lo(cr),didChange:lo(cr)},apis:{focus:es(cr),value:j("You can query the component's value. If no value is set, it will retrieve `undefined`."),setValue:Vs()},contextVars:{$item:j("This context value represents an item when you define an option item template. Use `$item.value` and `$item.label` to refer to the value and label of the particular option.")},themeVars:ne(Jn.themeVars),defaultThemeVars:{[`color-bg-menu-${cr}`]:"$color-bg-primary",[`shadow-menu-${cr}`]:"$shadow-md",[`radius-menu-${cr}`]:"$radius",[`color-bg-item-${cr}`]:"$color-bg-dropdown-item",[`color-bg-item-${cr}--hover`]:"$color-bg-dropdown-item--active",[`color-bg-item-${cr}--active`]:"$color-bg-dropdown-item--active","min-height-Input":"39px",[`color-bg-${cr}-badge`]:"$color-primary-500",[`font-size-${cr}-badge`]:"$font-size-small",[`padding-horizontal-${cr}-badge`]:"$space-1",[`padding-vertical-${cr}-badge`]:"$space-1",light:{[`color-bg-${cr}-badge--hover`]:"$color-primary-400",[`color-bg-${cr}-badge--active`]:"$color-primary-500",[`color-text-item-${cr}--disabled`]:"$color-surface-200",[`color-text-${cr}-badge`]:"$color-surface-50"},dark:{[`color-bg-${cr}-badge--hover`]:"$color-primary-600",[`color-bg-${cr}-badge--active`]:"$color-primary-500",[`color-text-${cr}-badge`]:"$color-surface-50",[`color-text-item-${cr}--disabled`]:"$color-surface-800"}}}),lVA=RA(cr,sVA,({node:A,state:e,updateState:t,extractValue:r,renderChild:n,lookupEventHandler:o,layoutCss:i,registerComponentApi:a})=>Q.jsx(Eq,{multi:r.asOptionalBoolean(A.props.multi),style:i,updateState:t,initialValue:r(A.props.initialValue),value:e==null?void 0:e.value,autoFocus:r.asOptionalBoolean(A.props.autoFocus),enabled:r.asOptionalBoolean(A.props.enabled),placeholder:r.asOptionalString(A.props.placeholder),validationStatus:r(A.props.validationStatus),onDidChange:o("didChange"),onFocus:o("gotFocus"),onBlur:o("lostFocus"),registerComponentApi:a,emptyListTemplate:n(A.props.emptyListTemplate),dropdownHeight:r(A.props.dropdownHeight),optionRenderer:A.props.optionTemplate?s=>Q.jsx(Oo,{node:A.props.optionTemplate,item:s,renderChild:n}):void 0,children:n(A.children)})),v1={themeVars:'"[]"',backdropContainer:"_backdropContainer_18iuc_13",backdrop:"_backdrop_18iuc_13",overlay:"_overlay_18iuc_26"},cVA=d.forwardRef(function({style:e,children:t,overlayTemplate:r,backgroundColor:n="black",opacity:o="0.1"},i){const a={...e,width:void 0};return Q.jsxs("div",{className:v1.backdropContainer,style:{width:e.width??"fit-content"},ref:i,children:[t,Q.jsx("div",{className:v1.backdrop,style:{...a,backgroundColor:n,opacity:o}}),r&&Q.jsx("div",{className:v1.overlay,children:r})]})}),eX="Backdrop",uVA=kA({status:"stable",description:`The \`${eX}\` component is a semi-transparent overlay that appears on top of its child component to obscure or highlight the content behind it.`,props:{overlayTemplate:zt("This property defines the component template for an optional overlay to display over the component."),backgroundColor:j("The background color of the backdrop.",null,"string","black"),opacity:j("The opacity of the backdrop.",null,"number",.1)},themeVars:ne(v1.themeVars)}),fVA=RA(eX,uVA,({node:A,extractValue:e,renderChild:t,layoutCss:r})=>{var n;return Q.jsx(cVA,{style:r,overlayTemplate:t((n=A.props)==null?void 0:n.overlayTemplate),backgroundColor:e.asOptionalString(A.props.backgroundColor),opacity:e.asString(A.props.opacity),children:t(A.children)})});var Ye={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_Pdf:"false",VITE_USED_COMPONENTS_Chart:"false",VITE_USER_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_XMLUI_VERSION:"0.7.19 (built 1/31/2025)"};const gVA=VQ("DataSource"),dVA=VQ("TextNode"),hVA=VQ("TextNodeCData");class _M{constructor(e={},t){var r,n,o,i;this.componentManager=t,this.pool=new Map,this.themeVars=new Set,this.defaultThemeVars={},this.actionFns=new Map,this.loaders=new Map,this.registerComponentRenderer=({type:a,renderer:s,metadata:l})=>{this.pool.set(a,{renderer:s,descriptor:l}),l!=null&&l.themeVars&&Object.keys(l.themeVars).forEach(c=>this.themeVars.add(c)),l!=null&&l.defaultThemeVars&&wm(this.defaultThemeVars,l==null?void 0:l.defaultThemeVars)},this.componentManager=t,Ye.VITE_USED_COMPONENTS_Stack!=="false"&&(this.registerComponentRenderer($kA),this.registerComponentRenderer(jkA),this.registerComponentRenderer(qkA),this.registerComponentRenderer(JkA),this.registerComponentRenderer(zkA)),this.registerComponentRenderer(V7A),this.registerComponentRenderer(gVA),this.registerComponentRenderer(dVA),this.registerComponentRenderer(hVA),Ye.VITE_USED_COMPONENTS_SpaceFiller!=="false"&&this.registerComponentRenderer(VkA),Ye.VITE_USED_COMPONENTS_Textarea!=="false"&&this.registerComponentRenderer(w4A),Ye.VITE_USED_COMPONENTS_AppHeader!=="false"&&this.registerComponentRenderer(yjA),Ye.VITE_USED_COMPONENTS_Footer!=="false"&&this.registerComponentRenderer(O7A),Ye.VITE_USED_COMPONENTS_Logo!=="false"&&this.registerComponentRenderer(j7A),Ye.VITE_USED_COMPONENTS_NavLink!=="false"&&this.registerComponentRenderer(F4A),Ye.VITE_USED_COMPONENTS_NavGroup!=="false"&&this.registerComponentRenderer(Y7A),Ye.VITE_USED_COMPONENTS_Link!=="false"&&this.registerComponentRenderer(H4A),Ye.VITE_USED_COMPONENTS_Form!=="false"&&(this.registerComponentRenderer(vOA),this.registerComponentRenderer(gOA)),Ye.VITE_USED_COMPONENTS_Button!=="false"&&this.registerComponentRenderer(U4A),Ye.VITE_USED_COMPONENTS_Checkbox!=="false"&&this.registerComponentRenderer(wjA),Ye.VITE_USED_COMPONENTS_Switch!=="false"&&this.registerComponentRenderer(vjA),Ye.VITE_USED_COMPONENTS_Heading!=="false"&&(this.registerComponentRenderer(t_A),this.registerComponentRenderer(r_A),this.registerComponentRenderer(n_A),this.registerComponentRenderer(o_A),this.registerComponentRenderer(i_A),this.registerComponentRenderer(a_A),this.registerComponentRenderer(s_A)),Ye.VITE_USED_COMPONENTS_Text!=="false"&&this.registerComponentRenderer(c_A),Ye.VITE_USED_COMPONENTS_Fragment!=="false"&&this.registerComponentRenderer(f_A),Ye.VITE_USED_COMPONENTS_Table!=="false"&&(this.registerComponentRenderer(C3A),this.registerComponentRenderer(KjA)),Ye.VITE_USED_COMPONENTS_List!=="false"&&this.registerComponentRenderer(QMA),Ye.VITE_USED_COMPONENTS_App!=="false"&&this.registerComponentRenderer(b7A),Ye.VITE_USED_COMPONENTS_NavPanel!=="false"&&this.registerComponentRenderer(k7A),Ye.VITE_USED_COMPONENTS_Pages!=="false"&&(this.registerComponentRenderer(T7A),this.registerComponentRenderer(R7A)),Ye.VITE_USED_COMPONENTS_Redirect!=="false"&&this.registerComponentRenderer(wqA),Ye.VITE_USED_COMPONENTS_StickyBox!=="false"&&this.registerComponentRenderer(w3A),Ye.VITE_USED_COMPONENTS_Badge!=="false"&&this.registerComponentRenderer(D3A),Ye.VITE_USED_COMPONENTS_Avatar!=="false"&&this.registerComponentRenderer(b3A),Ye.VITE_USED_COMPONENTS_ContentSeparator!=="false"&&this.registerComponentRenderer(k3A),Ye.VITE_USED_COMPONENTS_Card!=="false"&&this.registerComponentRenderer(M3A),Ye.VITE_USED_COMPONENTS_FlowLayout!=="false"&&this.registerComponentRenderer(P3A),Ye.VITE_USED_COMPONENTS_ModalDialog!=="false"&&this.registerComponentRenderer(L3A),Ye.VITE_USED_COMPONENTS_NoResult!=="false"&&this.registerComponentRenderer(H3A),Ye.VITE_USED_COMPONENTS_Option!=="false"&&this.registerComponentRenderer(aVA),Ye.VITE_USED_COMPONENTS_TabItem!=="false"&&this.registerComponentRenderer(YzA),Ye.VITE_USED_COMPONENTS_AccordionItem!=="false"&&this.registerComponentRenderer(XzA),Ye.VITE_USED_COMPONENTS_CarouselItem!=="false"&&this.registerComponentRenderer(zWA),Ye.VITE_USED_COMPONENTS_FileUploadDropZone!=="false"&&this.registerComponentRenderer(R8A),Ye.VITE_USED_COMPONENTS_Icon!=="false"&&this.registerComponentRenderer(T8A),Ye.VITE_USED_COMPONENTS_Items!=="false"&&this.registerComponentRenderer(O8A),Ye.VITE_USED_COMPONENTS_SelectionStore!=="false"&&this.registerComponentRenderer(G8A),Ye.VITE_USED_COMPONENTS_Image!=="false"&&this.registerComponentRenderer(K8A),Ye.VITE_USER_COMPONENTS_Markdown!=="false"&&this.registerComponentRenderer(k$A),Ye.VITE_INCLUDE_REST_COMPONENTS!=="false"&&(this.registerComponentRenderer(q8A),this.registerComponentRenderer(W8A),this.registerComponentRenderer(eMA),this.registerComponentRenderer(tMA),this.registerComponentRenderer(rMA),this.registerComponentRenderer(dMA),this.registerComponentRenderer(DMA),this.registerComponentRenderer(xMA),this.registerComponentRenderer(wOA),this.registerComponentRenderer(dOA),this.registerComponentRenderer(pOA),this.registerComponentRenderer(o7A),this.registerComponentRenderer(a7A),this.registerComponentRenderer(D7A),this.registerComponentRenderer(J7A),this.registerComponentRenderer(Z7A),this.registerComponentRenderer(mqA),this.registerComponentRenderer(eGA),this.registerComponentRenderer(M$A),this.registerComponentRenderer(lVA),this.registerComponentRenderer(TW),this.registerComponentRenderer(P$A),this.registerComponentRenderer(tVA),this.registerCompoundComponentRenderer(mjA),this.registerComponentRenderer(TW),this.registerComponentRenderer(kjA),this.registerComponentRenderer(MjA),this.registerComponentRenderer(NjA),this.registerComponentRenderer(oJA),this.registerComponentRenderer(lJA),this.registerComponentRenderer(MJA),this.registerComponentRenderer(ZWA)),this.registerComponentRenderer(HjA),this.registerComponentRenderer(fJA),this.registerComponentRenderer(oVA),this.registerCompoundComponentRenderer(dJA),this.registerCompoundComponentRenderer(BJA),this.registerCompoundComponentRenderer(mJA),this.registerCompoundComponentRenderer(wJA),this.registerCompoundComponentRenderer(DJA),this.registerCompoundComponentRenderer(xJA),this.registerComponentRenderer($WA),this.registerComponentRenderer(RzA),this.registerComponentRenderer(FzA),this.registerComponentRenderer(GzA),this.registerComponentRenderer(JzA),this.registerComponentRenderer(tWA),this.registerComponentRenderer(iWA),this.registerComponentRenderer(fVA),(r=e.components)==null||r.forEach(a=>{this.registerComponentRenderer(a)}),(n=e.compoundComponents)==null||n.forEach(a=>{this.registerCompoundComponentRenderer({compoundComponentDef:a})}),this.registerActionFn(zjA),this.registerActionFn(ZjA),this.registerActionFn(eqA),this.registerActionFn(rqA),this.registerActionFn(oqA),(o=e.actions)==null||o.forEach(a=>{this.registerActionFn(a)}),this.registerLoaderRenderer(sqA),this.registerLoaderRenderer(uqA),this.registerLoaderRenderer(dqA),this.registerLoaderRenderer(EqA),(i=this.componentManager)==null||i.subscribeToRegistrations(this.registerComponentRenderer)}get componentThemeVars(){return this.themeVars}get componentDefaultThemeVars(){return this.defaultThemeVars}get actionFunctions(){return this.actionFns}getRegisteredComponentKeys(){return Array.from(this.pool.keys())}lookupComponentRenderer(e){return this.pool.get(e)}lookupAction(e){return this.actionFns.get(e)}lookupLoaderRenderer(e){return this.loaders.get(e)}hasComponent(e){return this.pool.get(e)!==void 0||this.loaders.get(e)!==void 0||this.actionFns.get(e)!==void 0}registerCompoundComponentRenderer({compoundComponentDef:e,metadata:t}){this.pool.set(e.name,{renderer:r=>Q.jsx(BU,{api:e.api,scriptCollected:e.scriptCollected,compound:e.component,...r}),isCompoundComponent:!0}),t!=null&&t.themeVars&&Object.keys(t.themeVars).forEach(r=>this.themeVars.add(r)),t!=null&&t.defaultThemeVars&&wm(this.defaultThemeVars,t==null?void 0:t.defaultThemeVars)}registerActionFn({actionName:e,actionFn:t}){this.actionFns.set(e,t)}registerLoaderRenderer({type:e,renderer:t}){this.loaders.set(e,t)}destroy(){var e;(e=this.componentManager)==null||e.unSubscribeFromRegistrations(this.registerComponentRenderer)}}function pVA({children:A,contributes:e,componentManager:t}){const[r,n]=d.useState(()=>new _M(e,t));return d.useEffect(()=>{n(o=>(o.destroy(),new _M(e,t)))},[t,e]),Q.jsx(vO.Provider,{value:r,children:A})}const tX={dialogContent:"_dialogContent_1rief_13",dialogActions:"_dialogActions_1rief_18"},BVA=({title:A,description:e,children:t,isOpen:r,onClose:n,buttons:o})=>Q.jsxs(Qd,{onClose:n,isInitiallyOpen:r,title:A,children:[Q.jsxs("div",{className:tX.dialogContent,children:[Q.jsx("div",{id:"dialogDesc",children:Q.jsx(Bn,{children:e})}),t]}),!!o&&Q.jsx("footer",{className:tX.dialogActions,children:o})]}),rX=_A.createContext({confirm:async(A,e,t)=>!1}),EVA=()=>d.useContext(rX),CVA=({children:A})=>{const[e,t]=d.useState(!1),[r,n]=d.useState("Are you sure?"),[o,i]=d.useState(),[a,s]=d.useState([]),l=d.useRef(null),c=d.useRef(null);d.useEffect(()=>{e&&setTimeout(()=>{var C;const E=(C=c.current)==null?void 0:C.querySelectorAll("button");E&&E[E.length-1].focus()},0)},[e]);const u=d.useCallback(async(E,C,m)=>(typeof E=="string"?(n(E),s([{label:m||"Ok",value:!0}]),i(C)):(n(E.title),s(E.buttons),i(E.message)),t(!0),new Promise(function(I){l.current=I})),[]),g=d.useCallback(E=>{l.current&&l.current(E),t(!1)},[]),h=d.useCallback(()=>{l.current&&l.current(!1),t(!1)},[]),B=d.useMemo(()=>({confirm:u}),[u]);return Q.jsxs(rX.Provider,{value:B,children:[A,e&&Q.jsx(BVA,{title:r,description:o,isOpen:!0,onClose:h,buttons:Q.jsxs(co,{orientation:"horizontal",horizontalAlignment:"end",style:{width:"100%",gap:"1em"},ref:c,children:[Q.jsx(or,{variant:"ghost",themeColor:"secondary",size:"sm",onClick:h,children:"Cancel"}),a.length>1?Q.jsx("div",{style:{flex:1}}):void 0,a.map(({label:E,value:C,variant:m="solid",themeColor:I="attention"},v)=>Q.jsx(or,{variant:m,themeColor:I,size:"sm",type:"submit",onClick:()=>{g(C)},children:E},v))]})})]})},mVA="0.7.19";function QVA(A,e){if(A.length===0)return 0;const r=nX(A)/A.length;return e?Number(r.toFixed(e)):r}function nX(A){return A.reduce((e,t)=>e+t,0)}const wVA={avg:QVA,sum:nX};var oX={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_Pdf:"false",VITE_USED_COMPONENTS_Chart:"false",VITE_USER_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_XMLUI_VERSION:"0.7.19 (built 1/31/2025)"};a0A();const iX=new cuA({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),IVA={differenceInMinutes:(A,e)=>ACA(new Date(A),new Date(e)),isSameDay:(A,e)=>!A||!e?!1:Xr(new Date(A),new Date(e)),isToday:A=>Xm(new Date(A)),isThisYear:A=>pQA(new Date(A))};function vVA(A){br.error(typeof A=="string"?A:A.message||"Something went wrong")}function DVA({rootContainer:A,routerBaseName:e,globalProps:t,standalone:r,trackContainerHeight:n,decorateComponentsWithTestId:o,debugEnabled:i}){const[a,s]=d.useState(null),l=$k(),c=iQ(),u=Mp(),{confirm:g}=EVA(),{activeThemeId:h,activeThemeTone:B,setActiveThemeId:E,setActiveThemeTone:C,availableThemeIds:m,root:I,toggleThemeTone:v}=cB();DwA(te=>{te.code==="KeyT"&&te.altKey&&te.ctrlKey&&te.shiftKey&&E(m[(m.indexOf(h)+1)%m.length]),te.code==="KeyO"&&te.altKey&&te.ctrlKey&&te.shiftKey&&C(Om[(Om.indexOf(B)+1)%Om.length]),te.code==="KeyS"&&te.altKey&&te.ctrlKey&&te.shiftKey&&l.setDisplayStateView(!l.displayStateView)});const[y,x]=d.useState("0"),[b,k]=d.useState("0"),[M,N]=d.useState("0"),[F,L]=d.useState("0"),[T,P]=d.useState("0"),[G,H]=d.useState("0"),[z,q]=d.useState("0"),[O,Y]=d.useState("0"),[S,J]=d.useState("0"),[$,U]=d.useState("0"),AA=te=>{const Pe=te.match(/^(\d+)px$/);return Pe?`${parseInt(Pe[1])-.02}px`:"0"},Z=d.useRef();Aa(()=>(n&&I&&I!==document.body&&(Z!=null&&Z.current&&Z.current.unobserve(I),Z.current=new ResizeObserver(te=>{I.style.setProperty("--containerHeight",te[0].contentRect.height+"px")}),Z.current&&Z.current.observe(I)),()=>{Z!=null&&Z.current&&Z.current.unobserve(I)}),[I,Z,n]),Aa(()=>{const te=getComputedStyle(I).getPropertyValue(Vl("media-max-width-phone"));x(te),k(AA(te));const Pe=getComputedStyle(I).getPropertyValue(Vl("media-max-width-landscape-phone"));N(Pe),L(AA(Pe));const Ke=getComputedStyle(I).getPropertyValue(Vl("media-max-width-tablet"));P(Ke),H(AA(Ke));const Ct=getComputedStyle(I).getPropertyValue(Vl("media-max-width-desktop"));q(Ct),Y(AA(Ct));const kt=getComputedStyle(I).getPropertyValue(Vl("media-max-width-large-desktop"));J(kt),U(AA(kt))},[h,I]);const tA=Xl(`(max-width: ${b})`),nA=Xl(`(min-width: ${y}) and (max-width: ${F})`),sA=Xl(`(min-width: ${M}) and (max-width: ${G})`),iA=Xl(`(min-width: ${T}) and (max-width: ${O})`),aA=Xl(`(min-width: ${z}) and (max-width: ${$})`);let rA="xs",X=0;const cA=Xl(`(min-width: ${S})`);cA?(rA="xxl",X=5):aA?(rA="xl",X=4):iA?(rA="lg",X=3):sA?(rA="md",X=2):nA&&(rA="sm",X=1);const hA=IwA(),EA=vwA(),IA=QkA(),DA=Ji(),SA=d.useRef("");d.useEffect(()=>{DA.hash&&(SA.current=DA.hash.slice(1)),SA.current&&setTimeout(()=>{var te;(te=document.getElementById(SA.current))==null||te.scrollIntoView({behavior:"instant",block:"start"}),SA.current=""},100)},[DA]);const JA=d.useMemo(()=>{const te={_SUPPORT_IMPLICIT_CONTEXT:!0};for(const[Pe,Ke]of c.actionFunctions)te[Pe]=Ke;return te},[c.actionFunctions]),jA=d.useMemo(()=>({isInIFrame:hA}),[hA]),$A=d.useMemo(()=>({isWindowFocused:EA}),[EA]),VA=d.useMemo(()=>({phone:tA,landscapePhone:nA,tablet:sA,desktop:iA,largeDesktop:aA,xlDesktop:cA,smallScreen:tA||nA||sA,largeScreen:!(tA||nA||sA),size:rA,sizeIndex:X}),[tA,nA,sA,iA,aA,cA,rA,X]),pe=d.useMemo(()=>t?{...t}:qe,[t]),bA=d.useMemo(()=>({version:mVA,Actions:JA,appGlobals:pe,debugEnabled:i,decorateComponentsWithTestId:o,environment:$A,mediaSize:VA,queryClient:iX,standalone:r,...M7,...wVA,formatFileSizeInBytes:YQA,getFileExtension:$QA,navigate:u,routerBaseName:e,confirm:g,signError:vVA,toast:br,activeThemeId:h,activeThemeTone:B,availableThemeIds:m,setTheme:E,setThemeTone:C,toggleThemeTone:v,loggedInUser:a,setLoggedInUser:s,delay:Zg,DateUtils:IVA,embed:jA,apiInterceptorContext:IA,getPropertyByPath:yn,...S7}),[JA,h,B,IA,m,g,i,o,jA,$A,pe,a,VA,u,e,E,C,v,r]),[qA,dA]=d.useState(qe),wA=d.useCallback((te,Pe)=>{dA(Ke=>({...Ke,[te]:Pe}))},[]),HA=d.useCallback((te,Pe)=>{dA(Ke=>({...Ke,[te]:{...Ke[te]||{},...Pe}}))},[]),Ae=d.useMemo(()=>({registerAppState:wA,appState:qA,update:HA}),[qA,wA,HA]),ce=d.useRef(new Map);return Q.jsx(c7.Provider,{value:bA,children:Q.jsx(gV.Provider,{value:Ae,children:nbA(A,ce)})})}const yVA=({node:A,previewMode:e=!1,servedFromSingleFile:t=!1,routerBaseName:r="",contributes:n=qe,globalProps:o,standalone:i,trackContainerHeight:a,decorateComponentsWithTestId:s,debugEnabled:l,defaultTheme:c,defaultTone:u,resources:g,resourceMap:h,sources:B})=>{e&&(Su.canUseDOM=!1);const E=(o==null?void 0:o.name)||"XMLUI app",C=(o==null?void 0:o.useHashBasedRouting)??!0,m=Q.jsxs(Su,{children:[Q.jsx(Nu,{defaultTitle:E,titleTemplate:`%s | ${E}`}),Q.jsx(mkA,{children:Q.jsx(xwA,{resourceMap:h,themes:n.themes,defaultTheme:c,defaultTone:u,resources:g,children:Q.jsx(OyA,{sources:B,children:Q.jsx(CVA,{children:Q.jsx(DVA,{rootContainer:A,routerBaseName:r,globalProps:o,standalone:i,trackContainerHeight:a,decorateComponentsWithTestId:s,debugEnabled:l})})})})})]}),I=e?CcA:t||C?HT:xcA;return Q.jsx(_A.StrictMode,{children:Q.jsx(Zp,{node:A,location:"root-outer",children:Q.jsxs(BuA,{client:iX,children:[(typeof window>"u"||oX.VITE_REMIX)&&m,!(typeof window>"u"||oX.VITE_REMIX)&&Q.jsx(I,{basename:I===HT?void 0:r,children:m})]})})})};function aX({apiInterceptor:A,contributes:e,node:t,decorateComponentsWithTestId:r,debugEnabled:n,defaultTheme:o,defaultTone:i,resources:a,globalProps:s,standalone:l,trackContainerHeight:c,routerBaseName:u,previewMode:g,servedFromSingleFile:h,resourceMap:B,sources:E,componentManager:C}){const m=d.useMemo(()=>({type:"Container",uid:"root",children:[t.type==="Theme"?{...t,props:{...t.props,root:!0}}:{type:"Theme",props:{root:!0},children:[t]}],uses:[]}),[t]);return Q.jsx(pVA,{contributes:e,componentManager:C,children:Q.jsx(AbA,{debugConfig:s==null?void 0:s.debug,children:Q.jsx(yVA,{resourceMap:B,apiInterceptor:A,node:m,contributes:e,resources:a,routerBaseName:u,decorateComponentsWithTestId:r,debugEnabled:n,defaultTheme:o,defaultTone:i,globalProps:s,standalone:l,trackContainerHeight:c,previewMode:g,servedFromSingleFile:h,sources:E})})})}var sX={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_Pdf:"false",VITE_USED_COMPONENTS_Chart:"false",VITE_USER_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_XMLUI_VERSION:"0.7.19 (built 1/31/2025)"};function bVA({interceptor:A,children:e,apiWorker:t,useHashBasedRouting:r}){const[n,o]=d.useState(!A);d.useEffect(()=>{if(A){o(!1);let a;return(async()=>{{const{createApiInterceptorWorker:s}=await Promise.resolve().then(()=>Xge);if(A&&(a=await s(A,t),!t)){const l=L2(sX.VITE_MOCK_WORKER_LOCATION);await a.start({onUnhandledRequest:"bypass",quiet:!0,serviceWorker:{url:l}})}}o(!0)})(),()=>{t||a==null||a.stop()}}},[t,A,r]);const i=d.useMemo(()=>({isMocked:a=>A!==void 0&&!!sX.VITE_MOCK_ENABLED}),[A]);return Q.jsx(k7.Provider,{value:i,children:n&&e||null})}const D1="xmlui",uh="xmlui.xs";function xVA(A,e,t,r){const n=[],o={},i=new Set,a=new Set;if(A&&HE(A,null,s,o,t),!o.abort)for(const g of e)l(g.name)||c("M007","Component",g.name),g.name==="Component"&&c("M008","Component",g.name),t.componentRegistered(g.name)&&c("M009","Component",g.name),a.has(g.name)?c("M010","Component",g.name):a.add(g.name),i.clear(),HE(g.component,null,s,o,t);return n;function s(g,h,B,E){if(!B)return;if(!t.componentRegistered(g.type)){c("M001",(h==null?void 0:h.type)??"Root",g.type);return}g.uid&&(l(g.uid)?i.has(g.uid)?c("M003",g.type,g.uid):i.add(g.uid):c("M002",g.type,g.type,g.uid));const C=t.getComponentProps(g.type)??{},m=g.props??{};for(const x of Object.keys(m))if(C[x]){const k=m[x];if(typeof k=="string")try{QQ(k)}catch(M){c("M006",g.type,x,M.message)}}else{const k=x.split("-");k.length===1&&Yk.includes(x)||k.length===2&&Yk.includes(k[0])&&uDA.includes(k[1])||t.acceptArbitraryProps(g.type)||c("M005",g.type,g.type,x)}const I=t.getComponentEvents(g.type)??{},v=g.events??{};for(const x of Object.keys(v))if(I[x]){const k=v[x];if(typeof k=="string"){const M=new nd(k);try{M.parseStatements(),M.errors.length>0&&c("M012",g.type,x,M.errors[0].text)}catch(N){c("M012",g.type,x,N.message)}}}else c("M011",g.type,g.type,x);const y=t.getComponentValidator(g.type);if(y){const x=y(g,r);if(x)if(Array.isArray(x))for(const b of x)c("M013",g.type,b);else c("M013",g.type,x)}}function l(g){return/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(g)}function c(g,h,...B){u(g,h,!1,...B)}function u(g,h,B,...E){let C=kVA[g]??"Unkonwn error";E&&E.forEach((I,v)=>C=m(C,`{${v}}`,E[v].toString())),n.push({name:h,code:g,message:C,isWarning:B,args:E});function m(I,v,y){do I=I.replace(v,y);while(I.includes(v));return I}}}function HE(A,e,t,r={},n){if(t(A,e,!0,r),r.abort||r.cancel)return;const o=n.getComponentProps(A.type)??{},i=A.props??{};for(const l of Object.keys(i)){const c=o[l];if(!c)continue;const u=i[l];if(c.type==="ComponentDef"&&u.type&&(HE(u,A,t,r,n),r.abort||r.cancel))return}const a=n.getComponentEvents(A.type)??{},s=A.events??{};for(const l of Object.keys(s)){if(!a[l])continue;const u=s[l];if(typeof u=="object"&&u.type){if(HE(u,A,t,r,n),r.abort)return;if(r.cancel)break}}if(A.children)for(const l of A.children){if(HE(l,A,t,r,n),r.abort)return;if(r.cancel)break}t(A,void 0,!1,r)}const kVA={M001:"The component '{0}' is not registered",M002:"The '{0}' element has an invalid id: '{1}'",M003:"Invalid component identifier: '{0}'",M004:"Duplicated component identifier: '{0}'",M005:"The '{0}' element has an invalid property: '{1}'",M006:"Parsing property value of '{0}' failed: {1}",M007:"The name of a reusable component is invalid: '{0}'",M008:"The name of a reusable component must not be '{0}', as it is a reserved name",M009:"A reusable component cannot have the name of a registered component: '{0}'",M010:"Duplicated reusable component name: '{0}'",M011:"The '{0}' element has an invalid event: '{1}'",M012:"Parsing event value of '{0}' failed: {1}",M013:"Component validation failed: '{0}'"};var Ql={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_Pdf:"false",VITE_USED_COMPONENTS_Chart:"false",VITE_USER_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_XMLUI_VERSION:"0.7.19 (built 1/31/2025)"};const MM="Main."+D1,_VA="Main."+uh,lX="config.json";function cX({appDef:A,decorateComponentsWithTestId:e,debugEnabled:t=!1,runtime:r,components:n,componentManager:o}){const i=d.useMemo(()=>typeof window<"u"&&window.location.href.startsWith("file"),[]),a=MVA(A,r,o);if(SVA(a),!a)return null;const{apiInterceptor:s,name:l,appGlobals:c,defaultTheme:u,defaultTone:g,resources:h,resourceMap:B,entryPoint:E,components:C,themes:m,sources:I}=a,v=typeof window<"u"&&window.XMLUI_MOCK_API?window.XMLUI_MOCK_API:s,y=e||(typeof window<"u"?window.XMLUI_MOCK_TEST_ID:!1),x=(c==null?void 0:c.useHashBasedRouting)??!0;return Q.jsx(bVA,{interceptor:v,useHashBasedRouting:x,children:Q.jsx(aX,{servedFromSingleFile:i,decorateComponentsWithTestId:y,node:E,standalone:!0,debugEnabled:t,routerBaseName:typeof window<"u"&&window.__PUBLIC_PATH||"",globalProps:{name:l,...c||{}},defaultTheme:u,defaultTone:g,resources:h,resourceMap:B,sources:I,componentManager:o,contributes:{compoundComponents:C,components:n,themes:m}})})}async function SM(A){if(!A.ok)throw new Error(`Failed to fetch ${A.url}`);const e=await A.text(),t=A.url;let{component:r,errors:n,erroneousCompoundComponentName:o}=RW(e,t);if(n.length>0){const i=o??A.url.substring(A.url.lastIndexOf("/")+1,A.url.length-6);r=hjA(n,t,i)}return{component:r,src:e,file:t,hasError:n.length>0}}async function NM(A){if(!A.ok)throw new Error(`Failed to fetch ${A.url}`);const e=await A.text(),t=new nd(e);try{t.parseStatements()}catch{if(t.errors.length>0)return{component:pjA(t.errors[0],A.url),file:A.url,hasError:!0}}const r=u7("Main",e,()=>"",n=>n);return Object.keys(r.moduleErrors??{}).length>0?{component:BjA(r.moduleErrors,A.url),file:A.url,hasError:!0}:(JyA(r),{codeBehind:r,file:A.url})}function y1(A,e){return A.endsWith(`/${e}.ts`)||A.endsWith(`/${e}.js`)||A.endsWith(`/${e}.${D1}`)||A.endsWith(`/${e}.${uh}`)}function uX(A,e){return A.includes(`/${e}/`)}function fX(A){const e={},t={},r={},n=[];let o,i,a,s;for(const[g,h]of Object.entries(A))y1(g,"config")&&(o=h.default),(y1(g,"Main")||y1(g,"App"))&&(g.endsWith(uh)?a=h.default:(i=h.default.component,h.default.file&&(e[h.default.file]=h.default.src))),y1(g,"api")&&(s=h.default),uX(g,"components")&&(g.endsWith(`.${uh}`)?r[g]=h.default:(t[g]=h.default.component,e[h.default.file]=h.default.src)),uX(g,"themes")&&n.push(h.default);const l=(o==null?void 0:o.entryPoint)||i,c={...l,vars:{...a==null?void 0:a.vars,...l==null?void 0:l.vars},functions:a==null?void 0:a.functions,scriptError:a==null?void 0:a.moduleErrors};let u=[];return o!=null&&o.components?u=o.components:Object.entries(t).forEach(([g,h])=>{const B=r[`${g}.xs`],E={...h,component:{...h.component,vars:{...h.component.vars,...B==null?void 0:B.vars},functions:B==null?void 0:B.functions,scriptError:B==null?void 0:B.moduleErrors}};u.push(E)}),{...o,entryPoint:c,components:u,themes:(o==null?void 0:o.themes)||n,apiInterceptor:(o==null?void 0:o.apiInterceptor)||s,sources:e}}function gX(A,e){return e?{...e,entryPoint:e.entryPoint||A.entryPoint,components:e.components||A.components,themes:e.themes||A.themes,apiInterceptor:e.apiInterceptor||A.apiInterceptor}:A}async function hs(A){return fetch(L2(A),{headers:{"Cache-Control":"no-cache, no-store"}})}function MVA(A,e=qe,t){const[r,n]=d.useState(()=>{const o=fX(e),i=gX(o,A);if((Ql.VITE_DEV_MODE||Ql.VITE_BUILD_MODE==="INLINE_ALL")&&!Ql.VITE_STANDALONE){if(!i)throw new Error("couldn't find the application metadata");return i}return null});return Aa(()=>{(async function(){var N,F,L,T;const o=fX(e),i=gX(o,A);if((Ql.VITE_DEV_MODE||Ql.VITE_BUILD_MODE==="INLINE_ALL")&&!Ql.VITE_STANDALONE){if(!i)throw new Error("couldn't find the application metadata");n(i);return}if(Ql.VITE_BUILD_MODE==="CONFIG_ONLY"){const G=await(await hs(lX)).json(),H=[];(N=G.themes)==null||N.forEach(q=>{H.push(hs(q).then(O=>O.json()))});const z=await Promise.all(H);n({...i,name:G.name,appGlobals:G.appGlobals,defaultTheme:G.defaultTheme,resources:G.resources,resourceMap:G.resourceMap,themes:z});return}const a=new Promise(async P=>{try{const G=await hs(MM);G.ok?P(SM(G)):P({component:djA(`Failed to load the main component (${MM})`),file:MM,hasError:!0})}catch{P(null)}}),s=new Promise(async P=>{try{const G=await hs(_VA),H=await NM(G);P(H.hasError?H:H.codeBehind)}catch{P(null)}});let l;try{l=await(await hs(lX)).json()}catch{}const c=(F=l==null?void 0:l.themes)==null?void 0:F.map(P=>hs(P).then(G=>G.json())),u=(L=l==null?void 0:l.components)==null?void 0:L.map(async P=>{const G=await hs(P);return P.endsWith(`.${D1}`)?await SM(G):await NM(G)}),[g,h,B,E]=await Promise.all([a,s,Promise.all(u||[]),Promise.all(c||[])]),C=[];g.hasError&&C.push(g.component),h!=null&&h.hasError&&C.push(h.component),B.forEach(P=>{P.hasError&&C.push(P.component)});const m={},I={};g.file&&(m[g.file]=g.src),B.forEach(P=>{var G;(G=P==null?void 0:P.file)!=null&&G.endsWith(`.${uh}`)?I[P.file]=P.codeBehind:P.file&&(m[P.file]=P.src)});const v={...g.component,vars:{...h==null?void 0:h.vars,...g.component.vars},functions:h==null?void 0:h.functions,scriptError:h==null?void 0:h.moduleErrors},y=(T=v.props)==null?void 0:T.defaultTheme;y&&typeof y=="string"&&!y.includes("{")&&!bO.find(P=>P.id===y)&&!E.find(P=>P.id===y)&&E.push(await hs(`themes/${y}.json`).then(P=>P.json()));const x=B.filter(P=>{var G;return!((G=P==null?void 0:P.file)!=null&&G.endsWith(".xmlui.xs"))}).map(P=>{const G=I[P.file+".xs"];return{...P.component,component:{...P.component.component,vars:{...P.component.component.vars,...G==null?void 0:G.vars},functions:G==null?void 0:G.functions,scriptError:G==null?void 0:G.moduleErrors}}});let b=dX(v,x,void 0,t);const k=new Set;for(;b.size>0;){const P=[...b].map(async H=>{try{const z=hs(`components/${H}.${D1}`),q=new Promise(async J=>{try{const $=await NM(await hs(`components/${H}.${uh}`));$.hasError&&C.push($.component),J($.hasError?$.component:$.codeBehind)}catch{J(null)}}),[O,Y]=await Promise.all([z,q]),S=await SM(O);return S.hasError&&C.push(S.component),m[S.file]=S.src,{...S.component,component:{...S.component.component,vars:{...S.component.component.vars,...Y==null?void 0:Y.vars},functions:Y==null?void 0:Y.functions,scriptError:Y==null?void 0:Y.moduleErrors}}}catch{return k.add(H),null}}),G=await Promise.all(P);x.push(...G.filter(H=>!!H)),b=dX(v,x,k,t)}const M=C.length>0?{type:"VStack",props:{gap:0,padding:0},children:C}:null;n({...l,themes:E,sources:m,components:x,entryPoint:M||v})})()},[e,A]),r}function dX(A,e,t=new Set,r){const n=new _M({compoundComponents:e},r),o=xVA(A,e,{getComponentProps:i=>{var a,s;return(s=(a=n.lookupComponentRenderer(i))==null?void 0:a.descriptor)==null?void 0:s.props},acceptArbitraryProps:()=>!0,getComponentValidator:()=>null,getComponentEvents:()=>null,componentRegistered:i=>n.hasComponent(i)});return n.destroy(),new Set(o.filter(i=>i.code==="M001").map(i=>i.args[0]).filter(i=>!t.has(i)))}function SVA(A){const e=d.useRef(!1);d.useEffect(()=>{if(e.current)return;e.current=!0;let t=`XMLUI version: ${Ql.VITE_XMLUI_VERSION}`;A!=null&&A.name&&(t+=`; ${A.name} version: ${Ql.VITE_APP_VERSION||"dev"}`),console.log(t)},[A==null?void 0:A.name])}let b1=null;function hX(A,e,t){let r=document.getElementById("root");return r||(r=document.createElement("div"),r.setAttribute("id","root"),document.body.appendChild(r)),b1||(b1=Sb.createRoot(r)),b1.render(Q.jsx(cX,{runtime:A,components:e,componentManager:t})),b1}class NVA{constructor(){this.subscriptions=new Set,this.registeredComponents=[]}subscribeToRegistrations(e){this.subscriptions.add(e),this.registeredComponents.forEach(t=>{e(t)})}unSubscribeFromRegistrations(e){this.subscriptions.delete(e)}registerComponent(e){(Array.isArray(e)?e:[e]).forEach(t=>{this.registeredComponents.push(t),this.subscriptions.forEach(r=>{r(t)})})}}const RVA=Object.freeze(Object.defineProperty({__proto__:null,AppRoot:aX,Button:or,ErrorBoundary:Zp,Icon:be,Splitter:dU,Stack:co,StandaloneApp:cX,createComponentRenderer:RA,createMetadata:kA,d:j,getColor:M4A,parseScssVar:ne,startApp:hX,toCssVar:io,useColors:bwA,useTheme:nr},Symbol.toStringTag,{value:"Module"})),pX=new NVA;document.addEventListener("DOMContentLoaded",function(){if(!document.getElementById("root")){const A=document.createElement("div");A.id="root",document.getElementsByTagName("body")[0].appendChild(A)}hX(void 0,void 0,pX)}),window.React=_A,window.jsxRuntime=NlA,window.ReactDOM=yp;const PVA={...RVA,standalone:pX};let GE=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function TVA(A){return RM(A)}function RM(A){return Array.isArray(A)?LVA(A):typeof A=="object"?FVA(A):A}function LVA(A){let e=[];for(let t=0,r=A.length;t<r;t++)e[t]=RM(A[t]);return e}function FVA(A){let e={};for(let t in A)e[t]=RM(A[t]);return e}function BX(A,...e){return e.forEach(t=>{for(let r in t)A[r]=t[r]}),A}function EX(A){const e=~A.lastIndexOf("/")||~A.lastIndexOf("\\");return e===0?A:~e===A.length-1?EX(A.substring(0,A.length-1)):A.substr(~e+1)}var PM=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,x1=class{static hasCaptures(A){return A===null?!1:(PM.lastIndex=0,PM.test(A))}static replaceCaptures(A,e,t){return A.replace(PM,(r,n,o,i)=>{let a=t[parseInt(n||o,10)];if(a){let s=e.substring(a.start,a.end);for(;s[0]===".";)s=s.substring(1);switch(i){case"downcase":return s.toLowerCase();case"upcase":return s.toUpperCase();default:return s}}else return r})}};function CX(A,e){return A<e?-1:A>e?1:0}function mX(A,e){if(A===null&&e===null)return 0;if(!A)return-1;if(!e)return 1;let t=A.length,r=e.length;if(t===r){for(let n=0;n<t;n++){let o=CX(A[n],e[n]);if(o!==0)return o}return 0}return t-r}function QX(A){return!!(/^#[0-9a-f]{6}$/i.test(A)||/^#[0-9a-f]{8}$/i.test(A)||/^#[0-9a-f]{3}$/i.test(A)||/^#[0-9a-f]{4}$/i.test(A))}function wX(A){return A.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var IX=class{constructor(A){this.fn=A,this.cache=new Map}get(A){if(this.cache.has(A))return this.cache.get(A);const e=this.fn(A);return this.cache.set(A,e),e}},k1=class{constructor(A,e,t){this._colorMap=A,this._defaults=e,this._root=t,this._cachedMatchRoot=new IX(r=>this._root.match(r))}static createFromRawTheme(A,e){return this.createFromParsedTheme(GVA(A),e)}static createFromParsedTheme(A,e){return KVA(A,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(A){if(A===null)return this._defaults;const e=A.scopeName,r=this._cachedMatchRoot.get(e).find(n=>OVA(A.parent,n.parentScopes));return r?new vX(r.fontStyle,r.foreground,r.background):null}},TM=class _b{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const r of t)e=new _b(e,r);return e}static from(...e){let t=null;for(let r=0;r<e.length;r++)t=new _b(t,e[r]);return t}push(e){return new _b(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let r=this;for(;r&&r!==e;)t.push(r.scopeName),r=r.parent;return r===e?t.reverse():void 0}};function OVA(A,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let r=e[t],n=!1;if(r===">"){if(t===e.length-1)return!1;r=e[++t],n=!0}for(;A&&!HVA(A.scopeName,r);){if(n)return!1;A=A.parent}if(!A)return!1;A=A.parent}return!0}function HVA(A,e){return e===A||A.startsWith(e)&&A[e.length]==="."}var vX=class{constructor(A,e,t){this.fontStyle=A,this.foregroundId=e,this.backgroundId=t}};function GVA(A){if(!A)return[];if(!A.settings||!Array.isArray(A.settings))return[];let e=A.settings,t=[],r=0;for(let n=0,o=e.length;n<o;n++){let i=e[n];if(!i.settings)continue;let a;if(typeof i.scope=="string"){let u=i.scope;u=u.replace(/^[,]+/,""),u=u.replace(/[,]+$/,""),a=u.split(",")}else Array.isArray(i.scope)?a=i.scope:a=[""];let s=-1;if(typeof i.settings.fontStyle=="string"){s=0;let u=i.settings.fontStyle.split(" ");for(let g=0,h=u.length;g<h;g++)switch(u[g]){case"italic":s=s|1;break;case"bold":s=s|2;break;case"underline":s=s|4;break;case"strikethrough":s=s|8;break}}let l=null;typeof i.settings.foreground=="string"&&QX(i.settings.foreground)&&(l=i.settings.foreground);let c=null;typeof i.settings.background=="string"&&QX(i.settings.background)&&(c=i.settings.background);for(let u=0,g=a.length;u<g;u++){let B=a[u].trim().split(" "),E=B[B.length-1],C=null;B.length>1&&(C=B.slice(0,B.length-1),C.reverse()),t[r++]=new UVA(E,C,n,s,l,c)}}return t}var UVA=class{constructor(A,e,t,r,n,o){this.scope=A,this.parentScopes=e,this.index=t,this.fontStyle=r,this.foreground=n,this.background=o}},ps=(A=>(A[A.NotSet=-1]="NotSet",A[A.None=0]="None",A[A.Italic=1]="Italic",A[A.Bold=2]="Bold",A[A.Underline=4]="Underline",A[A.Strikethrough=8]="Strikethrough",A))(ps||{});function KVA(A,e){A.sort((s,l)=>{let c=CX(s.scope,l.scope);return c!==0||(c=mX(s.parentScopes,l.parentScopes),c!==0)?c:s.index-l.index});let t=0,r="#000000",n="#ffffff";for(;A.length>=1&&A[0].scope==="";){let s=A.shift();s.fontStyle!==-1&&(t=s.fontStyle),s.foreground!==null&&(r=s.foreground),s.background!==null&&(n=s.background)}let o=new YVA(e),i=new vX(t,o.getId(r),o.getId(n)),a=new jVA(new LM(0,null,-1,0,0),[]);for(let s=0,l=A.length;s<l;s++){let c=A[s];a.insert(0,c.scope,c.parentScopes,c.fontStyle,o.getId(c.foreground),o.getId(c.background))}return new k1(o,i,a)}var YVA=class{constructor(A){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(A)){this._isFrozen=!0;for(let e=0,t=A.length;e<t;e++)this._color2id[A[e]]=e,this._id2color[e]=A[e]}else this._isFrozen=!1}getId(A){if(A===null)return 0;A=A.toUpperCase();let e=this._color2id[A];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${A}`);return e=++this._lastColorId,this._color2id[A]=e,this._id2color[e]=A,e}getColorMap(){return this._id2color.slice(0)}},$VA=Object.freeze([]),LM=class xlA{constructor(e,t,r,n,o){this.scopeDepth=e,this.parentScopes=t||$VA,this.fontStyle=r,this.foreground=n,this.background=o}clone(){return new xlA(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=e[r].clone();return t}acceptOverwrite(e,t,r,n){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),r!==0&&(this.foreground=r),n!==0&&(this.background=n)}},jVA=class cT{constructor(e,t=[],r={}){this._mainRule=e,this._children=r,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let r=0,n=0;for(;e.parentScopes[r]===">"&&r++,t.parentScopes[n]===">"&&n++,!(r>=e.parentScopes.length||n>=t.parentScopes.length);){const o=t.parentScopes[n].length-e.parentScopes[r].length;if(o!==0)return o;r++,n++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let r=e.indexOf("."),n,o;if(r===-1?(n=e,o=""):(n=e.substring(0,r),o=e.substring(r+1)),this._children.hasOwnProperty(n))return this._children[n].match(o)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(cT._cmpBySpecificity),t}insert(e,t,r,n,o,i){if(t===""){this._doInsertHere(e,r,n,o,i);return}let a=t.indexOf("."),s,l;a===-1?(s=t,l=""):(s=t.substring(0,a),l=t.substring(a+1));let c;this._children.hasOwnProperty(s)?c=this._children[s]:(c=new cT(this._mainRule.clone(),LM.cloneArr(this._rulesWithParentScopes)),this._children[s]=c),c.insert(e+1,l,r,n,o,i)}_doInsertHere(e,t,r,n,o){if(t===null){this._mainRule.acceptOverwrite(e,r,n,o);return}for(let i=0,a=this._rulesWithParentScopes.length;i<a;i++){let s=this._rulesWithParentScopes[i];if(mX(s.parentScopes,t)===0){s.acceptOverwrite(e,r,n,o);return}}r===-1&&(r=this._mainRule.fontStyle),n===0&&(n=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new LM(e,t,r,n,o))}},Sf=class qi{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=qi.getLanguageId(e),r=qi.getTokenType(e),n=qi.getFontStyle(e),o=qi.getForeground(e),i=qi.getBackground(e);console.log({languageId:t,tokenType:r,fontStyle:n,foreground:o,background:i})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,r,n,o,i,a){let s=qi.getLanguageId(e),l=qi.getTokenType(e),c=qi.containsBalancedBrackets(e)?1:0,u=qi.getFontStyle(e),g=qi.getForeground(e),h=qi.getBackground(e);return t!==0&&(s=t),r!==8&&(l=r),n!==null&&(c=n?1:0),o!==-1&&(u=o),i!==0&&(g=i),a!==0&&(h=a),(s<<0|l<<8|c<<10|u<<11|g<<15|h<<24)>>>0}};function yve(A){return A}function bve(A){return A}function _1(A,e){const t=[],r=qVA(A);let n=r.next();for(;n!==null;){let s=0;if(n.length===2&&n.charAt(1)===":"){switch(n.charAt(0)){case"R":s=1;break;case"L":s=-1;break;default:console.log(`Unknown priority ${n} in scope selector`)}n=r.next()}let l=i();if(t.push({matcher:l,priority:s}),n!==",")break;n=r.next()}return t;function o(){if(n==="-"){n=r.next();const s=o();return l=>!!s&&!s(l)}if(n==="("){n=r.next();const s=a();return n===")"&&(n=r.next()),s}if(DX(n)){const s=[];do s.push(n),n=r.next();while(DX(n));return l=>e(s,l)}return null}function i(){const s=[];let l=o();for(;l;)s.push(l),l=o();return c=>s.every(u=>u(c))}function a(){const s=[];let l=i();for(;l&&(s.push(l),n==="|"||n===",");){do n=r.next();while(n==="|"||n===",");l=i()}return c=>s.some(u=>u(c))}}function DX(A){return!!A&&!!A.match(/[\w\.:]+/)}function qVA(A){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(A);return{next:()=>{if(!t)return null;const r=t[0];return t=e.exec(A),r}}}function yX(A){typeof A.dispose=="function"&&A.dispose()}var UE=class{constructor(A){this.scopeName=A}toKey(){return this.scopeName}},JVA=class{constructor(A,e){this.scopeName=A,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},zVA=class{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(A){const e=A.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(A))}},WVA=class{constructor(A,e){this.repo=A,this.initialScopeName=e,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new UE(this.initialScopeName)]}processQueue(){const A=this.Q;this.Q=[];const e=new zVA;for(const t of A)VVA(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof UE){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function VVA(A,e,t,r){const n=t.lookup(A.scopeName);if(!n){if(A.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const o=t.lookup(e);A instanceof UE?M1({baseGrammar:o,selfGrammar:n},r):FM(A.ruleName,{baseGrammar:o,selfGrammar:n,repository:n.repository},r);const i=t.injections(A.scopeName);if(i)for(const a of i)r.add(new UE(a))}function FM(A,e,t){if(e.repository&&e.repository[A]){const r=e.repository[A];S1([r],e,t)}}function M1(A,e){A.selfGrammar.patterns&&Array.isArray(A.selfGrammar.patterns)&&S1(A.selfGrammar.patterns,{...A,repository:A.selfGrammar.repository},e),A.selfGrammar.injections&&S1(Object.values(A.selfGrammar.injections),{...A,repository:A.selfGrammar.repository},e)}function S1(A,e,t){for(const r of A){if(t.visitedRule.has(r))continue;t.visitedRule.add(r);const n=r.repository?BX({},e.repository,r.repository):e.repository;Array.isArray(r.patterns)&&S1(r.patterns,{...e,repository:n},t);const o=r.include;if(!o)continue;const i=bX(o);switch(i.kind){case 0:M1({...e,selfGrammar:e.baseGrammar},t);break;case 1:M1(e,t);break;case 2:FM(i.ruleName,{...e,repository:n},t);break;case 3:case 4:const a=i.scopeName===e.selfGrammar.scopeName?e.selfGrammar:i.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(a){const s={baseGrammar:e.baseGrammar,selfGrammar:a,repository:n};i.kind===4?FM(i.ruleName,s,t):M1(s,t)}else i.kind===4?t.add(new JVA(i.scopeName,i.ruleName)):t.add(new UE(i.scopeName));break}}}var XVA=class{constructor(){this.kind=0}},ZVA=class{constructor(){this.kind=1}},AXA=class{constructor(A){this.ruleName=A,this.kind=2}},eXA=class{constructor(A){this.scopeName=A,this.kind=3}},tXA=class{constructor(A,e){this.scopeName=A,this.ruleName=e,this.kind=4}};function bX(A){if(A==="$base")return new XVA;if(A==="$self")return new ZVA;const e=A.indexOf("#");if(e===-1)return new eXA(A);if(e===0)return new AXA(A.substring(1));{const t=A.substring(0,e),r=A.substring(e+1);return new tXA(t,r)}}var rXA=/\\(\d+)/,xX=/\\(\d+)/g,nXA=-1,kX=-2;function xve(A){return A}function kve(A){return A}var KE=class{constructor(A,e,t,r){this.$location=A,this.id=e,this._name=t||null,this._nameIsCapturing=x1.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=x1.hasCaptures(this._contentName)}get debugName(){const A=this.$location?`${EX(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${A}`}getName(A,e){return!this._nameIsCapturing||this._name===null||A===null||e===null?this._name:x1.replaceCaptures(this._name,A,e)}getContentName(A,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:x1.replaceCaptures(this._contentName,A,e)}},oXA=class extends KE{constructor(A,e,t,r,n){super(A,e,t,r),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(A,e){throw new Error("Not supported!")}compile(A,e){throw new Error("Not supported!")}compileAG(A,e,t,r){throw new Error("Not supported!")}},iXA=class extends KE{constructor(A,e,t,r,n){super(A,e,t,null),this._match=new YE(r,this.id),this.captures=n,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(A,e){e.push(this._match)}compile(A,e){return this._getCachedCompiledPatterns(A).compile(A)}compileAG(A,e,t,r){return this._getCachedCompiledPatterns(A).compileAG(A,t,r)}_getCachedCompiledPatterns(A){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new $E,this.collectPatterns(A,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},_X=class extends KE{constructor(A,e,t,r,n){super(A,e,t,r),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(A,e){for(const t of this.patterns)A.getRule(t).collectPatterns(A,e)}compile(A,e){return this._getCachedCompiledPatterns(A).compile(A)}compileAG(A,e,t,r){return this._getCachedCompiledPatterns(A).compileAG(A,t,r)}_getCachedCompiledPatterns(A){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new $E,this.collectPatterns(A,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},OM=class extends KE{constructor(A,e,t,r,n,o,i,a,s,l){super(A,e,t,r),this._begin=new YE(n,this.id),this.beginCaptures=o,this._end=new YE(i||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=s||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(A,e){return this._end.resolveBackReferences(A,e)}collectPatterns(A,e){e.push(this._begin)}compile(A,e){return this._getCachedCompiledPatterns(A,e).compile(A)}compileAG(A,e,t,r){return this._getCachedCompiledPatterns(A,e).compileAG(A,t,r)}_getCachedCompiledPatterns(A,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new $E;for(const t of this.patterns)A.getRule(t).collectPatterns(A,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},N1=class extends KE{constructor(A,e,t,r,n,o,i,a,s){super(A,e,t,r),this._begin=new YE(n,this.id),this.beginCaptures=o,this.whileCaptures=a,this._while=new YE(i,kX),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(A,e){return this._while.resolveBackReferences(A,e)}collectPatterns(A,e){e.push(this._begin)}compile(A,e){return this._getCachedCompiledPatterns(A).compile(A)}compileAG(A,e,t,r){return this._getCachedCompiledPatterns(A).compileAG(A,t,r)}_getCachedCompiledPatterns(A){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new $E;for(const e of this.patterns)A.getRule(e).collectPatterns(A,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(A,e){return this._getCachedCompiledWhilePatterns(A,e).compile(A)}compileWhileAG(A,e,t,r){return this._getCachedCompiledWhilePatterns(A,e).compileAG(A,t,r)}_getCachedCompiledWhilePatterns(A,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new $E,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||""),this._cachedCompiledWhilePatterns}},MX=class Kn{static createCaptureRule(e,t,r,n,o){return e.registerRule(i=>new oXA(t,i,r,n,o))}static getCompiledRuleId(e,t,r){return e.id||t.registerRule(n=>{if(e.id=n,e.match)return new iXA(e.$vscodeTextmateLocation,e.id,e.name,e.match,Kn._compileCaptures(e.captures,t,r));if(typeof e.begin>"u"){e.repository&&(r=BX({},r,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new _X(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,Kn._compilePatterns(o,t,r))}return e.while?new N1(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,Kn._compileCaptures(e.beginCaptures||e.captures,t,r),e.while,Kn._compileCaptures(e.whileCaptures||e.captures,t,r),Kn._compilePatterns(e.patterns,t,r)):new OM(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,Kn._compileCaptures(e.beginCaptures||e.captures,t,r),e.end,Kn._compileCaptures(e.endCaptures||e.captures,t,r),e.applyEndPatternLast,Kn._compilePatterns(e.patterns,t,r))}),e.id}static _compileCaptures(e,t,r){let n=[];if(e){let o=0;for(const i in e){if(i==="$vscodeTextmateLocation")continue;const a=parseInt(i,10);a>o&&(o=a)}for(let i=0;i<=o;i++)n[i]=null;for(const i in e){if(i==="$vscodeTextmateLocation")continue;const a=parseInt(i,10);let s=0;e[i].patterns&&(s=Kn.getCompiledRuleId(e[i],t,r)),n[a]=Kn.createCaptureRule(t,e[i].$vscodeTextmateLocation,e[i].name,e[i].contentName,s)}}return n}static _compilePatterns(e,t,r){let n=[];if(e)for(let o=0,i=e.length;o<i;o++){const a=e[o];let s=-1;if(a.include){const l=bX(a.include);switch(l.kind){case 0:case 1:s=Kn.getCompiledRuleId(r[a.include],t,r);break;case 2:let c=r[l.ruleName];c&&(s=Kn.getCompiledRuleId(c,t,r));break;case 3:case 4:const u=l.scopeName,g=l.kind===4?l.ruleName:null,h=t.getExternalGrammar(u,r);if(h)if(g){let B=h.repository[g];B&&(s=Kn.getCompiledRuleId(B,t,h.repository))}else s=Kn.getCompiledRuleId(h.repository.$self,t,h.repository);break}}else s=Kn.getCompiledRuleId(a,t,r);if(s!==-1){const l=t.getRule(s);let c=!1;if((l instanceof _X||l instanceof OM||l instanceof N1)&&l.hasMissingPatterns&&l.patterns.length===0&&(c=!0),c)continue;n.push(s)}}return{patterns:n,hasMissingPatterns:(e?e.length:0)!==n.length}}},YE=class klA{constructor(e,t){if(e){const r=e.length;let n=0,o=[],i=!1;for(let a=0;a<r;a++)if(e.charAt(a)==="\\"&&a+1<r){const l=e.charAt(a+1);l==="z"?(o.push(e.substring(n,a)),o.push("$(?!\\n)(?<!\\n)"),n=a+2):(l==="A"||l==="G")&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(o.push(e.substring(n,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=rXA.test(this.source)}clone(){return new klA(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let r=t.map(n=>e.substring(n.start,n.end));return xX.lastIndex=0,this.source.replace(xX,(n,o)=>wX(r[parseInt(o,10)]||""))}_buildAnchorCache(){let e=[],t=[],r=[],n=[],o,i,a,s;for(o=0,i=this.source.length;o<i;o++)a=this.source.charAt(o),e[o]=a,t[o]=a,r[o]=a,n[o]=a,a==="\\"&&o+1<i&&(s=this.source.charAt(o+1),s==="A"?(e[o+1]="",t[o+1]="",r[o+1]="A",n[o+1]="A"):s==="G"?(e[o+1]="",t[o+1]="G",r[o+1]="",n[o+1]="G"):(e[o+1]=s,t[o+1]=s,r[o+1]=s,n[o+1]=s),o++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:r.join(""),A1_G1:n.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},$E=class{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(A){this._items.push(A),this._hasAnchors=this._hasAnchors||A.hasAnchor}unshift(A){this._items.unshift(A),this._hasAnchors=this._hasAnchors||A.hasAnchor}length(){return this._items.length}setSource(A,e){this._items[A].source!==e&&(this._disposeCaches(),this._items[A].setSource(e))}compile(A){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new SX(A,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(A,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(A,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(A,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(A,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(A,e,t)),this._anchorCache.A0_G0):this.compile(A)}_resolveAnchors(A,e,t){let r=this._items.map(n=>n.resolveAnchors(e,t));return new SX(A,r,this._items.map(n=>n.ruleId))}},SX=class{constructor(A,e,t){this.regExps=e,this.rules=t,this.scanner=A.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const A=[];for(let e=0,t=this.rules.length;e<t;e++)A.push(" - "+this.rules[e]+": "+this.regExps[e]);return A.join(`
|
|
557
557
|
`)}findNextMatchSync(A,e,t){const r=this.scanner.findNextMatchSync(A,e,t);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},HM=class{constructor(A,e){this.languageId=A,this.tokenType=e}},GM=class uT{constructor(e,t){this._getBasicScopeAttributes=new IX(r=>{const n=this._scopeToLanguage(r),o=this._toStandardTokenType(r);return new HM(n,o)}),this._defaultAttributes=new HM(e,8),this._embeddedLanguagesMatcher=new sXA(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?uT._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(uT.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}};GM._NULL_SCOPE_METADATA=new HM(0,0),GM.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;var aXA=GM,sXA=class{constructor(A){if(A.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(A);const e=A.map(([t,r])=>wX(t));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(A){if(!this.scopesRegExp)return;const e=A.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},NX=class{constructor(A,e){this.stack=A,this.stoppedEarly=e}};function RX(A,e,t,r,n,o,i,a){const s=e.content.length;let l=!1,c=-1;if(i){const h=lXA(A,e,t,r,n,o);n=h.stack,r=h.linePos,t=h.isFirstLine,c=h.anchorPosition}const u=Date.now();for(;!l;){if(a!==0&&Date.now()-u>a)return new NX(n,!0);g()}return new NX(n,!1);function g(){const h=cXA(A,e,t,r,n,c);if(!h){o.produce(n,s),l=!0;return}const B=h.captureIndices,E=h.matchedRuleId,C=B&&B.length>0?B[0].end>r:!1;if(E===nXA){const m=n.getRule(A);o.produce(n,B[0].start),n=n.withContentNameScopesList(n.nameScopesList),jE(A,e,t,n,o,m.endCaptures,B),o.produce(n,B[0].end);const I=n;if(n=n.parent,c=I.getAnchorPos(),!C&&I.getEnterPos()===r){n=I,o.produce(n,s),l=!0;return}}else{const m=A.getRule(E);o.produce(n,B[0].start);const I=n,v=m.getName(e.content,B),y=n.contentNameScopesList.pushAttributed(v,A);if(n=n.push(E,r,c,B[0].end===s,null,y,y),m instanceof OM){const x=m;jE(A,e,t,n,o,x.beginCaptures,B),o.produce(n,B[0].end),c=B[0].end;const b=x.getContentName(e.content,B),k=y.pushAttributed(b,A);if(n=n.withContentNameScopesList(k),x.endHasBackReferences&&(n=n.withEndRule(x.getEndWithResolvedBackReferences(e.content,B))),!C&&I.hasSameRuleAs(n)){n=n.pop(),o.produce(n,s),l=!0;return}}else if(m instanceof N1){const x=m;jE(A,e,t,n,o,x.beginCaptures,B),o.produce(n,B[0].end),c=B[0].end;const b=x.getContentName(e.content,B),k=y.pushAttributed(b,A);if(n=n.withContentNameScopesList(k),x.whileHasBackReferences&&(n=n.withEndRule(x.getWhileWithResolvedBackReferences(e.content,B))),!C&&I.hasSameRuleAs(n)){n=n.pop(),o.produce(n,s),l=!0;return}}else if(jE(A,e,t,n,o,m.captures,B),o.produce(n,B[0].end),n=n.pop(),!C){n=n.safePop(),o.produce(n,s),l=!0;return}}B[0].end>r&&(r=B[0].end,t=!1)}}function lXA(A,e,t,r,n,o){let i=n.beginRuleCapturedEOL?0:-1;const a=[];for(let s=n;s;s=s.pop()){const l=s.getRule(A);l instanceof N1&&a.push({rule:l,stack:s})}for(let s=a.pop();s;s=a.pop()){const{ruleScanner:l,findOptions:c}=gXA(s.rule,A,s.stack.endRule,t,r===i),u=l.findNextMatchSync(e,r,c);if(u){if(u.ruleId!==kX){n=s.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(o.produce(s.stack,u.captureIndices[0].start),jE(A,e,t,s.stack,o,s.rule.whileCaptures,u.captureIndices),o.produce(s.stack,u.captureIndices[0].end),i=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,t=!1))}else{n=s.stack.pop();break}}return{stack:n,linePos:r,anchorPosition:i,isFirstLine:t}}function cXA(A,e,t,r,n,o){const i=uXA(A,e,t,r,n,o),a=A.getInjections();if(a.length===0)return i;const s=fXA(a,A,e,t,r,n,o);if(!s)return i;if(!i)return s;const l=i.captureIndices[0].start,c=s.captureIndices[0].start;return c<l||s.priorityMatch&&c===l?s:i}function uXA(A,e,t,r,n,o){const i=n.getRule(A),{ruleScanner:a,findOptions:s}=PX(i,A,n.endRule,t,r===o),l=a.findNextMatchSync(e,r,s);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}function fXA(A,e,t,r,n,o,i){let a=Number.MAX_VALUE,s=null,l,c=0;const u=o.contentNameScopesList.getScopeNames();for(let g=0,h=A.length;g<h;g++){const B=A[g];if(!B.matcher(u))continue;const E=e.getRule(B.ruleId),{ruleScanner:C,findOptions:m}=PX(E,e,null,r,n===i),I=C.findNextMatchSync(t,n,m);if(!I)continue;const v=I.captureIndices[0].start;if(!(v>=a)&&(a=v,s=I.captureIndices,l=I.ruleId,c=B.priority,a===n))break}return s?{priorityMatch:c===-1,captureIndices:s,matchedRuleId:l}:null}function PX(A,e,t,r,n){return{ruleScanner:A.compileAG(e,t,r,n),findOptions:0}}function gXA(A,e,t,r,n){return{ruleScanner:A.compileWhileAG(e,t,r,n),findOptions:0}}function jE(A,e,t,r,n,o,i){if(o.length===0)return;const a=e.content,s=Math.min(o.length,i.length),l=[],c=i[0].end;for(let u=0;u<s;u++){const g=o[u];if(g===null)continue;const h=i[u];if(h.length===0)continue;if(h.start>c)break;for(;l.length>0&&l[l.length-1].endPos<=h.start;)n.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?n.produceFromScopes(l[l.length-1].scopes,h.start):n.produce(r,h.start),g.retokenizeCapturedWithRuleId){const E=g.getName(a,i),C=r.contentNameScopesList.pushAttributed(E,A),m=g.getContentName(a,i),I=C.pushAttributed(m,A),v=r.push(g.retokenizeCapturedWithRuleId,h.start,-1,!1,null,C,I),y=A.createOnigString(a.substring(0,h.end));RX(A,y,t&&h.start===0,h.start,v,n,!1,0),yX(y);continue}const B=g.getName(a,i);if(B!==null){const C=(l.length>0?l[l.length-1].scopes:r.contentNameScopesList).pushAttributed(B,A);l.push(new dXA(C,h.end))}}for(;l.length>0;)n.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var dXA=class{constructor(A,e){this.scopes=A,this.endPos=e}};function hXA(A,e,t,r,n,o,i,a){return new BXA(A,e,t,r,n,o,i,a)}function TX(A,e,t,r,n){const o=_1(e,R1),i=MX.getCompiledRuleId(t,r,n.repository);for(const a of o)A.push({debugSelector:e,matcher:a.matcher,ruleId:i,grammar:n,priority:a.priority})}function R1(A,e){if(e.length<A.length)return!1;let t=0;return A.every(r=>{for(let n=t;n<e.length;n++)if(pXA(e[n],r))return t=n+1,!0;return!1})}function pXA(A,e){if(!A)return!1;if(A===e)return!0;const t=e.length;return A.length>t&&A.substr(0,t)===e&&A[t]==="."}var BXA=class{constructor(A,e,t,r,n,o,i,a){if(this._rootScopeName=A,this.balancedBracketSelectors=o,this._onigLib=a,this._basicScopeAttributesProvider=new aXA(t,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=LX(e,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const s of Object.keys(n)){const l=_1(s,R1);for(const c of l)this._tokenTypeMatchers.push({matcher:c.matcher,type:n[s]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const A of this._ruleId2desc)A&&A.dispose()}createOnigScanner(A){return this._onigLib.createOnigScanner(A)}createOnigString(A){return this._onigLib.createOnigString(A)}getMetadataForScope(A){return this._basicScopeAttributesProvider.getBasicScopeAttributes(A)}_collectInjections(){const A={lookup:n=>n===this._rootScopeName?this._grammar:this.getExternalGrammar(n),injections:n=>this._grammarRepository.injections(n)},e=[],t=this._rootScopeName,r=A.lookup(t);if(r){const n=r.injections;if(n)for(let i in n)TX(e,i,n[i],this,r);const o=this._grammarRepository.injections(t);o&&o.forEach(i=>{const a=this.getExternalGrammar(i);if(a){const s=a.injectionSelector;s&&TX(e,s,a,this,a)}})}return e.sort((n,o)=>n.priority-o.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(A){const e=++this._lastRuleId,t=A(e);return this._ruleId2desc[e]=t,t}getRule(A){return this._ruleId2desc[A]}getExternalGrammar(A,e){if(this._includedGrammars[A])return this._includedGrammars[A];if(this._grammarRepository){const t=this._grammarRepository.lookup(A);if(t)return this._includedGrammars[A]=LX(t,e&&e.$base),this._includedGrammars[A]}}tokenizeLine(A,e,t=0){const r=this._tokenize(A,e,!1,t);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(A,e,t=0){const r=this._tokenize(A,e,!0,t);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(A,e,t,r){this._rootId===-1&&(this._rootId=MX.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let n;if(!e||e===KM.NULL){n=!0;const l=this._basicScopeAttributesProvider.getDefaultAttributes(),c=this.themeProvider.getDefaults(),u=Sf.set(0,l.languageId,l.tokenType,null,c.fontStyle,c.foregroundId,c.backgroundId),g=this.getRule(this._rootId).getName(null,null);let h;g?h=qE.createRootAndLookUpScopeName(g,u,this):h=qE.createRoot("unknown",u),e=new KM(null,this._rootId,-1,-1,!1,null,h,h)}else n=!1,e.reset();A=A+`
|
|
558
558
|
`;const o=this.createOnigString(A),i=o.content.length,a=new CXA(t,A,this._tokenTypeMatchers,this.balancedBracketSelectors),s=RX(this,o,n,0,e,a,!0,r);return yX(o),{lineLength:i,lineTokens:a,ruleStack:s.stack,stoppedEarly:s.stoppedEarly}}};function LX(A,e){return A=TVA(A),A.repository=A.repository||{},A.repository.$self={$vscodeTextmateLocation:A.$vscodeTextmateLocation,patterns:A.patterns,name:A.scopeName},A.repository.$base=e||A.repository.$self,A}var qE=class Rs{constructor(e,t,r){this.parent=e,this.scopePath=t,this.tokenAttributes=r}static fromExtension(e,t){let r=e,n=(e==null?void 0:e.scopePath)??null;for(const o of t)n=TM.push(n,o.scopeNames),r=new Rs(r,n,o.encodedTokenAttributes);return r}static createRoot(e,t){return new Rs(null,new TM(null,e),t)}static createRootAndLookUpScopeName(e,t,r){const n=r.getMetadataForScope(e),o=new TM(null,e),i=r.themeProvider.themeMatch(o),a=Rs.mergeAttributes(t,n,i);return new Rs(null,o,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return Rs.equals(this,e)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,r){let n=-1,o=0,i=0;return r!==null&&(n=r.fontStyle,o=r.foregroundId,i=r.backgroundId),Sf.set(e,t.languageId,t.tokenType,null,n,o,i)}pushAttributed(e,t){if(e===null)return this;if(e.indexOf(" ")===-1)return Rs._pushAttributed(this,e,t);const r=e.split(/ /g);let n=this;for(const o of r)n=Rs._pushAttributed(n,o,t);return n}static _pushAttributed(e,t,r){const n=r.getMetadataForScope(t),o=e.scopePath.push(t),i=r.themeProvider.themeMatch(o),a=Rs.mergeAttributes(e.tokenAttributes,n,i);return new Rs(e,o,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){var n;const t=[];let r=this;for(;r&&r!==e;)t.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((n=r.parent)==null?void 0:n.scopePath)??null)}),r=r.parent;return r===e?t.reverse():void 0}},UM=class vp{constructor(e,t,r,n,o,i,a,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=o,this.endRule=i,this.nameScopesList=a,this.contentNameScopesList=s,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=n}equals(e){return e===null?!1:vp._equals(this,e)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?qE.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){vp._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,r,n,o,i,a){return new vp(this,e,t,r,n,o,i,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){var r,n;return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(n=this.contentNameScopesList)==null?void 0:n.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new vp(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){var e,t,r;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((t=this.nameScopesList)==null?void 0:t.getExtensionIfDefined(((e=this.parent)==null?void 0:e.nameScopesList)??null))??[],contentNameScopesList:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,t){const r=qE.fromExtension((e==null?void 0:e.nameScopesList)??null,t.nameScopesList);return new vp(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,r,qE.fromExtension(r,t.contentNameScopesList))}};UM.NULL=new UM(null,0,0,0,!1,null,null,null);var KM=UM,EXA=class{constructor(A,e){this.allowAny=!1,this.balancedBracketScopes=A.flatMap(t=>t==="*"?(this.allowAny=!0,[]):_1(t,R1).map(r=>r.matcher)),this.unbalancedBracketScopes=e.flatMap(t=>_1(t,R1).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(A){for(const e of this.unbalancedBracketScopes)if(e(A))return!1;for(const e of this.balancedBracketScopes)if(e(A))return!0;return this.allowAny}},CXA=class{constructor(A,e,t,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=A,this._tokenTypeOverrides=t,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(A,e){this.produceFromScopes(A.contentNameScopesList,e)}produceFromScopes(A,e){var r;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let n=(A==null?void 0:A.tokenAttributes)??0,o=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const i=(A==null?void 0:A.getScopeNames())??[];for(const a of this._tokenTypeOverrides)a.matcher(i)&&(n=Sf.set(n,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(i))}if(o&&(n=Sf.set(n,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=e;return}const t=(A==null?void 0:A.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:t}),this._lastTokenEndIndex=e}getResult(A,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(A,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(A,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(A,e),this._binaryTokens[this._binaryTokens.length-2]=0);const t=new Uint32Array(this._binaryTokens.length);for(let r=0,n=this._binaryTokens.length;r<n;r++)t[r]=this._binaryTokens[r];return t}},mXA=class{constructor(A,e){this._onigLib=e,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=A}dispose(){for(const A of this._grammars.values())A.dispose()}setTheme(A){this._theme=A}getColorMap(){return this._theme.getColorMap()}addGrammar(A,e){this._rawGrammars.set(A.scopeName,A),e&&this._injectionGrammars.set(A.scopeName,e)}lookup(A){return this._rawGrammars.get(A)}injections(A){return this._injectionGrammars.get(A)}getDefaults(){return this._theme.getDefaults()}themeMatch(A){return this._theme.match(A)}grammarForScopeName(A,e,t,r,n){if(!this._grammars.has(A)){let o=this._rawGrammars.get(A);if(!o)return null;this._grammars.set(A,hXA(A,o,e,t,r,n,this,this._onigLib))}return this._grammars.get(A)}},QXA=class{constructor(e){this._options=e,this._syncRegistry=new mXA(k1.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(k1.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,r){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:r})}loadGrammarWithConfiguration(e,t,r){return this._loadGrammar(e,t,r.embeddedLanguages,r.tokenTypes,new EXA(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,r,n,o){const i=new WVA(this._syncRegistry,e);for(;i.Q.length>0;)i.Q.map(a=>this._loadSingleGrammar(a.scopeName)),i.processQueue();return this._grammarForScopeName(e,t,r,n,o)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const r=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,r)}}addGrammar(e,t=[],r=0,n=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,r,n)}_grammarForScopeName(e,t=0,r=null,n=null,o=null){return this._syncRegistry.grammarForScopeName(e,t,r,n,o)}},FX=KM.NULL;const wXA=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],OX={}.hasOwnProperty;function IXA(A,e){const t=e||{};function r(n,...o){let i=r.invalid;const a=r.handlers;if(n&&OX.call(n,A)){const s=String(n[A]);i=OX.call(a,s)?a[s]:r.unknown}if(i)return i.call(this,n,...o)}return r.handlers=t.handlers||{},r.invalid=t.invalid,r.unknown=t.unknown,r}const vXA=/["&'<>`]/g,DXA=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,yXA=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,bXA=/[|\\{}()[\]^$+*?.]/g,HX=new WeakMap;function xXA(A,e){if(A=A.replace(e.subset?kXA(e.subset):vXA,r),e.subset||e.escapeOnly)return A;return A.replace(DXA,t).replace(yXA,r);function t(n,o,i){return e.format((n.charCodeAt(0)-55296)*1024+n.charCodeAt(1)-56320+65536,i.charCodeAt(o+2),e)}function r(n,o,i){return e.format(n.charCodeAt(0),i.charCodeAt(o+1),e)}}function kXA(A){let e=HX.get(A);return e||(e=_XA(A),HX.set(A,e)),e}function _XA(A){const e=[];let t=-1;for(;++t<A.length;)e.push(A[t].replace(bXA,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const MXA=/[\dA-Fa-f]/;function SXA(A,e,t){const r="&#x"+A.toString(16).toUpperCase();return t&&e&&!MXA.test(String.fromCharCode(e))?r:r+";"}const NXA=/\d/;function RXA(A,e,t){const r="&#"+String(A);return t&&e&&!NXA.test(String.fromCharCode(e))?r:r+";"}const PXA=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],YM={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},TXA=["cent","copy","divide","gt","lt","not","para","times"],GX={}.hasOwnProperty,$M={};let P1;for(P1 in YM)GX.call(YM,P1)&&($M[YM[P1]]=P1);const LXA=/[^\dA-Za-z]/;function FXA(A,e,t,r){const n=String.fromCharCode(A);if(GX.call($M,n)){const o=$M[n],i="&"+o;return t&&PXA.includes(o)&&!TXA.includes(o)&&(!r||e&&e!==61&&LXA.test(String.fromCharCode(e)))?i:i+";"}return""}function OXA(A,e,t){let r=SXA(A,e,t.omitOptionalSemicolons),n;if((t.useNamedReferences||t.useShortestReferences)&&(n=FXA(A,e,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!n)&&t.useShortestReferences){const o=RXA(A,e,t.omitOptionalSemicolons);o.length<r.length&&(r=o)}return n&&(!t.useShortestReferences||n.length<r.length)?n:r}function fh(A,e){return xXA(A,Object.assign({format:OXA},e))}const HXA=/^>|^->|<!--|-->|--!>|<!-$/g,GXA=[">"],UXA=["<",">"];function KXA(A,e,t,r){return r.settings.bogusComments?"<?"+fh(A.value,Object.assign({},r.settings.characterReferences,{subset:GXA}))+">":"<!--"+A.value.replace(HXA,n)+"-->";function n(o){return fh(o,Object.assign({},r.settings.characterReferences,{subset:UXA}))}}function YXA(A,e,t,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function UX(A,e){const t=String(A);if(typeof e!="string")throw new TypeError("Expected character");let r=0,n=t.indexOf(e);for(;n!==-1;)r++,n=t.indexOf(e,n+e.length);return r}const $XA=/[ \t\n\f\r]/g;function jM(A){return typeof A=="object"?A.type==="text"?KX(A.value):!1:KX(A)}function KX(A){return A.replace($XA,"")===""}const Yr=$X(1),YX=$X(-1),jXA=[];function $X(A){return e;function e(t,r,n){const o=t?t.children:jXA;let i=(r||0)+A,a=o[i];if(!n)for(;a&&jM(a);)i+=A,a=o[i];return a}}const qXA={}.hasOwnProperty;function jX(A){return e;function e(t,r,n){return qXA.call(A,t.tagName)&&A[t.tagName](t,r,n)}}const qM=jX({body:zXA,caption:JM,colgroup:JM,dd:ZXA,dt:XXA,head:JM,html:JXA,li:VXA,optgroup:AZA,option:eZA,p:WXA,rp:qX,rt:qX,tbody:rZA,td:JX,tfoot:nZA,th:JX,thead:tZA,tr:oZA});function JM(A,e,t){const r=Yr(t,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&jM(r.value.charAt(0)))}function JXA(A,e,t){const r=Yr(t,e);return!r||r.type!=="comment"}function zXA(A,e,t){const r=Yr(t,e);return!r||r.type!=="comment"}function WXA(A,e,t){const r=Yr(t,e);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function VXA(A,e,t){const r=Yr(t,e);return!r||r.type==="element"&&r.tagName==="li"}function XXA(A,e,t){const r=Yr(t,e);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function ZXA(A,e,t){const r=Yr(t,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function qX(A,e,t){const r=Yr(t,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function AZA(A,e,t){const r=Yr(t,e);return!r||r.type==="element"&&r.tagName==="optgroup"}function eZA(A,e,t){const r=Yr(t,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function tZA(A,e,t){const r=Yr(t,e);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function rZA(A,e,t){const r=Yr(t,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function nZA(A,e,t){return!Yr(t,e)}function oZA(A,e,t){const r=Yr(t,e);return!r||r.type==="element"&&r.tagName==="tr"}function JX(A,e,t){const r=Yr(t,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const iZA=jX({body:lZA,colgroup:cZA,head:sZA,html:aZA,tbody:uZA});function aZA(A){const e=Yr(A,-1);return!e||e.type!=="comment"}function sZA(A){const e=A.children,t=[];let r=-1;for(;++r<e.length;){const n=e[r];if(n.type==="element"&&(n.tagName==="title"||n.tagName==="base")){if(t.includes(n.tagName))return!1;t.push(n.tagName)}}return e.length>0}function lZA(A){const e=Yr(A,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&jM(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function cZA(A,e,t){const r=YX(t,e),n=Yr(A,-1,!0);return t&&r&&r.type==="element"&&r.tagName==="colgroup"&&qM(r,t.children.indexOf(r),t)?!1:!!(n&&n.type==="element"&&n.tagName==="col")}function uZA(A,e,t){const r=YX(t,e),n=Yr(A,-1);return t&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&qM(r,t.children.indexOf(r),t)?!1:!!(n&&n.type==="element"&&n.tagName==="tr")}const T1={name:[[`
|
|
559
559
|
\f\r &/=>`.split(""),`
|
|
@@ -609,7 +609,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
609
609
|
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
610
610
|
* MIT Licensed
|
|
611
611
|
*)
|
|
612
|
-
*/var Ble=(A,e,t)=>new Promise((r,n)=>{var o=s=>{try{a(t.next(s))}catch(l){n(l)}},i=s=>{try{a(t.throw(s))}catch(l){n(l)}},a=s=>s.done?r(s.value):Promise.resolve(s.value).then(o,i);a((t=t.apply(A,e)).next())});const{message:Ele}=GnA;function UnA(A){return Ble(this,null,function*(){const e=A.clone(),t=yield e.text(),r=e.status||200,n=e.statusText||Ele[r]||"OK";return{status:r,statusText:n,headers:Object.fromEntries(e.headers.entries()),body:t}})}function Cle(A){for(var e=[],t=0;t<A.length;){var r=A[t];if(r==="*"||r==="+"||r==="?"){e.push({type:"MODIFIER",index:t,value:A[t++]});continue}if(r==="\\"){e.push({type:"ESCAPED_CHAR",index:t++,value:A[t++]});continue}if(r==="{"){e.push({type:"OPEN",index:t,value:A[t++]});continue}if(r==="}"){e.push({type:"CLOSE",index:t,value:A[t++]});continue}if(r===":"){for(var n="",o=t+1;o<A.length;){var i=A.charCodeAt(o);if(i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||i===95){n+=A[o++];continue}break}if(!n)throw new TypeError("Missing parameter name at ".concat(t));e.push({type:"NAME",index:t,value:n}),t=o;continue}if(r==="("){var a=1,s="",o=t+1;if(A[o]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o<A.length;){if(A[o]==="\\"){s+=A[o++]+A[o++];continue}if(A[o]===")"){if(a--,a===0){o++;break}}else if(A[o]==="("&&(a++,A[o+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(o));s+=A[o++]}if(a)throw new TypeError("Unbalanced pattern at ".concat(t));if(!s)throw new TypeError("Missing pattern at ".concat(t));e.push({type:"PATTERN",index:t,value:s}),t=o;continue}e.push({type:"CHAR",index:t,value:A[t++]})}return e.push({type:"END",index:t,value:""}),e}function mle(A,e){e===void 0&&(e={});for(var t=Cle(A),r=e.prefixes,n=r===void 0?"./":r,o=e.delimiter,i=o===void 0?"/#?":o,a=[],s=0,l=0,c="",u=function(N){if(l<t.length&&t[l].type===N)return t[l++].value},g=function(N){var F=u(N);if(F!==void 0)return F;var L=t[l],T=L.type,P=L.index;throw new TypeError("Unexpected ".concat(T," at ").concat(P,", expected ").concat(N))},h=function(){for(var N="",F;F=u("CHAR")||u("ESCAPED_CHAR");)N+=F;return N},B=function(N){for(var F=0,L=i;F<L.length;F++){var T=L[F];if(N.indexOf(T)>-1)return!0}return!1},E=function(N){var F=a[a.length-1],L=N||(F&&typeof F=="string"?F:"");if(F&&!L)throw new TypeError('Must have text between two parameters, missing text after "'.concat(F.name,'"'));return!L||B(L)?"[^".concat(Jc(i),"]+?"):"(?:(?!".concat(Jc(L),")[^").concat(Jc(i),"])+?")};l<t.length;){var C=u("CHAR"),m=u("NAME"),I=u("PATTERN");if(m||I){var v=C||"";n.indexOf(v)===-1&&(c+=v,v=""),c&&(a.push(c),c=""),a.push({name:m||s++,prefix:v,suffix:"",pattern:I||E(v),modifier:u("MODIFIER")||""});continue}var y=C||u("ESCAPED_CHAR");if(y){c+=y;continue}c&&(a.push(c),c="");var x=u("OPEN");if(x){var v=h(),b=u("NAME")||"",k=u("PATTERN")||"",M=h();g("CLOSE"),a.push({name:b||(k?s++:""),pattern:b&&!k?E(v):k,prefix:v,suffix:M,modifier:u("MODIFIER")||""});continue}g("END")}return a}function Qle(A,e){var t=[],r=YnA(A,t,e);return wle(r,t,e)}function wle(A,e,t){t===void 0&&(t={});var r=t.decode,n=r===void 0?function(o){return o}:r;return function(o){var i=A.exec(o);if(!i)return!1;for(var a=i[0],s=i.index,l=Object.create(null),c=function(g){if(i[g]===void 0)return"continue";var h=e[g-1];h.modifier==="*"||h.modifier==="+"?l[h.name]=i[g].split(h.prefix+h.suffix).map(function(B){return n(B,h)}):l[h.name]=n(i[g],h)},u=1;u<i.length;u++)c(u);return{path:a,index:s,params:l}}}function Jc(A){return A.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function KnA(A){return A&&A.sensitive?"":"i"}function Ile(A,e){if(!e)return A;for(var t=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,n=t.exec(A.source);n;)e.push({name:n[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),n=t.exec(A.source);return A}function vle(A,e,t){var r=A.map(function(n){return YnA(n,e,t).source});return new RegExp("(?:".concat(r.join("|"),")"),KnA(t))}function Dle(A,e,t){return yle(mle(A,t),e,t)}function yle(A,e,t){t===void 0&&(t={});for(var r=t.strict,n=r===void 0?!1:r,o=t.start,i=o===void 0?!0:o,a=t.end,s=a===void 0?!0:a,l=t.encode,c=l===void 0?function(F){return F}:l,u=t.delimiter,g=u===void 0?"/#?":u,h=t.endsWith,B=h===void 0?"":h,E="[".concat(Jc(B),"]|$"),C="[".concat(Jc(g),"]"),m=i?"^":"",I=0,v=A;I<v.length;I++){var y=v[I];if(typeof y=="string")m+=Jc(c(y));else{var x=Jc(c(y.prefix)),b=Jc(c(y.suffix));if(y.pattern)if(e&&e.push(y),x||b)if(y.modifier==="+"||y.modifier==="*"){var k=y.modifier==="*"?"?":"";m+="(?:".concat(x,"((?:").concat(y.pattern,")(?:").concat(b).concat(x,"(?:").concat(y.pattern,"))*)").concat(b,")").concat(k)}else m+="(?:".concat(x,"(").concat(y.pattern,")").concat(b,")").concat(y.modifier);else{if(y.modifier==="+"||y.modifier==="*")throw new TypeError('Can not repeat "'.concat(y.name,'" without a prefix and suffix'));m+="(".concat(y.pattern,")").concat(y.modifier)}else m+="(?:".concat(x).concat(b,")").concat(y.modifier)}}if(s)n||(m+="".concat(C,"?")),m+=t.endsWith?"(?=".concat(E,")"):"$";else{var M=A[A.length-1],N=typeof M=="string"?C.indexOf(M[M.length-1])>-1:M===void 0;n||(m+="(?:".concat(C,"(?=").concat(E,"))?")),N||(m+="(?=".concat(C,"|").concat(E,")"))}return new RegExp(m,KnA(t))}function YnA(A,e,t){return A instanceof RegExp?Ile(A,e):Array.isArray(A)?vle(A,e,t):Dle(A,e,t)}var ble=new TextEncoder;function xle(A){return ble.encode(A)}function kle(A,e){return new TextDecoder(e).decode(A)}function _le(A){return A.buffer.slice(A.byteOffset,A.byteOffset+A.byteLength)}var Mle=new Set([101,103,204,205,304]);function Sle(A){return Mle.has(A)}var Nle={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_Pdf:"false",VITE_USED_COMPONENTS_Chart:"false",VITE_USER_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_XMLUI_VERSION:"0.7.
|
|
612
|
+
*/var Ble=(A,e,t)=>new Promise((r,n)=>{var o=s=>{try{a(t.next(s))}catch(l){n(l)}},i=s=>{try{a(t.throw(s))}catch(l){n(l)}},a=s=>s.done?r(s.value):Promise.resolve(s.value).then(o,i);a((t=t.apply(A,e)).next())});const{message:Ele}=GnA;function UnA(A){return Ble(this,null,function*(){const e=A.clone(),t=yield e.text(),r=e.status||200,n=e.statusText||Ele[r]||"OK";return{status:r,statusText:n,headers:Object.fromEntries(e.headers.entries()),body:t}})}function Cle(A){for(var e=[],t=0;t<A.length;){var r=A[t];if(r==="*"||r==="+"||r==="?"){e.push({type:"MODIFIER",index:t,value:A[t++]});continue}if(r==="\\"){e.push({type:"ESCAPED_CHAR",index:t++,value:A[t++]});continue}if(r==="{"){e.push({type:"OPEN",index:t,value:A[t++]});continue}if(r==="}"){e.push({type:"CLOSE",index:t,value:A[t++]});continue}if(r===":"){for(var n="",o=t+1;o<A.length;){var i=A.charCodeAt(o);if(i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||i===95){n+=A[o++];continue}break}if(!n)throw new TypeError("Missing parameter name at ".concat(t));e.push({type:"NAME",index:t,value:n}),t=o;continue}if(r==="("){var a=1,s="",o=t+1;if(A[o]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o<A.length;){if(A[o]==="\\"){s+=A[o++]+A[o++];continue}if(A[o]===")"){if(a--,a===0){o++;break}}else if(A[o]==="("&&(a++,A[o+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(o));s+=A[o++]}if(a)throw new TypeError("Unbalanced pattern at ".concat(t));if(!s)throw new TypeError("Missing pattern at ".concat(t));e.push({type:"PATTERN",index:t,value:s}),t=o;continue}e.push({type:"CHAR",index:t,value:A[t++]})}return e.push({type:"END",index:t,value:""}),e}function mle(A,e){e===void 0&&(e={});for(var t=Cle(A),r=e.prefixes,n=r===void 0?"./":r,o=e.delimiter,i=o===void 0?"/#?":o,a=[],s=0,l=0,c="",u=function(N){if(l<t.length&&t[l].type===N)return t[l++].value},g=function(N){var F=u(N);if(F!==void 0)return F;var L=t[l],T=L.type,P=L.index;throw new TypeError("Unexpected ".concat(T," at ").concat(P,", expected ").concat(N))},h=function(){for(var N="",F;F=u("CHAR")||u("ESCAPED_CHAR");)N+=F;return N},B=function(N){for(var F=0,L=i;F<L.length;F++){var T=L[F];if(N.indexOf(T)>-1)return!0}return!1},E=function(N){var F=a[a.length-1],L=N||(F&&typeof F=="string"?F:"");if(F&&!L)throw new TypeError('Must have text between two parameters, missing text after "'.concat(F.name,'"'));return!L||B(L)?"[^".concat(Jc(i),"]+?"):"(?:(?!".concat(Jc(L),")[^").concat(Jc(i),"])+?")};l<t.length;){var C=u("CHAR"),m=u("NAME"),I=u("PATTERN");if(m||I){var v=C||"";n.indexOf(v)===-1&&(c+=v,v=""),c&&(a.push(c),c=""),a.push({name:m||s++,prefix:v,suffix:"",pattern:I||E(v),modifier:u("MODIFIER")||""});continue}var y=C||u("ESCAPED_CHAR");if(y){c+=y;continue}c&&(a.push(c),c="");var x=u("OPEN");if(x){var v=h(),b=u("NAME")||"",k=u("PATTERN")||"",M=h();g("CLOSE"),a.push({name:b||(k?s++:""),pattern:b&&!k?E(v):k,prefix:v,suffix:M,modifier:u("MODIFIER")||""});continue}g("END")}return a}function Qle(A,e){var t=[],r=YnA(A,t,e);return wle(r,t,e)}function wle(A,e,t){t===void 0&&(t={});var r=t.decode,n=r===void 0?function(o){return o}:r;return function(o){var i=A.exec(o);if(!i)return!1;for(var a=i[0],s=i.index,l=Object.create(null),c=function(g){if(i[g]===void 0)return"continue";var h=e[g-1];h.modifier==="*"||h.modifier==="+"?l[h.name]=i[g].split(h.prefix+h.suffix).map(function(B){return n(B,h)}):l[h.name]=n(i[g],h)},u=1;u<i.length;u++)c(u);return{path:a,index:s,params:l}}}function Jc(A){return A.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function KnA(A){return A&&A.sensitive?"":"i"}function Ile(A,e){if(!e)return A;for(var t=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,n=t.exec(A.source);n;)e.push({name:n[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),n=t.exec(A.source);return A}function vle(A,e,t){var r=A.map(function(n){return YnA(n,e,t).source});return new RegExp("(?:".concat(r.join("|"),")"),KnA(t))}function Dle(A,e,t){return yle(mle(A,t),e,t)}function yle(A,e,t){t===void 0&&(t={});for(var r=t.strict,n=r===void 0?!1:r,o=t.start,i=o===void 0?!0:o,a=t.end,s=a===void 0?!0:a,l=t.encode,c=l===void 0?function(F){return F}:l,u=t.delimiter,g=u===void 0?"/#?":u,h=t.endsWith,B=h===void 0?"":h,E="[".concat(Jc(B),"]|$"),C="[".concat(Jc(g),"]"),m=i?"^":"",I=0,v=A;I<v.length;I++){var y=v[I];if(typeof y=="string")m+=Jc(c(y));else{var x=Jc(c(y.prefix)),b=Jc(c(y.suffix));if(y.pattern)if(e&&e.push(y),x||b)if(y.modifier==="+"||y.modifier==="*"){var k=y.modifier==="*"?"?":"";m+="(?:".concat(x,"((?:").concat(y.pattern,")(?:").concat(b).concat(x,"(?:").concat(y.pattern,"))*)").concat(b,")").concat(k)}else m+="(?:".concat(x,"(").concat(y.pattern,")").concat(b,")").concat(y.modifier);else{if(y.modifier==="+"||y.modifier==="*")throw new TypeError('Can not repeat "'.concat(y.name,'" without a prefix and suffix'));m+="(".concat(y.pattern,")").concat(y.modifier)}else m+="(?:".concat(x).concat(b,")").concat(y.modifier)}}if(s)n||(m+="".concat(C,"?")),m+=t.endsWith?"(?=".concat(E,")"):"$";else{var M=A[A.length-1],N=typeof M=="string"?C.indexOf(M[M.length-1])>-1:M===void 0;n||(m+="(?:".concat(C,"(?=").concat(E,"))?")),N||(m+="(?=".concat(C,"|").concat(E,")"))}return new RegExp(m,KnA(t))}function YnA(A,e,t){return A instanceof RegExp?Ile(A,e):Array.isArray(A)?vle(A,e,t):Dle(A,e,t)}var ble=new TextEncoder;function xle(A){return ble.encode(A)}function kle(A,e){return new TextDecoder(e).decode(A)}function _le(A){return A.buffer.slice(A.byteOffset,A.byteOffset+A.byteLength)}var Mle=new Set([101,103,204,205,304]);function Sle(A){return Mle.has(A)}var Nle={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_Pdf:"false",VITE_USED_COMPONENTS_Chart:"false",VITE_USER_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_XMLUI_VERSION:"0.7.19 (built 1/31/2025)"},Rle=Object.defineProperty,Ple=(A,e)=>{for(var t in e)Rle(A,t,{get:e[t],enumerable:!0})},pR={};Ple(pR,{blue:()=>Lle,gray:()=>BR,green:()=>Ole,red:()=>Fle,yellow:()=>Tle});function Tle(A){return`\x1B[33m${A}\x1B[0m`}function Lle(A){return`\x1B[34m${A}\x1B[0m`}function BR(A){return`\x1B[90m${A}\x1B[0m`}function Fle(A){return`\x1B[31m${A}\x1B[0m`}function Ole(A){return`\x1B[32m${A}\x1B[0m`}var KD=HD(),$nA=class{constructor(A){$t(this,"prefix");this.name=A,this.prefix=`[${this.name}]`;const e=jnA("DEBUG"),t=jnA("LOG_LEVEL");e==="1"||e==="true"||typeof e<"u"&&this.name.startsWith(e)?(this.debug=J0(t,"debug")?Ds:this.debug,this.info=J0(t,"info")?Ds:this.info,this.success=J0(t,"success")?Ds:this.success,this.warning=J0(t,"warning")?Ds:this.warning,this.error=J0(t,"error")?Ds:this.error):(this.info=Ds,this.success=Ds,this.warning=Ds,this.error=Ds,this.only=Ds)}extend(A){return new $nA(`${this.name}:${A}`)}debug(A,...e){this.logEntry({level:"debug",message:BR(A),positionals:e,prefix:this.prefix,colors:{prefix:"gray"}})}info(A,...e){this.logEntry({level:"info",message:A,positionals:e,prefix:this.prefix,colors:{prefix:"blue"}});const t=new Hle;return(r,...n)=>{t.measure(),this.logEntry({level:"info",message:`${r} ${BR(`${t.deltaTime}ms`)}`,positionals:n,prefix:this.prefix,colors:{prefix:"blue"}})}}success(A,...e){this.logEntry({level:"info",message:A,positionals:e,prefix:`✔ ${this.prefix}`,colors:{timestamp:"green",prefix:"green"}})}warning(A,...e){this.logEntry({level:"warning",message:A,positionals:e,prefix:`⚠ ${this.prefix}`,colors:{timestamp:"yellow",prefix:"yellow"}})}error(A,...e){this.logEntry({level:"error",message:A,positionals:e,prefix:`✖ ${this.prefix}`,colors:{timestamp:"red",prefix:"red"}})}only(A){A()}createEntry(A,e){return{timestamp:new Date,level:A,message:e}}logEntry(A){const{level:e,message:t,prefix:r,colors:n,positionals:o=[]}=A,i=this.createEntry(e,t),a=(n==null?void 0:n.timestamp)||"gray",s=(n==null?void 0:n.prefix)||"gray",l={timestamp:pR[a],prefix:pR[s]};this.getWriter(e)([l.timestamp(this.formatTimestamp(i.timestamp))].concat(r!=null?l.prefix(r):[]).concat(qnA(t)).join(" "),...o.map(qnA))}formatTimestamp(A){return`${A.toLocaleTimeString("en-GB")}:${A.getMilliseconds()}`}getWriter(A){switch(A){case"debug":case"success":case"info":return Gle;case"warning":return Ule;case"error":return Kle}}},Hle=class{constructor(){$t(this,"startTime");$t(this,"endTime");$t(this,"deltaTime");this.startTime=performance.now()}measure(){this.endTime=performance.now();const A=this.endTime-this.startTime;this.deltaTime=A.toFixed(2)}},Ds=()=>{};function Gle(A,...e){if(KD){process.stdout.write(Rh(A,...e)+`
|
|
613
613
|
`);return}console.log(A,...e)}function Ule(A,...e){if(KD){process.stderr.write(Rh(A,...e)+`
|
|
614
614
|
`);return}console.warn(A,...e)}function Kle(A,...e){if(KD){process.stderr.write(Rh(A,...e)+`
|
|
615
615
|
`);return}console.error(A,...e)}function jnA(A){var e;return KD?Nle[A]:(e=globalThis[A])==null?void 0:e.toString()}function J0(A,e){return A!==void 0&&A!==e}function qnA(A){return typeof A>"u"?"undefined":A===null?"null":typeof A=="string"?A:typeof A=="object"?JSON.stringify(A):A.toString()}var Ph=Symbol("isPatchedModule");function JnA(A){return globalThis[A]||void 0}function Yle(A,e){globalThis[A]=e}function $le(A){delete globalThis[A]}var ER=class{constructor(A){this.symbol=A,this.readyState="INACTIVE",this.emitter=new GD,this.subscriptions=[],this.logger=new $nA(A.description),this.emitter.setMaxListeners(0),this.logger.info("constructing the interceptor...")}checkEnvironment(){return!0}apply(){const A=this.logger.extend("apply");if(A.info("applying the interceptor..."),this.readyState==="APPLIED"){A.info("intercepted already applied!");return}if(!this.checkEnvironment()){A.info("the interceptor cannot be applied in this environment!");return}this.readyState="APPLYING";const t=this.getInstance();if(t){A.info("found a running instance, reusing..."),this.on=(r,n)=>(A.info('proxying the "%s" listener',r),t.emitter.addListener(r,n),this.subscriptions.push(()=>{t.emitter.removeListener(r,n),A.info('removed proxied "%s" listener!',r)}),this),this.readyState="APPLIED";return}A.info("no running instance found, setting up a new instance..."),this.setup(),this.setInstance(),this.readyState="APPLIED"}setup(){}on(A,e){const t=this.logger.extend("on");return this.readyState==="DISPOSING"||this.readyState==="DISPOSED"?(t.info("cannot listen to events, already disposed!"),this):(t.info('adding "%s" event listener:',A,e),this.emitter.on(A,e),this)}once(A,e){return this.emitter.once(A,e),this}off(A,e){return this.emitter.off(A,e),this}removeAllListeners(A){return this.emitter.removeAllListeners(A),this}dispose(){const A=this.logger.extend("dispose");if(this.readyState==="DISPOSED"){A.info("cannot dispose, already disposed!");return}if(A.info("disposing the interceptor..."),this.readyState="DISPOSING",!this.getInstance()){A.info("no interceptors running, skipping dispose...");return}if(this.clearInstance(),A.info("global symbol deleted:",JnA(this.symbol)),this.subscriptions.length>0){A.info("disposing of %d subscriptions...",this.subscriptions.length);for(const e of this.subscriptions)e();this.subscriptions=[],A.info("disposed of all subscriptions!",this.subscriptions.length)}this.emitter.removeAllListeners(),A.info("destroyed the listener!"),this.readyState="DISPOSED"}getInstance(){var A;const e=JnA(this.symbol);return this.logger.info("retrieved global instance:",(A=e==null?void 0:e.constructor)==null?void 0:A.name),e}setInstance(){Yle(this.symbol,this),this.logger.info("set global instance!",this.symbol.description)}clearInstance(){$le(this.symbol),this.logger.info("cleared global instance!",this.symbol.description)}},CR=class extends ER{constructor(A){CR.symbol=Symbol(A.name),super(CR.symbol),this.interceptors=A.interceptors}setup(){const A=this.logger.extend("setup");A.info("applying all %d interceptors...",this.interceptors.length);for(const e of this.interceptors)A.info('applying "%s" interceptor...',e.constructor.name),e.apply(),A.info("adding interceptor dispose subscription"),this.subscriptions.push(()=>e.dispose())}on(A,e){for(const t of this.interceptors)t.on(A,e);return this}once(A,e){for(const t of this.interceptors)t.once(A,e);return this}off(A,e){for(const t of this.interceptors)t.off(A,e);return this}removeAllListeners(A){for(const e of this.interceptors)e.removeAllListeners(A);return this}};function jle(A,e=!0){return[e&&A.origin,A.pathname].filter(Boolean).join("")}const qle=/[\?|#].*$/g;function Jle(A){return new URL(`/${A}`,"http://localhost").searchParams}function znA(A){return A.replace(qle,"")}function zle(A){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(A)}function Wle(A,e){if(zle(A)||A.startsWith("*"))return A;const t=e||typeof document<"u"&&document.baseURI;return t?decodeURI(new URL(encodeURI(A),t).href):A}function Vle(A,e){if(A instanceof RegExp)return A;const t=Wle(A,e);return znA(t)}function Xle(A){return A.replace(/([:a-zA-Z_-]*)(\*{1,2})+/g,(e,t,r)=>{const n="(.*)";return t?t.startsWith(":")?`${t}${r}`:`${t}${n}`:n}).replace(/([^\/])(:)(?=\d+)/,"$1\\$2").replace(/^([^\/]+)(:)(?=\/\/)/,"$1\\$2")}function WnA(A,e,t){const r=Vle(e,t),n=typeof r=="string"?Xle(r):r,o=jle(A),i=Qle(n,{decode:decodeURIComponent})(o),a=i&&i.params||{};return{matches:i!==!1,params:a}}function z0(A){if(typeof location>"u")return A.url;const e=new URL(A.url);return e.origin===location.origin?e.pathname:e.origin+e.pathname}var Zle=Object.create,VnA=Object.defineProperty,Ace=Object.getOwnPropertyDescriptor,XnA=Object.getOwnPropertyNames,ece=Object.getPrototypeOf,tce=Object.prototype.hasOwnProperty,rce=(A,e)=>function(){return e||(0,A[XnA(A)[0]])((e={exports:{}}).exports,e),e.exports},nce=(A,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of XnA(e))!tce.call(A,n)&&n!==t&&VnA(A,n,{get:()=>e[n],enumerable:!(r=Ace(e,n))||r.enumerable});return A},oce=(A,e,t)=>(t=A!=null?Zle(ece(A)):{},nce(VnA(t,"default",{value:A,enumerable:!0}),A)),ice=rce({"node_modules/cookie/index.js"(A){A.parse=a,A.serialize=c;var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,r=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,n=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,o=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/;function a(B,E){if(typeof B!="string")throw new TypeError("argument str must be a string");var C={},m=B.length;if(m<2)return C;var I=E&&E.decode||u,v=0,y=0,x=0;do{if(y=B.indexOf("=",v),y===-1)break;if(x=B.indexOf(";",v),x===-1)x=m;else if(y>x){v=B.lastIndexOf(";",y-1)+1;continue}var b=s(B,v,y),k=l(B,y,b),M=B.slice(b,k);if(!t.call(C,M)){var N=s(B,y+1,x),F=l(B,x,N);B.charCodeAt(N)===34&&B.charCodeAt(F-1)===34&&(N++,F--);var L=B.slice(N,F);C[M]=h(L,I)}v=x+1}while(v<m);return C}function s(B,E,C){do{var m=B.charCodeAt(E);if(m!==32&&m!==9)return E}while(++E<C);return C}function l(B,E,C){for(;E>C;){var m=B.charCodeAt(--E);if(m!==32&&m!==9)return E+1}return C}function c(B,E,C){var m=C&&C.encode||encodeURIComponent;if(typeof m!="function")throw new TypeError("option encode is invalid");if(!r.test(B))throw new TypeError("argument name is invalid");var I=m(E);if(!n.test(I))throw new TypeError("argument val is invalid");var v=B+"="+I;if(!C)return v;if(C.maxAge!=null){var y=Math.floor(C.maxAge);if(!isFinite(y))throw new TypeError("option maxAge is invalid");v+="; Max-Age="+y}if(C.domain){if(!o.test(C.domain))throw new TypeError("option domain is invalid");v+="; Domain="+C.domain}if(C.path){if(!i.test(C.path))throw new TypeError("option path is invalid");v+="; Path="+C.path}if(C.expires){var x=C.expires;if(!g(x)||isNaN(x.valueOf()))throw new TypeError("option expires is invalid");v+="; Expires="+x.toUTCString()}if(C.httpOnly&&(v+="; HttpOnly"),C.secure&&(v+="; Secure"),C.partitioned&&(v+="; Partitioned"),C.priority){var b=typeof C.priority=="string"?C.priority.toLowerCase():C.priority;switch(b){case"low":v+="; Priority=Low";break;case"medium":v+="; Priority=Medium";break;case"high":v+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(C.sameSite){var k=typeof C.sameSite=="string"?C.sameSite.toLowerCase():C.sameSite;switch(k){case!0:v+="; SameSite=Strict";break;case"lax":v+="; SameSite=Lax";break;case"strict":v+="; SameSite=Strict";break;case"none":v+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return v}function u(B){return B.indexOf("%")!==-1?decodeURIComponent(B):B}function g(B){return e.call(B)==="[object Date]"}function h(B,E){try{return E(B)}catch{return B}}}}),ace=oce(ice()),ZnA=ace.default;/*! Bundled license information:
|
|
@@ -638,7 +638,7 @@ Invalid value has been removed from localStorage to prevent subsequent failed pa
|
|
|
638
638
|
|
|
639
639
|
`+coA(this.source,t);return e}toJSON(){const e={message:this.message};return this.locations!=null&&(e.locations=this.locations),this.path!=null&&(e.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function foA(A){return A===void 0||A.length===0?void 0:A}function cn(A,e,t){return new wR(`Syntax Error: ${t}`,{source:A,positions:[e]})}class kce{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class goA{constructor(e,t,r,n,o,i){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=o,this.value=i,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const _ce={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};new Set(Object.keys(_ce));var Lh;(function(A){A.QUERY="query",A.MUTATION="mutation",A.SUBSCRIPTION="subscription"})(Lh||(Lh={}));var IR;(function(A){A.QUERY="QUERY",A.MUTATION="MUTATION",A.SUBSCRIPTION="SUBSCRIPTION",A.FIELD="FIELD",A.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",A.FRAGMENT_SPREAD="FRAGMENT_SPREAD",A.INLINE_FRAGMENT="INLINE_FRAGMENT",A.VARIABLE_DEFINITION="VARIABLE_DEFINITION",A.SCHEMA="SCHEMA",A.SCALAR="SCALAR",A.OBJECT="OBJECT",A.FIELD_DEFINITION="FIELD_DEFINITION",A.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",A.INTERFACE="INTERFACE",A.UNION="UNION",A.ENUM="ENUM",A.ENUM_VALUE="ENUM_VALUE",A.INPUT_OBJECT="INPUT_OBJECT",A.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(IR||(IR={}));var _e;(function(A){A.NAME="Name",A.DOCUMENT="Document",A.OPERATION_DEFINITION="OperationDefinition",A.VARIABLE_DEFINITION="VariableDefinition",A.SELECTION_SET="SelectionSet",A.FIELD="Field",A.ARGUMENT="Argument",A.FRAGMENT_SPREAD="FragmentSpread",A.INLINE_FRAGMENT="InlineFragment",A.FRAGMENT_DEFINITION="FragmentDefinition",A.VARIABLE="Variable",A.INT="IntValue",A.FLOAT="FloatValue",A.STRING="StringValue",A.BOOLEAN="BooleanValue",A.NULL="NullValue",A.ENUM="EnumValue",A.LIST="ListValue",A.OBJECT="ObjectValue",A.OBJECT_FIELD="ObjectField",A.DIRECTIVE="Directive",A.NAMED_TYPE="NamedType",A.LIST_TYPE="ListType",A.NON_NULL_TYPE="NonNullType",A.SCHEMA_DEFINITION="SchemaDefinition",A.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",A.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",A.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",A.FIELD_DEFINITION="FieldDefinition",A.INPUT_VALUE_DEFINITION="InputValueDefinition",A.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",A.UNION_TYPE_DEFINITION="UnionTypeDefinition",A.ENUM_TYPE_DEFINITION="EnumTypeDefinition",A.ENUM_VALUE_DEFINITION="EnumValueDefinition",A.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",A.DIRECTIVE_DEFINITION="DirectiveDefinition",A.SCHEMA_EXTENSION="SchemaExtension",A.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",A.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",A.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",A.UNION_TYPE_EXTENSION="UnionTypeExtension",A.ENUM_TYPE_EXTENSION="EnumTypeExtension",A.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(_e||(_e={}));function Mce(A){return A===9||A===32}function W0(A){return A>=48&&A<=57}function doA(A){return A>=97&&A<=122||A>=65&&A<=90}function hoA(A){return doA(A)||A===95}function Sce(A){return doA(A)||W0(A)||A===95}function Nce(A){var e;let t=Number.MAX_SAFE_INTEGER,r=null,n=-1;for(let i=0;i<A.length;++i){var o;const a=A[i],s=Rce(a);s!==a.length&&(r=(o=r)!==null&&o!==void 0?o:i,n=i,i!==0&&s<t&&(t=s))}return A.map((i,a)=>a===0?i:i.slice(t)).slice((e=r)!==null&&e!==void 0?e:0,n+1)}function Rce(A){let e=0;for(;e<A.length&&Mce(A.charCodeAt(e));)++e;return e}var yA;(function(A){A.SOF="<SOF>",A.EOF="<EOF>",A.BANG="!",A.DOLLAR="$",A.AMP="&",A.PAREN_L="(",A.PAREN_R=")",A.SPREAD="...",A.COLON=":",A.EQUALS="=",A.AT="@",A.BRACKET_L="[",A.BRACKET_R="]",A.BRACE_L="{",A.PIPE="|",A.BRACE_R="}",A.NAME="Name",A.INT="Int",A.FLOAT="Float",A.STRING="String",A.BLOCK_STRING="BlockString",A.COMMENT="Comment"})(yA||(yA={}));class Pce{constructor(e){const t=new goA(yA.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==yA.EOF)do if(e.next)e=e.next;else{const t=Lce(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===yA.COMMENT);return e}}function Tce(A){return A===yA.BANG||A===yA.DOLLAR||A===yA.AMP||A===yA.PAREN_L||A===yA.PAREN_R||A===yA.SPREAD||A===yA.COLON||A===yA.EQUALS||A===yA.AT||A===yA.BRACKET_L||A===yA.BRACKET_R||A===yA.BRACE_L||A===yA.PIPE||A===yA.BRACE_R}function Fh(A){return A>=0&&A<=55295||A>=57344&&A<=1114111}function jD(A,e){return poA(A.charCodeAt(e))&&BoA(A.charCodeAt(e+1))}function poA(A){return A>=55296&&A<=56319}function BoA(A){return A>=56320&&A<=57343}function Ag(A,e){const t=A.source.body.codePointAt(e);if(t===void 0)return yA.EOF;if(t>=32&&t<=126){const r=String.fromCodePoint(t);return r==='"'?`'"'`:`"${r}"`}return"U+"+t.toString(16).toUpperCase().padStart(4,"0")}function Pr(A,e,t,r,n){const o=A.line,i=1+t-A.lineStart;return new goA(e,t,r,o,i,n)}function Lce(A,e){const t=A.source.body,r=t.length;let n=e;for(;n<r;){const o=t.charCodeAt(n);switch(o){case 65279:case 9:case 32:case 44:++n;continue;case 10:++n,++A.line,A.lineStart=n;continue;case 13:t.charCodeAt(n+1)===10?n+=2:++n,++A.line,A.lineStart=n;continue;case 35:return Fce(A,n);case 33:return Pr(A,yA.BANG,n,n+1);case 36:return Pr(A,yA.DOLLAR,n,n+1);case 38:return Pr(A,yA.AMP,n,n+1);case 40:return Pr(A,yA.PAREN_L,n,n+1);case 41:return Pr(A,yA.PAREN_R,n,n+1);case 46:if(t.charCodeAt(n+1)===46&&t.charCodeAt(n+2)===46)return Pr(A,yA.SPREAD,n,n+3);break;case 58:return Pr(A,yA.COLON,n,n+1);case 61:return Pr(A,yA.EQUALS,n,n+1);case 64:return Pr(A,yA.AT,n,n+1);case 91:return Pr(A,yA.BRACKET_L,n,n+1);case 93:return Pr(A,yA.BRACKET_R,n,n+1);case 123:return Pr(A,yA.BRACE_L,n,n+1);case 124:return Pr(A,yA.PIPE,n,n+1);case 125:return Pr(A,yA.BRACE_R,n,n+1);case 34:return t.charCodeAt(n+1)===34&&t.charCodeAt(n+2)===34?Yce(A,n):Hce(A,n)}if(W0(o)||o===45)return Oce(A,n,o);if(hoA(o))return $ce(A,n);throw cn(A.source,n,o===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:Fh(o)||jD(t,n)?`Unexpected character: ${Ag(A,n)}.`:`Invalid character: ${Ag(A,n)}.`)}return Pr(A,yA.EOF,r,r)}function Fce(A,e){const t=A.source.body,r=t.length;let n=e+1;for(;n<r;){const o=t.charCodeAt(n);if(o===10||o===13)break;if(Fh(o))++n;else if(jD(t,n))n+=2;else break}return Pr(A,yA.COMMENT,e,n,t.slice(e+1,n))}function Oce(A,e,t){const r=A.source.body;let n=e,o=t,i=!1;if(o===45&&(o=r.charCodeAt(++n)),o===48){if(o=r.charCodeAt(++n),W0(o))throw cn(A.source,n,`Invalid number, unexpected digit after 0: ${Ag(A,n)}.`)}else n=vR(A,n,o),o=r.charCodeAt(n);if(o===46&&(i=!0,o=r.charCodeAt(++n),n=vR(A,n,o),o=r.charCodeAt(n)),(o===69||o===101)&&(i=!0,o=r.charCodeAt(++n),(o===43||o===45)&&(o=r.charCodeAt(++n)),n=vR(A,n,o),o=r.charCodeAt(n)),o===46||hoA(o))throw cn(A.source,n,`Invalid number, expected digit but got: ${Ag(A,n)}.`);return Pr(A,i?yA.FLOAT:yA.INT,e,n,r.slice(e,n))}function vR(A,e,t){if(!W0(t))throw cn(A.source,e,`Invalid number, expected digit but got: ${Ag(A,e)}.`);const r=A.source.body;let n=e+1;for(;W0(r.charCodeAt(n));)++n;return n}function Hce(A,e){const t=A.source.body,r=t.length;let n=e+1,o=n,i="";for(;n<r;){const a=t.charCodeAt(n);if(a===34)return i+=t.slice(o,n),Pr(A,yA.STRING,e,n+1,i);if(a===92){i+=t.slice(o,n);const s=t.charCodeAt(n+1)===117?t.charCodeAt(n+2)===123?Gce(A,n):Uce(A,n):Kce(A,n);i+=s.value,n+=s.size,o=n;continue}if(a===10||a===13)break;if(Fh(a))++n;else if(jD(t,n))n+=2;else throw cn(A.source,n,`Invalid character within String: ${Ag(A,n)}.`)}throw cn(A.source,n,"Unterminated string.")}function Gce(A,e){const t=A.source.body;let r=0,n=3;for(;n<12;){const o=t.charCodeAt(e+n++);if(o===125){if(n<5||!Fh(r))break;return{value:String.fromCodePoint(r),size:n}}if(r=r<<4|V0(o),r<0)break}throw cn(A.source,e,`Invalid Unicode escape sequence: "${t.slice(e,e+n)}".`)}function Uce(A,e){const t=A.source.body,r=EoA(t,e+2);if(Fh(r))return{value:String.fromCodePoint(r),size:6};if(poA(r)&&t.charCodeAt(e+6)===92&&t.charCodeAt(e+7)===117){const n=EoA(t,e+8);if(BoA(n))return{value:String.fromCodePoint(r,n),size:12}}throw cn(A.source,e,`Invalid Unicode escape sequence: "${t.slice(e,e+6)}".`)}function EoA(A,e){return V0(A.charCodeAt(e))<<12|V0(A.charCodeAt(e+1))<<8|V0(A.charCodeAt(e+2))<<4|V0(A.charCodeAt(e+3))}function V0(A){return A>=48&&A<=57?A-48:A>=65&&A<=70?A-55:A>=97&&A<=102?A-87:-1}function Kce(A,e){const t=A.source.body;switch(t.charCodeAt(e+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
|
|
640
640
|
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw cn(A.source,e,`Invalid character escape sequence: "${t.slice(e,e+2)}".`)}function Yce(A,e){const t=A.source.body,r=t.length;let n=A.lineStart,o=e+3,i=o,a="";const s=[];for(;o<r;){const l=t.charCodeAt(o);if(l===34&&t.charCodeAt(o+1)===34&&t.charCodeAt(o+2)===34){a+=t.slice(i,o),s.push(a);const c=Pr(A,yA.BLOCK_STRING,e,o+3,Nce(s).join(`
|
|
641
|
-
`));return A.line+=s.length-1,A.lineStart=n,c}if(l===92&&t.charCodeAt(o+1)===34&&t.charCodeAt(o+2)===34&&t.charCodeAt(o+3)===34){a+=t.slice(i,o),i=o+1,o+=4;continue}if(l===10||l===13){a+=t.slice(i,o),s.push(a),l===13&&t.charCodeAt(o+1)===10?o+=2:++o,a="",i=o,n=o;continue}if(Fh(l))++o;else if(jD(t,o))o+=2;else throw cn(A.source,o,`Invalid character within String: ${Ag(A,o)}.`)}throw cn(A.source,o,"Unterminated string.")}function $ce(A,e){const t=A.source.body,r=t.length;let n=e+1;for(;n<r;){const o=t.charCodeAt(n);if(Sce(o))++n;else break}return Pr(A,yA.NAME,e,n,t.slice(e,n))}const jce=10,CoA=2;function moA(A){return qD(A,[])}function qD(A,e){switch(typeof A){case"string":return JSON.stringify(A);case"function":return A.name?`[function ${A.name}]`:"[function]";case"object":return qce(A,e);default:return String(A)}}function qce(A,e){if(A===null)return"null";if(e.includes(A))return"[Circular]";const t=[...e,A];if(Jce(A)){const r=A.toJSON();if(r!==A)return typeof r=="string"?r:qD(r,t)}else if(Array.isArray(A))return Wce(A,t);return zce(A,t)}function Jce(A){return typeof A.toJSON=="function"}function zce(A,e){const t=Object.entries(A);return t.length===0?"{}":e.length>CoA?"["+Vce(A)+"]":"{ "+t.map(([n,o])=>n+": "+qD(o,e)).join(", ")+" }"}function Wce(A,e){if(A.length===0)return"[]";if(e.length>CoA)return"[Array]";const t=Math.min(jce,A.length),r=A.length-t,n=[];for(let o=0;o<t;++o)n.push(qD(A[o],e));return r===1?n.push("... 1 more item"):r>1&&n.push(`... ${r} more items`),"["+n.join(", ")+"]"}function Vce(A){const e=Object.prototype.toString.call(A).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof A.constructor=="function"){const t=A.constructor.name;if(typeof t=="string"&&t!=="")return t}return e}var Xce={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_Pdf:"false",VITE_USED_COMPONENTS_Chart:"false",VITE_USER_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_XMLUI_VERSION:"0.7.
|
|
641
|
+
`));return A.line+=s.length-1,A.lineStart=n,c}if(l===92&&t.charCodeAt(o+1)===34&&t.charCodeAt(o+2)===34&&t.charCodeAt(o+3)===34){a+=t.slice(i,o),i=o+1,o+=4;continue}if(l===10||l===13){a+=t.slice(i,o),s.push(a),l===13&&t.charCodeAt(o+1)===10?o+=2:++o,a="",i=o,n=o;continue}if(Fh(l))++o;else if(jD(t,o))o+=2;else throw cn(A.source,o,`Invalid character within String: ${Ag(A,o)}.`)}throw cn(A.source,o,"Unterminated string.")}function $ce(A,e){const t=A.source.body,r=t.length;let n=e+1;for(;n<r;){const o=t.charCodeAt(n);if(Sce(o))++n;else break}return Pr(A,yA.NAME,e,n,t.slice(e,n))}const jce=10,CoA=2;function moA(A){return qD(A,[])}function qD(A,e){switch(typeof A){case"string":return JSON.stringify(A);case"function":return A.name?`[function ${A.name}]`:"[function]";case"object":return qce(A,e);default:return String(A)}}function qce(A,e){if(A===null)return"null";if(e.includes(A))return"[Circular]";const t=[...e,A];if(Jce(A)){const r=A.toJSON();if(r!==A)return typeof r=="string"?r:qD(r,t)}else if(Array.isArray(A))return Wce(A,t);return zce(A,t)}function Jce(A){return typeof A.toJSON=="function"}function zce(A,e){const t=Object.entries(A);return t.length===0?"{}":e.length>CoA?"["+Vce(A)+"]":"{ "+t.map(([n,o])=>n+": "+qD(o,e)).join(", ")+" }"}function Wce(A,e){if(A.length===0)return"[]";if(e.length>CoA)return"[Array]";const t=Math.min(jce,A.length),r=A.length-t,n=[];for(let o=0;o<t;++o)n.push(qD(A[o],e));return r===1?n.push("... 1 more item"):r>1&&n.push(`... ${r} more items`),"["+n.join(", ")+"]"}function Vce(A){const e=Object.prototype.toString.call(A).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof A.constructor=="function"){const t=A.constructor.name;if(typeof t=="string"&&t!=="")return t}return e}var Xce={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_Pdf:"false",VITE_USED_COMPONENTS_Chart:"false",VITE_USER_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_XMLUI_VERSION:"0.7.19 (built 1/31/2025)"};const Zce=globalThis.process&&Xce.NODE_ENV==="production"?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if(typeof e=="object"&&e!==null){var r;const n=t.prototype[Symbol.toStringTag],o=Symbol.toStringTag in e?e[Symbol.toStringTag]:(r=e.constructor)===null||r===void 0?void 0:r.name;if(n===o){const i=moA(e);throw new Error(`Cannot use ${n} "${i}" from another module or realm.
|
|
642
642
|
|
|
643
643
|
Ensure that there is only one instance of "graphql" in the node_modules
|
|
644
644
|
directory. If different versions of "graphql" are the dependencies of other
|