xmlui 0.9.74 → 0.9.75
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/lib/{apiInterceptorWorker-DXW_XKKI.mjs → apiInterceptorWorker-DatXAMCS.mjs} +1 -1
- package/dist/lib/{index-D1pmdW3I.mjs → index-BSiZQHKG.mjs} +6 -6
- package/dist/lib/language-server-web-worker.mjs +1 -1
- package/dist/lib/language-server.mjs +1 -1
- package/dist/lib/{server-common-CfdMYx46.mjs → server-common-LUcdzTQs.mjs} +4433 -4463
- package/dist/lib/xmlui.mjs +1 -1
- package/dist/metadata/{apiInterceptorWorker-BFjqjbag.mjs → apiInterceptorWorker-iGWqhoNo.mjs} +1 -1
- package/dist/metadata/{collectedComponentMetadata-BVLAibj_.mjs → collectedComponentMetadata-DPDQ1hHG.mjs} +6 -6
- package/dist/metadata/xmlui-metadata.mjs +1 -1
- package/dist/metadata/xmlui-metadata.umd.js +4 -4
- package/dist/scripts/package.json +1 -1
- package/dist/scripts/src/components/NestedApp/NestedAppNative.js +0 -1
- package/dist/scripts/src/components/TreeDisplay/TreeDisplay.js +1 -1
- package/dist/scripts/src/components-core/theming/transformThemeVars.js +1 -1
- package/dist/standalone/xmlui-standalone.umd.js +8 -8
- package/package.json +1 -1
|
@@ -69,7 +69,7 @@ Error generating stack: `+U.message+`
|
|
|
69
69
|
`+e.slice(o,i),o=i+1),a=l;return s+=`
|
|
70
70
|
`,e.length-o>t&&a>o?s+=e.slice(o,a)+`
|
|
71
71
|
`+e.slice(a+1):s+=e.slice(o),s.slice(1)}function e6e(e){for(var t="",r=0,n,o=0;o<e.length;r>=65536?o+=2:o++)r=K1(e,o),n=Ai[r],!n&&Y1(r)?(t+=e[o],r>=65536&&(t+=e[o+1])):t+=n||UEe(r);return t}function t6e(e,t,r){var n="",o=e.tag,i,a,l;for(i=0,a=r.length;i<a;i+=1)l=r[i],e.replacer&&(l=e.replacer.call(r,String(i),l)),(Wc(e,t,l,!1,!1)||typeof l>"u"&&Wc(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=o,e.dump="["+n+"]"}function KF(e,t,r,n){var o="",i=e.tag,a,l,s;for(a=0,l=r.length;a<l;a+=1)s=r[a],e.replacer&&(s=e.replacer.call(r,String(a),s)),(Wc(e,t+1,s,!0,!0,!1,!0)||typeof s>"u"&&Wc(e,t+1,null,!0,!0,!1,!0))&&((!n||o!=="")&&(o+=EA(e,t)),e.dump&&q1===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump);e.tag=i,e.dump=o||"[]"}function r6e(e,t,r){var n="",o=e.tag,i=Object.keys(r),a,l,s,u,c;for(a=0,l=i.length;a<l;a+=1)c="",n!==""&&(c+=", "),e.condenseFlow&&(c+='"'),s=i[a],u=r[s],e.replacer&&(u=e.replacer.call(r,s,u)),Wc(e,t,s,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Wc(e,t,u,!1,!1)&&(c+=e.dump,n+=c));e.tag=o,e.dump="{"+n+"}"}function n6e(e,t,r,n){var o="",i=e.tag,a=Object.keys(r),l,s,u,c,d,f;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new Qi("sortKeys must be a boolean or a function");for(l=0,s=a.length;l<s;l+=1)f="",(!n||o!=="")&&(f+=EA(e,t)),u=a[l],c=r[u],e.replacer&&(c=e.replacer.call(r,u,c)),Wc(e,t+1,u,!0,!0,!0)&&(d=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,d&&(e.dump&&q1===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,d&&(f+=EA(e,t)),Wc(e,t+1,c,!0,d)&&(e.dump&&q1===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,o+=f));e.tag=i,e.dump=o||"{}"}function XF(e,t,r){var n,o,i,a,l,s;for(o=r?e.explicitTypes:e.implicitTypes,i=0,a=o.length;i<a;i+=1)if(l=o[i],(l.instanceOf||l.predicate)&&(!l.instanceOf||typeof t=="object"&&t instanceof l.instanceOf)&&(!l.predicate||l.predicate(t))){if(r?l.multi&&l.representName?e.tag=l.representName(t):e.tag=l.tag:e.tag="?",l.represent){if(s=e.styleMap[l.tag]||l.defaultStyle,PF.call(l.represent)==="[object Function]")n=l.represent(t,s);else if(HF.call(l.represent,s))n=l.represent[s](t,s);else throw new Qi("!<"+l.tag+'> tag resolver accepts not "'+s+'" style');e.dump=n}return!0}return!1}function Wc(e,t,r,n,o,i,a){e.tag=null,e.dump=r,XF(e,r,!1)||XF(e,r,!0);var l=PF.call(e.dump),s=n,u;n&&(n=e.flowLevel<0||e.flowLevel>t);var c=l==="[object Object]"||l==="[object Array]",d,f;if(c&&(d=e.duplicates.indexOf(r),f=d!==-1),(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&t>0)&&(o=!1),f&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(c&&f&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),l==="[object Object]")n&&Object.keys(e.dump).length!==0?(n6e(e,t,e.dump,o),f&&(e.dump="&ref_"+d+e.dump)):(r6e(e,t,e.dump),f&&(e.dump="&ref_"+d+" "+e.dump));else if(l==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!a&&t>0?KF(e,t-1,e.dump,o):KF(e,t,e.dump,o),f&&(e.dump="&ref_"+d+e.dump)):(t6e(e,t,e.dump),f&&(e.dump="&ref_"+d+" "+e.dump));else if(l==="[object String]")e.tag!=="?"&&ZEe(e,e.dump,t,i,s);else{if(l==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Qi("unacceptable kind of an object to dump "+l)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return!0}function o6e(e,t){var r=[],n=[],o,i;for(AA(e,r,n),o=0,i=n.length;o<i;o+=1)t.duplicates.push(r[n[o]]);t.usedDuplicates=new Array(i)}function AA(e,t,r){var n,o,i;if(e!==null&&typeof e=="object")if(o=t.indexOf(e),o!==-1)r.indexOf(o)===-1&&r.push(o);else if(t.push(e),Array.isArray(e))for(o=0,i=e.length;o<i;o+=1)AA(e[o],t,r);else for(n=Object.keys(e),o=0,i=n.length;o<i;o+=1)AA(e[n[o]],t,r)}function i6e(e,t){t=t||{};var r=new GEe(t);r.noRefs||o6e(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Wc(r,0,n,!0,!0)?r.dump+`
|
|
72
|
-
`:""}var a6e=i6e,l6e={dump:a6e};function IA(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var s6e=bi,u6e=Zz,c6e=rF,d6e=lF,f6e=sF,m6e=wA,p6e=RF.load,h6e=RF.loadAll,g6e=l6e.dump,v6e=Qi,b6e={binary:mF,float:aF,map:tF,null:nF,pairs:hF,set:gF,timestamp:dF,bool:oF,int:iF,merge:fF,omap:pF,seq:eF,str:Jz},x6e=IA("safeLoad","load"),y6e=IA("safeLoadAll","loadAll"),w6e=IA("safeDump","dump"),QF={Type:s6e,Schema:u6e,FAILSAFE_SCHEMA:c6e,JSON_SCHEMA:d6e,CORE_SCHEMA:f6e,DEFAULT_SCHEMA:m6e,load:p6e,loadAll:h6e,dump:g6e,YAMLException:v6e,types:b6e,safeLoad:x6e,safeLoadAll:y6e,safeDump:w6e};class X1{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const r={listener:t};return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Q1=typeof window>"u"||"Deno"in window;function ql(){}function C6e(e,t){return typeof e=="function"?e(t):e}function RA(e){return typeof e=="number"&&e>=0&&e!==1/0}function ZF(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Vg(e,t,r){return $k(e)?typeof t=="function"?{...r,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function cf(e,t,r){return $k(e)?[{...t,queryKey:e},r]:[e||{},t]}function JF(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:a,stale:l}=e;if($k(a)){if(n){if(t.queryHash!==PA(a,t.options))return!1}else if(!Nk(t.queryKey,a))return!1}if(r!=="all"){const s=t.isActive();if(r==="active"&&!s||r==="inactive"&&s)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||typeof o<"u"&&o!==t.state.fetchStatus||i&&!i(t))}function eW(e,t){const{exact:r,fetching:n,predicate:o,mutationKey:i}=e;if($k(i)){if(!t.options.mutationKey)return!1;if(r){if(pp(t.options.mutationKey)!==pp(i))return!1}else if(!Nk(t.options.mutationKey,i))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||o&&!o(t))}function PA(e,t){return((t==null?void 0:t.queryKeyHashFn)||pp)(e)}function pp(e){return JSON.stringify(e,(t,r)=>LA(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function Nk(e,t){return tW(e,t)}function tW(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!tW(e[r],t[r])):!1}function rW(e,t){if(e===t)return e;const r=nW(e)&&nW(t);if(r||LA(e)&&LA(t)){const n=r?e.length:Object.keys(e).length,o=r?t:Object.keys(t),i=o.length,a=r?[]:{};let l=0;for(let s=0;s<i;s++){const u=r?s:o[s];a[u]=rW(e[u],t[u]),a[u]===e[u]&&l++}return n===i&&l===n?e:a}return t}function HA(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function nW(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function LA(e){if(!oW(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const r=t.prototype;return!(!oW(r)||!r.hasOwnProperty("isPrototypeOf"))}function oW(e){return Object.prototype.toString.call(e)==="[object Object]"}function $k(e){return Array.isArray(e)}function iW(e){return new Promise(t=>{setTimeout(t,e)})}function aW(e){iW(0).then(e)}function k6e(){if(typeof AbortController=="function")return new AbortController}function NA(e,t,r){return r.isDataEqual!=null&&r.isDataEqual(e,t)?e:typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?rW(e,t):t}class _6e extends X1{constructor(){super(),this.setup=t=>{if(!Q1&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),window.addEventListener("focus",r,!1),()=>{window.removeEventListener("visibilitychange",r),window.removeEventListener("focus",r)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const Dk=new _6e,lW=["online","offline"];class T6e extends X1{constructor(){super(),this.setup=t=>{if(!Q1&&window.addEventListener){const r=()=>t();return lW.forEach(n=>{window.addEventListener(n,r,!1)}),()=>{lW.forEach(n=>{window.removeEventListener(n,r)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setOnline(n):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Bk=new T6e;function S6e(e){return Math.min(1e3*2**e,3e4)}function jk(e){return(e??"online")==="online"?Bk.isOnline():!0}class sW{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Mk(e){return e instanceof sW}function uW(e){let t=!1,r=0,n=!1,o,i,a;const l=new Promise((b,y)=>{i=b,a=y}),s=b=>{n||(p(new sW(b)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!Dk.isFocused()||e.networkMode!=="always"&&!Bk.isOnline(),f=b=>{n||(n=!0,e.onSuccess==null||e.onSuccess(b),o==null||o(),i(b))},p=b=>{n||(n=!0,e.onError==null||e.onError(b),o==null||o(),a(b))},g=()=>new Promise(b=>{o=y=>{const w=n||!d();return w&&b(y),w},e.onPause==null||e.onPause()}).then(()=>{o=void 0,n||e.onContinue==null||e.onContinue()}),v=()=>{if(n)return;let b;try{b=e.fn()}catch(y){b=Promise.reject(y)}Promise.resolve(b).then(f).catch(y=>{var w,k;if(n)return;const E=(w=e.retry)!=null?w:3,_=(k=e.retryDelay)!=null?k:S6e,S=typeof _=="function"?_(r,y):_,O=E===!0||typeof E=="number"&&r<E||typeof E=="function"&&E(r,y);if(t||!O){p(y);return}r++,e.onFail==null||e.onFail(r,y),iW(S).then(()=>{if(d())return g()}).then(()=>{t?p(y):v()})})};return jk(e.networkMode)?v():g().then(v),{promise:l,cancel:s,continue:()=>(o==null?void 0:o())?l:Promise.resolve(),cancelRetry:u,continueRetry:c}}const $A=console;function E6e(){let e=[],t=0,r=c=>{c()},n=c=>{c()};const o=c=>{let d;t++;try{d=c()}finally{t--,t||l()}return d},i=c=>{t?e.push(c):aW(()=>{r(c)})},a=c=>(...d)=>{i(()=>{c(...d)})},l=()=>{const c=e;e=[],c.length&&aW(()=>{n(()=>{c.forEach(d=>{r(d)})})})};return{batch:o,batchCalls:a,schedule:i,setNotifyFunction:c=>{r=c},setBatchNotifyFunction:c=>{n=c}}}const xo=E6e();class cW{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),RA(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(Q1?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class O6e extends cW{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||$A,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||A6e(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,r){const n=NA(this.state.data,t,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){this.dispatch({type:"setState",state:t,setStateOptions:r})}cancel(t){var r;const n=this.promise;return(r=this.retryer)==null||r.cancel(t),n?n.then(ql).catch(ql):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!ZF(this.state.dataUpdatedAt,t)}onFocus(){var t;const r=this.observers.find(n=>n.shouldFetchOnWindowFocus());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const r=this.observers.find(n=>n.shouldFetchOnReconnect());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),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:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,r){var n,o;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&r!=null&&r.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(g=>g.options.queryFn);p&&this.setOptions(p.options)}const a=k6e(),l={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};s(l);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(l)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),c={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};if(s(c),(n=this.options.behavior)==null||n.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((o=c.fetchOptions)==null?void 0:o.meta)){var d;this.dispatch({type:"fetch",meta:(d=c.fetchOptions)==null?void 0:d.meta})}const f=p=>{if(Mk(p)&&p.silent||this.dispatch({type:"error",error:p}),!Mk(p)){var g,v,b,y;(g=(v=this.cache.config).onError)==null||g.call(v,p,this),(b=(y=this.cache.config).onSettled)==null||b.call(y,this.state.data,p,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=uW({fn:c.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:p=>{var g,v,b,y;if(typeof p>"u"){f(new Error(this.queryHash+" data is undefined"));return}this.setData(p),(g=(v=this.cache.config).onSuccess)==null||g.call(v,p,this),(b=(y=this.cache.config).onSettled)==null||b.call(y,p,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:f,onFail:(p,g)=>{this.dispatch({type:"failed",failureCount:p,error:g})},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(t){const r=n=>{var o,i;switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(o=t.meta)!=null?o:null,fetchStatus:jk(this.options.networkMode)?"fetching":"paused",...!n.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return Mk(a)&&a.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),xo.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function A6e(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof t<"u",n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}class I6e extends X1{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,r,n){var o;const i=r.queryKey,a=(o=r.queryHash)!=null?o:PA(i,r);let l=this.get(a);return l||(l=new O6e({cache:this,logger:t.getLogger(),queryKey:i,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(l)),l}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const r=this.queriesMap[t.queryHash];r&&(t.destroy(),this.queries=this.queries.filter(n=>n!==t),r===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){xo.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,r){const[n]=cf(t,r);return typeof n.exact>"u"&&(n.exact=!0),this.queries.find(o=>JF(n,o))}findAll(t,r){const[n]=cf(t,r);return Object.keys(n).length>0?this.queries.filter(o=>JF(n,o)):this.queries}notify(t){xo.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}onFocus(){xo.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){xo.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}var R6e={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_USED_COMPONENTS_TableEditor:"false",VITE_XMLUI_VERSION:"0.9.74 (built 7/15/2025)"};class P6e extends cW{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||$A,this.observers=[],this.state=t.state||H6e(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(r=>r!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,r;return(t=(r=this.retryer)==null?void 0:r.continue())!=null?t:this.execute()}async execute(){const t=()=>{var O;return this.retryer=uW({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(A,I)=>{this.dispatch({type:"failed",failureCount:A,error:I})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(O=this.options.retry)!=null?O:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},r=this.state.status==="loading";try{var n,o,i,a,l,s,u,c;if(!r){var d,f,p,g;this.dispatch({type:"loading",variables:this.options.variables}),await((d=(f=this.mutationCache.config).onMutate)==null?void 0:d.call(f,this.state.variables,this));const A=await((p=(g=this.options).onMutate)==null?void 0:p.call(g,this.state.variables));A!==this.state.context&&this.dispatch({type:"loading",context:A,variables:this.state.variables})}const O=await t();return await((n=(o=this.mutationCache.config).onSuccess)==null?void 0:n.call(o,O,this.state.variables,this.state.context,this)),await((i=(a=this.options).onSuccess)==null?void 0:i.call(a,O,this.state.variables,this.state.context)),await((l=(s=this.mutationCache.config).onSettled)==null?void 0:l.call(s,O,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,O,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:O}),O}catch(O){try{var v,b,y,w,k,E,_,S;throw await((v=(b=this.mutationCache.config).onError)==null?void 0:v.call(b,O,this.state.variables,this.state.context,this)),R6e.NODE_ENV,await((y=(w=this.options).onError)==null?void 0:y.call(w,O,this.state.variables,this.state.context)),await((k=(E=this.mutationCache.config).onSettled)==null?void 0:k.call(E,void 0,O,this.state.variables,this.state.context,this)),await((_=(S=this.options).onSettled)==null?void 0:_.call(S,void 0,O,this.state.variables,this.state.context)),O}finally{this.dispatch({type:"error",error:O})}}}dispatch(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"loading":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!jk(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...n,...t.state}}};this.state=r(this.state),xo.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function H6e(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class L6e extends X1{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,r,n){const o=new P6e({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(r),state:n,defaultOptions:r.mutationKey?t.getMutationDefaults(r.mutationKey):void 0});return this.add(o),o}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(r=>r!==t),this.notify({type:"removed",mutation:t})}clear(){xo.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(r=>eW(t,r))}findAll(t){return this.mutations.filter(r=>eW(t,r))}notify(t){xo.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const r=this.mutations.filter(n=>n.state.isPaused);return xo.batch(()=>r.reduce((n,o)=>n.then(()=>o.continue().catch(ql)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function DA(){return{onFetch:e=>{e.fetchFn=()=>{var t,r,n,o,i,a;const l=(t=e.fetchOptions)==null||(r=t.meta)==null?void 0:r.refetchPage,s=(n=e.fetchOptions)==null||(o=n.meta)==null?void 0:o.fetchMore,u=s==null?void 0:s.pageParam,c=(s==null?void 0:s.direction)==="forward",d=(s==null?void 0:s.direction)==="backward",f=((i=e.state.data)==null?void 0:i.pages)||[],p=((a=e.state.data)==null?void 0:a.pageParams)||[];let g=p,v=!1;const b=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>{var O;if((O=e.signal)!=null&&O.aborted)v=!0;else{var A;(A=e.signal)==null||A.addEventListener("abort",()=>{v=!0})}return e.signal}})},y=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),w=(S,O,A,I)=>(g=I?[O,...g]:[...g,O],I?[A,...S]:[...S,A]),k=(S,O,A,I)=>{if(v)return Promise.reject("Cancelled");if(typeof A>"u"&&!O&&S.length)return Promise.resolve(S);const H={queryKey:e.queryKey,pageParam:A,meta:e.options.meta};b(H);const P=y(H);return Promise.resolve(P).then(B=>w(S,A,B,I))};let E;if(!f.length)E=k([]);else if(c){const S=typeof u<"u",O=S?u:BA(e.options,f);E=k(f,S,O)}else if(d){const S=typeof u<"u",O=S?u:dW(e.options,f);E=k(f,S,O,!0)}else{g=[];const S=typeof e.options.getNextPageParam>"u";E=(l&&f[0]?l(f[0],0,f):!0)?k([],S,p[0]):Promise.resolve(w([],p[0],f[0]));for(let A=1;A<f.length;A++)E=E.then(I=>{if(l&&f[A]?l(f[A],A,f):!0){const P=S?p[A]:BA(e.options,I);return k(I,S,P)}return Promise.resolve(w(I,p[A],f[A]))})}return E.then(S=>({pages:S,pageParams:g}))}}}}function BA(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function dW(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function N6e(e,t){if(e.getNextPageParam&&Array.isArray(t)){const r=BA(e,t);return typeof r<"u"&&r!==null&&r!==!1}}function $6e(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const r=dW(e,t);return typeof r<"u"&&r!==null&&r!==!1}}class D6e{constructor(t={}){this.queryCache=t.queryCache||new I6e,this.mutationCache=t.mutationCache||new L6e,this.logger=t.logger||$A,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=Dk.subscribe(()=>{Dk.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Bk.subscribe(()=>{Bk.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,r;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(r=this.unsubscribeOnline)==null||r.call(this),this.unsubscribeOnline=void 0)}isFetching(t,r){const[n]=cf(t,r);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state.data}ensureQueryData(t,r,n){const o=Vg(t,r,n),i=this.getQueryData(o.queryKey);return i?Promise.resolve(i):this.fetchQuery(o)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:r,state:n})=>{const o=n.data;return[r,o]})}setQueryData(t,r,n){const o=this.queryCache.find(t),i=o==null?void 0:o.state.data,a=C6e(r,i);if(typeof a>"u")return;const l=Vg(t),s=this.defaultQueryOptions(l);return this.queryCache.build(this,s).setData(a,{...n,manual:!0})}setQueriesData(t,r,n){return xo.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:o})=>[o,this.setQueryData(o,r,n)]))}getQueryState(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state}removeQueries(t,r){const[n]=cf(t,r),o=this.queryCache;xo.batch(()=>{o.findAll(n).forEach(i=>{o.remove(i)})})}resetQueries(t,r,n){const[o,i]=cf(t,r,n),a=this.queryCache,l={type:"active",...o};return xo.batch(()=>(a.findAll(o).forEach(s=>{s.reset()}),this.refetchQueries(l,i)))}cancelQueries(t,r,n){const[o,i={}]=cf(t,r,n);typeof i.revert>"u"&&(i.revert=!0);const a=xo.batch(()=>this.queryCache.findAll(o).map(l=>l.cancel(i)));return Promise.all(a).then(ql).catch(ql)}invalidateQueries(t,r,n){const[o,i]=cf(t,r,n);return xo.batch(()=>{var a,l;if(this.queryCache.findAll(o).forEach(u=>{u.invalidate()}),o.refetchType==="none")return Promise.resolve();const s={...o,type:(a=(l=o.refetchType)!=null?l:o.type)!=null?a:"active"};return this.refetchQueries(s,i)})}refetchQueries(t,r,n){const[o,i]=cf(t,r,n),a=xo.batch(()=>this.queryCache.findAll(o).filter(s=>!s.isDisabled()).map(s=>{var u;return s.fetch(void 0,{...i,cancelRefetch:(u=i==null?void 0:i.cancelRefetch)!=null?u:!0,meta:{refetchPage:o.refetchPage}})}));let l=Promise.all(a).then(ql);return i!=null&&i.throwOnError||(l=l.catch(ql)),l}fetchQuery(t,r,n){const o=Vg(t,r,n),i=this.defaultQueryOptions(o);typeof i.retry>"u"&&(i.retry=!1);const a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(t,r,n){return this.fetchQuery(t,r,n).then(ql).catch(ql)}fetchInfiniteQuery(t,r,n){const o=Vg(t,r,n);return o.behavior=DA(),this.fetchQuery(o)}prefetchInfiniteQuery(t,r,n){return this.fetchInfiniteQuery(t,r,n).then(ql).catch(ql)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,r){const n=this.queryDefaults.find(o=>pp(t)===pp(o.queryKey));n?n.defaultOptions=r:this.queryDefaults.push({queryKey:t,defaultOptions:r})}getQueryDefaults(t){if(!t)return;const r=this.queryDefaults.find(n=>Nk(t,n.queryKey));return r==null?void 0:r.defaultOptions}setMutationDefaults(t,r){const n=this.mutationDefaults.find(o=>pp(t)===pp(o.mutationKey));n?n.defaultOptions=r:this.mutationDefaults.push({mutationKey:t,defaultOptions:r})}getMutationDefaults(t){if(!t)return;const r=this.mutationDefaults.find(n=>Nk(t,n.mutationKey));return r==null?void 0:r.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const r={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!r.queryHash&&r.queryKey&&(r.queryHash=PA(r.queryKey,r)),typeof r.refetchOnReconnect>"u"&&(r.refetchOnReconnect=r.networkMode!=="always"),typeof r.useErrorBoundary>"u"&&(r.useErrorBoundary=!!r.suspense),r}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class fW extends X1{constructor(t,r){super(),this.client=t,this.options=r,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(r)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),mW(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return jA(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return jA(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,r){const n=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),HA(n,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=n.queryKey),this.updateQuery();const i=this.hasListeners();i&&pW(this.currentQuery,o,this.options,n)&&this.executeFetch(),this.updateResult(r),i&&(this.currentQuery!==o||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const a=this.computeRefetchInterval();i&&(this.currentQuery!==o||this.options.enabled!==n.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)}getOptimisticResult(t){const r=this.client.getQueryCache().build(this.client,t),n=this.createResult(r,t);return j6e(this,n,t)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(t){const r={};return Object.keys(t).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),t[n])})}),r}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...r}={}){return this.fetch({...r,meta:{refetchPage:t}})}fetchOptimistic(t){const r=this.client.defaultQueryOptions(t),n=this.client.getQueryCache().build(this.client,r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){var r;return this.executeFetch({...t,cancelRefetch:(r=t.cancelRefetch)!=null?r:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let r=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(ql)),r}updateStaleTimeout(){if(this.clearStaleTimeout(),Q1||this.currentResult.isStale||!RA(this.options.staleTime))return;const r=ZF(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},r)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(Q1||this.options.enabled===!1||!RA(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Dk.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(t,r){const n=this.currentQuery,o=this.options,i=this.currentResult,a=this.currentResultState,l=this.currentResultOptions,s=t!==n,u=s?t.state:this.currentQueryInitialState,c=s?this.currentResult:this.previousQueryResult,{state:d}=t;let{dataUpdatedAt:f,error:p,errorUpdatedAt:g,fetchStatus:v,status:b}=d,y=!1,w=!1,k;if(r._optimisticResults){const A=this.hasListeners(),I=!A&&mW(t,r),H=A&&pW(t,n,r,o);(I||H)&&(v=jk(t.options.networkMode)?"fetching":"paused",f||(b="loading")),r._optimisticResults==="isRestoring"&&(v="idle")}if(r.keepPreviousData&&!d.dataUpdatedAt&&c!=null&&c.isSuccess&&b!=="error")k=c.data,f=c.dataUpdatedAt,b=c.status,y=!0;else if(r.select&&typeof d.data<"u")if(i&&d.data===(a==null?void 0:a.data)&&r.select===this.selectFn)k=this.selectResult;else try{this.selectFn=r.select,k=r.select(d.data),k=NA(i==null?void 0:i.data,k,r),this.selectResult=k,this.selectError=null}catch(A){this.selectError=A}else k=d.data;if(typeof r.placeholderData<"u"&&typeof k>"u"&&b==="loading"){let A;if(i!=null&&i.isPlaceholderData&&r.placeholderData===(l==null?void 0:l.placeholderData))A=i.data;else if(A=typeof r.placeholderData=="function"?r.placeholderData():r.placeholderData,r.select&&typeof A<"u")try{A=r.select(A),this.selectError=null}catch(I){this.selectError=I}typeof A<"u"&&(b="success",k=NA(i==null?void 0:i.data,A,r),w=!0)}this.selectError&&(p=this.selectError,k=this.selectResult,g=Date.now(),b="error");const E=v==="fetching",_=b==="loading",S=b==="error";return{status:b,fetchStatus:v,isLoading:_,isSuccess:b==="success",isError:S,isInitialLoading:_&&E,data:k,dataUpdatedAt:f,error:p,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:E,isRefetching:E&&!_,isLoadingError:S&&d.dataUpdatedAt===0,isPaused:v==="paused",isPlaceholderData:w,isPreviousData:y,isRefetchError:S&&d.dataUpdatedAt!==0,isStale:MA(t,r),refetch:this.refetch,remove:this.remove}}updateResult(t){const r=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,HA(n,r))return;this.currentResult=n;const o={cache:!0},i=()=>{if(!r)return!0;const{notifyOnChangeProps:a}=this.options,l=typeof a=="function"?a():a;if(l==="all"||!l&&!this.trackedProps.size)return!0;const s=new Set(l??this.trackedProps);return this.options.useErrorBoundary&&s.add("error"),Object.keys(this.currentResult).some(u=>{const c=u;return this.currentResult[c]!==r[c]&&s.has(c)})};(t==null?void 0:t.listeners)!==!1&&i()&&(o.listeners=!0),this.notify({...o,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const r=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const r={};t.type==="success"?r.onSuccess=!t.manual:t.type==="error"&&!Mk(t.error)&&(r.onError=!0),this.updateResult(r),this.hasListeners()&&this.updateTimers()}notify(t){xo.batch(()=>{if(t.onSuccess){var r,n,o,i;(r=(n=this.options).onSuccess)==null||r.call(n,this.currentResult.data),(o=(i=this.options).onSettled)==null||o.call(i,this.currentResult.data,null)}else if(t.onError){var a,l,s,u;(a=(l=this.options).onError)==null||a.call(l,this.currentResult.error),(s=(u=this.options).onSettled)==null||s.call(u,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function B6e(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function mW(e,t){return B6e(e,t)||e.state.dataUpdatedAt>0&&jA(e,t,t.refetchOnMount)}function jA(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&MA(e,t)}return!1}function pW(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&MA(e,r)}function MA(e,t){return e.isStaleByTime(t.staleTime)}function j6e(e,t,r){return r.keepPreviousData?!1:r.placeholderData!==void 0?t.isPlaceholderData:!HA(e.getCurrentResult(),t)}class M6e extends fW{constructor(t,r){super(t,r)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,r){super.setOptions({...t,behavior:DA()},r)}getOptimisticResult(t){return t.behavior=DA(),super.getOptimisticResult(t)}fetchNextPage({pageParam:t,...r}={}){return this.fetch({...r,meta:{fetchMore:{direction:"forward",pageParam:t}}})}fetchPreviousPage({pageParam:t,...r}={}){return this.fetch({...r,meta:{fetchMore:{direction:"backward",pageParam:t}}})}createResult(t,r){var n,o,i,a,l,s;const{state:u}=t,c=super.createResult(t,r),{isFetching:d,isRefetching:f}=c,p=d&&((n=u.fetchMeta)==null||(o=n.fetchMore)==null?void 0:o.direction)==="forward",g=d&&((i=u.fetchMeta)==null||(a=i.fetchMore)==null?void 0:a.direction)==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:N6e(r,(l=u.data)==null?void 0:l.pages),hasPreviousPage:$6e(r,(s=u.data)==null?void 0:s.pages),isFetchingNextPage:p,isFetchingPreviousPage:g,isRefetching:f&&!p&&!g}}}var hW={exports:{}},zA={};/**
|
|
72
|
+
`:""}var a6e=i6e,l6e={dump:a6e};function IA(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var s6e=bi,u6e=Zz,c6e=rF,d6e=lF,f6e=sF,m6e=wA,p6e=RF.load,h6e=RF.loadAll,g6e=l6e.dump,v6e=Qi,b6e={binary:mF,float:aF,map:tF,null:nF,pairs:hF,set:gF,timestamp:dF,bool:oF,int:iF,merge:fF,omap:pF,seq:eF,str:Jz},x6e=IA("safeLoad","load"),y6e=IA("safeLoadAll","loadAll"),w6e=IA("safeDump","dump"),QF={Type:s6e,Schema:u6e,FAILSAFE_SCHEMA:c6e,JSON_SCHEMA:d6e,CORE_SCHEMA:f6e,DEFAULT_SCHEMA:m6e,load:p6e,loadAll:h6e,dump:g6e,YAMLException:v6e,types:b6e,safeLoad:x6e,safeLoadAll:y6e,safeDump:w6e};class X1{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const r={listener:t};return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Q1=typeof window>"u"||"Deno"in window;function ql(){}function C6e(e,t){return typeof e=="function"?e(t):e}function RA(e){return typeof e=="number"&&e>=0&&e!==1/0}function ZF(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Vg(e,t,r){return $k(e)?typeof t=="function"?{...r,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function cf(e,t,r){return $k(e)?[{...t,queryKey:e},r]:[e||{},t]}function JF(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:a,stale:l}=e;if($k(a)){if(n){if(t.queryHash!==PA(a,t.options))return!1}else if(!Nk(t.queryKey,a))return!1}if(r!=="all"){const s=t.isActive();if(r==="active"&&!s||r==="inactive"&&s)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||typeof o<"u"&&o!==t.state.fetchStatus||i&&!i(t))}function eW(e,t){const{exact:r,fetching:n,predicate:o,mutationKey:i}=e;if($k(i)){if(!t.options.mutationKey)return!1;if(r){if(pp(t.options.mutationKey)!==pp(i))return!1}else if(!Nk(t.options.mutationKey,i))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||o&&!o(t))}function PA(e,t){return((t==null?void 0:t.queryKeyHashFn)||pp)(e)}function pp(e){return JSON.stringify(e,(t,r)=>LA(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function Nk(e,t){return tW(e,t)}function tW(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!tW(e[r],t[r])):!1}function rW(e,t){if(e===t)return e;const r=nW(e)&&nW(t);if(r||LA(e)&&LA(t)){const n=r?e.length:Object.keys(e).length,o=r?t:Object.keys(t),i=o.length,a=r?[]:{};let l=0;for(let s=0;s<i;s++){const u=r?s:o[s];a[u]=rW(e[u],t[u]),a[u]===e[u]&&l++}return n===i&&l===n?e:a}return t}function HA(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function nW(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function LA(e){if(!oW(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const r=t.prototype;return!(!oW(r)||!r.hasOwnProperty("isPrototypeOf"))}function oW(e){return Object.prototype.toString.call(e)==="[object Object]"}function $k(e){return Array.isArray(e)}function iW(e){return new Promise(t=>{setTimeout(t,e)})}function aW(e){iW(0).then(e)}function k6e(){if(typeof AbortController=="function")return new AbortController}function NA(e,t,r){return r.isDataEqual!=null&&r.isDataEqual(e,t)?e:typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?rW(e,t):t}class _6e extends X1{constructor(){super(),this.setup=t=>{if(!Q1&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),window.addEventListener("focus",r,!1),()=>{window.removeEventListener("visibilitychange",r),window.removeEventListener("focus",r)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const Dk=new _6e,lW=["online","offline"];class T6e extends X1{constructor(){super(),this.setup=t=>{if(!Q1&&window.addEventListener){const r=()=>t();return lW.forEach(n=>{window.addEventListener(n,r,!1)}),()=>{lW.forEach(n=>{window.removeEventListener(n,r)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setOnline(n):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Bk=new T6e;function S6e(e){return Math.min(1e3*2**e,3e4)}function jk(e){return(e??"online")==="online"?Bk.isOnline():!0}class sW{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Mk(e){return e instanceof sW}function uW(e){let t=!1,r=0,n=!1,o,i,a;const l=new Promise((b,y)=>{i=b,a=y}),s=b=>{n||(p(new sW(b)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!Dk.isFocused()||e.networkMode!=="always"&&!Bk.isOnline(),f=b=>{n||(n=!0,e.onSuccess==null||e.onSuccess(b),o==null||o(),i(b))},p=b=>{n||(n=!0,e.onError==null||e.onError(b),o==null||o(),a(b))},g=()=>new Promise(b=>{o=y=>{const w=n||!d();return w&&b(y),w},e.onPause==null||e.onPause()}).then(()=>{o=void 0,n||e.onContinue==null||e.onContinue()}),v=()=>{if(n)return;let b;try{b=e.fn()}catch(y){b=Promise.reject(y)}Promise.resolve(b).then(f).catch(y=>{var w,k;if(n)return;const E=(w=e.retry)!=null?w:3,_=(k=e.retryDelay)!=null?k:S6e,S=typeof _=="function"?_(r,y):_,O=E===!0||typeof E=="number"&&r<E||typeof E=="function"&&E(r,y);if(t||!O){p(y);return}r++,e.onFail==null||e.onFail(r,y),iW(S).then(()=>{if(d())return g()}).then(()=>{t?p(y):v()})})};return jk(e.networkMode)?v():g().then(v),{promise:l,cancel:s,continue:()=>(o==null?void 0:o())?l:Promise.resolve(),cancelRetry:u,continueRetry:c}}const $A=console;function E6e(){let e=[],t=0,r=c=>{c()},n=c=>{c()};const o=c=>{let d;t++;try{d=c()}finally{t--,t||l()}return d},i=c=>{t?e.push(c):aW(()=>{r(c)})},a=c=>(...d)=>{i(()=>{c(...d)})},l=()=>{const c=e;e=[],c.length&&aW(()=>{n(()=>{c.forEach(d=>{r(d)})})})};return{batch:o,batchCalls:a,schedule:i,setNotifyFunction:c=>{r=c},setBatchNotifyFunction:c=>{n=c}}}const xo=E6e();class cW{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),RA(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(Q1?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class O6e extends cW{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||$A,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||A6e(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,r){const n=NA(this.state.data,t,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){this.dispatch({type:"setState",state:t,setStateOptions:r})}cancel(t){var r;const n=this.promise;return(r=this.retryer)==null||r.cancel(t),n?n.then(ql).catch(ql):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!ZF(this.state.dataUpdatedAt,t)}onFocus(){var t;const r=this.observers.find(n=>n.shouldFetchOnWindowFocus());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const r=this.observers.find(n=>n.shouldFetchOnReconnect());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),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:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,r){var n,o;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&r!=null&&r.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(g=>g.options.queryFn);p&&this.setOptions(p.options)}const a=k6e(),l={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};s(l);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(l)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),c={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};if(s(c),(n=this.options.behavior)==null||n.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((o=c.fetchOptions)==null?void 0:o.meta)){var d;this.dispatch({type:"fetch",meta:(d=c.fetchOptions)==null?void 0:d.meta})}const f=p=>{if(Mk(p)&&p.silent||this.dispatch({type:"error",error:p}),!Mk(p)){var g,v,b,y;(g=(v=this.cache.config).onError)==null||g.call(v,p,this),(b=(y=this.cache.config).onSettled)==null||b.call(y,this.state.data,p,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=uW({fn:c.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:p=>{var g,v,b,y;if(typeof p>"u"){f(new Error(this.queryHash+" data is undefined"));return}this.setData(p),(g=(v=this.cache.config).onSuccess)==null||g.call(v,p,this),(b=(y=this.cache.config).onSettled)==null||b.call(y,p,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:f,onFail:(p,g)=>{this.dispatch({type:"failed",failureCount:p,error:g})},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(t){const r=n=>{var o,i;switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(o=t.meta)!=null?o:null,fetchStatus:jk(this.options.networkMode)?"fetching":"paused",...!n.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return Mk(a)&&a.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),xo.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function A6e(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof t<"u",n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}class I6e extends X1{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,r,n){var o;const i=r.queryKey,a=(o=r.queryHash)!=null?o:PA(i,r);let l=this.get(a);return l||(l=new O6e({cache:this,logger:t.getLogger(),queryKey:i,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(l)),l}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const r=this.queriesMap[t.queryHash];r&&(t.destroy(),this.queries=this.queries.filter(n=>n!==t),r===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){xo.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,r){const[n]=cf(t,r);return typeof n.exact>"u"&&(n.exact=!0),this.queries.find(o=>JF(n,o))}findAll(t,r){const[n]=cf(t,r);return Object.keys(n).length>0?this.queries.filter(o=>JF(n,o)):this.queries}notify(t){xo.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}onFocus(){xo.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){xo.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}var R6e={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_USED_COMPONENTS_TableEditor:"false",VITE_XMLUI_VERSION:"0.9.75 (built 7/16/2025)"};class P6e extends cW{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||$A,this.observers=[],this.state=t.state||H6e(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(r=>r!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,r;return(t=(r=this.retryer)==null?void 0:r.continue())!=null?t:this.execute()}async execute(){const t=()=>{var O;return this.retryer=uW({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(A,I)=>{this.dispatch({type:"failed",failureCount:A,error:I})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(O=this.options.retry)!=null?O:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},r=this.state.status==="loading";try{var n,o,i,a,l,s,u,c;if(!r){var d,f,p,g;this.dispatch({type:"loading",variables:this.options.variables}),await((d=(f=this.mutationCache.config).onMutate)==null?void 0:d.call(f,this.state.variables,this));const A=await((p=(g=this.options).onMutate)==null?void 0:p.call(g,this.state.variables));A!==this.state.context&&this.dispatch({type:"loading",context:A,variables:this.state.variables})}const O=await t();return await((n=(o=this.mutationCache.config).onSuccess)==null?void 0:n.call(o,O,this.state.variables,this.state.context,this)),await((i=(a=this.options).onSuccess)==null?void 0:i.call(a,O,this.state.variables,this.state.context)),await((l=(s=this.mutationCache.config).onSettled)==null?void 0:l.call(s,O,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,O,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:O}),O}catch(O){try{var v,b,y,w,k,E,_,S;throw await((v=(b=this.mutationCache.config).onError)==null?void 0:v.call(b,O,this.state.variables,this.state.context,this)),R6e.NODE_ENV,await((y=(w=this.options).onError)==null?void 0:y.call(w,O,this.state.variables,this.state.context)),await((k=(E=this.mutationCache.config).onSettled)==null?void 0:k.call(E,void 0,O,this.state.variables,this.state.context,this)),await((_=(S=this.options).onSettled)==null?void 0:_.call(S,void 0,O,this.state.variables,this.state.context)),O}finally{this.dispatch({type:"error",error:O})}}}dispatch(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"loading":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!jk(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...n,...t.state}}};this.state=r(this.state),xo.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function H6e(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class L6e extends X1{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,r,n){const o=new P6e({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(r),state:n,defaultOptions:r.mutationKey?t.getMutationDefaults(r.mutationKey):void 0});return this.add(o),o}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(r=>r!==t),this.notify({type:"removed",mutation:t})}clear(){xo.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(r=>eW(t,r))}findAll(t){return this.mutations.filter(r=>eW(t,r))}notify(t){xo.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const r=this.mutations.filter(n=>n.state.isPaused);return xo.batch(()=>r.reduce((n,o)=>n.then(()=>o.continue().catch(ql)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function DA(){return{onFetch:e=>{e.fetchFn=()=>{var t,r,n,o,i,a;const l=(t=e.fetchOptions)==null||(r=t.meta)==null?void 0:r.refetchPage,s=(n=e.fetchOptions)==null||(o=n.meta)==null?void 0:o.fetchMore,u=s==null?void 0:s.pageParam,c=(s==null?void 0:s.direction)==="forward",d=(s==null?void 0:s.direction)==="backward",f=((i=e.state.data)==null?void 0:i.pages)||[],p=((a=e.state.data)==null?void 0:a.pageParams)||[];let g=p,v=!1;const b=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>{var O;if((O=e.signal)!=null&&O.aborted)v=!0;else{var A;(A=e.signal)==null||A.addEventListener("abort",()=>{v=!0})}return e.signal}})},y=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),w=(S,O,A,I)=>(g=I?[O,...g]:[...g,O],I?[A,...S]:[...S,A]),k=(S,O,A,I)=>{if(v)return Promise.reject("Cancelled");if(typeof A>"u"&&!O&&S.length)return Promise.resolve(S);const H={queryKey:e.queryKey,pageParam:A,meta:e.options.meta};b(H);const P=y(H);return Promise.resolve(P).then(B=>w(S,A,B,I))};let E;if(!f.length)E=k([]);else if(c){const S=typeof u<"u",O=S?u:BA(e.options,f);E=k(f,S,O)}else if(d){const S=typeof u<"u",O=S?u:dW(e.options,f);E=k(f,S,O,!0)}else{g=[];const S=typeof e.options.getNextPageParam>"u";E=(l&&f[0]?l(f[0],0,f):!0)?k([],S,p[0]):Promise.resolve(w([],p[0],f[0]));for(let A=1;A<f.length;A++)E=E.then(I=>{if(l&&f[A]?l(f[A],A,f):!0){const P=S?p[A]:BA(e.options,I);return k(I,S,P)}return Promise.resolve(w(I,p[A],f[A]))})}return E.then(S=>({pages:S,pageParams:g}))}}}}function BA(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function dW(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function N6e(e,t){if(e.getNextPageParam&&Array.isArray(t)){const r=BA(e,t);return typeof r<"u"&&r!==null&&r!==!1}}function $6e(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const r=dW(e,t);return typeof r<"u"&&r!==null&&r!==!1}}class D6e{constructor(t={}){this.queryCache=t.queryCache||new I6e,this.mutationCache=t.mutationCache||new L6e,this.logger=t.logger||$A,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=Dk.subscribe(()=>{Dk.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Bk.subscribe(()=>{Bk.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,r;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(r=this.unsubscribeOnline)==null||r.call(this),this.unsubscribeOnline=void 0)}isFetching(t,r){const[n]=cf(t,r);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state.data}ensureQueryData(t,r,n){const o=Vg(t,r,n),i=this.getQueryData(o.queryKey);return i?Promise.resolve(i):this.fetchQuery(o)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:r,state:n})=>{const o=n.data;return[r,o]})}setQueryData(t,r,n){const o=this.queryCache.find(t),i=o==null?void 0:o.state.data,a=C6e(r,i);if(typeof a>"u")return;const l=Vg(t),s=this.defaultQueryOptions(l);return this.queryCache.build(this,s).setData(a,{...n,manual:!0})}setQueriesData(t,r,n){return xo.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:o})=>[o,this.setQueryData(o,r,n)]))}getQueryState(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state}removeQueries(t,r){const[n]=cf(t,r),o=this.queryCache;xo.batch(()=>{o.findAll(n).forEach(i=>{o.remove(i)})})}resetQueries(t,r,n){const[o,i]=cf(t,r,n),a=this.queryCache,l={type:"active",...o};return xo.batch(()=>(a.findAll(o).forEach(s=>{s.reset()}),this.refetchQueries(l,i)))}cancelQueries(t,r,n){const[o,i={}]=cf(t,r,n);typeof i.revert>"u"&&(i.revert=!0);const a=xo.batch(()=>this.queryCache.findAll(o).map(l=>l.cancel(i)));return Promise.all(a).then(ql).catch(ql)}invalidateQueries(t,r,n){const[o,i]=cf(t,r,n);return xo.batch(()=>{var a,l;if(this.queryCache.findAll(o).forEach(u=>{u.invalidate()}),o.refetchType==="none")return Promise.resolve();const s={...o,type:(a=(l=o.refetchType)!=null?l:o.type)!=null?a:"active"};return this.refetchQueries(s,i)})}refetchQueries(t,r,n){const[o,i]=cf(t,r,n),a=xo.batch(()=>this.queryCache.findAll(o).filter(s=>!s.isDisabled()).map(s=>{var u;return s.fetch(void 0,{...i,cancelRefetch:(u=i==null?void 0:i.cancelRefetch)!=null?u:!0,meta:{refetchPage:o.refetchPage}})}));let l=Promise.all(a).then(ql);return i!=null&&i.throwOnError||(l=l.catch(ql)),l}fetchQuery(t,r,n){const o=Vg(t,r,n),i=this.defaultQueryOptions(o);typeof i.retry>"u"&&(i.retry=!1);const a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(t,r,n){return this.fetchQuery(t,r,n).then(ql).catch(ql)}fetchInfiniteQuery(t,r,n){const o=Vg(t,r,n);return o.behavior=DA(),this.fetchQuery(o)}prefetchInfiniteQuery(t,r,n){return this.fetchInfiniteQuery(t,r,n).then(ql).catch(ql)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,r){const n=this.queryDefaults.find(o=>pp(t)===pp(o.queryKey));n?n.defaultOptions=r:this.queryDefaults.push({queryKey:t,defaultOptions:r})}getQueryDefaults(t){if(!t)return;const r=this.queryDefaults.find(n=>Nk(t,n.queryKey));return r==null?void 0:r.defaultOptions}setMutationDefaults(t,r){const n=this.mutationDefaults.find(o=>pp(t)===pp(o.mutationKey));n?n.defaultOptions=r:this.mutationDefaults.push({mutationKey:t,defaultOptions:r})}getMutationDefaults(t){if(!t)return;const r=this.mutationDefaults.find(n=>Nk(t,n.mutationKey));return r==null?void 0:r.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const r={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!r.queryHash&&r.queryKey&&(r.queryHash=PA(r.queryKey,r)),typeof r.refetchOnReconnect>"u"&&(r.refetchOnReconnect=r.networkMode!=="always"),typeof r.useErrorBoundary>"u"&&(r.useErrorBoundary=!!r.suspense),r}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class fW extends X1{constructor(t,r){super(),this.client=t,this.options=r,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(r)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),mW(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return jA(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return jA(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,r){const n=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),HA(n,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=n.queryKey),this.updateQuery();const i=this.hasListeners();i&&pW(this.currentQuery,o,this.options,n)&&this.executeFetch(),this.updateResult(r),i&&(this.currentQuery!==o||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const a=this.computeRefetchInterval();i&&(this.currentQuery!==o||this.options.enabled!==n.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)}getOptimisticResult(t){const r=this.client.getQueryCache().build(this.client,t),n=this.createResult(r,t);return j6e(this,n,t)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(t){const r={};return Object.keys(t).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),t[n])})}),r}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...r}={}){return this.fetch({...r,meta:{refetchPage:t}})}fetchOptimistic(t){const r=this.client.defaultQueryOptions(t),n=this.client.getQueryCache().build(this.client,r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){var r;return this.executeFetch({...t,cancelRefetch:(r=t.cancelRefetch)!=null?r:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let r=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(ql)),r}updateStaleTimeout(){if(this.clearStaleTimeout(),Q1||this.currentResult.isStale||!RA(this.options.staleTime))return;const r=ZF(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},r)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(Q1||this.options.enabled===!1||!RA(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Dk.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(t,r){const n=this.currentQuery,o=this.options,i=this.currentResult,a=this.currentResultState,l=this.currentResultOptions,s=t!==n,u=s?t.state:this.currentQueryInitialState,c=s?this.currentResult:this.previousQueryResult,{state:d}=t;let{dataUpdatedAt:f,error:p,errorUpdatedAt:g,fetchStatus:v,status:b}=d,y=!1,w=!1,k;if(r._optimisticResults){const A=this.hasListeners(),I=!A&&mW(t,r),H=A&&pW(t,n,r,o);(I||H)&&(v=jk(t.options.networkMode)?"fetching":"paused",f||(b="loading")),r._optimisticResults==="isRestoring"&&(v="idle")}if(r.keepPreviousData&&!d.dataUpdatedAt&&c!=null&&c.isSuccess&&b!=="error")k=c.data,f=c.dataUpdatedAt,b=c.status,y=!0;else if(r.select&&typeof d.data<"u")if(i&&d.data===(a==null?void 0:a.data)&&r.select===this.selectFn)k=this.selectResult;else try{this.selectFn=r.select,k=r.select(d.data),k=NA(i==null?void 0:i.data,k,r),this.selectResult=k,this.selectError=null}catch(A){this.selectError=A}else k=d.data;if(typeof r.placeholderData<"u"&&typeof k>"u"&&b==="loading"){let A;if(i!=null&&i.isPlaceholderData&&r.placeholderData===(l==null?void 0:l.placeholderData))A=i.data;else if(A=typeof r.placeholderData=="function"?r.placeholderData():r.placeholderData,r.select&&typeof A<"u")try{A=r.select(A),this.selectError=null}catch(I){this.selectError=I}typeof A<"u"&&(b="success",k=NA(i==null?void 0:i.data,A,r),w=!0)}this.selectError&&(p=this.selectError,k=this.selectResult,g=Date.now(),b="error");const E=v==="fetching",_=b==="loading",S=b==="error";return{status:b,fetchStatus:v,isLoading:_,isSuccess:b==="success",isError:S,isInitialLoading:_&&E,data:k,dataUpdatedAt:f,error:p,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:E,isRefetching:E&&!_,isLoadingError:S&&d.dataUpdatedAt===0,isPaused:v==="paused",isPlaceholderData:w,isPreviousData:y,isRefetchError:S&&d.dataUpdatedAt!==0,isStale:MA(t,r),refetch:this.refetch,remove:this.remove}}updateResult(t){const r=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,HA(n,r))return;this.currentResult=n;const o={cache:!0},i=()=>{if(!r)return!0;const{notifyOnChangeProps:a}=this.options,l=typeof a=="function"?a():a;if(l==="all"||!l&&!this.trackedProps.size)return!0;const s=new Set(l??this.trackedProps);return this.options.useErrorBoundary&&s.add("error"),Object.keys(this.currentResult).some(u=>{const c=u;return this.currentResult[c]!==r[c]&&s.has(c)})};(t==null?void 0:t.listeners)!==!1&&i()&&(o.listeners=!0),this.notify({...o,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const r=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const r={};t.type==="success"?r.onSuccess=!t.manual:t.type==="error"&&!Mk(t.error)&&(r.onError=!0),this.updateResult(r),this.hasListeners()&&this.updateTimers()}notify(t){xo.batch(()=>{if(t.onSuccess){var r,n,o,i;(r=(n=this.options).onSuccess)==null||r.call(n,this.currentResult.data),(o=(i=this.options).onSettled)==null||o.call(i,this.currentResult.data,null)}else if(t.onError){var a,l,s,u;(a=(l=this.options).onError)==null||a.call(l,this.currentResult.error),(s=(u=this.options).onSettled)==null||s.call(u,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function B6e(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function mW(e,t){return B6e(e,t)||e.state.dataUpdatedAt>0&&jA(e,t,t.refetchOnMount)}function jA(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&MA(e,t)}return!1}function pW(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&MA(e,r)}function MA(e,t){return e.isStaleByTime(t.staleTime)}function j6e(e,t,r){return r.keepPreviousData?!1:r.placeholderData!==void 0?t.isPlaceholderData:!HA(e.getCurrentResult(),t)}class M6e extends fW{constructor(t,r){super(t,r)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,r){super.setOptions({...t,behavior:DA()},r)}getOptimisticResult(t){return t.behavior=DA(),super.getOptimisticResult(t)}fetchNextPage({pageParam:t,...r}={}){return this.fetch({...r,meta:{fetchMore:{direction:"forward",pageParam:t}}})}fetchPreviousPage({pageParam:t,...r}={}){return this.fetch({...r,meta:{fetchMore:{direction:"backward",pageParam:t}}})}createResult(t,r){var n,o,i,a,l,s;const{state:u}=t,c=super.createResult(t,r),{isFetching:d,isRefetching:f}=c,p=d&&((n=u.fetchMeta)==null||(o=n.fetchMore)==null?void 0:o.direction)==="forward",g=d&&((i=u.fetchMeta)==null||(a=i.fetchMore)==null?void 0:a.direction)==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:N6e(r,(l=u.data)==null?void 0:l.pages),hasPreviousPage:$6e(r,(s=u.data)==null?void 0:s.pages),isFetchingNextPage:p,isFetchingPreviousPage:g,isRefetching:f&&!p&&!g}}}var hW={exports:{}},zA={};/**
|
|
73
73
|
* @license React
|
|
74
74
|
* use-sync-external-store-shim.production.js
|
|
75
75
|
*
|
|
@@ -198,7 +198,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
198
198
|
* This source code is licensed under the MIT license found in the
|
|
199
199
|
* LICENSE file in the root directory of this source tree.
|
|
200
200
|
*/var RY;function sBe(){return RY||(RY=1,function(e){function t(q,W){var M=q.length;q.push(W);e:for(;0<M;){var V=M-1>>>1,N=q[V];if(0<o(N,W))q[V]=W,q[M]=N,M=V;else break e}}function r(q){return q.length===0?null:q[0]}function n(q){if(q.length===0)return null;var W=q[0],M=q.pop();if(M!==W){q[0]=M;e:for(var V=0,N=q.length,Y=N>>>1;V<Y;){var G=2*(V+1)-1,F=q[G],K=G+1,J=q[K];if(0>o(F,M))K<N&&0>o(J,F)?(q[V]=J,q[K]=M,V=K):(q[V]=F,q[G]=M,V=G);else if(K<N&&0>o(J,M))q[V]=J,q[K]=M,V=K;else break e}}return W}function o(q,W){var M=q.sortIndex-W.sortIndex;return M!==0?M:q.id-W.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],c=1,d=null,f=3,p=!1,g=!1,v=!1,b=!1,y=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function E(q){for(var W=r(u);W!==null;){if(W.callback===null)n(u);else if(W.startTime<=q)n(u),W.sortIndex=W.expirationTime,t(s,W);else break;W=r(u)}}function _(q){if(v=!1,E(q),!g)if(r(s)!==null)g=!0,S||(S=!0,L());else{var W=r(u);W!==null&&j(_,W.startTime-q)}}var S=!1,O=-1,A=5,I=-1;function H(){return b?!0:!(e.unstable_now()-I<A)}function P(){if(b=!1,S){var q=e.unstable_now();I=q;var W=!0;try{e:{g=!1,v&&(v=!1,w(O),O=-1),p=!0;var M=f;try{t:{for(E(q),d=r(s);d!==null&&!(d.expirationTime>q&&H());){var V=d.callback;if(typeof V=="function"){d.callback=null,f=d.priorityLevel;var N=V(d.expirationTime<=q);if(q=e.unstable_now(),typeof N=="function"){d.callback=N,E(q),W=!0;break t}d===r(s)&&n(s),E(q)}else n(s);d=r(s)}if(d!==null)W=!0;else{var Y=r(u);Y!==null&&j(_,Y.startTime-q),W=!1}}break e}finally{d=null,f=M,p=!1}W=void 0}}finally{W?L():S=!1}}}var L;if(typeof k=="function")L=function(){k(P)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,z=B.port2;B.port1.onmessage=P,L=function(){z.postMessage(null)}}else L=function(){y(P,0)};function j(q,W){O=y(function(){q(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(q){q.callback=null},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(q){switch(f){case 1:case 2:case 3:var W=3;break;default:W=f}var M=f;f=W;try{return q()}finally{f=M}},e.unstable_requestPaint=function(){b=!0},e.unstable_runWithPriority=function(q,W){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var M=f;f=q;try{return W()}finally{f=M}},e.unstable_scheduleCallback=function(q,W,M){var V=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?V+M:V):M=V,q){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=M+N,q={id:c++,callback:W,priorityLevel:q,startTime:M,expirationTime:N,sortIndex:-1},M>V?(q.sortIndex=M,t(u,q),r(s)===null&&q===r(u)&&(v?(w(O),O=-1):v=!0,j(_,M-V))):(q.sortIndex=N,t(s,q),g||p||(g=!0,S||(S=!0,L()))),q},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(q){var W=f;return function(){var M=f;f=W;try{return q.apply(this,arguments)}finally{f=M}}}}(nP)),nP}IY.exports=sBe();var oP=IY.exports;const gT=Symbol(),uBe=Symbol(),PY=typeof window>"u"||/ServerSideRendering/.test(window.navigator&&window.navigator.userAgent)?m.useEffect:m.useLayoutEffect,cBe=oP.unstable_runWithPriority?e=>oP.unstable_runWithPriority(oP.unstable_NormalPriority,e):e=>e();function iP(e){const t=m.createContext({[gT]:{v:{current:e},n:{current:-1},l:new Set,u:n=>n()}});var r;return t[uBe]=t.Provider,t.Provider=(r=t.Provider,({value:n,children:o})=>{const i=m.useRef(n),a=m.useRef(0),[l,s]=m.useState(null);l&&(l(n),s(null));const u=m.useRef();if(!u.current){const c=new Set,d=(f,p)=>{Hn.unstable_batchedUpdates(()=>{a.current+=1;const g={n:a.current};p!=null&&p.suspense&&(g.n*=-1,g.p=new Promise(v=>{s(()=>b=>{g.v=b,delete g.p,v(b)})})),c.forEach(v=>v(g)),f()})};u.current={[gT]:{v:i,n:a,l:c,u:d}}}return PY(()=>{i.current=n,a.current+=1,cBe(()=>{u.current[gT].l.forEach(c=>{c({n:a.current,v:n})})})},[n]),m.createElement(r,{value:u.current},o)}),delete t.Consumer,t}function Bx(e,t){const r=m.useContext(e)[gT],{v:{current:n},n:{current:o},l:i}=r,a=t(n),[l,s]=m.useReducer((u,c)=>{if(!c)return[n,a];if("p"in c)throw c.p;if(c.n===o)return Object.is(u[1],a)?u:[n,a];try{if("v"in c){if(Object.is(u[0],c.v))return u;const d=t(c.v);return Object.is(u[1],d)?u:[c.v,d]}}catch{}return[...u]},[n,a]);return Object.is(l[1],a)||s(),PY(()=>(i.add(s),()=>{i.delete(s)}),[i]),l[1]}const vT=iP(null),dBe=({children:e})=>{const[t,r]=m.useState(Jt),[n,o]=m.useState(!0),i=m.useCallback(l=>{r(s=>({...s,[l.path]:l}))},[]),a=m.useMemo(()=>({content:t,storeContent:i,isIndexing:n,setIsIndexing:o}),[t,n,i]);return C.jsx(vT.Provider,{value:a,children:e})},fBe=()=>Bx(vT,e=>e.storeContent),mBe=()=>Bx(vT,e=>e==null?void 0:e.content),pBe=()=>Bx(vT,e=>e.setIsIndexing),HY=m.createContext(null);function LY(){return m.useContext(HY)}const Hp={scrollWholePage:!0,noScrollbarGutters:!1,defaultTone:"light",defaultTheme:"xmlui",onReady:yp};function hBe({children:e,style:t,layout:r,loggedInUser:n,scrollWholePage:o=Hp.scrollWholePage,noScrollbarGutters:i=Hp.noScrollbarGutters,onReady:a=Hp.onReady,header:l,navPanel:s,footer:u,navPanelDef:c,logoContentDef:d,logo:f,logoDark:p,logoLight:g,defaultTone:v,defaultTheme:b,renderChild:y,name:w}){const{getThemeVar:k}=zr(),{setActiveThemeTone:E,setActiveThemeId:_,themes:S}=D_(),O=m.useRef(!1),A=r||k("layout-App")||"condensed-sticky",I=A==null?void 0:A.trim().replace(/[\u2013\u2014\u2011]/g,"-"),{setLoggedInUser:H,mediaSize:P,forceRefreshAnchorScroll:L,appGlobals:B}=jo(),z=l!==void 0,j=c!==void 0,q=m.useMemo(()=>{const{padding:He,paddingLeft:st,paddingRight:lt,paddingTop:er,paddingBottom:mr,...dr}=t;return{...dr,"--page-padding-left":He||st,"--page-padding-right":He||lt,"--page-padding-top":He||er,"--page-padding-bottom":He||mr}},[t]);m.useEffect(()=>{H(n)},[n,H]),m.useEffect(()=>{if(!O.current)return O.current=!0,(v==="dark"||v==="light")&&E(v),b&&_(b),()=>{O.current=!1}},[v,b,E,_,S]),m.useEffect(()=>{a()},[a]);const W=P.largeScreen||!z&&I!=="condensed"&&I!=="condensed-sticky",M=m.useRef(null),V=m.useRef(null),N=o?M:V,[Y,G]=m.useState(0),[F,K]=m.useState(0),J=g7e(),ie=m.useRef(),oe=m.useCallback(He=>{ie.current=He},[]),le=m.useRef(),ce=m.useCallback(He=>{le.current=He},[]);z_(ie,m.useCallback(He=>{var st,lt;G((lt=(st=He==null?void 0:He[0])==null?void 0:st.contentRect)==null?void 0:lt.height)},[])),z_(le,m.useCallback(He=>{var st,lt;K((lt=(st=He==null?void 0:He[0])==null?void 0:st.contentRect)==null?void 0:lt.height)},[]));const pe=m.useMemo(()=>({"--header-height":!o||I==="vertical"||I==="horizontal"||I==="condensed"?"0px":F+"px","--footer-height":!o||I==="vertical"||I==="horizontal"||I==="condensed"?"0px":Y+"px","--header-abs-height":F+"px","--footer-abs-height":Y+"px","--scrollbar-width":i?"0px":J+"px"}),[Y,F,i,I,o,J]),[me,X]=m.useState(!1),Z=dl(),te=m.useCallback(()=>{X(He=>!He)},[]);_n(()=>{var He;(He=N.current)==null||He.scrollTo({top:0,left:0,behavior:"instant"})},[Z.pathname]),m.useEffect(()=>{requestAnimationFrame(()=>{L()})},[L]);const[se,de]=m.useState(null),ke=m.useCallback(He=>{de(He)},[]),[we,Ae]=m.useState(new Map),Ne=m.useCallback(He=>{Ae(He)},[]),Le=m.useMemo(()=>({hasRegisteredNavPanel:j,hasRegisteredHeader:z,navPanelVisible:W,drawerVisible:me,layout:I,logo:f,logoDark:p,logoLight:g,showDrawer:()=>{X(!0)},hideDrawer:()=>{X(!1)},toggleDrawer:te,navPanelDef:c,logoContentDef:d,registerSubNavPanelSlot:ke,subNavPanelSlot:se,isNested:(B==null?void 0:B.isNested)||!1}),[j,z,W,me,I,f,p,g,te,c,d,ke,se,B==null?void 0:B.isNested]),Te=m.useMemo(()=>({linkMap:we,registerLinkMap:Ne}),[we,Ne]);m.useEffect(()=>{W&&X(!1)},[W]),m.useEffect(()=>{X(!1)},[Z,I]);const qe=[Bt.wrapper,{[Bt.scrollWholePage]:o,[Bt.noScrollbarGutters]:i,"media-large":P.largeScreen,"media-small":P.smallScreen,"media-desktop":P.desktop,"media-phone":P.phone,"media-tablet":P.tablet}];let _e;switch(I){case"vertical":_e=C.jsxs("div",{className:ze(qe,Bt.vertical),style:pe,children:[W&&C.jsx("div",{className:ze(Bt.navPanelWrapper),children:s}),C.jsxs("div",{className:Bt.contentWrapper,ref:M,children:[C.jsx("header",{ref:ce,className:ze(Bt.headerWrapper),children:l}),C.jsx("div",{className:Bt.PagesWrapper,ref:V,children:C.jsx(Ku.Provider,{value:N,children:C.jsx("div",{className:Bt.PagesWrapperInner,style:q,children:e})})}),C.jsx("div",{className:Bt.footerWrapper,ref:oe,children:u})]})]});break;case"vertical-sticky":_e=C.jsxs("div",{className:ze(qe,Bt.vertical,Bt.sticky),style:pe,children:[W&&C.jsx("div",{className:ze(Bt.navPanelWrapper),children:s}),C.jsxs("div",{className:Bt.contentWrapper,ref:M,children:[C.jsx("header",{ref:ce,className:ze(Bt.headerWrapper,Bt.sticky),children:l}),C.jsx("div",{className:Bt.PagesWrapper,ref:V,children:C.jsx(Ku.Provider,{value:N,children:C.jsx("div",{className:Bt.PagesWrapperInner,style:q,children:e})})}),C.jsx("div",{className:Bt.footerWrapper,ref:oe,children:u})]})]});break;case"vertical-full-header":_e=C.jsxs("div",{className:ze(qe,Bt.verticalFullHeader),style:pe,ref:M,children:[C.jsx("header",{className:ze(Bt.headerWrapper,Bt.sticky),ref:ce,children:l}),C.jsxs("div",{className:Bt.content,children:[W&&C.jsx("aside",{className:Bt.navPanelWrapper,children:s}),C.jsx("main",{className:Bt.contentWrapper,children:C.jsx("div",{className:Bt.PagesWrapper,ref:V,children:C.jsx(Ku.Provider,{value:N,children:C.jsx("div",{className:Bt.PagesWrapperInner,style:q,children:e})})})})]}),C.jsx("div",{className:Bt.footerWrapper,ref:oe,children:u})]});break;case"condensed":case"condensed-sticky":_e=C.jsxs("div",{className:ze(qe,Bt.horizontal,{[Bt.sticky]:I==="condensed-sticky"}),style:pe,ref:M,children:[C.jsxs("header",{className:ze("app-layout-condensed",Bt.headerWrapper,{[Bt.sticky]:I==="condensed-sticky"}),ref:ce,children:[!z&&j&&C.jsx(AY,{renderChild:y}),l]}),C.jsx("div",{className:Bt.PagesWrapper,ref:V,children:C.jsx(Ku.Provider,{value:N,children:C.jsx("div",{className:Bt.PagesWrapperInner,style:q,children:e})})}),C.jsx("div",{className:Bt.footerWrapper,ref:oe,children:u})]});break;case"horizontal":{_e=C.jsxs("div",{className:ze(qe,Bt.horizontal),style:pe,ref:M,children:[C.jsxs("header",{className:ze(Bt.headerWrapper),ref:ce,children:[l,W&&C.jsx("div",{className:Bt.navPanelWrapper,children:s})]}),C.jsx("div",{className:Bt.PagesWrapper,ref:V,children:C.jsx(Ku.Provider,{value:N,children:C.jsx("div",{className:Bt.PagesWrapperInner,style:q,children:e})})}),C.jsx("div",{className:Bt.footerWrapper,ref:oe,children:u})]});break}case"horizontal-sticky":_e=C.jsxs("div",{className:ze(qe,Bt.horizontal,Bt.sticky),style:pe,ref:M,children:[C.jsxs("header",{className:ze(Bt.headerWrapper,Bt.sticky),ref:ce,children:[l,W&&C.jsx("div",{className:Bt.navPanelWrapper,children:s})]}),C.jsx("div",{className:Bt.PagesWrapper,ref:V,children:C.jsx(Ku.Provider,{value:N,children:C.jsx("div",{className:Bt.PagesWrapperInner,style:q,children:e})})}),C.jsx("div",{className:Bt.footerWrapper,ref:oe,children:u})]});break;default:throw new Error("layout type not supported: "+I)}const Me=m.useMemo(()=>y&&c?y(c,{inDrawer:!0}):null,[y,c]),ye=m.useMemo(()=>w!==void 0?C.jsx(Op,{defaultTitle:w,titleTemplate:`%s | ${w}`}):null,[w]),Se=m.useCallback(He=>{X(He)},[]);return C.jsxs(C.Fragment,{children:[ye,C.jsx(TY.Provider,{value:Le,children:C.jsx(HY.Provider,{value:Te,children:C.jsxs(dBe,{children:[C.jsx(tBe,{open:me,onOpenChange:Se,children:C.jsx(kY,{side:"left",children:Me})}),_e]})})})]})}function aP(e){switch(e){case"vertical":case"vertical-sticky":case"vertical-full-header":return"vertical";default:return"horizontal"}}const Ks={themeVars:`'{"border-NavPanel": "var(--xmlui-border-NavPanel)", "borderHorizontal-NavPanel": "var(--xmlui-borderHorizontal-NavPanel, var(--xmlui-border-NavPanel))", "borderVertical-NavPanel": "var(--xmlui-borderVertical-NavPanel, var(--xmlui-border-NavPanel))", "borderLeft-NavPanel": "var(--xmlui-borderLeft-NavPanel, var(--xmlui-borderHorizontal-NavPanel, var(--xmlui-border-NavPanel)))", "borderRight-NavPanel": "var(--xmlui-borderRight-NavPanel, var(--xmlui-borderHorizontal-NavPanel, var(--xmlui-border-NavPanel)))", "borderTop-NavPanel": "var(--xmlui-borderTop-NavPanel, var(--xmlui-borderVertical-NavPanel, var(--xmlui-border-NavPanel)))", "borderBottom-NavPanel": "var(--xmlui-borderBottom-NavPanel, var(--xmlui-borderVertical-NavPanel, var(--xmlui-border-NavPanel)))", "borderWidth-NavPanel": "var(--xmlui-borderWidth-NavPanel)", "borderHorizontalWidth-NavPanel": "var(--xmlui-borderHorizontalWidth-NavPanel, var(--xmlui-borderWidth-NavPanel))", "borderLeftWidth-NavPanel": "var(--xmlui-borderLeftWidth-NavPanel, var(--xmlui-borderHorizontalWidth-NavPanel, var(--xmlui-borderWidth-NavPanel)))", "borderRightWidth-NavPanel": "var(--xmlui-borderRightWidth-NavPanel, var(--xmlui-borderHorizontalWidth-NavPanel, var(--xmlui-borderWidth-NavPanel)))", "borderVerticalWidth-NavPanel": "var(--xmlui-borderVerticalWidth-NavPanel, var(--xmlui-borderWidth-NavPanel))", "borderTopWidth-NavPanel": "var(--xmlui-borderTopWidth-NavPanel, var(--xmlui-borderVerticalWidth-NavPanel, var(--xmlui-borderWidth-NavPanel)))", "borderBottomWidth-NavPanel": "var(--xmlui-borderBottomWidth-NavPanel, var(--xmlui-borderVerticalWidth-NavPanel, var(--xmlui-borderWidth-NavPanel)))", "borderStyle-NavPanel": "var(--xmlui-borderStyle-NavPanel)", "borderHorizontalStyle-NavPanel": "var(--xmlui-borderHorizontalStyle-NavPanel, var(--xmlui-borderStyle-NavPanel))", "borderLeftStyle-NavPanel": "var(--xmlui-borderLeftStyle-NavPanel, var(--xmlui-borderHorizontalStyle-NavPanel, var(--xmlui-borderStyle-NavPanel)))", "borderRightStyle-NavPanel": "var(--xmlui-borderRightStyle-NavPanel, var(--xmlui-borderHorizontalStyle-NavPanel, var(--xmlui-borderStyle-NavPanel)))", "borderVerticalStyle-NavPanel": "var(--xmlui-borderVerticalStyle-NavPanel, var(--xmlui-borderStyle-NavPanel))", "borderTopStyle-NavPanel": "var(--xmlui-borderTopStyle-NavPanel, var(--xmlui-borderVerticalStyle-NavPanel, var(--xmlui-borderStyle-NavPanel)))", "borderBottomStyle-NavPanel": "var(--xmlui-borderBottomStyle-NavPanel, var(--xmlui-borderVerticalStyle-NavPanel, var(--xmlui-borderStyle-NavPanel)))", "borderColor-NavPanel": "var(--xmlui-borderColor-NavPanel)", "borderHorizontalColor-NavPanel": "var(--xmlui-borderHorizontalColor-NavPanel, var(--xmlui-borderColor-NavPanel))", "borderLeftColor-NavPanel": "var(--xmlui-borderLeftColor-NavPanel, var(--xmlui-borderHorizontalColor-NavPanel, var(--xmlui-borderColor-NavPanel)))", "borderRightColor-NavPanel": "var(--xmlui-borderRightColor-NavPanel, var(--xmlui-borderHorizontalColor-NavPanel, var(--xmlui-borderColor-NavPanel)))", "borderVerticalColor-NavPanel": "var(--xmlui-borderVerticalColor-NavPanel, var(--xmlui-borderColor-NavPanel))", "borderTopColor-NavPanel": "var(--xmlui-borderTopColor-NavPanel, var(--xmlui-borderVerticalColor-NavPanel, var(--xmlui-borderColor-NavPanel)))", "borderBottomColor-NavPanel": "var(--xmlui-borderBottomColor-NavPanel, var(--xmlui-borderVerticalColor-NavPanel, var(--xmlui-borderColor-NavPanel)))", "borderStartStartRadius-NavPanel": "var(--xmlui-borderStartStartRadius-NavPanel, var(--xmlui-borderRadius-NavPanel))", "borderStartEndRadius-NavPanel": "var(--xmlui-borderStartEndRadius-NavPanel, var(--xmlui-borderRadius-NavPanel))", "borderEndStartRadius-NavPanel": "var(--xmlui-borderEndStartRadius-NavPanel, var(--xmlui-borderRadius-NavPanel))", "borderEndEndRadius-NavPanel": "var(--xmlui-borderEndEndRadius-NavPanel, var(--xmlui-borderRadius-NavPanel))", "backgroundColor-NavPanel": "var(--xmlui-backgroundColor-NavPanel)", "backgroundColor-NavPanel-horizontal": "var(--xmlui-backgroundColor-NavPanel-horizontal)", "boxShadow-NavPanel": "var(--xmlui-boxShadow-NavPanel)", "padding-NavPanel": "var(--xmlui-padding-NavPanel)", "paddingHorizontal-NavPanel": "var(--xmlui-paddingHorizontal-NavPanel)", "paddingVertical-NavPanel": "var(--xmlui-paddingVertical-NavPanel, var(--xmlui-padding-NavPanel))", "paddingLeft-NavPanel": "var(--xmlui-paddingLeft-NavPanel, var(--xmlui-paddingHorizontal-NavPanel, var(--xmlui-padding-NavPanel)))", "paddingRight-NavPanel": "var(--xmlui-paddingRight-NavPanel, var(--xmlui-paddingHorizontal-NavPanel, var(--xmlui-padding-NavPanel)))", "paddingTop-NavPanel": "var(--xmlui-paddingTop-NavPanel, var(--xmlui-paddingVertical-NavPanel, var(--xmlui-padding-NavPanel)))", "paddingBottom-NavPanel": "var(--xmlui-paddingBottom-NavPanel, var(--xmlui-paddingVertical-NavPanel, var(--xmlui-padding-NavPanel)))", "padding-logo-NavPanel": "var(--xmlui-padding-logo-NavPanel)", "paddingHorizontal-logo-NavPanel": "var(--xmlui-paddingHorizontal-logo-NavPanel)", "paddingVertical-logo-NavPanel": "var(--xmlui-paddingVertical-logo-NavPanel)", "paddingLeft-logo-NavPanel": "var(--xmlui-paddingLeft-logo-NavPanel, var(--xmlui-paddingHorizontal-logo-NavPanel, var(--xmlui-padding-logo-NavPanel)))", "paddingRight-logo-NavPanel": "var(--xmlui-paddingRight-logo-NavPanel, var(--xmlui-paddingHorizontal-logo-NavPanel, var(--xmlui-padding-logo-NavPanel)))", "paddingTop-logo-NavPanel": "var(--xmlui-paddingTop-logo-NavPanel, var(--xmlui-paddingVertical-logo-NavPanel, var(--xmlui-padding-logo-NavPanel)))", "paddingBottom-logo-NavPanel": "var(--xmlui-paddingBottom-logo-NavPanel, var(--xmlui-paddingVertical-logo-NavPanel, var(--xmlui-padding-logo-NavPanel)))", "marginBottom-logo-NavPanel": "var(--xmlui-marginBottom-logo-NavPanel)", "maxWidth-content-App": "var(--xmlui-maxWidth-content-App)", "height-AppHeader": "var(--xmlui-height-AppHeader)", "paddingVertical-AppHeader": "var(--xmlui-paddingVertical-AppHeader)", "alignment-content-AppHeader": "var(--xmlui-alignment-content-AppHeader)", "horizontalAlignment-logo-NavPanel": "var(--xmlui-horizontalAlignment-logo-NavPanel)"}'`,wrapper:"_wrapper_bqxw3_13",condensed:"_condensed_bqxw3_50",vertical:"_vertical_bqxw3_53",horizontal:"_horizontal_bqxw3_56",wrapperInner:"_wrapperInner_bqxw3_61",logoWrapper:"_logoWrapper_bqxw3_80",inDrawer:"_inDrawer_bqxw3_90"};function bT(e,t,r,n=[]){if(!e)return[];const o=[];return e.filter(i=>i&&typeof i=="object").forEach(i=>{var a,l,s,u,c,d,f,p,g,v,b;if(i.type==="NavLink"){const y=((l=t.asOptionalString)==null?void 0:l.call(t,(a=i.props)==null?void 0:a.label))||t((s=i.props)==null?void 0:s.label),w=((c=t.asOptionalString)==null?void 0:c.call(t,(u=i.props)==null?void 0:u.to))||t((d=i.props)==null?void 0:d.to);let k=y;if(!k&&((f=i.children)==null?void 0:f.length)===1&&i.children[0].type==="TextNode"&&(k=t((p=i.children[0].props)==null?void 0:p.value)),k&&w){const E={type:"NavLink",label:k,to:w,parent:r,pathSegments:[...n]};o.push(E)}}else if(i.type==="NavGroup"){const y=((v=t.asOptionalString)==null?void 0:v.call(t,(g=i.props)==null?void 0:g.label))||t((b=i.props)==null?void 0:b.label);if(y){const w={type:"NavGroup",label:y,parent:r,pathSegments:[...n],children:[]},k=[...n,w];w.children=bT(i.children,t,w,k),o.push(w)}else i.children&&i.children.length>0&&o.push(...bT(i.children,t,r,n))}else if(i.children&&i.children.length>0){const y=bT(i.children,t,r,n);y.length>0&&o.push(...y)}}),gBe(o),o}function gBe(e){const t=[];function r(o){o.forEach(i=>{i.type==="NavLink"&&t.push(i),i.children&&r(i.children)})}r(e),t.forEach((o,i)=>{i>0&&(o.prevLink=t[i-1]),i<t.length-1&&(o.nextLink=t[i+1])});function n(o){const i=o.filter(a=>a.type==="NavLink");i.length>0&&(i[0].firstLink=!0,i[i.length-1].lastLink=!0),o.forEach(a=>{a.children&&n(a.children)})}n(e)}function vBe(e){const t=new Map;if(!e)return t;function r(n){n.forEach(o=>{o.type==="NavLink"&&o.to&&t.set(o.to,o),o.children&&r(o.children)})}return r(e),t}const NY={inDrawer:!1},lP=ee.createContext(null),bBe={inDrawer:!0};function xBe({logoContent:e,children:t,className:r,style:n}){const o=m.useRef(null);return C.jsx(lP.Provider,{value:bBe,children:C.jsx("div",{ref:o,className:ze(Ks.wrapper,r),style:n,children:C.jsxs(Ku.Provider,{value:o,children:[C.jsx("div",{className:ze(Ks.logoWrapper,Ks.inDrawer),children:e||C.jsx(Dx,{})}),C.jsx("div",{className:Ks.wrapperInner,style:n,children:t})]})})})}const yBe=m.forwardRef(function({children:t,style:r,logoContent:n,className:o,inDrawer:i=NY.inDrawer,renderChild:a,navLinks:l},s){var w,k;const u=m.useRef(null),c=s?no(u,s):u,d=Pp(),f=LY(),p=aP(d==null?void 0:d.layout)==="horizontal",g=(d==null?void 0:d.layout)==="vertical"||(d==null?void 0:d.layout)==="vertical-sticky",v=(w=d==null?void 0:d.layout)==null?void 0:w.startsWith("condensed"),b=(k=d==null?void 0:d.layout)==null?void 0:k.startsWith("vertical"),y=n||a(d==null?void 0:d.logoContentDef);return m.useEffect(()=>{if(f!=null&&f.registerLinkMap&&l){const E=vBe(l);f.registerLinkMap(E)}},[l,f==null?void 0:f.registerLinkMap]),i?C.jsx(xBe,{style:r,logoContent:y,className:o,children:t}):C.jsx("div",{ref:c,className:ze(Ks.wrapper,o,{[Ks.horizontal]:p,[Ks.vertical]:b,[Ks.condensed]:v}),style:r,children:C.jsxs(Ku.Provider,{value:u,children:[g&&C.jsx("div",{className:ze(Ks.logoWrapper),children:y||C.jsx(Dx,{})}),C.jsx("div",{className:Ks.wrapperInner,style:r,children:t})]})})});function wBe(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function $Y(...e){return t=>e.forEach(r=>wBe(r,t))}function CBe(e,t=[]){let r=[];function n(i,a){const l=m.createContext(a),s=r.length;r=[...r,a];function u(d){const{scope:f,children:p,...g}=d,v=(f==null?void 0:f[e][s])||l,b=m.useMemo(()=>g,Object.values(g));return m.createElement(v.Provider,{value:b},p)}function c(d,f){const p=(f==null?void 0:f[e][s])||l,g=m.useContext(p);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,c]}const o=()=>{const i=r.map(a=>m.createContext(a));return function(l){const s=(l==null?void 0:l[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return o.scopeName=e,[n,kBe(o,...t)]}function kBe(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=n.reduce((l,{useScope:s,scopeName:u})=>{const d=s(i)[`__scope${u}`];return{...l,...d}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function DY({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=_Be({defaultProp:t,onChange:r}),i=e!==void 0,a=i?e:n,l=Mo(r),s=m.useCallback(u=>{if(i){const d=typeof u=="function"?u(e):u;d!==e&&l(d)}else o(u)},[i,e,o,l]);return[a,s]}function _Be({defaultProp:e,onChange:t}){const r=m.useState(e),[n]=r,o=m.useRef(n),i=Mo(t);return m.useEffect(()=>{o.current!==n&&(i(n),o.current=n)},[n,o,i]),r}const BY=m.forwardRef((e,t)=>{const{children:r,...n}=e,o=m.Children.toArray(r),i=o.find(SBe);if(i){const a=i.props.children,l=o.map(s=>s===i?m.Children.count(a)>1?m.Children.only(null):m.isValidElement(a)?a.props.children:null:s);return m.createElement(sP,Ge({},n,{ref:t}),m.isValidElement(a)?m.cloneElement(a,void 0,l):null)}return m.createElement(sP,Ge({},n,{ref:t}),r)});BY.displayName="Slot";const sP=m.forwardRef((e,t)=>{const{children:r,...n}=e;return m.isValidElement(r)?m.cloneElement(r,{...EBe(n,r.props),ref:t?$Y(t,r.ref):r.ref}):m.Children.count(r)>1?m.Children.only(null):null});sP.displayName="SlotClone";const TBe=({children:e})=>m.createElement(m.Fragment,null,e);function SBe(e){return m.isValidElement(e)&&e.type===TBe}function EBe(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{i(...l),o(...l)}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}const OBe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const r=m.forwardRef((n,o)=>{const{asChild:i,...a}=n,l=i?BY:t;return m.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),m.createElement(l,Ge({},a,{ref:o}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function jY(e,t=[]){let r=[];function n(i,a){const l=m.createContext(a),s=r.length;r=[...r,a];function u(d){const{scope:f,children:p,...g}=d,v=(f==null?void 0:f[e][s])||l,b=m.useMemo(()=>g,Object.values(g));return m.createElement(v.Provider,{value:b},p)}function c(d,f){const p=(f==null?void 0:f[e][s])||l,g=m.useContext(p);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,c]}const o=()=>{const i=r.map(a=>m.createContext(a));return function(l){const s=(l==null?void 0:l[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return o.scopeName=e,[n,ABe(o,...t)]}function ABe(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=n.reduce((l,{useScope:s,scopeName:u})=>{const d=s(i)[`__scope${u}`];return{...l,...d}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function IBe(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function uP(...e){return t=>e.forEach(r=>IBe(r,t))}function yf(...e){return m.useCallback(uP(...e),e)}const jx=m.forwardRef((e,t)=>{const{children:r,...n}=e,o=m.Children.toArray(r),i=o.find(PBe);if(i){const a=i.props.children,l=o.map(s=>s===i?m.Children.count(a)>1?m.Children.only(null):m.isValidElement(a)?a.props.children:null:s);return m.createElement(cP,Ge({},n,{ref:t}),m.isValidElement(a)?m.cloneElement(a,void 0,l):null)}return m.createElement(cP,Ge({},n,{ref:t}),r)});jx.displayName="Slot";const cP=m.forwardRef((e,t)=>{const{children:r,...n}=e;return m.isValidElement(r)?m.cloneElement(r,{...HBe(n,r.props),ref:t?uP(t,r.ref):r.ref}):m.Children.count(r)>1?m.Children.only(null):null});cP.displayName="SlotClone";const RBe=({children:e})=>m.createElement(m.Fragment,null,e);function PBe(e){return m.isValidElement(e)&&e.type===RBe}function HBe(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{i(...l),o(...l)}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function LBe(e){const t=e+"CollectionProvider",[r,n]=jY(t),[o,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=p=>{const{scope:g,children:v}=p,b=ee.useRef(null),y=ee.useRef(new Map).current;return ee.createElement(o,{scope:g,itemMap:y,collectionRef:b},v)},l=e+"CollectionSlot",s=ee.forwardRef((p,g)=>{const{scope:v,children:b}=p,y=i(l,v),w=yf(g,y.collectionRef);return ee.createElement(jx,{ref:w},b)}),u=e+"CollectionItemSlot",c="data-radix-collection-item",d=ee.forwardRef((p,g)=>{const{scope:v,children:b,...y}=p,w=ee.useRef(null),k=yf(g,w),E=i(u,v);return ee.useEffect(()=>(E.itemMap.set(w,{ref:w,...y}),()=>void E.itemMap.delete(w))),ee.createElement(jx,{[c]:"",ref:k},b)});function f(p){const g=i(e+"CollectionConsumer",p);return ee.useCallback(()=>{const b=g.collectionRef.current;if(!b)return[];const y=Array.from(b.querySelectorAll(`[${c}]`));return Array.from(g.itemMap.values()).sort((E,_)=>y.indexOf(E.ref.current)-y.indexOf(_.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:a,Slot:s,ItemSlot:d},f,n]}const NBe=m.createContext(void 0);function $Be(e){const t=m.useContext(NBe);return e||t||"ltr"}const dP=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},DBe=Fc.useId||(()=>{});let BBe=0;function MY(e){const[t,r]=m.useState(DBe());return dP(()=>{r(n=>n??String(BBe++))},[e]),e||(t?`radix-${t}`:"")}const jBe=["top","right","bottom","left"],wf=Math.min,fl=Math.max,xT=Math.round,yT=Math.floor,Qu=e=>({x:e,y:e}),MBe={left:"right",right:"left",bottom:"top",top:"bottom"},zBe={start:"end",end:"start"};function fP(e,t,r){return fl(e,wf(t,r))}function nd(e,t){return typeof e=="function"?e(t):e}function od(e){return e.split("-")[0]}function Lv(e){return e.split("-")[1]}function mP(e){return e==="x"?"y":"x"}function pP(e){return e==="y"?"height":"width"}function Cf(e){return["top","bottom"].includes(od(e))?"y":"x"}function hP(e){return mP(Cf(e))}function FBe(e,t,r){r===void 0&&(r=!1);const n=Lv(e),o=hP(e),i=pP(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=wT(a)),[a,wT(a)]}function WBe(e){const t=wT(e);return[gP(e),t,gP(t)]}function gP(e){return e.replace(/start|end/g,t=>zBe[t])}function VBe(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:a;default:return[]}}function UBe(e,t,r,n){const o=Lv(e);let i=VBe(od(e),r==="start",n);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(gP)))),i}function wT(e){return e.replace(/left|right|bottom|top/g,t=>MBe[t])}function qBe(e){return{top:0,right:0,bottom:0,left:0,...e}}function zY(e){return typeof e!="number"?qBe(e):{top:e,right:e,bottom:e,left:e}}function CT(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function FY(e,t,r){let{reference:n,floating:o}=e;const i=Cf(t),a=hP(t),l=pP(a),s=od(t),u=i==="y",c=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,f=n[l]/2-o[l]/2;let p;switch(s){case"top":p={x:c,y:n.y-o.height};break;case"bottom":p={x:c,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-o.width,y:d};break;default:p={x:n.x,y:n.y}}switch(Lv(t)){case"start":p[a]-=f*(r&&u?-1:1);break;case"end":p[a]+=f*(r&&u?-1:1);break}return p}const GBe=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,l=i.filter(Boolean),s=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=FY(u,n,s),f=n,p={},g=0;for(let v=0;v<l.length;v++){const{name:b,fn:y}=l[v],{x:w,y:k,data:E,reset:_}=await y({x:c,y:d,initialPlacement:n,placement:f,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=w??c,d=k??d,p={...p,[b]:{...p[b],...E}},_&&g<=50&&(g++,typeof _=="object"&&(_.placement&&(f=_.placement),_.rects&&(u=_.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:c,y:d}=FY(u,f,s)),v=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}};async function Mx(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=nd(t,e),g=zY(p),b=l[f?d==="floating"?"reference":"floating":d],y=CT(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(b)))==null||r?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:s})),w=d==="floating"?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),E=await(i.isElement==null?void 0:i.isElement(k))?await(i.getScale==null?void 0:i.getScale(k))||{x:1,y:1}:{x:1,y:1},_=CT(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:k,strategy:s}):w);return{top:(y.top-_.top+g.top)/E.y,bottom:(_.bottom-y.bottom+g.bottom)/E.y,left:(y.left-_.left+g.left)/E.x,right:(_.right-y.right+g.right)/E.x}}const YBe=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:u,padding:c=0}=nd(e,t)||{};if(u==null)return{};const d=zY(c),f={x:r,y:n},p=hP(o),g=pP(p),v=await a.getDimensions(u),b=p==="y",y=b?"top":"left",w=b?"bottom":"right",k=b?"clientHeight":"clientWidth",E=i.reference[g]+i.reference[p]-f[p]-i.floating[g],_=f[p]-i.reference[p],S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let O=S?S[k]:0;(!O||!await(a.isElement==null?void 0:a.isElement(S)))&&(O=l.floating[k]||i.floating[g]);const A=E/2-_/2,I=O/2-v[g]/2-1,H=wf(d[y],I),P=wf(d[w],I),L=H,B=O-v[g]-P,z=O/2-v[g]/2+A,j=fP(L,z,B),q=!s.arrow&&Lv(o)!=null&&z!==j&&i.reference[g]/2-(z<L?H:P)-v[g]/2<0,W=q?z<L?z-L:z-B:0;return{[p]:f[p]+W,data:{[p]:j,centerOffset:z-j-W,...q&&{alignmentOffset:W}},reset:q}}}),KBe=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...b}=nd(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const y=od(o),w=Cf(l),k=od(l)===l,E=await(s.isRTL==null?void 0:s.isRTL(u.floating)),_=f||(k||!v?[wT(l)]:WBe(l)),S=g!=="none";!f&&S&&_.push(...UBe(l,v,g,E));const O=[l,..._],A=await Mx(t,b),I=[];let H=((n=i.flip)==null?void 0:n.overflows)||[];if(c&&I.push(A[y]),d){const z=FBe(o,a,E);I.push(A[z[0]],A[z[1]])}if(H=[...H,{placement:o,overflows:I}],!I.every(z=>z<=0)){var P,L;const z=(((P=i.flip)==null?void 0:P.index)||0)+1,j=O[z];if(j)return{data:{index:z,overflows:H},reset:{placement:j}};let q=(L=H.filter(W=>W.overflows[0]<=0).sort((W,M)=>W.overflows[1]-M.overflows[1])[0])==null?void 0:L.placement;if(!q)switch(p){case"bestFit":{var B;const W=(B=H.filter(M=>{if(S){const V=Cf(M.placement);return V===w||V==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(V=>V>0).reduce((V,N)=>V+N,0)]).sort((M,V)=>M[1]-V[1])[0])==null?void 0:B[0];W&&(q=W);break}case"initialPlacement":q=l;break}if(o!==q)return{reset:{placement:q}}}return{}}}};function WY(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function VY(e){return jBe.some(t=>e[t]>=0)}const XBe=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=nd(e,t);switch(n){case"referenceHidden":{const i=await Mx(t,{...o,elementContext:"reference"}),a=WY(i,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:VY(a)}}}case"escaped":{const i=await Mx(t,{...o,altBoundary:!0}),a=WY(i,r.floating);return{data:{escapedOffsets:a,escaped:VY(a)}}}default:return{}}}}};async function QBe(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=od(r),l=Lv(r),s=Cf(r)==="y",u=["left","top"].includes(a)?-1:1,c=i&&s?-1:1,d=nd(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof g=="number"&&(p=l==="end"?g*-1:g),s?{x:p*c,y:f*u}:{x:f*u,y:p*c}}const ZBe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await QBe(t,e);return a===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},JBe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:b=>{let{x:y,y:w}=b;return{x:y,y:w}}},...s}=nd(e,t),u={x:r,y:n},c=await Mx(t,s),d=Cf(od(o)),f=mP(d);let p=u[f],g=u[d];if(i){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",w=p+c[b],k=p-c[y];p=fP(w,p,k)}if(a){const b=d==="y"?"top":"left",y=d==="y"?"bottom":"right",w=g+c[b],k=g-c[y];g=fP(w,g,k)}const v=l.fn({...t,[f]:p,[d]:g});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[f]:i,[d]:a}}}}}},eje=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=nd(e,t),c={x:r,y:n},d=Cf(o),f=mP(d);let p=c[f],g=c[d];const v=nd(l,t),b=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(s){const k=f==="y"?"height":"width",E=i.reference[f]-i.floating[k]+b.mainAxis,_=i.reference[f]+i.reference[k]-b.mainAxis;p<E?p=E:p>_&&(p=_)}if(u){var y,w;const k=f==="y"?"width":"height",E=["top","left"].includes(od(o)),_=i.reference[d]-i.floating[k]+(E&&((y=a.offset)==null?void 0:y[d])||0)+(E?0:b.crossAxis),S=i.reference[d]+i.reference[k]+(E?0:((w=a.offset)==null?void 0:w[d])||0)-(E?b.crossAxis:0);g<_?g=_:g>S&&(g=S)}return{[f]:p,[d]:g}}}},tje=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:a,elements:l}=t,{apply:s=()=>{},...u}=nd(e,t),c=await Mx(t,u),d=od(o),f=Lv(o),p=Cf(o)==="y",{width:g,height:v}=i.floating;let b,y;d==="top"||d==="bottom"?(b=d,y=f===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(y=d,b=f==="end"?"top":"bottom");const w=v-c.top-c.bottom,k=g-c.left-c.right,E=wf(v-c[b],w),_=wf(g-c[y],k),S=!t.middlewareData.shift;let O=E,A=_;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(A=k),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(O=w),S&&!f){const H=fl(c.left,0),P=fl(c.right,0),L=fl(c.top,0),B=fl(c.bottom,0);p?A=g-2*(H!==0||P!==0?H+P:fl(c.left,c.right)):O=v-2*(L!==0||B!==0?L+B:fl(c.top,c.bottom))}await s({...t,availableWidth:A,availableHeight:O});const I=await a.getDimensions(l.floating);return g!==I.width||v!==I.height?{reset:{rects:!0}}:{}}}};function kT(){return typeof window<"u"}function Nv(e){return UY(e)?(e.nodeName||"").toLowerCase():"#document"}function ml(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zu(e){var t;return(t=(UY(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function UY(e){return kT()?e instanceof Node||e instanceof ml(e).Node:!1}function Xs(e){return kT()?e instanceof Element||e instanceof ml(e).Element:!1}function Ju(e){return kT()?e instanceof HTMLElement||e instanceof ml(e).HTMLElement:!1}function qY(e){return!kT()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ml(e).ShadowRoot}function zx(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Qs(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function rje(e){return["table","td","th"].includes(Nv(e))}function _T(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function vP(e){const t=bP(),r=Xs(e)?Qs(e):e;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function nje(e){let t=kf(e);for(;Ju(t)&&!$v(t);){if(vP(t))return t;if(_T(t))return null;t=kf(t)}return null}function bP(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $v(e){return["html","body","#document"].includes(Nv(e))}function Qs(e){return ml(e).getComputedStyle(e)}function TT(e){return Xs(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function kf(e){if(Nv(e)==="html")return e;const t=e.assignedSlot||e.parentNode||qY(e)&&e.host||Zu(e);return qY(t)?t.host:t}function GY(e){const t=kf(e);return $v(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ju(t)&&zx(t)?t:GY(t)}function Fx(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=GY(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=ml(o);if(i){const l=xP(a);return t.concat(a,a.visualViewport||[],zx(o)?o:[],l&&r?Fx(l):[])}return t.concat(o,Fx(o,[],r))}function xP(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function YY(e){const t=Qs(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ju(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,l=xT(r)!==i||xT(n)!==a;return l&&(r=i,n=a),{width:r,height:n,$:l}}function yP(e){return Xs(e)?e:e.contextElement}function Dv(e){const t=yP(e);if(!Ju(t))return Qu(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=YY(t);let a=(i?xT(r.width):r.width)/n,l=(i?xT(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const oje=Qu(0);function KY(e){const t=ml(e);return!bP()||!t.visualViewport?oje:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ije(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ml(e)?!1:t}function Lp(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=yP(e);let a=Qu(1);t&&(n?Xs(n)&&(a=Dv(n)):a=Dv(e));const l=ije(i,r,n)?KY(i):Qu(0);let s=(o.left+l.x)/a.x,u=(o.top+l.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const f=ml(i),p=n&&Xs(n)?ml(n):n;let g=f,v=xP(g);for(;v&&n&&p!==g;){const b=Dv(v),y=v.getBoundingClientRect(),w=Qs(v),k=y.left+(v.clientLeft+parseFloat(w.paddingLeft))*b.x,E=y.top+(v.clientTop+parseFloat(w.paddingTop))*b.y;s*=b.x,u*=b.y,c*=b.x,d*=b.y,s+=k,u+=E,g=ml(v),v=xP(g)}}return CT({width:c,height:d,x:s,y:u})}function wP(e,t){const r=TT(e).scrollLeft;return t?t.left+r:Lp(Zu(e)).left+r}function XY(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-(r?0:wP(e,n)),i=n.top+t.scrollTop;return{x:o,y:i}}function aje(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",a=Zu(n),l=t?_T(t.floating):!1;if(n===a||l&&i)return r;let s={scrollLeft:0,scrollTop:0},u=Qu(1);const c=Qu(0),d=Ju(n);if((d||!d&&!i)&&((Nv(n)!=="body"||zx(a))&&(s=TT(n)),Ju(n))){const p=Lp(n);u=Dv(n),c.x=p.x+n.clientLeft,c.y=p.y+n.clientTop}const f=a&&!d&&!i?XY(a,s,!0):Qu(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-s.scrollLeft*u.x+c.x+f.x,y:r.y*u.y-s.scrollTop*u.y+c.y+f.y}}function lje(e){return Array.from(e.getClientRects())}function sje(e){const t=Zu(e),r=TT(e),n=e.ownerDocument.body,o=fl(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=fl(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+wP(e);const l=-r.scrollTop;return Qs(n).direction==="rtl"&&(a+=fl(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:l}}function uje(e,t){const r=ml(e),n=Zu(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const u=bP();(!u||u&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}function cje(e,t){const r=Lp(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Ju(e)?Dv(e):Qu(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,s=o*i.x,u=n*i.y;return{width:a,height:l,x:s,y:u}}function QY(e,t,r){let n;if(t==="viewport")n=uje(e,r);else if(t==="document")n=sje(Zu(e));else if(Xs(t))n=cje(t,r);else{const o=KY(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return CT(n)}function ZY(e,t){const r=kf(e);return r===t||!Xs(r)||$v(r)?!1:Qs(r).position==="fixed"||ZY(r,t)}function dje(e,t){const r=t.get(e);if(r)return r;let n=Fx(e,[],!1).filter(l=>Xs(l)&&Nv(l)!=="body"),o=null;const i=Qs(e).position==="fixed";let a=i?kf(e):e;for(;Xs(a)&&!$v(a);){const l=Qs(a),s=vP(a);!s&&l.position==="fixed"&&(o=null),(i?!s&&!o:!s&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||zx(a)&&!s&&ZY(e,a))?n=n.filter(c=>c!==a):o=l,a=kf(a)}return t.set(e,n),n}function fje(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?_T(t)?[]:dje(t,this._c):[].concat(r),n],l=a[0],s=a.reduce((u,c)=>{const d=QY(t,c,o);return u.top=fl(d.top,u.top),u.right=wf(d.right,u.right),u.bottom=wf(d.bottom,u.bottom),u.left=fl(d.left,u.left),u},QY(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function mje(e){const{width:t,height:r}=YY(e);return{width:t,height:r}}function pje(e,t,r){const n=Ju(t),o=Zu(t),i=r==="fixed",a=Lp(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=Qu(0);if(n||!n&&!i)if((Nv(t)!=="body"||zx(o))&&(l=TT(t)),n){const f=Lp(t,!0,i,t);s.x=f.x+t.clientLeft,s.y=f.y+t.clientTop}else o&&(s.x=wP(o));const u=o&&!n&&!i?XY(o,l):Qu(0),c=a.left+l.scrollLeft-s.x-u.x,d=a.top+l.scrollTop-s.y-u.y;return{x:c,y:d,width:a.width,height:a.height}}function CP(e){return Qs(e).position==="static"}function JY(e,t){if(!Ju(e)||Qs(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Zu(e)===r&&(r=r.ownerDocument.body),r}function eK(e,t){const r=ml(e);if(_T(e))return r;if(!Ju(e)){let o=kf(e);for(;o&&!$v(o);){if(Xs(o)&&!CP(o))return o;o=kf(o)}return r}let n=JY(e,t);for(;n&&rje(n)&&CP(n);)n=JY(n,t);return n&&$v(n)&&CP(n)&&!vP(n)?r:n||nje(e)||r}const hje=async function(e){const t=this.getOffsetParent||eK,r=this.getDimensions,n=await r(e.floating);return{reference:pje(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function gje(e){return Qs(e).direction==="rtl"}const vje={convertOffsetParentRelativeRectToViewportRelativeRect:aje,getDocumentElement:Zu,getClippingRect:fje,getOffsetParent:eK,getElementRects:hje,getClientRects:lje,getDimensions:mje,getScale:Dv,isElement:Xs,isRTL:gje};function tK(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function bje(e,t){let r=null,n;const o=Zu(e);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),i();const u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(l||t(),!f||!p)return;const g=yT(d),v=yT(o.clientWidth-(c+f)),b=yT(o.clientHeight-(d+p)),y=yT(c),k={rootMargin:-g+"px "+-v+"px "+-b+"px "+-y+"px",threshold:fl(0,wf(1,s))||1};let E=!0;function _(S){const O=S[0].intersectionRatio;if(O!==s){if(!E)return a();O?a(!1,O):n=setTimeout(()=>{a(!1,1e-7)},1e3)}O===1&&!tK(u,e.getBoundingClientRect())&&a(),E=!1}try{r=new IntersectionObserver(_,{...k,root:o.ownerDocument})}catch{r=new IntersectionObserver(_,k)}r.observe(e)}return a(!0),i}function ST(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,u=yP(e),c=o||i?[...u?Fx(u):[],...Fx(t)]:[];c.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),i&&y.addEventListener("resize",r)});const d=u&&l?bje(u,r):null;let f=-1,p=null;a&&(p=new ResizeObserver(y=>{let[w]=y;w&&w.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var k;(k=p)==null||k.observe(t)})),r()}),u&&!s&&p.observe(u),p.observe(t));let g,v=s?Lp(e):null;s&&b();function b(){const y=Lp(e);v&&!tK(v,y)&&r(),v=y,g=requestAnimationFrame(b)}return r(),()=>{var y;c.forEach(w=>{o&&w.removeEventListener("scroll",r),i&&w.removeEventListener("resize",r)}),d==null||d(),(y=p)==null||y.disconnect(),p=null,s&&cancelAnimationFrame(g)}}const xje=ZBe,yje=JBe,wje=KBe,Cje=tje,kje=XBe,rK=YBe,_je=eje,Tje=(e,t,r)=>{const n=new Map,o={platform:vje,...r},i={...o.platform,_c:n};return GBe(e,t,{...o,platform:i})};var ET=typeof document<"u"?m.useLayoutEffect:m.useEffect;function OT(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!OT(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!OT(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function nK(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function oK(e,t){const r=nK(e);return Math.round(t*r)/r}function kP(e){const t=m.useRef(e);return ET(()=>{t.current=e}),t}function AT(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:a}={},transform:l=!0,whileElementsMounted:s,open:u}=e,[c,d]=m.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=m.useState(n);OT(f,n)||p(n);const[g,v]=m.useState(null),[b,y]=m.useState(null),w=m.useCallback(M=>{M!==S.current&&(S.current=M,v(M))},[]),k=m.useCallback(M=>{M!==O.current&&(O.current=M,y(M))},[]),E=i||g,_=a||b,S=m.useRef(null),O=m.useRef(null),A=m.useRef(c),I=s!=null,H=kP(s),P=kP(o),L=kP(u),B=m.useCallback(()=>{if(!S.current||!O.current)return;const M={placement:t,strategy:r,middleware:f};P.current&&(M.platform=P.current),Tje(S.current,O.current,M).then(V=>{const N={...V,isPositioned:L.current!==!1};z.current&&!OT(A.current,N)&&(A.current=N,Hn.flushSync(()=>{d(N)}))})},[f,t,r,P,L]);ET(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,d(M=>({...M,isPositioned:!1})))},[u]);const z=m.useRef(!1);ET(()=>(z.current=!0,()=>{z.current=!1}),[]),ET(()=>{if(E&&(S.current=E),_&&(O.current=_),E&&_){if(H.current)return H.current(E,_,B);B()}},[E,_,B,H,I]);const j=m.useMemo(()=>({reference:S,floating:O,setReference:w,setFloating:k}),[w,k]),q=m.useMemo(()=>({reference:E,floating:_}),[E,_]),W=m.useMemo(()=>{const M={position:r,left:0,top:0};if(!q.floating)return M;const V=oK(q.floating,c.x),N=oK(q.floating,c.y);return l?{...M,transform:"translate("+V+"px, "+N+"px)",...nK(q.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:V,top:N}},[r,l,q.floating,c.x,c.y]);return m.useMemo(()=>({...c,update:B,refs:j,elements:q,floatingStyles:W}),[c,B,j,q,W])}const Sje=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?rK({element:n.current,padding:o}).fn(r):{}:n?rK({element:n,padding:o}).fn(r):{}}}},IT=(e,t)=>({...xje(e),options:[e,t]}),RT=(e,t)=>({...yje(e),options:[e,t]}),PT=(e,t)=>({..._je(e),options:[e,t]}),HT=(e,t)=>({...wje(e),options:[e,t]}),LT=(e,t)=>({...Cje(e),options:[e,t]}),NT=(e,t)=>({...kje(e),options:[e,t]}),$T=(e,t)=>({...Sje(e),options:[e,t]});function Eje(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Oje(...e){return t=>e.forEach(r=>Eje(r,t))}const iK=m.forwardRef((e,t)=>{const{children:r,...n}=e,o=m.Children.toArray(r),i=o.find(Ije);if(i){const a=i.props.children,l=o.map(s=>s===i?m.Children.count(a)>1?m.Children.only(null):m.isValidElement(a)?a.props.children:null:s);return m.createElement(_P,Ge({},n,{ref:t}),m.isValidElement(a)?m.cloneElement(a,void 0,l):null)}return m.createElement(_P,Ge({},n,{ref:t}),r)});iK.displayName="Slot";const _P=m.forwardRef((e,t)=>{const{children:r,...n}=e;return m.isValidElement(r)?m.cloneElement(r,{...Rje(n,r.props),ref:t?Oje(t,r.ref):r.ref}):m.Children.count(r)>1?m.Children.only(null):null});_P.displayName="SlotClone";const Aje=({children:e})=>m.createElement(m.Fragment,null,e);function Ije(e){return m.isValidElement(e)&&e.type===Aje}function Rje(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{i(...l),o(...l)}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}const Pje=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const r=m.forwardRef((n,o)=>{const{asChild:i,...a}=n,l=i?iK:t;return m.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),m.createElement(l,Ge({},a,{ref:o}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Hje=m.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return m.createElement(Pje.svg,Ge({},i,{ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?r:m.createElement("polygon",{points:"0,0 30,0 15,10"}))});function Lje(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function aK(...e){return t=>e.forEach(r=>Lje(r,t))}function lK(...e){return m.useCallback(aK(...e),e)}function Nje(e,t=[]){let r=[];function n(i,a){const l=m.createContext(a),s=r.length;r=[...r,a];function u(d){const{scope:f,children:p,...g}=d,v=(f==null?void 0:f[e][s])||l,b=m.useMemo(()=>g,Object.values(g));return m.createElement(v.Provider,{value:b},p)}function c(d,f){const p=(f==null?void 0:f[e][s])||l,g=m.useContext(p);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,c]}const o=()=>{const i=r.map(a=>m.createContext(a));return function(l){const s=(l==null?void 0:l[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return o.scopeName=e,[n,$je(o,...t)]}function $je(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=n.reduce((l,{useScope:s,scopeName:u})=>{const d=s(i)[`__scope${u}`];return{...l,...d}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}const sK=m.forwardRef((e,t)=>{const{children:r,...n}=e,o=m.Children.toArray(r),i=o.find(Bje);if(i){const a=i.props.children,l=o.map(s=>s===i?m.Children.count(a)>1?m.Children.only(null):m.isValidElement(a)?a.props.children:null:s);return m.createElement(TP,Ge({},n,{ref:t}),m.isValidElement(a)?m.cloneElement(a,void 0,l):null)}return m.createElement(TP,Ge({},n,{ref:t}),r)});sK.displayName="Slot";const TP=m.forwardRef((e,t)=>{const{children:r,...n}=e;return m.isValidElement(r)?m.cloneElement(r,{...jje(n,r.props),ref:t?aK(t,r.ref):r.ref}):m.Children.count(r)>1?m.Children.only(null):null});TP.displayName="SlotClone";const Dje=({children:e})=>m.createElement(m.Fragment,null,e);function Bje(e){return m.isValidElement(e)&&e.type===Dje}function jje(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{i(...l),o(...l)}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}const uK=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const r=m.forwardRef((n,o)=>{const{asChild:i,...a}=n,l=i?sK:t;return m.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),m.createElement(l,Ge({},a,{ref:o}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),cK=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},Mje=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{};function dK(e){const[t,r]=m.useState(void 0);return Mje(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,l;if("borderBoxSize"in i){const s=i.borderBoxSize,u=Array.isArray(s)?s[0]:s;a=u.inlineSize,l=u.blockSize}else a=e.offsetWidth,l=e.offsetHeight;r({width:a,height:l})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}const fK="Popper",[mK,DT]=Nje(fK),[zje,pK]=mK(fK),Fje=e=>{const{__scopePopper:t,children:r}=e,[n,o]=m.useState(null);return m.createElement(zje,{scope:t,anchor:n,onAnchorChange:o},r)},Wje="PopperAnchor",Vje=m.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,i=pK(Wje,r),a=m.useRef(null),l=lK(t,a);return m.useEffect(()=>{i.onAnchorChange((n==null?void 0:n.current)||a.current)}),n?null:m.createElement(uK.div,Ge({},o,{ref:l}))}),hK="PopperContent",[Uje,qje]=mK(hK),Gje=m.forwardRef((e,t)=>{var r,n,o,i,a,l,s,u;const{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:g=0,arrowPadding:v=0,avoidCollisions:b=!0,collisionBoundary:y=[],collisionPadding:w=0,sticky:k="partial",hideWhenDetached:E=!1,updatePositionStrategy:_="optimized",onPlaced:S,...O}=e,A=pK(hK,c),[I,H]=m.useState(null),P=lK(t,se=>H(se)),[L,B]=m.useState(null),z=dK(L),j=(r=z==null?void 0:z.width)!==null&&r!==void 0?r:0,q=(n=z==null?void 0:z.height)!==null&&n!==void 0?n:0,W=d+(p!=="center"?"-"+p:""),M=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},V=Array.isArray(y)?y:[y],N=V.length>0,Y={padding:M,boundary:V.filter(Xje),altBoundary:N},{refs:G,floatingStyles:F,placement:K,isPositioned:J,middlewareData:ie}=AT({strategy:"fixed",placement:W,whileElementsMounted:(...se)=>ST(...se,{animationFrame:_==="always"}),elements:{reference:A.anchor},middleware:[IT({mainAxis:f+q,alignmentAxis:g}),b&&RT({mainAxis:!0,crossAxis:!1,limiter:k==="partial"?PT():void 0,...Y}),b&&HT({...Y}),LT({...Y,apply:({elements:se,rects:de,availableWidth:ke,availableHeight:we})=>{const{width:Ae,height:Ne}=de.reference,Le=se.floating.style;Le.setProperty("--radix-popper-available-width",`${ke}px`),Le.setProperty("--radix-popper-available-height",`${we}px`),Le.setProperty("--radix-popper-anchor-width",`${Ae}px`),Le.setProperty("--radix-popper-anchor-height",`${Ne}px`)}}),L&&$T({element:L,padding:v}),Qje({arrowWidth:j,arrowHeight:q}),E&&NT({strategy:"referenceHidden",...Y})]}),[oe,le]=vK(K),ce=Mo(S);cK(()=>{J&&(ce==null||ce())},[J,ce]);const pe=(o=ie.arrow)===null||o===void 0?void 0:o.x,me=(i=ie.arrow)===null||i===void 0?void 0:i.y,X=((a=ie.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[Z,te]=m.useState();return cK(()=>{I&&te(window.getComputedStyle(I).zIndex)},[I]),m.createElement("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:J?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Z,"--radix-popper-transform-origin":[(l=ie.transformOrigin)===null||l===void 0?void 0:l.x,(s=ie.transformOrigin)===null||s===void 0?void 0:s.y].join(" ")},dir:e.dir},m.createElement(Uje,{scope:c,placedSide:oe,onArrowChange:B,arrowX:pe,arrowY:me,shouldHideArrow:X},m.createElement(uK.div,Ge({"data-side":oe,"data-align":le},O,{ref:P,style:{...O.style,animation:J?void 0:"none",opacity:(u=ie.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))}),gK="PopperArrow",Yje={top:"bottom",right:"left",bottom:"top",left:"right"},Kje=m.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,i=qje(gK,n),a=Yje[i.placedSide];return m.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},m.createElement(Hje,Ge({},o,{ref:r,style:{...o.style,display:"block"}})))});function Xje(e){return e!==null}const Qje=e=>({name:"transformOrigin",options:e,fn(t){var r,n,o,i,a;const{placement:l,rects:s,middlewareData:u}=t,d=((r=u.arrow)===null||r===void 0?void 0:r.centerOffset)!==0,f=d?0:e.arrowWidth,p=d?0:e.arrowHeight,[g,v]=vK(l),b={start:"0%",center:"50%",end:"100%"}[v],y=((n=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&n!==void 0?n:0)+f/2,w=((i=(a=u.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+p/2;let k="",E="";return g==="bottom"?(k=d?b:`${y}px`,E=`${-p}px`):g==="top"?(k=d?b:`${y}px`,E=`${s.floating.height+p}px`):g==="right"?(k=`${-p}px`,E=d?b:`${w}px`):g==="left"&&(k=`${s.floating.width+p}px`,E=d?b:`${w}px`),{data:{x:k,y:E}}}});function vK(e){const[t,r="center"]=e.split("-");return[t,r]}const SP=Fje,bK=Vje,xK=Gje;function Zje(e,t){return m.useReducer((r,n)=>{const o=t[r][n];return o??r},e)}const BT=e=>{const{present:t,children:r}=e,n=Jje(t),o=typeof r=="function"?r({present:n.isPresent}):m.Children.only(r),i=yf(n.ref,o.ref);return typeof r=="function"||n.isPresent?m.cloneElement(o,{ref:i}):null};BT.displayName="Presence";function Jje(e){const[t,r]=m.useState(),n=m.useRef({}),o=m.useRef(e),i=m.useRef("none"),a=e?"mounted":"unmounted",[l,s]=Zje(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const u=jT(n.current);i.current=l==="mounted"?u:"none"},[l]),dP(()=>{const u=n.current,c=o.current;if(c!==e){const f=i.current,p=jT(u);e?s("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(c&&f!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),dP(()=>{if(t){const u=d=>{const p=jT(n.current).includes(d.animationName);d.target===t&&p&&Hn.flushSync(()=>s("ANIMATION_END"))},c=d=>{d.target===t&&(i.current=jT(n.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:m.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function jT(e){return(e==null?void 0:e.animationName)||"none"}const yK=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const r=m.forwardRef((n,o)=>{const{asChild:i,...a}=n,l=i?jx:t;return m.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),m.createElement(l,Ge({},a,{ref:o}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function eMe(e,t){e&&Hn.flushSync(()=>e.dispatchEvent(t))}function wK(e,t=[]){let r=[];function n(i,a){const l=m.createContext(a),s=r.length;r=[...r,a];function u(d){const{scope:f,children:p,...g}=d,v=(f==null?void 0:f[e][s])||l,b=m.useMemo(()=>g,Object.values(g));return m.createElement(v.Provider,{value:b},p)}function c(d,f){const p=(f==null?void 0:f[e][s])||l,g=m.useContext(p);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,c]}const o=()=>{const i=r.map(a=>m.createContext(a));return function(l){const s=(l==null?void 0:l[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return o.scopeName=e,[n,tMe(o,...t)]}function tMe(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=n.reduce((l,{useScope:s,scopeName:u})=>{const d=s(i)[`__scope${u}`];return{...l,...d}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function rMe(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function CK(...e){return t=>e.forEach(r=>rMe(r,t))}function EP(...e){return m.useCallback(CK(...e),e)}const MT=m.forwardRef((e,t)=>{const{children:r,...n}=e,o=m.Children.toArray(r),i=o.find(oMe);if(i){const a=i.props.children,l=o.map(s=>s===i?m.Children.count(a)>1?m.Children.only(null):m.isValidElement(a)?a.props.children:null:s);return m.createElement(OP,Ge({},n,{ref:t}),m.isValidElement(a)?m.cloneElement(a,void 0,l):null)}return m.createElement(OP,Ge({},n,{ref:t}),r)});MT.displayName="Slot";const OP=m.forwardRef((e,t)=>{const{children:r,...n}=e;return m.isValidElement(r)?m.cloneElement(r,{...iMe(n,r.props),ref:t?CK(t,r.ref):r.ref}):m.Children.count(r)>1?m.Children.only(null):null});OP.displayName="SlotClone";const nMe=({children:e})=>m.createElement(m.Fragment,null,e);function oMe(e){return m.isValidElement(e)&&e.type===nMe}function iMe(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{i(...l),o(...l)}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function aMe(e){const t=e+"CollectionProvider",[r,n]=wK(t),[o,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=p=>{const{scope:g,children:v}=p,b=ee.useRef(null),y=ee.useRef(new Map).current;return ee.createElement(o,{scope:g,itemMap:y,collectionRef:b},v)},l=e+"CollectionSlot",s=ee.forwardRef((p,g)=>{const{scope:v,children:b}=p,y=i(l,v),w=EP(g,y.collectionRef);return ee.createElement(MT,{ref:w},b)}),u=e+"CollectionItemSlot",c="data-radix-collection-item",d=ee.forwardRef((p,g)=>{const{scope:v,children:b,...y}=p,w=ee.useRef(null),k=EP(g,w),E=i(u,v);return ee.useEffect(()=>(E.itemMap.set(w,{ref:w,...y}),()=>void E.itemMap.delete(w))),ee.createElement(MT,{[c]:"",ref:k},b)});function f(p){const g=i(e+"CollectionConsumer",p);return ee.useCallback(()=>{const b=g.collectionRef.current;if(!b)return[];const y=Array.from(b.querySelectorAll(`[${c}]`));return Array.from(g.itemMap.values()).sort((E,_)=>y.indexOf(E.ref.current)-y.indexOf(_.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:a,Slot:s,ItemSlot:d},f,n]}const lMe=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},sMe=Fc.useId||(()=>{});let uMe=0;function cMe(e){const[t,r]=m.useState(sMe());return lMe(()=>{r(n=>n??String(uMe++))},[e]),t?`radix-${t}`:""}const kK=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const r=m.forwardRef((n,o)=>{const{asChild:i,...a}=n,l=i?MT:t;return m.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),m.createElement(l,Ge({},a,{ref:o}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function dMe({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=fMe({defaultProp:t,onChange:r}),i=e!==void 0,a=i?e:n,l=Mo(r),s=m.useCallback(u=>{if(i){const d=typeof u=="function"?u(e):u;d!==e&&l(d)}else o(u)},[i,e,o,l]);return[a,s]}function fMe({defaultProp:e,onChange:t}){const r=m.useState(e),[n]=r,o=m.useRef(n),i=Mo(t);return m.useEffect(()=>{o.current!==n&&(i(n),o.current=n)},[n,o,i]),r}const mMe=m.createContext(void 0);function pMe(e){const t=m.useContext(mMe);return e||t||"ltr"}const AP="rovingFocusGroup.onEntryFocus",hMe={bubbles:!1,cancelable:!0},IP="RovingFocusGroup",[RP,_K,gMe]=aMe(IP),[vMe,zT]=wK(IP,[gMe]),[bMe,xMe]=vMe(IP),yMe=m.forwardRef((e,t)=>m.createElement(RP.Provider,{scope:e.__scopeRovingFocusGroup},m.createElement(RP.Slot,{scope:e.__scopeRovingFocusGroup},m.createElement(wMe,Ge({},e,{ref:t}))))),wMe=m.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:s,onEntryFocus:u,...c}=e,d=m.useRef(null),f=EP(t,d),p=pMe(i),[g=null,v]=dMe({prop:a,defaultProp:l,onChange:s}),[b,y]=m.useState(!1),w=Mo(u),k=_K(r),E=m.useRef(!1),[_,S]=m.useState(0);return m.useEffect(()=>{const O=d.current;if(O)return O.addEventListener(AP,w),()=>O.removeEventListener(AP,w)},[w]),m.createElement(bMe,{scope:r,orientation:n,dir:p,loop:o,currentTabStopId:g,onItemFocus:m.useCallback(O=>v(O),[v]),onItemShiftTab:m.useCallback(()=>y(!0),[]),onFocusableItemAdd:m.useCallback(()=>S(O=>O+1),[]),onFocusableItemRemove:m.useCallback(()=>S(O=>O-1),[])},m.createElement(kK.div,Ge({tabIndex:b||_===0?-1:0,"data-orientation":n},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:zt(e.onMouseDown,()=>{E.current=!0}),onFocus:zt(e.onFocus,O=>{const A=!E.current;if(O.target===O.currentTarget&&A&&!b){const I=new CustomEvent(AP,hMe);if(O.currentTarget.dispatchEvent(I),!I.defaultPrevented){const H=k().filter(j=>j.focusable),P=H.find(j=>j.active),L=H.find(j=>j.id===g),z=[P,L,...H].filter(Boolean).map(j=>j.ref.current);TK(z)}}E.current=!1}),onBlur:zt(e.onBlur,()=>y(!1))})))}),CMe="RovingFocusGroupItem",kMe=m.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:i,...a}=e,l=cMe(),s=i||l,u=xMe(CMe,r),c=u.currentTabStopId===s,d=_K(r),{onFocusableItemAdd:f,onFocusableItemRemove:p}=u;return m.useEffect(()=>{if(n)return f(),()=>p()},[n,f,p]),m.createElement(RP.ItemSlot,{scope:r,id:s,focusable:n,active:o},m.createElement(kK.span,Ge({tabIndex:c?0:-1,"data-orientation":u.orientation},a,{ref:t,onMouseDown:zt(e.onMouseDown,g=>{n?u.onItemFocus(s):g.preventDefault()}),onFocus:zt(e.onFocus,()=>u.onItemFocus(s)),onKeyDown:zt(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const v=SMe(g,u.orientation,u.dir);if(v!==void 0){g.preventDefault();let y=d().filter(w=>w.focusable).map(w=>w.ref.current);if(v==="last")y.reverse();else if(v==="prev"||v==="next"){v==="prev"&&y.reverse();const w=y.indexOf(g.currentTarget);y=u.loop?EMe(y,w+1):y.slice(w+1)}setTimeout(()=>TK(y))}})})))}),_Me={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function TMe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function SMe(e,t,r){const n=TMe(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return _Me[n]}function TK(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function EMe(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const SK=yMe,EK=kMe,PP=["Enter"," "],OMe=["ArrowDown","PageUp","Home"],OK=["ArrowUp","PageDown","End"],AMe=[...OMe,...OK],IMe={ltr:[...PP,"ArrowRight"],rtl:[...PP,"ArrowLeft"]},RMe={ltr:["ArrowLeft"],rtl:["ArrowRight"]},FT="Menu",[Wx,PMe,HMe]=LBe(FT),[Np,AK]=jY(FT,[HMe,DT,zT]),WT=DT(),IK=zT(),[RK,_f]=Np(FT),[LMe,Vx]=Np(FT),NMe=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:i,modal:a=!0}=e,l=WT(t),[s,u]=m.useState(null),c=m.useRef(!1),d=Mo(i),f=$Be(o);return m.useEffect(()=>{const p=()=>{c.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>c.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),m.createElement(SP,l,m.createElement(RK,{scope:t,open:r,onOpenChange:d,content:s,onContentChange:u},m.createElement(LMe,{scope:t,onClose:m.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:a},n)))},PK=m.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=WT(r);return m.createElement(bK,Ge({},o,n,{ref:t}))}),HK="MenuPortal",[$Me,LK]=Np(HK,{forceMount:void 0}),DMe=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:o}=e,i=_f(HK,t);return m.createElement($Me,{scope:t,forceMount:r},m.createElement(BT,{present:r||i.open},m.createElement(jR,{asChild:!0,container:o},n)))},Zs="MenuContent",[BMe,HP]=Np(Zs),jMe=m.forwardRef((e,t)=>{const r=LK(Zs,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=_f(Zs,e.__scopeMenu),a=Vx(Zs,e.__scopeMenu);return m.createElement(Wx.Provider,{scope:e.__scopeMenu},m.createElement(BT,{present:n||i.open},m.createElement(Wx.Slot,{scope:e.__scopeMenu},a.modal?m.createElement(MMe,Ge({},o,{ref:t})):m.createElement(zMe,Ge({},o,{ref:t})))))}),MMe=m.forwardRef((e,t)=>{const r=_f(Zs,e.__scopeMenu),n=m.useRef(null),o=yf(t,n);return m.useEffect(()=>{const i=n.current;if(i)return $x(i)},[]),m.createElement(LP,Ge({},e,{ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:zt(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)}))}),zMe=m.forwardRef((e,t)=>{const r=_f(Zs,e.__scopeMenu);return m.createElement(LP,Ge({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)}))}),LP=m.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEntryFocus:s,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:g,...v}=e,b=_f(Zs,r),y=Vx(Zs,r),w=WT(r),k=IK(r),E=PMe(r),[_,S]=m.useState(null),O=m.useRef(null),A=yf(t,O,b.onContentChange),I=m.useRef(0),H=m.useRef(""),P=m.useRef(0),L=m.useRef(null),B=m.useRef("right"),z=m.useRef(0),j=g?GR:m.Fragment,q=g?{as:jx,allowPinchZoom:!0}:void 0,W=V=>{var N,Y;const G=H.current+V,F=E().filter(ce=>!ce.disabled),K=document.activeElement,J=(N=F.find(ce=>ce.ref.current===K))===null||N===void 0?void 0:N.textValue,ie=F.map(ce=>ce.textValue),oe=JMe(ie,G,J),le=(Y=F.find(ce=>ce.textValue===oe))===null||Y===void 0?void 0:Y.ref.current;(function ce(pe){H.current=pe,window.clearTimeout(I.current),pe!==""&&(I.current=window.setTimeout(()=>ce(""),1e3))})(G),le&&setTimeout(()=>le.focus())};m.useEffect(()=>()=>window.clearTimeout(I.current),[]),UG();const M=m.useCallback(V=>{var N,Y;return B.current===((N=L.current)===null||N===void 0?void 0:N.side)&&tze(V,(Y=L.current)===null||Y===void 0?void 0:Y.area)},[]);return m.createElement(BMe,{scope:r,searchRef:H,onItemEnter:m.useCallback(V=>{M(V)&&V.preventDefault()},[M]),onItemLeave:m.useCallback(V=>{var N;M(V)||((N=O.current)===null||N===void 0||N.focus(),S(null))},[M]),onTriggerLeave:m.useCallback(V=>{M(V)&&V.preventDefault()},[M]),pointerGraceTimerRef:P,onPointerGraceIntentChange:m.useCallback(V=>{L.current=V},[])},m.createElement(j,q,m.createElement(DR,{asChild:!0,trapped:o,onMountAutoFocus:zt(i,V=>{var N;V.preventDefault(),(N=O.current)===null||N===void 0||N.focus()}),onUnmountAutoFocus:a},m.createElement(HR,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p},m.createElement(SK,Ge({asChild:!0},k,{dir:y.dir,orientation:"vertical",loop:n,currentTabStopId:_,onCurrentTabStopIdChange:S,onEntryFocus:zt(s,V=>{y.isUsingKeyboardRef.current||V.preventDefault()})}),m.createElement(xK,Ge({role:"menu","aria-orientation":"vertical","data-state":jK(b.open),"data-radix-menu-content":"",dir:y.dir},w,v,{ref:A,style:{outline:"none",...v.style},onKeyDown:zt(v.onKeyDown,V=>{const Y=V.target.closest("[data-radix-menu-content]")===V.currentTarget,G=V.ctrlKey||V.altKey||V.metaKey,F=V.key.length===1;Y&&(V.key==="Tab"&&V.preventDefault(),!G&&F&&W(V.key));const K=O.current;if(V.target!==K||!AMe.includes(V.key))return;V.preventDefault();const ie=E().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);OK.includes(V.key)&&ie.reverse(),QMe(ie)}),onBlur:zt(e.onBlur,V=>{V.currentTarget.contains(V.target)||(window.clearTimeout(I.current),H.current="")}),onPointerMove:zt(e.onPointerMove,Ux(V=>{const N=V.target,Y=z.current!==V.clientX;if(V.currentTarget.contains(N)&&Y){const G=V.clientX>z.current?"right":"left";B.current=G,z.current=V.clientX}}))})))))))}),NP="MenuItem",NK="menu.itemSelect",FMe=m.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...o}=e,i=m.useRef(null),a=Vx(NP,e.__scopeMenu),l=HP(NP,e.__scopeMenu),s=yf(t,i),u=m.useRef(!1),c=()=>{const d=i.current;if(!r&&d){const f=new CustomEvent(NK,{bubbles:!0,cancelable:!0});d.addEventListener(NK,p=>n==null?void 0:n(p),{once:!0}),eMe(d,f),f.defaultPrevented?u.current=!1:a.onClose()}};return m.createElement($K,Ge({},o,{ref:s,disabled:r,onClick:zt(e.onClick,c),onPointerDown:d=>{var f;(f=e.onPointerDown)===null||f===void 0||f.call(e,d),u.current=!0},onPointerUp:zt(e.onPointerUp,d=>{var f;u.current||(f=d.currentTarget)===null||f===void 0||f.click()}),onKeyDown:zt(e.onKeyDown,d=>{const f=l.searchRef.current!=="";r||f&&d.key===" "||PP.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})}))}),$K=m.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:o,...i}=e,a=HP(NP,r),l=IK(r),s=m.useRef(null),u=yf(t,s),[c,d]=m.useState(!1),[f,p]=m.useState("");return m.useEffect(()=>{const g=s.current;if(g){var v;p(((v=g.textContent)!==null&&v!==void 0?v:"").trim())}},[i.children]),m.createElement(Wx.ItemSlot,{scope:r,disabled:n,textValue:o??f},m.createElement(EK,Ge({asChild:!0},l,{focusable:!n}),m.createElement(yK.div,Ge({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0},i,{ref:u,onPointerMove:zt(e.onPointerMove,Ux(g=>{n?a.onItemLeave(g):(a.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus())})),onPointerLeave:zt(e.onPointerLeave,Ux(g=>a.onItemLeave(g))),onFocus:zt(e.onFocus,()=>d(!0)),onBlur:zt(e.onBlur,()=>d(!1))}))))}),WMe="MenuRadioGroup",[PYt,HYt]=Np(WMe,{value:void 0,onValueChange:()=>{}}),VMe="MenuItemIndicator",[LYt,NYt]=Np(VMe,{checked:!1}),UMe=m.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return m.createElement(yK.div,Ge({role:"separator","aria-orientation":"horizontal"},n,{ref:t}))}),DK="MenuSub",[qMe,BK]=Np(DK),GMe=e=>{const{__scopeMenu:t,children:r,open:n=!1,onOpenChange:o}=e,i=_f(DK,t),a=WT(t),[l,s]=m.useState(null),[u,c]=m.useState(null),d=Mo(o);return m.useEffect(()=>(i.open===!1&&d(!1),()=>d(!1)),[i.open,d]),m.createElement(SP,a,m.createElement(RK,{scope:t,open:n,onOpenChange:d,content:u,onContentChange:c},m.createElement(qMe,{scope:t,contentId:MY(),triggerId:MY(),trigger:l,onTriggerChange:s},r)))},VT="MenuSubTrigger",YMe=m.forwardRef((e,t)=>{const r=_f(VT,e.__scopeMenu),n=Vx(VT,e.__scopeMenu),o=BK(VT,e.__scopeMenu),i=HP(VT,e.__scopeMenu),a=m.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:s}=i,u={__scopeMenu:e.__scopeMenu},c=m.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return m.useEffect(()=>c,[c]),m.useEffect(()=>{const d=l.current;return()=>{window.clearTimeout(d),s(null)}},[l,s]),m.createElement(PK,Ge({asChild:!0},u),m.createElement($K,Ge({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":jK(r.open)},e,{ref:uP(t,o.onTriggerChange),onClick:d=>{var f;(f=e.onClick)===null||f===void 0||f.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:zt(e.onPointerMove,Ux(d=>{i.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!r.open&&!a.current&&(i.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{r.onOpenChange(!0),c()},100))})),onPointerLeave:zt(e.onPointerLeave,Ux(d=>{var f;c();const p=(f=r.content)===null||f===void 0?void 0:f.getBoundingClientRect();if(p){var g;const v=(g=r.content)===null||g===void 0?void 0:g.dataset.side,b=v==="right",y=b?-5:5,w=p[b?"left":"right"],k=p[b?"right":"left"];i.onPointerGraceIntentChange({area:[{x:d.clientX+y,y:d.clientY},{x:w,y:p.top},{x:k,y:p.top},{x:k,y:p.bottom},{x:w,y:p.bottom}],side:v}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(d),d.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:zt(e.onKeyDown,d=>{const f=i.searchRef.current!=="";if(!(e.disabled||f&&d.key===" ")&&IMe[n.dir].includes(d.key)){var p;r.onOpenChange(!0),(p=r.content)===null||p===void 0||p.focus(),d.preventDefault()}})})))}),KMe="MenuSubContent",XMe=m.forwardRef((e,t)=>{const r=LK(Zs,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=_f(Zs,e.__scopeMenu),a=Vx(Zs,e.__scopeMenu),l=BK(KMe,e.__scopeMenu),s=m.useRef(null),u=yf(t,s);return m.createElement(Wx.Provider,{scope:e.__scopeMenu},m.createElement(BT,{present:n||i.open},m.createElement(Wx.Slot,{scope:e.__scopeMenu},m.createElement(LP,Ge({id:l.contentId,"aria-labelledby":l.triggerId},o,{ref:u,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:c=>{var d;a.isUsingKeyboardRef.current&&((d=s.current)===null||d===void 0||d.focus()),c.preventDefault()},onCloseAutoFocus:c=>c.preventDefault(),onFocusOutside:zt(e.onFocusOutside,c=>{c.target!==l.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:zt(e.onEscapeKeyDown,c=>{a.onClose(),c.preventDefault()}),onKeyDown:zt(e.onKeyDown,c=>{const d=c.currentTarget.contains(c.target),f=RMe[a.dir].includes(c.key);if(d&&f){var p;i.onOpenChange(!1),(p=l.trigger)===null||p===void 0||p.focus(),c.preventDefault()}})})))))});function jK(e){return e?"open":"closed"}function QMe(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function ZMe(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function JMe(e,t,r){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let a=ZMe(e,Math.max(i,0));o.length===1&&(a=a.filter(u=>u!==r));const s=a.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return s!==r?s:void 0}function eze(e,t){const{x:r,y:n}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const l=t[i].x,s=t[i].y,u=t[a].x,c=t[a].y;s>n!=c>n&&r<(u-l)*(n-s)/(c-s)+l&&(o=!o)}return o}function tze(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return eze(r,t)}function Ux(e){return t=>t.pointerType==="mouse"?e(t):void 0}const rze=NMe,nze=PK,oze=DMe,ize=jMe,aze=FMe,lze=UMe,sze=GMe,uze=YMe,cze=XMe,dze=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},fze=Fc.useId||(()=>{});let mze=0;function MK(e){const[t,r]=m.useState(fze());return dze(()=>{r(n=>n??String(mze++))},[e]),e||(t?`radix-${t}`:"")}const zK="DropdownMenu",[pze,$Yt]=CBe(zK,[AK]),id=AK(),[hze,FK]=pze(zK),WK=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:i,onOpenChange:a,modal:l=!0}=e,s=id(t),u=m.useRef(null),[c=!1,d]=DY({prop:o,defaultProp:i,onChange:a});return m.createElement(hze,{scope:t,triggerId:MK(),triggerRef:u,contentId:MK(),open:c,onOpenChange:d,onOpenToggle:m.useCallback(()=>d(f=>!f),[d]),modal:l},m.createElement(rze,Ge({},s,{open:c,onOpenChange:d,dir:n,modal:l}),r))},gze="DropdownMenuTrigger",VK=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,i=FK(gze,r),a=id(r);return m.createElement(nze,Ge({asChild:!0},a),m.createElement(OBe.button,Ge({type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":n?"":void 0,disabled:n},o,{ref:$Y(t,i.triggerRef),onPointerDown:zt(e.onPointerDown,l=>{!n&&l.button===0&&l.ctrlKey===!1&&(i.onOpenToggle(),i.open||l.preventDefault())}),onKeyDown:zt(e.onKeyDown,l=>{n||(["Enter"," "].includes(l.key)&&i.onOpenToggle(),l.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})))}),UK=e=>{const{__scopeDropdownMenu:t,...r}=e,n=id(t);return m.createElement(oze,Ge({},n,r))},vze="DropdownMenuContent",qK=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=FK(vze,r),i=id(r),a=m.useRef(!1);return m.createElement(ize,Ge({id:o.contentId,"aria-labelledby":o.triggerId},i,n,{ref:t,onCloseAutoFocus:zt(e.onCloseAutoFocus,l=>{var s;a.current||(s=o.triggerRef.current)===null||s===void 0||s.focus(),a.current=!1,l.preventDefault()}),onInteractOutside:zt(e.onInteractOutside,l=>{const s=l.detail.originalEvent,u=s.button===0&&s.ctrlKey===!0,c=s.button===2||u;(!o.modal||c)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),GK=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=id(r);return m.createElement(aze,Ge({},o,n,{ref:t}))}),bze=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=id(r);return m.createElement(lze,Ge({},o,n,{ref:t}))}),YK=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:i}=e,a=id(t),[l=!1,s]=DY({prop:n,defaultProp:i,onChange:o});return m.createElement(sze,Ge({},a,{open:l,onOpenChange:s}),r)},KK=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=id(r);return m.createElement(uze,Ge({},o,n,{ref:t}))}),XK=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=id(r);return m.createElement(cze,Ge({},o,n,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),xze=WK,yze=VK,QK=UK,wze=qK,Cze=GK,kze=bze,_ze=YK,Tze=KK,Sze=XK,qx={themeVars:`'{"backgroundColor-dropdown-NavGroup": "var(--xmlui-backgroundColor-dropdown-NavGroup)", "boxShadow-dropdown-NavGroup": "var(--xmlui-boxShadow-dropdown-NavGroup)", "borderRadius-dropdown-NavGroup": "var(--xmlui-borderRadius-dropdown-NavGroup)"}'`,dropdownList:"_dropdownList_1c6ff_13",groupContent:"_groupContent_1c6ff_32",groupContentInner:"_groupContentInner_1c6ff_39",expanded:"_expanded_1c6ff_43"};function $P(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{i(...l),o(...l)}:o&&(r[n]=o):n==="style"?r[n]=i?{...i,...o}:o:n==="className"&&(r[n]=i?[i,o].filter(Boolean).join(" "):o)}return{...e,...r}}const rs={iconHorizontalExpanded:"chevronright",iconHorizontalCollapsed:"chevronright",iconVerticalExpanded:"chevrondown",iconVerticalCollapsed:"chevronright"},Eze=m.forwardRef(function({node:t,style:r,label:n,icon:o,renderChild:i,to:a,disabled:l=!1,initiallyExpanded:s,iconHorizontalCollapsed:u,iconHorizontalExpanded:c,iconVerticalCollapsed:d,iconVerticalExpanded:f},p){const{level:g}=m.useContext(Gx),v=Pp(),b=m.useContext(lP),y=!!v&&aP(v.layout).includes("vertical");let w=(v==null?void 0:v.layout)==="vertical"||(v==null?void 0:v.layout)==="vertical-sticky"||(v==null?void 0:v.layout)==="vertical-full-header";b!==null&&(w=b.inDrawer);const k=m.useMemo(()=>({level:g+1,layoutIsVertical:y,iconHorizontalCollapsed:u??rs.iconHorizontalCollapsed,iconHorizontalExpanded:c??rs.iconHorizontalExpanded,iconVerticalCollapsed:d??rs.iconVerticalCollapsed,iconVerticalExpanded:f??rs.iconVerticalExpanded}),[u,c,d,f,g,y]);return C.jsx(Gx.Provider,{value:k,children:w?C.jsx(Oze,{to:a,style:r,label:n,icon:o,node:t,renderChild:i,ref:p,initiallyExpanded:s,disabled:l}):C.jsx(Aze,{label:n,icon:o,node:t,renderChild:i,ref:p,to:a,disabled:l})})}),Oze=m.forwardRef(function({style:t=Jt,label:r,icon:n,renderChild:o,node:i,to:a,initiallyExpanded:l=!1,disabled:s=!1},u){const{level:c,iconVerticalCollapsed:d,iconVerticalExpanded:f,layoutIsVertical:p}=m.useContext(Gx),[g,v]=m.useState(l),b=m.useRef(null),{pathname:y}=dl();m.useEffect(()=>{b.current.querySelector(".xmlui-navlink-active")!==null&&v(!0)},[y]);const w={...t,"--nav-link-level":p?c:0};return C.jsxs(C.Fragment,{children:[C.jsxs(Yx,{style:w,onClick:()=>v(k=>!k),icon:n,to:a,disabled:s,children:[r,C.jsx("div",{style:{flex:1}}),C.jsx(kt,{name:g?f:d})]}),C.jsx("div",{className:ze(qx.groupContent,{[qx.expanded]:g}),children:C.jsx("div",{className:qx.groupContentInner,ref:b,children:o(i.children)})})]})}),Aze=m.forwardRef(function({style:t,label:r,icon:n,renderChild:o,node:i,to:a,disabled:l=!1},s){const{level:u,iconHorizontalCollapsed:c,iconHorizontalExpanded:d,iconVerticalCollapsed:f,iconVerticalExpanded:p}=m.useContext(Gx),{root:g}=zr();let v=WK,b=VK,y=qK;u>=1&&(v=YK,b=KK,y=XK);const[w,k]=m.useState(!1);return C.jsxs(v,{onOpenChange:E=>k(E),children:[C.jsx(b,{asChild:!0,disabled:l,children:C.jsxs(Yx,{icon:n,style:{flexShrink:0},vertical:u>=1,to:a,disabled:l,children:[r,C.jsx("div",{style:{flex:1}}),u===0&&C.jsx(kt,{name:p}),u>=1&&C.jsx(kt,{name:w?d:c})]})}),C.jsx(UK,{container:g,children:C.jsx(y,{className:qx.dropdownList,style:{display:"flex",flexDirection:"column"},side:"bottom",align:"start",children:o(i.children,{wrapChild:({node:E},_,S)=>{if(S!=null&&S.opaque||E.type==="List"||E.type==="NavGroup")return _;let O=_;return E.type==="NavLink"&&(O=m.cloneElement(_,{...$P(_.props,{vertical:!0})})),C.jsx(GK,{asChild:!0,children:O})}})})})]})}),Gx=m.createContext({level:-1,layoutIsVertical:!1,iconHorizontalCollapsed:rs.iconHorizontalCollapsed,iconHorizontalExpanded:rs.iconHorizontalExpanded,iconVerticalCollapsed:rs.iconVerticalCollapsed,iconVerticalExpanded:rs.iconVerticalExpanded}),DP={active:!1,displayActive:!0},Yx=m.forwardRef(function({uid:t,children:r,disabled:n,to:o,displayActive:i=DP.displayActive,vertical:a,style:l,onClick:s,icon:u,forceActive:c,...d},f){const p=Pp(),g=!!p&&aP(p.layout).includes("vertical"),v=m.useContext(lP),b=v==null?void 0:v.inDrawer,{level:y}=m.useContext(Gx);let w=a;w===void 0&&(w=g||b);const k=m.useMemo(()=>{if(o)return Q_(o)},[o]),E=m.useMemo(()=>({"--nav-link-level":g?y+1:0,...l}),[y,l,g]),_=ze(Jl.content,Jl.base,{[Jl.disabled]:n,[Jl.vertical]:w,[Jl.includeHoverIndicator]:i,[Jl.navItemActive]:i&&c});let S=C.jsxs("div",{className:Jl.innerContent,children:[u,r]}),O=null;return n||!k?O=C.jsx("button",{...d,ref:f,onClick:s,className:_,style:E,disabled:n,children:S}):O=C.jsx(gR,{id:t,...d,ref:f,to:k,style:E,onClick:s,className:({isActive:A})=>ze(_,{[Jl.displayActive]:i,[Jl.navItemActive]:i&&(A||c),"xmlui-navlink-active":A||c}),children:S}),O}),Nn="NavLink",ZK={status:"stable",description:"`NavLink` creates interactive navigation items that connect users to different destinations within an app or external URLs. It automatically indicates active states, supports custom icons and labels, and can execute custom actions instead of navigation when needed.",props:{to:re("This property defines the URL of the link."),enabled:wo(),active:{description:"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`.",valueType:"boolean",defaultValue:DP.active},target:{description:"This optionally property specifies how to open the clicked link.",availableValues:BU,type:"string"},label:to(),vertical:{description:`This property sets how the active status is displayed on the \`${Nn}\` component. If set to true, the indicator is displayed on the side which lends itself to a vertically aligned navigation menu. By default, it displays a horizontal indicator.`,valueType:"boolean"},displayActive:{description:"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.",valueType:"boolean",defaultValue:DP.displayActive},icon:re("This property allows you to add an optional icon (specify the icon's name) to the navigation link.")},events:{click:dv(Nn)},themeVars:tt(Jl.themeVars),themeVarDescriptions:{[`color-indicator-${Nn}`]:"Provides the following states: `--hover`, `--active`, `--pressed`"},defaultThemeVars:{[`border-${Nn}`]:"0px solid $borderColor",[`borderRadius-${Nn}`]:"$borderRadius",[`backgroundColor-${Nn}`]:"transparent",[`paddingHorizontal-${Nn}`]:"$space-4",[`paddingVertical-${Nn}`]:"$space-2",[`fontSize-${Nn}`]:"$fontSize-small",[`fontWeight-${Nn}`]:"$fontWeight-normal",[`fontFamily-${Nn}`]:"$fontFamily",[`textColor-${Nn}`]:"$textColor-primary",[`fontWeight-${Nn}--pressed`]:"$fontWeight-normal",[`thickness-indicator-${Nn}`]:"$space-0_5",[`outlineColor-${Nn}--focus`]:"$outlineColor--focus",[`outlineWidth-${Nn}--focus`]:"$outlineWidth--focus",[`outlineStyle-${Nn}--focus`]:"$outlineStyle--focus",[`outlineOffset-${Nn}--focus`]:"-1px",[`borderRadius-indicator-${Nn}`]:"$borderRadius",[`color-icon-${Nn}`]:"$color-surface-500",[`color-indicator-${Nn}--active`]:"$color-primary-500",[`color-indicator-${Nn}--pressed`]:"$color-primary-500",[`color-indicator-${Nn}--hover`]:"$color-primary-600"}},Ize=xe(Nn,ZK,({node:e,extractValue:t,renderChild:r,layoutCss:n})=>{var i;const o=t.asString(e.props.icon);return C.jsx(Yx,{uid:e.uid,to:t(e.props.to),disabled:!t.asOptionalBoolean(e.props.enabled??!0),vertical:t.asOptionalBoolean(e.props.vertical),displayActive:t.asOptionalBoolean(e.props.displayActive),forceActive:t.asOptionalBoolean(e.props.active),style:n,target:t((i=e.props)==null?void 0:i.target),icon:C.jsx(kt,{name:o,className:Jl.icon}),children:t.asDisplayText(e.props.label)||r(e.children)})}),Bv={themeVars:`'{"padding-Link": "var(--xmlui-padding-Link)", "paddingHorizontal-Link": "var(--xmlui-paddingHorizontal-Link, var(--xmlui-padding-Link))", "paddingVertical-Link": "var(--xmlui-paddingVertical-Link, var(--xmlui-padding-Link))", "paddingLeft-Link": "var(--xmlui-paddingLeft-Link, var(--xmlui-paddingHorizontal-Link, var(--xmlui-padding-Link)))", "paddingRight-Link": "var(--xmlui-paddingRight-Link, var(--xmlui-paddingHorizontal-Link, var(--xmlui-padding-Link)))", "paddingTop-Link": "var(--xmlui-paddingTop-Link, var(--xmlui-paddingVertical-Link, var(--xmlui-padding-Link)))", "paddingBottom-Link": "var(--xmlui-paddingBottom-Link, var(--xmlui-paddingVertical-Link, var(--xmlui-padding-Link)))", "padding-icon-Link": "var(--xmlui-padding-icon-Link)", "paddingHorizontal-icon-Link": "var(--xmlui-paddingHorizontal-icon-Link, var(--xmlui-padding-icon-Link))", "paddingVertical-icon-Link": "var(--xmlui-paddingVertical-icon-Link, var(--xmlui-padding-icon-Link))", "paddingLeft-icon-Link": "var(--xmlui-paddingLeft-icon-Link, var(--xmlui-paddingHorizontal-icon-Link, var(--xmlui-padding-icon-Link)))", "paddingRight-icon-Link": "var(--xmlui-paddingRight-icon-Link, var(--xmlui-paddingHorizontal-icon-Link, var(--xmlui-padding-icon-Link)))", "paddingTop-icon-Link": "var(--xmlui-paddingTop-icon-Link, var(--xmlui-paddingVertical-icon-Link, var(--xmlui-padding-icon-Link)))", "paddingBottom-icon-Link": "var(--xmlui-paddingBottom-icon-Link, var(--xmlui-paddingVertical-icon-Link, var(--xmlui-padding-icon-Link)))", "border-Link": "var(--xmlui-border-Link)", "borderHorizontal-Link": "var(--xmlui-borderHorizontal-Link, var(--xmlui-border-Link))", "borderVertical-Link": "var(--xmlui-borderVertical-Link, var(--xmlui-border-Link))", "borderLeft-Link": "var(--xmlui-borderLeft-Link, var(--xmlui-borderHorizontal-Link, var(--xmlui-border-Link)))", "borderRight-Link": "var(--xmlui-borderRight-Link, var(--xmlui-borderHorizontal-Link, var(--xmlui-border-Link)))", "borderTop-Link": "var(--xmlui-borderTop-Link, var(--xmlui-borderVertical-Link, var(--xmlui-border-Link)))", "borderBottom-Link": "var(--xmlui-borderBottom-Link, var(--xmlui-borderVertical-Link, var(--xmlui-border-Link)))", "borderWidth-Link": "var(--xmlui-borderWidth-Link)", "borderHorizontalWidth-Link": "var(--xmlui-borderHorizontalWidth-Link, var(--xmlui-borderWidth-Link))", "borderLeftWidth-Link": "var(--xmlui-borderLeftWidth-Link, var(--xmlui-borderHorizontalWidth-Link, var(--xmlui-borderWidth-Link)))", "borderRightWidth-Link": "var(--xmlui-borderRightWidth-Link, var(--xmlui-borderHorizontalWidth-Link, var(--xmlui-borderWidth-Link)))", "borderVerticalWidth-Link": "var(--xmlui-borderVerticalWidth-Link, var(--xmlui-borderWidth-Link))", "borderTopWidth-Link": "var(--xmlui-borderTopWidth-Link, var(--xmlui-borderVerticalWidth-Link, var(--xmlui-borderWidth-Link)))", "borderBottomWidth-Link": "var(--xmlui-borderBottomWidth-Link, var(--xmlui-borderVerticalWidth-Link, var(--xmlui-borderWidth-Link)))", "borderStyle-Link": "var(--xmlui-borderStyle-Link)", "borderHorizontalStyle-Link": "var(--xmlui-borderHorizontalStyle-Link, var(--xmlui-borderStyle-Link))", "borderLeftStyle-Link": "var(--xmlui-borderLeftStyle-Link, var(--xmlui-borderHorizontalStyle-Link, var(--xmlui-borderStyle-Link)))", "borderRightStyle-Link": "var(--xmlui-borderRightStyle-Link, var(--xmlui-borderHorizontalStyle-Link, var(--xmlui-borderStyle-Link)))", "borderVerticalStyle-Link": "var(--xmlui-borderVerticalStyle-Link, var(--xmlui-borderStyle-Link))", "borderTopStyle-Link": "var(--xmlui-borderTopStyle-Link, var(--xmlui-borderVerticalStyle-Link, var(--xmlui-borderStyle-Link)))", "borderBottomStyle-Link": "var(--xmlui-borderBottomStyle-Link, var(--xmlui-borderVerticalStyle-Link, var(--xmlui-borderStyle-Link)))", "borderColor-Link": "var(--xmlui-borderColor-Link)", "borderHorizontalColor-Link": "var(--xmlui-borderHorizontalColor-Link, var(--xmlui-borderColor-Link))", "borderLeftColor-Link": "var(--xmlui-borderLeftColor-Link, var(--xmlui-borderHorizontalColor-Link, var(--xmlui-borderColor-Link)))", "borderRightColor-Link": "var(--xmlui-borderRightColor-Link, var(--xmlui-borderHorizontalColor-Link, var(--xmlui-borderColor-Link)))", "borderVerticalColor-Link": "var(--xmlui-borderVerticalColor-Link, var(--xmlui-borderColor-Link))", "borderTopColor-Link": "var(--xmlui-borderTopColor-Link, var(--xmlui-borderVerticalColor-Link, var(--xmlui-borderColor-Link)))", "borderBottomColor-Link": "var(--xmlui-borderBottomColor-Link, var(--xmlui-borderVerticalColor-Link, var(--xmlui-borderColor-Link)))", "borderStartStartRadius-Link": "var(--xmlui-borderStartStartRadius-Link, var(--xmlui-borderRadius-Link))", "borderStartEndRadius-Link": "var(--xmlui-borderStartEndRadius-Link, var(--xmlui-borderRadius-Link))", "borderEndStartRadius-Link": "var(--xmlui-borderEndStartRadius-Link, var(--xmlui-borderRadius-Link))", "borderEndEndRadius-Link": "var(--xmlui-borderEndEndRadius-Link, var(--xmlui-borderRadius-Link))", "textColor-Link": "var(--xmlui-textColor-Link)", "fontFamily-Link": "var(--xmlui-fontFamily-Link)", "fontSize-Link": "var(--xmlui-fontSize-Link)", "fontStyle-Link": "var(--xmlui-fontStyle-Link)", "fontVariant-Link": "var(--xmlui-fontVariant-Link)", "fontWeight-Link": "var(--xmlui-fontWeight-Link)", "fontStretch-Link": "var(--xmlui-fontStretch-Link)", "textDecorationLine-Link": "var(--xmlui-textDecorationLine-Link)", "textDecorationColor-Link": "var(--xmlui-textDecorationColor-Link)", "textDecorationStyle-Link": "var(--xmlui-textDecorationStyle-Link)", "textDecorationThickness-Link": "var(--xmlui-textDecorationThickness-Link)", "textUnderlineOffset-Link": "var(--xmlui-textUnderlineOffset-Link)", "lineHeight-Link": "var(--xmlui-lineHeight-Link)", "backgroundColor-Link": "var(--xmlui-backgroundColor-Link)", "textTransform-Link": "var(--xmlui-textTransform-Link)", "letterSpacing-Link": "var(--xmlui-letterSpacing-Link)", "wordSpacing-Link": "var(--xmlui-wordSpacing-Link)", "textShadow-Link": "var(--xmlui-textShadow-Link)", "textIndent-Link": "var(--xmlui-textIndent-Link)", "textAlign-Link": "var(--xmlui-textAlign-Link)", "textAlignLast-Link": "var(--xmlui-textAlignLast-Link)", "wordBreak-Link": "var(--xmlui-wordBreak-Link)", "wordWrap-Link": "var(--xmlui-wordWrap-Link)", "direction-Link": "var(--xmlui-direction-Link)", "writingMode-Link": "var(--xmlui-writingMode-Link)", "lineBreak-Link": "var(--xmlui-lineBreak-Link)", "textColor-Link--active": "var(--xmlui-textColor-Link--active)", "textColor-Link--hover": "var(--xmlui-textColor-Link--hover)", "textColor-Link--hover--active": "var(--xmlui-textColor-Link--hover--active)", "fontWeight-Link--active": "var(--xmlui-fontWeight-Link--active)", "gap-icon-Link": "var(--xmlui-gap-icon-Link)", "textDecorationColor-Link--hover": "var(--xmlui-textDecorationColor-Link--hover)", "textDecorationColor-Link--active": "var(--xmlui-textDecorationColor-Link--active)", "outlineWidth-Link--focus": "var(--xmlui-outlineWidth-Link--focus)", "outlineColor-Link--focus": "var(--xmlui-outlineColor-Link--focus)", "outlineStyle-Link--focus": "var(--xmlui-outlineStyle-Link--focus)", "outlineOffset-Link--focus": "var(--xmlui-outlineOffset-Link--focus)"}'`,container:"_container_1gaie_13",active:"_active_1gaie_74",disabled:"_disabled_1gaie_78",iconWrapper:"_iconWrapper_1gaie_94"},BP={active:!1,disabled:!1},Kx=m.forwardRef(function(t,r){const{to:n,children:o,icon:i,active:a=BP.active,onClick:l,target:s,disabled:u=BP.disabled,style:c,...d}=Rze(t),f=!!i&&!o,p=m.useMemo(()=>Q_(n),[n]),g=n?vR:"div",v=typeof n=="string"&&n.startsWith("#"),b=v?"a":g,y=m.useCallback(w=>{const k=typeof n=="string"?n:n==null?void 0:n.pathname;if(k&&k.startsWith("#")){const E=k.substring(1);w.preventDefault();const _=document.getElementById(E);if(_){_.scrollIntoView();const O=window.location.href.split("#")[0],A=window.location.hash;let I;if(A&&A!==k)if(A.includes("/#")){const H=A.split("/#")[0];I=`${O}${H}/${k}`}else I=`${O}${A}/${k}`;else I=`${O}${k}`;window.history.pushState(null,"",I)}l==null||l();return}l==null||l()},[n,l]);return C.jsxs(b,{ref:r,to:v?void 0:p,href:v?n:void 0,style:c,target:s,onClick:y,className:ze(Bv.container,{[Bv.iconLink]:f,[Bv.active]:a,[Bv.disabled]:u}),...d,children:[i&&C.jsx("div",{className:Bv.iconWrapper,children:C.jsx(kt,{name:i})}),o]})});function Rze(e){const{target:t,referrerPolicy:r}=e;return{...e,target:t,referrerPolicy:r}}const Yr="Link",JK={status:"stable",description:"`Link` creates clickable navigation elements for internal app routes or external URLs. You can use the `label` and `icon` properties for simple text links, or embed custom components like buttons, cards, or complex layouts for rich interactive link presentations.",props:{to:re("This property defines the URL of the link. If the value is not defined, the link cannot be activated."),enabled:wo(),active:{description:"Indicates whether this link is active or not. If so, it will have a distinct visual appearance.",type:"boolean",defaultValue:BP.active},target:{description:`This property specifies where to open the link represented by the \`${Yr}\`. This property accepts the following values (in accordance with the HTML standard):`,availableValues:BU,type:"string"},label:to(),icon:re("This property allows you to add an optional icon (specify the icon's name) to the link.")},themeVars:tt(Bv.themeVars),themeVarDescriptions:{[`gap-icon-${Yr}`]:"This property defines the size of the gap between the icon and the label."},defaultThemeVars:{[`border-${Yr}`]:"0px solid $borderColor",[`textColor-${Yr}`]:"$color-primary-500",[`textDecorationColor-${Yr}`]:`textDecorationColor-${Yr}`,[`textColor-${Yr}--hover`]:"$color-primary-400",[`textDecorationColor-${Yr}--hover`]:`textColor-${Yr}--hover`,[`textColor-${Yr}--active`]:"$color-primary-400",[`textDecorationColor-${Yr}--active`]:`textColor-${Yr}--active`,[`textColor-${Yr}--hover--active`]:`$textColor-${Yr}--active`,[`textUnderlineOffset-${Yr}`]:"$space-1",[`textDecorationLine-${Yr}`]:"underline",[`textDecorationStyle-${Yr}`]:"solid",[`outlineColor-${Yr}--focus`]:"$outlineColor--focus",[`outlineWidth-${Yr}--focus`]:"$outlineWidth--focus",[`outlineStyle-${Yr}--focus`]:"$outlineStyle--focus",[`outlineOffset-${Yr}--focus`]:"$outlineOffset--focus",[`fontSize-${Yr}`]:"inherit",[`fontWeight-${Yr}--active`]:"$fontWeight-bold",[`gap-icon-${Yr}`]:"$gap-tight",[`padding-icon-${Yr}`]:"$space-0_5",dark:{[`textColor-${Yr}`]:"$color-primary-600",[`textColor-${Yr}--hover`]:"$color-primary-500",[`textColor-${Yr}--active`]:"$color-primary-500"}}},Pze=xe(Yr,JK,({node:e,extractValue:t,renderChild:r,layoutCss:n})=>{var o;return C.jsx(Kx,{to:t(e.props.to),icon:t(e.props.icon),active:t.asOptionalBoolean(e.props.active,!1),target:t((o=e.props)==null?void 0:o.target),style:n,disabled:!t.asOptionalBoolean(e.props.enabled??!0),children:e.props.label?t.asDisplayText(e.props.label):r(e.children)})}),wi=m.memo(({node:e,item:t,context:r,renderChild:n,layoutContext:o,contextVars:i=Jt,itemKey:a="$item",contextKey:l="$context"})=>{const s=ri(i),u=m.useMemo(()=>a===l?{type:"Container",contextVars:{[a]:{...t,...r},...s},children:Array.isArray(e)?e:[e]}:{type:"Container",contextVars:{[a]:t,[l]:r,...s},children:Array.isArray(e)?e:[e]},[r,t,e,s]);return C.jsx(C.Fragment,{children:n(u,o)})}),Hze={status:"in progress",description:"The `Tree` component is a virtualized tree component that displays hierarchical data.",props:{data:{description:"The data source of the tree.",required:!0},selectedUid:{description:"The ID (optional) of the selected tree row."},itemTemplate:br("The template for each item in the tree.")}},Aa={themeVars:`'{"fontSize-TreeDisplay": "var(--xmlui-fontSize-TreeDisplay)", "border-TreeDisplay": "var(--xmlui-border-TreeDisplay)", "borderHorizontal-TreeDisplay": "var(--xmlui-borderHorizontal-TreeDisplay, var(--xmlui-border-TreeDisplay))", "borderVertical-TreeDisplay": "var(--xmlui-borderVertical-TreeDisplay, var(--xmlui-border-TreeDisplay))", "borderLeft-TreeDisplay": "var(--xmlui-borderLeft-TreeDisplay, var(--xmlui-borderHorizontal-TreeDisplay, var(--xmlui-border-TreeDisplay)))", "borderRight-TreeDisplay": "var(--xmlui-borderRight-TreeDisplay, var(--xmlui-borderHorizontal-TreeDisplay, var(--xmlui-border-TreeDisplay)))", "borderTop-TreeDisplay": "var(--xmlui-borderTop-TreeDisplay, var(--xmlui-borderVertical-TreeDisplay, var(--xmlui-border-TreeDisplay)))", "borderBottom-TreeDisplay": "var(--xmlui-borderBottom-TreeDisplay, var(--xmlui-borderVertical-TreeDisplay, var(--xmlui-border-TreeDisplay)))", "borderWidth-TreeDisplay": "var(--xmlui-borderWidth-TreeDisplay)", "borderHorizontalWidth-TreeDisplay": "var(--xmlui-borderHorizontalWidth-TreeDisplay, var(--xmlui-borderWidth-TreeDisplay))", "borderLeftWidth-TreeDisplay": "var(--xmlui-borderLeftWidth-TreeDisplay, var(--xmlui-borderHorizontalWidth-TreeDisplay, var(--xmlui-borderWidth-TreeDisplay)))", "borderRightWidth-TreeDisplay": "var(--xmlui-borderRightWidth-TreeDisplay, var(--xmlui-borderHorizontalWidth-TreeDisplay, var(--xmlui-borderWidth-TreeDisplay)))", "borderVerticalWidth-TreeDisplay": "var(--xmlui-borderVerticalWidth-TreeDisplay, var(--xmlui-borderWidth-TreeDisplay))", "borderTopWidth-TreeDisplay": "var(--xmlui-borderTopWidth-TreeDisplay, var(--xmlui-borderVerticalWidth-TreeDisplay, var(--xmlui-borderWidth-TreeDisplay)))", "borderBottomWidth-TreeDisplay": "var(--xmlui-borderBottomWidth-TreeDisplay, var(--xmlui-borderVerticalWidth-TreeDisplay, var(--xmlui-borderWidth-TreeDisplay)))", "borderStyle-TreeDisplay": "var(--xmlui-borderStyle-TreeDisplay)", "borderHorizontalStyle-TreeDisplay": "var(--xmlui-borderHorizontalStyle-TreeDisplay, var(--xmlui-borderStyle-TreeDisplay))", "borderLeftStyle-TreeDisplay": "var(--xmlui-borderLeftStyle-TreeDisplay, var(--xmlui-borderHorizontalStyle-TreeDisplay, var(--xmlui-borderStyle-TreeDisplay)))", "borderRightStyle-TreeDisplay": "var(--xmlui-borderRightStyle-TreeDisplay, var(--xmlui-borderHorizontalStyle-TreeDisplay, var(--xmlui-borderStyle-TreeDisplay)))", "borderVerticalStyle-TreeDisplay": "var(--xmlui-borderVerticalStyle-TreeDisplay, var(--xmlui-borderStyle-TreeDisplay))", "borderTopStyle-TreeDisplay": "var(--xmlui-borderTopStyle-TreeDisplay, var(--xmlui-borderVerticalStyle-TreeDisplay, var(--xmlui-borderStyle-TreeDisplay)))", "borderBottomStyle-TreeDisplay": "var(--xmlui-borderBottomStyle-TreeDisplay, var(--xmlui-borderVerticalStyle-TreeDisplay, var(--xmlui-borderStyle-TreeDisplay)))", "borderColor-TreeDisplay": "var(--xmlui-borderColor-TreeDisplay)", "borderHorizontalColor-TreeDisplay": "var(--xmlui-borderHorizontalColor-TreeDisplay, var(--xmlui-borderColor-TreeDisplay))", "borderLeftColor-TreeDisplay": "var(--xmlui-borderLeftColor-TreeDisplay, var(--xmlui-borderHorizontalColor-TreeDisplay, var(--xmlui-borderColor-TreeDisplay)))", "borderRightColor-TreeDisplay": "var(--xmlui-borderRightColor-TreeDisplay, var(--xmlui-borderHorizontalColor-TreeDisplay, var(--xmlui-borderColor-TreeDisplay)))", "borderVerticalColor-TreeDisplay": "var(--xmlui-borderVerticalColor-TreeDisplay, var(--xmlui-borderColor-TreeDisplay))", "borderTopColor-TreeDisplay": "var(--xmlui-borderTopColor-TreeDisplay, var(--xmlui-borderVerticalColor-TreeDisplay, var(--xmlui-borderColor-TreeDisplay)))", "borderBottomColor-TreeDisplay": "var(--xmlui-borderBottomColor-TreeDisplay, var(--xmlui-borderVerticalColor-TreeDisplay, var(--xmlui-borderColor-TreeDisplay)))", "borderStartStartRadius-TreeDisplay": "var(--xmlui-borderStartStartRadius-TreeDisplay, var(--xmlui-borderRadius-TreeDisplay))", "borderStartEndRadius-TreeDisplay": "var(--xmlui-borderStartEndRadius-TreeDisplay, var(--xmlui-borderRadius-TreeDisplay))", "borderEndStartRadius-TreeDisplay": "var(--xmlui-borderEndStartRadius-TreeDisplay, var(--xmlui-borderRadius-TreeDisplay))", "borderEndEndRadius-TreeDisplay": "var(--xmlui-borderEndEndRadius-TreeDisplay, var(--xmlui-borderRadius-TreeDisplay))", "backgroundColor-TreeDisplay": "var(--xmlui-backgroundColor-TreeDisplay)", "padding-TreeDisplay": "var(--xmlui-padding-TreeDisplay)", "paddingLeft-TreeDisplay": "var(--xmlui-paddingLeft-TreeDisplay)", "fontFamily-TreeDisplay": "var(--xmlui-fontFamily-TreeDisplay)", "color-TreeDisplay": "var(--xmlui-color-TreeDisplay)", "color-connect-TreeDisplay": "var(--xmlui-color-connect-TreeDisplay)"}'`,treeDisplay:"_treeDisplay_zfwya_13",content:"_content_zfwya_40",treeNode:"_treeNode_zfwya_48",treeNodeRow:"_treeNodeRow_zfwya_54",connectorArea:"_connectorArea_zfwya_61",connector:"_connector_zfwya_61",connectorLine:"_connectorLine_zfwya_72",treeNodeContent:"_treeNodeContent_zfwya_87",childrenContainer:"_childrenContainer_zfwya_94"},UT={content:"",itemHeight:20},Lze=e=>{if(!e)return[];const t=e.split(`
|
|
201
|
-
`).filter(i=>i.trim());if(t.length===0)return[];const r=[],n={};t.forEach(i=>{const l=i.length-i.trimLeft().length,u={label:i.trim(),level:l,children:[]};if(l===0){r.push(u),n[0]=r;return}let c=l-1;for(;c>=0;){if(n[c]&&n[c].length>0){n[c][n[c].length-1].children.push(u),n[l]||(n[l]=[]),n[l].push(u);return}c--}r.push(u)});const o=i=>{i.length>0&&(i[i.length-1].isLast=!0,i.forEach(a=>{a.children.length>0&&o(a.children)}))};return o(r),r},eX=(e,t)=>e.children.length===0?t:t+e.children.reduce((r,n)=>r+eX(n,t),0),tX=(e,t,r,n=0,o=[])=>{const i=e.isLast,a=n===0,l=e.children.length>0,s=l?eX(e,r):r,u=r/2;return C.jsxs("div",{className:Aa.treeNode,children:[C.jsxs("div",{className:Aa.treeNodeRow,style:{height:`${r}px`},children:[C.jsx("div",{className:Aa.connectorArea,style:{marginLeft:`${n*r}px`,width:`${r}px`,height:`${r}px`},children:C.jsxs("svg",{className:Aa.connector,width:r,height:l?s:r,viewBox:`0 0 ${r} ${l?s:r}`,style:{position:"absolute",top:0,left:0},children:[a&&C.jsx(C.Fragment,{children:C.jsx("line",{x1:u,y1:u,x2:r,y2:u,strokeWidth:"1.5",className:Aa.connectorLine})}),!a&&C.jsxs(C.Fragment,{children:[C.jsx("line",{x1:u,y1:0,x2:u,y2:i?u:r,strokeWidth:"1.5",className:Aa.connectorLine}),C.jsx("line",{x1:u,y1:u,x2:r,y2:u,strokeWidth:"1.5",className:Aa.connectorLine})]}),!i&&l&&C.jsx("line",{x1:u,y1:u,x2:u,y2:s,strokeWidth:"1.5",className:Aa.connectorLine}),o.map((c,d)=>c&&C.jsx("line",{x1:u-(n-d)*r,y1:0,x2:u-(n-d)*r,y2:s,strokeWidth:"1.5",className:Aa.connectorLine},`ancestor-${d}`))]})}),C.jsx("div",{className:Aa.treeNodeContent,style:{lineHeight:`${r}px`},children:e.label})]}),l&&C.jsx("div",{className:Aa.childrenContainer,children:e.children.map((c,d)=>{const f=[...o];for(;f.length<=n;)f.push(!1);return f[n]=d!==e.children.length-1,tX(c,d,r,n+1,f)})})]},`${e.label}-${t}`)},rX=m.forwardRef(function({style:t,children:r,content:n=UT.content,itemHeight:o=UT.itemHeight},i){const a=(n||(r==null?void 0:r.toString())||"").toString(),l=m.useMemo(()=>Lze(a),[a]);return C.jsx("div",{className:Aa.treeDisplay,style:t,ref:i,children:C.jsx("div",{className:Aa.content,children:l.map((s,u)=>tX(s,u,o,0,[]))})})}),pl="TreeDisplay",Nze={status:"stable",description:`The \`${pl}\` component displays hierarchical data in a tree structure. It accepts an indented text format where each line is an entry in the tree, and the number of leading spaces determines the nesting level. The component renders the tree with SVG lines and continuous vertical guides to clearly visualize parent-child relationships in the hierarchy.`,props:{content:{description:"The indented text content to display as a tree structure. Each level of indentation (using spaces) represents one level in the tree hierarchy.",valueType:"string",defaultValue:UT.content},itemHeight:{description:"The height of each tree item in pixels.",valueType:"number",defaultValue:UT.itemHeight}},themeVars:tt(Aa.themeVars),defaultThemeVars:{[`backgroundColor-${pl}`]:"$color-primary-50",[`borderRadius-${pl}`]:"8px",[`padding-${pl}`]:"$space-4",[`paddingLeft-${pl}`]:"$space-2",[`fontSize-${pl}`]:"$fontSize-code",[`fontWeight-${pl}`]:"$fontWeight-normal",[`fontFamily-${pl}`]:"$fontFamily-monospace",[`color-${pl}`]:"$textColor-primary",[`color-connect-${pl}`]:"$color-surface-200",[`boxShadow-${pl}`]:"none",[`border-${pl}`]:"0.5px solid $borderColor"}},$ze=xe(pl,Nze,({node:e,extractValue:t,renderChild:r,layoutCss:n})=>C.jsx(rX,{style:n,content:t.asOptionalString(e.props.content),itemHeight:t.asOptionalNumber(e.props.itemHeight),children:r(e.children)})),xt="Button",nX={status:"stable",description:"`Button` is the primary interactive component for triggering actions like form submissions, navigation, opening modals, and API calls. It supports multiple visual styles and sizes to match different UI contexts and importance levels.",props:{autoFocus:{description:"Indicates if the button should receive focus when the page loads.",isRequired:!1,type:"boolean",defaultValue:Ri.autoFocus},variant:{description:"The button variant determines the level of emphasis the button should possess.",isRequired:!1,type:"string",availableValues:zU,defaultValue:Ri.variant},themeColor:{description:"Sets the button color scheme defined in the application theme.",isRequired:!1,type:"string",availableValues:MU,defaultValue:Ri.themeColor},size:{description:"Sets the size of the button.",isRequired:!1,type:"string",availableValues:I_,defaultValue:Ri.size},label:{description:`This property is an optional string to set a label for the ${xt}. If no label is specified and an icon is set, the ${xt} will modify its styling to look like a small icon button. When the ${xt} has nested children, it will display them and ignore the value of the \`label\` prop.`,type:"string"},type:{description:`This optional string describes how the ${xt} appears in an HTML context. You rarely need to set this property explicitly.`,availableValues:jLe,valueType:"string",defaultValue:Ri.type},enabled:{description:"The value of this property indicates whether the button accepts actions (`true`) or does not react to them (`false`).",type:"boolean",defaultValue:!0},orientation:ZLe(Ri.orientation),icon:{description:`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 ${xt} displays only that icon.`,type:"string"},iconPosition:{description:`This optional string determines the location of the icon in the ${xt}.`,availableValues:P_,type:"string",defaultValue:Ri.iconPosition},contentPosition:{description:`This optional value determines how the label and icon (or nested children) should be placedinside the ${xt} component.`,availableValues:FU,type:"string",defaultValue:Ri.contentPosition},contextualLabel:{description:`This optional value is used to provide an accessible name for the ${xt} in the context of its usage.`,type:"string"}},events:{click:dv(xt),gotFocus:_a(xt),lostFocus:Ta(xt)},themeVars:tt(zo.themeVars),defaultThemeVars:{[`width-${xt}`]:"fit-content",[`height-${xt}`]:"fit-content",[`borderRadius-${xt}`]:"$borderRadius",[`fontSize-${xt}`]:"$fontSize-small",[`fontWeight-${xt}`]:"$fontWeight-medium",[`backgroundColor-${xt}-primary`]:"$color-primary-500",[`backgroundColor-${xt}-attention`]:"$backgroundColor-attention",[`borderColor-${xt}-attention`]:"$color-attention",[`backgroundColor-${xt}--disabled`]:"$backgroundColor--disabled",[`borderColor-${xt}--disabled`]:"$borderColor--disabled",[`borderStyle-${xt}`]:"solid",[`textColor-${xt}--disabled`]:"$textColor--disabled",[`outlineColor-${xt}--focus`]:"$outlineColor--focus",[`borderWidth-${xt}`]:"1px",[`outlineWidth-${xt}--focus`]:"$outlineWidth--focus",[`outlineStyle-${xt}--focus`]:"$outlineStyle--focus",[`outlineOffset-${xt}--focus`]:"$outlineOffset--focus",[`paddingHorizontal-${xt}-xs`]:"$space-1",[`paddingVertical-${xt}-xs`]:"$space-0_5",[`paddingHorizontal-${xt}-sm`]:"$space-4",[`paddingVertical-${xt}-sm`]:"$space-2",[`paddingHorizontal-${xt}-md`]:"$space-4",[`paddingVertical-${xt}-md`]:"$space-3",[`paddingHorizontal-${xt}-lg`]:"$space-5",[`paddingVertical-${xt}-lg`]:"$space-4",[`textColor-${xt}`]:"$color-surface-950",[`textColor-${xt}-solid`]:"$const-color-surface-50",[`borderColor-${xt}-primary`]:"$color-primary-500",[`backgroundColor-${xt}-primary--hover`]:"$color-primary-400",[`backgroundColor-${xt}-primary--active`]:"$color-primary-500",[`backgroundColor-${xt}-primary-outlined--hover`]:"$color-primary-50",[`backgroundColor-${xt}-primary-outlined--active`]:"$color-primary-100",[`borderColor-${xt}-primary-outlined`]:"$color-primary-600",[`borderColor-${xt}-primary-outlined--hover`]:"$color-primary-500",[`textColor-${xt}-primary-outlined`]:"$color-primary-900",[`textColor-${xt}-primary-outlined--hover`]:"$color-primary-950",[`textColor-${xt}-primary-outlined--active`]:"$color-primary-900",[`backgroundColor-${xt}-primary-ghost--hover`]:"$color-primary-50",[`backgroundColor-${xt}-primary-ghost--active`]:"$color-primary-100",[`borderColor-${xt}-secondary`]:"$color-secondary-100",[`backgroundColor-${xt}-secondary`]:"$color-secondary-500",[`backgroundColor-${xt}-secondary--hover`]:"$color-secondary-400",[`backgroundColor-${xt}-secondary--active`]:"$color-secondary-500",[`backgroundColor-${xt}-secondary-outlined--hover`]:"$color-secondary-50",[`backgroundColor-${xt}-secondary-outlined--active`]:"$color-secondary-100",[`backgroundColor-${xt}-secondary-ghost--hover`]:"$color-secondary-100",[`backgroundColor-${xt}-secondary-ghost--active`]:"$color-secondary-100",[`backgroundColor-${xt}-attention--hover`]:"$color-danger-400",[`backgroundColor-${xt}-attention--active`]:"$color-danger-500",[`backgroundColor-${xt}-attention-outlined--hover`]:"$color-danger-50",[`backgroundColor-${xt}-attention-outlined--active`]:"$color-danger-100",[`backgroundColor-${xt}-attention-ghost--hover`]:"$color-danger-50",[`backgroundColor-${xt}-attention-ghost--active`]:"$color-danger-100"}},Dze=xe("Button",nX,({node:e,extractValue:t,renderChild:r,lookupEventHandler:n,layoutCss:o})=>{const i=t.asString(e.props.icon),a=t.asDisplayText(e.props.label);return C.jsx(sn,{type:t.asOptionalString(e.props.type),variant:t.asOptionalString(e.props.variant),themeColor:t.asOptionalString(e.props.themeColor),autoFocus:t.asOptionalBoolean(e.props.autoFocus),size:t.asOptionalString(e.props.size),icon:i&&C.jsx(kt,{name:i,"aria-hidden":!0}),iconPosition:t.asOptionalString(e.props.iconPosition),orientation:t.asOptionalString(e.props.orientation),contentPosition:t.asOptionalString(e.props.contentPosition),disabled:!t.asOptionalBoolean(e.props.enabled,!0),onClick:n("click"),onFocus:n("gotFocus"),onBlur:n("lostFocus"),style:o,contextualLabel:t.asOptionalString(e.props.contextualLabel),children:r(e.children,{type:"Stack",orientation:"horizontal"})||a})}),Js={themeVars:`'{"padding-HelloWorld": "var(--xmlui-padding-HelloWorld)", "paddingHorizontal-HelloWorld": "var(--xmlui-paddingHorizontal-HelloWorld, var(--xmlui-padding-HelloWorld))", "paddingVertical-HelloWorld": "var(--xmlui-paddingVertical-HelloWorld, var(--xmlui-padding-HelloWorld))", "paddingLeft-HelloWorld": "var(--xmlui-paddingLeft-HelloWorld, var(--xmlui-paddingHorizontal-HelloWorld, var(--xmlui-padding-HelloWorld)))", "paddingRight-HelloWorld": "var(--xmlui-paddingRight-HelloWorld, var(--xmlui-paddingHorizontal-HelloWorld, var(--xmlui-padding-HelloWorld)))", "paddingTop-HelloWorld": "var(--xmlui-paddingTop-HelloWorld, var(--xmlui-paddingVertical-HelloWorld, var(--xmlui-padding-HelloWorld)))", "paddingBottom-HelloWorld": "var(--xmlui-paddingBottom-HelloWorld, var(--xmlui-paddingVertical-HelloWorld, var(--xmlui-padding-HelloWorld)))", "border-HelloWorld": "var(--xmlui-border-HelloWorld)", "borderHorizontal-HelloWorld": "var(--xmlui-borderHorizontal-HelloWorld, var(--xmlui-border-HelloWorld))", "borderVertical-HelloWorld": "var(--xmlui-borderVertical-HelloWorld, var(--xmlui-border-HelloWorld))", "borderLeft-HelloWorld": "var(--xmlui-borderLeft-HelloWorld, var(--xmlui-borderHorizontal-HelloWorld, var(--xmlui-border-HelloWorld)))", "borderRight-HelloWorld": "var(--xmlui-borderRight-HelloWorld, var(--xmlui-borderHorizontal-HelloWorld, var(--xmlui-border-HelloWorld)))", "borderTop-HelloWorld": "var(--xmlui-borderTop-HelloWorld, var(--xmlui-borderVertical-HelloWorld, var(--xmlui-border-HelloWorld)))", "borderBottom-HelloWorld": "var(--xmlui-borderBottom-HelloWorld, var(--xmlui-borderVertical-HelloWorld, var(--xmlui-border-HelloWorld)))", "borderWidth-HelloWorld": "var(--xmlui-borderWidth-HelloWorld)", "borderHorizontalWidth-HelloWorld": "var(--xmlui-borderHorizontalWidth-HelloWorld, var(--xmlui-borderWidth-HelloWorld))", "borderLeftWidth-HelloWorld": "var(--xmlui-borderLeftWidth-HelloWorld, var(--xmlui-borderHorizontalWidth-HelloWorld, var(--xmlui-borderWidth-HelloWorld)))", "borderRightWidth-HelloWorld": "var(--xmlui-borderRightWidth-HelloWorld, var(--xmlui-borderHorizontalWidth-HelloWorld, var(--xmlui-borderWidth-HelloWorld)))", "borderVerticalWidth-HelloWorld": "var(--xmlui-borderVerticalWidth-HelloWorld, var(--xmlui-borderWidth-HelloWorld))", "borderTopWidth-HelloWorld": "var(--xmlui-borderTopWidth-HelloWorld, var(--xmlui-borderVerticalWidth-HelloWorld, var(--xmlui-borderWidth-HelloWorld)))", "borderBottomWidth-HelloWorld": "var(--xmlui-borderBottomWidth-HelloWorld, var(--xmlui-borderVerticalWidth-HelloWorld, var(--xmlui-borderWidth-HelloWorld)))", "borderStyle-HelloWorld": "var(--xmlui-borderStyle-HelloWorld)", "borderHorizontalStyle-HelloWorld": "var(--xmlui-borderHorizontalStyle-HelloWorld, var(--xmlui-borderStyle-HelloWorld))", "borderLeftStyle-HelloWorld": "var(--xmlui-borderLeftStyle-HelloWorld, var(--xmlui-borderHorizontalStyle-HelloWorld, var(--xmlui-borderStyle-HelloWorld)))", "borderRightStyle-HelloWorld": "var(--xmlui-borderRightStyle-HelloWorld, var(--xmlui-borderHorizontalStyle-HelloWorld, var(--xmlui-borderStyle-HelloWorld)))", "borderVerticalStyle-HelloWorld": "var(--xmlui-borderVerticalStyle-HelloWorld, var(--xmlui-borderStyle-HelloWorld))", "borderTopStyle-HelloWorld": "var(--xmlui-borderTopStyle-HelloWorld, var(--xmlui-borderVerticalStyle-HelloWorld, var(--xmlui-borderStyle-HelloWorld)))", "borderBottomStyle-HelloWorld": "var(--xmlui-borderBottomStyle-HelloWorld, var(--xmlui-borderVerticalStyle-HelloWorld, var(--xmlui-borderStyle-HelloWorld)))", "borderColor-HelloWorld": "var(--xmlui-borderColor-HelloWorld)", "borderHorizontalColor-HelloWorld": "var(--xmlui-borderHorizontalColor-HelloWorld, var(--xmlui-borderColor-HelloWorld))", "borderLeftColor-HelloWorld": "var(--xmlui-borderLeftColor-HelloWorld, var(--xmlui-borderHorizontalColor-HelloWorld, var(--xmlui-borderColor-HelloWorld)))", "borderRightColor-HelloWorld": "var(--xmlui-borderRightColor-HelloWorld, var(--xmlui-borderHorizontalColor-HelloWorld, var(--xmlui-borderColor-HelloWorld)))", "borderVerticalColor-HelloWorld": "var(--xmlui-borderVerticalColor-HelloWorld, var(--xmlui-borderColor-HelloWorld))", "borderTopColor-HelloWorld": "var(--xmlui-borderTopColor-HelloWorld, var(--xmlui-borderVerticalColor-HelloWorld, var(--xmlui-borderColor-HelloWorld)))", "borderBottomColor-HelloWorld": "var(--xmlui-borderBottomColor-HelloWorld, var(--xmlui-borderVerticalColor-HelloWorld, var(--xmlui-borderColor-HelloWorld)))", "borderStartStartRadius-HelloWorld": "var(--xmlui-borderStartStartRadius-HelloWorld, var(--xmlui-borderRadius-HelloWorld))", "borderStartEndRadius-HelloWorld": "var(--xmlui-borderStartEndRadius-HelloWorld, var(--xmlui-borderRadius-HelloWorld))", "borderEndStartRadius-HelloWorld": "var(--xmlui-borderEndStartRadius-HelloWorld, var(--xmlui-borderRadius-HelloWorld))", "borderEndEndRadius-HelloWorld": "var(--xmlui-borderEndEndRadius-HelloWorld, var(--xmlui-borderRadius-HelloWorld))", "textColor-HelloWorld": "var(--xmlui-textColor-HelloWorld, var(--xmlui-textColor-HelloWorld))", "fontFamily-HelloWorld": "var(--xmlui-fontFamily-HelloWorld, var(--xmlui-fontFamily-HelloWorld))", "fontSize-HelloWorld": "var(--xmlui-fontSize-HelloWorld, var(--xmlui-fontSize-HelloWorld))", "fontStyle-HelloWorld": "var(--xmlui-fontStyle-HelloWorld, var(--xmlui-fontStyle-HelloWorld))", "fontVariant-HelloWorld": "var(--xmlui-fontVariant-HelloWorld, var(--xmlui-fontVariant-HelloWorld))", "fontWeight-HelloWorld": "var(--xmlui-fontWeight-HelloWorld, var(--xmlui-fontWeight-HelloWorld))", "fontStretch-HelloWorld": "var(--xmlui-fontStretch-HelloWorld, var(--xmlui-fontStretch-HelloWorld))", "textDecorationLine-HelloWorld": "var(--xmlui-textDecorationLine-HelloWorld, var(--xmlui-textDecorationLine-HelloWorld))", "textDecorationColor-HelloWorld": "var(--xmlui-textDecorationColor-HelloWorld, var(--xmlui-textDecorationColor-HelloWorld))", "textDecorationStyle-HelloWorld": "var(--xmlui-textDecorationStyle-HelloWorld, var(--xmlui-textDecorationStyle-HelloWorld))", "textDecorationThickness-HelloWorld": "var(--xmlui-textDecorationThickness-HelloWorld, var(--xmlui-textDecorationThickness-HelloWorld))", "textUnderlineOffset-HelloWorld": "var(--xmlui-textUnderlineOffset-HelloWorld, var(--xmlui-textUnderlineOffset-HelloWorld))", "lineHeight-HelloWorld": "var(--xmlui-lineHeight-HelloWorld, var(--xmlui-lineHeight-HelloWorld))", "backgroundColor-HelloWorld": "var(--xmlui-backgroundColor-HelloWorld, var(--xmlui-backgroundColor-HelloWorld))", "textTransform-HelloWorld": "var(--xmlui-textTransform-HelloWorld, var(--xmlui-textTransform-HelloWorld))", "letterSpacing-HelloWorld": "var(--xmlui-letterSpacing-HelloWorld, var(--xmlui-letterSpacing-HelloWorld))", "wordSpacing-HelloWorld": "var(--xmlui-wordSpacing-HelloWorld, var(--xmlui-wordSpacing-HelloWorld))", "textShadow-HelloWorld": "var(--xmlui-textShadow-HelloWorld, var(--xmlui-textShadow-HelloWorld))", "textIndent-HelloWorld": "var(--xmlui-textIndent-HelloWorld, var(--xmlui-textIndent-HelloWorld))", "textAlign-HelloWorld": "var(--xmlui-textAlign-HelloWorld, var(--xmlui-textAlign-HelloWorld))", "textAlignLast-HelloWorld": "var(--xmlui-textAlignLast-HelloWorld, var(--xmlui-textAlignLast-HelloWorld))", "wordBreak-HelloWorld": "var(--xmlui-wordBreak-HelloWorld, var(--xmlui-wordBreak-HelloWorld))", "wordWrap-HelloWorld": "var(--xmlui-wordWrap-HelloWorld, var(--xmlui-wordWrap-HelloWorld))", "direction-HelloWorld": "var(--xmlui-direction-HelloWorld, var(--xmlui-direction-HelloWorld))", "writingMode-HelloWorld": "var(--xmlui-writingMode-HelloWorld, var(--xmlui-writingMode-HelloWorld))", "lineBreak-HelloWorld": "var(--xmlui-lineBreak-HelloWorld, var(--xmlui-lineBreak-HelloWorld))", "borderRadius-HelloWorld": "var(--xmlui-borderRadius-HelloWorld)", "maxWidth-HelloWorld": "var(--xmlui-maxWidth-HelloWorld)", "textAlign-HelloWorld-content": "var(--xmlui-textAlign-HelloWorld-content)", "marginBottom-HelloWorld-message": "var(--xmlui-marginBottom-HelloWorld-message)", "fontSize-HelloWorld-message": "var(--xmlui-fontSize-HelloWorld-message)", "fontWeight-HelloWorld-message": "var(--xmlui-fontWeight-HelloWorld-message)", "margin-HelloWorld-children": "var(--xmlui-margin-HelloWorld-children)", "padding-HelloWorld-children": "var(--xmlui-padding-HelloWorld-children)", "backgroundColor-HelloWorld-children": "var(--xmlui-backgroundColor-HelloWorld-children)", "borderRadius-HelloWorld-children": "var(--xmlui-borderRadius-HelloWorld-children)", "fontStyle-HelloWorld-children": "var(--xmlui-fontStyle-HelloWorld-children)", "gap-HelloWorld-interactive": "var(--xmlui-gap-HelloWorld-interactive)", "backgroundColor-HelloWorld-clickButton": "var(--xmlui-backgroundColor-HelloWorld-clickButton)", "textColor-HelloWorld-clickButton": "var(--xmlui-textColor-HelloWorld-clickButton)", "border-HelloWorld-clickButton": "var(--xmlui-border-HelloWorld-clickButton)", "borderRadius-HelloWorld-clickButton": "var(--xmlui-borderRadius-HelloWorld-clickButton)", "padding-HelloWorld-clickButton": "var(--xmlui-padding-HelloWorld-clickButton)", "fontSize-HelloWorld-clickButton": "var(--xmlui-fontSize-HelloWorld-clickButton)", "fontWeight-HelloWorld-clickButton": "var(--xmlui-fontWeight-HelloWorld-clickButton)", "transition-HelloWorld-clickButton": "var(--xmlui-transition-HelloWorld-clickButton)", "backgroundColor-HelloWorld-clickButton--hover": "var(--xmlui-backgroundColor-HelloWorld-clickButton--hover)", "transform-HelloWorld-clickButton--active": "var(--xmlui-transform-HelloWorld-clickButton--active)", "fontSize-HelloWorld-counter": "var(--xmlui-fontSize-HelloWorld-counter)", "fontWeight-HelloWorld-counter": "var(--xmlui-fontWeight-HelloWorld-counter)", "backgroundColor-HelloWorld-count": "var(--xmlui-backgroundColor-HelloWorld-count)", "textColor-HelloWorld-count": "var(--xmlui-textColor-HelloWorld-count)", "padding-HelloWorld-count": "var(--xmlui-padding-HelloWorld-count)", "borderRadius-HelloWorld-count": "var(--xmlui-borderRadius-HelloWorld-count)", "fontWeight-HelloWorld-count": "var(--xmlui-fontWeight-HelloWorld-count)", "minWidth-HelloWorld-count": "var(--xmlui-minWidth-HelloWorld-count)", "backgroundColor-HelloWorld-resetButton": "var(--xmlui-backgroundColor-HelloWorld-resetButton)", "textColor-HelloWorld-resetButton": "var(--xmlui-textColor-HelloWorld-resetButton)", "border-HelloWorld-resetButton": "var(--xmlui-border-HelloWorld-resetButton)", "borderRadius-HelloWorld-resetButton": "var(--xmlui-borderRadius-HelloWorld-resetButton)", "padding-HelloWorld-resetButton": "var(--xmlui-padding-HelloWorld-resetButton)", "fontSize-HelloWorld-resetButton": "var(--xmlui-fontSize-HelloWorld-resetButton)", "transition-HelloWorld-resetButton": "var(--xmlui-transition-HelloWorld-resetButton)", "backgroundColor-HelloWorld-resetButton--hover": "var(--xmlui-backgroundColor-HelloWorld-resetButton--hover)"}'`,helloWorld:"_helloWorld_1hfvu_13",content:"_content_1hfvu_68",message:"_message_1hfvu_72",children:"_children_1hfvu_78",interactive:"_interactive_1hfvu_86",clickButton:"_clickButton_1hfvu_93",counter:"_counter_1hfvu_111",count:"_count_1hfvu_111",resetButton:"_resetButton_1hfvu_127"},jP={message:"Hello, World!",theme:"default"},Bze=ee.forwardRef(function({id:t,message:r=jP.message,theme:n=jP.theme,children:o,style:i,className:a,onClick:l,onReset:s,registerComponentApi:u,updateState:c,...d},f){const[p,g]=m.useState(0),v=Mt(w=>{g(w),c==null||c({value:w})});m.useEffect(()=>{c==null||c({value:p})},[c,p]),m.useEffect(()=>{u==null||u({setValue:v})},[u,v]);const b=w=>{const k=p+1;g(k),c==null||c({value:k}),l==null||l(w)},y=w=>{g(0),c==null||c({value:0}),s==null||s(w)};return C.jsx("div",{...d,id:t,ref:f,className:ze(a,Js.helloWorld,{[Js.success]:n==="success"}),style:i,children:C.jsxs("div",{className:Js.content,children:[C.jsx("h3",{className:Js.message,children:r}),o&&C.jsx("div",{className:Js.children,children:o}),C.jsxs("div",{className:Js.interactive,children:[C.jsx("button",{className:Js.clickButton,onClick:b,children:"Click me!"}),C.jsxs("div",{className:Js.counter,children:["Clicks: ",C.jsx("span",{className:Js.count,children:p})]}),p>0&&C.jsx("button",{className:Js.resetButton,onClick:y,children:"Reset"})]})]})})}),Xt="HelloWorld",jze={status:"experimental",description:"`HelloWorld` is a demonstration component that shows basic XMLUI patterns. It displays a customizable greeting message with an interactive click counter.",props:{id:{description:"The unique identifier for the component.",type:"string"},message:{description:"The greeting message to display.",type:"string",defaultValue:jP.message}},events:{onClick:{description:"Triggered when the click button is pressed. Receives the current click count.",type:"function"},onReset:{description:"Triggered when the reset button is pressed. Called when count is reset to 0.",type:"function"}},apis:{value:fv(),setValue:Zl()},themeVars:tt(Js.themeVars),defaultThemeVars:{[`backgroundColor-${Xt}`]:"$color-surface-50",[`borderColor-${Xt}`]:"$color-surface-200",[`borderWidth-${Xt}`]:"$space-2",[`borderStyle-${Xt}`]:"solid",[`borderRadius-${Xt}`]:"$borderRadius",[`padding-${Xt}`]:"$space-4",[`textColor-${Xt}`]:"$color-primary",[`maxWidth-${Xt}`]:"400px",[`textAlign-${Xt}-content`]:"center",[`marginBottom-${Xt}-message`]:"$space-4",[`fontSize-${Xt}-message`]:"$fontSize-lg",[`fontWeight-${Xt}-message`]:"$fontWeight-semibold",[`margin-${Xt}-children`]:"$space-4 0",[`padding-${Xt}-children`]:"$space-3",[`backgroundColor-${Xt}-children`]:"$color-surface-100",[`borderRadius-${Xt}-children`]:"$borderRadius-sm",[`fontStyle-${Xt}-children`]:"italic",[`gap-${Xt}-interactive`]:"$space-3",[`backgroundColor-${Xt}-clickButton`]:"$color-primary-500",[`textColor-${Xt}-clickButton`]:"white",[`border-${Xt}-clickButton`]:"none",[`borderRadius-${Xt}-clickButton`]:"$borderRadius",[`padding-${Xt}-clickButton`]:"$space-3 $space-6",[`fontSize-${Xt}-clickButton`]:"$fontSize-base",[`fontWeight-${Xt}-clickButton`]:"$fontWeight-medium",[`transition-${Xt}-clickButton`]:"background-color 0.2s ease",[`backgroundColor-${Xt}-clickButton--hover`]:"$color-primary-600",[`transform-${Xt}-clickButton--active`]:"translateY(1px)",[`fontSize-${Xt}-counter`]:"$fontSize-lg",[`fontWeight-${Xt}-counter`]:"$fontWeight-medium",[`backgroundColor-${Xt}-count`]:"$color-primary-100",[`textColor-${Xt}-count`]:"$color-primary-700",[`padding-${Xt}-count`]:"$space-1 $space-2",[`borderRadius-${Xt}-count`]:"$borderRadius-sm",[`fontWeight-${Xt}-count`]:"$fontWeight-bold",[`minWidth-${Xt}-count`]:"24px",[`backgroundColor-${Xt}-resetButton`]:"$color-surface-400",[`textColor-${Xt}-resetButton`]:"white",[`border-${Xt}-resetButton`]:"none",[`borderRadius-${Xt}-resetButton`]:"$borderRadius-sm",[`padding-${Xt}-resetButton`]:"$space-2 $space-4",[`fontSize-${Xt}-resetButton`]:"$fontSize-sm",[`transition-${Xt}-resetButton`]:"background-color 0.2s ease",[`backgroundColor-${Xt}-resetButton--hover`]:"$color-surface-500"}},Mze=xe(Xt,jze,({node:e,extractValue:t,renderChild:r,layoutCss:n,lookupEventHandler:o,registerComponentApi:i,updateState:a})=>C.jsx(Bze,{id:t.asOptionalString(e.props.id),message:t.asOptionalString(e.props.message),onClick:o("onClick"),onReset:o("onReset"),registerComponentApi:i,updateState:a,style:n,children:r(e.children)})),hl={themeVars:`'{"border-H1": "var(--xmlui-border-H1)", "borderHorizontal-H1": "var(--xmlui-borderHorizontal-H1, var(--xmlui-border-H1))", "borderVertical-H1": "var(--xmlui-borderVertical-H1, var(--xmlui-border-H1))", "borderLeft-H1": "var(--xmlui-borderLeft-H1, var(--xmlui-borderHorizontal-H1, var(--xmlui-border-H1)))", "borderRight-H1": "var(--xmlui-borderRight-H1, var(--xmlui-borderHorizontal-H1, var(--xmlui-border-H1)))", "borderTop-H1": "var(--xmlui-borderTop-H1, var(--xmlui-borderVertical-H1, var(--xmlui-border-H1)))", "borderBottom-H1": "var(--xmlui-borderBottom-H1, var(--xmlui-borderVertical-H1, var(--xmlui-border-H1)))", "borderWidth-H1": "var(--xmlui-borderWidth-H1)", "borderHorizontalWidth-H1": "var(--xmlui-borderHorizontalWidth-H1, var(--xmlui-borderWidth-H1))", "borderLeftWidth-H1": "var(--xmlui-borderLeftWidth-H1, var(--xmlui-borderHorizontalWidth-H1, var(--xmlui-borderWidth-H1)))", "borderRightWidth-H1": "var(--xmlui-borderRightWidth-H1, var(--xmlui-borderHorizontalWidth-H1, var(--xmlui-borderWidth-H1)))", "borderVerticalWidth-H1": "var(--xmlui-borderVerticalWidth-H1, var(--xmlui-borderWidth-H1))", "borderTopWidth-H1": "var(--xmlui-borderTopWidth-H1, var(--xmlui-borderVerticalWidth-H1, var(--xmlui-borderWidth-H1)))", "borderBottomWidth-H1": "var(--xmlui-borderBottomWidth-H1, var(--xmlui-borderVerticalWidth-H1, var(--xmlui-borderWidth-H1)))", "borderStyle-H1": "var(--xmlui-borderStyle-H1)", "borderHorizontalStyle-H1": "var(--xmlui-borderHorizontalStyle-H1, var(--xmlui-borderStyle-H1))", "borderLeftStyle-H1": "var(--xmlui-borderLeftStyle-H1, var(--xmlui-borderHorizontalStyle-H1, var(--xmlui-borderStyle-H1)))", "borderRightStyle-H1": "var(--xmlui-borderRightStyle-H1, var(--xmlui-borderHorizontalStyle-H1, var(--xmlui-borderStyle-H1)))", "borderVerticalStyle-H1": "var(--xmlui-borderVerticalStyle-H1, var(--xmlui-borderStyle-H1))", "borderTopStyle-H1": "var(--xmlui-borderTopStyle-H1, var(--xmlui-borderVerticalStyle-H1, var(--xmlui-borderStyle-H1)))", "borderBottomStyle-H1": "var(--xmlui-borderBottomStyle-H1, var(--xmlui-borderVerticalStyle-H1, var(--xmlui-borderStyle-H1)))", "borderColor-H1": "var(--xmlui-borderColor-H1)", "borderHorizontalColor-H1": "var(--xmlui-borderHorizontalColor-H1, var(--xmlui-borderColor-H1))", "borderLeftColor-H1": "var(--xmlui-borderLeftColor-H1, var(--xmlui-borderHorizontalColor-H1, var(--xmlui-borderColor-H1)))", "borderRightColor-H1": "var(--xmlui-borderRightColor-H1, var(--xmlui-borderHorizontalColor-H1, var(--xmlui-borderColor-H1)))", "borderVerticalColor-H1": "var(--xmlui-borderVerticalColor-H1, var(--xmlui-borderColor-H1))", "borderTopColor-H1": "var(--xmlui-borderTopColor-H1, var(--xmlui-borderVerticalColor-H1, var(--xmlui-borderColor-H1)))", "borderBottomColor-H1": "var(--xmlui-borderBottomColor-H1, var(--xmlui-borderVerticalColor-H1, var(--xmlui-borderColor-H1)))", "borderStartStartRadius-H1": "var(--xmlui-borderStartStartRadius-H1, var(--xmlui-borderRadius-H1))", "borderStartEndRadius-H1": "var(--xmlui-borderStartEndRadius-H1, var(--xmlui-borderRadius-H1))", "borderEndStartRadius-H1": "var(--xmlui-borderEndStartRadius-H1, var(--xmlui-borderRadius-H1))", "borderEndEndRadius-H1": "var(--xmlui-borderEndEndRadius-H1, var(--xmlui-borderRadius-H1))", "padding-H1": "var(--xmlui-padding-H1)", "paddingHorizontal-H1": "var(--xmlui-paddingHorizontal-H1, var(--xmlui-padding-H1))", "paddingVertical-H1": "var(--xmlui-paddingVertical-H1, var(--xmlui-padding-H1))", "paddingLeft-H1": "var(--xmlui-paddingLeft-H1, var(--xmlui-paddingHorizontal-H1, var(--xmlui-padding-H1)))", "paddingRight-H1": "var(--xmlui-paddingRight-H1, var(--xmlui-paddingHorizontal-H1, var(--xmlui-padding-H1)))", "paddingTop-H1": "var(--xmlui-paddingTop-H1, var(--xmlui-paddingVertical-H1, var(--xmlui-padding-H1)))", "paddingBottom-H1": "var(--xmlui-paddingBottom-H1, var(--xmlui-paddingVertical-H1, var(--xmlui-padding-H1)))", "textColor-H1": "var(--xmlui-textColor-H1)", "fontFamily-H1": "var(--xmlui-fontFamily-H1)", "fontSize-H1": "var(--xmlui-fontSize-H1)", "fontStyle-H1": "var(--xmlui-fontStyle-H1)", "fontVariant-H1": "var(--xmlui-fontVariant-H1)", "fontWeight-H1": "var(--xmlui-fontWeight-H1)", "fontStretch-H1": "var(--xmlui-fontStretch-H1)", "textDecorationLine-H1": "var(--xmlui-textDecorationLine-H1)", "textDecorationColor-H1": "var(--xmlui-textDecorationColor-H1)", "textDecorationStyle-H1": "var(--xmlui-textDecorationStyle-H1)", "textDecorationThickness-H1": "var(--xmlui-textDecorationThickness-H1)", "textUnderlineOffset-H1": "var(--xmlui-textUnderlineOffset-H1)", "lineHeight-H1": "var(--xmlui-lineHeight-H1)", "backgroundColor-H1": "var(--xmlui-backgroundColor-H1)", "textTransform-H1": "var(--xmlui-textTransform-H1)", "letterSpacing-H1": "var(--xmlui-letterSpacing-H1)", "wordSpacing-H1": "var(--xmlui-wordSpacing-H1)", "textShadow-H1": "var(--xmlui-textShadow-H1)", "textIndent-H1": "var(--xmlui-textIndent-H1)", "textAlign-H1": "var(--xmlui-textAlign-H1)", "textAlignLast-H1": "var(--xmlui-textAlignLast-H1)", "wordBreak-H1": "var(--xmlui-wordBreak-H1)", "wordWrap-H1": "var(--xmlui-wordWrap-H1)", "direction-H1": "var(--xmlui-direction-H1)", "writingMode-H1": "var(--xmlui-writingMode-H1)", "lineBreak-H1": "var(--xmlui-lineBreak-H1)", "border-H2": "var(--xmlui-border-H2)", "borderHorizontal-H2": "var(--xmlui-borderHorizontal-H2, var(--xmlui-border-H2))", "borderVertical-H2": "var(--xmlui-borderVertical-H2, var(--xmlui-border-H2))", "borderLeft-H2": "var(--xmlui-borderLeft-H2, var(--xmlui-borderHorizontal-H2, var(--xmlui-border-H2)))", "borderRight-H2": "var(--xmlui-borderRight-H2, var(--xmlui-borderHorizontal-H2, var(--xmlui-border-H2)))", "borderTop-H2": "var(--xmlui-borderTop-H2, var(--xmlui-borderVertical-H2, var(--xmlui-border-H2)))", "borderBottom-H2": "var(--xmlui-borderBottom-H2, var(--xmlui-borderVertical-H2, var(--xmlui-border-H2)))", "borderWidth-H2": "var(--xmlui-borderWidth-H2)", "borderHorizontalWidth-H2": "var(--xmlui-borderHorizontalWidth-H2, var(--xmlui-borderWidth-H2))", "borderLeftWidth-H2": "var(--xmlui-borderLeftWidth-H2, var(--xmlui-borderHorizontalWidth-H2, var(--xmlui-borderWidth-H2)))", "borderRightWidth-H2": "var(--xmlui-borderRightWidth-H2, var(--xmlui-borderHorizontalWidth-H2, var(--xmlui-borderWidth-H2)))", "borderVerticalWidth-H2": "var(--xmlui-borderVerticalWidth-H2, var(--xmlui-borderWidth-H2))", "borderTopWidth-H2": "var(--xmlui-borderTopWidth-H2, var(--xmlui-borderVerticalWidth-H2, var(--xmlui-borderWidth-H2)))", "borderBottomWidth-H2": "var(--xmlui-borderBottomWidth-H2, var(--xmlui-borderVerticalWidth-H2, var(--xmlui-borderWidth-H2)))", "borderStyle-H2": "var(--xmlui-borderStyle-H2)", "borderHorizontalStyle-H2": "var(--xmlui-borderHorizontalStyle-H2, var(--xmlui-borderStyle-H2))", "borderLeftStyle-H2": "var(--xmlui-borderLeftStyle-H2, var(--xmlui-borderHorizontalStyle-H2, var(--xmlui-borderStyle-H2)))", "borderRightStyle-H2": "var(--xmlui-borderRightStyle-H2, var(--xmlui-borderHorizontalStyle-H2, var(--xmlui-borderStyle-H2)))", "borderVerticalStyle-H2": "var(--xmlui-borderVerticalStyle-H2, var(--xmlui-borderStyle-H2))", "borderTopStyle-H2": "var(--xmlui-borderTopStyle-H2, var(--xmlui-borderVerticalStyle-H2, var(--xmlui-borderStyle-H2)))", "borderBottomStyle-H2": "var(--xmlui-borderBottomStyle-H2, var(--xmlui-borderVerticalStyle-H2, var(--xmlui-borderStyle-H2)))", "borderColor-H2": "var(--xmlui-borderColor-H2)", "borderHorizontalColor-H2": "var(--xmlui-borderHorizontalColor-H2, var(--xmlui-borderColor-H2))", "borderLeftColor-H2": "var(--xmlui-borderLeftColor-H2, var(--xmlui-borderHorizontalColor-H2, var(--xmlui-borderColor-H2)))", "borderRightColor-H2": "var(--xmlui-borderRightColor-H2, var(--xmlui-borderHorizontalColor-H2, var(--xmlui-borderColor-H2)))", "borderVerticalColor-H2": "var(--xmlui-borderVerticalColor-H2, var(--xmlui-borderColor-H2))", "borderTopColor-H2": "var(--xmlui-borderTopColor-H2, var(--xmlui-borderVerticalColor-H2, var(--xmlui-borderColor-H2)))", "borderBottomColor-H2": "var(--xmlui-borderBottomColor-H2, var(--xmlui-borderVerticalColor-H2, var(--xmlui-borderColor-H2)))", "borderStartStartRadius-H2": "var(--xmlui-borderStartStartRadius-H2, var(--xmlui-borderRadius-H2))", "borderStartEndRadius-H2": "var(--xmlui-borderStartEndRadius-H2, var(--xmlui-borderRadius-H2))", "borderEndStartRadius-H2": "var(--xmlui-borderEndStartRadius-H2, var(--xmlui-borderRadius-H2))", "borderEndEndRadius-H2": "var(--xmlui-borderEndEndRadius-H2, var(--xmlui-borderRadius-H2))", "padding-H2": "var(--xmlui-padding-H2)", "paddingHorizontal-H2": "var(--xmlui-paddingHorizontal-H2, var(--xmlui-padding-H2))", "paddingVertical-H2": "var(--xmlui-paddingVertical-H2, var(--xmlui-padding-H2))", "paddingLeft-H2": "var(--xmlui-paddingLeft-H2, var(--xmlui-paddingHorizontal-H2, var(--xmlui-padding-H2)))", "paddingRight-H2": "var(--xmlui-paddingRight-H2, var(--xmlui-paddingHorizontal-H2, var(--xmlui-padding-H2)))", "paddingTop-H2": "var(--xmlui-paddingTop-H2, var(--xmlui-paddingVertical-H2, var(--xmlui-padding-H2)))", "paddingBottom-H2": "var(--xmlui-paddingBottom-H2, var(--xmlui-paddingVertical-H2, var(--xmlui-padding-H2)))", "textColor-H2": "var(--xmlui-textColor-H2)", "fontFamily-H2": "var(--xmlui-fontFamily-H2)", "fontSize-H2": "var(--xmlui-fontSize-H2)", "fontStyle-H2": "var(--xmlui-fontStyle-H2)", "fontVariant-H2": "var(--xmlui-fontVariant-H2)", "fontWeight-H2": "var(--xmlui-fontWeight-H2)", "fontStretch-H2": "var(--xmlui-fontStretch-H2)", "textDecorationLine-H2": "var(--xmlui-textDecorationLine-H2)", "textDecorationColor-H2": "var(--xmlui-textDecorationColor-H2)", "textDecorationStyle-H2": "var(--xmlui-textDecorationStyle-H2)", "textDecorationThickness-H2": "var(--xmlui-textDecorationThickness-H2)", "textUnderlineOffset-H2": "var(--xmlui-textUnderlineOffset-H2)", "lineHeight-H2": "var(--xmlui-lineHeight-H2)", "backgroundColor-H2": "var(--xmlui-backgroundColor-H2)", "textTransform-H2": "var(--xmlui-textTransform-H2)", "letterSpacing-H2": "var(--xmlui-letterSpacing-H2)", "wordSpacing-H2": "var(--xmlui-wordSpacing-H2)", "textShadow-H2": "var(--xmlui-textShadow-H2)", "textIndent-H2": "var(--xmlui-textIndent-H2)", "textAlign-H2": "var(--xmlui-textAlign-H2)", "textAlignLast-H2": "var(--xmlui-textAlignLast-H2)", "wordBreak-H2": "var(--xmlui-wordBreak-H2)", "wordWrap-H2": "var(--xmlui-wordWrap-H2)", "direction-H2": "var(--xmlui-direction-H2)", "writingMode-H2": "var(--xmlui-writingMode-H2)", "lineBreak-H2": "var(--xmlui-lineBreak-H2)", "border-H3": "var(--xmlui-border-H3)", "borderHorizontal-H3": "var(--xmlui-borderHorizontal-H3, var(--xmlui-border-H3))", "borderVertical-H3": "var(--xmlui-borderVertical-H3, var(--xmlui-border-H3))", "borderLeft-H3": "var(--xmlui-borderLeft-H3, var(--xmlui-borderHorizontal-H3, var(--xmlui-border-H3)))", "borderRight-H3": "var(--xmlui-borderRight-H3, var(--xmlui-borderHorizontal-H3, var(--xmlui-border-H3)))", "borderTop-H3": "var(--xmlui-borderTop-H3, var(--xmlui-borderVertical-H3, var(--xmlui-border-H3)))", "borderBottom-H3": "var(--xmlui-borderBottom-H3, var(--xmlui-borderVertical-H3, var(--xmlui-border-H3)))", "borderWidth-H3": "var(--xmlui-borderWidth-H3)", "borderHorizontalWidth-H3": "var(--xmlui-borderHorizontalWidth-H3, var(--xmlui-borderWidth-H3))", "borderLeftWidth-H3": "var(--xmlui-borderLeftWidth-H3, var(--xmlui-borderHorizontalWidth-H3, var(--xmlui-borderWidth-H3)))", "borderRightWidth-H3": "var(--xmlui-borderRightWidth-H3, var(--xmlui-borderHorizontalWidth-H3, var(--xmlui-borderWidth-H3)))", "borderVerticalWidth-H3": "var(--xmlui-borderVerticalWidth-H3, var(--xmlui-borderWidth-H3))", "borderTopWidth-H3": "var(--xmlui-borderTopWidth-H3, var(--xmlui-borderVerticalWidth-H3, var(--xmlui-borderWidth-H3)))", "borderBottomWidth-H3": "var(--xmlui-borderBottomWidth-H3, var(--xmlui-borderVerticalWidth-H3, var(--xmlui-borderWidth-H3)))", "borderStyle-H3": "var(--xmlui-borderStyle-H3)", "borderHorizontalStyle-H3": "var(--xmlui-borderHorizontalStyle-H3, var(--xmlui-borderStyle-H3))", "borderLeftStyle-H3": "var(--xmlui-borderLeftStyle-H3, var(--xmlui-borderHorizontalStyle-H3, var(--xmlui-borderStyle-H3)))", "borderRightStyle-H3": "var(--xmlui-borderRightStyle-H3, var(--xmlui-borderHorizontalStyle-H3, var(--xmlui-borderStyle-H3)))", "borderVerticalStyle-H3": "var(--xmlui-borderVerticalStyle-H3, var(--xmlui-borderStyle-H3))", "borderTopStyle-H3": "var(--xmlui-borderTopStyle-H3, var(--xmlui-borderVerticalStyle-H3, var(--xmlui-borderStyle-H3)))", "borderBottomStyle-H3": "var(--xmlui-borderBottomStyle-H3, var(--xmlui-borderVerticalStyle-H3, var(--xmlui-borderStyle-H3)))", "borderColor-H3": "var(--xmlui-borderColor-H3)", "borderHorizontalColor-H3": "var(--xmlui-borderHorizontalColor-H3, var(--xmlui-borderColor-H3))", "borderLeftColor-H3": "var(--xmlui-borderLeftColor-H3, var(--xmlui-borderHorizontalColor-H3, var(--xmlui-borderColor-H3)))", "borderRightColor-H3": "var(--xmlui-borderRightColor-H3, var(--xmlui-borderHorizontalColor-H3, var(--xmlui-borderColor-H3)))", "borderVerticalColor-H3": "var(--xmlui-borderVerticalColor-H3, var(--xmlui-borderColor-H3))", "borderTopColor-H3": "var(--xmlui-borderTopColor-H3, var(--xmlui-borderVerticalColor-H3, var(--xmlui-borderColor-H3)))", "borderBottomColor-H3": "var(--xmlui-borderBottomColor-H3, var(--xmlui-borderVerticalColor-H3, var(--xmlui-borderColor-H3)))", "borderStartStartRadius-H3": "var(--xmlui-borderStartStartRadius-H3, var(--xmlui-borderRadius-H3))", "borderStartEndRadius-H3": "var(--xmlui-borderStartEndRadius-H3, var(--xmlui-borderRadius-H3))", "borderEndStartRadius-H3": "var(--xmlui-borderEndStartRadius-H3, var(--xmlui-borderRadius-H3))", "borderEndEndRadius-H3": "var(--xmlui-borderEndEndRadius-H3, var(--xmlui-borderRadius-H3))", "padding-H3": "var(--xmlui-padding-H3)", "paddingHorizontal-H3": "var(--xmlui-paddingHorizontal-H3, var(--xmlui-padding-H3))", "paddingVertical-H3": "var(--xmlui-paddingVertical-H3, var(--xmlui-padding-H3))", "paddingLeft-H3": "var(--xmlui-paddingLeft-H3, var(--xmlui-paddingHorizontal-H3, var(--xmlui-padding-H3)))", "paddingRight-H3": "var(--xmlui-paddingRight-H3, var(--xmlui-paddingHorizontal-H3, var(--xmlui-padding-H3)))", "paddingTop-H3": "var(--xmlui-paddingTop-H3, var(--xmlui-paddingVertical-H3, var(--xmlui-padding-H3)))", "paddingBottom-H3": "var(--xmlui-paddingBottom-H3, var(--xmlui-paddingVertical-H3, var(--xmlui-padding-H3)))", "textColor-H3": "var(--xmlui-textColor-H3)", "fontFamily-H3": "var(--xmlui-fontFamily-H3)", "fontSize-H3": "var(--xmlui-fontSize-H3)", "fontStyle-H3": "var(--xmlui-fontStyle-H3)", "fontVariant-H3": "var(--xmlui-fontVariant-H3)", "fontWeight-H3": "var(--xmlui-fontWeight-H3)", "fontStretch-H3": "var(--xmlui-fontStretch-H3)", "textDecorationLine-H3": "var(--xmlui-textDecorationLine-H3)", "textDecorationColor-H3": "var(--xmlui-textDecorationColor-H3)", "textDecorationStyle-H3": "var(--xmlui-textDecorationStyle-H3)", "textDecorationThickness-H3": "var(--xmlui-textDecorationThickness-H3)", "textUnderlineOffset-H3": "var(--xmlui-textUnderlineOffset-H3)", "lineHeight-H3": "var(--xmlui-lineHeight-H3)", "backgroundColor-H3": "var(--xmlui-backgroundColor-H3)", "textTransform-H3": "var(--xmlui-textTransform-H3)", "letterSpacing-H3": "var(--xmlui-letterSpacing-H3)", "wordSpacing-H3": "var(--xmlui-wordSpacing-H3)", "textShadow-H3": "var(--xmlui-textShadow-H3)", "textIndent-H3": "var(--xmlui-textIndent-H3)", "textAlign-H3": "var(--xmlui-textAlign-H3)", "textAlignLast-H3": "var(--xmlui-textAlignLast-H3)", "wordBreak-H3": "var(--xmlui-wordBreak-H3)", "wordWrap-H3": "var(--xmlui-wordWrap-H3)", "direction-H3": "var(--xmlui-direction-H3)", "writingMode-H3": "var(--xmlui-writingMode-H3)", "lineBreak-H3": "var(--xmlui-lineBreak-H3)", "border-H4": "var(--xmlui-border-H4)", "borderHorizontal-H4": "var(--xmlui-borderHorizontal-H4, var(--xmlui-border-H4))", "borderVertical-H4": "var(--xmlui-borderVertical-H4, var(--xmlui-border-H4))", "borderLeft-H4": "var(--xmlui-borderLeft-H4, var(--xmlui-borderHorizontal-H4, var(--xmlui-border-H4)))", "borderRight-H4": "var(--xmlui-borderRight-H4, var(--xmlui-borderHorizontal-H4, var(--xmlui-border-H4)))", "borderTop-H4": "var(--xmlui-borderTop-H4, var(--xmlui-borderVertical-H4, var(--xmlui-border-H4)))", "borderBottom-H4": "var(--xmlui-borderBottom-H4, var(--xmlui-borderVertical-H4, var(--xmlui-border-H4)))", "borderWidth-H4": "var(--xmlui-borderWidth-H4)", "borderHorizontalWidth-H4": "var(--xmlui-borderHorizontalWidth-H4, var(--xmlui-borderWidth-H4))", "borderLeftWidth-H4": "var(--xmlui-borderLeftWidth-H4, var(--xmlui-borderHorizontalWidth-H4, var(--xmlui-borderWidth-H4)))", "borderRightWidth-H4": "var(--xmlui-borderRightWidth-H4, var(--xmlui-borderHorizontalWidth-H4, var(--xmlui-borderWidth-H4)))", "borderVerticalWidth-H4": "var(--xmlui-borderVerticalWidth-H4, var(--xmlui-borderWidth-H4))", "borderTopWidth-H4": "var(--xmlui-borderTopWidth-H4, var(--xmlui-borderVerticalWidth-H4, var(--xmlui-borderWidth-H4)))", "borderBottomWidth-H4": "var(--xmlui-borderBottomWidth-H4, var(--xmlui-borderVerticalWidth-H4, var(--xmlui-borderWidth-H4)))", "borderStyle-H4": "var(--xmlui-borderStyle-H4)", "borderHorizontalStyle-H4": "var(--xmlui-borderHorizontalStyle-H4, var(--xmlui-borderStyle-H4))", "borderLeftStyle-H4": "var(--xmlui-borderLeftStyle-H4, var(--xmlui-borderHorizontalStyle-H4, var(--xmlui-borderStyle-H4)))", "borderRightStyle-H4": "var(--xmlui-borderRightStyle-H4, var(--xmlui-borderHorizontalStyle-H4, var(--xmlui-borderStyle-H4)))", "borderVerticalStyle-H4": "var(--xmlui-borderVerticalStyle-H4, var(--xmlui-borderStyle-H4))", "borderTopStyle-H4": "var(--xmlui-borderTopStyle-H4, var(--xmlui-borderVerticalStyle-H4, var(--xmlui-borderStyle-H4)))", "borderBottomStyle-H4": "var(--xmlui-borderBottomStyle-H4, var(--xmlui-borderVerticalStyle-H4, var(--xmlui-borderStyle-H4)))", "borderColor-H4": "var(--xmlui-borderColor-H4)", "borderHorizontalColor-H4": "var(--xmlui-borderHorizontalColor-H4, var(--xmlui-borderColor-H4))", "borderLeftColor-H4": "var(--xmlui-borderLeftColor-H4, var(--xmlui-borderHorizontalColor-H4, var(--xmlui-borderColor-H4)))", "borderRightColor-H4": "var(--xmlui-borderRightColor-H4, var(--xmlui-borderHorizontalColor-H4, var(--xmlui-borderColor-H4)))", "borderVerticalColor-H4": "var(--xmlui-borderVerticalColor-H4, var(--xmlui-borderColor-H4))", "borderTopColor-H4": "var(--xmlui-borderTopColor-H4, var(--xmlui-borderVerticalColor-H4, var(--xmlui-borderColor-H4)))", "borderBottomColor-H4": "var(--xmlui-borderBottomColor-H4, var(--xmlui-borderVerticalColor-H4, var(--xmlui-borderColor-H4)))", "borderStartStartRadius-H4": "var(--xmlui-borderStartStartRadius-H4, var(--xmlui-borderRadius-H4))", "borderStartEndRadius-H4": "var(--xmlui-borderStartEndRadius-H4, var(--xmlui-borderRadius-H4))", "borderEndStartRadius-H4": "var(--xmlui-borderEndStartRadius-H4, var(--xmlui-borderRadius-H4))", "borderEndEndRadius-H4": "var(--xmlui-borderEndEndRadius-H4, var(--xmlui-borderRadius-H4))", "padding-H4": "var(--xmlui-padding-H4)", "paddingHorizontal-H4": "var(--xmlui-paddingHorizontal-H4, var(--xmlui-padding-H4))", "paddingVertical-H4": "var(--xmlui-paddingVertical-H4, var(--xmlui-padding-H4))", "paddingLeft-H4": "var(--xmlui-paddingLeft-H4, var(--xmlui-paddingHorizontal-H4, var(--xmlui-padding-H4)))", "paddingRight-H4": "var(--xmlui-paddingRight-H4, var(--xmlui-paddingHorizontal-H4, var(--xmlui-padding-H4)))", "paddingTop-H4": "var(--xmlui-paddingTop-H4, var(--xmlui-paddingVertical-H4, var(--xmlui-padding-H4)))", "paddingBottom-H4": "var(--xmlui-paddingBottom-H4, var(--xmlui-paddingVertical-H4, var(--xmlui-padding-H4)))", "textColor-H4": "var(--xmlui-textColor-H4)", "fontFamily-H4": "var(--xmlui-fontFamily-H4)", "fontSize-H4": "var(--xmlui-fontSize-H4)", "fontStyle-H4": "var(--xmlui-fontStyle-H4)", "fontVariant-H4": "var(--xmlui-fontVariant-H4)", "fontWeight-H4": "var(--xmlui-fontWeight-H4)", "fontStretch-H4": "var(--xmlui-fontStretch-H4)", "textDecorationLine-H4": "var(--xmlui-textDecorationLine-H4)", "textDecorationColor-H4": "var(--xmlui-textDecorationColor-H4)", "textDecorationStyle-H4": "var(--xmlui-textDecorationStyle-H4)", "textDecorationThickness-H4": "var(--xmlui-textDecorationThickness-H4)", "textUnderlineOffset-H4": "var(--xmlui-textUnderlineOffset-H4)", "lineHeight-H4": "var(--xmlui-lineHeight-H4)", "backgroundColor-H4": "var(--xmlui-backgroundColor-H4)", "textTransform-H4": "var(--xmlui-textTransform-H4)", "letterSpacing-H4": "var(--xmlui-letterSpacing-H4)", "wordSpacing-H4": "var(--xmlui-wordSpacing-H4)", "textShadow-H4": "var(--xmlui-textShadow-H4)", "textIndent-H4": "var(--xmlui-textIndent-H4)", "textAlign-H4": "var(--xmlui-textAlign-H4)", "textAlignLast-H4": "var(--xmlui-textAlignLast-H4)", "wordBreak-H4": "var(--xmlui-wordBreak-H4)", "wordWrap-H4": "var(--xmlui-wordWrap-H4)", "direction-H4": "var(--xmlui-direction-H4)", "writingMode-H4": "var(--xmlui-writingMode-H4)", "lineBreak-H4": "var(--xmlui-lineBreak-H4)", "border-H5": "var(--xmlui-border-H5)", "borderHorizontal-H5": "var(--xmlui-borderHorizontal-H5, var(--xmlui-border-H5))", "borderVertical-H5": "var(--xmlui-borderVertical-H5, var(--xmlui-border-H5))", "borderLeft-H5": "var(--xmlui-borderLeft-H5, var(--xmlui-borderHorizontal-H5, var(--xmlui-border-H5)))", "borderRight-H5": "var(--xmlui-borderRight-H5, var(--xmlui-borderHorizontal-H5, var(--xmlui-border-H5)))", "borderTop-H5": "var(--xmlui-borderTop-H5, var(--xmlui-borderVertical-H5, var(--xmlui-border-H5)))", "borderBottom-H5": "var(--xmlui-borderBottom-H5, var(--xmlui-borderVertical-H5, var(--xmlui-border-H5)))", "borderWidth-H5": "var(--xmlui-borderWidth-H5)", "borderHorizontalWidth-H5": "var(--xmlui-borderHorizontalWidth-H5, var(--xmlui-borderWidth-H5))", "borderLeftWidth-H5": "var(--xmlui-borderLeftWidth-H5, var(--xmlui-borderHorizontalWidth-H5, var(--xmlui-borderWidth-H5)))", "borderRightWidth-H5": "var(--xmlui-borderRightWidth-H5, var(--xmlui-borderHorizontalWidth-H5, var(--xmlui-borderWidth-H5)))", "borderVerticalWidth-H5": "var(--xmlui-borderVerticalWidth-H5, var(--xmlui-borderWidth-H5))", "borderTopWidth-H5": "var(--xmlui-borderTopWidth-H5, var(--xmlui-borderVerticalWidth-H5, var(--xmlui-borderWidth-H5)))", "borderBottomWidth-H5": "var(--xmlui-borderBottomWidth-H5, var(--xmlui-borderVerticalWidth-H5, var(--xmlui-borderWidth-H5)))", "borderStyle-H5": "var(--xmlui-borderStyle-H5)", "borderHorizontalStyle-H5": "var(--xmlui-borderHorizontalStyle-H5, var(--xmlui-borderStyle-H5))", "borderLeftStyle-H5": "var(--xmlui-borderLeftStyle-H5, var(--xmlui-borderHorizontalStyle-H5, var(--xmlui-borderStyle-H5)))", "borderRightStyle-H5": "var(--xmlui-borderRightStyle-H5, var(--xmlui-borderHorizontalStyle-H5, var(--xmlui-borderStyle-H5)))", "borderVerticalStyle-H5": "var(--xmlui-borderVerticalStyle-H5, var(--xmlui-borderStyle-H5))", "borderTopStyle-H5": "var(--xmlui-borderTopStyle-H5, var(--xmlui-borderVerticalStyle-H5, var(--xmlui-borderStyle-H5)))", "borderBottomStyle-H5": "var(--xmlui-borderBottomStyle-H5, var(--xmlui-borderVerticalStyle-H5, var(--xmlui-borderStyle-H5)))", "borderColor-H5": "var(--xmlui-borderColor-H5)", "borderHorizontalColor-H5": "var(--xmlui-borderHorizontalColor-H5, var(--xmlui-borderColor-H5))", "borderLeftColor-H5": "var(--xmlui-borderLeftColor-H5, var(--xmlui-borderHorizontalColor-H5, var(--xmlui-borderColor-H5)))", "borderRightColor-H5": "var(--xmlui-borderRightColor-H5, var(--xmlui-borderHorizontalColor-H5, var(--xmlui-borderColor-H5)))", "borderVerticalColor-H5": "var(--xmlui-borderVerticalColor-H5, var(--xmlui-borderColor-H5))", "borderTopColor-H5": "var(--xmlui-borderTopColor-H5, var(--xmlui-borderVerticalColor-H5, var(--xmlui-borderColor-H5)))", "borderBottomColor-H5": "var(--xmlui-borderBottomColor-H5, var(--xmlui-borderVerticalColor-H5, var(--xmlui-borderColor-H5)))", "borderStartStartRadius-H5": "var(--xmlui-borderStartStartRadius-H5, var(--xmlui-borderRadius-H5))", "borderStartEndRadius-H5": "var(--xmlui-borderStartEndRadius-H5, var(--xmlui-borderRadius-H5))", "borderEndStartRadius-H5": "var(--xmlui-borderEndStartRadius-H5, var(--xmlui-borderRadius-H5))", "borderEndEndRadius-H5": "var(--xmlui-borderEndEndRadius-H5, var(--xmlui-borderRadius-H5))", "padding-H5": "var(--xmlui-padding-H5)", "paddingHorizontal-H5": "var(--xmlui-paddingHorizontal-H5, var(--xmlui-padding-H5))", "paddingVertical-H5": "var(--xmlui-paddingVertical-H5, var(--xmlui-padding-H5))", "paddingLeft-H5": "var(--xmlui-paddingLeft-H5, var(--xmlui-paddingHorizontal-H5, var(--xmlui-padding-H5)))", "paddingRight-H5": "var(--xmlui-paddingRight-H5, var(--xmlui-paddingHorizontal-H5, var(--xmlui-padding-H5)))", "paddingTop-H5": "var(--xmlui-paddingTop-H5, var(--xmlui-paddingVertical-H5, var(--xmlui-padding-H5)))", "paddingBottom-H5": "var(--xmlui-paddingBottom-H5, var(--xmlui-paddingVertical-H5, var(--xmlui-padding-H5)))", "textColor-H5": "var(--xmlui-textColor-H5)", "fontFamily-H5": "var(--xmlui-fontFamily-H5)", "fontSize-H5": "var(--xmlui-fontSize-H5)", "fontStyle-H5": "var(--xmlui-fontStyle-H5)", "fontVariant-H5": "var(--xmlui-fontVariant-H5)", "fontWeight-H5": "var(--xmlui-fontWeight-H5)", "fontStretch-H5": "var(--xmlui-fontStretch-H5)", "textDecorationLine-H5": "var(--xmlui-textDecorationLine-H5)", "textDecorationColor-H5": "var(--xmlui-textDecorationColor-H5)", "textDecorationStyle-H5": "var(--xmlui-textDecorationStyle-H5)", "textDecorationThickness-H5": "var(--xmlui-textDecorationThickness-H5)", "textUnderlineOffset-H5": "var(--xmlui-textUnderlineOffset-H5)", "lineHeight-H5": "var(--xmlui-lineHeight-H5)", "backgroundColor-H5": "var(--xmlui-backgroundColor-H5)", "textTransform-H5": "var(--xmlui-textTransform-H5)", "letterSpacing-H5": "var(--xmlui-letterSpacing-H5)", "wordSpacing-H5": "var(--xmlui-wordSpacing-H5)", "textShadow-H5": "var(--xmlui-textShadow-H5)", "textIndent-H5": "var(--xmlui-textIndent-H5)", "textAlign-H5": "var(--xmlui-textAlign-H5)", "textAlignLast-H5": "var(--xmlui-textAlignLast-H5)", "wordBreak-H5": "var(--xmlui-wordBreak-H5)", "wordWrap-H5": "var(--xmlui-wordWrap-H5)", "direction-H5": "var(--xmlui-direction-H5)", "writingMode-H5": "var(--xmlui-writingMode-H5)", "lineBreak-H5": "var(--xmlui-lineBreak-H5)", "border-H6": "var(--xmlui-border-H6)", "borderHorizontal-H6": "var(--xmlui-borderHorizontal-H6, var(--xmlui-border-H6))", "borderVertical-H6": "var(--xmlui-borderVertical-H6, var(--xmlui-border-H6))", "borderLeft-H6": "var(--xmlui-borderLeft-H6, var(--xmlui-borderHorizontal-H6, var(--xmlui-border-H6)))", "borderRight-H6": "var(--xmlui-borderRight-H6, var(--xmlui-borderHorizontal-H6, var(--xmlui-border-H6)))", "borderTop-H6": "var(--xmlui-borderTop-H6, var(--xmlui-borderVertical-H6, var(--xmlui-border-H6)))", "borderBottom-H6": "var(--xmlui-borderBottom-H6, var(--xmlui-borderVertical-H6, var(--xmlui-border-H6)))", "borderWidth-H6": "var(--xmlui-borderWidth-H6)", "borderHorizontalWidth-H6": "var(--xmlui-borderHorizontalWidth-H6, var(--xmlui-borderWidth-H6))", "borderLeftWidth-H6": "var(--xmlui-borderLeftWidth-H6, var(--xmlui-borderHorizontalWidth-H6, var(--xmlui-borderWidth-H6)))", "borderRightWidth-H6": "var(--xmlui-borderRightWidth-H6, var(--xmlui-borderHorizontalWidth-H6, var(--xmlui-borderWidth-H6)))", "borderVerticalWidth-H6": "var(--xmlui-borderVerticalWidth-H6, var(--xmlui-borderWidth-H6))", "borderTopWidth-H6": "var(--xmlui-borderTopWidth-H6, var(--xmlui-borderVerticalWidth-H6, var(--xmlui-borderWidth-H6)))", "borderBottomWidth-H6": "var(--xmlui-borderBottomWidth-H6, var(--xmlui-borderVerticalWidth-H6, var(--xmlui-borderWidth-H6)))", "borderStyle-H6": "var(--xmlui-borderStyle-H6)", "borderHorizontalStyle-H6": "var(--xmlui-borderHorizontalStyle-H6, var(--xmlui-borderStyle-H6))", "borderLeftStyle-H6": "var(--xmlui-borderLeftStyle-H6, var(--xmlui-borderHorizontalStyle-H6, var(--xmlui-borderStyle-H6)))", "borderRightStyle-H6": "var(--xmlui-borderRightStyle-H6, var(--xmlui-borderHorizontalStyle-H6, var(--xmlui-borderStyle-H6)))", "borderVerticalStyle-H6": "var(--xmlui-borderVerticalStyle-H6, var(--xmlui-borderStyle-H6))", "borderTopStyle-H6": "var(--xmlui-borderTopStyle-H6, var(--xmlui-borderVerticalStyle-H6, var(--xmlui-borderStyle-H6)))", "borderBottomStyle-H6": "var(--xmlui-borderBottomStyle-H6, var(--xmlui-borderVerticalStyle-H6, var(--xmlui-borderStyle-H6)))", "borderColor-H6": "var(--xmlui-borderColor-H6)", "borderHorizontalColor-H6": "var(--xmlui-borderHorizontalColor-H6, var(--xmlui-borderColor-H6))", "borderLeftColor-H6": "var(--xmlui-borderLeftColor-H6, var(--xmlui-borderHorizontalColor-H6, var(--xmlui-borderColor-H6)))", "borderRightColor-H6": "var(--xmlui-borderRightColor-H6, var(--xmlui-borderHorizontalColor-H6, var(--xmlui-borderColor-H6)))", "borderVerticalColor-H6": "var(--xmlui-borderVerticalColor-H6, var(--xmlui-borderColor-H6))", "borderTopColor-H6": "var(--xmlui-borderTopColor-H6, var(--xmlui-borderVerticalColor-H6, var(--xmlui-borderColor-H6)))", "borderBottomColor-H6": "var(--xmlui-borderBottomColor-H6, var(--xmlui-borderVerticalColor-H6, var(--xmlui-borderColor-H6)))", "borderStartStartRadius-H6": "var(--xmlui-borderStartStartRadius-H6, var(--xmlui-borderRadius-H6))", "borderStartEndRadius-H6": "var(--xmlui-borderStartEndRadius-H6, var(--xmlui-borderRadius-H6))", "borderEndStartRadius-H6": "var(--xmlui-borderEndStartRadius-H6, var(--xmlui-borderRadius-H6))", "borderEndEndRadius-H6": "var(--xmlui-borderEndEndRadius-H6, var(--xmlui-borderRadius-H6))", "padding-H6": "var(--xmlui-padding-H6)", "paddingHorizontal-H6": "var(--xmlui-paddingHorizontal-H6, var(--xmlui-padding-H6))", "paddingVertical-H6": "var(--xmlui-paddingVertical-H6, var(--xmlui-padding-H6))", "paddingLeft-H6": "var(--xmlui-paddingLeft-H6, var(--xmlui-paddingHorizontal-H6, var(--xmlui-padding-H6)))", "paddingRight-H6": "var(--xmlui-paddingRight-H6, var(--xmlui-paddingHorizontal-H6, var(--xmlui-padding-H6)))", "paddingTop-H6": "var(--xmlui-paddingTop-H6, var(--xmlui-paddingVertical-H6, var(--xmlui-padding-H6)))", "paddingBottom-H6": "var(--xmlui-paddingBottom-H6, var(--xmlui-paddingVertical-H6, var(--xmlui-padding-H6)))", "textColor-H6": "var(--xmlui-textColor-H6)", "fontFamily-H6": "var(--xmlui-fontFamily-H6)", "fontSize-H6": "var(--xmlui-fontSize-H6)", "fontStyle-H6": "var(--xmlui-fontStyle-H6)", "fontVariant-H6": "var(--xmlui-fontVariant-H6)", "fontWeight-H6": "var(--xmlui-fontWeight-H6)", "fontStretch-H6": "var(--xmlui-fontStretch-H6)", "textDecorationLine-H6": "var(--xmlui-textDecorationLine-H6)", "textDecorationColor-H6": "var(--xmlui-textDecorationColor-H6)", "textDecorationStyle-H6": "var(--xmlui-textDecorationStyle-H6)", "textDecorationThickness-H6": "var(--xmlui-textDecorationThickness-H6)", "textUnderlineOffset-H6": "var(--xmlui-textUnderlineOffset-H6)", "lineHeight-H6": "var(--xmlui-lineHeight-H6)", "backgroundColor-H6": "var(--xmlui-backgroundColor-H6)", "textTransform-H6": "var(--xmlui-textTransform-H6)", "letterSpacing-H6": "var(--xmlui-letterSpacing-H6)", "wordSpacing-H6": "var(--xmlui-wordSpacing-H6)", "textShadow-H6": "var(--xmlui-textShadow-H6)", "textIndent-H6": "var(--xmlui-textIndent-H6)", "textAlign-H6": "var(--xmlui-textAlign-H6)", "textAlignLast-H6": "var(--xmlui-textAlignLast-H6)", "wordBreak-H6": "var(--xmlui-wordBreak-H6)", "wordWrap-H6": "var(--xmlui-wordWrap-H6)", "direction-H6": "var(--xmlui-direction-H6)", "writingMode-H6": "var(--xmlui-writingMode-H6)", "lineBreak-H6": "var(--xmlui-lineBreak-H6)", "color-anchor-Heading": "var(--xmlui-color-anchor-Heading)", "gap-anchor-Heading": "var(--xmlui-gap-anchor-Heading)", "textDecorationLine-anchor-Heading": "var(--xmlui-textDecorationLine-anchor-Heading)", "Heading:textColor-H1": "var(--xmlui-textColor-H1)", "Heading:letterSpacing-H1": "var(--xmlui-letterSpacing-H1)", "Heading:fontFamily-H1": "var(--xmlui-fontFamily-H1)", "Heading:fontWeight-H1": "var(--xmlui-fontWeight-H1)", "marginTop-H1": "var(--xmlui-marginTop-H1)", "marginBottom-H1": "var(--xmlui-marginBottom-H1)", "Heading:textDecorationLine-H1": "var(--xmlui-textDecorationLine-H1)", "Heading:textDecorationColor-H1": "var(--xmlui-textDecorationColor-H1)", "Heading:textDecorationStyle-H1": "var(--xmlui-textDecorationStyle-H1)", "Heading:textDecorationThickness-H1": "var(--xmlui-textDecorationThickness-H1)", "Heading:textUnderlineOffset-H1": "var(--xmlui-textUnderlineOffset-H1)", "Heading:textColor-H2": "var(--xmlui-textColor-H2)", "Heading:letterSpacing-H2": "var(--xmlui-letterSpacing-H2)", "Heading:fontFamily-H2": "var(--xmlui-fontFamily-H2)", "Heading:fontWeight-H2": "var(--xmlui-fontWeight-H2)", "marginTop-H2": "var(--xmlui-marginTop-H2)", "marginBottom-H2": "var(--xmlui-marginBottom-H2)", "Heading:textDecorationLine-H2": "var(--xmlui-textDecorationLine-H2)", "Heading:textDecorationColor-H2": "var(--xmlui-textDecorationColor-H2)", "Heading:textDecorationStyle-H2": "var(--xmlui-textDecorationStyle-H2)", "Heading:textDecorationThickness-H2": "var(--xmlui-textDecorationThickness-H2)", "Heading:textUnderlineOffset-H2": "var(--xmlui-textUnderlineOffset-H2)", "Heading:textColor-H3": "var(--xmlui-textColor-H3)", "Heading:letterSpacing-H3": "var(--xmlui-letterSpacing-H3)", "Heading:fontFamily-H3": "var(--xmlui-fontFamily-H3)", "Heading:fontWeight-H3": "var(--xmlui-fontWeight-H3)", "marginTop-H3": "var(--xmlui-marginTop-H3)", "marginBottom-H3": "var(--xmlui-marginBottom-H3)", "Heading:textDecorationLine-H3": "var(--xmlui-textDecorationLine-H3)", "Heading:textDecorationColor-H3": "var(--xmlui-textDecorationColor-H3)", "Heading:textDecorationStyle-H3": "var(--xmlui-textDecorationStyle-H3)", "Heading:textDecorationThickness-H3": "var(--xmlui-textDecorationThickness-H3)", "Heading:textUnderlineOffset-H3": "var(--xmlui-textUnderlineOffset-H3)", "Heading:textColor-H4": "var(--xmlui-textColor-H4)", "Heading:letterSpacing-H4": "var(--xmlui-letterSpacing-H4)", "Heading:fontFamily-H4": "var(--xmlui-fontFamily-H4)", "Heading:fontWeight-H4": "var(--xmlui-fontWeight-H4)", "marginTop-H4": "var(--xmlui-marginTop-H4)", "marginBottom-H4": "var(--xmlui-marginBottom-H4)", "Heading:textDecorationLine-H4": "var(--xmlui-textDecorationLine-H4)", "Heading:textDecorationColor-H4": "var(--xmlui-textDecorationColor-H4)", "Heading:textDecorationStyle-H4": "var(--xmlui-textDecorationStyle-H4)", "Heading:textDecorationThickness-H4": "var(--xmlui-textDecorationThickness-H4)", "Heading:textUnderlineOffset-H4": "var(--xmlui-textUnderlineOffset-H4)", "Heading:textColor-H5": "var(--xmlui-textColor-H5)", "Heading:letterSpacing-H5": "var(--xmlui-letterSpacing-H5)", "Heading:fontFamily-H5": "var(--xmlui-fontFamily-H5)", "Heading:fontWeight-H5": "var(--xmlui-fontWeight-H5)", "marginTop-H5": "var(--xmlui-marginTop-H5)", "marginBottom-H5": "var(--xmlui-marginBottom-H5)", "Heading:textDecorationLine-H5": "var(--xmlui-textDecorationLine-H5)", "Heading:textDecorationColor-H5": "var(--xmlui-textDecorationColor-H5)", "Heading:textDecorationStyle-H5": "var(--xmlui-textDecorationStyle-H5)", "Heading:textDecorationThickness-H5": "var(--xmlui-textDecorationThickness-H5)", "Heading:textUnderlineOffset-H5": "var(--xmlui-textUnderlineOffset-H5)", "Heading:textColor-H6": "var(--xmlui-textColor-H6)", "Heading:letterSpacing-H6": "var(--xmlui-letterSpacing-H6)", "Heading:fontFamily-H6": "var(--xmlui-fontFamily-H6)", "Heading:fontWeight-H6": "var(--xmlui-fontWeight-H6)", "marginTop-H6": "var(--xmlui-marginTop-H6)", "marginBottom-H6": "var(--xmlui-marginBottom-H6)", "Heading:textDecorationLine-H6": "var(--xmlui-textDecorationLine-H6)", "Heading:textDecorationColor-H6": "var(--xmlui-textDecorationColor-H6)", "Heading:textDecorationStyle-H6": "var(--xmlui-textDecorationStyle-H6)", "Heading:textDecorationThickness-H6": "var(--xmlui-textDecorationThickness-H6)", "Heading:textUnderlineOffset-H6": "var(--xmlui-textUnderlineOffset-H6)"}'`,heading:"_heading_1y8d6_13",h1:"_h1_1y8d6_17",h2:"_h2_1y8d6_80",h3:"_h3_1y8d6_143",h4:"_h4_1y8d6_206",h5:"_h5_1y8d6_269",h6:"_h6_1y8d6_332",anchorRef:"_anchorRef_1y8d6_406",truncateOverflow:"_truncateOverflow_1y8d6_417",preserveLinebreaks:"_preserveLinebreaks_1y8d6_423",noEllipsis:"_noEllipsis_1y8d6_427"},qT=m.createContext(null);function zze({children:e}){var k,E;const[t,r]=m.useState(Jt),[n,o]=m.useState(Er),i=m.useRef(null),{forceRefreshAnchorScroll:a}=jo(),l=m.useRef({suspendPositionBasedSetActiveId:!1}),s=sq((E=(k=Object.values(t))==null?void 0:k[0])==null?void 0:E.anchor);R8e(s,{onScrollEnd:m.useCallback(()=>{l.current.suspendPositionBasedSetActiveId=!1},[])});const[u,c]=m.useState(null),d=m.useCallback(_=>{n.forEach(S=>S(_)),c(_)},[n]);m.useEffect(()=>{if(n.length){const _=S=>{S.forEach(O=>{O!=null&&O.isIntersecting&&(l.current.suspendPositionBasedSetActiveId||d(O.target.id))})};return i.current=new IntersectionObserver(_,{rootMargin:"0% 0% -80%"}),Object.values(t).forEach(S=>{var O,A;return(A=(O=i==null?void 0:i.current)==null?void 0:O.observe)==null?void 0:A.call(O,S.anchor)}),()=>{var S;return(S=i.current)==null?void 0:S.disconnect()}}},[n.length,t,d,s]);const f=m.useCallback(_=>(r(S=>({...S,[_.id]:_})),()=>{r(S=>{const O={...S};return delete O[_.id],O})}),[]),p=kv(),g=m.useCallback((_,S)=>{const O=t[_];O&&(l.current.suspendPositionBasedSetActiveId=!0,O.anchor.scrollIntoView({block:"start",inline:"start",behavior:S?"smooth":"auto"}),d(_),requestAnimationFrame(()=>{p({hash:`#${O.id}`},{state:{preventHashScroll:!0}}),requestAnimationFrame(()=>{p({hash:`#${O.id}`},{replace:!0})})}))},[t,p,d]),v=m.useMemo(()=>Object.values(t).sort(function(_,S){return _.anchor===S.anchor?0:_.anchor.compareDocumentPosition(S.anchor)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),[t]),b=v.length>0;_n(()=>{b&&a()},[a,b]);const y=m.useCallback(_=>(o(S=>[...S,_]),()=>{o(S=>S.filter(O=>O!==_))}),[]),w=m.useMemo(()=>({registerHeading:f,headings:v,scrollToAnchor:g,subscribeToActiveAnchorChange:y,hasTableOfContents:n.length>0,activeAnchorId:u}),[f,v,g,y,n.length,u]);return C.jsx(qT.Provider,{value:w,children:e})}function Fze(){const e=m.useContext(qT);if(!e)throw new Error(`The TableOfContents component can only be used inside a Page component.
|
|
201
|
+
`).filter(i=>i.trim());if(t.length===0)return[];const r=[],n={};t.forEach(i=>{const l=i.length-i.trimLeft().length,u={label:i.trim(),level:l,children:[]};if(l===0){r.push(u),n[0]=r;return}let c=l-1;for(;c>=0;){if(n[c]&&n[c].length>0){n[c][n[c].length-1].children.push(u),n[l]||(n[l]=[]),n[l].push(u);return}c--}r.push(u)});const o=i=>{i.length>0&&(i[i.length-1].isLast=!0,i.forEach(a=>{a.children.length>0&&o(a.children)}))};return o(r),r},eX=(e,t)=>e.children.length===0?t:t+e.children.reduce((r,n)=>r+eX(n,t),0),tX=(e,t,r,n=0,o=[])=>{const i=e.isLast,a=n===0,l=e.children.length>0,s=l?eX(e,r):r,u=r/2;return C.jsxs("div",{className:Aa.treeNode,children:[C.jsxs("div",{className:Aa.treeNodeRow,style:{height:`${r}px`},children:[C.jsx("div",{className:Aa.connectorArea,style:{marginLeft:`${n*r}px`,width:`${r}px`,height:`${r}px`},children:C.jsxs("svg",{className:Aa.connector,width:r,height:l?s:r,viewBox:`0 0 ${r} ${l?s:r}`,style:{position:"absolute",top:0,left:0},children:[a&&C.jsx(C.Fragment,{children:C.jsx("line",{x1:u,y1:u,x2:r,y2:u,strokeWidth:"1.5",className:Aa.connectorLine})}),!a&&C.jsxs(C.Fragment,{children:[C.jsx("line",{x1:u,y1:0,x2:u,y2:i?u:r,strokeWidth:"1.5",className:Aa.connectorLine}),C.jsx("line",{x1:u,y1:u,x2:r,y2:u,strokeWidth:"1.5",className:Aa.connectorLine})]}),!i&&l&&C.jsx("line",{x1:u,y1:u,x2:u,y2:s,strokeWidth:"1.5",className:Aa.connectorLine}),o.map((c,d)=>c&&C.jsx("line",{x1:u-(n-d)*r,y1:0,x2:u-(n-d)*r,y2:s,strokeWidth:"1.5",className:Aa.connectorLine},`ancestor-${d}`))]})}),C.jsx("div",{className:Aa.treeNodeContent,style:{lineHeight:`${r}px`},children:e.label})]}),l&&C.jsx("div",{className:Aa.childrenContainer,children:e.children.map((c,d)=>{const f=[...o];for(;f.length<=n;)f.push(!1);return f[n]=d!==e.children.length-1,tX(c,d,r,n+1,f)})})]},`${e.label}-${t}`)},rX=m.forwardRef(function({style:t,children:r,content:n=UT.content,itemHeight:o=UT.itemHeight},i){const a=(n||(r==null?void 0:r.toString())||"").toString(),l=m.useMemo(()=>Lze(a),[a]);return C.jsx("div",{className:Aa.treeDisplay,style:t,ref:i,children:C.jsx("div",{className:Aa.content,children:l.map((s,u)=>tX(s,u,o,0,[]))})})}),pl="TreeDisplay",Nze={status:"stable",description:`The \`${pl}\` component displays hierarchical data in a tree structure. It accepts an indented text format where each line is an entry in the tree, and the number of leading spaces determines the nesting level. The component renders the tree with SVG lines and continuous vertical guides to clearly visualize parent-child relationships in the hierarchy.`,props:{content:{description:"The indented text content to display as a tree structure. Each level of indentation (using spaces) represents one level in the tree hierarchy.",valueType:"string",defaultValue:UT.content},itemHeight:{description:"The height of each tree item in pixels.",valueType:"number",defaultValue:UT.itemHeight}},themeVars:tt(Aa.themeVars),defaultThemeVars:{[`backgroundColor-${pl}`]:"$backgroundColor-CodeBlock",[`borderRadius-${pl}`]:"8px",[`padding-${pl}`]:"$space-4",[`paddingLeft-${pl}`]:"$space-2",[`fontSize-${pl}`]:"$fontSize-code",[`fontWeight-${pl}`]:"$fontWeight-normal",[`fontFamily-${pl}`]:"$fontFamily-monospace",[`color-${pl}`]:"$textColor-primary",[`color-connect-${pl}`]:"$color-surface-200",[`boxShadow-${pl}`]:"none",[`border-${pl}`]:"0.5px solid $borderColor"}},$ze=xe(pl,Nze,({node:e,extractValue:t,renderChild:r,layoutCss:n})=>C.jsx(rX,{style:n,content:t.asOptionalString(e.props.content),itemHeight:t.asOptionalNumber(e.props.itemHeight),children:r(e.children)})),xt="Button",nX={status:"stable",description:"`Button` is the primary interactive component for triggering actions like form submissions, navigation, opening modals, and API calls. It supports multiple visual styles and sizes to match different UI contexts and importance levels.",props:{autoFocus:{description:"Indicates if the button should receive focus when the page loads.",isRequired:!1,type:"boolean",defaultValue:Ri.autoFocus},variant:{description:"The button variant determines the level of emphasis the button should possess.",isRequired:!1,type:"string",availableValues:zU,defaultValue:Ri.variant},themeColor:{description:"Sets the button color scheme defined in the application theme.",isRequired:!1,type:"string",availableValues:MU,defaultValue:Ri.themeColor},size:{description:"Sets the size of the button.",isRequired:!1,type:"string",availableValues:I_,defaultValue:Ri.size},label:{description:`This property is an optional string to set a label for the ${xt}. If no label is specified and an icon is set, the ${xt} will modify its styling to look like a small icon button. When the ${xt} has nested children, it will display them and ignore the value of the \`label\` prop.`,type:"string"},type:{description:`This optional string describes how the ${xt} appears in an HTML context. You rarely need to set this property explicitly.`,availableValues:jLe,valueType:"string",defaultValue:Ri.type},enabled:{description:"The value of this property indicates whether the button accepts actions (`true`) or does not react to them (`false`).",type:"boolean",defaultValue:!0},orientation:ZLe(Ri.orientation),icon:{description:`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 ${xt} displays only that icon.`,type:"string"},iconPosition:{description:`This optional string determines the location of the icon in the ${xt}.`,availableValues:P_,type:"string",defaultValue:Ri.iconPosition},contentPosition:{description:`This optional value determines how the label and icon (or nested children) should be placedinside the ${xt} component.`,availableValues:FU,type:"string",defaultValue:Ri.contentPosition},contextualLabel:{description:`This optional value is used to provide an accessible name for the ${xt} in the context of its usage.`,type:"string"}},events:{click:dv(xt),gotFocus:_a(xt),lostFocus:Ta(xt)},themeVars:tt(zo.themeVars),defaultThemeVars:{[`width-${xt}`]:"fit-content",[`height-${xt}`]:"fit-content",[`borderRadius-${xt}`]:"$borderRadius",[`fontSize-${xt}`]:"$fontSize-small",[`fontWeight-${xt}`]:"$fontWeight-medium",[`backgroundColor-${xt}-primary`]:"$color-primary-500",[`backgroundColor-${xt}-attention`]:"$backgroundColor-attention",[`borderColor-${xt}-attention`]:"$color-attention",[`backgroundColor-${xt}--disabled`]:"$backgroundColor--disabled",[`borderColor-${xt}--disabled`]:"$borderColor--disabled",[`borderStyle-${xt}`]:"solid",[`textColor-${xt}--disabled`]:"$textColor--disabled",[`outlineColor-${xt}--focus`]:"$outlineColor--focus",[`borderWidth-${xt}`]:"1px",[`outlineWidth-${xt}--focus`]:"$outlineWidth--focus",[`outlineStyle-${xt}--focus`]:"$outlineStyle--focus",[`outlineOffset-${xt}--focus`]:"$outlineOffset--focus",[`paddingHorizontal-${xt}-xs`]:"$space-1",[`paddingVertical-${xt}-xs`]:"$space-0_5",[`paddingHorizontal-${xt}-sm`]:"$space-4",[`paddingVertical-${xt}-sm`]:"$space-2",[`paddingHorizontal-${xt}-md`]:"$space-4",[`paddingVertical-${xt}-md`]:"$space-3",[`paddingHorizontal-${xt}-lg`]:"$space-5",[`paddingVertical-${xt}-lg`]:"$space-4",[`textColor-${xt}`]:"$color-surface-950",[`textColor-${xt}-solid`]:"$const-color-surface-50",[`borderColor-${xt}-primary`]:"$color-primary-500",[`backgroundColor-${xt}-primary--hover`]:"$color-primary-400",[`backgroundColor-${xt}-primary--active`]:"$color-primary-500",[`backgroundColor-${xt}-primary-outlined--hover`]:"$color-primary-50",[`backgroundColor-${xt}-primary-outlined--active`]:"$color-primary-100",[`borderColor-${xt}-primary-outlined`]:"$color-primary-600",[`borderColor-${xt}-primary-outlined--hover`]:"$color-primary-500",[`textColor-${xt}-primary-outlined`]:"$color-primary-900",[`textColor-${xt}-primary-outlined--hover`]:"$color-primary-950",[`textColor-${xt}-primary-outlined--active`]:"$color-primary-900",[`backgroundColor-${xt}-primary-ghost--hover`]:"$color-primary-50",[`backgroundColor-${xt}-primary-ghost--active`]:"$color-primary-100",[`borderColor-${xt}-secondary`]:"$color-secondary-100",[`backgroundColor-${xt}-secondary`]:"$color-secondary-500",[`backgroundColor-${xt}-secondary--hover`]:"$color-secondary-400",[`backgroundColor-${xt}-secondary--active`]:"$color-secondary-500",[`backgroundColor-${xt}-secondary-outlined--hover`]:"$color-secondary-50",[`backgroundColor-${xt}-secondary-outlined--active`]:"$color-secondary-100",[`backgroundColor-${xt}-secondary-ghost--hover`]:"$color-secondary-100",[`backgroundColor-${xt}-secondary-ghost--active`]:"$color-secondary-100",[`backgroundColor-${xt}-attention--hover`]:"$color-danger-400",[`backgroundColor-${xt}-attention--active`]:"$color-danger-500",[`backgroundColor-${xt}-attention-outlined--hover`]:"$color-danger-50",[`backgroundColor-${xt}-attention-outlined--active`]:"$color-danger-100",[`backgroundColor-${xt}-attention-ghost--hover`]:"$color-danger-50",[`backgroundColor-${xt}-attention-ghost--active`]:"$color-danger-100"}},Dze=xe("Button",nX,({node:e,extractValue:t,renderChild:r,lookupEventHandler:n,layoutCss:o})=>{const i=t.asString(e.props.icon),a=t.asDisplayText(e.props.label);return C.jsx(sn,{type:t.asOptionalString(e.props.type),variant:t.asOptionalString(e.props.variant),themeColor:t.asOptionalString(e.props.themeColor),autoFocus:t.asOptionalBoolean(e.props.autoFocus),size:t.asOptionalString(e.props.size),icon:i&&C.jsx(kt,{name:i,"aria-hidden":!0}),iconPosition:t.asOptionalString(e.props.iconPosition),orientation:t.asOptionalString(e.props.orientation),contentPosition:t.asOptionalString(e.props.contentPosition),disabled:!t.asOptionalBoolean(e.props.enabled,!0),onClick:n("click"),onFocus:n("gotFocus"),onBlur:n("lostFocus"),style:o,contextualLabel:t.asOptionalString(e.props.contextualLabel),children:r(e.children,{type:"Stack",orientation:"horizontal"})||a})}),Js={themeVars:`'{"padding-HelloWorld": "var(--xmlui-padding-HelloWorld)", "paddingHorizontal-HelloWorld": "var(--xmlui-paddingHorizontal-HelloWorld, var(--xmlui-padding-HelloWorld))", "paddingVertical-HelloWorld": "var(--xmlui-paddingVertical-HelloWorld, var(--xmlui-padding-HelloWorld))", "paddingLeft-HelloWorld": "var(--xmlui-paddingLeft-HelloWorld, var(--xmlui-paddingHorizontal-HelloWorld, var(--xmlui-padding-HelloWorld)))", "paddingRight-HelloWorld": "var(--xmlui-paddingRight-HelloWorld, var(--xmlui-paddingHorizontal-HelloWorld, var(--xmlui-padding-HelloWorld)))", "paddingTop-HelloWorld": "var(--xmlui-paddingTop-HelloWorld, var(--xmlui-paddingVertical-HelloWorld, var(--xmlui-padding-HelloWorld)))", "paddingBottom-HelloWorld": "var(--xmlui-paddingBottom-HelloWorld, var(--xmlui-paddingVertical-HelloWorld, var(--xmlui-padding-HelloWorld)))", "border-HelloWorld": "var(--xmlui-border-HelloWorld)", "borderHorizontal-HelloWorld": "var(--xmlui-borderHorizontal-HelloWorld, var(--xmlui-border-HelloWorld))", "borderVertical-HelloWorld": "var(--xmlui-borderVertical-HelloWorld, var(--xmlui-border-HelloWorld))", "borderLeft-HelloWorld": "var(--xmlui-borderLeft-HelloWorld, var(--xmlui-borderHorizontal-HelloWorld, var(--xmlui-border-HelloWorld)))", "borderRight-HelloWorld": "var(--xmlui-borderRight-HelloWorld, var(--xmlui-borderHorizontal-HelloWorld, var(--xmlui-border-HelloWorld)))", "borderTop-HelloWorld": "var(--xmlui-borderTop-HelloWorld, var(--xmlui-borderVertical-HelloWorld, var(--xmlui-border-HelloWorld)))", "borderBottom-HelloWorld": "var(--xmlui-borderBottom-HelloWorld, var(--xmlui-borderVertical-HelloWorld, var(--xmlui-border-HelloWorld)))", "borderWidth-HelloWorld": "var(--xmlui-borderWidth-HelloWorld)", "borderHorizontalWidth-HelloWorld": "var(--xmlui-borderHorizontalWidth-HelloWorld, var(--xmlui-borderWidth-HelloWorld))", "borderLeftWidth-HelloWorld": "var(--xmlui-borderLeftWidth-HelloWorld, var(--xmlui-borderHorizontalWidth-HelloWorld, var(--xmlui-borderWidth-HelloWorld)))", "borderRightWidth-HelloWorld": "var(--xmlui-borderRightWidth-HelloWorld, var(--xmlui-borderHorizontalWidth-HelloWorld, var(--xmlui-borderWidth-HelloWorld)))", "borderVerticalWidth-HelloWorld": "var(--xmlui-borderVerticalWidth-HelloWorld, var(--xmlui-borderWidth-HelloWorld))", "borderTopWidth-HelloWorld": "var(--xmlui-borderTopWidth-HelloWorld, var(--xmlui-borderVerticalWidth-HelloWorld, var(--xmlui-borderWidth-HelloWorld)))", "borderBottomWidth-HelloWorld": "var(--xmlui-borderBottomWidth-HelloWorld, var(--xmlui-borderVerticalWidth-HelloWorld, var(--xmlui-borderWidth-HelloWorld)))", "borderStyle-HelloWorld": "var(--xmlui-borderStyle-HelloWorld)", "borderHorizontalStyle-HelloWorld": "var(--xmlui-borderHorizontalStyle-HelloWorld, var(--xmlui-borderStyle-HelloWorld))", "borderLeftStyle-HelloWorld": "var(--xmlui-borderLeftStyle-HelloWorld, var(--xmlui-borderHorizontalStyle-HelloWorld, var(--xmlui-borderStyle-HelloWorld)))", "borderRightStyle-HelloWorld": "var(--xmlui-borderRightStyle-HelloWorld, var(--xmlui-borderHorizontalStyle-HelloWorld, var(--xmlui-borderStyle-HelloWorld)))", "borderVerticalStyle-HelloWorld": "var(--xmlui-borderVerticalStyle-HelloWorld, var(--xmlui-borderStyle-HelloWorld))", "borderTopStyle-HelloWorld": "var(--xmlui-borderTopStyle-HelloWorld, var(--xmlui-borderVerticalStyle-HelloWorld, var(--xmlui-borderStyle-HelloWorld)))", "borderBottomStyle-HelloWorld": "var(--xmlui-borderBottomStyle-HelloWorld, var(--xmlui-borderVerticalStyle-HelloWorld, var(--xmlui-borderStyle-HelloWorld)))", "borderColor-HelloWorld": "var(--xmlui-borderColor-HelloWorld)", "borderHorizontalColor-HelloWorld": "var(--xmlui-borderHorizontalColor-HelloWorld, var(--xmlui-borderColor-HelloWorld))", "borderLeftColor-HelloWorld": "var(--xmlui-borderLeftColor-HelloWorld, var(--xmlui-borderHorizontalColor-HelloWorld, var(--xmlui-borderColor-HelloWorld)))", "borderRightColor-HelloWorld": "var(--xmlui-borderRightColor-HelloWorld, var(--xmlui-borderHorizontalColor-HelloWorld, var(--xmlui-borderColor-HelloWorld)))", "borderVerticalColor-HelloWorld": "var(--xmlui-borderVerticalColor-HelloWorld, var(--xmlui-borderColor-HelloWorld))", "borderTopColor-HelloWorld": "var(--xmlui-borderTopColor-HelloWorld, var(--xmlui-borderVerticalColor-HelloWorld, var(--xmlui-borderColor-HelloWorld)))", "borderBottomColor-HelloWorld": "var(--xmlui-borderBottomColor-HelloWorld, var(--xmlui-borderVerticalColor-HelloWorld, var(--xmlui-borderColor-HelloWorld)))", "borderStartStartRadius-HelloWorld": "var(--xmlui-borderStartStartRadius-HelloWorld, var(--xmlui-borderRadius-HelloWorld))", "borderStartEndRadius-HelloWorld": "var(--xmlui-borderStartEndRadius-HelloWorld, var(--xmlui-borderRadius-HelloWorld))", "borderEndStartRadius-HelloWorld": "var(--xmlui-borderEndStartRadius-HelloWorld, var(--xmlui-borderRadius-HelloWorld))", "borderEndEndRadius-HelloWorld": "var(--xmlui-borderEndEndRadius-HelloWorld, var(--xmlui-borderRadius-HelloWorld))", "textColor-HelloWorld": "var(--xmlui-textColor-HelloWorld, var(--xmlui-textColor-HelloWorld))", "fontFamily-HelloWorld": "var(--xmlui-fontFamily-HelloWorld, var(--xmlui-fontFamily-HelloWorld))", "fontSize-HelloWorld": "var(--xmlui-fontSize-HelloWorld, var(--xmlui-fontSize-HelloWorld))", "fontStyle-HelloWorld": "var(--xmlui-fontStyle-HelloWorld, var(--xmlui-fontStyle-HelloWorld))", "fontVariant-HelloWorld": "var(--xmlui-fontVariant-HelloWorld, var(--xmlui-fontVariant-HelloWorld))", "fontWeight-HelloWorld": "var(--xmlui-fontWeight-HelloWorld, var(--xmlui-fontWeight-HelloWorld))", "fontStretch-HelloWorld": "var(--xmlui-fontStretch-HelloWorld, var(--xmlui-fontStretch-HelloWorld))", "textDecorationLine-HelloWorld": "var(--xmlui-textDecorationLine-HelloWorld, var(--xmlui-textDecorationLine-HelloWorld))", "textDecorationColor-HelloWorld": "var(--xmlui-textDecorationColor-HelloWorld, var(--xmlui-textDecorationColor-HelloWorld))", "textDecorationStyle-HelloWorld": "var(--xmlui-textDecorationStyle-HelloWorld, var(--xmlui-textDecorationStyle-HelloWorld))", "textDecorationThickness-HelloWorld": "var(--xmlui-textDecorationThickness-HelloWorld, var(--xmlui-textDecorationThickness-HelloWorld))", "textUnderlineOffset-HelloWorld": "var(--xmlui-textUnderlineOffset-HelloWorld, var(--xmlui-textUnderlineOffset-HelloWorld))", "lineHeight-HelloWorld": "var(--xmlui-lineHeight-HelloWorld, var(--xmlui-lineHeight-HelloWorld))", "backgroundColor-HelloWorld": "var(--xmlui-backgroundColor-HelloWorld, var(--xmlui-backgroundColor-HelloWorld))", "textTransform-HelloWorld": "var(--xmlui-textTransform-HelloWorld, var(--xmlui-textTransform-HelloWorld))", "letterSpacing-HelloWorld": "var(--xmlui-letterSpacing-HelloWorld, var(--xmlui-letterSpacing-HelloWorld))", "wordSpacing-HelloWorld": "var(--xmlui-wordSpacing-HelloWorld, var(--xmlui-wordSpacing-HelloWorld))", "textShadow-HelloWorld": "var(--xmlui-textShadow-HelloWorld, var(--xmlui-textShadow-HelloWorld))", "textIndent-HelloWorld": "var(--xmlui-textIndent-HelloWorld, var(--xmlui-textIndent-HelloWorld))", "textAlign-HelloWorld": "var(--xmlui-textAlign-HelloWorld, var(--xmlui-textAlign-HelloWorld))", "textAlignLast-HelloWorld": "var(--xmlui-textAlignLast-HelloWorld, var(--xmlui-textAlignLast-HelloWorld))", "wordBreak-HelloWorld": "var(--xmlui-wordBreak-HelloWorld, var(--xmlui-wordBreak-HelloWorld))", "wordWrap-HelloWorld": "var(--xmlui-wordWrap-HelloWorld, var(--xmlui-wordWrap-HelloWorld))", "direction-HelloWorld": "var(--xmlui-direction-HelloWorld, var(--xmlui-direction-HelloWorld))", "writingMode-HelloWorld": "var(--xmlui-writingMode-HelloWorld, var(--xmlui-writingMode-HelloWorld))", "lineBreak-HelloWorld": "var(--xmlui-lineBreak-HelloWorld, var(--xmlui-lineBreak-HelloWorld))", "borderRadius-HelloWorld": "var(--xmlui-borderRadius-HelloWorld)", "maxWidth-HelloWorld": "var(--xmlui-maxWidth-HelloWorld)", "textAlign-HelloWorld-content": "var(--xmlui-textAlign-HelloWorld-content)", "marginBottom-HelloWorld-message": "var(--xmlui-marginBottom-HelloWorld-message)", "fontSize-HelloWorld-message": "var(--xmlui-fontSize-HelloWorld-message)", "fontWeight-HelloWorld-message": "var(--xmlui-fontWeight-HelloWorld-message)", "margin-HelloWorld-children": "var(--xmlui-margin-HelloWorld-children)", "padding-HelloWorld-children": "var(--xmlui-padding-HelloWorld-children)", "backgroundColor-HelloWorld-children": "var(--xmlui-backgroundColor-HelloWorld-children)", "borderRadius-HelloWorld-children": "var(--xmlui-borderRadius-HelloWorld-children)", "fontStyle-HelloWorld-children": "var(--xmlui-fontStyle-HelloWorld-children)", "gap-HelloWorld-interactive": "var(--xmlui-gap-HelloWorld-interactive)", "backgroundColor-HelloWorld-clickButton": "var(--xmlui-backgroundColor-HelloWorld-clickButton)", "textColor-HelloWorld-clickButton": "var(--xmlui-textColor-HelloWorld-clickButton)", "border-HelloWorld-clickButton": "var(--xmlui-border-HelloWorld-clickButton)", "borderRadius-HelloWorld-clickButton": "var(--xmlui-borderRadius-HelloWorld-clickButton)", "padding-HelloWorld-clickButton": "var(--xmlui-padding-HelloWorld-clickButton)", "fontSize-HelloWorld-clickButton": "var(--xmlui-fontSize-HelloWorld-clickButton)", "fontWeight-HelloWorld-clickButton": "var(--xmlui-fontWeight-HelloWorld-clickButton)", "transition-HelloWorld-clickButton": "var(--xmlui-transition-HelloWorld-clickButton)", "backgroundColor-HelloWorld-clickButton--hover": "var(--xmlui-backgroundColor-HelloWorld-clickButton--hover)", "transform-HelloWorld-clickButton--active": "var(--xmlui-transform-HelloWorld-clickButton--active)", "fontSize-HelloWorld-counter": "var(--xmlui-fontSize-HelloWorld-counter)", "fontWeight-HelloWorld-counter": "var(--xmlui-fontWeight-HelloWorld-counter)", "backgroundColor-HelloWorld-count": "var(--xmlui-backgroundColor-HelloWorld-count)", "textColor-HelloWorld-count": "var(--xmlui-textColor-HelloWorld-count)", "padding-HelloWorld-count": "var(--xmlui-padding-HelloWorld-count)", "borderRadius-HelloWorld-count": "var(--xmlui-borderRadius-HelloWorld-count)", "fontWeight-HelloWorld-count": "var(--xmlui-fontWeight-HelloWorld-count)", "minWidth-HelloWorld-count": "var(--xmlui-minWidth-HelloWorld-count)", "backgroundColor-HelloWorld-resetButton": "var(--xmlui-backgroundColor-HelloWorld-resetButton)", "textColor-HelloWorld-resetButton": "var(--xmlui-textColor-HelloWorld-resetButton)", "border-HelloWorld-resetButton": "var(--xmlui-border-HelloWorld-resetButton)", "borderRadius-HelloWorld-resetButton": "var(--xmlui-borderRadius-HelloWorld-resetButton)", "padding-HelloWorld-resetButton": "var(--xmlui-padding-HelloWorld-resetButton)", "fontSize-HelloWorld-resetButton": "var(--xmlui-fontSize-HelloWorld-resetButton)", "transition-HelloWorld-resetButton": "var(--xmlui-transition-HelloWorld-resetButton)", "backgroundColor-HelloWorld-resetButton--hover": "var(--xmlui-backgroundColor-HelloWorld-resetButton--hover)"}'`,helloWorld:"_helloWorld_1hfvu_13",content:"_content_1hfvu_68",message:"_message_1hfvu_72",children:"_children_1hfvu_78",interactive:"_interactive_1hfvu_86",clickButton:"_clickButton_1hfvu_93",counter:"_counter_1hfvu_111",count:"_count_1hfvu_111",resetButton:"_resetButton_1hfvu_127"},jP={message:"Hello, World!",theme:"default"},Bze=ee.forwardRef(function({id:t,message:r=jP.message,theme:n=jP.theme,children:o,style:i,className:a,onClick:l,onReset:s,registerComponentApi:u,updateState:c,...d},f){const[p,g]=m.useState(0),v=Mt(w=>{g(w),c==null||c({value:w})});m.useEffect(()=>{c==null||c({value:p})},[c,p]),m.useEffect(()=>{u==null||u({setValue:v})},[u,v]);const b=w=>{const k=p+1;g(k),c==null||c({value:k}),l==null||l(w)},y=w=>{g(0),c==null||c({value:0}),s==null||s(w)};return C.jsx("div",{...d,id:t,ref:f,className:ze(a,Js.helloWorld,{[Js.success]:n==="success"}),style:i,children:C.jsxs("div",{className:Js.content,children:[C.jsx("h3",{className:Js.message,children:r}),o&&C.jsx("div",{className:Js.children,children:o}),C.jsxs("div",{className:Js.interactive,children:[C.jsx("button",{className:Js.clickButton,onClick:b,children:"Click me!"}),C.jsxs("div",{className:Js.counter,children:["Clicks: ",C.jsx("span",{className:Js.count,children:p})]}),p>0&&C.jsx("button",{className:Js.resetButton,onClick:y,children:"Reset"})]})]})})}),Xt="HelloWorld",jze={status:"experimental",description:"`HelloWorld` is a demonstration component that shows basic XMLUI patterns. It displays a customizable greeting message with an interactive click counter.",props:{id:{description:"The unique identifier for the component.",type:"string"},message:{description:"The greeting message to display.",type:"string",defaultValue:jP.message}},events:{onClick:{description:"Triggered when the click button is pressed. Receives the current click count.",type:"function"},onReset:{description:"Triggered when the reset button is pressed. Called when count is reset to 0.",type:"function"}},apis:{value:fv(),setValue:Zl()},themeVars:tt(Js.themeVars),defaultThemeVars:{[`backgroundColor-${Xt}`]:"$color-surface-50",[`borderColor-${Xt}`]:"$color-surface-200",[`borderWidth-${Xt}`]:"$space-2",[`borderStyle-${Xt}`]:"solid",[`borderRadius-${Xt}`]:"$borderRadius",[`padding-${Xt}`]:"$space-4",[`textColor-${Xt}`]:"$color-primary",[`maxWidth-${Xt}`]:"400px",[`textAlign-${Xt}-content`]:"center",[`marginBottom-${Xt}-message`]:"$space-4",[`fontSize-${Xt}-message`]:"$fontSize-lg",[`fontWeight-${Xt}-message`]:"$fontWeight-semibold",[`margin-${Xt}-children`]:"$space-4 0",[`padding-${Xt}-children`]:"$space-3",[`backgroundColor-${Xt}-children`]:"$color-surface-100",[`borderRadius-${Xt}-children`]:"$borderRadius-sm",[`fontStyle-${Xt}-children`]:"italic",[`gap-${Xt}-interactive`]:"$space-3",[`backgroundColor-${Xt}-clickButton`]:"$color-primary-500",[`textColor-${Xt}-clickButton`]:"white",[`border-${Xt}-clickButton`]:"none",[`borderRadius-${Xt}-clickButton`]:"$borderRadius",[`padding-${Xt}-clickButton`]:"$space-3 $space-6",[`fontSize-${Xt}-clickButton`]:"$fontSize-base",[`fontWeight-${Xt}-clickButton`]:"$fontWeight-medium",[`transition-${Xt}-clickButton`]:"background-color 0.2s ease",[`backgroundColor-${Xt}-clickButton--hover`]:"$color-primary-600",[`transform-${Xt}-clickButton--active`]:"translateY(1px)",[`fontSize-${Xt}-counter`]:"$fontSize-lg",[`fontWeight-${Xt}-counter`]:"$fontWeight-medium",[`backgroundColor-${Xt}-count`]:"$color-primary-100",[`textColor-${Xt}-count`]:"$color-primary-700",[`padding-${Xt}-count`]:"$space-1 $space-2",[`borderRadius-${Xt}-count`]:"$borderRadius-sm",[`fontWeight-${Xt}-count`]:"$fontWeight-bold",[`minWidth-${Xt}-count`]:"24px",[`backgroundColor-${Xt}-resetButton`]:"$color-surface-400",[`textColor-${Xt}-resetButton`]:"white",[`border-${Xt}-resetButton`]:"none",[`borderRadius-${Xt}-resetButton`]:"$borderRadius-sm",[`padding-${Xt}-resetButton`]:"$space-2 $space-4",[`fontSize-${Xt}-resetButton`]:"$fontSize-sm",[`transition-${Xt}-resetButton`]:"background-color 0.2s ease",[`backgroundColor-${Xt}-resetButton--hover`]:"$color-surface-500"}},Mze=xe(Xt,jze,({node:e,extractValue:t,renderChild:r,layoutCss:n,lookupEventHandler:o,registerComponentApi:i,updateState:a})=>C.jsx(Bze,{id:t.asOptionalString(e.props.id),message:t.asOptionalString(e.props.message),onClick:o("onClick"),onReset:o("onReset"),registerComponentApi:i,updateState:a,style:n,children:r(e.children)})),hl={themeVars:`'{"border-H1": "var(--xmlui-border-H1)", "borderHorizontal-H1": "var(--xmlui-borderHorizontal-H1, var(--xmlui-border-H1))", "borderVertical-H1": "var(--xmlui-borderVertical-H1, var(--xmlui-border-H1))", "borderLeft-H1": "var(--xmlui-borderLeft-H1, var(--xmlui-borderHorizontal-H1, var(--xmlui-border-H1)))", "borderRight-H1": "var(--xmlui-borderRight-H1, var(--xmlui-borderHorizontal-H1, var(--xmlui-border-H1)))", "borderTop-H1": "var(--xmlui-borderTop-H1, var(--xmlui-borderVertical-H1, var(--xmlui-border-H1)))", "borderBottom-H1": "var(--xmlui-borderBottom-H1, var(--xmlui-borderVertical-H1, var(--xmlui-border-H1)))", "borderWidth-H1": "var(--xmlui-borderWidth-H1)", "borderHorizontalWidth-H1": "var(--xmlui-borderHorizontalWidth-H1, var(--xmlui-borderWidth-H1))", "borderLeftWidth-H1": "var(--xmlui-borderLeftWidth-H1, var(--xmlui-borderHorizontalWidth-H1, var(--xmlui-borderWidth-H1)))", "borderRightWidth-H1": "var(--xmlui-borderRightWidth-H1, var(--xmlui-borderHorizontalWidth-H1, var(--xmlui-borderWidth-H1)))", "borderVerticalWidth-H1": "var(--xmlui-borderVerticalWidth-H1, var(--xmlui-borderWidth-H1))", "borderTopWidth-H1": "var(--xmlui-borderTopWidth-H1, var(--xmlui-borderVerticalWidth-H1, var(--xmlui-borderWidth-H1)))", "borderBottomWidth-H1": "var(--xmlui-borderBottomWidth-H1, var(--xmlui-borderVerticalWidth-H1, var(--xmlui-borderWidth-H1)))", "borderStyle-H1": "var(--xmlui-borderStyle-H1)", "borderHorizontalStyle-H1": "var(--xmlui-borderHorizontalStyle-H1, var(--xmlui-borderStyle-H1))", "borderLeftStyle-H1": "var(--xmlui-borderLeftStyle-H1, var(--xmlui-borderHorizontalStyle-H1, var(--xmlui-borderStyle-H1)))", "borderRightStyle-H1": "var(--xmlui-borderRightStyle-H1, var(--xmlui-borderHorizontalStyle-H1, var(--xmlui-borderStyle-H1)))", "borderVerticalStyle-H1": "var(--xmlui-borderVerticalStyle-H1, var(--xmlui-borderStyle-H1))", "borderTopStyle-H1": "var(--xmlui-borderTopStyle-H1, var(--xmlui-borderVerticalStyle-H1, var(--xmlui-borderStyle-H1)))", "borderBottomStyle-H1": "var(--xmlui-borderBottomStyle-H1, var(--xmlui-borderVerticalStyle-H1, var(--xmlui-borderStyle-H1)))", "borderColor-H1": "var(--xmlui-borderColor-H1)", "borderHorizontalColor-H1": "var(--xmlui-borderHorizontalColor-H1, var(--xmlui-borderColor-H1))", "borderLeftColor-H1": "var(--xmlui-borderLeftColor-H1, var(--xmlui-borderHorizontalColor-H1, var(--xmlui-borderColor-H1)))", "borderRightColor-H1": "var(--xmlui-borderRightColor-H1, var(--xmlui-borderHorizontalColor-H1, var(--xmlui-borderColor-H1)))", "borderVerticalColor-H1": "var(--xmlui-borderVerticalColor-H1, var(--xmlui-borderColor-H1))", "borderTopColor-H1": "var(--xmlui-borderTopColor-H1, var(--xmlui-borderVerticalColor-H1, var(--xmlui-borderColor-H1)))", "borderBottomColor-H1": "var(--xmlui-borderBottomColor-H1, var(--xmlui-borderVerticalColor-H1, var(--xmlui-borderColor-H1)))", "borderStartStartRadius-H1": "var(--xmlui-borderStartStartRadius-H1, var(--xmlui-borderRadius-H1))", "borderStartEndRadius-H1": "var(--xmlui-borderStartEndRadius-H1, var(--xmlui-borderRadius-H1))", "borderEndStartRadius-H1": "var(--xmlui-borderEndStartRadius-H1, var(--xmlui-borderRadius-H1))", "borderEndEndRadius-H1": "var(--xmlui-borderEndEndRadius-H1, var(--xmlui-borderRadius-H1))", "padding-H1": "var(--xmlui-padding-H1)", "paddingHorizontal-H1": "var(--xmlui-paddingHorizontal-H1, var(--xmlui-padding-H1))", "paddingVertical-H1": "var(--xmlui-paddingVertical-H1, var(--xmlui-padding-H1))", "paddingLeft-H1": "var(--xmlui-paddingLeft-H1, var(--xmlui-paddingHorizontal-H1, var(--xmlui-padding-H1)))", "paddingRight-H1": "var(--xmlui-paddingRight-H1, var(--xmlui-paddingHorizontal-H1, var(--xmlui-padding-H1)))", "paddingTop-H1": "var(--xmlui-paddingTop-H1, var(--xmlui-paddingVertical-H1, var(--xmlui-padding-H1)))", "paddingBottom-H1": "var(--xmlui-paddingBottom-H1, var(--xmlui-paddingVertical-H1, var(--xmlui-padding-H1)))", "textColor-H1": "var(--xmlui-textColor-H1)", "fontFamily-H1": "var(--xmlui-fontFamily-H1)", "fontSize-H1": "var(--xmlui-fontSize-H1)", "fontStyle-H1": "var(--xmlui-fontStyle-H1)", "fontVariant-H1": "var(--xmlui-fontVariant-H1)", "fontWeight-H1": "var(--xmlui-fontWeight-H1)", "fontStretch-H1": "var(--xmlui-fontStretch-H1)", "textDecorationLine-H1": "var(--xmlui-textDecorationLine-H1)", "textDecorationColor-H1": "var(--xmlui-textDecorationColor-H1)", "textDecorationStyle-H1": "var(--xmlui-textDecorationStyle-H1)", "textDecorationThickness-H1": "var(--xmlui-textDecorationThickness-H1)", "textUnderlineOffset-H1": "var(--xmlui-textUnderlineOffset-H1)", "lineHeight-H1": "var(--xmlui-lineHeight-H1)", "backgroundColor-H1": "var(--xmlui-backgroundColor-H1)", "textTransform-H1": "var(--xmlui-textTransform-H1)", "letterSpacing-H1": "var(--xmlui-letterSpacing-H1)", "wordSpacing-H1": "var(--xmlui-wordSpacing-H1)", "textShadow-H1": "var(--xmlui-textShadow-H1)", "textIndent-H1": "var(--xmlui-textIndent-H1)", "textAlign-H1": "var(--xmlui-textAlign-H1)", "textAlignLast-H1": "var(--xmlui-textAlignLast-H1)", "wordBreak-H1": "var(--xmlui-wordBreak-H1)", "wordWrap-H1": "var(--xmlui-wordWrap-H1)", "direction-H1": "var(--xmlui-direction-H1)", "writingMode-H1": "var(--xmlui-writingMode-H1)", "lineBreak-H1": "var(--xmlui-lineBreak-H1)", "border-H2": "var(--xmlui-border-H2)", "borderHorizontal-H2": "var(--xmlui-borderHorizontal-H2, var(--xmlui-border-H2))", "borderVertical-H2": "var(--xmlui-borderVertical-H2, var(--xmlui-border-H2))", "borderLeft-H2": "var(--xmlui-borderLeft-H2, var(--xmlui-borderHorizontal-H2, var(--xmlui-border-H2)))", "borderRight-H2": "var(--xmlui-borderRight-H2, var(--xmlui-borderHorizontal-H2, var(--xmlui-border-H2)))", "borderTop-H2": "var(--xmlui-borderTop-H2, var(--xmlui-borderVertical-H2, var(--xmlui-border-H2)))", "borderBottom-H2": "var(--xmlui-borderBottom-H2, var(--xmlui-borderVertical-H2, var(--xmlui-border-H2)))", "borderWidth-H2": "var(--xmlui-borderWidth-H2)", "borderHorizontalWidth-H2": "var(--xmlui-borderHorizontalWidth-H2, var(--xmlui-borderWidth-H2))", "borderLeftWidth-H2": "var(--xmlui-borderLeftWidth-H2, var(--xmlui-borderHorizontalWidth-H2, var(--xmlui-borderWidth-H2)))", "borderRightWidth-H2": "var(--xmlui-borderRightWidth-H2, var(--xmlui-borderHorizontalWidth-H2, var(--xmlui-borderWidth-H2)))", "borderVerticalWidth-H2": "var(--xmlui-borderVerticalWidth-H2, var(--xmlui-borderWidth-H2))", "borderTopWidth-H2": "var(--xmlui-borderTopWidth-H2, var(--xmlui-borderVerticalWidth-H2, var(--xmlui-borderWidth-H2)))", "borderBottomWidth-H2": "var(--xmlui-borderBottomWidth-H2, var(--xmlui-borderVerticalWidth-H2, var(--xmlui-borderWidth-H2)))", "borderStyle-H2": "var(--xmlui-borderStyle-H2)", "borderHorizontalStyle-H2": "var(--xmlui-borderHorizontalStyle-H2, var(--xmlui-borderStyle-H2))", "borderLeftStyle-H2": "var(--xmlui-borderLeftStyle-H2, var(--xmlui-borderHorizontalStyle-H2, var(--xmlui-borderStyle-H2)))", "borderRightStyle-H2": "var(--xmlui-borderRightStyle-H2, var(--xmlui-borderHorizontalStyle-H2, var(--xmlui-borderStyle-H2)))", "borderVerticalStyle-H2": "var(--xmlui-borderVerticalStyle-H2, var(--xmlui-borderStyle-H2))", "borderTopStyle-H2": "var(--xmlui-borderTopStyle-H2, var(--xmlui-borderVerticalStyle-H2, var(--xmlui-borderStyle-H2)))", "borderBottomStyle-H2": "var(--xmlui-borderBottomStyle-H2, var(--xmlui-borderVerticalStyle-H2, var(--xmlui-borderStyle-H2)))", "borderColor-H2": "var(--xmlui-borderColor-H2)", "borderHorizontalColor-H2": "var(--xmlui-borderHorizontalColor-H2, var(--xmlui-borderColor-H2))", "borderLeftColor-H2": "var(--xmlui-borderLeftColor-H2, var(--xmlui-borderHorizontalColor-H2, var(--xmlui-borderColor-H2)))", "borderRightColor-H2": "var(--xmlui-borderRightColor-H2, var(--xmlui-borderHorizontalColor-H2, var(--xmlui-borderColor-H2)))", "borderVerticalColor-H2": "var(--xmlui-borderVerticalColor-H2, var(--xmlui-borderColor-H2))", "borderTopColor-H2": "var(--xmlui-borderTopColor-H2, var(--xmlui-borderVerticalColor-H2, var(--xmlui-borderColor-H2)))", "borderBottomColor-H2": "var(--xmlui-borderBottomColor-H2, var(--xmlui-borderVerticalColor-H2, var(--xmlui-borderColor-H2)))", "borderStartStartRadius-H2": "var(--xmlui-borderStartStartRadius-H2, var(--xmlui-borderRadius-H2))", "borderStartEndRadius-H2": "var(--xmlui-borderStartEndRadius-H2, var(--xmlui-borderRadius-H2))", "borderEndStartRadius-H2": "var(--xmlui-borderEndStartRadius-H2, var(--xmlui-borderRadius-H2))", "borderEndEndRadius-H2": "var(--xmlui-borderEndEndRadius-H2, var(--xmlui-borderRadius-H2))", "padding-H2": "var(--xmlui-padding-H2)", "paddingHorizontal-H2": "var(--xmlui-paddingHorizontal-H2, var(--xmlui-padding-H2))", "paddingVertical-H2": "var(--xmlui-paddingVertical-H2, var(--xmlui-padding-H2))", "paddingLeft-H2": "var(--xmlui-paddingLeft-H2, var(--xmlui-paddingHorizontal-H2, var(--xmlui-padding-H2)))", "paddingRight-H2": "var(--xmlui-paddingRight-H2, var(--xmlui-paddingHorizontal-H2, var(--xmlui-padding-H2)))", "paddingTop-H2": "var(--xmlui-paddingTop-H2, var(--xmlui-paddingVertical-H2, var(--xmlui-padding-H2)))", "paddingBottom-H2": "var(--xmlui-paddingBottom-H2, var(--xmlui-paddingVertical-H2, var(--xmlui-padding-H2)))", "textColor-H2": "var(--xmlui-textColor-H2)", "fontFamily-H2": "var(--xmlui-fontFamily-H2)", "fontSize-H2": "var(--xmlui-fontSize-H2)", "fontStyle-H2": "var(--xmlui-fontStyle-H2)", "fontVariant-H2": "var(--xmlui-fontVariant-H2)", "fontWeight-H2": "var(--xmlui-fontWeight-H2)", "fontStretch-H2": "var(--xmlui-fontStretch-H2)", "textDecorationLine-H2": "var(--xmlui-textDecorationLine-H2)", "textDecorationColor-H2": "var(--xmlui-textDecorationColor-H2)", "textDecorationStyle-H2": "var(--xmlui-textDecorationStyle-H2)", "textDecorationThickness-H2": "var(--xmlui-textDecorationThickness-H2)", "textUnderlineOffset-H2": "var(--xmlui-textUnderlineOffset-H2)", "lineHeight-H2": "var(--xmlui-lineHeight-H2)", "backgroundColor-H2": "var(--xmlui-backgroundColor-H2)", "textTransform-H2": "var(--xmlui-textTransform-H2)", "letterSpacing-H2": "var(--xmlui-letterSpacing-H2)", "wordSpacing-H2": "var(--xmlui-wordSpacing-H2)", "textShadow-H2": "var(--xmlui-textShadow-H2)", "textIndent-H2": "var(--xmlui-textIndent-H2)", "textAlign-H2": "var(--xmlui-textAlign-H2)", "textAlignLast-H2": "var(--xmlui-textAlignLast-H2)", "wordBreak-H2": "var(--xmlui-wordBreak-H2)", "wordWrap-H2": "var(--xmlui-wordWrap-H2)", "direction-H2": "var(--xmlui-direction-H2)", "writingMode-H2": "var(--xmlui-writingMode-H2)", "lineBreak-H2": "var(--xmlui-lineBreak-H2)", "border-H3": "var(--xmlui-border-H3)", "borderHorizontal-H3": "var(--xmlui-borderHorizontal-H3, var(--xmlui-border-H3))", "borderVertical-H3": "var(--xmlui-borderVertical-H3, var(--xmlui-border-H3))", "borderLeft-H3": "var(--xmlui-borderLeft-H3, var(--xmlui-borderHorizontal-H3, var(--xmlui-border-H3)))", "borderRight-H3": "var(--xmlui-borderRight-H3, var(--xmlui-borderHorizontal-H3, var(--xmlui-border-H3)))", "borderTop-H3": "var(--xmlui-borderTop-H3, var(--xmlui-borderVertical-H3, var(--xmlui-border-H3)))", "borderBottom-H3": "var(--xmlui-borderBottom-H3, var(--xmlui-borderVertical-H3, var(--xmlui-border-H3)))", "borderWidth-H3": "var(--xmlui-borderWidth-H3)", "borderHorizontalWidth-H3": "var(--xmlui-borderHorizontalWidth-H3, var(--xmlui-borderWidth-H3))", "borderLeftWidth-H3": "var(--xmlui-borderLeftWidth-H3, var(--xmlui-borderHorizontalWidth-H3, var(--xmlui-borderWidth-H3)))", "borderRightWidth-H3": "var(--xmlui-borderRightWidth-H3, var(--xmlui-borderHorizontalWidth-H3, var(--xmlui-borderWidth-H3)))", "borderVerticalWidth-H3": "var(--xmlui-borderVerticalWidth-H3, var(--xmlui-borderWidth-H3))", "borderTopWidth-H3": "var(--xmlui-borderTopWidth-H3, var(--xmlui-borderVerticalWidth-H3, var(--xmlui-borderWidth-H3)))", "borderBottomWidth-H3": "var(--xmlui-borderBottomWidth-H3, var(--xmlui-borderVerticalWidth-H3, var(--xmlui-borderWidth-H3)))", "borderStyle-H3": "var(--xmlui-borderStyle-H3)", "borderHorizontalStyle-H3": "var(--xmlui-borderHorizontalStyle-H3, var(--xmlui-borderStyle-H3))", "borderLeftStyle-H3": "var(--xmlui-borderLeftStyle-H3, var(--xmlui-borderHorizontalStyle-H3, var(--xmlui-borderStyle-H3)))", "borderRightStyle-H3": "var(--xmlui-borderRightStyle-H3, var(--xmlui-borderHorizontalStyle-H3, var(--xmlui-borderStyle-H3)))", "borderVerticalStyle-H3": "var(--xmlui-borderVerticalStyle-H3, var(--xmlui-borderStyle-H3))", "borderTopStyle-H3": "var(--xmlui-borderTopStyle-H3, var(--xmlui-borderVerticalStyle-H3, var(--xmlui-borderStyle-H3)))", "borderBottomStyle-H3": "var(--xmlui-borderBottomStyle-H3, var(--xmlui-borderVerticalStyle-H3, var(--xmlui-borderStyle-H3)))", "borderColor-H3": "var(--xmlui-borderColor-H3)", "borderHorizontalColor-H3": "var(--xmlui-borderHorizontalColor-H3, var(--xmlui-borderColor-H3))", "borderLeftColor-H3": "var(--xmlui-borderLeftColor-H3, var(--xmlui-borderHorizontalColor-H3, var(--xmlui-borderColor-H3)))", "borderRightColor-H3": "var(--xmlui-borderRightColor-H3, var(--xmlui-borderHorizontalColor-H3, var(--xmlui-borderColor-H3)))", "borderVerticalColor-H3": "var(--xmlui-borderVerticalColor-H3, var(--xmlui-borderColor-H3))", "borderTopColor-H3": "var(--xmlui-borderTopColor-H3, var(--xmlui-borderVerticalColor-H3, var(--xmlui-borderColor-H3)))", "borderBottomColor-H3": "var(--xmlui-borderBottomColor-H3, var(--xmlui-borderVerticalColor-H3, var(--xmlui-borderColor-H3)))", "borderStartStartRadius-H3": "var(--xmlui-borderStartStartRadius-H3, var(--xmlui-borderRadius-H3))", "borderStartEndRadius-H3": "var(--xmlui-borderStartEndRadius-H3, var(--xmlui-borderRadius-H3))", "borderEndStartRadius-H3": "var(--xmlui-borderEndStartRadius-H3, var(--xmlui-borderRadius-H3))", "borderEndEndRadius-H3": "var(--xmlui-borderEndEndRadius-H3, var(--xmlui-borderRadius-H3))", "padding-H3": "var(--xmlui-padding-H3)", "paddingHorizontal-H3": "var(--xmlui-paddingHorizontal-H3, var(--xmlui-padding-H3))", "paddingVertical-H3": "var(--xmlui-paddingVertical-H3, var(--xmlui-padding-H3))", "paddingLeft-H3": "var(--xmlui-paddingLeft-H3, var(--xmlui-paddingHorizontal-H3, var(--xmlui-padding-H3)))", "paddingRight-H3": "var(--xmlui-paddingRight-H3, var(--xmlui-paddingHorizontal-H3, var(--xmlui-padding-H3)))", "paddingTop-H3": "var(--xmlui-paddingTop-H3, var(--xmlui-paddingVertical-H3, var(--xmlui-padding-H3)))", "paddingBottom-H3": "var(--xmlui-paddingBottom-H3, var(--xmlui-paddingVertical-H3, var(--xmlui-padding-H3)))", "textColor-H3": "var(--xmlui-textColor-H3)", "fontFamily-H3": "var(--xmlui-fontFamily-H3)", "fontSize-H3": "var(--xmlui-fontSize-H3)", "fontStyle-H3": "var(--xmlui-fontStyle-H3)", "fontVariant-H3": "var(--xmlui-fontVariant-H3)", "fontWeight-H3": "var(--xmlui-fontWeight-H3)", "fontStretch-H3": "var(--xmlui-fontStretch-H3)", "textDecorationLine-H3": "var(--xmlui-textDecorationLine-H3)", "textDecorationColor-H3": "var(--xmlui-textDecorationColor-H3)", "textDecorationStyle-H3": "var(--xmlui-textDecorationStyle-H3)", "textDecorationThickness-H3": "var(--xmlui-textDecorationThickness-H3)", "textUnderlineOffset-H3": "var(--xmlui-textUnderlineOffset-H3)", "lineHeight-H3": "var(--xmlui-lineHeight-H3)", "backgroundColor-H3": "var(--xmlui-backgroundColor-H3)", "textTransform-H3": "var(--xmlui-textTransform-H3)", "letterSpacing-H3": "var(--xmlui-letterSpacing-H3)", "wordSpacing-H3": "var(--xmlui-wordSpacing-H3)", "textShadow-H3": "var(--xmlui-textShadow-H3)", "textIndent-H3": "var(--xmlui-textIndent-H3)", "textAlign-H3": "var(--xmlui-textAlign-H3)", "textAlignLast-H3": "var(--xmlui-textAlignLast-H3)", "wordBreak-H3": "var(--xmlui-wordBreak-H3)", "wordWrap-H3": "var(--xmlui-wordWrap-H3)", "direction-H3": "var(--xmlui-direction-H3)", "writingMode-H3": "var(--xmlui-writingMode-H3)", "lineBreak-H3": "var(--xmlui-lineBreak-H3)", "border-H4": "var(--xmlui-border-H4)", "borderHorizontal-H4": "var(--xmlui-borderHorizontal-H4, var(--xmlui-border-H4))", "borderVertical-H4": "var(--xmlui-borderVertical-H4, var(--xmlui-border-H4))", "borderLeft-H4": "var(--xmlui-borderLeft-H4, var(--xmlui-borderHorizontal-H4, var(--xmlui-border-H4)))", "borderRight-H4": "var(--xmlui-borderRight-H4, var(--xmlui-borderHorizontal-H4, var(--xmlui-border-H4)))", "borderTop-H4": "var(--xmlui-borderTop-H4, var(--xmlui-borderVertical-H4, var(--xmlui-border-H4)))", "borderBottom-H4": "var(--xmlui-borderBottom-H4, var(--xmlui-borderVertical-H4, var(--xmlui-border-H4)))", "borderWidth-H4": "var(--xmlui-borderWidth-H4)", "borderHorizontalWidth-H4": "var(--xmlui-borderHorizontalWidth-H4, var(--xmlui-borderWidth-H4))", "borderLeftWidth-H4": "var(--xmlui-borderLeftWidth-H4, var(--xmlui-borderHorizontalWidth-H4, var(--xmlui-borderWidth-H4)))", "borderRightWidth-H4": "var(--xmlui-borderRightWidth-H4, var(--xmlui-borderHorizontalWidth-H4, var(--xmlui-borderWidth-H4)))", "borderVerticalWidth-H4": "var(--xmlui-borderVerticalWidth-H4, var(--xmlui-borderWidth-H4))", "borderTopWidth-H4": "var(--xmlui-borderTopWidth-H4, var(--xmlui-borderVerticalWidth-H4, var(--xmlui-borderWidth-H4)))", "borderBottomWidth-H4": "var(--xmlui-borderBottomWidth-H4, var(--xmlui-borderVerticalWidth-H4, var(--xmlui-borderWidth-H4)))", "borderStyle-H4": "var(--xmlui-borderStyle-H4)", "borderHorizontalStyle-H4": "var(--xmlui-borderHorizontalStyle-H4, var(--xmlui-borderStyle-H4))", "borderLeftStyle-H4": "var(--xmlui-borderLeftStyle-H4, var(--xmlui-borderHorizontalStyle-H4, var(--xmlui-borderStyle-H4)))", "borderRightStyle-H4": "var(--xmlui-borderRightStyle-H4, var(--xmlui-borderHorizontalStyle-H4, var(--xmlui-borderStyle-H4)))", "borderVerticalStyle-H4": "var(--xmlui-borderVerticalStyle-H4, var(--xmlui-borderStyle-H4))", "borderTopStyle-H4": "var(--xmlui-borderTopStyle-H4, var(--xmlui-borderVerticalStyle-H4, var(--xmlui-borderStyle-H4)))", "borderBottomStyle-H4": "var(--xmlui-borderBottomStyle-H4, var(--xmlui-borderVerticalStyle-H4, var(--xmlui-borderStyle-H4)))", "borderColor-H4": "var(--xmlui-borderColor-H4)", "borderHorizontalColor-H4": "var(--xmlui-borderHorizontalColor-H4, var(--xmlui-borderColor-H4))", "borderLeftColor-H4": "var(--xmlui-borderLeftColor-H4, var(--xmlui-borderHorizontalColor-H4, var(--xmlui-borderColor-H4)))", "borderRightColor-H4": "var(--xmlui-borderRightColor-H4, var(--xmlui-borderHorizontalColor-H4, var(--xmlui-borderColor-H4)))", "borderVerticalColor-H4": "var(--xmlui-borderVerticalColor-H4, var(--xmlui-borderColor-H4))", "borderTopColor-H4": "var(--xmlui-borderTopColor-H4, var(--xmlui-borderVerticalColor-H4, var(--xmlui-borderColor-H4)))", "borderBottomColor-H4": "var(--xmlui-borderBottomColor-H4, var(--xmlui-borderVerticalColor-H4, var(--xmlui-borderColor-H4)))", "borderStartStartRadius-H4": "var(--xmlui-borderStartStartRadius-H4, var(--xmlui-borderRadius-H4))", "borderStartEndRadius-H4": "var(--xmlui-borderStartEndRadius-H4, var(--xmlui-borderRadius-H4))", "borderEndStartRadius-H4": "var(--xmlui-borderEndStartRadius-H4, var(--xmlui-borderRadius-H4))", "borderEndEndRadius-H4": "var(--xmlui-borderEndEndRadius-H4, var(--xmlui-borderRadius-H4))", "padding-H4": "var(--xmlui-padding-H4)", "paddingHorizontal-H4": "var(--xmlui-paddingHorizontal-H4, var(--xmlui-padding-H4))", "paddingVertical-H4": "var(--xmlui-paddingVertical-H4, var(--xmlui-padding-H4))", "paddingLeft-H4": "var(--xmlui-paddingLeft-H4, var(--xmlui-paddingHorizontal-H4, var(--xmlui-padding-H4)))", "paddingRight-H4": "var(--xmlui-paddingRight-H4, var(--xmlui-paddingHorizontal-H4, var(--xmlui-padding-H4)))", "paddingTop-H4": "var(--xmlui-paddingTop-H4, var(--xmlui-paddingVertical-H4, var(--xmlui-padding-H4)))", "paddingBottom-H4": "var(--xmlui-paddingBottom-H4, var(--xmlui-paddingVertical-H4, var(--xmlui-padding-H4)))", "textColor-H4": "var(--xmlui-textColor-H4)", "fontFamily-H4": "var(--xmlui-fontFamily-H4)", "fontSize-H4": "var(--xmlui-fontSize-H4)", "fontStyle-H4": "var(--xmlui-fontStyle-H4)", "fontVariant-H4": "var(--xmlui-fontVariant-H4)", "fontWeight-H4": "var(--xmlui-fontWeight-H4)", "fontStretch-H4": "var(--xmlui-fontStretch-H4)", "textDecorationLine-H4": "var(--xmlui-textDecorationLine-H4)", "textDecorationColor-H4": "var(--xmlui-textDecorationColor-H4)", "textDecorationStyle-H4": "var(--xmlui-textDecorationStyle-H4)", "textDecorationThickness-H4": "var(--xmlui-textDecorationThickness-H4)", "textUnderlineOffset-H4": "var(--xmlui-textUnderlineOffset-H4)", "lineHeight-H4": "var(--xmlui-lineHeight-H4)", "backgroundColor-H4": "var(--xmlui-backgroundColor-H4)", "textTransform-H4": "var(--xmlui-textTransform-H4)", "letterSpacing-H4": "var(--xmlui-letterSpacing-H4)", "wordSpacing-H4": "var(--xmlui-wordSpacing-H4)", "textShadow-H4": "var(--xmlui-textShadow-H4)", "textIndent-H4": "var(--xmlui-textIndent-H4)", "textAlign-H4": "var(--xmlui-textAlign-H4)", "textAlignLast-H4": "var(--xmlui-textAlignLast-H4)", "wordBreak-H4": "var(--xmlui-wordBreak-H4)", "wordWrap-H4": "var(--xmlui-wordWrap-H4)", "direction-H4": "var(--xmlui-direction-H4)", "writingMode-H4": "var(--xmlui-writingMode-H4)", "lineBreak-H4": "var(--xmlui-lineBreak-H4)", "border-H5": "var(--xmlui-border-H5)", "borderHorizontal-H5": "var(--xmlui-borderHorizontal-H5, var(--xmlui-border-H5))", "borderVertical-H5": "var(--xmlui-borderVertical-H5, var(--xmlui-border-H5))", "borderLeft-H5": "var(--xmlui-borderLeft-H5, var(--xmlui-borderHorizontal-H5, var(--xmlui-border-H5)))", "borderRight-H5": "var(--xmlui-borderRight-H5, var(--xmlui-borderHorizontal-H5, var(--xmlui-border-H5)))", "borderTop-H5": "var(--xmlui-borderTop-H5, var(--xmlui-borderVertical-H5, var(--xmlui-border-H5)))", "borderBottom-H5": "var(--xmlui-borderBottom-H5, var(--xmlui-borderVertical-H5, var(--xmlui-border-H5)))", "borderWidth-H5": "var(--xmlui-borderWidth-H5)", "borderHorizontalWidth-H5": "var(--xmlui-borderHorizontalWidth-H5, var(--xmlui-borderWidth-H5))", "borderLeftWidth-H5": "var(--xmlui-borderLeftWidth-H5, var(--xmlui-borderHorizontalWidth-H5, var(--xmlui-borderWidth-H5)))", "borderRightWidth-H5": "var(--xmlui-borderRightWidth-H5, var(--xmlui-borderHorizontalWidth-H5, var(--xmlui-borderWidth-H5)))", "borderVerticalWidth-H5": "var(--xmlui-borderVerticalWidth-H5, var(--xmlui-borderWidth-H5))", "borderTopWidth-H5": "var(--xmlui-borderTopWidth-H5, var(--xmlui-borderVerticalWidth-H5, var(--xmlui-borderWidth-H5)))", "borderBottomWidth-H5": "var(--xmlui-borderBottomWidth-H5, var(--xmlui-borderVerticalWidth-H5, var(--xmlui-borderWidth-H5)))", "borderStyle-H5": "var(--xmlui-borderStyle-H5)", "borderHorizontalStyle-H5": "var(--xmlui-borderHorizontalStyle-H5, var(--xmlui-borderStyle-H5))", "borderLeftStyle-H5": "var(--xmlui-borderLeftStyle-H5, var(--xmlui-borderHorizontalStyle-H5, var(--xmlui-borderStyle-H5)))", "borderRightStyle-H5": "var(--xmlui-borderRightStyle-H5, var(--xmlui-borderHorizontalStyle-H5, var(--xmlui-borderStyle-H5)))", "borderVerticalStyle-H5": "var(--xmlui-borderVerticalStyle-H5, var(--xmlui-borderStyle-H5))", "borderTopStyle-H5": "var(--xmlui-borderTopStyle-H5, var(--xmlui-borderVerticalStyle-H5, var(--xmlui-borderStyle-H5)))", "borderBottomStyle-H5": "var(--xmlui-borderBottomStyle-H5, var(--xmlui-borderVerticalStyle-H5, var(--xmlui-borderStyle-H5)))", "borderColor-H5": "var(--xmlui-borderColor-H5)", "borderHorizontalColor-H5": "var(--xmlui-borderHorizontalColor-H5, var(--xmlui-borderColor-H5))", "borderLeftColor-H5": "var(--xmlui-borderLeftColor-H5, var(--xmlui-borderHorizontalColor-H5, var(--xmlui-borderColor-H5)))", "borderRightColor-H5": "var(--xmlui-borderRightColor-H5, var(--xmlui-borderHorizontalColor-H5, var(--xmlui-borderColor-H5)))", "borderVerticalColor-H5": "var(--xmlui-borderVerticalColor-H5, var(--xmlui-borderColor-H5))", "borderTopColor-H5": "var(--xmlui-borderTopColor-H5, var(--xmlui-borderVerticalColor-H5, var(--xmlui-borderColor-H5)))", "borderBottomColor-H5": "var(--xmlui-borderBottomColor-H5, var(--xmlui-borderVerticalColor-H5, var(--xmlui-borderColor-H5)))", "borderStartStartRadius-H5": "var(--xmlui-borderStartStartRadius-H5, var(--xmlui-borderRadius-H5))", "borderStartEndRadius-H5": "var(--xmlui-borderStartEndRadius-H5, var(--xmlui-borderRadius-H5))", "borderEndStartRadius-H5": "var(--xmlui-borderEndStartRadius-H5, var(--xmlui-borderRadius-H5))", "borderEndEndRadius-H5": "var(--xmlui-borderEndEndRadius-H5, var(--xmlui-borderRadius-H5))", "padding-H5": "var(--xmlui-padding-H5)", "paddingHorizontal-H5": "var(--xmlui-paddingHorizontal-H5, var(--xmlui-padding-H5))", "paddingVertical-H5": "var(--xmlui-paddingVertical-H5, var(--xmlui-padding-H5))", "paddingLeft-H5": "var(--xmlui-paddingLeft-H5, var(--xmlui-paddingHorizontal-H5, var(--xmlui-padding-H5)))", "paddingRight-H5": "var(--xmlui-paddingRight-H5, var(--xmlui-paddingHorizontal-H5, var(--xmlui-padding-H5)))", "paddingTop-H5": "var(--xmlui-paddingTop-H5, var(--xmlui-paddingVertical-H5, var(--xmlui-padding-H5)))", "paddingBottom-H5": "var(--xmlui-paddingBottom-H5, var(--xmlui-paddingVertical-H5, var(--xmlui-padding-H5)))", "textColor-H5": "var(--xmlui-textColor-H5)", "fontFamily-H5": "var(--xmlui-fontFamily-H5)", "fontSize-H5": "var(--xmlui-fontSize-H5)", "fontStyle-H5": "var(--xmlui-fontStyle-H5)", "fontVariant-H5": "var(--xmlui-fontVariant-H5)", "fontWeight-H5": "var(--xmlui-fontWeight-H5)", "fontStretch-H5": "var(--xmlui-fontStretch-H5)", "textDecorationLine-H5": "var(--xmlui-textDecorationLine-H5)", "textDecorationColor-H5": "var(--xmlui-textDecorationColor-H5)", "textDecorationStyle-H5": "var(--xmlui-textDecorationStyle-H5)", "textDecorationThickness-H5": "var(--xmlui-textDecorationThickness-H5)", "textUnderlineOffset-H5": "var(--xmlui-textUnderlineOffset-H5)", "lineHeight-H5": "var(--xmlui-lineHeight-H5)", "backgroundColor-H5": "var(--xmlui-backgroundColor-H5)", "textTransform-H5": "var(--xmlui-textTransform-H5)", "letterSpacing-H5": "var(--xmlui-letterSpacing-H5)", "wordSpacing-H5": "var(--xmlui-wordSpacing-H5)", "textShadow-H5": "var(--xmlui-textShadow-H5)", "textIndent-H5": "var(--xmlui-textIndent-H5)", "textAlign-H5": "var(--xmlui-textAlign-H5)", "textAlignLast-H5": "var(--xmlui-textAlignLast-H5)", "wordBreak-H5": "var(--xmlui-wordBreak-H5)", "wordWrap-H5": "var(--xmlui-wordWrap-H5)", "direction-H5": "var(--xmlui-direction-H5)", "writingMode-H5": "var(--xmlui-writingMode-H5)", "lineBreak-H5": "var(--xmlui-lineBreak-H5)", "border-H6": "var(--xmlui-border-H6)", "borderHorizontal-H6": "var(--xmlui-borderHorizontal-H6, var(--xmlui-border-H6))", "borderVertical-H6": "var(--xmlui-borderVertical-H6, var(--xmlui-border-H6))", "borderLeft-H6": "var(--xmlui-borderLeft-H6, var(--xmlui-borderHorizontal-H6, var(--xmlui-border-H6)))", "borderRight-H6": "var(--xmlui-borderRight-H6, var(--xmlui-borderHorizontal-H6, var(--xmlui-border-H6)))", "borderTop-H6": "var(--xmlui-borderTop-H6, var(--xmlui-borderVertical-H6, var(--xmlui-border-H6)))", "borderBottom-H6": "var(--xmlui-borderBottom-H6, var(--xmlui-borderVertical-H6, var(--xmlui-border-H6)))", "borderWidth-H6": "var(--xmlui-borderWidth-H6)", "borderHorizontalWidth-H6": "var(--xmlui-borderHorizontalWidth-H6, var(--xmlui-borderWidth-H6))", "borderLeftWidth-H6": "var(--xmlui-borderLeftWidth-H6, var(--xmlui-borderHorizontalWidth-H6, var(--xmlui-borderWidth-H6)))", "borderRightWidth-H6": "var(--xmlui-borderRightWidth-H6, var(--xmlui-borderHorizontalWidth-H6, var(--xmlui-borderWidth-H6)))", "borderVerticalWidth-H6": "var(--xmlui-borderVerticalWidth-H6, var(--xmlui-borderWidth-H6))", "borderTopWidth-H6": "var(--xmlui-borderTopWidth-H6, var(--xmlui-borderVerticalWidth-H6, var(--xmlui-borderWidth-H6)))", "borderBottomWidth-H6": "var(--xmlui-borderBottomWidth-H6, var(--xmlui-borderVerticalWidth-H6, var(--xmlui-borderWidth-H6)))", "borderStyle-H6": "var(--xmlui-borderStyle-H6)", "borderHorizontalStyle-H6": "var(--xmlui-borderHorizontalStyle-H6, var(--xmlui-borderStyle-H6))", "borderLeftStyle-H6": "var(--xmlui-borderLeftStyle-H6, var(--xmlui-borderHorizontalStyle-H6, var(--xmlui-borderStyle-H6)))", "borderRightStyle-H6": "var(--xmlui-borderRightStyle-H6, var(--xmlui-borderHorizontalStyle-H6, var(--xmlui-borderStyle-H6)))", "borderVerticalStyle-H6": "var(--xmlui-borderVerticalStyle-H6, var(--xmlui-borderStyle-H6))", "borderTopStyle-H6": "var(--xmlui-borderTopStyle-H6, var(--xmlui-borderVerticalStyle-H6, var(--xmlui-borderStyle-H6)))", "borderBottomStyle-H6": "var(--xmlui-borderBottomStyle-H6, var(--xmlui-borderVerticalStyle-H6, var(--xmlui-borderStyle-H6)))", "borderColor-H6": "var(--xmlui-borderColor-H6)", "borderHorizontalColor-H6": "var(--xmlui-borderHorizontalColor-H6, var(--xmlui-borderColor-H6))", "borderLeftColor-H6": "var(--xmlui-borderLeftColor-H6, var(--xmlui-borderHorizontalColor-H6, var(--xmlui-borderColor-H6)))", "borderRightColor-H6": "var(--xmlui-borderRightColor-H6, var(--xmlui-borderHorizontalColor-H6, var(--xmlui-borderColor-H6)))", "borderVerticalColor-H6": "var(--xmlui-borderVerticalColor-H6, var(--xmlui-borderColor-H6))", "borderTopColor-H6": "var(--xmlui-borderTopColor-H6, var(--xmlui-borderVerticalColor-H6, var(--xmlui-borderColor-H6)))", "borderBottomColor-H6": "var(--xmlui-borderBottomColor-H6, var(--xmlui-borderVerticalColor-H6, var(--xmlui-borderColor-H6)))", "borderStartStartRadius-H6": "var(--xmlui-borderStartStartRadius-H6, var(--xmlui-borderRadius-H6))", "borderStartEndRadius-H6": "var(--xmlui-borderStartEndRadius-H6, var(--xmlui-borderRadius-H6))", "borderEndStartRadius-H6": "var(--xmlui-borderEndStartRadius-H6, var(--xmlui-borderRadius-H6))", "borderEndEndRadius-H6": "var(--xmlui-borderEndEndRadius-H6, var(--xmlui-borderRadius-H6))", "padding-H6": "var(--xmlui-padding-H6)", "paddingHorizontal-H6": "var(--xmlui-paddingHorizontal-H6, var(--xmlui-padding-H6))", "paddingVertical-H6": "var(--xmlui-paddingVertical-H6, var(--xmlui-padding-H6))", "paddingLeft-H6": "var(--xmlui-paddingLeft-H6, var(--xmlui-paddingHorizontal-H6, var(--xmlui-padding-H6)))", "paddingRight-H6": "var(--xmlui-paddingRight-H6, var(--xmlui-paddingHorizontal-H6, var(--xmlui-padding-H6)))", "paddingTop-H6": "var(--xmlui-paddingTop-H6, var(--xmlui-paddingVertical-H6, var(--xmlui-padding-H6)))", "paddingBottom-H6": "var(--xmlui-paddingBottom-H6, var(--xmlui-paddingVertical-H6, var(--xmlui-padding-H6)))", "textColor-H6": "var(--xmlui-textColor-H6)", "fontFamily-H6": "var(--xmlui-fontFamily-H6)", "fontSize-H6": "var(--xmlui-fontSize-H6)", "fontStyle-H6": "var(--xmlui-fontStyle-H6)", "fontVariant-H6": "var(--xmlui-fontVariant-H6)", "fontWeight-H6": "var(--xmlui-fontWeight-H6)", "fontStretch-H6": "var(--xmlui-fontStretch-H6)", "textDecorationLine-H6": "var(--xmlui-textDecorationLine-H6)", "textDecorationColor-H6": "var(--xmlui-textDecorationColor-H6)", "textDecorationStyle-H6": "var(--xmlui-textDecorationStyle-H6)", "textDecorationThickness-H6": "var(--xmlui-textDecorationThickness-H6)", "textUnderlineOffset-H6": "var(--xmlui-textUnderlineOffset-H6)", "lineHeight-H6": "var(--xmlui-lineHeight-H6)", "backgroundColor-H6": "var(--xmlui-backgroundColor-H6)", "textTransform-H6": "var(--xmlui-textTransform-H6)", "letterSpacing-H6": "var(--xmlui-letterSpacing-H6)", "wordSpacing-H6": "var(--xmlui-wordSpacing-H6)", "textShadow-H6": "var(--xmlui-textShadow-H6)", "textIndent-H6": "var(--xmlui-textIndent-H6)", "textAlign-H6": "var(--xmlui-textAlign-H6)", "textAlignLast-H6": "var(--xmlui-textAlignLast-H6)", "wordBreak-H6": "var(--xmlui-wordBreak-H6)", "wordWrap-H6": "var(--xmlui-wordWrap-H6)", "direction-H6": "var(--xmlui-direction-H6)", "writingMode-H6": "var(--xmlui-writingMode-H6)", "lineBreak-H6": "var(--xmlui-lineBreak-H6)", "color-anchor-Heading": "var(--xmlui-color-anchor-Heading)", "gap-anchor-Heading": "var(--xmlui-gap-anchor-Heading)", "textDecorationLine-anchor-Heading": "var(--xmlui-textDecorationLine-anchor-Heading)", "Heading:textColor-H1": "var(--xmlui-textColor-H1)", "Heading:letterSpacing-H1": "var(--xmlui-letterSpacing-H1)", "Heading:fontFamily-H1": "var(--xmlui-fontFamily-H1)", "Heading:fontWeight-H1": "var(--xmlui-fontWeight-H1)", "marginTop-H1": "var(--xmlui-marginTop-H1)", "marginBottom-H1": "var(--xmlui-marginBottom-H1)", "Heading:textDecorationLine-H1": "var(--xmlui-textDecorationLine-H1)", "Heading:textDecorationColor-H1": "var(--xmlui-textDecorationColor-H1)", "Heading:textDecorationStyle-H1": "var(--xmlui-textDecorationStyle-H1)", "Heading:textDecorationThickness-H1": "var(--xmlui-textDecorationThickness-H1)", "Heading:textUnderlineOffset-H1": "var(--xmlui-textUnderlineOffset-H1)", "Heading:textColor-H2": "var(--xmlui-textColor-H2)", "Heading:letterSpacing-H2": "var(--xmlui-letterSpacing-H2)", "Heading:fontFamily-H2": "var(--xmlui-fontFamily-H2)", "Heading:fontWeight-H2": "var(--xmlui-fontWeight-H2)", "marginTop-H2": "var(--xmlui-marginTop-H2)", "marginBottom-H2": "var(--xmlui-marginBottom-H2)", "Heading:textDecorationLine-H2": "var(--xmlui-textDecorationLine-H2)", "Heading:textDecorationColor-H2": "var(--xmlui-textDecorationColor-H2)", "Heading:textDecorationStyle-H2": "var(--xmlui-textDecorationStyle-H2)", "Heading:textDecorationThickness-H2": "var(--xmlui-textDecorationThickness-H2)", "Heading:textUnderlineOffset-H2": "var(--xmlui-textUnderlineOffset-H2)", "Heading:textColor-H3": "var(--xmlui-textColor-H3)", "Heading:letterSpacing-H3": "var(--xmlui-letterSpacing-H3)", "Heading:fontFamily-H3": "var(--xmlui-fontFamily-H3)", "Heading:fontWeight-H3": "var(--xmlui-fontWeight-H3)", "marginTop-H3": "var(--xmlui-marginTop-H3)", "marginBottom-H3": "var(--xmlui-marginBottom-H3)", "Heading:textDecorationLine-H3": "var(--xmlui-textDecorationLine-H3)", "Heading:textDecorationColor-H3": "var(--xmlui-textDecorationColor-H3)", "Heading:textDecorationStyle-H3": "var(--xmlui-textDecorationStyle-H3)", "Heading:textDecorationThickness-H3": "var(--xmlui-textDecorationThickness-H3)", "Heading:textUnderlineOffset-H3": "var(--xmlui-textUnderlineOffset-H3)", "Heading:textColor-H4": "var(--xmlui-textColor-H4)", "Heading:letterSpacing-H4": "var(--xmlui-letterSpacing-H4)", "Heading:fontFamily-H4": "var(--xmlui-fontFamily-H4)", "Heading:fontWeight-H4": "var(--xmlui-fontWeight-H4)", "marginTop-H4": "var(--xmlui-marginTop-H4)", "marginBottom-H4": "var(--xmlui-marginBottom-H4)", "Heading:textDecorationLine-H4": "var(--xmlui-textDecorationLine-H4)", "Heading:textDecorationColor-H4": "var(--xmlui-textDecorationColor-H4)", "Heading:textDecorationStyle-H4": "var(--xmlui-textDecorationStyle-H4)", "Heading:textDecorationThickness-H4": "var(--xmlui-textDecorationThickness-H4)", "Heading:textUnderlineOffset-H4": "var(--xmlui-textUnderlineOffset-H4)", "Heading:textColor-H5": "var(--xmlui-textColor-H5)", "Heading:letterSpacing-H5": "var(--xmlui-letterSpacing-H5)", "Heading:fontFamily-H5": "var(--xmlui-fontFamily-H5)", "Heading:fontWeight-H5": "var(--xmlui-fontWeight-H5)", "marginTop-H5": "var(--xmlui-marginTop-H5)", "marginBottom-H5": "var(--xmlui-marginBottom-H5)", "Heading:textDecorationLine-H5": "var(--xmlui-textDecorationLine-H5)", "Heading:textDecorationColor-H5": "var(--xmlui-textDecorationColor-H5)", "Heading:textDecorationStyle-H5": "var(--xmlui-textDecorationStyle-H5)", "Heading:textDecorationThickness-H5": "var(--xmlui-textDecorationThickness-H5)", "Heading:textUnderlineOffset-H5": "var(--xmlui-textUnderlineOffset-H5)", "Heading:textColor-H6": "var(--xmlui-textColor-H6)", "Heading:letterSpacing-H6": "var(--xmlui-letterSpacing-H6)", "Heading:fontFamily-H6": "var(--xmlui-fontFamily-H6)", "Heading:fontWeight-H6": "var(--xmlui-fontWeight-H6)", "marginTop-H6": "var(--xmlui-marginTop-H6)", "marginBottom-H6": "var(--xmlui-marginBottom-H6)", "Heading:textDecorationLine-H6": "var(--xmlui-textDecorationLine-H6)", "Heading:textDecorationColor-H6": "var(--xmlui-textDecorationColor-H6)", "Heading:textDecorationStyle-H6": "var(--xmlui-textDecorationStyle-H6)", "Heading:textDecorationThickness-H6": "var(--xmlui-textDecorationThickness-H6)", "Heading:textUnderlineOffset-H6": "var(--xmlui-textUnderlineOffset-H6)"}'`,heading:"_heading_1y8d6_13",h1:"_h1_1y8d6_17",h2:"_h2_1y8d6_80",h3:"_h3_1y8d6_143",h4:"_h4_1y8d6_206",h5:"_h5_1y8d6_269",h6:"_h6_1y8d6_332",anchorRef:"_anchorRef_1y8d6_406",truncateOverflow:"_truncateOverflow_1y8d6_417",preserveLinebreaks:"_preserveLinebreaks_1y8d6_423",noEllipsis:"_noEllipsis_1y8d6_427"},qT=m.createContext(null);function zze({children:e}){var k,E;const[t,r]=m.useState(Jt),[n,o]=m.useState(Er),i=m.useRef(null),{forceRefreshAnchorScroll:a}=jo(),l=m.useRef({suspendPositionBasedSetActiveId:!1}),s=sq((E=(k=Object.values(t))==null?void 0:k[0])==null?void 0:E.anchor);R8e(s,{onScrollEnd:m.useCallback(()=>{l.current.suspendPositionBasedSetActiveId=!1},[])});const[u,c]=m.useState(null),d=m.useCallback(_=>{n.forEach(S=>S(_)),c(_)},[n]);m.useEffect(()=>{if(n.length){const _=S=>{S.forEach(O=>{O!=null&&O.isIntersecting&&(l.current.suspendPositionBasedSetActiveId||d(O.target.id))})};return i.current=new IntersectionObserver(_,{rootMargin:"0% 0% -80%"}),Object.values(t).forEach(S=>{var O,A;return(A=(O=i==null?void 0:i.current)==null?void 0:O.observe)==null?void 0:A.call(O,S.anchor)}),()=>{var S;return(S=i.current)==null?void 0:S.disconnect()}}},[n.length,t,d,s]);const f=m.useCallback(_=>(r(S=>({...S,[_.id]:_})),()=>{r(S=>{const O={...S};return delete O[_.id],O})}),[]),p=kv(),g=m.useCallback((_,S)=>{const O=t[_];O&&(l.current.suspendPositionBasedSetActiveId=!0,O.anchor.scrollIntoView({block:"start",inline:"start",behavior:S?"smooth":"auto"}),d(_),requestAnimationFrame(()=>{p({hash:`#${O.id}`},{state:{preventHashScroll:!0}}),requestAnimationFrame(()=>{p({hash:`#${O.id}`},{replace:!0})})}))},[t,p,d]),v=m.useMemo(()=>Object.values(t).sort(function(_,S){return _.anchor===S.anchor?0:_.anchor.compareDocumentPosition(S.anchor)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),[t]),b=v.length>0;_n(()=>{b&&a()},[a,b]);const y=m.useCallback(_=>(o(S=>[...S,_]),()=>{o(S=>S.filter(O=>O!==_))}),[]),w=m.useMemo(()=>({registerHeading:f,headings:v,scrollToAnchor:g,subscribeToActiveAnchorChange:y,hasTableOfContents:n.length>0,activeAnchorId:u}),[f,v,g,y,n.length,u]);return C.jsx(qT.Provider,{value:w,children:e})}function Fze(){const e=m.useContext(qT);if(!e)throw new Error(`The TableOfContents component can only be used inside a Page component.
|
|
202
202
|
<App>
|
|
203
203
|
<Pages>
|
|
204
204
|
<Page url="/">
|
|
@@ -230,7 +230,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
230
230
|
*/function $Q(e,t){return e?jVe(e)?m.createElement(e,t):e:null}function jVe(e){return MVe(e)||typeof e=="function"||zVe(e)}function MVe(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function zVe(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function FVe(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[r]=m.useState(()=>({current:NVe(t)})),[n,o]=m.useState(()=>r.current.initialState);return r.current.setOptions(i=>({...i,...e,state:{...n,...e.state},onStateChange:a=>{o(a),e.onStateChange==null||e.onStateChange(a)}})),r.current}function Jv(e,t,r){let n=r.initialDeps??[],o;return()=>{var i,a,l,s;let u;r.key&&((i=r.debug)!=null&&i.call(r))&&(u=Date.now());const c=e();if(!(c.length!==n.length||c.some((p,g)=>n[g]!==p)))return o;n=c;let f;if(r.key&&((a=r.debug)!=null&&a.call(r))&&(f=Date.now()),o=t(...c),r.key&&((l=r.debug)!=null&&l.call(r))){const p=Math.round((Date.now()-u)*100)/100,g=Math.round((Date.now()-f)*100)/100,v=g/16,b=(y,w)=>{for(y=String(y);y.length<w;)y=" "+y;return y};console.info(`%c⏱ ${b(g,5)} /${b(p,5)} ms`,`
|
|
231
231
|
font-size: .6rem;
|
|
232
232
|
font-weight: bold;
|
|
233
|
-
color: hsl(${Math.max(0,Math.min(120-120*v,120))}deg 100% 31%);`,r==null?void 0:r.key)}return(s=r==null?void 0:r.onChange)==null||s.call(r,o),o}}function xH(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const WVe=(e,t)=>Math.abs(e-t)<1,VVe=(e,t,r)=>{let n;return function(...o){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,o),r)}};var by={NODE_ENV:"production"};const UVe=e=>e,qVe=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let o=t;o<=r;o++)n.push(o);return n},GVe=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;const o=a=>{const{width:l,height:s}=a;t({width:Math.round(l),height:Math.round(s)})};if(o(r.getBoundingClientRect()),!n.ResizeObserver)return()=>{};const i=new n.ResizeObserver(a=>{const l=a[0];if(l!=null&&l.borderBoxSize){const s=l.borderBoxSize[0];if(s){o({width:s.inlineSize,height:s.blockSize});return}}o(r.getBoundingClientRect())});return i.observe(r,{box:"border-box"}),()=>{i.unobserve(r)}},DQ={passive:!0},YVe=typeof window>"u"?!0:"onscrollend"in window,KVe=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;let o=0;const i=YVe?()=>{}:VVe(n,()=>{t(o,!1)},e.options.isScrollingResetDelay),a=u=>()=>{const{horizontal:c,isRtl:d}=e.options;o=c?r.scrollLeft*(d&&-1||1):r.scrollTop,i(),t(o,u)},l=a(!0),s=a(!1);return s(),r.addEventListener("scroll",l,DQ),r.addEventListener("scrollend",s,DQ),()=>{r.removeEventListener("scroll",l),r.removeEventListener("scrollend",s)}},XVe=(e,t,r)=>{if(t!=null&&t.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[r.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[r.options.horizontal?"width":"height"])},QVe=(e,{adjustments:t=0,behavior:r},n)=>{var o,i;const a=e+t;(i=(o=n.scrollElement)==null?void 0:o.scrollTo)==null||i.call(o,{[n.options.horizontal?"left":"top"]:a,behavior:r})};class ZVe{constructor(t){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 r=null;const n=()=>r||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:r=new this.targetWindow.ResizeObserver(o=>{o.forEach(i=>{this._measureElement(i.target,i)})}));return{disconnect:()=>{var o;(o=n())==null||o.disconnect(),r=null},observe:o=>{var i;return(i=n())==null?void 0:i.observe(o,{box:"border-box"})},unobserve:o=>{var i;return(i=n())==null?void 0:i.unobserve(o)}}})(),this.range=null,this.setOptions=r=>{Object.entries(r).forEach(([n,o])=>{typeof o>"u"&&delete r[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:UVe,rangeExtractor:qVe,onChange:()=>{},measureElement:XVe,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,...r}},this.notify=r=>{var n,o;(o=(n=this.options).onChange)==null||o.call(n,this,r)},this.maybeNotify=Jv(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),r=>{this.notify(r)},{key:by.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(r=>r()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var r;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((r=this.scrollElement)==null?void 0:r.window)??null,this.elementsCache.forEach(o=>{this.observer.observe(o)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(o,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o,this.isScrolling=i,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=(r,n)=>{const o=new Map,i=new Map;for(let a=n-1;a>=0;a--){const l=r[a];if(o.has(l.lane))continue;const s=i.get(l.lane);if(s==null||l.end>s.end?i.set(l.lane,l):l.end<s.end&&o.set(l.lane,!0),o.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((a,l)=>a.end===l.end?a.index-l.index:a.end-l.end)[0]:void 0},this.getMeasurementOptions=Jv(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(r,n,o,i,a)=>(this.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:n,scrollMargin:o,getItemKey:i,enabled:a}),{key:!1}),this.getMeasurements=Jv(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:r,paddingStart:n,scrollMargin:o,getItemKey:i,enabled:a},l)=>{if(!a)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 u=this.measurementsCache.slice(0,s);for(let c=s;c<r;c++){const d=i(c),f=this.options.lanes===1?u[c-1]:this.getFurthestMeasurement(u,c),p=f?f.end+this.options.gap:n+o,g=l.get(d),v=typeof g=="number"?g:this.options.estimateSize(c),b=p+v,y=f?f.lane:c%this.options.lanes;u[c]={index:c,start:p,size:v,end:b,key:d,lane:y}}return this.measurementsCache=u,u},{key:by.NODE_ENV!=="production",debug:()=>this.options.debug}),this.calculateRange=Jv(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(r,n,o)=>this.range=r.length>0&&n>0?JVe({measurements:r,outerSize:n,scrollOffset:o}):null,{key:by.NODE_ENV!=="production",debug:()=>this.options.debug}),this.getIndexes=Jv(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(r,n,o,i)=>n===null?[]:r({startIndex:n.startIndex,endIndex:n.endIndex,overscan:o,count:i}),{key:by.NODE_ENV!=="production",debug:()=>this.options.debug}),this.indexFromElement=r=>{const n=this.options.indexAttribute,o=r.getAttribute(n);return o?parseInt(o,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this._measureElement=(r,n)=>{const o=this.indexFromElement(r),i=this.measurementsCache[o];if(!i)return;const a=i.key,l=this.elementsCache.get(a);l!==r&&(l&&this.observer.unobserve(l),this.observer.observe(r),this.elementsCache.set(a,r)),r.isConnected&&this.resizeItem(o,this.options.measureElement(r,n,this))},this.resizeItem=(r,n)=>{const o=this.measurementsCache[r];if(!o)return;const i=this.itemSizeCache.get(o.key)??o.size,a=n-i;a!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,a,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,n)),this.notify(!1))},this.measureElement=r=>{if(!r){this.elementsCache.forEach((n,o)=>{n.isConnected||(this.observer.unobserve(n),this.elementsCache.delete(o))});return}this._measureElement(r,void 0)},this.getVirtualItems=Jv(()=>[this.getIndexes(),this.getMeasurements()],(r,n)=>{const o=[];for(let i=0,a=r.length;i<a;i++){const l=r[i],s=n[l];o.push(s)}return o},{key:by.NODE_ENV!=="production",debug:()=>this.options.debug}),this.getVirtualItemForOffset=r=>{const n=this.getMeasurements();if(n.length!==0)return xH(n[BQ(0,n.length-1,o=>xH(n[o]).start,r)])},this.getOffsetForAlignment=(r,n)=>{const o=this.getSize(),i=this.getScrollOffset();n==="auto"&&(r<=i?n="start":r>=i+o?n="end":n="start"),n==="start"?r=r:n==="end"?r=r-o:n==="center"&&(r=r-o/2);const a=this.options.horizontal?"scrollWidth":"scrollHeight",s=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[a]:this.scrollElement[a]:0)-o;return Math.max(Math.min(s,r),0)},this.getOffsetForIndex=(r,n="auto")=>{r=Math.max(0,Math.min(r,this.options.count-1));const o=this.measurementsCache[r];if(!o)return;const i=this.getSize(),a=this.getScrollOffset();if(n==="auto")if(o.end>=a+i-this.options.scrollPaddingEnd)n="end";else if(o.start<=a+this.options.scrollPaddingStart)n="start";else return[a,n];const l=n==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(l,n),n]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(r,{align:n="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(r,n),{adjustments:void 0,behavior:o})},this.scrollToIndex=(r,{align:n="auto",behavior:o}={})=>{r=Math.max(0,Math.min(r,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const i=this.getOffsetForIndex(r,n);if(!i)return;const[a,l]=i;this._scrollToOffset(a,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(r))){const[u]=xH(this.getOffsetForIndex(r,l));WVe(u,this.getScrollOffset())||this.scrollToIndex(r,{align:l,behavior:o})}else this.scrollToIndex(r,{align:l,behavior:o})}))},this.scrollBy=(r,{behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+r,{adjustments:void 0,behavior:n})},this.getTotalSize=()=>{var r;const n=this.getMeasurements();let o;return n.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((r=n[n.length-1])==null?void 0:r.end)??0:Math.max(...n.slice(-this.options.lanes).map(i=>i.end)),Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(r,{adjustments:n,behavior:o})=>{this.options.scrollToFn(r,{behavior:o,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const BQ=(e,t,r,n)=>{for(;e<=t;){const o=(e+t)/2|0,i=r(o);if(i<n)e=o+1;else if(i>n)t=o-1;else return o}return e>0?e-1:0};function JVe({measurements:e,outerSize:t,scrollOffset:r}){const n=e.length-1,i=BQ(0,n,l=>e[l].start,r);let a=i;for(;a<n&&e[a].end<r+t;)a++;return{startIndex:i,endIndex:a}}const eUe=typeof document<"u"?m.useLayoutEffect:m.useEffect;function tUe(e){const t=m.useReducer(()=>({}),{})[1],r={...e,onChange:(o,i)=>{var a;i?Hn.flushSync(t):t(),(a=e.onChange)==null||a.call(e,o,i)}},[n]=m.useState(()=>new ZVe(r));return n.setOptions(r),m.useEffect(()=>n._didMount(),[]),eUe(()=>n._willUpdate()),n}function rUe(e){return tUe({observeElementRect:GVe,observeElementOffset:KVe,scrollToFn:QVe,...e})}const eb={};function yH(e){if(eb[e]!==void 0)return eb[e];const t=e.split(/-[A-Z]+/);if(t.length!==2)return eb[e]=null,eb[e];const r=t[0],n=r.split(":"),o=n[n.length-1],i=n.length>1?n.slice(0,n.length-1):[],a=e.substring(r.length+1),[l,...s]=a.split("-"),u=a.substring(l.length).split("--"),c=[],d=[];return u.forEach(f=>{!f.includes("-")&&f?c.push(f):f.split("-").forEach(p=>{p&&d.push(p)})}),eb[e]={classes:i,attribute:o,component:l,traits:d,states:c},eb[e]}function jQ(e=[]){const t=[];for(let r=1;r<=e.length;r++)for(let n=0;n<=e.length-r;n++)t.push(e.slice(n,n+r));return t.sort((r,n)=>n.length-r.length)}function nUe(e,t=[]){const r=yH(e);if(!r)return;const n=jQ(r.states),o=jQ(r.traits),i=[];o.forEach(d=>{let f="";d.forEach(p=>{f=`${f}-${p}`}),i.push(f)}),i.push("");const a=[];n.forEach(d=>{let f="";d.forEach(p=>{f=`${f}--${p}`}),a.push(f)}),a.push("");const l=[r.component,...r.classes],s=[];a.forEach(d=>{i.forEach(f=>{l.forEach(p=>{s.push(`${r.attribute}-${p}${f}${d}`)})})});let u;for(let d=t.length-1;d>=0;d--){const f=t[d];let p=s.find(g=>f[g]!==void 0);if(p){u=p;break}}return{forValue:s[0],matchedValue:u,from:s}}const oUe="xmlui",iUe=/(\$[a-zA-Z][a-zA-Z0-9-_]*)/g,aUe=/^(true|false)$/,wH=/^\d*\*$/,lUe={cssProps:{},issues:new Set};function MQ(e=Jt,t){const r={cssProps:{},issues:new Set};w(t)&&(r.cssProps.flexShrink=0),g("width");const n=v(r.cssProps.width,t);n!==null&&(r.cssProps.flex=n,r.cssProps.flexShrink=1),g("minWidth"),g("maxWidth"),g("height");const o=b(r.cssProps.height,t);o!==null&&(r.cssProps.flex=o,r.cssProps.flexShrink=1),g("minHeight"),g("maxHeight"),g("top"),g("right"),g("bottom"),g("left"),g("gap"),g("padding");const i=p("paddingHorizontal");i&&(r.cssProps.paddingLeft=i,r.cssProps.paddingRight=i),g("paddingRight"),g("paddingLeft");const a=p("paddingVertical");a&&(r.cssProps.paddingTop=a,r.cssProps.paddingBottom=a),g("paddingTop"),g("paddingBottom"),g("margin");const l=p("marginHorizontal");l&&(r.cssProps.marginLeft=l,r.cssProps.marginRight=l),g("marginRight"),g("marginLeft");const s=p("marginVertical");s&&(r.cssProps.marginTop=s,r.cssProps.marginBottom=s),g("marginTop"),g("marginBottom"),g("border");const u=p("borderHorizontal");u&&(r.cssProps.borderLeft=u,r.cssProps.borderRight=u),g("borderRight"),g("borderLeft");const c=p("borderVertical");c&&(r.cssProps.borderTop=c,r.cssProps.borderBottom=c),g("borderTop"),g("borderBottom"),g("borderColor"),g("borderStyle"),g("borderWidth"),g("borderRadius"),g("radiusTopLeft","borderTopLeftRadius"),g("radiusTopRight","borderTopRightRadius"),g("radiusBottomLeft","borderBottomLeftRadius"),g("radiusBottomRight","borderBottomRightRadius"),g("color"),g("fontFamily"),g("fontSize"),g("fontWeight"),g("fontStyle"),g("fontVariant"),g("lineBreak"),g("textDecoration"),g("textDecorationLine"),g("textDecorationColor"),g("textDecorationStyle"),g("textDecorationThickness"),g("textIndent"),g("textShadow"),g("textUnderlineOffset"),g("userSelect"),g("letterSpacing"),g("textTransform"),g("lineHeight"),g("textAlign"),g("textAlignLast"),g("textWrap"),g("wordBreak"),g("wordSpacing"),g("wordWrap"),g("writingMode"),g("backgroundColor"),g("background"),g("boxShadow"),g("direction"),g("overflowX"),g("overflowY"),g("zIndex"),g("opacity"),g("zoom"),g("cursor"),g("whiteSpace"),g("outline"),g("outlineWidth"),g("outlineColor"),g("outlineStyle"),g("outlineOffset");const d=p("wrapContent");d&&(r.cssProps.flexWrap=d==="true"?"wrap":"nowrap"),g("canShrink","flexShrink");const f=p("canShrink");if(f&&(r.cssProps.flexShrink=f==="true"?1:0),Cp(r.cssProps)&&Cp(r.issues))return lUe;return r;function p(k){var S,O;const E=_();if(((S=t==null?void 0:t.mediaSize)==null?void 0:S.sizeIndex)!==void 0){const A=(O=t.mediaSize)==null?void 0:O.sizeIndex,I=_("xs"),H=_("sm"),P=_("md"),L=_("lg"),B=_("xl"),z=_("xxl");let j;switch(A){case 0:j=I??H??P;break;case 1:j=H??P;break;case 2:j=P;break;case 3:j=L;break;case 4:j=B??L;break;case 5:j=z??B??L;break}return j??E}return E;function _(A=""){const I=A?`${k}-${A}`:k;let H=e[I];if(H==null)return;typeof H=="string"?H=H.trim():H=H.toString();const P=H?H.replace(iUe,B=>bl(B.trim())):void 0;if(H!==P)return P;const L=sUe[k];if(!L||L.length===0)return P;for(const B of L)if(B.test(P))return P;return r.issues.add(I),P}}function g(k,E=""){const _=p(k);_&&(r.cssProps[E||k]=_)}function v(k,E){return k&&w(E)==="horizontal"&&wH.test(k.toString())?y(k.toString()):null}function b(k,E){return k&&w(E)==="vertical"&&wH.test(k.toString())?y(k.toString()):null}function y(k){if(wH.test(k)){const E=k.slice(0,-1);return E===""?1:parseInt(E,10)}return null}function w(k){if(!k)return;let E=(k==null?void 0:k.type)==="Stack"&&(k==null?void 0:k.orientation);return E==null?void 0:E.toString()}}function bl(e){return`var(--${oUe}-${e.substring(1)})`}const sUe={width:[],minWidth:[],maxWidth:[],height:[],minHeight:[],maxHeight:[],gap:[],top:[],right:[],bottom:[],left:[],border:[],borderTop:[],borderRight:[],borderBottom:[],borderLeft:[],borderColor:[],borderStyle:[],borderWidth:[],borderHorizontal:[],borderVertical:[],borderRadius:[],radiusTopLeft:[],radiusTopRight:[],radiusBottomLeft:[],radiusBottomRight:[],padding:[],paddingHorizontal:[],paddingVertical:[],paddingTop:[],paddingRight:[],paddingBottom:[],paddingLeft:[],margin:[],marginHorizontal:[],marginVertical:[],marginTop:[],marginRight:[],marginBottom:[],marginLeft:[],backgroundColor:[],background:[],boxShadow:[],direction:[],overflowX:[],overflowY:[],zIndex:[],opacity:[],color:[],fontFamily:[],fontSize:[],fontWeight:[],fontStyle:[aUe],fontVariant:[],lineBreak:[],textDecoration:[],userSelect:[],letterSpacing:[],textTransform:[],lineHeight:[],textAlign:[],textWrap:[],textAlignLast:[],textIndent:[],textShadow:[],wordBreak:[],wordSpacing:[],wordWrap:[],writingMode:[],wrapContent:[],canShrink:[],cursor:[],zoom:[],whiteSpace:[],textDecorationLine:[],textDecorationColor:[],textDecorationStyle:[],textDecorationThickness:[],textUnderlineOffset:[],outline:[],outlineWidth:[],outlineColor:[],outlineStyle:[],outlineOffset:[],transition:[]};function CH(e){return typeof e=="string"&&(e==null?void 0:e.startsWith("$"))}function kH(e,t={}){let r=e;CH(e)&&(r=e.substring(1));const n=t[r];return typeof n=="string"&&CH(n)?kH(n,t):n}function uUe(e){if(!e)return{};const t=xy(e);return{...Zp("color-primary",t),...Zp("color-secondary",t),...Zp("color-info",t),...Zp("color-success",t),...Zp("color-warn",t),...Zp("color-danger",t),...Zp("color-surface",t,{distributeEven:!0})}}function cUe(e){if(!e)return{};const r=xy(e)["space-base"];if(!r||typeof r!="string")return{};let n=r.trim();n.startsWith(".")&&(n=`0${n}`);const o=parseFloat(n);let i=n.replace(o+"","")||"px";if(Number.isNaN(o))return{};const a=[0,.5,1,1.5,2,2.5,3,3.5,4,5,6,7,8,9,10,11,12,14,16,20,24,28,32,36,40,44,48,52,56,60,64,72,80,96],l={};return a.forEach(s=>{l[`space-${(s+"").replace(".","_")}`]=`${s*o}${i}`}),l}function dUe(e){if(!e)return{};const r=xy(e).fontSize;if(!r||typeof r!="string")return{};let n=r.trim();n.startsWith(".")&&(n=`0${n}`);const o=parseFloat(n);let i=n.replace(o+"","")||"px";if(Number.isNaN(o))return{};const a={};return a["fontSize-large"]=`${1.5*o}${i}`,a["fontSize-medium"]=`${1.25*o}${i}`,a["fontSize-semimedium"]=`${1.125*o}${i}`,a["fontSize-normal"]=r,a["fontSize-small"]=`${.875*o}${i}`,a["fontSize-code"]=`${.85*o}${i}`,a["fontSize-smaller"]=`${.75*o}${i}`,a["fontSize-tiny"]=`${.625*o}${i}`,a}function fUe(e){if(!e)return{};const r=xy(e)["fontSize-Text"];if(!r||typeof r!="string")return{};const n={};return n["fontSize-Text-keyboard"]=`calc(${bl("$fontSize-Text")} * 0.875)`,n["fontSize-Text-sample"]=`calc(${bl("$fontSize-Text")} * 0.875)`,n["fontSize-Text-sup"]=`calc(${bl("$fontSize-Text")} * 0.625)`,n["fontSize-Text-sub"]=`calc(${bl("$fontSize-Text")} * 0.625)`,n["fontSize-Text-title"]=`calc(${bl("$fontSize-Text")} * 1.5)`,n["fontSize-Text-subtitle"]=`calc(${bl("$fontSize-Text")} * 1.25)`,n["fontSize-Text-small"]=`calc(${bl("$fontSize-Text")} * 0.875)`,n["fontSize-Text-placeholder"]=`calc(${bl("$fontSize-Text")} * 0.875)`,n["fontSize-Text-paragraph"]=bl("$fontSize-Text"),n["fontSize-Text-subheading"]=`calc(${bl("$fontSize-Text")} * 0.625)`,n["fontSize-Text-tableheading"]=`calc(${bl("$fontSize-Text")} * 0.625)`,n["fontSize-Text-secondary"]=`calc(${bl("$fontSize-Text")} * 0.875)`,n}function mUe(e){if(!e)return{};const t=xy(e),r=["primary","secondary","attention"];let n={};return r.forEach(o=>{const i=TH(_H(t,`color-Button-${o}-solid`),s=>({[`backgroundColor-Button-${o}-solid`]:s.base,[`backgroundColor-Button-${o}-solid--hover`]:s.tone1,[`backgroundColor-Button-${o}-solid--active`]:s.tone2,[`borderColor-Button-${o}-solid`]:s.base,[`borderColor-Button-${o}-solid--hover`]:s.base,[`borderColor-Button-${o}-solid--active`]:s.base,[`textColor-Button-${o}-solid`]:s.tone3,[`textColor-Button-${o}-solid--hover`]:s.tone3,[`textColor-Button-${o}-solid--active`]:s.tone3})),a=TH(_H(t,`color-Button-${o}-outlined`),s=>({[`backgroundColor-Button-${o}-outlined--hover`]:s.alpha1,[`backgroundColor-Button-${o}-outlined--active`]:s.alpha2,[`borderColor-Button-${o}-outlined`]:s.base,[`borderColor-Button-${o}-outlined--hover`]:s.tone1,[`borderColor-Button-${o}-outlined--active`]:s.tone2,[`textColor-Button-${o}-outlined`]:s.base,[`textColor-Button-${o}-outlined--hover`]:s.tone1,[`textColor-Button-${o}-outlined--active`]:s.tone2})),l=TH(_H(t,`color-Button-${o}-ghost`),s=>({[`backgroundColor-Button-${o}-ghost--active`]:s.alpha2,[`backgroundColor-Button-${o}-ghost--hover`]:s.alpha1,[`textColor-Button-${o}-ghost`]:s.base,[`textColor-Button-${o}-ghost--hover`]:s.tone1,[`textColor-Button-${o}-ghost--active`]:s.tone2}));n={...n,...i,...a,...l}}),n}const pUe=/^padding-(?!(?:horizontal|vertical|left|right|top|bottom)-)(.+)$/,hUe=/^paddingHorizontal-(.+)$/,gUe=/^paddingVertical-(.+)$/;function zQ(e){if(!e)return{};const t={...e};return Object.entries(e).forEach(([r,n])=>{var o,i,a,l,s,u,c,d,f,p,g,v,b,y,w,k,E,_,S,O;if(n==null){delete t[r];return}let A=hUe.exec(r);if(A){const B=A[1];t[o=`paddingLeft-${B}`]??(t[o]=n),t[i=`paddingRight-${B}`]??(t[i]=n)}if(A=gUe.exec(r),A){const B=A[1];t[a=`paddingTop-${B}`]??(t[a]=n),t[l=`paddingBottom-${B}`]??(t[l]=n)}if(A=pUe.exec(r),!A)return;const I=A[1],H=e[`paddingHorizontal-${I}`],P=e[`paddingVertical-${I}`],L=n.trim().replace(/ +/g," ").split(" ");switch(L.length){case 1:t[s=`paddingTop-${I}`]??(t[s]=P??L[0]),t[u=`paddingRight-${I}`]??(t[u]=H??L[0]),t[c=`paddingBottom-${I}`]??(t[c]=P??L[0]),t[d=`paddingLeft-${I}`]??(t[d]=H??L[0]);break;case 2:t[f=`paddingTop-${I}`]??(t[f]=P??L[0]),t[p=`paddingRight-${I}`]??(t[p]=H??L[1]),t[g=`paddingBottom-${I}`]??(t[g]=P??L[0]),t[v=`paddingLeft-${I}`]??(t[v]=H??L[1]);break;case 3:t[b=`paddingTop-${I}`]??(t[b]=P??L[0]),t[y=`paddingRight-${I}`]??(t[y]=H??L[1]),t[w=`paddingBottom-${I}`]??(t[w]=P??L[2]),t[k=`paddingLeft-${I}`]??(t[k]=H??L[1]);break;case 4:t[E=`paddingTop-${I}`]??(t[E]=P??L[0]),t[_=`paddingRight-${I}`]??(t[_]=H??L[1]),t[S=`paddingBottom-${I}`]??(t[S]=P??L[2]),t[O=`paddingLeft-${I}`]??(t[O]=H??L[3]);break;default:return}}),t}const vUe=/^border-(.+)$/,bUe=/^borderWidth-(.+)$/,xUe=/^borderHorizontalWidth-(.+)$/,yUe=/^borderVerticalWidth-(.+)$/,wUe=/^borderStyle-(.+)$/,CUe=/^borderHorizontalStyle-(.+)$/,kUe=/^borderVerticalStyle-(.+)$/,_Ue=/^borderLeft-(.+)$/,TUe=/^borderRight-(.+)$/,SUe=/^borderTop-(.+)$/,EUe=/^borderBottom-(.+)$/,OUe=/^borderHorizontal-(.+)$/,AUe=/^borderVertical-(.+)$/,IUe=/^borderColor-(.+)$/,RUe=/^borderHorizontalColor-(.+)$/,PUe=/^borderVerticalColor-(.+)$/;function FQ(e){if(!e)return{};const t={...e};return Object.entries(e).forEach(([n,o])=>{var i,a,l;let s=vUe.exec(n);if(s){const u=s[1];t[`borderLeft-${u}`]=o,t[`borderRight-${u}`]=o,t[`borderTop-${u}`]=o,t[`borderBottom-${u}`]=o;const c=r(o);t[i=`borderWidth-${u}`]??(t[i]=c.thickness),t[a=`borderStyle-${u}`]??(t[a]=c.style),t[l=`borderColor-${u}`]??(t[l]=c.color)}if(s=bUe.exec(n),s){const u=s[1];t[`borderLeftWidth-${u}`]=o,t[`borderRightWidth-${u}`]=o,t[`borderTopWidth-${u}`]=o,t[`borderBottomWidth-${u}`]=o}if(s=wUe.exec(n),s){const u=s[1];t[`borderLeftStyle-${u}`]=o,t[`borderRightStyle-${u}`]=o,t[`borderTopStyle-${u}`]=o,t[`borderBottomStyle-${u}`]=o}if(s=IUe.exec(n),s){const u=s[1];t[`borderLeftColor-${u}`]=o,t[`borderRightColor-${u}`]=o,t[`borderTopColor-${u}`]=o,t[`borderBottomColor-${u}`]=o}if(s=OUe.exec(n),s){const u=s[1];t[`borderLeft-${u}`]=o,t[`borderRight-${u}`]=o;const c=r(o);c.thickness&&(t[`borderLeftWidth-${u}`]=c.thickness,t[`borderRightWidth-${u}`]=c.thickness),c.style&&(t[`borderLeftStyle-${u}`]=c.style,t[`borderRightStyle-${u}`]=c.style),c.color&&(t[`borderLeftColor-${u}`]=c.color,t[`borderRightColor-${u}`]=c.color)}if(s=AUe.exec(n),s){const u=s[1];t[`borderTop-${u}`]=o,t[`borderBottom-${u}`]=o;const c=r(o);c.thickness&&(t[`borderTopWidth-${u}`]=c.thickness,t[`borderBottomWidth-${u}`]=c.thickness),c.style&&(t[`borderTopStyle-${u}`]=c.style,t[`borderBottomStyle-${u}`]=c.style),c.color&&(t[`borderTopColor-${u}`]=c.color,t[`borderBottomColor-${u}`]=c.color)}if(s=_Ue.exec(n),s){const u=s[1],c=r(o);c.thickness&&!e[`borderLeftWidth-${u}`]&&(t[`borderLeftWidth-${u}`]=c.thickness),c.style&&!e[`borderLeftStyle-${u}`]&&(t[`borderLeftStyle-${u}`]=c.style),c.color&&!e[`borderLeftColor-${u}`]&&(t[`borderLeftColor-${u}`]=c.color)}if(s=TUe.exec(n),s){const u=s[1],c=r(o);c.thickness&&(t[`borderRightWidth-${u}`]=c.thickness),c.style&&(t[`borderRightStyle-${u}`]=c.style),c.color&&(t[`borderRightColor-${u}`]=c.color)}if(s=SUe.exec(n),s){const u=s[1],c=r(o);c.thickness&&(t[`borderTopWidth-${u}`]=c.thickness),c.style&&(t[`borderTopStyle-${u}`]=c.style),c.color&&(t[`borderTopColor-${u}`]=c.color)}if(s=EUe.exec(n),s){const u=s[1],c=r(o);c.thickness&&(t[`borderBottomWidth-${u}`]=c.thickness),c.style&&(t[`borderBottomStyle-${u}`]=c.style),c.color&&(t[`borderBottomColor-${u}`]=c.color)}if(s=xUe.exec(n),s){const u=s[1];t[`borderLeftWidth-${u}`]=o,t[`borderRightWidth-${u}`]=o}if(s=yUe.exec(n),s){const u=s[1];t[`borderTopWidth-${u}`]=o,t[`borderBottomWidth-${u}`]=o}if(s=CUe.exec(n),s){const u=s[1];t[`borderLeftStyle-${u}`]=o,t[`borderRightStyle-${u}`]=o}if(s=kUe.exec(n),s){const u=s[1];t[`borderTopStyle-${u}`]=o,t[`borderBottomStyle-${u}`]=o}if(s=RUe.exec(n),s){const u=s[1];t[`borderLeftColor-${u}`]=o,t[`borderRightColor-${u}`]=o}if(s=PUe.exec(n),s){const u=s[1];t[`borderTopColor-${u}`]=o,t[`borderBottomColor-${u}`]=o}}),t;function r(n){var o,i,a;try{const s=new $q(n).parseBorder(),u={style:s.styleValue,thickness:s.widthValue!==void 0?`${s.widthValue}${s.widthUnit??"px"}`:void 0,color:s.color===void 0?void 0:typeof s.color=="string"?s.color:s.color.toString()};if(s.themeId1&&s.themeId2&&s.themeId3)return{thickness:s.themeId1.id,style:s.themeId2.id,color:s.themeId3.id};if(s.themeId1&&s.themeId2)return u.thickness?{thickness:u.thickness,style:s.themeId1.id,color:s.themeId2.id}:u.style?{thickness:s.themeId1.id,style:u.style,color:s.themeId2.id}:{thickness:s.themeId1.id,style:s.themeId2.id,color:u.color};if(s.themeId1){if(u.thickness&&u.style)return{thickness:u.thickness,style:u.style,color:s.themeId1.id};if(u.thickness&&u.color)return{thickness:u.thickness,style:s.themeId1.id,color:u.color};if(u.style&&u.color)return{thickness:s.themeId1.id,style:u.style,color:u.color}}return{thickness:(o=u.thickness)==null?void 0:o.trim(),style:(i=u.style)==null?void 0:i.trim(),color:(a=u.color)==null?void 0:a.trim()}}catch{return{thickness:void 0,style:void 0,color:void 0}}}}function _H(e,t){if(e[t])return e[t];const r=yH(t);if(!r)return null;let n=null,o=null;return Object.keys(e).forEach(i=>{const a=yH(i);if(!(!a||a.component!==r.component||a.attribute!==r.attribute)&&!a.states.length&&a.traits.every(l=>r.traits.includes(l))&&(!n||n.traits.length<=a.traits.length)){n=a,o=i;return}}),o?e[o]:null}function xy(e){const t={};return Object.keys(e).forEach(r=>{t[r]=kH(r,e)}),t}function Zp(e,t,r={distributeEven:!1}){try{const{distributeEven:n}=r,o=t[e];if(!o||typeof o!="string")return{};const i=hv(o);let a,l,s,u,c,d,f,p,g,v,b,y,w;if(n)a=i.lightness(100),l=i.lightness(98),s=i.lightness(95),u=i.lightness(83),c=i.lightness(75),d=i.lightness(63),f=i.lightness(52),p=i.lightness(40),g=i.lightness(32),v=i.lightness(27),b=i.lightness(16),y=i.lightness(13),w=i.lightness(9);else{const k=i.hsl().l(),E=k/5,_=(100-k)/5;a=i.lightness(100),l=i.lightness(k+_*4.5),s=i.lightness(k+_*4),u=i.lightness(k+_*3),c=i.lightness(k+_*2),d=i.lightness(k+_*1),f=i,p=i.lightness(k-E*1),g=i.lightness(k-E*2),v=i.lightness(k-E*3),b=i.lightness(k-E*4),y=i.lightness(k-E*4.5),w=i.lightness(k-E*5)}return{[`const-${e}-0`]:a.toString(),[`const-${e}-50`]:l.toString(),[`const-${e}-100`]:s.toString(),[`const-${e}-200`]:u.toString(),[`const-${e}-300`]:c.toString(),[`const-${e}-400`]:d.toString(),[`const-${e}-500`]:f.toString(),[`const-${e}-600`]:p.toString(),[`const-${e}-700`]:g.toString(),[`const-${e}-800`]:v.toString(),[`const-${e}-900`]:b.toString(),[`const-${e}-950`]:y.toString(),[`const-${e}-1000`]:w.toString()}}catch{return console.error("Error generating base tones for color:",e),{}}}function TH(e,t){const r=HUe(e);return r?t(r):{}}function HUe(e){if(!e||typeof e!="string"||e.startsWith("$"))return null;const t=hv(e);let r,n,o;t.isLight()?(r=t.darken(.2).toString(),n=t.darken(.1).toString(),o=t.darken(.95).toString()):(r=t.lighten(.2).toString(),n=t.lighten(.1).toString(),o=t.lighten(.95).toString());const i=t.alpha(.1).toString(),a=t.alpha(.2).toString();return{base:e,tone1:r,tone2:n,tone3:o,alpha1:i,alpha2:a}}const oc={themeVars:`'{"Input:borderRadius-Checkbox-default": "var(--xmlui-borderRadius-Checkbox-default)", "Input:borderColor-Checkbox-default": "var(--xmlui-borderColor-Checkbox-default)", "Input:backgroundColor-Checkbox-default": "var(--xmlui-backgroundColor-Checkbox-default)", "Input:outlineWidth-Checkbox-default--focus": "var(--xmlui-outlineWidth-Checkbox-default--focus)", "Input:outlineColor-Checkbox-default--focus": "var(--xmlui-outlineColor-Checkbox-default--focus)", "Input:outlineStyle-Checkbox-default--focus": "var(--xmlui-outlineStyle-Checkbox-default--focus)", "Input:outlineOffset-Checkbox-default--focus": "var(--xmlui-outlineOffset-Checkbox-default--focus)", "Input:borderColor-Checkbox-default--hover": "var(--xmlui-borderColor-Checkbox-default--hover)", "Input:backgroundColor-Checkbox--disabled": "var(--xmlui-backgroundColor-Checkbox--disabled)", "Input:borderColor-Checkbox--disabled": "var(--xmlui-borderColor-Checkbox--disabled)", "Input:borderRadius-Checkbox-error": "var(--xmlui-borderRadius-Checkbox-error)", "Input:borderColor-Checkbox-error": "var(--xmlui-borderColor-Checkbox-error)", "Input:backgroundColor-Checkbox-error": "var(--xmlui-backgroundColor-Checkbox-error)", "Input:outlineWidth-Checkbox-error--focus": "var(--xmlui-outlineWidth-Checkbox-error--focus)", "Input:outlineColor-Checkbox-error--focus": "var(--xmlui-outlineColor-Checkbox-error--focus)", "Input:outlineStyle-Checkbox-error--focus": "var(--xmlui-outlineStyle-Checkbox-error--focus)", "Input:outlineOffset-Checkbox-error--focus": "var(--xmlui-outlineOffset-Checkbox-error--focus)", "Input:borderRadius-Checkbox-warning": "var(--xmlui-borderRadius-Checkbox-warning)", "Input:borderColor-Checkbox-warning": "var(--xmlui-borderColor-Checkbox-warning)", "Input:backgroundColor-Checkbox-warning": "var(--xmlui-backgroundColor-Checkbox-warning)", "Input:outlineWidth-Checkbox-warning--focus": "var(--xmlui-outlineWidth-Checkbox-warning--focus)", "Input:outlineColor-Checkbox-warning--focus": "var(--xmlui-outlineColor-Checkbox-warning--focus)", "Input:outlineStyle-Checkbox-warning--focus": "var(--xmlui-outlineStyle-Checkbox-warning--focus)", "Input:outlineOffset-Checkbox-warning--focus": "var(--xmlui-outlineOffset-Checkbox-warning--focus)", "Input:borderRadius-Checkbox-success": "var(--xmlui-borderRadius-Checkbox-success)", "Input:borderColor-Checkbox-success": "var(--xmlui-borderColor-Checkbox-success)", "Input:backgroundColor-Checkbox-success": "var(--xmlui-backgroundColor-Checkbox-success)", "Input:outlineWidth-Checkbox-success--focus": "var(--xmlui-outlineWidth-Checkbox-success--focus)", "Input:outlineColor-Checkbox-success--focus": "var(--xmlui-outlineColor-Checkbox-success--focus)", "Input:outlineStyle-Checkbox-success--focus": "var(--xmlui-outlineStyle-Checkbox-success--focus)", "Input:outlineOffset-Checkbox-success--focus": "var(--xmlui-outlineOffset-Checkbox-success--focus)", "backgroundColor-indicator-Checkbox": "var(--xmlui-backgroundColor-indicator-Checkbox)", "Input:borderColor-checked-Checkbox": "var(--xmlui-borderColor-checked-Checkbox)", "Input:backgroundColor-checked-Checkbox": "var(--xmlui-backgroundColor-checked-Checkbox)", "Input:borderColor-checked-Checkbox-error": "var(--xmlui-borderColor-checked-Checkbox-error)", "Input:backgroundColor-checked-Checkbox-error": "var(--xmlui-backgroundColor-checked-Checkbox-error)", "Input:borderColor-checked-Checkbox-warning": "var(--xmlui-borderColor-checked-Checkbox-warning)", "Input:backgroundColor-checked-Checkbox-warning": "var(--xmlui-backgroundColor-checked-Checkbox-warning)", "Input:borderColor-checked-Checkbox-success": "var(--xmlui-borderColor-checked-Checkbox-success)", "Input:backgroundColor-checked-Checkbox-success": "var(--xmlui-backgroundColor-checked-Checkbox-success)", "Input:backgroundColor-Switch": "var(--xmlui-backgroundColor-Switch)", "Input:borderColor-Switch": "var(--xmlui-borderColor-Switch)", "backgroundColor-indicator-Switch": "var(--xmlui-backgroundColor-indicator-Switch)", "backgroundColor-checked-Switch": "var(--xmlui-backgroundColor-checked-Switch)", "backgroundColor-indicator-checked-Switch": "var(--xmlui-backgroundColor-indicator-checked-Switch)", "Input:borderColor-Switch-default--hover": "var(--xmlui-borderColor-Switch-default--hover)", "Input:backgroundColor-Switch--disabled": "var(--xmlui-backgroundColor-Switch--disabled)", "Input:borderColor-Switch--disabled": "var(--xmlui-borderColor-Switch--disabled)", "Input:borderColor-checked-Switch": "var(--xmlui-borderColor-checked-Switch)", "Input:backgroundColor-checked-Switch": "var(--xmlui-backgroundColor-checked-Switch)", "Input:borderColor-checked-Switch-error": "var(--xmlui-borderColor-checked-Switch-error)", "Input:backgroundColor-checked-Switch-error": "var(--xmlui-backgroundColor-checked-Switch-error)", "Input:borderColor-checked-Switch-warning": "var(--xmlui-borderColor-checked-Switch-warning)", "Input:backgroundColor-checked-Switch-warning": "var(--xmlui-backgroundColor-checked-Switch-warning)", "Input:borderColor-checked-Switch-success": "var(--xmlui-borderColor-checked-Switch-success)", "Input:backgroundColor-checked-Switch-success": "var(--xmlui-backgroundColor-checked-Switch-success)", "Input:outlineWidth-Switch--focus": "var(--xmlui-outlineWidth-Switch--focus)", "Input:outlineColor-Switch--focus": "var(--xmlui-outlineColor-Switch--focus)", "Input:outlineStyle-Switch--focus": "var(--xmlui-outlineStyle-Switch--focus)", "Input:outlineOffset-Switch--focus": "var(--xmlui-outlineOffset-Switch--focus)", "backgroundColor-Switch-indicator--disabled": "var(--xmlui-backgroundColor-Switch-indicator--disabled)", "Input:borderColor-Switch-error": "var(--xmlui-borderColor-Switch-error)", "Input:borderColor-Switch-warning": "var(--xmlui-borderColor-Switch-warning)", "Input:borderColor-Switch-success": "var(--xmlui-borderColor-Switch-success)"}'`,resetAppearance:"_resetAppearance_ga4w0_13",label:"_label_ga4w0_21",inputContainer:"_inputContainer_ga4w0_25",checkbox:"_checkbox_ga4w0_33",error:"_error_ga4w0_62",warning:"_warning_ga4w0_73",valid:"_valid_ga4w0_84",switch:"_switch_ga4w0_144"},xl={initialValue:!1,value:!1,enabled:!0,validationStatus:"none",indeterminate:!1},Jp=m.forwardRef(function({id:t,initialValue:r=xl.initialValue,value:n=xl.value,enabled:o=xl.enabled,style:i,readOnly:a,validationStatus:l=xl.validationStatus,updateState:s=bt,onDidChange:u=bt,onFocus:c=bt,onBlur:d=bt,variant:f="checkbox",indeterminate:p=xl.indeterminate,className:g,label:v,labelPosition:b="end",labelWidth:y,labelBreak:w,required:k,registerComponentApi:E,inputRenderer:_},S){const O=m.useId(),A=t||O,I=ee.useRef(null);m.useEffect(()=>{s({value:r},{initial:!0})},[r,s]);const H=m.useCallback(W=>{var M;((M=I.current)==null?void 0:M.checked)!==W&&(s({value:W}),u(W))},[u,s]),P=m.useCallback(W=>{a||(s({value:W.target.checked}),u(W.target.checked))},[u,a,s]),L=m.useCallback(()=>{c==null||c()},[c]),B=m.useCallback(()=>{d==null||d()},[d]);m.useEffect(()=>{typeof p=="boolean"&&I.current&&(I.current.indeterminate=p)},[p]);const z=m.useCallback(()=>{var W;(W=I.current)==null||W.focus()},[]),j=Mt(W=>{H(W)});m.useEffect(()=>{E==null||E({focus:z,setValue:j})},[z,E,j]);const q=m.useMemo(()=>C.jsx("input",{id:A,ref:I,type:"checkbox",role:f,checked:n,disabled:!o,required:k,readOnly:a,"aria-readonly":a,"aria-checked":n,onChange:P,onFocus:L,onBlur:B,className:ze(oc.resetAppearance,g,{[oc.checkbox]:f==="checkbox",[oc.switch]:f==="switch",[oc.error]:l==="error",[oc.warning]:l==="warning",[oc.valid]:l==="valid"})}),[A,g,o,B,L,P,a,k,l,n,f]);return C.jsx(Ji,{ref:S,id:A,label:v,style:i,labelPosition:b,labelWidth:y,labelBreak:w,required:k,enabled:o,isInputTemplateUsed:!!_,shrinkToLabel:!0,labelStyle:{pointerEvents:a?"none":void 0},children:_?C.jsxs("label",{className:oc.label,children:[C.jsx("div",{className:oc.inputContainer,children:q}),_({$checked:n,$setChecked:j})]}):q})});function LUe({items:e=Er,visibleItems:t=e,rowsSelectable:r,enableMultiRowSelection:n,rowDisabledPredicate:o,onSelectionDidChange:i}){const[a,l]=m.useState(-1),[s,u]=m.useState(null),{selectedItems:c,setSelectedRowIds:d,refreshSelection:f,idKey:p}=gQ(),g=m.useMemo(()=>t.map(P=>P[p]),[p,t]);m.useEffect(()=>{f(r?e:Er)},[f,e,r]);const v=Zc(n);m.useEffect(()=>{v&&!n&&c.length>1&&d([c[0][p]])},[n,p,v,c,d]),m.useEffect(()=>{r&&a!==-1&&!g[a]&&g[0]&&l(0)},[a,r,l,g]);const b=Mt((P,L={})=>{if(!r)return;const B=g[P],{shiftKey:z,metaKey:j,ctrlKey:q}=L,W=!n||!z&&!j&&!q;let M,V=[...c.map(N=>N[p])];if(W)M={from:B,to:B},V=[B];else if(z){let N,Y,G,F;if(s){let J=g.indexOf(s.from),ie=g.indexOf(s.to),oe=Math.min(J,ie),le=Math.max(J,ie);const ce=g.slice(oe,le+1);V=V.filter(X=>!ce.includes(X)),G=s.from,F=B;let pe=g.indexOf(G),me=g.indexOf(F);N=Math.min(pe,me),Y=Math.max(pe,me)}else G=B,F=B,N=P,Y=P;const K=g.slice(N,Y+1);V=BPe(V,K),M={from:G,to:F}}else M={from:B,to:B},j||q?V.includes(B)?V=V.filter(N=>N!==B):V.push(B):V=[B];l(P),d(cU(V)),u(M)}),y=Mt((P,L)=>{if(!r)return;const B=g.indexOf(P[p]);b(B,L)}),w=Mt(P=>{if(r){if(P.key==="ArrowDown"){P.preventDefault();let L=Math.min(t.length-1,a+1);a!==t.length-1&&b(L,P)}if(P.key==="PageDown"){P.preventDefault();const L=Math.min(t.length-1,a+8);b(L,P)}if(P.key==="ArrowUp"){P.preventDefault();let L=Math.max(0,a-1);a>=0&&b(L,P)}if(P.key==="PageUp"){P.preventDefault();const L=Math.max(0,a-8);b(L,P)}}});m.useEffect(()=>{i==null||i(c)},[c,i]);const k=Mt(P=>{r&&(!n&&P||d(P?e.filter(L=>o?!o(L):!0).map(L=>L[p]):[]))}),E=m.useMemo(()=>{let P={};return c.forEach(L=>{P[L[p]]=!0}),P},[p,c]),_=m.useCallback(()=>c,[c]),S=m.useCallback(()=>c.map(P=>P[p]),[p,c]),O=m.useCallback(()=>{k(!1)},[k]),A=m.useCallback(()=>{k(!0)},[k]),I=m.useCallback(P=>{if(!r)return;let L=Array.isArray(P)?P:[P];L.length>1&&!n&&(L=[L[0]]),d(L)},[n,r,d]),H=m.useMemo(()=>({getSelectedItems:_,getSelectedIds:S,clearSelection:O,selectAll:A,selectId:I}),[O,S,_,A,I]);return{onKeyDown:w,focusedIndex:a,toggleRowIndex:b,toggleRow:y,checkAllRows:k,selectedRowIdMap:E,selectedItems:c,idKey:p,selectionApi:H}}function NUe(e){return!1}const $Ue=42,WQ=e=>{const t=e.getIsPinned();return{left:t==="left"?`${e.getStart("left")}px`:void 0,right:t==="right"?`${e.getAfter("right")}px`:void 0,opacity:t?.95:void 0,position:t?"sticky":"relative",backgroundColor:t?"inherit":void 0,zIndex:t?1:void 0}},DUe=m.forwardRef(({data:e=Hi.data,columns:t=Hi.columns,isPaginated:r=Hi.isPaginated,loading:n=Hi.loading,headerHeight:o,rowsSelectable:i=Hi.rowsSelectable,enableMultiRowSelection:a=Hi.enableMultiRowSelection,pageSizes:l=Hi.pageSizes,rowDisabledPredicate:s=NUe,sortBy:u,sortingDirection:c=Hi.sortingDirection,iconSortAsc:d,iconSortDesc:f,iconNoSort:p,sortingDidChange:g,willSort:v,style:b,noDataRenderer:y,autoFocus:w=Hi.autoFocus,hideHeader:k=Hi.hideHeader,hideNoDataView:E=Hi.hideNoDataView,alwaysShowSelectionHeader:_=Hi.alwaysShowSelectionHeader,registerComponentApi:S,onSelectionDidChange:O,noBottomBorder:A=Hi.noBottomBorder},I)=>{var In,Lo,Or,Ot;const{getThemeVar:H}=zr(),P=Array.isArray(e)?e:Er,L=m.useRef(null),B=I?no(L,I):L,z=m.useRef(null),j=m.useRef(null),q=u!==void 0,W=m.useMemo(()=>t||(P.length?Object.keys(P[0]).map(it=>({header:it,accessorKey:it})):Er),[t,P]);m.useEffect(()=>{w&&L.current.focus()},[w]);const[M,V]=m.useState(Er),{toggleRow:N,checkAllRows:Y,focusedIndex:G,onKeyDown:F,selectedRowIdMap:K,idKey:J,selectionApi:ie}=LUe({items:P,visibleItems:M,rowsSelectable:i,enableMultiRowSelection:a,rowDisabledPredicate:s,onSelectionDidChange:O}),oe=m.useMemo(()=>P.map((it,rt)=>({...it,order:rt+1})),[P]),[le,ce]=m.useState(u),[pe,me]=m.useState(c);m.useLayoutEffect(()=>{ce(u)},[u]),m.useLayoutEffect(()=>{me(c)},[c]);const X=m.useMemo(()=>!le||q?oe:sU(oe,le,pe==="ascending"?"asc":"desc"),[le,pe,oe,q]),Z=m.useCallback(async it=>{let rt="ascending",ut=it;le===it&&(pe==="ascending"?rt="descending":ut=void 0),await(v==null?void 0:v(ut,rt))!==!1&&(me(rt),ce(ut),g==null||g(ut,rt))},[le,v,g,pe]),te=m.useMemo(()=>W.map((it,rt)=>{const{width:ut,starSizedWidth:dt}=wr(it.width,!0,"width"),{width:Ur}=wr(it.minWidth,!1,"minWidth"),{width:ur}=wr(it.maxWidth,!1,"maxWidth");return{...it,header:it.header??it.accessorKey??" ",id:"col_"+rt,size:ut,minSize:Ur,maxSize:ur,enableResizing:it.canResize,enableSorting:it.canSort&&!!it.accessorKey,enablePinning:it.pinTo!==void 0,meta:{starSizedWidth:dt,pinTo:it.pinTo,style:it.style,accessorKey:it.accessorKey,cellRenderer:it.cellRenderer}};function wr(qr,ar,Ya){let $c,Ns;const xa=CH(qr)?H(qr):qr;if(typeof xa=="number")Ns=xa;else if(typeof xa=="string"){const Lu=xa.match(/^\s*\*\s*$/);if(ar&&Lu)$c="1*";else{const nO=xa.match(/^\s*(\d+)\s*\*\s*$/);if(ar&&nO)$c=nO[1]+"*";else{const Gm=xa.match(/^\s*(\d+)\s*(px)?\s*$/);if(Gm)Ns=Number(Gm[1]);else throw new Error(`Invalid TableColumnDef '${Ya}' value: ${xa}`)}}}return Ns===void 0&&$c===void 0&&ar&&($c="1*"),{width:Ns,starSizedWidth:$c}}}),[H,W]),se=m.useMemo(()=>i?[{id:"select",size:$Ue,enableResizing:!1,enablePinning:!0,meta:{pinTo:"left"},header:({table:rt})=>a?C.jsx(Jp,{className:ze(Fr.checkBoxWrapper,{[Fr.showInHeader]:_}),value:rt.getIsAllRowsSelected(),indeterminate:rt.getIsSomeRowsSelected(),onDidChange:()=>{const ut=rt.getRowModel().rows.every(dt=>s(dt.original)||dt.getIsSelected());Y(!ut)}}):null,cell:({row:rt})=>C.jsx(Jp,{className:Fr.checkBoxWrapper,value:rt.getIsSelected(),indeterminate:rt.getIsSomeSelected(),onDidChange:()=>{N(rt.original,{metaKey:!0})}})},...te]:te,[i,te,a,_,Y,N]),[de,ke]=m.useState({pageSize:r?l[0]:Number.MAX_VALUE,pageIndex:0}),we=Zc(r);m.useEffect(()=>{!we&&r&&ke(it=>({...it,pageSize:l[0]})),we&&!r&&ke(it=>({pageIndex:0,pageSize:Number.MAX_VALUE}))},[r,l,we]);const[Ae,Ne]=m.useState({}),Le=m.useMemo(()=>{const it=[],rt=[];return se.forEach(ut=>{var dt,Ur;((dt=ut.meta)==null?void 0:dt.pinTo)==="right"&&rt.push(ut.id),((Ur=ut.meta)==null?void 0:Ur.pinTo)==="left"&&it.push(ut.id)}),{left:it,right:rt}},[se]),Te=FVe({columns:se,data:X,getCoreRowModel:$Ve(),getPaginationRowModel:r?BVe():void 0,enableRowSelection:i,enableMultiRowSelection:a,columnResizeMode:"onChange",getRowId:m.useCallback(it=>it[J]+"",[J]),state:m.useMemo(()=>({pagination:de,rowSelection:K,columnSizing:Ae,columnPinning:Le}),[Le,Ae,de,K]),onColumnSizingChange:Ne,onPaginationChange:ke}),qe=Te.getRowModel().rows;m.useEffect(()=>{V(qe.map(it=>it.original))},[qe]);const _e=m.useContext(Ku),Me=_e&&(b==null?void 0:b.maxHeight)===void 0&&(b==null?void 0:b.height)===void 0&&(b==null?void 0:b.flex)===void 0,ye=cq(Me,L,_e),Se=rUe({count:qe.length,getScrollElement:m.useCallback(()=>Me&&(_e!=null&&_e.current)?_e==null?void 0:_e.current:L.current,[_e,Me]),scrollMargin:ye,estimateSize:m.useCallback(()=>j.current||30,[]),overscan:5}),He=Se.getVirtualItems().length>0&&((Lo=(In=Se.getVirtualItems())==null?void 0:In[0])==null?void 0:Lo.start)-ye||0,st=Se.getVirtualItems().length>0?Se.getTotalSize()-(((Ot=(Or=Se.getVirtualItems())==null?void 0:Or[Se.getVirtualItems().length-1])==null?void 0:Ot.end)-ye||0):0,lt=P.length!==0,er=m.useRef({}),mr=m.useCallback(it=>{er.current[it]=!0},[]),dr=Mt(()=>{if(!z.current)return;let it=z.current.clientWidth-1;const rt={},ut=[],dt={};Te.getAllColumns().forEach(ur=>{var Qo,wr;if(ur.columnDef.size!==void 0||er.current[ur.id])it-=Ae[ur.id]||ur.columnDef.size||0;else{ut.push(ur);let qr;(Qo=ur.columnDef.meta)!=null&&Qo.starSizedWidth?qr=Number((wr=ur.columnDef.meta)==null?void 0:wr.starSizedWidth.replace("*","").trim())||1:qr=1,dt[ur.id]=qr}});const Ur=Object.values(dt).reduce((ur,Qo)=>ur+Qo,0);ut.forEach(ur=>{rt[ur.id]=Math.floor(it*(dt[ur.id]/Ur))}),Hn.flushSync(()=>{Ne(ur=>({...ur,...rt}))})});return z_(z,dr),_n(()=>{queueMicrotask(()=>{dr()})},[dr,W]),_n(()=>{S(ie)},[S,ie]),C.jsxs("div",{className:ze(Fr.wrapper,{[Fr.noScroll]:Me}),tabIndex:-1,onKeyDown:F,ref:B,style:b,children:[C.jsxs("table",{className:Fr.table,ref:z,style:{borderRight:"1px solid transparent"},children:[!k&&C.jsx("thead",{style:{height:o},className:Fr.headerWrapper,children:Te.getHeaderGroups().map((it,rt)=>C.jsx("tr",{className:ze(Fr.headerRow,{[Fr.allSelected]:Te.getIsAllRowsSelected()}),children:it.headers.map((ut,dt)=>{var wr,qr,ar;const{width:Ur,...ur}=((wr=ut.column.columnDef.meta)==null?void 0:wr.style)||{},Qo=ut.getSize();return C.jsxs("th",{className:Fr.columnCell,colSpan:ut.colSpan,style:{position:"relative",width:Qo,...WQ(ut.column)},children:[C.jsx(BUe,{hasSorting:ut.column.columnDef.enableSorting&&!!((qr=ut.column.columnDef.meta)!=null&&qr.accessorKey),updateSorting:()=>{var Ya;return Z((Ya=ut.column.columnDef.meta)==null?void 0:Ya.accessorKey)},children:C.jsxs("div",{className:Fr.headerContent,style:ur,children:[$Q(ut.column.columnDef.header,ut.getContext()),ut.column.columnDef.enableSorting&&C.jsx("span",{style:{display:"inline-flex",maxWidth:16},children:C.jsx(jUe,{iconSortAsc:d,iconSortDesc:f,iconNoSort:p,direction:((ar=ut.column.columnDef.meta)==null?void 0:ar.accessorKey)===le?pe:void 0})})]})}),ut.column.getCanResize()&&C.jsx("div",{onDoubleClick:()=>{er.current[ut.column.id]=!1,ut.column.columnDef.size!==void 0?ut.column.resetSize():dr()},onMouseDown:Ya=>{mr(ut.column.id),ut.getResizeHandler()(Ya)},onTouchStart:Ya=>{mr(ut.column.id),ut.getResizeHandler()(Ya)},className:ze(Fr.resizer,{[Fr.isResizing]:ut.column.getIsResizing()})})]},`${ut.id}-${dt}`)})},`${it.id}-${rt}`))}),lt&&C.jsxs("tbody",{className:Fr.tableBody,children:[He>0&&C.jsx("tr",{children:C.jsx("td",{style:{height:`${He}px`}})}),Se.getVirtualItems().map(it=>{const rt=it.index,ut=qe[rt];return C.jsx("tr",{"data-index":rt,className:ze(Fr.row,{[Fr.selected]:ut.getIsSelected(),[Fr.focused]:G===rt,[Fr.disabled]:s(ut.original),[Fr.noBottomBorder]:A}),ref:dt=>{dt&&j.current===null&&(j.current=Math.round(dt.getBoundingClientRect().height)),Se.measureElement(dt)},onClick:dt=>{dt.defaultPrevented||dt.target.tagName.toLowerCase()==="input"||N(ut.original,dt)},children:ut.getVisibleCells().map((dt,Ur)=>{var wr,qr;const ur=(qr=(wr=dt.column.columnDef)==null?void 0:wr.meta)==null?void 0:qr.cellRenderer,Qo=dt.column.getSize();return C.jsx("td",{className:Fr.cell,style:{width:Qo,...WQ(dt.column)},children:C.jsx("div",{className:Fr.cellContent,children:ur?ur(dt.row.original,rt,Ur,dt==null?void 0:dt.getValue()):$Q(dt.column.columnDef.cell,dt.getContext())})},`${dt.id}-${Ur}`)})},`${ut.id}-${rt}`)}),st>0&&C.jsx("tr",{children:C.jsx("td",{style:{height:`${st}px`}})})]})]}),n&&!lt&&C.jsx("div",{className:Fr.loadingWrapper,children:C.jsx(Tx,{})}),!E&&!n&&!lt&&(y?y():C.jsx("div",{className:Fr.noRows,children:"No data available"})),r&<&&qe.length>0&&de&&C.jsxs("div",{className:Fr.pagination,children:[C.jsx("div",{style:{flex:1},children:C.jsxs("span",{className:Fr.paginationLabel,children:["Showing ",qe[0].original.order," to ",qe[qe.length-1].original.order," of"," ",P.length," entries"]})}),l.length>1&&C.jsxs("div",{children:[C.jsx("span",{className:Fr.paginationLabel,children:"Rows per page"}),C.jsx("select",{className:Fr.paginationSelect,value:de.pageSize,onChange:it=>{Te.setPageSize(Number(it.target.value))},children:l.map(it=>C.jsx("option",{value:it,children:it},it))})]}),C.jsxs("div",{className:Fr.paginationButtons,children:[C.jsx(sn,{onClick:()=>Te.setPageIndex(0),disabled:!Te.getCanPreviousPage(),type:"button",variant:"ghost",children:C.jsx(jWe,{})}),C.jsx(sn,{onClick:()=>Te.previousPage(),disabled:!Te.getCanPreviousPage(),type:"button",variant:"ghost",children:C.jsx(yQ,{})}),C.jsx(sn,{onClick:()=>Te.nextPage(),disabled:!Te.getCanNextPage(),type:"button",variant:"ghost",children:C.jsx(wQ,{})}),C.jsx(sn,{onClick:()=>Te.setPageIndex(Te.getPageCount()-1),disabled:!Te.getCanNextPage(),type:"button",variant:"ghost",children:C.jsx(MWe,{})})]})]})]})});function BUe({hasSorting:e,updateSorting:t,children:r}){return e?C.jsx("button",{className:Fr.clickableHeader,onClick:t,children:r}):C.jsx(C.Fragment,{children:r})}function jUe({direction:e,iconSortAsc:t="sortasc:Table",iconSortDesc:r="sortdesc:Table",iconNoSort:n="nosort:Table"}){return e==="ascending"?C.jsx(kt,{name:t,fallback:"sortasc",size:"12"}):e==="descending"?C.jsx(kt,{name:r,fallback:"sortdesc",size:"12"}):n!=="-"?C.jsx(kt,{name:n,fallback:"nosort",size:"12"}):C.jsx(kt,{name:n,size:"12"})}const Hi={data:Er,columns:Er,isPaginated:!1,loading:!1,rowsSelectable:!1,enableMultiRowSelection:!0,pageSizes:[10],sortingDirection:"ascending",autoFocus:!1,hideHeader:!1,hideNoDataView:!1,alwaysShowSelectionHeader:!1,noBottomBorder:!1},Rr="Table",VQ={status:"stable",description:"`Table` presents structured data for viewing, sorting, selection, and interaction.",props:{items:Wn("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:re("The component receives data via this property. The `data` property is a list of items that the `Table` can display."),isPaginated:{description:`This property adds pagination controls to the \`${Rr}\`.`,valueType:"boolean",defaultValue:Hi.isPaginated},loading:re("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:re("This optional property is used to specify the height of the table header."),rowsSelectable:re("Indicates whether the rows are selectable (`true`) or not (`false`)."),pageSizes:{description:"This property holds an array of page sizes (numbers) the user can select for pagination. If this property is not defined, the component allows only a page size of 10 items."},rowDisabledPredicate:re("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:br("A property to customize what to display if the table does not contain any data."),sortBy:re("This property is used to determine which data property to sort by. If not defined, the data is not sorted"),sortDirection:re("This property determines the sort order to be `ascending` or `descending`. This property only works if the [`sortBy`](#sortby) property is also set. By default ascending order is used."),autoFocus:Ii(),hideHeader:{description:"Set the header visibility using this property. Set it to `true` to hide the header.",valueType:"boolean",defaultValue:Hi.hideHeader},iconNoSort:re(`Allows setting an alternate icon displayed in the ${Rr} column header when sorting is enabled, but the column remains unsorted. You can change the default icon for all ${Rr} instances with the "icon.nosort:Table" declaration in the app configuration file.`),iconSortAsc:re(`Allows setting an alernate icon displayed in the ${Rr} column header when sorting is enabled, and the column is sorted in ascending order. You can change the default icon for all ${Rr} instances with the "icon.sortasc:Table" declaration in the app configuration file.`),iconSortDesc:re(`Allows setting an alternate icon displayed in the ${Rr} column header when sorting is enabled, and the column is sorted in descending order. You can change the default icon for all ${Rr} instances with the "icon.sortdesc:Table" declaration in the app configuration file.`),enableMultiRowSelection:{description:"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.",valueType:"boolean",defaultValue:Hi.enableMultiRowSelection},alwaysShowSelectionHeader:{description:"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.",valueType:"boolean",defaultValue:!1},noBottomBorder:{description:"This property indicates whether the table should have a bottom border. When set to `true`, the table does not have a bottom border. Otherwise, it has a bottom border.",valueType:"boolean",defaultValue:!1}},events:{sortingDidChange:re("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:re("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:re("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:re("This method clears the list of currently selected table rows."),getSelectedItems:re("This method returns the list of currently selected table rows items."),getSelectedIds:re("This method returns the list of currently selected table rows IDs."),selectAll:re("This method selects all the rows in the table. This method has no effect if the rowsSelectable property is set to `false`."),selectId:re("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:tt(Fr.themeVars),defaultThemeVars:{[`padding-heading-${Rr}`]:"$space-2 $space-0 $space-2 $space-2",[`padding-cell-${Rr}`]:"$space-2 $space-0 $space-2 $space-2",[`paddingHorizontal-cell-first-${Rr}`]:"$space-5",[`paddingHorizontal-cell-last-${Rr}`]:"$space-0",[`border-cell-${Rr}`]:"1px solid $borderColor",[`outlineWidth-heading-${Rr}--focus`]:"$outlineWidth--focus",[`outlineStyle-heading-${Rr}--focus`]:"$outlineStyle--focus",[`outlineOffset-heading-${Rr}--focus`]:"$outlineOffset--focus",[`fontSize-heading-${Rr}`]:"$fontSize-tiny",[`fontWeight-heading-${Rr}`]:"$fontWeight-bold",[`textTransform-heading-${Rr}`]:"uppercase",[`fontSize-row-${Rr}`]:"$fontSize-small",[`backgroundColor-selected-${Rr}--hover`]:`$backgroundColor-row-${Rr}--hover`,[`backgroundColor-pagination-${Rr}`]:`$backgroundColor-${Rr}`,[`outlineColor-heading-${Rr}--focus`]:"$outlineColor--focus",[`textColor-pagination-${Rr}`]:"$color-secondary",[`backgroundColor-row-${Rr}--hover`]:"$color-primary-50",[`backgroundColor-selected-${Rr}`]:"$color-primary-100",[`backgroundColor-heading-${Rr}--hover`]:"$color-surface-200",[`backgroundColor-heading-${Rr}--active`]:"$color-surface-300",[`backgroundColor-heading-${Rr}`]:"$color-surface-100",[`textColor-heading-${Rr}`]:"$color-surface-500"}},MUe=m.forwardRef(({extractValue:e,node:t,renderChild:r,lookupEventHandler:n,lookupSyncCallback:o,layoutCss:i,registerComponentApi:a},l)=>{var _,S,O,A,I,H;const s=e(t.props.items)||e(t.props.data),[u,c]=m.useState(Er),[d,f]=m.useState(Jt),p=m.useRef([]),[g,v]=m.useState(0),b=m.useMemo(()=>({registerColumn:(P,L)=>{c(tl(B=>{B.findIndex(j=>j===L)<0&&B.push(L)})),f(tl(B=>{B[L]=P}))},unRegisterColumn:P=>{c(tl(L=>L.filter(B=>B!==P))),f(tl(L=>{delete L[P]}))}}),[]),y=m.useMemo(()=>({registerColumn:(P,L)=>{p.current.find(B=>B===L)||(v(B=>B+1),p.current.push(L))},unRegisterColumn:P=>{p.current.find(L=>L===P)&&(p.current=p.current.filter(L=>L!==P),v(L=>L+1))}}),[]),w=m.useMemo(()=>u.map(P=>d[P]),[u,d]),k=gQ(),E=C.jsxs(C.Fragment,{children:[C.jsx(rH.Provider,{value:b,children:r(t.children)},g),C.jsx(rH.Provider,{value:y,children:r(t.children)}),C.jsx(DUe,{ref:l,data:s,columns:w,pageSizes:e(t.props.pageSizes),rowsSelectable:e.asOptionalBoolean(t.props.rowsSelectable),registerComponentApi:a,noDataRenderer:t.props.noDataTemplate&&(()=>r(t.props.noDataTemplate)),hideNoDataView:t.props.noDataTemplate===null||t.props.noDataTemplate==="",loading:e.asOptionalBoolean(t.props.loading),isPaginated:e.asOptionalBoolean((_=t.props)==null?void 0:_.isPaginated),headerHeight:e.asSize(t.props.headerHeight),rowDisabledPredicate:o(t.props.rowDisabledPredicate),sortBy:e((S=t.props)==null?void 0:S.sortBy),sortingDirection:e((O=t.props)==null?void 0:O.sortDirection),iconSortAsc:e.asOptionalString((A=t.props)==null?void 0:A.iconSortAsc),iconSortDesc:e.asOptionalString((I=t.props)==null?void 0:I.iconSortDesc),iconNoSort:e.asOptionalString((H=t.props)==null?void 0:H.iconNoSort),sortingDidChange:n("sortingDidChange"),onSelectionDidChange:n("selectionDidChange"),willSort:n("willSort"),style:i,uid:t.uid,autoFocus:e.asOptionalBoolean(t.props.autoFocus),hideHeader:e.asOptionalBoolean(t.props.hideHeader),enableMultiRowSelection:e.asOptionalBoolean(t.props.enableMultiRowSelection),alwaysShowSelectionHeader:e.asOptionalBoolean(t.props.alwaysShowSelectionHeader),noBottomBorder:e.asOptionalBoolean(t.props.noBottomBorder)})]});return k===null?C.jsx(RWe,{children:E}):E}),zUe=xe(Rr,VQ,({extractValue:e,node:t,renderChild:r,lookupEventHandler:n,lookupSyncCallback:o,layoutCss:i,registerComponentApi:a})=>C.jsx(MUe,{node:t,extractValue:e,lookupEventHandler:n,lookupSyncCallback:o,layoutCss:i,renderChild:r,registerComponentApi:a})),SH={themeVars:'"[]"',wrapper:"_wrapper_1c2sc_13",sentinel:"_sentinel_1c2sc_17"};var yS={},wS={},tb={};Object.defineProperty(tb,"__esModule",{value:!0}),tb.unlisten=tb.listen=void 0;const yy=[],CS=[];function FUe(e){return{el:e,callbacks:{},realCallbacks:{},realListenersCnt:0}}function WUe(e,t,r){if(e.callbacks[t]){e.callbacks[t].indexOf(r)===-1&&e.callbacks[t].push(r);return}e.callbacks[t]=[r],e.realCallbacks[t]=n=>{for(let o=0,i=e.callbacks[t].length;o<i;o+=1)e.callbacks[t][o](n)},e.el.addEventListener(t,e.realCallbacks[t]),e.realListenersCnt+=1}function VUe(e,t,r){if(!e.callbacks[t])return;const n=e.callbacks[t].indexOf(r);n!==-1&&(e.callbacks[t].splice(n,1),!(e.callbacks[t].length>0)&&(e.el.removeEventListener(t,e.realCallbacks[t]),delete e.callbacks[t],delete e.realCallbacks[t],e.realListenersCnt-=1))}function UUe(e,t,r){let n=yy.indexOf(e);n===-1&&(n=yy.length,yy.push(e),CS.push(FUe(e)));const o=CS[n];WUe(o,t,r)}function qUe(e,t,r){const n=yy.indexOf(e);if(n===-1)return;const o=CS[n];VUe(o,t,r),!(o.realListenersCnt>0)&&(yy.splice(n,1),CS.splice(n,1))}function GUe(e,t,r){for(let n=0,o=t.length;n<o;n+=1)UUe(e,t[n],r)}tb.listen=GUe;function YUe(e,t,r){for(let n=0,o=t.length;n<o;n+=1)qUe(e,t[n],r)}tb.unlisten=YUe;var EH={};Object.defineProperty(EH,"__esModule",{value:!0});const wy={};typeof document<"u"&&(wy.body=document.body,wy.window=window,wy.document=document);const UQ=(()=>{if(typeof document<"u"&&document.body){const e=document.body;return typeof e.matches=="function"?"matches":typeof e.webkitMatchesSelector=="function"?"webkitMatchesSelector":typeof e.mozMatchesSelector=="function"?"mozMatchesSelector":typeof e.msMatchesSelector=="function"?"msMatchesSelector":typeof e.oMatchesSelector=="function"?"oMatchesSelector":null}return null})();function KUe(e,t){if(!e)return null;if(wy.hasOwnProperty(e))return wy[e];if(e[0]==="#")return document.getElementById(e.slice(1));if(UQ===null)return null;let r=t;for(;r=r.parentElement;)if(r[UQ](e))return r||null;return null}EH.default=KUe;var OH={};Object.defineProperty(OH,"__esModule",{value:!0});function XUe(e){do{const t=window.getComputedStyle(e);if(t.transform!=="none"||t.webkitTransform!=="none")return e;e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1);return null}OH.default=XUe;var Df={};Object.defineProperty(Df,"__esModule",{value:!0}),Df.isIntersecting=Df.getRect=Df.infiniteRect=void 0,Df.infiniteRect={top:-1/0,bottom:1/0,height:1/0,left:-1/0,right:1/0,width:1/0};function QUe(e){return e&&"getBoundingClientRect"in e&&typeof e.getBoundingClientRect=="function"?e.getBoundingClientRect():e===window||e===document?{top:0,left:0,bottom:window.innerHeight,height:window.innerHeight,width:window.innerWidth,right:window.innerWidth}:{top:0,left:0,right:0,bottom:0,width:0,height:0}}Df.getRect=QUe;function ZUe(e,t,r,n){const o=e.top+r,i=e.bottom+n;return o>=t.top&&o<=t.bottom||i>=t.top&&i<=t.bottom||i>=t.bottom&&o<=t.top}Df.isIntersecting=ZUe;var qQ=$r&&$r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wS,"__esModule",{value:!0});const JUe=m,Cy=tb,GQ=qQ(EH),eqe=qQ(OH),ky=Df,tqe=(e,t)=>{const{bottomOffset:r,hideOnBoundaryHit:n}=t,{top:o,height:i,width:a,boundaryBottom:l}=e;return n||o+i+r<l?{top:`${o}px`,width:`${a}px`,position:"fixed"}:!n&&l>0?{top:`${l-i-r}px`,width:`${a}px`,position:"fixed"}:{width:`${a}px`,bottom:`${r}px`,position:"absolute"}},rqe=(e,t)=>{const{bottomOffset:r,hideOnBoundaryHit:n}=t,{bottom:o,height:i,width:a,boundaryTop:l}=e;return n||o-i-r>l?{width:`${a}px`,top:`${o-i}px`,position:"fixed"}:{width:`${a}px`,top:`${r}px`,position:"absolute"}},nqe=(e,t,r)=>(e==="top"?tqe:rqe)(r,t),oqe=(e,t)=>{const r=e.wrapperStyles,n=t.wrapperStyles;if(e.isFixed!==t.isFixed||e.height!==t.height||!r&&n||r&&!n)return!1;if(!n)return!0;for(const o in r)if(r.hasOwnProperty(o)&&r[o]!==n[o])return!1;return!0};class YQ extends JUe.Component{constructor(){super(...arguments),this.holderEl=null,this.wrapperEl=null,this.el=null,this.scrollEl=null,this.boundaryEl=null,this.disabled=!1,this.checkPositionIntervalId=null,this.lastMinHeight=null,this.state={isFixed:!1,wrapperStyles:void 0,holderStyles:void 0,height:0},this.holderRef=t=>{t!==this.holderEl&&(this.holderEl=t)},this.wrapperRef=t=>{t!==this.wrapperEl&&(this.wrapperEl=t,this.updateScrollEl(),this.updateBoundaryEl())},this.checkPosition=()=>{const{holderEl:t,wrapperEl:r,boundaryEl:n,scrollEl:o,disabled:i}=this;if(!o||!t||!r){console.error("Missing required elements:",{scrollEl:o,holderEl:t,wrapperEl:r});return}const{mode:a,onFixedToggle:l,offsetTransforms:s,isIOSFixEnabled:u,dontUpdateHolderHeightWhenSticky:c}=this.props;if(i){this.state.isFixed&&this.setState({isFixed:!1,wrapperStyles:{}});return}if(!t.getBoundingClientRect||!r.getBoundingClientRect)return;const d=t.getBoundingClientRect(),f=r.getBoundingClientRect(),p=n?(0,ky.getRect)(n):ky.infiniteRect,g=(0,ky.getRect)(o),v=this.isFixed(d,f,p,g);let b=null;if(s&&v&&o instanceof HTMLElement){const E=(0,eqe.default)(o);E&&(b=(0,ky.getRect)(E))}const y=this.state.isFixed&&c&&this.lastMinHeight?this.lastMinHeight:f.height;this.lastMinHeight=y;const w=u?{transform:"translateZ(0)",WebkitTransform:"translateZ(0)"}:void 0,k={isFixed:v,height:f.height,holderStyles:{minHeight:`${y}px`},wrapperStyles:v?Object.assign(Object.assign({},w),nqe(a,this.props,{boundaryTop:a==="bottom"?p.top:0,boundaryBottom:a==="top"?p.bottom:0,top:a==="top"?g.top-(b?b.top:0):0,bottom:a==="bottom"?g.bottom-(b?b.bottom:0):0,width:d.width,height:f.height})):w};v!==this.state.isFixed&&l&&typeof l=="function"&&l(v),oqe(this.state,k)||this.setState(k)}}isFixed(t,r,n,o){const{hideOnBoundaryHit:i,bottomOffset:a,topOffset:l,mode:s}=this.props;if(this.disabled||i&&n&&!(0,ky.isIntersecting)(n,o,l,a))return!1;const u=i?r.height+a:0;return s==="top"?t.top+l<o.top&&o.top+u<=n.bottom:t.bottom-l>o.bottom&&o.bottom-u>=n.top}updateScrollEl(){if(!this.wrapperEl)return;this.scrollEl&&((0,Cy.unlisten)(this.scrollEl,["scroll"],this.checkPosition),this.scrollEl=null);const{scrollElement:t}=this.props;typeof t=="string"?this.scrollEl=(0,GQ.default)(t,this.wrapperEl):this.scrollEl=t,this.scrollEl?(0,Cy.listen)(this.scrollEl,["scroll"],this.checkPosition):console.error("Cannot find scrollElement "+(typeof t=="string"?t:"unknown"))}updateBoundaryEl(){if(!this.wrapperEl)return;const{boundaryElement:t}=this.props;this.boundaryEl=(0,GQ.default)(t,this.wrapperEl),(this.boundaryEl===window||this.boundaryEl===document)&&(this.boundaryEl=null)}initialize(){const{positionRecheckInterval:t,disabled:r}=this.props;this.disabled=r,(0,Cy.listen)(window,["scroll","resize","pageshow","load"],this.checkPosition),this.checkPosition(),t&&(this.checkPositionIntervalId=setInterval(this.checkPosition,t))}componentDidUpdate({scrollElement:t,boundaryElement:r,disabled:n}){(t!==this.props.scrollElement||this.scrollEl===null)&&this.updateScrollEl(),(r!==this.props.boundaryElement||this.boundaryEl===null)&&this.updateBoundaryEl(),n!==this.props.disabled&&(this.disabled=this.props.disabled,this.checkPosition())}componentDidMount(){this.initialize(),this.wrapperEl===null&&console.error("Wrapper element is missing, please make sure that you have assigned refs correctly")}componentWillUnmount(){this.scrollEl&&(0,Cy.unlisten)(this.scrollEl,["scroll"],this.checkPosition),(0,Cy.unlisten)(window,["scroll","resize","pageshow","load"],this.checkPosition),this.boundaryEl=null,this.scrollEl=null,this.checkPositionIntervalId&&clearInterval(this.checkPositionIntervalId)}render(){const{holderRef:t,wrapperRef:r}=this,{isFixed:n,wrapperStyles:o,holderStyles:i}=this.state;return this.props.children({holderRef:t,wrapperRef:r,isFixed:n,wrapperStyles:o,holderStyles:i})}}YQ.defaultProps={mode:"top",topOffset:0,bottomOffset:0,isIOSFixEnabled:!0,offsetTransforms:!0,disabled:!1,onFixedToggle:void 0,boundaryElement:void 0,hideOnBoundaryHit:!0,scrollElement:"window",dontUpdateHolderHeightWhenSticky:!1},wS.default=YQ;var KQ={};(function(e){var t=$r&&$r.__rest||function(a,l){var s={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&l.indexOf(u)<0&&(s[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,u=Object.getOwnPropertySymbols(a);c<u.length;c++)l.indexOf(u[c])<0&&Object.prototype.propertyIsEnumerable.call(a,u[c])&&(s[u[c]]=a[u[c]]);return s},r=$r&&$r.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultProps=void 0;const n=r(m),o=r(wS);e.defaultProps=Object.assign(Object.assign({},o.default.defaultProps),{stickyClassName:"sticky",wrapperClassName:"",stickyStyle:{}});function i(a){const l=Object.assign(Object.assign({},e.defaultProps),a),{mode:s,onFixedToggle:u,hideOnBoundaryHit:c,offsetTransforms:d,disabled:f,boundaryElement:p,scrollElement:g,bottomOffset:v,topOffset:b,positionRecheckInterval:y,children:w,isIOSFixEnabled:k,dontUpdateHolderHeightWhenSticky:E,wrapperClassName:_,stickyClassName:S,stickyStyle:O}=l,A=t(l,["mode","onFixedToggle","hideOnBoundaryHit","offsetTransforms","disabled","boundaryElement","scrollElement","bottomOffset","topOffset","positionRecheckInterval","children","isIOSFixEnabled","dontUpdateHolderHeightWhenSticky","wrapperClassName","stickyClassName","stickyStyle"]);return n.default.createElement(o.default,{mode:s,onFixedToggle:u,hideOnBoundaryHit:c,offsetTransforms:d,disabled:f,boundaryElement:p,scrollElement:g,bottomOffset:v,topOffset:b,positionRecheckInterval:y,isIOSFixEnabled:k,dontUpdateHolderHeightWhenSticky:E},({isFixed:I,wrapperStyles:H,wrapperRef:P,holderStyles:L,holderRef:B})=>n.default.createElement("div",Object.assign({},A,{ref:B,style:L}),n.default.createElement("div",Object.assign({},A,{className:`${_} ${I?S:""}`,style:I?Object.assign(Object.assign({},H),O):H,ref:P}),w)))}e.default=i})(KQ);var XQ=$r&&$r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yS,"__esModule",{value:!0});var QQ=yS.RenderPropSticky=void 0;const iqe=XQ(wS);QQ=yS.RenderPropSticky=iqe.default;const aqe=XQ(KQ);yS.default=aqe.default;const ZQ={to:"top"};function lqe({children:e,uid:t,layout:r,to:n=ZQ.to}){const o=m.useRef(null),[i,a]=m.useState(null),[l,s]=m.useState(!1),u=sq(o.current),c=P8e(u);m.useEffect(()=>{i&&document.documentElement.style.setProperty("--xmlui-scroll-margin-top",i.clientHeight+"px")},[u,i]);const d=ze(SH.wrapper),f={backgroundColor:c,...r},p="";return C.jsxs(C.Fragment,{children:[!!u&&C.jsx(QQ,{mode:n,onFixedToggle:s,scrollElement:u,children:({isFixed:g,wrapperStyles:v,wrapperRef:b,holderStyles:y,holderRef:w})=>C.jsx("div",{ref:w,style:y,children:C.jsx("div",{className:`${d} ${g?p:""}`,style:g?{...v,...f}:v,ref:b,children:C.jsx("div",{ref:a,children:e})})})}),C.jsx("div",{style:{display:"none"},ref:o,className:n==="top"?SH.sentinel:""})]})}const JQ="StickyBox",eZ={status:"stable",description:"`StickyBox` remains fixed at the top or bottom of the screen as the user scrolls.",props:{to:{description:"This property determines whether the StickyBox should be anchored to the `top` or `bottom`.",availableValues:["top","bottom"],valueType:"string",defaultValue:ZQ.to}},themeVars:tt(SH.themeVars),defaultThemeVars:{[`backgroundColor-${JQ}`]:"$backgroundColor"}},sqe=xe(JQ,eZ,({node:e,renderChild:t,extractValue:r,layoutCss:n})=>{var o;return C.jsx(lqe,{uid:e.uid,layout:n,to:r((o=e.props)==null?void 0:o.to),children:t(e.children)})}),AH={themeVars:`'{"border-Badge": "var(--xmlui-border-Badge)", "borderHorizontal-Badge": "var(--xmlui-borderHorizontal-Badge, var(--xmlui-border-Badge))", "borderVertical-Badge": "var(--xmlui-borderVertical-Badge, var(--xmlui-border-Badge))", "borderLeft-Badge": "var(--xmlui-borderLeft-Badge, var(--xmlui-borderHorizontal-Badge, var(--xmlui-border-Badge)))", "borderRight-Badge": "var(--xmlui-borderRight-Badge, var(--xmlui-borderHorizontal-Badge, var(--xmlui-border-Badge)))", "borderTop-Badge": "var(--xmlui-borderTop-Badge, var(--xmlui-borderVertical-Badge, var(--xmlui-border-Badge)))", "borderBottom-Badge": "var(--xmlui-borderBottom-Badge, var(--xmlui-borderVertical-Badge, var(--xmlui-border-Badge)))", "borderWidth-Badge": "var(--xmlui-borderWidth-Badge)", "borderHorizontalWidth-Badge": "var(--xmlui-borderHorizontalWidth-Badge, var(--xmlui-borderWidth-Badge))", "borderLeftWidth-Badge": "var(--xmlui-borderLeftWidth-Badge, var(--xmlui-borderHorizontalWidth-Badge, var(--xmlui-borderWidth-Badge)))", "borderRightWidth-Badge": "var(--xmlui-borderRightWidth-Badge, var(--xmlui-borderHorizontalWidth-Badge, var(--xmlui-borderWidth-Badge)))", "borderVerticalWidth-Badge": "var(--xmlui-borderVerticalWidth-Badge, var(--xmlui-borderWidth-Badge))", "borderTopWidth-Badge": "var(--xmlui-borderTopWidth-Badge, var(--xmlui-borderVerticalWidth-Badge, var(--xmlui-borderWidth-Badge)))", "borderBottomWidth-Badge": "var(--xmlui-borderBottomWidth-Badge, var(--xmlui-borderVerticalWidth-Badge, var(--xmlui-borderWidth-Badge)))", "borderStyle-Badge": "var(--xmlui-borderStyle-Badge)", "borderHorizontalStyle-Badge": "var(--xmlui-borderHorizontalStyle-Badge, var(--xmlui-borderStyle-Badge))", "borderLeftStyle-Badge": "var(--xmlui-borderLeftStyle-Badge, var(--xmlui-borderHorizontalStyle-Badge, var(--xmlui-borderStyle-Badge)))", "borderRightStyle-Badge": "var(--xmlui-borderRightStyle-Badge, var(--xmlui-borderHorizontalStyle-Badge, var(--xmlui-borderStyle-Badge)))", "borderVerticalStyle-Badge": "var(--xmlui-borderVerticalStyle-Badge, var(--xmlui-borderStyle-Badge))", "borderTopStyle-Badge": "var(--xmlui-borderTopStyle-Badge, var(--xmlui-borderVerticalStyle-Badge, var(--xmlui-borderStyle-Badge)))", "borderBottomStyle-Badge": "var(--xmlui-borderBottomStyle-Badge, var(--xmlui-borderVerticalStyle-Badge, var(--xmlui-borderStyle-Badge)))", "borderColor-Badge": "var(--xmlui-borderColor-Badge)", "borderHorizontalColor-Badge": "var(--xmlui-borderHorizontalColor-Badge, var(--xmlui-borderColor-Badge))", "borderLeftColor-Badge": "var(--xmlui-borderLeftColor-Badge, var(--xmlui-borderHorizontalColor-Badge, var(--xmlui-borderColor-Badge)))", "borderRightColor-Badge": "var(--xmlui-borderRightColor-Badge, var(--xmlui-borderHorizontalColor-Badge, var(--xmlui-borderColor-Badge)))", "borderVerticalColor-Badge": "var(--xmlui-borderVerticalColor-Badge, var(--xmlui-borderColor-Badge))", "borderTopColor-Badge": "var(--xmlui-borderTopColor-Badge, var(--xmlui-borderVerticalColor-Badge, var(--xmlui-borderColor-Badge)))", "borderBottomColor-Badge": "var(--xmlui-borderBottomColor-Badge, var(--xmlui-borderVerticalColor-Badge, var(--xmlui-borderColor-Badge)))", "borderStartStartRadius-Badge": "var(--xmlui-borderStartStartRadius-Badge, var(--xmlui-borderRadius-Badge))", "borderStartEndRadius-Badge": "var(--xmlui-borderStartEndRadius-Badge, var(--xmlui-borderRadius-Badge))", "borderEndStartRadius-Badge": "var(--xmlui-borderEndStartRadius-Badge, var(--xmlui-borderRadius-Badge))", "borderEndEndRadius-Badge": "var(--xmlui-borderEndEndRadius-Badge, var(--xmlui-borderRadius-Badge))", "padding-Badge": "var(--xmlui-padding-Badge)", "paddingHorizontal-Badge": "var(--xmlui-paddingHorizontal-Badge, var(--xmlui-padding-Badge))", "paddingVertical-Badge": "var(--xmlui-paddingVertical-Badge, var(--xmlui-padding-Badge))", "paddingLeft-Badge": "var(--xmlui-paddingLeft-Badge, var(--xmlui-paddingHorizontal-Badge, var(--xmlui-padding-Badge)))", "paddingRight-Badge": "var(--xmlui-paddingRight-Badge, var(--xmlui-paddingHorizontal-Badge, var(--xmlui-padding-Badge)))", "paddingTop-Badge": "var(--xmlui-paddingTop-Badge, var(--xmlui-paddingVertical-Badge, var(--xmlui-padding-Badge)))", "paddingBottom-Badge": "var(--xmlui-paddingBottom-Badge, var(--xmlui-paddingVertical-Badge, var(--xmlui-padding-Badge)))", "textColor-Badge": "var(--xmlui-textColor-Badge)", "fontFamily-Badge": "var(--xmlui-fontFamily-Badge)", "fontSize-Badge": "var(--xmlui-fontSize-Badge)", "fontStyle-Badge": "var(--xmlui-fontStyle-Badge)", "fontVariant-Badge": "var(--xmlui-fontVariant-Badge)", "fontWeight-Badge": "var(--xmlui-fontWeight-Badge)", "fontStretch-Badge": "var(--xmlui-fontStretch-Badge)", "textDecorationLine-Badge": "var(--xmlui-textDecorationLine-Badge)", "textDecorationColor-Badge": "var(--xmlui-textDecorationColor-Badge)", "textDecorationStyle-Badge": "var(--xmlui-textDecorationStyle-Badge)", "textDecorationThickness-Badge": "var(--xmlui-textDecorationThickness-Badge)", "textUnderlineOffset-Badge": "var(--xmlui-textUnderlineOffset-Badge)", "lineHeight-Badge": "var(--xmlui-lineHeight-Badge)", "backgroundColor-Badge": "var(--xmlui-backgroundColor-Badge)", "textTransform-Badge": "var(--xmlui-textTransform-Badge)", "letterSpacing-Badge": "var(--xmlui-letterSpacing-Badge)", "wordSpacing-Badge": "var(--xmlui-wordSpacing-Badge)", "textShadow-Badge": "var(--xmlui-textShadow-Badge)", "textIndent-Badge": "var(--xmlui-textIndent-Badge)", "textAlign-Badge": "var(--xmlui-textAlign-Badge)", "textAlignLast-Badge": "var(--xmlui-textAlignLast-Badge)", "wordBreak-Badge": "var(--xmlui-wordBreak-Badge)", "wordWrap-Badge": "var(--xmlui-wordWrap-Badge)", "direction-Badge": "var(--xmlui-direction-Badge)", "writingMode-Badge": "var(--xmlui-writingMode-Badge)", "lineBreak-Badge": "var(--xmlui-lineBreak-Badge)", "border-Badge-pill": "var(--xmlui-border-Badge-pill)", "borderHorizontal-Badge-pill": "var(--xmlui-borderHorizontal-Badge-pill, var(--xmlui-border-Badge-pill))", "borderVertical-Badge-pill": "var(--xmlui-borderVertical-Badge-pill, var(--xmlui-border-Badge-pill))", "borderLeft-Badge-pill": "var(--xmlui-borderLeft-Badge-pill, var(--xmlui-borderHorizontal-Badge-pill, var(--xmlui-border-Badge-pill)))", "borderRight-Badge-pill": "var(--xmlui-borderRight-Badge-pill, var(--xmlui-borderHorizontal-Badge-pill, var(--xmlui-border-Badge-pill)))", "borderTop-Badge-pill": "var(--xmlui-borderTop-Badge-pill, var(--xmlui-borderVertical-Badge-pill, var(--xmlui-border-Badge-pill)))", "borderBottom-Badge-pill": "var(--xmlui-borderBottom-Badge-pill, var(--xmlui-borderVertical-Badge-pill, var(--xmlui-border-Badge-pill)))", "borderWidth-Badge-pill": "var(--xmlui-borderWidth-Badge-pill)", "borderHorizontalWidth-Badge-pill": "var(--xmlui-borderHorizontalWidth-Badge-pill, var(--xmlui-borderWidth-Badge-pill))", "borderLeftWidth-Badge-pill": "var(--xmlui-borderLeftWidth-Badge-pill, var(--xmlui-borderHorizontalWidth-Badge-pill, var(--xmlui-borderWidth-Badge-pill)))", "borderRightWidth-Badge-pill": "var(--xmlui-borderRightWidth-Badge-pill, var(--xmlui-borderHorizontalWidth-Badge-pill, var(--xmlui-borderWidth-Badge-pill)))", "borderVerticalWidth-Badge-pill": "var(--xmlui-borderVerticalWidth-Badge-pill, var(--xmlui-borderWidth-Badge-pill))", "borderTopWidth-Badge-pill": "var(--xmlui-borderTopWidth-Badge-pill, var(--xmlui-borderVerticalWidth-Badge-pill, var(--xmlui-borderWidth-Badge-pill)))", "borderBottomWidth-Badge-pill": "var(--xmlui-borderBottomWidth-Badge-pill, var(--xmlui-borderVerticalWidth-Badge-pill, var(--xmlui-borderWidth-Badge-pill)))", "borderStyle-Badge-pill": "var(--xmlui-borderStyle-Badge-pill)", "borderHorizontalStyle-Badge-pill": "var(--xmlui-borderHorizontalStyle-Badge-pill, var(--xmlui-borderStyle-Badge-pill))", "borderLeftStyle-Badge-pill": "var(--xmlui-borderLeftStyle-Badge-pill, var(--xmlui-borderHorizontalStyle-Badge-pill, var(--xmlui-borderStyle-Badge-pill)))", "borderRightStyle-Badge-pill": "var(--xmlui-borderRightStyle-Badge-pill, var(--xmlui-borderHorizontalStyle-Badge-pill, var(--xmlui-borderStyle-Badge-pill)))", "borderVerticalStyle-Badge-pill": "var(--xmlui-borderVerticalStyle-Badge-pill, var(--xmlui-borderStyle-Badge-pill))", "borderTopStyle-Badge-pill": "var(--xmlui-borderTopStyle-Badge-pill, var(--xmlui-borderVerticalStyle-Badge-pill, var(--xmlui-borderStyle-Badge-pill)))", "borderBottomStyle-Badge-pill": "var(--xmlui-borderBottomStyle-Badge-pill, var(--xmlui-borderVerticalStyle-Badge-pill, var(--xmlui-borderStyle-Badge-pill)))", "borderColor-Badge-pill": "var(--xmlui-borderColor-Badge-pill)", "borderHorizontalColor-Badge-pill": "var(--xmlui-borderHorizontalColor-Badge-pill, var(--xmlui-borderColor-Badge-pill))", "borderLeftColor-Badge-pill": "var(--xmlui-borderLeftColor-Badge-pill, var(--xmlui-borderHorizontalColor-Badge-pill, var(--xmlui-borderColor-Badge-pill)))", "borderRightColor-Badge-pill": "var(--xmlui-borderRightColor-Badge-pill, var(--xmlui-borderHorizontalColor-Badge-pill, var(--xmlui-borderColor-Badge-pill)))", "borderVerticalColor-Badge-pill": "var(--xmlui-borderVerticalColor-Badge-pill, var(--xmlui-borderColor-Badge-pill))", "borderTopColor-Badge-pill": "var(--xmlui-borderTopColor-Badge-pill, var(--xmlui-borderVerticalColor-Badge-pill, var(--xmlui-borderColor-Badge-pill)))", "borderBottomColor-Badge-pill": "var(--xmlui-borderBottomColor-Badge-pill, var(--xmlui-borderVerticalColor-Badge-pill, var(--xmlui-borderColor-Badge-pill)))", "borderStartStartRadius-Badge-pill": "var(--xmlui-borderStartStartRadius-Badge-pill, var(--xmlui-borderRadius-Badge-pill))", "borderStartEndRadius-Badge-pill": "var(--xmlui-borderStartEndRadius-Badge-pill, var(--xmlui-borderRadius-Badge-pill))", "borderEndStartRadius-Badge-pill": "var(--xmlui-borderEndStartRadius-Badge-pill, var(--xmlui-borderRadius-Badge-pill))", "borderEndEndRadius-Badge-pill": "var(--xmlui-borderEndEndRadius-Badge-pill, var(--xmlui-borderRadius-Badge-pill))", "padding-Badge-pill": "var(--xmlui-padding-Badge-pill)", "paddingHorizontal-Badge-pill": "var(--xmlui-paddingHorizontal-Badge-pill, var(--xmlui-padding-Badge-pill))", "paddingVertical-Badge-pill": "var(--xmlui-paddingVertical-Badge-pill, var(--xmlui-padding-Badge-pill))", "paddingLeft-Badge-pill": "var(--xmlui-paddingLeft-Badge-pill, var(--xmlui-paddingHorizontal-Badge-pill, var(--xmlui-padding-Badge-pill)))", "paddingRight-Badge-pill": "var(--xmlui-paddingRight-Badge-pill, var(--xmlui-paddingHorizontal-Badge-pill, var(--xmlui-padding-Badge-pill)))", "paddingTop-Badge-pill": "var(--xmlui-paddingTop-Badge-pill, var(--xmlui-paddingVertical-Badge-pill, var(--xmlui-padding-Badge-pill)))", "paddingBottom-Badge-pill": "var(--xmlui-paddingBottom-Badge-pill, var(--xmlui-paddingVertical-Badge-pill, var(--xmlui-padding-Badge-pill)))", "textColor-Badge-pill": "var(--xmlui-textColor-Badge-pill)", "fontFamily-Badge-pill": "var(--xmlui-fontFamily-Badge-pill)", "fontSize-Badge-pill": "var(--xmlui-fontSize-Badge-pill)", "fontStyle-Badge-pill": "var(--xmlui-fontStyle-Badge-pill)", "fontVariant-Badge-pill": "var(--xmlui-fontVariant-Badge-pill)", "fontWeight-Badge-pill": "var(--xmlui-fontWeight-Badge-pill)", "fontStretch-Badge-pill": "var(--xmlui-fontStretch-Badge-pill)", "textDecorationLine-Badge-pill": "var(--xmlui-textDecorationLine-Badge-pill)", "textDecorationColor-Badge-pill": "var(--xmlui-textDecorationColor-Badge-pill)", "textDecorationStyle-Badge-pill": "var(--xmlui-textDecorationStyle-Badge-pill)", "textDecorationThickness-Badge-pill": "var(--xmlui-textDecorationThickness-Badge-pill)", "textUnderlineOffset-Badge-pill": "var(--xmlui-textUnderlineOffset-Badge-pill)", "lineHeight-Badge-pill": "var(--xmlui-lineHeight-Badge-pill)", "backgroundColor-Badge-pill": "var(--xmlui-backgroundColor-Badge-pill)", "textTransform-Badge-pill": "var(--xmlui-textTransform-Badge-pill)", "letterSpacing-Badge-pill": "var(--xmlui-letterSpacing-Badge-pill)", "wordSpacing-Badge-pill": "var(--xmlui-wordSpacing-Badge-pill)", "textShadow-Badge-pill": "var(--xmlui-textShadow-Badge-pill)", "textIndent-Badge-pill": "var(--xmlui-textIndent-Badge-pill)", "textAlign-Badge-pill": "var(--xmlui-textAlign-Badge-pill)", "textAlignLast-Badge-pill": "var(--xmlui-textAlignLast-Badge-pill)", "wordBreak-Badge-pill": "var(--xmlui-wordBreak-Badge-pill)", "wordWrap-Badge-pill": "var(--xmlui-wordWrap-Badge-pill)", "direction-Badge-pill": "var(--xmlui-direction-Badge-pill)", "writingMode-Badge-pill": "var(--xmlui-writingMode-Badge-pill)", "lineBreak-Badge-pill": "var(--xmlui-lineBreak-Badge-pill)"}'`,badge:"_badge_9anto_13",pill:"_pill_9anto_74"},uqe=["badge","pill"];function cqe(e){return typeof e=="object"&&e!==null&&"label"in e&&"background"in e&&typeof e.label=="string"&&typeof e.background=="string"}const tZ={variant:"badge"},dqe=m.forwardRef(function({children:t,color:r,variant:n=tZ.variant,style:o},i){return C.jsx("div",{ref:i,className:ze({[AH.badge]:n==="badge",[AH.pill]:n==="pill"}),style:{...r?typeof r=="string"?{backgroundColor:r}:{backgroundColor:r.background,color:r.label}:{},...o},children:t})}),ic="Badge",rZ={status:"stable",description:"`Badge` displays small text labels with colored backgrounds, commonly used for status indicators, categories, tags, and counts. It supports dynamic color mapping based on content values, useful for status systems and data categorization.",props:{value:{description:"The text that the component displays. If this is not defined, the component renders its children as the content of the badge. If neither text nor any child is defined, the component renders a single frame for the badge with a non-breakable space.",type:"string",isRequired:!0},variant:{description:"Modifies the shape of the component. Comes in the regular `badge` variant or the `pill` variant with fully rounded corners.",type:"string",availableValues:uqe,defaultValue:tZ.variant},colorMap:{description:`The \`${ic}\` component supports the mapping of a list of colors using the \`value\` prop as the key. If this property is not set, no color mapping is used.`},themeColor:Wn("(**NOT IMPLEMENTED YET**) The theme color of the component."),indicatorText:Wn("(**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:Wn("(**NOT IMPLEMENTED YET**) This property forces the display of the indicator, even if the `indicatorText` property is not defined or empty."),indicatorThemeColor:Wn("(**NOT IMPLEMENTED YET**) The theme color of the indicator."),indicatorPosition:Wn("(**NOT IMPLEMENTED YET**) The position of the indicator.")},events:{},themeVars:tt(AH.themeVars),defaultThemeVars:{[`padding-${ic}`]:"$space-0_5 $space-2",[`border-${ic}`]:"0px solid $borderColor",[`padding-${ic}-pill`]:"$space-0_5 $space-2",[`borderRadius-${ic}`]:"4px",[`fontSize-${ic}`]:"0.8em",[`fontSize-${ic}-pill`]:"0.8em",[`backgroundColor-${ic}`]:"rgb(from $color-secondary-500 r g b / 0.6)",[`textColor-${ic}`]:"$const-color-surface-0"}},fqe=xe(ic,rZ,({node:e,extractValue:t,renderChild:r,layoutCss:n})=>{var l;const o=t.asDisplayText(e.props.value),i=t((l=e.props)==null?void 0:l.colorMap);let a;if(i&&o){const s=i[o];typeof s=="string"?a=IH(s):cqe(s)&&(a={label:IH(s.label),background:IH(s.background)})}return C.jsx(dqe,{variant:t(e.props.variant),color:a,style:n,children:o||e.children&&r(e.children)||" "})});function IH(e){return e.startsWith("$")?Sx(e):e}const _y={themeVars:`'{"border-Avatar": "var(--xmlui-border-Avatar)", "borderHorizontal-Avatar": "var(--xmlui-borderHorizontal-Avatar, var(--xmlui-border-Avatar))", "borderVertical-Avatar": "var(--xmlui-borderVertical-Avatar, var(--xmlui-border-Avatar))", "borderLeft-Avatar": "var(--xmlui-borderLeft-Avatar, var(--xmlui-borderHorizontal-Avatar, var(--xmlui-border-Avatar)))", "borderRight-Avatar": "var(--xmlui-borderRight-Avatar, var(--xmlui-borderHorizontal-Avatar, var(--xmlui-border-Avatar)))", "borderTop-Avatar": "var(--xmlui-borderTop-Avatar, var(--xmlui-borderVertical-Avatar, var(--xmlui-border-Avatar)))", "borderBottom-Avatar": "var(--xmlui-borderBottom-Avatar, var(--xmlui-borderVertical-Avatar, var(--xmlui-border-Avatar)))", "borderWidth-Avatar": "var(--xmlui-borderWidth-Avatar)", "borderHorizontalWidth-Avatar": "var(--xmlui-borderHorizontalWidth-Avatar, var(--xmlui-borderWidth-Avatar))", "borderLeftWidth-Avatar": "var(--xmlui-borderLeftWidth-Avatar, var(--xmlui-borderHorizontalWidth-Avatar, var(--xmlui-borderWidth-Avatar)))", "borderRightWidth-Avatar": "var(--xmlui-borderRightWidth-Avatar, var(--xmlui-borderHorizontalWidth-Avatar, var(--xmlui-borderWidth-Avatar)))", "borderVerticalWidth-Avatar": "var(--xmlui-borderVerticalWidth-Avatar, var(--xmlui-borderWidth-Avatar))", "borderTopWidth-Avatar": "var(--xmlui-borderTopWidth-Avatar, var(--xmlui-borderVerticalWidth-Avatar, var(--xmlui-borderWidth-Avatar)))", "borderBottomWidth-Avatar": "var(--xmlui-borderBottomWidth-Avatar, var(--xmlui-borderVerticalWidth-Avatar, var(--xmlui-borderWidth-Avatar)))", "borderStyle-Avatar": "var(--xmlui-borderStyle-Avatar)", "borderHorizontalStyle-Avatar": "var(--xmlui-borderHorizontalStyle-Avatar, var(--xmlui-borderStyle-Avatar))", "borderLeftStyle-Avatar": "var(--xmlui-borderLeftStyle-Avatar, var(--xmlui-borderHorizontalStyle-Avatar, var(--xmlui-borderStyle-Avatar)))", "borderRightStyle-Avatar": "var(--xmlui-borderRightStyle-Avatar, var(--xmlui-borderHorizontalStyle-Avatar, var(--xmlui-borderStyle-Avatar)))", "borderVerticalStyle-Avatar": "var(--xmlui-borderVerticalStyle-Avatar, var(--xmlui-borderStyle-Avatar))", "borderTopStyle-Avatar": "var(--xmlui-borderTopStyle-Avatar, var(--xmlui-borderVerticalStyle-Avatar, var(--xmlui-borderStyle-Avatar)))", "borderBottomStyle-Avatar": "var(--xmlui-borderBottomStyle-Avatar, var(--xmlui-borderVerticalStyle-Avatar, var(--xmlui-borderStyle-Avatar)))", "borderColor-Avatar": "var(--xmlui-borderColor-Avatar)", "borderHorizontalColor-Avatar": "var(--xmlui-borderHorizontalColor-Avatar, var(--xmlui-borderColor-Avatar))", "borderLeftColor-Avatar": "var(--xmlui-borderLeftColor-Avatar, var(--xmlui-borderHorizontalColor-Avatar, var(--xmlui-borderColor-Avatar)))", "borderRightColor-Avatar": "var(--xmlui-borderRightColor-Avatar, var(--xmlui-borderHorizontalColor-Avatar, var(--xmlui-borderColor-Avatar)))", "borderVerticalColor-Avatar": "var(--xmlui-borderVerticalColor-Avatar, var(--xmlui-borderColor-Avatar))", "borderTopColor-Avatar": "var(--xmlui-borderTopColor-Avatar, var(--xmlui-borderVerticalColor-Avatar, var(--xmlui-borderColor-Avatar)))", "borderBottomColor-Avatar": "var(--xmlui-borderBottomColor-Avatar, var(--xmlui-borderVerticalColor-Avatar, var(--xmlui-borderColor-Avatar)))", "borderStartStartRadius-Avatar": "var(--xmlui-borderStartStartRadius-Avatar, var(--xmlui-borderRadius-Avatar))", "borderStartEndRadius-Avatar": "var(--xmlui-borderStartEndRadius-Avatar, var(--xmlui-borderRadius-Avatar))", "borderEndStartRadius-Avatar": "var(--xmlui-borderEndStartRadius-Avatar, var(--xmlui-borderRadius-Avatar))", "borderEndEndRadius-Avatar": "var(--xmlui-borderEndEndRadius-Avatar, var(--xmlui-borderRadius-Avatar))", "backgroundColor-Avatar": "var(--xmlui-backgroundColor-Avatar)", "boxShadow-Avatar": "var(--xmlui-boxShadow-Avatar)", "textColor-Avatar": "var(--xmlui-textColor-Avatar)", "fontWeight-Avatar": "var(--xmlui-fontWeight-Avatar)"}'`,container:"_container_gnyw6_13",xs:"_xs_gnyw6_48",sm:"_sm_gnyw6_55",md:"_md_gnyw6_62",lg:"_lg_gnyw6_69",clickable:"_clickable_gnyw6_76"},nZ={size:"sm"},oZ=m.memo(m.forwardRef(function({size:t=nZ.size,url:r,name:n,style:o,onClick:i,...a},l){const s=m.useMemo(()=>mqe(n??null),[n]),u=f=>{i&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),i(f))},c=ze(_y.container,_y[t]||_y.sm,{[_y.clickable]:!!i}),d=n?`Avatar of ${n}`:"Avatar";return r?C.jsx("img",{...a,ref:l,src:r,alt:d,className:c,style:o,onClick:i,onKeyDown:u,tabIndex:i?0:void 0}):C.jsx("div",{...a,ref:l,className:c,style:o,onClick:i,onKeyDown:u,role:"img","aria-label":d,tabIndex:i?0:void 0,children:s||C.jsx("span",{"aria-hidden":"true"})})}));function mqe(e){return e?e.trim().split(" ").filter(r=>!!r.trim().length).map(r=>r[0].toUpperCase()).slice(0,3).join(""):null}const ac="Avatar",iZ={status:"stable",description:"`Avatar` displays a user or entity's profile picture as a circular image, with automatic fallback to initials when no image is provided. It's commonly used in headers, user lists, comments, and anywhere you need to represent a person or organization.",props:{size:{description:`This property defines the display size of the ${ac}.`,availableValues:I_,valueType:"string",defaultValue:nZ.size},name:{description:`This property sets the name value the ${ac} uses to display initials. If neither this property nor \`url\` is defined, an empty avatar is displayed.`,valueType:"string"},url:{description:`This property specifies the URL of the image to display in the ${ac}. If neither this property nor \`name\` is defined, an empty avatar is displayed.`,valueType:"string"}},events:{click:re("This event is triggered when the avatar is clicked.")},themeVars:tt(_y.themeVars),defaultThemeVars:{[`borderRadius-${ac}`]:"4px",[`boxShadow-${ac}`]:"inset 0 0 0 1px rgba(4,32,69,0.1)",[`textColor-${ac}`]:"$textColor-secondary",[`fontWeight-${ac}`]:"$fontWeight-bold",[`border-${ac}`]:"0px solid $color-surface-400A80",[`backgroundColor-${ac}`]:"$color-surface-100"}},pqe=xe(ac,iZ,({node:e,extractValue:t,lookupEventHandler:r,layoutCss:n,extractResourceUrl:o})=>{var i;return C.jsx(oZ,{size:(i=e.props)==null?void 0:i.size,url:o(e.props.url),name:t(e.props.name),style:n,onClick:r("click")})}),kS={themeVars:`'{"backgroundColor-ContentSeparator": "var(--xmlui-backgroundColor-ContentSeparator)", "size-ContentSeparator": "var(--xmlui-size-ContentSeparator)"}'`,separator:"_separator_1o93m_13",horizontal:"_horizontal_1o93m_16",vertical:"_vertical_1o93m_20"},aZ={orientation:"horizontal"},hqe=({orientation:e=aZ.orientation,size:t,style:r})=>C.jsx("div",{className:ze(kS.separator,{[kS.horizontal]:e==="horizontal",[kS.vertical]:e==="vertical"}),style:{height:e==="horizontal"?t:void 0,width:e==="horizontal"?"100%":t,...r}}),RH="ContentSeparator",lZ={status:"stable",description:"`ContentSeparator` creates visual dividers between content sections using horizontal or vertical lines. It's essential for improving readability by breaking up dense content, separating list items, or creating clear boundaries between different UI sections.",props:{size:{description:"This property defines the component's height (if the `orientation` is horizontal) or the width (if the `orientation` is vertical). If not defined, the component uses the entire available width or height.",valueType:"any"},orientation:{description:"Sets the main axis of the component",availableValues:R_,defaultValue:aZ.orientation,valueType:"string"}},themeVars:tt(kS.themeVars),defaultThemeVars:{[`backgroundColor-${RH}`]:"$color-surface-200",[`size-${RH}`]:"1px",light:{},dark:{}}},gqe=xe(RH,lZ,({node:e,layoutCss:t,extractValue:r})=>C.jsx(hqe,{orientation:r(e.props.orientation),size:r.asSize(e.props.size),style:t})),eh={themeVars:`'{"padding-Card": "var(--xmlui-padding-Card)", "paddingHorizontal-Card": "var(--xmlui-paddingHorizontal-Card, var(--xmlui-padding-Card))", "paddingVertical-Card": "var(--xmlui-paddingVertical-Card, var(--xmlui-padding-Card))", "paddingLeft-Card": "var(--xmlui-paddingLeft-Card, var(--xmlui-paddingHorizontal-Card, var(--xmlui-padding-Card)))", "paddingRight-Card": "var(--xmlui-paddingRight-Card, var(--xmlui-paddingHorizontal-Card, var(--xmlui-padding-Card)))", "paddingTop-Card": "var(--xmlui-paddingTop-Card, var(--xmlui-paddingVertical-Card, var(--xmlui-padding-Card)))", "paddingBottom-Card": "var(--xmlui-paddingBottom-Card, var(--xmlui-paddingVertical-Card, var(--xmlui-padding-Card)))", "border-Card": "var(--xmlui-border-Card)", "borderHorizontal-Card": "var(--xmlui-borderHorizontal-Card, var(--xmlui-border-Card))", "borderVertical-Card": "var(--xmlui-borderVertical-Card, var(--xmlui-border-Card))", "borderLeft-Card": "var(--xmlui-borderLeft-Card, var(--xmlui-borderHorizontal-Card, var(--xmlui-border-Card)))", "borderRight-Card": "var(--xmlui-borderRight-Card, var(--xmlui-borderHorizontal-Card, var(--xmlui-border-Card)))", "borderTop-Card": "var(--xmlui-borderTop-Card, var(--xmlui-borderVertical-Card, var(--xmlui-border-Card)))", "borderBottom-Card": "var(--xmlui-borderBottom-Card, var(--xmlui-borderVertical-Card, var(--xmlui-border-Card)))", "borderWidth-Card": "var(--xmlui-borderWidth-Card)", "borderHorizontalWidth-Card": "var(--xmlui-borderHorizontalWidth-Card, var(--xmlui-borderWidth-Card))", "borderLeftWidth-Card": "var(--xmlui-borderLeftWidth-Card, var(--xmlui-borderHorizontalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderRightWidth-Card": "var(--xmlui-borderRightWidth-Card, var(--xmlui-borderHorizontalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderVerticalWidth-Card": "var(--xmlui-borderVerticalWidth-Card, var(--xmlui-borderWidth-Card))", "borderTopWidth-Card": "var(--xmlui-borderTopWidth-Card, var(--xmlui-borderVerticalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderBottomWidth-Card": "var(--xmlui-borderBottomWidth-Card, var(--xmlui-borderVerticalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderStyle-Card": "var(--xmlui-borderStyle-Card)", "borderHorizontalStyle-Card": "var(--xmlui-borderHorizontalStyle-Card, var(--xmlui-borderStyle-Card))", "borderLeftStyle-Card": "var(--xmlui-borderLeftStyle-Card, var(--xmlui-borderHorizontalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderRightStyle-Card": "var(--xmlui-borderRightStyle-Card, var(--xmlui-borderHorizontalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderVerticalStyle-Card": "var(--xmlui-borderVerticalStyle-Card, var(--xmlui-borderStyle-Card))", "borderTopStyle-Card": "var(--xmlui-borderTopStyle-Card, var(--xmlui-borderVerticalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderBottomStyle-Card": "var(--xmlui-borderBottomStyle-Card, var(--xmlui-borderVerticalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderColor-Card": "var(--xmlui-borderColor-Card)", "borderHorizontalColor-Card": "var(--xmlui-borderHorizontalColor-Card, var(--xmlui-borderColor-Card))", "borderLeftColor-Card": "var(--xmlui-borderLeftColor-Card, var(--xmlui-borderHorizontalColor-Card, var(--xmlui-borderColor-Card)))", "borderRightColor-Card": "var(--xmlui-borderRightColor-Card, var(--xmlui-borderHorizontalColor-Card, var(--xmlui-borderColor-Card)))", "borderVerticalColor-Card": "var(--xmlui-borderVerticalColor-Card, var(--xmlui-borderColor-Card))", "borderTopColor-Card": "var(--xmlui-borderTopColor-Card, var(--xmlui-borderVerticalColor-Card, var(--xmlui-borderColor-Card)))", "borderBottomColor-Card": "var(--xmlui-borderBottomColor-Card, var(--xmlui-borderVerticalColor-Card, var(--xmlui-borderColor-Card)))", "borderStartStartRadius-Card": "var(--xmlui-borderStartStartRadius-Card, var(--xmlui-borderRadius-Card))", "borderStartEndRadius-Card": "var(--xmlui-borderStartEndRadius-Card, var(--xmlui-borderRadius-Card))", "borderEndStartRadius-Card": "var(--xmlui-borderEndStartRadius-Card, var(--xmlui-borderRadius-Card))", "borderEndEndRadius-Card": "var(--xmlui-borderEndEndRadius-Card, var(--xmlui-borderRadius-Card))", "boxShadow-Card": "var(--xmlui-boxShadow-Card)", "backgroundColor-Card": "var(--xmlui-backgroundColor-Card)", "borderRadius-Card": "var(--xmlui-borderRadius-Card)", "gap-Card": "var(--xmlui-gap-Card)", "gap-title-Card": "var(--xmlui-gap-title-Card)", "gap-avatar-Card": "var(--xmlui-gap-avatar-Card)", "horizontalAlignment-title-Card": "var(--xmlui-horizontalAlignment-title-Card)", "verticalAlignment-title-Card": "var(--xmlui-verticalAlignment-title-Card)"}'`,wrapper:"_wrapper_zx7g9_13",avatarWrapper:"_avatarWrapper_zx7g9_46",titleWrapper:"_titleWrapper_zx7g9_53",horizontal:"_horizontal_zx7g9_61",vertical:"_vertical_zx7g9_65",isClickable:"_isClickable_zx7g9_68"},_S={orientation:"vertical",showAvatar:!1},sZ=m.forwardRef(function({children:t,orientation:r=_S.orientation,style:n,title:o,subtitle:i,linkTo:a,avatarUrl:l,showAvatar:s=!!l||_S.showAvatar,avatarSize:u,onClick:c},d){const f={level:"h2",maxLines:1};return C.jsxs("div",{ref:d,className:ze(eh.wrapper,{[eh.isClickable]:!!c,[eh.vertical]:r==="vertical",[eh.horizontal]:r==="horizontal"}),style:n,onClick:c,children:[[o,i,l,s].some(Boolean)&&C.jsxs("div",{className:eh.avatarWrapper,children:[s&&C.jsx(oZ,{url:l,name:o,size:u}),C.jsxs("div",{className:eh.titleWrapper,children:[a?o?C.jsx(Kx,{to:a+"",children:C.jsx(ec,{...f,children:o})}):null:o?C.jsx(ec,{...f,children:o}):null,i!==void 0&&C.jsx(C.Fragment,{children:C.jsx(xr,{variant:"secondary",children:i})})]})]}),t]})}),Wo="Card",uZ={status:"stable",description:"`Card` is a versatile container that groups related content with a visual boundary, typically featuring background color, padding, borders, and rounded corners. It's ideal for organizing information, creating sections, and establishing visual hierarchy in your interface.",props:{avatarUrl:{description:`The url for an avarar image. If not specified, but [\`showAvatar\`](#showAvatar) is true, ${Wo} will show the first letters of the [\`title\`](#title).`,type:"string"},showAvatar:{description:"Indicates whether the avatar should be displayed",valueType:"boolean",defaultValue:_S.showAvatar},avatarSize:{description:"This prop sets the size of the avatar. The default value is `sm`.",availableValues:["xs","sm","md","lg"],valueType:"string"},title:{description:"This prop sets the pre-styled title. If the property is not set, no title is displayed in the Card.",valueType:"string"},subtitle:{description:"This prop sets the pre-styled subtitle. If the property is not set, no subtitle is displayed in the Card.",valueType:"string"},linkTo:{description:"This optional property wraps the title in a `Link` component that is clickable to navigate.",valueType:"string"},orientation:{description:`An optional property that governs the ${Wo}'s orientation (whether the ${Wo} lays out its children in a row or a column). If the orientation is set to \`horizontal\`, the ${Wo} will display its children in a row, except for its [\`title\`](#title) and [\`subtitle\`](#subtitle).`,availableValues:R_,valueType:"string",defaultValue:_S.orientation}},events:{click:dv(Wo)},themeVars:tt(eh.themeVars),defaultThemeVars:{[`padding-${Wo}`]:"$space-4",[`border-${Wo}`]:"1px solid $borderColor",[`borderRadius-${Wo}`]:"$borderRadius",[`boxShadow-${Wo}`]:"none",[`backgroundColor-${Wo}`]:"$color-surface-raised",[`gap-${Wo}`]:"var(--stack-gap-default)",[`gap-title-${Wo}`]:"$gap-none",[`gap-avatar-${Wo}`]:"$gap-normal",[`verticalAlignment-title-${Wo}`]:"center"},themeVarDescriptions:{[`gap-${Wo}`]:"The gap between the component's children.",[`gap-title-${Wo}`]:"The gap between the title and the subtitle",[`gap-avatar-${Wo}`]:"The gap between the avatar and the title panel",[`horizontalAlignment-title-${Wo}`]:"The horizontal alignment of panel with the title and subtitle",[`verticalAlignment-title-${Wo}`]:"The vertical alignment of the title and subtitle to the avatar"}},vqe=xe("Card",uZ,({node:e,extractValue:t,renderChild:r,layoutCss:n})=>C.jsx(sZ,{style:n,title:t.asOptionalString(e.props.title),linkTo:t.asOptionalString(e.props.linkTo),subtitle:t.asOptionalString(e.props.subtitle),avatarUrl:t.asOptionalString(e.props.avatarUrl),showAvatar:t.asOptionalBoolean(e.props.showAvatar),avatarSize:t.asOptionalString(e.props.avatarSize),orientation:t.asOptionalString(e.props.orientation),children:r(e.children,{type:"Stack",orientation:"vertical"})})),Bf={themeVars:'"[]"',outer:"_outer_aarhe_13",flowContainer:"_flowContainer_aarhe_17",horizontal:"_horizontal_aarhe_21",flowItem:"_flowItem_aarhe_24",break:"_break_aarhe_47",forceBreak:"_forceBreak_aarhe_47",starSized:"_starSized_aarhe_47"},PH={},cZ=m.createContext({rowGap:0,columnGap:0,setNumberOfChildren:yp}),dZ=({force:e})=>C.jsx("div",{className:ze(Bf.break,{[Bf.forceBreak]:e})}),bqe=m.forwardRef(function({children:t,forceBreak:r,...n},o){const{rowGap:i,columnGap:a,setNumberOfChildren:l}=m.useContext(cZ),{mediaSize:s}=jo();_n(()=>(l(A=>A+1),()=>{l(A=>A-1)}),[l]);const{activeTheme:u,root:c}=zr(),d=n.width||"100%",f=n.minWidth||void 0,p=n.maxWidth||void 0,{width:g=d,minWidth:v,maxWidth:b,flex:y}=m.useMemo(()=>MQ({width:d,maxWidth:p,minWidth:f},{type:"Stack",orientation:"horizontal"}).cssProps||{},[p,f,d]),w=m.useMemo(()=>{if(g&&typeof g=="string"&&g.startsWith("var(")){if(!PH[g]){const A=g.substring(4,g.length-1),I=getComputedStyle(c||document.body).getPropertyValue(A);PH[g]=I||d}return PH[g]}return g||d},[d,c,g]),k=typeof w=="string"&&w.endsWith("%"),E=p7e(a);let _;if(k){const A=parseFloat(w);if(s.sizeIndex<=1){let I=A*4;I>50?_="100%":_=`min(${I}%, 100%)`}else if(s.sizeIndex<=2){let I=A*3;I>=50&&I<=75?_="50%":I>75?_="100%":_=`min(${I}%, 100%)`}else _=`min(${g}, 100%)`}else _=`min(calc(${g} + ${E}), 100%)`;const S={minWidth:v,maxWidth:b,width:_,paddingBottom:i,flex:y},O=y!==void 0;return O&&(S.width="100%",S.minWidth=v||"1px"),C.jsxs(C.Fragment,{children:[C.jsx("div",{style:{...S,paddingRight:E},className:ze(Bf.flowItem,{[Bf.starSized]:O}),ref:o,children:t}),O&&C.jsx(dZ,{})]})}),fZ={columnGap:"$gap-normal",rowGap:"$gap-normal"},xqe=m.forwardRef(function({style:t,columnGap:r=0,rowGap:n=0,children:o},i){const[a,l]=m.useState(0),s=a===1?0:r,u=IG(n),c=IG(s),d=m.useMemo(()=>({marginRight:`calc(-1 * ${c})`,marginBottom:`calc(-1 * ${u})`}),[c,u]),f=m.useMemo(()=>({rowGap:u,columnGap:c,setNumberOfChildren:l}),[c,u]);return C.jsx(cZ.Provider,{value:f,children:C.jsx("div",{style:t,ref:i,children:C.jsx("div",{className:Bf.outer,children:C.jsx("div",{className:ze(Bf.flowContainer,Bf.horizontal),style:d,children:o})})})})}),HH="FlowLayout",mZ={status:"stable",description:"`FlowLayout` positions content in rows with automatic wrapping. When items exceed the available horizontal space, they automatically wrap to a new line.",props:{gap:{description:`This property defines the gap between items in the same row and between rows. The ${HH} component creates a new row when an item is about to overflow the current row.`,type:"string",defaultValue:"$gap-normal"},columnGap:{description:"The `columnGap` property specifies the space between items in a single row; it overrides the `gap` value.",defaultValue:fZ.columnGap},rowGap:{description:`The \`rowGap\` property specifies the space between the ${HH} rows; it overrides the \`gap\` value.`,defaultValue:fZ.rowGap}},themeVars:tt(Bf.themeVars)},yqe=xe(HH,mZ,({node:e,renderChild:t,layoutCss:r,extractValue:n})=>{var a,l;if(!VI(e.children))throw new nx;const o=n.asSize((a=e.props)==null?void 0:a.columnGap)||r.gap||n.asSize("$space-4"),i=n.asSize((l=e.props)==null?void 0:l.rowGap)||r.gap||n.asSize("$space-4");return C.jsx(xqe,{style:r,columnGap:o,rowGap:i,children:t(e.children,{wrapChild:({node:s,extractValue:u},c,d)=>{var v,b,y;if(d!=null&&d.opaque)return c;if(s.type==="SpaceFiller")return C.jsx(dZ,{force:!0});const f=u((v=s.props)==null?void 0:v.width),p=u((b=s.props)==null?void 0:b.minWidth),g=u((y=s.props)==null?void 0:y.maxWidth);return C.jsx(bqe,{width:f,minWidth:p,maxWidth:g,forceBreak:s.type==="SpaceFiller",children:c})}})})}),jf={themeVars:`'{"padding-ModalDialog": "var(--xmlui-padding-ModalDialog)", "paddingHorizontal-ModalDialog": "var(--xmlui-paddingHorizontal-ModalDialog, var(--xmlui-padding-ModalDialog))", "paddingVertical-ModalDialog": "var(--xmlui-paddingVertical-ModalDialog, var(--xmlui-padding-ModalDialog))", "paddingLeft-ModalDialog": "var(--xmlui-paddingLeft-ModalDialog, var(--xmlui-paddingHorizontal-ModalDialog, var(--xmlui-padding-ModalDialog)))", "paddingRight-ModalDialog": "var(--xmlui-paddingRight-ModalDialog, var(--xmlui-paddingHorizontal-ModalDialog, var(--xmlui-padding-ModalDialog)))", "paddingTop-ModalDialog": "var(--xmlui-paddingTop-ModalDialog, var(--xmlui-paddingVertical-ModalDialog, var(--xmlui-padding-ModalDialog)))", "paddingBottom-ModalDialog": "var(--xmlui-paddingBottom-ModalDialog, var(--xmlui-paddingVertical-ModalDialog, var(--xmlui-padding-ModalDialog)))", "padding-overlay-ModalDialog": "var(--xmlui-padding-overlay-ModalDialog)", "paddingHorizontal-overlay-ModalDialog": "var(--xmlui-paddingHorizontal-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog))", "paddingVertical-overlay-ModalDialog": "var(--xmlui-paddingVertical-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog))", "paddingLeft-overlay-ModalDialog": "var(--xmlui-paddingLeft-overlay-ModalDialog, var(--xmlui-paddingHorizontal-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog)))", "paddingRight-overlay-ModalDialog": "var(--xmlui-paddingRight-overlay-ModalDialog, var(--xmlui-paddingHorizontal-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog)))", "paddingTop-overlay-ModalDialog": "var(--xmlui-paddingTop-overlay-ModalDialog, var(--xmlui-paddingVertical-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog)))", "paddingBottom-overlay-ModalDialog": "var(--xmlui-paddingBottom-overlay-ModalDialog, var(--xmlui-paddingVertical-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog)))", "Dialog:backgroundColor-ModalDialog": "var(--xmlui-backgroundColor-ModalDialog)", "Dialog:backgroundColor-overlay-ModalDialog": "var(--xmlui-backgroundColor-overlay-ModalDialog)", "Dialog:borderRadius-ModalDialog": "var(--xmlui-borderRadius-ModalDialog)", "Dialog:fontFamily-ModalDialog": "var(--xmlui-fontFamily-ModalDialog)", "Dialog:textColor-ModalDialog": "var(--xmlui-textColor-ModalDialog)", "Dialog:minWidth-ModalDialog": "var(--xmlui-minWidth-ModalDialog)", "Dialog:maxWidth-ModalDialog": "var(--xmlui-maxWidth-ModalDialog)", "Dialog:marginBottom-title-ModalDialog": "var(--xmlui-marginBottom-title-ModalDialog)"}'`,overlay:"_overlay_it5gt_13",fullScreen:"_fullScreen_it5gt_21",content:"_content_it5gt_27",overlayBg:"_overlayBg_it5gt_36",dialogTitle:"_dialogTitle_it5gt_70",innerContent:"_innerContent_it5gt_76",closeButton:"_closeButton_it5gt_102"};function LH(e,t){return{[`paddingLeft-${e}`]:(t==null?void 0:t.left)??`$paddingHorizontal-${e}`,[`paddingRight-${e}`]:(t==null?void 0:t.right)??`$paddingHorizontal-${e}`,[`paddingTop-${e}`]:(t==null?void 0:t.top)??`$paddingVertical-${e}`,[`paddingBottom-${e}`]:(t==null?void 0:t.bottom)??`$paddingVertical-${e}`,[`paddingHorizontal-${e}`]:(t==null?void 0:t.horizontal)??"",[`paddingVertical-${e}`]:(t==null?void 0:t.vertical)??"",[`padding-${e}`]:(t==null?void 0:t.all)??`$paddingTop-${e} $paddingRight-${e} $paddingBottom-${e} $paddingLeft-${e}`}}const pZ=ee.createContext(null),wqe=()=>{const e=m.useId(),{registerForm:t,unRegisterForm:r,requestClose:n,amITheSingleForm:o}=m.useContext(pZ)||{};return m.useEffect(()=>{if(t)return t(e),()=>{r==null||r(e)}},[e,t,r]),m.useCallback(()=>{if(n&&o(e))return n()},[o,e,n])},TS={fullScreen:!1,closeButtonVisible:!0},Cqe=ee.forwardRef(({isInitiallyOpen:e,onOpen:t,onClose:r,registerComponentApi:n,renderDialog:o},i)=>{const a=gZ(e,t,r),{doOpen:l,doClose:s,isOpen:u,openParams:c}=a;return m.useEffect(()=>{n==null||n({open:l,close:s})},[s,l,n]),u?C.jsx(hZ.Provider,{value:a,children:o({openParams:c,ref:i})}):null}),hZ=ee.createContext(null);function gZ(e,t,r){const[n,o]=m.useState(e),i=m.useRef(!1),[a,l]=m.useState(null),s=Mt((...c)=>{l(c),t==null||t(),o(!0)}),u=Mt(async()=>{if(!i.current)try{if(i.current=!0,await(r==null?void 0:r())===!1)return}finally{i.current=!1}o(!1)});return m.useMemo(()=>({isOpen:n,doClose:u,doOpen:s,openParams:a}),[u,s,n,a])}function kqe(e=!0,t,r){const n=m.useContext(hZ),o=gZ(e,t,r);return n||o}const SS=ee.forwardRef(({children:e,style:t,isInitiallyOpen:r,fullScreen:n=TS.fullScreen,title:o,closeButtonVisible:i=TS.closeButtonVisible,onOpen:a,onClose:l},s)=>{const{root:u}=zr(),c=m.useRef(null),d=s?no(s,c):c,{isOpen:f,doClose:p,doOpen:g}=kqe(r,a,l);m.useEffect(()=>{var y;f&&((y=c.current)==null||y.focus())},[f]),m.useEffect(()=>{if(f){const y=setTimeout(()=>{document.body.style.pointerEvents=""},0);return()=>clearTimeout(y)}else document.body.style.pointerEvents="auto"},[f]);const v=m.useRef(new Set),b=m.useMemo(()=>({registerForm:y=>{v.current.add(y)},unRegisterForm:y=>{v.current.delete(y)},amITheSingleForm:y=>v.current.size===1&&v.current.has(y),requestClose:()=>p()}),[p]);return u?C.jsx(vY,{open:f,onOpenChange:y=>y?g():p(),children:C.jsxs(bY,{container:u,children:[!n&&C.jsx("div",{className:jf.overlayBg}),C.jsx(QR,{className:ze(jf.overlay,{[jf.fullScreen]:n}),children:C.jsxs(ZR,{className:ze(jf.content),onPointerDownOutside:y=>{y.target instanceof Element&&y.target.closest("._debug-inspect-button")!==null&&y.preventDefault()},ref:d,style:{...t,gap:void 0},children:[!!o&&C.jsx(JR,{style:{marginTop:0},children:C.jsx("header",{id:"dialogTitle",className:jf.dialogTitle,children:o})}),C.jsx("div",{className:jf.innerContent,style:{gap:t==null?void 0:t.gap},children:C.jsx(pZ.Provider,{value:b,children:e})}),i&&C.jsx(yY,{asChild:!0,children:C.jsx(sn,{variant:"ghost",themeColor:"secondary",className:jf.closeButton,"aria-label":"Close",icon:C.jsx(kt,{name:"close",size:"sm"}),orientation:"vertical"})})]})})]})}):null});SS.displayName="ModalDialog";const us="ModalDialog",vZ={status:"stable",description:"`ModalDialog` creates overlay dialogs that appear on top of the main interface, ideal for forms, confirmations, detailed views, or any content that requires focused user attention. Dialogs are programmatically opened using the `open()` method and can receive parameters for dynamic content.",props:{fullScreen:{description:"Toggles whether the dialog encompasses the whole UI (`true`) or not and has a minimum width and height (`false`).",valueType:"boolean",defaultValue:TS.fullScreen},title:re("Provides a prestyled heading to display the intent of the dialog."),closeButtonVisible:{description:"Shows (`true`) or hides (`false`) the visibility of the close button on the dialog.",valueType:"boolean",defaultValue:TS.closeButtonVisible}},events:{open:re(`This event is fired when the \`${us}\` is opened either via a \`when\` or an imperative API call (\`open()\`).`),close:re(`This event is fired when the close button is pressed or the user clicks outside the \`${us}\`.`)},apis:{close:re(`This method is used to close the \`${us}\`. Invoke it using \`modalId.close()\` where \`modalId\` refers to a \`ModalDialog\` component.`),open:re("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:re("First parameter passed to the `open()` method"),$params:re("Array of all parameters passed to `open()` method (access with `$params[0]`, `$params[1]`, etc.)")},themeVars:tt(jf.themeVars),defaultThemeVars:{...LH(us,{all:"$space-7"}),[`backgroundColor-${us}`]:"$backgroundColor-primary",[`backgroundColor-overlay-${us}`]:"$backgroundColor-overlay",[`textColor-${us}`]:"$textColor-primary",[`borderRadius-${us}`]:"$borderRadius",[`fontFamily-${us}`]:"$fontFamily",[`maxWidth-${us}`]:"450px",[`marginBottom-title-${us}`]:"0"}},_qe=xe(us,vZ,({node:e,extractValue:t,layoutCss:r,renderChild:n,lookupEventHandler:o,registerComponentApi:i,layoutContext:a})=>{var l,s;return a!=null&&a._insideModalFrame?C.jsx(SS,{style:r,fullScreen:t((l=e.props)==null?void 0:l.fullScreen),title:t((s=e.props)==null?void 0:s.title),closeButtonVisible:t.asOptionalBoolean(e.props.closeButtonVisible),children:n(e.children,{type:"Stack"})}):C.jsx(Cqe,{isInitiallyOpen:e.when!==void 0,registerComponentApi:i,onClose:o("close"),onOpen:o("open"),renderDialog:({openParams:u,ref:c})=>C.jsx(wi,{node:e,renderChild:n,layoutContext:{_insideModalFrame:!0},contextVars:{$param:u==null?void 0:u[0],$params:u}})})}),NH={themeVars:`'{"padding-NoResult": "var(--xmlui-padding-NoResult)", "paddingHorizontal-NoResult": "var(--xmlui-paddingHorizontal-NoResult, var(--xmlui-padding-NoResult))", "paddingVertical-NoResult": "var(--xmlui-paddingVertical-NoResult, var(--xmlui-padding-NoResult))", "paddingLeft-NoResult": "var(--xmlui-paddingLeft-NoResult, var(--xmlui-paddingHorizontal-NoResult, var(--xmlui-padding-NoResult)))", "paddingRight-NoResult": "var(--xmlui-paddingRight-NoResult, var(--xmlui-paddingHorizontal-NoResult, var(--xmlui-padding-NoResult)))", "paddingTop-NoResult": "var(--xmlui-paddingTop-NoResult, var(--xmlui-paddingVertical-NoResult, var(--xmlui-padding-NoResult)))", "paddingBottom-NoResult": "var(--xmlui-paddingBottom-NoResult, var(--xmlui-paddingVertical-NoResult, var(--xmlui-padding-NoResult)))", "border-NoResult": "var(--xmlui-border-NoResult)", "borderHorizontal-NoResult": "var(--xmlui-borderHorizontal-NoResult, var(--xmlui-border-NoResult))", "borderVertical-NoResult": "var(--xmlui-borderVertical-NoResult, var(--xmlui-border-NoResult))", "borderLeft-NoResult": "var(--xmlui-borderLeft-NoResult, var(--xmlui-borderHorizontal-NoResult, var(--xmlui-border-NoResult)))", "borderRight-NoResult": "var(--xmlui-borderRight-NoResult, var(--xmlui-borderHorizontal-NoResult, var(--xmlui-border-NoResult)))", "borderTop-NoResult": "var(--xmlui-borderTop-NoResult, var(--xmlui-borderVertical-NoResult, var(--xmlui-border-NoResult)))", "borderBottom-NoResult": "var(--xmlui-borderBottom-NoResult, var(--xmlui-borderVertical-NoResult, var(--xmlui-border-NoResult)))", "borderWidth-NoResult": "var(--xmlui-borderWidth-NoResult)", "borderHorizontalWidth-NoResult": "var(--xmlui-borderHorizontalWidth-NoResult, var(--xmlui-borderWidth-NoResult))", "borderLeftWidth-NoResult": "var(--xmlui-borderLeftWidth-NoResult, var(--xmlui-borderHorizontalWidth-NoResult, var(--xmlui-borderWidth-NoResult)))", "borderRightWidth-NoResult": "var(--xmlui-borderRightWidth-NoResult, var(--xmlui-borderHorizontalWidth-NoResult, var(--xmlui-borderWidth-NoResult)))", "borderVerticalWidth-NoResult": "var(--xmlui-borderVerticalWidth-NoResult, var(--xmlui-borderWidth-NoResult))", "borderTopWidth-NoResult": "var(--xmlui-borderTopWidth-NoResult, var(--xmlui-borderVerticalWidth-NoResult, var(--xmlui-borderWidth-NoResult)))", "borderBottomWidth-NoResult": "var(--xmlui-borderBottomWidth-NoResult, var(--xmlui-borderVerticalWidth-NoResult, var(--xmlui-borderWidth-NoResult)))", "borderStyle-NoResult": "var(--xmlui-borderStyle-NoResult)", "borderHorizontalStyle-NoResult": "var(--xmlui-borderHorizontalStyle-NoResult, var(--xmlui-borderStyle-NoResult))", "borderLeftStyle-NoResult": "var(--xmlui-borderLeftStyle-NoResult, var(--xmlui-borderHorizontalStyle-NoResult, var(--xmlui-borderStyle-NoResult)))", "borderRightStyle-NoResult": "var(--xmlui-borderRightStyle-NoResult, var(--xmlui-borderHorizontalStyle-NoResult, var(--xmlui-borderStyle-NoResult)))", "borderVerticalStyle-NoResult": "var(--xmlui-borderVerticalStyle-NoResult, var(--xmlui-borderStyle-NoResult))", "borderTopStyle-NoResult": "var(--xmlui-borderTopStyle-NoResult, var(--xmlui-borderVerticalStyle-NoResult, var(--xmlui-borderStyle-NoResult)))", "borderBottomStyle-NoResult": "var(--xmlui-borderBottomStyle-NoResult, var(--xmlui-borderVerticalStyle-NoResult, var(--xmlui-borderStyle-NoResult)))", "borderColor-NoResult": "var(--xmlui-borderColor-NoResult)", "borderHorizontalColor-NoResult": "var(--xmlui-borderHorizontalColor-NoResult, var(--xmlui-borderColor-NoResult))", "borderLeftColor-NoResult": "var(--xmlui-borderLeftColor-NoResult, var(--xmlui-borderHorizontalColor-NoResult, var(--xmlui-borderColor-NoResult)))", "borderRightColor-NoResult": "var(--xmlui-borderRightColor-NoResult, var(--xmlui-borderHorizontalColor-NoResult, var(--xmlui-borderColor-NoResult)))", "borderVerticalColor-NoResult": "var(--xmlui-borderVerticalColor-NoResult, var(--xmlui-borderColor-NoResult))", "borderTopColor-NoResult": "var(--xmlui-borderTopColor-NoResult, var(--xmlui-borderVerticalColor-NoResult, var(--xmlui-borderColor-NoResult)))", "borderBottomColor-NoResult": "var(--xmlui-borderBottomColor-NoResult, var(--xmlui-borderVerticalColor-NoResult, var(--xmlui-borderColor-NoResult)))", "borderStartStartRadius-NoResult": "var(--xmlui-borderStartStartRadius-NoResult, var(--xmlui-borderRadius-NoResult))", "borderStartEndRadius-NoResult": "var(--xmlui-borderStartEndRadius-NoResult, var(--xmlui-borderRadius-NoResult))", "borderEndStartRadius-NoResult": "var(--xmlui-borderEndStartRadius-NoResult, var(--xmlui-borderRadius-NoResult))", "borderEndEndRadius-NoResult": "var(--xmlui-borderEndEndRadius-NoResult, var(--xmlui-borderRadius-NoResult))", "gap-icon-NoResult": "var(--xmlui-gap-icon-NoResult)", "size-icon-NoResult": "var(--xmlui-size-icon-NoResult)"}'`,wrapper:"_wrapper_1vx80_13",icon:"_icon_1vx80_45"},ES={hideIcon:!1,icon:"noresult"},Tqe=m.forwardRef(function({label:t,icon:r=ES.icon,hideIcon:n=ES.hideIcon,style:o},i){return C.jsxs("div",{className:NH.wrapper,style:o,ref:i,children:[!n&&C.jsx(kt,{name:r,className:NH.icon}),t]})}),Ty="NoResult",bZ={status:"stable",description:"`NoResult` displays a visual indication that a query or search returned nothing.",props:{label:to(),icon:{description:"This property defines the icon to display with the component.",valueType:"string",defaultValue:ES.icon},hideIcon:{description:"This boolean property indicates if the icon should be hidden.",valueType:"boolean",defaultValue:ES.hideIcon}},themeVars:tt(NH.themeVars),defaultThemeVars:{[`border-${Ty}`]:"0px solid $borderColor",[`paddingVertical-${Ty}`]:"$space-2",[`gap-icon-${Ty}`]:"$space-2",[`size-icon-${Ty}`]:"$space-8",light:{},dark:{}}},Sqe=xe(Ty,bZ,({node:e,extractValue:t,layoutCss:r})=>C.jsx(Tqe,{label:t.asDisplayText(e.props.label||e.children||"No results found"),icon:e.props.icon,hideIcon:t.asOptionalBoolean(e.props.hideIcon),style:r})),$H={themeVars:`'{"backgroundColor-FileUploadDropZone": "var(--xmlui-backgroundColor-FileUploadDropZone)", "textColor-FileUploadDropZone": "var(--xmlui-textColor-FileUploadDropZone)", "backgroundColor-dropping-FileUploadDropZone": "var(--xmlui-backgroundColor-dropping-FileUploadDropZone)", "opacity-dropping-FileUploadDropZone": "var(--xmlui-opacity-dropping-FileUploadDropZone)"}'`,wrapper:"_wrapper_15hp1_13",dropPlaceholder:"_dropPlaceholder_15hp1_21"};var Eqe=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 Sy(e,t){var r=Oqe(e);if(typeof r.path!="string"){var n=e.webkitRelativePath;Object.defineProperty(r,"path",{value:typeof t=="string"?t:typeof n=="string"&&n.length>0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}function Oqe(e){var t=e.name,r=t&&t.lastIndexOf(".")!==-1;if(r&&!e.type){var n=t.split(".").pop().toLowerCase(),o=Eqe.get(n);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var Aqe=[".DS_Store","Thumbs.db"];function Iqe(e){return Sv(this,void 0,void 0,function(){return Ev(this,function(t){return OS(e)&&Rqe(e.dataTransfer)?[2,Nqe(e.dataTransfer,e.type)]:Pqe(e)?[2,Hqe(e)]:Array.isArray(e)&&e.every(function(r){return"getFile"in r&&typeof r.getFile=="function"})?[2,Lqe(e)]:[2,[]]})})}function Rqe(e){return OS(e)}function Pqe(e){return OS(e)&&OS(e.target)}function OS(e){return typeof e=="object"&&e!==null}function Hqe(e){return DH(e.target.files).map(function(t){return Sy(t)})}function Lqe(e){return Sv(this,void 0,void 0,function(){var t;return Ev(this,function(r){switch(r.label){case 0:return[4,Promise.all(e.map(function(n){return n.getFile()}))];case 1:return t=r.sent(),[2,t.map(function(n){return Sy(n)})]}})})}function Nqe(e,t){return Sv(this,void 0,void 0,function(){var r,n;return Ev(this,function(o){switch(o.label){case 0:return e.items?(r=DH(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,r]:[4,Promise.all(r.map($qe))]):[3,2];case 1:return n=o.sent(),[2,xZ(yZ(n))];case 2:return[2,xZ(DH(e.files).map(function(i){return Sy(i)}))]}})})}function xZ(e){return e.filter(function(t){return Aqe.indexOf(t.name)===-1})}function DH(e){if(e===null)return[];for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(n)}return t}function $qe(e){if(typeof e.webkitGetAsEntry!="function")return wZ(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?CZ(t):wZ(e)}function yZ(e){return e.reduce(function(t,r){return Ov(Ov([],GG(t),!1),GG(Array.isArray(r)?yZ(r):[r]),!1)},[])}function wZ(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var r=Sy(t);return Promise.resolve(r)}function Dqe(e){return Sv(this,void 0,void 0,function(){return Ev(this,function(t){return[2,e.isDirectory?CZ(e):Bqe(e)]})})}function CZ(e){var t=e.createReader();return new Promise(function(r,n){var o=[];function i(){var a=this;t.readEntries(function(l){return Sv(a,void 0,void 0,function(){var s,u,c;return Ev(this,function(d){switch(d.label){case 0:if(l.length)return[3,5];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return s=d.sent(),r(s),[3,4];case 3:return u=d.sent(),n(u),[3,4];case 4:return[3,6];case 5:c=Promise.all(l.map(Dqe)),o.push(c),i(),d.label=6;case 6:return[2]}})})},function(l){n(l)})}i()})}function Bqe(e){return Sv(this,void 0,void 0,function(){return Ev(this,function(t){return[2,new Promise(function(r,n){e.file(function(o){var i=Sy(o,e.fullPath);r(i)},function(o){n(o)})})]})})}var jqe=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(",");if(r.length===0)return!0;var n=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return r.some(function(a){var l=a.trim().toLowerCase();return l.charAt(0)==="."?n.toLowerCase().endsWith(l):l.endsWith("/*")?i===l.replace(/\/.*$/,""):o===l})}return!0};function kZ(e){return Fqe(e)||zqe(e)||EZ(e)||Mqe()}function Mqe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
233
|
+
color: hsl(${Math.max(0,Math.min(120-120*v,120))}deg 100% 31%);`,r==null?void 0:r.key)}return(s=r==null?void 0:r.onChange)==null||s.call(r,o),o}}function xH(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const WVe=(e,t)=>Math.abs(e-t)<1,VVe=(e,t,r)=>{let n;return function(...o){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,o),r)}};var by={NODE_ENV:"production"};const UVe=e=>e,qVe=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let o=t;o<=r;o++)n.push(o);return n},GVe=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;const o=a=>{const{width:l,height:s}=a;t({width:Math.round(l),height:Math.round(s)})};if(o(r.getBoundingClientRect()),!n.ResizeObserver)return()=>{};const i=new n.ResizeObserver(a=>{const l=a[0];if(l!=null&&l.borderBoxSize){const s=l.borderBoxSize[0];if(s){o({width:s.inlineSize,height:s.blockSize});return}}o(r.getBoundingClientRect())});return i.observe(r,{box:"border-box"}),()=>{i.unobserve(r)}},DQ={passive:!0},YVe=typeof window>"u"?!0:"onscrollend"in window,KVe=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;let o=0;const i=YVe?()=>{}:VVe(n,()=>{t(o,!1)},e.options.isScrollingResetDelay),a=u=>()=>{const{horizontal:c,isRtl:d}=e.options;o=c?r.scrollLeft*(d&&-1||1):r.scrollTop,i(),t(o,u)},l=a(!0),s=a(!1);return s(),r.addEventListener("scroll",l,DQ),r.addEventListener("scrollend",s,DQ),()=>{r.removeEventListener("scroll",l),r.removeEventListener("scrollend",s)}},XVe=(e,t,r)=>{if(t!=null&&t.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[r.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[r.options.horizontal?"width":"height"])},QVe=(e,{adjustments:t=0,behavior:r},n)=>{var o,i;const a=e+t;(i=(o=n.scrollElement)==null?void 0:o.scrollTo)==null||i.call(o,{[n.options.horizontal?"left":"top"]:a,behavior:r})};class ZVe{constructor(t){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 r=null;const n=()=>r||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:r=new this.targetWindow.ResizeObserver(o=>{o.forEach(i=>{this._measureElement(i.target,i)})}));return{disconnect:()=>{var o;(o=n())==null||o.disconnect(),r=null},observe:o=>{var i;return(i=n())==null?void 0:i.observe(o,{box:"border-box"})},unobserve:o=>{var i;return(i=n())==null?void 0:i.unobserve(o)}}})(),this.range=null,this.setOptions=r=>{Object.entries(r).forEach(([n,o])=>{typeof o>"u"&&delete r[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:UVe,rangeExtractor:qVe,onChange:()=>{},measureElement:XVe,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,...r}},this.notify=r=>{var n,o;(o=(n=this.options).onChange)==null||o.call(n,this,r)},this.maybeNotify=Jv(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),r=>{this.notify(r)},{key:by.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(r=>r()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var r;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((r=this.scrollElement)==null?void 0:r.window)??null,this.elementsCache.forEach(o=>{this.observer.observe(o)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(o,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o,this.isScrolling=i,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=(r,n)=>{const o=new Map,i=new Map;for(let a=n-1;a>=0;a--){const l=r[a];if(o.has(l.lane))continue;const s=i.get(l.lane);if(s==null||l.end>s.end?i.set(l.lane,l):l.end<s.end&&o.set(l.lane,!0),o.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((a,l)=>a.end===l.end?a.index-l.index:a.end-l.end)[0]:void 0},this.getMeasurementOptions=Jv(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(r,n,o,i,a)=>(this.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:n,scrollMargin:o,getItemKey:i,enabled:a}),{key:!1}),this.getMeasurements=Jv(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:r,paddingStart:n,scrollMargin:o,getItemKey:i,enabled:a},l)=>{if(!a)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 u=this.measurementsCache.slice(0,s);for(let c=s;c<r;c++){const d=i(c),f=this.options.lanes===1?u[c-1]:this.getFurthestMeasurement(u,c),p=f?f.end+this.options.gap:n+o,g=l.get(d),v=typeof g=="number"?g:this.options.estimateSize(c),b=p+v,y=f?f.lane:c%this.options.lanes;u[c]={index:c,start:p,size:v,end:b,key:d,lane:y}}return this.measurementsCache=u,u},{key:by.NODE_ENV!=="production",debug:()=>this.options.debug}),this.calculateRange=Jv(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(r,n,o)=>this.range=r.length>0&&n>0?JVe({measurements:r,outerSize:n,scrollOffset:o}):null,{key:by.NODE_ENV!=="production",debug:()=>this.options.debug}),this.getIndexes=Jv(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(r,n,o,i)=>n===null?[]:r({startIndex:n.startIndex,endIndex:n.endIndex,overscan:o,count:i}),{key:by.NODE_ENV!=="production",debug:()=>this.options.debug}),this.indexFromElement=r=>{const n=this.options.indexAttribute,o=r.getAttribute(n);return o?parseInt(o,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this._measureElement=(r,n)=>{const o=this.indexFromElement(r),i=this.measurementsCache[o];if(!i)return;const a=i.key,l=this.elementsCache.get(a);l!==r&&(l&&this.observer.unobserve(l),this.observer.observe(r),this.elementsCache.set(a,r)),r.isConnected&&this.resizeItem(o,this.options.measureElement(r,n,this))},this.resizeItem=(r,n)=>{const o=this.measurementsCache[r];if(!o)return;const i=this.itemSizeCache.get(o.key)??o.size,a=n-i;a!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,a,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,n)),this.notify(!1))},this.measureElement=r=>{if(!r){this.elementsCache.forEach((n,o)=>{n.isConnected||(this.observer.unobserve(n),this.elementsCache.delete(o))});return}this._measureElement(r,void 0)},this.getVirtualItems=Jv(()=>[this.getIndexes(),this.getMeasurements()],(r,n)=>{const o=[];for(let i=0,a=r.length;i<a;i++){const l=r[i],s=n[l];o.push(s)}return o},{key:by.NODE_ENV!=="production",debug:()=>this.options.debug}),this.getVirtualItemForOffset=r=>{const n=this.getMeasurements();if(n.length!==0)return xH(n[BQ(0,n.length-1,o=>xH(n[o]).start,r)])},this.getOffsetForAlignment=(r,n)=>{const o=this.getSize(),i=this.getScrollOffset();n==="auto"&&(r<=i?n="start":r>=i+o?n="end":n="start"),n==="start"?r=r:n==="end"?r=r-o:n==="center"&&(r=r-o/2);const a=this.options.horizontal?"scrollWidth":"scrollHeight",s=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[a]:this.scrollElement[a]:0)-o;return Math.max(Math.min(s,r),0)},this.getOffsetForIndex=(r,n="auto")=>{r=Math.max(0,Math.min(r,this.options.count-1));const o=this.measurementsCache[r];if(!o)return;const i=this.getSize(),a=this.getScrollOffset();if(n==="auto")if(o.end>=a+i-this.options.scrollPaddingEnd)n="end";else if(o.start<=a+this.options.scrollPaddingStart)n="start";else return[a,n];const l=n==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(l,n),n]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(r,{align:n="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(r,n),{adjustments:void 0,behavior:o})},this.scrollToIndex=(r,{align:n="auto",behavior:o}={})=>{r=Math.max(0,Math.min(r,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const i=this.getOffsetForIndex(r,n);if(!i)return;const[a,l]=i;this._scrollToOffset(a,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(r))){const[u]=xH(this.getOffsetForIndex(r,l));WVe(u,this.getScrollOffset())||this.scrollToIndex(r,{align:l,behavior:o})}else this.scrollToIndex(r,{align:l,behavior:o})}))},this.scrollBy=(r,{behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+r,{adjustments:void 0,behavior:n})},this.getTotalSize=()=>{var r;const n=this.getMeasurements();let o;return n.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((r=n[n.length-1])==null?void 0:r.end)??0:Math.max(...n.slice(-this.options.lanes).map(i=>i.end)),Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(r,{adjustments:n,behavior:o})=>{this.options.scrollToFn(r,{behavior:o,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const BQ=(e,t,r,n)=>{for(;e<=t;){const o=(e+t)/2|0,i=r(o);if(i<n)e=o+1;else if(i>n)t=o-1;else return o}return e>0?e-1:0};function JVe({measurements:e,outerSize:t,scrollOffset:r}){const n=e.length-1,i=BQ(0,n,l=>e[l].start,r);let a=i;for(;a<n&&e[a].end<r+t;)a++;return{startIndex:i,endIndex:a}}const eUe=typeof document<"u"?m.useLayoutEffect:m.useEffect;function tUe(e){const t=m.useReducer(()=>({}),{})[1],r={...e,onChange:(o,i)=>{var a;i?Hn.flushSync(t):t(),(a=e.onChange)==null||a.call(e,o,i)}},[n]=m.useState(()=>new ZVe(r));return n.setOptions(r),m.useEffect(()=>n._didMount(),[]),eUe(()=>n._willUpdate()),n}function rUe(e){return tUe({observeElementRect:GVe,observeElementOffset:KVe,scrollToFn:QVe,...e})}const eb={};function yH(e){if(eb[e]!==void 0)return eb[e];const t=e.split(/-[A-Z]+/);if(t.length!==2)return eb[e]=null,eb[e];const r=t[0],n=r.split(":"),o=n[n.length-1],i=n.length>1?n.slice(0,n.length-1):[],a=e.substring(r.length+1),[l,...s]=a.split("-"),u=a.substring(l.length).split("--"),c=[],d=[];return u.forEach(f=>{!f.includes("-")&&f?c.push(f):f.split("-").forEach(p=>{p&&d.push(p)})}),eb[e]={classes:i,attribute:o,component:l,traits:d,states:c},eb[e]}function jQ(e=[]){const t=[];for(let r=1;r<=e.length;r++)for(let n=0;n<=e.length-r;n++)t.push(e.slice(n,n+r));return t.sort((r,n)=>n.length-r.length)}function nUe(e,t=[]){const r=yH(e);if(!r)return;const n=jQ(r.states),o=jQ(r.traits),i=[];o.forEach(d=>{let f="";d.forEach(p=>{f=`${f}-${p}`}),i.push(f)}),i.push("");const a=[];n.forEach(d=>{let f="";d.forEach(p=>{f=`${f}--${p}`}),a.push(f)}),a.push("");const l=[r.component,...r.classes],s=[];a.forEach(d=>{i.forEach(f=>{l.forEach(p=>{s.push(`${r.attribute}-${p}${f}${d}`)})})});let u;for(let d=t.length-1;d>=0;d--){const f=t[d];let p=s.find(g=>f[g]!==void 0);if(p){u=p;break}}return{forValue:s[0],matchedValue:u,from:s}}const oUe="xmlui",iUe=/(\$[a-zA-Z][a-zA-Z0-9-_]*)/g,aUe=/^(true|false)$/,wH=/^\d*\*$/,lUe={cssProps:{},issues:new Set};function MQ(e=Jt,t){const r={cssProps:{},issues:new Set};w(t)&&(r.cssProps.flexShrink=0),g("width");const n=v(r.cssProps.width,t);n!==null&&(r.cssProps.flex=n,r.cssProps.flexShrink=1),g("minWidth"),g("maxWidth"),g("height");const o=b(r.cssProps.height,t);o!==null&&(r.cssProps.flex=o,r.cssProps.flexShrink=1),g("minHeight"),g("maxHeight"),g("top"),g("right"),g("bottom"),g("left"),g("gap"),g("padding");const i=p("paddingHorizontal");i&&(r.cssProps.paddingLeft=i,r.cssProps.paddingRight=i),g("paddingRight"),g("paddingLeft");const a=p("paddingVertical");a&&(r.cssProps.paddingTop=a,r.cssProps.paddingBottom=a),g("paddingTop"),g("paddingBottom"),g("margin");const l=p("marginHorizontal");l&&(r.cssProps.marginLeft=l,r.cssProps.marginRight=l),g("marginRight"),g("marginLeft");const s=p("marginVertical");s&&(r.cssProps.marginTop=s,r.cssProps.marginBottom=s),g("marginTop"),g("marginBottom"),g("border");const u=p("borderHorizontal");u&&(r.cssProps.borderLeft=u,r.cssProps.borderRight=u),g("borderRight"),g("borderLeft");const c=p("borderVertical");c&&(r.cssProps.borderTop=c,r.cssProps.borderBottom=c),g("borderTop"),g("borderBottom"),g("borderColor"),g("borderStyle"),g("borderWidth"),g("borderRadius"),g("radiusTopLeft","borderTopLeftRadius"),g("radiusTopRight","borderTopRightRadius"),g("radiusBottomLeft","borderBottomLeftRadius"),g("radiusBottomRight","borderBottomRightRadius"),g("color"),g("fontFamily"),g("fontSize"),g("fontWeight"),g("fontStyle"),g("fontVariant"),g("lineBreak"),g("textDecoration"),g("textDecorationLine"),g("textDecorationColor"),g("textDecorationStyle"),g("textDecorationThickness"),g("textIndent"),g("textShadow"),g("textUnderlineOffset"),g("userSelect"),g("letterSpacing"),g("textTransform"),g("lineHeight"),g("textAlign"),g("textAlignLast"),g("textWrap"),g("wordBreak"),g("wordSpacing"),g("wordWrap"),g("writingMode"),g("backgroundColor"),g("background"),g("boxShadow"),g("direction"),g("overflowX"),g("overflowY"),g("zIndex"),g("opacity"),g("zoom"),g("cursor"),g("whiteSpace"),g("outline"),g("outlineWidth"),g("outlineColor"),g("outlineStyle"),g("outlineOffset");const d=p("wrapContent");d&&(r.cssProps.flexWrap=d==="true"?"wrap":"nowrap"),g("canShrink","flexShrink");const f=p("canShrink");if(f&&(r.cssProps.flexShrink=f==="true"?1:0),Cp(r.cssProps)&&Cp(r.issues))return lUe;return r;function p(k){var S,O;const E=_();if(((S=t==null?void 0:t.mediaSize)==null?void 0:S.sizeIndex)!==void 0){const A=(O=t.mediaSize)==null?void 0:O.sizeIndex,I=_("xs"),H=_("sm"),P=_("md"),L=_("lg"),B=_("xl"),z=_("xxl");let j;switch(A){case 0:j=I??H??P;break;case 1:j=H??P;break;case 2:j=P;break;case 3:j=L;break;case 4:j=B??L;break;case 5:j=z??B??L;break}return j??E}return E;function _(A=""){const I=A?`${k}-${A}`:k;let H=e[I];if(H==null)return;typeof H=="string"?H=H.trim():H=H.toString();const P=H?H.replace(iUe,B=>bl(B.trim())):void 0;if(H!==P)return P;const L=sUe[k];if(!L||L.length===0)return P;for(const B of L)if(B.test(P))return P;return r.issues.add(I),P}}function g(k,E=""){const _=p(k);_&&(r.cssProps[E||k]=_)}function v(k,E){return k&&w(E)==="horizontal"&&wH.test(k.toString())?y(k.toString()):null}function b(k,E){return k&&w(E)==="vertical"&&wH.test(k.toString())?y(k.toString()):null}function y(k){if(wH.test(k)){const E=k.slice(0,-1);return E===""?1:parseInt(E,10)}return null}function w(k){if(!k)return;let E=(k==null?void 0:k.type)==="Stack"&&(k==null?void 0:k.orientation);return E==null?void 0:E.toString()}}function bl(e){return`var(--${oUe}-${e.substring(1)})`}const sUe={width:[],minWidth:[],maxWidth:[],height:[],minHeight:[],maxHeight:[],gap:[],top:[],right:[],bottom:[],left:[],border:[],borderTop:[],borderRight:[],borderBottom:[],borderLeft:[],borderColor:[],borderStyle:[],borderWidth:[],borderHorizontal:[],borderVertical:[],borderRadius:[],radiusTopLeft:[],radiusTopRight:[],radiusBottomLeft:[],radiusBottomRight:[],padding:[],paddingHorizontal:[],paddingVertical:[],paddingTop:[],paddingRight:[],paddingBottom:[],paddingLeft:[],margin:[],marginHorizontal:[],marginVertical:[],marginTop:[],marginRight:[],marginBottom:[],marginLeft:[],backgroundColor:[],background:[],boxShadow:[],direction:[],overflowX:[],overflowY:[],zIndex:[],opacity:[],color:[],fontFamily:[],fontSize:[],fontWeight:[],fontStyle:[aUe],fontVariant:[],lineBreak:[],textDecoration:[],userSelect:[],letterSpacing:[],textTransform:[],lineHeight:[],textAlign:[],textWrap:[],textAlignLast:[],textIndent:[],textShadow:[],wordBreak:[],wordSpacing:[],wordWrap:[],writingMode:[],wrapContent:[],canShrink:[],cursor:[],zoom:[],whiteSpace:[],textDecorationLine:[],textDecorationColor:[],textDecorationStyle:[],textDecorationThickness:[],textUnderlineOffset:[],outline:[],outlineWidth:[],outlineColor:[],outlineStyle:[],outlineOffset:[],transition:[]};function CH(e){return typeof e=="string"&&(e==null?void 0:e.startsWith("$"))}function kH(e,t={}){let r=e;CH(e)&&(r=e.substring(1));const n=t[r];return typeof n=="string"&&CH(n)?kH(n,t):n}function uUe(e){if(!e)return{};const t=xy(e);return{...Zp("color-primary",t),...Zp("color-secondary",t),...Zp("color-info",t),...Zp("color-success",t),...Zp("color-warn",t),...Zp("color-danger",t),...Zp("color-surface",t,{distributeEven:!0})}}function cUe(e){if(!e)return{};const r=xy(e)["space-base"];if(!r||typeof r!="string")return{};let n=r.trim();n.startsWith(".")&&(n=`0${n}`);const o=parseFloat(n);let i=n.replace(o+"","")||"px";if(Number.isNaN(o))return{};const a=[0,.5,1,1.5,2,2.5,3,3.5,4,5,6,7,8,9,10,11,12,14,16,20,24,28,32,36,40,44,48,52,56,60,64,72,80,96],l={};return a.forEach(s=>{l[`space-${(s+"").replace(".","_")}`]=`${s*o}${i}`}),l}function dUe(e){if(!e)return{};const r=xy(e).fontSize;if(!r||typeof r!="string")return{};let n=r.trim();n.startsWith(".")&&(n=`0${n}`);const o=parseFloat(n);let i=n.replace(o+"","")||"px";if(Number.isNaN(o))return{};const a={};return a["fontSize-large"]=`${1.5*o}${i}`,a["fontSize-medium"]=`${1.25*o}${i}`,a["fontSize-semimedium"]=`${1.125*o}${i}`,a["fontSize-normal"]=r,a["fontSize-small"]=`${.875*o}${i}`,a["fontSize-code"]=`${.85*o}${i}`,a["fontSize-smaller"]=`${.75*o}${i}`,a["fontSize-tiny"]=`${.625*o}${i}`,a}function fUe(e){if(!e)return{};const r=xy(e)["fontSize-Text"];if(!r||typeof r!="string")return{};const n={};return n["fontSize-Text-keyboard"]=`calc(${bl("$fontSize-Text")} * 0.875)`,n["fontSize-Text-sample"]=`calc(${bl("$fontSize-Text")} * 0.875)`,n["fontSize-Text-sup"]=`calc(${bl("$fontSize-Text")} * 0.625)`,n["fontSize-Text-sub"]=`calc(${bl("$fontSize-Text")} * 0.625)`,n["fontSize-Text-title"]=`calc(${bl("$fontSize-Text")} * 1.5)`,n["fontSize-Text-subtitle"]=`calc(${bl("$fontSize-Text")} * 1.25)`,n["fontSize-Text-small"]=`calc(${bl("$fontSize-Text")} * 0.875)`,n["fontSize-Text-placeholder"]=`calc(${bl("$fontSize-Text")} * 0.875)`,n["fontSize-Text-paragraph"]=bl("$fontSize-Text"),n["fontSize-Text-subheading"]=`calc(${bl("$fontSize-Text")} * 0.625)`,n["fontSize-Text-tableheading"]=`calc(${bl("$fontSize-Text")} * 0.625)`,n["fontSize-Text-secondary"]=`calc(${bl("$fontSize-Text")} * 0.875)`,n}function mUe(e){if(!e)return{};const t=xy(e),r=["primary","secondary","attention"];let n={};return r.forEach(o=>{const i=TH(_H(t,`color-Button-${o}-solid`),s=>({[`backgroundColor-Button-${o}-solid`]:s.base,[`backgroundColor-Button-${o}-solid--hover`]:s.tone1,[`backgroundColor-Button-${o}-solid--active`]:s.tone2,[`borderColor-Button-${o}-solid`]:s.base,[`borderColor-Button-${o}-solid--hover`]:s.base,[`borderColor-Button-${o}-solid--active`]:s.base,[`textColor-Button-${o}-solid`]:s.tone3,[`textColor-Button-${o}-solid--hover`]:s.tone3,[`textColor-Button-${o}-solid--active`]:s.tone3})),a=TH(_H(t,`color-Button-${o}-outlined`),s=>({[`backgroundColor-Button-${o}-outlined--hover`]:s.alpha1,[`backgroundColor-Button-${o}-outlined--active`]:s.alpha2,[`borderColor-Button-${o}-outlined`]:s.base,[`borderColor-Button-${o}-outlined--hover`]:s.tone1,[`borderColor-Button-${o}-outlined--active`]:s.tone2,[`textColor-Button-${o}-outlined`]:s.base,[`textColor-Button-${o}-outlined--hover`]:s.tone1,[`textColor-Button-${o}-outlined--active`]:s.tone2})),l=TH(_H(t,`color-Button-${o}-ghost`),s=>({[`backgroundColor-Button-${o}-ghost--active`]:s.alpha2,[`backgroundColor-Button-${o}-ghost--hover`]:s.alpha1,[`textColor-Button-${o}-ghost`]:s.base,[`textColor-Button-${o}-ghost--hover`]:s.tone1,[`textColor-Button-${o}-ghost--active`]:s.tone2}));n={...n,...i,...a,...l}}),n}const pUe=/^padding-(?!(?:horizontal|vertical|left|right|top|bottom)-)(.+)$/,hUe=/^paddingHorizontal-(.+)$/,gUe=/^paddingVertical-(.+)$/;function zQ(e){if(!e)return{};const t={...e};return Object.entries(e).forEach(([r,n])=>{var o,i,a,l,s,u,c,d,f,p,g,v,b,y,w,k,E,_,S,O;if(n==null){delete t[r];return}let A=hUe.exec(r);if(A){const B=A[1];t[o=`paddingLeft-${B}`]??(t[o]=n),t[i=`paddingRight-${B}`]??(t[i]=n)}if(A=gUe.exec(r),A){const B=A[1];t[a=`paddingTop-${B}`]??(t[a]=n),t[l=`paddingBottom-${B}`]??(t[l]=n)}if(A=pUe.exec(r),!A)return;const I=A[1],H=e[`paddingHorizontal-${I}`],P=e[`paddingVertical-${I}`],L=n.trim().replace(/ +/g," ").split(" ");switch(L.length){case 1:t[s=`paddingTop-${I}`]??(t[s]=P??L[0]),t[u=`paddingRight-${I}`]??(t[u]=H??L[0]),t[c=`paddingBottom-${I}`]??(t[c]=P??L[0]),t[d=`paddingLeft-${I}`]??(t[d]=H??L[0]);break;case 2:t[f=`paddingTop-${I}`]??(t[f]=P??L[0]),t[p=`paddingRight-${I}`]??(t[p]=H??L[1]),t[g=`paddingBottom-${I}`]??(t[g]=P??L[0]),t[v=`paddingLeft-${I}`]??(t[v]=H??L[1]);break;case 3:t[b=`paddingTop-${I}`]??(t[b]=P??L[0]),t[y=`paddingRight-${I}`]??(t[y]=H??L[1]),t[w=`paddingBottom-${I}`]??(t[w]=P??L[2]),t[k=`paddingLeft-${I}`]??(t[k]=H??L[1]);break;case 4:t[E=`paddingTop-${I}`]??(t[E]=P??L[0]),t[_=`paddingRight-${I}`]??(t[_]=H??L[1]),t[S=`paddingBottom-${I}`]??(t[S]=P??L[2]),t[O=`paddingLeft-${I}`]??(t[O]=H??L[3]);break;default:return}}),t}const vUe=/^border-(.+)$/,bUe=/^borderWidth-(.+)$/,xUe=/^borderHorizontalWidth-(.+)$/,yUe=/^borderVerticalWidth-(.+)$/,wUe=/^borderStyle-(.+)$/,CUe=/^borderHorizontalStyle-(.+)$/,kUe=/^borderVerticalStyle-(.+)$/,_Ue=/^borderLeft-(.+)$/,TUe=/^borderRight-(.+)$/,SUe=/^borderTop-(.+)$/,EUe=/^borderBottom-(.+)$/,OUe=/^borderHorizontal-(.+)$/,AUe=/^borderVertical-(.+)$/,IUe=/^borderColor-(.+)$/,RUe=/^borderHorizontalColor-(.+)$/,PUe=/^borderVerticalColor-(.+)$/;function FQ(e){if(!e)return{};const t={...e};return Object.entries(e).forEach(([n,o])=>{var i,a,l;let s=vUe.exec(n);if(s){const u=s[1];t[`borderLeft-${u}`]=o,t[`borderRight-${u}`]=o,t[`borderTop-${u}`]=o,t[`borderBottom-${u}`]=o;const c=r(o);t[i=`borderWidth-${u}`]??(t[i]=c.thickness),t[a=`borderStyle-${u}`]??(t[a]=c.style),t[l=`borderColor-${u}`]??(t[l]=c.color)}if(s=bUe.exec(n),s){const u=s[1];t[`borderLeftWidth-${u}`]=o,t[`borderRightWidth-${u}`]=o,t[`borderTopWidth-${u}`]=o,t[`borderBottomWidth-${u}`]=o}if(s=wUe.exec(n),s){const u=s[1];t[`borderLeftStyle-${u}`]=o,t[`borderRightStyle-${u}`]=o,t[`borderTopStyle-${u}`]=o,t[`borderBottomStyle-${u}`]=o}if(s=IUe.exec(n),s){const u=s[1];t[`borderLeftColor-${u}`]=o,t[`borderRightColor-${u}`]=o,t[`borderTopColor-${u}`]=o,t[`borderBottomColor-${u}`]=o}if(s=OUe.exec(n),s){const u=s[1];t[`borderLeft-${u}`]=o,t[`borderRight-${u}`]=o;const c=r(o);c.thickness&&(t[`borderLeftWidth-${u}`]=c.thickness,t[`borderRightWidth-${u}`]=c.thickness),c.style&&(t[`borderLeftStyle-${u}`]=c.style,t[`borderRightStyle-${u}`]=c.style),c.color&&(t[`borderLeftColor-${u}`]=c.color,t[`borderRightColor-${u}`]=c.color)}if(s=AUe.exec(n),s){const u=s[1];t[`borderTop-${u}`]=o,t[`borderBottom-${u}`]=o;const c=r(o);c.thickness&&(t[`borderTopWidth-${u}`]=c.thickness,t[`borderBottomWidth-${u}`]=c.thickness),c.style&&(t[`borderTopStyle-${u}`]=c.style,t[`borderBottomStyle-${u}`]=c.style),c.color&&(t[`borderTopColor-${u}`]=c.color,t[`borderBottomColor-${u}`]=c.color)}if(s=_Ue.exec(n),s){const u=s[1],c=r(o);c.thickness&&!e[`borderLeftWidth-${u}`]&&(t[`borderLeftWidth-${u}`]=c.thickness),c.style&&!e[`borderLeftStyle-${u}`]&&(t[`borderLeftStyle-${u}`]=c.style),c.color&&!e[`borderLeftColor-${u}`]&&(t[`borderLeftColor-${u}`]=c.color)}if(s=TUe.exec(n),s){const u=s[1],c=r(o);c.thickness&&(t[`borderRightWidth-${u}`]=c.thickness),c.style&&(t[`borderRightStyle-${u}`]=c.style),c.color&&(t[`borderRightColor-${u}`]=c.color)}if(s=SUe.exec(n),s){const u=s[1],c=r(o);c.thickness&&(t[`borderTopWidth-${u}`]=c.thickness),c.style&&(t[`borderTopStyle-${u}`]=c.style),c.color&&(t[`borderTopColor-${u}`]=c.color)}if(s=EUe.exec(n),s){const u=s[1],c=r(o);c.thickness&&(t[`borderBottomWidth-${u}`]=c.thickness),c.style&&(t[`borderBottomStyle-${u}`]=c.style),c.color&&(t[`borderBottomColor-${u}`]=c.color)}if(s=xUe.exec(n),s){const u=s[1];t[`borderLeftWidth-${u}`]=o,t[`borderRightWidth-${u}`]=o}if(s=yUe.exec(n),s){const u=s[1];t[`borderTopWidth-${u}`]=o,t[`borderBottomWidth-${u}`]=o}if(s=CUe.exec(n),s){const u=s[1];t[`borderLeftStyle-${u}`]=o,t[`borderRightStyle-${u}`]=o}if(s=kUe.exec(n),s){const u=s[1];t[`borderTopStyle-${u}`]=o,t[`borderBottomStyle-${u}`]=o}if(s=RUe.exec(n),s){const u=s[1];t[`borderLeftColor-${u}`]=o,t[`borderRightColor-${u}`]=o}if(s=PUe.exec(n),s){const u=s[1];t[`borderTopColor-${u}`]=o,t[`borderBottomColor-${u}`]=o}}),t;function r(n){var o,i,a;try{const s=new $q(n).parseBorder(),u={style:s.styleValue,thickness:s.widthValue!==void 0?`${s.widthValue}${s.widthUnit??"px"}`:void 0,color:s.color===void 0?void 0:typeof s.color=="string"?s.color:s.color.toString()};if(s.themeId1&&s.themeId2&&s.themeId3)return{thickness:s.themeId1.id,style:s.themeId2.id,color:s.themeId3.id};if(s.themeId1&&s.themeId2)return u.thickness?{thickness:u.thickness,style:s.themeId1.id,color:s.themeId2.id}:u.style?{thickness:s.themeId1.id,style:u.style,color:s.themeId2.id}:{thickness:s.themeId1.id,style:s.themeId2.id,color:u.color};if(s.themeId1){if(u.thickness&&u.style)return{thickness:u.thickness,style:u.style,color:s.themeId1.id};if(u.thickness&&u.color)return{thickness:u.thickness,style:s.themeId1.id,color:u.color};if(u.style&&u.color)return{thickness:s.themeId1.id,style:u.style,color:u.color}}return{thickness:(o=u.thickness)==null?void 0:o.trim(),style:(i=u.style)==null?void 0:i.trim(),color:(a=u.color)==null?void 0:a.trim()}}catch{return{thickness:void 0,style:void 0,color:void 0}}}}function _H(e,t){if(e[t])return e[t];const r=yH(t);if(!r)return null;let n=null,o=null;return Object.keys(e).forEach(i=>{const a=yH(i);if(!(!a||a.component!==r.component||a.attribute!==r.attribute)&&!a.states.length&&a.traits.every(l=>r.traits.includes(l))&&(!n||n.traits.length<=a.traits.length)){n=a,o=i;return}}),o?e[o]:null}function xy(e){const t={};return Object.keys(e).forEach(r=>{t[r]=kH(r,e)}),t}function Zp(e,t,r={distributeEven:!1}){try{const{distributeEven:n}=r,o=t[e];if(!o||typeof o!="string")return{};const i=hv(o);let a,l,s,u,c,d,f,p,g,v,b,y,w;if(n)a=i.lightness(100),l=i.lightness(98),s=i.lightness(95),u=i.lightness(83),c=i.lightness(75),d=i.lightness(63),f=i.lightness(52),p=i.lightness(40),g=i.lightness(32),v=i.lightness(27),b=i.lightness(16),y=i.lightness(13),w=i.lightness(9);else{const k=i.hsl().l(),E=k/5,_=(100-k)/5;a=i.lightness(100),l=i.lightness(k+_*4.5),s=i.lightness(k+_*4),u=i.lightness(k+_*3),c=i.lightness(k+_*2),d=i.lightness(k+_*1),f=i.lightness(k),p=i.lightness(k-E*1),g=i.lightness(k-E*2),v=i.lightness(k-E*3),b=i.lightness(k-E*4),y=i.lightness(k-E*4.5),w=i.lightness(k-E*5)}return{[`const-${e}-0`]:a.toString(),[`const-${e}-50`]:l.toString(),[`const-${e}-100`]:s.toString(),[`const-${e}-200`]:u.toString(),[`const-${e}-300`]:c.toString(),[`const-${e}-400`]:d.toString(),[`const-${e}-500`]:f.toString(),[`const-${e}-600`]:p.toString(),[`const-${e}-700`]:g.toString(),[`const-${e}-800`]:v.toString(),[`const-${e}-900`]:b.toString(),[`const-${e}-950`]:y.toString(),[`const-${e}-1000`]:w.toString()}}catch{return console.error("Error generating base tones for color:",e),{}}}function TH(e,t){const r=HUe(e);return r?t(r):{}}function HUe(e){if(!e||typeof e!="string"||e.startsWith("$"))return null;const t=hv(e);let r,n,o;t.isLight()?(r=t.darken(.2).toString(),n=t.darken(.1).toString(),o=t.darken(.95).toString()):(r=t.lighten(.2).toString(),n=t.lighten(.1).toString(),o=t.lighten(.95).toString());const i=t.alpha(.1).toString(),a=t.alpha(.2).toString();return{base:e,tone1:r,tone2:n,tone3:o,alpha1:i,alpha2:a}}const oc={themeVars:`'{"Input:borderRadius-Checkbox-default": "var(--xmlui-borderRadius-Checkbox-default)", "Input:borderColor-Checkbox-default": "var(--xmlui-borderColor-Checkbox-default)", "Input:backgroundColor-Checkbox-default": "var(--xmlui-backgroundColor-Checkbox-default)", "Input:outlineWidth-Checkbox-default--focus": "var(--xmlui-outlineWidth-Checkbox-default--focus)", "Input:outlineColor-Checkbox-default--focus": "var(--xmlui-outlineColor-Checkbox-default--focus)", "Input:outlineStyle-Checkbox-default--focus": "var(--xmlui-outlineStyle-Checkbox-default--focus)", "Input:outlineOffset-Checkbox-default--focus": "var(--xmlui-outlineOffset-Checkbox-default--focus)", "Input:borderColor-Checkbox-default--hover": "var(--xmlui-borderColor-Checkbox-default--hover)", "Input:backgroundColor-Checkbox--disabled": "var(--xmlui-backgroundColor-Checkbox--disabled)", "Input:borderColor-Checkbox--disabled": "var(--xmlui-borderColor-Checkbox--disabled)", "Input:borderRadius-Checkbox-error": "var(--xmlui-borderRadius-Checkbox-error)", "Input:borderColor-Checkbox-error": "var(--xmlui-borderColor-Checkbox-error)", "Input:backgroundColor-Checkbox-error": "var(--xmlui-backgroundColor-Checkbox-error)", "Input:outlineWidth-Checkbox-error--focus": "var(--xmlui-outlineWidth-Checkbox-error--focus)", "Input:outlineColor-Checkbox-error--focus": "var(--xmlui-outlineColor-Checkbox-error--focus)", "Input:outlineStyle-Checkbox-error--focus": "var(--xmlui-outlineStyle-Checkbox-error--focus)", "Input:outlineOffset-Checkbox-error--focus": "var(--xmlui-outlineOffset-Checkbox-error--focus)", "Input:borderRadius-Checkbox-warning": "var(--xmlui-borderRadius-Checkbox-warning)", "Input:borderColor-Checkbox-warning": "var(--xmlui-borderColor-Checkbox-warning)", "Input:backgroundColor-Checkbox-warning": "var(--xmlui-backgroundColor-Checkbox-warning)", "Input:outlineWidth-Checkbox-warning--focus": "var(--xmlui-outlineWidth-Checkbox-warning--focus)", "Input:outlineColor-Checkbox-warning--focus": "var(--xmlui-outlineColor-Checkbox-warning--focus)", "Input:outlineStyle-Checkbox-warning--focus": "var(--xmlui-outlineStyle-Checkbox-warning--focus)", "Input:outlineOffset-Checkbox-warning--focus": "var(--xmlui-outlineOffset-Checkbox-warning--focus)", "Input:borderRadius-Checkbox-success": "var(--xmlui-borderRadius-Checkbox-success)", "Input:borderColor-Checkbox-success": "var(--xmlui-borderColor-Checkbox-success)", "Input:backgroundColor-Checkbox-success": "var(--xmlui-backgroundColor-Checkbox-success)", "Input:outlineWidth-Checkbox-success--focus": "var(--xmlui-outlineWidth-Checkbox-success--focus)", "Input:outlineColor-Checkbox-success--focus": "var(--xmlui-outlineColor-Checkbox-success--focus)", "Input:outlineStyle-Checkbox-success--focus": "var(--xmlui-outlineStyle-Checkbox-success--focus)", "Input:outlineOffset-Checkbox-success--focus": "var(--xmlui-outlineOffset-Checkbox-success--focus)", "backgroundColor-indicator-Checkbox": "var(--xmlui-backgroundColor-indicator-Checkbox)", "Input:borderColor-checked-Checkbox": "var(--xmlui-borderColor-checked-Checkbox)", "Input:backgroundColor-checked-Checkbox": "var(--xmlui-backgroundColor-checked-Checkbox)", "Input:borderColor-checked-Checkbox-error": "var(--xmlui-borderColor-checked-Checkbox-error)", "Input:backgroundColor-checked-Checkbox-error": "var(--xmlui-backgroundColor-checked-Checkbox-error)", "Input:borderColor-checked-Checkbox-warning": "var(--xmlui-borderColor-checked-Checkbox-warning)", "Input:backgroundColor-checked-Checkbox-warning": "var(--xmlui-backgroundColor-checked-Checkbox-warning)", "Input:borderColor-checked-Checkbox-success": "var(--xmlui-borderColor-checked-Checkbox-success)", "Input:backgroundColor-checked-Checkbox-success": "var(--xmlui-backgroundColor-checked-Checkbox-success)", "Input:backgroundColor-Switch": "var(--xmlui-backgroundColor-Switch)", "Input:borderColor-Switch": "var(--xmlui-borderColor-Switch)", "backgroundColor-indicator-Switch": "var(--xmlui-backgroundColor-indicator-Switch)", "backgroundColor-checked-Switch": "var(--xmlui-backgroundColor-checked-Switch)", "backgroundColor-indicator-checked-Switch": "var(--xmlui-backgroundColor-indicator-checked-Switch)", "Input:borderColor-Switch-default--hover": "var(--xmlui-borderColor-Switch-default--hover)", "Input:backgroundColor-Switch--disabled": "var(--xmlui-backgroundColor-Switch--disabled)", "Input:borderColor-Switch--disabled": "var(--xmlui-borderColor-Switch--disabled)", "Input:borderColor-checked-Switch": "var(--xmlui-borderColor-checked-Switch)", "Input:backgroundColor-checked-Switch": "var(--xmlui-backgroundColor-checked-Switch)", "Input:borderColor-checked-Switch-error": "var(--xmlui-borderColor-checked-Switch-error)", "Input:backgroundColor-checked-Switch-error": "var(--xmlui-backgroundColor-checked-Switch-error)", "Input:borderColor-checked-Switch-warning": "var(--xmlui-borderColor-checked-Switch-warning)", "Input:backgroundColor-checked-Switch-warning": "var(--xmlui-backgroundColor-checked-Switch-warning)", "Input:borderColor-checked-Switch-success": "var(--xmlui-borderColor-checked-Switch-success)", "Input:backgroundColor-checked-Switch-success": "var(--xmlui-backgroundColor-checked-Switch-success)", "Input:outlineWidth-Switch--focus": "var(--xmlui-outlineWidth-Switch--focus)", "Input:outlineColor-Switch--focus": "var(--xmlui-outlineColor-Switch--focus)", "Input:outlineStyle-Switch--focus": "var(--xmlui-outlineStyle-Switch--focus)", "Input:outlineOffset-Switch--focus": "var(--xmlui-outlineOffset-Switch--focus)", "backgroundColor-Switch-indicator--disabled": "var(--xmlui-backgroundColor-Switch-indicator--disabled)", "Input:borderColor-Switch-error": "var(--xmlui-borderColor-Switch-error)", "Input:borderColor-Switch-warning": "var(--xmlui-borderColor-Switch-warning)", "Input:borderColor-Switch-success": "var(--xmlui-borderColor-Switch-success)"}'`,resetAppearance:"_resetAppearance_ga4w0_13",label:"_label_ga4w0_21",inputContainer:"_inputContainer_ga4w0_25",checkbox:"_checkbox_ga4w0_33",error:"_error_ga4w0_62",warning:"_warning_ga4w0_73",valid:"_valid_ga4w0_84",switch:"_switch_ga4w0_144"},xl={initialValue:!1,value:!1,enabled:!0,validationStatus:"none",indeterminate:!1},Jp=m.forwardRef(function({id:t,initialValue:r=xl.initialValue,value:n=xl.value,enabled:o=xl.enabled,style:i,readOnly:a,validationStatus:l=xl.validationStatus,updateState:s=bt,onDidChange:u=bt,onFocus:c=bt,onBlur:d=bt,variant:f="checkbox",indeterminate:p=xl.indeterminate,className:g,label:v,labelPosition:b="end",labelWidth:y,labelBreak:w,required:k,registerComponentApi:E,inputRenderer:_},S){const O=m.useId(),A=t||O,I=ee.useRef(null);m.useEffect(()=>{s({value:r},{initial:!0})},[r,s]);const H=m.useCallback(W=>{var M;((M=I.current)==null?void 0:M.checked)!==W&&(s({value:W}),u(W))},[u,s]),P=m.useCallback(W=>{a||(s({value:W.target.checked}),u(W.target.checked))},[u,a,s]),L=m.useCallback(()=>{c==null||c()},[c]),B=m.useCallback(()=>{d==null||d()},[d]);m.useEffect(()=>{typeof p=="boolean"&&I.current&&(I.current.indeterminate=p)},[p]);const z=m.useCallback(()=>{var W;(W=I.current)==null||W.focus()},[]),j=Mt(W=>{H(W)});m.useEffect(()=>{E==null||E({focus:z,setValue:j})},[z,E,j]);const q=m.useMemo(()=>C.jsx("input",{id:A,ref:I,type:"checkbox",role:f,checked:n,disabled:!o,required:k,readOnly:a,"aria-readonly":a,"aria-checked":n,onChange:P,onFocus:L,onBlur:B,className:ze(oc.resetAppearance,g,{[oc.checkbox]:f==="checkbox",[oc.switch]:f==="switch",[oc.error]:l==="error",[oc.warning]:l==="warning",[oc.valid]:l==="valid"})}),[A,g,o,B,L,P,a,k,l,n,f]);return C.jsx(Ji,{ref:S,id:A,label:v,style:i,labelPosition:b,labelWidth:y,labelBreak:w,required:k,enabled:o,isInputTemplateUsed:!!_,shrinkToLabel:!0,labelStyle:{pointerEvents:a?"none":void 0},children:_?C.jsxs("label",{className:oc.label,children:[C.jsx("div",{className:oc.inputContainer,children:q}),_({$checked:n,$setChecked:j})]}):q})});function LUe({items:e=Er,visibleItems:t=e,rowsSelectable:r,enableMultiRowSelection:n,rowDisabledPredicate:o,onSelectionDidChange:i}){const[a,l]=m.useState(-1),[s,u]=m.useState(null),{selectedItems:c,setSelectedRowIds:d,refreshSelection:f,idKey:p}=gQ(),g=m.useMemo(()=>t.map(P=>P[p]),[p,t]);m.useEffect(()=>{f(r?e:Er)},[f,e,r]);const v=Zc(n);m.useEffect(()=>{v&&!n&&c.length>1&&d([c[0][p]])},[n,p,v,c,d]),m.useEffect(()=>{r&&a!==-1&&!g[a]&&g[0]&&l(0)},[a,r,l,g]);const b=Mt((P,L={})=>{if(!r)return;const B=g[P],{shiftKey:z,metaKey:j,ctrlKey:q}=L,W=!n||!z&&!j&&!q;let M,V=[...c.map(N=>N[p])];if(W)M={from:B,to:B},V=[B];else if(z){let N,Y,G,F;if(s){let J=g.indexOf(s.from),ie=g.indexOf(s.to),oe=Math.min(J,ie),le=Math.max(J,ie);const ce=g.slice(oe,le+1);V=V.filter(X=>!ce.includes(X)),G=s.from,F=B;let pe=g.indexOf(G),me=g.indexOf(F);N=Math.min(pe,me),Y=Math.max(pe,me)}else G=B,F=B,N=P,Y=P;const K=g.slice(N,Y+1);V=BPe(V,K),M={from:G,to:F}}else M={from:B,to:B},j||q?V.includes(B)?V=V.filter(N=>N!==B):V.push(B):V=[B];l(P),d(cU(V)),u(M)}),y=Mt((P,L)=>{if(!r)return;const B=g.indexOf(P[p]);b(B,L)}),w=Mt(P=>{if(r){if(P.key==="ArrowDown"){P.preventDefault();let L=Math.min(t.length-1,a+1);a!==t.length-1&&b(L,P)}if(P.key==="PageDown"){P.preventDefault();const L=Math.min(t.length-1,a+8);b(L,P)}if(P.key==="ArrowUp"){P.preventDefault();let L=Math.max(0,a-1);a>=0&&b(L,P)}if(P.key==="PageUp"){P.preventDefault();const L=Math.max(0,a-8);b(L,P)}}});m.useEffect(()=>{i==null||i(c)},[c,i]);const k=Mt(P=>{r&&(!n&&P||d(P?e.filter(L=>o?!o(L):!0).map(L=>L[p]):[]))}),E=m.useMemo(()=>{let P={};return c.forEach(L=>{P[L[p]]=!0}),P},[p,c]),_=m.useCallback(()=>c,[c]),S=m.useCallback(()=>c.map(P=>P[p]),[p,c]),O=m.useCallback(()=>{k(!1)},[k]),A=m.useCallback(()=>{k(!0)},[k]),I=m.useCallback(P=>{if(!r)return;let L=Array.isArray(P)?P:[P];L.length>1&&!n&&(L=[L[0]]),d(L)},[n,r,d]),H=m.useMemo(()=>({getSelectedItems:_,getSelectedIds:S,clearSelection:O,selectAll:A,selectId:I}),[O,S,_,A,I]);return{onKeyDown:w,focusedIndex:a,toggleRowIndex:b,toggleRow:y,checkAllRows:k,selectedRowIdMap:E,selectedItems:c,idKey:p,selectionApi:H}}function NUe(e){return!1}const $Ue=42,WQ=e=>{const t=e.getIsPinned();return{left:t==="left"?`${e.getStart("left")}px`:void 0,right:t==="right"?`${e.getAfter("right")}px`:void 0,opacity:t?.95:void 0,position:t?"sticky":"relative",backgroundColor:t?"inherit":void 0,zIndex:t?1:void 0}},DUe=m.forwardRef(({data:e=Hi.data,columns:t=Hi.columns,isPaginated:r=Hi.isPaginated,loading:n=Hi.loading,headerHeight:o,rowsSelectable:i=Hi.rowsSelectable,enableMultiRowSelection:a=Hi.enableMultiRowSelection,pageSizes:l=Hi.pageSizes,rowDisabledPredicate:s=NUe,sortBy:u,sortingDirection:c=Hi.sortingDirection,iconSortAsc:d,iconSortDesc:f,iconNoSort:p,sortingDidChange:g,willSort:v,style:b,noDataRenderer:y,autoFocus:w=Hi.autoFocus,hideHeader:k=Hi.hideHeader,hideNoDataView:E=Hi.hideNoDataView,alwaysShowSelectionHeader:_=Hi.alwaysShowSelectionHeader,registerComponentApi:S,onSelectionDidChange:O,noBottomBorder:A=Hi.noBottomBorder},I)=>{var In,Lo,Or,Ot;const{getThemeVar:H}=zr(),P=Array.isArray(e)?e:Er,L=m.useRef(null),B=I?no(L,I):L,z=m.useRef(null),j=m.useRef(null),q=u!==void 0,W=m.useMemo(()=>t||(P.length?Object.keys(P[0]).map(it=>({header:it,accessorKey:it})):Er),[t,P]);m.useEffect(()=>{w&&L.current.focus()},[w]);const[M,V]=m.useState(Er),{toggleRow:N,checkAllRows:Y,focusedIndex:G,onKeyDown:F,selectedRowIdMap:K,idKey:J,selectionApi:ie}=LUe({items:P,visibleItems:M,rowsSelectable:i,enableMultiRowSelection:a,rowDisabledPredicate:s,onSelectionDidChange:O}),oe=m.useMemo(()=>P.map((it,rt)=>({...it,order:rt+1})),[P]),[le,ce]=m.useState(u),[pe,me]=m.useState(c);m.useLayoutEffect(()=>{ce(u)},[u]),m.useLayoutEffect(()=>{me(c)},[c]);const X=m.useMemo(()=>!le||q?oe:sU(oe,le,pe==="ascending"?"asc":"desc"),[le,pe,oe,q]),Z=m.useCallback(async it=>{let rt="ascending",ut=it;le===it&&(pe==="ascending"?rt="descending":ut=void 0),await(v==null?void 0:v(ut,rt))!==!1&&(me(rt),ce(ut),g==null||g(ut,rt))},[le,v,g,pe]),te=m.useMemo(()=>W.map((it,rt)=>{const{width:ut,starSizedWidth:dt}=wr(it.width,!0,"width"),{width:Ur}=wr(it.minWidth,!1,"minWidth"),{width:ur}=wr(it.maxWidth,!1,"maxWidth");return{...it,header:it.header??it.accessorKey??" ",id:"col_"+rt,size:ut,minSize:Ur,maxSize:ur,enableResizing:it.canResize,enableSorting:it.canSort&&!!it.accessorKey,enablePinning:it.pinTo!==void 0,meta:{starSizedWidth:dt,pinTo:it.pinTo,style:it.style,accessorKey:it.accessorKey,cellRenderer:it.cellRenderer}};function wr(qr,ar,Ya){let $c,Ns;const xa=CH(qr)?H(qr):qr;if(typeof xa=="number")Ns=xa;else if(typeof xa=="string"){const Lu=xa.match(/^\s*\*\s*$/);if(ar&&Lu)$c="1*";else{const nO=xa.match(/^\s*(\d+)\s*\*\s*$/);if(ar&&nO)$c=nO[1]+"*";else{const Gm=xa.match(/^\s*(\d+)\s*(px)?\s*$/);if(Gm)Ns=Number(Gm[1]);else throw new Error(`Invalid TableColumnDef '${Ya}' value: ${xa}`)}}}return Ns===void 0&&$c===void 0&&ar&&($c="1*"),{width:Ns,starSizedWidth:$c}}}),[H,W]),se=m.useMemo(()=>i?[{id:"select",size:$Ue,enableResizing:!1,enablePinning:!0,meta:{pinTo:"left"},header:({table:rt})=>a?C.jsx(Jp,{className:ze(Fr.checkBoxWrapper,{[Fr.showInHeader]:_}),value:rt.getIsAllRowsSelected(),indeterminate:rt.getIsSomeRowsSelected(),onDidChange:()=>{const ut=rt.getRowModel().rows.every(dt=>s(dt.original)||dt.getIsSelected());Y(!ut)}}):null,cell:({row:rt})=>C.jsx(Jp,{className:Fr.checkBoxWrapper,value:rt.getIsSelected(),indeterminate:rt.getIsSomeSelected(),onDidChange:()=>{N(rt.original,{metaKey:!0})}})},...te]:te,[i,te,a,_,Y,N]),[de,ke]=m.useState({pageSize:r?l[0]:Number.MAX_VALUE,pageIndex:0}),we=Zc(r);m.useEffect(()=>{!we&&r&&ke(it=>({...it,pageSize:l[0]})),we&&!r&&ke(it=>({pageIndex:0,pageSize:Number.MAX_VALUE}))},[r,l,we]);const[Ae,Ne]=m.useState({}),Le=m.useMemo(()=>{const it=[],rt=[];return se.forEach(ut=>{var dt,Ur;((dt=ut.meta)==null?void 0:dt.pinTo)==="right"&&rt.push(ut.id),((Ur=ut.meta)==null?void 0:Ur.pinTo)==="left"&&it.push(ut.id)}),{left:it,right:rt}},[se]),Te=FVe({columns:se,data:X,getCoreRowModel:$Ve(),getPaginationRowModel:r?BVe():void 0,enableRowSelection:i,enableMultiRowSelection:a,columnResizeMode:"onChange",getRowId:m.useCallback(it=>it[J]+"",[J]),state:m.useMemo(()=>({pagination:de,rowSelection:K,columnSizing:Ae,columnPinning:Le}),[Le,Ae,de,K]),onColumnSizingChange:Ne,onPaginationChange:ke}),qe=Te.getRowModel().rows;m.useEffect(()=>{V(qe.map(it=>it.original))},[qe]);const _e=m.useContext(Ku),Me=_e&&(b==null?void 0:b.maxHeight)===void 0&&(b==null?void 0:b.height)===void 0&&(b==null?void 0:b.flex)===void 0,ye=cq(Me,L,_e),Se=rUe({count:qe.length,getScrollElement:m.useCallback(()=>Me&&(_e!=null&&_e.current)?_e==null?void 0:_e.current:L.current,[_e,Me]),scrollMargin:ye,estimateSize:m.useCallback(()=>j.current||30,[]),overscan:5}),He=Se.getVirtualItems().length>0&&((Lo=(In=Se.getVirtualItems())==null?void 0:In[0])==null?void 0:Lo.start)-ye||0,st=Se.getVirtualItems().length>0?Se.getTotalSize()-(((Ot=(Or=Se.getVirtualItems())==null?void 0:Or[Se.getVirtualItems().length-1])==null?void 0:Ot.end)-ye||0):0,lt=P.length!==0,er=m.useRef({}),mr=m.useCallback(it=>{er.current[it]=!0},[]),dr=Mt(()=>{if(!z.current)return;let it=z.current.clientWidth-1;const rt={},ut=[],dt={};Te.getAllColumns().forEach(ur=>{var Qo,wr;if(ur.columnDef.size!==void 0||er.current[ur.id])it-=Ae[ur.id]||ur.columnDef.size||0;else{ut.push(ur);let qr;(Qo=ur.columnDef.meta)!=null&&Qo.starSizedWidth?qr=Number((wr=ur.columnDef.meta)==null?void 0:wr.starSizedWidth.replace("*","").trim())||1:qr=1,dt[ur.id]=qr}});const Ur=Object.values(dt).reduce((ur,Qo)=>ur+Qo,0);ut.forEach(ur=>{rt[ur.id]=Math.floor(it*(dt[ur.id]/Ur))}),Hn.flushSync(()=>{Ne(ur=>({...ur,...rt}))})});return z_(z,dr),_n(()=>{queueMicrotask(()=>{dr()})},[dr,W]),_n(()=>{S(ie)},[S,ie]),C.jsxs("div",{className:ze(Fr.wrapper,{[Fr.noScroll]:Me}),tabIndex:-1,onKeyDown:F,ref:B,style:b,children:[C.jsxs("table",{className:Fr.table,ref:z,style:{borderRight:"1px solid transparent"},children:[!k&&C.jsx("thead",{style:{height:o},className:Fr.headerWrapper,children:Te.getHeaderGroups().map((it,rt)=>C.jsx("tr",{className:ze(Fr.headerRow,{[Fr.allSelected]:Te.getIsAllRowsSelected()}),children:it.headers.map((ut,dt)=>{var wr,qr,ar;const{width:Ur,...ur}=((wr=ut.column.columnDef.meta)==null?void 0:wr.style)||{},Qo=ut.getSize();return C.jsxs("th",{className:Fr.columnCell,colSpan:ut.colSpan,style:{position:"relative",width:Qo,...WQ(ut.column)},children:[C.jsx(BUe,{hasSorting:ut.column.columnDef.enableSorting&&!!((qr=ut.column.columnDef.meta)!=null&&qr.accessorKey),updateSorting:()=>{var Ya;return Z((Ya=ut.column.columnDef.meta)==null?void 0:Ya.accessorKey)},children:C.jsxs("div",{className:Fr.headerContent,style:ur,children:[$Q(ut.column.columnDef.header,ut.getContext()),ut.column.columnDef.enableSorting&&C.jsx("span",{style:{display:"inline-flex",maxWidth:16},children:C.jsx(jUe,{iconSortAsc:d,iconSortDesc:f,iconNoSort:p,direction:((ar=ut.column.columnDef.meta)==null?void 0:ar.accessorKey)===le?pe:void 0})})]})}),ut.column.getCanResize()&&C.jsx("div",{onDoubleClick:()=>{er.current[ut.column.id]=!1,ut.column.columnDef.size!==void 0?ut.column.resetSize():dr()},onMouseDown:Ya=>{mr(ut.column.id),ut.getResizeHandler()(Ya)},onTouchStart:Ya=>{mr(ut.column.id),ut.getResizeHandler()(Ya)},className:ze(Fr.resizer,{[Fr.isResizing]:ut.column.getIsResizing()})})]},`${ut.id}-${dt}`)})},`${it.id}-${rt}`))}),lt&&C.jsxs("tbody",{className:Fr.tableBody,children:[He>0&&C.jsx("tr",{children:C.jsx("td",{style:{height:`${He}px`}})}),Se.getVirtualItems().map(it=>{const rt=it.index,ut=qe[rt];return C.jsx("tr",{"data-index":rt,className:ze(Fr.row,{[Fr.selected]:ut.getIsSelected(),[Fr.focused]:G===rt,[Fr.disabled]:s(ut.original),[Fr.noBottomBorder]:A}),ref:dt=>{dt&&j.current===null&&(j.current=Math.round(dt.getBoundingClientRect().height)),Se.measureElement(dt)},onClick:dt=>{dt.defaultPrevented||dt.target.tagName.toLowerCase()==="input"||N(ut.original,dt)},children:ut.getVisibleCells().map((dt,Ur)=>{var wr,qr;const ur=(qr=(wr=dt.column.columnDef)==null?void 0:wr.meta)==null?void 0:qr.cellRenderer,Qo=dt.column.getSize();return C.jsx("td",{className:Fr.cell,style:{width:Qo,...WQ(dt.column)},children:C.jsx("div",{className:Fr.cellContent,children:ur?ur(dt.row.original,rt,Ur,dt==null?void 0:dt.getValue()):$Q(dt.column.columnDef.cell,dt.getContext())})},`${dt.id}-${Ur}`)})},`${ut.id}-${rt}`)}),st>0&&C.jsx("tr",{children:C.jsx("td",{style:{height:`${st}px`}})})]})]}),n&&!lt&&C.jsx("div",{className:Fr.loadingWrapper,children:C.jsx(Tx,{})}),!E&&!n&&!lt&&(y?y():C.jsx("div",{className:Fr.noRows,children:"No data available"})),r&<&&qe.length>0&&de&&C.jsxs("div",{className:Fr.pagination,children:[C.jsx("div",{style:{flex:1},children:C.jsxs("span",{className:Fr.paginationLabel,children:["Showing ",qe[0].original.order," to ",qe[qe.length-1].original.order," of"," ",P.length," entries"]})}),l.length>1&&C.jsxs("div",{children:[C.jsx("span",{className:Fr.paginationLabel,children:"Rows per page"}),C.jsx("select",{className:Fr.paginationSelect,value:de.pageSize,onChange:it=>{Te.setPageSize(Number(it.target.value))},children:l.map(it=>C.jsx("option",{value:it,children:it},it))})]}),C.jsxs("div",{className:Fr.paginationButtons,children:[C.jsx(sn,{onClick:()=>Te.setPageIndex(0),disabled:!Te.getCanPreviousPage(),type:"button",variant:"ghost",children:C.jsx(jWe,{})}),C.jsx(sn,{onClick:()=>Te.previousPage(),disabled:!Te.getCanPreviousPage(),type:"button",variant:"ghost",children:C.jsx(yQ,{})}),C.jsx(sn,{onClick:()=>Te.nextPage(),disabled:!Te.getCanNextPage(),type:"button",variant:"ghost",children:C.jsx(wQ,{})}),C.jsx(sn,{onClick:()=>Te.setPageIndex(Te.getPageCount()-1),disabled:!Te.getCanNextPage(),type:"button",variant:"ghost",children:C.jsx(MWe,{})})]})]})]})});function BUe({hasSorting:e,updateSorting:t,children:r}){return e?C.jsx("button",{className:Fr.clickableHeader,onClick:t,children:r}):C.jsx(C.Fragment,{children:r})}function jUe({direction:e,iconSortAsc:t="sortasc:Table",iconSortDesc:r="sortdesc:Table",iconNoSort:n="nosort:Table"}){return e==="ascending"?C.jsx(kt,{name:t,fallback:"sortasc",size:"12"}):e==="descending"?C.jsx(kt,{name:r,fallback:"sortdesc",size:"12"}):n!=="-"?C.jsx(kt,{name:n,fallback:"nosort",size:"12"}):C.jsx(kt,{name:n,size:"12"})}const Hi={data:Er,columns:Er,isPaginated:!1,loading:!1,rowsSelectable:!1,enableMultiRowSelection:!0,pageSizes:[10],sortingDirection:"ascending",autoFocus:!1,hideHeader:!1,hideNoDataView:!1,alwaysShowSelectionHeader:!1,noBottomBorder:!1},Rr="Table",VQ={status:"stable",description:"`Table` presents structured data for viewing, sorting, selection, and interaction.",props:{items:Wn("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:re("The component receives data via this property. The `data` property is a list of items that the `Table` can display."),isPaginated:{description:`This property adds pagination controls to the \`${Rr}\`.`,valueType:"boolean",defaultValue:Hi.isPaginated},loading:re("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:re("This optional property is used to specify the height of the table header."),rowsSelectable:re("Indicates whether the rows are selectable (`true`) or not (`false`)."),pageSizes:{description:"This property holds an array of page sizes (numbers) the user can select for pagination. If this property is not defined, the component allows only a page size of 10 items."},rowDisabledPredicate:re("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:br("A property to customize what to display if the table does not contain any data."),sortBy:re("This property is used to determine which data property to sort by. If not defined, the data is not sorted"),sortDirection:re("This property determines the sort order to be `ascending` or `descending`. This property only works if the [`sortBy`](#sortby) property is also set. By default ascending order is used."),autoFocus:Ii(),hideHeader:{description:"Set the header visibility using this property. Set it to `true` to hide the header.",valueType:"boolean",defaultValue:Hi.hideHeader},iconNoSort:re(`Allows setting an alternate icon displayed in the ${Rr} column header when sorting is enabled, but the column remains unsorted. You can change the default icon for all ${Rr} instances with the "icon.nosort:Table" declaration in the app configuration file.`),iconSortAsc:re(`Allows setting an alernate icon displayed in the ${Rr} column header when sorting is enabled, and the column is sorted in ascending order. You can change the default icon for all ${Rr} instances with the "icon.sortasc:Table" declaration in the app configuration file.`),iconSortDesc:re(`Allows setting an alternate icon displayed in the ${Rr} column header when sorting is enabled, and the column is sorted in descending order. You can change the default icon for all ${Rr} instances with the "icon.sortdesc:Table" declaration in the app configuration file.`),enableMultiRowSelection:{description:"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.",valueType:"boolean",defaultValue:Hi.enableMultiRowSelection},alwaysShowSelectionHeader:{description:"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.",valueType:"boolean",defaultValue:!1},noBottomBorder:{description:"This property indicates whether the table should have a bottom border. When set to `true`, the table does not have a bottom border. Otherwise, it has a bottom border.",valueType:"boolean",defaultValue:!1}},events:{sortingDidChange:re("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:re("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:re("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:re("This method clears the list of currently selected table rows."),getSelectedItems:re("This method returns the list of currently selected table rows items."),getSelectedIds:re("This method returns the list of currently selected table rows IDs."),selectAll:re("This method selects all the rows in the table. This method has no effect if the rowsSelectable property is set to `false`."),selectId:re("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:tt(Fr.themeVars),defaultThemeVars:{[`padding-heading-${Rr}`]:"$space-2 $space-0 $space-2 $space-2",[`padding-cell-${Rr}`]:"$space-2 $space-0 $space-2 $space-2",[`paddingHorizontal-cell-first-${Rr}`]:"$space-5",[`paddingHorizontal-cell-last-${Rr}`]:"$space-0",[`border-cell-${Rr}`]:"1px solid $borderColor",[`outlineWidth-heading-${Rr}--focus`]:"$outlineWidth--focus",[`outlineStyle-heading-${Rr}--focus`]:"$outlineStyle--focus",[`outlineOffset-heading-${Rr}--focus`]:"$outlineOffset--focus",[`fontSize-heading-${Rr}`]:"$fontSize-tiny",[`fontWeight-heading-${Rr}`]:"$fontWeight-bold",[`textTransform-heading-${Rr}`]:"uppercase",[`fontSize-row-${Rr}`]:"$fontSize-small",[`backgroundColor-selected-${Rr}--hover`]:`$backgroundColor-row-${Rr}--hover`,[`backgroundColor-pagination-${Rr}`]:`$backgroundColor-${Rr}`,[`outlineColor-heading-${Rr}--focus`]:"$outlineColor--focus",[`textColor-pagination-${Rr}`]:"$color-secondary",[`backgroundColor-row-${Rr}--hover`]:"$color-primary-50",[`backgroundColor-selected-${Rr}`]:"$color-primary-100",[`backgroundColor-heading-${Rr}--hover`]:"$color-surface-200",[`backgroundColor-heading-${Rr}--active`]:"$color-surface-300",[`backgroundColor-heading-${Rr}`]:"$color-surface-100",[`textColor-heading-${Rr}`]:"$color-surface-500"}},MUe=m.forwardRef(({extractValue:e,node:t,renderChild:r,lookupEventHandler:n,lookupSyncCallback:o,layoutCss:i,registerComponentApi:a},l)=>{var _,S,O,A,I,H;const s=e(t.props.items)||e(t.props.data),[u,c]=m.useState(Er),[d,f]=m.useState(Jt),p=m.useRef([]),[g,v]=m.useState(0),b=m.useMemo(()=>({registerColumn:(P,L)=>{c(tl(B=>{B.findIndex(j=>j===L)<0&&B.push(L)})),f(tl(B=>{B[L]=P}))},unRegisterColumn:P=>{c(tl(L=>L.filter(B=>B!==P))),f(tl(L=>{delete L[P]}))}}),[]),y=m.useMemo(()=>({registerColumn:(P,L)=>{p.current.find(B=>B===L)||(v(B=>B+1),p.current.push(L))},unRegisterColumn:P=>{p.current.find(L=>L===P)&&(p.current=p.current.filter(L=>L!==P),v(L=>L+1))}}),[]),w=m.useMemo(()=>u.map(P=>d[P]),[u,d]),k=gQ(),E=C.jsxs(C.Fragment,{children:[C.jsx(rH.Provider,{value:b,children:r(t.children)},g),C.jsx(rH.Provider,{value:y,children:r(t.children)}),C.jsx(DUe,{ref:l,data:s,columns:w,pageSizes:e(t.props.pageSizes),rowsSelectable:e.asOptionalBoolean(t.props.rowsSelectable),registerComponentApi:a,noDataRenderer:t.props.noDataTemplate&&(()=>r(t.props.noDataTemplate)),hideNoDataView:t.props.noDataTemplate===null||t.props.noDataTemplate==="",loading:e.asOptionalBoolean(t.props.loading),isPaginated:e.asOptionalBoolean((_=t.props)==null?void 0:_.isPaginated),headerHeight:e.asSize(t.props.headerHeight),rowDisabledPredicate:o(t.props.rowDisabledPredicate),sortBy:e((S=t.props)==null?void 0:S.sortBy),sortingDirection:e((O=t.props)==null?void 0:O.sortDirection),iconSortAsc:e.asOptionalString((A=t.props)==null?void 0:A.iconSortAsc),iconSortDesc:e.asOptionalString((I=t.props)==null?void 0:I.iconSortDesc),iconNoSort:e.asOptionalString((H=t.props)==null?void 0:H.iconNoSort),sortingDidChange:n("sortingDidChange"),onSelectionDidChange:n("selectionDidChange"),willSort:n("willSort"),style:i,uid:t.uid,autoFocus:e.asOptionalBoolean(t.props.autoFocus),hideHeader:e.asOptionalBoolean(t.props.hideHeader),enableMultiRowSelection:e.asOptionalBoolean(t.props.enableMultiRowSelection),alwaysShowSelectionHeader:e.asOptionalBoolean(t.props.alwaysShowSelectionHeader),noBottomBorder:e.asOptionalBoolean(t.props.noBottomBorder)})]});return k===null?C.jsx(RWe,{children:E}):E}),zUe=xe(Rr,VQ,({extractValue:e,node:t,renderChild:r,lookupEventHandler:n,lookupSyncCallback:o,layoutCss:i,registerComponentApi:a})=>C.jsx(MUe,{node:t,extractValue:e,lookupEventHandler:n,lookupSyncCallback:o,layoutCss:i,renderChild:r,registerComponentApi:a})),SH={themeVars:'"[]"',wrapper:"_wrapper_1c2sc_13",sentinel:"_sentinel_1c2sc_17"};var yS={},wS={},tb={};Object.defineProperty(tb,"__esModule",{value:!0}),tb.unlisten=tb.listen=void 0;const yy=[],CS=[];function FUe(e){return{el:e,callbacks:{},realCallbacks:{},realListenersCnt:0}}function WUe(e,t,r){if(e.callbacks[t]){e.callbacks[t].indexOf(r)===-1&&e.callbacks[t].push(r);return}e.callbacks[t]=[r],e.realCallbacks[t]=n=>{for(let o=0,i=e.callbacks[t].length;o<i;o+=1)e.callbacks[t][o](n)},e.el.addEventListener(t,e.realCallbacks[t]),e.realListenersCnt+=1}function VUe(e,t,r){if(!e.callbacks[t])return;const n=e.callbacks[t].indexOf(r);n!==-1&&(e.callbacks[t].splice(n,1),!(e.callbacks[t].length>0)&&(e.el.removeEventListener(t,e.realCallbacks[t]),delete e.callbacks[t],delete e.realCallbacks[t],e.realListenersCnt-=1))}function UUe(e,t,r){let n=yy.indexOf(e);n===-1&&(n=yy.length,yy.push(e),CS.push(FUe(e)));const o=CS[n];WUe(o,t,r)}function qUe(e,t,r){const n=yy.indexOf(e);if(n===-1)return;const o=CS[n];VUe(o,t,r),!(o.realListenersCnt>0)&&(yy.splice(n,1),CS.splice(n,1))}function GUe(e,t,r){for(let n=0,o=t.length;n<o;n+=1)UUe(e,t[n],r)}tb.listen=GUe;function YUe(e,t,r){for(let n=0,o=t.length;n<o;n+=1)qUe(e,t[n],r)}tb.unlisten=YUe;var EH={};Object.defineProperty(EH,"__esModule",{value:!0});const wy={};typeof document<"u"&&(wy.body=document.body,wy.window=window,wy.document=document);const UQ=(()=>{if(typeof document<"u"&&document.body){const e=document.body;return typeof e.matches=="function"?"matches":typeof e.webkitMatchesSelector=="function"?"webkitMatchesSelector":typeof e.mozMatchesSelector=="function"?"mozMatchesSelector":typeof e.msMatchesSelector=="function"?"msMatchesSelector":typeof e.oMatchesSelector=="function"?"oMatchesSelector":null}return null})();function KUe(e,t){if(!e)return null;if(wy.hasOwnProperty(e))return wy[e];if(e[0]==="#")return document.getElementById(e.slice(1));if(UQ===null)return null;let r=t;for(;r=r.parentElement;)if(r[UQ](e))return r||null;return null}EH.default=KUe;var OH={};Object.defineProperty(OH,"__esModule",{value:!0});function XUe(e){do{const t=window.getComputedStyle(e);if(t.transform!=="none"||t.webkitTransform!=="none")return e;e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1);return null}OH.default=XUe;var Df={};Object.defineProperty(Df,"__esModule",{value:!0}),Df.isIntersecting=Df.getRect=Df.infiniteRect=void 0,Df.infiniteRect={top:-1/0,bottom:1/0,height:1/0,left:-1/0,right:1/0,width:1/0};function QUe(e){return e&&"getBoundingClientRect"in e&&typeof e.getBoundingClientRect=="function"?e.getBoundingClientRect():e===window||e===document?{top:0,left:0,bottom:window.innerHeight,height:window.innerHeight,width:window.innerWidth,right:window.innerWidth}:{top:0,left:0,right:0,bottom:0,width:0,height:0}}Df.getRect=QUe;function ZUe(e,t,r,n){const o=e.top+r,i=e.bottom+n;return o>=t.top&&o<=t.bottom||i>=t.top&&i<=t.bottom||i>=t.bottom&&o<=t.top}Df.isIntersecting=ZUe;var qQ=$r&&$r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wS,"__esModule",{value:!0});const JUe=m,Cy=tb,GQ=qQ(EH),eqe=qQ(OH),ky=Df,tqe=(e,t)=>{const{bottomOffset:r,hideOnBoundaryHit:n}=t,{top:o,height:i,width:a,boundaryBottom:l}=e;return n||o+i+r<l?{top:`${o}px`,width:`${a}px`,position:"fixed"}:!n&&l>0?{top:`${l-i-r}px`,width:`${a}px`,position:"fixed"}:{width:`${a}px`,bottom:`${r}px`,position:"absolute"}},rqe=(e,t)=>{const{bottomOffset:r,hideOnBoundaryHit:n}=t,{bottom:o,height:i,width:a,boundaryTop:l}=e;return n||o-i-r>l?{width:`${a}px`,top:`${o-i}px`,position:"fixed"}:{width:`${a}px`,top:`${r}px`,position:"absolute"}},nqe=(e,t,r)=>(e==="top"?tqe:rqe)(r,t),oqe=(e,t)=>{const r=e.wrapperStyles,n=t.wrapperStyles;if(e.isFixed!==t.isFixed||e.height!==t.height||!r&&n||r&&!n)return!1;if(!n)return!0;for(const o in r)if(r.hasOwnProperty(o)&&r[o]!==n[o])return!1;return!0};class YQ extends JUe.Component{constructor(){super(...arguments),this.holderEl=null,this.wrapperEl=null,this.el=null,this.scrollEl=null,this.boundaryEl=null,this.disabled=!1,this.checkPositionIntervalId=null,this.lastMinHeight=null,this.state={isFixed:!1,wrapperStyles:void 0,holderStyles:void 0,height:0},this.holderRef=t=>{t!==this.holderEl&&(this.holderEl=t)},this.wrapperRef=t=>{t!==this.wrapperEl&&(this.wrapperEl=t,this.updateScrollEl(),this.updateBoundaryEl())},this.checkPosition=()=>{const{holderEl:t,wrapperEl:r,boundaryEl:n,scrollEl:o,disabled:i}=this;if(!o||!t||!r){console.error("Missing required elements:",{scrollEl:o,holderEl:t,wrapperEl:r});return}const{mode:a,onFixedToggle:l,offsetTransforms:s,isIOSFixEnabled:u,dontUpdateHolderHeightWhenSticky:c}=this.props;if(i){this.state.isFixed&&this.setState({isFixed:!1,wrapperStyles:{}});return}if(!t.getBoundingClientRect||!r.getBoundingClientRect)return;const d=t.getBoundingClientRect(),f=r.getBoundingClientRect(),p=n?(0,ky.getRect)(n):ky.infiniteRect,g=(0,ky.getRect)(o),v=this.isFixed(d,f,p,g);let b=null;if(s&&v&&o instanceof HTMLElement){const E=(0,eqe.default)(o);E&&(b=(0,ky.getRect)(E))}const y=this.state.isFixed&&c&&this.lastMinHeight?this.lastMinHeight:f.height;this.lastMinHeight=y;const w=u?{transform:"translateZ(0)",WebkitTransform:"translateZ(0)"}:void 0,k={isFixed:v,height:f.height,holderStyles:{minHeight:`${y}px`},wrapperStyles:v?Object.assign(Object.assign({},w),nqe(a,this.props,{boundaryTop:a==="bottom"?p.top:0,boundaryBottom:a==="top"?p.bottom:0,top:a==="top"?g.top-(b?b.top:0):0,bottom:a==="bottom"?g.bottom-(b?b.bottom:0):0,width:d.width,height:f.height})):w};v!==this.state.isFixed&&l&&typeof l=="function"&&l(v),oqe(this.state,k)||this.setState(k)}}isFixed(t,r,n,o){const{hideOnBoundaryHit:i,bottomOffset:a,topOffset:l,mode:s}=this.props;if(this.disabled||i&&n&&!(0,ky.isIntersecting)(n,o,l,a))return!1;const u=i?r.height+a:0;return s==="top"?t.top+l<o.top&&o.top+u<=n.bottom:t.bottom-l>o.bottom&&o.bottom-u>=n.top}updateScrollEl(){if(!this.wrapperEl)return;this.scrollEl&&((0,Cy.unlisten)(this.scrollEl,["scroll"],this.checkPosition),this.scrollEl=null);const{scrollElement:t}=this.props;typeof t=="string"?this.scrollEl=(0,GQ.default)(t,this.wrapperEl):this.scrollEl=t,this.scrollEl?(0,Cy.listen)(this.scrollEl,["scroll"],this.checkPosition):console.error("Cannot find scrollElement "+(typeof t=="string"?t:"unknown"))}updateBoundaryEl(){if(!this.wrapperEl)return;const{boundaryElement:t}=this.props;this.boundaryEl=(0,GQ.default)(t,this.wrapperEl),(this.boundaryEl===window||this.boundaryEl===document)&&(this.boundaryEl=null)}initialize(){const{positionRecheckInterval:t,disabled:r}=this.props;this.disabled=r,(0,Cy.listen)(window,["scroll","resize","pageshow","load"],this.checkPosition),this.checkPosition(),t&&(this.checkPositionIntervalId=setInterval(this.checkPosition,t))}componentDidUpdate({scrollElement:t,boundaryElement:r,disabled:n}){(t!==this.props.scrollElement||this.scrollEl===null)&&this.updateScrollEl(),(r!==this.props.boundaryElement||this.boundaryEl===null)&&this.updateBoundaryEl(),n!==this.props.disabled&&(this.disabled=this.props.disabled,this.checkPosition())}componentDidMount(){this.initialize(),this.wrapperEl===null&&console.error("Wrapper element is missing, please make sure that you have assigned refs correctly")}componentWillUnmount(){this.scrollEl&&(0,Cy.unlisten)(this.scrollEl,["scroll"],this.checkPosition),(0,Cy.unlisten)(window,["scroll","resize","pageshow","load"],this.checkPosition),this.boundaryEl=null,this.scrollEl=null,this.checkPositionIntervalId&&clearInterval(this.checkPositionIntervalId)}render(){const{holderRef:t,wrapperRef:r}=this,{isFixed:n,wrapperStyles:o,holderStyles:i}=this.state;return this.props.children({holderRef:t,wrapperRef:r,isFixed:n,wrapperStyles:o,holderStyles:i})}}YQ.defaultProps={mode:"top",topOffset:0,bottomOffset:0,isIOSFixEnabled:!0,offsetTransforms:!0,disabled:!1,onFixedToggle:void 0,boundaryElement:void 0,hideOnBoundaryHit:!0,scrollElement:"window",dontUpdateHolderHeightWhenSticky:!1},wS.default=YQ;var KQ={};(function(e){var t=$r&&$r.__rest||function(a,l){var s={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&l.indexOf(u)<0&&(s[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,u=Object.getOwnPropertySymbols(a);c<u.length;c++)l.indexOf(u[c])<0&&Object.prototype.propertyIsEnumerable.call(a,u[c])&&(s[u[c]]=a[u[c]]);return s},r=$r&&$r.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultProps=void 0;const n=r(m),o=r(wS);e.defaultProps=Object.assign(Object.assign({},o.default.defaultProps),{stickyClassName:"sticky",wrapperClassName:"",stickyStyle:{}});function i(a){const l=Object.assign(Object.assign({},e.defaultProps),a),{mode:s,onFixedToggle:u,hideOnBoundaryHit:c,offsetTransforms:d,disabled:f,boundaryElement:p,scrollElement:g,bottomOffset:v,topOffset:b,positionRecheckInterval:y,children:w,isIOSFixEnabled:k,dontUpdateHolderHeightWhenSticky:E,wrapperClassName:_,stickyClassName:S,stickyStyle:O}=l,A=t(l,["mode","onFixedToggle","hideOnBoundaryHit","offsetTransforms","disabled","boundaryElement","scrollElement","bottomOffset","topOffset","positionRecheckInterval","children","isIOSFixEnabled","dontUpdateHolderHeightWhenSticky","wrapperClassName","stickyClassName","stickyStyle"]);return n.default.createElement(o.default,{mode:s,onFixedToggle:u,hideOnBoundaryHit:c,offsetTransforms:d,disabled:f,boundaryElement:p,scrollElement:g,bottomOffset:v,topOffset:b,positionRecheckInterval:y,isIOSFixEnabled:k,dontUpdateHolderHeightWhenSticky:E},({isFixed:I,wrapperStyles:H,wrapperRef:P,holderStyles:L,holderRef:B})=>n.default.createElement("div",Object.assign({},A,{ref:B,style:L}),n.default.createElement("div",Object.assign({},A,{className:`${_} ${I?S:""}`,style:I?Object.assign(Object.assign({},H),O):H,ref:P}),w)))}e.default=i})(KQ);var XQ=$r&&$r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yS,"__esModule",{value:!0});var QQ=yS.RenderPropSticky=void 0;const iqe=XQ(wS);QQ=yS.RenderPropSticky=iqe.default;const aqe=XQ(KQ);yS.default=aqe.default;const ZQ={to:"top"};function lqe({children:e,uid:t,layout:r,to:n=ZQ.to}){const o=m.useRef(null),[i,a]=m.useState(null),[l,s]=m.useState(!1),u=sq(o.current),c=P8e(u);m.useEffect(()=>{i&&document.documentElement.style.setProperty("--xmlui-scroll-margin-top",i.clientHeight+"px")},[u,i]);const d=ze(SH.wrapper),f={backgroundColor:c,...r},p="";return C.jsxs(C.Fragment,{children:[!!u&&C.jsx(QQ,{mode:n,onFixedToggle:s,scrollElement:u,children:({isFixed:g,wrapperStyles:v,wrapperRef:b,holderStyles:y,holderRef:w})=>C.jsx("div",{ref:w,style:y,children:C.jsx("div",{className:`${d} ${g?p:""}`,style:g?{...v,...f}:v,ref:b,children:C.jsx("div",{ref:a,children:e})})})}),C.jsx("div",{style:{display:"none"},ref:o,className:n==="top"?SH.sentinel:""})]})}const JQ="StickyBox",eZ={status:"stable",description:"`StickyBox` remains fixed at the top or bottom of the screen as the user scrolls.",props:{to:{description:"This property determines whether the StickyBox should be anchored to the `top` or `bottom`.",availableValues:["top","bottom"],valueType:"string",defaultValue:ZQ.to}},themeVars:tt(SH.themeVars),defaultThemeVars:{[`backgroundColor-${JQ}`]:"$backgroundColor"}},sqe=xe(JQ,eZ,({node:e,renderChild:t,extractValue:r,layoutCss:n})=>{var o;return C.jsx(lqe,{uid:e.uid,layout:n,to:r((o=e.props)==null?void 0:o.to),children:t(e.children)})}),AH={themeVars:`'{"border-Badge": "var(--xmlui-border-Badge)", "borderHorizontal-Badge": "var(--xmlui-borderHorizontal-Badge, var(--xmlui-border-Badge))", "borderVertical-Badge": "var(--xmlui-borderVertical-Badge, var(--xmlui-border-Badge))", "borderLeft-Badge": "var(--xmlui-borderLeft-Badge, var(--xmlui-borderHorizontal-Badge, var(--xmlui-border-Badge)))", "borderRight-Badge": "var(--xmlui-borderRight-Badge, var(--xmlui-borderHorizontal-Badge, var(--xmlui-border-Badge)))", "borderTop-Badge": "var(--xmlui-borderTop-Badge, var(--xmlui-borderVertical-Badge, var(--xmlui-border-Badge)))", "borderBottom-Badge": "var(--xmlui-borderBottom-Badge, var(--xmlui-borderVertical-Badge, var(--xmlui-border-Badge)))", "borderWidth-Badge": "var(--xmlui-borderWidth-Badge)", "borderHorizontalWidth-Badge": "var(--xmlui-borderHorizontalWidth-Badge, var(--xmlui-borderWidth-Badge))", "borderLeftWidth-Badge": "var(--xmlui-borderLeftWidth-Badge, var(--xmlui-borderHorizontalWidth-Badge, var(--xmlui-borderWidth-Badge)))", "borderRightWidth-Badge": "var(--xmlui-borderRightWidth-Badge, var(--xmlui-borderHorizontalWidth-Badge, var(--xmlui-borderWidth-Badge)))", "borderVerticalWidth-Badge": "var(--xmlui-borderVerticalWidth-Badge, var(--xmlui-borderWidth-Badge))", "borderTopWidth-Badge": "var(--xmlui-borderTopWidth-Badge, var(--xmlui-borderVerticalWidth-Badge, var(--xmlui-borderWidth-Badge)))", "borderBottomWidth-Badge": "var(--xmlui-borderBottomWidth-Badge, var(--xmlui-borderVerticalWidth-Badge, var(--xmlui-borderWidth-Badge)))", "borderStyle-Badge": "var(--xmlui-borderStyle-Badge)", "borderHorizontalStyle-Badge": "var(--xmlui-borderHorizontalStyle-Badge, var(--xmlui-borderStyle-Badge))", "borderLeftStyle-Badge": "var(--xmlui-borderLeftStyle-Badge, var(--xmlui-borderHorizontalStyle-Badge, var(--xmlui-borderStyle-Badge)))", "borderRightStyle-Badge": "var(--xmlui-borderRightStyle-Badge, var(--xmlui-borderHorizontalStyle-Badge, var(--xmlui-borderStyle-Badge)))", "borderVerticalStyle-Badge": "var(--xmlui-borderVerticalStyle-Badge, var(--xmlui-borderStyle-Badge))", "borderTopStyle-Badge": "var(--xmlui-borderTopStyle-Badge, var(--xmlui-borderVerticalStyle-Badge, var(--xmlui-borderStyle-Badge)))", "borderBottomStyle-Badge": "var(--xmlui-borderBottomStyle-Badge, var(--xmlui-borderVerticalStyle-Badge, var(--xmlui-borderStyle-Badge)))", "borderColor-Badge": "var(--xmlui-borderColor-Badge)", "borderHorizontalColor-Badge": "var(--xmlui-borderHorizontalColor-Badge, var(--xmlui-borderColor-Badge))", "borderLeftColor-Badge": "var(--xmlui-borderLeftColor-Badge, var(--xmlui-borderHorizontalColor-Badge, var(--xmlui-borderColor-Badge)))", "borderRightColor-Badge": "var(--xmlui-borderRightColor-Badge, var(--xmlui-borderHorizontalColor-Badge, var(--xmlui-borderColor-Badge)))", "borderVerticalColor-Badge": "var(--xmlui-borderVerticalColor-Badge, var(--xmlui-borderColor-Badge))", "borderTopColor-Badge": "var(--xmlui-borderTopColor-Badge, var(--xmlui-borderVerticalColor-Badge, var(--xmlui-borderColor-Badge)))", "borderBottomColor-Badge": "var(--xmlui-borderBottomColor-Badge, var(--xmlui-borderVerticalColor-Badge, var(--xmlui-borderColor-Badge)))", "borderStartStartRadius-Badge": "var(--xmlui-borderStartStartRadius-Badge, var(--xmlui-borderRadius-Badge))", "borderStartEndRadius-Badge": "var(--xmlui-borderStartEndRadius-Badge, var(--xmlui-borderRadius-Badge))", "borderEndStartRadius-Badge": "var(--xmlui-borderEndStartRadius-Badge, var(--xmlui-borderRadius-Badge))", "borderEndEndRadius-Badge": "var(--xmlui-borderEndEndRadius-Badge, var(--xmlui-borderRadius-Badge))", "padding-Badge": "var(--xmlui-padding-Badge)", "paddingHorizontal-Badge": "var(--xmlui-paddingHorizontal-Badge, var(--xmlui-padding-Badge))", "paddingVertical-Badge": "var(--xmlui-paddingVertical-Badge, var(--xmlui-padding-Badge))", "paddingLeft-Badge": "var(--xmlui-paddingLeft-Badge, var(--xmlui-paddingHorizontal-Badge, var(--xmlui-padding-Badge)))", "paddingRight-Badge": "var(--xmlui-paddingRight-Badge, var(--xmlui-paddingHorizontal-Badge, var(--xmlui-padding-Badge)))", "paddingTop-Badge": "var(--xmlui-paddingTop-Badge, var(--xmlui-paddingVertical-Badge, var(--xmlui-padding-Badge)))", "paddingBottom-Badge": "var(--xmlui-paddingBottom-Badge, var(--xmlui-paddingVertical-Badge, var(--xmlui-padding-Badge)))", "textColor-Badge": "var(--xmlui-textColor-Badge)", "fontFamily-Badge": "var(--xmlui-fontFamily-Badge)", "fontSize-Badge": "var(--xmlui-fontSize-Badge)", "fontStyle-Badge": "var(--xmlui-fontStyle-Badge)", "fontVariant-Badge": "var(--xmlui-fontVariant-Badge)", "fontWeight-Badge": "var(--xmlui-fontWeight-Badge)", "fontStretch-Badge": "var(--xmlui-fontStretch-Badge)", "textDecorationLine-Badge": "var(--xmlui-textDecorationLine-Badge)", "textDecorationColor-Badge": "var(--xmlui-textDecorationColor-Badge)", "textDecorationStyle-Badge": "var(--xmlui-textDecorationStyle-Badge)", "textDecorationThickness-Badge": "var(--xmlui-textDecorationThickness-Badge)", "textUnderlineOffset-Badge": "var(--xmlui-textUnderlineOffset-Badge)", "lineHeight-Badge": "var(--xmlui-lineHeight-Badge)", "backgroundColor-Badge": "var(--xmlui-backgroundColor-Badge)", "textTransform-Badge": "var(--xmlui-textTransform-Badge)", "letterSpacing-Badge": "var(--xmlui-letterSpacing-Badge)", "wordSpacing-Badge": "var(--xmlui-wordSpacing-Badge)", "textShadow-Badge": "var(--xmlui-textShadow-Badge)", "textIndent-Badge": "var(--xmlui-textIndent-Badge)", "textAlign-Badge": "var(--xmlui-textAlign-Badge)", "textAlignLast-Badge": "var(--xmlui-textAlignLast-Badge)", "wordBreak-Badge": "var(--xmlui-wordBreak-Badge)", "wordWrap-Badge": "var(--xmlui-wordWrap-Badge)", "direction-Badge": "var(--xmlui-direction-Badge)", "writingMode-Badge": "var(--xmlui-writingMode-Badge)", "lineBreak-Badge": "var(--xmlui-lineBreak-Badge)", "border-Badge-pill": "var(--xmlui-border-Badge-pill)", "borderHorizontal-Badge-pill": "var(--xmlui-borderHorizontal-Badge-pill, var(--xmlui-border-Badge-pill))", "borderVertical-Badge-pill": "var(--xmlui-borderVertical-Badge-pill, var(--xmlui-border-Badge-pill))", "borderLeft-Badge-pill": "var(--xmlui-borderLeft-Badge-pill, var(--xmlui-borderHorizontal-Badge-pill, var(--xmlui-border-Badge-pill)))", "borderRight-Badge-pill": "var(--xmlui-borderRight-Badge-pill, var(--xmlui-borderHorizontal-Badge-pill, var(--xmlui-border-Badge-pill)))", "borderTop-Badge-pill": "var(--xmlui-borderTop-Badge-pill, var(--xmlui-borderVertical-Badge-pill, var(--xmlui-border-Badge-pill)))", "borderBottom-Badge-pill": "var(--xmlui-borderBottom-Badge-pill, var(--xmlui-borderVertical-Badge-pill, var(--xmlui-border-Badge-pill)))", "borderWidth-Badge-pill": "var(--xmlui-borderWidth-Badge-pill)", "borderHorizontalWidth-Badge-pill": "var(--xmlui-borderHorizontalWidth-Badge-pill, var(--xmlui-borderWidth-Badge-pill))", "borderLeftWidth-Badge-pill": "var(--xmlui-borderLeftWidth-Badge-pill, var(--xmlui-borderHorizontalWidth-Badge-pill, var(--xmlui-borderWidth-Badge-pill)))", "borderRightWidth-Badge-pill": "var(--xmlui-borderRightWidth-Badge-pill, var(--xmlui-borderHorizontalWidth-Badge-pill, var(--xmlui-borderWidth-Badge-pill)))", "borderVerticalWidth-Badge-pill": "var(--xmlui-borderVerticalWidth-Badge-pill, var(--xmlui-borderWidth-Badge-pill))", "borderTopWidth-Badge-pill": "var(--xmlui-borderTopWidth-Badge-pill, var(--xmlui-borderVerticalWidth-Badge-pill, var(--xmlui-borderWidth-Badge-pill)))", "borderBottomWidth-Badge-pill": "var(--xmlui-borderBottomWidth-Badge-pill, var(--xmlui-borderVerticalWidth-Badge-pill, var(--xmlui-borderWidth-Badge-pill)))", "borderStyle-Badge-pill": "var(--xmlui-borderStyle-Badge-pill)", "borderHorizontalStyle-Badge-pill": "var(--xmlui-borderHorizontalStyle-Badge-pill, var(--xmlui-borderStyle-Badge-pill))", "borderLeftStyle-Badge-pill": "var(--xmlui-borderLeftStyle-Badge-pill, var(--xmlui-borderHorizontalStyle-Badge-pill, var(--xmlui-borderStyle-Badge-pill)))", "borderRightStyle-Badge-pill": "var(--xmlui-borderRightStyle-Badge-pill, var(--xmlui-borderHorizontalStyle-Badge-pill, var(--xmlui-borderStyle-Badge-pill)))", "borderVerticalStyle-Badge-pill": "var(--xmlui-borderVerticalStyle-Badge-pill, var(--xmlui-borderStyle-Badge-pill))", "borderTopStyle-Badge-pill": "var(--xmlui-borderTopStyle-Badge-pill, var(--xmlui-borderVerticalStyle-Badge-pill, var(--xmlui-borderStyle-Badge-pill)))", "borderBottomStyle-Badge-pill": "var(--xmlui-borderBottomStyle-Badge-pill, var(--xmlui-borderVerticalStyle-Badge-pill, var(--xmlui-borderStyle-Badge-pill)))", "borderColor-Badge-pill": "var(--xmlui-borderColor-Badge-pill)", "borderHorizontalColor-Badge-pill": "var(--xmlui-borderHorizontalColor-Badge-pill, var(--xmlui-borderColor-Badge-pill))", "borderLeftColor-Badge-pill": "var(--xmlui-borderLeftColor-Badge-pill, var(--xmlui-borderHorizontalColor-Badge-pill, var(--xmlui-borderColor-Badge-pill)))", "borderRightColor-Badge-pill": "var(--xmlui-borderRightColor-Badge-pill, var(--xmlui-borderHorizontalColor-Badge-pill, var(--xmlui-borderColor-Badge-pill)))", "borderVerticalColor-Badge-pill": "var(--xmlui-borderVerticalColor-Badge-pill, var(--xmlui-borderColor-Badge-pill))", "borderTopColor-Badge-pill": "var(--xmlui-borderTopColor-Badge-pill, var(--xmlui-borderVerticalColor-Badge-pill, var(--xmlui-borderColor-Badge-pill)))", "borderBottomColor-Badge-pill": "var(--xmlui-borderBottomColor-Badge-pill, var(--xmlui-borderVerticalColor-Badge-pill, var(--xmlui-borderColor-Badge-pill)))", "borderStartStartRadius-Badge-pill": "var(--xmlui-borderStartStartRadius-Badge-pill, var(--xmlui-borderRadius-Badge-pill))", "borderStartEndRadius-Badge-pill": "var(--xmlui-borderStartEndRadius-Badge-pill, var(--xmlui-borderRadius-Badge-pill))", "borderEndStartRadius-Badge-pill": "var(--xmlui-borderEndStartRadius-Badge-pill, var(--xmlui-borderRadius-Badge-pill))", "borderEndEndRadius-Badge-pill": "var(--xmlui-borderEndEndRadius-Badge-pill, var(--xmlui-borderRadius-Badge-pill))", "padding-Badge-pill": "var(--xmlui-padding-Badge-pill)", "paddingHorizontal-Badge-pill": "var(--xmlui-paddingHorizontal-Badge-pill, var(--xmlui-padding-Badge-pill))", "paddingVertical-Badge-pill": "var(--xmlui-paddingVertical-Badge-pill, var(--xmlui-padding-Badge-pill))", "paddingLeft-Badge-pill": "var(--xmlui-paddingLeft-Badge-pill, var(--xmlui-paddingHorizontal-Badge-pill, var(--xmlui-padding-Badge-pill)))", "paddingRight-Badge-pill": "var(--xmlui-paddingRight-Badge-pill, var(--xmlui-paddingHorizontal-Badge-pill, var(--xmlui-padding-Badge-pill)))", "paddingTop-Badge-pill": "var(--xmlui-paddingTop-Badge-pill, var(--xmlui-paddingVertical-Badge-pill, var(--xmlui-padding-Badge-pill)))", "paddingBottom-Badge-pill": "var(--xmlui-paddingBottom-Badge-pill, var(--xmlui-paddingVertical-Badge-pill, var(--xmlui-padding-Badge-pill)))", "textColor-Badge-pill": "var(--xmlui-textColor-Badge-pill)", "fontFamily-Badge-pill": "var(--xmlui-fontFamily-Badge-pill)", "fontSize-Badge-pill": "var(--xmlui-fontSize-Badge-pill)", "fontStyle-Badge-pill": "var(--xmlui-fontStyle-Badge-pill)", "fontVariant-Badge-pill": "var(--xmlui-fontVariant-Badge-pill)", "fontWeight-Badge-pill": "var(--xmlui-fontWeight-Badge-pill)", "fontStretch-Badge-pill": "var(--xmlui-fontStretch-Badge-pill)", "textDecorationLine-Badge-pill": "var(--xmlui-textDecorationLine-Badge-pill)", "textDecorationColor-Badge-pill": "var(--xmlui-textDecorationColor-Badge-pill)", "textDecorationStyle-Badge-pill": "var(--xmlui-textDecorationStyle-Badge-pill)", "textDecorationThickness-Badge-pill": "var(--xmlui-textDecorationThickness-Badge-pill)", "textUnderlineOffset-Badge-pill": "var(--xmlui-textUnderlineOffset-Badge-pill)", "lineHeight-Badge-pill": "var(--xmlui-lineHeight-Badge-pill)", "backgroundColor-Badge-pill": "var(--xmlui-backgroundColor-Badge-pill)", "textTransform-Badge-pill": "var(--xmlui-textTransform-Badge-pill)", "letterSpacing-Badge-pill": "var(--xmlui-letterSpacing-Badge-pill)", "wordSpacing-Badge-pill": "var(--xmlui-wordSpacing-Badge-pill)", "textShadow-Badge-pill": "var(--xmlui-textShadow-Badge-pill)", "textIndent-Badge-pill": "var(--xmlui-textIndent-Badge-pill)", "textAlign-Badge-pill": "var(--xmlui-textAlign-Badge-pill)", "textAlignLast-Badge-pill": "var(--xmlui-textAlignLast-Badge-pill)", "wordBreak-Badge-pill": "var(--xmlui-wordBreak-Badge-pill)", "wordWrap-Badge-pill": "var(--xmlui-wordWrap-Badge-pill)", "direction-Badge-pill": "var(--xmlui-direction-Badge-pill)", "writingMode-Badge-pill": "var(--xmlui-writingMode-Badge-pill)", "lineBreak-Badge-pill": "var(--xmlui-lineBreak-Badge-pill)"}'`,badge:"_badge_9anto_13",pill:"_pill_9anto_74"},uqe=["badge","pill"];function cqe(e){return typeof e=="object"&&e!==null&&"label"in e&&"background"in e&&typeof e.label=="string"&&typeof e.background=="string"}const tZ={variant:"badge"},dqe=m.forwardRef(function({children:t,color:r,variant:n=tZ.variant,style:o},i){return C.jsx("div",{ref:i,className:ze({[AH.badge]:n==="badge",[AH.pill]:n==="pill"}),style:{...r?typeof r=="string"?{backgroundColor:r}:{backgroundColor:r.background,color:r.label}:{},...o},children:t})}),ic="Badge",rZ={status:"stable",description:"`Badge` displays small text labels with colored backgrounds, commonly used for status indicators, categories, tags, and counts. It supports dynamic color mapping based on content values, useful for status systems and data categorization.",props:{value:{description:"The text that the component displays. If this is not defined, the component renders its children as the content of the badge. If neither text nor any child is defined, the component renders a single frame for the badge with a non-breakable space.",type:"string",isRequired:!0},variant:{description:"Modifies the shape of the component. Comes in the regular `badge` variant or the `pill` variant with fully rounded corners.",type:"string",availableValues:uqe,defaultValue:tZ.variant},colorMap:{description:`The \`${ic}\` component supports the mapping of a list of colors using the \`value\` prop as the key. If this property is not set, no color mapping is used.`},themeColor:Wn("(**NOT IMPLEMENTED YET**) The theme color of the component."),indicatorText:Wn("(**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:Wn("(**NOT IMPLEMENTED YET**) This property forces the display of the indicator, even if the `indicatorText` property is not defined or empty."),indicatorThemeColor:Wn("(**NOT IMPLEMENTED YET**) The theme color of the indicator."),indicatorPosition:Wn("(**NOT IMPLEMENTED YET**) The position of the indicator.")},events:{},themeVars:tt(AH.themeVars),defaultThemeVars:{[`padding-${ic}`]:"$space-0_5 $space-2",[`border-${ic}`]:"0px solid $borderColor",[`padding-${ic}-pill`]:"$space-0_5 $space-2",[`borderRadius-${ic}`]:"4px",[`fontSize-${ic}`]:"0.8em",[`fontSize-${ic}-pill`]:"0.8em",[`backgroundColor-${ic}`]:"rgb(from $color-secondary-500 r g b / 0.6)",[`textColor-${ic}`]:"$const-color-surface-0"}},fqe=xe(ic,rZ,({node:e,extractValue:t,renderChild:r,layoutCss:n})=>{var l;const o=t.asDisplayText(e.props.value),i=t((l=e.props)==null?void 0:l.colorMap);let a;if(i&&o){const s=i[o];typeof s=="string"?a=IH(s):cqe(s)&&(a={label:IH(s.label),background:IH(s.background)})}return C.jsx(dqe,{variant:t(e.props.variant),color:a,style:n,children:o||e.children&&r(e.children)||" "})});function IH(e){return e.startsWith("$")?Sx(e):e}const _y={themeVars:`'{"border-Avatar": "var(--xmlui-border-Avatar)", "borderHorizontal-Avatar": "var(--xmlui-borderHorizontal-Avatar, var(--xmlui-border-Avatar))", "borderVertical-Avatar": "var(--xmlui-borderVertical-Avatar, var(--xmlui-border-Avatar))", "borderLeft-Avatar": "var(--xmlui-borderLeft-Avatar, var(--xmlui-borderHorizontal-Avatar, var(--xmlui-border-Avatar)))", "borderRight-Avatar": "var(--xmlui-borderRight-Avatar, var(--xmlui-borderHorizontal-Avatar, var(--xmlui-border-Avatar)))", "borderTop-Avatar": "var(--xmlui-borderTop-Avatar, var(--xmlui-borderVertical-Avatar, var(--xmlui-border-Avatar)))", "borderBottom-Avatar": "var(--xmlui-borderBottom-Avatar, var(--xmlui-borderVertical-Avatar, var(--xmlui-border-Avatar)))", "borderWidth-Avatar": "var(--xmlui-borderWidth-Avatar)", "borderHorizontalWidth-Avatar": "var(--xmlui-borderHorizontalWidth-Avatar, var(--xmlui-borderWidth-Avatar))", "borderLeftWidth-Avatar": "var(--xmlui-borderLeftWidth-Avatar, var(--xmlui-borderHorizontalWidth-Avatar, var(--xmlui-borderWidth-Avatar)))", "borderRightWidth-Avatar": "var(--xmlui-borderRightWidth-Avatar, var(--xmlui-borderHorizontalWidth-Avatar, var(--xmlui-borderWidth-Avatar)))", "borderVerticalWidth-Avatar": "var(--xmlui-borderVerticalWidth-Avatar, var(--xmlui-borderWidth-Avatar))", "borderTopWidth-Avatar": "var(--xmlui-borderTopWidth-Avatar, var(--xmlui-borderVerticalWidth-Avatar, var(--xmlui-borderWidth-Avatar)))", "borderBottomWidth-Avatar": "var(--xmlui-borderBottomWidth-Avatar, var(--xmlui-borderVerticalWidth-Avatar, var(--xmlui-borderWidth-Avatar)))", "borderStyle-Avatar": "var(--xmlui-borderStyle-Avatar)", "borderHorizontalStyle-Avatar": "var(--xmlui-borderHorizontalStyle-Avatar, var(--xmlui-borderStyle-Avatar))", "borderLeftStyle-Avatar": "var(--xmlui-borderLeftStyle-Avatar, var(--xmlui-borderHorizontalStyle-Avatar, var(--xmlui-borderStyle-Avatar)))", "borderRightStyle-Avatar": "var(--xmlui-borderRightStyle-Avatar, var(--xmlui-borderHorizontalStyle-Avatar, var(--xmlui-borderStyle-Avatar)))", "borderVerticalStyle-Avatar": "var(--xmlui-borderVerticalStyle-Avatar, var(--xmlui-borderStyle-Avatar))", "borderTopStyle-Avatar": "var(--xmlui-borderTopStyle-Avatar, var(--xmlui-borderVerticalStyle-Avatar, var(--xmlui-borderStyle-Avatar)))", "borderBottomStyle-Avatar": "var(--xmlui-borderBottomStyle-Avatar, var(--xmlui-borderVerticalStyle-Avatar, var(--xmlui-borderStyle-Avatar)))", "borderColor-Avatar": "var(--xmlui-borderColor-Avatar)", "borderHorizontalColor-Avatar": "var(--xmlui-borderHorizontalColor-Avatar, var(--xmlui-borderColor-Avatar))", "borderLeftColor-Avatar": "var(--xmlui-borderLeftColor-Avatar, var(--xmlui-borderHorizontalColor-Avatar, var(--xmlui-borderColor-Avatar)))", "borderRightColor-Avatar": "var(--xmlui-borderRightColor-Avatar, var(--xmlui-borderHorizontalColor-Avatar, var(--xmlui-borderColor-Avatar)))", "borderVerticalColor-Avatar": "var(--xmlui-borderVerticalColor-Avatar, var(--xmlui-borderColor-Avatar))", "borderTopColor-Avatar": "var(--xmlui-borderTopColor-Avatar, var(--xmlui-borderVerticalColor-Avatar, var(--xmlui-borderColor-Avatar)))", "borderBottomColor-Avatar": "var(--xmlui-borderBottomColor-Avatar, var(--xmlui-borderVerticalColor-Avatar, var(--xmlui-borderColor-Avatar)))", "borderStartStartRadius-Avatar": "var(--xmlui-borderStartStartRadius-Avatar, var(--xmlui-borderRadius-Avatar))", "borderStartEndRadius-Avatar": "var(--xmlui-borderStartEndRadius-Avatar, var(--xmlui-borderRadius-Avatar))", "borderEndStartRadius-Avatar": "var(--xmlui-borderEndStartRadius-Avatar, var(--xmlui-borderRadius-Avatar))", "borderEndEndRadius-Avatar": "var(--xmlui-borderEndEndRadius-Avatar, var(--xmlui-borderRadius-Avatar))", "backgroundColor-Avatar": "var(--xmlui-backgroundColor-Avatar)", "boxShadow-Avatar": "var(--xmlui-boxShadow-Avatar)", "textColor-Avatar": "var(--xmlui-textColor-Avatar)", "fontWeight-Avatar": "var(--xmlui-fontWeight-Avatar)"}'`,container:"_container_gnyw6_13",xs:"_xs_gnyw6_48",sm:"_sm_gnyw6_55",md:"_md_gnyw6_62",lg:"_lg_gnyw6_69",clickable:"_clickable_gnyw6_76"},nZ={size:"sm"},oZ=m.memo(m.forwardRef(function({size:t=nZ.size,url:r,name:n,style:o,onClick:i,...a},l){const s=m.useMemo(()=>mqe(n??null),[n]),u=f=>{i&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),i(f))},c=ze(_y.container,_y[t]||_y.sm,{[_y.clickable]:!!i}),d=n?`Avatar of ${n}`:"Avatar";return r?C.jsx("img",{...a,ref:l,src:r,alt:d,className:c,style:o,onClick:i,onKeyDown:u,tabIndex:i?0:void 0}):C.jsx("div",{...a,ref:l,className:c,style:o,onClick:i,onKeyDown:u,role:"img","aria-label":d,tabIndex:i?0:void 0,children:s||C.jsx("span",{"aria-hidden":"true"})})}));function mqe(e){return e?e.trim().split(" ").filter(r=>!!r.trim().length).map(r=>r[0].toUpperCase()).slice(0,3).join(""):null}const ac="Avatar",iZ={status:"stable",description:"`Avatar` displays a user or entity's profile picture as a circular image, with automatic fallback to initials when no image is provided. It's commonly used in headers, user lists, comments, and anywhere you need to represent a person or organization.",props:{size:{description:`This property defines the display size of the ${ac}.`,availableValues:I_,valueType:"string",defaultValue:nZ.size},name:{description:`This property sets the name value the ${ac} uses to display initials. If neither this property nor \`url\` is defined, an empty avatar is displayed.`,valueType:"string"},url:{description:`This property specifies the URL of the image to display in the ${ac}. If neither this property nor \`name\` is defined, an empty avatar is displayed.`,valueType:"string"}},events:{click:re("This event is triggered when the avatar is clicked.")},themeVars:tt(_y.themeVars),defaultThemeVars:{[`borderRadius-${ac}`]:"4px",[`boxShadow-${ac}`]:"inset 0 0 0 1px rgba(4,32,69,0.1)",[`textColor-${ac}`]:"$textColor-secondary",[`fontWeight-${ac}`]:"$fontWeight-bold",[`border-${ac}`]:"0px solid $color-surface-400A80",[`backgroundColor-${ac}`]:"$color-surface-100"}},pqe=xe(ac,iZ,({node:e,extractValue:t,lookupEventHandler:r,layoutCss:n,extractResourceUrl:o})=>{var i;return C.jsx(oZ,{size:(i=e.props)==null?void 0:i.size,url:o(e.props.url),name:t(e.props.name),style:n,onClick:r("click")})}),kS={themeVars:`'{"backgroundColor-ContentSeparator": "var(--xmlui-backgroundColor-ContentSeparator)", "size-ContentSeparator": "var(--xmlui-size-ContentSeparator)"}'`,separator:"_separator_1o93m_13",horizontal:"_horizontal_1o93m_16",vertical:"_vertical_1o93m_20"},aZ={orientation:"horizontal"},hqe=({orientation:e=aZ.orientation,size:t,style:r})=>C.jsx("div",{className:ze(kS.separator,{[kS.horizontal]:e==="horizontal",[kS.vertical]:e==="vertical"}),style:{height:e==="horizontal"?t:void 0,width:e==="horizontal"?"100%":t,...r}}),RH="ContentSeparator",lZ={status:"stable",description:"`ContentSeparator` creates visual dividers between content sections using horizontal or vertical lines. It's essential for improving readability by breaking up dense content, separating list items, or creating clear boundaries between different UI sections.",props:{size:{description:"This property defines the component's height (if the `orientation` is horizontal) or the width (if the `orientation` is vertical). If not defined, the component uses the entire available width or height.",valueType:"any"},orientation:{description:"Sets the main axis of the component",availableValues:R_,defaultValue:aZ.orientation,valueType:"string"}},themeVars:tt(kS.themeVars),defaultThemeVars:{[`backgroundColor-${RH}`]:"$color-surface-200",[`size-${RH}`]:"1px",light:{},dark:{}}},gqe=xe(RH,lZ,({node:e,layoutCss:t,extractValue:r})=>C.jsx(hqe,{orientation:r(e.props.orientation),size:r.asSize(e.props.size),style:t})),eh={themeVars:`'{"padding-Card": "var(--xmlui-padding-Card)", "paddingHorizontal-Card": "var(--xmlui-paddingHorizontal-Card, var(--xmlui-padding-Card))", "paddingVertical-Card": "var(--xmlui-paddingVertical-Card, var(--xmlui-padding-Card))", "paddingLeft-Card": "var(--xmlui-paddingLeft-Card, var(--xmlui-paddingHorizontal-Card, var(--xmlui-padding-Card)))", "paddingRight-Card": "var(--xmlui-paddingRight-Card, var(--xmlui-paddingHorizontal-Card, var(--xmlui-padding-Card)))", "paddingTop-Card": "var(--xmlui-paddingTop-Card, var(--xmlui-paddingVertical-Card, var(--xmlui-padding-Card)))", "paddingBottom-Card": "var(--xmlui-paddingBottom-Card, var(--xmlui-paddingVertical-Card, var(--xmlui-padding-Card)))", "border-Card": "var(--xmlui-border-Card)", "borderHorizontal-Card": "var(--xmlui-borderHorizontal-Card, var(--xmlui-border-Card))", "borderVertical-Card": "var(--xmlui-borderVertical-Card, var(--xmlui-border-Card))", "borderLeft-Card": "var(--xmlui-borderLeft-Card, var(--xmlui-borderHorizontal-Card, var(--xmlui-border-Card)))", "borderRight-Card": "var(--xmlui-borderRight-Card, var(--xmlui-borderHorizontal-Card, var(--xmlui-border-Card)))", "borderTop-Card": "var(--xmlui-borderTop-Card, var(--xmlui-borderVertical-Card, var(--xmlui-border-Card)))", "borderBottom-Card": "var(--xmlui-borderBottom-Card, var(--xmlui-borderVertical-Card, var(--xmlui-border-Card)))", "borderWidth-Card": "var(--xmlui-borderWidth-Card)", "borderHorizontalWidth-Card": "var(--xmlui-borderHorizontalWidth-Card, var(--xmlui-borderWidth-Card))", "borderLeftWidth-Card": "var(--xmlui-borderLeftWidth-Card, var(--xmlui-borderHorizontalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderRightWidth-Card": "var(--xmlui-borderRightWidth-Card, var(--xmlui-borderHorizontalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderVerticalWidth-Card": "var(--xmlui-borderVerticalWidth-Card, var(--xmlui-borderWidth-Card))", "borderTopWidth-Card": "var(--xmlui-borderTopWidth-Card, var(--xmlui-borderVerticalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderBottomWidth-Card": "var(--xmlui-borderBottomWidth-Card, var(--xmlui-borderVerticalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderStyle-Card": "var(--xmlui-borderStyle-Card)", "borderHorizontalStyle-Card": "var(--xmlui-borderHorizontalStyle-Card, var(--xmlui-borderStyle-Card))", "borderLeftStyle-Card": "var(--xmlui-borderLeftStyle-Card, var(--xmlui-borderHorizontalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderRightStyle-Card": "var(--xmlui-borderRightStyle-Card, var(--xmlui-borderHorizontalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderVerticalStyle-Card": "var(--xmlui-borderVerticalStyle-Card, var(--xmlui-borderStyle-Card))", "borderTopStyle-Card": "var(--xmlui-borderTopStyle-Card, var(--xmlui-borderVerticalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderBottomStyle-Card": "var(--xmlui-borderBottomStyle-Card, var(--xmlui-borderVerticalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderColor-Card": "var(--xmlui-borderColor-Card)", "borderHorizontalColor-Card": "var(--xmlui-borderHorizontalColor-Card, var(--xmlui-borderColor-Card))", "borderLeftColor-Card": "var(--xmlui-borderLeftColor-Card, var(--xmlui-borderHorizontalColor-Card, var(--xmlui-borderColor-Card)))", "borderRightColor-Card": "var(--xmlui-borderRightColor-Card, var(--xmlui-borderHorizontalColor-Card, var(--xmlui-borderColor-Card)))", "borderVerticalColor-Card": "var(--xmlui-borderVerticalColor-Card, var(--xmlui-borderColor-Card))", "borderTopColor-Card": "var(--xmlui-borderTopColor-Card, var(--xmlui-borderVerticalColor-Card, var(--xmlui-borderColor-Card)))", "borderBottomColor-Card": "var(--xmlui-borderBottomColor-Card, var(--xmlui-borderVerticalColor-Card, var(--xmlui-borderColor-Card)))", "borderStartStartRadius-Card": "var(--xmlui-borderStartStartRadius-Card, var(--xmlui-borderRadius-Card))", "borderStartEndRadius-Card": "var(--xmlui-borderStartEndRadius-Card, var(--xmlui-borderRadius-Card))", "borderEndStartRadius-Card": "var(--xmlui-borderEndStartRadius-Card, var(--xmlui-borderRadius-Card))", "borderEndEndRadius-Card": "var(--xmlui-borderEndEndRadius-Card, var(--xmlui-borderRadius-Card))", "boxShadow-Card": "var(--xmlui-boxShadow-Card)", "backgroundColor-Card": "var(--xmlui-backgroundColor-Card)", "borderRadius-Card": "var(--xmlui-borderRadius-Card)", "gap-Card": "var(--xmlui-gap-Card)", "gap-title-Card": "var(--xmlui-gap-title-Card)", "gap-avatar-Card": "var(--xmlui-gap-avatar-Card)", "horizontalAlignment-title-Card": "var(--xmlui-horizontalAlignment-title-Card)", "verticalAlignment-title-Card": "var(--xmlui-verticalAlignment-title-Card)"}'`,wrapper:"_wrapper_zx7g9_13",avatarWrapper:"_avatarWrapper_zx7g9_46",titleWrapper:"_titleWrapper_zx7g9_53",horizontal:"_horizontal_zx7g9_61",vertical:"_vertical_zx7g9_65",isClickable:"_isClickable_zx7g9_68"},_S={orientation:"vertical",showAvatar:!1},sZ=m.forwardRef(function({children:t,orientation:r=_S.orientation,style:n,title:o,subtitle:i,linkTo:a,avatarUrl:l,showAvatar:s=!!l||_S.showAvatar,avatarSize:u,onClick:c},d){const f={level:"h2",maxLines:1};return C.jsxs("div",{ref:d,className:ze(eh.wrapper,{[eh.isClickable]:!!c,[eh.vertical]:r==="vertical",[eh.horizontal]:r==="horizontal"}),style:n,onClick:c,children:[[o,i,l,s].some(Boolean)&&C.jsxs("div",{className:eh.avatarWrapper,children:[s&&C.jsx(oZ,{url:l,name:o,size:u}),C.jsxs("div",{className:eh.titleWrapper,children:[a?o?C.jsx(Kx,{to:a+"",children:C.jsx(ec,{...f,children:o})}):null:o?C.jsx(ec,{...f,children:o}):null,i!==void 0&&C.jsx(C.Fragment,{children:C.jsx(xr,{variant:"secondary",children:i})})]})]}),t]})}),Wo="Card",uZ={status:"stable",description:"`Card` is a versatile container that groups related content with a visual boundary, typically featuring background color, padding, borders, and rounded corners. It's ideal for organizing information, creating sections, and establishing visual hierarchy in your interface.",props:{avatarUrl:{description:`The url for an avarar image. If not specified, but [\`showAvatar\`](#showAvatar) is true, ${Wo} will show the first letters of the [\`title\`](#title).`,type:"string"},showAvatar:{description:"Indicates whether the avatar should be displayed",valueType:"boolean",defaultValue:_S.showAvatar},avatarSize:{description:"This prop sets the size of the avatar. The default value is `sm`.",availableValues:["xs","sm","md","lg"],valueType:"string"},title:{description:"This prop sets the pre-styled title. If the property is not set, no title is displayed in the Card.",valueType:"string"},subtitle:{description:"This prop sets the pre-styled subtitle. If the property is not set, no subtitle is displayed in the Card.",valueType:"string"},linkTo:{description:"This optional property wraps the title in a `Link` component that is clickable to navigate.",valueType:"string"},orientation:{description:`An optional property that governs the ${Wo}'s orientation (whether the ${Wo} lays out its children in a row or a column). If the orientation is set to \`horizontal\`, the ${Wo} will display its children in a row, except for its [\`title\`](#title) and [\`subtitle\`](#subtitle).`,availableValues:R_,valueType:"string",defaultValue:_S.orientation}},events:{click:dv(Wo)},themeVars:tt(eh.themeVars),defaultThemeVars:{[`padding-${Wo}`]:"$space-4",[`border-${Wo}`]:"1px solid $borderColor",[`borderRadius-${Wo}`]:"$borderRadius",[`boxShadow-${Wo}`]:"none",[`backgroundColor-${Wo}`]:"$color-surface-raised",[`gap-${Wo}`]:"var(--stack-gap-default)",[`gap-title-${Wo}`]:"$gap-none",[`gap-avatar-${Wo}`]:"$gap-normal",[`verticalAlignment-title-${Wo}`]:"center"},themeVarDescriptions:{[`gap-${Wo}`]:"The gap between the component's children.",[`gap-title-${Wo}`]:"The gap between the title and the subtitle",[`gap-avatar-${Wo}`]:"The gap between the avatar and the title panel",[`horizontalAlignment-title-${Wo}`]:"The horizontal alignment of panel with the title and subtitle",[`verticalAlignment-title-${Wo}`]:"The vertical alignment of the title and subtitle to the avatar"}},vqe=xe("Card",uZ,({node:e,extractValue:t,renderChild:r,layoutCss:n})=>C.jsx(sZ,{style:n,title:t.asOptionalString(e.props.title),linkTo:t.asOptionalString(e.props.linkTo),subtitle:t.asOptionalString(e.props.subtitle),avatarUrl:t.asOptionalString(e.props.avatarUrl),showAvatar:t.asOptionalBoolean(e.props.showAvatar),avatarSize:t.asOptionalString(e.props.avatarSize),orientation:t.asOptionalString(e.props.orientation),children:r(e.children,{type:"Stack",orientation:"vertical"})})),Bf={themeVars:'"[]"',outer:"_outer_aarhe_13",flowContainer:"_flowContainer_aarhe_17",horizontal:"_horizontal_aarhe_21",flowItem:"_flowItem_aarhe_24",break:"_break_aarhe_47",forceBreak:"_forceBreak_aarhe_47",starSized:"_starSized_aarhe_47"},PH={},cZ=m.createContext({rowGap:0,columnGap:0,setNumberOfChildren:yp}),dZ=({force:e})=>C.jsx("div",{className:ze(Bf.break,{[Bf.forceBreak]:e})}),bqe=m.forwardRef(function({children:t,forceBreak:r,...n},o){const{rowGap:i,columnGap:a,setNumberOfChildren:l}=m.useContext(cZ),{mediaSize:s}=jo();_n(()=>(l(A=>A+1),()=>{l(A=>A-1)}),[l]);const{activeTheme:u,root:c}=zr(),d=n.width||"100%",f=n.minWidth||void 0,p=n.maxWidth||void 0,{width:g=d,minWidth:v,maxWidth:b,flex:y}=m.useMemo(()=>MQ({width:d,maxWidth:p,minWidth:f},{type:"Stack",orientation:"horizontal"}).cssProps||{},[p,f,d]),w=m.useMemo(()=>{if(g&&typeof g=="string"&&g.startsWith("var(")){if(!PH[g]){const A=g.substring(4,g.length-1),I=getComputedStyle(c||document.body).getPropertyValue(A);PH[g]=I||d}return PH[g]}return g||d},[d,c,g]),k=typeof w=="string"&&w.endsWith("%"),E=p7e(a);let _;if(k){const A=parseFloat(w);if(s.sizeIndex<=1){let I=A*4;I>50?_="100%":_=`min(${I}%, 100%)`}else if(s.sizeIndex<=2){let I=A*3;I>=50&&I<=75?_="50%":I>75?_="100%":_=`min(${I}%, 100%)`}else _=`min(${g}, 100%)`}else _=`min(calc(${g} + ${E}), 100%)`;const S={minWidth:v,maxWidth:b,width:_,paddingBottom:i,flex:y},O=y!==void 0;return O&&(S.width="100%",S.minWidth=v||"1px"),C.jsxs(C.Fragment,{children:[C.jsx("div",{style:{...S,paddingRight:E},className:ze(Bf.flowItem,{[Bf.starSized]:O}),ref:o,children:t}),O&&C.jsx(dZ,{})]})}),fZ={columnGap:"$gap-normal",rowGap:"$gap-normal"},xqe=m.forwardRef(function({style:t,columnGap:r=0,rowGap:n=0,children:o},i){const[a,l]=m.useState(0),s=a===1?0:r,u=IG(n),c=IG(s),d=m.useMemo(()=>({marginRight:`calc(-1 * ${c})`,marginBottom:`calc(-1 * ${u})`}),[c,u]),f=m.useMemo(()=>({rowGap:u,columnGap:c,setNumberOfChildren:l}),[c,u]);return C.jsx(cZ.Provider,{value:f,children:C.jsx("div",{style:t,ref:i,children:C.jsx("div",{className:Bf.outer,children:C.jsx("div",{className:ze(Bf.flowContainer,Bf.horizontal),style:d,children:o})})})})}),HH="FlowLayout",mZ={status:"stable",description:"`FlowLayout` positions content in rows with automatic wrapping. When items exceed the available horizontal space, they automatically wrap to a new line.",props:{gap:{description:`This property defines the gap between items in the same row and between rows. The ${HH} component creates a new row when an item is about to overflow the current row.`,type:"string",defaultValue:"$gap-normal"},columnGap:{description:"The `columnGap` property specifies the space between items in a single row; it overrides the `gap` value.",defaultValue:fZ.columnGap},rowGap:{description:`The \`rowGap\` property specifies the space between the ${HH} rows; it overrides the \`gap\` value.`,defaultValue:fZ.rowGap}},themeVars:tt(Bf.themeVars)},yqe=xe(HH,mZ,({node:e,renderChild:t,layoutCss:r,extractValue:n})=>{var a,l;if(!VI(e.children))throw new nx;const o=n.asSize((a=e.props)==null?void 0:a.columnGap)||r.gap||n.asSize("$space-4"),i=n.asSize((l=e.props)==null?void 0:l.rowGap)||r.gap||n.asSize("$space-4");return C.jsx(xqe,{style:r,columnGap:o,rowGap:i,children:t(e.children,{wrapChild:({node:s,extractValue:u},c,d)=>{var v,b,y;if(d!=null&&d.opaque)return c;if(s.type==="SpaceFiller")return C.jsx(dZ,{force:!0});const f=u((v=s.props)==null?void 0:v.width),p=u((b=s.props)==null?void 0:b.minWidth),g=u((y=s.props)==null?void 0:y.maxWidth);return C.jsx(bqe,{width:f,minWidth:p,maxWidth:g,forceBreak:s.type==="SpaceFiller",children:c})}})})}),jf={themeVars:`'{"padding-ModalDialog": "var(--xmlui-padding-ModalDialog)", "paddingHorizontal-ModalDialog": "var(--xmlui-paddingHorizontal-ModalDialog, var(--xmlui-padding-ModalDialog))", "paddingVertical-ModalDialog": "var(--xmlui-paddingVertical-ModalDialog, var(--xmlui-padding-ModalDialog))", "paddingLeft-ModalDialog": "var(--xmlui-paddingLeft-ModalDialog, var(--xmlui-paddingHorizontal-ModalDialog, var(--xmlui-padding-ModalDialog)))", "paddingRight-ModalDialog": "var(--xmlui-paddingRight-ModalDialog, var(--xmlui-paddingHorizontal-ModalDialog, var(--xmlui-padding-ModalDialog)))", "paddingTop-ModalDialog": "var(--xmlui-paddingTop-ModalDialog, var(--xmlui-paddingVertical-ModalDialog, var(--xmlui-padding-ModalDialog)))", "paddingBottom-ModalDialog": "var(--xmlui-paddingBottom-ModalDialog, var(--xmlui-paddingVertical-ModalDialog, var(--xmlui-padding-ModalDialog)))", "padding-overlay-ModalDialog": "var(--xmlui-padding-overlay-ModalDialog)", "paddingHorizontal-overlay-ModalDialog": "var(--xmlui-paddingHorizontal-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog))", "paddingVertical-overlay-ModalDialog": "var(--xmlui-paddingVertical-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog))", "paddingLeft-overlay-ModalDialog": "var(--xmlui-paddingLeft-overlay-ModalDialog, var(--xmlui-paddingHorizontal-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog)))", "paddingRight-overlay-ModalDialog": "var(--xmlui-paddingRight-overlay-ModalDialog, var(--xmlui-paddingHorizontal-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog)))", "paddingTop-overlay-ModalDialog": "var(--xmlui-paddingTop-overlay-ModalDialog, var(--xmlui-paddingVertical-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog)))", "paddingBottom-overlay-ModalDialog": "var(--xmlui-paddingBottom-overlay-ModalDialog, var(--xmlui-paddingVertical-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog)))", "Dialog:backgroundColor-ModalDialog": "var(--xmlui-backgroundColor-ModalDialog)", "Dialog:backgroundColor-overlay-ModalDialog": "var(--xmlui-backgroundColor-overlay-ModalDialog)", "Dialog:borderRadius-ModalDialog": "var(--xmlui-borderRadius-ModalDialog)", "Dialog:fontFamily-ModalDialog": "var(--xmlui-fontFamily-ModalDialog)", "Dialog:textColor-ModalDialog": "var(--xmlui-textColor-ModalDialog)", "Dialog:minWidth-ModalDialog": "var(--xmlui-minWidth-ModalDialog)", "Dialog:maxWidth-ModalDialog": "var(--xmlui-maxWidth-ModalDialog)", "Dialog:marginBottom-title-ModalDialog": "var(--xmlui-marginBottom-title-ModalDialog)"}'`,overlay:"_overlay_it5gt_13",fullScreen:"_fullScreen_it5gt_21",content:"_content_it5gt_27",overlayBg:"_overlayBg_it5gt_36",dialogTitle:"_dialogTitle_it5gt_70",innerContent:"_innerContent_it5gt_76",closeButton:"_closeButton_it5gt_102"};function LH(e,t){return{[`paddingLeft-${e}`]:(t==null?void 0:t.left)??`$paddingHorizontal-${e}`,[`paddingRight-${e}`]:(t==null?void 0:t.right)??`$paddingHorizontal-${e}`,[`paddingTop-${e}`]:(t==null?void 0:t.top)??`$paddingVertical-${e}`,[`paddingBottom-${e}`]:(t==null?void 0:t.bottom)??`$paddingVertical-${e}`,[`paddingHorizontal-${e}`]:(t==null?void 0:t.horizontal)??"",[`paddingVertical-${e}`]:(t==null?void 0:t.vertical)??"",[`padding-${e}`]:(t==null?void 0:t.all)??`$paddingTop-${e} $paddingRight-${e} $paddingBottom-${e} $paddingLeft-${e}`}}const pZ=ee.createContext(null),wqe=()=>{const e=m.useId(),{registerForm:t,unRegisterForm:r,requestClose:n,amITheSingleForm:o}=m.useContext(pZ)||{};return m.useEffect(()=>{if(t)return t(e),()=>{r==null||r(e)}},[e,t,r]),m.useCallback(()=>{if(n&&o(e))return n()},[o,e,n])},TS={fullScreen:!1,closeButtonVisible:!0},Cqe=ee.forwardRef(({isInitiallyOpen:e,onOpen:t,onClose:r,registerComponentApi:n,renderDialog:o},i)=>{const a=gZ(e,t,r),{doOpen:l,doClose:s,isOpen:u,openParams:c}=a;return m.useEffect(()=>{n==null||n({open:l,close:s})},[s,l,n]),u?C.jsx(hZ.Provider,{value:a,children:o({openParams:c,ref:i})}):null}),hZ=ee.createContext(null);function gZ(e,t,r){const[n,o]=m.useState(e),i=m.useRef(!1),[a,l]=m.useState(null),s=Mt((...c)=>{l(c),t==null||t(),o(!0)}),u=Mt(async()=>{if(!i.current)try{if(i.current=!0,await(r==null?void 0:r())===!1)return}finally{i.current=!1}o(!1)});return m.useMemo(()=>({isOpen:n,doClose:u,doOpen:s,openParams:a}),[u,s,n,a])}function kqe(e=!0,t,r){const n=m.useContext(hZ),o=gZ(e,t,r);return n||o}const SS=ee.forwardRef(({children:e,style:t,isInitiallyOpen:r,fullScreen:n=TS.fullScreen,title:o,closeButtonVisible:i=TS.closeButtonVisible,onOpen:a,onClose:l},s)=>{const{root:u}=zr(),c=m.useRef(null),d=s?no(s,c):c,{isOpen:f,doClose:p,doOpen:g}=kqe(r,a,l);m.useEffect(()=>{var y;f&&((y=c.current)==null||y.focus())},[f]),m.useEffect(()=>{if(f){const y=setTimeout(()=>{document.body.style.pointerEvents=""},0);return()=>clearTimeout(y)}else document.body.style.pointerEvents="auto"},[f]);const v=m.useRef(new Set),b=m.useMemo(()=>({registerForm:y=>{v.current.add(y)},unRegisterForm:y=>{v.current.delete(y)},amITheSingleForm:y=>v.current.size===1&&v.current.has(y),requestClose:()=>p()}),[p]);return u?C.jsx(vY,{open:f,onOpenChange:y=>y?g():p(),children:C.jsxs(bY,{container:u,children:[!n&&C.jsx("div",{className:jf.overlayBg}),C.jsx(QR,{className:ze(jf.overlay,{[jf.fullScreen]:n}),children:C.jsxs(ZR,{className:ze(jf.content),onPointerDownOutside:y=>{y.target instanceof Element&&y.target.closest("._debug-inspect-button")!==null&&y.preventDefault()},ref:d,style:{...t,gap:void 0},children:[!!o&&C.jsx(JR,{style:{marginTop:0},children:C.jsx("header",{id:"dialogTitle",className:jf.dialogTitle,children:o})}),C.jsx("div",{className:jf.innerContent,style:{gap:t==null?void 0:t.gap},children:C.jsx(pZ.Provider,{value:b,children:e})}),i&&C.jsx(yY,{asChild:!0,children:C.jsx(sn,{variant:"ghost",themeColor:"secondary",className:jf.closeButton,"aria-label":"Close",icon:C.jsx(kt,{name:"close",size:"sm"}),orientation:"vertical"})})]})})]})}):null});SS.displayName="ModalDialog";const us="ModalDialog",vZ={status:"stable",description:"`ModalDialog` creates overlay dialogs that appear on top of the main interface, ideal for forms, confirmations, detailed views, or any content that requires focused user attention. Dialogs are programmatically opened using the `open()` method and can receive parameters for dynamic content.",props:{fullScreen:{description:"Toggles whether the dialog encompasses the whole UI (`true`) or not and has a minimum width and height (`false`).",valueType:"boolean",defaultValue:TS.fullScreen},title:re("Provides a prestyled heading to display the intent of the dialog."),closeButtonVisible:{description:"Shows (`true`) or hides (`false`) the visibility of the close button on the dialog.",valueType:"boolean",defaultValue:TS.closeButtonVisible}},events:{open:re(`This event is fired when the \`${us}\` is opened either via a \`when\` or an imperative API call (\`open()\`).`),close:re(`This event is fired when the close button is pressed or the user clicks outside the \`${us}\`.`)},apis:{close:re(`This method is used to close the \`${us}\`. Invoke it using \`modalId.close()\` where \`modalId\` refers to a \`ModalDialog\` component.`),open:re("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:re("First parameter passed to the `open()` method"),$params:re("Array of all parameters passed to `open()` method (access with `$params[0]`, `$params[1]`, etc.)")},themeVars:tt(jf.themeVars),defaultThemeVars:{...LH(us,{all:"$space-7"}),[`backgroundColor-${us}`]:"$backgroundColor-primary",[`backgroundColor-overlay-${us}`]:"$backgroundColor-overlay",[`textColor-${us}`]:"$textColor-primary",[`borderRadius-${us}`]:"$borderRadius",[`fontFamily-${us}`]:"$fontFamily",[`maxWidth-${us}`]:"450px",[`marginBottom-title-${us}`]:"0"}},_qe=xe(us,vZ,({node:e,extractValue:t,layoutCss:r,renderChild:n,lookupEventHandler:o,registerComponentApi:i,layoutContext:a})=>{var l,s;return a!=null&&a._insideModalFrame?C.jsx(SS,{style:r,fullScreen:t((l=e.props)==null?void 0:l.fullScreen),title:t((s=e.props)==null?void 0:s.title),closeButtonVisible:t.asOptionalBoolean(e.props.closeButtonVisible),children:n(e.children,{type:"Stack"})}):C.jsx(Cqe,{isInitiallyOpen:e.when!==void 0,registerComponentApi:i,onClose:o("close"),onOpen:o("open"),renderDialog:({openParams:u,ref:c})=>C.jsx(wi,{node:e,renderChild:n,layoutContext:{_insideModalFrame:!0},contextVars:{$param:u==null?void 0:u[0],$params:u}})})}),NH={themeVars:`'{"padding-NoResult": "var(--xmlui-padding-NoResult)", "paddingHorizontal-NoResult": "var(--xmlui-paddingHorizontal-NoResult, var(--xmlui-padding-NoResult))", "paddingVertical-NoResult": "var(--xmlui-paddingVertical-NoResult, var(--xmlui-padding-NoResult))", "paddingLeft-NoResult": "var(--xmlui-paddingLeft-NoResult, var(--xmlui-paddingHorizontal-NoResult, var(--xmlui-padding-NoResult)))", "paddingRight-NoResult": "var(--xmlui-paddingRight-NoResult, var(--xmlui-paddingHorizontal-NoResult, var(--xmlui-padding-NoResult)))", "paddingTop-NoResult": "var(--xmlui-paddingTop-NoResult, var(--xmlui-paddingVertical-NoResult, var(--xmlui-padding-NoResult)))", "paddingBottom-NoResult": "var(--xmlui-paddingBottom-NoResult, var(--xmlui-paddingVertical-NoResult, var(--xmlui-padding-NoResult)))", "border-NoResult": "var(--xmlui-border-NoResult)", "borderHorizontal-NoResult": "var(--xmlui-borderHorizontal-NoResult, var(--xmlui-border-NoResult))", "borderVertical-NoResult": "var(--xmlui-borderVertical-NoResult, var(--xmlui-border-NoResult))", "borderLeft-NoResult": "var(--xmlui-borderLeft-NoResult, var(--xmlui-borderHorizontal-NoResult, var(--xmlui-border-NoResult)))", "borderRight-NoResult": "var(--xmlui-borderRight-NoResult, var(--xmlui-borderHorizontal-NoResult, var(--xmlui-border-NoResult)))", "borderTop-NoResult": "var(--xmlui-borderTop-NoResult, var(--xmlui-borderVertical-NoResult, var(--xmlui-border-NoResult)))", "borderBottom-NoResult": "var(--xmlui-borderBottom-NoResult, var(--xmlui-borderVertical-NoResult, var(--xmlui-border-NoResult)))", "borderWidth-NoResult": "var(--xmlui-borderWidth-NoResult)", "borderHorizontalWidth-NoResult": "var(--xmlui-borderHorizontalWidth-NoResult, var(--xmlui-borderWidth-NoResult))", "borderLeftWidth-NoResult": "var(--xmlui-borderLeftWidth-NoResult, var(--xmlui-borderHorizontalWidth-NoResult, var(--xmlui-borderWidth-NoResult)))", "borderRightWidth-NoResult": "var(--xmlui-borderRightWidth-NoResult, var(--xmlui-borderHorizontalWidth-NoResult, var(--xmlui-borderWidth-NoResult)))", "borderVerticalWidth-NoResult": "var(--xmlui-borderVerticalWidth-NoResult, var(--xmlui-borderWidth-NoResult))", "borderTopWidth-NoResult": "var(--xmlui-borderTopWidth-NoResult, var(--xmlui-borderVerticalWidth-NoResult, var(--xmlui-borderWidth-NoResult)))", "borderBottomWidth-NoResult": "var(--xmlui-borderBottomWidth-NoResult, var(--xmlui-borderVerticalWidth-NoResult, var(--xmlui-borderWidth-NoResult)))", "borderStyle-NoResult": "var(--xmlui-borderStyle-NoResult)", "borderHorizontalStyle-NoResult": "var(--xmlui-borderHorizontalStyle-NoResult, var(--xmlui-borderStyle-NoResult))", "borderLeftStyle-NoResult": "var(--xmlui-borderLeftStyle-NoResult, var(--xmlui-borderHorizontalStyle-NoResult, var(--xmlui-borderStyle-NoResult)))", "borderRightStyle-NoResult": "var(--xmlui-borderRightStyle-NoResult, var(--xmlui-borderHorizontalStyle-NoResult, var(--xmlui-borderStyle-NoResult)))", "borderVerticalStyle-NoResult": "var(--xmlui-borderVerticalStyle-NoResult, var(--xmlui-borderStyle-NoResult))", "borderTopStyle-NoResult": "var(--xmlui-borderTopStyle-NoResult, var(--xmlui-borderVerticalStyle-NoResult, var(--xmlui-borderStyle-NoResult)))", "borderBottomStyle-NoResult": "var(--xmlui-borderBottomStyle-NoResult, var(--xmlui-borderVerticalStyle-NoResult, var(--xmlui-borderStyle-NoResult)))", "borderColor-NoResult": "var(--xmlui-borderColor-NoResult)", "borderHorizontalColor-NoResult": "var(--xmlui-borderHorizontalColor-NoResult, var(--xmlui-borderColor-NoResult))", "borderLeftColor-NoResult": "var(--xmlui-borderLeftColor-NoResult, var(--xmlui-borderHorizontalColor-NoResult, var(--xmlui-borderColor-NoResult)))", "borderRightColor-NoResult": "var(--xmlui-borderRightColor-NoResult, var(--xmlui-borderHorizontalColor-NoResult, var(--xmlui-borderColor-NoResult)))", "borderVerticalColor-NoResult": "var(--xmlui-borderVerticalColor-NoResult, var(--xmlui-borderColor-NoResult))", "borderTopColor-NoResult": "var(--xmlui-borderTopColor-NoResult, var(--xmlui-borderVerticalColor-NoResult, var(--xmlui-borderColor-NoResult)))", "borderBottomColor-NoResult": "var(--xmlui-borderBottomColor-NoResult, var(--xmlui-borderVerticalColor-NoResult, var(--xmlui-borderColor-NoResult)))", "borderStartStartRadius-NoResult": "var(--xmlui-borderStartStartRadius-NoResult, var(--xmlui-borderRadius-NoResult))", "borderStartEndRadius-NoResult": "var(--xmlui-borderStartEndRadius-NoResult, var(--xmlui-borderRadius-NoResult))", "borderEndStartRadius-NoResult": "var(--xmlui-borderEndStartRadius-NoResult, var(--xmlui-borderRadius-NoResult))", "borderEndEndRadius-NoResult": "var(--xmlui-borderEndEndRadius-NoResult, var(--xmlui-borderRadius-NoResult))", "gap-icon-NoResult": "var(--xmlui-gap-icon-NoResult)", "size-icon-NoResult": "var(--xmlui-size-icon-NoResult)"}'`,wrapper:"_wrapper_1vx80_13",icon:"_icon_1vx80_45"},ES={hideIcon:!1,icon:"noresult"},Tqe=m.forwardRef(function({label:t,icon:r=ES.icon,hideIcon:n=ES.hideIcon,style:o},i){return C.jsxs("div",{className:NH.wrapper,style:o,ref:i,children:[!n&&C.jsx(kt,{name:r,className:NH.icon}),t]})}),Ty="NoResult",bZ={status:"stable",description:"`NoResult` displays a visual indication that a query or search returned nothing.",props:{label:to(),icon:{description:"This property defines the icon to display with the component.",valueType:"string",defaultValue:ES.icon},hideIcon:{description:"This boolean property indicates if the icon should be hidden.",valueType:"boolean",defaultValue:ES.hideIcon}},themeVars:tt(NH.themeVars),defaultThemeVars:{[`border-${Ty}`]:"0px solid $borderColor",[`paddingVertical-${Ty}`]:"$space-2",[`gap-icon-${Ty}`]:"$space-2",[`size-icon-${Ty}`]:"$space-8",light:{},dark:{}}},Sqe=xe(Ty,bZ,({node:e,extractValue:t,layoutCss:r})=>C.jsx(Tqe,{label:t.asDisplayText(e.props.label||e.children||"No results found"),icon:e.props.icon,hideIcon:t.asOptionalBoolean(e.props.hideIcon),style:r})),$H={themeVars:`'{"backgroundColor-FileUploadDropZone": "var(--xmlui-backgroundColor-FileUploadDropZone)", "textColor-FileUploadDropZone": "var(--xmlui-textColor-FileUploadDropZone)", "backgroundColor-dropping-FileUploadDropZone": "var(--xmlui-backgroundColor-dropping-FileUploadDropZone)", "opacity-dropping-FileUploadDropZone": "var(--xmlui-opacity-dropping-FileUploadDropZone)"}'`,wrapper:"_wrapper_15hp1_13",dropPlaceholder:"_dropPlaceholder_15hp1_21"};var Eqe=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 Sy(e,t){var r=Oqe(e);if(typeof r.path!="string"){var n=e.webkitRelativePath;Object.defineProperty(r,"path",{value:typeof t=="string"?t:typeof n=="string"&&n.length>0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}function Oqe(e){var t=e.name,r=t&&t.lastIndexOf(".")!==-1;if(r&&!e.type){var n=t.split(".").pop().toLowerCase(),o=Eqe.get(n);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var Aqe=[".DS_Store","Thumbs.db"];function Iqe(e){return Sv(this,void 0,void 0,function(){return Ev(this,function(t){return OS(e)&&Rqe(e.dataTransfer)?[2,Nqe(e.dataTransfer,e.type)]:Pqe(e)?[2,Hqe(e)]:Array.isArray(e)&&e.every(function(r){return"getFile"in r&&typeof r.getFile=="function"})?[2,Lqe(e)]:[2,[]]})})}function Rqe(e){return OS(e)}function Pqe(e){return OS(e)&&OS(e.target)}function OS(e){return typeof e=="object"&&e!==null}function Hqe(e){return DH(e.target.files).map(function(t){return Sy(t)})}function Lqe(e){return Sv(this,void 0,void 0,function(){var t;return Ev(this,function(r){switch(r.label){case 0:return[4,Promise.all(e.map(function(n){return n.getFile()}))];case 1:return t=r.sent(),[2,t.map(function(n){return Sy(n)})]}})})}function Nqe(e,t){return Sv(this,void 0,void 0,function(){var r,n;return Ev(this,function(o){switch(o.label){case 0:return e.items?(r=DH(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,r]:[4,Promise.all(r.map($qe))]):[3,2];case 1:return n=o.sent(),[2,xZ(yZ(n))];case 2:return[2,xZ(DH(e.files).map(function(i){return Sy(i)}))]}})})}function xZ(e){return e.filter(function(t){return Aqe.indexOf(t.name)===-1})}function DH(e){if(e===null)return[];for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(n)}return t}function $qe(e){if(typeof e.webkitGetAsEntry!="function")return wZ(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?CZ(t):wZ(e)}function yZ(e){return e.reduce(function(t,r){return Ov(Ov([],GG(t),!1),GG(Array.isArray(r)?yZ(r):[r]),!1)},[])}function wZ(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var r=Sy(t);return Promise.resolve(r)}function Dqe(e){return Sv(this,void 0,void 0,function(){return Ev(this,function(t){return[2,e.isDirectory?CZ(e):Bqe(e)]})})}function CZ(e){var t=e.createReader();return new Promise(function(r,n){var o=[];function i(){var a=this;t.readEntries(function(l){return Sv(a,void 0,void 0,function(){var s,u,c;return Ev(this,function(d){switch(d.label){case 0:if(l.length)return[3,5];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return s=d.sent(),r(s),[3,4];case 3:return u=d.sent(),n(u),[3,4];case 4:return[3,6];case 5:c=Promise.all(l.map(Dqe)),o.push(c),i(),d.label=6;case 6:return[2]}})})},function(l){n(l)})}i()})}function Bqe(e){return Sv(this,void 0,void 0,function(){return Ev(this,function(t){return[2,new Promise(function(r,n){e.file(function(o){var i=Sy(o,e.fullPath);r(i)},function(o){n(o)})})]})})}var jqe=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(",");if(r.length===0)return!0;var n=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return r.some(function(a){var l=a.trim().toLowerCase();return l.charAt(0)==="."?n.toLowerCase().endsWith(l):l.endsWith("/*")?i===l.replace(/\/.*$/,""):o===l})}return!0};function kZ(e){return Fqe(e)||zqe(e)||EZ(e)||Mqe()}function Mqe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
234
234
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zqe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Fqe(e){if(Array.isArray(e))return BH(e)}function _Z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function TZ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_Z(Object(r),!0).forEach(function(n){SZ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_Z(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SZ(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ey(e,t){return Uqe(e)||Vqe(e,t)||EZ(e,t)||Wqe()}function Wqe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
235
235
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EZ(e,t){if(e){if(typeof e=="string")return BH(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return BH(e,t)}}function BH(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Vqe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],o=!0,i=!1,a,l;try{for(r=r.call(e);!(o=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));o=!0);}catch(s){i=!0,l=s}finally{try{!o&&r.return!=null&&r.return()}finally{if(i)throw l}}return n}}function Uqe(e){if(Array.isArray(e))return e}var OZ="file-invalid-type",AZ="file-too-large",IZ="file-too-small",RZ="too-many-files",qqe={FileInvalidType:OZ,FileTooLarge:AZ,FileTooSmall:IZ,TooManyFiles:RZ},Gqe=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var r=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:OZ,message:"File type must be ".concat(r)}},PZ=function(t){return{code:AZ,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},HZ=function(t){return{code:IZ,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Yqe={code:RZ,message:"Too many files"};function LZ(e,t){var r=e.type==="application/x-moz-file"||jqe(e,t);return[r,r?null:Gqe(t)]}function NZ(e,t,r){if(th(e.size))if(th(t)&&th(r)){if(e.size>r)return[!1,PZ(r)];if(e.size<t)return[!1,HZ(t)]}else{if(th(t)&&e.size<t)return[!1,HZ(t)];if(th(r)&&e.size>r)return[!1,PZ(r)]}return[!0,null]}function th(e){return e!=null}function Kqe(e){var t=e.files,r=e.accept,n=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,l=e.validator;return!i&&t.length>1||i&&a>=1&&t.length>a?!1:t.every(function(s){var u=LZ(s,r),c=Ey(u,1),d=c[0],f=NZ(s,n,o),p=Ey(f,1),g=p[0],v=l?l(s):null;return d&&g&&!v})}function AS(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function IS(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function $Z(e){e.preventDefault()}function Xqe(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Qqe(e){return e.indexOf("Edge/")!==-1}function Zqe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Xqe(e)||Qqe(e)}function lc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return t.some(function(l){return!AS(n)&&l&&l.apply(void 0,[n].concat(i)),AS(n)})}}function Jqe(){return"showOpenFilePicker"in window}function eGe(e){if(th(e)){var t=Object.entries(e).filter(function(r){var n=Ey(r,2),o=n[0],i=n[1],a=!0;return DZ(o)||(console.warn('Skipped "'.concat(o,'" 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.')),a=!1),(!Array.isArray(i)||!i.every(BZ))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(r,n){var o=Ey(n,2),i=o[0],a=o[1];return TZ(TZ({},r),{},SZ({},i,a))},{});return[{description:"Files",accept:t}]}return e}function tGe(e){if(th(e))return Object.entries(e).reduce(function(t,r){var n=Ey(r,2),o=n[0],i=n[1];return[].concat(kZ(t),[o],kZ(i))},[]).filter(function(t){return DZ(t)||BZ(t)}).join(",")}function rGe(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function nGe(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function DZ(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function BZ(e){return/^.*\.[\w]+$/.test(e)}var oGe=["children"],iGe=["open"],aGe=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],lGe=["refKey","onChange","onClick"];function sGe(e){return dGe(e)||cGe(e)||jZ(e)||uGe()}function uGe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
236
236
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cGe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dGe(e){if(Array.isArray(e))return MH(e)}function jH(e,t){return pGe(e)||mGe(e,t)||jZ(e,t)||fGe()}function fGe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
@@ -477,7 +477,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
477
477
|
`);return t.split(",").map(a=>{a=a.trim();const l=a.split("-");let s=-1,u=-1;if(l.length===0)return{start:s,end:u,properties:{class:Bw}};if(l.length>2)return{start:s,end:u,properties:{class:Bw}};if(l[0]==="")return{start:s,end:u,properties:{class:Bw}};if(l[1]==="")return{start:s,end:u,properties:{class:Bw}};s=0,u=0;const c=o(n(l[0]));s=i(c);const d=l.length===1?c:o(n(l[1]));let f=0;return d>=0&&r[d]!==void 0&&(f=r[d].length),u=i(d)+f,{start:s,end:u,properties:{class:Bw}}}).filter(a=>!(a.start<=-1||a.end<=-1||a.start>e.length||a.end>e.length));function n(a){const l=parseInt(a,10);return Number.isNaN(l)?-1:l}function o(a){return a-=1,a<0||a>=r.length?-1:a}function i(a){if(a<0)return-1;if(a===0)return 0;let l=0,s=0;for(;l<a&&s!==-1;)s=e.indexOf(`
|
|
478
478
|
`,s),s!==-1&&(s++,l++);return s!==-1?s:-1}}function Ece(e,t,r=!1){if(!t)return[];if(!e)return[];return t.split(" ").map(o=>j0t(o)).filter(o=>o.trim()!=="").reduce((o,i)=>o.concat(n(e,i)),[]);function n(o,i){const a=[];let l=0;const s=i.length;for(;l<=o.length-s;){const u=o.indexOf(i,l);if(u===-1)break;a.push({start:u,end:u+s,properties:{class:r?B0t:D0t}}),l=u+s}return a}}function q0t(e){return e&&e.highlight&&typeof e.highlight=="function"&&e.availableLangs}const En={language:{data:"data-language",prop:"language"},copy:{data:"data-copy",prop:"copy"},filename:{data:"data-filename",prop:"filename"},rowNumbers:{data:"data-row-numbers",prop:"rowNumbers"},highlightRows:{data:"data-highlight-rows",prop:"highlightRows"},highlightSubstrings:{data:"data-highlight-substrings",prop:"highlightSubstrings"},highlightSubstringsEmphasized:{data:"data-highlight-substrings-emp",prop:"highlightSubstringsEmphasized"}},G0t=Object.values(En).map(e=>e.data),vm={themeVars:`'{"padding-CodeBlock": "var(--xmlui-padding-CodeBlock)", "paddingHorizontal-CodeBlock": "var(--xmlui-paddingHorizontal-CodeBlock, var(--xmlui-padding-CodeBlock))", "paddingVertical-CodeBlock": "var(--xmlui-paddingVertical-CodeBlock, var(--xmlui-padding-CodeBlock))", "paddingLeft-CodeBlock": "var(--xmlui-paddingLeft-CodeBlock, var(--xmlui-paddingHorizontal-CodeBlock, var(--xmlui-padding-CodeBlock)))", "paddingRight-CodeBlock": "var(--xmlui-paddingRight-CodeBlock, var(--xmlui-paddingHorizontal-CodeBlock, var(--xmlui-padding-CodeBlock)))", "paddingTop-CodeBlock": "var(--xmlui-paddingTop-CodeBlock, var(--xmlui-paddingVertical-CodeBlock, var(--xmlui-padding-CodeBlock)))", "paddingBottom-CodeBlock": "var(--xmlui-paddingBottom-CodeBlock, var(--xmlui-paddingVertical-CodeBlock, var(--xmlui-padding-CodeBlock)))", "border-CodeBlock": "var(--xmlui-border-CodeBlock)", "borderHorizontal-CodeBlock": "var(--xmlui-borderHorizontal-CodeBlock, var(--xmlui-border-CodeBlock))", "borderVertical-CodeBlock": "var(--xmlui-borderVertical-CodeBlock, var(--xmlui-border-CodeBlock))", "borderLeft-CodeBlock": "var(--xmlui-borderLeft-CodeBlock, var(--xmlui-borderHorizontal-CodeBlock, var(--xmlui-border-CodeBlock)))", "borderRight-CodeBlock": "var(--xmlui-borderRight-CodeBlock, var(--xmlui-borderHorizontal-CodeBlock, var(--xmlui-border-CodeBlock)))", "borderTop-CodeBlock": "var(--xmlui-borderTop-CodeBlock, var(--xmlui-borderVertical-CodeBlock, var(--xmlui-border-CodeBlock)))", "borderBottom-CodeBlock": "var(--xmlui-borderBottom-CodeBlock, var(--xmlui-borderVertical-CodeBlock, var(--xmlui-border-CodeBlock)))", "borderWidth-CodeBlock": "var(--xmlui-borderWidth-CodeBlock)", "borderHorizontalWidth-CodeBlock": "var(--xmlui-borderHorizontalWidth-CodeBlock, var(--xmlui-borderWidth-CodeBlock))", "borderLeftWidth-CodeBlock": "var(--xmlui-borderLeftWidth-CodeBlock, var(--xmlui-borderHorizontalWidth-CodeBlock, var(--xmlui-borderWidth-CodeBlock)))", "borderRightWidth-CodeBlock": "var(--xmlui-borderRightWidth-CodeBlock, var(--xmlui-borderHorizontalWidth-CodeBlock, var(--xmlui-borderWidth-CodeBlock)))", "borderVerticalWidth-CodeBlock": "var(--xmlui-borderVerticalWidth-CodeBlock, var(--xmlui-borderWidth-CodeBlock))", "borderTopWidth-CodeBlock": "var(--xmlui-borderTopWidth-CodeBlock, var(--xmlui-borderVerticalWidth-CodeBlock, var(--xmlui-borderWidth-CodeBlock)))", "borderBottomWidth-CodeBlock": "var(--xmlui-borderBottomWidth-CodeBlock, var(--xmlui-borderVerticalWidth-CodeBlock, var(--xmlui-borderWidth-CodeBlock)))", "borderStyle-CodeBlock": "var(--xmlui-borderStyle-CodeBlock)", "borderHorizontalStyle-CodeBlock": "var(--xmlui-borderHorizontalStyle-CodeBlock, var(--xmlui-borderStyle-CodeBlock))", "borderLeftStyle-CodeBlock": "var(--xmlui-borderLeftStyle-CodeBlock, var(--xmlui-borderHorizontalStyle-CodeBlock, var(--xmlui-borderStyle-CodeBlock)))", "borderRightStyle-CodeBlock": "var(--xmlui-borderRightStyle-CodeBlock, var(--xmlui-borderHorizontalStyle-CodeBlock, var(--xmlui-borderStyle-CodeBlock)))", "borderVerticalStyle-CodeBlock": "var(--xmlui-borderVerticalStyle-CodeBlock, var(--xmlui-borderStyle-CodeBlock))", "borderTopStyle-CodeBlock": "var(--xmlui-borderTopStyle-CodeBlock, var(--xmlui-borderVerticalStyle-CodeBlock, var(--xmlui-borderStyle-CodeBlock)))", "borderBottomStyle-CodeBlock": "var(--xmlui-borderBottomStyle-CodeBlock, var(--xmlui-borderVerticalStyle-CodeBlock, var(--xmlui-borderStyle-CodeBlock)))", "borderColor-CodeBlock": "var(--xmlui-borderColor-CodeBlock)", "borderHorizontalColor-CodeBlock": "var(--xmlui-borderHorizontalColor-CodeBlock, var(--xmlui-borderColor-CodeBlock))", "borderLeftColor-CodeBlock": "var(--xmlui-borderLeftColor-CodeBlock, var(--xmlui-borderHorizontalColor-CodeBlock, var(--xmlui-borderColor-CodeBlock)))", "borderRightColor-CodeBlock": "var(--xmlui-borderRightColor-CodeBlock, var(--xmlui-borderHorizontalColor-CodeBlock, var(--xmlui-borderColor-CodeBlock)))", "borderVerticalColor-CodeBlock": "var(--xmlui-borderVerticalColor-CodeBlock, var(--xmlui-borderColor-CodeBlock))", "borderTopColor-CodeBlock": "var(--xmlui-borderTopColor-CodeBlock, var(--xmlui-borderVerticalColor-CodeBlock, var(--xmlui-borderColor-CodeBlock)))", "borderBottomColor-CodeBlock": "var(--xmlui-borderBottomColor-CodeBlock, var(--xmlui-borderVerticalColor-CodeBlock, var(--xmlui-borderColor-CodeBlock)))", "borderStartStartRadius-CodeBlock": "var(--xmlui-borderStartStartRadius-CodeBlock, var(--xmlui-borderRadius-CodeBlock))", "borderStartEndRadius-CodeBlock": "var(--xmlui-borderStartEndRadius-CodeBlock, var(--xmlui-borderRadius-CodeBlock))", "borderEndStartRadius-CodeBlock": "var(--xmlui-borderEndStartRadius-CodeBlock, var(--xmlui-borderRadius-CodeBlock))", "borderEndEndRadius-CodeBlock": "var(--xmlui-borderEndEndRadius-CodeBlock, var(--xmlui-borderRadius-CodeBlock))", "backgroundColor-CodeBlock": "var(--xmlui-backgroundColor-CodeBlock)", "backgroundColor-CodeBlock-header": "var(--xmlui-backgroundColor-CodeBlock-header)", "color-CodeBlock-headerSeparator": "var(--xmlui-color-CodeBlock-headerSeparator)", "marginTop-CodeBlock": "var(--xmlui-marginTop-CodeBlock)", "marginBottom-CodeBlock": "var(--xmlui-marginBottom-CodeBlock)", "backgroundColor-CodeBlock-highlightRow": "var(--xmlui-backgroundColor-CodeBlock-highlightRow)", "backgroundColor-CodeBlock-highlightString": "var(--xmlui-backgroundColor-CodeBlock-highlightString)", "borderColor-CodeBlock-highlightString-emphasis": "var(--xmlui-borderColor-CodeBlock-highlightString-emphasis)", "borderRadius-CodeBlock": "var(--xmlui-borderRadius-CodeBlock)", "boxShadow-CodeBlock": "var(--xmlui-boxShadow-CodeBlock)", "height-CodeBlock": "var(--xmlui-height-CodeBlock)", "paddingHorizontal-content-CodeBlock": "var(--xmlui-paddingHorizontal-content-CodeBlock)", "paddingVertical-content-CodeBlock": "var(--xmlui-paddingVertical-content-CodeBlock)"}'`,codeBlock:"_codeBlock_193w1_13",copyButton:"_copyButton_193w1_49",codeBlockHeader:"_codeBlockHeader_193w1_56",codeBlockContent:"_codeBlockContent_193w1_66",codeBlockCopyButton:"_codeBlockCopyButton_193w1_74"};function CN({children:e,meta:t,textToCopy:r,style:n}){return t?C.jsxs("div",{className:ze(vm.codeBlock,"global-codeBlock"),style:n,children:[t.filename&&C.jsx("div",{className:vm.codeBlockHeader,children:C.jsx(xr,{variant:"em",children:t.filename})}),C.jsxs("div",{className:vm.codeBlockContent,children:[e,t.copy!==!1&&C.jsx("div",{className:vm.codeBlockCopyButton,children:C.jsx(sn,{variant:"ghost",size:"xs",className:vm.copyButton,icon:C.jsx(kt,{name:"copy","aria-hidden":!0}),onClick:()=>{r&&(navigator.clipboard.writeText(r),fo.success("Code copied!"))}})})]})]}):C.jsx("div",{className:ze(vm.codeBlock,"global-codeBlock"),style:n,children:C.jsx("div",{className:vm.codeBlockContent,children:e})})}function Y0t(){return function(n){_h(n,"code",e)};function e(r,n,o){var c;const{lang:i,meta:a}=r,l={hProperties:{}};if(i!==null&&(l.hProperties.dataLanguage=i,r.data=l),!o||!a)return;const s=(c=t(a))==null?void 0:c.filter(d=>d!=="").map(d=>d.trim());if(!s||s.length===0)return;const u=s.reduce((d,f)=>{if(f=f.trim(),f==="")return d;if(f.toLocaleLowerCase().startsWith("filename=")){const p=f.indexOf("=");d[En.filename.data]=f.substring(p+1).replace(/"(.+)"/,"$1").replace(/'(.+)'/,"$1")}if(f.startsWith("/")&&f.endsWith("/")){const p=d[En.highlightSubstrings.data],g=Sce(f.substring(1,f.length-1));p?d[En.highlightSubstrings.data]=`${p} ${g}`:d[En.highlightSubstrings.data]=g}if(f.startsWith("!/")&&f.endsWith("/")){const p=d[En.highlightSubstringsEmphasized.data],g=Sce(f.substring(2,f.length-1));p?d[En.highlightSubstringsEmphasized.data]=`${p} ${g}`:d[En.highlightSubstringsEmphasized.data]=g}if(f.startsWith("{")&&f.endsWith("}")){const p=d[En.highlightRows.data],g=f.substring(1,f.length-1);p?d[En.highlightRows.data]=`${p}, ${g}`:d[En.highlightRows.data]=g}return f==="copy"&&(d[En.copy.data]="true"),f==="rowNumbers"&&(d[En.rowNumbers.data]="true"),d},{});l.hProperties={...l.hProperties,...u},r.data=l}function t(r){return r.match(/(?:("|')[^"']*\1|\{[^{}]*\}|\/.*?\/|[^\s"'{}/])+/g)}}const xs={themeVars:`'{"border-ExpandableItem": "var(--xmlui-border-ExpandableItem)", "borderHorizontal-ExpandableItem": "var(--xmlui-borderHorizontal-ExpandableItem, var(--xmlui-border-ExpandableItem))", "borderVertical-ExpandableItem": "var(--xmlui-borderVertical-ExpandableItem, var(--xmlui-border-ExpandableItem))", "borderLeft-ExpandableItem": "var(--xmlui-borderLeft-ExpandableItem, var(--xmlui-borderHorizontal-ExpandableItem, var(--xmlui-border-ExpandableItem)))", "borderRight-ExpandableItem": "var(--xmlui-borderRight-ExpandableItem, var(--xmlui-borderHorizontal-ExpandableItem, var(--xmlui-border-ExpandableItem)))", "borderTop-ExpandableItem": "var(--xmlui-borderTop-ExpandableItem, var(--xmlui-borderVertical-ExpandableItem, var(--xmlui-border-ExpandableItem)))", "borderBottom-ExpandableItem": "var(--xmlui-borderBottom-ExpandableItem, var(--xmlui-borderVertical-ExpandableItem, var(--xmlui-border-ExpandableItem)))", "borderWidth-ExpandableItem": "var(--xmlui-borderWidth-ExpandableItem)", "borderHorizontalWidth-ExpandableItem": "var(--xmlui-borderHorizontalWidth-ExpandableItem, var(--xmlui-borderWidth-ExpandableItem))", "borderLeftWidth-ExpandableItem": "var(--xmlui-borderLeftWidth-ExpandableItem, var(--xmlui-borderHorizontalWidth-ExpandableItem, var(--xmlui-borderWidth-ExpandableItem)))", "borderRightWidth-ExpandableItem": "var(--xmlui-borderRightWidth-ExpandableItem, var(--xmlui-borderHorizontalWidth-ExpandableItem, var(--xmlui-borderWidth-ExpandableItem)))", "borderVerticalWidth-ExpandableItem": "var(--xmlui-borderVerticalWidth-ExpandableItem, var(--xmlui-borderWidth-ExpandableItem))", "borderTopWidth-ExpandableItem": "var(--xmlui-borderTopWidth-ExpandableItem, var(--xmlui-borderVerticalWidth-ExpandableItem, var(--xmlui-borderWidth-ExpandableItem)))", "borderBottomWidth-ExpandableItem": "var(--xmlui-borderBottomWidth-ExpandableItem, var(--xmlui-borderVerticalWidth-ExpandableItem, var(--xmlui-borderWidth-ExpandableItem)))", "borderStyle-ExpandableItem": "var(--xmlui-borderStyle-ExpandableItem)", "borderHorizontalStyle-ExpandableItem": "var(--xmlui-borderHorizontalStyle-ExpandableItem, var(--xmlui-borderStyle-ExpandableItem))", "borderLeftStyle-ExpandableItem": "var(--xmlui-borderLeftStyle-ExpandableItem, var(--xmlui-borderHorizontalStyle-ExpandableItem, var(--xmlui-borderStyle-ExpandableItem)))", "borderRightStyle-ExpandableItem": "var(--xmlui-borderRightStyle-ExpandableItem, var(--xmlui-borderHorizontalStyle-ExpandableItem, var(--xmlui-borderStyle-ExpandableItem)))", "borderVerticalStyle-ExpandableItem": "var(--xmlui-borderVerticalStyle-ExpandableItem, var(--xmlui-borderStyle-ExpandableItem))", "borderTopStyle-ExpandableItem": "var(--xmlui-borderTopStyle-ExpandableItem, var(--xmlui-borderVerticalStyle-ExpandableItem, var(--xmlui-borderStyle-ExpandableItem)))", "borderBottomStyle-ExpandableItem": "var(--xmlui-borderBottomStyle-ExpandableItem, var(--xmlui-borderVerticalStyle-ExpandableItem, var(--xmlui-borderStyle-ExpandableItem)))", "borderColor-ExpandableItem": "var(--xmlui-borderColor-ExpandableItem)", "borderHorizontalColor-ExpandableItem": "var(--xmlui-borderHorizontalColor-ExpandableItem, var(--xmlui-borderColor-ExpandableItem))", "borderLeftColor-ExpandableItem": "var(--xmlui-borderLeftColor-ExpandableItem, var(--xmlui-borderHorizontalColor-ExpandableItem, var(--xmlui-borderColor-ExpandableItem)))", "borderRightColor-ExpandableItem": "var(--xmlui-borderRightColor-ExpandableItem, var(--xmlui-borderHorizontalColor-ExpandableItem, var(--xmlui-borderColor-ExpandableItem)))", "borderVerticalColor-ExpandableItem": "var(--xmlui-borderVerticalColor-ExpandableItem, var(--xmlui-borderColor-ExpandableItem))", "borderTopColor-ExpandableItem": "var(--xmlui-borderTopColor-ExpandableItem, var(--xmlui-borderVerticalColor-ExpandableItem, var(--xmlui-borderColor-ExpandableItem)))", "borderBottomColor-ExpandableItem": "var(--xmlui-borderBottomColor-ExpandableItem, var(--xmlui-borderVerticalColor-ExpandableItem, var(--xmlui-borderColor-ExpandableItem)))", "borderStartStartRadius-ExpandableItem": "var(--xmlui-borderStartStartRadius-ExpandableItem, var(--xmlui-borderRadius-ExpandableItem))", "borderStartEndRadius-ExpandableItem": "var(--xmlui-borderStartEndRadius-ExpandableItem, var(--xmlui-borderRadius-ExpandableItem))", "borderEndStartRadius-ExpandableItem": "var(--xmlui-borderEndStartRadius-ExpandableItem, var(--xmlui-borderRadius-ExpandableItem))", "borderEndEndRadius-ExpandableItem": "var(--xmlui-borderEndEndRadius-ExpandableItem, var(--xmlui-borderRadius-ExpandableItem))", "padding-ExpandableItem": "var(--xmlui-padding-ExpandableItem)", "paddingHorizontal-ExpandableItem": "var(--xmlui-paddingHorizontal-ExpandableItem, var(--xmlui-padding-ExpandableItem))", "paddingVertical-ExpandableItem": "var(--xmlui-paddingVertical-ExpandableItem, var(--xmlui-padding-ExpandableItem))", "paddingLeft-ExpandableItem": "var(--xmlui-paddingLeft-ExpandableItem, var(--xmlui-paddingHorizontal-ExpandableItem, var(--xmlui-padding-ExpandableItem)))", "paddingRight-ExpandableItem": "var(--xmlui-paddingRight-ExpandableItem, var(--xmlui-paddingHorizontal-ExpandableItem, var(--xmlui-padding-ExpandableItem)))", "paddingTop-ExpandableItem": "var(--xmlui-paddingTop-ExpandableItem, var(--xmlui-paddingVertical-ExpandableItem, var(--xmlui-padding-ExpandableItem)))", "paddingBottom-ExpandableItem": "var(--xmlui-paddingBottom-ExpandableItem, var(--xmlui-paddingVertical-ExpandableItem, var(--xmlui-padding-ExpandableItem)))", "padding-content-ExpandableItem": "var(--xmlui-padding-content-ExpandableItem)", "paddingHorizontal-content-ExpandableItem": "var(--xmlui-paddingHorizontal-content-ExpandableItem, var(--xmlui-padding-content-ExpandableItem))", "paddingVertical-content-ExpandableItem": "var(--xmlui-paddingVertical-content-ExpandableItem, var(--xmlui-padding-content-ExpandableItem))", "paddingLeft-content-ExpandableItem": "var(--xmlui-paddingLeft-content-ExpandableItem, var(--xmlui-paddingHorizontal-content-ExpandableItem, var(--xmlui-padding-content-ExpandableItem)))", "paddingRight-content-ExpandableItem": "var(--xmlui-paddingRight-content-ExpandableItem, var(--xmlui-paddingHorizontal-content-ExpandableItem, var(--xmlui-padding-content-ExpandableItem)))", "paddingTop-content-ExpandableItem": "var(--xmlui-paddingTop-content-ExpandableItem, var(--xmlui-paddingVertical-content-ExpandableItem, var(--xmlui-padding-content-ExpandableItem)))", "paddingBottom-content-ExpandableItem": "var(--xmlui-paddingBottom-content-ExpandableItem, var(--xmlui-paddingVertical-content-ExpandableItem, var(--xmlui-padding-content-ExpandableItem)))", "backgroundColor-ExpandableItem": "var(--xmlui-backgroundColor-ExpandableItem)", "color-ExpandableItem": "var(--xmlui-color-ExpandableItem)", "color-ExpandableItem--disabled": "var(--xmlui-color-ExpandableItem--disabled)", "fontFamily-ExpandableItem": "var(--xmlui-fontFamily-ExpandableItem)", "fontSize-ExpandableItem": "var(--xmlui-fontSize-ExpandableItem)", "fontWeight-ExpandableItem": "var(--xmlui-fontWeight-ExpandableItem)", "paddingVertical-ExpandableItem-summary": "var(--xmlui-paddingVertical-ExpandableItem-summary)", "paddingHorizontal-ExpandableItem-summary": "var(--xmlui-paddingHorizontal-ExpandableItem-summary)", "gap-ExpandableItem": "var(--xmlui-gap-ExpandableItem)", "transition-ExpandableItem": "var(--xmlui-transition-ExpandableItem)"}'`,expandableItem:"_expandableItem_vpfvc_14",disabled:"_disabled_vpfvc_48",summary:"_summary_vpfvc_52",iconStart:"_iconStart_vpfvc_58",iconEnd:"_iconEnd_vpfvc_61",icon:"_icon_vpfvc_58",switch:"_switch_vpfvc_70",summaryContent:"_summaryContent_vpfvc_74",withSwitch:"_withSwitch_vpfvc_77",content:"_content_vpfvc_80"},ui={initiallyExpanded:!1,enabled:!0,iconExpanded:"chevrondown",iconCollapsed:"chevronright",iconPosition:"end",withSwitch:!1},Oce=m.forwardRef(function({summary:t,children:r,className:n,style:o,initiallyExpanded:i=ui.initiallyExpanded,enabled:a=ui.enabled,iconExpanded:l=ui.iconExpanded,iconCollapsed:s=ui.iconCollapsed,iconPosition:u=ui.iconPosition,withSwitch:c=ui.withSwitch,onExpandedChange:d,registerComponentApi:f},p){const[g,v]=m.useState(i),b=m.useCallback(()=>{if(!a)return;const I=!g;v(I),d==null||d(I)},[a,g,d]),y=m.useCallback(()=>{!g&&a&&(v(!0),d==null||d(!0))},[a,g,d]),w=m.useCallback(()=>{g&&a&&(v(!1),d==null||d(!1))},[a,g,d]),k=m.useCallback(()=>{b()},[b]),E=m.useCallback(()=>g,[g]),_=m.useCallback(I=>{a&&(v(I),d==null||d(I))},[a,d]);m.useEffect(()=>{f==null||f({expand:y,collapse:w,toggle:k,isExpanded:E})},[f,y,w,k,E]);const S=m.useRef(),O=m.useRef(),A=m.useCallback(()=>{var H,P;if(!a||!c)return;const I=!g;v(I),d==null||d(I),u==="start"&&((H=S.current)!=null&&H.setValue)?S.current.setValue(I):u==="end"&&((P=O.current)!=null&&P.setValue)&&O.current.setValue(I)},[a,c,g,d,u]);return C.jsxs("div",{className:ze(xs.expandableItem,n,{[xs.open]:g,[xs.disabled]:!a,[xs.withSwitch]:c}),style:o,ref:p,children:[C.jsxs("div",{className:ze(xs.summary,{[xs.iconStart]:u==="start",[xs.iconEnd]:u==="end"}),onClick:a?c?A:b:void 0,children:[C.jsx("div",{className:c?xs.switch:xs.icon,children:c?C.jsx(Jp,{variant:"switch",value:g,enabled:a,onDidChange:_}):C.jsx(kt,{name:g?l:s,fallback:g?"chevrondown":"chevronright"})}),C.jsx("div",{className:xs.summaryContent,children:t})]}),g&&C.jsx("div",{className:xs.content,children:r})]})});var ve=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.CommentTrivia=2]="CommentTrivia",e[e.NewLineTrivia=3]="NewLineTrivia",e[e.WhitespaceTrivia=4]="WhitespaceTrivia",e[e.Identifier=5]="Identifier",e[e.OpenNodeStart=6]="OpenNodeStart",e[e.CloseNodeStart=7]="CloseNodeStart",e[e.NodeEnd=8]="NodeEnd",e[e.NodeClose=9]="NodeClose",e[e.Colon=10]="Colon",e[e.Equal=11]="Equal",e[e.StringLiteral=12]="StringLiteral",e[e.CData=13]="CData",e[e.Script=14]="Script",e[e.TextNode=15]="TextNode",e[e.AmpersandEntity=16]="AmpersandEntity",e[e.LessThanEntity=17]="LessThanEntity",e[e.GreaterThanEntity=18]="GreaterThanEntity",e[e.SingleQuoteEntity=19]="SingleQuoteEntity",e[e.DoubleQuoteEntity=20]="DoubleQuoteEntity",e[e.ElementNode=21]="ElementNode",e[e.AttributeNode=22]="AttributeNode",e[e.AttributeKeyNode=23]="AttributeKeyNode",e[e.ContentListNode=24]="ContentListNode",e[e.AttributeListNode=25]="AttributeListNode",e[e.TagNameNode=26]="TagNameNode",e[e.ErrorNode=27]="ErrorNode",e))(ve||{});function K0t(e){return e>=2&&e<=4}function Ace(e){switch(e){case 0:return"Unknown";case 1:return"EndOfFileToken";case 2:return"CommentTrivia";case 3:return"NewLineTrivia";case 4:return"WhitespaceTrivia";case 5:return"Identifier";case 6:return"OpenNodeStart";case 7:return"CloseNodeStart";case 8:return"NodeEnd";case 9:return"NodeClose";case 10:return"Colon";case 11:return"Equal";case 12:return"StringLiteral";case 13:return"CData";case 14:return"Script";case 16:return"AmpersandEntity";case 17:return"LessThanEntity";case 18:return"GreaterThanEntity";case 19:return"SingleQuoteEntity";case 20:return"DoubleQuoteEntity";case 21:return"ElementNode";case 22:return"AttributeNode";case 15:return"TextNode";case 24:return"ContentListNode";case 25:return"AttributeListNode";case 26:return"TagNameNode";case 27:return"ErrorNode";case 23:return"AttributeKeyNode"}return X0t()}function X0t(e){throw new Error("Didn't expect to get here")}function Q0t(e,t,r){var i,a;const n=((i=e.children)==null?void 0:i.filter(l=>l.kind!==ve.ErrorNode))??[],o=((a=t.children)==null?void 0:a.filter(l=>l.kind!==ve.ErrorNode))??[];if(n.length!==o.length)return!1;for(let l=0;l<n.length;++l)if(r(n[l])!==r(o[l]))return!1;return!0}function Z0t(e,t){const r=[e];let n;if(e.start>t||t>e.end)return;const o={chainAtPos:r,chainBeforePos:void 0,sharedParents:void 0};for(;e.children!==void 0&&e.children.length>0;){const i=e.children.findIndex(s=>s.start<=t&&(t<s.end||s.kind===ve.EndOfFileToken&&s.start<=s.end)),a=e.children[i],l=e.children[i-1];if(l!==void 0&&t<=a.pos)return n=r.length,{chainBeforePos:r.concat(e1t(l)),sharedParents:n,chainAtPos:r.concat(J0t(a))};e=a,o.chainAtPos.push(e)}return o}function J0t(e){const t=[e];for(;e.children!==void 0&&e.children.length>0;)e=e.children[0],t.push(e);return t}function e1t(e){const t=[e];for(;e.children!==void 0&&e.children.length>0;)e=e.children[e.children.length-1],t.push(e);return t}let bm=class{constructor(t,r,n,o,i){var a,l;this.kind=t,this.pos=r,this.end=n,this.triviaBefore=o,this.children=i,o?this.start=((a=o[0])==null?void 0:a.start)??r:i?this.start=((l=i[0])==null?void 0:l.start)??r:this.start=r}isElementNode(){return this.kind===ve.ElementNode}isAttributeNode(){return this.kind===ve.AttributeNode}isAttributeKeyNode(){return this.kind===ve.AttributeKeyNode}isContentListNode(){return this.kind===ve.ContentListNode}isAttributeListNode(){return this.kind===ve.AttributeListNode}isTagNameNode(){return this.kind===ve.TagNameNode}findTokenAtPos(t){return Z0t(this,t)}};var Re=(e=>(e[e.EOF=-1]="EOF",e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(Re||{}),Ice=(e=>(e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Information=3]="Information",e[e.Hint=4]="Hint",e))(Ice||{}),wE=(e=>(e.onlyOneElem="U002",e.expTagOpen="U003",e.expTagName="U004",e.expCloseStart="U005",e.expEndOrClose="U006",e.tagNameMismatch="U007",e.expEnd="U008",e.expAttrName="U009",e.expEq="U010",e.expAttrValue="U011",e.duplAttr="U012",e.uppercaseAttr="U013",e.expTagNameAfterNamespace="U014",e.expCloseStartWithName="U015",e.expAttrNameAfterNamespace="U016",e.invalidChar="W001",e.untermStr="W002",e.untermComment="W007",e.untermCData="W008",e.untermScript="W009",e))(wE||{});const oo={expCloseStartWithName:function(e){return{category:1,code:"U015",message:`Opened tag has no closing pair. Expected to see '</${e}>'.`}},expCloseStart:{category:1,code:"U005",message:"A '</' token expected."},uppercaseAttr:function(e){return{category:1,code:"U013",message:`Attribute name '${e}' cannot start with an uppercase letter.`}},duplAttr:function(e){return{category:1,code:"U012",message:`Duplicated attribute: '${e}'.`}},tagNameMismatch:function(e,t){return{category:1,code:"U007",message:`Opening and closing tag names should match. Opening tag has a name '${e}', but the closing tag name is '${t}'.`}},invalidChar:function(e){return{category:1,code:"W001",message:`Invalid character '${e}'.`}},expEnd:{category:1,code:"U008",message:"A '>' token expected."},expTagName:{category:1,code:"U004",message:"A tag name expected."},expAttrStr:{category:1,code:"U011",message:"A string expected as an attribute value after '='."},expEq:{category:1,code:"U010",message:"An '=' token expected."},expTagOpen:{category:1,code:"U003",message:"A '<' token expected."},expEndOrClose:{category:1,code:"U006",message:"A '>' or '/>' token expected."},expAttrName:{category:1,code:"U009",message:"An attribute name expected."},expAttrNameAfterNamespace:{category:1,code:"U016",message:"An attribute name expected after a namespaces."},expTagNameAfterNamespace:{category:1,code:"U014",message:"A tag name expected after a namespaces."}},kN={code:"W001",category:1,message:"Invalid character."},t1t={code:"W002",category:1,message:"Unterminated string literal."},r1t={code:"W007",category:1,message:"Unterminated comment"},n1t={code:"W008",category:1,message:"Unterminated CDATA section"},o1t={code:"W009",category:1,message:"Unterminated script section"};function i1t(e,t,r,n,o){let i=t??"",a,l,s,u,c,d;return _(i,n,o),{getStartPos:()=>s,getTokenEnd:()=>a,getToken:()=>c,getTokenStart:()=>u,getTokenText:()=>i.substring(u,a),getTokenValue:()=>d,isIdentifier:()=>c===ve.Identifier,peekChar:f,scanChar:p,scan:g,scanTrivia:v,scanText:b,getText:y,setText:_,setOnError:S,resetTokenState:O,back:A};function f(B){if(a+(B??0)>=l)return null;const z=k(a+(B??0));return isNaN(z)?null:z}function p(){if(a>=l)return null;const B=k(a);return a+=Cd(B),B}function g(){for(s=a;;){if(u=a,a>=l)return c=ve.EndOfFileToken;const B=k(a);switch(B){case Re.lineFeed:case Re.carriageReturn:return B===Re.carriageReturn&&a+1<l&&w(a+1)===Re.lineFeed?a+=2:a++,c=ve.NewLineTrivia;case Re.tab:case Re.verticalTab:case Re.formFeed:case Re.space:case Re.nonBreakingSpace:case Re.ogham:case Re.enQuad:case Re.emQuad:case Re.enSpace:case Re.emSpace:case Re.threePerEmSpace:case Re.fourPerEmSpace:case Re.sixPerEmSpace:case Re.figureSpace:case Re.punctuationSpace:case Re.thinSpace:case Re.hairSpace:case Re.zeroWidthSpace:case Re.narrowNoBreakSpace:case Re.mathematicalSpace:case Re.ideographicSpace:case Re.byteOrderMark:{for(;a<l&&Pce(w(a));)a++;return c=ve.WhitespaceTrivia}case Re.doubleQuote:case Re.singleQuote:case Re.backtick:return d=P(),c=ve.StringLiteral;case Re.ampersand:return w(a+1)===Re.a&&w(a+2)===Re.m&&w(a+3)===Re.p&&w(a+4)===Re.semicolon?(a+=5,c=ve.AmpersandEntity):w(a+1)===Re.l&&w(a+2)===Re.t&&w(a+3)===Re.semicolon?(a+=4,c=ve.LessThanEntity):w(a+1)===Re.g&&w(a+2)===Re.t&&w(a+3)===Re.semicolon?(a+=4,c=ve.GreaterThanEntity):w(a+1)===Re.q&&w(a+2)===Re.u&&w(a+3)===Re.o&&w(a+4)===Re.t&&w(a+5)===Re.semicolon?(a+=6,c=ve.DoubleQuoteEntity):w(a+1)===Re.a&&w(a+2)===Re.p&&w(a+3)===Re.o&&w(a+4)===Re.s&&w(a+5)===Re.semicolon?(a+=6,c=ve.SingleQuoteEntity):(a++,L(kN,1),c=ve.Unknown);case Re.equals:return a++,c=ve.Equal;case Re.colon:return a++,c=ve.Colon;case Re.lessThan:if(w(a+1)===Re.slash)return a+=2,c=ve.CloseNodeStart;if(w(a+1)===Re.exclamation&&w(a+2)===Re.minus&&w(a+3)===Re.minus){for(a+=4;a<l;){if(w(a)===Re.minus&&w(a+1)===Re.minus&&w(a+2)===Re.greaterThan)return a+=3,c=ve.CommentTrivia;a+=Cd(w(a))}return L(r1t,4),c=ve.Unknown}else if(w(a+1)===Re.exclamation&&w(a+2)===Re.openBracket&&w(a+3)===Re.C&&w(a+4)===Re.D&&w(a+5)===Re.A&&w(a+6)===Re.T&&w(a+7)===Re.A&&w(a+8)===Re.openBracket){for(a+=9;a<l;){if(w(a)===Re.closeBracket&&w(a+1)===Re.closeBracket&&w(a+2)===Re.greaterThan)return a+=3,c=ve.CData;a+=Cd(w(a))}return L(n1t,9),c=ve.CData}else if(w(a+1)===Re.s&&w(a+2)===Re.c&&w(a+3)===Re.r&&w(a+4)===Re.i&&w(a+5)===Re.p&&w(a+6)===Re.t&&w(a+7)===Re.greaterThan){for(a+=8;a<l;){if(w(a)===Re.lessThan&&w(a+1)===Re.slash&&w(a+2)===Re.s&&w(a+3)===Re.c&&w(a+4)===Re.r&&w(a+5)===Re.i&&w(a+6)===Re.p&&w(a+7)===Re.t&&w(a+8)===Re.greaterThan)return a+=9,c=ve.Script;a+=Cd(w(a))}return L(o1t,9),c=ve.Script}return a++,c=ve.OpenNodeStart;case Re.slash:return w(a+1)===Re.greaterThan?(a+=2,c=ve.NodeClose):(a++,L(kN,1),c=ve.Unknown);case Re.greaterThan:return a++,c=ve.NodeEnd;default:const z=I(B);if(z)return c=z;if(Pce(B)){a+=Cd(B);continue}else if(c1t(B)){a+=Cd(B);continue}const j=Cd(B);return a+=j,L(kN,j),c=ve.Unknown}}}function v(){const B=a,z=g();return K0t(z)?z:(O(B),null)}function b(){return ve.Unknown}function y(){return i}function w(B){return i.charCodeAt(B)}function k(B){return E(i,B)}function E(B,z){return B.codePointAt(z)??0}function _(B,z,j){i=B||"",l=j===void 0?i.length:z+j,O(z||0)}function S(B){r=B}function O(B){a=B,s=B,u=B,c=ve.Unknown,d=void 0}function A(){O(s)}function I(B){let z=B;if(s1t(z)){for(a+=Cd(z);a<l&&u1t(z=k(a));)a+=Cd(z);return d=i.substring(u,a),H()}}function H(){return c=ve.Identifier}function P(){const B=w(a);a++;let z="",j=a;for(;;){if(a>=l){z+=i.substring(j,a),L(t1t,1);break}if(w(a)===B){z+=i.substring(j,a),a++;break}a++}return z}function L(B,z=0){r&&r(B,z)}}function Cd(e){return e>=65536?2:e===Re.EOF?0:1}function Rce(e){return e>=Re.A&&e<=Re.Z||e>=Re.a&&e<=Re.z}function a1t(e){return Rce(e)||l1t(e)||e===Re._}function l1t(e){return e>=Re._0&&e<=Re._9}function s1t(e){return Rce(e)||e===Re.$||e===Re._}function u1t(e){return a1t(e)||e===Re.$||e===Re.minus||e===Re.dot}function Pce(e){return e===Re.space||e===Re.tab||e===Re.verticalTab||e===Re.formFeed||e===Re.nonBreakingSpace||e===Re.nextLine||e===Re.ogham||e>=Re.enQuad&&e<=Re.zeroWidthSpace||e===Re.narrowNoBreakSpace||e===Re.mathematicalSpace||e===Re.ideographicSpace||e===Re.byteOrderMark}function c1t(e){return e===Re.lineFeed||e===Re.carriageReturn||e===Re.lineSeparator||e===Re.paragraphSeparator}const d1t=[ve.CData,ve.Script,ve.OpenNodeStart],jw=[ve.OpenNodeStart,ve.NodeEnd,ve.NodeClose,ve.CloseNodeStart,ve.CData,ve.Script],Hce=[ve.Identifier,...jw],f1t=[ve.TextNode,ve.StringLiteral,ve.CData,ve.Script,ve.OpenNodeStart,ve.CloseNodeStart],m1t=[ve.NodeEnd,ve.OpenNodeStart,ve.CloseNodeStart,ve.CData,ve.Script];function p1t(e){return{parse:()=>h1t(e),getText:(t,r=!0)=>e.substring(r?t.pos??t.start??0:t.start??t.pos??0,t.end)}}function h1t(e){const t=[],r=[];let n,o={children:[]},i;const l=i1t(!1,e,function(M,V){i={message:M,prefixLength:V}});return{node:c(),errors:t};function u(M,V=!0){return e.substring(V?M.pos:M.start,M.end)}function c(){for(;;)switch(P().kind){case ve.EndOfFileToken:return B(),Lce(ve.ContentListNode,o.children);case ve.CData:case ve.Script:B();break;case ve.OpenNodeStart:f();break;default:const V=S(d1t);_(oo.expTagOpen,V.pos,V.end);break}}function d(){z();e:for(;;)switch(P().kind){case ve.TextNode:case ve.StringLiteral:case ve.CData:case ve.Script:B();break;case ve.OpenNodeStart:f();break;case ve.CloseNodeStart:case ve.EndOfFileToken:break e;default:const V=S(f1t);_(oo.expTagOpen,V.pos,V.end);break}o.children&&o.children.length>0?j(ve.ContentListNode):W()}function f(){z(),L(ve.OpenNodeStart);let M=!0,V=null;if(I(ve.Identifier)){const N=p();M=N.errInName,V=N.node}else{const N=S(jw);N?_(oo.expTagName,N.pos,N.end):E(oo.expTagName)}switch(M||g(),H().kind){case ve.NodeClose:{B(),j(ve.ElementNode);return}case ve.NodeEnd:{B(),d(),y(V,M),j(ve.ElementNode);return}default:{j(ve.ElementNode),E(oo.expEndOrClose);return}}}function p(){if(z(),L(ve.Identifier),A(ve.Colon)&&!A(ve.Identifier)){const M=j(ve.TagNameNode);return _(oo.expTagNameAfterNamespace,M.pos,M.end),S([ve.Identifier,...jw]),{node:M,errInName:!0}}else return{node:j(ve.TagNameNode),errInName:!1}}function g(){z();const M=[];e:for(;;)switch(H().kind){case ve.EndOfFileToken:case ve.OpenNodeStart:case ve.NodeEnd:case ve.NodeClose:case ve.CloseNodeStart:case ve.CData:case ve.Script:break e;default:v(M)}o.children.length===0?W():j(ve.AttributeListNode)}function v(M){if(z(),I(ve.Identifier))b(M);else{const V=S(Hce);V?(_(oo.expAttrName,V.pos,V.end),j(ve.AttributeNode)):(W(),E(oo.expAttrName));return}if(A(ve.Equal)&&!A(ve.StringLiteral)){const V=S(Hce);V?_(oo.expAttrStr,V.pos,V.end):E(oo.expAttrStr)}j(ve.AttributeNode)}function b(M){let V=H(),N;if(z(),L(ve.Identifier),A(ve.Colon))if(I(ve.Identifier))N=V,V=L(ve.Identifier);else{const Y=S([ve.Equal,ve.Identifier,...jw]);Y?_(oo.expAttrNameAfterNamespace,Y.pos,Y.end):E(oo.expAttrNameAfterNamespace)}k(M,{nsIdent:N,nameIdent:V}),j(ve.AttributeKeyNode)}function y(M,V){if(A(ve.CloseNodeStart)){if(I(ve.Identifier)){const N=w();if(!V&&M!==null&&!Q0t(M,N,u)){const G=oo.tagNameMismatch(u(M),u(N));_(G,N.pos,N.end)}}else{const N=S(m1t);N?_(oo.expTagName,N.pos,N.end):E(oo.expTagName)}A(ve.NodeEnd)||E(oo.expEnd)}else M?_(oo.expCloseStartWithName(u(M)),M.pos,M.end):E(oo.expCloseStart)}function w(){if(z(),L(ve.Identifier),A(ve.Colon)&&!A(ve.Identifier)){const M=j(ve.TagNameNode);return _(oo.expTagNameAfterNamespace,M.pos,M.end),S(jw),M}else return j(ve.TagNameNode)}function k(M,{nameIdent:V,nsIdent:N}){const Y=u(V),G=N&&u(N),F=({ns:oe,name:le})=>le===Y&&oe===G,K=M.findIndex(F)!==-1,J="A"<=Y[0]&&Y[0]<="Z",ie=K||J;K&&_(oo.duplAttr(Y),V.pos,V.end),!N&&J&&_(oo.uppercaseAttr(Y),V.pos,V.end),ie||M.push({name:Y,ns:G})}function E({code:M,message:V,category:N}){const{pos:Y,end:G}=H();t.push({category:N,code:M,message:V,pos:Y,end:G})}function _({code:M,message:V,category:N},Y,G){t.push({category:N,code:M,message:V,pos:Y,end:G})}function S(M){return z(),O(M),o.children.length===0?(W(),null):j(ve.ErrorNode)}function O(M){for(let V=H();V.kind!==ve.EndOfFileToken&&!M.includes(V.kind);B(),V=H());}function A(M){const V=I(M);return V&&B(),V}function I(M){return H().kind===M}function H(M=!1){return n!==void 0||(n=q(M)),n}function P(){const M=H(!0);if(M.kind===ve.EndOfFileToken||M.kind===ve.OpenNodeStart||M.kind===ve.Script||M.kind===ve.CData||M.kind===ve.CloseNodeStart)return M;const V=M.triviaBefore,N=(V==null?void 0:V.length)??0;let Y=0,G=[],F=-1;for(;Y<N;++Y)if(V[Y].kind===ve.CommentTrivia)G.push(V[Y]);else{F=Y;break}let K=-1;for(;Y<N;++Y)if(V[Y].kind===ve.CommentTrivia){K=Y;break}let J=!1;if(M.kind===ve.StringLiteral){const pe=M.end,me=q(!0);J=me.kind===ve.CData||me.kind===ve.CloseNodeStart||me.kind===ve.Script||me.kind===ve.OpenNodeStart,l.resetTokenState(pe)}let ie;J?ie=M.pos:G.length>0?ie=G[G.length-1].end:F!==-1?ie=V[F].pos:ie=M.start;let oe;G.length>0&&(oe=G,G[0].pos);let le=ve.TextNode,ce=-1;if(K!==-1)ce=V[K].pos,l.resetTokenState(ce);else if(J)le=ve.StringLiteral,ce=M.end;else{for(;;){const pe=l.peekChar();if(pe===null||pe===Re.lessThan)break;l.scanChar()}ce=l.getTokenEnd()}return n=new bm(le,ie,ce,oe),n}function L(M){const V=B();if(V.kind!==M)throw new Error(`expected ${Ace(M)}, bumped a ${Ace(V.kind)}`);return V}function B(){if(n){o.children.push(n);const V=n;return n=void 0,V}const M=q(!1);return o.children.push(M),M}function z(){r.push(o),o={children:[]}}function j(M){const V=Lce(M,o.children),N=r[r.length-1];return N.children.push(V),o=N,r.pop(),V}function q(M){let V,N=[],Y=null;for(;;){if(V=l.scan(),Y===null&&(Y=l.getTokenStart()),i!==void 0){let G;i.message.code===wE.invalidChar?G=oo.invalidChar(l.getTokenText()):G=i.message;const F=l.getTokenStart(),K=N.length>0?N:void 0;if(N=[],M&&G.code===wE.invalidChar)return i=void 0,new bm(V,F,l.getTokenEnd(),K);const J=F+i.prefixLength,ie=new bm(V,F,J,K);return l.resetTokenState(J),z(),o.children.push(ie),_(G,F,J),j(ve.ErrorNode),i=void 0,q(M)}switch(V){case ve.CommentTrivia:case ve.NewLineTrivia:case ve.WhitespaceTrivia:N.push(new bm(V,l.getTokenStart(),l.getTokenEnd()));break;default:return new bm(V,l.getTokenStart(),l.getTokenEnd(),N.length>0?N:void 0)}}}function W(){const M=r[r.length-1];M.children.push(...o.children),o=M,r.pop()}}function Lce(e,t){const r=t[0],n=t[t.length-1];return new bm(e,r.pos,n.end,void 0,t)}function _t(e,t,r,n,o,i){if(t.cancel)return t;if(t.skipChildren=!1,Array.isArray(e)){for(const a of e)t=_t(a,t,r,n,o,i);return t}switch(e.type){case ns:{if(t=(r==null?void 0:r(!0,e,t,o,i))||t,t.cancel)return t;if(!t.skipChildren){for(const a of e.stmts)if(t=_t(a,t,r,n,e,"statements"),t.cancel)return t}return t=(r==null?void 0:r(!1,e,t,o,i))||t,t}case os:return t=(r==null?void 0:r(!0,e,t,o,i))||t,t;case is:return t=(r==null?void 0:r(!0,e,t,o,i))||t,t.cancel||!t.skipChildren&&(t=_t(e.expr,t,r,n,e,"expression"),t.cancel)||(t=(r==null?void 0:r(!1,e,t,o,i))||t),t;case ea:return t;case Xx:{if(t=(r==null?void 0:r(!0,e,t,o,i))||t,t.cancel)return t;if(!t.skipChildren){for(const a of e.decls)if(t=_t(a,t,r,n,e,"declarations"),t.cancel)return t}return t=(r==null?void 0:r(!1,e,t,o,i))||t,t}case Qx:{if(t=(r==null?void 0:r(!0,e,t,o,i))||t,t.cancel)return t;if(!t.skipChildren){for(const a of e.decls)if(t=_t(a,t,r,n,e,"declarations"),t.cancel)return t}return t=(r==null?void 0:r(!1,e,t,o,i))||t,t}case Zx:{if(t=(r==null?void 0:r(!0,e,t,o,i))||t,t.cancel)return t;if(!t.skipChildren){for(const a of e.decls)if(t=_t(a,t,r,n,e,"declarations"),t.cancel)return t}return t=(r==null?void 0:r(!1,e,t,o,i))||t,t}case Jx:return t=(r==null?void 0:r(!0,e,t,o,i))||t,t.cancel||!t.skipChildren&&(t=_t(e.cond,t,r,n,e,"condition"),t.cancel||(e.thenB&&(t=_t(e.thenB,t,r,n,e,"thenBranch")),t.cancel)||(e.elseB&&(t=_t(e.elseB,t,r,n,e,"elseBranch")),t.cancel))||(t=(r==null?void 0:r(!1,e,t,o,i))||t),t;case Sf:return t=(r==null?void 0:r(!0,e,t,o,i))||t,t.cancel||!t.skipChildren&&(e.expr&&(t=_t(e.expr,t,r,n,e,"expression")),t.cancel)||(t=(r==null?void 0:r(!1,e,t,o,i))||t),t;case GT:return t=(r==null?void 0:r(!0,e,t,o,i))||t,t;case YT:return t=(r==null?void 0:r(!0,e,t,o,i))||t,t;case ey:return t=(r==null?void 0:r(!0,e,t,o,i))||t,t.cancel||!t.skipChildren&&(t=_t(e.cond,t,r,n,e,"condition"),t.cancel||(t=_t(e.body,t,r,n,e,"body"),t.cancel))||(t=(r==null?void 0:r(!1,e,t,o,i))||t),t;case ty:return t=(r==null?void 0:r(!0,e,t,o,i))||t,t.cancel||!t.skipChildren&&(t=_t(e.body,t,r,n,e,"body"),t.cancel||(t=_t(e.cond,t,r,n,e,"condition"),t.cancel))||(t=(r==null?void 0:r(!1,e,t,o,i))||t),t;case ry:return t=(r==null?void 0:r(!0,e,t,o,i))||t,t.cancel||!t.skipChildren&&(e.init&&(t=_t(e.init,t,r,n,e,"init")),t.cancel||(e.cond&&(t=_t(e.cond,t,r,n,e,"condition")),t.cancel)||(e.upd&&(t=_t(e.upd,t,r,n,e,"update")),t.cancel)||(t=_t(e.body,t,r,n,e,"body"),t.cancel))||(t=(r==null?void 0:r(!1,e,t,o,i))||t),t;case ad:return t=(r==null?void 0:r(!0,e,t,o,i))||t,t.cancel||!t.skipChildren&&(t=_t(e.expr,t,r,n,e,"expression"),t.cancel||(t=_t(e.body,t,r,n,e,"body"),t.cancel))||(t=(r==null?void 0:r(!1,e,t,o,i))||t),t;case Ef:return t=(r==null?void 0:r(!0,e,t,o,i))||t,t.cancel||!t.skipChildren&&(t=_t(e.expr,t,r,n,e,"expression"),t.cancel||(t=_t(e.body,t,r,n,e,"body"),t.cancel))||(t=(r==null?void 0:r(!1,e,t,o,i))||t),t;case ny:return t=(r==null?void 0:r(!0,e,t,o,i))||t,t.cancel||!t.skipChildren&&(t=_t(e.expr,t,r,n,e,"expression"),t.cancel)||(t=(r==null?void 0:r(!1,e,t,o,i))||t),t;case oy:return t=(r==null?void 0:r(!0,e,t,o,i))||t,t.cancel||!t.skipChildren&&(e.tryB&&(t=_t(e.tryB,t,r,n,e,"tryBlock")),t.cancel||(e.catchB&&(t=_t(e.catchB,t,r,n,e,"catchBlock")),t.cancel)||(e.finallyB&&(t=_t(e.finallyB,t,r,n,e,"finallyBlock")),t.cancel))||(t=(r==null?void 0:r(!1,e,t,o,i))||t),t;case iy:{if(t=(r==null?void 0:r(!0,e,t,o,i))||t,t.cancel)return t;if(!t.skipChildren){if(t=_t(e.expr,t,r,n,e,"expression"),t.cancel)return t;for(const a of e.cases){if(a.caseE&&(t=_t(a.caseE,t,r,n,e,"caseExpression")),t.cancel)return t;if(a.stmts!==void 0){for(const l of a.stmts)if(t=_t(l,t,r,n,e,"switchStatement"),t.cancel)return t}}}return t=(r==null?void 0:r(!1,e,t,o,i))||t,t}case $p:{if(t=(r==null?void 0:r(!0,e,t,o,i))||t,t.cancel)return t;if(!t.skipChildren){for(const a of e.args)if(t=_t(a,t,r,n,e,"arg"),t.cancel)return t;if(t=_t(e.stmt,t,r,n,e,"statement"),t.cancel)return t}return t=(r==null?void 0:r(!1,e,t,o,i))||t,t}case ay:return t=(n==null?void 0:n(!0,e,t,o,i))||t,t.cancel||!t.skipChildren&&(t=_t(e.expr,t,r,n,e,"operand"),t.cancel)||(t=(n==null?void 0:n(!1,e,t,o,i))||t),t;case ni:return t=(n==null?void 0:n(!0,e,t,o,i))||t,t.cancel||!t.skipChildren&&(t=_t(e.left,t,r,n,e,"left"),t.cancel||(t=_t(e.right,t,r,n,e,"right"),t.cancel))||(t=(n==null?void 0:n(!1,e,t,o,i))||t),t;case eu:{if(t=(n==null?void 0:n(!0,e,t,o,i))||t,t.cancel)return t;if(!t.skipChildren){for(const a of e.exprs)if(t=_t(a,t,r,n,e,"expression"),t.cancel)return t}return t=(n==null?void 0:n(!1,e,t,o,i))||t,t}case ly:return t=(n==null?void 0:n(!0,e,t,o,i))||t,t.cancel||!t.skipChildren&&(t=_t(e.cond,t,r,n,e,"condition"),t.cancel||(t=_t(e.thenE,t,r,n,e,"consequent"),t.cancel)||(t=_t(e.elseE,t,r,n,e,"alternate"),t.cancel))||(t=(n==null?void 0:n(!1,e,t,o,i))||t),t;case jv:{if(t=(n==null?void 0:n(!0,e,t,o,i))||t,t.cancel)return t;if(!t.skipChildren){for(const a of e.arguments)if(t=_t(a,t,r,n,e,"argument"),t.cancel)return t;if(t=_t(e.obj,t,r,n,e,"object"),t.cancel)return t}return t=(n==null?void 0:n(!1,e,t,o,i))||t,t}case as:return t=(n==null?void 0:n(!0,e,t,o,i))||t,t.cancel||!t.skipChildren&&(t=_t(e.obj,t,r,n,e,"object"),t.cancel)||(t=(n==null?void 0:n(!1,e,t,o,i))||t),t;case ld:return t=(n==null?void 0:n(!0,e,t,o,i))||t,t.cancel||!t.skipChildren&&(t=_t(e.obj,t,r,n,e,"object"),t.cancel||(t=_t(e.member,t,r,n,e,"member"),t.cancel))||(t=(n==null?void 0:n(!1,e,t,o,i))||t),t;case Qt:return t=(n==null?void 0:n(!0,e,t,o,i))||t,t;case $n:return t=(n==null?void 0:n(!0,e,t,o,i))||t,t;case tu:{if(t=(n==null?void 0:n(!0,e,t,o,i))||t,t.cancel)return t;if(!t.skipChildren){for(const a of e.items)if(t=_t(a,t,r,n,e,"item"),t.cancel)return t}return t=(n==null?void 0:n(!1,e,t,o,i))||t,t}case ru:{if(t=(n==null?void 0:n(!0,e,t,o,i))||t,t.cancel)return t;if(!t.skipChildren){for(const a of e.props)if(Array.isArray(a)){const[l,s]=a;if(t=_t(l,t,r,n,e,"propKey"),t.cancel||(t=_t(s,t,r,n,e,"propValue"),t.cancel))return t}else if(t=_t(a,t,r,n,e,"prop"),t.cancel)return t}return t=(n==null?void 0:n(!1,e,t,o,i))||t,t}case oi:return t=(n==null?void 0:n(!0,e,t,o,i))||t,t.cancel||!t.skipChildren&&(t=_t(e.expr,t,r,n,e,"operand"),t.cancel)||(t=(n==null?void 0:n(!1,e,t,o,i))||t),t;case sd:return t=(n==null?void 0:n(!0,e,t,o,i))||t,t.cancel||!t.skipChildren&&(t=_t(e.expr,t,r,n,e,"operand"),t.cancel||(t=_t(e.leftValue,t,r,n,e,"leftValue"),t.cancel))||(t=(n==null?void 0:n(!1,e,t,o,i))||t),t;case Mv:return t=(n==null?void 0:n(!0,e,t,o,i))||t,t;case Tn:{if(t=(n==null?void 0:n(!0,e,t,o,i))||t,t.cancel)return t;if(!t.skipChildren){for(const a of e.args)if(t=_t(a,t,r,n,e,"arg"),t.cancel)return t;if(t=_t(e.statement,t,r,n,e,"statement"),t.cancel)return t}return t=(n==null?void 0:n(!1,e,t,o,i))||t,t}case Dp:case sy:return t=(n==null?void 0:n(!0,e,t,o,i))||t,t.cancel||!t.skipChildren&&(t=_t(e.expr,t,r,n,e,"operand"),t.cancel)||(t=(n==null?void 0:n(!1,e,t,o,i))||t),t;case gl:{if(t=(n==null?void 0:n(!0,e,t,o,i))||t,t.cancel)return t;if(!t.skipChildren){if(e.aDestr!==void 0){for(const a of e.aDestr)if(t=_t(a,t,r,n,e),t.cancel)return t}if(e.oDestr!==void 0){for(const a of e.oDestr)if(t=_t(a,t,r,n,e),t.cancel)return t}if(e.expr&&(t=_t(e.expr,t,r,n,e,"expression")),t.cancel)return t}return t=(n==null?void 0:n(!1,e,t,o,i))||t,t}case Bp:case ud:case tc:{if(t=(n==null?void 0:n(!0,e,t,o,i))||t,t.cancel)return t;if(!t.skipChildren){if(e.aDestr!==void 0){for(const a of e.aDestr)if(t=_t(a,t,r,n,e),t.cancel)return t}if(e.oDestr!==void 0){for(const a of e.oDestr)if(t=_t(a,t,r,n,e),t.cancel)return t}}return t=(n==null?void 0:n(!1,e,t,o,i))||t,t}case oX:return t=(n==null?void 0:n(!0,e,t,o,i))||t,t.cancel||!t.skipChildren&&(e.expr&&(t=_t(e.expr,t,r,n,e,"expression")),t.cancel)||(t=(n==null?void 0:n(!1,e,t,o,i))||t),t;case KT:return t;case iX:return t;default:return t}}function g1t(e){return e.type!=="ScriptModule"}function v1t(e,t){const r=new Map,n={},o=i(e,t);return!o||Object.keys(n).length>0?n:o;function i(a,l){if(r.has(a))return r.get(a);const s=new If(l);let u=[];try{u=s.parseStatements()}catch{return n[a]=s.errors,null}const c=s.current;if(c.type!==Q.Eof)return n[a]??(n[a]=[]),n[a].push({code:"W002",text:lS.W002.replace(/\{(\d+)}/g,()=>c.text),position:c.startLine,line:c.startLine,column:c.startColumn}),null;const d=[],f={};u.filter(v=>v.type===$p).forEach(v=>{const b=v;if(f[b.id.name]){g("W020",v,b.id.name);return}f[b.id.name]=b});const p={type:"ScriptModule",name:a,functions:f,statements:u,sources:new Map};if(r.set(a,p),d.length>0)return n[a]=d,null;return p;function g(v,b,...y){var k,E,_;let w=lS[v];y&&y.forEach((S,O)=>w=w.replaceAll(`{${O}}`,y[O].toString())),d.push({code:v,text:lS[v].replace(/\{(\d+)}/g,(S,O)=>y[O]),position:(k=b.startToken)==null?void 0:k.startPosition,line:(E=b.startToken)==null?void 0:E.startLine,column:(_=b.startToken)==null?void 0:_.startColumn})}}}const CE="__PARSED__";function Nce(e,t){const r={vars:{},moduleErrors:{},functions:{}},n={},o=v1t(e,t);if(g1t(o))return{...r,moduleErrors:o};return o.statements.forEach(a=>{switch(a.type){case Zx:a.decls.forEach(l=>{if(l.id.name in r.vars)throw new Error(`Duplicated var declaration: '${l.id.name}'`);r.vars[l.id.name]={[CE]:!0,tree:l.expr}});break;case $p:i(a);break;default:throw new Error("Only reactive variable and function definitions are allowed in a code-behind module.")}}),r;function i(a){if((n==null?void 0:n[a.id.name])!==void 0)return;if(a.id.name in r.functions)throw new Error(`Duplicated function declaration: '${a.id.name}'`);const l={type:Tn,args:a.args.slice(),statement:a.stmt};n[a.id.name]={[CE]:!0,tree:l},r.functions[a.id.name]={[CE]:!0,tree:l}}}function b1t(e){if(!e)return;const t={data:null,cancel:!1,skipChildren:!1};Object.keys(e.vars).forEach(n=>{r(e.vars[n])}),Object.keys(e.functions).forEach(n=>{r(e.functions[n])});function r(n){const o=(i,a,l)=>(i&&a&&(delete a.startToken,delete a.endToken),l);_t(n.tree,t,o,o)}}class kE extends Error{constructor(t,r){super(`${r?`${r}: `:""}${t}`),this.code=r,Object.setPrototypeOf(this,kE.prototype)}}const x1t={U001:"Unexpected token: {0}.",U002:"A component definition can have exactly one XMLUI element.",U003:"A '<' token expected.",U004:"A node identifier expected.",U005:"A '</' token expected.",U006:"A '>' or '/>' token expected.",U007:"An '{0}' ID expected in the closing tag but '{1}' received.",U008:"A '>' token expected.",U009:"An attribute identifier expected.",U010:"An '=' token expected.",U011:"An attribute value expected.",U012:"Duplicated attribute: '{0}'.",U013:"Attribute name cannot start with an uppercase letter.",U014:"An '{0}' ID expected in the closing tag's namespace but '{1}' received.",U015:"Unexpected token in text element: {0}.",T001:"A component definition must have exactly one XMLUI element.",T002:"A component definition's name must start with an uppercase letter.",T003:"A reusable component must have a non-empty name.",T004:"A reusable component's name must start with an uppercase letter.",T005:"A reusable component must have at least one nested component definition.",T006:"A reusable component definition cannot nest another one.",T007:"Invalid attribute name: '{0}'",T008:"Event attribute names should not start with 'on' prefix: '{0}'",T009:"Invalid node name '{0}' in a component definition",T010:"The '{0}' element does not accept a text child",T011:"Only 'name', 'value', and type hint attributes are accepted in '{0}'.",T012:"The 'name' attribute in '{0}' is required.",T013:"A loader element must have an id.",T014:"A loader element must not have '{0}'.",T015:"The uses element must define only a non-empty 'value' attribute.",T016:"Only 'field' or 'item' are accepted as a child element.",T017:"Cannot mix 'field' and 'item' nodes within an element.",T018:"The '{0}' node cannot have a 'name' attribute.",T019:"The 'value' attribute in '{0}' is required.",T020:"Cannot mix nested components and non-component children.",T021:"Invalid reusable component attribute '{0}'.",T022:"The 'script' tag must not have any attribute.",T023:"A 'script' tag cannot nest other child nodes, only text.",T024:"Cannot put a reusable component definitions into a slot.",T025:"Duplicate xmlns found: '{0}'.",T026:"The top level component's name cannot have a namespace.",T027:"Cannot resolve namespace '{0}'. It was not defined in any of the ancestor components.",T028:"Incorrect namespace value '{0}'. {1}",T029:"Incorrect scheme specified before ':' (colon) in namespace {0}. Delete it to get the default '{1}'."},_N="Component",TN=/^[A-Z]/,SN=/^on[A-Z]/,y1t=["name","value"],w1t=9,EN="component-ns",C1t="app-ns",k1t="#app-ns",_1t="core-ns",ON="#xmlui-core-ns",xm={property:"property",event:"event",variable:"variable",loaders:"loaders",uses:"uses",method:"method",item:"item",field:"field"};let T1t=0;function S1t(e,t,r){const n=P=>P.text??t(P),o=A1t(e),i=E(o),a=[],l=[];return s(a,i);function s(P,L){const B=Mce(L,n,l);if(B===_N)return c(L);let z={type:B,debug:{source:{start:L.start,end:L.end,fileId:r}}};return d(P,z,L),z}function u(P,L){const B=Mce(L,n,l);B===_N&&yr("T006");let z={type:B,debug:{source:{start:L.start,end:L.end,fileId:r}}};return d(P,z,L),z}function c(P){const L=Jb(P).map(w),B=L.find(oe=>oe.name==="name");B||yr("T003"),TN.test(B.value)||yr("T004");const z=L.find(oe=>oe.name==="codeBehind");let j;const q=L.filter(oe=>oe.startSegment==="method");q.length>0&&(j={},q.forEach(oe=>{j[oe.name]=oe.value}));let W;const M=L.filter(oe=>oe.startSegment==="var");M.length>0&&(W={},M.forEach(oe=>{W[oe.name]=oe.value}));const V=e0(P),N=V.filter(oe=>oe.kind===ve.ElementNode&&!(kd(oe,n)in xm));N.length===0&&N.push($ce(""));const Y=[],G=[];for(let oe of V)if(oe.kind===ve.ElementNode){const le=kd(oe,n);le===xm.variable?G.push(oe):le in xm&&Y.push(oe)}let F;N.length>1||G.length>0?F=Dce([...G,...N]):F=N[0],l.push(new Map),L.filter(oe=>oe.namespace==="xmlns").forEach(oe=>{jce(l,F,oe.unsegmentedName,oe.value)});let K=u(a,F);l.pop();const J={name:B.value,component:K,debug:{source:{start:P.start,end:P.end,fileId:r}}};j&&(J.api=j),W&&(K.vars={...K.vars,...W}),z&&(J.codeBehind=z.value),K.debug={source:{start:F.start,end:F.end,fileId:r}};const ie=Bce(P,Y);return d(a,J,ie),J}function d(P,L,B){var V;const z=!yu(L),j=Jb(B);if(l.push(new Map),j.forEach(N=>{f(L,N)}),e0(B).forEach(N=>{if(N.kind===ve.Script){Jb(N).length>0&&yr("T022");const G=n(N),F=G.slice(G.indexOf(">")+1,G.lastIndexOf("</"));L.script??(L.script=""),L.script.length>0&&(L.script+=`
|
|
479
479
|
`),L.script+=F;return}if(N.kind===ve.TextNode&&!z){L.children=_E(L.children,n(N));return}const Y=kd(N,n);if(!(z&&N.kind===ve.ElementNode&&!(Y in xm))){if(!(Y in xm)&&!z){const G=u(P,N);G&&(L.children?typeof L.children=="string"?L.children=[L.children,G]:Array.isArray(L.children)&&L.children.push(G):L.children=[G]);return}switch(Y){case"property":b(P,L,N,G=>{var F;return yu(L)?(F=L.props)==null?void 0:F[G]:void 0},(G,F)=>{yu(L)&&(L.props??(L.props={}),L.props[G]=F)});return;case"event":b(P,L,N,G=>{var F;return yu(L)?(F=L.events)==null?void 0:F[G]:void 0},(G,F)=>{yu(L)&&(L.events??(L.events={}),L.events[G]=H(F))},G=>{SN.test(G)&&yr("T008",G)});return;case xm.variable:b(P,L,N,G=>{var F;return yu(L)?(F=L.vars)==null?void 0:F[G]:void 0},(G,F)=>{yu(L)&&(L.vars??(L.vars={}),L.vars[G]=F)});return;case"loaders":v(P,L,N);return;case"uses":y(L,N);return;case"method":b(P,L,N,G=>{var F;return yu(L)?(F=L.api)==null?void 0:F[G]:void 0},(G,F)=>{L.api??(L.api={}),L.api[G]=F});return;default:yr("T009",Y);return}}}),l.pop(),!L.script||L.script.trim().length===0)return;const W=new If(L.script);try{W.parseStatements(),L.scriptCollected=Nce("Main",L.script)}catch(N){W.errors&&W.errors.length>0?L.scriptError=W.errors:L.scriptError=N}const M=((V=L.scriptCollected)==null?void 0:V.moduleErrors)??{};Object.keys(M).length>0&&(L.scriptError=M)}function f(P,L){const{namespace:B,startSegment:z,name:j,value:q,unsegmentedName:W}=w(L);if(B==="xmlns")return jce(l,P,W,q);if(!yu(P)){if(z&&z!=="method"&&z!=="var"){yr("T021");return}if(j==="name"&&!z||j==="codeBehind"&&!z)return;!z&&j&&yr("T021",j);return}switch(j){case"id":P.uid=q;return;case"testId":P.testId=q;return;case"when":P.when=q;return;default:if(z==="var")P.vars??(P.vars={}),P.vars[j]=q;else if(z==="method")P.api??(P.api={}),P.api[j]=q;else if(z==="event")P.events??(P.events={}),P.events[j]=H(q);else if(SN.test(j)){P.events??(P.events={});const V=j[2].toLowerCase()+j.substring(3);P.events[V]=H(q)}else P.props??(P.props={}),P.props[j]=q;return}}function p(P,L){let B=null;if(!L)return B;let z=null;return L.forEach(j=>{if(j.kind===ve.TextNode){B=_E(B,n(j));return}if(j.kind!==ve.ElementNode)return;const q=kd(j,n);if(q!=="field"&&q!=="item"){yr("T016");return}if(q==="field"){if(!z)z=q,B={};else if(z!==q){yr("T017");return}}else if(q==="item"){if(!z)z=q,B=[];else if(z!==q){yr("T017");return}}let W=g(P,j,q==="field");if(!W)return null;z==="field"?B[W.name]=W.value:B.push(W.value)}),B}function g(P,L,B=!0){const z=kd(L,n),j=e0(L),q=j.filter(K=>K.kind===ve.ElementNode&&TN.test(kd(K,n))),W=j.filter(K=>K.kind===ve.ElementNode&&!TN.test(kd(K,n))),M=Jb(L).map(w),V=M.filter(K=>y1t.indexOf(K.name)>=0);if(M.length>V.length)return yr("T011",z),null;const N=V.find(K=>K.name==="name");if(B){if(!(N!=null&&N.value))return yr("T012",z),null}else if(N)return yr("T018",z),null;const Y=N==null?void 0:N.value,G=V.find(K=>K.name==="value");if(G&&G.value===void 0)return yr("T019",z),null;if(Y&&q.length>=1){if(W.length>0)return yr("T020"),null;const K=q.map(J=>u(P,J));return{name:Y,value:K.length===1?K[0]:K}}let F=G==null?void 0:G.value;return F===null?null:typeof F=="string"?{name:Y,value:F}:{name:Y,value:p(P,j)}}function v(P,L,B){var q;if(!yu(L)){yr("T009","loaders");return}const z=e0(B);if(z.length===0&&(L.loaders??(L.loaders=[])),(q=B.children)==null?void 0:q.some(W=>W.kind===ve.AttributeListNode)){yr("T014","attributes");return}z.forEach(W=>{if(W.kind===ve.TextNode){yr("T010","loader");return}const M=u(P,W);if(!M.uid){yr("T013");return}if(M.vars){yr("T014","vars");return}if(M.loaders){yr("T014","loaders");return}if(M.uses){yr("T014","uses");return}L.loaders??(L.loaders=[]),L.loaders.push(M)})}function b(P,L,B,z,j,q){const W=g(P,B);if(!W)return;q==null||q((W==null?void 0:W.name)??"");const M=W.name,V=W.value;if((W==null?void 0:W.value)!==void 0)j(M,_E(z(M),V));else{const N=e0(B),Y=p(P,N);let G=z(M);G=_E(G,Y),j(M,G)}}function y(P,L){if(!yu(P)){yr("T009","uses");return}const B=Jb(L).map(w),z=B.find(j=>j.name==="value");if(!(z!=null&&z.value)||B.length!==1){yr("T015","uses");return}P.uses??(P.uses=z.value.split(",").map(j=>j.trim()))}function w(P){let L=P.children[0];const B=L.children.length===3;let z;B&&(z=n(L.children[0]));let j=n(L.children[L.children.length-1]);const q=j.split(".");q.length>2&&yr("T007",P,L);let W,M;q.length===2?(M=q[0],W=q[1],W.trim()===""&&yr("T007",P,W)):W=j;const V=n(P.children[2]),N=V.substring(1,V.length-1);return{namespace:z,startSegment:M,name:W,value:N,unsegmentedName:j}}function k(P){for(let L of P){const B=L.children[L.children.length-1],z=A(n(B));z!==null&&(B.text=z)}}function E(P){const L=e0(P),B=kd(P,n),j=!(B in xm)||B==="property",q=B!=="event"&&B!=="method",W=Jb(P);O1t(W),k(W),O(L),I(L,q);let M=!1,V=!1;for(let F=0;F<L.length;++F){const K=L[F];let J;if(K.kind==ve.Script){V=!0;continue}if(K.kind===ve.ElementNode){J=E(K),L[F]=J;continue}let ie=n(K);K.kind===ve.StringLiteral?ie=ie.slice(1,-1):K.kind===ve.CData?M=!0:(K.kind,ve.TextNode),j?M?J=E1t(ie):J=$ce(ie):J={kind:ve.TextNode,text:ie},L[F]=J}const N=[],Y=[];let G=!1;for(const F of L){if(F.kind===ve.ElementNode){if((kd(F,n)??void 0)in xm){N.push(F);continue}G=!0}Y.push(F)}if(V&&G){const F=Dce(Y);return N.push(F),Bce(P,N)}return P}function _(P){for(let L=0;L<P.length;++L)if(P[L].kind===ve.StringLiteral||P[L].kind===ve.TextNode){const B=/[\f\n\r\t\v\u0020\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/g;P[L].text=n(P[L]).replace(B," ")}}function S(P){for(let L=0;L<P.length;++L)P[L].kind===ve.CData&&(P[L].text=n(P[L]).slice(w1t,-3))}function O(P){for(let L of P)if(L.kind===ve.StringLiteral||L.kind===ve.TextNode){const B=A(n(L));B!==null&&(L.text=B)}}function A(P){let L="",B=0;for(let z=0;z<P.length;++z)if(P.charCodeAt(z)===Re.ampersand)switch(P.charCodeAt(z+1)){case Re.a:switch(P.charCodeAt(z+2)){case Re.m:P.charCodeAt(z+3)===Re.p&&P.charCodeAt(z+4)===Re.semicolon&&(L=L+P.substring(B,z)+"&",z+=4,B=z+1);break;case Re.p:P.charCodeAt(z+3)===Re.o&&P.charCodeAt(z+4)===Re.s&&P.charCodeAt(z+5)===Re.semicolon&&(L=L+P.substring(B,z)+"'",z+=5,B=z+1);break}break;case Re.g:P.charCodeAt(z+2)===Re.t&&P.charCodeAt(z+3)===Re.semicolon&&(L=L+P.substring(B,z)+">",z+=3,B=z+1);break;case Re.l:P.charCodeAt(z+2)===Re.t&&P.charCodeAt(z+3)===Re.semicolon&&(L=L+P.substring(B,z)+"<",z+=3,B=z+1);break;case Re.q:P.charCodeAt(z+2)===Re.u&&P.charCodeAt(z+3)===Re.o&&P.charCodeAt(z+4)===Re.t&&P.charCodeAt(z+5)===Re.semicolon&&(L=L+P.substring(B,z)+'"',z+=5,B=z+1);break;case Re.n:P.charCodeAt(z+2)===Re.b&&P.charCodeAt(z+3)===Re.s&&P.charCodeAt(z+4)===Re.p&&P.charCodeAt(z+5)===Re.semicolon&&(L=L+P.substring(B,z)+" ",z+=5,B=z+1);break}return B===0?null:(L+=P.substring(B),L)}function I(P,L){L&&_(P),S(P);for(let B=P.length-1;B>0;--B){const z=P[B-1],j=P[B];z.kind===ve.StringLiteral&&j.kind===ve.CData?(P[B-1]={kind:ve.CData,text:n(z).slice(1,-1)+n(j)},P.pop()):z.kind===ve.CData&&j.kind===ve.StringLiteral?(P[B-1]={kind:ve.CData,text:n(z)+n(j).slice(1,-1)},P.pop()):z.kind===ve.CData&&j.kind===ve.TextNode?(P[B-1]={kind:ve.CData,text:n(z)+n(j)},P.pop()):z.kind===ve.CData&&j.kind===ve.CData?(P[B-1]={kind:ve.CData,text:n(z)+n(j)},P.pop()):z.kind===ve.TextNode&&j.kind===ve.TextNode?(n(z).endsWith(" ")&&n(j).startsWith(" ")&&(z.text=n(z).trimEnd()),P[B-1]={kind:ve.TextNode,text:n(z)+n(j)},P.pop()):z.kind===ve.TextNode&&j.kind===ve.CData&&(P[B-1]={kind:ve.CData,text:n(z)+n(j)},P.pop())}}function H(P){if(typeof P!="string")return P;const L=new If(P);try{return{__PARSED:!0,statements:L.parseStatements(),parseId:++T1t,source:P}}catch{if(L.errors.length>0){const B=L.errors[0];throw new kE(`${B.text} [${B.line}: ${B.column}]`,B.code)}}}}function E1t(e){return{kind:ve.ElementNode,children:[{kind:ve.OpenNodeStart},{kind:ve.TagNameNode,children:[{kind:ve.Identifier,text:"TextNodeCData"}]},{kind:ve.AttributeListNode,children:[{kind:ve.AttributeNode,children:[{kind:ve.AttributeKeyNode,children:[{kind:ve.Identifier,text:"value"}]},{kind:ve.Equal},{kind:ve.Identifier,text:`"${e}"`}]}]},{kind:ve.NodeClose}]}}function $ce(e){return{kind:ve.ElementNode,children:[{kind:ve.OpenNodeStart},{kind:ve.TagNameNode,children:[{kind:ve.Identifier,text:"TextNode"}]},{kind:ve.AttributeListNode,children:[{kind:ve.AttributeNode,children:[{kind:ve.AttributeKeyNode,children:[{kind:ve.Identifier,text:"value"}]},{kind:ve.Equal},{kind:ve.Identifier,text:`"${e}"`}]}]},{kind:ve.NodeClose}]}}function yr(e,...t){let r=x1t[e]??"Unknown error";throw t&&t.forEach((o,i)=>r=n(r,`{${i}}`,o.toString())),new kE(r,e);function n(o,i,a){do o=o.replace(i,a);while(o.includes(i));return o}}function yu(e){return e.type}function _E(e,t){return e?Array.isArray(e)?typeof e=="string"?[e,t]:(e.push(t),e):[e,t]:t}function Dce(e){const t={kind:ve.TagNameNode,children:[{kind:ve.Identifier,text:"Fragment"}]};return{kind:ve.ElementNode,start:e[0].start,pos:e[0].pos,end:e[e.length-1].end,children:[{kind:ve.OpenNodeStart},t,{kind:ve.NodeEnd},{kind:ve.ContentListNode,children:e},{kind:ve.CloseNodeStart},t,{kind:ve.NodeEnd}]}}function Jb(e){var t,r;return((r=(t=e.children)==null?void 0:t.find(n=>n.kind===ve.AttributeListNode))==null?void 0:r.children)??[]}function e0(e){var t,r;return((r=(t=e.children)==null?void 0:t.find(n=>n.kind===ve.ContentListNode))==null?void 0:r.children)??[]}function Bce(e,t){var o;const r=(o=e.children)==null?void 0:o.findIndex(i=>i.kind===ve.ContentListNode);if(r===void 0||r===-1)return e;const n=e.children[r];return new bm(e.kind,e.pos??0,e.end??0,e.triviaBefore,[...e.children.slice(0,r),new bm(n.kind,n.pos??0,n.end??0,void 0,t),...e.children.slice(r)])}function O1t(e){var t;for(let r of e)if(((t=r.children)==null?void 0:t.length)===1){const n={kind:ve.Equal},o={kind:ve.StringLiteral,text:'"true"'};r.children.push(n,o)}}function jce(e,t,r,n){let o=n.split(":");if(o.length>2)return yr("T028",n,"Namespace cannot contain multiple ':' (colon).");let i=n;if(o.length===2){if(o[0]!=EN)return yr("T029",n,EN);i=o[1]}if(i.includes("#"))return yr("T028",i,"Namespace cannot contain character '#'.");switch(i){case EN:i=r;break;case C1t:i=k1t;break;case _1t:i=ON;break}const a=e[e.length-1];if(a.has(r))return yr("T025",r);a.set(r,i)}function A1t(e,t){e.children.length!==2&&yr("T001");const r=e.children[0];return r.kind!==ve.ElementNode&&yr("T001"),r}function kd(e,t){const r=e.children.find(o=>o.kind===ve.TagNameNode).children;return t(r.at(-1))}function Mce(e,t,r){const n=e.children.find(l=>l.kind===ve.TagNameNode).children,o=t(n.at(-1));if(n.length===1)return o;const i=t(n[0]);r.length===0&&yr("T026");let a;for(let l=r.length-1;l>=0&&(a=r[l].get(i),a===void 0);--l);return a===void 0&&yr("T027",i),a+"."+o}function I1t(e){return e[2].toLowerCase()+e.substring(3)}function Mw(e,t=0){const{parse:r,getText:n}=p1t(e),{node:o,errors:i}=r();if(i.length>0){const a=[];for(let u=0;u<e.length;++u)e[u]===`
|
|
480
|
-
`&&a.push(u);const l=L1t(i,a),s=zce(o,n);return{component:null,errors:l,erroneousCompoundComponentName:s}}try{return{component:S1t(o,n,t),errors:[]}}catch(a){const l=zce(o,n),s={message:a.message,col:0,line:0,code:wE.expEq,category:Ice.Error,pos:0,end:0};return{component:null,erroneousCompoundComponentName:l,errors:[s]}}}function R1t(e){function t(){return{type:"VStack",props:{padding:"$padding-normal",gap:0},children:[{type:"H1",props:{value:e,padding:"$padding-normal",backgroundColor:"$color-error",color:"white"}}]}}const r=t();return r.component=t(),r}function TE(e,t,r){function n(){const i=e.sort((l,s)=>l.pos===void 0&&s.pos===void 0?0:l.pos===void 0?1:s.pos===void 0?-1:l.pos-s.pos).map((l,s)=>({type:"VStack",props:{gap:"0px"},children:[{type:"HStack",props:{gap:"0"},children:[{type:"Text",props:{value:`#${s+1}: ${t} (${l.line}:${l.col}): `,color:"$color-info"}},{type:"Text",props:{value:` ${l.message}`,fontWeight:"bold"}}]}]}));return{type:"VStack",props:{padding:"$padding-normal",gap:0},children:[{type:"H1",props:{value:`${i.length} ${i.length>1?"Errors":"Error"} found while processing XMLUI markup`,padding:"$padding-normal",backgroundColor:"$color-error",color:"white"}},{type:"VStack",props:{gap:"$gap-tight",padding:"$padding-normal"},children:i}]}}const o=n();return o.name=r,o.component=n(),o}function P1t(e,t){function r(){return{type:"VStack",props:{padding:"$padding-normal",gap:0},children:[{type:"H1",props:{value:"An error found while processing XMLUI code-behind script",padding:"$padding-normal",backgroundColor:"$color-error",color:"white"}},{type:"VStack",props:{gap:"$gap-tight",padding:"$padding-normal"},children:[{type:"HStack",props:{gap:"0"},children:[{type:"Text",props:{value:`${t} (${e.line}:${e.column}): `,color:"$color-info"}},{type:"Text",props:{value:` ${e.text}`,fontWeight:"bold"}}]}]}]}}const n=r();return n.component=r(),n}function H1t(e,t){function r(){const o=[];let i=1;return Object.keys(e).map(l=>{const s=e[l];for(let u of s)o.push({type:"VStack",props:{gap:"0px"},children:[{type:"HStack",props:{gap:"0"},children:[{type:"Text",props:{value:`#${i++}: ${t} (${u.line}:${u.column}): `,color:"$color-info"}},{type:"Text",props:{value:` ${u.text}`,fontWeight:"bold"}}]}]})}),{type:"VStack",props:{padding:"$padding-normal",gap:0},children:[{type:"H1",props:{value:`${o.length} ${o.length>1?"Errors":"Error"} found while processing XMLUI code-behind script`,padding:"$padding-normal",backgroundColor:"$color-error",color:"white"}},{type:"VStack",props:{gap:"$gap-tight",padding:"$padding-normal"},children:o}]}}const n=r();return n.component=r(),n}function L1t(e,t){if(t.length===0){for(let r of e)r.line=1,r.col=r.pos+1;return e}for(let r of e){let n=0;for(;n<t.length;++n){const i=t[n];if(r.pos<i){r.line=n+1,r.col=r.pos-(t[n-1]??0)+1;break}}const o=t[t.length-1];r.pos>=o&&(r.line=t.length+1,r.col=r.pos-o+0)}return e}function zce(e,t){var s,u,c,d,f,p;const r=(s=e==null?void 0:e.children)==null?void 0:s[0],n=(c=(u=r==null?void 0:r.children)==null?void 0:u.find(g=>g.kind===ve.TagNameNode))==null?void 0:c.children,o=n==null?void 0:n[n.length-1];if(o===void 0||t(o)!=="Component")return;const i=(f=(d=r.children)==null?void 0:d.find(g=>g.kind===ve.AttributeListNode))==null?void 0:f.children,a=(p=i==null?void 0:i.find(g=>g.kind===ve.AttributeNode&&t(g==null?void 0:g.children[0])==="name"))==null?void 0:p.children,l=a==null?void 0:a[a.length-1];if(l!==void 0&&l.kind===ve.StringLiteral){const g=t(l);return g.substring(1,g.length-1)}}const Fce=m.createContext(null);function AN(){return m.useContext(Fce)}var N1t={VITE_MOCK_WORKER_LOCATION:"mockApi.js"};function IN({interceptor:e,children:t,useHashBasedRouting:r,parentInterceptorContext:n=null,waitForApiInterceptor:o=!1}){const i=n!==null,[a,l]=m.useState(!e),[s,u]=m.useState(!1),[c,d]=m.useState(null);m.useEffect(()=>{if(i)e&&(n!=null&&n.interceptorWorker?(async()=>{const{createApiInterceptorWorker:v}=await Promise.resolve().then(()=>c_e);await v(e,n==null?void 0:n.interceptorWorker),setTimeout(()=>{l(!0)},0)})():n==null||n.forceInitialize());else if(e||s){let v;return(async()=>{{const{createApiInterceptorWorker:b}=await Promise.resolve().then(()=>c_e);if(e||s){v=await b(e||{},null);const y=WI(N1t.VITE_MOCK_WORKER_LOCATION);await v.start({onUnhandledRequest:"bypass",quiet:!0,serviceWorker:{url:y}}),d(v)}}l(!0)})(),()=>{n!=null&&n.interceptorWorker||v==null||v.stop(),l(!1)}}else l(!0)},[s,i,e,n==null?void 0:n.forceInitialize,n==null?void 0:n.interceptorWorker]);const f=m.useCallback(v=>e!==void 0&&!0,[e]),p=m.useCallback(()=>{u(!0)},[]),g=m.useMemo(()=>({interceptorWorker:c,initialized:a,forceInitialize:p,isMocked:f}),[c,a,p,f]);return C.jsx(Fce.Provider,{value:g,children:o&&!a?null:t})}const RN={errorOverlay:"_errorOverlay_1t96q_13",title:"_title_1t96q_21",errorItem:"_errorItem_1t96q_28"};class t0 extends ee.Component{constructor(){super(...arguments),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,r){console.error("Uncaught error:",t,r,this.props.location)}componentDidUpdate(t,r,n){t.node!==this.props.node&&this.setState({hasError:!1})}render(){var t;return this.state.hasError?C.jsxs("div",{className:RN.errorOverlay,children:[C.jsx("div",{className:RN.title,children:"There was an error!"}),C.jsx("div",{className:RN.errorItem,children:(t=this.state.error)==null?void 0:t.message})]}):this.props.children}}const Wce=ee.createContext(null);function Hh(){return m.useContext(Wce)}const bn={themeVars:`'{"padding-NestedApp": "var(--xmlui-padding-NestedApp)", "paddingHorizontal-NestedApp": "var(--xmlui-paddingHorizontal-NestedApp, var(--xmlui-padding-NestedApp))", "paddingVertical-NestedApp": "var(--xmlui-paddingVertical-NestedApp, var(--xmlui-padding-NestedApp))", "paddingLeft-NestedApp": "var(--xmlui-paddingLeft-NestedApp, var(--xmlui-paddingHorizontal-NestedApp, var(--xmlui-padding-NestedApp)))", "paddingRight-NestedApp": "var(--xmlui-paddingRight-NestedApp, var(--xmlui-paddingHorizontal-NestedApp, var(--xmlui-padding-NestedApp)))", "paddingTop-NestedApp": "var(--xmlui-paddingTop-NestedApp, var(--xmlui-paddingVertical-NestedApp, var(--xmlui-padding-NestedApp)))", "paddingBottom-NestedApp": "var(--xmlui-paddingBottom-NestedApp, var(--xmlui-paddingVertical-NestedApp, var(--xmlui-padding-NestedApp)))", "border-NestedApp": "var(--xmlui-border-NestedApp)", "borderHorizontal-NestedApp": "var(--xmlui-borderHorizontal-NestedApp, var(--xmlui-border-NestedApp))", "borderVertical-NestedApp": "var(--xmlui-borderVertical-NestedApp, var(--xmlui-border-NestedApp))", "borderLeft-NestedApp": "var(--xmlui-borderLeft-NestedApp, var(--xmlui-borderHorizontal-NestedApp, var(--xmlui-border-NestedApp)))", "borderRight-NestedApp": "var(--xmlui-borderRight-NestedApp, var(--xmlui-borderHorizontal-NestedApp, var(--xmlui-border-NestedApp)))", "borderTop-NestedApp": "var(--xmlui-borderTop-NestedApp, var(--xmlui-borderVertical-NestedApp, var(--xmlui-border-NestedApp)))", "borderBottom-NestedApp": "var(--xmlui-borderBottom-NestedApp, var(--xmlui-borderVertical-NestedApp, var(--xmlui-border-NestedApp)))", "borderWidth-NestedApp": "var(--xmlui-borderWidth-NestedApp)", "borderHorizontalWidth-NestedApp": "var(--xmlui-borderHorizontalWidth-NestedApp, var(--xmlui-borderWidth-NestedApp))", "borderLeftWidth-NestedApp": "var(--xmlui-borderLeftWidth-NestedApp, var(--xmlui-borderHorizontalWidth-NestedApp, var(--xmlui-borderWidth-NestedApp)))", "borderRightWidth-NestedApp": "var(--xmlui-borderRightWidth-NestedApp, var(--xmlui-borderHorizontalWidth-NestedApp, var(--xmlui-borderWidth-NestedApp)))", "borderVerticalWidth-NestedApp": "var(--xmlui-borderVerticalWidth-NestedApp, var(--xmlui-borderWidth-NestedApp))", "borderTopWidth-NestedApp": "var(--xmlui-borderTopWidth-NestedApp, var(--xmlui-borderVerticalWidth-NestedApp, var(--xmlui-borderWidth-NestedApp)))", "borderBottomWidth-NestedApp": "var(--xmlui-borderBottomWidth-NestedApp, var(--xmlui-borderVerticalWidth-NestedApp, var(--xmlui-borderWidth-NestedApp)))", "borderStyle-NestedApp": "var(--xmlui-borderStyle-NestedApp)", "borderHorizontalStyle-NestedApp": "var(--xmlui-borderHorizontalStyle-NestedApp, var(--xmlui-borderStyle-NestedApp))", "borderLeftStyle-NestedApp": "var(--xmlui-borderLeftStyle-NestedApp, var(--xmlui-borderHorizontalStyle-NestedApp, var(--xmlui-borderStyle-NestedApp)))", "borderRightStyle-NestedApp": "var(--xmlui-borderRightStyle-NestedApp, var(--xmlui-borderHorizontalStyle-NestedApp, var(--xmlui-borderStyle-NestedApp)))", "borderVerticalStyle-NestedApp": "var(--xmlui-borderVerticalStyle-NestedApp, var(--xmlui-borderStyle-NestedApp))", "borderTopStyle-NestedApp": "var(--xmlui-borderTopStyle-NestedApp, var(--xmlui-borderVerticalStyle-NestedApp, var(--xmlui-borderStyle-NestedApp)))", "borderBottomStyle-NestedApp": "var(--xmlui-borderBottomStyle-NestedApp, var(--xmlui-borderVerticalStyle-NestedApp, var(--xmlui-borderStyle-NestedApp)))", "borderColor-NestedApp": "var(--xmlui-borderColor-NestedApp)", "borderHorizontalColor-NestedApp": "var(--xmlui-borderHorizontalColor-NestedApp, var(--xmlui-borderColor-NestedApp))", "borderLeftColor-NestedApp": "var(--xmlui-borderLeftColor-NestedApp, var(--xmlui-borderHorizontalColor-NestedApp, var(--xmlui-borderColor-NestedApp)))", "borderRightColor-NestedApp": "var(--xmlui-borderRightColor-NestedApp, var(--xmlui-borderHorizontalColor-NestedApp, var(--xmlui-borderColor-NestedApp)))", "borderVerticalColor-NestedApp": "var(--xmlui-borderVerticalColor-NestedApp, var(--xmlui-borderColor-NestedApp))", "borderTopColor-NestedApp": "var(--xmlui-borderTopColor-NestedApp, var(--xmlui-borderVerticalColor-NestedApp, var(--xmlui-borderColor-NestedApp)))", "borderBottomColor-NestedApp": "var(--xmlui-borderBottomColor-NestedApp, var(--xmlui-borderVerticalColor-NestedApp, var(--xmlui-borderColor-NestedApp)))", "borderStartStartRadius-NestedApp": "var(--xmlui-borderStartStartRadius-NestedApp, var(--xmlui-borderRadius-NestedApp))", "borderStartEndRadius-NestedApp": "var(--xmlui-borderStartEndRadius-NestedApp, var(--xmlui-borderRadius-NestedApp))", "borderEndStartRadius-NestedApp": "var(--xmlui-borderEndStartRadius-NestedApp, var(--xmlui-borderRadius-NestedApp))", "borderEndEndRadius-NestedApp": "var(--xmlui-borderEndEndRadius-NestedApp, var(--xmlui-borderRadius-NestedApp))", "textColor-header-NestedApp": "var(--xmlui-textColor-header-NestedApp)", "fontFamily-header-NestedApp": "var(--xmlui-fontFamily-header-NestedApp)", "fontSize-header-NestedApp": "var(--xmlui-fontSize-header-NestedApp)", "fontStyle-header-NestedApp": "var(--xmlui-fontStyle-header-NestedApp)", "fontVariant-header-NestedApp": "var(--xmlui-fontVariant-header-NestedApp)", "fontWeight-header-NestedApp": "var(--xmlui-fontWeight-header-NestedApp)", "fontStretch-header-NestedApp": "var(--xmlui-fontStretch-header-NestedApp)", "textDecorationLine-header-NestedApp": "var(--xmlui-textDecorationLine-header-NestedApp)", "textDecorationColor-header-NestedApp": "var(--xmlui-textDecorationColor-header-NestedApp)", "textDecorationStyle-header-NestedApp": "var(--xmlui-textDecorationStyle-header-NestedApp)", "textDecorationThickness-header-NestedApp": "var(--xmlui-textDecorationThickness-header-NestedApp)", "textUnderlineOffset-header-NestedApp": "var(--xmlui-textUnderlineOffset-header-NestedApp)", "lineHeight-header-NestedApp": "var(--xmlui-lineHeight-header-NestedApp)", "backgroundColor-header-NestedApp": "var(--xmlui-backgroundColor-header-NestedApp)", "textTransform-header-NestedApp": "var(--xmlui-textTransform-header-NestedApp)", "letterSpacing-header-NestedApp": "var(--xmlui-letterSpacing-header-NestedApp)", "wordSpacing-header-NestedApp": "var(--xmlui-wordSpacing-header-NestedApp)", "textShadow-header-NestedApp": "var(--xmlui-textShadow-header-NestedApp)", "textIndent-header-NestedApp": "var(--xmlui-textIndent-header-NestedApp)", "textAlign-header-NestedApp": "var(--xmlui-textAlign-header-NestedApp)", "textAlignLast-header-NestedApp": "var(--xmlui-textAlignLast-header-NestedApp)", "wordBreak-header-NestedApp": "var(--xmlui-wordBreak-header-NestedApp)", "wordWrap-header-NestedApp": "var(--xmlui-wordWrap-header-NestedApp)", "direction-header-NestedApp": "var(--xmlui-direction-header-NestedApp)", "writingMode-header-NestedApp": "var(--xmlui-writingMode-header-NestedApp)", "lineBreak-header-NestedApp": "var(--xmlui-lineBreak-header-NestedApp)", "backgroundColor-frame-NestedApp": "var(--xmlui-backgroundColor-frame-NestedApp)", "gap-frame-NestedApp": "var(--xmlui-gap-frame-NestedApp)", "marginTop-NestedApp": "var(--xmlui-marginTop-NestedApp)", "marginBottom-NestedApp": "var(--xmlui-marginBottom-NestedApp)", "boxShadow-NestedApp": "var(--xmlui-boxShadow-NestedApp)", "backgroundColor-viewControls-NestedApp": "var(--xmlui-backgroundColor-viewControls-NestedApp)", "borderRadius-viewControls-NestedApp": "var(--xmlui-borderRadius-viewControls-NestedApp)", "padding-viewControls-NestedApp": "var(--xmlui-padding-viewControls-NestedApp)", "paddingVertical-viewControls-button-NestedApp": "var(--xmlui-paddingVertical-viewControls-button-NestedApp)", "paddingHorizontal-viewControls-button-NestedApp": "var(--xmlui-paddingHorizontal-viewControls-button-NestedApp)", "borderRadius-NestedApp": "var(--xmlui-borderRadius-NestedApp)", "borderBottom-header-NestedApp": "var(--xmlui-borderBottom-header-NestedApp)", "height-logo-splitView-NestedApp": "var(--xmlui-height-logo-splitView-NestedApp)", "width-logo-splitView-NestedApp": "var(--xmlui-width-logo-splitView-NestedApp)", "width-controls-NestedApp": "var(--xmlui-width-controls-NestedApp)", "padding-button-splitView-NestedApp": "var(--xmlui-padding-button-splitView-NestedApp)", "width-button-splitView-NestedApp": "var(--xmlui-width-button-splitView-NestedApp)", "backgroundColor-code-splitView-NestedApp": "var(--xmlui-backgroundColor-code-splitView-NestedApp)", "backgroundColor-button-splitView-NestedApp--active": "var(--xmlui-backgroundColor-button-splitView-NestedApp--active)", "color-button-splitView-NestedApp": "var(--xmlui-color-button-splitView-NestedApp)", "color-button-splitView-NestedApp--active": "var(--xmlui-color-button-splitView-NestedApp--active)", "borderRadius-button-splitView-NestedApp": "var(--xmlui-borderRadius-button-splitView-NestedApp)", "borderColor-button-splitView-NestedApp": "var(--xmlui-borderColor-button-splitView-NestedApp)"}'`,nestedAppPlaceholder:"_nestedAppPlaceholder_zswba_13",logoWrapper:"_logoWrapper_zswba_20",animatedLogoPath:"_animatedLogoPath_zswba_28",nestedAppRoot:"_nestedAppRoot_zswba_52",shouldAnimate:"_shouldAnimate_zswba_59",initialized:"_initialized_zswba_63",nestedAppContainer:"_nestedAppContainer_zswba_71",contentContainer:"_contentContainer_zswba_111",splitViewMarkdown:"_splitViewMarkdown_zswba_118",hidden:"_hidden_zswba_128",viewControls:"_viewControls_zswba_140",logo:"_logo_zswba_20",splitViewButton:"_splitViewButton_zswba_154",show:"_show_zswba_161",hide:"_hide_zswba_168",header:"_header_zswba_175",headerText:"_headerText_zswba_183",headerButton:"_headerButton_zswba_212",wrapper:"_wrapper_zswba_220"};function $1t(){return C.jsx("div",{className:bn.logoWrapper,children:C.jsxs("svg",{viewBox:"0 0 26 26",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("path",{d:"M9.04674 19.3954C8.2739 19.3954 7.60226 19.2265 7.03199 18.8887C6.47443 18.5384 6.0435 18.0505 5.73938 17.425C5.43526 16.7869 5.2832 16.0362 5.2832 15.173V9.89961C5.2832 9.7745 5.32771 9.66815 5.41637 9.58059C5.50502 9.493 5.61275 9.44922 5.73938 9.44922H7.41222C7.55157 9.44922 7.6593 9.493 7.73524 9.58059C7.8239 9.66815 7.86841 9.7745 7.86841 9.89961V15.0604C7.86841 16.6117 8.55895 17.3874 9.94021 17.3874C10.5991 17.3874 11.1187 17.181 11.4988 16.7681C11.8917 16.3553 12.0881 15.786 12.0881 15.0604V9.89961C12.0881 9.7745 12.1325 9.66815 12.2211 9.58059C12.3098 9.493 12.4175 9.44922 12.5443 9.44922H14.217C14.3436 9.44922 14.4513 9.493 14.54 9.58059C14.6288 9.66815 14.6732 9.7745 14.6732 9.89961V18.7574C14.6732 18.8825 14.6288 18.9888 14.54 19.0764C14.4513 19.164 14.3436 19.2078 14.217 19.2078H12.6773C12.538 19.2078 12.4239 19.164 12.3352 19.0764C12.2591 18.9888 12.2211 18.8825 12.2211 18.7574V17.988C11.879 18.4258 11.4545 18.7699 10.9476 19.0201C10.4407 19.2703 9.80704 19.3954 9.04674 19.3954Z",fill:"#3367CC"}),C.jsx("path",{d:"M17.6397 19.2104C17.5129 19.2104 17.4052 19.1666 17.3165 19.079C17.2279 18.9914 17.1835 18.8851 17.1835 18.76V9.90221C17.1835 9.7771 17.2279 9.67075 17.3165 9.58319C17.4052 9.4956 17.5129 9.45182 17.6397 9.45182H19.2174C19.3567 9.45182 19.4644 9.4956 19.5404 9.58319C19.6292 9.67075 19.6736 9.7771 19.6736 9.90221V18.76C19.6736 18.8851 19.6292 18.9914 19.5404 19.079C19.4644 19.1666 19.3567 19.2104 19.2174 19.2104H17.6397ZM17.5636 7.8379C17.4243 7.8379 17.3102 7.80038 17.2215 7.72531C17.1454 7.63773 17.1074 7.52514 17.1074 7.38751V6.03633C17.1074 5.91122 17.1454 5.80487 17.2215 5.71731C17.3102 5.62972 17.4243 5.58594 17.5636 5.58594H19.2933C19.4327 5.58594 19.5467 5.62972 19.6354 5.71731C19.7242 5.80487 19.7686 5.91122 19.7686 6.03633V7.38751C19.7686 7.52514 19.7242 7.63773 19.6354 7.72531C19.5467 7.80038 19.4327 7.8379 19.2933 7.8379H17.5636Z",fill:"#3367CC"}),C.jsx("path",{className:bn.animatedLogoPath,d:"M23.0215 2.81748H2.53486V23.044H23.0215V2.81748Z",fill:"none",stroke:"#3367CC",strokeWidth:"0.75"})]})})}function D1t({immediate:e,...t}){const[r,n]=m.useState(e||!1);return console.log("Rendering NestedApp with props:",t),m.useEffect(()=>{e||m.startTransition(()=>{n(!0)})},[e]),r?C.jsx(Vce,{...t}):null}function PN(e){const{indexing:t}=W3();return t?null:C.jsx(D1t,{...e})}function Vce({api:e,app:t,components:r=Er,config:n,activeTheme:o,activeTone:i,height:a,style:l,refreshVersion:s,withSplashScreen:u=!1,className:c}){const d=m.useRef(null),f=m.useRef(null),p=m.useRef(null),g=zr(),v=i||(n==null?void 0:n.defaultTone)||(g==null?void 0:g.activeThemeTone),b=Hh(),y=AN(),[w,k]=m.useState(!u),[E,_]=m.useState(!1),S="",O=m.useMemo(()=>{if(!e)return;let L=e;if(typeof e=="string")try{L=JSON.parse(e.replaceAll(`
|
|
480
|
+
`&&a.push(u);const l=L1t(i,a),s=zce(o,n);return{component:null,errors:l,erroneousCompoundComponentName:s}}try{return{component:S1t(o,n,t),errors:[]}}catch(a){const l=zce(o,n),s={message:a.message,col:0,line:0,code:wE.expEq,category:Ice.Error,pos:0,end:0};return{component:null,erroneousCompoundComponentName:l,errors:[s]}}}function R1t(e){function t(){return{type:"VStack",props:{padding:"$padding-normal",gap:0},children:[{type:"H1",props:{value:e,padding:"$padding-normal",backgroundColor:"$color-error",color:"white"}}]}}const r=t();return r.component=t(),r}function TE(e,t,r){function n(){const i=e.sort((l,s)=>l.pos===void 0&&s.pos===void 0?0:l.pos===void 0?1:s.pos===void 0?-1:l.pos-s.pos).map((l,s)=>({type:"VStack",props:{gap:"0px"},children:[{type:"HStack",props:{gap:"0"},children:[{type:"Text",props:{value:`#${s+1}: ${t} (${l.line}:${l.col}): `,color:"$color-info"}},{type:"Text",props:{value:` ${l.message}`,fontWeight:"bold"}}]}]}));return{type:"VStack",props:{padding:"$padding-normal",gap:0},children:[{type:"H1",props:{value:`${i.length} ${i.length>1?"Errors":"Error"} found while processing XMLUI markup`,padding:"$padding-normal",backgroundColor:"$color-error",color:"white"}},{type:"VStack",props:{gap:"$gap-tight",padding:"$padding-normal"},children:i}]}}const o=n();return o.name=r,o.component=n(),o}function P1t(e,t){function r(){return{type:"VStack",props:{padding:"$padding-normal",gap:0},children:[{type:"H1",props:{value:"An error found while processing XMLUI code-behind script",padding:"$padding-normal",backgroundColor:"$color-error",color:"white"}},{type:"VStack",props:{gap:"$gap-tight",padding:"$padding-normal"},children:[{type:"HStack",props:{gap:"0"},children:[{type:"Text",props:{value:`${t} (${e.line}:${e.column}): `,color:"$color-info"}},{type:"Text",props:{value:` ${e.text}`,fontWeight:"bold"}}]}]}]}}const n=r();return n.component=r(),n}function H1t(e,t){function r(){const o=[];let i=1;return Object.keys(e).map(l=>{const s=e[l];for(let u of s)o.push({type:"VStack",props:{gap:"0px"},children:[{type:"HStack",props:{gap:"0"},children:[{type:"Text",props:{value:`#${i++}: ${t} (${u.line}:${u.column}): `,color:"$color-info"}},{type:"Text",props:{value:` ${u.text}`,fontWeight:"bold"}}]}]})}),{type:"VStack",props:{padding:"$padding-normal",gap:0},children:[{type:"H1",props:{value:`${o.length} ${o.length>1?"Errors":"Error"} found while processing XMLUI code-behind script`,padding:"$padding-normal",backgroundColor:"$color-error",color:"white"}},{type:"VStack",props:{gap:"$gap-tight",padding:"$padding-normal"},children:o}]}}const n=r();return n.component=r(),n}function L1t(e,t){if(t.length===0){for(let r of e)r.line=1,r.col=r.pos+1;return e}for(let r of e){let n=0;for(;n<t.length;++n){const i=t[n];if(r.pos<i){r.line=n+1,r.col=r.pos-(t[n-1]??0)+1;break}}const o=t[t.length-1];r.pos>=o&&(r.line=t.length+1,r.col=r.pos-o+0)}return e}function zce(e,t){var s,u,c,d,f,p;const r=(s=e==null?void 0:e.children)==null?void 0:s[0],n=(c=(u=r==null?void 0:r.children)==null?void 0:u.find(g=>g.kind===ve.TagNameNode))==null?void 0:c.children,o=n==null?void 0:n[n.length-1];if(o===void 0||t(o)!=="Component")return;const i=(f=(d=r.children)==null?void 0:d.find(g=>g.kind===ve.AttributeListNode))==null?void 0:f.children,a=(p=i==null?void 0:i.find(g=>g.kind===ve.AttributeNode&&t(g==null?void 0:g.children[0])==="name"))==null?void 0:p.children,l=a==null?void 0:a[a.length-1];if(l!==void 0&&l.kind===ve.StringLiteral){const g=t(l);return g.substring(1,g.length-1)}}const Fce=m.createContext(null);function AN(){return m.useContext(Fce)}var N1t={VITE_MOCK_WORKER_LOCATION:"mockApi.js"};function IN({interceptor:e,children:t,useHashBasedRouting:r,parentInterceptorContext:n=null,waitForApiInterceptor:o=!1}){const i=n!==null,[a,l]=m.useState(!e),[s,u]=m.useState(!1),[c,d]=m.useState(null);m.useEffect(()=>{if(i)e&&(n!=null&&n.interceptorWorker?(async()=>{const{createApiInterceptorWorker:v}=await Promise.resolve().then(()=>c_e);await v(e,n==null?void 0:n.interceptorWorker),setTimeout(()=>{l(!0)},0)})():n==null||n.forceInitialize());else if(e||s){let v;return(async()=>{{const{createApiInterceptorWorker:b}=await Promise.resolve().then(()=>c_e);if(e||s){v=await b(e||{},null);const y=WI(N1t.VITE_MOCK_WORKER_LOCATION);await v.start({onUnhandledRequest:"bypass",quiet:!0,serviceWorker:{url:y}}),d(v)}}l(!0)})(),()=>{n!=null&&n.interceptorWorker||v==null||v.stop(),l(!1)}}else l(!0)},[s,i,e,n==null?void 0:n.forceInitialize,n==null?void 0:n.interceptorWorker]);const f=m.useCallback(v=>e!==void 0&&!0,[e]),p=m.useCallback(()=>{u(!0)},[]),g=m.useMemo(()=>({interceptorWorker:c,initialized:a,forceInitialize:p,isMocked:f}),[c,a,p,f]);return C.jsx(Fce.Provider,{value:g,children:o&&!a?null:t})}const RN={errorOverlay:"_errorOverlay_1t96q_13",title:"_title_1t96q_21",errorItem:"_errorItem_1t96q_28"};class t0 extends ee.Component{constructor(){super(...arguments),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,r){console.error("Uncaught error:",t,r,this.props.location)}componentDidUpdate(t,r,n){t.node!==this.props.node&&this.setState({hasError:!1})}render(){var t;return this.state.hasError?C.jsxs("div",{className:RN.errorOverlay,children:[C.jsx("div",{className:RN.title,children:"There was an error!"}),C.jsx("div",{className:RN.errorItem,children:(t=this.state.error)==null?void 0:t.message})]}):this.props.children}}const Wce=ee.createContext(null);function Hh(){return m.useContext(Wce)}const bn={themeVars:`'{"padding-NestedApp": "var(--xmlui-padding-NestedApp)", "paddingHorizontal-NestedApp": "var(--xmlui-paddingHorizontal-NestedApp, var(--xmlui-padding-NestedApp))", "paddingVertical-NestedApp": "var(--xmlui-paddingVertical-NestedApp, var(--xmlui-padding-NestedApp))", "paddingLeft-NestedApp": "var(--xmlui-paddingLeft-NestedApp, var(--xmlui-paddingHorizontal-NestedApp, var(--xmlui-padding-NestedApp)))", "paddingRight-NestedApp": "var(--xmlui-paddingRight-NestedApp, var(--xmlui-paddingHorizontal-NestedApp, var(--xmlui-padding-NestedApp)))", "paddingTop-NestedApp": "var(--xmlui-paddingTop-NestedApp, var(--xmlui-paddingVertical-NestedApp, var(--xmlui-padding-NestedApp)))", "paddingBottom-NestedApp": "var(--xmlui-paddingBottom-NestedApp, var(--xmlui-paddingVertical-NestedApp, var(--xmlui-padding-NestedApp)))", "border-NestedApp": "var(--xmlui-border-NestedApp)", "borderHorizontal-NestedApp": "var(--xmlui-borderHorizontal-NestedApp, var(--xmlui-border-NestedApp))", "borderVertical-NestedApp": "var(--xmlui-borderVertical-NestedApp, var(--xmlui-border-NestedApp))", "borderLeft-NestedApp": "var(--xmlui-borderLeft-NestedApp, var(--xmlui-borderHorizontal-NestedApp, var(--xmlui-border-NestedApp)))", "borderRight-NestedApp": "var(--xmlui-borderRight-NestedApp, var(--xmlui-borderHorizontal-NestedApp, var(--xmlui-border-NestedApp)))", "borderTop-NestedApp": "var(--xmlui-borderTop-NestedApp, var(--xmlui-borderVertical-NestedApp, var(--xmlui-border-NestedApp)))", "borderBottom-NestedApp": "var(--xmlui-borderBottom-NestedApp, var(--xmlui-borderVertical-NestedApp, var(--xmlui-border-NestedApp)))", "borderWidth-NestedApp": "var(--xmlui-borderWidth-NestedApp)", "borderHorizontalWidth-NestedApp": "var(--xmlui-borderHorizontalWidth-NestedApp, var(--xmlui-borderWidth-NestedApp))", "borderLeftWidth-NestedApp": "var(--xmlui-borderLeftWidth-NestedApp, var(--xmlui-borderHorizontalWidth-NestedApp, var(--xmlui-borderWidth-NestedApp)))", "borderRightWidth-NestedApp": "var(--xmlui-borderRightWidth-NestedApp, var(--xmlui-borderHorizontalWidth-NestedApp, var(--xmlui-borderWidth-NestedApp)))", "borderVerticalWidth-NestedApp": "var(--xmlui-borderVerticalWidth-NestedApp, var(--xmlui-borderWidth-NestedApp))", "borderTopWidth-NestedApp": "var(--xmlui-borderTopWidth-NestedApp, var(--xmlui-borderVerticalWidth-NestedApp, var(--xmlui-borderWidth-NestedApp)))", "borderBottomWidth-NestedApp": "var(--xmlui-borderBottomWidth-NestedApp, var(--xmlui-borderVerticalWidth-NestedApp, var(--xmlui-borderWidth-NestedApp)))", "borderStyle-NestedApp": "var(--xmlui-borderStyle-NestedApp)", "borderHorizontalStyle-NestedApp": "var(--xmlui-borderHorizontalStyle-NestedApp, var(--xmlui-borderStyle-NestedApp))", "borderLeftStyle-NestedApp": "var(--xmlui-borderLeftStyle-NestedApp, var(--xmlui-borderHorizontalStyle-NestedApp, var(--xmlui-borderStyle-NestedApp)))", "borderRightStyle-NestedApp": "var(--xmlui-borderRightStyle-NestedApp, var(--xmlui-borderHorizontalStyle-NestedApp, var(--xmlui-borderStyle-NestedApp)))", "borderVerticalStyle-NestedApp": "var(--xmlui-borderVerticalStyle-NestedApp, var(--xmlui-borderStyle-NestedApp))", "borderTopStyle-NestedApp": "var(--xmlui-borderTopStyle-NestedApp, var(--xmlui-borderVerticalStyle-NestedApp, var(--xmlui-borderStyle-NestedApp)))", "borderBottomStyle-NestedApp": "var(--xmlui-borderBottomStyle-NestedApp, var(--xmlui-borderVerticalStyle-NestedApp, var(--xmlui-borderStyle-NestedApp)))", "borderColor-NestedApp": "var(--xmlui-borderColor-NestedApp)", "borderHorizontalColor-NestedApp": "var(--xmlui-borderHorizontalColor-NestedApp, var(--xmlui-borderColor-NestedApp))", "borderLeftColor-NestedApp": "var(--xmlui-borderLeftColor-NestedApp, var(--xmlui-borderHorizontalColor-NestedApp, var(--xmlui-borderColor-NestedApp)))", "borderRightColor-NestedApp": "var(--xmlui-borderRightColor-NestedApp, var(--xmlui-borderHorizontalColor-NestedApp, var(--xmlui-borderColor-NestedApp)))", "borderVerticalColor-NestedApp": "var(--xmlui-borderVerticalColor-NestedApp, var(--xmlui-borderColor-NestedApp))", "borderTopColor-NestedApp": "var(--xmlui-borderTopColor-NestedApp, var(--xmlui-borderVerticalColor-NestedApp, var(--xmlui-borderColor-NestedApp)))", "borderBottomColor-NestedApp": "var(--xmlui-borderBottomColor-NestedApp, var(--xmlui-borderVerticalColor-NestedApp, var(--xmlui-borderColor-NestedApp)))", "borderStartStartRadius-NestedApp": "var(--xmlui-borderStartStartRadius-NestedApp, var(--xmlui-borderRadius-NestedApp))", "borderStartEndRadius-NestedApp": "var(--xmlui-borderStartEndRadius-NestedApp, var(--xmlui-borderRadius-NestedApp))", "borderEndStartRadius-NestedApp": "var(--xmlui-borderEndStartRadius-NestedApp, var(--xmlui-borderRadius-NestedApp))", "borderEndEndRadius-NestedApp": "var(--xmlui-borderEndEndRadius-NestedApp, var(--xmlui-borderRadius-NestedApp))", "textColor-header-NestedApp": "var(--xmlui-textColor-header-NestedApp)", "fontFamily-header-NestedApp": "var(--xmlui-fontFamily-header-NestedApp)", "fontSize-header-NestedApp": "var(--xmlui-fontSize-header-NestedApp)", "fontStyle-header-NestedApp": "var(--xmlui-fontStyle-header-NestedApp)", "fontVariant-header-NestedApp": "var(--xmlui-fontVariant-header-NestedApp)", "fontWeight-header-NestedApp": "var(--xmlui-fontWeight-header-NestedApp)", "fontStretch-header-NestedApp": "var(--xmlui-fontStretch-header-NestedApp)", "textDecorationLine-header-NestedApp": "var(--xmlui-textDecorationLine-header-NestedApp)", "textDecorationColor-header-NestedApp": "var(--xmlui-textDecorationColor-header-NestedApp)", "textDecorationStyle-header-NestedApp": "var(--xmlui-textDecorationStyle-header-NestedApp)", "textDecorationThickness-header-NestedApp": "var(--xmlui-textDecorationThickness-header-NestedApp)", "textUnderlineOffset-header-NestedApp": "var(--xmlui-textUnderlineOffset-header-NestedApp)", "lineHeight-header-NestedApp": "var(--xmlui-lineHeight-header-NestedApp)", "backgroundColor-header-NestedApp": "var(--xmlui-backgroundColor-header-NestedApp)", "textTransform-header-NestedApp": "var(--xmlui-textTransform-header-NestedApp)", "letterSpacing-header-NestedApp": "var(--xmlui-letterSpacing-header-NestedApp)", "wordSpacing-header-NestedApp": "var(--xmlui-wordSpacing-header-NestedApp)", "textShadow-header-NestedApp": "var(--xmlui-textShadow-header-NestedApp)", "textIndent-header-NestedApp": "var(--xmlui-textIndent-header-NestedApp)", "textAlign-header-NestedApp": "var(--xmlui-textAlign-header-NestedApp)", "textAlignLast-header-NestedApp": "var(--xmlui-textAlignLast-header-NestedApp)", "wordBreak-header-NestedApp": "var(--xmlui-wordBreak-header-NestedApp)", "wordWrap-header-NestedApp": "var(--xmlui-wordWrap-header-NestedApp)", "direction-header-NestedApp": "var(--xmlui-direction-header-NestedApp)", "writingMode-header-NestedApp": "var(--xmlui-writingMode-header-NestedApp)", "lineBreak-header-NestedApp": "var(--xmlui-lineBreak-header-NestedApp)", "backgroundColor-frame-NestedApp": "var(--xmlui-backgroundColor-frame-NestedApp)", "gap-frame-NestedApp": "var(--xmlui-gap-frame-NestedApp)", "marginTop-NestedApp": "var(--xmlui-marginTop-NestedApp)", "marginBottom-NestedApp": "var(--xmlui-marginBottom-NestedApp)", "boxShadow-NestedApp": "var(--xmlui-boxShadow-NestedApp)", "backgroundColor-viewControls-NestedApp": "var(--xmlui-backgroundColor-viewControls-NestedApp)", "borderRadius-viewControls-NestedApp": "var(--xmlui-borderRadius-viewControls-NestedApp)", "padding-viewControls-NestedApp": "var(--xmlui-padding-viewControls-NestedApp)", "paddingVertical-viewControls-button-NestedApp": "var(--xmlui-paddingVertical-viewControls-button-NestedApp)", "paddingHorizontal-viewControls-button-NestedApp": "var(--xmlui-paddingHorizontal-viewControls-button-NestedApp)", "borderRadius-NestedApp": "var(--xmlui-borderRadius-NestedApp)", "borderBottom-header-NestedApp": "var(--xmlui-borderBottom-header-NestedApp)", "height-logo-splitView-NestedApp": "var(--xmlui-height-logo-splitView-NestedApp)", "width-logo-splitView-NestedApp": "var(--xmlui-width-logo-splitView-NestedApp)", "width-controls-NestedApp": "var(--xmlui-width-controls-NestedApp)", "padding-button-splitView-NestedApp": "var(--xmlui-padding-button-splitView-NestedApp)", "width-button-splitView-NestedApp": "var(--xmlui-width-button-splitView-NestedApp)", "backgroundColor-code-splitView-NestedApp": "var(--xmlui-backgroundColor-code-splitView-NestedApp)", "backgroundColor-button-splitView-NestedApp--active": "var(--xmlui-backgroundColor-button-splitView-NestedApp--active)", "color-button-splitView-NestedApp": "var(--xmlui-color-button-splitView-NestedApp)", "color-button-splitView-NestedApp--active": "var(--xmlui-color-button-splitView-NestedApp--active)", "borderRadius-button-splitView-NestedApp": "var(--xmlui-borderRadius-button-splitView-NestedApp)", "borderColor-button-splitView-NestedApp": "var(--xmlui-borderColor-button-splitView-NestedApp)"}'`,nestedAppPlaceholder:"_nestedAppPlaceholder_zswba_13",logoWrapper:"_logoWrapper_zswba_20",animatedLogoPath:"_animatedLogoPath_zswba_28",nestedAppRoot:"_nestedAppRoot_zswba_52",shouldAnimate:"_shouldAnimate_zswba_59",initialized:"_initialized_zswba_63",nestedAppContainer:"_nestedAppContainer_zswba_71",contentContainer:"_contentContainer_zswba_111",splitViewMarkdown:"_splitViewMarkdown_zswba_118",hidden:"_hidden_zswba_128",viewControls:"_viewControls_zswba_140",logo:"_logo_zswba_20",splitViewButton:"_splitViewButton_zswba_154",show:"_show_zswba_161",hide:"_hide_zswba_168",header:"_header_zswba_175",headerText:"_headerText_zswba_183",headerButton:"_headerButton_zswba_212",wrapper:"_wrapper_zswba_220"};function $1t(){return C.jsx("div",{className:bn.logoWrapper,children:C.jsxs("svg",{viewBox:"0 0 26 26",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("path",{d:"M9.04674 19.3954C8.2739 19.3954 7.60226 19.2265 7.03199 18.8887C6.47443 18.5384 6.0435 18.0505 5.73938 17.425C5.43526 16.7869 5.2832 16.0362 5.2832 15.173V9.89961C5.2832 9.7745 5.32771 9.66815 5.41637 9.58059C5.50502 9.493 5.61275 9.44922 5.73938 9.44922H7.41222C7.55157 9.44922 7.6593 9.493 7.73524 9.58059C7.8239 9.66815 7.86841 9.7745 7.86841 9.89961V15.0604C7.86841 16.6117 8.55895 17.3874 9.94021 17.3874C10.5991 17.3874 11.1187 17.181 11.4988 16.7681C11.8917 16.3553 12.0881 15.786 12.0881 15.0604V9.89961C12.0881 9.7745 12.1325 9.66815 12.2211 9.58059C12.3098 9.493 12.4175 9.44922 12.5443 9.44922H14.217C14.3436 9.44922 14.4513 9.493 14.54 9.58059C14.6288 9.66815 14.6732 9.7745 14.6732 9.89961V18.7574C14.6732 18.8825 14.6288 18.9888 14.54 19.0764C14.4513 19.164 14.3436 19.2078 14.217 19.2078H12.6773C12.538 19.2078 12.4239 19.164 12.3352 19.0764C12.2591 18.9888 12.2211 18.8825 12.2211 18.7574V17.988C11.879 18.4258 11.4545 18.7699 10.9476 19.0201C10.4407 19.2703 9.80704 19.3954 9.04674 19.3954Z",fill:"#3367CC"}),C.jsx("path",{d:"M17.6397 19.2104C17.5129 19.2104 17.4052 19.1666 17.3165 19.079C17.2279 18.9914 17.1835 18.8851 17.1835 18.76V9.90221C17.1835 9.7771 17.2279 9.67075 17.3165 9.58319C17.4052 9.4956 17.5129 9.45182 17.6397 9.45182H19.2174C19.3567 9.45182 19.4644 9.4956 19.5404 9.58319C19.6292 9.67075 19.6736 9.7771 19.6736 9.90221V18.76C19.6736 18.8851 19.6292 18.9914 19.5404 19.079C19.4644 19.1666 19.3567 19.2104 19.2174 19.2104H17.6397ZM17.5636 7.8379C17.4243 7.8379 17.3102 7.80038 17.2215 7.72531C17.1454 7.63773 17.1074 7.52514 17.1074 7.38751V6.03633C17.1074 5.91122 17.1454 5.80487 17.2215 5.71731C17.3102 5.62972 17.4243 5.58594 17.5636 5.58594H19.2933C19.4327 5.58594 19.5467 5.62972 19.6354 5.71731C19.7242 5.80487 19.7686 5.91122 19.7686 6.03633V7.38751C19.7686 7.52514 19.7242 7.63773 19.6354 7.72531C19.5467 7.80038 19.4327 7.8379 19.2933 7.8379H17.5636Z",fill:"#3367CC"}),C.jsx("path",{className:bn.animatedLogoPath,d:"M23.0215 2.81748H2.53486V23.044H23.0215V2.81748Z",fill:"none",stroke:"#3367CC",strokeWidth:"0.75"})]})})}function D1t({immediate:e,...t}){const[r,n]=m.useState(e||!1);return m.useEffect(()=>{e||m.startTransition(()=>{n(!0)})},[e]),r?C.jsx(Vce,{...t}):null}function PN(e){const{indexing:t}=W3();return t?null:C.jsx(D1t,{...e})}function Vce({api:e,app:t,components:r=Er,config:n,activeTheme:o,activeTone:i,height:a,style:l,refreshVersion:s,withSplashScreen:u=!1,className:c}){const d=m.useRef(null),f=m.useRef(null),p=m.useRef(null),g=zr(),v=i||(n==null?void 0:n.defaultTone)||(g==null?void 0:g.activeThemeTone),b=Hh(),y=AN(),[w,k]=m.useState(!u),[E,_]=m.useState(!1),S="",O=m.useMemo(()=>{if(!e)return;let L=e;if(typeof e=="string")try{L=JSON.parse(e.replaceAll(`
|
|
481
481
|
`," "))}catch(B){console.error("Failed to parse API definition",B);return}return{...L,type:"in-memory"}},[e]);_n(()=>{if(!f.current&&d.current){f.current=d.current.attachShadow({mode:"open"});const L=Array.from(document.styleSheets).map(async B=>{if(B.ownerNode&&B.ownerNode instanceof Element&&B.ownerNode.hasAttribute("data-theme-root"))return null;if(!B.href||B.href.startsWith(window.location.origin))try{const z=new CSSStyleSheet,j=Array.from(B.cssRules).map(q=>q.cssText).join(" ");return await z.replace(j),z}catch{return null}return null});Promise.all(L).then(B=>{const z=B.filter(Boolean);f.current.adoptedStyleSheets=z})}!p.current&&f.current&&(p.current=Ok.createRoot(f.current))},[]);const A=m.useCallback(()=>{k(!0)},[]);m.useEffect(()=>{var M;let{errors:L,component:B,erroneousCompoundComponentName:z}=Mw(t);L.length>0&&(B=TE(L,"Main.xmlui",z));const j=(r??[]).map(V=>{if(typeof V!="string")return V;let{errors:Y,component:G,erroneousCompoundComponentName:F}=Mw(V);return Y.length>0?TE(Y,"nested xmlui",F):G});let q={name:n==null?void 0:n.name,...(n==null?void 0:n.appGlobals)||{},apiUrl:S};const W={};Object.keys(g.themeStyles).forEach(V=>{W[V]="initial"}),(M=p.current)==null||M.render(C.jsx(t0,{node:B,children:C.jsx(IN,{parentInterceptorContext:y,interceptor:O,waitForApiInterceptor:!0,children:C.jsx("div",{style:{height:a,...l,...W},children:C.jsx(vB,{onInit:A,isNested:!0,previewMode:!0,standalone:!0,trackContainerHeight:a?"fixed":"auto",node:B,globalProps:q,defaultTheme:o||(n==null?void 0:n.defaultTheme),defaultTone:v,contributes:{compoundComponents:j,themes:n==null?void 0:n.themes},resources:n==null?void 0:n.resources,extensionManager:b.getExtensionManager()})})},`app-${s}`)}))},[A,o,t,b,r,n==null?void 0:n.appGlobals,n==null?void 0:n.defaultTheme,n==null?void 0:n.name,n==null?void 0:n.resources,n==null?void 0:n.themes,a,O,y,l,g.themeStyles,v,s]);const I=m.useRef(!1);m.useEffect(()=>(I.current=!0,()=>{I.current=!1,setTimeout(()=>{var L;I.current||((L=p.current)==null||L.unmount(),p.current=null)},0)}),[]);const H=m.useCallback(()=>{_(!0)},[]),P=u&&!E;return C.jsxs("div",{className:ze(bn.nestedAppPlaceholder,c),children:[P&&C.jsx($1t,{}),C.jsx("div",{ref:d,onTransitionEnd:H,className:ze(bn.nestedAppRoot,{[bn.shouldAnimate]:P,[bn.initialized]:w})})]})}function _d(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function B1t(e){const t=j1t(e),r=m.forwardRef((n,o)=>{const{children:i,...a}=n,l=m.Children.toArray(i),s=l.find(z1t);if(s){const u=s.props.children,c=l.map(d=>d===s?m.Children.count(u)>1?m.Children.only(null):m.isValidElement(u)?u.props.children:null:d);return C.jsx(t,{...a,ref:o,children:m.isValidElement(u)?m.cloneElement(u,void 0,c):null})}return C.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function j1t(e){const t=m.forwardRef((r,n)=>{const{children:o,...i}=r;if(m.isValidElement(o)){const a=W1t(o),l=F1t(i,o.props);return o.type!==m.Fragment&&(l.ref=n?no(n,a):a),m.cloneElement(o,l)}return m.Children.count(o)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Uce=Symbol("radix.slottable");function M1t(e){const t=({children:r})=>C.jsx(C.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Uce,t}function z1t(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Uce}function F1t(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{const s=i(...l);return o(...l),s}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function W1t(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var V1t=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ym=V1t.reduce((e,t)=>{const r=B1t(`Primitive.${t}`),n=m.forwardRef((o,i)=>{const{asChild:a,...l}=o,s=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),C.jsx(s,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function U1t(e,t){e&&Hn.flushSync(()=>e.dispatchEvent(t))}function SE(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function q1t(e,t=globalThis==null?void 0:globalThis.document){const r=SE(e);m.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var G1t="DismissableLayer",HN="dismissableLayer.update",Y1t="dismissableLayer.pointerDownOutside",K1t="dismissableLayer.focusOutside",qce,Gce=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yce=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:l,...s}=e,u=m.useContext(Gce),[c,d]=m.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=m.useState({}),g=Kt(t,O=>d(O)),v=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(b),w=c?v.indexOf(c):-1,k=u.layersWithOutsidePointerEventsDisabled.size>0,E=w>=y,_=Z1t(O=>{const A=O.target,I=[...u.branches].some(H=>H.contains(A));!E||I||(o==null||o(O),a==null||a(O),O.defaultPrevented||l==null||l())},f),S=J1t(O=>{const A=O.target;[...u.branches].some(H=>H.contains(A))||(i==null||i(O),a==null||a(O),O.defaultPrevented||l==null||l())},f);return q1t(O=>{w===u.layers.size-1&&(n==null||n(O),!O.defaultPrevented&&l&&(O.preventDefault(),l()))},f),m.useEffect(()=>{if(c)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(qce=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Kce(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=qce)}},[c,f,r,u]),m.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Kce())},[c,u]),m.useEffect(()=>{const O=()=>p({});return document.addEventListener(HN,O),()=>document.removeEventListener(HN,O)},[]),C.jsx(ym.div,{...s,ref:g,style:{pointerEvents:k?E?"auto":"none":void 0,...e.style},onFocusCapture:_d(e.onFocusCapture,S.onFocusCapture),onBlurCapture:_d(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:_d(e.onPointerDownCapture,_.onPointerDownCapture)})});Yce.displayName=G1t;var X1t="DismissableLayerBranch",Q1t=m.forwardRef((e,t)=>{const r=m.useContext(Gce),n=m.useRef(null),o=Kt(t,n);return m.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),C.jsx(ym.div,{...e,ref:o})});Q1t.displayName=X1t;function Z1t(e,t=globalThis==null?void 0:globalThis.document){const r=SE(e),n=m.useRef(!1),o=m.useRef(()=>{});return m.useEffect(()=>{const i=l=>{if(l.target&&!n.current){let s=function(){Xce(Y1t,r,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=s,t.addEventListener("click",o.current,{once:!0})):s()}else t.removeEventListener("click",o.current);n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function J1t(e,t=globalThis==null?void 0:globalThis.document){const r=SE(e),n=m.useRef(!1);return m.useEffect(()=>{const o=i=>{i.target&&!n.current&&Xce(K1t,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Kce(){const e=new CustomEvent(HN);document.dispatchEvent(e)}function Xce(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?U1t(o,i):o.dispatchEvent(i)}var ext="Arrow",Qce=m.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return C.jsx(ym.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:C.jsx("polygon",{points:"0,0 30,0 15,10"})})});Qce.displayName=ext;var txt=Qce;function rxt(e){const[t,r]=m.useState(void 0);return Xr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,l;if("borderBoxSize"in i){const s=i.borderBoxSize,u=Array.isArray(s)?s[0]:s;a=u.inlineSize,l=u.blockSize}else a=e.offsetWidth,l=e.offsetHeight;r({width:a,height:l})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var LN="Popper",[Zce,Jce]=su(LN),[nxt,ede]=Zce(LN),tde=e=>{const{__scopePopper:t,children:r}=e,[n,o]=m.useState(null);return C.jsx(nxt,{scope:t,anchor:n,onAnchorChange:o,children:r})};tde.displayName=LN;var rde="PopperAnchor",nde=m.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,i=ede(rde,r),a=m.useRef(null),l=Kt(t,a);return m.useEffect(()=>{i.onAnchorChange((n==null?void 0:n.current)||a.current)}),n?null:C.jsx(ym.div,{...o,ref:l})});nde.displayName=rde;var NN="PopperContent",[oxt,ixt]=Zce(NN),ode=m.forwardRef((e,t)=>{var oe,le,ce,pe,me,X;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,arrowPadding:l=0,avoidCollisions:s=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:g,...v}=e,b=ede(NN,r),[y,w]=m.useState(null),k=Kt(t,Z=>w(Z)),[E,_]=m.useState(null),S=rxt(E),O=(S==null?void 0:S.width)??0,A=(S==null?void 0:S.height)??0,I=n+(i!=="center"?"-"+i:""),H=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},P=Array.isArray(u)?u:[u],L=P.length>0,B={padding:H,boundary:P.filter(lxt),altBoundary:L},{refs:z,floatingStyles:j,placement:q,isPositioned:W,middlewareData:M}=AT({strategy:"fixed",placement:I,whileElementsMounted:(...Z)=>ST(...Z,{animationFrame:p==="always"}),elements:{reference:b.anchor},middleware:[IT({mainAxis:o+A,alignmentAxis:a}),s&&RT({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?PT():void 0,...B}),s&&HT({...B}),LT({...B,apply:({elements:Z,rects:te,availableWidth:se,availableHeight:de})=>{const{width:ke,height:we}=te.reference,Ae=Z.floating.style;Ae.setProperty("--radix-popper-available-width",`${se}px`),Ae.setProperty("--radix-popper-available-height",`${de}px`),Ae.setProperty("--radix-popper-anchor-width",`${ke}px`),Ae.setProperty("--radix-popper-anchor-height",`${we}px`)}}),E&&$T({element:E,padding:l}),sxt({arrowWidth:O,arrowHeight:A}),f&&NT({strategy:"referenceHidden",...B})]}),[V,N]=lde(q),Y=SE(g);Xr(()=>{W&&(Y==null||Y())},[W,Y]);const G=(oe=M.arrow)==null?void 0:oe.x,F=(le=M.arrow)==null?void 0:le.y,K=((ce=M.arrow)==null?void 0:ce.centerOffset)!==0,[J,ie]=m.useState();return Xr(()=>{y&&ie(window.getComputedStyle(y).zIndex)},[y]),C.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:W?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[(pe=M.transformOrigin)==null?void 0:pe.x,(me=M.transformOrigin)==null?void 0:me.y].join(" "),...((X=M.hide)==null?void 0:X.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:C.jsx(oxt,{scope:r,placedSide:V,onArrowChange:_,arrowX:G,arrowY:F,shouldHideArrow:K,children:C.jsx(ym.div,{"data-side":V,"data-align":N,...v,ref:k,style:{...v.style,animation:W?void 0:"none"}})})})});ode.displayName=NN;var ide="PopperArrow",axt={top:"bottom",right:"left",bottom:"top",left:"right"},ade=m.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,i=ixt(ide,n),a=axt[i.placedSide];return C.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:C.jsx(txt,{...o,ref:r,style:{...o.style,display:"block"}})})});ade.displayName=ide;function lxt(e){return e!==null}var sxt=e=>({name:"transformOrigin",options:e,fn(t){var b,y,w;const{placement:r,rects:n,middlewareData:o}=t,a=((b=o.arrow)==null?void 0:b.centerOffset)!==0,l=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[u,c]=lde(r),d={start:"0%",center:"50%",end:"100%"}[c],f=(((y=o.arrow)==null?void 0:y.x)??0)+l/2,p=(((w=o.arrow)==null?void 0:w.y)??0)+s/2;let g="",v="";return u==="bottom"?(g=a?d:`${f}px`,v=`${-s}px`):u==="top"?(g=a?d:`${f}px`,v=`${n.floating.height+s}px`):u==="right"?(g=`${-s}px`,v=a?d:`${p}px`):u==="left"&&(g=`${n.floating.width+s}px`,v=a?d:`${p}px`),{data:{x:g,y:v}}}});function lde(e){const[t,r="center"]=e.split("-");return[t,r]}var uxt=tde,cxt=nde,dxt=ode,fxt=ade,mxt="Portal",sde=m.forwardRef((e,t)=>{var l;const{container:r,...n}=e,[o,i]=m.useState(!1);Xr(()=>i(!0),[]);const a=r||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?Bg.createPortal(C.jsx(ym.div,{...n,ref:t}),a):null});sde.displayName=mxt;function pxt(e,t){return m.useReducer((r,n)=>t[r][n]??r,e)}var $N=e=>{const{present:t,children:r}=e,n=hxt(t),o=typeof r=="function"?r({present:n.isPresent}):m.Children.only(r),i=Kt(n.ref,gxt(o));return typeof r=="function"||n.isPresent?m.cloneElement(o,{ref:i}):null};$N.displayName="Presence";function hxt(e){const[t,r]=m.useState(),n=m.useRef(null),o=m.useRef(e),i=m.useRef("none"),a=e?"mounted":"unmounted",[l,s]=pxt(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const u=EE(n.current);i.current=l==="mounted"?u:"none"},[l]),Xr(()=>{const u=n.current,c=o.current;if(c!==e){const f=i.current,p=EE(u);e?s("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(c&&f!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),Xr(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=p=>{const v=EE(n.current).includes(p.animationName);if(p.target===t&&v&&(s("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=p=>{p.target===t&&(i.current=EE(n.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:m.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function EE(e){return(e==null?void 0:e.animationName)||"none"}function gxt(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var vxt=Fc[" useInsertionEffect ".trim().toString()]||Xr;function bxt({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,i,a]=xxt({defaultProp:t,onChange:r}),l=e!==void 0,s=l?e:o;{const c=m.useRef(e!==void 0);m.useEffect(()=>{const d=c.current;d!==l&&console.warn(`${n} is changing from ${d?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=l},[l,n])}const u=m.useCallback(c=>{var d;if(l){const f=yxt(c)?c(e):c;f!==e&&((d=a.current)==null||d.call(a,f))}else i(c)},[l,e,i,a]);return[s,u]}function xxt({defaultProp:e,onChange:t}){const[r,n]=m.useState(e),o=m.useRef(r),i=m.useRef(t);return vxt(()=>{i.current=t},[t]),m.useEffect(()=>{var a;o.current!==r&&((a=i.current)==null||a.call(i,r),o.current=r)},[r,o]),[r,n,i]}function yxt(e){return typeof e=="function"}var wxt=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Cxt="VisuallyHidden",ude=m.forwardRef((e,t)=>C.jsx(ym.span,{...e,ref:t,style:{...wxt,...e.style}}));ude.displayName=Cxt;var kxt=ude,[OE,lor]=su("Tooltip",[Jce]),AE=Jce(),cde="TooltipProvider",_xt=700,DN="tooltip.open",[Txt,BN]=OE(cde),dde=e=>{const{__scopeTooltip:t,delayDuration:r=_xt,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:i}=e,a=m.useRef(!0),l=m.useRef(!1),s=m.useRef(0);return m.useEffect(()=>{const u=s.current;return()=>window.clearTimeout(u)},[]),C.jsx(Txt,{scope:t,isOpenDelayedRef:a,delayDuration:r,onOpen:m.useCallback(()=>{window.clearTimeout(s.current),a.current=!1},[]),onClose:m.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.current=!0,n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:m.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:i})};dde.displayName=cde;var zw="Tooltip",[Sxt,Fw]=OE(zw),fde=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:i,disableHoverableContent:a,delayDuration:l}=e,s=BN(zw,e.__scopeTooltip),u=AE(t),[c,d]=m.useState(null),f=Li(),p=m.useRef(0),g=a??s.disableHoverableContent,v=l??s.delayDuration,b=m.useRef(!1),[y,w]=bxt({prop:n,defaultProp:o??!1,onChange:O=>{O?(s.onOpen(),document.dispatchEvent(new CustomEvent(DN))):s.onClose(),i==null||i(O)},caller:zw}),k=m.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),E=m.useCallback(()=>{window.clearTimeout(p.current),p.current=0,b.current=!1,w(!0)},[w]),_=m.useCallback(()=>{window.clearTimeout(p.current),p.current=0,w(!1)},[w]),S=m.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{b.current=!0,w(!0),p.current=0},v)},[v,w]);return m.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),C.jsx(uxt,{...u,children:C.jsx(Sxt,{scope:t,contentId:f,open:y,stateAttribute:k,trigger:c,onTriggerChange:d,onTriggerEnter:m.useCallback(()=>{s.isOpenDelayedRef.current?S():E()},[s.isOpenDelayedRef,S,E]),onTriggerLeave:m.useCallback(()=>{g?_():(window.clearTimeout(p.current),p.current=0)},[_,g]),onOpen:E,onClose:_,disableHoverableContent:g,children:r})})};fde.displayName=zw;var jN="TooltipTrigger",mde=m.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Fw(jN,r),i=BN(jN,r),a=AE(r),l=m.useRef(null),s=Kt(t,l,o.onTriggerChange),u=m.useRef(!1),c=m.useRef(!1),d=m.useCallback(()=>u.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),C.jsx(cxt,{asChild:!0,...a,children:C.jsx(ym.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:s,onPointerMove:_d(e.onPointerMove,f=>{f.pointerType!=="touch"&&!c.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:_d(e.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:_d(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:_d(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:_d(e.onBlur,o.onClose),onClick:_d(e.onClick,o.onClose)})})});mde.displayName=jN;var MN="TooltipPortal",[Ext,Oxt]=OE(MN,{forceMount:void 0}),pde=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,i=Fw(MN,t);return C.jsx(Ext,{scope:t,forceMount:r,children:C.jsx($N,{present:r||i.open,children:C.jsx(sde,{asChild:!0,container:o,children:n})})})};pde.displayName=MN;var r0="TooltipContent",hde=m.forwardRef((e,t)=>{const r=Oxt(r0,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...i}=e,a=Fw(r0,e.__scopeTooltip);return C.jsx($N,{present:n||a.open,children:a.disableHoverableContent?C.jsx(gde,{side:o,...i,ref:t}):C.jsx(Axt,{side:o,...i,ref:t})})}),Axt=m.forwardRef((e,t)=>{const r=Fw(r0,e.__scopeTooltip),n=BN(r0,e.__scopeTooltip),o=m.useRef(null),i=Kt(t,o),[a,l]=m.useState(null),{trigger:s,onClose:u}=r,c=o.current,{onPointerInTransitChange:d}=n,f=m.useCallback(()=>{l(null),d(!1)},[d]),p=m.useCallback((g,v)=>{const b=g.currentTarget,y={x:g.clientX,y:g.clientY},w=Lxt(y,b.getBoundingClientRect()),k=Nxt(y,w),E=$xt(v.getBoundingClientRect()),_=Bxt([...k,...E]);l(_),d(!0)},[d]);return m.useEffect(()=>()=>f(),[f]),m.useEffect(()=>{if(s&&c){const g=b=>p(b,c),v=b=>p(b,s);return s.addEventListener("pointerleave",g),c.addEventListener("pointerleave",v),()=>{s.removeEventListener("pointerleave",g),c.removeEventListener("pointerleave",v)}}},[s,c,p,f]),m.useEffect(()=>{if(a){const g=v=>{const b=v.target,y={x:v.clientX,y:v.clientY},w=(s==null?void 0:s.contains(b))||(c==null?void 0:c.contains(b)),k=!Dxt(y,a);w?f():k&&(f(),u())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[s,c,a,u,f]),C.jsx(gde,{...e,ref:i})}),[Ixt,Rxt]=OE(zw,{isInside:!1}),Pxt=M1t("TooltipContent"),gde=m.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...l}=e,s=Fw(r0,r),u=AE(r),{onClose:c}=s;return m.useEffect(()=>(document.addEventListener(DN,c),()=>document.removeEventListener(DN,c)),[c]),m.useEffect(()=>{if(s.trigger){const d=f=>{const p=f.target;p!=null&&p.contains(s.trigger)&&c()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[s.trigger,c]),C.jsx(Yce,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:d=>d.preventDefault(),onDismiss:c,children:C.jsxs(dxt,{"data-state":s.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[C.jsx(Pxt,{children:n}),C.jsx(Ixt,{scope:r,isInside:!0,children:C.jsx(kxt,{id:s.contentId,role:"tooltip",children:o||n})})]})})});hde.displayName=r0;var vde="TooltipArrow",Hxt=m.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=AE(r);return Rxt(vde,r).isInside?null:C.jsx(fxt,{...o,...n,ref:t})});Hxt.displayName=vde;function Lxt(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,o,i)){case i:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Nxt(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function $xt(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function Dxt(e,t){const{x:r,y:n}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const l=t[i],s=t[a],u=l.x,c=l.y,d=s.x,f=s.y;c>n!=f>n&&r<(d-u)*(n-c)/(f-c)+u&&(o=!o)}return o}function Bxt(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),jxt(t)}function jxt(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const i=t[t.length-1],a=t[t.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const i=r[r.length-1],a=r[r.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var Mxt=dde,zxt=fde,Fxt=mde,Wxt=pde,Vxt=hde;const Uxt={TooltipContent:"_TooltipContent_rqalv_13"},bde=({trigger:e,label:t})=>C.jsx(Mxt,{children:C.jsxs(zxt,{children:[C.jsx(Fxt,{asChild:!0,children:e}),C.jsx(Wxt,{children:C.jsx(Vxt,{side:"bottom",align:"start",className:Uxt.TooltipContent,children:t})})]})});function qxt(e){return nt({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"}}]})(e)}function Gxt(e){return nt({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"}}]})(e)}function xde(e){return nt({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"}}]})(e)}function Yxt(e){return nt({attr:{viewBox:"0 0 32 32"},child:[{tag:"path",attr:{d:"M 16 3 C 12 3 8.4 4.7992187 6 7.6992188 L 6 4 L 4 4 L 4 12 L 12 12 L 12 10 L 6.8007812 10 C 8.8007812 7 12.1 5 16 5 C 22.1 5 27 9.9 27 16 C 27 22.1 22.1 27 16 27 C 9.9 27 5 22.1 5 16 L 3 16 C 3 23.2 8.8 29 16 29 C 23.2 29 29 23.2 29 16 C 29 8.8 23.2 3 16 3 z"}}]})(e)}async function Kxt(e){const n=new Blob([e]).stream().pipeThrough(new CompressionStream("gzip")).getReader(),o=[];for(;;){const{done:i,value:a}=await n.read();if(i)break;o.push(a)}return await Xxt(o)}async function Xxt(e){const r=await new Blob(e).arrayBuffer();return new Uint8Array(r)}async function Qxt(e){const t=await Kxt(e),r=btoa(String.fromCharCode(...t));return encodeURIComponent(r)}function Zxt(e){return e.endsWith("/")?e.substring(0,e.length-1):e}const Jxt=e=>m.createElement("svg",{width:26,height:26,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M9.04674 19.3954C8.2739 19.3954 7.60226 19.2265 7.03199 18.8887C6.47443 18.5384 6.0435 18.0505 5.73938 17.425C5.43526 16.7869 5.2832 16.0362 5.2832 15.173V9.89961C5.2832 9.7745 5.32771 9.66815 5.41637 9.58059C5.50502 9.493 5.61275 9.44922 5.73938 9.44922H7.41222C7.55157 9.44922 7.6593 9.493 7.73524 9.58059C7.8239 9.66815 7.86841 9.7745 7.86841 9.89961V15.0604C7.86841 16.6117 8.55895 17.3874 9.94021 17.3874C10.5991 17.3874 11.1187 17.181 11.4988 16.7681C11.8917 16.3553 12.0881 15.786 12.0881 15.0604V9.89961C12.0881 9.7745 12.1325 9.66815 12.2211 9.58059C12.3098 9.493 12.4175 9.44922 12.5443 9.44922H14.217C14.3436 9.44922 14.4513 9.493 14.54 9.58059C14.6288 9.66815 14.6732 9.7745 14.6732 9.89961V18.7574C14.6732 18.8825 14.6288 18.9888 14.54 19.0764C14.4513 19.164 14.3436 19.2078 14.217 19.2078H12.6773C12.538 19.2078 12.4239 19.164 12.3352 19.0764C12.2591 18.9888 12.2211 18.8825 12.2211 18.7574V17.988C11.879 18.4258 11.4545 18.7699 10.9476 19.0201C10.4407 19.2703 9.80704 19.3954 9.04674 19.3954Z",fill:"#3367CC"}),m.createElement("path",{d:"M17.6397 19.2104C17.5129 19.2104 17.4052 19.1666 17.3165 19.079C17.2279 18.9914 17.1835 18.8851 17.1835 18.76V9.90221C17.1835 9.7771 17.2279 9.67075 17.3165 9.58319C17.4052 9.4956 17.5129 9.45182 17.6397 9.45182H19.2174C19.3567 9.45182 19.4644 9.4956 19.5404 9.58319C19.6292 9.67075 19.6736 9.7771 19.6736 9.90221V18.76C19.6736 18.8851 19.6292 18.9914 19.5404 19.079C19.4644 19.1666 19.3567 19.2104 19.2174 19.2104H17.6397ZM17.5636 7.8379C17.4243 7.8379 17.3102 7.80038 17.2215 7.72531C17.1454 7.63773 17.1074 7.52514 17.1074 7.38751V6.03633C17.1074 5.91122 17.1454 5.80487 17.2215 5.71731C17.3102 5.62972 17.4243 5.58594 17.5636 5.58594H19.2933C19.4327 5.58594 19.5467 5.62972 19.6354 5.71731C19.7242 5.80487 19.7686 5.91122 19.7686 6.03633V7.38751C19.7686 7.52514 19.7242 7.63773 19.6354 7.72531C19.5467 7.80038 19.4327 7.8379 19.2933 7.8379H17.5636Z",fill:"#3367CC"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.0215 2.81748H2.53486V23.044H23.0215V2.81748ZM2.18164 2.46875V23.3927H23.3747V2.46875H2.18164Z",fill:"#3367CC"}));function yde({markdown:e,splitView:t,withFrame:r=!0,noHeader:n=!1,initiallyShowCode:o=!1,popOutUrl:i,app:a,api:l,components:s=[],config:u,activeTone:c,activeTheme:d,title:f,height:p,allowPlaygroundPopup:g,withSplashScreen:v,immediate:b}){const[y,w]=m.useState(o),{appGlobals:k}=jo(),[E,_]=m.useState(0),S=Zxt(i||(k==null?void 0:k.popOutUrl)||"https://docs.xmlui.com/#/playground"),O=m.useCallback(async()=>{const I=await Qxt(JSON.stringify({standalone:{app:a,components:s,config:{name:f,themes:[],defaultTheme:d},api:l},options:{fixedTheme:!1,swapped:!1,previewMode:!1,orientation:"horizontal",activeTheme:d,activeTone:c,content:"app"}}));window.open(`${S}/#${I}`,"_blank")},[a,s,f,d,l,c,S]);return r?C.jsxs(C.Fragment,{children:[!!e&&!t&&C.jsx(IE,{children:e}),C.jsxs("div",{className:bn.nestedAppContainer,style:{height:p},children:[!n&&C.jsxs("div",{className:bn.header,children:[!t&&C.jsx("span",{className:bn.headerText,children:f}),t&&C.jsxs(C.Fragment,{children:[C.jsx("div",{className:bn.wrapper,children:C.jsx(Jxt,{className:bn.logo})}),C.jsxs("div",{className:bn.viewControls,children:[C.jsx(sn,{onClick:()=>w(!0),className:ze(bn.splitViewButton,{[bn.show]:y,[bn.hide]:!y}),children:"XML"}),C.jsx(sn,{onClick:()=>w(!1),className:ze(bn.splitViewButton,{[bn.show]:!y,[bn.hide]:y}),children:"UI"})]})]}),C.jsxs("div",{className:bn.wrapper,children:[g&&C.jsx(bde,{trigger:C.jsx("button",{className:bn.headerButton,onClick:()=>{O()},children:C.jsx(xde,{})}),label:"View and edit in new full-width window"}),C.jsx(bde,{trigger:C.jsx("button",{className:bn.headerButton,onClick:()=>{w(!1),_(E+1)},children:C.jsx(Yxt,{})}),label:"Reset the app"})]})]}),C.jsxs("div",{className:bn.contentContainer,children:[C.jsx(IE,{className:ze(bn.splitViewMarkdown,{[bn.hidden]:!y}),children:e}),C.jsx(PN,{className:ze({[bn.hidden]:y}),height:"100%",app:a,api:l,components:s,config:u,activeTone:c,activeTheme:d,refreshVersion:E,withSplashScreen:v,immediate:b})]})]})]}):C.jsxs(C.Fragment,{children:[!!e&&C.jsx(IE,{children:e}),C.jsx(PN,{height:p,app:a,api:l,components:s,config:u,activeTone:c,activeTheme:d,refreshVersion:E,withSplashScreen:v,immediate:b})]})}const wde={removeIndents:!0};function eyt({id:e,children:t,codeHighlighter:r}){const{activeThemeTone:n}=zr(),{appGlobals:o}=jo();let i=null;r?i=r:i=q0t(o.codeHighlighter)?o.codeHighlighter:null;const a=C.jsx(CN,{children:C.jsx(xr,{uid:e,variant:"codefence",children:t})});if(!i)return a;const l=M0t(t,i,n);return l?C.jsx(CN,{meta:l.meta,textToCopy:l.codeStr,children:C.jsx(xr,{uid:e,variant:"codefence",syntaxHighlightClasses:l.classNames,dangerouslySetInnerHTML:{__html:l.cleanedHtmlStr}})}):a}const IE=m.memo(function({removeIndents:t=wde.removeIndents,children:r,style:n,codeHighlighter:o,showHeadingAnchors:i,className:a}){const l=m.useRef(new Map);if(typeof r!="string")return null;r=t?nyt(r):r;const s=c=>{var d,f,p,g;return`${(f=(d=c==null?void 0:c.position)==null?void 0:d.start)==null?void 0:f.offset}|${(g=(p=c==null?void 0:c.position)==null?void 0:p.end)==null?void 0:g.offset}`},u=()=>{return l.current.clear(),function(f){_h(f,"image",c)};function c(d,f,p){l.current.set(s(d),p.type==="paragraph"&&p.children.length>1)}};return C.jsx("div",{className:ze(_i.markdownContent,a),style:n,children:C.jsx(Vft,{remarkPlugins:[Xht,Y0t,u],rehypePlugins:[$0t],components:{details({children:c,node:d,...f}){return C.jsx("details",{className:Zt.htmlDetails,...f,children:c})},video({children:c,node:d,...f}){return C.jsx("video",{className:Zt.htmlVideo,...f,children:c})},img({children:c,node:d,...f}){const p=f==null?void 0:f.src,g=f==null?void 0:f["data-popout"],v=(f==null?void 0:f.alt)||"";let b=l.current.get(s(d));const y={...f.style||{},display:b?"inline":"block"};return g?C.jsx("a",{href:p,target:"_blank",rel:"noreferrer",children:C.jsx("img",{src:p,alt:v,style:y,children:c})}):C.jsx("img",{src:p,alt:v,style:y,...f,className:ze({[_i.block]:!b}),children:c})},h1({children:c}){return C.jsx(n0,{level:"h1",showHeadingAnchors:i,children:c})},h2({children:c}){return C.jsx(n0,{level:"h2",showHeadingAnchors:i,children:c})},h3({children:c}){return C.jsx(n0,{level:"h3",showHeadingAnchors:i,children:c})},h4({children:c}){return C.jsx(n0,{level:"h4",showHeadingAnchors:i,children:c})},h5({children:c}){return C.jsx(n0,{level:"h5",showHeadingAnchors:i,children:c})},h6({children:c}){return C.jsx(n0,{level:"h6",showHeadingAnchors:i,children:c})},p({id:c,children:d}){return C.jsx(xr,{uid:c,variant:"markdown",children:d})},code({id:c,children:d}){return C.jsx(xr,{uid:c,variant:"code",children:d})},pre({id:c,children:d}){return C.jsx(eyt,{id:c,codeHighlighter:o,children:d})},strong({id:c,children:d}){return C.jsx(xr,{uid:c,variant:"strong",children:d})},em({id:c,children:d}){return C.jsx(xr,{uid:c,variant:"em",children:d})},del({id:c,children:d}){return C.jsx(xr,{uid:c,variant:"deleted",children:d})},blockquote({children:c}){return C.jsx(ryt,{children:c})},ol({children:c,node:d,...f}){return C.jsx("ol",{className:Zt.htmlOl,...f,children:c})},ul({children:c,node:d,...f}){return C.jsx("ul",{className:Zt.htmlUl,...f,children:c})},li({children:c,node:d,...f}){return C.jsx("li",{className:Zt.htmlLi,...f,children:C.jsx(xr,{children:c})})},hr(){return C.jsx(tyt,{})},a({children:c,href:d,...f}){let p,g=c;if(typeof c=="string"){const v=c.match(/^((?:[^|]|\\\|)*[^\\])\|\s*target\s*=\s*([_a-zA-Z0-9-]+)\s*$/);v?(g=v[1].trim().replace(/\\\|/g,"|"),p=v[2]):g=c.replace(/\\\|/g,"|")}return C.jsx(Kx,{to:d,target:p,...f,children:g})},input({disabled:c,checked:d}){return C.jsx(Jp,{variant:"checkbox",readOnly:c,value:d})},table({children:c}){return C.jsx("div",{className:_i.tableScrollContainer,children:C.jsx("table",{className:Zt.htmlTable,children:c})})},tr({children:c}){return C.jsx("tr",{className:Zt.htmlTr,children:c})},td({children:c}){return C.jsx("td",{className:Zt.htmlTd,children:c})},th({children:c}){return C.jsx("th",{className:Zt.htmlTh,children:c})},thead({children:c}){return C.jsx("thead",{className:Zt.htmlThead,children:c})},tbody({children:c}){return C.jsx("tbody",{className:Zt.htmlTbody,children:c})},tfoot({children:c}){return C.jsx("tfoot",{className:Zt.htmlTfoot,children:c})},samp({...c}){const d=c==null?void 0:c["data-pg-markdown"],f=d?atob(d):"",p=c==null?void 0:c["data-pg-content"],g=atob(p),v=JSON.parse(g);return C.jsx(yde,{markdown:f,app:v.app,config:v.config,components:v.components,api:v.api,activeTheme:v.activeTheme,activeTone:v.activeTone,title:v.name,height:v.height,allowPlaygroundPopup:!v.noPopup,withFrame:!v.noFrame,noHeader:v.noHeader??!1,splitView:v.splitView??!1,initiallyShowCode:v.initiallyShowCode??!1,popOutUrl:v.popOutUrl,immediate:v.immediate,withSplashScreen:v.withSplashScreen})},section({children:c,...d}){const f=d==null?void 0:d["data-tree-content"];if(f!==void 0){const p=atob(f);return C.jsx(rX,{content:p})}return null}},children:r})})}),tyt=()=>C.jsx("hr",{className:_i.horizontalRule}),ryt=({children:e,style:t})=>{const r=a=>typeof a=="string"?a:ee.isValidElement(a)&&a.props&&a.props.children?Array.isArray(a.props.children)?a.props.children.map(r).join(""):r(a.props.children):"",n=ee.Children.toArray(e).map(r).join(""),o=n.match(/\[!([A-Z]+)\]/);if(!!o&&o&&o[1]){const a=o[1].toLowerCase(),l=c=>{if(typeof c=="string")return c.replace(/\[!([A-Z]+)\]\s*/,"");if(ee.isValidElement(c)){if(c.props&&c.props.children){let d;return Array.isArray(c.props.children)?d=c.props.children.map(l):d=l(c.props.children),ee.cloneElement(c,c.props,d)}return c}return c},s=ee.Children.map(e,l);if(a==="details"||a==="sdetails"){const d=n.match(/\[!(S?DETAILS)\](.*?)(?:\n|$)/),f=d&&d[2]?d[2].trim():"Details",p=a==="sdetails";let g=[],v=!1;return ee.Children.forEach(s,(b,y)=>{var w;if(!v&&ee.isValidElement(b)&&((w=b.props)!=null&&w.children)){v=!0;const E=r(b.props.children).split(`
|
|
482
482
|
`);if(E.length>1){const _=E.slice(1).join(`
|
|
483
483
|
`);_.trim()&&g.push(ee.cloneElement(b,b.props,_))}}else g.push(b)}),C.jsx(Oce,{summary:f,withSwitch:p,children:g})}const u={info:C.jsx(kt,{name:"admonition_info"}),warning:C.jsx(kt,{name:"admonition_warning"}),danger:C.jsx(kt,{name:"admonition_danger"}),note:C.jsx(kt,{name:"admonition_note"}),tip:C.jsx(kt,{name:"admonition_tip"})};return C.jsx("blockquote",{className:ze(_i.admonitionBlockquote,{[_i.info]:a==="info",[_i.warning]:a==="warning",[_i.danger]:a==="danger",[_i.note]:a==="note",[_i.tip]:a==="tip"}),style:t,children:C.jsxs("div",{className:_i.admonitionContainer,children:[C.jsx("div",{className:`${_i.admonitionIcon} ${_i[a]||""}`,children:u[a]||C.jsx(kt,{name:"admonition_info"})}),C.jsx("div",{className:_i.admonitionContent,children:s})]})})}return C.jsx("blockquote",{className:_i.blockquote,style:t,children:C.jsx("div",{className:_i.blockquoteContainer,children:e})})};function n0({children:e,level:t,showHeadingAnchors:r}){var a;const n=jo();r===void 0&&(r=((a=n==null?void 0:n.appGlobals)==null?void 0:a.showHeadingAnchors)??!1);let o="",i="";if(!e)return C.jsx(C.Fragment,{});if(typeof e=="string")[o,i]=oyt(e);else if(Array.isArray(e)){if(e.length===0)return C.jsx(C.Fragment,{});if(e.length===1)o=e[0];else{o=e.slice(0,-1);const l=e[e.length-1];if(typeof l=="string"){const s=l.trim().match(/^\[#([^\]]+)\]$/);s&&s.length>0?i=s[1]:i=Cde(Ww(l))}}}else{if(!Ww(e))return C.jsx(C.Fragment,{});o=e}return i||(i=Cde(Ww(o))),C.jsx(ec,{level:t,id:i,showAnchor:r,children:o})}function nyt(e){if(!e)return"";const t=e.split(`
|
|
@@ -631,7 +631,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
631
631
|
c0,0.26,0.23,0.51,0.5,0.5c0.27-0.01,0.5-0.22,0.5-0.5v-0.59h7v0.59c0,0.26,0.23,0.51,0.5,0.5c0.27-0.01,0.5-0.22,0.5-0.5v-0.59
|
|
632
632
|
h1.94c0.83,0,1.5,0.67,1.5,1.5V9.035z`}},{tag:"path",attr:{d:`M11.492,17.173v-3.46c0-0.059-0.064-0.095-0.114-0.064l-0.638,0.392
|
|
633
633
|
c-0.1,0.061-0.228-0.01-0.228-0.128v-0.651c0-0.105,0.055-0.203,0.146-0.257l0.764-0.457c0.047-0.028,0.1-0.043,0.154-0.043h0.626
|
|
634
|
-
c0.166,0,0.3,0.134,0.3,0.3v4.367c0,0.166-0.134,0.3-0.3,0.3h-0.409C11.626,17.473,11.492,17.339,11.492,17.173z`}}]}]})(e)}const N8t=e=>m.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.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"}),m.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"}),m.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"})),$8t=e=>C.jsx(N8t,{...e}),D8t=e=>m.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",...e},m.createElement("g",{id:"surface1"},m.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 "}))),B8t=e=>C.jsx(D8t,{...e}),j8t=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.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"}),m.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"})),M8t={binding:"_binding_14mdd_1"},z8t=e=>C.jsx(j8t,{className:M8t.binding,...e}),F8t=e=>C.jsx(CQ,{...e}),W8t=e=>m.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.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"}),m.createElement("path",{d:"M2.18018 4.63965L8.00018 8.00632L13.8202 4.63965",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M8 14.72V8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),V8t=e=>C.jsx(W8t,{...e}),U8t=e=>C.jsx($We,{...e}),q8t=e=>C.jsx(yQ,{...e}),G8t=e=>C.jsx(wQ,{...e}),Y8t=e=>m.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.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"}),m.createElement("path",{d:"M8.6665 1.33301V5.99967H13.3332",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M9.3335 10.6667L10.6668 9.33333L9.3335 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M6.6665 8.00033L5.33317 9.33366L6.6665 10.667",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),K8t=e=>C.jsx(Y8t,{...e}),X8t=e=>m.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.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"}),m.createElement("path",{d:"M5 2.80664L8 4.53997L11 2.80664",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M5 13.1933V9.73333L2 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M14 8L11 9.73333V13.1933",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M2.18018 4.63965L8.00018 8.00632L13.8202 4.63965",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M8 14.72V8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),Q8t=e=>C.jsx(X8t,{...e}),Z8t=e=>C.jsx(kQ,{...e}),J8t=e=>C.jsx(v8t,{...e}),eNt=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.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"}),m.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"}),m.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"})),tNt={database:"_database_14jkq_1"},rNt=e=>C.jsx(eNt,{className:tNt.database,...e}),nNt=e=>m.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.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"}),m.createElement("path",{d:"M9.3335 1.33301V5.33301H13.3335",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M10.6668 8.66699H5.3335",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M10.6668 11.333H5.3335",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M6.66683 6H6.00016H5.3335",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),oNt=e=>C.jsx(nNt,{...e}),iNt=e=>m.createElement("svg",{width:22,height:28,viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{clipPath:"url(#clip0_1811_15061)"},m.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"}),m.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"}),m.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"}),m.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"}),m.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"}),m.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"})),m.createElement("defs",null,m.createElement("clipPath",{id:"clip0_1811_15061"},m.createElement("rect",{width:22,height:28,fill:"white"})))),Fwe=e=>C.jsx(iNt,{...e}),aNt=e=>C.jsx(u8t,{...e}),lNt=e=>C.jsx(c8t,{...e}),sNt=e=>C.jsx(g8t,{...e}),uNt=e=>m.createElement("svg",{viewBox:"0 0 30 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M7.58122 0H1C0.447715 0 0 0.447715 0 0.999999V21.0737H30V3.71273H12.0217L7.58122 0Z",fill:"#ADDAE9"}),m.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"})),cNt=e=>C.jsx(uNt,{...e}),dNt=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.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"}),m.createElement("path",{d:"M3.26953 6.96094L11.9995 12.0109L20.7295 6.96094",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M12 22.08V12",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),fNt=e=>C.jsx(dNt,{...e}),mNt=e=>C.jsx(Jnt,{...e}),pNt=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M22 3H2L10 12.46V19L14 21V12.46L22 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),hNt=e=>C.jsx(pNt,{...e}),gNt=e=>m.createElement("svg",{viewBox:"0 0 30 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M7.58122 0H1C0.447715 0 0 0.447715 0 0.999999V21.0737H30V3.71273H12.0217L7.58122 0Z",fill:"#ADDAE9"}),m.createElement("rect",{x:1.2179,y:2.44446,width:28.0128,height:15.8889,fill:"white"}),m.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"})),vNt=e=>C.jsx(gNt,{...e}),bNt=e=>C.jsx(p8t,{...e}),xNt=e=>C.jsx(qWe,{...e}),yNt=e=>C.jsx(h8t,{...e}),wNt=e=>m.createElement("svg",{width:22,height:28,viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{clipPath:"url(#clip0_1960_14704)"},m.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"}),m.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"}),m.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"}),m.createElement("path",{d:"M9 17L14.1962 21.5H3.80385L9 17Z",fill:"#8BDC6F"}),m.createElement("path",{d:"M13 14L18.1963 21.5H7.80396L13 14Z",fill:"#8BDC6F"}),m.createElement("circle",{cx:7,cy:11,r:2,fill:"#EFC942"})),m.createElement("defs",null,m.createElement("clipPath",{id:"clip0_1960_14704"},m.createElement("rect",{width:22,height:28,fill:"white"})))),CNt=e=>C.jsx(wNt,{...e});function kNt(e){return nt({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"}}]})(e)}const _Nt=e=>C.jsx(kNt,{...e}),TNt=e=>C.jsx(kQ,{...e}),SNt=e=>C.jsx(H8t,{...e}),ENt=e=>C.jsx(KWe,{...e}),ONt=e=>m.createElement("svg",{viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{clipPath:"url(#clip0_1813_15242)"},m.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"}),m.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"}),m.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"}),m.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"}),m.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"}),m.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"}),m.createElement("path",{d:"M12.9603 15.716V20H13.9023V18.23H15.6963V17.498H13.9023V16.508H15.9723V15.716H12.9603Z",fill:"white"})),m.createElement("defs",null,m.createElement("clipPath",{id:"clip0_1813_15242"},m.createElement("rect",{width:22,height:28,fill:"white"})))),ANt=e=>C.jsx(ONt,{...e}),INt=e=>C.jsx(P8t,{...e}),RNt=e=>C.jsx(XWe,{...e}),PNt=e=>m.createElement("svg",{viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{clipPath:"url(#clip0_1960_14734)"},m.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"}),m.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"}),m.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"}),m.createElement("path",{d:"M9 17L14.1962 21.5H3.80385L9 17Z",fill:"#8BDC6F"}),m.createElement("path",{d:"M13 14L18.1963 21.5H7.80396L13 14Z",fill:"#8BDC6F"}),m.createElement("circle",{cx:7,cy:11,r:2,fill:"#EFC942"})),m.createElement("defs",null,m.createElement("clipPath",{id:"clip0_1960_14734"},m.createElement("rect",{width:22,height:28,fill:"white"})))),HNt=e=>C.jsx(PNt,{...e}),LNt=e=>C.jsx(not,{...e}),NNt=e=>C.jsx(ZWe,{...e}),$Nt=e=>m.createElement("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.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"}),m.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"}),m.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"}),m.createElement("path",{d:"M8.58984 13.51L15.4198 17.49",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M15.4098 6.51001L8.58984 10.49",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),DNt=e=>C.jsx($Nt,{...e}),BNt=e=>C.jsx(m8t,{...e}),jNt=e=>m.createElement("svg",{width:22,height:28,viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{clipPath:"url(#clip0_1811_14941)"},m.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"}),m.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"}),m.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"}),m.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"}),m.createElement("path",{d:"M4.62629 16.508V20H5.56828V16.508H6.85229V15.716H3.34229V16.508H4.62629Z",fill:"white"}),m.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"}),m.createElement("path",{d:"M13.4962 16.508V20H14.4382V16.508H15.7222V15.716H12.2122V16.508H13.4962Z",fill:"white"})),m.createElement("defs",null,m.createElement("clipPath",{id:"clip0_1811_14941"},m.createElement("rect",{width:22,height:28,fill:"white"})))),MNt=e=>C.jsx(jNt,{...e}),zNt=e=>m.createElement("svg",{viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{clipPath:"url(#clip0_1811_14989)"},m.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"}),m.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"}),m.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"})),m.createElement("defs",null,m.createElement("clipPath",{id:"clip0_1811_14989"},m.createElement("rect",{width:22,height:28,fill:"white"})))),FNt=e=>C.jsx(zNt,{...e}),WNt=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.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"}),m.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"}),m.createElement("path",{d:"M8.1582 2.67383L9.06952 5.30645",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M18.4316 17.667L16.8262 15.3902",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M5 5.28906L7.23775 6.94848",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M20.7402 14.2783L18.1301 13.3044",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),VNt=e=>C.jsx(WNt,{...e}),UNt=e=>C.jsx(_Q,{...e}),qNt=e=>m.createElement("svg",{width:22,height:28,viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.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"}),m.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"}),m.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"}),m.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"}),m.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"})),GNt=e=>C.jsx(qNt,{...e}),YNt=e=>m.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",...e},m.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),m.createElement("path",{d:"M3 17l6 -6l4 4l8 -8"}),m.createElement("path",{d:"M14 7l7 0l0 7"})),KNt=e=>C.jsx(YNt,{...e}),XNt=e=>m.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",...e},m.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),m.createElement("path",{d:"M3 7l6 6l4 -4l8 8"}),m.createElement("path",{d:"M21 10l0 7l-7 0"})),QNt=e=>C.jsx(XNt,{...e}),ZNt=e=>C.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",...e,children:[C.jsx("rect",{id:"sortasc",x:"0",y:"0",width:"24",height:"24",fill:"none"}),C.jsx("path",{d:"M12,2l7,8l-14,-0l7,-8Z",fill:"currentColor"}),C.jsx("path",{d:"M12,22l-7,-8l14,-0l-7,8Z",fill:"currentColor",fillOpacity:.5})]}),JNt=e=>C.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",...e,children:[C.jsx("rect",{id:"sortasc",x:"0",y:"0",width:"24",height:"24",fill:"none"}),C.jsx("path",{d:"M12,2l7,8l-14,-0l7,-8Z",fill:"currentColor",fillOpacity:.5}),C.jsx("path",{d:"M12,22l-7,-8l14,-0l-7,8Z",fill:"currentColor"})]}),e$t=e=>C.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",...e,children:[C.jsx("rect",{id:"sortasc",x:"0",y:"0",width:"24",height:"24",fill:"none"}),C.jsx("path",{d:"M12,2l7,8l-14,-0l7,-8Z",fill:"currentColor",fillOpacity:.5}),C.jsx("path",{d:"M12,22l-7,-8l14,-0l-7,8Z",fill:"currentColor",fillOpacity:.5})]}),t$t=e=>m.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",...e},m.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),m.createElement("path",{d:"M5 12l14 0"})),r$t=e=>C.jsx(t$t,{...e}),n$t=e=>m.createElement("svg",{width:56,height:56,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{filter:"url(#filter0_d_8732_12671)"},m.createElement("rect",{x:10,y:10,width:36,height:36,rx:6,fill:"#143566",shapeRendering:"crispEdges"}),m.createElement("path",{d:"M28.834 18.6667H23.0007C22.5586 18.6667 22.1347 18.8423 21.8221 19.1549C21.5096 19.4675 21.334 19.8914 21.334 20.3334V33.6667C21.334 34.1088 21.5096 34.5327 21.8221 34.8453C22.1347 35.1578 22.5586 35.3334 23.0007 35.3334H33.0007C33.4427 35.3334 33.8666 35.1578 34.1792 34.8453C34.4917 34.5327 34.6673 34.1088 34.6673 33.6667V24.5001L28.834 18.6667Z",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M28.834 18.6667V24.5001H34.6673",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M29.666 30.3333L31.3327 28.6667L29.666 27",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M26.334 26.9999L24.6673 28.6666L26.334 30.3333",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),m.createElement("defs",null,m.createElement("filter",{id:"filter0_d_8732_12671",x:0,y:0,width:56,height:56,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},m.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),m.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),m.createElement("feOffset",null),m.createElement("feGaussianBlur",{stdDeviation:5}),m.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),m.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),m.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_8732_12671"}),m.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_8732_12671",result:"shape"})))),o$t=e=>C.jsx(n$t,{...e}),i$t=e=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e},m.createElement("path",{d:"M600-640 480-760l120-120 120 120-120 120Zm200 120-80-80 80-80 80 80-80 80ZM483-80q-84 0-157.5-32t-128-86.5Q143-253 111-326.5T79-484q0-146 93-257.5T409-880q-18 99 11 193.5T520-521q71 71 165.5 100T879-410q-26 144-138 237T483-80Zm0-80q88 0 163-44t118-121q-86-8-163-43.5T463-465q-61-61-97-138t-43-163q-77 43-120.5 118.5T159-484q0 135 94.5 229.5T483-160Zm-20-305Z"})),a$t=e=>C.jsx(i$t,{...e}),l$t=e=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e},m.createElement("path",{d:"m354-287 126-76 126 77-33-144 111-96-146-13-58-136-58 135-146 13 111 97-33 143ZM233-120l65-281L80-590l288-25 112-265 112 265 288 25-218 189 65 281-247-149-247 149Zm457-560 21-89-71-59 94-8 36-84 36 84 94 8-71 59 21 89-80-47-80 47ZM480-481Z"})),s$t=e=>C.jsx(l$t,{...e}),u$t=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8V16Z",fill:"#394150"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM12 4V8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16V20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4Z",fill:"#394150"})),c$t=e=>C.jsx(u$t,{...e}),d$t=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M12 8C9.7909 8 8 9.7909 8 12C8 14.2091 9.7909 16 12 16L12 8Z",fill:"white"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C17.5229 22 22 17.5229 22 12C22 6.4772 17.5228 2 12 2C6.4772 2 2 6.4772 2 12C2 17.5229 6.4772 22 12 22ZM12 20L12 16C14.2091 16 16 14.2091 16 12C16 9.7909 14.2091 8 12 8L12 4C7.5817 4 4 7.5817 4 12C4 16.4183 7.5817 20 12 20Z",fill:"white"})),f$t=e=>C.jsx(d$t,{...e}),m$t=e=>m.createElement("svg",{width:37,height:36,viewBox:"0 0 37 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M19.6797 30.6797H16.7538C16.4842 30.6797 16.2661 30.8978 16.2661 31.1673V31.655C16.2661 32.7308 17.141 33.6056 18.2168 33.6056C19.2925 33.6056 20.1674 32.7308 20.1674 31.655V31.1673C20.1674 30.8978 19.9493 30.6797 19.6797 30.6797Z",fill:"#868491"}),m.createElement("path",{d:"M18.2163 30.6797H16.7538C16.4842 30.6797 16.2661 30.8978 16.2661 31.1673V31.655C16.2661 32.7307 17.1407 33.6053 18.2163 33.6056V30.6797Z",fill:"#9A9A9A"}),m.createElement("path",{d:"M25.8957 5.43603C23.6164 3.29393 20.631 2.22101 17.4998 2.41742C11.7935 2.7725 7.18363 7.53242 7.00551 13.2541C6.87409 17.4935 9.10093 21.3967 12.8174 23.4411C13.7413 23.9497 14.3152 24.9265 14.3152 25.9908V29.704C14.3152 30.7798 15.19 31.6547 16.2658 31.6547H20.1671C21.2429 31.6547 22.1177 30.7798 22.1177 29.704V25.9908C22.1177 24.9274 22.6959 23.9483 23.6274 23.4349C27.2082 21.4595 29.4326 17.6954 29.4326 13.6112C29.4326 10.5281 28.1435 7.54833 25.8957 5.43603Z",fill:"#FFD93C"}),m.createElement("path",{d:"M18.2172 22.9604C23.3799 22.9604 27.5651 18.7752 27.5651 13.6125C27.5651 8.44982 23.3799 4.26465 18.2172 4.26465C13.0546 4.26465 8.86938 8.44982 8.86938 13.6125C8.86938 18.7752 13.0546 22.9604 18.2172 22.9604Z",fill:"#FFE980"}),m.createElement("path",{d:"M19.922 16.5376C19.2738 16.5376 18.9424 16.1594 18.701 15.8837C18.4881 15.6408 18.4033 15.5622 18.2133 15.5622C18.0242 15.5622 17.94 15.6408 17.728 15.8832C17.5004 16.1437 17.156 16.5376 16.5079 16.5376C15.8602 16.5376 15.5159 16.1437 15.2883 15.8832C15.0763 15.6408 14.9921 15.5622 14.803 15.5622C14.5334 15.5622 14.3153 15.3441 14.3153 15.0746C14.3153 14.805 14.5334 14.5869 14.803 14.5869C15.4506 14.5869 15.7949 14.9808 16.0226 15.2412C16.2346 15.4837 16.3188 15.5622 16.5079 15.5622C16.697 15.5622 16.7817 15.4837 16.9937 15.2412C17.2213 14.9808 17.5656 14.5869 18.2133 14.5869C18.8615 14.5869 19.1929 14.965 19.4343 15.2408C19.6472 15.4837 19.732 15.5622 19.922 15.5622C20.1115 15.5622 20.1963 15.4837 20.4092 15.2412C20.6373 14.9808 20.9816 14.5869 21.6302 14.5869C21.8998 14.5869 22.1179 14.805 22.1179 15.0746C22.1179 15.3441 21.8998 15.5622 21.6302 15.5622C21.4402 15.5622 21.3554 15.6408 21.1425 15.8837C20.9144 16.1442 20.5702 16.5376 19.922 16.5376Z",fill:"#FFF7CE"}),m.createElement("path",{d:"M16.7533 25.8024C16.529 25.8024 16.3271 25.6466 16.277 25.4185L13.8387 14.2023C13.7815 13.939 13.9488 13.6794 14.2116 13.6218C14.4764 13.5637 14.7345 13.7319 14.7921 13.9947L17.2304 25.2109C17.2876 25.4742 17.1204 25.7338 16.8575 25.7914C16.8224 25.7991 16.7875 25.8024 16.7533 25.8024Z",fill:"#FFF7CE"}),m.createElement("path",{d:"M19.6802 25.8022C19.6458 25.8022 19.6111 25.7989 19.5759 25.7913C19.313 25.7337 19.1458 25.4741 19.203 25.2108L21.6413 13.9946C21.6989 13.7317 21.9561 13.564 22.2218 13.6217C22.4847 13.6793 22.6518 13.9389 22.5947 14.2022L20.1564 25.4184C20.1064 25.6466 19.9045 25.8022 19.6802 25.8022Z",fill:"#FFF7CE"}),m.createElement("path",{d:"M14.2314 25.3164C14.2833 25.5354 14.3152 25.761 14.3152 25.9922V29.7053C14.3152 30.7811 15.1901 31.656 16.2658 31.656H20.1671C21.2429 31.656 22.1178 30.7811 22.1178 29.7053V25.9922C22.1178 25.7612 22.1499 25.5355 22.2021 25.3164H14.2314Z",fill:"#B4B6BC"}),m.createElement("path",{d:"M18.2162 25.3164H14.2314C14.2833 25.5354 14.3152 25.761 14.3152 25.9922V29.7053C14.3152 30.7811 15.1901 31.656 16.2658 31.656H18.2162V25.3164Z",fill:"#B4B6BC"}),m.createElement("path",{d:"M22.1175 26.7773H18.2162V27.7527H22.1175V26.7773Z",fill:"#9A9A9A"}),m.createElement("path",{d:"M22.1177 28.7285H18.2164V29.7038H22.1177V28.7285Z",fill:"#9A9A9A"}),m.createElement("path",{d:"M18.2162 26.7773H14.3149V27.7527H18.2162V26.7773Z",fill:"#9A9A9A"}),m.createElement("path",{d:"M18.2162 28.7285H14.3149V29.7038H18.2162V28.7285Z",fill:"#9A9A9A"})),p$t=e=>C.jsx(m$t,{...e}),h$t=e=>m.createElement("svg",{width:36,height:36,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M15.8283 6C16.5981 4.66667 18.5226 4.66667 19.2924 6L31.8498 27.75C32.6196 29.0833 31.6573 30.75 30.1177 30.75H5.00298C3.46338 30.75 2.50113 29.0833 3.27093 27.75L15.8283 6Z",fill:"url(#paint0_linear_11265_27105)"}),m.createElement("path",{d:"M15.8278 6C16.5976 4.66667 18.5229 4.66667 19.2927 6L31.8493 27.75C32.595 29.0416 31.7158 30.646 30.2605 30.7451L30.1179 30.75V29.75C30.8875 29.7498 31.3687 28.9166 30.9841 28.25L18.4265 6.5C18.0657 5.87505 17.1975 5.83607 16.7731 6.38281L16.694 6.5L4.13643 28.25C3.75177 28.9166 4.23306 29.7498 5.00264 29.75V30.75L4.86006 30.7451C3.4517 30.6492 2.5826 29.1436 3.20381 27.876L3.2712 27.75L15.8278 6ZM30.1179 29.75V30.75H5.00264V29.75H30.1179Z",fill:"#FFD93C"}),m.createElement("path",{d:"M18.9476 12.0938L18.7226 22.572H16.5272L16.309 12.0938H18.9476ZM17.6249 27.0938C17.2112 27.0938 16.8567 26.9392 16.5612 26.63C16.2703 26.3208 16.1249 25.944 16.1249 25.4995C16.1249 25.0648 16.2703 24.6928 16.5612 24.3836C16.8567 24.0744 17.2112 23.9198 17.6249 23.9198C18.0294 23.9198 18.3794 24.0744 18.6749 24.3836C18.9749 24.6928 19.1249 25.0648 19.1249 25.4995C19.1249 25.7942 19.0544 26.0623 18.9135 26.3039C18.7772 26.5454 18.5953 26.7387 18.3681 26.8836C18.1453 27.0237 17.8976 27.0938 17.6249 27.0938Z",fill:"black"}),m.createElement("defs",null,m.createElement("linearGradient",{id:"paint0_linear_11265_27105",x1:17.5604,y1:3,x2:17.5604,y2:40,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#FFE980"}),m.createElement("stop",{offset:.932692,stopColor:"#FFD93C"})))),g$t=e=>C.jsx(h$t,{...e}),v$t=e=>m.createElement("svg",{width:36,height:36,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M18 6C11.3831 6 6 11.3832 6 18C6 24.6168 11.3831 30 18 30C24.6169 30 30 24.6168 30 18C30 11.3832 24.6169 6 18 6ZM18 8.32256C20.2505 8.32256 22.324 9.09473 23.9696 10.3881L10.3881 23.9696C9.09478 22.324 8.32256 20.2505 8.32256 18C8.32256 12.6639 12.6639 8.32256 18 8.32256ZM18 27.6774C15.7495 27.6774 13.676 26.9053 12.0304 25.6119L25.6119 12.0304C26.9053 13.676 27.6774 15.7495 27.6774 18C27.6774 23.3361 23.3361 27.6774 18 27.6774Z",fill:"url(#paint0_linear_11264_27095)"}),m.createElement("path",{d:"M29.9167 18C29.9167 11.4292 24.5709 6.08333 18 6.08333C11.4291 6.08333 6.08333 11.4292 6.08333 18C6.08333 24.5708 11.4291 29.9167 18 29.9167C24.5709 29.9167 29.9167 24.5708 29.9167 18ZM26.527 18C26.527 16.4591 26.1141 15.0148 25.3961 13.7661L13.7661 25.3961C15.0148 26.1141 16.4591 26.527 18 26.527V27.6104L17.5832 27.6008C15.5096 27.5119 13.6043 26.763 12.0723 25.559L25.559 12.0723C26.8433 13.7064 27.6104 15.7652 27.6104 18L27.5977 18.4941C27.3396 23.5644 23.1334 27.6104 18 27.6104V26.527C22.7007 26.527 26.527 22.7007 26.527 18ZM18.4168 8.39917C20.4904 8.4881 22.3957 9.23699 23.9277 10.441L10.441 23.9277C9.23704 22.3957 8.4881 20.4904 8.39917 18.4168L8.38965 18C8.38965 12.7009 12.7009 8.38965 18 8.38965L18.4168 8.39917ZM9.47298 18C9.47298 19.5404 9.88531 20.9844 10.6029 22.2328L22.2328 10.6029C20.9844 9.8853 19.5404 9.47298 18 9.47298C13.2993 9.47298 9.47298 13.2993 9.47298 18ZM31 18C31 25.1691 25.1692 31 18 31C10.8308 31 5 25.1691 5 18C5 10.8309 10.8308 5 18 5C25.1692 5 31 10.8309 31 18Z",fill:"url(#paint1_linear_11264_27095)"}),m.createElement("path",{d:"M31 18C31 10.9428 25.35 5.18214 18.335 5.00391L18 5C10.8308 5 5 10.8309 5 18L5.00391 18.335C5.17931 25.2386 10.7613 30.8207 17.665 30.9961L18 31C25.0573 31 30.8179 25.3499 30.9961 18.335L31 18ZM29.6162 18C29.6162 11.5949 24.4052 6.38379 18 6.38379C11.5948 6.38379 6.38379 11.5949 6.38379 18C6.38379 24.4051 11.5948 29.6162 18 29.6162V29.917L17.6934 29.9131C11.3655 29.7525 6.24754 24.6344 6.08691 18.3066L6.08301 18C6.08301 11.4292 11.4291 6.08301 18 6.08301L18.3066 6.08691C24.7364 6.25013 29.917 11.5317 29.917 18L29.9131 18.3066C29.7499 24.7363 24.4684 29.917 18 29.917V29.6162C24.4052 29.6162 29.6162 24.4051 29.6162 18ZM25.7949 11.8867C27.1191 13.5716 27.9102 15.6954 27.9102 18V18.0078L27.8975 18.502V18.5098C27.6311 23.7386 23.2939 27.9102 18 27.9102H17.9932L17.5762 27.9004H17.5703C15.4317 27.8087 13.4663 27.0363 11.8867 25.7949L11.6211 25.5859L25.5859 11.6211L25.7949 11.8867ZM12.0723 25.5586C13.6042 26.7626 15.5095 27.5116 17.583 27.6006L18 27.6104C22.9728 27.6104 27.0751 23.8136 27.5615 18.9668L27.5977 18.4941L27.6104 18C27.6104 15.7652 26.8429 13.7063 25.5586 12.0723L12.0723 25.5586ZM26.2266 18C26.2266 16.6539 25.8993 15.3851 25.3232 14.2627L14.2627 25.3232C15.3851 25.8993 16.6539 26.2266 18 26.2266C22.5351 26.2266 26.2266 22.5351 26.2266 18ZM18.0068 8.08984L18.4238 8.09961H18.4297L18.8281 8.125C20.8122 8.28992 22.6323 9.04117 24.1133 10.2051L24.3789 10.4141L10.4141 24.3789L10.2051 24.1133C8.96372 22.5337 8.19133 20.5683 8.09961 18.4297V18.4238L8.08984 18.0068V18L8.10254 17.4912C8.36824 12.262 12.7059 8.08984 18 8.08984H18.0068ZM18 8.38965C12.7009 8.38965 8.38965 12.7009 8.38965 18L8.39941 18.417C8.48838 20.4905 9.23748 22.3958 10.4414 23.9277L23.9277 10.4414C22.3958 9.23743 20.4905 8.48838 18.417 8.39941L18 8.38965ZM18.2881 9.47754C19.7202 9.52552 21.0622 9.93004 22.2324 10.6025L10.6025 22.2324C9.93005 21.0622 9.52552 19.7202 9.47754 18.2881L9.47266 18C9.47266 13.2993 13.2993 9.47266 18 9.47266L18.2881 9.47754ZM9.77344 18C9.77344 19.3452 10.0995 20.6135 10.6748 21.7354L21.7354 10.6748C20.6135 10.0995 19.3452 9.77344 18 9.77344C13.4649 9.77344 9.77344 13.4649 9.77344 18ZM26.5156 18.4385C26.2865 22.9364 22.5537 26.5273 18 26.5273C16.4593 26.5273 15.0152 26.1143 13.7666 25.3965L25.3965 13.7666C26.1143 15.0152 26.5273 16.4593 26.5273 18L26.5156 18.4385ZM31.2998 18C31.2998 25.3348 25.3349 31.2998 18 31.2998C10.6651 31.2998 4.7002 25.3348 4.7002 18C4.7002 10.6652 10.6651 4.7002 18 4.7002C25.3349 4.7002 31.2998 10.6652 31.2998 18Z",fill:"url(#paint2_linear_11264_27095)"}),m.createElement("defs",null,m.createElement("linearGradient",{id:"paint0_linear_11264_27095",x1:18,y1:6,x2:18,y2:30,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#ED5A3B"}),m.createElement("stop",{offset:1,stopColor:"#AF3117"})),m.createElement("linearGradient",{id:"paint1_linear_11264_27095",x1:18,y1:5,x2:18,y2:31,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#EC5A3A"}),m.createElement("stop",{offset:1,stopColor:"#AF3117"})),m.createElement("linearGradient",{id:"paint2_linear_11264_27095",x1:18,y1:5,x2:18,y2:31,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#EB5A39"}),m.createElement("stop",{offset:1,stopColor:"#B03117"})))),b$t=e=>C.jsx(v$t,{...e}),x$t=e=>m.createElement("svg",{width:36,height:36,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M7 5.15039H28C28.4694 5.15039 28.8496 5.53056 28.8496 6V26.6445C28.8496 26.8769 28.755 27.0994 28.5869 27.2598L24.0205 31.6152C23.8625 31.766 23.652 31.8496 23.4336 31.8496H7C6.53056 31.8496 6.15039 31.4694 6.15039 31V6C6.15039 5.53056 6.53056 5.15039 7 5.15039Z",fill:"#FEFEFE",stroke:"#666666",strokeWidth:.3}),m.createElement("path",{d:"M26.0982 12.5596H8.58191V13.083H26.0982V12.5596Z",fill:"#666666"}),m.createElement("path",{d:"M26.0982 15.3857H8.58191V15.9092H26.0982V15.3857Z",fill:"#666666"}),m.createElement("path",{d:"M26.0982 18.2109H8.58191V18.7344H26.0982V18.2109Z",fill:"#666666"}),m.createElement("path",{d:"M26.0982 21.0039H8.58191V21.5273H26.0982V21.0039Z",fill:"#666666"}),m.createElement("path",{d:"M26.0982 23.8291H8.58191V24.3525H26.0982V23.8291Z",fill:"#666666"}),m.createElement("path",{d:"M16.8516 27.0947H8.58191V27.6181H16.8516V27.0947Z",fill:"#666666"}),m.createElement("path",{d:"M23.9056 32.3591L29 27.2646H23.9056V32.3591Z",fill:"#F4F2F2"}),m.createElement("path",{d:"M21 9H14V10H21V9Z",fill:"#535353"}),m.createElement("path",{d:"M23.9339 14.783L22.4576 13.9355L21.6053 15.4034L23.0816 16.2508L23.9339 14.783Z",fill:"#E0E1E2"}),m.createElement("path",{d:"M25.6385 11.8475L24.8948 11.4206C24.7937 11.3625 24.6837 11.3307 24.5715 11.3222C24.5154 11.318 24.4589 11.3196 24.4026 11.3276C24.1208 11.3654 23.8457 11.5452 23.6789 11.8325L22.4576 13.9357L23.9339 14.7831L25.6385 11.8475Z",fill:"#E85738"}),m.createElement("path",{d:"M24.9268 17.3103L23.0815 16.251L18.1808 24.6911L20.0261 25.7504L24.9268 17.3103Z",fill:"#F2C91D"}),m.createElement("path",{d:"M25.7791 15.8425L23.9338 14.7832L23.0815 16.251L24.9268 17.3104L25.7791 15.8425Z",fill:"#C4C4C4"}),m.createElement("path",{d:"M25.7791 15.8427L27.0003 13.7395C27.1671 13.4522 27.1541 13.107 26.9975 12.8174C26.9664 12.7598 26.9289 12.7036 26.8866 12.6514C26.8012 12.5465 26.6944 12.4539 26.568 12.3813L25.6384 11.8477L23.9338 14.7833L25.7791 15.8427Z",fill:"#B13218"}),m.createElement("path",{d:"M20.0261 25.7505L16.7046 23.8438L16.6607 27.7328L20.0261 25.7505Z",fill:"#FDEDD9"}),m.createElement("path",{d:"M17.8536 26.95L16.7465 26.3145L16.6608 27.7331L17.8536 26.95Z",fill:"#4C4C4C"}),m.createElement("path",{d:"M23.0816 16.2508L21.6053 15.4033L16.7046 23.8434L18.1808 24.6909L23.0816 16.2508Z",fill:"#FFD93C"})),y$t=e=>C.jsx(x$t,{...e}),w$t=e=>m.createElement("svg",{width:36,height:36,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M5.29297 5.15039H30.6719C31.2902 5.15044 31.7575 5.5568 31.8389 6.09961L31.8496 6.20215V24.1748C31.8496 24.7617 31.3364 25.2273 30.707 25.2275H14.5459L14.5068 25.2539L6.49219 30.7158V25.2275H5.29297C4.63423 25.2273 4.15039 24.7343 4.15039 24.1748V6.20215C4.15058 5.61545 4.66376 5.15058 5.29297 5.15039Z",fill:"url(#paint0_linear_11266_27250)",stroke:"#666666",strokeWidth:.3}),m.createElement("path",{d:"M25.6739 12.3672H11V12.8057H25.6739V12.3672Z",fill:"#666666"}),m.createElement("path",{d:"M25.6739 14.7344H11V15.1729H25.6739V14.7344Z",fill:"#666666"}),m.createElement("path",{d:"M25.6739 17.0742H11V17.5127H25.6739V17.0742Z",fill:"#666666"}),m.createElement("defs",null,m.createElement("linearGradient",{id:"paint0_linear_11266_27250",x1:16.7273,y1:21.25,x2:12.1155,y2:30.9251,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#FEFEFE"}),m.createElement("stop",{offset:1,stopColor:"#E0E0E0"})))),C$t=e=>C.jsx(w$t,{...e});function k$t(e){return C.jsxs("svg",{viewBox:"0 0 24 16",stroke:"currentColor",fill:"none",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[C.jsx("rect",{x:"1.5",y:"1.5",width:"13",height:"11",rx:"1"}),C.jsx("line",{x1:"1.5",y1:"5.5",x2:"14.5",y2:"5.5"}),C.jsx("line",{x1:"1.5",y1:"9.5",x2:"14.5",y2:"9.5"}),C.jsx("line",{x1:"19",y1:"6",x2:"19",y2:"10"}),C.jsx("line",{x1:"17",y1:"8",x2:"21",y2:"8"})]})}function _$t(e){return C.jsxs("svg",{viewBox:"0 0 24 16",stroke:"currentColor",fill:"none",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[C.jsx("rect",{x:"1.5",y:"1.5",width:"13",height:"11",rx:"1"}),C.jsx("line",{x1:"1.5",y1:"5.5",x2:"14.5",y2:"5.5"}),C.jsx("line",{x1:"1.5",y1:"9.5",x2:"14.5",y2:"9.5"}),C.jsx("line",{x1:"17",y1:"8",x2:"21",y2:"8"})]})}function T$t(e){return C.jsxs("svg",{viewBox:"0 0 24 16",stroke:"currentColor",fill:"none",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",width:"24",height:"16",...e,children:[C.jsx("rect",{x:"1.5",y:"1.5",width:"13",height:"11",rx:"1"}),C.jsx("line",{x1:"5.5",y1:"3.5",x2:"5.5",y2:"11.5"}),C.jsx("line",{x1:"9",y1:"3.5",x2:"9",y2:"11.5"}),C.jsx("line",{x1:"19",y1:"6.5",x2:"19",y2:"9.5"}),C.jsx("line",{x1:"17.5",y1:"8",x2:"20.5",y2:"8"})]})}function S$t(e){return C.jsxs("svg",{viewBox:"0 0 24 16",stroke:"currentColor",fill:"none",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",width:"24",height:"16",...e,children:[C.jsx("rect",{x:"1.5",y:"1.5",width:"13",height:"11",rx:"1"}),C.jsx("line",{x1:"5.5",y1:"3.5",x2:"5.5",y2:"11.5"}),C.jsx("line",{x1:"9",y1:"3.5",x2:"9",y2:"11.5"}),C.jsx("line",{x1:"17",y1:"8",x2:"21",y2:"8"})]})}const X4=new Map;function Be(e,t){typeof e=="object"?e.forEach(r=>{X4.set(r,{renderer:t})}):X4.set(e.toLowerCase(),{renderer:t})}Be("assign",e=>C.jsx(_Q,{...e})),Be("arrowup",e=>C.jsx(KLt,{...e})),Be("arrowleft",e=>C.jsx(GLt,{...e})),Be("arrowright",e=>C.jsx(YLt,{...e})),Be("pause",e=>C.jsx(ZLt,{...e})),Be("play",e=>C.jsx(JLt,{...e})),Be("date",e=>C.jsx(L8t,{...e})),Be("hamburger",e=>C.jsx(tot,{...e})),Be("send",e=>C.jsx(oot,{...e})),Be("users",e=>C.jsx(oVe,{...e})),Be("refresh",e=>C.jsx(QWe,{...e})),Be("chevrondown",e=>C.jsx(DWe,{...e})),Be("chevronup",e=>C.jsx(BWe,{...e})),Be("chevronright",e=>C.jsx(G8t,{...e})),Be("chevronleft",e=>C.jsx(q8t,{...e})),Be("dotmenu",e=>C.jsx(lNt,{...e})),Be("dotmenuhorizontal",e=>C.jsx(aNt,{...e})),Be("noresult",e=>C.jsx(JWe,{...e})),Be("crm",e=>C.jsx(zwe,{...e})),Be("chat",e=>C.jsx(zwe,{...e})),Be("pencil",e=>C.jsx(d8t,{...e})),Be("cube",e=>C.jsx(s8t,{...e})),Be("apps",e=>C.jsx(CQ,{...e})),Be("permissions",e=>C.jsx(GWe,{...e})),Be("close",e=>C.jsx(iVe,{...e})),Be("star",e=>C.jsx(eVe,{...e})),Be("help",e=>C.jsx(UWe,{...e})),Be("compactlist",e=>C.jsx(Z8t,{...e})),Be("copy",e=>C.jsx(J8t,{...e})),Be("move",e=>C.jsx(zWe,{...e})),Be("rename",e=>C.jsx(b8t,{...e})),Be("hyperlink",e=>C.jsx(yNt,{...e})),Be("globe",e=>C.jsx(bNt,{...e})),Be("link",e=>C.jsx(_Nt,{...e})),Be("looseList",e=>C.jsx(SNt,{...e})),Be("options",e=>C.jsx(ENt,{...e})),Be("search",e=>C.jsx(NNt,{...e})),Be("filter",e=>C.jsx(hNt,{...e})),Be("trash",e=>C.jsx(BNt,{...e})),Be("pen",e=>C.jsx(INt,{...e})),Be("email",e=>C.jsx(sNt,{...e})),Be("phone",e=>C.jsx(RNt,{...e})),Be("home",e=>C.jsx(xNt,{...e})),Be("user",e=>C.jsx(UNt,{...e})),Be("exit",e=>C.jsx(qxt,{...e})),Be("adduser",e=>C.jsx(nVe,{...e})),Be("userminus",e=>C.jsx(rVe,{...e})),Be("plus",e=>C.jsx(LNt,{...e})),Be("inspect",e=>C.jsx(o$t,{...e})),Be("plus-circle",e=>C.jsx(rot,{...e})),Be("filledplus",e=>C.jsx(mNt,{...e})),Be("darktolight",e=>C.jsx(f$t,{...e})),Be("lighttodark",e=>C.jsx(c$t,{...e})),Be("checkmark",e=>C.jsx(U8t,{...e})),Be("valid",e=>C.jsx(NWe,{...e})),Be("info",e=>C.jsx(LWe,{...e})),Be("error",e=>C.jsx(Toe,{...e})),Be("warning",e=>C.jsx(_oe,{...e})),Be("board",e=>C.jsx(F8t,{...e})),Be("list",e=>C.jsx(TNt,{...e})),Be("folder",e=>C.jsx(vNt,{...e})),Be("folder-outline",e=>C.jsx(WWe,{...e})),Be("emptyfolder",e=>C.jsx(cNt,{...e})),Be("pdf",e=>C.jsx(ANt,{...e})),Be("txt",e=>C.jsx(MNt,{...e})),Be("doc",e=>C.jsx(Fwe,{...e})),Be("docx",e=>C.jsx(Fwe,{...e})),Be("doc-outline",e=>C.jsx(oNt,{...e})),Be("conf",e=>C.jsx(o8t,{...e})),Be("code",e=>C.jsx(K8t,{...e})),Be("codesandbox",e=>C.jsx(Q8t,{...e})),Be("box",e=>C.jsx(V8t,{...e})),Be(["xls","xlsx"],e=>C.jsx(GNt,{...e})),Be(["jpg","jpeg","png","webp","svg","gif","tif","ppt","pptx"],e=>C.jsx(CNt,{...e})),Be("unknownfile",e=>C.jsx(FNt,{...e})),Be("photo",e=>C.jsx(HNt,{...e})),Be("previous",e=>C.jsx(l8t,{...e})),Be("next",e=>C.jsx(a8t,{...e})),Be("like",e=>C.jsx(eot,{...e})),Be("reply",e=>C.jsx(e8t,{...e})),Be("attach",e=>C.jsx(B8t,{...e})),Be("attach2",e=>C.jsx(C8t,{...e})),Be("emoji",e=>C.jsx(i8t,{...e})),Be("message",e=>C.jsx(y8t,{...e})),Be("upload",e=>C.jsx(tVe,{...e})),Be("split-vertical",e=>C.jsx(S8t,{...e})),Be("split-horizontal",e=>C.jsx(T8t,{...e})),Be("swap",e=>C.jsx(f8t,{...e})),Be("download",e=>C.jsx(FWe,{...e})),Be("note",e=>C.jsx(w8t,{...e})),Be("binding",e=>C.jsx(z8t,{...e})),Be("database",e=>C.jsx(rNt,{...e})),Be("unlink",e=>C.jsx(VNt,{...e})),Be("api",e=>C.jsx($8t,{...e})),Be("expression",e=>C.jsx(fNt,{...e})),Be("chat",e=>C.jsx(XLt,{...e})),Be("hash",e=>C.jsx(QLt,{...e})),Be("drive",e=>C.jsx(VWe,{...e})),Be("lock",e=>C.jsx(YWe,{...e})),Be("start",e=>C.jsx(k8t,{...e})),Be("stop",e=>C.jsx(_8t,{...e})),Be("restart",e=>C.jsx(A8t,{...e})),Be("duplicate",e=>C.jsx(R8t,{...e})),Be("connect",e=>C.jsx(Gxt,{...e})),Be("cog",e=>C.jsx(I8t,{...e})),Be("sun",e=>C.jsx(E8t,{...e})),Be("moon",e=>C.jsx(a$t,{...e})),Be("stars",e=>C.jsx(s$t,{...e})),Be("share",e=>C.jsx(DNt,{...e})),Be("new-window",e=>C.jsx(xde,{...e})),Be("paint",e=>C.jsx(O8t,{...e})),Be("palette",e=>C.jsx(x8t,{...e})),Be("trending-up",e=>C.jsx(KNt,{...e})),Be("trending-down",e=>C.jsx(QNt,{...e})),Be("trending-level",e=>C.jsx(r$t,{...e})),Be("sortasc",e=>C.jsx(ZNt,{...e})),Be("sortdesc",e=>C.jsx(JNt,{...e})),Be("nosort",e=>C.jsx(e$t,{...e})),Be("admonition_info",e=>C.jsx(p$t,{...e})),Be("admonition_warning",e=>C.jsx(g$t,{...e})),Be("admonition_danger",e=>C.jsx(b$t,{...e})),Be("admonition_note",e=>C.jsx(y$t,{...e})),Be("admonition_tip",e=>C.jsx(C$t,{...e})),Be("arrowdown",e=>C.jsx(qLt,{...e})),Be("square",e=>C.jsx(n8t,{...e})),Be("squarehalf",e=>C.jsx(r8t,{...e})),Be("squarefill",e=>C.jsx(t8t,{...e})),Be("table-insert-row",e=>C.jsx(k$t,{...e})),Be("table-delete-row",e=>C.jsx(_$t,{...e})),Be("table-insert-column",e=>C.jsx(T$t,{...e})),Be("table-delete-column",e=>C.jsx(S$t,{...e}));function E$t({children:e}){const t=m.useCallback(()=>Array.from(X4.keys()),[]),r=m.useCallback(u=>X4.get(u),[]),[n,o]=m.useState({}),i=m.useRef({}),a=m.useRef(null),l=m.useCallback(async u=>{if(i.current[u])return;const c=await(await fetch(u)).text(),d=document.createElement("div");d.style.display="none",d.innerHTML=c;const f={};for(let v=0;v<d.children[0].attributes.length;v++){const b=d.children[0].attributes[v];b.nodeName!=="class"&&(f[b.nodeName]=b.nodeValue)}Object.keys(f).forEach(v=>{d.children[0].removeAttribute(v)});const p=document.createElementNS("http://www.w3.org/2000/svg","symbol");p.innerHTML=d.children[0].innerHTML,p.id=u,p.setAttributeNS(null,"viewBox",f.viewBox),i.current[u]||(a.current.appendChild(p),i.current[u]=!0);const g={name:u,attributes:f};o(v=>({...v,[u]:g}))},[]),s=m.useMemo(()=>({getRegisteredIconNames:t,lookupIconRenderer:r,ensureCustomSvgIcon:l,customSvgs:n}),[n,l,t,r]);return C.jsxs(Iq.Provider,{value:s,children:[e,C.jsx("svg",{style:{display:"none"},ref:a})]})}const O$t="0.9.74",Wwe={capitalize:xAe,pluralize:RLe,defaultTo:FRe,toHashObject:PLe,findByField:HLe,distinct:LLe};function A$t(e){return(e?new Date(e):new Date).toJSON()}function Vwe(e){return new Date(e).toLocaleDateString()}function I$t(e){return new Date(e).toLocaleString()}function R$t(e){return new Date(e).toLocaleTimeString()}function P$t(e){return Qc(new Date(e),"H:m")}function H$t(e){return new Date(e).toLocaleDateString([],{month:"numeric",day:"2-digit"})}function Uwe(e){return e?new Date(e):new Date}function L$t(e,t,r){return e?CLe(e,t,r):"-"}function N$t(e){return e?E_(new Date(e))?new Date(e).toLocaleTimeString():J9e(new Date(e))?`${JHe(new Date(e),new Date)}`:new Date(e).toLocaleString():"-"}function $$t(e){return e?E_(new Date(e))?"Today":jI(new Date(e))?"Yesterday":new Date(e).toLocaleDateString():"-"}function D$t(e){return E_(new Date(e))}function B$t(e){return jI(new Date(e))}function j$t(e){return tLe(new Date(e))}function M$t(e,t=!1){const r=new Date,n=new Date(e),o=r.getTime()-n.getTime();if(o<0)return Vwe(e);const i=Math.floor(o/1e3),a=Math.floor(i/60),l=Math.floor(a/60),s=Math.floor(l/24),u=Math.floor(s/7),c=Math.floor(s/30),d=Math.floor(s/365),f={second:{singular:t?"s":"second",plural:t?"s":"seconds"},minute:{singular:t?"min":"minute",plural:t?"min":"minutes"},hour:{singular:t?"hr":"hour",plural:t?"hrs":"hours"},day:{singular:t?"d":"day",plural:t?"d":"days"},week:{singular:t?"wk":"week",plural:t?"wks":"weeks"},month:{singular:t?"mo":"month",plural:t?"mos":"months"},year:{singular:t?"y":"year",plural:t?"yrs":"years"}};if(i<10)return"now";if(i<60){const g=i===1?f.second.singular:f.second.plural;return`${i} ${g} ago`}if(a<60){const g=a===1?f.minute.singular:f.minute.plural;return`${a} ${g} ago`}if(E_(n)){const g=l===1?f.hour.singular:f.hour.plural;return`${l} ${g} ago`}if(jI(n))return"yesterday";if(s<7){const g=s===1?f.day.singular:f.day.plural;return`${s} ${g} ago`}if(u<4){const g=u===1?f.week.singular:f.week.plural;return`${u} ${g} ago`}if(c<12){const g=c===1?f.month.singular:f.month.plural;return`${c} ${g} ago`}const p=d===1?f.year.singular:f.year.plural;return`${d} ${p} ago`}const qwe={isoDateString:A$t,formatDate:Vwe,formatDateTime:I$t,formatTime:R$t,formatTimeWithoutSeconds:P$t,formatDateWithoutYear:H$t,getDate:Uwe,getDateUntilNow:L$t,smartFormatDateTime:N$t,smartFormatDate:$$t,isToday:D$t,isYesterday:B$t,isTomorrow:j$t,differenceInMinutes:YPe,isSameDay:y_,isThisYear:eLe,formatHumanElapsedTime:M$t};function z$t(e,t){if(e.length===0)return 0;const n=Gwe(e)/e.length;return t?Number(n.toFixed(t)):n}function Gwe(e){return e.reduce((t,r)=>t+r,0)}const F$t={avg:z$t,sum:Gwe};var Po=(e=>(e.LOADER_LOADED="ContainerActionKind:LOADER_LOADED",e.LOADER_IN_PROGRESS_CHANGED="ContainerActionKind:LOADER_IN_PROGRESS_CHANGED",e.LOADER_IS_REFETCHING_CHANGED="ContainerActionKind:LOADER_IS_REFETCHING_CHANGED",e.LOADER_ERROR="ContainerActionKind:LOADER_ERROR",e.EVENT_HANDLER_STARTED="ContainerActionKind:EVENT_HANDLER_STARTED",e.EVENT_HANDLER_COMPLETED="ContainerActionKind:EVENT_HANDLER_COMPLETED",e.EVENT_HANDLER_ERROR="ContainerActionKind:EVENT_HANDLER_ERROR",e.COMPONENT_STATE_CHANGED="ContainerActionKind:COMPONENT_STATE_CHANGED",e.STATE_PART_CHANGED="ContainerActionKind:STATE_PART_CHANGED",e))(Po||{});function W$t(e={}){const t=Object.keys(e);function r(o,i=new Set){if(!t.includes(o))return[o];i.add(o);const a=[];return e[o].forEach(l=>{i.has(l)||(i.add(l),a.push(...r(l,i)))}),a}const n={};return t.forEach(o=>{n[o]=[...new Set(r(o))]}),n}const V$t=100;function U$t(e){const t=e.collectStateTransitions;let r,n;return tl((o,i)=>{const{uid:a}=i.payload;if(a===void 0&&i.type!==Po.STATE_PART_CHANGED)return console.error("uid not provided for control component",{state:o,action:i}),o;if(t)try{r=Ql(o[a])}catch(s){console.error("Error while cloning previous value",s)}switch(i.type){case Po.LOADER_IN_PROGRESS_CHANGED:{o[a]={...o[a],inProgress:i.payload.inProgress},l(o[a]);break}case Po.LOADER_IS_REFETCHING_CHANGED:{o[a]={...o[a],isRefetching:i.payload.isRefetching},l(o[a]);break}case Po.LOADER_LOADED:{const{data:s,pageInfo:u}=i.payload;o[a]={value:s,byId:Array.isArray(s)?dPe(s,c=>c.$id):void 0,inProgress:!1,loaded:s!==void 0,pageInfo:u},l(o[a]);break}case Po.LOADER_ERROR:{const{error:s}=i.payload;o[a]={...o[a],error:s,inProgress:!1,loaded:!0},l(o[a]);break}case Po.EVENT_HANDLER_STARTED:{const{eventName:s}=i.payload,u=`${s}InProgress`;o[a]={...o[a],[u]:!0},l(o[a]);break}case Po.EVENT_HANDLER_COMPLETED:{const{eventName:s}=i.payload,u=`${s}InProgress`;o[a]={...o[a],[u]:!1},l(o[a]);break}case Po.EVENT_HANDLER_ERROR:{const{eventName:s}=i.payload,u=`${s}InProgress`;o[a]={...o[a],[u]:!1},l(o[a]);break}case Po.COMPONENT_STATE_CHANGED:{const{state:s}=i.payload;o[a]={...o[a],...s},l(o[a]);break}case Po.STATE_PART_CHANGED:{const{path:s,value:u,target:c,actionType:d,localVars:f}=i.payload;if(d==="unset")jPe(o,s);else{let p=f;RPe(o,s,u,(g,v,b)=>{if(p=p==null?void 0:p[v],g===void 0&&p===void 0&&Kl(c))return Object(g)}),l(o)}break}default:throw new Error}if(t){const s={action:i.type,uid:a,prevState:r,nextState:n};e.stateTransitions&&(e.stateTransitions.length>=V$t&&e.stateTransitions.shift(),e.stateTransitions.push(s))}function l(s){if(t)try{n=Ql(s)}catch(u){console.error("Error while cloning next value",u)}}})}function Ywe(e,t,r=[]){const n=i=>r.concat(i).join("."),o=new WeakMap;return new Proxy(e,{get:function(i,a,l){const s=Reflect.get(i,a,l);return s&&!s._ARROW_EXPR_&&!Object.isFrozen(s)&&typeof s=="object"&&["Array","Object"].includes(s.constructor.name)?(o.has(s)||o.set(s,Ywe(s,t,r.concat(a))),o.get(s)):s},set:function(i,a,l,s){return t({action:"set",path:n(a),pathArray:r.concat(a),target:i,newValue:l,previousValue:Reflect.get(i,a,s)}),Reflect.set(i,a,l,s)},deleteProperty:function(i,a){return t({action:"unset",path:n(a),pathArray:r.concat(a),target:i}),Reflect.deleteProperty(i,a)}})}function q$t(e,t,r){const n=zd.get(e);return n?(t.unshift(r),n):e}const zd=new Map;zd.set(Array.prototype.filter,Y$t),zd.set(Array.prototype.forEach,K$t),zd.set(Array.prototype.map,X$t),zd.set(Array.prototype.every,Q$t),zd.set(Array.prototype.findIndex,J$t),zd.set(Array.prototype.find,Z$t),zd.set(Array.prototype.flatMap,e7t),zd.set(Array.prototype.some,G$t);async function G$t(e,t){const r=await Promise.all(e.map(t));return e.some((n,o)=>r[o])}async function Y$t(e,t){const r=await Promise.all(e.map(t));return e.filter((n,o)=>r[o])}async function K$t(e,t){for(let r=0;r<e.length;r++)await t(e[r],r,e)}async function X$t(e,t){const r=[];for(let n=0;n<e.length;n++)r.push(await t(e[n],n,e));return r}async function Q$t(e,t){const r=await Promise.all(e.map(t));return r.every((n,o)=>r[o])}async function Z$t(e,t){const r=await Promise.all(e.map(t));return e.find((n,o)=>r[o])}async function J$t(e,t){const r=await Promise.all(e.map(t));return e.findIndex((n,o)=>r[o])}async function e7t(e,t){const r=await Promise.all(e.map(t));return e.flatMap((n,o)=>r[o])}async function qa(e,t,r){const n=[];return hy(t),r??(r=t.mainThread),await pB(n,e,t,r??t.mainThread)}async function t7t(e,t,r,...n){if(e.type!==Tn)throw new Error("executeArrowExpression expects an 'ArrowExpression' object.");return await(await Q4(pB,e))(e.args,t,r??t.mainThread,...n)}async function pB(e,t,r,n){r.options||(r.options={defaultToOptionalMemberAccess:!0});const o=pB;try{switch(t.type){case KT:return m7t(o,e,t,r,n);case $n:return FX(e,t,n);case Qt:return WX(e,t,r,n);case as:return await r7t(o,e,t,r,n);case ld:return await n7t(o,e,t,r,n);case eu:return await o7t(o,e,t,r,n);case tu:return await i7t(o,e,t,r,n);case ru:return await a7t(o,e,t,r,n);case ay:return await l7t(o,e,t,r,n);case ni:return await s7t(o,e,t,r,n);case ly:return await u7t(o,e,t,r,n);case sd:return await c7t(o,e,t,r,n);case Dp:case sy:return await d7t(o,e,t,r,n);case jv:return await f7t(o,e,t,r,n);case Tn:return KX(e,t,n);case oi:throw new Error("Cannot use spread expression (...) with the current intermediate value.");default:throw new Error(`Unknown expression tree node: ${t.type}`)}}catch(i){throw i}}async function r7t(e,t,r,n,o){return await e(t,r.obj,n,o),await ga(r.obj,o),cS(t,r,n,o)}async function n7t(e,t,r,n,o){return await e(t,r.obj,n,o),await ga(r.obj,o),await e(t,r.member,n,o),t.pop(),await ga(r.member,o),VX(t,r,n,o)}async function o7t(e,t,r,n,o){if(!r.exprs||r.exprs.length===0)throw new Error("Missing expression sequence");const i=r.exprs.map(async l=>{const s=await e(t,l,n,o);return Sn(l,{value:s},o),t.pop(),s}),a=i[i.length-1];return t.push(a),a}async function i7t(e,t,r,n,o){const i=[];for(const a of r.items)if(a.type===oi){const l=await e(t,a.expr,n,o);if(t.pop(),!Array.isArray(l))throw new Error("Spread operator within an array literal expects an array operand.");i.push(...l)}else i.push(await e(t,a,n,o)),t.pop(),t.push(i);return Sn(r,{value:i},o),t.push(i),i}async function a7t(e,t,r,n,o){const i={};for(const a of r.props){if(!Array.isArray(a)){const s=await e(t,a.expr,n,o);if(t.pop(),Array.isArray(s))for(let u=0;u<s.length;u++)i[u]=s[u];else if(typeof s=="object")for(const[u,c]of Object.entries(s))i[u]=c;continue}let l;switch(a[0].type){case $n:l=a[0].value;break;case Qt:l=a[0].name;break;default:l=await e(t,a[0],n,o),t.pop();break}i[l]=await e(t,a[1],n,o),t.pop()}return Sn(r,{value:i},o),t.push(i),i}async function l7t(e,t,r,n,o){return await e(t,r.expr,n,o),t.pop(),await ga(r.expr,o),UX(r,t,n,o)}async function s7t(e,t,r,n,o){await e(t,r.left,n,o),t.pop();const i=await ga(r.left,o);return r.op==="&&"&&!i?(Sn(r,{value:i},o),i):r.op==="||"&&i?(Sn(r,{value:i},o),i):(await e(t,r.right,n,o),t.pop(),await ga(r.right,o),qX(r,t,n,o))}async function u7t(e,t,r,n,o){await e(t,r.cond,n,o),t.pop();const i=await ga(r.cond,o),a=await e(t,i?r.thenE:r.elseE,n,o);return Sn(r,{value:a},o),a}async function c7t(e,t,r,n,o){const i=r.leftValue,a=Rf(i,n,o),l=a&&a.type!=="block";l&&n.onWillUpdate&&n.onWillUpdate(a,a.name,"assignment"),await e(t,i,n,o),t.pop(),await ga(i,o),await e(t,r.expr,n,o),t.pop(),await ga(r.expr,o);const s=GX(t,r,n,o);return l&&n.onDidUpdate&&n.onDidUpdate(a,a.name,"assignment"),s}async function d7t(e,t,r,n,o){const i=Rf(r.expr,n,o),a=i&&i.type!=="block";a&&n.onWillUpdate&&n.onWillUpdate(i,i.name,"pre-post"),await e(t,r.expr,n,o),t.pop(),await ga(r.expr,o);const l=YX(t,r,n,o);return a&&n.onDidUpdate&&n.onDidUpdate(i,i.name,"pre-post"),l}async function f7t(e,t,r,n,o){var g,v;let i,a=null;if(r.obj.type===as){const b=await e(t,r.obj.obj,n,o);await ga(r.obj.obj,o),i=cS(t,r.obj,n,o),r.obj.obj.type===Qt&&(b!=null&&b._SUPPORT_IMPLICIT_CONTEXT)&&(a=b)}else await e(t,r.obj,n,o),i=await ga(r.obj,o);t.pop();const l=[];if(i!=null&&i._ARROW_EXPR_)l.push(i.args,n,o,...r.arguments.map(b=>({...b,_EXPRESSION_:!0}))),i=await Q4(e,i);else if(r.obj.type===Tn)l.push(r.obj.args.map(b=>b.name),n,o,...r.arguments.map(b=>({...b,_EXPRESSION_:!0})));else{for(let b=0;b<r.arguments.length;b++){const y=r.arguments[b];if(y.type===oi){await e([],y.expr,n,o);const w=await ga(y.expr,o);if(!Array.isArray(w))throw new Error("Spread operator within a function invocation expects an array operand.");l.push(...w)}else if(y.type===Tn){const w=await Q4(e,y),k=async(...E)=>w(y.args,n,o,...E);l.push(k)}else{await e([],y,n,o);const w=await ga(y,o);if(w!=null&&w._ARROW_EXPR_){const k=await Q4(e,w),E=(..._)=>k(w.args,n,o,..._);l.push(E)}else l.push(w)}}if(a)if(n.implicitContextGetter){const b=n.implicitContextGetter(a);l.unshift(b)}else throw new Error("Cannot use implicitContextGetter, it is undefined")}const s=MX(i);if(s.banned)throw new Error(`Function ${((g=s.func)==null?void 0:g.name)??"unknown"} is not allowed to call. ${(s==null?void 0:s.help)??""}`);const u=t.length>0?t.pop():n.localContext;i=q$t(i,l,u);const c=Rf(r.obj,n,o),d=c&&c.type!=="block";d&&n.onWillUpdate&&n.onWillUpdate(c,c.name,"function-call");const f=(v=n.options)!=null&&v.defaultToOptionalMemberAccess?i==null?void 0:i.call(u,...l):i.call(u,...l);let p=await Kwe(f);return d&&n.onDidUpdate&&n.onDidUpdate(c,c.name,"function-call"),Sn(r,{value:p},o),t.push(p),p}async function Q4(e,t){return async(...r)=>{const n=r[1],o=r[2],i={parent:o,childThreads:[],blocks:[{vars:{}}],loops:[],breakLabelValue:-1,closures:t.closureContext};if(o.childThreads.push(i),t.name){const f={vars:{}};i.blocks??(i.blocks=[]),i.blocks.push(f),f.vars[t.name]=t,f.constVars=new Set([t.name])}const a={vars:{}};i.blocks??(i.blocks=[]),i.blocks.push(a);const l=r[0];let s=!1;for(let f=0;f<l.length;f++){const p=l[f];let g;switch(p.type){case Qt:{g={type:gl,id:p.name};break}case Bp:{g={type:gl,id:p.id,aDestr:p.aDestr,oDestr:p.oDestr};break}case oi:{s=!0,g={type:gl,id:p.expr.name};break}default:throw new Error("Unexpected arrow argument specification")}if(g)if(s){const v=r.slice(f+3);let b=[];for(const y of v)y!=null&&y._EXPRESSION_?b.push(await e([],y,n,o)):b.push(y);await Z4(a,n,o,[g],!1,!0,b)}else{let v=r[f+3];v!=null&&v._EXPRESSION_&&(v=await e([],v,n,o)),await Z4(a,n,o,[g],!1,!0,v)}}let u,c;switch(t.statement.type){case os:c=[];break;case is:c=[{type:Sf,expr:t.statement.expr}];break;case ns:c=t.statement.stmts;break;default:throw new Error(`Arrow expression with a body of '${t.statement.type}' is not supported yet.`)}await hB(c,n,i),u=i.returnValue;const d=o.childThreads.indexOf(i);if(d<0)throw new Error("Cannot find thread to remove.");return o.childThreads.splice(d,1),i.blocks.pop(),u}}async function Kwe(e){const t=new Map;return r(e);async function r(n){if(n==null)return n;const o=t.get(n);if(o)return o;if(zX(n)){const i=await n;return t.set(n,i),r(i)}if(t.set(n,n),Array.isArray(n)){for(let i=0;i<n.length;i++){const a=await r(n[i]);n[i]!==a&&n.splice(i,1,a)}return n}if(Kl(n)){for(const i of Object.keys(n)){let a=await r(n[i]);n[i]!==a&&(n[i]=a)}return n}return n}}async function m7t(e,t,r,n,o){const i=new Array(r.segments.length);for(let a=0;a<r.segments.length;++a){await e(t,r.segments[a],n,o),t.pop();const l=await ga(r.segments[a],o);i[a]=l}return QX(i)}async function ga(e,t){const r=nu(e,t),n=await Kwe(r==null?void 0:r.value);return Sn(e,{...r,value:n},t),n}async function hB(e,t,r){var a,l,s;r||(r=hy(t)),mS(r,e);const n=new ZX;n.push(un(dd(e)));const o={processedStatements:0,maxQueueLength:n.length,unshiftedItems:0,clearToLabels:0,maxBlocks:0,maxLoops:0};let i=new Date().getTime();for(;n.length>0&&!((a=t.cancellationToken)!=null&&a.cancelled);){if(t.timeout&&new Date().getTime()-i>t.timeout)throw new Error("Script execution timeout");const u=n.dequeue();r.breakLabelValue=n.length>0?n.peek().label:-1;let c;try{await((l=t==null?void 0:t.onStatementStarted)==null?void 0:l.call(t,t,u.statement)),c=await p7t(u.statement,(u==null?void 0:u.execInfo)??{},t,r)}catch(d){if(r.tryBlocks&&r.tryBlocks.length>0){const f=r.tryBlocks[r.tryBlocks.length-1];f.errorToThrow=d,f.errorSource=f.processingPhase,f.processingPhase="error",c={clearToLabel:f.tryLabel}}else d instanceof Vu?Xg(d):Xg(new rx(d),d)}c&&(c.toUnshift&&(n.unshift(c.toUnshift),o.unshiftedItems+=c.toUnshift.length),c.clearToLabel!==void 0&&(n.clearToLabel(c.clearToLabel),o.clearToLabels++)),await((s=t==null?void 0:t.onStatementCompleted)==null?void 0:s.call(t,t,u.statement)),n.length>o.maxQueueLength&&(o.maxQueueLength=n.length),r.blocks&&r.blocks.length>o.maxBlocks&&(o.maxBlocks=r.blocks.length),r.loops&&r.loops.length>o.maxLoops&&(o.maxLoops=r.loops.length),o.processedStatements++}return o}async function p7t(e,t,r,n){let o=[],i;switch(e.type){case $p:break;case Zx:if(n!==r.mainThread)throw new Error("'var' declarations are not allowed within functions");break;case os:break;case ns:if(e.stmts.length===0)break;n.blocks??(n.blocks=[]),n.blocks.push({vars:{}}),mS(n,e.stmts),o=un([...dd(e.stmts),py()]);break;case is:const a=await qa(e.expr,r,n);n.blocks&&n.blocks.length!==0&&(n.blocks[n.blocks.length-1].returnValue=a);break;case ea:const l=await t7t(e.expr,r,n,...r.eventArgs??[]);n.blocks&&n.blocks.length!==0&&(n.blocks[n.blocks.length-1].returnValue=l);break;case Xx:{const u=ii(n);if(!u)throw new Error("Missing block scope");await Z4(u,r,n,e.decls);break}case Qx:{const u=ii(n);if(!u)throw new Error("Missing block scope");await Z4(u,r,n,e.decls,!0);break}case Jx:!!await qa(e.cond,r,n)?o=dS(e.thenB):e.elseB&&(o=dS(e.elseB));break;case Sf:{if(ii(n)===void 0)throw new Error("Return requires a block scope");if(n.returnValue=e.expr?await qa(e.expr,r,n):void 0,(n.tryBlocks??[]).length>0){const c=n.tryBlocks[0];c.exitType="return",c.processingPhase!=="postFinally"&&n.blocks.pop(),i=Pf(n).tryLabel}else i=-1;break}case ey:{let u=t.guard?Fo(n):ss(n);!!await qa(e.cond,r,n)?o=Uv(u,e,n.breakLabelValue):Co(n);break}case ty:{if(!t.guard){o=Uv(ss(n),e,n.breakLabelValue);break}!!await qa(e.cond,r,n)?o=Uv(Fo(n),e,n.breakLabelValue):Co(n);break}case YT:{if(!n.loops||n.loops.length===0)throw new Error("Missing loop scope");let u;for(;n.loops.length>0&&(u=Fo(n),!!u.isSwitch);)n.loops.pop();if(!u)throw new Error("Missing loop scope");if(u.tryBlockDepth>=0&&u.tryBlockDepth<(n.tryBlocks??[]).length){for(let d=u.tryBlockDepth;d<n.tryBlocks.length;d++)n.tryBlocks[u.tryBlockDepth].exitType="continue";i=Pf(n).tryLabel}else i=u.continueLabel,Co(n,!1);break}case GT:{const u=Fo(n);if(u===void 0)throw new Error("Missing loop scope");if(u.isSwitch){i=u.breakLabel;break}if(u.tryBlockDepth>=0&&u.tryBlockDepth<(n.tryBlocks??[]).length){for(let d=u.tryBlockDepth;d<n.tryBlocks.length;d++)n.tryBlocks[u.tryBlockDepth].exitType="break";i=Pf(n).tryLabel}else i=u.breakLabel,Co(n);break}case ry:if(t.guard)if(!e.cond||await qa(e.cond,r,n)){const u=Fo(n);if(e.upd){const c={statement:{type:is,nodeId:Af(),expr:e.upd}};o=un([{statement:e.body},c,{statement:e,execInfo:t}])}else o=un([{statement:e.body},{statement:e,execInfo:t}]);u.breakLabel=n.breakLabelValue??-1,u.continueLabel=o[1].label}else Co(n);else{ss(n,1),n.blocks??(n.blocks=[]),n.blocks.push({vars:{}});const u=fd(e);e.init?o=un([{statement:e.init},u]):o=un([u])}break;case ad:if(t.guard){if(t.keyIndex===void 0||t.keys===void 0)throw new Error("Keys information expected in for..in loop");if(t.keyIndex<t.keys.length){const u=t.keys[t.keyIndex++];switch(e.varB){case"none":{const d={type:sd,leftValue:{type:Qt,name:e.id.name},op:"=",expr:{type:$n,value:u}};await qa(d,r,n);break}case"const":case"let":{const d=ii(n);if(!d)throw new Error("Missing block scope");d.vars[e.id.name]=u,e.varB==="const"&&(d.constVars??(d.constVars=new Set),d.constVars.add(e.id.name))}break}const c=Fo(n);o=un([{statement:e.body},{statement:e,execInfo:t}]),c.breakLabel=n.breakLabelValue??-1,c.continueLabel=o[1].label}else Co(n)}else{const u=await qa(e.expr,r,n);if(u==null)break;ss(n,1),n.blocks??(n.blocks=[]),n.blocks.push({vars:{}}),o=un([{statement:e,execInfo:{guard:!0,keys:Object.keys(u),keyIndex:0}}])}break;case Ef:if(t.guard){if(t.iterator===void 0)throw new Error("Iterator expected in for..of loop");const u=t.iterator.next();if(u.done){Co(n);break}const c=u.value;switch(e.varB){case"none":{const f={type:sd,leftValue:{type:Qt,name:e.id.name},op:"=",expr:{type:$n,value:c}};await qa(f,r,n);break}case"const":case"let":{const f=ii(n);if(!f)throw new Error("Missing block scope");f.vars[e.id.name]=c,e.varB==="const"&&(f.constVars??(f.constVars=new Set),f.constVars.add(e.id.name))}break}const d=Fo(n);o=un([{statement:e.body},{statement:e,execInfo:t}]),d.breakLabel=n.breakLabelValue??-1,d.continueLabel=o[1].label}else{const u=await qa(e.expr,r,n);if(u==null||typeof u[Symbol.iterator]!="function")throw new Error("Object in for..of is not iterable");ss(n,1),n.blocks??(n.blocks=[]),n.blocks.push({vars:{}}),o=un([{statement:e,execInfo:{guard:!0,iterator:u[Symbol.iterator]()}}])}break;case ny:throw new Vu(await qa(e.expr,r,n));case oy:{if(!t.guard){o=tQ(n,eQ(n,e));break}const u=Pf(n);switch(u.processingPhase){case"error":switch(u.errorSource){case"try":if(n.blocks.pop(),e.catchB){if(u.statement.catchV){const d=ii(n);d.vars[u.statement.catchV.name]=u.errorToThrow instanceof Vu?u.errorToThrow.errorObject:u.errorToThrow}delete u.errorToThrow,u.processingPhase="catch",o=rQ(n,u)}else u.statement.finallyB&&(u.processingPhase="finally",o=Hf(n,u));break;case"catch":n.blocks.pop(),u.processingPhase="finally",o=Hf(n,u);break;case"finally":n.blocks.pop(),u.processingPhase="postFinally",o=fS(u);break}break;case"try":u.processingPhase="finally",e.finallyB&&(o=Hf(n,u));break;case"catch":u.processingPhase="finally",e.finallyB&&(o=Hf(n,u));break;case"finally":u.processingPhase="postFinally",o=fS(u);break;case"postFinally":const c=n.tryBlocks.pop();switch(c.exitType){case"break":{const d=Fo(n);if(d===void 0)throw new Error("Missing loop scope");Co(n),i=d.breakLabel;break}case"continue":{const d=Fo(n);if(d===void 0)throw new Error("Missing loop scope");i=d.continueLabel,Co(n,!1);break}case"return":i=-1;break}if(c.errorToThrow)throw c.errorToThrow;break}break}case iy:{if(t.guard)Co(n);else{let u=ss(n);u.isSwitch=!0,n.blocks.push({vars:{}});const c=await qa(e.expr,r,n);let d=-1;for(let p=0;p<e.cases.length;p++){const g=e.cases[p];if(g.caseE===void 0){d=p;break}if(await qa(g.caseE,r,n)===c){d=p;break}}const f=[];if(d>=0)for(let p=d;p<e.cases.length;p++)f.push(...e.cases[p].stmts);o=un([...dd(f),fd(e)]),u.breakLabel=o[o.length-1].label}break}}return t.removeBlockScope&&n.blocks&&n.blocks.length>0&&n.blocks.pop(),{toUnshift:o,clearToLabel:i}}async function Z4(e,t,r,n,o=!1,i=!1,a=void 0){for(let d=0;d<n.length;d++){let f;const p=n[d];i?f=a:p.expr&&(f=await qa(p.expr,t,r)),l(e,p,f,o)}function l(d,f,p,g){if(f.id)s(d,f.id,p,g);else if(f.aDestr)u(d,f.aDestr,p,g);else if(f.oDestr)c(d,f.oDestr,p,g);else throw new Error("Unknown declaration specifier")}function s(d,f,p,g){if(d.vars[f])throw new Error(`Variable ${f} is already declared in the current scope.`);d.vars[f]=p,g&&(d.constVars??(d.constVars=new Set),d.constVars.add(f))}function u(d,f,p,g){for(let v=0;v<f.length;v++){const b=f[v],y=p==null?void 0:p[v];b.id?s(d,b.id,y,g):b.aDestr?u(d,b.aDestr,y,g):b.oDestr&&c(d,b.oDestr,y,g)}}function c(d,f,p,g){for(let v=0;v<f.length;v++){const b=f[v],y=p==null?void 0:p[b.id];b.aDestr?u(d,b.aDestr,y,g):b.oDestr?c(d,b.oDestr,y,g):s(d,b.alias??b.id,y,g)}}}function Xwe(e){const t=new If(e);let r=null;try{r=t.parseStatements()}catch(n){if(t.errors.length>0){const o=t.errors[0];Xg(new tx(`${o.code}(${o.line}, ${o.column}): ${t.errors[0].text}`,e,o.position))}else throw n}if(!t.isEof){const n=t.getTail();Xg(new tx("Invalid tail found",e,e.length-n.length+1))}return r}function gB(e,t){const r=(e==null?void 0:e.length)??0;if(r===0)return[{type:ea,expr:{type:Tn,args:[],statement:{type:os}}}];if(r===1){const i=e[0];if(i.type===is){if(t){if(i.expr.type===Qt)return[o(i.expr)];if(n(i.expr))return[o(i.expr)]}return i.expr.type===Tn?[{type:ea,expr:i.expr}]:[{type:ea,expr:{type:Tn,args:[],statement:e[0]}}]}if(i.type===Sf)return[{type:ea,expr:{type:Tn,args:[],statement:{type:ns,stmts:[i]}}}];if(i.type===ns)return i.stmts[0].type===is&&i.stmts[0].expr.type===Tn?[{type:ea,expr:i.stmts[0].expr}]:[{type:ea,expr:{type:Tn,args:[],statement:e[0]}}]}if(r>1)return[{type:ea,expr:{type:Tn,args:[],statement:{type:ns,stmts:e}}}];return e;function n(i){return(i.type===as||i.type===ld&&i.member.type===$n)&&(n(i.obj)||i.obj.type===Qt)}function o(i){const a=t.eventArgs?t.eventArgs.map((s,u)=>({type:Qt,name:`__arg@@#__${u}__`})):[];t.eventArgs&&t.eventArgs.forEach((s,u)=>{t.localContext[`__arg@@#__${u}__`]=s});const l={type:Tn,args:a,statement:{type:is,expr:{type:jv,obj:i,arguments:[...a]}}};return{type:ea,expr:l}}}async function h7t(e,t,r){const n=gB(Xwe(e));return await hB(n,t,r)}function g7t({node:e,state:t,dispatch:r,lookupAction:n,lookupSyncCallback:o,registerComponentApi:i,onUnmount:a,appContext:l,memoedVarsRef:s}){const u=Hh(),c=m.useMemo(()=>Symbol(e.uid),[e.uid]);m.useEffect(()=>()=>{a(c)},[a,c]);const d=m.useCallback(_=>{i(c,_)},[i,c]),f=m.useCallback((_,S)=>n(_,c,S),[n,c]),p=F_(t),g=m.useMemo(()=>tee(t,l,p,s),[l,s,p,t]),v=m.useCallback(_=>{if(_)return o(g(_),c)},[o,c,g]),b=m.useCallback(_=>{r(v7t(c,_))},[r,c]),y=m.useCallback(_=>{r(b7t(c,_))},[r,c]),w=m.useCallback((_,S)=>{r(x7t(c,_,S))},[r,c]),k=m.useCallback(_=>{r(y7t(c,_))},[r,c]),E=u.lookupLoaderRenderer(e.type);return E?E({loader:e,state:t,dispatch:r,loaderInProgressChanged:b,loaderIsRefetchingChanged:y,loaderLoaded:w,loaderError:k,extractValue:g,registerComponentApi:d,lookupAction:f,lookupSyncCallback:v}):(console.error(`Loader ${e.type} is not available. Did you forget to register it in the loaderRegistry?`),null)}function v7t(e,t){return{type:Po.LOADER_IN_PROGRESS_CHANGED,payload:{uid:e,inProgress:t}}}function b7t(e,t){return{type:Po.LOADER_IS_REFETCHING_CHANGED,payload:{uid:e,isRefetching:t}}}function x7t(e,t,r){return{type:Po.LOADER_LOADED,payload:{uid:e,data:t,pageInfo:r}}}function y7t(e,t){return{type:Po.LOADER_ERROR,payload:{uid:e,error:t}}}const w7t=m.memo(m.forwardRef(function({node:t,componentState:r,dispatch:n,parentDispatch:o,resolvedKey:i,version:a,setVersion:l,statePartChanged:s,registerComponentApi:u,parentRegisterComponentApi:c,layoutContextRef:d,parentRenderContext:f,memoedVarsRef:p,isImplicit:g,uidInfoRef:v,children:b},y){var me;const{apiBoundContainer:w}=t,k=g?o:n,E=g?c:u,_=jo(),{getThemeVar:S}=zr(),O=kv(),A=dl(),I=m.useRef({}),H=m.useRef(r);H.current=r;const P=m.useRef({}),[L,B]=m.useTransition(),z=m.useRef(!0),j=m.useRef(new Map);_n(()=>{for(const X of j.current.values())X()},[a]),m.useEffect(()=>{z.current=!0;const X=j.current;return()=>{z.current=!1;for(const Z of X.values())Z()}},[]);const q=Mt(async(X,Z,te,...se)=>{var Le,Te,qe;const de=()=>Z.description!==void 0&&(te==null?void 0:te.eventName)!==void 0;let ke=[];const we=()=>{ke.length=0;const _e=Ql({...H.current,...(te==null?void 0:te.context)||{}});return _e.$this=H.current[Z],Ywe(_e,Me=>{var Se;const ye=(Se=Me.pathArray)==null?void 0:Se[0];if(ye!=null&&ye.startsWith("$"))throw new Error("Cannot update a read-only variable");ke.push(Me)})},Ae={..._,getThemeVar:S},Ne={appContext:Ae,eventArgs:se,localContext:we(),implicitContextGetter:()=>({uid:Z,state:H.current,getCurrentState:()=>H.current,dispatch:k,appContext:Ae,navigate:O,location:A,lookupAction:(_e,Me,ye={})=>Y(_e,Me,{...ye,ephemeral:!0})}),options:{defaultToOptionalMemberAccess:typeof((Le=_.appGlobals)==null?void 0:Le.defaultToOptionalMemberAccess)=="boolean"?_.appGlobals.defaultToOptionalMemberAccess:!0}};try{let _e;if(typeof X=="string")P.current[X]||(P.current[X]=gB(Xwe(X),Ne)),_e=P.current[X];else if(Qwe(X)){const ye=X.parseId.toString();P.current[ye]||(P.current[ye]=gB(X.statements,Ne)),_e=P.current[ye]}else _e=[{type:ea,expr:X}];if(!(_e!=null&&_e.length))return;de()&&k({type:Po.EVENT_HANDLER_STARTED,payload:{uid:Z.description,eventName:te.eventName}});let Me=0;if(Ne.onStatementCompleted=async ye=>{if(ke.length){Me=0,ke.forEach(lt=>{s(lt.pathArray,Ql(lt.newValue),lt.target,lt.action)});let Se=null;const He=new Promise(lt=>{Se=()=>{lt(null)}}),st=vx();j.current.set(st,Se),B(()=>{l(lt=>lt+1)}),z.current?await He:await cv(0),j.current.delete(st),ke=[]}else Me++,Me>100&&(Me=0,await cv(0));ye.localContext=we()},await hB(_e,Ne),de()&&k({type:Po.EVENT_HANDLER_COMPLETED,payload:{uid:Z.description,eventName:te.eventName}}),(qe=(Te=Ne.mainThread)==null?void 0:Te.blocks)!=null&&qe.length)return Ne.mainThread.blocks[Ne.mainThread.blocks.length-1].returnValue}catch(_e){throw(te==null?void 0:te.signError)!==!1&&_.signError(_e),de()&&k({type:Po.EVENT_HANDLER_ERROR,payload:{uid:Z.description,eventName:te.eventName,error:_e}}),_e}}),W=m.useCallback((X,...Z)=>{var se,de;const te={localContext:Ql(H.current),appContext:_,eventArgs:Z};try{if(JP([{type:ea,expr:X}],te),(de=(se=te.mainThread)==null?void 0:se.blocks)!=null&&de.length)return te.mainThread.blocks[te.mainThread.blocks.length-1].returnValue}catch(ke){throw console.error(ke),ke}},[_]),M=Mt((X,Z,te)=>{var ke;if(Array.isArray(X))throw new Error("Multiple event handlers are not supported");let se,de;if(typeof X=="string")se=`${te==null?void 0:te.eventName};${X}`,de=(...we)=>q(X,Z,te,...Ql(we));else if(Qwe(X))se=`${te==null?void 0:te.eventName};${X.parseId}`,de=(...we)=>q(X,Z,te,...Ql(we));else if(k7t(X))se=`${te==null?void 0:te.eventName};${X.statement.nodeId}`,de=(...we)=>q(X,Z,te,...Ql(we));else if(X.type)se=`${te==null?void 0:te.eventName};${JSON.stringify(X)}`,de=(...we)=>q(X,Z,te,...Ql(we));else throw new Error("Invalid event handler");return te!=null&&te.ephemeral||te!=null&&te.context?de:((ke=I.current[Z])!=null&&ke[se]||(I.current[Z]=I.current[Z]||{},I.current[Z][se]=de),I.current[Z][se])}),V=m.useCallback((X,Z)=>{var se;const te=`sync-callback-${X.nodeId}`;return(se=I.current[Z])!=null&&se[te]||(I.current[Z]=I.current[Z]||{},I.current[Z][te]=Hy(de=>(...ke)=>W(de,...ke))),I.current[Z][te](X)},[W]),N=m.useCallback((X,Z)=>{if(X){if(typeof X=="function")return X;if(X){if(typeof X=="function")return X;if(!X._ARROW_EXPR_)throw new Error("Only arrow expression allowed in sync callback");return V(X,Z)}}},[V]),Y=m.useCallback((X,Z,te)=>{let se=X;if(!X&&Z.description&&(te!=null&&te.eventName)){const de=`${Z.description}_on${bx(te==null?void 0:te.eventName)}`;r[de]&&r[de]._ARROW_EXPR_&&(se=r[de])}if(se)return typeof se=="function"?se:M(se,Z,te)},[r,M]),G=m.useRef(!1);m.useEffect(()=>{if(!t.api||!t.containerUid||G.current)return;G.current=!0;const X={},Z=Symbol("$self");Object.entries(t.api).forEach(([te,se])=>{X[te]=Y(se,Z)}),g||E(Z,X),c(t.containerUid,X)},[Y,t.api,t.containerUid,t.uid,g,c,E]);const F=Mt(X=>{delete I.current[X]}),K=m.useCallback((X,Z,te,se,de)=>{if(typeof X=="string")throw Error("should be resolved for now");const ke=ln(X)?X:[X];if(!ke||!ke.length)return null;const we=ke.length>1,Ae=ke.map((Ne,Le)=>{if(!Ne)return;const Te=o2e({node:Ne,state:r,dispatch:k,appContext:_,lookupAction:Y,lookupSyncCallback:N,registerComponentApi:E,renderChild:K,statePartChanged:s,layoutContext:Z,parentRenderContext:te,memoedVarsRef:p,cleanup:F,uidInfoRef:se});if(Te===void 0)return;let qe=Te;const _e=`${Le}_${Ne.uid}`;return we&&(ee.isValidElement(Te)?qe=ee.cloneElement(Te,{key:_e}):qe=C.jsx(m.Fragment,{children:Te},_e)),qe});return Ae.length===1?de&&Ae[0]&&m.isValidElement(Ae[0])?ee.cloneElement(Ae[0],{ref:no(de,Ae[0].ref)}):Ae[0]:Ae},[r,k,_,Y,N,E,s,p,F]);(me=t.props)!=null&&me.debug&&console.log(`Container: ${i}`,{componentState:r,node:t});const J={},ie=m.useRef({}),oe=t.uses===void 0?v:ie,le=K(t.children,d==null?void 0:d.current,f,oe,y),ce=C7t({uidInfo:J,uidInfoRef:oe,loaders:t.loaders,componentState:r,memoedVarsRef:p,dispatch:w?n:k,registerComponentApi:w?u:E,appContext:_,lookupAction:Y,lookupSyncCallback:N,cleanup:F}),pe=C.jsxs(C.Fragment,{children:[ce,b&&m.isValidElement(le)?m.cloneElement(le,null,b):le]});return C.jsx(m.Fragment,{children:pe},t.uid?`${i}>${Nt(r,t.uid,_,!0)}`:void 0)}));function C7t({uidInfo:e,uidInfoRef:t,loaders:r=Er,componentState:n,dispatch:o,appContext:i,registerComponentApi:a,lookupAction:l,lookupSyncCallback:s,cleanup:u,memoedVarsRef:c}){return r.map(f=>{if(f!=null&&f.uid){if(e[f.uid])throw new Error(`Another ${e[f.uid]} definition in this container already uses the uid '${f.uid}'`);e[f.uid]="loader",t.current[f.uid]={type:"loader",value:"loaderValue",uid:f.uid}}const p=d({loader:f,componentState:n,dispatch:o,appContext:i,registerComponentApi:a,lookupAction:l,lookupSyncCallback:s,memoedVarsRef:c,cleanup:u});if(p!==void 0)return C.jsx(m.Fragment,{children:p},f.uid)});function d({loader:f,componentState:p,dispatch:g,appContext:v,registerComponentApi:b,lookupAction:y,lookupSyncCallback:w,cleanup:k,memoedVarsRef:E}){return!f||!tH(f.when,p,v)?null:C.jsx(g7t,{onUnmount:k,node:f,state:p,dispatch:g,registerComponentApi:b,lookupAction:y,lookupSyncCallback:w,memoedVarsRef:E,appContext:v})}}function Qwe(e){return e.__PARSED===!0}function k7t(e){return e.type===Tn}const _7t=m.memo(m.forwardRef(function({node:t,resolvedKey:r,parentState:n,parentStatePartChanged:o,parentRegisterComponentApi:i,parentDispatch:a,parentRenderContext:l,layoutContextRef:s,uidInfoRef:u,isImplicit:c,children:d,...f},p){const[g,v]=m.useState(0),b=T7t(),y=m.useRef(new Map),w=ri(m.useMemo(()=>S7t(n,t.uses),[t.uses,n])),k=Bwe(),E=U$t(k),[_,S]=m.useReducer(E,Jt),[O,A]=m.useState(Jt),I=ri(m.useMemo(()=>{const F={..._};for(const K of Object.getOwnPropertySymbols(_)){const J=_[K];K.description&&(F[K.description]=J)}if(Reflect.ownKeys(O).length===0)return F;for(const K of Object.getOwnPropertySymbols(O)){const J=O[K];if(K.description){const ie=K.description;F[ie]={...F[ie]||{},...J}}F[K]={...F[K],...J}}return F},[_,O])),H=Zwe(w,I,t.contextVars),P=t.scriptCollected;if(P!=null&&P.moduleErrors&&!Cp(P.moduleErrors))throw new J4(P.moduleErrors);if(t.scriptError&&!Cp(t.scriptError))throw new J4(t.scriptError);const L=F_(_),B=ri({...P==null?void 0:P.functions,...t.functions,...P==null?void 0:P.vars,...t.vars}),z=m.useMemo(()=>{const F={};return Object.entries(B).forEach(([K,J])=>{e5(J)&&J.tree.type===Tn&&(F[K]=YS(J.tree,L))}),W$t(F)},[L,B]),j=Jwe(B,z,H,m.useRef(new Map)),q=ri({...j,...H}),W=Jwe(B,z,q,y),M=E7t(W,I),V=Zwe(w,t.contextVars,M,b),N=m.useCallback((F,K)=>{A(tl(J=>{J[F]||(J[F]={}),Object.entries(K).forEach(([ie,oe])=>{J[F][ie]!==oe&&(J[F][ie]=oe)})}))},[]),Y=m.useRef(I),G=m.useCallback((F,K,J,ie)=>{const oe=F[0];oe in Y.current||oe in W?S({type:Po.STATE_PART_CHANGED,payload:{path:F,value:K,target:J,actionType:ie,localVars:W}}):(!t.uses||t.uses.includes(oe))&&o(F,K,J,ie)},[W,t.uses,o]);return C.jsx(t0,{node:t,location:"container",children:C.jsx(w7t,{resolvedKey:r,node:t,componentState:V,dispatch:S,parentDispatch:a,setVersion:v,version:g,statePartChanged:G,registerComponentApi:N,parentRegisterComponentApi:i,layoutContextRef:s,parentRenderContext:l,memoedVarsRef:y,isImplicit:c,ref:p,uidInfoRef:u,...f,children:d})})})),T7t=()=>{const[e]=O$e(),t=Kq(),r=dl(),n=LY(),o=m.useMemo(()=>{var a;return((a=n==null?void 0:n.linkMap)==null?void 0:a.get(r.pathname))||Jt},[n==null?void 0:n.linkMap,r.pathname]),i=m.useMemo(()=>{const a={};for(const[l,s]of Array.from(e.entries()))a[l]=s;return a},[e]);return m.useMemo(()=>({$pathname:r.pathname,$routeParams:t,$queryParams:i,$linkInfo:o}),[o,r.pathname,i,t])};function S7t(e,t){return t?t.length===0?Jt:SPe(e,t):e}function Zwe(...e){const t=m.useMemo(()=>{let r={};return e.forEach((n=Jt)=>{n!==Jt&&(r={...r,...n})}),r},[e]);return ri(t)}function E7t(e,t){const r=m.useMemo(()=>{const n={...e};return Reflect.ownKeys(t).forEach(o=>{const i=t[o];n[o]===void 0?n[o]=i:Kl(n[o])&&Kl(i)||Array.isArray(n[o])&&Array.isArray(i)?n[o]=nU(Ql(n[o]),i):n[o]=i}),n},[e,t]);return ri(r)}function Jwe(e=Jt,t=Jt,r,n){const o=jo(),i=F_(r),a=m.useMemo(()=>{const l={};return Object.entries(e).forEach(([s,u])=>{if(s==="$props")l[s]=u;else if(!e5(u)&&typeof u!="string")l[s]=u;else{n.current.has(u)||n.current.set(u,{getDependencies:Hy((g,v)=>{if(e5(g))return YS(g.tree,v);const b=sS(g);let y=new Set;return b.forEach(w=>{w.type==="expression"&&(y=new Set([...y,...YS(w.value,v)]))}),Array.from(y)}),obtainValue:Hy((g,v,b,y,w,k)=>{try{return e5(g)?Ci(g.tree,{localContext:v,appContext:b,options:{defaultToOptionalMemberAccess:!0}}):Nt(v,g,b,y)}catch(E){throw console.log(v),new O7t(g,E)}},([g,v,b,y,w,k],[E,_,S,O,A,I])=>xx(w,A)&&xx(k,I))});const c={...l,...r};let d=[];t[s]?d=t[s]:(n.current.get(u).getDependencies(u,i).forEach(g=>{t[g]?d.push(...t[g]):d.push(g)}),d=[...new Set(d)]);const f=A_(c,d),p=A_(o,d);l[s]=n.current.get(u).obtainValue(u,c,o,!0,f,p)}}),l},[o,r,t,n,i,e]);return ri(a)}class J4 extends Error{constructor(t){const n=(t.Main||[]).map(o=>{let i=`${o.code} : ${o.text}`;const a=[];return o.line!==void 0&&a.push(`line:${o.line}`),o.column!==void 0&&a.push(`column:${o.column}`),a.length&&(i=`${i} (${a.join(", ")})`),i});super(n.join(`
|
|
634
|
+
c0.166,0,0.3,0.134,0.3,0.3v4.367c0,0.166-0.134,0.3-0.3,0.3h-0.409C11.626,17.473,11.492,17.339,11.492,17.173z`}}]}]})(e)}const N8t=e=>m.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.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"}),m.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"}),m.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"})),$8t=e=>C.jsx(N8t,{...e}),D8t=e=>m.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",...e},m.createElement("g",{id:"surface1"},m.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 "}))),B8t=e=>C.jsx(D8t,{...e}),j8t=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.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"}),m.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"})),M8t={binding:"_binding_14mdd_1"},z8t=e=>C.jsx(j8t,{className:M8t.binding,...e}),F8t=e=>C.jsx(CQ,{...e}),W8t=e=>m.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.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"}),m.createElement("path",{d:"M2.18018 4.63965L8.00018 8.00632L13.8202 4.63965",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M8 14.72V8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),V8t=e=>C.jsx(W8t,{...e}),U8t=e=>C.jsx($We,{...e}),q8t=e=>C.jsx(yQ,{...e}),G8t=e=>C.jsx(wQ,{...e}),Y8t=e=>m.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.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"}),m.createElement("path",{d:"M8.6665 1.33301V5.99967H13.3332",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M9.3335 10.6667L10.6668 9.33333L9.3335 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M6.6665 8.00033L5.33317 9.33366L6.6665 10.667",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),K8t=e=>C.jsx(Y8t,{...e}),X8t=e=>m.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.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"}),m.createElement("path",{d:"M5 2.80664L8 4.53997L11 2.80664",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M5 13.1933V9.73333L2 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M14 8L11 9.73333V13.1933",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M2.18018 4.63965L8.00018 8.00632L13.8202 4.63965",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M8 14.72V8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),Q8t=e=>C.jsx(X8t,{...e}),Z8t=e=>C.jsx(kQ,{...e}),J8t=e=>C.jsx(v8t,{...e}),eNt=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.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"}),m.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"}),m.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"})),tNt={database:"_database_14jkq_1"},rNt=e=>C.jsx(eNt,{className:tNt.database,...e}),nNt=e=>m.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.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"}),m.createElement("path",{d:"M9.3335 1.33301V5.33301H13.3335",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M10.6668 8.66699H5.3335",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M10.6668 11.333H5.3335",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M6.66683 6H6.00016H5.3335",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),oNt=e=>C.jsx(nNt,{...e}),iNt=e=>m.createElement("svg",{width:22,height:28,viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{clipPath:"url(#clip0_1811_15061)"},m.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"}),m.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"}),m.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"}),m.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"}),m.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"}),m.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"})),m.createElement("defs",null,m.createElement("clipPath",{id:"clip0_1811_15061"},m.createElement("rect",{width:22,height:28,fill:"white"})))),Fwe=e=>C.jsx(iNt,{...e}),aNt=e=>C.jsx(u8t,{...e}),lNt=e=>C.jsx(c8t,{...e}),sNt=e=>C.jsx(g8t,{...e}),uNt=e=>m.createElement("svg",{viewBox:"0 0 30 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M7.58122 0H1C0.447715 0 0 0.447715 0 0.999999V21.0737H30V3.71273H12.0217L7.58122 0Z",fill:"#ADDAE9"}),m.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"})),cNt=e=>C.jsx(uNt,{...e}),dNt=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.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"}),m.createElement("path",{d:"M3.26953 6.96094L11.9995 12.0109L20.7295 6.96094",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M12 22.08V12",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),fNt=e=>C.jsx(dNt,{...e}),mNt=e=>C.jsx(Jnt,{...e}),pNt=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M22 3H2L10 12.46V19L14 21V12.46L22 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),hNt=e=>C.jsx(pNt,{...e}),gNt=e=>m.createElement("svg",{viewBox:"0 0 30 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M7.58122 0H1C0.447715 0 0 0.447715 0 0.999999V21.0737H30V3.71273H12.0217L7.58122 0Z",fill:"#ADDAE9"}),m.createElement("rect",{x:1.2179,y:2.44446,width:28.0128,height:15.8889,fill:"white"}),m.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"})),vNt=e=>C.jsx(gNt,{...e}),bNt=e=>C.jsx(p8t,{...e}),xNt=e=>C.jsx(qWe,{...e}),yNt=e=>C.jsx(h8t,{...e}),wNt=e=>m.createElement("svg",{width:22,height:28,viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{clipPath:"url(#clip0_1960_14704)"},m.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"}),m.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"}),m.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"}),m.createElement("path",{d:"M9 17L14.1962 21.5H3.80385L9 17Z",fill:"#8BDC6F"}),m.createElement("path",{d:"M13 14L18.1963 21.5H7.80396L13 14Z",fill:"#8BDC6F"}),m.createElement("circle",{cx:7,cy:11,r:2,fill:"#EFC942"})),m.createElement("defs",null,m.createElement("clipPath",{id:"clip0_1960_14704"},m.createElement("rect",{width:22,height:28,fill:"white"})))),CNt=e=>C.jsx(wNt,{...e});function kNt(e){return nt({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"}}]})(e)}const _Nt=e=>C.jsx(kNt,{...e}),TNt=e=>C.jsx(kQ,{...e}),SNt=e=>C.jsx(H8t,{...e}),ENt=e=>C.jsx(KWe,{...e}),ONt=e=>m.createElement("svg",{viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{clipPath:"url(#clip0_1813_15242)"},m.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"}),m.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"}),m.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"}),m.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"}),m.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"}),m.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"}),m.createElement("path",{d:"M12.9603 15.716V20H13.9023V18.23H15.6963V17.498H13.9023V16.508H15.9723V15.716H12.9603Z",fill:"white"})),m.createElement("defs",null,m.createElement("clipPath",{id:"clip0_1813_15242"},m.createElement("rect",{width:22,height:28,fill:"white"})))),ANt=e=>C.jsx(ONt,{...e}),INt=e=>C.jsx(P8t,{...e}),RNt=e=>C.jsx(XWe,{...e}),PNt=e=>m.createElement("svg",{viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{clipPath:"url(#clip0_1960_14734)"},m.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"}),m.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"}),m.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"}),m.createElement("path",{d:"M9 17L14.1962 21.5H3.80385L9 17Z",fill:"#8BDC6F"}),m.createElement("path",{d:"M13 14L18.1963 21.5H7.80396L13 14Z",fill:"#8BDC6F"}),m.createElement("circle",{cx:7,cy:11,r:2,fill:"#EFC942"})),m.createElement("defs",null,m.createElement("clipPath",{id:"clip0_1960_14734"},m.createElement("rect",{width:22,height:28,fill:"white"})))),HNt=e=>C.jsx(PNt,{...e}),LNt=e=>C.jsx(not,{...e}),NNt=e=>C.jsx(ZWe,{...e}),$Nt=e=>m.createElement("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.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"}),m.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"}),m.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"}),m.createElement("path",{d:"M8.58984 13.51L15.4198 17.49",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M15.4098 6.51001L8.58984 10.49",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),DNt=e=>C.jsx($Nt,{...e}),BNt=e=>C.jsx(m8t,{...e}),jNt=e=>m.createElement("svg",{width:22,height:28,viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{clipPath:"url(#clip0_1811_14941)"},m.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"}),m.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"}),m.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"}),m.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"}),m.createElement("path",{d:"M4.62629 16.508V20H5.56828V16.508H6.85229V15.716H3.34229V16.508H4.62629Z",fill:"white"}),m.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"}),m.createElement("path",{d:"M13.4962 16.508V20H14.4382V16.508H15.7222V15.716H12.2122V16.508H13.4962Z",fill:"white"})),m.createElement("defs",null,m.createElement("clipPath",{id:"clip0_1811_14941"},m.createElement("rect",{width:22,height:28,fill:"white"})))),MNt=e=>C.jsx(jNt,{...e}),zNt=e=>m.createElement("svg",{viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{clipPath:"url(#clip0_1811_14989)"},m.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"}),m.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"}),m.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"})),m.createElement("defs",null,m.createElement("clipPath",{id:"clip0_1811_14989"},m.createElement("rect",{width:22,height:28,fill:"white"})))),FNt=e=>C.jsx(zNt,{...e}),WNt=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.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"}),m.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"}),m.createElement("path",{d:"M8.1582 2.67383L9.06952 5.30645",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M18.4316 17.667L16.8262 15.3902",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M5 5.28906L7.23775 6.94848",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M20.7402 14.2783L18.1301 13.3044",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),VNt=e=>C.jsx(WNt,{...e}),UNt=e=>C.jsx(_Q,{...e}),qNt=e=>m.createElement("svg",{width:22,height:28,viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.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"}),m.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"}),m.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"}),m.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"}),m.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"})),GNt=e=>C.jsx(qNt,{...e}),YNt=e=>m.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",...e},m.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),m.createElement("path",{d:"M3 17l6 -6l4 4l8 -8"}),m.createElement("path",{d:"M14 7l7 0l0 7"})),KNt=e=>C.jsx(YNt,{...e}),XNt=e=>m.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",...e},m.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),m.createElement("path",{d:"M3 7l6 6l4 -4l8 8"}),m.createElement("path",{d:"M21 10l0 7l-7 0"})),QNt=e=>C.jsx(XNt,{...e}),ZNt=e=>C.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",...e,children:[C.jsx("rect",{id:"sortasc",x:"0",y:"0",width:"24",height:"24",fill:"none"}),C.jsx("path",{d:"M12,2l7,8l-14,-0l7,-8Z",fill:"currentColor"}),C.jsx("path",{d:"M12,22l-7,-8l14,-0l-7,8Z",fill:"currentColor",fillOpacity:.5})]}),JNt=e=>C.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",...e,children:[C.jsx("rect",{id:"sortasc",x:"0",y:"0",width:"24",height:"24",fill:"none"}),C.jsx("path",{d:"M12,2l7,8l-14,-0l7,-8Z",fill:"currentColor",fillOpacity:.5}),C.jsx("path",{d:"M12,22l-7,-8l14,-0l-7,8Z",fill:"currentColor"})]}),e$t=e=>C.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",...e,children:[C.jsx("rect",{id:"sortasc",x:"0",y:"0",width:"24",height:"24",fill:"none"}),C.jsx("path",{d:"M12,2l7,8l-14,-0l7,-8Z",fill:"currentColor",fillOpacity:.5}),C.jsx("path",{d:"M12,22l-7,-8l14,-0l-7,8Z",fill:"currentColor",fillOpacity:.5})]}),t$t=e=>m.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",...e},m.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),m.createElement("path",{d:"M5 12l14 0"})),r$t=e=>C.jsx(t$t,{...e}),n$t=e=>m.createElement("svg",{width:56,height:56,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{filter:"url(#filter0_d_8732_12671)"},m.createElement("rect",{x:10,y:10,width:36,height:36,rx:6,fill:"#143566",shapeRendering:"crispEdges"}),m.createElement("path",{d:"M28.834 18.6667H23.0007C22.5586 18.6667 22.1347 18.8423 21.8221 19.1549C21.5096 19.4675 21.334 19.8914 21.334 20.3334V33.6667C21.334 34.1088 21.5096 34.5327 21.8221 34.8453C22.1347 35.1578 22.5586 35.3334 23.0007 35.3334H33.0007C33.4427 35.3334 33.8666 35.1578 34.1792 34.8453C34.4917 34.5327 34.6673 34.1088 34.6673 33.6667V24.5001L28.834 18.6667Z",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M28.834 18.6667V24.5001H34.6673",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M29.666 30.3333L31.3327 28.6667L29.666 27",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M26.334 26.9999L24.6673 28.6666L26.334 30.3333",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),m.createElement("defs",null,m.createElement("filter",{id:"filter0_d_8732_12671",x:0,y:0,width:56,height:56,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},m.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),m.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),m.createElement("feOffset",null),m.createElement("feGaussianBlur",{stdDeviation:5}),m.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),m.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),m.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_8732_12671"}),m.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_8732_12671",result:"shape"})))),o$t=e=>C.jsx(n$t,{...e}),i$t=e=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e},m.createElement("path",{d:"M600-640 480-760l120-120 120 120-120 120Zm200 120-80-80 80-80 80 80-80 80ZM483-80q-84 0-157.5-32t-128-86.5Q143-253 111-326.5T79-484q0-146 93-257.5T409-880q-18 99 11 193.5T520-521q71 71 165.5 100T879-410q-26 144-138 237T483-80Zm0-80q88 0 163-44t118-121q-86-8-163-43.5T463-465q-61-61-97-138t-43-163q-77 43-120.5 118.5T159-484q0 135 94.5 229.5T483-160Zm-20-305Z"})),a$t=e=>C.jsx(i$t,{...e}),l$t=e=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e},m.createElement("path",{d:"m354-287 126-76 126 77-33-144 111-96-146-13-58-136-58 135-146 13 111 97-33 143ZM233-120l65-281L80-590l288-25 112-265 112 265 288 25-218 189 65 281-247-149-247 149Zm457-560 21-89-71-59 94-8 36-84 36 84 94 8-71 59 21 89-80-47-80 47ZM480-481Z"})),s$t=e=>C.jsx(l$t,{...e}),u$t=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8V16Z",fill:"#394150"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM12 4V8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16V20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4Z",fill:"#394150"})),c$t=e=>C.jsx(u$t,{...e}),d$t=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M12 8C9.7909 8 8 9.7909 8 12C8 14.2091 9.7909 16 12 16L12 8Z",fill:"white"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C17.5229 22 22 17.5229 22 12C22 6.4772 17.5228 2 12 2C6.4772 2 2 6.4772 2 12C2 17.5229 6.4772 22 12 22ZM12 20L12 16C14.2091 16 16 14.2091 16 12C16 9.7909 14.2091 8 12 8L12 4C7.5817 4 4 7.5817 4 12C4 16.4183 7.5817 20 12 20Z",fill:"white"})),f$t=e=>C.jsx(d$t,{...e}),m$t=e=>m.createElement("svg",{width:37,height:36,viewBox:"0 0 37 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M19.6797 30.6797H16.7538C16.4842 30.6797 16.2661 30.8978 16.2661 31.1673V31.655C16.2661 32.7308 17.141 33.6056 18.2168 33.6056C19.2925 33.6056 20.1674 32.7308 20.1674 31.655V31.1673C20.1674 30.8978 19.9493 30.6797 19.6797 30.6797Z",fill:"#868491"}),m.createElement("path",{d:"M18.2163 30.6797H16.7538C16.4842 30.6797 16.2661 30.8978 16.2661 31.1673V31.655C16.2661 32.7307 17.1407 33.6053 18.2163 33.6056V30.6797Z",fill:"#9A9A9A"}),m.createElement("path",{d:"M25.8957 5.43603C23.6164 3.29393 20.631 2.22101 17.4998 2.41742C11.7935 2.7725 7.18363 7.53242 7.00551 13.2541C6.87409 17.4935 9.10093 21.3967 12.8174 23.4411C13.7413 23.9497 14.3152 24.9265 14.3152 25.9908V29.704C14.3152 30.7798 15.19 31.6547 16.2658 31.6547H20.1671C21.2429 31.6547 22.1177 30.7798 22.1177 29.704V25.9908C22.1177 24.9274 22.6959 23.9483 23.6274 23.4349C27.2082 21.4595 29.4326 17.6954 29.4326 13.6112C29.4326 10.5281 28.1435 7.54833 25.8957 5.43603Z",fill:"#FFD93C"}),m.createElement("path",{d:"M18.2172 22.9604C23.3799 22.9604 27.5651 18.7752 27.5651 13.6125C27.5651 8.44982 23.3799 4.26465 18.2172 4.26465C13.0546 4.26465 8.86938 8.44982 8.86938 13.6125C8.86938 18.7752 13.0546 22.9604 18.2172 22.9604Z",fill:"#FFE980"}),m.createElement("path",{d:"M19.922 16.5376C19.2738 16.5376 18.9424 16.1594 18.701 15.8837C18.4881 15.6408 18.4033 15.5622 18.2133 15.5622C18.0242 15.5622 17.94 15.6408 17.728 15.8832C17.5004 16.1437 17.156 16.5376 16.5079 16.5376C15.8602 16.5376 15.5159 16.1437 15.2883 15.8832C15.0763 15.6408 14.9921 15.5622 14.803 15.5622C14.5334 15.5622 14.3153 15.3441 14.3153 15.0746C14.3153 14.805 14.5334 14.5869 14.803 14.5869C15.4506 14.5869 15.7949 14.9808 16.0226 15.2412C16.2346 15.4837 16.3188 15.5622 16.5079 15.5622C16.697 15.5622 16.7817 15.4837 16.9937 15.2412C17.2213 14.9808 17.5656 14.5869 18.2133 14.5869C18.8615 14.5869 19.1929 14.965 19.4343 15.2408C19.6472 15.4837 19.732 15.5622 19.922 15.5622C20.1115 15.5622 20.1963 15.4837 20.4092 15.2412C20.6373 14.9808 20.9816 14.5869 21.6302 14.5869C21.8998 14.5869 22.1179 14.805 22.1179 15.0746C22.1179 15.3441 21.8998 15.5622 21.6302 15.5622C21.4402 15.5622 21.3554 15.6408 21.1425 15.8837C20.9144 16.1442 20.5702 16.5376 19.922 16.5376Z",fill:"#FFF7CE"}),m.createElement("path",{d:"M16.7533 25.8024C16.529 25.8024 16.3271 25.6466 16.277 25.4185L13.8387 14.2023C13.7815 13.939 13.9488 13.6794 14.2116 13.6218C14.4764 13.5637 14.7345 13.7319 14.7921 13.9947L17.2304 25.2109C17.2876 25.4742 17.1204 25.7338 16.8575 25.7914C16.8224 25.7991 16.7875 25.8024 16.7533 25.8024Z",fill:"#FFF7CE"}),m.createElement("path",{d:"M19.6802 25.8022C19.6458 25.8022 19.6111 25.7989 19.5759 25.7913C19.313 25.7337 19.1458 25.4741 19.203 25.2108L21.6413 13.9946C21.6989 13.7317 21.9561 13.564 22.2218 13.6217C22.4847 13.6793 22.6518 13.9389 22.5947 14.2022L20.1564 25.4184C20.1064 25.6466 19.9045 25.8022 19.6802 25.8022Z",fill:"#FFF7CE"}),m.createElement("path",{d:"M14.2314 25.3164C14.2833 25.5354 14.3152 25.761 14.3152 25.9922V29.7053C14.3152 30.7811 15.1901 31.656 16.2658 31.656H20.1671C21.2429 31.656 22.1178 30.7811 22.1178 29.7053V25.9922C22.1178 25.7612 22.1499 25.5355 22.2021 25.3164H14.2314Z",fill:"#B4B6BC"}),m.createElement("path",{d:"M18.2162 25.3164H14.2314C14.2833 25.5354 14.3152 25.761 14.3152 25.9922V29.7053C14.3152 30.7811 15.1901 31.656 16.2658 31.656H18.2162V25.3164Z",fill:"#B4B6BC"}),m.createElement("path",{d:"M22.1175 26.7773H18.2162V27.7527H22.1175V26.7773Z",fill:"#9A9A9A"}),m.createElement("path",{d:"M22.1177 28.7285H18.2164V29.7038H22.1177V28.7285Z",fill:"#9A9A9A"}),m.createElement("path",{d:"M18.2162 26.7773H14.3149V27.7527H18.2162V26.7773Z",fill:"#9A9A9A"}),m.createElement("path",{d:"M18.2162 28.7285H14.3149V29.7038H18.2162V28.7285Z",fill:"#9A9A9A"})),p$t=e=>C.jsx(m$t,{...e}),h$t=e=>m.createElement("svg",{width:36,height:36,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M15.8283 6C16.5981 4.66667 18.5226 4.66667 19.2924 6L31.8498 27.75C32.6196 29.0833 31.6573 30.75 30.1177 30.75H5.00298C3.46338 30.75 2.50113 29.0833 3.27093 27.75L15.8283 6Z",fill:"url(#paint0_linear_11265_27105)"}),m.createElement("path",{d:"M15.8278 6C16.5976 4.66667 18.5229 4.66667 19.2927 6L31.8493 27.75C32.595 29.0416 31.7158 30.646 30.2605 30.7451L30.1179 30.75V29.75C30.8875 29.7498 31.3687 28.9166 30.9841 28.25L18.4265 6.5C18.0657 5.87505 17.1975 5.83607 16.7731 6.38281L16.694 6.5L4.13643 28.25C3.75177 28.9166 4.23306 29.7498 5.00264 29.75V30.75L4.86006 30.7451C3.4517 30.6492 2.5826 29.1436 3.20381 27.876L3.2712 27.75L15.8278 6ZM30.1179 29.75V30.75H5.00264V29.75H30.1179Z",fill:"#FFD93C"}),m.createElement("path",{d:"M18.9476 12.0938L18.7226 22.572H16.5272L16.309 12.0938H18.9476ZM17.6249 27.0938C17.2112 27.0938 16.8567 26.9392 16.5612 26.63C16.2703 26.3208 16.1249 25.944 16.1249 25.4995C16.1249 25.0648 16.2703 24.6928 16.5612 24.3836C16.8567 24.0744 17.2112 23.9198 17.6249 23.9198C18.0294 23.9198 18.3794 24.0744 18.6749 24.3836C18.9749 24.6928 19.1249 25.0648 19.1249 25.4995C19.1249 25.7942 19.0544 26.0623 18.9135 26.3039C18.7772 26.5454 18.5953 26.7387 18.3681 26.8836C18.1453 27.0237 17.8976 27.0938 17.6249 27.0938Z",fill:"black"}),m.createElement("defs",null,m.createElement("linearGradient",{id:"paint0_linear_11265_27105",x1:17.5604,y1:3,x2:17.5604,y2:40,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#FFE980"}),m.createElement("stop",{offset:.932692,stopColor:"#FFD93C"})))),g$t=e=>C.jsx(h$t,{...e}),v$t=e=>m.createElement("svg",{width:36,height:36,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M18 6C11.3831 6 6 11.3832 6 18C6 24.6168 11.3831 30 18 30C24.6169 30 30 24.6168 30 18C30 11.3832 24.6169 6 18 6ZM18 8.32256C20.2505 8.32256 22.324 9.09473 23.9696 10.3881L10.3881 23.9696C9.09478 22.324 8.32256 20.2505 8.32256 18C8.32256 12.6639 12.6639 8.32256 18 8.32256ZM18 27.6774C15.7495 27.6774 13.676 26.9053 12.0304 25.6119L25.6119 12.0304C26.9053 13.676 27.6774 15.7495 27.6774 18C27.6774 23.3361 23.3361 27.6774 18 27.6774Z",fill:"url(#paint0_linear_11264_27095)"}),m.createElement("path",{d:"M29.9167 18C29.9167 11.4292 24.5709 6.08333 18 6.08333C11.4291 6.08333 6.08333 11.4292 6.08333 18C6.08333 24.5708 11.4291 29.9167 18 29.9167C24.5709 29.9167 29.9167 24.5708 29.9167 18ZM26.527 18C26.527 16.4591 26.1141 15.0148 25.3961 13.7661L13.7661 25.3961C15.0148 26.1141 16.4591 26.527 18 26.527V27.6104L17.5832 27.6008C15.5096 27.5119 13.6043 26.763 12.0723 25.559L25.559 12.0723C26.8433 13.7064 27.6104 15.7652 27.6104 18L27.5977 18.4941C27.3396 23.5644 23.1334 27.6104 18 27.6104V26.527C22.7007 26.527 26.527 22.7007 26.527 18ZM18.4168 8.39917C20.4904 8.4881 22.3957 9.23699 23.9277 10.441L10.441 23.9277C9.23704 22.3957 8.4881 20.4904 8.39917 18.4168L8.38965 18C8.38965 12.7009 12.7009 8.38965 18 8.38965L18.4168 8.39917ZM9.47298 18C9.47298 19.5404 9.88531 20.9844 10.6029 22.2328L22.2328 10.6029C20.9844 9.8853 19.5404 9.47298 18 9.47298C13.2993 9.47298 9.47298 13.2993 9.47298 18ZM31 18C31 25.1691 25.1692 31 18 31C10.8308 31 5 25.1691 5 18C5 10.8309 10.8308 5 18 5C25.1692 5 31 10.8309 31 18Z",fill:"url(#paint1_linear_11264_27095)"}),m.createElement("path",{d:"M31 18C31 10.9428 25.35 5.18214 18.335 5.00391L18 5C10.8308 5 5 10.8309 5 18L5.00391 18.335C5.17931 25.2386 10.7613 30.8207 17.665 30.9961L18 31C25.0573 31 30.8179 25.3499 30.9961 18.335L31 18ZM29.6162 18C29.6162 11.5949 24.4052 6.38379 18 6.38379C11.5948 6.38379 6.38379 11.5949 6.38379 18C6.38379 24.4051 11.5948 29.6162 18 29.6162V29.917L17.6934 29.9131C11.3655 29.7525 6.24754 24.6344 6.08691 18.3066L6.08301 18C6.08301 11.4292 11.4291 6.08301 18 6.08301L18.3066 6.08691C24.7364 6.25013 29.917 11.5317 29.917 18L29.9131 18.3066C29.7499 24.7363 24.4684 29.917 18 29.917V29.6162C24.4052 29.6162 29.6162 24.4051 29.6162 18ZM25.7949 11.8867C27.1191 13.5716 27.9102 15.6954 27.9102 18V18.0078L27.8975 18.502V18.5098C27.6311 23.7386 23.2939 27.9102 18 27.9102H17.9932L17.5762 27.9004H17.5703C15.4317 27.8087 13.4663 27.0363 11.8867 25.7949L11.6211 25.5859L25.5859 11.6211L25.7949 11.8867ZM12.0723 25.5586C13.6042 26.7626 15.5095 27.5116 17.583 27.6006L18 27.6104C22.9728 27.6104 27.0751 23.8136 27.5615 18.9668L27.5977 18.4941L27.6104 18C27.6104 15.7652 26.8429 13.7063 25.5586 12.0723L12.0723 25.5586ZM26.2266 18C26.2266 16.6539 25.8993 15.3851 25.3232 14.2627L14.2627 25.3232C15.3851 25.8993 16.6539 26.2266 18 26.2266C22.5351 26.2266 26.2266 22.5351 26.2266 18ZM18.0068 8.08984L18.4238 8.09961H18.4297L18.8281 8.125C20.8122 8.28992 22.6323 9.04117 24.1133 10.2051L24.3789 10.4141L10.4141 24.3789L10.2051 24.1133C8.96372 22.5337 8.19133 20.5683 8.09961 18.4297V18.4238L8.08984 18.0068V18L8.10254 17.4912C8.36824 12.262 12.7059 8.08984 18 8.08984H18.0068ZM18 8.38965C12.7009 8.38965 8.38965 12.7009 8.38965 18L8.39941 18.417C8.48838 20.4905 9.23748 22.3958 10.4414 23.9277L23.9277 10.4414C22.3958 9.23743 20.4905 8.48838 18.417 8.39941L18 8.38965ZM18.2881 9.47754C19.7202 9.52552 21.0622 9.93004 22.2324 10.6025L10.6025 22.2324C9.93005 21.0622 9.52552 19.7202 9.47754 18.2881L9.47266 18C9.47266 13.2993 13.2993 9.47266 18 9.47266L18.2881 9.47754ZM9.77344 18C9.77344 19.3452 10.0995 20.6135 10.6748 21.7354L21.7354 10.6748C20.6135 10.0995 19.3452 9.77344 18 9.77344C13.4649 9.77344 9.77344 13.4649 9.77344 18ZM26.5156 18.4385C26.2865 22.9364 22.5537 26.5273 18 26.5273C16.4593 26.5273 15.0152 26.1143 13.7666 25.3965L25.3965 13.7666C26.1143 15.0152 26.5273 16.4593 26.5273 18L26.5156 18.4385ZM31.2998 18C31.2998 25.3348 25.3349 31.2998 18 31.2998C10.6651 31.2998 4.7002 25.3348 4.7002 18C4.7002 10.6652 10.6651 4.7002 18 4.7002C25.3349 4.7002 31.2998 10.6652 31.2998 18Z",fill:"url(#paint2_linear_11264_27095)"}),m.createElement("defs",null,m.createElement("linearGradient",{id:"paint0_linear_11264_27095",x1:18,y1:6,x2:18,y2:30,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#ED5A3B"}),m.createElement("stop",{offset:1,stopColor:"#AF3117"})),m.createElement("linearGradient",{id:"paint1_linear_11264_27095",x1:18,y1:5,x2:18,y2:31,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#EC5A3A"}),m.createElement("stop",{offset:1,stopColor:"#AF3117"})),m.createElement("linearGradient",{id:"paint2_linear_11264_27095",x1:18,y1:5,x2:18,y2:31,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#EB5A39"}),m.createElement("stop",{offset:1,stopColor:"#B03117"})))),b$t=e=>C.jsx(v$t,{...e}),x$t=e=>m.createElement("svg",{width:36,height:36,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M7 5.15039H28C28.4694 5.15039 28.8496 5.53056 28.8496 6V26.6445C28.8496 26.8769 28.755 27.0994 28.5869 27.2598L24.0205 31.6152C23.8625 31.766 23.652 31.8496 23.4336 31.8496H7C6.53056 31.8496 6.15039 31.4694 6.15039 31V6C6.15039 5.53056 6.53056 5.15039 7 5.15039Z",fill:"#FEFEFE",stroke:"#666666",strokeWidth:.3}),m.createElement("path",{d:"M26.0982 12.5596H8.58191V13.083H26.0982V12.5596Z",fill:"#666666"}),m.createElement("path",{d:"M26.0982 15.3857H8.58191V15.9092H26.0982V15.3857Z",fill:"#666666"}),m.createElement("path",{d:"M26.0982 18.2109H8.58191V18.7344H26.0982V18.2109Z",fill:"#666666"}),m.createElement("path",{d:"M26.0982 21.0039H8.58191V21.5273H26.0982V21.0039Z",fill:"#666666"}),m.createElement("path",{d:"M26.0982 23.8291H8.58191V24.3525H26.0982V23.8291Z",fill:"#666666"}),m.createElement("path",{d:"M16.8516 27.0947H8.58191V27.6181H16.8516V27.0947Z",fill:"#666666"}),m.createElement("path",{d:"M23.9056 32.3591L29 27.2646H23.9056V32.3591Z",fill:"#F4F2F2"}),m.createElement("path",{d:"M21 9H14V10H21V9Z",fill:"#535353"}),m.createElement("path",{d:"M23.9339 14.783L22.4576 13.9355L21.6053 15.4034L23.0816 16.2508L23.9339 14.783Z",fill:"#E0E1E2"}),m.createElement("path",{d:"M25.6385 11.8475L24.8948 11.4206C24.7937 11.3625 24.6837 11.3307 24.5715 11.3222C24.5154 11.318 24.4589 11.3196 24.4026 11.3276C24.1208 11.3654 23.8457 11.5452 23.6789 11.8325L22.4576 13.9357L23.9339 14.7831L25.6385 11.8475Z",fill:"#E85738"}),m.createElement("path",{d:"M24.9268 17.3103L23.0815 16.251L18.1808 24.6911L20.0261 25.7504L24.9268 17.3103Z",fill:"#F2C91D"}),m.createElement("path",{d:"M25.7791 15.8425L23.9338 14.7832L23.0815 16.251L24.9268 17.3104L25.7791 15.8425Z",fill:"#C4C4C4"}),m.createElement("path",{d:"M25.7791 15.8427L27.0003 13.7395C27.1671 13.4522 27.1541 13.107 26.9975 12.8174C26.9664 12.7598 26.9289 12.7036 26.8866 12.6514C26.8012 12.5465 26.6944 12.4539 26.568 12.3813L25.6384 11.8477L23.9338 14.7833L25.7791 15.8427Z",fill:"#B13218"}),m.createElement("path",{d:"M20.0261 25.7505L16.7046 23.8438L16.6607 27.7328L20.0261 25.7505Z",fill:"#FDEDD9"}),m.createElement("path",{d:"M17.8536 26.95L16.7465 26.3145L16.6608 27.7331L17.8536 26.95Z",fill:"#4C4C4C"}),m.createElement("path",{d:"M23.0816 16.2508L21.6053 15.4033L16.7046 23.8434L18.1808 24.6909L23.0816 16.2508Z",fill:"#FFD93C"})),y$t=e=>C.jsx(x$t,{...e}),w$t=e=>m.createElement("svg",{width:36,height:36,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M5.29297 5.15039H30.6719C31.2902 5.15044 31.7575 5.5568 31.8389 6.09961L31.8496 6.20215V24.1748C31.8496 24.7617 31.3364 25.2273 30.707 25.2275H14.5459L14.5068 25.2539L6.49219 30.7158V25.2275H5.29297C4.63423 25.2273 4.15039 24.7343 4.15039 24.1748V6.20215C4.15058 5.61545 4.66376 5.15058 5.29297 5.15039Z",fill:"url(#paint0_linear_11266_27250)",stroke:"#666666",strokeWidth:.3}),m.createElement("path",{d:"M25.6739 12.3672H11V12.8057H25.6739V12.3672Z",fill:"#666666"}),m.createElement("path",{d:"M25.6739 14.7344H11V15.1729H25.6739V14.7344Z",fill:"#666666"}),m.createElement("path",{d:"M25.6739 17.0742H11V17.5127H25.6739V17.0742Z",fill:"#666666"}),m.createElement("defs",null,m.createElement("linearGradient",{id:"paint0_linear_11266_27250",x1:16.7273,y1:21.25,x2:12.1155,y2:30.9251,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#FEFEFE"}),m.createElement("stop",{offset:1,stopColor:"#E0E0E0"})))),C$t=e=>C.jsx(w$t,{...e});function k$t(e){return C.jsxs("svg",{viewBox:"0 0 24 16",stroke:"currentColor",fill:"none",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[C.jsx("rect",{x:"1.5",y:"1.5",width:"13",height:"11",rx:"1"}),C.jsx("line",{x1:"1.5",y1:"5.5",x2:"14.5",y2:"5.5"}),C.jsx("line",{x1:"1.5",y1:"9.5",x2:"14.5",y2:"9.5"}),C.jsx("line",{x1:"19",y1:"6",x2:"19",y2:"10"}),C.jsx("line",{x1:"17",y1:"8",x2:"21",y2:"8"})]})}function _$t(e){return C.jsxs("svg",{viewBox:"0 0 24 16",stroke:"currentColor",fill:"none",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[C.jsx("rect",{x:"1.5",y:"1.5",width:"13",height:"11",rx:"1"}),C.jsx("line",{x1:"1.5",y1:"5.5",x2:"14.5",y2:"5.5"}),C.jsx("line",{x1:"1.5",y1:"9.5",x2:"14.5",y2:"9.5"}),C.jsx("line",{x1:"17",y1:"8",x2:"21",y2:"8"})]})}function T$t(e){return C.jsxs("svg",{viewBox:"0 0 24 16",stroke:"currentColor",fill:"none",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",width:"24",height:"16",...e,children:[C.jsx("rect",{x:"1.5",y:"1.5",width:"13",height:"11",rx:"1"}),C.jsx("line",{x1:"5.5",y1:"3.5",x2:"5.5",y2:"11.5"}),C.jsx("line",{x1:"9",y1:"3.5",x2:"9",y2:"11.5"}),C.jsx("line",{x1:"19",y1:"6.5",x2:"19",y2:"9.5"}),C.jsx("line",{x1:"17.5",y1:"8",x2:"20.5",y2:"8"})]})}function S$t(e){return C.jsxs("svg",{viewBox:"0 0 24 16",stroke:"currentColor",fill:"none",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",width:"24",height:"16",...e,children:[C.jsx("rect",{x:"1.5",y:"1.5",width:"13",height:"11",rx:"1"}),C.jsx("line",{x1:"5.5",y1:"3.5",x2:"5.5",y2:"11.5"}),C.jsx("line",{x1:"9",y1:"3.5",x2:"9",y2:"11.5"}),C.jsx("line",{x1:"17",y1:"8",x2:"21",y2:"8"})]})}const X4=new Map;function Be(e,t){typeof e=="object"?e.forEach(r=>{X4.set(r,{renderer:t})}):X4.set(e.toLowerCase(),{renderer:t})}Be("assign",e=>C.jsx(_Q,{...e})),Be("arrowup",e=>C.jsx(KLt,{...e})),Be("arrowleft",e=>C.jsx(GLt,{...e})),Be("arrowright",e=>C.jsx(YLt,{...e})),Be("pause",e=>C.jsx(ZLt,{...e})),Be("play",e=>C.jsx(JLt,{...e})),Be("date",e=>C.jsx(L8t,{...e})),Be("hamburger",e=>C.jsx(tot,{...e})),Be("send",e=>C.jsx(oot,{...e})),Be("users",e=>C.jsx(oVe,{...e})),Be("refresh",e=>C.jsx(QWe,{...e})),Be("chevrondown",e=>C.jsx(DWe,{...e})),Be("chevronup",e=>C.jsx(BWe,{...e})),Be("chevronright",e=>C.jsx(G8t,{...e})),Be("chevronleft",e=>C.jsx(q8t,{...e})),Be("dotmenu",e=>C.jsx(lNt,{...e})),Be("dotmenuhorizontal",e=>C.jsx(aNt,{...e})),Be("noresult",e=>C.jsx(JWe,{...e})),Be("crm",e=>C.jsx(zwe,{...e})),Be("chat",e=>C.jsx(zwe,{...e})),Be("pencil",e=>C.jsx(d8t,{...e})),Be("cube",e=>C.jsx(s8t,{...e})),Be("apps",e=>C.jsx(CQ,{...e})),Be("permissions",e=>C.jsx(GWe,{...e})),Be("close",e=>C.jsx(iVe,{...e})),Be("star",e=>C.jsx(eVe,{...e})),Be("help",e=>C.jsx(UWe,{...e})),Be("compactlist",e=>C.jsx(Z8t,{...e})),Be("copy",e=>C.jsx(J8t,{...e})),Be("move",e=>C.jsx(zWe,{...e})),Be("rename",e=>C.jsx(b8t,{...e})),Be("hyperlink",e=>C.jsx(yNt,{...e})),Be("globe",e=>C.jsx(bNt,{...e})),Be("link",e=>C.jsx(_Nt,{...e})),Be("looseList",e=>C.jsx(SNt,{...e})),Be("options",e=>C.jsx(ENt,{...e})),Be("search",e=>C.jsx(NNt,{...e})),Be("filter",e=>C.jsx(hNt,{...e})),Be("trash",e=>C.jsx(BNt,{...e})),Be("pen",e=>C.jsx(INt,{...e})),Be("email",e=>C.jsx(sNt,{...e})),Be("phone",e=>C.jsx(RNt,{...e})),Be("home",e=>C.jsx(xNt,{...e})),Be("user",e=>C.jsx(UNt,{...e})),Be("exit",e=>C.jsx(qxt,{...e})),Be("adduser",e=>C.jsx(nVe,{...e})),Be("userminus",e=>C.jsx(rVe,{...e})),Be("plus",e=>C.jsx(LNt,{...e})),Be("inspect",e=>C.jsx(o$t,{...e})),Be("plus-circle",e=>C.jsx(rot,{...e})),Be("filledplus",e=>C.jsx(mNt,{...e})),Be("darktolight",e=>C.jsx(f$t,{...e})),Be("lighttodark",e=>C.jsx(c$t,{...e})),Be("checkmark",e=>C.jsx(U8t,{...e})),Be("valid",e=>C.jsx(NWe,{...e})),Be("info",e=>C.jsx(LWe,{...e})),Be("error",e=>C.jsx(Toe,{...e})),Be("warning",e=>C.jsx(_oe,{...e})),Be("board",e=>C.jsx(F8t,{...e})),Be("list",e=>C.jsx(TNt,{...e})),Be("folder",e=>C.jsx(vNt,{...e})),Be("folder-outline",e=>C.jsx(WWe,{...e})),Be("emptyfolder",e=>C.jsx(cNt,{...e})),Be("pdf",e=>C.jsx(ANt,{...e})),Be("txt",e=>C.jsx(MNt,{...e})),Be("doc",e=>C.jsx(Fwe,{...e})),Be("docx",e=>C.jsx(Fwe,{...e})),Be("doc-outline",e=>C.jsx(oNt,{...e})),Be("conf",e=>C.jsx(o8t,{...e})),Be("code",e=>C.jsx(K8t,{...e})),Be("codesandbox",e=>C.jsx(Q8t,{...e})),Be("box",e=>C.jsx(V8t,{...e})),Be(["xls","xlsx"],e=>C.jsx(GNt,{...e})),Be(["jpg","jpeg","png","webp","svg","gif","tif","ppt","pptx"],e=>C.jsx(CNt,{...e})),Be("unknownfile",e=>C.jsx(FNt,{...e})),Be("photo",e=>C.jsx(HNt,{...e})),Be("previous",e=>C.jsx(l8t,{...e})),Be("next",e=>C.jsx(a8t,{...e})),Be("like",e=>C.jsx(eot,{...e})),Be("reply",e=>C.jsx(e8t,{...e})),Be("attach",e=>C.jsx(B8t,{...e})),Be("attach2",e=>C.jsx(C8t,{...e})),Be("emoji",e=>C.jsx(i8t,{...e})),Be("message",e=>C.jsx(y8t,{...e})),Be("upload",e=>C.jsx(tVe,{...e})),Be("split-vertical",e=>C.jsx(S8t,{...e})),Be("split-horizontal",e=>C.jsx(T8t,{...e})),Be("swap",e=>C.jsx(f8t,{...e})),Be("download",e=>C.jsx(FWe,{...e})),Be("note",e=>C.jsx(w8t,{...e})),Be("binding",e=>C.jsx(z8t,{...e})),Be("database",e=>C.jsx(rNt,{...e})),Be("unlink",e=>C.jsx(VNt,{...e})),Be("api",e=>C.jsx($8t,{...e})),Be("expression",e=>C.jsx(fNt,{...e})),Be("chat",e=>C.jsx(XLt,{...e})),Be("hash",e=>C.jsx(QLt,{...e})),Be("drive",e=>C.jsx(VWe,{...e})),Be("lock",e=>C.jsx(YWe,{...e})),Be("start",e=>C.jsx(k8t,{...e})),Be("stop",e=>C.jsx(_8t,{...e})),Be("restart",e=>C.jsx(A8t,{...e})),Be("duplicate",e=>C.jsx(R8t,{...e})),Be("connect",e=>C.jsx(Gxt,{...e})),Be("cog",e=>C.jsx(I8t,{...e})),Be("sun",e=>C.jsx(E8t,{...e})),Be("moon",e=>C.jsx(a$t,{...e})),Be("stars",e=>C.jsx(s$t,{...e})),Be("share",e=>C.jsx(DNt,{...e})),Be("new-window",e=>C.jsx(xde,{...e})),Be("paint",e=>C.jsx(O8t,{...e})),Be("palette",e=>C.jsx(x8t,{...e})),Be("trending-up",e=>C.jsx(KNt,{...e})),Be("trending-down",e=>C.jsx(QNt,{...e})),Be("trending-level",e=>C.jsx(r$t,{...e})),Be("sortasc",e=>C.jsx(ZNt,{...e})),Be("sortdesc",e=>C.jsx(JNt,{...e})),Be("nosort",e=>C.jsx(e$t,{...e})),Be("admonition_info",e=>C.jsx(p$t,{...e})),Be("admonition_warning",e=>C.jsx(g$t,{...e})),Be("admonition_danger",e=>C.jsx(b$t,{...e})),Be("admonition_note",e=>C.jsx(y$t,{...e})),Be("admonition_tip",e=>C.jsx(C$t,{...e})),Be("arrowdown",e=>C.jsx(qLt,{...e})),Be("square",e=>C.jsx(n8t,{...e})),Be("squarehalf",e=>C.jsx(r8t,{...e})),Be("squarefill",e=>C.jsx(t8t,{...e})),Be("table-insert-row",e=>C.jsx(k$t,{...e})),Be("table-delete-row",e=>C.jsx(_$t,{...e})),Be("table-insert-column",e=>C.jsx(T$t,{...e})),Be("table-delete-column",e=>C.jsx(S$t,{...e}));function E$t({children:e}){const t=m.useCallback(()=>Array.from(X4.keys()),[]),r=m.useCallback(u=>X4.get(u),[]),[n,o]=m.useState({}),i=m.useRef({}),a=m.useRef(null),l=m.useCallback(async u=>{if(i.current[u])return;const c=await(await fetch(u)).text(),d=document.createElement("div");d.style.display="none",d.innerHTML=c;const f={};for(let v=0;v<d.children[0].attributes.length;v++){const b=d.children[0].attributes[v];b.nodeName!=="class"&&(f[b.nodeName]=b.nodeValue)}Object.keys(f).forEach(v=>{d.children[0].removeAttribute(v)});const p=document.createElementNS("http://www.w3.org/2000/svg","symbol");p.innerHTML=d.children[0].innerHTML,p.id=u,p.setAttributeNS(null,"viewBox",f.viewBox),i.current[u]||(a.current.appendChild(p),i.current[u]=!0);const g={name:u,attributes:f};o(v=>({...v,[u]:g}))},[]),s=m.useMemo(()=>({getRegisteredIconNames:t,lookupIconRenderer:r,ensureCustomSvgIcon:l,customSvgs:n}),[n,l,t,r]);return C.jsxs(Iq.Provider,{value:s,children:[e,C.jsx("svg",{style:{display:"none"},ref:a})]})}const O$t="0.9.75",Wwe={capitalize:xAe,pluralize:RLe,defaultTo:FRe,toHashObject:PLe,findByField:HLe,distinct:LLe};function A$t(e){return(e?new Date(e):new Date).toJSON()}function Vwe(e){return new Date(e).toLocaleDateString()}function I$t(e){return new Date(e).toLocaleString()}function R$t(e){return new Date(e).toLocaleTimeString()}function P$t(e){return Qc(new Date(e),"H:m")}function H$t(e){return new Date(e).toLocaleDateString([],{month:"numeric",day:"2-digit"})}function Uwe(e){return e?new Date(e):new Date}function L$t(e,t,r){return e?CLe(e,t,r):"-"}function N$t(e){return e?E_(new Date(e))?new Date(e).toLocaleTimeString():J9e(new Date(e))?`${JHe(new Date(e),new Date)}`:new Date(e).toLocaleString():"-"}function $$t(e){return e?E_(new Date(e))?"Today":jI(new Date(e))?"Yesterday":new Date(e).toLocaleDateString():"-"}function D$t(e){return E_(new Date(e))}function B$t(e){return jI(new Date(e))}function j$t(e){return tLe(new Date(e))}function M$t(e,t=!1){const r=new Date,n=new Date(e),o=r.getTime()-n.getTime();if(o<0)return Vwe(e);const i=Math.floor(o/1e3),a=Math.floor(i/60),l=Math.floor(a/60),s=Math.floor(l/24),u=Math.floor(s/7),c=Math.floor(s/30),d=Math.floor(s/365),f={second:{singular:t?"s":"second",plural:t?"s":"seconds"},minute:{singular:t?"min":"minute",plural:t?"min":"minutes"},hour:{singular:t?"hr":"hour",plural:t?"hrs":"hours"},day:{singular:t?"d":"day",plural:t?"d":"days"},week:{singular:t?"wk":"week",plural:t?"wks":"weeks"},month:{singular:t?"mo":"month",plural:t?"mos":"months"},year:{singular:t?"y":"year",plural:t?"yrs":"years"}};if(i<10)return"now";if(i<60){const g=i===1?f.second.singular:f.second.plural;return`${i} ${g} ago`}if(a<60){const g=a===1?f.minute.singular:f.minute.plural;return`${a} ${g} ago`}if(E_(n)){const g=l===1?f.hour.singular:f.hour.plural;return`${l} ${g} ago`}if(jI(n))return"yesterday";if(s<7){const g=s===1?f.day.singular:f.day.plural;return`${s} ${g} ago`}if(u<4){const g=u===1?f.week.singular:f.week.plural;return`${u} ${g} ago`}if(c<12){const g=c===1?f.month.singular:f.month.plural;return`${c} ${g} ago`}const p=d===1?f.year.singular:f.year.plural;return`${d} ${p} ago`}const qwe={isoDateString:A$t,formatDate:Vwe,formatDateTime:I$t,formatTime:R$t,formatTimeWithoutSeconds:P$t,formatDateWithoutYear:H$t,getDate:Uwe,getDateUntilNow:L$t,smartFormatDateTime:N$t,smartFormatDate:$$t,isToday:D$t,isYesterday:B$t,isTomorrow:j$t,differenceInMinutes:YPe,isSameDay:y_,isThisYear:eLe,formatHumanElapsedTime:M$t};function z$t(e,t){if(e.length===0)return 0;const n=Gwe(e)/e.length;return t?Number(n.toFixed(t)):n}function Gwe(e){return e.reduce((t,r)=>t+r,0)}const F$t={avg:z$t,sum:Gwe};var Po=(e=>(e.LOADER_LOADED="ContainerActionKind:LOADER_LOADED",e.LOADER_IN_PROGRESS_CHANGED="ContainerActionKind:LOADER_IN_PROGRESS_CHANGED",e.LOADER_IS_REFETCHING_CHANGED="ContainerActionKind:LOADER_IS_REFETCHING_CHANGED",e.LOADER_ERROR="ContainerActionKind:LOADER_ERROR",e.EVENT_HANDLER_STARTED="ContainerActionKind:EVENT_HANDLER_STARTED",e.EVENT_HANDLER_COMPLETED="ContainerActionKind:EVENT_HANDLER_COMPLETED",e.EVENT_HANDLER_ERROR="ContainerActionKind:EVENT_HANDLER_ERROR",e.COMPONENT_STATE_CHANGED="ContainerActionKind:COMPONENT_STATE_CHANGED",e.STATE_PART_CHANGED="ContainerActionKind:STATE_PART_CHANGED",e))(Po||{});function W$t(e={}){const t=Object.keys(e);function r(o,i=new Set){if(!t.includes(o))return[o];i.add(o);const a=[];return e[o].forEach(l=>{i.has(l)||(i.add(l),a.push(...r(l,i)))}),a}const n={};return t.forEach(o=>{n[o]=[...new Set(r(o))]}),n}const V$t=100;function U$t(e){const t=e.collectStateTransitions;let r,n;return tl((o,i)=>{const{uid:a}=i.payload;if(a===void 0&&i.type!==Po.STATE_PART_CHANGED)return console.error("uid not provided for control component",{state:o,action:i}),o;if(t)try{r=Ql(o[a])}catch(s){console.error("Error while cloning previous value",s)}switch(i.type){case Po.LOADER_IN_PROGRESS_CHANGED:{o[a]={...o[a],inProgress:i.payload.inProgress},l(o[a]);break}case Po.LOADER_IS_REFETCHING_CHANGED:{o[a]={...o[a],isRefetching:i.payload.isRefetching},l(o[a]);break}case Po.LOADER_LOADED:{const{data:s,pageInfo:u}=i.payload;o[a]={value:s,byId:Array.isArray(s)?dPe(s,c=>c.$id):void 0,inProgress:!1,loaded:s!==void 0,pageInfo:u},l(o[a]);break}case Po.LOADER_ERROR:{const{error:s}=i.payload;o[a]={...o[a],error:s,inProgress:!1,loaded:!0},l(o[a]);break}case Po.EVENT_HANDLER_STARTED:{const{eventName:s}=i.payload,u=`${s}InProgress`;o[a]={...o[a],[u]:!0},l(o[a]);break}case Po.EVENT_HANDLER_COMPLETED:{const{eventName:s}=i.payload,u=`${s}InProgress`;o[a]={...o[a],[u]:!1},l(o[a]);break}case Po.EVENT_HANDLER_ERROR:{const{eventName:s}=i.payload,u=`${s}InProgress`;o[a]={...o[a],[u]:!1},l(o[a]);break}case Po.COMPONENT_STATE_CHANGED:{const{state:s}=i.payload;o[a]={...o[a],...s},l(o[a]);break}case Po.STATE_PART_CHANGED:{const{path:s,value:u,target:c,actionType:d,localVars:f}=i.payload;if(d==="unset")jPe(o,s);else{let p=f;RPe(o,s,u,(g,v,b)=>{if(p=p==null?void 0:p[v],g===void 0&&p===void 0&&Kl(c))return Object(g)}),l(o)}break}default:throw new Error}if(t){const s={action:i.type,uid:a,prevState:r,nextState:n};e.stateTransitions&&(e.stateTransitions.length>=V$t&&e.stateTransitions.shift(),e.stateTransitions.push(s))}function l(s){if(t)try{n=Ql(s)}catch(u){console.error("Error while cloning next value",u)}}})}function Ywe(e,t,r=[]){const n=i=>r.concat(i).join("."),o=new WeakMap;return new Proxy(e,{get:function(i,a,l){const s=Reflect.get(i,a,l);return s&&!s._ARROW_EXPR_&&!Object.isFrozen(s)&&typeof s=="object"&&["Array","Object"].includes(s.constructor.name)?(o.has(s)||o.set(s,Ywe(s,t,r.concat(a))),o.get(s)):s},set:function(i,a,l,s){return t({action:"set",path:n(a),pathArray:r.concat(a),target:i,newValue:l,previousValue:Reflect.get(i,a,s)}),Reflect.set(i,a,l,s)},deleteProperty:function(i,a){return t({action:"unset",path:n(a),pathArray:r.concat(a),target:i}),Reflect.deleteProperty(i,a)}})}function q$t(e,t,r){const n=zd.get(e);return n?(t.unshift(r),n):e}const zd=new Map;zd.set(Array.prototype.filter,Y$t),zd.set(Array.prototype.forEach,K$t),zd.set(Array.prototype.map,X$t),zd.set(Array.prototype.every,Q$t),zd.set(Array.prototype.findIndex,J$t),zd.set(Array.prototype.find,Z$t),zd.set(Array.prototype.flatMap,e7t),zd.set(Array.prototype.some,G$t);async function G$t(e,t){const r=await Promise.all(e.map(t));return e.some((n,o)=>r[o])}async function Y$t(e,t){const r=await Promise.all(e.map(t));return e.filter((n,o)=>r[o])}async function K$t(e,t){for(let r=0;r<e.length;r++)await t(e[r],r,e)}async function X$t(e,t){const r=[];for(let n=0;n<e.length;n++)r.push(await t(e[n],n,e));return r}async function Q$t(e,t){const r=await Promise.all(e.map(t));return r.every((n,o)=>r[o])}async function Z$t(e,t){const r=await Promise.all(e.map(t));return e.find((n,o)=>r[o])}async function J$t(e,t){const r=await Promise.all(e.map(t));return e.findIndex((n,o)=>r[o])}async function e7t(e,t){const r=await Promise.all(e.map(t));return e.flatMap((n,o)=>r[o])}async function qa(e,t,r){const n=[];return hy(t),r??(r=t.mainThread),await pB(n,e,t,r??t.mainThread)}async function t7t(e,t,r,...n){if(e.type!==Tn)throw new Error("executeArrowExpression expects an 'ArrowExpression' object.");return await(await Q4(pB,e))(e.args,t,r??t.mainThread,...n)}async function pB(e,t,r,n){r.options||(r.options={defaultToOptionalMemberAccess:!0});const o=pB;try{switch(t.type){case KT:return m7t(o,e,t,r,n);case $n:return FX(e,t,n);case Qt:return WX(e,t,r,n);case as:return await r7t(o,e,t,r,n);case ld:return await n7t(o,e,t,r,n);case eu:return await o7t(o,e,t,r,n);case tu:return await i7t(o,e,t,r,n);case ru:return await a7t(o,e,t,r,n);case ay:return await l7t(o,e,t,r,n);case ni:return await s7t(o,e,t,r,n);case ly:return await u7t(o,e,t,r,n);case sd:return await c7t(o,e,t,r,n);case Dp:case sy:return await d7t(o,e,t,r,n);case jv:return await f7t(o,e,t,r,n);case Tn:return KX(e,t,n);case oi:throw new Error("Cannot use spread expression (...) with the current intermediate value.");default:throw new Error(`Unknown expression tree node: ${t.type}`)}}catch(i){throw i}}async function r7t(e,t,r,n,o){return await e(t,r.obj,n,o),await ga(r.obj,o),cS(t,r,n,o)}async function n7t(e,t,r,n,o){return await e(t,r.obj,n,o),await ga(r.obj,o),await e(t,r.member,n,o),t.pop(),await ga(r.member,o),VX(t,r,n,o)}async function o7t(e,t,r,n,o){if(!r.exprs||r.exprs.length===0)throw new Error("Missing expression sequence");const i=r.exprs.map(async l=>{const s=await e(t,l,n,o);return Sn(l,{value:s},o),t.pop(),s}),a=i[i.length-1];return t.push(a),a}async function i7t(e,t,r,n,o){const i=[];for(const a of r.items)if(a.type===oi){const l=await e(t,a.expr,n,o);if(t.pop(),!Array.isArray(l))throw new Error("Spread operator within an array literal expects an array operand.");i.push(...l)}else i.push(await e(t,a,n,o)),t.pop(),t.push(i);return Sn(r,{value:i},o),t.push(i),i}async function a7t(e,t,r,n,o){const i={};for(const a of r.props){if(!Array.isArray(a)){const s=await e(t,a.expr,n,o);if(t.pop(),Array.isArray(s))for(let u=0;u<s.length;u++)i[u]=s[u];else if(typeof s=="object")for(const[u,c]of Object.entries(s))i[u]=c;continue}let l;switch(a[0].type){case $n:l=a[0].value;break;case Qt:l=a[0].name;break;default:l=await e(t,a[0],n,o),t.pop();break}i[l]=await e(t,a[1],n,o),t.pop()}return Sn(r,{value:i},o),t.push(i),i}async function l7t(e,t,r,n,o){return await e(t,r.expr,n,o),t.pop(),await ga(r.expr,o),UX(r,t,n,o)}async function s7t(e,t,r,n,o){await e(t,r.left,n,o),t.pop();const i=await ga(r.left,o);return r.op==="&&"&&!i?(Sn(r,{value:i},o),i):r.op==="||"&&i?(Sn(r,{value:i},o),i):(await e(t,r.right,n,o),t.pop(),await ga(r.right,o),qX(r,t,n,o))}async function u7t(e,t,r,n,o){await e(t,r.cond,n,o),t.pop();const i=await ga(r.cond,o),a=await e(t,i?r.thenE:r.elseE,n,o);return Sn(r,{value:a},o),a}async function c7t(e,t,r,n,o){const i=r.leftValue,a=Rf(i,n,o),l=a&&a.type!=="block";l&&n.onWillUpdate&&n.onWillUpdate(a,a.name,"assignment"),await e(t,i,n,o),t.pop(),await ga(i,o),await e(t,r.expr,n,o),t.pop(),await ga(r.expr,o);const s=GX(t,r,n,o);return l&&n.onDidUpdate&&n.onDidUpdate(a,a.name,"assignment"),s}async function d7t(e,t,r,n,o){const i=Rf(r.expr,n,o),a=i&&i.type!=="block";a&&n.onWillUpdate&&n.onWillUpdate(i,i.name,"pre-post"),await e(t,r.expr,n,o),t.pop(),await ga(r.expr,o);const l=YX(t,r,n,o);return a&&n.onDidUpdate&&n.onDidUpdate(i,i.name,"pre-post"),l}async function f7t(e,t,r,n,o){var g,v;let i,a=null;if(r.obj.type===as){const b=await e(t,r.obj.obj,n,o);await ga(r.obj.obj,o),i=cS(t,r.obj,n,o),r.obj.obj.type===Qt&&(b!=null&&b._SUPPORT_IMPLICIT_CONTEXT)&&(a=b)}else await e(t,r.obj,n,o),i=await ga(r.obj,o);t.pop();const l=[];if(i!=null&&i._ARROW_EXPR_)l.push(i.args,n,o,...r.arguments.map(b=>({...b,_EXPRESSION_:!0}))),i=await Q4(e,i);else if(r.obj.type===Tn)l.push(r.obj.args.map(b=>b.name),n,o,...r.arguments.map(b=>({...b,_EXPRESSION_:!0})));else{for(let b=0;b<r.arguments.length;b++){const y=r.arguments[b];if(y.type===oi){await e([],y.expr,n,o);const w=await ga(y.expr,o);if(!Array.isArray(w))throw new Error("Spread operator within a function invocation expects an array operand.");l.push(...w)}else if(y.type===Tn){const w=await Q4(e,y),k=async(...E)=>w(y.args,n,o,...E);l.push(k)}else{await e([],y,n,o);const w=await ga(y,o);if(w!=null&&w._ARROW_EXPR_){const k=await Q4(e,w),E=(..._)=>k(w.args,n,o,..._);l.push(E)}else l.push(w)}}if(a)if(n.implicitContextGetter){const b=n.implicitContextGetter(a);l.unshift(b)}else throw new Error("Cannot use implicitContextGetter, it is undefined")}const s=MX(i);if(s.banned)throw new Error(`Function ${((g=s.func)==null?void 0:g.name)??"unknown"} is not allowed to call. ${(s==null?void 0:s.help)??""}`);const u=t.length>0?t.pop():n.localContext;i=q$t(i,l,u);const c=Rf(r.obj,n,o),d=c&&c.type!=="block";d&&n.onWillUpdate&&n.onWillUpdate(c,c.name,"function-call");const f=(v=n.options)!=null&&v.defaultToOptionalMemberAccess?i==null?void 0:i.call(u,...l):i.call(u,...l);let p=await Kwe(f);return d&&n.onDidUpdate&&n.onDidUpdate(c,c.name,"function-call"),Sn(r,{value:p},o),t.push(p),p}async function Q4(e,t){return async(...r)=>{const n=r[1],o=r[2],i={parent:o,childThreads:[],blocks:[{vars:{}}],loops:[],breakLabelValue:-1,closures:t.closureContext};if(o.childThreads.push(i),t.name){const f={vars:{}};i.blocks??(i.blocks=[]),i.blocks.push(f),f.vars[t.name]=t,f.constVars=new Set([t.name])}const a={vars:{}};i.blocks??(i.blocks=[]),i.blocks.push(a);const l=r[0];let s=!1;for(let f=0;f<l.length;f++){const p=l[f];let g;switch(p.type){case Qt:{g={type:gl,id:p.name};break}case Bp:{g={type:gl,id:p.id,aDestr:p.aDestr,oDestr:p.oDestr};break}case oi:{s=!0,g={type:gl,id:p.expr.name};break}default:throw new Error("Unexpected arrow argument specification")}if(g)if(s){const v=r.slice(f+3);let b=[];for(const y of v)y!=null&&y._EXPRESSION_?b.push(await e([],y,n,o)):b.push(y);await Z4(a,n,o,[g],!1,!0,b)}else{let v=r[f+3];v!=null&&v._EXPRESSION_&&(v=await e([],v,n,o)),await Z4(a,n,o,[g],!1,!0,v)}}let u,c;switch(t.statement.type){case os:c=[];break;case is:c=[{type:Sf,expr:t.statement.expr}];break;case ns:c=t.statement.stmts;break;default:throw new Error(`Arrow expression with a body of '${t.statement.type}' is not supported yet.`)}await hB(c,n,i),u=i.returnValue;const d=o.childThreads.indexOf(i);if(d<0)throw new Error("Cannot find thread to remove.");return o.childThreads.splice(d,1),i.blocks.pop(),u}}async function Kwe(e){const t=new Map;return r(e);async function r(n){if(n==null)return n;const o=t.get(n);if(o)return o;if(zX(n)){const i=await n;return t.set(n,i),r(i)}if(t.set(n,n),Array.isArray(n)){for(let i=0;i<n.length;i++){const a=await r(n[i]);n[i]!==a&&n.splice(i,1,a)}return n}if(Kl(n)){for(const i of Object.keys(n)){let a=await r(n[i]);n[i]!==a&&(n[i]=a)}return n}return n}}async function m7t(e,t,r,n,o){const i=new Array(r.segments.length);for(let a=0;a<r.segments.length;++a){await e(t,r.segments[a],n,o),t.pop();const l=await ga(r.segments[a],o);i[a]=l}return QX(i)}async function ga(e,t){const r=nu(e,t),n=await Kwe(r==null?void 0:r.value);return Sn(e,{...r,value:n},t),n}async function hB(e,t,r){var a,l,s;r||(r=hy(t)),mS(r,e);const n=new ZX;n.push(un(dd(e)));const o={processedStatements:0,maxQueueLength:n.length,unshiftedItems:0,clearToLabels:0,maxBlocks:0,maxLoops:0};let i=new Date().getTime();for(;n.length>0&&!((a=t.cancellationToken)!=null&&a.cancelled);){if(t.timeout&&new Date().getTime()-i>t.timeout)throw new Error("Script execution timeout");const u=n.dequeue();r.breakLabelValue=n.length>0?n.peek().label:-1;let c;try{await((l=t==null?void 0:t.onStatementStarted)==null?void 0:l.call(t,t,u.statement)),c=await p7t(u.statement,(u==null?void 0:u.execInfo)??{},t,r)}catch(d){if(r.tryBlocks&&r.tryBlocks.length>0){const f=r.tryBlocks[r.tryBlocks.length-1];f.errorToThrow=d,f.errorSource=f.processingPhase,f.processingPhase="error",c={clearToLabel:f.tryLabel}}else d instanceof Vu?Xg(d):Xg(new rx(d),d)}c&&(c.toUnshift&&(n.unshift(c.toUnshift),o.unshiftedItems+=c.toUnshift.length),c.clearToLabel!==void 0&&(n.clearToLabel(c.clearToLabel),o.clearToLabels++)),await((s=t==null?void 0:t.onStatementCompleted)==null?void 0:s.call(t,t,u.statement)),n.length>o.maxQueueLength&&(o.maxQueueLength=n.length),r.blocks&&r.blocks.length>o.maxBlocks&&(o.maxBlocks=r.blocks.length),r.loops&&r.loops.length>o.maxLoops&&(o.maxLoops=r.loops.length),o.processedStatements++}return o}async function p7t(e,t,r,n){let o=[],i;switch(e.type){case $p:break;case Zx:if(n!==r.mainThread)throw new Error("'var' declarations are not allowed within functions");break;case os:break;case ns:if(e.stmts.length===0)break;n.blocks??(n.blocks=[]),n.blocks.push({vars:{}}),mS(n,e.stmts),o=un([...dd(e.stmts),py()]);break;case is:const a=await qa(e.expr,r,n);n.blocks&&n.blocks.length!==0&&(n.blocks[n.blocks.length-1].returnValue=a);break;case ea:const l=await t7t(e.expr,r,n,...r.eventArgs??[]);n.blocks&&n.blocks.length!==0&&(n.blocks[n.blocks.length-1].returnValue=l);break;case Xx:{const u=ii(n);if(!u)throw new Error("Missing block scope");await Z4(u,r,n,e.decls);break}case Qx:{const u=ii(n);if(!u)throw new Error("Missing block scope");await Z4(u,r,n,e.decls,!0);break}case Jx:!!await qa(e.cond,r,n)?o=dS(e.thenB):e.elseB&&(o=dS(e.elseB));break;case Sf:{if(ii(n)===void 0)throw new Error("Return requires a block scope");if(n.returnValue=e.expr?await qa(e.expr,r,n):void 0,(n.tryBlocks??[]).length>0){const c=n.tryBlocks[0];c.exitType="return",c.processingPhase!=="postFinally"&&n.blocks.pop(),i=Pf(n).tryLabel}else i=-1;break}case ey:{let u=t.guard?Fo(n):ss(n);!!await qa(e.cond,r,n)?o=Uv(u,e,n.breakLabelValue):Co(n);break}case ty:{if(!t.guard){o=Uv(ss(n),e,n.breakLabelValue);break}!!await qa(e.cond,r,n)?o=Uv(Fo(n),e,n.breakLabelValue):Co(n);break}case YT:{if(!n.loops||n.loops.length===0)throw new Error("Missing loop scope");let u;for(;n.loops.length>0&&(u=Fo(n),!!u.isSwitch);)n.loops.pop();if(!u)throw new Error("Missing loop scope");if(u.tryBlockDepth>=0&&u.tryBlockDepth<(n.tryBlocks??[]).length){for(let d=u.tryBlockDepth;d<n.tryBlocks.length;d++)n.tryBlocks[u.tryBlockDepth].exitType="continue";i=Pf(n).tryLabel}else i=u.continueLabel,Co(n,!1);break}case GT:{const u=Fo(n);if(u===void 0)throw new Error("Missing loop scope");if(u.isSwitch){i=u.breakLabel;break}if(u.tryBlockDepth>=0&&u.tryBlockDepth<(n.tryBlocks??[]).length){for(let d=u.tryBlockDepth;d<n.tryBlocks.length;d++)n.tryBlocks[u.tryBlockDepth].exitType="break";i=Pf(n).tryLabel}else i=u.breakLabel,Co(n);break}case ry:if(t.guard)if(!e.cond||await qa(e.cond,r,n)){const u=Fo(n);if(e.upd){const c={statement:{type:is,nodeId:Af(),expr:e.upd}};o=un([{statement:e.body},c,{statement:e,execInfo:t}])}else o=un([{statement:e.body},{statement:e,execInfo:t}]);u.breakLabel=n.breakLabelValue??-1,u.continueLabel=o[1].label}else Co(n);else{ss(n,1),n.blocks??(n.blocks=[]),n.blocks.push({vars:{}});const u=fd(e);e.init?o=un([{statement:e.init},u]):o=un([u])}break;case ad:if(t.guard){if(t.keyIndex===void 0||t.keys===void 0)throw new Error("Keys information expected in for..in loop");if(t.keyIndex<t.keys.length){const u=t.keys[t.keyIndex++];switch(e.varB){case"none":{const d={type:sd,leftValue:{type:Qt,name:e.id.name},op:"=",expr:{type:$n,value:u}};await qa(d,r,n);break}case"const":case"let":{const d=ii(n);if(!d)throw new Error("Missing block scope");d.vars[e.id.name]=u,e.varB==="const"&&(d.constVars??(d.constVars=new Set),d.constVars.add(e.id.name))}break}const c=Fo(n);o=un([{statement:e.body},{statement:e,execInfo:t}]),c.breakLabel=n.breakLabelValue??-1,c.continueLabel=o[1].label}else Co(n)}else{const u=await qa(e.expr,r,n);if(u==null)break;ss(n,1),n.blocks??(n.blocks=[]),n.blocks.push({vars:{}}),o=un([{statement:e,execInfo:{guard:!0,keys:Object.keys(u),keyIndex:0}}])}break;case Ef:if(t.guard){if(t.iterator===void 0)throw new Error("Iterator expected in for..of loop");const u=t.iterator.next();if(u.done){Co(n);break}const c=u.value;switch(e.varB){case"none":{const f={type:sd,leftValue:{type:Qt,name:e.id.name},op:"=",expr:{type:$n,value:c}};await qa(f,r,n);break}case"const":case"let":{const f=ii(n);if(!f)throw new Error("Missing block scope");f.vars[e.id.name]=c,e.varB==="const"&&(f.constVars??(f.constVars=new Set),f.constVars.add(e.id.name))}break}const d=Fo(n);o=un([{statement:e.body},{statement:e,execInfo:t}]),d.breakLabel=n.breakLabelValue??-1,d.continueLabel=o[1].label}else{const u=await qa(e.expr,r,n);if(u==null||typeof u[Symbol.iterator]!="function")throw new Error("Object in for..of is not iterable");ss(n,1),n.blocks??(n.blocks=[]),n.blocks.push({vars:{}}),o=un([{statement:e,execInfo:{guard:!0,iterator:u[Symbol.iterator]()}}])}break;case ny:throw new Vu(await qa(e.expr,r,n));case oy:{if(!t.guard){o=tQ(n,eQ(n,e));break}const u=Pf(n);switch(u.processingPhase){case"error":switch(u.errorSource){case"try":if(n.blocks.pop(),e.catchB){if(u.statement.catchV){const d=ii(n);d.vars[u.statement.catchV.name]=u.errorToThrow instanceof Vu?u.errorToThrow.errorObject:u.errorToThrow}delete u.errorToThrow,u.processingPhase="catch",o=rQ(n,u)}else u.statement.finallyB&&(u.processingPhase="finally",o=Hf(n,u));break;case"catch":n.blocks.pop(),u.processingPhase="finally",o=Hf(n,u);break;case"finally":n.blocks.pop(),u.processingPhase="postFinally",o=fS(u);break}break;case"try":u.processingPhase="finally",e.finallyB&&(o=Hf(n,u));break;case"catch":u.processingPhase="finally",e.finallyB&&(o=Hf(n,u));break;case"finally":u.processingPhase="postFinally",o=fS(u);break;case"postFinally":const c=n.tryBlocks.pop();switch(c.exitType){case"break":{const d=Fo(n);if(d===void 0)throw new Error("Missing loop scope");Co(n),i=d.breakLabel;break}case"continue":{const d=Fo(n);if(d===void 0)throw new Error("Missing loop scope");i=d.continueLabel,Co(n,!1);break}case"return":i=-1;break}if(c.errorToThrow)throw c.errorToThrow;break}break}case iy:{if(t.guard)Co(n);else{let u=ss(n);u.isSwitch=!0,n.blocks.push({vars:{}});const c=await qa(e.expr,r,n);let d=-1;for(let p=0;p<e.cases.length;p++){const g=e.cases[p];if(g.caseE===void 0){d=p;break}if(await qa(g.caseE,r,n)===c){d=p;break}}const f=[];if(d>=0)for(let p=d;p<e.cases.length;p++)f.push(...e.cases[p].stmts);o=un([...dd(f),fd(e)]),u.breakLabel=o[o.length-1].label}break}}return t.removeBlockScope&&n.blocks&&n.blocks.length>0&&n.blocks.pop(),{toUnshift:o,clearToLabel:i}}async function Z4(e,t,r,n,o=!1,i=!1,a=void 0){for(let d=0;d<n.length;d++){let f;const p=n[d];i?f=a:p.expr&&(f=await qa(p.expr,t,r)),l(e,p,f,o)}function l(d,f,p,g){if(f.id)s(d,f.id,p,g);else if(f.aDestr)u(d,f.aDestr,p,g);else if(f.oDestr)c(d,f.oDestr,p,g);else throw new Error("Unknown declaration specifier")}function s(d,f,p,g){if(d.vars[f])throw new Error(`Variable ${f} is already declared in the current scope.`);d.vars[f]=p,g&&(d.constVars??(d.constVars=new Set),d.constVars.add(f))}function u(d,f,p,g){for(let v=0;v<f.length;v++){const b=f[v],y=p==null?void 0:p[v];b.id?s(d,b.id,y,g):b.aDestr?u(d,b.aDestr,y,g):b.oDestr&&c(d,b.oDestr,y,g)}}function c(d,f,p,g){for(let v=0;v<f.length;v++){const b=f[v],y=p==null?void 0:p[b.id];b.aDestr?u(d,b.aDestr,y,g):b.oDestr?c(d,b.oDestr,y,g):s(d,b.alias??b.id,y,g)}}}function Xwe(e){const t=new If(e);let r=null;try{r=t.parseStatements()}catch(n){if(t.errors.length>0){const o=t.errors[0];Xg(new tx(`${o.code}(${o.line}, ${o.column}): ${t.errors[0].text}`,e,o.position))}else throw n}if(!t.isEof){const n=t.getTail();Xg(new tx("Invalid tail found",e,e.length-n.length+1))}return r}function gB(e,t){const r=(e==null?void 0:e.length)??0;if(r===0)return[{type:ea,expr:{type:Tn,args:[],statement:{type:os}}}];if(r===1){const i=e[0];if(i.type===is){if(t){if(i.expr.type===Qt)return[o(i.expr)];if(n(i.expr))return[o(i.expr)]}return i.expr.type===Tn?[{type:ea,expr:i.expr}]:[{type:ea,expr:{type:Tn,args:[],statement:e[0]}}]}if(i.type===Sf)return[{type:ea,expr:{type:Tn,args:[],statement:{type:ns,stmts:[i]}}}];if(i.type===ns)return i.stmts[0].type===is&&i.stmts[0].expr.type===Tn?[{type:ea,expr:i.stmts[0].expr}]:[{type:ea,expr:{type:Tn,args:[],statement:e[0]}}]}if(r>1)return[{type:ea,expr:{type:Tn,args:[],statement:{type:ns,stmts:e}}}];return e;function n(i){return(i.type===as||i.type===ld&&i.member.type===$n)&&(n(i.obj)||i.obj.type===Qt)}function o(i){const a=t.eventArgs?t.eventArgs.map((s,u)=>({type:Qt,name:`__arg@@#__${u}__`})):[];t.eventArgs&&t.eventArgs.forEach((s,u)=>{t.localContext[`__arg@@#__${u}__`]=s});const l={type:Tn,args:a,statement:{type:is,expr:{type:jv,obj:i,arguments:[...a]}}};return{type:ea,expr:l}}}async function h7t(e,t,r){const n=gB(Xwe(e));return await hB(n,t,r)}function g7t({node:e,state:t,dispatch:r,lookupAction:n,lookupSyncCallback:o,registerComponentApi:i,onUnmount:a,appContext:l,memoedVarsRef:s}){const u=Hh(),c=m.useMemo(()=>Symbol(e.uid),[e.uid]);m.useEffect(()=>()=>{a(c)},[a,c]);const d=m.useCallback(_=>{i(c,_)},[i,c]),f=m.useCallback((_,S)=>n(_,c,S),[n,c]),p=F_(t),g=m.useMemo(()=>tee(t,l,p,s),[l,s,p,t]),v=m.useCallback(_=>{if(_)return o(g(_),c)},[o,c,g]),b=m.useCallback(_=>{r(v7t(c,_))},[r,c]),y=m.useCallback(_=>{r(b7t(c,_))},[r,c]),w=m.useCallback((_,S)=>{r(x7t(c,_,S))},[r,c]),k=m.useCallback(_=>{r(y7t(c,_))},[r,c]),E=u.lookupLoaderRenderer(e.type);return E?E({loader:e,state:t,dispatch:r,loaderInProgressChanged:b,loaderIsRefetchingChanged:y,loaderLoaded:w,loaderError:k,extractValue:g,registerComponentApi:d,lookupAction:f,lookupSyncCallback:v}):(console.error(`Loader ${e.type} is not available. Did you forget to register it in the loaderRegistry?`),null)}function v7t(e,t){return{type:Po.LOADER_IN_PROGRESS_CHANGED,payload:{uid:e,inProgress:t}}}function b7t(e,t){return{type:Po.LOADER_IS_REFETCHING_CHANGED,payload:{uid:e,isRefetching:t}}}function x7t(e,t,r){return{type:Po.LOADER_LOADED,payload:{uid:e,data:t,pageInfo:r}}}function y7t(e,t){return{type:Po.LOADER_ERROR,payload:{uid:e,error:t}}}const w7t=m.memo(m.forwardRef(function({node:t,componentState:r,dispatch:n,parentDispatch:o,resolvedKey:i,version:a,setVersion:l,statePartChanged:s,registerComponentApi:u,parentRegisterComponentApi:c,layoutContextRef:d,parentRenderContext:f,memoedVarsRef:p,isImplicit:g,uidInfoRef:v,children:b},y){var me;const{apiBoundContainer:w}=t,k=g?o:n,E=g?c:u,_=jo(),{getThemeVar:S}=zr(),O=kv(),A=dl(),I=m.useRef({}),H=m.useRef(r);H.current=r;const P=m.useRef({}),[L,B]=m.useTransition(),z=m.useRef(!0),j=m.useRef(new Map);_n(()=>{for(const X of j.current.values())X()},[a]),m.useEffect(()=>{z.current=!0;const X=j.current;return()=>{z.current=!1;for(const Z of X.values())Z()}},[]);const q=Mt(async(X,Z,te,...se)=>{var Le,Te,qe;const de=()=>Z.description!==void 0&&(te==null?void 0:te.eventName)!==void 0;let ke=[];const we=()=>{ke.length=0;const _e=Ql({...H.current,...(te==null?void 0:te.context)||{}});return _e.$this=H.current[Z],Ywe(_e,Me=>{var Se;const ye=(Se=Me.pathArray)==null?void 0:Se[0];if(ye!=null&&ye.startsWith("$"))throw new Error("Cannot update a read-only variable");ke.push(Me)})},Ae={..._,getThemeVar:S},Ne={appContext:Ae,eventArgs:se,localContext:we(),implicitContextGetter:()=>({uid:Z,state:H.current,getCurrentState:()=>H.current,dispatch:k,appContext:Ae,navigate:O,location:A,lookupAction:(_e,Me,ye={})=>Y(_e,Me,{...ye,ephemeral:!0})}),options:{defaultToOptionalMemberAccess:typeof((Le=_.appGlobals)==null?void 0:Le.defaultToOptionalMemberAccess)=="boolean"?_.appGlobals.defaultToOptionalMemberAccess:!0}};try{let _e;if(typeof X=="string")P.current[X]||(P.current[X]=gB(Xwe(X),Ne)),_e=P.current[X];else if(Qwe(X)){const ye=X.parseId.toString();P.current[ye]||(P.current[ye]=gB(X.statements,Ne)),_e=P.current[ye]}else _e=[{type:ea,expr:X}];if(!(_e!=null&&_e.length))return;de()&&k({type:Po.EVENT_HANDLER_STARTED,payload:{uid:Z.description,eventName:te.eventName}});let Me=0;if(Ne.onStatementCompleted=async ye=>{if(ke.length){Me=0,ke.forEach(lt=>{s(lt.pathArray,Ql(lt.newValue),lt.target,lt.action)});let Se=null;const He=new Promise(lt=>{Se=()=>{lt(null)}}),st=vx();j.current.set(st,Se),B(()=>{l(lt=>lt+1)}),z.current?await He:await cv(0),j.current.delete(st),ke=[]}else Me++,Me>100&&(Me=0,await cv(0));ye.localContext=we()},await hB(_e,Ne),de()&&k({type:Po.EVENT_HANDLER_COMPLETED,payload:{uid:Z.description,eventName:te.eventName}}),(qe=(Te=Ne.mainThread)==null?void 0:Te.blocks)!=null&&qe.length)return Ne.mainThread.blocks[Ne.mainThread.blocks.length-1].returnValue}catch(_e){throw(te==null?void 0:te.signError)!==!1&&_.signError(_e),de()&&k({type:Po.EVENT_HANDLER_ERROR,payload:{uid:Z.description,eventName:te.eventName,error:_e}}),_e}}),W=m.useCallback((X,...Z)=>{var se,de;const te={localContext:Ql(H.current),appContext:_,eventArgs:Z};try{if(JP([{type:ea,expr:X}],te),(de=(se=te.mainThread)==null?void 0:se.blocks)!=null&&de.length)return te.mainThread.blocks[te.mainThread.blocks.length-1].returnValue}catch(ke){throw console.error(ke),ke}},[_]),M=Mt((X,Z,te)=>{var ke;if(Array.isArray(X))throw new Error("Multiple event handlers are not supported");let se,de;if(typeof X=="string")se=`${te==null?void 0:te.eventName};${X}`,de=(...we)=>q(X,Z,te,...Ql(we));else if(Qwe(X))se=`${te==null?void 0:te.eventName};${X.parseId}`,de=(...we)=>q(X,Z,te,...Ql(we));else if(k7t(X))se=`${te==null?void 0:te.eventName};${X.statement.nodeId}`,de=(...we)=>q(X,Z,te,...Ql(we));else if(X.type)se=`${te==null?void 0:te.eventName};${JSON.stringify(X)}`,de=(...we)=>q(X,Z,te,...Ql(we));else throw new Error("Invalid event handler");return te!=null&&te.ephemeral||te!=null&&te.context?de:((ke=I.current[Z])!=null&&ke[se]||(I.current[Z]=I.current[Z]||{},I.current[Z][se]=de),I.current[Z][se])}),V=m.useCallback((X,Z)=>{var se;const te=`sync-callback-${X.nodeId}`;return(se=I.current[Z])!=null&&se[te]||(I.current[Z]=I.current[Z]||{},I.current[Z][te]=Hy(de=>(...ke)=>W(de,...ke))),I.current[Z][te](X)},[W]),N=m.useCallback((X,Z)=>{if(X){if(typeof X=="function")return X;if(X){if(typeof X=="function")return X;if(!X._ARROW_EXPR_)throw new Error("Only arrow expression allowed in sync callback");return V(X,Z)}}},[V]),Y=m.useCallback((X,Z,te)=>{let se=X;if(!X&&Z.description&&(te!=null&&te.eventName)){const de=`${Z.description}_on${bx(te==null?void 0:te.eventName)}`;r[de]&&r[de]._ARROW_EXPR_&&(se=r[de])}if(se)return typeof se=="function"?se:M(se,Z,te)},[r,M]),G=m.useRef(!1);m.useEffect(()=>{if(!t.api||!t.containerUid||G.current)return;G.current=!0;const X={},Z=Symbol("$self");Object.entries(t.api).forEach(([te,se])=>{X[te]=Y(se,Z)}),g||E(Z,X),c(t.containerUid,X)},[Y,t.api,t.containerUid,t.uid,g,c,E]);const F=Mt(X=>{delete I.current[X]}),K=m.useCallback((X,Z,te,se,de)=>{if(typeof X=="string")throw Error("should be resolved for now");const ke=ln(X)?X:[X];if(!ke||!ke.length)return null;const we=ke.length>1,Ae=ke.map((Ne,Le)=>{if(!Ne)return;const Te=o2e({node:Ne,state:r,dispatch:k,appContext:_,lookupAction:Y,lookupSyncCallback:N,registerComponentApi:E,renderChild:K,statePartChanged:s,layoutContext:Z,parentRenderContext:te,memoedVarsRef:p,cleanup:F,uidInfoRef:se});if(Te===void 0)return;let qe=Te;const _e=`${Le}_${Ne.uid}`;return we&&(ee.isValidElement(Te)?qe=ee.cloneElement(Te,{key:_e}):qe=C.jsx(m.Fragment,{children:Te},_e)),qe});return Ae.length===1?de&&Ae[0]&&m.isValidElement(Ae[0])?ee.cloneElement(Ae[0],{ref:no(de,Ae[0].ref)}):Ae[0]:Ae},[r,k,_,Y,N,E,s,p,F]);(me=t.props)!=null&&me.debug&&console.log(`Container: ${i}`,{componentState:r,node:t});const J={},ie=m.useRef({}),oe=t.uses===void 0?v:ie,le=K(t.children,d==null?void 0:d.current,f,oe,y),ce=C7t({uidInfo:J,uidInfoRef:oe,loaders:t.loaders,componentState:r,memoedVarsRef:p,dispatch:w?n:k,registerComponentApi:w?u:E,appContext:_,lookupAction:Y,lookupSyncCallback:N,cleanup:F}),pe=C.jsxs(C.Fragment,{children:[ce,b&&m.isValidElement(le)?m.cloneElement(le,null,b):le]});return C.jsx(m.Fragment,{children:pe},t.uid?`${i}>${Nt(r,t.uid,_,!0)}`:void 0)}));function C7t({uidInfo:e,uidInfoRef:t,loaders:r=Er,componentState:n,dispatch:o,appContext:i,registerComponentApi:a,lookupAction:l,lookupSyncCallback:s,cleanup:u,memoedVarsRef:c}){return r.map(f=>{if(f!=null&&f.uid){if(e[f.uid])throw new Error(`Another ${e[f.uid]} definition in this container already uses the uid '${f.uid}'`);e[f.uid]="loader",t.current[f.uid]={type:"loader",value:"loaderValue",uid:f.uid}}const p=d({loader:f,componentState:n,dispatch:o,appContext:i,registerComponentApi:a,lookupAction:l,lookupSyncCallback:s,memoedVarsRef:c,cleanup:u});if(p!==void 0)return C.jsx(m.Fragment,{children:p},f.uid)});function d({loader:f,componentState:p,dispatch:g,appContext:v,registerComponentApi:b,lookupAction:y,lookupSyncCallback:w,cleanup:k,memoedVarsRef:E}){return!f||!tH(f.when,p,v)?null:C.jsx(g7t,{onUnmount:k,node:f,state:p,dispatch:g,registerComponentApi:b,lookupAction:y,lookupSyncCallback:w,memoedVarsRef:E,appContext:v})}}function Qwe(e){return e.__PARSED===!0}function k7t(e){return e.type===Tn}const _7t=m.memo(m.forwardRef(function({node:t,resolvedKey:r,parentState:n,parentStatePartChanged:o,parentRegisterComponentApi:i,parentDispatch:a,parentRenderContext:l,layoutContextRef:s,uidInfoRef:u,isImplicit:c,children:d,...f},p){const[g,v]=m.useState(0),b=T7t(),y=m.useRef(new Map),w=ri(m.useMemo(()=>S7t(n,t.uses),[t.uses,n])),k=Bwe(),E=U$t(k),[_,S]=m.useReducer(E,Jt),[O,A]=m.useState(Jt),I=ri(m.useMemo(()=>{const F={..._};for(const K of Object.getOwnPropertySymbols(_)){const J=_[K];K.description&&(F[K.description]=J)}if(Reflect.ownKeys(O).length===0)return F;for(const K of Object.getOwnPropertySymbols(O)){const J=O[K];if(K.description){const ie=K.description;F[ie]={...F[ie]||{},...J}}F[K]={...F[K],...J}}return F},[_,O])),H=Zwe(w,I,t.contextVars),P=t.scriptCollected;if(P!=null&&P.moduleErrors&&!Cp(P.moduleErrors))throw new J4(P.moduleErrors);if(t.scriptError&&!Cp(t.scriptError))throw new J4(t.scriptError);const L=F_(_),B=ri({...P==null?void 0:P.functions,...t.functions,...P==null?void 0:P.vars,...t.vars}),z=m.useMemo(()=>{const F={};return Object.entries(B).forEach(([K,J])=>{e5(J)&&J.tree.type===Tn&&(F[K]=YS(J.tree,L))}),W$t(F)},[L,B]),j=Jwe(B,z,H,m.useRef(new Map)),q=ri({...j,...H}),W=Jwe(B,z,q,y),M=E7t(W,I),V=Zwe(w,t.contextVars,M,b),N=m.useCallback((F,K)=>{A(tl(J=>{J[F]||(J[F]={}),Object.entries(K).forEach(([ie,oe])=>{J[F][ie]!==oe&&(J[F][ie]=oe)})}))},[]),Y=m.useRef(I),G=m.useCallback((F,K,J,ie)=>{const oe=F[0];oe in Y.current||oe in W?S({type:Po.STATE_PART_CHANGED,payload:{path:F,value:K,target:J,actionType:ie,localVars:W}}):(!t.uses||t.uses.includes(oe))&&o(F,K,J,ie)},[W,t.uses,o]);return C.jsx(t0,{node:t,location:"container",children:C.jsx(w7t,{resolvedKey:r,node:t,componentState:V,dispatch:S,parentDispatch:a,setVersion:v,version:g,statePartChanged:G,registerComponentApi:N,parentRegisterComponentApi:i,layoutContextRef:s,parentRenderContext:l,memoedVarsRef:y,isImplicit:c,ref:p,uidInfoRef:u,...f,children:d})})})),T7t=()=>{const[e]=O$e(),t=Kq(),r=dl(),n=LY(),o=m.useMemo(()=>{var a;return((a=n==null?void 0:n.linkMap)==null?void 0:a.get(r.pathname))||Jt},[n==null?void 0:n.linkMap,r.pathname]),i=m.useMemo(()=>{const a={};for(const[l,s]of Array.from(e.entries()))a[l]=s;return a},[e]);return m.useMemo(()=>({$pathname:r.pathname,$routeParams:t,$queryParams:i,$linkInfo:o}),[o,r.pathname,i,t])};function S7t(e,t){return t?t.length===0?Jt:SPe(e,t):e}function Zwe(...e){const t=m.useMemo(()=>{let r={};return e.forEach((n=Jt)=>{n!==Jt&&(r={...r,...n})}),r},[e]);return ri(t)}function E7t(e,t){const r=m.useMemo(()=>{const n={...e};return Reflect.ownKeys(t).forEach(o=>{const i=t[o];n[o]===void 0?n[o]=i:Kl(n[o])&&Kl(i)||Array.isArray(n[o])&&Array.isArray(i)?n[o]=nU(Ql(n[o]),i):n[o]=i}),n},[e,t]);return ri(r)}function Jwe(e=Jt,t=Jt,r,n){const o=jo(),i=F_(r),a=m.useMemo(()=>{const l={};return Object.entries(e).forEach(([s,u])=>{if(s==="$props")l[s]=u;else if(!e5(u)&&typeof u!="string")l[s]=u;else{n.current.has(u)||n.current.set(u,{getDependencies:Hy((g,v)=>{if(e5(g))return YS(g.tree,v);const b=sS(g);let y=new Set;return b.forEach(w=>{w.type==="expression"&&(y=new Set([...y,...YS(w.value,v)]))}),Array.from(y)}),obtainValue:Hy((g,v,b,y,w,k)=>{try{return e5(g)?Ci(g.tree,{localContext:v,appContext:b,options:{defaultToOptionalMemberAccess:!0}}):Nt(v,g,b,y)}catch(E){throw console.log(v),new O7t(g,E)}},([g,v,b,y,w,k],[E,_,S,O,A,I])=>xx(w,A)&&xx(k,I))});const c={...l,...r};let d=[];t[s]?d=t[s]:(n.current.get(u).getDependencies(u,i).forEach(g=>{t[g]?d.push(...t[g]):d.push(g)}),d=[...new Set(d)]);const f=A_(c,d),p=A_(o,d);l[s]=n.current.get(u).obtainValue(u,c,o,!0,f,p)}}),l},[o,r,t,n,i,e]);return ri(a)}class J4 extends Error{constructor(t){const n=(t.Main||[]).map(o=>{let i=`${o.code} : ${o.text}`;const a=[];return o.line!==void 0&&a.push(`line:${o.line}`),o.column!==void 0&&a.push(`column:${o.column}`),a.length&&(i=`${i} (${a.join(", ")})`),i});super(n.join(`
|
|
635
635
|
`)),Object.setPrototypeOf(this,J4.prototype)}}class O7t extends Error{constructor(t,r){super(`Error on var: ${t} - ${(r==null?void 0:r.message)||"unknown"}`)}}function e5(e){return e&&typeof e=="object"&&e[CE]}function A7t(e){return e.type==="Container"?!0:!!(e.loaders||e.vars||e.uses||e.contextVars||e.functions||e.scriptCollected)}const I7t=m.memo(m.forwardRef(function({node:t,resolvedKey:r,parentState:n,parentStatePartChanged:o,parentRegisterComponentApi:i,parentDispatch:a,parentRenderContext:l,layoutContextRef:s,uidInfoRef:u,children:c,...d},f){const p=m.useMemo(()=>R7t(t),[t]);return C.jsx(t0,{node:t,location:"container",children:C.jsx(_7t,{node:p,resolvedKey:r,parentState:n,parentStatePartChanged:o,parentRegisterComponentApi:i,parentDispatch:a,parentRenderContext:l,layoutContextRef:s,uidInfoRef:u,isImplicit:t.type!=="Container"&&p.uses===void 0,ref:f,...d,children:c})})})),R7t=e=>{var r,n;if(e.type==="Container")return e;const t={...e,props:{...e.props}};return delete t.loaders,delete t.vars,delete t.functions,delete t.script,delete t.scriptCollected,delete t.scriptError,delete t.uses,(r=t.props)==null||delete r.uses,delete t.api,delete t.contextVars,{type:"Container",uid:e.uid,when:e.when,loaders:e.loaders,vars:e.vars,functions:e.functions,scriptCollected:e.scriptCollected,scriptError:e.scriptError,uses:e.uses,api:e.api,containerUid:e==null?void 0:e.containerUid,apiBoundContainer:e==null?void 0:e.apiBoundContainer,contextVars:e.contextVars,props:{debug:(n=e.props)==null?void 0:n.debug},children:[t]}},e2e={position:"absolute",width:0,display:"none"},P7t=m.forwardRef((e,t)=>{const r=m.useRef(null),n=m.useRef(null),{onTargetMounted:o}=e,i=m.useRef(null),a=m.useRef(null),[l,s]=m.useState(!1),u=m.useCallback(g=>{a.current=g,g!==null&&(o==null||o()),s(!0)},[o]),[c,d]=m.useState(0),f=ri(e.attr),p=!e.allowOnlyRefdChild&&!l;return m.useLayoutEffect(()=>{let g;l?g=a.current:p&&(i.current?g=i.current:(g=(r.current.nextElementSibling===n.current?null:r.current.nextElementSibling)||null,i.current=g,d(v=>v++))),g&&Object.entries(f).forEach(([v,b])=>{b!==void 0?g.setAttribute(v,b):g.removeAttribute(v)})},[p,f,l]),C.jsxs(C.Fragment,{children:[!i.current&&p&&C.jsx("span",{style:e2e,ref:r}),m.cloneElement(e.children,{ref:t?no(u,t):u}),!i.current&&p&&C.jsx("span",{style:e2e,ref:n})]})});let H7t=0;function L7t(e){const t={__PARSED:!0,parseId:++H7t,segments:[]};if(e==null)return t;let r=0,n="",o="";for(let i=0;i<e.length;i++){const a=e[i];switch(r){case 0:a==="\\"?(r=1,o="\\"):a==="{"?(n!==""&&t.segments.push({literal:n}),n="",r=2):n+=a;break;case 1:if(a==="\\"){o+=a;break}a==="{"?n+=o.substring(1)+a:n+=o+a,r=0;break;case 2:const l=e.substring(i),s=new If(e.substring(i));let u=null;try{u=s.parseExpr()}catch(d){throw new Error(`Cannot parse expression: '${l}': ${d}`)}const c=s.getTail();if(!c||c.trim().length<1||c.trim()[0]!=="}")throw new Error(`Unclosed expression: '${e}'
|
|
636
636
|
'${l}'`);t.segments.push({expr:u}),i=e.length-c.length,n="",r=0;break}}switch(r){case 0:n!==""&&t.segments.push({literal:n});break;case 1:t.segments.push({literal:n+o});break;case 2:t.segments.push({literal:n+"{"});break}return t}function N7t({uid:e,node:t,apiBoundProps:r,apiBoundEvents:n,renderChild:o,layoutContextRef:i,parentRendererContext:a}){const l=m.useMemo(()=>{function u(b){return`${t.uid}_data_${b}`}const c=[...t.loaders||[]],d={...t.events||{}},f={...t.props||{}},p={...t.vars||{}},g={...t.api||{}};n.forEach(b=>{const{type:y}=t.events[b];switch(y){case"FileUpload":{const w=t.events[b],{invalidates:k,asForm:E,formParams:_,queryParams:S,rawBody:O,body:A,url:I,headers:H,method:P,file:L}=w.props,{success:B,error:z}=w.events||{};d[b]=`(eventArgs) => {
|
|
637
637
|
return Actions.upload({
|
|
@@ -693,7 +693,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
693
693
|
`+a(p+1)+E+`
|
|
694
694
|
`:g+=E}if(b){const E=f.childNodes.map(_=>i(_,p+1));r!=null&&r.prettify?(E.forEach(_=>{g+=`
|
|
695
695
|
`+_}),g+=`
|
|
696
|
-
`):g+=E.join("")}g+=`${a(p)}</${f.name}>`}else g+=((r==null?void 0:r.useSpaceBeforeClose)??!1?" ":"")+"/>"}else g+=((r==null?void 0:r.useSpaceBeforeClose)??!1?" ":"")+"/>",f.text===""&&(g+=`""</${y()}>`);return g;function y(){return f.namespace?`${f.namespace}:${f.name}`:f.name}}function u(f){if(f.value===void 0||f.value===null)return`${g()}`;if(f.preserveSpaces)return`${g()}=${d(f.value)}`;const p=f.value??"";return`${g()}=${d(p)}`;function g(){return f.namespace?`${f.namespace}:${f.name}`:f.name}}function c(f){return r!=null&&r.useQuotes||n5.test(f)?d(f):f}function d(f){const p=f.indexOf("'")>=0,g=f.indexOf('"')>=0;return!p&&!g||p&&!g?`"${f.replaceAll("`","\\`")}"`:g&&!p?`'${f.replaceAll("`","\\`")}'`:`\`${f.replaceAll("`","\\`")}\``}}transformComponentDefinition(t,r){return t.type?this.transformSimpleComponentDefinition(t,r):this.transformCompoundComponentDefinition(t,r)}transformObject(t,r){const n=this.transformValue("Object","",t,r);return n?n.childNodes??[]:null}transformSimpleComponentDefinition(t,r){const n={type:"XmlUiElement",name:t.type};return t.uid!==void 0&&this.addProperty(n,"id",t.uid,r),t.testId!==void 0&&this.addProperty(n,"testId",t.testId,r),t.when!==void 0&&this.addProperty(n,"when",t.when,r),t.vars&&Object.keys(t.vars).forEach(o=>{const i=this.transformValue("var",o,t.vars[o],r);i!==null&&(n.childNodes??(n.childNodes=[]),n.childNodes.push(i))}),t.props&&Object.keys(t.props).forEach(o=>{const i=t.props[o];if(o.endsWith("Template")&&i.type){n.childNodes??(n.childNodes=[]);const a={type:"XmlUiElement",name:"property",attributes:[{type:"XmlUiAttribute",name:"name",value:o}]};this.addComponentElement(a,i),n.childNodes.push(a)}else{if(i===void 0)return;if(i===null){const a={type:"XmlUiElement",name:"property",attributes:[{type:"XmlUiAttribute",name:"name",value:o}]};n.childNodes??(n.childNodes=[]),n.childNodes.push(a);return}if(o==="id"||o==="when"||o==="testId"||r!=null&&r.extractProps){const a={type:"XmlUiElement",name:"property"};this.addProperty(a,o,i,r),n.childNodes??(n.childNodes=[]),n.childNodes.push(a);return}this.addProperty(n,o,i,r)}}),t.events&&Object.keys(t.events).forEach(o=>{const i=this.transformValue("event",o,t.events[o],r);i!==null&&(n.childNodes??(n.childNodes=[]),n.childNodes.push(i))}),t.loaders&&this.addComponentList(n,"loaders",t.loaders),t.api&&Object.keys(t.api).forEach(o=>{const i=this.transformValue("api",o,t.api[o],r);i!==null&&(n.childNodes??(n.childNodes=[]),n.childNodes.push(i))}),t.uses&&this.addList(n,"uses","",t.uses,r),t.children&&(typeof t.children=="string"?this.addProperty(n,"children",t.children,r):t.children.forEach(o=>{this.addComponentElement(n,o)})),n}transformCompoundComponentDefinition(t,r){if(typeof t=="string")return{type:"XmlUiElement",name:t};const n=this.transformSimpleComponentDefinition(t.component,r),o={type:"XmlUiElement",name:_N,attributes:[{type:"XmlUiAttribute",name:"name",value:t.name}],childNodes:Array.isArray(n)?[...n]:[n]};return t.api&&Object.keys(t.api).forEach(i=>{const a=this.transformValue("api",i,t.api[i],r);a!==null&&(o.childNodes??(o.childNodes=[]),o.childNodes.push(a))}),o}transformValue(t,r,n,o){if(n===void 0)return null;const i={type:"XmlUiElement",name:t};if(r&&(i.attributes=[{type:"XmlUiAttribute",name:"name",value:r}]),n===null)return i;if(typeof n=="string"||typeof n=="number"||typeof n=="boolean"){const a=typeof n=="string"?n.toString():`{${n.toString()}}`,l=n5.test(a)||a.trim().length!=a.length;return o!=null&&o.preferTextToValue?(i.text=a,i.preserveSpaces=l):(i.attributes??(i.attributes=[]),i.attributes.push({type:"XmlUiAttribute",name:"value",value:a,preserveSpaces:l})),i}if(Array.isArray(n))n.length===0?(i.attributes??(i.attributes=[]),i.attributes.push({type:"XmlUiAttribute",name:"value",value:"{[]}"})):n.forEach(a=>{const l=this.transformValue("item",void 0,a,o);l&&(i.childNodes??(i.childNodes=[]),i.childNodes.push(l))});else if(typeof n=="object"){const a=Object.keys(n);a.length===0?(i.attributes??(i.attributes=[]),i.attributes.push({type:"XmlUiAttribute",name:"value",value:"{{}}"})):a.forEach(l=>{const s=this.transformValue("field",l,n[l],o);s&&(i.childNodes??(i.childNodes=[]),i.childNodes.push(s))})}else throw new Error(`Cannot serialize '${typeof n}' value`);return i}transformObjectValue(t,r,n){const o={type:"XmlUiElement",name:t};return r&&Object.keys(r).forEach(i=>this.addProperty(o,i,r[i],n)),o}addProperty(t,r,n,o){switch(typeof n){case"undefined":break;case"string":t.attributes??(t.attributes=[]),t.attributes.push({type:"XmlUiAttribute",name:r,value:n==null?void 0:n.toString(),preserveQuotes:(o==null?void 0:o.removeQuotes)??!1,preserveSpaces:n5.test(n.toString())});break;case"boolean":case"number":case"object":const i=this.transformValue("property",r,n,o);i&&(t.childNodes??(t.childNodes=[]),t.childNodes.push(i));break;default:throw new Error(`'${typeof n}' transformation is not implemented yet`)}}addComponentElement(t,r){t.childNodes??(t.childNodes=[]);const n=this.transformComponentDefinition(r);Array.isArray(n)?t.childNodes.push(...n):t.childNodes.push(n)}addList(t,r,n,o,i){const a=`${n?n+".":""}${r}`;t.childNodes??(t.childNodes=[]),o.forEach(l=>{if(typeof l=="string")t.childNodes.push({type:"XmlUiElement",name:a,text:l,preserveSpaces:n5.test(l)||l!==l.trim()||l===""});else if(l===null)t.childNodes.push({type:"XmlUiElement",name:a});else{const s=this.transformObjectValue(a,l,i);Array.isArray(s)?t.childNodes.push(...s):t.childNodes.push(s)}})}addComponentList(t,r,n){const o=[];n.forEach(a=>{const l=this.transformSimpleComponentDefinition(a);Array.isArray(l)?o.push(...l):o.push(l)});const i={type:"XmlUiElement",name:r,childNodes:o};t.childNodes??(t.childNodes=[]),t.childNodes.push(i)}}class fDt{constructor(t){this.metadataCollection=t}componentNames(){return Object.keys(this.metadataCollection)}getComponent(t){const r=this.metadataCollection[t];return r?new mDt(r):null}}class mDt{constructor(t){this.metadata=t}getProp(t){return this.metadata.props[t]??o5[t]}getAttr(t){var i,a,l;if(SN.test(t)){const s=I1t(t),u=(i=this.metadata.events)==null?void 0:i[s];if(u)return u}const r=(a=this.metadata.props)==null?void 0:a[t];if(r)return r;const n=(l=this.metadata.apis)==null?void 0:l[t];if(n)return n;const o=c2e(t);return o||o5[t]}getAttrForKind({name:t,kind:r}){switch(r){case"api":return this.metadata.apis[t];case"event":return this.metadata.events[t];case"prop":return this.metadata.props[t];case"implicit":return o5[t];case"layout":return c2e(t)}}getAllAttributes(){const t=[];for(const r of Object.keys(this.metadata.props??{}))t.push({name:r,kind:"prop"});for(const r of Object.keys(this.metadata.events??{}))t.push({name:r,kind:"event"});for(const r of Object.keys(this.metadata.apis??{}))t.push({name:r,kind:"api"});for(const r of e1)t.push({name:r,kind:"layout"});for(const r of Object.keys(o5))t.push({name:r,kind:"implicit"});return t}getEvent(t){var r;return(r=this.metadata.events)==null?void 0:r[t]}getApi(t){var r;return(r=this.metadata.apis)==null?void 0:r[t]}get events(){return this.metadata.events}get apis(){return this.metadata.apis}get contextVars(){return this.metadata.contextVars}get allowArbitraryProps(){return this.metadata.allowArbitraryProps}get shortDescription(){return this.metadata.shortDescription}getMetadata(){return this.metadata}}function c2e(e){const t={description:"Layout property. Not yet documented"};if(e1.includes(e))return t;for(const r of jU){const n="-"+r.value;if(e.endsWith(n)){const o=e.slice(0,-n.length);if(e1.includes(o))return t}}return null}const o5={inspect:{description:"Determines whether the component can be inspected or not",defaultValue:!1,valueType:"boolean"},data:{description:"Specifies the data source for a component. Can be a URL string (fetched automatically), a DataSource or an expression to evaluate. Changes to this property trigger UI updates once data is loaded."},when:{description:"Specifies a condition that must be met for the component to be displayed",defaultValue:!0,valueType:"boolean"}};var Fd={VITE_XMLUI_VERSION:"0.9.74 (built 7/15/2025)"};const mC="Main."+dC,pDt="Main."+ug,d2e="config.json",yB=new fDt(cDt);function f2e({appDef:e,decorateComponentsWithTestId:t,debugEnabled:r=!1,runtime:n,extensionManager:o,waitForApiInterceptor:i=!1}){const{standaloneApp:a,projectCompilation:l}=hDt(e,n,o);gDt(a);const{apiInterceptor:s,name:u,appGlobals:c,defaultTheme:d,defaultTone:f,resources:p,resourceMap:g,entryPoint:v,components:b,themes:y,sources:w}=a||{},k=m.useMemo(()=>({name:u,...c||{}}),[c,u]);let E=m.useMemo(()=>({compoundComponents:b,themes:y}),[b,y]);if(!a)return null;const _=typeof window<"u"&&window.XMLUI_MOCK_API?window.XMLUI_MOCK_API:s,S=t||(typeof window<"u"?window.XMLUI_MOCK_TEST_ID:!1),O=(c==null?void 0:c.useHashBasedRouting)??!0;return C.jsx(IN,{interceptor:_,useHashBasedRouting:O,waitForApiInterceptor:i,children:C.jsx(vB,{projectCompilation:l,decorateComponentsWithTestId:S,node:v,standalone:!0,debugEnabled:r,routerBaseName:typeof window<"u"&&window.__PUBLIC_PATH||"",globalProps:k,defaultTheme:d,defaultTone:f,resources:p,resourceMap:g,sources:w,extensionManager:o,contributes:E})})}async function wB(e){if(!e.ok)throw new Error(`Failed to fetch ${e.url}`);const t=await e.text(),r=e.url;let{component:n,errors:o,erroneousCompoundComponentName:i}=Mw(t,r);if(o.length>0){const a=i??e.url.substring(e.url.lastIndexOf("/")+1,e.url.length-6);n=TE(o,r,a)}return{component:n,src:t,file:r,hasError:o.length>0}}async function CB(e){if(!e.ok)throw new Error(`Failed to fetch ${e.url}`);const t=await e.text(),r=new If(t);try{r.parseStatements()}catch(n){if(console.error("Error parsing code behind",n),r.errors.length>0)return{component:P1t(r.errors[0],e.url),file:e.url,hasError:!0}}try{const n=Nce("Main",t);return Object.keys(n.moduleErrors??{}).length>0?{component:H1t(n.moduleErrors,e.url),file:e.url,hasError:!0}:(b1t(n),{src:t,codeBehind:n,file:e.url})}catch(n){console.error("Error collecting code behind",n)}}function i5(e,t){return e.endsWith(`/${t}.ts`)||e.endsWith(`/${t}.js`)||e.endsWith(`/${t}.${dC}`)||e.endsWith(`/${t}.${ug}`)}function m2e(e,t){return e.includes(`/${t}/`)}function p2e(e){const t={entrypoint:{filename:"",definition:null,dependencies:new Set},components:[],themes:{}},r={},n={},o={},i=[];let a,l,s,u;for(const[p,g]of Object.entries(e)){if(i5(p,"config")&&(a=g.default),(i5(p,"Main")||i5(p,"App"))&&(p.endsWith(ug)?(s=g.default,t.entrypoint.codeBehindSource=g.default.src):(t.entrypoint.filename=p,l=g.default.component,t.entrypoint.definition=l,t.entrypoint.markupSource=g.default.src,g.default.file&&(r[g.default.file]=g.default.src))),i5(p,"api")&&(u=g.default),m2e(p,"components"))if(p.endsWith(`.${ug}`)){o[p]=g.default;const v=t.components.findLast(({filename:b})=>{const y=p.lastIndexOf(ug),w=b.lastIndexOf(dC);return b.substring(0,w)===p.substring(0,y)});v.codeBehindSource=g.default.src}else{n[p]=g.default.component,r[g.default.file]=g.default.src;const v={definition:g.default.component,filename:p,markupSource:g.default.src,dependencies:new Set};t.components.push(v)}m2e(p,"themes")&&i.push(g.default)}const c=(a==null?void 0:a.entryPoint)||l,d={...c,vars:{...s==null?void 0:s.vars,...c==null?void 0:c.vars},functions:s==null?void 0:s.functions,scriptError:s==null?void 0:s.moduleErrors};let f=[];return a!=null&&a.components?f=a.components:Object.entries(n).forEach(([p,g])=>{const v=o[`${p}.xs`],b={...g,component:{...g.component,vars:{...g.component.vars,...v==null?void 0:v.vars},functions:v==null?void 0:v.functions,scriptError:v==null?void 0:v.moduleErrors}};f.push(b)}),{standaloneApp:{...a,entryPoint:d,components:f,themes:(a==null?void 0:a.themes)||i,apiInterceptor:(a==null?void 0:a.apiInterceptor)||u,sources:r},projectCompilation:t}}function h2e(e,t){return t?{...t,entryPoint:t.entryPoint||e.entryPoint,components:t.components||e.components,themes:t.themes||e.themes,apiInterceptor:t.apiInterceptor||e.apiInterceptor}:e}function g2e(e,t){const r=new URL(e,"http://dummy.com");return new URL(t,r).pathname.substring(1)}async function a5(e){try{const t=await Wd(e);if(!t.ok)throw new Error(`Failed to fetch ${e}`);const r=await t.text();try{return JSON.parse(r)}catch(n){console.warn(`Failed to parse ${e} as JSON, attempting YAML parsing.`);try{return QF.load(r)}catch{throw n}}}catch(t){const r=e.replace(/\.json$/,".yml");try{const n=await Wd(r);if(!n.ok)throw new Error(`Failed to fetch ${r}`);const o=await n.text();return QF.load(o)}catch(n){throw console.error(`Failed to load theme file: ${e} (JSON error:`,t,"YAML error:",n,")"),new Error(`Failed to load theme file ${e} in either JSON or YAML format`)}}}async function Wd(e){return fetch(WI(e),{headers:{"Cache-Control":"no-cache, no-store"}})}function hDt(e,t=Jt,r){const[n,o]=m.useState(()=>{const l=p2e(t),s=h2e(l.standaloneApp,e);if((Fd.VITE_DEV_MODE||Fd.VITE_BUILD_MODE==="INLINE_ALL")&&!Fd.VITE_STANDALONE){if(!s)throw new Error("couldn't find the application metadata");return s}return null}),[i,a]=m.useState(null);return _n(()=>{(async function(){var L,B,z,j,q;const l=p2e(t),s=h2e(l.standaloneApp,e);if((Fd.VITE_DEV_MODE||Fd.VITE_BUILD_MODE==="INLINE_ALL")&&!Fd.VITE_STANDALONE){if(!s)throw new Error("couldn't find the application metadata");const W=kB(s,yB);W&&(s.entryPoint=W),_B({projectCompilation:l.projectCompilation,extensionManager:r}),a(l.projectCompilation),o(s);return}if(Fd.VITE_BUILD_MODE==="CONFIG_ONLY"){const M=await(await Wd(d2e)).json(),V=[];(L=M.themes)==null||L.forEach(F=>{V.push(a5(F))});const N=await Promise.all(V),Y={...s,name:M.name,appGlobals:M.appGlobals,defaultTheme:M.defaultTheme,resources:M.resources,resourceMap:M.resourceMap,themes:N},G=kB(Y,yB);G&&(Y.entryPoint=G),_B({projectCompilation:l.projectCompilation,extensionManager:r}),a(l.projectCompilation),o(Y);return}const u=new Promise(async W=>{try{const M=await Wd(mC);M.ok?W(wB(M)):W({component:R1t(`Failed to load the main component (${mC})`),file:mC,hasError:!0})}catch{W(null)}});let c;try{c=await(await Wd(d2e)).json()}catch{}let d;((c==null?void 0:c.themes)??[]).length===0&&(c!=null&&c.defaultTheme)?d=[a5(`themes/${c==null?void 0:c.defaultTheme}.json`)]:d=(B=c==null?void 0:c.themes)==null?void 0:B.map(W=>a5(W));const f=(z=c==null?void 0:c.components)==null?void 0:z.map(async W=>{const M=await Wd(W);return W.endsWith(`.${dC}`)?await wB(M):await CB(M)}),[p,g,v]=await Promise.all([u,Promise.all(f||[]),Promise.all(d||[])]),b=[];p.hasError&&b.push(p.component);let y=null;((j=p.component.props)==null?void 0:j.codeBehind)!==void 0&&(y=await new Promise(async W=>{var M;try{const V=await Wd(g2e(mC,((M=p.component.props)==null?void 0:M.codeBehind)||pDt)),N=await CB(V);W(N.hasError?N:N.codeBehind)}catch{W(null)}}),y.hasError&&b.push(y.component)),g.forEach(W=>{W.hasError&&b.push(W.component)});const w={},k={};p.file&&(w[p.file]=p.src,l.projectCompilation.entrypoint.filename=mC,l.projectCompilation.entrypoint.definition=p.component,l.projectCompilation.entrypoint.markupSource=p.src,(y==null?void 0:y.src)!==void 0&&(l.projectCompilation.entrypoint.codeBehindSource=y.src)),g.forEach(W=>{var M;(M=W==null?void 0:W.file)!=null&&M.endsWith(`.${ug}`)?k[W.file]=W.codeBehind:W.file&&(w[W.file]=W.src)});const E={...p.component,vars:{...y==null?void 0:y.vars,...p.component.vars},functions:y==null?void 0:y.functions,scriptError:y==null?void 0:y.moduleErrors},_=(q=E.props)==null?void 0:q.defaultTheme;_&&typeof _=="string"&&!_.includes("{")&&!WN.find(W=>W.id===_)&&!v.find(W=>W.id===_)&&v.push(await a5(`themes/${_}.json`));const S=g.filter(W=>{var M;return!((M=W==null?void 0:W.file)!=null&&M.endsWith(".xmlui.xs"))}).map(W=>{const M=k[W.file+".xs"];return{...W.component,component:{...W.component.component,vars:{...W.component.component.vars,...M==null?void 0:M.vars},functions:M==null?void 0:M.functions,scriptError:M==null?void 0:M.moduleErrors}}});let O=v2e(E,S,void 0,r);const A=new Set;for(;O.size>0;){const W=[...O].map(async V=>{var N,Y;try{const F=await Wd(`components/${V}.${dC}`),K=await wB(F);K.hasError&&b.push(K.component),w[K.file]=K.src;const J={dependencies:new Set,filename:K.file,markupSource:K.src,definition:K.component};let ie=null;"codeBehind"in K.component&&((N=K.component)==null?void 0:N.codeBehind)!==void 0&&(ie=await new Promise(async le=>{var ce;try{const pe=await Wd(g2e(`components/${V}`,((ce=K.component)==null?void 0:ce.codeBehind)||`${V}.${ug}`)),me=await CB(pe);me.hasError&&b.push(me.component),le(me.hasError?me.component:me)}catch{le(null)}}),ie&&"src"in ie&&(J.codeBehindSource=ie.src)),l.projectCompilation.components.push(J);const oe={...K.component,component:{...K.component.component,vars:{...K.component.component.vars,...(Y=ie==null?void 0:ie.component)==null?void 0:Y.vars}}};return ie&&"codeBehind"in ie&&(oe.component.functions=ie.codeBehind.functions,oe.component.scriptError=ie.codeBehind.moduleErrors),oe}catch{return A.add(V),null}}),M=await Promise.all(W);S.push(...M.filter(V=>!!V)),O=v2e(E,S,A,r)}const I={...c,themes:v,sources:w,components:S,entryPoint:E},H=kB(I,yB),P=b.length>0?{type:"VStack",props:{gap:0,padding:0},children:b}:null;P?(H&&P.children.push(H),I.entryPoint=P):H&&(I.entryPoint=H),_B({projectCompilation:l.projectCompilation,extensionManager:r}),a(l.projectCompilation),o(I)})()},[t,e]),{standaloneApp:n,projectCompilation:i}}function v2e(e,t,r=new Set,n){const o=new K4({compoundComponents:t},n),i=tDt(e,t,{getComponentProps:a=>{var l,s;return(s=(l=o.lookupComponentRenderer(a))==null?void 0:l.descriptor)==null?void 0:s.props},acceptArbitraryProps:()=>!0,getComponentValidator:()=>null,getComponentEvents:()=>null,componentRegistered:a=>o.hasComponent(a)});return o.destroy(),new Set(i.filter(a=>a.code==="M001").map(a=>a.args[0].replace("#app-ns.","")).filter(a=>!r.has(a)&&!a.includes(".")))}function gDt(e){const t=m.useRef(!1);m.useEffect(()=>{if(t.current)return;t.current=!0;let r=`XMLUI version: ${Fd.VITE_XMLUI_VERSION}`;e!=null&&e.name&&(r+=`; ${e.name} version: ${Fd.VITE_APP_VERSION||"dev"}`),console.log(r)},[e==null?void 0:e.name])}let l5=null;function b2e(e,t=[],r=new bB){r.registerExtension(t);let n=document.getElementById("root");return n||(n=document.createElement("div"),n.setAttribute("id","root"),document.body.appendChild(n)),l5||(l5=Ok.createRoot(n)),l5.render(C.jsx(f2e,{runtime:e,extensionManager:r})),l5}function kB(e,t){var n;const r=nDt((n=e.appGlobals)==null?void 0:n.lintSeverity);if(r!==r5.Skip){const o=oDt({appDef:e,metadataProvider:t});if(o.length>0){if(r===r5.Warning)o.forEach(iDt);else if(r===r5.Error)return aDt(o)}return null}}function _B({projectCompilation:{components:e,entrypoint:t},extensionManager:r}){const n=new K4({},r),o=x2e(t.definition,n);t.dependencies=o;for(const i of e){const a=x2e(i.definition.component,n);a.delete(i.definition.name),i.dependencies=a}n.destroy()}function x2e(e,t){return y2e(e,t,new Set)}function y2e(e,t,r){const n=e.type;if(t.hasComponent(n)||r.add(n),!e.children)return r;for(const o of e.children)y2e(o,t,r);return r}const vDt=Object.freeze(Object.defineProperty({__proto__:null,ApiInterceptorProvider:IN,AppRoot:vB,Button:sn,ErrorBoundary:t0,Icon:kt,LinkNative:Kx,Logo:Dx,NestedApp:Vce,Spinner:Tx,Splitter:oJ,Stack:vv,StandaloneApp:f2e,StandaloneExtensionManager:bB,TabItem:Qfe,Tabs:Cfe,Text:xr,TextBox:Ly,ToneChangerButton:fme,VisuallyHidden:SY,XmlUiHelper:dDt,builtInThemes:WN,createComponentRenderer:xe,createMetadata:YLe,d:re,errReportComponent:TE,getColor:h7e,parseScssVar:tt,startApp:b2e,toCssVar:Sx,useAppLayoutContext:Pp,useColors:A8e,useDevTools:P_t,useEvent:Mt,useLogger:a2e,useSearchContextContent:mBe,useTheme:zr,xmlUiMarkupToComponent:Mw},Symbol.toStringTag,{value:"Module"})),w2e=new bB;document.addEventListener("DOMContentLoaded",function(){if(!document.getElementById("root")){const e=document.createElement("div");e.id="root",document.getElementsByTagName("body")[0].appendChild(e)}b2e(void 0,void 0,w2e)}),window.React=ee,window.jsxRuntime=JSe,window.ReactDOM=Bg;const bDt={...vDt,standalone:w2e};function C2e(e,t){return function(){return e.apply(t,arguments)}}const{toString:xDt}=Object.prototype,{getPrototypeOf:TB}=Object,s5=(e=>t=>{const r=xDt.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ru=e=>(e=e.toLowerCase(),t=>s5(t)===e),u5=e=>t=>typeof t===e,{isArray:r1}=Array,pC=u5("undefined");function yDt(e){return e!==null&&!pC(e)&&e.constructor!==null&&!pC(e.constructor)&&jl(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const k2e=Ru("ArrayBuffer");function wDt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&k2e(e.buffer),t}const CDt=u5("string"),jl=u5("function"),_2e=u5("number"),c5=e=>e!==null&&typeof e=="object",kDt=e=>e===!0||e===!1,d5=e=>{if(s5(e)!=="object")return!1;const t=TB(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},_Dt=Ru("Date"),TDt=Ru("File"),SDt=Ru("Blob"),EDt=Ru("FileList"),ODt=e=>c5(e)&&jl(e.pipe),ADt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||jl(e.append)&&((t=s5(e))==="formdata"||t==="object"&&jl(e.toString)&&e.toString()==="[object FormData]"))},IDt=Ru("URLSearchParams"),[RDt,PDt,HDt,LDt]=["ReadableStream","Request","Response","Headers"].map(Ru),NDt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function hC(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),r1(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let l;for(n=0;n<a;n++)l=i[n],t.call(null,e[l],l,e)}}function T2e(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const cg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,S2e=e=>!pC(e)&&e!==cg;function SB(){const{caseless:e}=S2e(this)&&this||{},t={},r=(n,o)=>{const i=e&&T2e(t,o)||o;d5(t[i])&&d5(n)?t[i]=SB(t[i],n):d5(n)?t[i]=SB({},n):r1(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&hC(arguments[n],r);return t}const $Dt=(e,t,r,{allOwnKeys:n}={})=>(hC(t,(o,i)=>{r&&jl(o)?e[i]=C2e(o,r):e[i]=o},{allOwnKeys:n}),e),DDt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),BDt=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},jDt=(e,t,r,n)=>{let o,i,a;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=r!==!1&&TB(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},MDt=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},zDt=e=>{if(!e)return null;if(r1(e))return e;let t=e.length;if(!_2e(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},FDt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&TB(Uint8Array)),WDt=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},VDt=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},UDt=Ru("HTMLFormElement"),qDt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),E2e=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),GDt=Ru("RegExp"),O2e=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};hC(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},YDt=e=>{O2e(e,(t,r)=>{if(jl(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(jl(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},KDt=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return r1(e)?n(e):n(String(e).split(t)),r},XDt=()=>{},QDt=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function ZDt(e){return!!(e&&jl(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const JDt=e=>{const t=new Array(10),r=(n,o)=>{if(c5(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=r1(n)?[]:{};return hC(n,(a,l)=>{const s=r(a,o+1);!pC(s)&&(i[l]=s)}),t[o]=void 0,i}}return n};return r(e,0)},eBt=Ru("AsyncFunction"),tBt=e=>e&&(c5(e)||jl(e))&&jl(e.then)&&jl(e.catch),A2e=((e,t)=>e?setImmediate:t?((r,n)=>(cg.addEventListener("message",({source:o,data:i})=>{o===cg&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),cg.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",jl(cg.postMessage)),rBt=typeof queueMicrotask<"u"?queueMicrotask.bind(cg):typeof process<"u"&&process.nextTick||A2e,De={isArray:r1,isArrayBuffer:k2e,isBuffer:yDt,isFormData:ADt,isArrayBufferView:wDt,isString:CDt,isNumber:_2e,isBoolean:kDt,isObject:c5,isPlainObject:d5,isReadableStream:RDt,isRequest:PDt,isResponse:HDt,isHeaders:LDt,isUndefined:pC,isDate:_Dt,isFile:TDt,isBlob:SDt,isRegExp:GDt,isFunction:jl,isStream:ODt,isURLSearchParams:IDt,isTypedArray:FDt,isFileList:EDt,forEach:hC,merge:SB,extend:$Dt,trim:NDt,stripBOM:DDt,inherits:BDt,toFlatObject:jDt,kindOf:s5,kindOfTest:Ru,endsWith:MDt,toArray:zDt,forEachEntry:WDt,matchAll:VDt,isHTMLForm:UDt,hasOwnProperty:E2e,hasOwnProp:E2e,reduceDescriptors:O2e,freezeMethods:YDt,toObjectSet:KDt,toCamelCase:qDt,noop:XDt,toFiniteNumber:QDt,findKey:T2e,global:cg,isContextDefined:S2e,isSpecCompliantForm:ZDt,toJSONObject:JDt,isAsyncFn:eBt,isThenable:tBt,setImmediate:A2e,asap:rBt};function ir(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}De.inherits(ir,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:De.toJSONObject(this.config),code:this.code,status:this.status}}});const I2e=ir.prototype,R2e={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{R2e[e]={value:e}}),Object.defineProperties(ir,R2e),Object.defineProperty(I2e,"isAxiosError",{value:!0}),ir.from=(e,t,r,n,o,i)=>{const a=Object.create(I2e);return De.toFlatObject(e,a,function(s){return s!==Error.prototype},l=>l!=="isAxiosError"),ir.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const nBt=null;function EB(e){return De.isPlainObject(e)||De.isArray(e)}function P2e(e){return De.endsWith(e,"[]")?e.slice(0,-2):e}function H2e(e,t,r){return e?e.concat(t).map(function(o,i){return o=P2e(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function oBt(e){return De.isArray(e)&&!e.some(EB)}const iBt=De.toFlatObject(De,{},null,function(t){return/^is[A-Z]/.test(t)});function f5(e,t,r){if(!De.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=De.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,b){return!De.isUndefined(b[v])});const n=r.metaTokens,o=r.visitor||c,i=r.dots,a=r.indexes,s=(r.Blob||typeof Blob<"u"&&Blob)&&De.isSpecCompliantForm(t);if(!De.isFunction(o))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(De.isDate(g))return g.toISOString();if(!s&&De.isBlob(g))throw new ir("Blob is not supported. Use a Buffer instead.");return De.isArrayBuffer(g)||De.isTypedArray(g)?s&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,v,b){let y=g;if(g&&!b&&typeof g=="object"){if(De.endsWith(v,"{}"))v=n?v:v.slice(0,-2),g=JSON.stringify(g);else if(De.isArray(g)&&oBt(g)||(De.isFileList(g)||De.endsWith(v,"[]"))&&(y=De.toArray(g)))return v=P2e(v),y.forEach(function(k,E){!(De.isUndefined(k)||k===null)&&t.append(a===!0?H2e([v],E,i):a===null?v:v+"[]",u(k))}),!1}return EB(g)?!0:(t.append(H2e(b,v,i),u(g)),!1)}const d=[],f=Object.assign(iBt,{defaultVisitor:c,convertValue:u,isVisitable:EB});function p(g,v){if(!De.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(g),De.forEach(g,function(y,w){(!(De.isUndefined(y)||y===null)&&o.call(t,y,De.isString(w)?w.trim():w,v,f))===!0&&p(y,v?v.concat(w):[w])}),d.pop()}}if(!De.isObject(e))throw new TypeError("data must be an object");return p(e),t}function L2e(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function OB(e,t){this._pairs=[],e&&f5(e,this,t)}const N2e=OB.prototype;N2e.append=function(t,r){this._pairs.push([t,r])},N2e.toString=function(t){const r=t?function(n){return t.call(this,n,L2e)}:L2e;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function aBt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function $2e(e,t,r){if(!t)return e;const n=r&&r.encode||aBt;De.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=De.isURLSearchParams(t)?t.toString():new OB(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class D2e{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){De.forEach(this.handlers,function(n){n!==null&&t(n)})}}const B2e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lBt={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:OB,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},AB=typeof window<"u"&&typeof document<"u",IB=typeof navigator=="object"&&navigator||void 0,sBt=AB&&(!IB||["ReactNative","NativeScript","NS"].indexOf(IB.product)<0),uBt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",cBt=AB&&window.location.href||"http://localhost",Fi={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:AB,hasStandardBrowserEnv:sBt,hasStandardBrowserWebWorkerEnv:uBt,navigator:IB,origin:cBt},Symbol.toStringTag,{value:"Module"})),...lBt};function dBt(e,t){return f5(e,new Fi.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return Fi.isNode&&De.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function fBt(e){return De.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function mBt(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function j2e(e){function t(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),s=i>=r.length;return a=!a&&De.isArray(o)?o.length:a,s?(De.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!l):((!o[a]||!De.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&De.isArray(o[a])&&(o[a]=mBt(o[a])),!l)}if(De.isFormData(e)&&De.isFunction(e.entries)){const r={};return De.forEachEntry(e,(n,o)=>{t(fBt(n),o,r,0)}),r}return null}function pBt(e,t,r){if(De.isString(e))try{return(t||JSON.parse)(e),De.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const gC={transitional:B2e,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=De.isObject(t);if(i&&De.isHTMLForm(t)&&(t=new FormData(t)),De.isFormData(t))return o?JSON.stringify(j2e(t)):t;if(De.isArrayBuffer(t)||De.isBuffer(t)||De.isStream(t)||De.isFile(t)||De.isBlob(t)||De.isReadableStream(t))return t;if(De.isArrayBufferView(t))return t.buffer;if(De.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return dBt(t,this.formSerializer).toString();if((l=De.isFileList(t))||n.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return f5(l?{"files[]":t}:t,s&&new s,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),pBt(t)):t}],transformResponse:[function(t){const r=this.transitional||gC.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(De.isResponse(t)||De.isReadableStream(t))return t;if(t&&De.isString(t)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(a)throw l.name==="SyntaxError"?ir.from(l,ir.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fi.classes.FormData,Blob:Fi.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};De.forEach(["delete","get","head","post","put","patch"],e=>{gC.headers[e]={}});const hBt=De.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),gBt=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
696
|
+
`):g+=E.join("")}g+=`${a(p)}</${f.name}>`}else g+=((r==null?void 0:r.useSpaceBeforeClose)??!1?" ":"")+"/>"}else g+=((r==null?void 0:r.useSpaceBeforeClose)??!1?" ":"")+"/>",f.text===""&&(g+=`""</${y()}>`);return g;function y(){return f.namespace?`${f.namespace}:${f.name}`:f.name}}function u(f){if(f.value===void 0||f.value===null)return`${g()}`;if(f.preserveSpaces)return`${g()}=${d(f.value)}`;const p=f.value??"";return`${g()}=${d(p)}`;function g(){return f.namespace?`${f.namespace}:${f.name}`:f.name}}function c(f){return r!=null&&r.useQuotes||n5.test(f)?d(f):f}function d(f){const p=f.indexOf("'")>=0,g=f.indexOf('"')>=0;return!p&&!g||p&&!g?`"${f.replaceAll("`","\\`")}"`:g&&!p?`'${f.replaceAll("`","\\`")}'`:`\`${f.replaceAll("`","\\`")}\``}}transformComponentDefinition(t,r){return t.type?this.transformSimpleComponentDefinition(t,r):this.transformCompoundComponentDefinition(t,r)}transformObject(t,r){const n=this.transformValue("Object","",t,r);return n?n.childNodes??[]:null}transformSimpleComponentDefinition(t,r){const n={type:"XmlUiElement",name:t.type};return t.uid!==void 0&&this.addProperty(n,"id",t.uid,r),t.testId!==void 0&&this.addProperty(n,"testId",t.testId,r),t.when!==void 0&&this.addProperty(n,"when",t.when,r),t.vars&&Object.keys(t.vars).forEach(o=>{const i=this.transformValue("var",o,t.vars[o],r);i!==null&&(n.childNodes??(n.childNodes=[]),n.childNodes.push(i))}),t.props&&Object.keys(t.props).forEach(o=>{const i=t.props[o];if(o.endsWith("Template")&&i.type){n.childNodes??(n.childNodes=[]);const a={type:"XmlUiElement",name:"property",attributes:[{type:"XmlUiAttribute",name:"name",value:o}]};this.addComponentElement(a,i),n.childNodes.push(a)}else{if(i===void 0)return;if(i===null){const a={type:"XmlUiElement",name:"property",attributes:[{type:"XmlUiAttribute",name:"name",value:o}]};n.childNodes??(n.childNodes=[]),n.childNodes.push(a);return}if(o==="id"||o==="when"||o==="testId"||r!=null&&r.extractProps){const a={type:"XmlUiElement",name:"property"};this.addProperty(a,o,i,r),n.childNodes??(n.childNodes=[]),n.childNodes.push(a);return}this.addProperty(n,o,i,r)}}),t.events&&Object.keys(t.events).forEach(o=>{const i=this.transformValue("event",o,t.events[o],r);i!==null&&(n.childNodes??(n.childNodes=[]),n.childNodes.push(i))}),t.loaders&&this.addComponentList(n,"loaders",t.loaders),t.api&&Object.keys(t.api).forEach(o=>{const i=this.transformValue("api",o,t.api[o],r);i!==null&&(n.childNodes??(n.childNodes=[]),n.childNodes.push(i))}),t.uses&&this.addList(n,"uses","",t.uses,r),t.children&&(typeof t.children=="string"?this.addProperty(n,"children",t.children,r):t.children.forEach(o=>{this.addComponentElement(n,o)})),n}transformCompoundComponentDefinition(t,r){if(typeof t=="string")return{type:"XmlUiElement",name:t};const n=this.transformSimpleComponentDefinition(t.component,r),o={type:"XmlUiElement",name:_N,attributes:[{type:"XmlUiAttribute",name:"name",value:t.name}],childNodes:Array.isArray(n)?[...n]:[n]};return t.api&&Object.keys(t.api).forEach(i=>{const a=this.transformValue("api",i,t.api[i],r);a!==null&&(o.childNodes??(o.childNodes=[]),o.childNodes.push(a))}),o}transformValue(t,r,n,o){if(n===void 0)return null;const i={type:"XmlUiElement",name:t};if(r&&(i.attributes=[{type:"XmlUiAttribute",name:"name",value:r}]),n===null)return i;if(typeof n=="string"||typeof n=="number"||typeof n=="boolean"){const a=typeof n=="string"?n.toString():`{${n.toString()}}`,l=n5.test(a)||a.trim().length!=a.length;return o!=null&&o.preferTextToValue?(i.text=a,i.preserveSpaces=l):(i.attributes??(i.attributes=[]),i.attributes.push({type:"XmlUiAttribute",name:"value",value:a,preserveSpaces:l})),i}if(Array.isArray(n))n.length===0?(i.attributes??(i.attributes=[]),i.attributes.push({type:"XmlUiAttribute",name:"value",value:"{[]}"})):n.forEach(a=>{const l=this.transformValue("item",void 0,a,o);l&&(i.childNodes??(i.childNodes=[]),i.childNodes.push(l))});else if(typeof n=="object"){const a=Object.keys(n);a.length===0?(i.attributes??(i.attributes=[]),i.attributes.push({type:"XmlUiAttribute",name:"value",value:"{{}}"})):a.forEach(l=>{const s=this.transformValue("field",l,n[l],o);s&&(i.childNodes??(i.childNodes=[]),i.childNodes.push(s))})}else throw new Error(`Cannot serialize '${typeof n}' value`);return i}transformObjectValue(t,r,n){const o={type:"XmlUiElement",name:t};return r&&Object.keys(r).forEach(i=>this.addProperty(o,i,r[i],n)),o}addProperty(t,r,n,o){switch(typeof n){case"undefined":break;case"string":t.attributes??(t.attributes=[]),t.attributes.push({type:"XmlUiAttribute",name:r,value:n==null?void 0:n.toString(),preserveQuotes:(o==null?void 0:o.removeQuotes)??!1,preserveSpaces:n5.test(n.toString())});break;case"boolean":case"number":case"object":const i=this.transformValue("property",r,n,o);i&&(t.childNodes??(t.childNodes=[]),t.childNodes.push(i));break;default:throw new Error(`'${typeof n}' transformation is not implemented yet`)}}addComponentElement(t,r){t.childNodes??(t.childNodes=[]);const n=this.transformComponentDefinition(r);Array.isArray(n)?t.childNodes.push(...n):t.childNodes.push(n)}addList(t,r,n,o,i){const a=`${n?n+".":""}${r}`;t.childNodes??(t.childNodes=[]),o.forEach(l=>{if(typeof l=="string")t.childNodes.push({type:"XmlUiElement",name:a,text:l,preserveSpaces:n5.test(l)||l!==l.trim()||l===""});else if(l===null)t.childNodes.push({type:"XmlUiElement",name:a});else{const s=this.transformObjectValue(a,l,i);Array.isArray(s)?t.childNodes.push(...s):t.childNodes.push(s)}})}addComponentList(t,r,n){const o=[];n.forEach(a=>{const l=this.transformSimpleComponentDefinition(a);Array.isArray(l)?o.push(...l):o.push(l)});const i={type:"XmlUiElement",name:r,childNodes:o};t.childNodes??(t.childNodes=[]),t.childNodes.push(i)}}class fDt{constructor(t){this.metadataCollection=t}componentNames(){return Object.keys(this.metadataCollection)}getComponent(t){const r=this.metadataCollection[t];return r?new mDt(r):null}}class mDt{constructor(t){this.metadata=t}getProp(t){return this.metadata.props[t]??o5[t]}getAttr(t){var i,a,l;if(SN.test(t)){const s=I1t(t),u=(i=this.metadata.events)==null?void 0:i[s];if(u)return u}const r=(a=this.metadata.props)==null?void 0:a[t];if(r)return r;const n=(l=this.metadata.apis)==null?void 0:l[t];if(n)return n;const o=c2e(t);return o||o5[t]}getAttrForKind({name:t,kind:r}){switch(r){case"api":return this.metadata.apis[t];case"event":return this.metadata.events[t];case"prop":return this.metadata.props[t];case"implicit":return o5[t];case"layout":return c2e(t)}}getAllAttributes(){const t=[];for(const r of Object.keys(this.metadata.props??{}))t.push({name:r,kind:"prop"});for(const r of Object.keys(this.metadata.events??{}))t.push({name:r,kind:"event"});for(const r of Object.keys(this.metadata.apis??{}))t.push({name:r,kind:"api"});for(const r of e1)t.push({name:r,kind:"layout"});for(const r of Object.keys(o5))t.push({name:r,kind:"implicit"});return t}getEvent(t){var r;return(r=this.metadata.events)==null?void 0:r[t]}getApi(t){var r;return(r=this.metadata.apis)==null?void 0:r[t]}get events(){return this.metadata.events}get apis(){return this.metadata.apis}get contextVars(){return this.metadata.contextVars}get allowArbitraryProps(){return this.metadata.allowArbitraryProps}get shortDescription(){return this.metadata.shortDescription}getMetadata(){return this.metadata}}function c2e(e){const t={description:"Layout property. Not yet documented"};if(e1.includes(e))return t;for(const r of jU){const n="-"+r.value;if(e.endsWith(n)){const o=e.slice(0,-n.length);if(e1.includes(o))return t}}return null}const o5={inspect:{description:"Determines whether the component can be inspected or not",defaultValue:!1,valueType:"boolean"},data:{description:"Specifies the data source for a component. Can be a URL string (fetched automatically), a DataSource or an expression to evaluate. Changes to this property trigger UI updates once data is loaded."},when:{description:"Specifies a condition that must be met for the component to be displayed",defaultValue:!0,valueType:"boolean"}};var Fd={VITE_XMLUI_VERSION:"0.9.75 (built 7/16/2025)"};const mC="Main."+dC,pDt="Main."+ug,d2e="config.json",yB=new fDt(cDt);function f2e({appDef:e,decorateComponentsWithTestId:t,debugEnabled:r=!1,runtime:n,extensionManager:o,waitForApiInterceptor:i=!1}){const{standaloneApp:a,projectCompilation:l}=hDt(e,n,o);gDt(a);const{apiInterceptor:s,name:u,appGlobals:c,defaultTheme:d,defaultTone:f,resources:p,resourceMap:g,entryPoint:v,components:b,themes:y,sources:w}=a||{},k=m.useMemo(()=>({name:u,...c||{}}),[c,u]);let E=m.useMemo(()=>({compoundComponents:b,themes:y}),[b,y]);if(!a)return null;const _=typeof window<"u"&&window.XMLUI_MOCK_API?window.XMLUI_MOCK_API:s,S=t||(typeof window<"u"?window.XMLUI_MOCK_TEST_ID:!1),O=(c==null?void 0:c.useHashBasedRouting)??!0;return C.jsx(IN,{interceptor:_,useHashBasedRouting:O,waitForApiInterceptor:i,children:C.jsx(vB,{projectCompilation:l,decorateComponentsWithTestId:S,node:v,standalone:!0,debugEnabled:r,routerBaseName:typeof window<"u"&&window.__PUBLIC_PATH||"",globalProps:k,defaultTheme:d,defaultTone:f,resources:p,resourceMap:g,sources:w,extensionManager:o,contributes:E})})}async function wB(e){if(!e.ok)throw new Error(`Failed to fetch ${e.url}`);const t=await e.text(),r=e.url;let{component:n,errors:o,erroneousCompoundComponentName:i}=Mw(t,r);if(o.length>0){const a=i??e.url.substring(e.url.lastIndexOf("/")+1,e.url.length-6);n=TE(o,r,a)}return{component:n,src:t,file:r,hasError:o.length>0}}async function CB(e){if(!e.ok)throw new Error(`Failed to fetch ${e.url}`);const t=await e.text(),r=new If(t);try{r.parseStatements()}catch(n){if(console.error("Error parsing code behind",n),r.errors.length>0)return{component:P1t(r.errors[0],e.url),file:e.url,hasError:!0}}try{const n=Nce("Main",t);return Object.keys(n.moduleErrors??{}).length>0?{component:H1t(n.moduleErrors,e.url),file:e.url,hasError:!0}:(b1t(n),{src:t,codeBehind:n,file:e.url})}catch(n){console.error("Error collecting code behind",n)}}function i5(e,t){return e.endsWith(`/${t}.ts`)||e.endsWith(`/${t}.js`)||e.endsWith(`/${t}.${dC}`)||e.endsWith(`/${t}.${ug}`)}function m2e(e,t){return e.includes(`/${t}/`)}function p2e(e){const t={entrypoint:{filename:"",definition:null,dependencies:new Set},components:[],themes:{}},r={},n={},o={},i=[];let a,l,s,u;for(const[p,g]of Object.entries(e)){if(i5(p,"config")&&(a=g.default),(i5(p,"Main")||i5(p,"App"))&&(p.endsWith(ug)?(s=g.default,t.entrypoint.codeBehindSource=g.default.src):(t.entrypoint.filename=p,l=g.default.component,t.entrypoint.definition=l,t.entrypoint.markupSource=g.default.src,g.default.file&&(r[g.default.file]=g.default.src))),i5(p,"api")&&(u=g.default),m2e(p,"components"))if(p.endsWith(`.${ug}`)){o[p]=g.default;const v=t.components.findLast(({filename:b})=>{const y=p.lastIndexOf(ug),w=b.lastIndexOf(dC);return b.substring(0,w)===p.substring(0,y)});v.codeBehindSource=g.default.src}else{n[p]=g.default.component,r[g.default.file]=g.default.src;const v={definition:g.default.component,filename:p,markupSource:g.default.src,dependencies:new Set};t.components.push(v)}m2e(p,"themes")&&i.push(g.default)}const c=(a==null?void 0:a.entryPoint)||l,d={...c,vars:{...s==null?void 0:s.vars,...c==null?void 0:c.vars},functions:s==null?void 0:s.functions,scriptError:s==null?void 0:s.moduleErrors};let f=[];return a!=null&&a.components?f=a.components:Object.entries(n).forEach(([p,g])=>{const v=o[`${p}.xs`],b={...g,component:{...g.component,vars:{...g.component.vars,...v==null?void 0:v.vars},functions:v==null?void 0:v.functions,scriptError:v==null?void 0:v.moduleErrors}};f.push(b)}),{standaloneApp:{...a,entryPoint:d,components:f,themes:(a==null?void 0:a.themes)||i,apiInterceptor:(a==null?void 0:a.apiInterceptor)||u,sources:r},projectCompilation:t}}function h2e(e,t){return t?{...t,entryPoint:t.entryPoint||e.entryPoint,components:t.components||e.components,themes:t.themes||e.themes,apiInterceptor:t.apiInterceptor||e.apiInterceptor}:e}function g2e(e,t){const r=new URL(e,"http://dummy.com");return new URL(t,r).pathname.substring(1)}async function a5(e){try{const t=await Wd(e);if(!t.ok)throw new Error(`Failed to fetch ${e}`);const r=await t.text();try{return JSON.parse(r)}catch(n){console.warn(`Failed to parse ${e} as JSON, attempting YAML parsing.`);try{return QF.load(r)}catch{throw n}}}catch(t){const r=e.replace(/\.json$/,".yml");try{const n=await Wd(r);if(!n.ok)throw new Error(`Failed to fetch ${r}`);const o=await n.text();return QF.load(o)}catch(n){throw console.error(`Failed to load theme file: ${e} (JSON error:`,t,"YAML error:",n,")"),new Error(`Failed to load theme file ${e} in either JSON or YAML format`)}}}async function Wd(e){return fetch(WI(e),{headers:{"Cache-Control":"no-cache, no-store"}})}function hDt(e,t=Jt,r){const[n,o]=m.useState(()=>{const l=p2e(t),s=h2e(l.standaloneApp,e);if((Fd.VITE_DEV_MODE||Fd.VITE_BUILD_MODE==="INLINE_ALL")&&!Fd.VITE_STANDALONE){if(!s)throw new Error("couldn't find the application metadata");return s}return null}),[i,a]=m.useState(null);return _n(()=>{(async function(){var L,B,z,j,q;const l=p2e(t),s=h2e(l.standaloneApp,e);if((Fd.VITE_DEV_MODE||Fd.VITE_BUILD_MODE==="INLINE_ALL")&&!Fd.VITE_STANDALONE){if(!s)throw new Error("couldn't find the application metadata");const W=kB(s,yB);W&&(s.entryPoint=W),_B({projectCompilation:l.projectCompilation,extensionManager:r}),a(l.projectCompilation),o(s);return}if(Fd.VITE_BUILD_MODE==="CONFIG_ONLY"){const M=await(await Wd(d2e)).json(),V=[];(L=M.themes)==null||L.forEach(F=>{V.push(a5(F))});const N=await Promise.all(V),Y={...s,name:M.name,appGlobals:M.appGlobals,defaultTheme:M.defaultTheme,resources:M.resources,resourceMap:M.resourceMap,themes:N},G=kB(Y,yB);G&&(Y.entryPoint=G),_B({projectCompilation:l.projectCompilation,extensionManager:r}),a(l.projectCompilation),o(Y);return}const u=new Promise(async W=>{try{const M=await Wd(mC);M.ok?W(wB(M)):W({component:R1t(`Failed to load the main component (${mC})`),file:mC,hasError:!0})}catch{W(null)}});let c;try{c=await(await Wd(d2e)).json()}catch{}let d;((c==null?void 0:c.themes)??[]).length===0&&(c!=null&&c.defaultTheme)?d=[a5(`themes/${c==null?void 0:c.defaultTheme}.json`)]:d=(B=c==null?void 0:c.themes)==null?void 0:B.map(W=>a5(W));const f=(z=c==null?void 0:c.components)==null?void 0:z.map(async W=>{const M=await Wd(W);return W.endsWith(`.${dC}`)?await wB(M):await CB(M)}),[p,g,v]=await Promise.all([u,Promise.all(f||[]),Promise.all(d||[])]),b=[];p.hasError&&b.push(p.component);let y=null;((j=p.component.props)==null?void 0:j.codeBehind)!==void 0&&(y=await new Promise(async W=>{var M;try{const V=await Wd(g2e(mC,((M=p.component.props)==null?void 0:M.codeBehind)||pDt)),N=await CB(V);W(N.hasError?N:N.codeBehind)}catch{W(null)}}),y.hasError&&b.push(y.component)),g.forEach(W=>{W.hasError&&b.push(W.component)});const w={},k={};p.file&&(w[p.file]=p.src,l.projectCompilation.entrypoint.filename=mC,l.projectCompilation.entrypoint.definition=p.component,l.projectCompilation.entrypoint.markupSource=p.src,(y==null?void 0:y.src)!==void 0&&(l.projectCompilation.entrypoint.codeBehindSource=y.src)),g.forEach(W=>{var M;(M=W==null?void 0:W.file)!=null&&M.endsWith(`.${ug}`)?k[W.file]=W.codeBehind:W.file&&(w[W.file]=W.src)});const E={...p.component,vars:{...y==null?void 0:y.vars,...p.component.vars},functions:y==null?void 0:y.functions,scriptError:y==null?void 0:y.moduleErrors},_=(q=E.props)==null?void 0:q.defaultTheme;_&&typeof _=="string"&&!_.includes("{")&&!WN.find(W=>W.id===_)&&!v.find(W=>W.id===_)&&v.push(await a5(`themes/${_}.json`));const S=g.filter(W=>{var M;return!((M=W==null?void 0:W.file)!=null&&M.endsWith(".xmlui.xs"))}).map(W=>{const M=k[W.file+".xs"];return{...W.component,component:{...W.component.component,vars:{...W.component.component.vars,...M==null?void 0:M.vars},functions:M==null?void 0:M.functions,scriptError:M==null?void 0:M.moduleErrors}}});let O=v2e(E,S,void 0,r);const A=new Set;for(;O.size>0;){const W=[...O].map(async V=>{var N,Y;try{const F=await Wd(`components/${V}.${dC}`),K=await wB(F);K.hasError&&b.push(K.component),w[K.file]=K.src;const J={dependencies:new Set,filename:K.file,markupSource:K.src,definition:K.component};let ie=null;"codeBehind"in K.component&&((N=K.component)==null?void 0:N.codeBehind)!==void 0&&(ie=await new Promise(async le=>{var ce;try{const pe=await Wd(g2e(`components/${V}`,((ce=K.component)==null?void 0:ce.codeBehind)||`${V}.${ug}`)),me=await CB(pe);me.hasError&&b.push(me.component),le(me.hasError?me.component:me)}catch{le(null)}}),ie&&"src"in ie&&(J.codeBehindSource=ie.src)),l.projectCompilation.components.push(J);const oe={...K.component,component:{...K.component.component,vars:{...K.component.component.vars,...(Y=ie==null?void 0:ie.component)==null?void 0:Y.vars}}};return ie&&"codeBehind"in ie&&(oe.component.functions=ie.codeBehind.functions,oe.component.scriptError=ie.codeBehind.moduleErrors),oe}catch{return A.add(V),null}}),M=await Promise.all(W);S.push(...M.filter(V=>!!V)),O=v2e(E,S,A,r)}const I={...c,themes:v,sources:w,components:S,entryPoint:E},H=kB(I,yB),P=b.length>0?{type:"VStack",props:{gap:0,padding:0},children:b}:null;P?(H&&P.children.push(H),I.entryPoint=P):H&&(I.entryPoint=H),_B({projectCompilation:l.projectCompilation,extensionManager:r}),a(l.projectCompilation),o(I)})()},[t,e]),{standaloneApp:n,projectCompilation:i}}function v2e(e,t,r=new Set,n){const o=new K4({compoundComponents:t},n),i=tDt(e,t,{getComponentProps:a=>{var l,s;return(s=(l=o.lookupComponentRenderer(a))==null?void 0:l.descriptor)==null?void 0:s.props},acceptArbitraryProps:()=>!0,getComponentValidator:()=>null,getComponentEvents:()=>null,componentRegistered:a=>o.hasComponent(a)});return o.destroy(),new Set(i.filter(a=>a.code==="M001").map(a=>a.args[0].replace("#app-ns.","")).filter(a=>!r.has(a)&&!a.includes(".")))}function gDt(e){const t=m.useRef(!1);m.useEffect(()=>{if(t.current)return;t.current=!0;let r=`XMLUI version: ${Fd.VITE_XMLUI_VERSION}`;e!=null&&e.name&&(r+=`; ${e.name} version: ${Fd.VITE_APP_VERSION||"dev"}`),console.log(r)},[e==null?void 0:e.name])}let l5=null;function b2e(e,t=[],r=new bB){r.registerExtension(t);let n=document.getElementById("root");return n||(n=document.createElement("div"),n.setAttribute("id","root"),document.body.appendChild(n)),l5||(l5=Ok.createRoot(n)),l5.render(C.jsx(f2e,{runtime:e,extensionManager:r})),l5}function kB(e,t){var n;const r=nDt((n=e.appGlobals)==null?void 0:n.lintSeverity);if(r!==r5.Skip){const o=oDt({appDef:e,metadataProvider:t});if(o.length>0){if(r===r5.Warning)o.forEach(iDt);else if(r===r5.Error)return aDt(o)}return null}}function _B({projectCompilation:{components:e,entrypoint:t},extensionManager:r}){const n=new K4({},r),o=x2e(t.definition,n);t.dependencies=o;for(const i of e){const a=x2e(i.definition.component,n);a.delete(i.definition.name),i.dependencies=a}n.destroy()}function x2e(e,t){return y2e(e,t,new Set)}function y2e(e,t,r){const n=e.type;if(t.hasComponent(n)||r.add(n),!e.children)return r;for(const o of e.children)y2e(o,t,r);return r}const vDt=Object.freeze(Object.defineProperty({__proto__:null,ApiInterceptorProvider:IN,AppRoot:vB,Button:sn,ErrorBoundary:t0,Icon:kt,LinkNative:Kx,Logo:Dx,NestedApp:Vce,Spinner:Tx,Splitter:oJ,Stack:vv,StandaloneApp:f2e,StandaloneExtensionManager:bB,TabItem:Qfe,Tabs:Cfe,Text:xr,TextBox:Ly,ToneChangerButton:fme,VisuallyHidden:SY,XmlUiHelper:dDt,builtInThemes:WN,createComponentRenderer:xe,createMetadata:YLe,d:re,errReportComponent:TE,getColor:h7e,parseScssVar:tt,startApp:b2e,toCssVar:Sx,useAppLayoutContext:Pp,useColors:A8e,useDevTools:P_t,useEvent:Mt,useLogger:a2e,useSearchContextContent:mBe,useTheme:zr,xmlUiMarkupToComponent:Mw},Symbol.toStringTag,{value:"Module"})),w2e=new bB;document.addEventListener("DOMContentLoaded",function(){if(!document.getElementById("root")){const e=document.createElement("div");e.id="root",document.getElementsByTagName("body")[0].appendChild(e)}b2e(void 0,void 0,w2e)}),window.React=ee,window.jsxRuntime=JSe,window.ReactDOM=Bg;const bDt={...vDt,standalone:w2e};function C2e(e,t){return function(){return e.apply(t,arguments)}}const{toString:xDt}=Object.prototype,{getPrototypeOf:TB}=Object,s5=(e=>t=>{const r=xDt.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ru=e=>(e=e.toLowerCase(),t=>s5(t)===e),u5=e=>t=>typeof t===e,{isArray:r1}=Array,pC=u5("undefined");function yDt(e){return e!==null&&!pC(e)&&e.constructor!==null&&!pC(e.constructor)&&jl(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const k2e=Ru("ArrayBuffer");function wDt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&k2e(e.buffer),t}const CDt=u5("string"),jl=u5("function"),_2e=u5("number"),c5=e=>e!==null&&typeof e=="object",kDt=e=>e===!0||e===!1,d5=e=>{if(s5(e)!=="object")return!1;const t=TB(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},_Dt=Ru("Date"),TDt=Ru("File"),SDt=Ru("Blob"),EDt=Ru("FileList"),ODt=e=>c5(e)&&jl(e.pipe),ADt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||jl(e.append)&&((t=s5(e))==="formdata"||t==="object"&&jl(e.toString)&&e.toString()==="[object FormData]"))},IDt=Ru("URLSearchParams"),[RDt,PDt,HDt,LDt]=["ReadableStream","Request","Response","Headers"].map(Ru),NDt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function hC(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),r1(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let l;for(n=0;n<a;n++)l=i[n],t.call(null,e[l],l,e)}}function T2e(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const cg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,S2e=e=>!pC(e)&&e!==cg;function SB(){const{caseless:e}=S2e(this)&&this||{},t={},r=(n,o)=>{const i=e&&T2e(t,o)||o;d5(t[i])&&d5(n)?t[i]=SB(t[i],n):d5(n)?t[i]=SB({},n):r1(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&hC(arguments[n],r);return t}const $Dt=(e,t,r,{allOwnKeys:n}={})=>(hC(t,(o,i)=>{r&&jl(o)?e[i]=C2e(o,r):e[i]=o},{allOwnKeys:n}),e),DDt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),BDt=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},jDt=(e,t,r,n)=>{let o,i,a;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=r!==!1&&TB(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},MDt=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},zDt=e=>{if(!e)return null;if(r1(e))return e;let t=e.length;if(!_2e(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},FDt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&TB(Uint8Array)),WDt=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},VDt=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},UDt=Ru("HTMLFormElement"),qDt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),E2e=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),GDt=Ru("RegExp"),O2e=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};hC(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},YDt=e=>{O2e(e,(t,r)=>{if(jl(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(jl(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},KDt=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return r1(e)?n(e):n(String(e).split(t)),r},XDt=()=>{},QDt=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function ZDt(e){return!!(e&&jl(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const JDt=e=>{const t=new Array(10),r=(n,o)=>{if(c5(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=r1(n)?[]:{};return hC(n,(a,l)=>{const s=r(a,o+1);!pC(s)&&(i[l]=s)}),t[o]=void 0,i}}return n};return r(e,0)},eBt=Ru("AsyncFunction"),tBt=e=>e&&(c5(e)||jl(e))&&jl(e.then)&&jl(e.catch),A2e=((e,t)=>e?setImmediate:t?((r,n)=>(cg.addEventListener("message",({source:o,data:i})=>{o===cg&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),cg.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",jl(cg.postMessage)),rBt=typeof queueMicrotask<"u"?queueMicrotask.bind(cg):typeof process<"u"&&process.nextTick||A2e,De={isArray:r1,isArrayBuffer:k2e,isBuffer:yDt,isFormData:ADt,isArrayBufferView:wDt,isString:CDt,isNumber:_2e,isBoolean:kDt,isObject:c5,isPlainObject:d5,isReadableStream:RDt,isRequest:PDt,isResponse:HDt,isHeaders:LDt,isUndefined:pC,isDate:_Dt,isFile:TDt,isBlob:SDt,isRegExp:GDt,isFunction:jl,isStream:ODt,isURLSearchParams:IDt,isTypedArray:FDt,isFileList:EDt,forEach:hC,merge:SB,extend:$Dt,trim:NDt,stripBOM:DDt,inherits:BDt,toFlatObject:jDt,kindOf:s5,kindOfTest:Ru,endsWith:MDt,toArray:zDt,forEachEntry:WDt,matchAll:VDt,isHTMLForm:UDt,hasOwnProperty:E2e,hasOwnProp:E2e,reduceDescriptors:O2e,freezeMethods:YDt,toObjectSet:KDt,toCamelCase:qDt,noop:XDt,toFiniteNumber:QDt,findKey:T2e,global:cg,isContextDefined:S2e,isSpecCompliantForm:ZDt,toJSONObject:JDt,isAsyncFn:eBt,isThenable:tBt,setImmediate:A2e,asap:rBt};function ir(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}De.inherits(ir,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:De.toJSONObject(this.config),code:this.code,status:this.status}}});const I2e=ir.prototype,R2e={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{R2e[e]={value:e}}),Object.defineProperties(ir,R2e),Object.defineProperty(I2e,"isAxiosError",{value:!0}),ir.from=(e,t,r,n,o,i)=>{const a=Object.create(I2e);return De.toFlatObject(e,a,function(s){return s!==Error.prototype},l=>l!=="isAxiosError"),ir.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const nBt=null;function EB(e){return De.isPlainObject(e)||De.isArray(e)}function P2e(e){return De.endsWith(e,"[]")?e.slice(0,-2):e}function H2e(e,t,r){return e?e.concat(t).map(function(o,i){return o=P2e(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function oBt(e){return De.isArray(e)&&!e.some(EB)}const iBt=De.toFlatObject(De,{},null,function(t){return/^is[A-Z]/.test(t)});function f5(e,t,r){if(!De.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=De.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,b){return!De.isUndefined(b[v])});const n=r.metaTokens,o=r.visitor||c,i=r.dots,a=r.indexes,s=(r.Blob||typeof Blob<"u"&&Blob)&&De.isSpecCompliantForm(t);if(!De.isFunction(o))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(De.isDate(g))return g.toISOString();if(!s&&De.isBlob(g))throw new ir("Blob is not supported. Use a Buffer instead.");return De.isArrayBuffer(g)||De.isTypedArray(g)?s&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,v,b){let y=g;if(g&&!b&&typeof g=="object"){if(De.endsWith(v,"{}"))v=n?v:v.slice(0,-2),g=JSON.stringify(g);else if(De.isArray(g)&&oBt(g)||(De.isFileList(g)||De.endsWith(v,"[]"))&&(y=De.toArray(g)))return v=P2e(v),y.forEach(function(k,E){!(De.isUndefined(k)||k===null)&&t.append(a===!0?H2e([v],E,i):a===null?v:v+"[]",u(k))}),!1}return EB(g)?!0:(t.append(H2e(b,v,i),u(g)),!1)}const d=[],f=Object.assign(iBt,{defaultVisitor:c,convertValue:u,isVisitable:EB});function p(g,v){if(!De.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(g),De.forEach(g,function(y,w){(!(De.isUndefined(y)||y===null)&&o.call(t,y,De.isString(w)?w.trim():w,v,f))===!0&&p(y,v?v.concat(w):[w])}),d.pop()}}if(!De.isObject(e))throw new TypeError("data must be an object");return p(e),t}function L2e(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function OB(e,t){this._pairs=[],e&&f5(e,this,t)}const N2e=OB.prototype;N2e.append=function(t,r){this._pairs.push([t,r])},N2e.toString=function(t){const r=t?function(n){return t.call(this,n,L2e)}:L2e;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function aBt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function $2e(e,t,r){if(!t)return e;const n=r&&r.encode||aBt;De.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=De.isURLSearchParams(t)?t.toString():new OB(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class D2e{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){De.forEach(this.handlers,function(n){n!==null&&t(n)})}}const B2e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lBt={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:OB,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},AB=typeof window<"u"&&typeof document<"u",IB=typeof navigator=="object"&&navigator||void 0,sBt=AB&&(!IB||["ReactNative","NativeScript","NS"].indexOf(IB.product)<0),uBt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",cBt=AB&&window.location.href||"http://localhost",Fi={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:AB,hasStandardBrowserEnv:sBt,hasStandardBrowserWebWorkerEnv:uBt,navigator:IB,origin:cBt},Symbol.toStringTag,{value:"Module"})),...lBt};function dBt(e,t){return f5(e,new Fi.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return Fi.isNode&&De.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function fBt(e){return De.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function mBt(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function j2e(e){function t(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),s=i>=r.length;return a=!a&&De.isArray(o)?o.length:a,s?(De.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!l):((!o[a]||!De.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&De.isArray(o[a])&&(o[a]=mBt(o[a])),!l)}if(De.isFormData(e)&&De.isFunction(e.entries)){const r={};return De.forEachEntry(e,(n,o)=>{t(fBt(n),o,r,0)}),r}return null}function pBt(e,t,r){if(De.isString(e))try{return(t||JSON.parse)(e),De.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const gC={transitional:B2e,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=De.isObject(t);if(i&&De.isHTMLForm(t)&&(t=new FormData(t)),De.isFormData(t))return o?JSON.stringify(j2e(t)):t;if(De.isArrayBuffer(t)||De.isBuffer(t)||De.isStream(t)||De.isFile(t)||De.isBlob(t)||De.isReadableStream(t))return t;if(De.isArrayBufferView(t))return t.buffer;if(De.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return dBt(t,this.formSerializer).toString();if((l=De.isFileList(t))||n.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return f5(l?{"files[]":t}:t,s&&new s,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),pBt(t)):t}],transformResponse:[function(t){const r=this.transitional||gC.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(De.isResponse(t)||De.isReadableStream(t))return t;if(t&&De.isString(t)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(a)throw l.name==="SyntaxError"?ir.from(l,ir.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fi.classes.FormData,Blob:Fi.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};De.forEach(["delete","get","head","post","put","patch"],e=>{gC.headers[e]={}});const hBt=De.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),gBt=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
697
697
|
`).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||t[r]&&hBt[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},M2e=Symbol("internals");function vC(e){return e&&String(e).trim().toLowerCase()}function m5(e){return e===!1||e==null?e:De.isArray(e)?e.map(m5):String(e)}function vBt(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const bBt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function RB(e,t,r,n,o){if(De.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!De.isString(t)){if(De.isString(n))return t.indexOf(n)!==-1;if(De.isRegExp(n))return n.test(t)}}function xBt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function yBt(e,t){const r=De.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,a){return this[n].call(this,t,o,i,a)},configurable:!0})})}let Ga=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(l,s,u){const c=vC(s);if(!c)throw new Error("header name must be a non-empty string");const d=De.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||s]=m5(l))}const a=(l,s)=>De.forEach(l,(u,c)=>i(u,c,s));if(De.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(De.isString(t)&&(t=t.trim())&&!bBt(t))a(gBt(t),r);else if(De.isHeaders(t))for(const[l,s]of t.entries())i(s,l,n);else t!=null&&i(r,t,n);return this}get(t,r){if(t=vC(t),t){const n=De.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return vBt(o);if(De.isFunction(r))return r.call(this,o,n);if(De.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=vC(t),t){const n=De.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||RB(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(a){if(a=vC(a),a){const l=De.findKey(n,a);l&&(!r||RB(n,n[l],l,r))&&(delete n[l],o=!0)}}return De.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||RB(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return De.forEach(this,(o,i)=>{const a=De.findKey(n,i);if(a){r[a]=m5(o),delete r[i];return}const l=t?xBt(i):String(i).trim();l!==i&&delete r[i],r[l]=m5(o),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return De.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&De.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
698
698
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[M2e]=this[M2e]={accessors:{}}).accessors,o=this.prototype;function i(a){const l=vC(a);n[l]||(yBt(o,a),n[l]=!0)}return De.isArray(t)?t.forEach(i):i(t),this}};Ga.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),De.reduceDescriptors(Ga.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),De.freezeMethods(Ga);function PB(e,t){const r=this||gC,n=t||r,o=Ga.from(n.headers);let i=n.data;return De.forEach(e,function(l){i=l.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function z2e(e){return!!(e&&e.__CANCEL__)}function n1(e,t,r){ir.call(this,e??"canceled",ir.ERR_CANCELED,t,r),this.name="CanceledError"}De.inherits(n1,ir,{__CANCEL__:!0});function F2e(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new ir("Request failed with status code "+r.status,[ir.ERR_BAD_REQUEST,ir.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function wBt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function CBt(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(s){const u=Date.now(),c=n[i];a||(a=u),r[o]=s,n[o]=u;let d=i,f=0;for(;d!==o;)f+=r[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-a<t)return;const p=c&&u-c;return p?Math.round(f*1e3/p):void 0}}function kBt(e,t){let r=0,n=1e3/t,o,i;const a=(u,c=Date.now())=>{r=c,o=null,i&&(clearTimeout(i),i=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),d=c-r;d>=n?a(u,c):(o=u,i||(i=setTimeout(()=>{i=null,a(o)},n-d)))},()=>o&&a(o)]}const p5=(e,t,r=3)=>{let n=0;const o=CBt(50,250);return kBt(i=>{const a=i.loaded,l=i.lengthComputable?i.total:void 0,s=a-n,u=o(s),c=a<=l;n=a;const d={loaded:a,total:l,progress:l?a/l:void 0,bytes:s,rate:u||void 0,estimated:u&&l&&c?(l-a)/u:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(d)},r)},W2e=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},V2e=e=>(...t)=>De.asap(()=>e(...t)),_Bt=Fi.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Fi.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Fi.origin),Fi.navigator&&/(msie|trident)/i.test(Fi.navigator.userAgent)):()=>!0,TBt=Fi.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];De.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),De.isString(n)&&a.push("path="+n),De.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function SBt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function EBt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function U2e(e,t,r){let n=!SBt(t);return e&&n||r==!1?EBt(e,t):t}const q2e=e=>e instanceof Ga?{...e}:e;function dg(e,t){t=t||{};const r={};function n(u,c,d,f){return De.isPlainObject(u)&&De.isPlainObject(c)?De.merge.call({caseless:f},u,c):De.isPlainObject(c)?De.merge({},c):De.isArray(c)?c.slice():c}function o(u,c,d,f){if(De.isUndefined(c)){if(!De.isUndefined(u))return n(void 0,u,d,f)}else return n(u,c,d,f)}function i(u,c){if(!De.isUndefined(c))return n(void 0,c)}function a(u,c){if(De.isUndefined(c)){if(!De.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function l(u,c,d){if(d in t)return n(u,c);if(d in e)return n(void 0,u)}const s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(u,c,d)=>o(q2e(u),q2e(c),d,!0)};return De.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=s[c]||o,f=d(e[c],t[c],c);De.isUndefined(f)&&d!==l||(r[c]=f)}),r}const G2e=e=>{const t=dg({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:l}=t;t.headers=a=Ga.from(a),t.url=$2e(U2e(t.baseURL,t.url),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let s;if(De.isFormData(r)){if(Fi.hasStandardBrowserEnv||Fi.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((s=a.getContentType())!==!1){const[u,...c]=s?s.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...c].join("; "))}}if(Fi.hasStandardBrowserEnv&&(n&&De.isFunction(n)&&(n=n(t)),n||n!==!1&&_Bt(t.url))){const u=o&&i&&TBt.read(i);u&&a.set(o,u)}return t},OBt=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=G2e(e);let i=o.data;const a=Ga.from(o.headers).normalize();let{responseType:l,onUploadProgress:s,onDownloadProgress:u}=o,c,d,f,p,g;function v(){p&&p(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let b=new XMLHttpRequest;b.open(o.method.toUpperCase(),o.url,!0),b.timeout=o.timeout;function y(){if(!b)return;const k=Ga.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),_={data:!l||l==="text"||l==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:k,config:e,request:b};F2e(function(O){r(O),v()},function(O){n(O),v()},_),b=null}"onloadend"in b?b.onloadend=y:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(y)},b.onabort=function(){b&&(n(new ir("Request aborted",ir.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new ir("Network Error",ir.ERR_NETWORK,e,b)),b=null},b.ontimeout=function(){let E=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const _=o.transitional||B2e;o.timeoutErrorMessage&&(E=o.timeoutErrorMessage),n(new ir(E,_.clarifyTimeoutError?ir.ETIMEDOUT:ir.ECONNABORTED,e,b)),b=null},i===void 0&&a.setContentType(null),"setRequestHeader"in b&&De.forEach(a.toJSON(),function(E,_){b.setRequestHeader(_,E)}),De.isUndefined(o.withCredentials)||(b.withCredentials=!!o.withCredentials),l&&l!=="json"&&(b.responseType=o.responseType),u&&([f,g]=p5(u,!0),b.addEventListener("progress",f)),s&&b.upload&&([d,p]=p5(s),b.upload.addEventListener("progress",d),b.upload.addEventListener("loadend",p)),(o.cancelToken||o.signal)&&(c=k=>{b&&(n(!k||k.type?new n1(null,e,b):k),b.abort(),b=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const w=wBt(o.url);if(w&&Fi.protocols.indexOf(w)===-1){n(new ir("Unsupported protocol "+w+":",ir.ERR_BAD_REQUEST,e));return}b.send(i||null)})},ABt=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(u){if(!o){o=!0,l();const c=u instanceof Error?u:this.reason;n.abort(c instanceof ir?c:new n1(c instanceof Error?c.message:c))}};let a=t&&setTimeout(()=>{a=null,i(new ir(`timeout ${t} of ms exceeded`,ir.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:s}=n;return s.unsubscribe=()=>De.asap(l),s}},IBt=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},RBt=async function*(e,t){for await(const r of PBt(e))yield*IBt(r,t)},PBt=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Y2e=(e,t,r,n)=>{const o=RBt(e,t);let i=0,a,l=s=>{a||(a=!0,n&&n(s))};return new ReadableStream({async pull(s){try{const{done:u,value:c}=await o.next();if(u){l(),s.close();return}let d=c.byteLength;if(r){let f=i+=d;r(f)}s.enqueue(new Uint8Array(c))}catch(u){throw l(u),u}},cancel(s){return l(s),o.return()}},{highWaterMark:2})},h5=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",K2e=h5&&typeof ReadableStream=="function",HBt=h5&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),X2e=(e,...t)=>{try{return!!e(...t)}catch{return!1}},LBt=K2e&&X2e(()=>{let e=!1;const t=new Request(Fi.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Q2e=64*1024,HB=K2e&&X2e(()=>De.isReadableStream(new Response("").body)),g5={stream:HB&&(e=>e.body)};h5&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!g5[t]&&(g5[t]=De.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new ir(`Response type '${t}' is not supported`,ir.ERR_NOT_SUPPORT,n)})})})(new Response);const NBt=async e=>{if(e==null)return 0;if(De.isBlob(e))return e.size;if(De.isSpecCompliantForm(e))return(await new Request(Fi.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(De.isArrayBufferView(e)||De.isArrayBuffer(e))return e.byteLength;if(De.isURLSearchParams(e)&&(e=e+""),De.isString(e))return(await HBt(e)).byteLength},$Bt=async(e,t)=>{const r=De.toFiniteNumber(e.getContentLength());return r??NBt(t)},LB={http:nBt,xhr:OBt,fetch:h5&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:a,onDownloadProgress:l,onUploadProgress:s,responseType:u,headers:c,withCredentials:d="same-origin",fetchOptions:f}=G2e(e);u=u?(u+"").toLowerCase():"text";let p=ABt([o,i&&i.toAbortSignal()],a),g;const v=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let b;try{if(s&&LBt&&r!=="get"&&r!=="head"&&(b=await $Bt(c,n))!==0){let _=new Request(t,{method:"POST",body:n,duplex:"half"}),S;if(De.isFormData(n)&&(S=_.headers.get("content-type"))&&c.setContentType(S),_.body){const[O,A]=W2e(b,p5(V2e(s)));n=Y2e(_.body,Q2e,O,A)}}De.isString(d)||(d=d?"include":"omit");const y="credentials"in Request.prototype;g=new Request(t,{...f,signal:p,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:y?d:void 0});let w=await fetch(g);const k=HB&&(u==="stream"||u==="response");if(HB&&(l||k&&v)){const _={};["status","statusText","headers"].forEach(I=>{_[I]=w[I]});const S=De.toFiniteNumber(w.headers.get("content-length")),[O,A]=l&&W2e(S,p5(V2e(l),!0))||[];w=new Response(Y2e(w.body,Q2e,O,()=>{A&&A(),v&&v()}),_)}u=u||"text";let E=await g5[De.findKey(g5,u)||"text"](w,e);return!k&&v&&v(),await new Promise((_,S)=>{F2e(_,S,{data:E,headers:Ga.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:g})})}catch(y){throw v&&v(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new ir("Network Error",ir.ERR_NETWORK,e,g),{cause:y.cause||y}):ir.from(y,y&&y.code,e,g)}})};De.forEach(LB,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Z2e=e=>`- ${e}`,DBt=e=>De.isFunction(e)||e===null||e===!1,J2e={getAdapter:e=>{e=De.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){r=e[i];let a;if(n=r,!DBt(r)&&(n=LB[(a=String(r)).toLowerCase()],n===void 0))throw new ir(`Unknown adapter '${a}'`);if(n)break;o[a||"#"+i]=n}if(!n){const i=Object.entries(o).map(([l,s])=>`adapter ${l} `+(s===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
|
|
699
699
|
`+i.map(Z2e).join(`
|
|
@@ -929,10 +929,10 @@ Read more: https://mswjs.io/docs/getting-started/mocks`;function l(s){switch(s){
|
|
|
929
929
|
* MIT Licensed
|
|
930
930
|
*)
|
|
931
931
|
*/var tMt=Object.create,yCe=Object.defineProperty,rMt=Object.getOwnPropertyDescriptor,wCe=Object.getOwnPropertyNames,nMt=Object.getPrototypeOf,oMt=Object.prototype.hasOwnProperty,iMt=(e,t)=>function(){return t||(0,e[wCe(e)[0]])((t={exports:{}}).exports,t),t.exports},aMt=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of wCe(t))!oMt.call(e,o)&&o!==r&&yCe(e,o,{get:()=>t[o],enumerable:!(n=rMt(t,o))||n.enumerable});return e},lMt=(e,t,r)=>(r=e!=null?tMt(nMt(e)):{},aMt(!e||!e.__esModule?yCe(r,"default",{value:e,enumerable:!0}):r,e)),sMt=iMt({"node_modules/set-cookie-parser/lib/set-cookie.js"(e,t){var r={decodeValues:!0,map:!1,silent:!1};function n(s){return typeof s=="string"&&!!s.trim()}function o(s,u){var c=s.split(";").filter(n),d=c.shift(),f=i(d),p=f.name,g=f.value;u=u?Object.assign({},r,u):r;try{g=u.decodeValues?decodeURIComponent(g):g}catch(b){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+g+"'. Set options.decodeValues to false to disable this feature.",b)}var v={name:p,value:g};return c.forEach(function(b){var y=b.split("="),w=y.shift().trimLeft().toLowerCase(),k=y.join("=");w==="expires"?v.expires=new Date(k):w==="max-age"?v.maxAge=parseInt(k,10):w==="secure"?v.secure=!0:w==="httponly"?v.httpOnly=!0:w==="samesite"?v.sameSite=k:v[w]=k}),v}function i(s){var u="",c="",d=s.split("=");return d.length>1?(u=d.shift(),c=d.join("=")):c=s,{name:u,value:c}}function a(s,u){if(u=u?Object.assign({},r,u):r,!s)return u.map?{}:[];if(s.headers)if(typeof s.headers.getSetCookie=="function")s=s.headers.getSetCookie();else if(s.headers["set-cookie"])s=s.headers["set-cookie"];else{var c=s.headers[Object.keys(s.headers).find(function(f){return f.toLowerCase()==="set-cookie"})];!c&&s.headers.cookie&&!u.silent&&console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),s=c}if(Array.isArray(s)||(s=[s]),u=u?Object.assign({},r,u):r,u.map){var d={};return s.filter(n).reduce(function(f,p){var g=o(p,u);return f[g.name]=g,f},d)}else return s.filter(n).map(function(f){return o(f,u)})}function l(s){if(Array.isArray(s))return s;if(typeof s!="string")return[];var u=[],c=0,d,f,p,g,v;function b(){for(;c<s.length&&/\s/.test(s.charAt(c));)c+=1;return c<s.length}function y(){return f=s.charAt(c),f!=="="&&f!==";"&&f!==","}for(;c<s.length;){for(d=c,v=!1;b();)if(f=s.charAt(c),f===","){for(p=c,c+=1,b(),g=c;c<s.length&&y();)c+=1;c<s.length&&s.charAt(c)==="="?(v=!0,c=g,u.push(s.substring(d,p)),d=c):c=p+1}else c+=1;(!v||c>=s.length)&&u.push(s.substring(d,s.length))}return u}t.exports=a,t.exports.parse=a,t.exports.parseString=o,t.exports.splitCookiesString=l}}),uMt=lMt(sMt()),cMt=/[^a-z0-9\-#$%&'*+.^_`|~]/i;function xC(e){if(cMt.test(e)||e.trim()==="")throw new TypeError("Invalid character in header field name");return e.trim().toLowerCase()}var CCe=[`
|
|
932
|
-
`,"\r"," "," "],dMt=new RegExp(`(^[${CCe.join("")}]|$[${CCe.join("")}])`,"g");function jB(e){return e.replace(dMt,"")}function yC(e){if(typeof e!="string"||e.length===0)return!1;for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);if(r>127||!fMt(r))return!1}return!0}function fMt(e){return![127,32,"(",")","<",">","@",",",";",":","\\",'"',"/","[","]","?","=","{","}"].includes(e)}function kCe(e){if(typeof e!="string"||e.trim()!==e)return!1;for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);if(r===0||r===10||r===13)return!1}return!0}var i1=Symbol("normalizedHeaders"),MB=Symbol("rawHeaderNames"),_Ce=", ",TCe,SCe,ECe,mMt=class XSe{constructor(t){this[TCe]={},this[SCe]=new Map,this[ECe]="Headers",["Headers","HeadersPolyfill"].includes(t==null?void 0:t.constructor.name)||t instanceof XSe||typeof globalThis.Headers<"u"&&t instanceof globalThis.Headers?t.forEach((n,o)=>{this.append(o,n)},this):Array.isArray(t)?t.forEach(([r,n])=>{this.append(r,Array.isArray(n)?n.join(_Ce):n)}):t&&Object.getOwnPropertyNames(t).forEach(r=>{const n=t[r];this.append(r,Array.isArray(n)?n.join(_Ce):n)})}[(TCe=i1,SCe=MB,ECe=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}*keys(){for(const[t]of this.entries())yield t}*values(){for(const[,t]of this.entries())yield t}*entries(){let t=Object.keys(this[i1]).sort((r,n)=>r.localeCompare(n));for(const r of t)if(r==="set-cookie")for(const n of this.getSetCookie())yield[r,n];else yield[r,this.get(r)]}has(t){if(!yC(t))throw new TypeError(`Invalid header name "${t}"`);return this[i1].hasOwnProperty(xC(t))}get(t){if(!yC(t))throw TypeError(`Invalid header name "${t}"`);return this[i1][xC(t)]??null}set(t,r){if(!yC(t)||!kCe(r))return;const n=xC(t),o=jB(r);this[i1][n]=jB(o),this[MB].set(n,t)}append(t,r){if(!yC(t)||!kCe(r))return;const n=xC(t),o=jB(r);let i=this.has(n)?`${this.get(n)}, ${o}`:o;this.set(t,i)}delete(t){if(!yC(t)||!this.has(t))return;const r=xC(t);delete this[i1][r],this[MB].delete(r)}forEach(t,r){for(const[n,o]of this.entries())t.call(r,o,n,this)}getSetCookie(){const t=this.get("set-cookie");return t===null?[]:t===""?[""]:(0,uMt.splitCookiesString)(t)}};const{message:pMt}=xCe,OCe=Symbol("kSetCookie");function mg(e={}){const t=(e==null?void 0:e.status)||200,r=(e==null?void 0:e.statusText)||pMt[t]||"",n=new Headers(e==null?void 0:e.headers);return{...e,headers:n,status:t,statusText:r}}function hMt(e,t){t.type&&Object.defineProperty(e,"type",{value:t.type,enumerable:!0,writable:!1});const r=t.headers.get("set-cookie");if(r&&(Object.defineProperty(e,OCe,{value:r,enumerable:!1,writable:!1}),typeof document<"u")){const n=mMt.prototype.getSetCookie.call(t.headers);for(const o of n)document.cookie=o}return e}function gMt(e,t){const r=Reflect.get(t,OCe);r&&hCe.setCookie(r,e.url)}async function ACe(e,t,r,n,o,i){var u,c,d,f,p,g;if(o.emit("request:start",{request:e,requestId:t}),(u=e.headers.get("accept"))!=null&&u.includes("msw/passthrough")){o.emit("request:end",{request:e,requestId:t}),(c=i==null?void 0:i.onPassthroughResponse)==null||c.call(i,e);return}const a=await vjt(()=>bjt({request:e,requestId:t,handlers:r,resolutionContext:i==null?void 0:i.resolutionContext}));if(a.error)throw o.emit("unhandledException",{error:a.error,request:e,requestId:t}),a.error;if(!a.data){await iCe(e,n.onUnhandledRequest),o.emit("request:unhandled",{request:e,requestId:t}),o.emit("request:end",{request:e,requestId:t}),(d=i==null?void 0:i.onPassthroughResponse)==null||d.call(i,e);return}const{response:l}=a.data;if(!l){o.emit("request:end",{request:e,requestId:t}),(f=i==null?void 0:i.onPassthroughResponse)==null||f.call(i,e);return}if(l.status===302&&l.headers.get("x-msw-intention")==="passthrough"){o.emit("request:end",{request:e,requestId:t}),(p=i==null?void 0:i.onPassthroughResponse)==null||p.call(i,e);return}gMt(e,l),o.emit("request:match",{request:e,requestId:t});const s=a.data;return(g=i==null?void 0:i.onMockedResponse)==null||g.call(i,l,s),o.emit("request:end",{request:e,requestId:t}),l}function vMt(e){return{status:e.status,statusText:e.statusText,headers:Object.fromEntries(e.headers.entries())}}function zB(e){return t=>t!=null&&typeof t=="object"&&"__kind"in t&&t.__kind===e}function ICe(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function RCe(e,t){return Object.entries(t).reduce((r,[n,o])=>{const i=r[n];return Array.isArray(i)&&Array.isArray(o)?(r[n]=i.concat(o),r):ICe(i)&&ICe(o)?(r[n]=RCe(i,o),r):(r[n]=o,r)},Object.assign({},e))}var bMt=class extends Error{constructor(t,r,n){super(`Possible EventEmitter memory leak detected. ${n} ${r.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`),this.emitter=t,this.type=r,this.count=n,this.name="MaxListenersExceededWarning"}},PCe=class{static listenerCount(t,r){return t.listenerCount(r)}constructor(){this.events=new Map,this.maxListeners=PCe.defaultMaxListeners,this.hasWarnedAboutPotentialMemoryLeak=!1}_emitInternalEvent(t,r,n){this.emit(t,r,n)}_getListeners(t){return Array.prototype.concat.apply([],this.events.get(t))||[]}_removeListener(t,r){const n=t.indexOf(r);return n>-1&&t.splice(n,1),[]}_wrapOnceListener(t,r){const n=(...o)=>(this.removeListener(t,n),r.apply(this,o));return Object.defineProperty(n,"name",{value:r.name}),n}setMaxListeners(t){return this.maxListeners=t,this}getMaxListeners(){return this.maxListeners}eventNames(){return Array.from(this.events.keys())}emit(t,...r){const n=this._getListeners(t);return n.forEach(o=>{o.apply(this,r)}),n.length>0}addListener(t,r){this._emitInternalEvent("newListener",t,r);const n=this._getListeners(t).concat(r);if(this.events.set(t,n),this.maxListeners>0&&this.listenerCount(t)>this.maxListeners&&!this.hasWarnedAboutPotentialMemoryLeak){this.hasWarnedAboutPotentialMemoryLeak=!0;const o=new bMt(this,t,this.listenerCount(t));console.warn(o)}return this}on(t,r){return this.addListener(t,r)}once(t,r){return this.addListener(t,this._wrapOnceListener(t,r))}prependListener(t,r){const n=this._getListeners(t);if(n.length>0){const o=[r].concat(n);this.events.set(t,o)}else this.events.set(t,n.concat(r));return this}prependOnceListener(t,r){return this.prependListener(t,this._wrapOnceListener(t,r))}removeListener(t,r){const n=this._getListeners(t);return n.length>0&&(this._removeListener(n,r),this.events.set(t,n),this._emitInternalEvent("removeListener",t,r)),this}off(t,r){return this.removeListener(t,r)}removeAllListeners(t){return t?this.events.delete(t):this.events.clear(),this}listeners(t){return Array.from(this._getListeners(t))}listenerCount(t){return this._getListeners(t).length}rawListeners(t){return this.listeners(t)}},y5=PCe;y5.defaultMaxListeners=10;function xMt(e,t){const r=e.emit;if(r._isPiped)return;const n=function(i,...a){return t.emit(i,...a),r.call(this,i,...a)};n._isPiped=!0,e.emit=n}function yMt(e){const t=[...e];return Object.freeze(t),t}class wMt{constructor(){_r(this,"subscriptions",[])}dispose(){let t;for(;t=this.subscriptions.shift();)t()}}class CMt{constructor(t){_r(this,"handlers");this.initialHandlers=t,this.handlers=[...t]}prepend(t){this.handlers.unshift(...t)}reset(t){this.handlers=t.length>0?[...t]:[...this.initialHandlers]}currentHandlers(){return this.handlers}}class kMt extends wMt{constructor(...r){super();_r(this,"handlersController");_r(this,"emitter");_r(this,"publicEmitter");_r(this,"events");Pu(this.validateHandlers(r),Vr.formatMessage("Failed to apply given request handlers: invalid input. Did you forget to spread the request handlers Array?")),this.handlersController=new CMt(r),this.emitter=new y5,this.publicEmitter=new y5,xMt(this.emitter,this.publicEmitter),this.events=this.createLifeCycleEvents(),this.subscriptions.push(()=>{this.emitter.removeAllListeners(),this.publicEmitter.removeAllListeners()})}validateHandlers(r){return r.every(n=>!Array.isArray(n))}use(...r){Pu(this.validateHandlers(r),Vr.formatMessage('Failed to call "use()" with the given request handlers: invalid input. Did you forget to spread the array of request handlers?')),this.handlersController.prepend(r)}restoreHandlers(){this.handlersController.currentHandlers().forEach(r=>{"isUsed"in r&&(r.isUsed=!1)})}resetHandlers(...r){this.handlersController.reset(r)}listHandlers(){return yMt(this.handlersController.currentHandlers())}createLifeCycleEvents(){return{on:(...r)=>this.publicEmitter.on(...r),removeListener:(...r)=>this.publicEmitter.removeListener(...r),removeAllListeners:(...r)=>this.publicEmitter.removeAllListeners(...r)}}}function _Mt(e){const t=Object.getOwnPropertyDescriptor(globalThis,e);return typeof t>"u"||typeof t.get=="function"&&typeof t.get()>"u"||typeof t.get>"u"&&t.value==null?!1:typeof t.set>"u"&&!t.configurable?(console.error(`[MSW] Failed to apply interceptor: the global \`${e}\` property is non-configurable. This is likely an issue with your environment. If you are using a framework, please open an issue about this in their repository.`),!1):!0}var TMt={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_USED_COMPONENTS_TableEditor:"false",VITE_XMLUI_VERSION:"0.9.74 (built 7/15/2025)"},SMt=Object.defineProperty,EMt=(e,t)=>{for(var r in t)SMt(e,r,{get:t[r],enumerable:!0})},FB={};EMt(FB,{blue:()=>AMt,gray:()=>WB,green:()=>RMt,red:()=>IMt,yellow:()=>OMt});function OMt(e){return`\x1B[33m${e}\x1B[0m`}function AMt(e){return`\x1B[34m${e}\x1B[0m`}function WB(e){return`\x1B[90m${e}\x1B[0m`}function IMt(e){return`\x1B[31m${e}\x1B[0m`}function RMt(e){return`\x1B[32m${e}\x1B[0m`}var w5=BB(),HCe=class{constructor(t){_r(this,"prefix");this.name=t,this.prefix=`[${this.name}]`;const r=LCe("DEBUG"),n=LCe("LOG_LEVEL");r==="1"||r==="true"||typeof r<"u"&&this.name.startsWith(r)?(this.debug=wC(n,"debug")?Ic:this.debug,this.info=wC(n,"info")?Ic:this.info,this.success=wC(n,"success")?Ic:this.success,this.warning=wC(n,"warning")?Ic:this.warning,this.error=wC(n,"error")?Ic:this.error):(this.info=Ic,this.success=Ic,this.warning=Ic,this.error=Ic,this.only=Ic)}extend(t){return new HCe(`${this.name}:${t}`)}debug(t,...r){this.logEntry({level:"debug",message:WB(t),positionals:r,prefix:this.prefix,colors:{prefix:"gray"}})}info(t,...r){this.logEntry({level:"info",message:t,positionals:r,prefix:this.prefix,colors:{prefix:"blue"}});const n=new PMt;return(o,...i)=>{n.measure(),this.logEntry({level:"info",message:`${o} ${WB(`${n.deltaTime}ms`)}`,positionals:i,prefix:this.prefix,colors:{prefix:"blue"}})}}success(t,...r){this.logEntry({level:"info",message:t,positionals:r,prefix:`✔ ${this.prefix}`,colors:{timestamp:"green",prefix:"green"}})}warning(t,...r){this.logEntry({level:"warning",message:t,positionals:r,prefix:`⚠ ${this.prefix}`,colors:{timestamp:"yellow",prefix:"yellow"}})}error(t,...r){this.logEntry({level:"error",message:t,positionals:r,prefix:`✖ ${this.prefix}`,colors:{timestamp:"red",prefix:"red"}})}only(t){t()}createEntry(t,r){return{timestamp:new Date,level:t,message:r}}logEntry(t){const{level:r,message:n,prefix:o,colors:i,positionals:a=[]}=t,l=this.createEntry(r,n),s=(i==null?void 0:i.timestamp)||"gray",u=(i==null?void 0:i.prefix)||"gray",c={timestamp:FB[s],prefix:FB[u]};this.getWriter(r)([c.timestamp(this.formatTimestamp(l.timestamp))].concat(o!=null?c.prefix(o):[]).concat(NCe(n)).join(" "),...a.map(NCe))}formatTimestamp(t){return`${t.toLocaleTimeString("en-GB")}:${t.getMilliseconds()}`}getWriter(t){switch(t){case"debug":case"success":case"info":return HMt;case"warning":return LMt;case"error":return NMt}}},PMt=class{constructor(){_r(this,"startTime");_r(this,"endTime");_r(this,"deltaTime");this.startTime=performance.now()}measure(){this.endTime=performance.now();const t=this.endTime-this.startTime;this.deltaTime=t.toFixed(2)}},Ic=()=>{};function HMt(e,...t){if(w5){process.stdout.write(o1(e,...t)+`
|
|
932
|
+
`,"\r"," "," "],dMt=new RegExp(`(^[${CCe.join("")}]|$[${CCe.join("")}])`,"g");function jB(e){return e.replace(dMt,"")}function yC(e){if(typeof e!="string"||e.length===0)return!1;for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);if(r>127||!fMt(r))return!1}return!0}function fMt(e){return![127,32,"(",")","<",">","@",",",";",":","\\",'"',"/","[","]","?","=","{","}"].includes(e)}function kCe(e){if(typeof e!="string"||e.trim()!==e)return!1;for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);if(r===0||r===10||r===13)return!1}return!0}var i1=Symbol("normalizedHeaders"),MB=Symbol("rawHeaderNames"),_Ce=", ",TCe,SCe,ECe,mMt=class XSe{constructor(t){this[TCe]={},this[SCe]=new Map,this[ECe]="Headers",["Headers","HeadersPolyfill"].includes(t==null?void 0:t.constructor.name)||t instanceof XSe||typeof globalThis.Headers<"u"&&t instanceof globalThis.Headers?t.forEach((n,o)=>{this.append(o,n)},this):Array.isArray(t)?t.forEach(([r,n])=>{this.append(r,Array.isArray(n)?n.join(_Ce):n)}):t&&Object.getOwnPropertyNames(t).forEach(r=>{const n=t[r];this.append(r,Array.isArray(n)?n.join(_Ce):n)})}[(TCe=i1,SCe=MB,ECe=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}*keys(){for(const[t]of this.entries())yield t}*values(){for(const[,t]of this.entries())yield t}*entries(){let t=Object.keys(this[i1]).sort((r,n)=>r.localeCompare(n));for(const r of t)if(r==="set-cookie")for(const n of this.getSetCookie())yield[r,n];else yield[r,this.get(r)]}has(t){if(!yC(t))throw new TypeError(`Invalid header name "${t}"`);return this[i1].hasOwnProperty(xC(t))}get(t){if(!yC(t))throw TypeError(`Invalid header name "${t}"`);return this[i1][xC(t)]??null}set(t,r){if(!yC(t)||!kCe(r))return;const n=xC(t),o=jB(r);this[i1][n]=jB(o),this[MB].set(n,t)}append(t,r){if(!yC(t)||!kCe(r))return;const n=xC(t),o=jB(r);let i=this.has(n)?`${this.get(n)}, ${o}`:o;this.set(t,i)}delete(t){if(!yC(t)||!this.has(t))return;const r=xC(t);delete this[i1][r],this[MB].delete(r)}forEach(t,r){for(const[n,o]of this.entries())t.call(r,o,n,this)}getSetCookie(){const t=this.get("set-cookie");return t===null?[]:t===""?[""]:(0,uMt.splitCookiesString)(t)}};const{message:pMt}=xCe,OCe=Symbol("kSetCookie");function mg(e={}){const t=(e==null?void 0:e.status)||200,r=(e==null?void 0:e.statusText)||pMt[t]||"",n=new Headers(e==null?void 0:e.headers);return{...e,headers:n,status:t,statusText:r}}function hMt(e,t){t.type&&Object.defineProperty(e,"type",{value:t.type,enumerable:!0,writable:!1});const r=t.headers.get("set-cookie");if(r&&(Object.defineProperty(e,OCe,{value:r,enumerable:!1,writable:!1}),typeof document<"u")){const n=mMt.prototype.getSetCookie.call(t.headers);for(const o of n)document.cookie=o}return e}function gMt(e,t){const r=Reflect.get(t,OCe);r&&hCe.setCookie(r,e.url)}async function ACe(e,t,r,n,o,i){var u,c,d,f,p,g;if(o.emit("request:start",{request:e,requestId:t}),(u=e.headers.get("accept"))!=null&&u.includes("msw/passthrough")){o.emit("request:end",{request:e,requestId:t}),(c=i==null?void 0:i.onPassthroughResponse)==null||c.call(i,e);return}const a=await vjt(()=>bjt({request:e,requestId:t,handlers:r,resolutionContext:i==null?void 0:i.resolutionContext}));if(a.error)throw o.emit("unhandledException",{error:a.error,request:e,requestId:t}),a.error;if(!a.data){await iCe(e,n.onUnhandledRequest),o.emit("request:unhandled",{request:e,requestId:t}),o.emit("request:end",{request:e,requestId:t}),(d=i==null?void 0:i.onPassthroughResponse)==null||d.call(i,e);return}const{response:l}=a.data;if(!l){o.emit("request:end",{request:e,requestId:t}),(f=i==null?void 0:i.onPassthroughResponse)==null||f.call(i,e);return}if(l.status===302&&l.headers.get("x-msw-intention")==="passthrough"){o.emit("request:end",{request:e,requestId:t}),(p=i==null?void 0:i.onPassthroughResponse)==null||p.call(i,e);return}gMt(e,l),o.emit("request:match",{request:e,requestId:t});const s=a.data;return(g=i==null?void 0:i.onMockedResponse)==null||g.call(i,l,s),o.emit("request:end",{request:e,requestId:t}),l}function vMt(e){return{status:e.status,statusText:e.statusText,headers:Object.fromEntries(e.headers.entries())}}function zB(e){return t=>t!=null&&typeof t=="object"&&"__kind"in t&&t.__kind===e}function ICe(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function RCe(e,t){return Object.entries(t).reduce((r,[n,o])=>{const i=r[n];return Array.isArray(i)&&Array.isArray(o)?(r[n]=i.concat(o),r):ICe(i)&&ICe(o)?(r[n]=RCe(i,o),r):(r[n]=o,r)},Object.assign({},e))}var bMt=class extends Error{constructor(t,r,n){super(`Possible EventEmitter memory leak detected. ${n} ${r.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`),this.emitter=t,this.type=r,this.count=n,this.name="MaxListenersExceededWarning"}},PCe=class{static listenerCount(t,r){return t.listenerCount(r)}constructor(){this.events=new Map,this.maxListeners=PCe.defaultMaxListeners,this.hasWarnedAboutPotentialMemoryLeak=!1}_emitInternalEvent(t,r,n){this.emit(t,r,n)}_getListeners(t){return Array.prototype.concat.apply([],this.events.get(t))||[]}_removeListener(t,r){const n=t.indexOf(r);return n>-1&&t.splice(n,1),[]}_wrapOnceListener(t,r){const n=(...o)=>(this.removeListener(t,n),r.apply(this,o));return Object.defineProperty(n,"name",{value:r.name}),n}setMaxListeners(t){return this.maxListeners=t,this}getMaxListeners(){return this.maxListeners}eventNames(){return Array.from(this.events.keys())}emit(t,...r){const n=this._getListeners(t);return n.forEach(o=>{o.apply(this,r)}),n.length>0}addListener(t,r){this._emitInternalEvent("newListener",t,r);const n=this._getListeners(t).concat(r);if(this.events.set(t,n),this.maxListeners>0&&this.listenerCount(t)>this.maxListeners&&!this.hasWarnedAboutPotentialMemoryLeak){this.hasWarnedAboutPotentialMemoryLeak=!0;const o=new bMt(this,t,this.listenerCount(t));console.warn(o)}return this}on(t,r){return this.addListener(t,r)}once(t,r){return this.addListener(t,this._wrapOnceListener(t,r))}prependListener(t,r){const n=this._getListeners(t);if(n.length>0){const o=[r].concat(n);this.events.set(t,o)}else this.events.set(t,n.concat(r));return this}prependOnceListener(t,r){return this.prependListener(t,this._wrapOnceListener(t,r))}removeListener(t,r){const n=this._getListeners(t);return n.length>0&&(this._removeListener(n,r),this.events.set(t,n),this._emitInternalEvent("removeListener",t,r)),this}off(t,r){return this.removeListener(t,r)}removeAllListeners(t){return t?this.events.delete(t):this.events.clear(),this}listeners(t){return Array.from(this._getListeners(t))}listenerCount(t){return this._getListeners(t).length}rawListeners(t){return this.listeners(t)}},y5=PCe;y5.defaultMaxListeners=10;function xMt(e,t){const r=e.emit;if(r._isPiped)return;const n=function(i,...a){return t.emit(i,...a),r.call(this,i,...a)};n._isPiped=!0,e.emit=n}function yMt(e){const t=[...e];return Object.freeze(t),t}class wMt{constructor(){_r(this,"subscriptions",[])}dispose(){let t;for(;t=this.subscriptions.shift();)t()}}class CMt{constructor(t){_r(this,"handlers");this.initialHandlers=t,this.handlers=[...t]}prepend(t){this.handlers.unshift(...t)}reset(t){this.handlers=t.length>0?[...t]:[...this.initialHandlers]}currentHandlers(){return this.handlers}}class kMt extends wMt{constructor(...r){super();_r(this,"handlersController");_r(this,"emitter");_r(this,"publicEmitter");_r(this,"events");Pu(this.validateHandlers(r),Vr.formatMessage("Failed to apply given request handlers: invalid input. Did you forget to spread the request handlers Array?")),this.handlersController=new CMt(r),this.emitter=new y5,this.publicEmitter=new y5,xMt(this.emitter,this.publicEmitter),this.events=this.createLifeCycleEvents(),this.subscriptions.push(()=>{this.emitter.removeAllListeners(),this.publicEmitter.removeAllListeners()})}validateHandlers(r){return r.every(n=>!Array.isArray(n))}use(...r){Pu(this.validateHandlers(r),Vr.formatMessage('Failed to call "use()" with the given request handlers: invalid input. Did you forget to spread the array of request handlers?')),this.handlersController.prepend(r)}restoreHandlers(){this.handlersController.currentHandlers().forEach(r=>{"isUsed"in r&&(r.isUsed=!1)})}resetHandlers(...r){this.handlersController.reset(r)}listHandlers(){return yMt(this.handlersController.currentHandlers())}createLifeCycleEvents(){return{on:(...r)=>this.publicEmitter.on(...r),removeListener:(...r)=>this.publicEmitter.removeListener(...r),removeAllListeners:(...r)=>this.publicEmitter.removeAllListeners(...r)}}}function _Mt(e){const t=Object.getOwnPropertyDescriptor(globalThis,e);return typeof t>"u"||typeof t.get=="function"&&typeof t.get()>"u"||typeof t.get>"u"&&t.value==null?!1:typeof t.set>"u"&&!t.configurable?(console.error(`[MSW] Failed to apply interceptor: the global \`${e}\` property is non-configurable. This is likely an issue with your environment. If you are using a framework, please open an issue about this in their repository.`),!1):!0}var TMt={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_USED_COMPONENTS_TableEditor:"false",VITE_XMLUI_VERSION:"0.9.75 (built 7/16/2025)"},SMt=Object.defineProperty,EMt=(e,t)=>{for(var r in t)SMt(e,r,{get:t[r],enumerable:!0})},FB={};EMt(FB,{blue:()=>AMt,gray:()=>WB,green:()=>RMt,red:()=>IMt,yellow:()=>OMt});function OMt(e){return`\x1B[33m${e}\x1B[0m`}function AMt(e){return`\x1B[34m${e}\x1B[0m`}function WB(e){return`\x1B[90m${e}\x1B[0m`}function IMt(e){return`\x1B[31m${e}\x1B[0m`}function RMt(e){return`\x1B[32m${e}\x1B[0m`}var w5=BB(),HCe=class{constructor(t){_r(this,"prefix");this.name=t,this.prefix=`[${this.name}]`;const r=LCe("DEBUG"),n=LCe("LOG_LEVEL");r==="1"||r==="true"||typeof r<"u"&&this.name.startsWith(r)?(this.debug=wC(n,"debug")?Ic:this.debug,this.info=wC(n,"info")?Ic:this.info,this.success=wC(n,"success")?Ic:this.success,this.warning=wC(n,"warning")?Ic:this.warning,this.error=wC(n,"error")?Ic:this.error):(this.info=Ic,this.success=Ic,this.warning=Ic,this.error=Ic,this.only=Ic)}extend(t){return new HCe(`${this.name}:${t}`)}debug(t,...r){this.logEntry({level:"debug",message:WB(t),positionals:r,prefix:this.prefix,colors:{prefix:"gray"}})}info(t,...r){this.logEntry({level:"info",message:t,positionals:r,prefix:this.prefix,colors:{prefix:"blue"}});const n=new PMt;return(o,...i)=>{n.measure(),this.logEntry({level:"info",message:`${o} ${WB(`${n.deltaTime}ms`)}`,positionals:i,prefix:this.prefix,colors:{prefix:"blue"}})}}success(t,...r){this.logEntry({level:"info",message:t,positionals:r,prefix:`✔ ${this.prefix}`,colors:{timestamp:"green",prefix:"green"}})}warning(t,...r){this.logEntry({level:"warning",message:t,positionals:r,prefix:`⚠ ${this.prefix}`,colors:{timestamp:"yellow",prefix:"yellow"}})}error(t,...r){this.logEntry({level:"error",message:t,positionals:r,prefix:`✖ ${this.prefix}`,colors:{timestamp:"red",prefix:"red"}})}only(t){t()}createEntry(t,r){return{timestamp:new Date,level:t,message:r}}logEntry(t){const{level:r,message:n,prefix:o,colors:i,positionals:a=[]}=t,l=this.createEntry(r,n),s=(i==null?void 0:i.timestamp)||"gray",u=(i==null?void 0:i.prefix)||"gray",c={timestamp:FB[s],prefix:FB[u]};this.getWriter(r)([c.timestamp(this.formatTimestamp(l.timestamp))].concat(o!=null?c.prefix(o):[]).concat(NCe(n)).join(" "),...a.map(NCe))}formatTimestamp(t){return`${t.toLocaleTimeString("en-GB")}:${t.getMilliseconds()}`}getWriter(t){switch(t){case"debug":case"success":case"info":return HMt;case"warning":return LMt;case"error":return NMt}}},PMt=class{constructor(){_r(this,"startTime");_r(this,"endTime");_r(this,"deltaTime");this.startTime=performance.now()}measure(){this.endTime=performance.now();const t=this.endTime-this.startTime;this.deltaTime=t.toFixed(2)}},Ic=()=>{};function HMt(e,...t){if(w5){process.stdout.write(o1(e,...t)+`
|
|
933
933
|
`);return}console.log(e,...t)}function LMt(e,...t){if(w5){process.stderr.write(o1(e,...t)+`
|
|
934
934
|
`);return}console.warn(e,...t)}function NMt(e,...t){if(w5){process.stderr.write(o1(e,...t)+`
|
|
935
|
-
`);return}console.error(e,...t)}function LCe(e){var t;return w5?TMt[e]:(t=globalThis[e])==null?void 0:t.toString()}function wC(e,t){return e!==void 0&&e!==t}function NCe(e){return typeof e>"u"?"undefined":e===null?"null":typeof e=="string"?e:typeof e=="object"?JSON.stringify(e):e.toString()}function $Ce(e){return globalThis[e]||void 0}function $Mt(e,t){globalThis[e]=t}function DMt(e){delete globalThis[e]}var BMt=class{constructor(t){this.symbol=t,this.readyState="INACTIVE",this.emitter=new y5,this.subscriptions=[],this.logger=new HCe(t.description),this.emitter.setMaxListeners(0),this.logger.info("constructing the interceptor...")}checkEnvironment(){return!0}apply(){const t=this.logger.extend("apply");if(t.info("applying the interceptor..."),this.readyState==="APPLIED"){t.info("intercepted already applied!");return}if(!this.checkEnvironment()){t.info("the interceptor cannot be applied in this environment!");return}this.readyState="APPLYING";const n=this.getInstance();if(n){t.info("found a running instance, reusing..."),this.on=(o,i)=>(t.info('proxying the "%s" listener',o),n.emitter.addListener(o,i),this.subscriptions.push(()=>{n.emitter.removeListener(o,i),t.info('removed proxied "%s" listener!',o)}),this),this.readyState="APPLIED";return}t.info("no running instance found, setting up a new instance..."),this.setup(),this.setInstance(),this.readyState="APPLIED"}setup(){}on(t,r){const n=this.logger.extend("on");return this.readyState==="DISPOSING"||this.readyState==="DISPOSED"?(n.info("cannot listen to events, already disposed!"),this):(n.info('adding "%s" event listener:',t,r),this.emitter.on(t,r),this)}once(t,r){return this.emitter.once(t,r),this}off(t,r){return this.emitter.off(t,r),this}removeAllListeners(t){return this.emitter.removeAllListeners(t),this}dispose(){const t=this.logger.extend("dispose");if(this.readyState==="DISPOSED"){t.info("cannot dispose, already disposed!");return}if(t.info("disposing the interceptor..."),this.readyState="DISPOSING",!this.getInstance()){t.info("no interceptors running, skipping dispose...");return}if(this.clearInstance(),t.info("global symbol deleted:",$Ce(this.symbol)),this.subscriptions.length>0){t.info("disposing of %d subscriptions...",this.subscriptions.length);for(const r of this.subscriptions)r();this.subscriptions=[],t.info("disposed of all subscriptions!",this.subscriptions.length)}this.emitter.removeAllListeners(),t.info("destroyed the listener!"),this.readyState="DISPOSED"}getInstance(){var t;const r=$Ce(this.symbol);return this.logger.info("retrieved global instance:",(t=r==null?void 0:r.constructor)==null?void 0:t.name),r}setInstance(){$Mt(this.symbol,this),this.logger.info("set global instance!",this.symbol.description)}clearInstance(){DMt(this.symbol),this.logger.info("cleared global instance!",this.symbol.description)}};function jMt(){return Math.random().toString(16).slice(2)}function MMt(){const e=(t,r)=>{e.state="pending",e.resolve=n=>{if(e.state!=="pending")return;e.result=n;const o=i=>(e.state="fulfilled",i);return t(n instanceof Promise?n:Promise.resolve(n).then(o))},e.reject=n=>{if(e.state==="pending")return queueMicrotask(()=>{e.state="rejected"}),r(e.rejectionReason=n)}};return e}var zMt=(d_e=class extends Promise{constructor(r=null){const n=MMt();super((o,i)=>{n(o,i),r==null||r(n.resolve,n.reject)});Ek(this,y1);Ek(this,Um);_r(this,"resolve");_r(this,"reject");Bz(this,Um,n),this.resolve=lf(this,Um).resolve,this.reject=lf(this,Um).reject}get state(){return lf(this,Um).state}get rejectionReason(){return lf(this,Um).rejectionReason}then(r,n){return Dg(this,y1,mA).call(this,super.then(r,n))}catch(r){return Dg(this,y1,mA).call(this,super.catch(r))}finally(r){return Dg(this,y1,mA).call(this,super.finally(r))}},Um=new WeakMap,y1=new WeakSet,mA=function(r){return Object.defineProperties(r,{resolve:{configurable:!0,value:this.resolve},reject:{configurable:!0,value:this.reject}})},d_e);function Vi(e,t){return Object.defineProperties(t,{target:{value:e,enumerable:!0,writable:!0},currentTarget:{value:e,enumerable:!0,writable:!0}}),t}var a1=Symbol("kCancelable"),Rc=Symbol("kDefaultPrevented"),VB=class extends MessageEvent{constructor(e,t){super(e,t),this[a1]=!!t.cancelable,this[Rc]=!1}get cancelable(){return this[a1]}set cancelable(e){this[a1]=e}get defaultPrevented(){return this[Rc]}set defaultPrevented(e){this[Rc]=e}preventDefault(){this.cancelable&&!this[Rc]&&(this[Rc]=!0)}},C5=class extends Event{constructor(e,t={}){super(e,t),this.code=t.code===void 0?0:t.code,this.reason=t.reason===void 0?"":t.reason,this.wasClean=t.wasClean===void 0?!1:t.wasClean}},DCe=class extends C5{constructor(e,t={}){super(e,t),this[a1]=!!t.cancelable,this[Rc]=!1}get cancelable(){return this[a1]}set cancelable(e){this[a1]=e}get defaultPrevented(){return this[Rc]}set defaultPrevented(e){this[Rc]=e}preventDefault(){this.cancelable&&!this[Rc]&&(this[Rc]=!0)}},CC=Symbol("kEmitter"),k5=Symbol("kBoundListener"),FMt=class{constructor(e,t){this.socket=e,this.transport=t,this.id=jMt(),this.url=new URL(e.url),this[CC]=new EventTarget,this.transport.addEventListener("outgoing",r=>{const n=Vi(this.socket,new VB("message",{data:r.data,origin:r.origin,cancelable:!0}));this[CC].dispatchEvent(n),n.defaultPrevented&&r.preventDefault()}),this.transport.addEventListener("close",r=>{this[CC].dispatchEvent(Vi(this.socket,new C5("close",r)))})}addEventListener(e,t,r){if(!Reflect.has(t,k5)){const n=t.bind(this.socket);Object.defineProperty(t,k5,{value:n,enumerable:!1,configurable:!1})}this[CC].addEventListener(e,Reflect.get(t,k5),r)}removeEventListener(e,t,r){this[CC].removeEventListener(e,Reflect.get(t,k5),r)}send(e){this.transport.send(e)}close(e,t){this.transport.close(e,t)}},BCe="InvalidAccessError: close code out of user configurable range",_5=Symbol("kPassthroughPromise"),jCe=Symbol("kOnSend"),kC=Symbol("kClose"),_C=class extends EventTarget{constructor(e,t){super(),this.CONNECTING=0,this.OPEN=1,this.CLOSING=2,this.CLOSED=3,this._onopen=null,this._onmessage=null,this._onerror=null,this._onclose=null,this.url=e.toString(),this.protocol="",this.extensions="",this.binaryType="blob",this.readyState=this.CONNECTING,this.bufferedAmount=0,this[_5]=new zMt,queueMicrotask(async()=>{await this[_5]||(this.protocol=typeof t=="string"?t:Array.isArray(t)&&t.length>0?t[0]:"",this.readyState===this.CONNECTING&&(this.readyState=this.OPEN,this.dispatchEvent(Vi(this,new Event("open")))))})}set onopen(e){this.removeEventListener("open",this._onopen),this._onopen=e,e!==null&&this.addEventListener("open",e)}get onopen(){return this._onopen}set onmessage(e){this.removeEventListener("message",this._onmessage),this._onmessage=e,e!==null&&this.addEventListener("message",e)}get onmessage(){return this._onmessage}set onerror(e){this.removeEventListener("error",this._onerror),this._onerror=e,e!==null&&this.addEventListener("error",e)}get onerror(){return this._onerror}set onclose(e){this.removeEventListener("close",this._onclose),this._onclose=e,e!==null&&this.addEventListener("close",e)}get onclose(){return this._onclose}send(e){if(this.readyState===this.CONNECTING)throw this.close(),new DOMException("InvalidStateError");this.readyState===this.CLOSING||this.readyState===this.CLOSED||(this.bufferedAmount+=WMt(e),queueMicrotask(()=>{var t;this.bufferedAmount=0,(t=this[jCe])==null||t.call(this,e)}))}close(e=1e3,t){Pu(e,BCe),Pu(e===1e3||e>=3e3&&e<=4999,BCe),this[kC](e,t)}[kC](e=1e3,t,r=!0){this.readyState===this.CLOSING||this.readyState===this.CLOSED||(this.readyState=this.CLOSING,queueMicrotask(()=>{this.readyState=this.CLOSED,this.dispatchEvent(Vi(this,new C5("close",{code:e,reason:t,wasClean:r}))),this._onopen=null,this._onmessage=null,this._onerror=null,this._onclose=null}))}addEventListener(e,t,r){return super.addEventListener(e,t,r)}removeEventListener(e,t,r){return super.removeEventListener(e,t,r)}};_C.CONNECTING=0,_C.OPEN=1,_C.CLOSING=2,_C.CLOSED=3;function WMt(e){return typeof e=="string"?e.length:e instanceof Blob?e.size:e.byteLength}var Pm=Symbol("kEmitter"),T5=Symbol("kBoundListener"),UB=Symbol("kSend"),VMt=class{constructor(e,t,r){this.client=e,this.transport=t,this.createConnection=r,this[Pm]=new EventTarget,this.mockCloseController=new AbortController,this.realCloseController=new AbortController,this.transport.addEventListener("outgoing",n=>{typeof this.realWebSocket>"u"||queueMicrotask(()=>{n.defaultPrevented||this[UB](n.data)})}),this.transport.addEventListener("incoming",this.handleIncomingMessage.bind(this))}get socket(){return Pu(this.realWebSocket,'Cannot access "socket" on the original WebSocket server object: the connection is not open. Did you forget to call `server.connect()`?'),this.realWebSocket}connect(){Pu(!this.realWebSocket||this.realWebSocket.readyState!==WebSocket.OPEN,'Failed to call "connect()" on the original WebSocket instance: the connection already open');const e=this.createConnection();e.binaryType=this.client.binaryType,e.addEventListener("open",t=>{this[Pm].dispatchEvent(Vi(this.realWebSocket,new Event("open",t)))},{once:!0}),e.addEventListener("message",t=>{this.transport.dispatchEvent(Vi(this.realWebSocket,new MessageEvent("incoming",{data:t.data,origin:t.origin})))}),this.client.addEventListener("close",t=>{this.handleMockClose(t)},{signal:this.mockCloseController.signal}),e.addEventListener("close",t=>{this.handleRealClose(t)},{signal:this.realCloseController.signal}),e.addEventListener("error",()=>{const t=Vi(e,new Event("error",{cancelable:!0}));this[Pm].dispatchEvent(t),t.defaultPrevented||this.client.dispatchEvent(Vi(this.client,new Event("error")))}),this.realWebSocket=e}addEventListener(e,t,r){if(!Reflect.has(t,T5)){const n=t.bind(this.client);Object.defineProperty(t,T5,{value:n,enumerable:!1})}this[Pm].addEventListener(e,Reflect.get(t,T5),r)}removeEventListener(e,t,r){this[Pm].removeEventListener(e,Reflect.get(t,T5),r)}send(e){this[UB](e)}[UB](e){const{realWebSocket:t}=this;if(Pu(t,'Failed to call "server.send()" for "%s": the connection is not open. Did you forget to call "server.connect()"?',this.client.url),!(t.readyState===WebSocket.CLOSING||t.readyState===WebSocket.CLOSED)){if(t.readyState===WebSocket.CONNECTING){t.addEventListener("open",()=>{t.send(e)},{once:!0});return}t.send(e)}}close(){const{realWebSocket:e}=this;Pu(e,'Failed to close server connection for "%s": the connection is not open. Did you forget to call "server.connect()"?',this.client.url),this.realCloseController.abort(),!(e.readyState===WebSocket.CLOSING||e.readyState===WebSocket.CLOSED)&&(e.close(),queueMicrotask(()=>{this[Pm].dispatchEvent(Vi(this.realWebSocket,new DCe("close",{code:1e3,cancelable:!0})))}))}handleIncomingMessage(e){const t=Vi(e.target,new VB("message",{data:e.data,origin:e.origin,cancelable:!0}));this[Pm].dispatchEvent(t),t.defaultPrevented||this.client.dispatchEvent(Vi(this.client,new MessageEvent("message",{data:e.data,origin:e.origin})))}handleMockClose(e){this.realWebSocket&&this.realWebSocket.close()}handleRealClose(e){this.mockCloseController.abort();const t=Vi(this.realWebSocket,new DCe("close",{code:e.code,reason:e.reason,wasClean:e.wasClean,cancelable:!0}));this[Pm].dispatchEvent(t),t.defaultPrevented||this.client[kC](e.code,e.reason)}},UMt=class extends EventTarget{constructor(e){super(),this.socket=e,this.socket.addEventListener("close",t=>{this.dispatchEvent(Vi(this.socket,new C5("close",t)))}),this.socket[jCe]=t=>{this.dispatchEvent(Vi(this.socket,new VB("outgoing",{data:t,origin:this.socket.url,cancelable:!0})))}}addEventListener(e,t,r){return super.addEventListener(e,t,r)}dispatchEvent(e){return super.dispatchEvent(e)}send(e){queueMicrotask(()=>{if(this.socket.readyState===this.socket.CLOSING||this.socket.readyState===this.socket.CLOSED)return;const t=()=>{this.socket.dispatchEvent(Vi(this.socket,new MessageEvent("message",{data:e,origin:this.socket.url})))};this.socket.readyState===this.socket.CONNECTING?this.socket.addEventListener("open",()=>{t()},{once:!0}):t()})}close(e,t){this.socket[kC](e,t)}},MCe=class extends BMt{constructor(){super(MCe.symbol)}checkEnvironment(){return _Mt("WebSocket")}setup(){const e=Object.getOwnPropertyDescriptor(globalThis,"WebSocket"),t=new Proxy(globalThis.WebSocket,{construct:(r,n,o)=>{const[i,a]=n,l=()=>Reflect.construct(r,n,o),s=new _C(i,a),u=new UMt(s);return queueMicrotask(()=>{try{const c=new VMt(s,u,l);this.emitter.emit("connection",{client:new FMt(s,u),server:c,info:{protocols:a}})?s[_5].resolve(!1):(s[_5].resolve(!0),c.connect(),c.addEventListener("open",()=>{s.dispatchEvent(Vi(s,new Event("open"))),c.realWebSocket&&(s.protocol=c.realWebSocket.protocol)}))}catch(c){c instanceof Error&&(s.dispatchEvent(new Event("error")),s.readyState!==WebSocket.CLOSING&&s.readyState!==WebSocket.CLOSED&&s[kC](1011,c.message,!1),console.error(c))}}),s}});Object.defineProperty(globalThis,"WebSocket",{value:t,configurable:!0}),this.subscriptions.push(()=>{Object.defineProperty(globalThis,"WebSocket",e)})}},zCe=MCe;zCe.symbol=Symbol("websocket");const qB=new zCe;new TextEncoder;var l1=class extends Response{static isConfigurableStatusCode(t){return t>=200&&t<=599}static isRedirectResponse(t){return l1.STATUS_CODES_WITH_REDIRECT.includes(t)}static isResponseWithBody(t){return!l1.STATUS_CODES_WITHOUT_BODY.includes(t)}static setUrl(t,r){t&&r.url==""&&Object.defineProperty(r,"url",{value:t,enumerable:!0,configurable:!0,writable:!1})}static parseRawHeaders(t){const r=new Headers;for(let n=0;n<t.length;n+=2)r.append(t[n],t[n+1]);return r}constructor(t,r={}){var n;const o=(n=r.status)!=null?n:200,i=l1.isConfigurableStatusCode(o)?o:200,a=l1.isResponseWithBody(o)?t:null;if(super(a,{...r,status:i}),o!==i){const l=Object.getOwnPropertySymbols(this).find(s=>s.description==="state");if(l){const s=Reflect.get(this,l);Reflect.set(s,"status",o)}else Object.defineProperty(this,"status",{value:o,enumerable:!0,configurable:!0,writable:!1})}l1.setUrl(r.url,this)}},GB=l1;GB.STATUS_CODES_WITHOUT_BODY=[101,103,204,205,304],GB.STATUS_CODES_WITH_REDIRECT=[301,302,303,307,308];function qMt(e,t=!0){return[t&&e.origin,e.pathname].filter(Boolean).join("")}function GMt(e){for(var t=[],r=0;r<e.length;){var n=e[r];if(n==="*"||n==="+"||n==="?"){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if(n==="\\"){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if(n==="{"){t.push({type:"OPEN",index:r,value:e[r++]});continue}if(n==="}"){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(n===":"){for(var o="",i=r+1;i<e.length;){var a=e.charCodeAt(i);if(a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a===95){o+=e[i++];continue}break}if(!o)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:o}),r=i;continue}if(n==="("){var l=1,s="",i=r+1;if(e[i]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(i));for(;i<e.length;){if(e[i]==="\\"){s+=e[i++]+e[i++];continue}if(e[i]===")"){if(l--,l===0){i++;break}}else if(e[i]==="("&&(l++,e[i+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(i));s+=e[i++]}if(l)throw new TypeError("Unbalanced pattern at ".concat(r));if(!s)throw new TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:s}),r=i;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}function YMt(e,t){t===void 0&&(t={});for(var r=GMt(e),n=t.prefixes,o=n===void 0?"./":n,i=t.delimiter,a=i===void 0?"/#?":i,l=[],s=0,u=0,c="",d=function(I){if(u<r.length&&r[u].type===I)return r[u++].value},f=function(I){var H=d(I);if(H!==void 0)return H;var P=r[u],L=P.type,B=P.index;throw new TypeError("Unexpected ".concat(L," at ").concat(B,", expected ").concat(I))},p=function(){for(var I="",H;H=d("CHAR")||d("ESCAPED_CHAR");)I+=H;return I},g=function(I){for(var H=0,P=a;H<P.length;H++){var L=P[H];if(I.indexOf(L)>-1)return!0}return!1},v=function(I){var H=l[l.length-1],P=I||(H&&typeof H=="string"?H:"");if(H&&!P)throw new TypeError('Must have text between two parameters, missing text after "'.concat(H.name,'"'));return!P||g(P)?"[^".concat(Hm(a),"]+?"):"(?:(?!".concat(Hm(P),")[^").concat(Hm(a),"])+?")};u<r.length;){var b=d("CHAR"),y=d("NAME"),w=d("PATTERN");if(y||w){var k=b||"";o.indexOf(k)===-1&&(c+=k,k=""),c&&(l.push(c),c=""),l.push({name:y||s++,prefix:k,suffix:"",pattern:w||v(k),modifier:d("MODIFIER")||""});continue}var E=b||d("ESCAPED_CHAR");if(E){c+=E;continue}c&&(l.push(c),c="");var _=d("OPEN");if(_){var k=p(),S=d("NAME")||"",O=d("PATTERN")||"",A=p();f("CLOSE"),l.push({name:S||(O?s++:""),pattern:S&&!O?v(k):O,prefix:k,suffix:A,modifier:d("MODIFIER")||""});continue}f("END")}return l}function KMt(e,t){var r=[],n=WCe(e,r,t);return XMt(n,r,t)}function XMt(e,t,r){r===void 0&&(r={});var n=r.decode,o=n===void 0?function(i){return i}:n;return function(i){var a=e.exec(i);if(!a)return!1;for(var l=a[0],s=a.index,u=Object.create(null),c=function(f){if(a[f]===void 0)return"continue";var p=t[f-1];p.modifier==="*"||p.modifier==="+"?u[p.name]=a[f].split(p.prefix+p.suffix).map(function(g){return o(g,p)}):u[p.name]=o(a[f],p)},d=1;d<a.length;d++)c(d);return{path:l,index:s,params:u}}}function Hm(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function FCe(e){return e&&e.sensitive?"":"i"}function QMt(e,t){if(!t)return e;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,o=r.exec(e.source);o;)t.push({name:o[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),o=r.exec(e.source);return e}function ZMt(e,t,r){var n=e.map(function(o){return WCe(o,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),FCe(r))}function JMt(e,t,r){return ezt(YMt(e,r),t,r)}function ezt(e,t,r){r===void 0&&(r={});for(var n=r.strict,o=n===void 0?!1:n,i=r.start,a=i===void 0?!0:i,l=r.end,s=l===void 0?!0:l,u=r.encode,c=u===void 0?function(H){return H}:u,d=r.delimiter,f=d===void 0?"/#?":d,p=r.endsWith,g=p===void 0?"":p,v="[".concat(Hm(g),"]|$"),b="[".concat(Hm(f),"]"),y=a?"^":"",w=0,k=e;w<k.length;w++){var E=k[w];if(typeof E=="string")y+=Hm(c(E));else{var _=Hm(c(E.prefix)),S=Hm(c(E.suffix));if(E.pattern)if(t&&t.push(E),_||S)if(E.modifier==="+"||E.modifier==="*"){var O=E.modifier==="*"?"?":"";y+="(?:".concat(_,"((?:").concat(E.pattern,")(?:").concat(S).concat(_,"(?:").concat(E.pattern,"))*)").concat(S,")").concat(O)}else y+="(?:".concat(_,"(").concat(E.pattern,")").concat(S,")").concat(E.modifier);else{if(E.modifier==="+"||E.modifier==="*")throw new TypeError('Can not repeat "'.concat(E.name,'" without a prefix and suffix'));y+="(".concat(E.pattern,")").concat(E.modifier)}else y+="(?:".concat(_).concat(S,")").concat(E.modifier)}}if(s)o||(y+="".concat(b,"?")),y+=r.endsWith?"(?=".concat(v,")"):"$";else{var A=e[e.length-1],I=typeof A=="string"?b.indexOf(A[A.length-1])>-1:A===void 0;o||(y+="(?:".concat(b,"(?=").concat(v,"))?")),I||(y+="(?=".concat(b,"|").concat(v,")"))}return new RegExp(y,FCe(r))}function WCe(e,t,r){return e instanceof RegExp?QMt(e,t):Array.isArray(e)?ZMt(e,t,r):JMt(e,t,r)}const tzt=/[\?|#].*$/g;function rzt(e){return new URL(`/${e}`,"http://localhost").searchParams}function VCe(e){return e.endsWith("?")?e:e.replace(tzt,"")}function nzt(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}function ozt(e,t){if(nzt(e)||e.startsWith("*"))return e;const r=t||typeof location<"u"&&location.href;return r?decodeURI(new URL(encodeURI(e),r).href):e}function izt(e,t){if(e instanceof RegExp)return e;const r=ozt(e,t);return VCe(r)}function azt(e){return e.replace(/([:a-zA-Z_-]*)(\*{1,2})+/g,(t,r,n)=>{const o="(.*)";return r?r.startsWith(":")?`${r}${n}`:`${r}${o}`:o}).replace(/([^\/])(:)(?=\d+)/,"$1\\$2").replace(/^([^\/]+)(:)(?=\/\/)/,"$1\\$2")}function lzt(e,t,r){const n=izt(t,r),o=typeof n=="string"?azt(n):n,i=qMt(e),a=KMt(o,{decode:decodeURIComponent})(i),l=a&&a.params||{};return{matches:a!==!1,params:l}}const szt=Symbol("kDispatchEvent");function uzt(e){qB.on("connection",async t=>{const r=e.getHandlers(),n=new MessageEvent("connection",{data:t}),o=[];for(const i of r)zB("EventHandler")(i)&&i.predicate({event:n,parsedResult:i.parse({event:n})})&&o.push(i);if(o.length>0){e==null||e.onMockedConnection(t);for(const i of o)i[szt](n)}else{const i=new Request(t.client.url,{headers:{upgrade:"websocket",connection:"upgrade"}});await iCe(i,e.getUnhandledRequestStrategy()).catch(a=>{const l=new Event("error");Object.defineProperty(l,"cause",{enumerable:!0,configurable:!1,value:a}),t.client.socket.dispatchEvent(l)}),e==null||e.onPassthroughConnection(t),t.server.connect()}})}function Lm(e){const t=new Date,r=`${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}:${t.getSeconds().toString().padStart(2,"0")}`;return e!=null&&e.milliseconds?`${r}.${t.getMilliseconds().toString().padStart(3,"0")}`:r}function S5(e){return e instanceof Blob?e.size:e instanceof ArrayBuffer?e.byteLength:new Blob([e]).size}const UCe=24;function YB(e){return e.length<=UCe?e:`${e.slice(0,UCe)}…`}async function E5(e){if(e instanceof Blob){const t=await e.text();return`Blob(${YB(t)})`}if(typeof e=="object"&&"byteLength"in e){const t=new TextDecoder().decode(e);return`ArrayBuffer(${YB(t)})`}return YB(e)}const pg={system:"#3b82f6",outgoing:"#22c55e",incoming:"#ef4444",mocked:"#ff6a33"};function czt(e){const{client:t,server:r}=e;dzt(t),t.addEventListener("message",n=>{pzt(n)}),t.addEventListener("close",n=>{fzt(n)}),t.socket.addEventListener("error",n=>{mzt(n)}),t.send=new Proxy(t.send,{apply(n,o,i){const[a]=i,l=new MessageEvent("message",{data:a});return Object.defineProperties(l,{currentTarget:{enumerable:!0,writable:!1,value:t.socket},target:{enumerable:!0,writable:!1,value:t.socket}}),queueMicrotask(()=>{gzt(l)}),Reflect.apply(n,o,i)}}),r.addEventListener("open",()=>{r.addEventListener("message",n=>{vzt(n)})},{once:!0}),r.send=new Proxy(r.send,{apply(n,o,i){const[a]=i,l=new MessageEvent("message",{data:a});return Object.defineProperties(l,{currentTarget:{enumerable:!0,writable:!1,value:r.socket},target:{enumerable:!0,writable:!1,value:r.socket}}),hzt(l),Reflect.apply(n,o,i)}})}function dzt(e){const t=bC(e.url);console.groupCollapsed(Vr.formatMessage(`${Lm()} %c▶%c ${t}`),`color:${pg.system}`,"color:inherit"),console.log("Client:",e.socket),console.groupEnd()}function fzt(e){const t=e.target,r=bC(t.url);console.groupCollapsed(Vr.formatMessage(`${Lm({milliseconds:!0})} %c■%c ${r}`),`color:${pg.system}`,"color:inherit"),console.log(e),console.groupEnd()}function mzt(e){const t=e.target,r=bC(t.url);console.groupCollapsed(Vr.formatMessage(`${Lm({milliseconds:!0})} %c×%c ${r}`),`color:${pg.system}`,"color:inherit"),console.log(e),console.groupEnd()}async function pzt(e){const t=S5(e.data),r=await E5(e.data),n=e.defaultPrevented?"⇡":"⬆";console.groupCollapsed(Vr.formatMessage(`${Lm({milliseconds:!0})} %c${n}%c ${r} %c${t}%c`),`color:${pg.outgoing}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}async function hzt(e){const t=S5(e.data),r=await E5(e.data);console.groupCollapsed(Vr.formatMessage(`${Lm({milliseconds:!0})} %c⬆%c ${r} %c${t}%c`),`color:${pg.mocked}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}async function gzt(e){const t=S5(e.data),r=await E5(e.data);console.groupCollapsed(Vr.formatMessage(`${Lm({milliseconds:!0})} %c⬇%c ${r} %c${t}%c`),`color:${pg.mocked}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}async function vzt(e){const t=S5(e.data),r=await E5(e.data),n=e.defaultPrevented?"⇣":"⬇";console.groupCollapsed(Vr.formatMessage(`${Lm({milliseconds:!0})} %c${n}%c ${r} %c${t}%c`),`color:${pg.incoming}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}var bzt={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_USED_COMPONENTS_TableEditor:"false",VITE_XMLUI_VERSION:"0.9.74 (built 7/15/2025)"},xzt=/(%?)(%([sdijo]))/g;function yzt(e,t){switch(t){case"s":return e;case"d":case"i":return Number(e);case"j":return JSON.stringify(e);case"o":{if(typeof e=="string")return e;const r=JSON.stringify(e);return r==="{}"||r==="[]"||/^\[object .+?\]$/.test(r)?e:r}}}function TC(e,...t){if(t.length===0)return e;let r=0,n=e.replace(xzt,(o,i,a,l)=>{const s=t[r],u=yzt(s,l);return i?o:(r++,u)});return r<t.length&&(n+=` ${t.slice(r).join(" ")}`),n=n.replace(/%{2,2}/g,"%"),n}var wzt=2;function Czt(e){if(!e.stack)return;const t=e.stack.split(`
|
|
935
|
+
`);return}console.error(e,...t)}function LCe(e){var t;return w5?TMt[e]:(t=globalThis[e])==null?void 0:t.toString()}function wC(e,t){return e!==void 0&&e!==t}function NCe(e){return typeof e>"u"?"undefined":e===null?"null":typeof e=="string"?e:typeof e=="object"?JSON.stringify(e):e.toString()}function $Ce(e){return globalThis[e]||void 0}function $Mt(e,t){globalThis[e]=t}function DMt(e){delete globalThis[e]}var BMt=class{constructor(t){this.symbol=t,this.readyState="INACTIVE",this.emitter=new y5,this.subscriptions=[],this.logger=new HCe(t.description),this.emitter.setMaxListeners(0),this.logger.info("constructing the interceptor...")}checkEnvironment(){return!0}apply(){const t=this.logger.extend("apply");if(t.info("applying the interceptor..."),this.readyState==="APPLIED"){t.info("intercepted already applied!");return}if(!this.checkEnvironment()){t.info("the interceptor cannot be applied in this environment!");return}this.readyState="APPLYING";const n=this.getInstance();if(n){t.info("found a running instance, reusing..."),this.on=(o,i)=>(t.info('proxying the "%s" listener',o),n.emitter.addListener(o,i),this.subscriptions.push(()=>{n.emitter.removeListener(o,i),t.info('removed proxied "%s" listener!',o)}),this),this.readyState="APPLIED";return}t.info("no running instance found, setting up a new instance..."),this.setup(),this.setInstance(),this.readyState="APPLIED"}setup(){}on(t,r){const n=this.logger.extend("on");return this.readyState==="DISPOSING"||this.readyState==="DISPOSED"?(n.info("cannot listen to events, already disposed!"),this):(n.info('adding "%s" event listener:',t,r),this.emitter.on(t,r),this)}once(t,r){return this.emitter.once(t,r),this}off(t,r){return this.emitter.off(t,r),this}removeAllListeners(t){return this.emitter.removeAllListeners(t),this}dispose(){const t=this.logger.extend("dispose");if(this.readyState==="DISPOSED"){t.info("cannot dispose, already disposed!");return}if(t.info("disposing the interceptor..."),this.readyState="DISPOSING",!this.getInstance()){t.info("no interceptors running, skipping dispose...");return}if(this.clearInstance(),t.info("global symbol deleted:",$Ce(this.symbol)),this.subscriptions.length>0){t.info("disposing of %d subscriptions...",this.subscriptions.length);for(const r of this.subscriptions)r();this.subscriptions=[],t.info("disposed of all subscriptions!",this.subscriptions.length)}this.emitter.removeAllListeners(),t.info("destroyed the listener!"),this.readyState="DISPOSED"}getInstance(){var t;const r=$Ce(this.symbol);return this.logger.info("retrieved global instance:",(t=r==null?void 0:r.constructor)==null?void 0:t.name),r}setInstance(){$Mt(this.symbol,this),this.logger.info("set global instance!",this.symbol.description)}clearInstance(){DMt(this.symbol),this.logger.info("cleared global instance!",this.symbol.description)}};function jMt(){return Math.random().toString(16).slice(2)}function MMt(){const e=(t,r)=>{e.state="pending",e.resolve=n=>{if(e.state!=="pending")return;e.result=n;const o=i=>(e.state="fulfilled",i);return t(n instanceof Promise?n:Promise.resolve(n).then(o))},e.reject=n=>{if(e.state==="pending")return queueMicrotask(()=>{e.state="rejected"}),r(e.rejectionReason=n)}};return e}var zMt=(d_e=class extends Promise{constructor(r=null){const n=MMt();super((o,i)=>{n(o,i),r==null||r(n.resolve,n.reject)});Ek(this,y1);Ek(this,Um);_r(this,"resolve");_r(this,"reject");Bz(this,Um,n),this.resolve=lf(this,Um).resolve,this.reject=lf(this,Um).reject}get state(){return lf(this,Um).state}get rejectionReason(){return lf(this,Um).rejectionReason}then(r,n){return Dg(this,y1,mA).call(this,super.then(r,n))}catch(r){return Dg(this,y1,mA).call(this,super.catch(r))}finally(r){return Dg(this,y1,mA).call(this,super.finally(r))}},Um=new WeakMap,y1=new WeakSet,mA=function(r){return Object.defineProperties(r,{resolve:{configurable:!0,value:this.resolve},reject:{configurable:!0,value:this.reject}})},d_e);function Vi(e,t){return Object.defineProperties(t,{target:{value:e,enumerable:!0,writable:!0},currentTarget:{value:e,enumerable:!0,writable:!0}}),t}var a1=Symbol("kCancelable"),Rc=Symbol("kDefaultPrevented"),VB=class extends MessageEvent{constructor(e,t){super(e,t),this[a1]=!!t.cancelable,this[Rc]=!1}get cancelable(){return this[a1]}set cancelable(e){this[a1]=e}get defaultPrevented(){return this[Rc]}set defaultPrevented(e){this[Rc]=e}preventDefault(){this.cancelable&&!this[Rc]&&(this[Rc]=!0)}},C5=class extends Event{constructor(e,t={}){super(e,t),this.code=t.code===void 0?0:t.code,this.reason=t.reason===void 0?"":t.reason,this.wasClean=t.wasClean===void 0?!1:t.wasClean}},DCe=class extends C5{constructor(e,t={}){super(e,t),this[a1]=!!t.cancelable,this[Rc]=!1}get cancelable(){return this[a1]}set cancelable(e){this[a1]=e}get defaultPrevented(){return this[Rc]}set defaultPrevented(e){this[Rc]=e}preventDefault(){this.cancelable&&!this[Rc]&&(this[Rc]=!0)}},CC=Symbol("kEmitter"),k5=Symbol("kBoundListener"),FMt=class{constructor(e,t){this.socket=e,this.transport=t,this.id=jMt(),this.url=new URL(e.url),this[CC]=new EventTarget,this.transport.addEventListener("outgoing",r=>{const n=Vi(this.socket,new VB("message",{data:r.data,origin:r.origin,cancelable:!0}));this[CC].dispatchEvent(n),n.defaultPrevented&&r.preventDefault()}),this.transport.addEventListener("close",r=>{this[CC].dispatchEvent(Vi(this.socket,new C5("close",r)))})}addEventListener(e,t,r){if(!Reflect.has(t,k5)){const n=t.bind(this.socket);Object.defineProperty(t,k5,{value:n,enumerable:!1,configurable:!1})}this[CC].addEventListener(e,Reflect.get(t,k5),r)}removeEventListener(e,t,r){this[CC].removeEventListener(e,Reflect.get(t,k5),r)}send(e){this.transport.send(e)}close(e,t){this.transport.close(e,t)}},BCe="InvalidAccessError: close code out of user configurable range",_5=Symbol("kPassthroughPromise"),jCe=Symbol("kOnSend"),kC=Symbol("kClose"),_C=class extends EventTarget{constructor(e,t){super(),this.CONNECTING=0,this.OPEN=1,this.CLOSING=2,this.CLOSED=3,this._onopen=null,this._onmessage=null,this._onerror=null,this._onclose=null,this.url=e.toString(),this.protocol="",this.extensions="",this.binaryType="blob",this.readyState=this.CONNECTING,this.bufferedAmount=0,this[_5]=new zMt,queueMicrotask(async()=>{await this[_5]||(this.protocol=typeof t=="string"?t:Array.isArray(t)&&t.length>0?t[0]:"",this.readyState===this.CONNECTING&&(this.readyState=this.OPEN,this.dispatchEvent(Vi(this,new Event("open")))))})}set onopen(e){this.removeEventListener("open",this._onopen),this._onopen=e,e!==null&&this.addEventListener("open",e)}get onopen(){return this._onopen}set onmessage(e){this.removeEventListener("message",this._onmessage),this._onmessage=e,e!==null&&this.addEventListener("message",e)}get onmessage(){return this._onmessage}set onerror(e){this.removeEventListener("error",this._onerror),this._onerror=e,e!==null&&this.addEventListener("error",e)}get onerror(){return this._onerror}set onclose(e){this.removeEventListener("close",this._onclose),this._onclose=e,e!==null&&this.addEventListener("close",e)}get onclose(){return this._onclose}send(e){if(this.readyState===this.CONNECTING)throw this.close(),new DOMException("InvalidStateError");this.readyState===this.CLOSING||this.readyState===this.CLOSED||(this.bufferedAmount+=WMt(e),queueMicrotask(()=>{var t;this.bufferedAmount=0,(t=this[jCe])==null||t.call(this,e)}))}close(e=1e3,t){Pu(e,BCe),Pu(e===1e3||e>=3e3&&e<=4999,BCe),this[kC](e,t)}[kC](e=1e3,t,r=!0){this.readyState===this.CLOSING||this.readyState===this.CLOSED||(this.readyState=this.CLOSING,queueMicrotask(()=>{this.readyState=this.CLOSED,this.dispatchEvent(Vi(this,new C5("close",{code:e,reason:t,wasClean:r}))),this._onopen=null,this._onmessage=null,this._onerror=null,this._onclose=null}))}addEventListener(e,t,r){return super.addEventListener(e,t,r)}removeEventListener(e,t,r){return super.removeEventListener(e,t,r)}};_C.CONNECTING=0,_C.OPEN=1,_C.CLOSING=2,_C.CLOSED=3;function WMt(e){return typeof e=="string"?e.length:e instanceof Blob?e.size:e.byteLength}var Pm=Symbol("kEmitter"),T5=Symbol("kBoundListener"),UB=Symbol("kSend"),VMt=class{constructor(e,t,r){this.client=e,this.transport=t,this.createConnection=r,this[Pm]=new EventTarget,this.mockCloseController=new AbortController,this.realCloseController=new AbortController,this.transport.addEventListener("outgoing",n=>{typeof this.realWebSocket>"u"||queueMicrotask(()=>{n.defaultPrevented||this[UB](n.data)})}),this.transport.addEventListener("incoming",this.handleIncomingMessage.bind(this))}get socket(){return Pu(this.realWebSocket,'Cannot access "socket" on the original WebSocket server object: the connection is not open. Did you forget to call `server.connect()`?'),this.realWebSocket}connect(){Pu(!this.realWebSocket||this.realWebSocket.readyState!==WebSocket.OPEN,'Failed to call "connect()" on the original WebSocket instance: the connection already open');const e=this.createConnection();e.binaryType=this.client.binaryType,e.addEventListener("open",t=>{this[Pm].dispatchEvent(Vi(this.realWebSocket,new Event("open",t)))},{once:!0}),e.addEventListener("message",t=>{this.transport.dispatchEvent(Vi(this.realWebSocket,new MessageEvent("incoming",{data:t.data,origin:t.origin})))}),this.client.addEventListener("close",t=>{this.handleMockClose(t)},{signal:this.mockCloseController.signal}),e.addEventListener("close",t=>{this.handleRealClose(t)},{signal:this.realCloseController.signal}),e.addEventListener("error",()=>{const t=Vi(e,new Event("error",{cancelable:!0}));this[Pm].dispatchEvent(t),t.defaultPrevented||this.client.dispatchEvent(Vi(this.client,new Event("error")))}),this.realWebSocket=e}addEventListener(e,t,r){if(!Reflect.has(t,T5)){const n=t.bind(this.client);Object.defineProperty(t,T5,{value:n,enumerable:!1})}this[Pm].addEventListener(e,Reflect.get(t,T5),r)}removeEventListener(e,t,r){this[Pm].removeEventListener(e,Reflect.get(t,T5),r)}send(e){this[UB](e)}[UB](e){const{realWebSocket:t}=this;if(Pu(t,'Failed to call "server.send()" for "%s": the connection is not open. Did you forget to call "server.connect()"?',this.client.url),!(t.readyState===WebSocket.CLOSING||t.readyState===WebSocket.CLOSED)){if(t.readyState===WebSocket.CONNECTING){t.addEventListener("open",()=>{t.send(e)},{once:!0});return}t.send(e)}}close(){const{realWebSocket:e}=this;Pu(e,'Failed to close server connection for "%s": the connection is not open. Did you forget to call "server.connect()"?',this.client.url),this.realCloseController.abort(),!(e.readyState===WebSocket.CLOSING||e.readyState===WebSocket.CLOSED)&&(e.close(),queueMicrotask(()=>{this[Pm].dispatchEvent(Vi(this.realWebSocket,new DCe("close",{code:1e3,cancelable:!0})))}))}handleIncomingMessage(e){const t=Vi(e.target,new VB("message",{data:e.data,origin:e.origin,cancelable:!0}));this[Pm].dispatchEvent(t),t.defaultPrevented||this.client.dispatchEvent(Vi(this.client,new MessageEvent("message",{data:e.data,origin:e.origin})))}handleMockClose(e){this.realWebSocket&&this.realWebSocket.close()}handleRealClose(e){this.mockCloseController.abort();const t=Vi(this.realWebSocket,new DCe("close",{code:e.code,reason:e.reason,wasClean:e.wasClean,cancelable:!0}));this[Pm].dispatchEvent(t),t.defaultPrevented||this.client[kC](e.code,e.reason)}},UMt=class extends EventTarget{constructor(e){super(),this.socket=e,this.socket.addEventListener("close",t=>{this.dispatchEvent(Vi(this.socket,new C5("close",t)))}),this.socket[jCe]=t=>{this.dispatchEvent(Vi(this.socket,new VB("outgoing",{data:t,origin:this.socket.url,cancelable:!0})))}}addEventListener(e,t,r){return super.addEventListener(e,t,r)}dispatchEvent(e){return super.dispatchEvent(e)}send(e){queueMicrotask(()=>{if(this.socket.readyState===this.socket.CLOSING||this.socket.readyState===this.socket.CLOSED)return;const t=()=>{this.socket.dispatchEvent(Vi(this.socket,new MessageEvent("message",{data:e,origin:this.socket.url})))};this.socket.readyState===this.socket.CONNECTING?this.socket.addEventListener("open",()=>{t()},{once:!0}):t()})}close(e,t){this.socket[kC](e,t)}},MCe=class extends BMt{constructor(){super(MCe.symbol)}checkEnvironment(){return _Mt("WebSocket")}setup(){const e=Object.getOwnPropertyDescriptor(globalThis,"WebSocket"),t=new Proxy(globalThis.WebSocket,{construct:(r,n,o)=>{const[i,a]=n,l=()=>Reflect.construct(r,n,o),s=new _C(i,a),u=new UMt(s);return queueMicrotask(()=>{try{const c=new VMt(s,u,l);this.emitter.emit("connection",{client:new FMt(s,u),server:c,info:{protocols:a}})?s[_5].resolve(!1):(s[_5].resolve(!0),c.connect(),c.addEventListener("open",()=>{s.dispatchEvent(Vi(s,new Event("open"))),c.realWebSocket&&(s.protocol=c.realWebSocket.protocol)}))}catch(c){c instanceof Error&&(s.dispatchEvent(new Event("error")),s.readyState!==WebSocket.CLOSING&&s.readyState!==WebSocket.CLOSED&&s[kC](1011,c.message,!1),console.error(c))}}),s}});Object.defineProperty(globalThis,"WebSocket",{value:t,configurable:!0}),this.subscriptions.push(()=>{Object.defineProperty(globalThis,"WebSocket",e)})}},zCe=MCe;zCe.symbol=Symbol("websocket");const qB=new zCe;new TextEncoder;var l1=class extends Response{static isConfigurableStatusCode(t){return t>=200&&t<=599}static isRedirectResponse(t){return l1.STATUS_CODES_WITH_REDIRECT.includes(t)}static isResponseWithBody(t){return!l1.STATUS_CODES_WITHOUT_BODY.includes(t)}static setUrl(t,r){t&&r.url==""&&Object.defineProperty(r,"url",{value:t,enumerable:!0,configurable:!0,writable:!1})}static parseRawHeaders(t){const r=new Headers;for(let n=0;n<t.length;n+=2)r.append(t[n],t[n+1]);return r}constructor(t,r={}){var n;const o=(n=r.status)!=null?n:200,i=l1.isConfigurableStatusCode(o)?o:200,a=l1.isResponseWithBody(o)?t:null;if(super(a,{...r,status:i}),o!==i){const l=Object.getOwnPropertySymbols(this).find(s=>s.description==="state");if(l){const s=Reflect.get(this,l);Reflect.set(s,"status",o)}else Object.defineProperty(this,"status",{value:o,enumerable:!0,configurable:!0,writable:!1})}l1.setUrl(r.url,this)}},GB=l1;GB.STATUS_CODES_WITHOUT_BODY=[101,103,204,205,304],GB.STATUS_CODES_WITH_REDIRECT=[301,302,303,307,308];function qMt(e,t=!0){return[t&&e.origin,e.pathname].filter(Boolean).join("")}function GMt(e){for(var t=[],r=0;r<e.length;){var n=e[r];if(n==="*"||n==="+"||n==="?"){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if(n==="\\"){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if(n==="{"){t.push({type:"OPEN",index:r,value:e[r++]});continue}if(n==="}"){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(n===":"){for(var o="",i=r+1;i<e.length;){var a=e.charCodeAt(i);if(a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a===95){o+=e[i++];continue}break}if(!o)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:o}),r=i;continue}if(n==="("){var l=1,s="",i=r+1;if(e[i]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(i));for(;i<e.length;){if(e[i]==="\\"){s+=e[i++]+e[i++];continue}if(e[i]===")"){if(l--,l===0){i++;break}}else if(e[i]==="("&&(l++,e[i+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(i));s+=e[i++]}if(l)throw new TypeError("Unbalanced pattern at ".concat(r));if(!s)throw new TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:s}),r=i;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}function YMt(e,t){t===void 0&&(t={});for(var r=GMt(e),n=t.prefixes,o=n===void 0?"./":n,i=t.delimiter,a=i===void 0?"/#?":i,l=[],s=0,u=0,c="",d=function(I){if(u<r.length&&r[u].type===I)return r[u++].value},f=function(I){var H=d(I);if(H!==void 0)return H;var P=r[u],L=P.type,B=P.index;throw new TypeError("Unexpected ".concat(L," at ").concat(B,", expected ").concat(I))},p=function(){for(var I="",H;H=d("CHAR")||d("ESCAPED_CHAR");)I+=H;return I},g=function(I){for(var H=0,P=a;H<P.length;H++){var L=P[H];if(I.indexOf(L)>-1)return!0}return!1},v=function(I){var H=l[l.length-1],P=I||(H&&typeof H=="string"?H:"");if(H&&!P)throw new TypeError('Must have text between two parameters, missing text after "'.concat(H.name,'"'));return!P||g(P)?"[^".concat(Hm(a),"]+?"):"(?:(?!".concat(Hm(P),")[^").concat(Hm(a),"])+?")};u<r.length;){var b=d("CHAR"),y=d("NAME"),w=d("PATTERN");if(y||w){var k=b||"";o.indexOf(k)===-1&&(c+=k,k=""),c&&(l.push(c),c=""),l.push({name:y||s++,prefix:k,suffix:"",pattern:w||v(k),modifier:d("MODIFIER")||""});continue}var E=b||d("ESCAPED_CHAR");if(E){c+=E;continue}c&&(l.push(c),c="");var _=d("OPEN");if(_){var k=p(),S=d("NAME")||"",O=d("PATTERN")||"",A=p();f("CLOSE"),l.push({name:S||(O?s++:""),pattern:S&&!O?v(k):O,prefix:k,suffix:A,modifier:d("MODIFIER")||""});continue}f("END")}return l}function KMt(e,t){var r=[],n=WCe(e,r,t);return XMt(n,r,t)}function XMt(e,t,r){r===void 0&&(r={});var n=r.decode,o=n===void 0?function(i){return i}:n;return function(i){var a=e.exec(i);if(!a)return!1;for(var l=a[0],s=a.index,u=Object.create(null),c=function(f){if(a[f]===void 0)return"continue";var p=t[f-1];p.modifier==="*"||p.modifier==="+"?u[p.name]=a[f].split(p.prefix+p.suffix).map(function(g){return o(g,p)}):u[p.name]=o(a[f],p)},d=1;d<a.length;d++)c(d);return{path:l,index:s,params:u}}}function Hm(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function FCe(e){return e&&e.sensitive?"":"i"}function QMt(e,t){if(!t)return e;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,o=r.exec(e.source);o;)t.push({name:o[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),o=r.exec(e.source);return e}function ZMt(e,t,r){var n=e.map(function(o){return WCe(o,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),FCe(r))}function JMt(e,t,r){return ezt(YMt(e,r),t,r)}function ezt(e,t,r){r===void 0&&(r={});for(var n=r.strict,o=n===void 0?!1:n,i=r.start,a=i===void 0?!0:i,l=r.end,s=l===void 0?!0:l,u=r.encode,c=u===void 0?function(H){return H}:u,d=r.delimiter,f=d===void 0?"/#?":d,p=r.endsWith,g=p===void 0?"":p,v="[".concat(Hm(g),"]|$"),b="[".concat(Hm(f),"]"),y=a?"^":"",w=0,k=e;w<k.length;w++){var E=k[w];if(typeof E=="string")y+=Hm(c(E));else{var _=Hm(c(E.prefix)),S=Hm(c(E.suffix));if(E.pattern)if(t&&t.push(E),_||S)if(E.modifier==="+"||E.modifier==="*"){var O=E.modifier==="*"?"?":"";y+="(?:".concat(_,"((?:").concat(E.pattern,")(?:").concat(S).concat(_,"(?:").concat(E.pattern,"))*)").concat(S,")").concat(O)}else y+="(?:".concat(_,"(").concat(E.pattern,")").concat(S,")").concat(E.modifier);else{if(E.modifier==="+"||E.modifier==="*")throw new TypeError('Can not repeat "'.concat(E.name,'" without a prefix and suffix'));y+="(".concat(E.pattern,")").concat(E.modifier)}else y+="(?:".concat(_).concat(S,")").concat(E.modifier)}}if(s)o||(y+="".concat(b,"?")),y+=r.endsWith?"(?=".concat(v,")"):"$";else{var A=e[e.length-1],I=typeof A=="string"?b.indexOf(A[A.length-1])>-1:A===void 0;o||(y+="(?:".concat(b,"(?=").concat(v,"))?")),I||(y+="(?=".concat(b,"|").concat(v,")"))}return new RegExp(y,FCe(r))}function WCe(e,t,r){return e instanceof RegExp?QMt(e,t):Array.isArray(e)?ZMt(e,t,r):JMt(e,t,r)}const tzt=/[\?|#].*$/g;function rzt(e){return new URL(`/${e}`,"http://localhost").searchParams}function VCe(e){return e.endsWith("?")?e:e.replace(tzt,"")}function nzt(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}function ozt(e,t){if(nzt(e)||e.startsWith("*"))return e;const r=t||typeof location<"u"&&location.href;return r?decodeURI(new URL(encodeURI(e),r).href):e}function izt(e,t){if(e instanceof RegExp)return e;const r=ozt(e,t);return VCe(r)}function azt(e){return e.replace(/([:a-zA-Z_-]*)(\*{1,2})+/g,(t,r,n)=>{const o="(.*)";return r?r.startsWith(":")?`${r}${n}`:`${r}${o}`:o}).replace(/([^\/])(:)(?=\d+)/,"$1\\$2").replace(/^([^\/]+)(:)(?=\/\/)/,"$1\\$2")}function lzt(e,t,r){const n=izt(t,r),o=typeof n=="string"?azt(n):n,i=qMt(e),a=KMt(o,{decode:decodeURIComponent})(i),l=a&&a.params||{};return{matches:a!==!1,params:l}}const szt=Symbol("kDispatchEvent");function uzt(e){qB.on("connection",async t=>{const r=e.getHandlers(),n=new MessageEvent("connection",{data:t}),o=[];for(const i of r)zB("EventHandler")(i)&&i.predicate({event:n,parsedResult:i.parse({event:n})})&&o.push(i);if(o.length>0){e==null||e.onMockedConnection(t);for(const i of o)i[szt](n)}else{const i=new Request(t.client.url,{headers:{upgrade:"websocket",connection:"upgrade"}});await iCe(i,e.getUnhandledRequestStrategy()).catch(a=>{const l=new Event("error");Object.defineProperty(l,"cause",{enumerable:!0,configurable:!1,value:a}),t.client.socket.dispatchEvent(l)}),e==null||e.onPassthroughConnection(t),t.server.connect()}})}function Lm(e){const t=new Date,r=`${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}:${t.getSeconds().toString().padStart(2,"0")}`;return e!=null&&e.milliseconds?`${r}.${t.getMilliseconds().toString().padStart(3,"0")}`:r}function S5(e){return e instanceof Blob?e.size:e instanceof ArrayBuffer?e.byteLength:new Blob([e]).size}const UCe=24;function YB(e){return e.length<=UCe?e:`${e.slice(0,UCe)}…`}async function E5(e){if(e instanceof Blob){const t=await e.text();return`Blob(${YB(t)})`}if(typeof e=="object"&&"byteLength"in e){const t=new TextDecoder().decode(e);return`ArrayBuffer(${YB(t)})`}return YB(e)}const pg={system:"#3b82f6",outgoing:"#22c55e",incoming:"#ef4444",mocked:"#ff6a33"};function czt(e){const{client:t,server:r}=e;dzt(t),t.addEventListener("message",n=>{pzt(n)}),t.addEventListener("close",n=>{fzt(n)}),t.socket.addEventListener("error",n=>{mzt(n)}),t.send=new Proxy(t.send,{apply(n,o,i){const[a]=i,l=new MessageEvent("message",{data:a});return Object.defineProperties(l,{currentTarget:{enumerable:!0,writable:!1,value:t.socket},target:{enumerable:!0,writable:!1,value:t.socket}}),queueMicrotask(()=>{gzt(l)}),Reflect.apply(n,o,i)}}),r.addEventListener("open",()=>{r.addEventListener("message",n=>{vzt(n)})},{once:!0}),r.send=new Proxy(r.send,{apply(n,o,i){const[a]=i,l=new MessageEvent("message",{data:a});return Object.defineProperties(l,{currentTarget:{enumerable:!0,writable:!1,value:r.socket},target:{enumerable:!0,writable:!1,value:r.socket}}),hzt(l),Reflect.apply(n,o,i)}})}function dzt(e){const t=bC(e.url);console.groupCollapsed(Vr.formatMessage(`${Lm()} %c▶%c ${t}`),`color:${pg.system}`,"color:inherit"),console.log("Client:",e.socket),console.groupEnd()}function fzt(e){const t=e.target,r=bC(t.url);console.groupCollapsed(Vr.formatMessage(`${Lm({milliseconds:!0})} %c■%c ${r}`),`color:${pg.system}`,"color:inherit"),console.log(e),console.groupEnd()}function mzt(e){const t=e.target,r=bC(t.url);console.groupCollapsed(Vr.formatMessage(`${Lm({milliseconds:!0})} %c×%c ${r}`),`color:${pg.system}`,"color:inherit"),console.log(e),console.groupEnd()}async function pzt(e){const t=S5(e.data),r=await E5(e.data),n=e.defaultPrevented?"⇡":"⬆";console.groupCollapsed(Vr.formatMessage(`${Lm({milliseconds:!0})} %c${n}%c ${r} %c${t}%c`),`color:${pg.outgoing}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}async function hzt(e){const t=S5(e.data),r=await E5(e.data);console.groupCollapsed(Vr.formatMessage(`${Lm({milliseconds:!0})} %c⬆%c ${r} %c${t}%c`),`color:${pg.mocked}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}async function gzt(e){const t=S5(e.data),r=await E5(e.data);console.groupCollapsed(Vr.formatMessage(`${Lm({milliseconds:!0})} %c⬇%c ${r} %c${t}%c`),`color:${pg.mocked}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}async function vzt(e){const t=S5(e.data),r=await E5(e.data),n=e.defaultPrevented?"⇣":"⬇";console.groupCollapsed(Vr.formatMessage(`${Lm({milliseconds:!0})} %c${n}%c ${r} %c${t}%c`),`color:${pg.incoming}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}var bzt={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_USED_COMPONENTS_TableEditor:"false",VITE_XMLUI_VERSION:"0.9.75 (built 7/16/2025)"},xzt=/(%?)(%([sdijo]))/g;function yzt(e,t){switch(t){case"s":return e;case"d":case"i":return Number(e);case"j":return JSON.stringify(e);case"o":{if(typeof e=="string")return e;const r=JSON.stringify(e);return r==="{}"||r==="[]"||/^\[object .+?\]$/.test(r)?e:r}}}function TC(e,...t){if(t.length===0)return e;let r=0,n=e.replace(xzt,(o,i,a,l)=>{const s=t[r],u=yzt(s,l);return i?o:(r++,u)});return r<t.length&&(n+=` ${t.slice(r).join(" ")}`),n=n.replace(/%{2,2}/g,"%"),n}var wzt=2;function Czt(e){if(!e.stack)return;const t=e.stack.split(`
|
|
936
936
|
`);t.splice(1,wzt),e.stack=t.join(`
|
|
937
937
|
`)}var kzt=class extends Error{constructor(e,...t){super(e),this.message=e,this.name="Invariant Violation",this.message=TC(e,...t),Czt(this)}},Nm=(e,t,...r)=>{if(!e)throw new kzt(t,...r)};Nm.as=(e,t,r,...n)=>{if(!t){const o=n.length===0?r:TC(r,...n);let i;try{i=Reflect.construct(e,[o])}catch{i=e(o)}throw i}};function KB(){if(typeof navigator<"u"&&navigator.product==="ReactNative")return!0;if(typeof process<"u"){const e=process.type;return e==="renderer"||e==="worker"?!1:!!(process.versions&&process.versions.node)}return!1}var XB=async e=>{try{return{error:null,data:await e().catch(r=>{throw r})}}catch(t){return{error:t,data:null}}};function _zt(e){return new URL(e,location.href).href}function QB(e,t,r){return[e.active,e.installing,e.waiting].filter(a=>a!=null).find(a=>r(a.scriptURL,t))||null}var Tzt=async(e,t={},r)=>{const n=_zt(e),o=await navigator.serviceWorker.getRegistrations().then(l=>l.filter(s=>QB(s,n,r)));!navigator.serviceWorker.controller&&o.length>0&&location.reload();const[i]=o;if(i)return i.update(),[QB(i,n,r),i];const a=await XB(async()=>{const l=await navigator.serviceWorker.register(e,t);return[QB(l,n,r),l]});if(a.error){if(a.error.message.includes("(404)")){const s=new URL((t==null?void 0:t.scope)||"/",location.href);throw new Error(Vr.formatMessage(`Failed to register a Service Worker for scope ('${s.href}') with script ('${n}'): Service Worker script does not exist at the given path.
|
|
938
938
|
|