xmlui 0.9.86 → 0.9.87
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/{index-Bm0sNu3Q.mjs → index-D0LUEbCn.mjs} +16 -10
- package/dist/lib/{initMock-BJWFwa64.mjs → initMock-BW2s2XBp.mjs} +1 -1
- 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/{collectedComponentMetadata-BLxDndi5.mjs → collectedComponentMetadata-BoCXx9Ig.mjs} +16 -10
- package/dist/metadata/{initMock-DRxSMFJz.mjs → initMock-CMaV1kVp.mjs} +1 -1
- package/dist/metadata/xmlui-metadata.mjs +1 -1
- package/dist/metadata/xmlui-metadata.umd.js +2 -2
- package/dist/scripts/package.json +1 -1
- package/dist/scripts/src/components/Markdown/parse-binding-expr.js +27 -15
- package/dist/standalone/xmlui-standalone.umd.js +6 -6
- 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 HIe(e){for(var t="",r=0,n,o=0;o<e.length;r>=65536?o+=2:o++)r=Nx(e,o),n=Di[r],!n&&Hx(r)?(t+=e[o],r>=65536&&(t+=e[o+1])):t+=n||_Ie(r);return t}function NIe(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)),(sd(e,t,l,!1,!1)||typeof l>"u"&&sd(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=o,e.dump="["+n+"]"}function UU(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)),(sd(e,t+1,s,!0,!0,!1,!0)||typeof s>"u"&&sd(e,t+1,null,!0,!0,!1,!0))&&((!n||o!=="")&&(o+=tR(e,t)),e.dump&&Px===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump);e.tag=i,e.dump=o||"[]"}function $Ie(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)),sd(e,t,s,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),sd(e,t,u,!1,!1)&&(c+=e.dump,n+=c));e.tag=o,e.dump="{"+n+"}"}function DIe(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 ia("sortKeys must be a boolean or a function");for(l=0,s=a.length;l<s;l+=1)f="",(!n||o!=="")&&(f+=tR(e,t)),u=a[l],c=r[u],e.replacer&&(c=e.replacer.call(r,u,c)),sd(e,t+1,u,!0,!0,!0)&&(d=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,d&&(e.dump&&Px===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,d&&(f+=tR(e,t)),sd(e,t+1,c,!0,d)&&(e.dump&&Px===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,o+=f));e.tag=i,e.dump=o||"{}"}function qU(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,AU.call(l.represent)==="[object Function]")n=l.represent(t,s);else if(OU.call(l.represent,s))n=l.represent[s](t,s);else throw new ia("!<"+l.tag+'> tag resolver accepts not "'+s+'" style');e.dump=n}return!0}return!1}function sd(e,t,r,n,o,i,a){e.tag=null,e.dump=r,qU(e,r,!1)||qU(e,r,!0);var l=AU.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?(DIe(e,t,e.dump,o),f&&(e.dump="&ref_"+d+e.dump)):($Ie(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?UU(e,t-1,e.dump,o):UU(e,t,e.dump,o),f&&(e.dump="&ref_"+d+e.dump)):(NIe(e,t,e.dump),f&&(e.dump="&ref_"+d+" "+e.dump));else if(l==="[object String]")e.tag!=="?"&&PIe(e,e.dump,t,i,s);else{if(l==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new ia("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 BIe(e,t){var r=[],n=[],o,i;for(nR(e,r,n),o=0,i=n.length;o<i;o+=1)t.duplicates.push(r[n[o]]);t.usedDuplicates=new Array(i)}function nR(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)nR(e[o],t,r);else for(n=Object.keys(e),o=0,i=n.length;o<i;o+=1)nR(e[n[o]],t,r)}function jIe(e,t){t=t||{};var r=new EIe(t);r.noRefs||BIe(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),sd(r,0,n,!0,!0)?r.dump+`
|
|
72
|
-
`:""}var MIe=jIe,zIe={dump:MIe};function oR(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 FIe=Si,WIe=YV,VIe=ZV,UIe=nU,qIe=oU,GIe=KI,YIe=EU.load,KIe=EU.loadAll,XIe=zIe.dump,QIe=ia,ZIe={binary:uU,float:rU,map:QV,null:JV,pairs:dU,set:fU,timestamp:lU,bool:eU,int:tU,merge:sU,omap:cU,seq:XV,str:KV},JIe=oR("safeLoad","load"),eRe=oR("safeLoadAll","loadAll"),tRe=oR("safeDump","dump"),GU={Type:FIe,Schema:WIe,FAILSAFE_SCHEMA:VIe,JSON_SCHEMA:UIe,CORE_SCHEMA:qIe,DEFAULT_SCHEMA:GIe,load:YIe,loadAll:KIe,dump:XIe,YAMLException:QIe,types:ZIe,safeLoad:JIe,safeLoadAll:eRe,safeDump:tRe};class $x{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 Dx=typeof window>"u"||"Deno"in window;function os(){}function rRe(e,t){return typeof e=="function"?e(t):e}function iR(e){return typeof e=="number"&&e>=0&&e!==1/0}function YU(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Cv(e,t,r){return WT(e)?typeof t=="function"?{...r,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Rf(e,t,r){return WT(e)?[{...t,queryKey:e},r]:[e||{},t]}function KU(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:a,stale:l}=e;if(WT(a)){if(n){if(t.queryHash!==aR(a,t.options))return!1}else if(!FT(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 XU(e,t){const{exact:r,fetching:n,predicate:o,mutationKey:i}=e;if(WT(i)){if(!t.options.mutationKey)return!1;if(r){if(jp(t.options.mutationKey)!==jp(i))return!1}else if(!FT(t.options.mutationKey,i))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||o&&!o(t))}function aR(e,t){return((t==null?void 0:t.queryKeyHashFn)||jp)(e)}function jp(e){return JSON.stringify(e,(t,r)=>sR(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function FT(e,t){return QU(e,t)}function QU(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!QU(e[r],t[r])):!1}function ZU(e,t){if(e===t)return e;const r=JU(e)&&JU(t);if(r||sR(e)&&sR(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]=ZU(e[u],t[u]),a[u]===e[u]&&l++}return n===i&&l===n?e:a}return t}function lR(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function JU(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function sR(e){if(!eq(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const r=t.prototype;return!(!eq(r)||!r.hasOwnProperty("isPrototypeOf"))}function eq(e){return Object.prototype.toString.call(e)==="[object Object]"}function WT(e){return Array.isArray(e)}function tq(e){return new Promise(t=>{setTimeout(t,e)})}function rq(e){tq(0).then(e)}function nRe(){if(typeof AbortController=="function")return new AbortController}function uR(e,t,r){return r.isDataEqual!=null&&r.isDataEqual(e,t)?e:typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?ZU(e,t):t}class oRe extends $x{constructor(){super(),this.setup=t=>{if(!Dx&&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 VT=new oRe,nq=["online","offline"];class iRe extends $x{constructor(){super(),this.setup=t=>{if(!Dx&&window.addEventListener){const r=()=>t();return nq.forEach(n=>{window.addEventListener(n,r,!1)}),()=>{nq.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 UT=new iRe;function aRe(e){return Math.min(1e3*2**e,3e4)}function qT(e){return(e??"online")==="online"?UT.isOnline():!0}class oq{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function GT(e){return e instanceof oq}function iq(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 oq(b)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!VT.isFocused()||e.networkMode!=="always"&&!UT.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))},h=()=>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,T=(k=e.retryDelay)!=null?k:aRe,S=typeof T=="function"?T(r,y):T,A=E===!0||typeof E=="number"&&r<E||typeof E=="function"&&E(r,y);if(t||!A){p(y);return}r++,e.onFail==null||e.onFail(r,y),tq(S).then(()=>{if(d())return h()}).then(()=>{t?p(y):v()})})};return qT(e.networkMode)?v():h().then(v),{promise:l,cancel:s,continue:()=>(o==null?void 0:o())?l:Promise.resolve(),cancelRetry:u,continueRetry:c}}const cR=console;function lRe(){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):rq(()=>{r(c)})},a=c=>(...d)=>{i(()=>{c(...d)})},l=()=>{const c=e;e=[],c.length&&rq(()=>{n(()=>{c.forEach(d=>{r(d)})})})};return{batch:o,batchCalls:a,schedule:i,setNotifyFunction:c=>{r=c},setBatchNotifyFunction:c=>{n=c}}}const ko=lRe();class aq{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),iR(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(Dx?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class sRe extends aq{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||cR,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||uRe(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=uR(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(os).catch(os):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||!YU(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(h=>h.options.queryFn);p&&this.setOptions(p.options)}const a=nRe(),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(GT(p)&&p.silent||this.dispatch({type:"error",error:p}),!GT(p)){var h,v,b,y;(h=(v=this.cache.config).onError)==null||h.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=iq({fn:c.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:p=>{var h,v,b,y;if(typeof p>"u"){f(new Error(this.queryHash+" data is undefined"));return}this.setData(p),(h=(v=this.cache.config).onSuccess)==null||h.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,h)=>{this.dispatch({type:"failed",failureCount:p,error:h})},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:qT(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 GT(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),ko.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function uRe(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 cRe extends $x{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:aR(i,r);let l=this.get(a);return l||(l=new sRe({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(){ko.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,r){const[n]=Rf(t,r);return typeof n.exact>"u"&&(n.exact=!0),this.queries.find(o=>KU(n,o))}findAll(t,r){const[n]=Rf(t,r);return Object.keys(n).length>0?this.queries.filter(o=>KU(n,o)):this.queries}notify(t){ko.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}onFocus(){ko.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){ko.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}var dRe={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.86 (built 7/25/2025)"};class fRe extends aq{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||cR,this.observers=[],this.state=t.state||mRe(),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 A;return this.retryer=iq({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(O,I)=>{this.dispatch({type:"failed",failureCount:O,error:I})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(A=this.options.retry)!=null?A: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,h;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 O=await((p=(h=this.options).onMutate)==null?void 0:p.call(h,this.state.variables));O!==this.state.context&&this.dispatch({type:"loading",context:O,variables:this.state.variables})}const A=await t();return await((n=(o=this.mutationCache.config).onSuccess)==null?void 0:n.call(o,A,this.state.variables,this.state.context,this)),await((i=(a=this.options).onSuccess)==null?void 0:i.call(a,A,this.state.variables,this.state.context)),await((l=(s=this.mutationCache.config).onSettled)==null?void 0:l.call(s,A,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,A,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:A}),A}catch(A){try{var v,b,y,w,k,E,T,S;throw await((v=(b=this.mutationCache.config).onError)==null?void 0:v.call(b,A,this.state.variables,this.state.context,this)),dRe.NODE_ENV,await((y=(w=this.options).onError)==null?void 0:y.call(w,A,this.state.variables,this.state.context)),await((k=(E=this.mutationCache.config).onSettled)==null?void 0:k.call(E,void 0,A,this.state.variables,this.state.context,this)),await((T=(S=this.options).onSettled)==null?void 0:T.call(S,void 0,A,this.state.variables,this.state.context)),A}finally{this.dispatch({type:"error",error:A})}}}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:!qT(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),ko.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function mRe(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class pRe extends $x{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,r,n){const o=new fRe({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(){ko.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=>XU(t,r))}findAll(t){return this.mutations.filter(r=>XU(t,r))}notify(t){ko.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 ko.batch(()=>r.reduce((n,o)=>n.then(()=>o.continue().catch(os)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function dR(){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 h=p,v=!1;const b=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>{var A;if((A=e.signal)!=null&&A.aborted)v=!0;else{var O;(O=e.signal)==null||O.addEventListener("abort",()=>{v=!0})}return e.signal}})},y=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),w=(S,A,O,I)=>(h=I?[A,...h]:[...h,A],I?[O,...S]:[...S,O]),k=(S,A,O,I)=>{if(v)return Promise.reject("Cancelled");if(typeof O>"u"&&!A&&S.length)return Promise.resolve(S);const L={queryKey:e.queryKey,pageParam:O,meta:e.options.meta};b(L);const P=y(L);return Promise.resolve(P).then(j=>w(S,O,j,I))};let E;if(!f.length)E=k([]);else if(c){const S=typeof u<"u",A=S?u:fR(e.options,f);E=k(f,S,A)}else if(d){const S=typeof u<"u",A=S?u:lq(e.options,f);E=k(f,S,A,!0)}else{h=[];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 O=1;O<f.length;O++)E=E.then(I=>{if(l&&f[O]?l(f[O],O,f):!0){const P=S?p[O]:fR(e.options,I);return k(I,S,P)}return Promise.resolve(w(I,p[O],f[O]))})}return E.then(S=>({pages:S,pageParams:h}))}}}}function fR(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function lq(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function hRe(e,t){if(e.getNextPageParam&&Array.isArray(t)){const r=fR(e,t);return typeof r<"u"&&r!==null&&r!==!1}}function gRe(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const r=lq(e,t);return typeof r<"u"&&r!==null&&r!==!1}}class vRe{constructor(t={}){this.queryCache=t.queryCache||new cRe,this.mutationCache=t.mutationCache||new pRe,this.logger=t.logger||cR,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=VT.subscribe(()=>{VT.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=UT.subscribe(()=>{UT.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]=Rf(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=Cv(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=rRe(r,i);if(typeof a>"u")return;const l=Cv(t),s=this.defaultQueryOptions(l);return this.queryCache.build(this,s).setData(a,{...n,manual:!0})}setQueriesData(t,r,n){return ko.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]=Rf(t,r),o=this.queryCache;ko.batch(()=>{o.findAll(n).forEach(i=>{o.remove(i)})})}resetQueries(t,r,n){const[o,i]=Rf(t,r,n),a=this.queryCache,l={type:"active",...o};return ko.batch(()=>(a.findAll(o).forEach(s=>{s.reset()}),this.refetchQueries(l,i)))}cancelQueries(t,r,n){const[o,i={}]=Rf(t,r,n);typeof i.revert>"u"&&(i.revert=!0);const a=ko.batch(()=>this.queryCache.findAll(o).map(l=>l.cancel(i)));return Promise.all(a).then(os).catch(os)}invalidateQueries(t,r,n){const[o,i]=Rf(t,r,n);return ko.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]=Rf(t,r,n),a=ko.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(os);return i!=null&&i.throwOnError||(l=l.catch(os)),l}fetchQuery(t,r,n){const o=Cv(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(os).catch(os)}fetchInfiniteQuery(t,r,n){const o=Cv(t,r,n);return o.behavior=dR(),this.fetchQuery(o)}prefetchInfiniteQuery(t,r,n){return this.fetchInfiniteQuery(t,r,n).then(os).catch(os)}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=>jp(t)===jp(o.queryKey));n?n.defaultOptions=r:this.queryDefaults.push({queryKey:t,defaultOptions:r})}getQueryDefaults(t){if(!t)return;const r=this.queryDefaults.find(n=>FT(t,n.queryKey));return r==null?void 0:r.defaultOptions}setMutationDefaults(t,r){const n=this.mutationDefaults.find(o=>jp(t)===jp(o.mutationKey));n?n.defaultOptions=r:this.mutationDefaults.push({mutationKey:t,defaultOptions:r})}getMutationDefaults(t){if(!t)return;const r=this.mutationDefaults.find(n=>FT(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=aR(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 sq extends $x{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),uq(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return mR(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return mR(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),lR(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&&cq(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 xRe(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(os)),r}updateStaleTimeout(){if(this.clearStaleTimeout(),Dx||this.currentResult.isStale||!iR(this.options.staleTime))return;const r=YU(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,!(Dx||this.options.enabled===!1||!iR(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||VT.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:h,fetchStatus:v,status:b}=d,y=!1,w=!1,k;if(r._optimisticResults){const O=this.hasListeners(),I=!O&&uq(t,r),L=O&&cq(t,n,r,o);(I||L)&&(v=qT(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=uR(i==null?void 0:i.data,k,r),this.selectResult=k,this.selectError=null}catch(O){this.selectError=O}else k=d.data;if(typeof r.placeholderData<"u"&&typeof k>"u"&&b==="loading"){let O;if(i!=null&&i.isPlaceholderData&&r.placeholderData===(l==null?void 0:l.placeholderData))O=i.data;else if(O=typeof r.placeholderData=="function"?r.placeholderData():r.placeholderData,r.select&&typeof O<"u")try{O=r.select(O),this.selectError=null}catch(I){this.selectError=I}typeof O<"u"&&(b="success",k=uR(i==null?void 0:i.data,O,r),w=!0)}this.selectError&&(p=this.selectError,k=this.selectResult,h=Date.now(),b="error");const E=v==="fetching",T=b==="loading",S=b==="error";return{status:b,fetchStatus:v,isLoading:T,isSuccess:b==="success",isError:S,isInitialLoading:T&&E,data:k,dataUpdatedAt:f,error:p,errorUpdatedAt:h,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&&!T,isLoadingError:S&&d.dataUpdatedAt===0,isPaused:v==="paused",isPlaceholderData:w,isPreviousData:y,isRefetchError:S&&d.dataUpdatedAt!==0,isStale:pR(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,lR(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"&&!GT(t.error)&&(r.onError=!0),this.updateResult(r),this.hasListeners()&&this.updateTimers()}notify(t){ko.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 bRe(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function uq(e,t){return bRe(e,t)||e.state.dataUpdatedAt>0&&mR(e,t,t.refetchOnMount)}function mR(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&pR(e,t)}return!1}function cq(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&pR(e,r)}function pR(e,t){return e.isStaleByTime(t.staleTime)}function xRe(e,t,r){return r.keepPreviousData?!1:r.placeholderData!==void 0?t.isPlaceholderData:!lR(e.getCurrentResult(),t)}class yRe extends sq{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:dR()},r)}getOptimisticResult(t){return t.behavior=dR(),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",h=d&&((i=u.fetchMeta)==null||(a=i.fetchMore)==null?void 0:a.direction)==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:hRe(r,(l=u.data)==null?void 0:l.pages),hasPreviousPage:gRe(r,(s=u.data)==null?void 0:s.pages),isFetchingNextPage:p,isFetchingPreviousPage:h,isRefetching:f&&!p&&!h}}}var dq={exports:{}},hR={};/**
|
|
72
|
+
`:""}var MIe=jIe,zIe={dump:MIe};function oR(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 FIe=Si,WIe=YV,VIe=ZV,UIe=nU,qIe=oU,GIe=KI,YIe=EU.load,KIe=EU.loadAll,XIe=zIe.dump,QIe=ia,ZIe={binary:uU,float:rU,map:QV,null:JV,pairs:dU,set:fU,timestamp:lU,bool:eU,int:tU,merge:sU,omap:cU,seq:XV,str:KV},JIe=oR("safeLoad","load"),eRe=oR("safeLoadAll","loadAll"),tRe=oR("safeDump","dump"),GU={Type:FIe,Schema:WIe,FAILSAFE_SCHEMA:VIe,JSON_SCHEMA:UIe,CORE_SCHEMA:qIe,DEFAULT_SCHEMA:GIe,load:YIe,loadAll:KIe,dump:XIe,YAMLException:QIe,types:ZIe,safeLoad:JIe,safeLoadAll:eRe,safeDump:tRe};class $x{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 Dx=typeof window>"u"||"Deno"in window;function os(){}function rRe(e,t){return typeof e=="function"?e(t):e}function iR(e){return typeof e=="number"&&e>=0&&e!==1/0}function YU(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Cv(e,t,r){return WT(e)?typeof t=="function"?{...r,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Rf(e,t,r){return WT(e)?[{...t,queryKey:e},r]:[e||{},t]}function KU(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:a,stale:l}=e;if(WT(a)){if(n){if(t.queryHash!==aR(a,t.options))return!1}else if(!FT(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 XU(e,t){const{exact:r,fetching:n,predicate:o,mutationKey:i}=e;if(WT(i)){if(!t.options.mutationKey)return!1;if(r){if(jp(t.options.mutationKey)!==jp(i))return!1}else if(!FT(t.options.mutationKey,i))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||o&&!o(t))}function aR(e,t){return((t==null?void 0:t.queryKeyHashFn)||jp)(e)}function jp(e){return JSON.stringify(e,(t,r)=>sR(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function FT(e,t){return QU(e,t)}function QU(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!QU(e[r],t[r])):!1}function ZU(e,t){if(e===t)return e;const r=JU(e)&&JU(t);if(r||sR(e)&&sR(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]=ZU(e[u],t[u]),a[u]===e[u]&&l++}return n===i&&l===n?e:a}return t}function lR(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function JU(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function sR(e){if(!eq(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const r=t.prototype;return!(!eq(r)||!r.hasOwnProperty("isPrototypeOf"))}function eq(e){return Object.prototype.toString.call(e)==="[object Object]"}function WT(e){return Array.isArray(e)}function tq(e){return new Promise(t=>{setTimeout(t,e)})}function rq(e){tq(0).then(e)}function nRe(){if(typeof AbortController=="function")return new AbortController}function uR(e,t,r){return r.isDataEqual!=null&&r.isDataEqual(e,t)?e:typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?ZU(e,t):t}class oRe extends $x{constructor(){super(),this.setup=t=>{if(!Dx&&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 VT=new oRe,nq=["online","offline"];class iRe extends $x{constructor(){super(),this.setup=t=>{if(!Dx&&window.addEventListener){const r=()=>t();return nq.forEach(n=>{window.addEventListener(n,r,!1)}),()=>{nq.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 UT=new iRe;function aRe(e){return Math.min(1e3*2**e,3e4)}function qT(e){return(e??"online")==="online"?UT.isOnline():!0}class oq{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function GT(e){return e instanceof oq}function iq(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 oq(b)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!VT.isFocused()||e.networkMode!=="always"&&!UT.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))},h=()=>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,T=(k=e.retryDelay)!=null?k:aRe,S=typeof T=="function"?T(r,y):T,A=E===!0||typeof E=="number"&&r<E||typeof E=="function"&&E(r,y);if(t||!A){p(y);return}r++,e.onFail==null||e.onFail(r,y),tq(S).then(()=>{if(d())return h()}).then(()=>{t?p(y):v()})})};return qT(e.networkMode)?v():h().then(v),{promise:l,cancel:s,continue:()=>(o==null?void 0:o())?l:Promise.resolve(),cancelRetry:u,continueRetry:c}}const cR=console;function lRe(){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):rq(()=>{r(c)})},a=c=>(...d)=>{i(()=>{c(...d)})},l=()=>{const c=e;e=[],c.length&&rq(()=>{n(()=>{c.forEach(d=>{r(d)})})})};return{batch:o,batchCalls:a,schedule:i,setNotifyFunction:c=>{r=c},setBatchNotifyFunction:c=>{n=c}}}const ko=lRe();class aq{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),iR(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(Dx?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class sRe extends aq{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||cR,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||uRe(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=uR(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(os).catch(os):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||!YU(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(h=>h.options.queryFn);p&&this.setOptions(p.options)}const a=nRe(),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(GT(p)&&p.silent||this.dispatch({type:"error",error:p}),!GT(p)){var h,v,b,y;(h=(v=this.cache.config).onError)==null||h.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=iq({fn:c.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:p=>{var h,v,b,y;if(typeof p>"u"){f(new Error(this.queryHash+" data is undefined"));return}this.setData(p),(h=(v=this.cache.config).onSuccess)==null||h.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,h)=>{this.dispatch({type:"failed",failureCount:p,error:h})},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:qT(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 GT(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),ko.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function uRe(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 cRe extends $x{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:aR(i,r);let l=this.get(a);return l||(l=new sRe({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(){ko.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,r){const[n]=Rf(t,r);return typeof n.exact>"u"&&(n.exact=!0),this.queries.find(o=>KU(n,o))}findAll(t,r){const[n]=Rf(t,r);return Object.keys(n).length>0?this.queries.filter(o=>KU(n,o)):this.queries}notify(t){ko.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}onFocus(){ko.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){ko.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}var dRe={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.87 (built 7/28/2025)"};class fRe extends aq{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||cR,this.observers=[],this.state=t.state||mRe(),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 A;return this.retryer=iq({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(O,I)=>{this.dispatch({type:"failed",failureCount:O,error:I})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(A=this.options.retry)!=null?A: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,h;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 O=await((p=(h=this.options).onMutate)==null?void 0:p.call(h,this.state.variables));O!==this.state.context&&this.dispatch({type:"loading",context:O,variables:this.state.variables})}const A=await t();return await((n=(o=this.mutationCache.config).onSuccess)==null?void 0:n.call(o,A,this.state.variables,this.state.context,this)),await((i=(a=this.options).onSuccess)==null?void 0:i.call(a,A,this.state.variables,this.state.context)),await((l=(s=this.mutationCache.config).onSettled)==null?void 0:l.call(s,A,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,A,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:A}),A}catch(A){try{var v,b,y,w,k,E,T,S;throw await((v=(b=this.mutationCache.config).onError)==null?void 0:v.call(b,A,this.state.variables,this.state.context,this)),dRe.NODE_ENV,await((y=(w=this.options).onError)==null?void 0:y.call(w,A,this.state.variables,this.state.context)),await((k=(E=this.mutationCache.config).onSettled)==null?void 0:k.call(E,void 0,A,this.state.variables,this.state.context,this)),await((T=(S=this.options).onSettled)==null?void 0:T.call(S,void 0,A,this.state.variables,this.state.context)),A}finally{this.dispatch({type:"error",error:A})}}}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:!qT(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),ko.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function mRe(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class pRe extends $x{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,r,n){const o=new fRe({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(){ko.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=>XU(t,r))}findAll(t){return this.mutations.filter(r=>XU(t,r))}notify(t){ko.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 ko.batch(()=>r.reduce((n,o)=>n.then(()=>o.continue().catch(os)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function dR(){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 h=p,v=!1;const b=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>{var A;if((A=e.signal)!=null&&A.aborted)v=!0;else{var O;(O=e.signal)==null||O.addEventListener("abort",()=>{v=!0})}return e.signal}})},y=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),w=(S,A,O,I)=>(h=I?[A,...h]:[...h,A],I?[O,...S]:[...S,O]),k=(S,A,O,I)=>{if(v)return Promise.reject("Cancelled");if(typeof O>"u"&&!A&&S.length)return Promise.resolve(S);const L={queryKey:e.queryKey,pageParam:O,meta:e.options.meta};b(L);const P=y(L);return Promise.resolve(P).then(j=>w(S,O,j,I))};let E;if(!f.length)E=k([]);else if(c){const S=typeof u<"u",A=S?u:fR(e.options,f);E=k(f,S,A)}else if(d){const S=typeof u<"u",A=S?u:lq(e.options,f);E=k(f,S,A,!0)}else{h=[];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 O=1;O<f.length;O++)E=E.then(I=>{if(l&&f[O]?l(f[O],O,f):!0){const P=S?p[O]:fR(e.options,I);return k(I,S,P)}return Promise.resolve(w(I,p[O],f[O]))})}return E.then(S=>({pages:S,pageParams:h}))}}}}function fR(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function lq(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function hRe(e,t){if(e.getNextPageParam&&Array.isArray(t)){const r=fR(e,t);return typeof r<"u"&&r!==null&&r!==!1}}function gRe(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const r=lq(e,t);return typeof r<"u"&&r!==null&&r!==!1}}class vRe{constructor(t={}){this.queryCache=t.queryCache||new cRe,this.mutationCache=t.mutationCache||new pRe,this.logger=t.logger||cR,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=VT.subscribe(()=>{VT.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=UT.subscribe(()=>{UT.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]=Rf(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=Cv(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=rRe(r,i);if(typeof a>"u")return;const l=Cv(t),s=this.defaultQueryOptions(l);return this.queryCache.build(this,s).setData(a,{...n,manual:!0})}setQueriesData(t,r,n){return ko.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]=Rf(t,r),o=this.queryCache;ko.batch(()=>{o.findAll(n).forEach(i=>{o.remove(i)})})}resetQueries(t,r,n){const[o,i]=Rf(t,r,n),a=this.queryCache,l={type:"active",...o};return ko.batch(()=>(a.findAll(o).forEach(s=>{s.reset()}),this.refetchQueries(l,i)))}cancelQueries(t,r,n){const[o,i={}]=Rf(t,r,n);typeof i.revert>"u"&&(i.revert=!0);const a=ko.batch(()=>this.queryCache.findAll(o).map(l=>l.cancel(i)));return Promise.all(a).then(os).catch(os)}invalidateQueries(t,r,n){const[o,i]=Rf(t,r,n);return ko.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]=Rf(t,r,n),a=ko.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(os);return i!=null&&i.throwOnError||(l=l.catch(os)),l}fetchQuery(t,r,n){const o=Cv(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(os).catch(os)}fetchInfiniteQuery(t,r,n){const o=Cv(t,r,n);return o.behavior=dR(),this.fetchQuery(o)}prefetchInfiniteQuery(t,r,n){return this.fetchInfiniteQuery(t,r,n).then(os).catch(os)}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=>jp(t)===jp(o.queryKey));n?n.defaultOptions=r:this.queryDefaults.push({queryKey:t,defaultOptions:r})}getQueryDefaults(t){if(!t)return;const r=this.queryDefaults.find(n=>FT(t,n.queryKey));return r==null?void 0:r.defaultOptions}setMutationDefaults(t,r){const n=this.mutationDefaults.find(o=>jp(t)===jp(o.mutationKey));n?n.defaultOptions=r:this.mutationDefaults.push({mutationKey:t,defaultOptions:r})}getMutationDefaults(t){if(!t)return;const r=this.mutationDefaults.find(n=>FT(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=aR(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 sq extends $x{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),uq(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return mR(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return mR(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),lR(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&&cq(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 xRe(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(os)),r}updateStaleTimeout(){if(this.clearStaleTimeout(),Dx||this.currentResult.isStale||!iR(this.options.staleTime))return;const r=YU(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,!(Dx||this.options.enabled===!1||!iR(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||VT.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:h,fetchStatus:v,status:b}=d,y=!1,w=!1,k;if(r._optimisticResults){const O=this.hasListeners(),I=!O&&uq(t,r),L=O&&cq(t,n,r,o);(I||L)&&(v=qT(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=uR(i==null?void 0:i.data,k,r),this.selectResult=k,this.selectError=null}catch(O){this.selectError=O}else k=d.data;if(typeof r.placeholderData<"u"&&typeof k>"u"&&b==="loading"){let O;if(i!=null&&i.isPlaceholderData&&r.placeholderData===(l==null?void 0:l.placeholderData))O=i.data;else if(O=typeof r.placeholderData=="function"?r.placeholderData():r.placeholderData,r.select&&typeof O<"u")try{O=r.select(O),this.selectError=null}catch(I){this.selectError=I}typeof O<"u"&&(b="success",k=uR(i==null?void 0:i.data,O,r),w=!0)}this.selectError&&(p=this.selectError,k=this.selectResult,h=Date.now(),b="error");const E=v==="fetching",T=b==="loading",S=b==="error";return{status:b,fetchStatus:v,isLoading:T,isSuccess:b==="success",isError:S,isInitialLoading:T&&E,data:k,dataUpdatedAt:f,error:p,errorUpdatedAt:h,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&&!T,isLoadingError:S&&d.dataUpdatedAt===0,isPaused:v==="paused",isPlaceholderData:w,isPreviousData:y,isRefetchError:S&&d.dataUpdatedAt!==0,isStale:pR(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,lR(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"&&!GT(t.error)&&(r.onError=!0),this.updateResult(r),this.hasListeners()&&this.updateTimers()}notify(t){ko.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 bRe(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function uq(e,t){return bRe(e,t)||e.state.dataUpdatedAt>0&&mR(e,t,t.refetchOnMount)}function mR(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&pR(e,t)}return!1}function cq(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&pR(e,r)}function pR(e,t){return e.isStaleByTime(t.staleTime)}function xRe(e,t,r){return r.keepPreviousData?!1:r.placeholderData!==void 0?t.isPlaceholderData:!lR(e.getCurrentResult(),t)}class yRe extends sq{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:dR()},r)}getOptimisticResult(t){return t.behavior=dR(),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",h=d&&((i=u.fetchMeta)==null||(a=i.fetchMore)==null?void 0:a.direction)==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:hRe(r,(l=u.data)==null?void 0:l.pages),hasPreviousPage:gRe(r,(s=u.data)==null?void 0:s.pages),isFetchingNextPage:p,isFetchingPreviousPage:h,isRefetching:f&&!p&&!h}}}var dq={exports:{}},hR={};/**
|
|
73
73
|
* @license React
|
|
74
74
|
* use-sync-external-store-shim.production.js
|
|
75
75
|
*
|
|
@@ -474,7 +474,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
474
474
|
`);if(E.length>1){const T=E.slice(1).join(`
|
|
475
475
|
`);T.trim()&&h.push(Z.cloneElement(b,b.props,T))}}else h.push(b)}),C.jsx(yme,{summary:f,withSwitch:p,children:h})}const u={info:C.jsx(xt,{name:"admonition_info"}),warning:C.jsx(xt,{name:"admonition_warning"}),danger:C.jsx(xt,{name:"admonition_danger"}),note:C.jsx(xt,{name:"admonition_note"}),tip:C.jsx(xt,{name:"admonition_tip"})};return C.jsx("blockquote",{className:ze(Zo.admonitionBlockquote,{[Zo.info]:a==="info",[Zo.warning]:a==="warning",[Zo.danger]:a==="danger",[Zo.note]:a==="note",[Zo.tip]:a==="tip"}),style:t,children:C.jsxs("div",{className:Zo.admonitionContainer,children:[C.jsx("div",{className:`${Zo.admonitionIcon} ${Zo[a]||""}`,children:u[a]||C.jsx(xt,{name:"admonition_info"})}),C.jsx("div",{className:Zo.admonitionContent,children:s})]})})}return C.jsx("blockquote",{className:Zo.blockquote,style:t,children:C.jsx("div",{className:Zo.blockquoteContainer,children:e})})};function yD(e,t){if(!t)return e;if(typeof e=="string")return e.endsWith(t)?e.slice(0,-t.length)||null:e;if(Array.isArray(e)){const r=[...e];let n=t;for(let o=r.length-1;o>=0&&n.length>0;o--){const i=r[o],a=R2(i);n.endsWith(a)?(r[o]=null,n=n.slice(0,-a.length)):(r[o]=yD(i,n),n="")}return r.filter(Boolean)}if(Z.isValidElement(e)&&e.props.children){const r=yD(e.props.children,t);return Z.cloneElement(e,{...e.props,children:r})}return e}const H0=({level:e,children:t,showHeadingAnchors:r})=>{const{appGlobals:n}=So();let o,i=t;const l=R2(t).match(/^(.*)\[#([a-zA-Z0-9-]+)\]\s*$/);if(l){o=l[2];const u=`[#${o}]`;i=yD(t,u)}const s=o??YTt(t);return C.jsxs(gc,{level:e,id:s,className:Zo.linkAwareHeading,children:[i,r&&C.jsx("a",{href:`#${s}`,className:Zo.headingLink,onClick:u=>{var c;u.preventDefault(),(c=n.events)==null||c.emit("scroll-to-anchor",{anchor:s})},children:C.jsx(xt,{name:"link"})})]})};function YTt(e){return R2(e).toLowerCase().replace(/[^\w]+/g,"-").replace(/^-+|-+$/g,"")}function R2(e){return typeof e=="string"?e:Array.isArray(e)?e.map(R2).join(""):Z.isValidElement(e)&&e.props.children?R2(e.props.children):""}function KTt(e){if(!e)return"";const t=e.split(`
|
|
476
476
|
`),r=t.reduce((o,i)=>{const a=i.match(/^\s*/),l=a?a[0].length:0;return i.trim()?Math.min(o,l):o},1/0);return t.map(o=>o.startsWith(" ".repeat(r))?o.slice(r):o).join(`
|
|
477
|
-
`)}function XTt(e,t){e=e.replaceAll(
|
|
477
|
+
`)}function XTt(e,t){e=e.replaceAll(/(^|[^\\])\@\{\s*\}/g,"$1");let r="",n=0;for(;e!==r&&n<100;){r=e,n++;const a=e.match(/(^|[^\\])(\@\{((?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*)\})/);if(a){const l=a[0],s=a[1],u=a[3],c=t(`{${u}}`),d=o(c),f=typeof d=="object"&&d!==null?JSON.stringify(d):d;e=e.replace(l,s+f)}else break}return e;function o(a){if(a===null)return null;if(a===void 0||typeof a>"u")return;if(typeof a=="object"){const l=i(a);return l||(Array.isArray(a)?a:Object.fromEntries(Object.entries(a).map(([s,u])=>[s,o(u)])))}else return a}function i(a){return a.hasOwnProperty("type")&&a.type===En&&(a!=null&&a._ARROW_EXPR_)?"[xmlui function]":""}}function fpe(e){const t="```xmlui-pg",r="```",n=e.indexOf(t);if(n===-1)return null;const o=e.indexOf(`
|
|
478
478
|
`,n);if(o===-1)return null;let i=o;for(;i!==-1;)if(i=e.indexOf(r,i+1),i!==-1&&e[i-1]!=="\\")return[n,i+r.length,e.substring(n,i+r.length)];return null}function N0(e){const t={};/\bdisplay\b/.test(e)&&(t.display=!0),/\bcopy\b/.test(e)&&(t.copy=!0),/\bnoPopup\b/.test(e)&&(t.noPopup=!0),/\bnoFrame\b/.test(e)&&(t.noFrame=!0),/\bimmediate\b/.test(e)&&(t.immediate=!0),/\bwithSplashScreen\b/.test(e)&&(t.withSplashScreen=!0),/\bnoHeader\b/.test(e)&&(t.noHeader=!0),/\bsplitView\b/.test(e)&&(t.splitView=!0),/\binitiallyShowCode\b/.test(e)&&(t.initiallyShowCode=!0);const r=e.match(/\{([^\}]+)\}/);if(r){const u=r[1].split(",").map(c=>{if(c.includes("-")){const[d,f]=c.split("-").map(Number);return[d,f]}return Number(c)});t.highlights=u}const n=e.match(/\bfilename="([^"]+)"/);n&&(t.filename=n[1]);const o=e.match(/\bname="([^"]+)"/);o&&(t.name=o[1]);const i=e.match(/\bheight="([^"]+)"/);i&&(t.height=i[1]);const a=e.match(/\bpopOutUrl="([^"]+)"/);a&&(t.popOutUrl=a[1]);const l=e.match(/\/([^\/]+)\//g);l&&(t.patterns=l.map(u=>u.substring(1,u.length-1)));const s=e.match(/!\/(.[^\/]+)\//g);return s&&(t.borderedPatterns=s.map(u=>u.substring(2,u.length-1))),t}function QTt(e){const t={},r=fpe(e);if(!r)return t;const[n,o,i]=r,a=i.split(`
|
|
479
479
|
`);t.default=N0(a[0].trim());let l="",s="",u=!1,c=0;for(let f=1;f<a.length-1;f++){const p=a[f];if(p.startsWith("---app")){const h=N0(p);t.app={...h},d("app")}else if(p.startsWith("---comp")){d("comp");const h=N0(p);t.components??(t.components=[]),t.components.push(h)}else if(p.startsWith("---config")){const h=N0(p);t.config??(t.config={...h}),d("config")}else if(p.startsWith("---api")){const h=N0(p);t.api??(t.api={...h}),d("api")}else if(p.startsWith("---desc")){d("desc");const h=N0(p);t.descriptions??(t.descriptions=[]),t.descriptions.push(h)}else l+=p+`
|
|
480
480
|
`}return u?d(""):t.app={...t.default,content:l,order:c},t;function d(f){switch(u=!0,s){case"app":t.app.content=l,t.app.order=c++;break;case"comp":t.components[t.components.length-1].content=l,t.components[t.components.length-1].order=c++;break;case"config":t.config.content=l,t.config.order=c++;break;case"api":t.api.content=l,t.api.order=c++;break;case"desc":t.descriptions[t.descriptions.length-1].content=l,t.descriptions[t.descriptions.length-1].order=c++;break}l="",s=f}}function ZTt(e){var s,u,c,d,f,p,h,v,b,y,w,k,E,T;const t=QTt(e);let r=0;((s=t.app)==null?void 0:s.order)>r&&(r=t.app.order),((u=t.config)==null?void 0:u.order)>r&&(r=t.config.order),((c=t.api)==null?void 0:c.order)>r&&(r=t.api.order),t.descriptions&&t.descriptions.forEach(S=>{S.order>r&&(r=S.order)}),t.components&&t.components.forEach(S=>{S.order>r&&(r=S.order)});let n="";const o={noPopup:(d=t.default)==null?void 0:d.noPopup,noFrame:(f=t.default)==null?void 0:f.noFrame,noHeader:(p=t.default)==null?void 0:p.noHeader,splitView:(h=t.default)==null?void 0:h.splitView,initiallyShowCode:(v=t.default)==null?void 0:v.initiallyShowCode,popOutUrl:(b=t.default)==null?void 0:b.popOutUrl,immediate:(y=t.default)==null?void 0:y.immediate,withSplashScreen:(w=t.default)==null?void 0:w.withSplashScreen};t.default.height&&(o.height=t.default.height),t.default.name&&(o.name=t.default.name),t.default.popOutUrl&&(o.popOutUrl=t.default.popOutUrl);for(let S=0;S<=r;S++){let A,O="";if(((k=t.app)==null?void 0:k.order)===S?(A=t.app,O="app"):((E=t.config)==null?void 0:E.order)===S?(A=t.config,O="config"):((T=t.api)==null?void 0:T.order)===S&&(A=t.api,O="api"),!A&&t.descriptions){const L=t.descriptions.find(P=>P.order===S);L&&(A=L,O="desc")}if(!A&&t.components){const L=t.components.find(P=>P.order===S);L&&(A=L,O="comp")}if(A===void 0)continue;let I=`${A.copy?"copy":""} ${A.filename?`filename="${A.filename}"`:""} ${A.name?`name="${A.name}"`:""} ${A.popOutUrl?`popOutUrl="${A.popOutUrl}"`:""}`;if(A.highlights&&A.highlights.length>0){const L=A.highlights.map(P=>Array.isArray(P)?`${P[0]}-${P[1]}`:P).join(",");I+=`{${L}}`}switch(A.patterns&&A.patterns.length>0&&(I+=" "+A.patterns.map(L=>`/${L}/`).join(" ")),A.borderedPatterns&&A.borderedPatterns.length>0&&(I+=" "+A.borderedPatterns.map(L=>"!/"+L+"/").join(" ")),I=I.trim().replace(/\s+/g," "),O){case"app":A.display&&(n+="```xmlui "+I+`
|
|
@@ -623,7 +623,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
623
623
|
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
|
|
624
624
|
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
|
|
625
625
|
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
|
|
626
|
-
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 Pjt=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"})),Ljt=e=>C.jsx(Pjt,{...e}),Hjt=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 "}))),Njt=e=>C.jsx(Hjt,{...e}),$jt=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"})),Djt={binding:"_binding_14mdd_1"},Bjt=e=>C.jsx($jt,{className:Djt.binding,...e}),jjt=e=>C.jsx(fee,{...e}),Mjt=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"})),zjt=e=>C.jsx(Mjt,{...e}),Fjt=e=>C.jsx(AKe,{...e}),Wjt=e=>C.jsx(cee,{...e}),Vjt=e=>C.jsx(dee,{...e}),Ujt=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"})),qjt=e=>C.jsx(Ujt,{...e}),Gjt=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"})),Yjt=e=>C.jsx(Gjt,{...e}),Kjt=e=>C.jsx(mee,{...e}),Xjt=e=>C.jsx(pjt,{...e}),Qjt=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"})),Zjt={database:"_database_14jkq_1"},Jjt=e=>C.jsx(Qjt,{className:Zjt.database,...e}),eMt=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"})),tMt=e=>C.jsx(eMt,{...e}),rMt=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"})))),Lke=e=>C.jsx(rMt,{...e}),nMt=e=>C.jsx(ojt,{...e}),oMt=e=>C.jsx(ijt,{...e}),iMt=e=>C.jsx(mjt,{...e}),aMt=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"})),lMt=e=>C.jsx(aMt,{...e}),sMt=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"})),uMt=e=>C.jsx(sMt,{...e}),cMt=e=>C.jsx(Wut,{...e}),dMt=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"})),fMt=e=>C.jsx(dMt,{...e}),mMt=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"})),pMt=e=>C.jsx(mMt,{...e}),hMt=e=>C.jsx(djt,{...e}),gMt=e=>C.jsx(BKe,{...e}),vMt=e=>C.jsx(fjt,{...e}),bMt=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"})))),xMt=e=>C.jsx(bMt,{...e});function yMt(e){return Qe({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 wMt=e=>C.jsx(yMt,{...e}),CMt=e=>C.jsx(mee,{...e}),kMt=e=>C.jsx(Ijt,{...e}),TMt=e=>C.jsx(zKe,{...e}),_Mt=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"})))),SMt=e=>C.jsx(_Mt,{...e}),EMt=e=>C.jsx(Ojt,{...e}),AMt=e=>C.jsx(FKe,{...e}),OMt=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"})))),IMt=e=>C.jsx(OMt,{...e}),RMt=e=>C.jsx(Yut,{...e}),PMt=e=>C.jsx(VKe,{...e}),LMt=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"})),HMt=e=>C.jsx(LMt,{...e}),NMt=e=>C.jsx(cjt,{...e}),$Mt=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"})))),DMt=e=>C.jsx($Mt,{...e}),BMt=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"})))),jMt=e=>C.jsx(BMt,{...e}),MMt=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"})),zMt=e=>C.jsx(MMt,{...e}),FMt=e=>C.jsx(pee,{...e}),WMt=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"})),VMt=e=>C.jsx(WMt,{...e}),UMt=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"})),qMt=e=>C.jsx(UMt,{...e}),GMt=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"})),YMt=e=>C.jsx(GMt,{...e}),KMt=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})]}),XMt=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"})]}),QMt=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})]}),ZMt=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"})),JMt=e=>C.jsx(ZMt,{...e}),ezt=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"})))),tzt=e=>C.jsx(ezt,{...e}),rzt=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"})),nzt=e=>C.jsx(rzt,{...e}),ozt=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"})),izt=e=>C.jsx(ozt,{...e}),azt=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"})),lzt=e=>C.jsx(azt,{...e}),szt=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"})),uzt=e=>C.jsx(szt,{...e}),czt=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"})),dzt=e=>C.jsx(czt,{...e}),fzt=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"})))),mzt=e=>C.jsx(fzt,{...e}),pzt=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"})))),hzt=e=>C.jsx(pzt,{...e}),gzt=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"})),vzt=e=>C.jsx(gzt,{...e}),bzt=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"})))),xzt=e=>C.jsx(bzt,{...e});function yzt(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 wzt(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 Czt(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 kzt(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 a5=new Map;function De(e,t){typeof e=="object"?e.forEach(r=>{a5.set(r,{renderer:t})}):a5.set(e.toLowerCase(),{renderer:t})}De("assign",e=>C.jsx(pee,{...e})),De("arrowup",e=>C.jsx(V7t,{...e})),De("arrowleft",e=>C.jsx(F7t,{...e})),De("arrowright",e=>C.jsx(W7t,{...e})),De("pause",e=>C.jsx(G7t,{...e})),De("play",e=>C.jsx(Y7t,{...e})),De("date",e=>C.jsx(Rjt,{...e})),De("hamburger",e=>C.jsx(qut,{...e})),De("send",e=>C.jsx(Kut,{...e})),De("users",e=>C.jsx(XKe,{...e})),De("refresh",e=>C.jsx(WKe,{...e})),De("chevrondown",e=>C.jsx(OKe,{...e})),De("chevronup",e=>C.jsx(IKe,{...e})),De("chevronright",e=>C.jsx(Vjt,{...e})),De("chevronleft",e=>C.jsx(Wjt,{...e})),De("dotmenu",e=>C.jsx(oMt,{...e})),De("dotmenuhorizontal",e=>C.jsx(nMt,{...e})),De("noresult",e=>C.jsx(UKe,{...e})),De("crm",e=>C.jsx(Pke,{...e})),De("chat",e=>C.jsx(Pke,{...e})),De("pencil",e=>C.jsx(sjt,{...e})),De("cube",e=>C.jsx(njt,{...e})),De("apps",e=>C.jsx(fee,{...e})),De("permissions",e=>C.jsx(jKe,{...e})),De("close",e=>C.jsx(QKe,{...e})),De("star",e=>C.jsx(qKe,{...e})),De("help",e=>C.jsx(DKe,{...e})),De("compactlist",e=>C.jsx(Kjt,{...e})),De("copy",e=>C.jsx(Xjt,{...e})),De("move",e=>C.jsx(LKe,{...e})),De("rename",e=>C.jsx(hjt,{...e})),De("hyperlink",e=>C.jsx(vMt,{...e})),De("globe",e=>C.jsx(hMt,{...e})),De("link",e=>C.jsx(wMt,{...e})),De("looseList",e=>C.jsx(kMt,{...e})),De("options",e=>C.jsx(TMt,{...e})),De("search",e=>C.jsx(PMt,{...e})),De("filter",e=>C.jsx(fMt,{...e})),De("trash",e=>C.jsx(NMt,{...e})),De("pen",e=>C.jsx(EMt,{...e})),De("email",e=>C.jsx(iMt,{...e})),De("phone",e=>C.jsx(AMt,{...e})),De("home",e=>C.jsx(gMt,{...e})),De("user",e=>C.jsx(FMt,{...e})),De("exit",e=>C.jsx(DTt,{...e})),De("adduser",e=>C.jsx(KKe,{...e})),De("userminus",e=>C.jsx(YKe,{...e})),De("plus",e=>C.jsx(RMt,{...e})),De("inspect",e=>C.jsx(tzt,{...e})),De("plus-circle",e=>C.jsx(Gut,{...e})),De("filledplus",e=>C.jsx(cMt,{...e})),De("darktolight",e=>C.jsx(uzt,{...e})),De("lighttodark",e=>C.jsx(lzt,{...e})),De("checkmark",e=>C.jsx(Fjt,{...e})),De("valid",e=>C.jsx(EKe,{...e})),De("info",e=>C.jsx(SKe,{...e})),De("error",e=>C.jsx(vle,{...e})),De("warning",e=>C.jsx(gle,{...e})),De("board",e=>C.jsx(jjt,{...e})),De("list",e=>C.jsx(CMt,{...e})),De("folder",e=>C.jsx(pMt,{...e})),De("folder-outline",e=>C.jsx(NKe,{...e})),De("emptyfolder",e=>C.jsx(lMt,{...e})),De("pdf",e=>C.jsx(SMt,{...e})),De("txt",e=>C.jsx(DMt,{...e})),De("doc",e=>C.jsx(Lke,{...e})),De("docx",e=>C.jsx(Lke,{...e})),De("doc-outline",e=>C.jsx(tMt,{...e})),De("conf",e=>C.jsx(J7t,{...e})),De("code",e=>C.jsx(qjt,{...e})),De("codesandbox",e=>C.jsx(Yjt,{...e})),De("box",e=>C.jsx(zjt,{...e})),De(["xls","xlsx"],e=>C.jsx(VMt,{...e})),De(["jpg","jpeg","png","webp","svg","gif","tif","ppt","pptx"],e=>C.jsx(xMt,{...e})),De("unknownfile",e=>C.jsx(jMt,{...e})),De("photo",e=>C.jsx(IMt,{...e})),De("previous",e=>C.jsx(rjt,{...e})),De("next",e=>C.jsx(tjt,{...e})),De("like",e=>C.jsx(Uut,{...e})),De("reply",e=>C.jsx(K7t,{...e})),De("attach",e=>C.jsx(Njt,{...e})),De("attach2",e=>C.jsx(xjt,{...e})),De("emoji",e=>C.jsx(ejt,{...e})),De("message",e=>C.jsx(vjt,{...e})),De("upload",e=>C.jsx(GKe,{...e})),De("split-vertical",e=>C.jsx(kjt,{...e})),De("split-horizontal",e=>C.jsx(Cjt,{...e})),De("swap",e=>C.jsx(ujt,{...e})),De("download",e=>C.jsx(HKe,{...e})),De("note",e=>C.jsx(bjt,{...e})),De("binding",e=>C.jsx(Bjt,{...e})),De("database",e=>C.jsx(Jjt,{...e})),De("unlink",e=>C.jsx(zMt,{...e})),De("api",e=>C.jsx(Ljt,{...e})),De("expression",e=>C.jsx(uMt,{...e})),De("chat",e=>C.jsx(U7t,{...e})),De("hash",e=>C.jsx(q7t,{...e})),De("drive",e=>C.jsx($Ke,{...e})),De("lock",e=>C.jsx(MKe,{...e})),De("start",e=>C.jsx(yjt,{...e})),De("stop",e=>C.jsx(wjt,{...e})),De("restart",e=>C.jsx(Sjt,{...e})),De("duplicate",e=>C.jsx(Ajt,{...e})),De("connect",e=>C.jsx(BTt,{...e})),De("cog",e=>C.jsx(Ejt,{...e})),De("sun",e=>C.jsx(Tjt,{...e})),De("moon",e=>C.jsx(nzt,{...e})),De("stars",e=>C.jsx(izt,{...e})),De("share",e=>C.jsx(HMt,{...e})),De("new-window",e=>C.jsx(cpe,{...e})),De("paint",e=>C.jsx(_jt,{...e})),De("palette",e=>C.jsx(gjt,{...e})),De("trending-up",e=>C.jsx(qMt,{...e})),De("trending-down",e=>C.jsx(YMt,{...e})),De("trending-level",e=>C.jsx(JMt,{...e})),De("sortasc",e=>C.jsx(KMt,{...e})),De("sortdesc",e=>C.jsx(XMt,{...e})),De("nosort",e=>C.jsx(QMt,{...e})),De("admonition_info",e=>C.jsx(dzt,{...e})),De("admonition_warning",e=>C.jsx(mzt,{...e})),De("admonition_danger",e=>C.jsx(hzt,{...e})),De("admonition_note",e=>C.jsx(vzt,{...e})),De("admonition_tip",e=>C.jsx(xzt,{...e})),De("arrowdown",e=>C.jsx(z7t,{...e})),De("square",e=>C.jsx(Z7t,{...e})),De("squarehalf",e=>C.jsx(Q7t,{...e})),De("squarefill",e=>C.jsx(X7t,{...e})),De("table-insert-row",e=>C.jsx(yzt,{...e})),De("table-delete-row",e=>C.jsx(wzt,{...e})),De("table-insert-column",e=>C.jsx(Czt,{...e})),De("table-delete-column",e=>C.jsx(kzt,{...e})),De("eye",e=>C.jsx(ljt,{...e})),De("eye-off",e=>C.jsx(ajt,{...e}));function Tzt({children:e}){const t=m.useCallback(()=>Array.from(a5.keys()),[]),r=m.useCallback(u=>a5.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 h={name:u,attributes:f};o(v=>({...v,[u]:h}))},[]),s=m.useMemo(()=>({getRegisteredIconNames:t,lookupIconRenderer:r,ensureCustomSvgIcon:l,customSvgs:n}),[n,l,t,r]);return C.jsxs(SK.Provider,{value:s,children:[e,C.jsx("svg",{style:{display:"none"},ref:a})]})}const _zt="0.9.86",Hke={capitalize:JLe,pluralize:d7e,defaultTo:CNe,toHashObject:f7e,findByField:m7e,distinct:p7e};function Szt(e){return(e?new Date(e):new Date).toJSON()}function Nke(e){return new Date(e).toLocaleDateString()}function Ezt(e){return new Date(e).toLocaleString()}function Azt(e){return new Date(e).toLocaleTimeString()}function Ozt(e){return gd(new Date(e),"H:m")}function Izt(e){return new Date(e).toLocaleDateString([],{month:"numeric",day:"2-digit"})}function $ke(e){return e?new Date(e):new Date}function Rzt(e,t,r){return e?r7e(e,t,r):"-"}function Pzt(e){return e?H_(new Date(e))?new Date(e).toLocaleTimeString():LBe(new Date(e))?`${LDe(new Date(e),new Date)}`:new Date(e).toLocaleString():"-"}function Lzt(e){return e?H_(new Date(e))?"Today":mP(new Date(e))?"Yesterday":new Date(e).toLocaleDateString():"-"}function Hzt(e){return H_(new Date(e))}function Nzt(e){return mP(new Date(e))}function $zt(e){return NBe(new Date(e))}function Dzt(e,t=!1){const r=new Date,n=new Date(e),o=r.getTime()-n.getTime();if(o<0)return Nke(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 h=i===1?f.second.singular:f.second.plural;return`${i} ${h} ago`}if(a<60){const h=a===1?f.minute.singular:f.minute.plural;return`${a} ${h} ago`}if(H_(n)){const h=l===1?f.hour.singular:f.hour.plural;return`${l} ${h} ago`}if(mP(n))return"yesterday";if(s<7){const h=s===1?f.day.singular:f.day.plural;return`${s} ${h} ago`}if(u<4){const h=u===1?f.week.singular:f.week.plural;return`${u} ${h} ago`}if(c<12){const h=c===1?f.month.singular:f.month.plural;return`${c} ${h} ago`}const p=d===1?f.year.singular:f.year.plural;return`${d} ${p} ago`}const Dke={isoDateString:Szt,formatDate:Nke,formatDateTime:Ezt,formatTime:Azt,formatTimeWithoutSeconds:Ozt,formatDateWithoutYear:Izt,getDate:$ke,getDateUntilNow:Rzt,smartFormatDateTime:Pzt,smartFormatDate:Lzt,isToday:Hzt,isYesterday:Nzt,isTomorrow:$zt,differenceInMinutes:A$e,isSameDay:E_,isThisYear:HBe,formatHumanElapsedTime:Dzt};function Bzt(e,t){if(e.length===0)return 0;const n=Bke(e)/e.length;return t?Number(n.toFixed(t)):n}function Bke(e){return e.reduce((t,r)=>t+r,0)}const jzt={avg:Bzt,sum:Bke};var Bo=(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))(Bo||{});function Mzt(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 zzt=100;function Fzt(e){const t=e.collectStateTransitions;let r,n;return ml((o,i)=>{const{uid:a}=i.payload;if(a===void 0&&i.type!==Bo.STATE_PART_CHANGED)return console.error("uid not provided for control component",{state:o,action:i}),o;if(t)try{r=us(o[a])}catch(s){console.error("Error while cloning previous value",s)}switch(i.type){case Bo.LOADER_IN_PROGRESS_CHANGED:{o[a]={...o[a],inProgress:i.payload.inProgress},l(o[a]);break}case Bo.LOADER_IS_REFETCHING_CHANGED:{o[a]={...o[a],isRefetching:i.payload.isRefetching},l(o[a]);break}case Bo.LOADER_LOADED:{const{data:s,pageInfo:u}=i.payload;o[a]={value:s,byId:Array.isArray(s)?UNe(s,c=>c.$id):void 0,inProgress:!1,loaded:s!==void 0,pageInfo:u},l(o[a]);break}case Bo.LOADER_ERROR:{const{error:s}=i.payload;o[a]={...o[a],error:s,inProgress:!1,loaded:!0},l(o[a]);break}case Bo.EVENT_HANDLER_STARTED:{const{eventName:s}=i.payload,u=`${s}InProgress`;o[a]={...o[a],[u]:!0},l(o[a]);break}case Bo.EVENT_HANDLER_COMPLETED:{const{eventName:s}=i.payload,u=`${s}InProgress`;o[a]={...o[a],[u]:!1},l(o[a]);break}case Bo.EVENT_HANDLER_ERROR:{const{eventName:s}=i.payload,u=`${s}InProgress`;o[a]={...o[a],[u]:!1},l(o[a]);break}case Bo.COMPONENT_STATE_CHANGED:{const{state:s}=i.payload;o[a]={...o[a],...s},l(o[a]);break}case Bo.STATE_PART_CHANGED:{const{path:s,value:u,target:c,actionType:d,localVars:f}=i.payload;if(d==="unset")x$e(o,s);else{let p=f;d$e(o,s,u,(h,v,b)=>{if(p=p==null?void 0:p[v],h===void 0&&p===void 0&&ls(c))return Object(h)}),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>=zzt&&e.stateTransitions.shift(),e.stateTransitions.push(s))}function l(s){if(t)try{n=us(s)}catch(u){console.error("Error while cloning next value",u)}}})}function jke(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,jke(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 Wzt(e,t,r){const n=lf.get(e);return n?(t.unshift(r),n):e}const lf=new Map;lf.set(Array.prototype.filter,Uzt),lf.set(Array.prototype.forEach,qzt),lf.set(Array.prototype.map,Gzt),lf.set(Array.prototype.every,Yzt),lf.set(Array.prototype.findIndex,Xzt),lf.set(Array.prototype.find,Kzt),lf.set(Array.prototype.flatMap,Qzt),lf.set(Array.prototype.some,Vzt);async function Vzt(e,t){const r=await Promise.all(e.map(t));return e.some((n,o)=>r[o])}async function Uzt(e,t){const r=await Promise.all(e.map(t));return e.filter((n,o)=>r[o])}async function qzt(e,t){for(let r=0;r<e.length;r++)await t(e[r],r,e)}async function Gzt(e,t){const r=[];for(let n=0;n<e.length;n++)r.push(await t(e[n],n,e));return r}async function Yzt(e,t){const r=await Promise.all(e.map(t));return r.every((n,o)=>r[o])}async function Kzt(e,t){const r=await Promise.all(e.map(t));return e.find((n,o)=>r[o])}async function Xzt(e,t){const r=await Promise.all(e.map(t));return e.findIndex((n,o)=>r[o])}async function Qzt(e,t){const r=await Promise.all(e.map(t));return e.flatMap((n,o)=>r[o])}async function nl(e,t,r){const n=[];return rw(t),r??(r=t.mainThread),await Gj(n,e,t,r??t.mainThread)}async function Zzt(e,t,r,...n){if(e.type!==En)throw new Error("executeArrowExpression expects an 'ArrowExpression' object.");return await(await l5(Gj,e))(e.args,t,r??t.mainThread,...n)}async function Gj(e,t,r,n){r.options||(r.options={defaultToOptionalMemberAccess:!0});const o=Gj;try{switch(t.type){case i3:return cFt(o,e,t,r,n);case Bn:return PJ(e,t,n);case Jt:return LJ(e,t,r,n);case vs:return await Jzt(o,e,t,r,n);case _d:return await eFt(o,e,t,r,n);case mu:return await tFt(o,e,t,r,n);case pu:return await rFt(o,e,t,r,n);case hu:return await nFt(o,e,t,r,n);case Gy:return await oFt(o,e,t,r,n);case ci:return await iFt(o,e,t,r,n);case Yy:return await aFt(o,e,t,r,n);case Sd:return await lFt(o,e,t,r,n);case uh:case Ky:return await sFt(o,e,t,r,n);case hb:return await uFt(o,e,t,r,n);case En:return jJ(e,t,n);case di: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 Jzt(e,t,r,n,o){return await e(t,r.obj,n,o),await Sa(r.obj,o),y3(t,r,n,o)}async function eFt(e,t,r,n,o){return await e(t,r.obj,n,o),await Sa(r.obj,o),await e(t,r.member,n,o),t.pop(),await Sa(r.member,o),HJ(t,r,n,o)}async function tFt(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 An(l,{value:s},o),t.pop(),s}),a=i[i.length-1];return t.push(a),a}async function rFt(e,t,r,n,o){const i=[];for(const a of r.items)if(a.type===di){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 An(r,{value:i},o),t.push(i),i}async function nFt(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 Bn:l=a[0].value;break;case Jt: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 An(r,{value:i},o),t.push(i),i}async function oFt(e,t,r,n,o){return await e(t,r.expr,n,o),t.pop(),await Sa(r.expr,o),NJ(r,t,n,o)}async function iFt(e,t,r,n,o){await e(t,r.left,n,o),t.pop();const i=await Sa(r.left,o);return r.op==="&&"&&!i?(An(r,{value:i},o),i):r.op==="||"&&i?(An(r,{value:i},o),i):(await e(t,r.right,n,o),t.pop(),await Sa(r.right,o),$J(r,t,n,o))}async function aFt(e,t,r,n,o){await e(t,r.cond,n,o),t.pop();const i=await Sa(r.cond,o),a=await e(t,i?r.thenE:r.elseE,n,o);return An(r,{value:a},o),a}async function lFt(e,t,r,n,o){const i=r.leftValue,a=Jf(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 Sa(i,o),await e(t,r.expr,n,o),t.pop(),await Sa(r.expr,o);const s=DJ(t,r,n,o);return l&&n.onDidUpdate&&n.onDidUpdate(a,a.name,"assignment"),s}async function sFt(e,t,r,n,o){const i=Jf(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 Sa(r.expr,o);const l=BJ(t,r,n,o);return a&&n.onDidUpdate&&n.onDidUpdate(i,i.name,"pre-post"),l}async function uFt(e,t,r,n,o){var h,v;let i,a=null;if(r.obj.type===vs){const b=await e(t,r.obj.obj,n,o);await Sa(r.obj.obj,o),i=y3(t,r.obj,n,o),r.obj.obj.type===Jt&&(b!=null&&b._SUPPORT_IMPLICIT_CONTEXT)&&(a=b)}else await e(t,r.obj,n,o),i=await Sa(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 l5(e,i);else if(r.obj.type===En)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===di){await e([],y.expr,n,o);const w=await Sa(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===En){const w=await l5(e,y),k=async(...E)=>w(y.args,n,o,...E);l.push(k)}else{await e([],y,n,o);const w=await Sa(y,o);if(w!=null&&w._ARROW_EXPR_){const k=await l5(e,w),E=(...T)=>k(w.args,n,o,...T);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=IJ(i);if(s.banned)throw new Error(`Function ${((h=s.func)==null?void 0:h.name)??"unknown"} is not allowed to call. ${(s==null?void 0:s.help)??""}`);const u=t.length>0?t.pop():n.localContext;i=Wzt(i,l,u);const c=Jf(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 Mke(f);return d&&n.onDidUpdate&&n.onDidUpdate(c,c.name,"function-call"),An(r,{value:p},o),t.push(p),p}async function l5(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 h;switch(p.type){case Jt:{h={type:El,id:p.name};break}case ch:{h={type:El,id:p.id,aDestr:p.aDestr,oDestr:p.oDestr};break}case di:{s=!0,h={type:El,id:p.expr.name};break}default:throw new Error("Unexpected arrow argument specification")}if(h)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 s5(a,n,o,[h],!1,!0,b)}else{let v=r[f+3];v!=null&&v._EXPRESSION_&&(v=await e([],v,n,o)),await s5(a,n,o,[h],!1,!0,v)}}let u,c;switch(t.statement.type){case hs:c=[];break;case gs:c=[{type:Yf,expr:t.statement.expr}];break;case ps:c=t.statement.stmts;break;default:throw new Error(`Arrow expression with a body of '${t.statement.type}' is not supported yet.`)}await Yj(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 Mke(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(RJ(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(ls(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 cFt(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 Sa(r.segments[a],o);i[a]=l}return zJ(i)}async function Sa(e,t){const r=gu(e,t),n=await Mke(r==null?void 0:r.value);return An(e,{...r,value:n},t),n}async function Yj(e,t,r){var a,l,s;r||(r=rw(t)),k3(r,e);const n=new FJ;n.push(dn(Od(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 dFt(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 ic?Av(d):Av(new Fx(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 dFt(e,t,r,n){let o=[],i;switch(e.type){case sh:break;case jy:if(n!==r.mainThread)throw new Error("'var' declarations are not allowed within functions");break;case hs:break;case ps:if(e.stmts.length===0)break;n.blocks??(n.blocks=[]),n.blocks.push({vars:{}}),k3(n,e.stmts),o=dn([...Od(e.stmts),tw()]);break;case gs:const a=await nl(e.expr,r,n);n.blocks&&n.blocks.length!==0&&(n.blocks[n.blocks.length-1].returnValue=a);break;case sa:const l=await Zzt(e.expr,r,n,...r.eventArgs??[]);n.blocks&&n.blocks.length!==0&&(n.blocks[n.blocks.length-1].returnValue=l);break;case Dy:{const u=fi(n);if(!u)throw new Error("Missing block scope");await s5(u,r,n,e.decls);break}case By:{const u=fi(n);if(!u)throw new Error("Missing block scope");await s5(u,r,n,e.decls,!0);break}case My:!!await nl(e.cond,r,n)?o=w3(e.thenB):e.elseB&&(o=w3(e.elseB));break;case Yf:{if(fi(n)===void 0)throw new Error("Return requires a block scope");if(n.returnValue=e.expr?await nl(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=em(n).tryLabel}else i=-1;break}case zy:{let u=t.guard?Ko(n):xs(n);!!await nl(e.cond,r,n)?o=wb(u,e,n.breakLabelValue):Eo(n);break}case Fy:{if(!t.guard){o=wb(xs(n),e,n.breakLabelValue);break}!!await nl(e.cond,r,n)?o=wb(Ko(n),e,n.breakLabelValue):Eo(n);break}case o3:{if(!n.loops||n.loops.length===0)throw new Error("Missing loop scope");let u;for(;n.loops.length>0&&(u=Ko(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=em(n).tryLabel}else i=u.continueLabel,Eo(n,!1);break}case n3:{const u=Ko(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=em(n).tryLabel}else i=u.breakLabel,Eo(n);break}case Wy:if(t.guard)if(!e.cond||await nl(e.cond,r,n)){const u=Ko(n);if(e.upd){const c={statement:{type:gs,nodeId:Qf(),expr:e.upd}};o=dn([{statement:e.body},c,{statement:e,execInfo:t}])}else o=dn([{statement:e.body},{statement:e,execInfo:t}]);u.breakLabel=n.breakLabelValue??-1,u.continueLabel=o[1].label}else Eo(n);else{xs(n,1),n.blocks??(n.blocks=[]),n.blocks.push({vars:{}});const u=Id(e);e.init?o=dn([{statement:e.init},u]):o=dn([u])}break;case Td: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:Jt,name:e.id.name},op:"=",expr:{type:Bn,value:u}};await nl(d,r,n);break}case"const":case"let":{const d=fi(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=Ko(n);o=dn([{statement:e.body},{statement:e,execInfo:t}]),c.breakLabel=n.breakLabelValue??-1,c.continueLabel=o[1].label}else Eo(n)}else{const u=await nl(e.expr,r,n);if(u==null)break;xs(n,1),n.blocks??(n.blocks=[]),n.blocks.push({vars:{}}),o=dn([{statement:e,execInfo:{guard:!0,keys:Object.keys(u),keyIndex:0}}])}break;case Kf: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){Eo(n);break}const c=u.value;switch(e.varB){case"none":{const f={type:Sd,leftValue:{type:Jt,name:e.id.name},op:"=",expr:{type:Bn,value:c}};await nl(f,r,n);break}case"const":case"let":{const f=fi(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=Ko(n);o=dn([{statement:e.body},{statement:e,execInfo:t}]),d.breakLabel=n.breakLabelValue??-1,d.continueLabel=o[1].label}else{const u=await nl(e.expr,r,n);if(u==null||typeof u[Symbol.iterator]!="function")throw new Error("Object in for..of is not iterable");xs(n,1),n.blocks??(n.blocks=[]),n.blocks.push({vars:{}}),o=dn([{statement:e,execInfo:{guard:!0,iterator:u[Symbol.iterator]()}}])}break;case Vy:throw new ic(await nl(e.expr,r,n));case Uy:{if(!t.guard){o=UJ(n,VJ(n,e));break}const u=em(n);switch(u.processingPhase){case"error":switch(u.errorSource){case"try":if(n.blocks.pop(),e.catchB){if(u.statement.catchV){const d=fi(n);d.vars[u.statement.catchV.name]=u.errorToThrow instanceof ic?u.errorToThrow.errorObject:u.errorToThrow}delete u.errorToThrow,u.processingPhase="catch",o=qJ(n,u)}else u.statement.finallyB&&(u.processingPhase="finally",o=tm(n,u));break;case"catch":n.blocks.pop(),u.processingPhase="finally",o=tm(n,u);break;case"finally":n.blocks.pop(),u.processingPhase="postFinally",o=C3(u);break}break;case"try":u.processingPhase="finally",e.finallyB&&(o=tm(n,u));break;case"catch":u.processingPhase="finally",e.finallyB&&(o=tm(n,u));break;case"finally":u.processingPhase="postFinally",o=C3(u);break;case"postFinally":const c=n.tryBlocks.pop();switch(c.exitType){case"break":{const d=Ko(n);if(d===void 0)throw new Error("Missing loop scope");Eo(n),i=d.breakLabel;break}case"continue":{const d=Ko(n);if(d===void 0)throw new Error("Missing loop scope");i=d.continueLabel,Eo(n,!1);break}case"return":i=-1;break}if(c.errorToThrow)throw c.errorToThrow;break}break}case qy:{if(t.guard)Eo(n);else{let u=xs(n);u.isSwitch=!0,n.blocks.push({vars:{}});const c=await nl(e.expr,r,n);let d=-1;for(let p=0;p<e.cases.length;p++){const h=e.cases[p];if(h.caseE===void 0){d=p;break}if(await nl(h.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=dn([...Od(f),Id(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 s5(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 nl(p.expr,t,r)),l(e,p,f,o)}function l(d,f,p,h){if(f.id)s(d,f.id,p,h);else if(f.aDestr)u(d,f.aDestr,p,h);else if(f.oDestr)c(d,f.oDestr,p,h);else throw new Error("Unknown declaration specifier")}function s(d,f,p,h){if(d.vars[f])throw new Error(`Variable ${f} is already declared in the current scope.`);d.vars[f]=p,h&&(d.constVars??(d.constVars=new Set),d.constVars.add(f))}function u(d,f,p,h){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,h):b.aDestr?u(d,b.aDestr,y,h):b.oDestr&&c(d,b.oDestr,y,h)}}function c(d,f,p,h){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,h):b.oDestr?c(d,b.oDestr,y,h):s(d,b.alias??b.id,y,h)}}}function zke(e){const t=new Zf(e);let r=null;try{r=t.parseStatements()}catch(n){if(t.errors.length>0){const o=t.errors[0];Av(new zx(`${o.code}(${o.line}, ${o.column}): ${t.errors[0].text}`,e,o.position))}else throw n}if(!t.isEof){const n=t.getTail();Av(new zx("Invalid tail found",e,e.length-n.length+1))}return r}function Kj(e,t){const r=(e==null?void 0:e.length)??0;if(r===0)return[{type:sa,expr:{type:En,args:[],statement:{type:hs}}}];if(r===1){const i=e[0];if(i.type===gs){if(t){if(i.expr.type===Jt)return[o(i.expr)];if(n(i.expr))return[o(i.expr)]}return i.expr.type===En?[{type:sa,expr:i.expr}]:[{type:sa,expr:{type:En,args:[],statement:e[0]}}]}if(i.type===Yf)return[{type:sa,expr:{type:En,args:[],statement:{type:ps,stmts:[i]}}}];if(i.type===ps)return i.stmts[0].type===gs&&i.stmts[0].expr.type===En?[{type:sa,expr:i.stmts[0].expr}]:[{type:sa,expr:{type:En,args:[],statement:e[0]}}]}if(r>1)return[{type:sa,expr:{type:En,args:[],statement:{type:ps,stmts:e}}}];return e;function n(i){return(i.type===vs||i.type===_d&&i.member.type===Bn)&&(n(i.obj)||i.obj.type===Jt)}function o(i){const a=t.eventArgs?t.eventArgs.map((s,u)=>({type:Jt,name:`__arg@@#__${u}__`})):[];t.eventArgs&&t.eventArgs.forEach((s,u)=>{t.localContext[`__arg@@#__${u}__`]=s});const l={type:En,args:a,statement:{type:gs,expr:{type:hb,obj:i,arguments:[...a]}}};return{type:sa,expr:l}}}async function fFt(e,t,r){const n=Kj(zke(e));return await Yj(n,t,r)}function mFt({node:e,state:t,dispatch:r,lookupAction:n,lookupSyncCallback:o,registerComponentApi:i,onUnmount:a,appContext:l,memoedVarsRef:s}){const u=P0(),c=m.useMemo(()=>Symbol(e.uid),[e.uid]);m.useEffect(()=>()=>{a(c)},[a,c]);const d=m.useCallback(T=>{i(c,T)},[i,c]),f=m.useCallback((T,S)=>n(T,c,S),[n,c]),p=K_(t),h=m.useMemo(()=>qre(t,l,p,s),[l,s,p,t]),v=m.useCallback(T=>{if(T)return o(h(T),c)},[o,c,h]),b=m.useCallback(T=>{r(pFt(c,T))},[r,c]),y=m.useCallback(T=>{r(hFt(c,T))},[r,c]),w=m.useCallback((T,S)=>{r(gFt(c,T,S))},[r,c]),k=m.useCallback(T=>{r(vFt(c,T))},[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:h,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 pFt(e,t){return{type:Bo.LOADER_IN_PROGRESS_CHANGED,payload:{uid:e,inProgress:t}}}function hFt(e,t){return{type:Bo.LOADER_IS_REFETCHING_CHANGED,payload:{uid:e,isRefetching:t}}}function gFt(e,t,r){return{type:Bo.LOADER_LOADED,payload:{uid:e,data:t,pageInfo:r}}}function vFt(e,t){return{type:Bo.LOADER_ERROR,payload:{uid:e,error:t}}}const bFt=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:h,uidInfoRef:v,children:b},y){var J;const{apiBoundContainer:w}=t,k=h?o:n,E=h?c:u,T=So(),{getThemeVar:S}=zr(),A=Zv(),O=Ma(),I=m.useRef({}),L=m.useRef(r);L.current=r;const P=m.useRef({}),[H,j]=m.useTransition(),F=m.useRef(!0),B=m.useRef(new Map);Sn(()=>{for(const X of B.current.values())X()},[a]),m.useEffect(()=>{F.current=!0;const X=B.current;return()=>{F.current=!1;for(const te of X.values())te()}},[]);const{apiInstance:G}=A2(),W=zt(async(X,te,ie,...de)=>{var Te,Ve,Ee;const be=()=>te.description!==void 0&&(ie==null?void 0:ie.eventName)!==void 0;let xe=[];const Ie=()=>{xe.length=0;const je=us({...L.current,...(ie==null?void 0:ie.context)||{}});return je.$this=L.current[te],jke(je,Ce=>{var He;const _e=(He=Ce.pathArray)==null?void 0:He[0];if(_e!=null&&_e.startsWith("$"))throw new Error("Cannot update a read-only variable");xe.push(Ce)})},Ne={...T,getThemeVar:S},Se={appContext:Ne,eventArgs:de,localContext:Ie(),implicitContextGetter:()=>({uid:te,state:L.current,getCurrentState:()=>L.current,dispatch:k,appContext:Ne,apiInstance:G,navigate:A,location:O,lookupAction:(je,Ce,_e={})=>q(je,Ce,{..._e,ephemeral:!0})}),options:{defaultToOptionalMemberAccess:typeof((Te=T.appGlobals)==null?void 0:Te.defaultToOptionalMemberAccess)=="boolean"?T.appGlobals.defaultToOptionalMemberAccess:!0}};try{let je;if(typeof X=="string")P.current[X]||(P.current[X]=Kj(zke(X),Se)),je=P.current[X];else if(Fke(X)){const _e=X.parseId.toString();P.current[_e]||(P.current[_e]=Kj(X.statements,Se)),je=P.current[_e]}else je=[{type:sa,expr:X}];if(!(je!=null&&je.length))return;be()&&k({type:Bo.EVENT_HANDLER_STARTED,payload:{uid:te.description,eventName:ie.eventName}});let Ce=0;if(Se.onStatementCompleted=async _e=>{if(xe.length){Ce=0,xe.forEach(It=>{s(It.pathArray,us(It.newValue),It.target,It.action)});let He=null;const st=new Promise(It=>{He=()=>{It(null)}}),ut=ny();B.current.set(ut,He),j(()=>{l(It=>It+1)}),F.current?await st:await Fv(0),B.current.delete(ut),xe=[]}else Ce++,Ce>100&&(Ce=0,await Fv(0));_e.localContext=Ie()},await Yj(je,Se),be()&&k({type:Bo.EVENT_HANDLER_COMPLETED,payload:{uid:te.description,eventName:ie.eventName}}),(Ee=(Ve=Se.mainThread)==null?void 0:Ve.blocks)!=null&&Ee.length)return Se.mainThread.blocks[Se.mainThread.blocks.length-1].returnValue}catch(je){throw(ie==null?void 0:ie.signError)!==!1&&T.signError(je),be()&&k({type:Bo.EVENT_HANDLER_ERROR,payload:{uid:te.description,eventName:ie.eventName,error:je}}),je}}),z=m.useCallback((X,...te)=>{var de,be;const ie={localContext:us(L.current),appContext:T,eventArgs:te};try{if(RL([{type:sa,expr:X}],ie),(be=(de=ie.mainThread)==null?void 0:de.blocks)!=null&&be.length)return ie.mainThread.blocks[ie.mainThread.blocks.length-1].returnValue}catch(xe){throw console.error(xe),xe}},[T]),V=zt((X,te,ie)=>{var xe;if(Array.isArray(X))throw new Error("Multiple event handlers are not supported");let de,be;if(typeof X=="string")de=`${ie==null?void 0:ie.eventName};${X}`,be=(...Ie)=>W(X,te,ie,...us(Ie));else if(Fke(X))de=`${ie==null?void 0:ie.eventName};${X.parseId}`,be=(...Ie)=>W(X,te,ie,...us(Ie));else if(yFt(X))de=`${ie==null?void 0:ie.eventName};${X.statement.nodeId}`,be=(...Ie)=>W(X,te,ie,...us(Ie));else if(X.type)de=`${ie==null?void 0:ie.eventName};${JSON.stringify(X)}`,be=(...Ie)=>W(X,te,ie,...us(Ie));else throw new Error("Invalid event handler");return ie!=null&&ie.ephemeral||ie!=null&&ie.context?be:((xe=I.current[te])!=null&&xe[de]||(I.current[te]=I.current[te]||{},I.current[te][de]=be),I.current[te][de])}),N=m.useCallback((X,te)=>{var de;const ie=`sync-callback-${X.nodeId}`;return(de=I.current[te])!=null&&de[ie]||(I.current[te]=I.current[te]||{},I.current[te][ie]=yw(be=>(...xe)=>z(be,...xe))),I.current[te][ie](X)},[z]),Y=m.useCallback((X,te)=>{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 N(X,te)}}},[N]),q=m.useCallback((X,te,ie)=>{let de=X;if(!X&&te.description&&(ie!=null&&ie.eventName)){const be=`${te.description}_on${oy(ie==null?void 0:ie.eventName)}`;r[be]&&r[be]._ARROW_EXPR_&&(de=r[be])}if(de)return typeof de=="function"?de:V(de,te,ie)},[r,V]),M=m.useRef(!1);m.useEffect(()=>{if(!t.api||!t.containerUid||M.current)return;M.current=!0;const X={},te=Symbol("$self");Object.entries(t.api).forEach(([ie,de])=>{X[ie]=q(de,te)}),h||E(te,X),c(t.containerUid,X)},[q,t.api,t.containerUid,t.uid,h,c,E]);const K=zt(X=>{delete I.current[X]}),ee=m.useCallback((X,te,ie,de,be)=>{if(typeof X=="string")throw Error("should be resolved for now");const xe=un(X)?X:[X];if(!xe||!xe.length)return null;const Ie=xe.length>1,Ne=xe.map((Se,Te)=>{if(!Se)return;const Ve=Kke({node:Se,state:r,dispatch:k,appContext:T,lookupAction:q,lookupSyncCallback:Y,registerComponentApi:E,renderChild:ee,statePartChanged:s,layoutContext:te,parentRenderContext:ie,memoedVarsRef:p,cleanup:K,uidInfoRef:de});if(Ve===void 0)return;let Ee=Ve;const je=`${Te}_${Se.uid}`;return Ie&&(Z.isValidElement(Ve)?Ee=Z.cloneElement(Ve,{key:je}):Ee=C.jsx(m.Fragment,{children:Ve},je)),Ee});return Ne.length===1?be&&Ne[0]&&m.isValidElement(Ne[0])?Z.cloneElement(Ne[0],{ref:qn(be,Ne[0].ref)}):Ne[0]:Ne},[r,k,T,q,Y,E,s,p,K]);(J=t.props)!=null&&J.debug&&console.log(`Container: ${i}`,{componentState:r,node:t});const ae={},ne=m.useRef({}),ue=t.uses===void 0?v:ne,le=ee(t.children,d==null?void 0:d.current,f,ue,y),pe=xFt({uidInfo:ae,uidInfoRef:ue,loaders:t.loaders,componentState:r,memoedVarsRef:p,dispatch:w?n:k,registerComponentApi:w?u:E,appContext:T,lookupAction:q,lookupSyncCallback:Y,cleanup:K}),fe=C.jsxs(C.Fragment,{children:[pe,b&&m.isValidElement(le)?m.cloneElement(le,null,b):le]});return C.jsx(m.Fragment,{children:fe},t.uid?`${i}>${$t(r,t.uid,T,!0)}`:void 0)}));function xFt({uidInfo:e,uidInfoRef:t,loaders:r=Ar,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:h,appContext:v,registerComponentApi:b,lookupAction:y,lookupSyncCallback:w,cleanup:k,memoedVarsRef:E}){return!f||!LL(f.when,p,v)?null:C.jsx(mFt,{onUnmount:k,node:f,state:p,dispatch:h,registerComponentApi:b,lookupAction:y,lookupSyncCallback:w,memoedVarsRef:E,appContext:v})}}function Fke(e){return e.__PARSED===!0}function yFt(e){return e.type===En}const wFt=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[h,v]=m.useState(0),b=CFt(),y=m.useRef(new Map),w=qo(m.useMemo(()=>kFt(n,t.uses),[t.uses,n])),k=Oke(),E=Fzt(k),[T,S]=m.useReducer(E,rr),[A,O]=m.useState(rr),I=qo(m.useMemo(()=>{const M={...T};for(const K of Object.getOwnPropertySymbols(T)){const ee=T[K];K.description&&(M[K.description]=ee)}if(Reflect.ownKeys(A).length===0)return M;for(const K of Object.getOwnPropertySymbols(A)){const ee=A[K];if(K.description){const ae=K.description;M[ae]={...M[ae]||{},...ee}}M[K]={...M[K],...ee}}return M},[T,A])),L=Wke(w,I,t.contextVars),P=t.scriptCollected;if(P!=null&&P.moduleErrors&&!qp(P.moduleErrors))throw new u5(P.moduleErrors);if(t.scriptError&&!qp(t.scriptError))throw new u5(t.scriptError);const H=K_(T),j=qo({...P==null?void 0:P.functions,...t.functions,...P==null?void 0:P.vars,...t.vars}),F=m.useMemo(()=>{const M={};return Object.entries(j).forEach(([K,ee])=>{c5(ee)&&ee.tree.type===En&&(M[K]=oE(ee.tree,H))}),Mzt(M)},[H,j]),B=Vke(j,F,L,m.useRef(new Map)),G=qo({...B,...L}),W=Vke(j,F,G,y),z=TFt(W,I),V=Wke(w,t.contextVars,z,b),N=m.useCallback((M,K)=>{O(ml(ee=>{ee[M]||(ee[M]={}),Object.entries(K).forEach(([ae,ne])=>{ee[M][ae]!==ne&&(ee[M][ae]=ne)})}))},[]),Y=m.useRef(I),q=m.useCallback((M,K,ee,ae)=>{const ne=M[0];ne in Y.current||ne in W?S({type:Bo.STATE_PART_CHANGED,payload:{path:M,value:K,target:ee,actionType:ae,localVars:W}}):(!t.uses||t.uses.includes(ne))&&o(M,K,ee,ae)},[W,t.uses,o]);return C.jsx(R0,{node:t,location:"container",children:C.jsx(bFt,{resolvedKey:r,node:t,componentState:V,dispatch:S,parentDispatch:a,setVersion:v,version:h,statePartChanged:q,registerComponentApi:N,parentRegisterComponentApi:i,layoutContextRef:s,parentRenderContext:l,memoedVarsRef:y,isImplicit:c,ref:p,uidInfoRef:u,...f,children:d})})})),CFt=()=>{const[e]=gze(),t=UK(),r=Ma(),n=TQ(),o=m.useMemo(()=>{var a;return((a=n==null?void 0:n.linkMap)==null?void 0:a.get(r.pathname))||rr},[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 kFt(e,t){return t?t.length===0?rr:a$e(e,t):e}function Wke(...e){const t=m.useMemo(()=>{let r={};return e.forEach((n=rr)=>{n!==rr&&(r={...r,...n})}),r},[e]);return qo(t)}function TFt(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:ls(n[o])&&ls(i)||Array.isArray(n[o])&&Array.isArray(i)?n[o]=JG(us(n[o]),i):n[o]=i}),n},[e,t]);return qo(r)}function Vke(e=rr,t=rr,r,n){const o=So(),i=K_(r),a=m.useMemo(()=>{const l={};return Object.entries(e).forEach(([s,u])=>{if(s==="$props")l[s]=u;else if(!c5(u)&&typeof u!="string")l[s]=u;else{n.current.has(u)||n.current.set(u,{getDependencies:yw((h,v)=>{if(c5(h))return oE(h.tree,v);const b=b3(h);let y=new Set;return b.forEach(w=>{w.type==="expression"&&(y=new Set([...y,...oE(w.value,v)]))}),Array.from(y)}),obtainValue:yw((h,v,b,y,w,k)=>{try{return c5(h)?Ii(h.tree,{localContext:v,appContext:b,options:{defaultToOptionalMemberAccess:!0}}):$t(v,h,b,y)}catch(E){throw console.log(v),new _Ft(h,E)}},([h,v,b,y,w,k],[E,T,S,A,O,I])=>iy(w,O)&&iy(k,I))});const c={...l,...r};let d=[];t[s]?d=t[s]:(n.current.get(u).getDependencies(u,i).forEach(h=>{t[h]?d.push(...t[h]):d.push(h)}),d=[...new Set(d)]);const f=$_(c,d),p=$_(o,d);l[s]=n.current.get(u).obtainValue(u,c,o,!0,f,p)}}),l},[o,r,t,n,i,e]);return qo(a)}class u5 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(`
|
|
626
|
+
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 Pjt=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"})),Ljt=e=>C.jsx(Pjt,{...e}),Hjt=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 "}))),Njt=e=>C.jsx(Hjt,{...e}),$jt=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"})),Djt={binding:"_binding_14mdd_1"},Bjt=e=>C.jsx($jt,{className:Djt.binding,...e}),jjt=e=>C.jsx(fee,{...e}),Mjt=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"})),zjt=e=>C.jsx(Mjt,{...e}),Fjt=e=>C.jsx(AKe,{...e}),Wjt=e=>C.jsx(cee,{...e}),Vjt=e=>C.jsx(dee,{...e}),Ujt=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"})),qjt=e=>C.jsx(Ujt,{...e}),Gjt=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"})),Yjt=e=>C.jsx(Gjt,{...e}),Kjt=e=>C.jsx(mee,{...e}),Xjt=e=>C.jsx(pjt,{...e}),Qjt=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"})),Zjt={database:"_database_14jkq_1"},Jjt=e=>C.jsx(Qjt,{className:Zjt.database,...e}),eMt=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"})),tMt=e=>C.jsx(eMt,{...e}),rMt=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"})))),Lke=e=>C.jsx(rMt,{...e}),nMt=e=>C.jsx(ojt,{...e}),oMt=e=>C.jsx(ijt,{...e}),iMt=e=>C.jsx(mjt,{...e}),aMt=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"})),lMt=e=>C.jsx(aMt,{...e}),sMt=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"})),uMt=e=>C.jsx(sMt,{...e}),cMt=e=>C.jsx(Wut,{...e}),dMt=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"})),fMt=e=>C.jsx(dMt,{...e}),mMt=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"})),pMt=e=>C.jsx(mMt,{...e}),hMt=e=>C.jsx(djt,{...e}),gMt=e=>C.jsx(BKe,{...e}),vMt=e=>C.jsx(fjt,{...e}),bMt=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"})))),xMt=e=>C.jsx(bMt,{...e});function yMt(e){return Qe({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 wMt=e=>C.jsx(yMt,{...e}),CMt=e=>C.jsx(mee,{...e}),kMt=e=>C.jsx(Ijt,{...e}),TMt=e=>C.jsx(zKe,{...e}),_Mt=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"})))),SMt=e=>C.jsx(_Mt,{...e}),EMt=e=>C.jsx(Ojt,{...e}),AMt=e=>C.jsx(FKe,{...e}),OMt=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"})))),IMt=e=>C.jsx(OMt,{...e}),RMt=e=>C.jsx(Yut,{...e}),PMt=e=>C.jsx(VKe,{...e}),LMt=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"})),HMt=e=>C.jsx(LMt,{...e}),NMt=e=>C.jsx(cjt,{...e}),$Mt=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"})))),DMt=e=>C.jsx($Mt,{...e}),BMt=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"})))),jMt=e=>C.jsx(BMt,{...e}),MMt=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"})),zMt=e=>C.jsx(MMt,{...e}),FMt=e=>C.jsx(pee,{...e}),WMt=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"})),VMt=e=>C.jsx(WMt,{...e}),UMt=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"})),qMt=e=>C.jsx(UMt,{...e}),GMt=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"})),YMt=e=>C.jsx(GMt,{...e}),KMt=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})]}),XMt=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"})]}),QMt=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})]}),ZMt=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"})),JMt=e=>C.jsx(ZMt,{...e}),ezt=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"})))),tzt=e=>C.jsx(ezt,{...e}),rzt=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"})),nzt=e=>C.jsx(rzt,{...e}),ozt=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"})),izt=e=>C.jsx(ozt,{...e}),azt=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"})),lzt=e=>C.jsx(azt,{...e}),szt=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"})),uzt=e=>C.jsx(szt,{...e}),czt=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"})),dzt=e=>C.jsx(czt,{...e}),fzt=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"})))),mzt=e=>C.jsx(fzt,{...e}),pzt=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"})))),hzt=e=>C.jsx(pzt,{...e}),gzt=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"})),vzt=e=>C.jsx(gzt,{...e}),bzt=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"})))),xzt=e=>C.jsx(bzt,{...e});function yzt(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 wzt(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 Czt(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 kzt(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 a5=new Map;function De(e,t){typeof e=="object"?e.forEach(r=>{a5.set(r,{renderer:t})}):a5.set(e.toLowerCase(),{renderer:t})}De("assign",e=>C.jsx(pee,{...e})),De("arrowup",e=>C.jsx(V7t,{...e})),De("arrowleft",e=>C.jsx(F7t,{...e})),De("arrowright",e=>C.jsx(W7t,{...e})),De("pause",e=>C.jsx(G7t,{...e})),De("play",e=>C.jsx(Y7t,{...e})),De("date",e=>C.jsx(Rjt,{...e})),De("hamburger",e=>C.jsx(qut,{...e})),De("send",e=>C.jsx(Kut,{...e})),De("users",e=>C.jsx(XKe,{...e})),De("refresh",e=>C.jsx(WKe,{...e})),De("chevrondown",e=>C.jsx(OKe,{...e})),De("chevronup",e=>C.jsx(IKe,{...e})),De("chevronright",e=>C.jsx(Vjt,{...e})),De("chevronleft",e=>C.jsx(Wjt,{...e})),De("dotmenu",e=>C.jsx(oMt,{...e})),De("dotmenuhorizontal",e=>C.jsx(nMt,{...e})),De("noresult",e=>C.jsx(UKe,{...e})),De("crm",e=>C.jsx(Pke,{...e})),De("chat",e=>C.jsx(Pke,{...e})),De("pencil",e=>C.jsx(sjt,{...e})),De("cube",e=>C.jsx(njt,{...e})),De("apps",e=>C.jsx(fee,{...e})),De("permissions",e=>C.jsx(jKe,{...e})),De("close",e=>C.jsx(QKe,{...e})),De("star",e=>C.jsx(qKe,{...e})),De("help",e=>C.jsx(DKe,{...e})),De("compactlist",e=>C.jsx(Kjt,{...e})),De("copy",e=>C.jsx(Xjt,{...e})),De("move",e=>C.jsx(LKe,{...e})),De("rename",e=>C.jsx(hjt,{...e})),De("hyperlink",e=>C.jsx(vMt,{...e})),De("globe",e=>C.jsx(hMt,{...e})),De("link",e=>C.jsx(wMt,{...e})),De("looseList",e=>C.jsx(kMt,{...e})),De("options",e=>C.jsx(TMt,{...e})),De("search",e=>C.jsx(PMt,{...e})),De("filter",e=>C.jsx(fMt,{...e})),De("trash",e=>C.jsx(NMt,{...e})),De("pen",e=>C.jsx(EMt,{...e})),De("email",e=>C.jsx(iMt,{...e})),De("phone",e=>C.jsx(AMt,{...e})),De("home",e=>C.jsx(gMt,{...e})),De("user",e=>C.jsx(FMt,{...e})),De("exit",e=>C.jsx(DTt,{...e})),De("adduser",e=>C.jsx(KKe,{...e})),De("userminus",e=>C.jsx(YKe,{...e})),De("plus",e=>C.jsx(RMt,{...e})),De("inspect",e=>C.jsx(tzt,{...e})),De("plus-circle",e=>C.jsx(Gut,{...e})),De("filledplus",e=>C.jsx(cMt,{...e})),De("darktolight",e=>C.jsx(uzt,{...e})),De("lighttodark",e=>C.jsx(lzt,{...e})),De("checkmark",e=>C.jsx(Fjt,{...e})),De("valid",e=>C.jsx(EKe,{...e})),De("info",e=>C.jsx(SKe,{...e})),De("error",e=>C.jsx(vle,{...e})),De("warning",e=>C.jsx(gle,{...e})),De("board",e=>C.jsx(jjt,{...e})),De("list",e=>C.jsx(CMt,{...e})),De("folder",e=>C.jsx(pMt,{...e})),De("folder-outline",e=>C.jsx(NKe,{...e})),De("emptyfolder",e=>C.jsx(lMt,{...e})),De("pdf",e=>C.jsx(SMt,{...e})),De("txt",e=>C.jsx(DMt,{...e})),De("doc",e=>C.jsx(Lke,{...e})),De("docx",e=>C.jsx(Lke,{...e})),De("doc-outline",e=>C.jsx(tMt,{...e})),De("conf",e=>C.jsx(J7t,{...e})),De("code",e=>C.jsx(qjt,{...e})),De("codesandbox",e=>C.jsx(Yjt,{...e})),De("box",e=>C.jsx(zjt,{...e})),De(["xls","xlsx"],e=>C.jsx(VMt,{...e})),De(["jpg","jpeg","png","webp","svg","gif","tif","ppt","pptx"],e=>C.jsx(xMt,{...e})),De("unknownfile",e=>C.jsx(jMt,{...e})),De("photo",e=>C.jsx(IMt,{...e})),De("previous",e=>C.jsx(rjt,{...e})),De("next",e=>C.jsx(tjt,{...e})),De("like",e=>C.jsx(Uut,{...e})),De("reply",e=>C.jsx(K7t,{...e})),De("attach",e=>C.jsx(Njt,{...e})),De("attach2",e=>C.jsx(xjt,{...e})),De("emoji",e=>C.jsx(ejt,{...e})),De("message",e=>C.jsx(vjt,{...e})),De("upload",e=>C.jsx(GKe,{...e})),De("split-vertical",e=>C.jsx(kjt,{...e})),De("split-horizontal",e=>C.jsx(Cjt,{...e})),De("swap",e=>C.jsx(ujt,{...e})),De("download",e=>C.jsx(HKe,{...e})),De("note",e=>C.jsx(bjt,{...e})),De("binding",e=>C.jsx(Bjt,{...e})),De("database",e=>C.jsx(Jjt,{...e})),De("unlink",e=>C.jsx(zMt,{...e})),De("api",e=>C.jsx(Ljt,{...e})),De("expression",e=>C.jsx(uMt,{...e})),De("chat",e=>C.jsx(U7t,{...e})),De("hash",e=>C.jsx(q7t,{...e})),De("drive",e=>C.jsx($Ke,{...e})),De("lock",e=>C.jsx(MKe,{...e})),De("start",e=>C.jsx(yjt,{...e})),De("stop",e=>C.jsx(wjt,{...e})),De("restart",e=>C.jsx(Sjt,{...e})),De("duplicate",e=>C.jsx(Ajt,{...e})),De("connect",e=>C.jsx(BTt,{...e})),De("cog",e=>C.jsx(Ejt,{...e})),De("sun",e=>C.jsx(Tjt,{...e})),De("moon",e=>C.jsx(nzt,{...e})),De("stars",e=>C.jsx(izt,{...e})),De("share",e=>C.jsx(HMt,{...e})),De("new-window",e=>C.jsx(cpe,{...e})),De("paint",e=>C.jsx(_jt,{...e})),De("palette",e=>C.jsx(gjt,{...e})),De("trending-up",e=>C.jsx(qMt,{...e})),De("trending-down",e=>C.jsx(YMt,{...e})),De("trending-level",e=>C.jsx(JMt,{...e})),De("sortasc",e=>C.jsx(KMt,{...e})),De("sortdesc",e=>C.jsx(XMt,{...e})),De("nosort",e=>C.jsx(QMt,{...e})),De("admonition_info",e=>C.jsx(dzt,{...e})),De("admonition_warning",e=>C.jsx(mzt,{...e})),De("admonition_danger",e=>C.jsx(hzt,{...e})),De("admonition_note",e=>C.jsx(vzt,{...e})),De("admonition_tip",e=>C.jsx(xzt,{...e})),De("arrowdown",e=>C.jsx(z7t,{...e})),De("square",e=>C.jsx(Z7t,{...e})),De("squarehalf",e=>C.jsx(Q7t,{...e})),De("squarefill",e=>C.jsx(X7t,{...e})),De("table-insert-row",e=>C.jsx(yzt,{...e})),De("table-delete-row",e=>C.jsx(wzt,{...e})),De("table-insert-column",e=>C.jsx(Czt,{...e})),De("table-delete-column",e=>C.jsx(kzt,{...e})),De("eye",e=>C.jsx(ljt,{...e})),De("eye-off",e=>C.jsx(ajt,{...e}));function Tzt({children:e}){const t=m.useCallback(()=>Array.from(a5.keys()),[]),r=m.useCallback(u=>a5.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 h={name:u,attributes:f};o(v=>({...v,[u]:h}))},[]),s=m.useMemo(()=>({getRegisteredIconNames:t,lookupIconRenderer:r,ensureCustomSvgIcon:l,customSvgs:n}),[n,l,t,r]);return C.jsxs(SK.Provider,{value:s,children:[e,C.jsx("svg",{style:{display:"none"},ref:a})]})}const _zt="0.9.87",Hke={capitalize:JLe,pluralize:d7e,defaultTo:CNe,toHashObject:f7e,findByField:m7e,distinct:p7e};function Szt(e){return(e?new Date(e):new Date).toJSON()}function Nke(e){return new Date(e).toLocaleDateString()}function Ezt(e){return new Date(e).toLocaleString()}function Azt(e){return new Date(e).toLocaleTimeString()}function Ozt(e){return gd(new Date(e),"H:m")}function Izt(e){return new Date(e).toLocaleDateString([],{month:"numeric",day:"2-digit"})}function $ke(e){return e?new Date(e):new Date}function Rzt(e,t,r){return e?r7e(e,t,r):"-"}function Pzt(e){return e?H_(new Date(e))?new Date(e).toLocaleTimeString():LBe(new Date(e))?`${LDe(new Date(e),new Date)}`:new Date(e).toLocaleString():"-"}function Lzt(e){return e?H_(new Date(e))?"Today":mP(new Date(e))?"Yesterday":new Date(e).toLocaleDateString():"-"}function Hzt(e){return H_(new Date(e))}function Nzt(e){return mP(new Date(e))}function $zt(e){return NBe(new Date(e))}function Dzt(e,t=!1){const r=new Date,n=new Date(e),o=r.getTime()-n.getTime();if(o<0)return Nke(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 h=i===1?f.second.singular:f.second.plural;return`${i} ${h} ago`}if(a<60){const h=a===1?f.minute.singular:f.minute.plural;return`${a} ${h} ago`}if(H_(n)){const h=l===1?f.hour.singular:f.hour.plural;return`${l} ${h} ago`}if(mP(n))return"yesterday";if(s<7){const h=s===1?f.day.singular:f.day.plural;return`${s} ${h} ago`}if(u<4){const h=u===1?f.week.singular:f.week.plural;return`${u} ${h} ago`}if(c<12){const h=c===1?f.month.singular:f.month.plural;return`${c} ${h} ago`}const p=d===1?f.year.singular:f.year.plural;return`${d} ${p} ago`}const Dke={isoDateString:Szt,formatDate:Nke,formatDateTime:Ezt,formatTime:Azt,formatTimeWithoutSeconds:Ozt,formatDateWithoutYear:Izt,getDate:$ke,getDateUntilNow:Rzt,smartFormatDateTime:Pzt,smartFormatDate:Lzt,isToday:Hzt,isYesterday:Nzt,isTomorrow:$zt,differenceInMinutes:A$e,isSameDay:E_,isThisYear:HBe,formatHumanElapsedTime:Dzt};function Bzt(e,t){if(e.length===0)return 0;const n=Bke(e)/e.length;return t?Number(n.toFixed(t)):n}function Bke(e){return e.reduce((t,r)=>t+r,0)}const jzt={avg:Bzt,sum:Bke};var Bo=(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))(Bo||{});function Mzt(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 zzt=100;function Fzt(e){const t=e.collectStateTransitions;let r,n;return ml((o,i)=>{const{uid:a}=i.payload;if(a===void 0&&i.type!==Bo.STATE_PART_CHANGED)return console.error("uid not provided for control component",{state:o,action:i}),o;if(t)try{r=us(o[a])}catch(s){console.error("Error while cloning previous value",s)}switch(i.type){case Bo.LOADER_IN_PROGRESS_CHANGED:{o[a]={...o[a],inProgress:i.payload.inProgress},l(o[a]);break}case Bo.LOADER_IS_REFETCHING_CHANGED:{o[a]={...o[a],isRefetching:i.payload.isRefetching},l(o[a]);break}case Bo.LOADER_LOADED:{const{data:s,pageInfo:u}=i.payload;o[a]={value:s,byId:Array.isArray(s)?UNe(s,c=>c.$id):void 0,inProgress:!1,loaded:s!==void 0,pageInfo:u},l(o[a]);break}case Bo.LOADER_ERROR:{const{error:s}=i.payload;o[a]={...o[a],error:s,inProgress:!1,loaded:!0},l(o[a]);break}case Bo.EVENT_HANDLER_STARTED:{const{eventName:s}=i.payload,u=`${s}InProgress`;o[a]={...o[a],[u]:!0},l(o[a]);break}case Bo.EVENT_HANDLER_COMPLETED:{const{eventName:s}=i.payload,u=`${s}InProgress`;o[a]={...o[a],[u]:!1},l(o[a]);break}case Bo.EVENT_HANDLER_ERROR:{const{eventName:s}=i.payload,u=`${s}InProgress`;o[a]={...o[a],[u]:!1},l(o[a]);break}case Bo.COMPONENT_STATE_CHANGED:{const{state:s}=i.payload;o[a]={...o[a],...s},l(o[a]);break}case Bo.STATE_PART_CHANGED:{const{path:s,value:u,target:c,actionType:d,localVars:f}=i.payload;if(d==="unset")x$e(o,s);else{let p=f;d$e(o,s,u,(h,v,b)=>{if(p=p==null?void 0:p[v],h===void 0&&p===void 0&&ls(c))return Object(h)}),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>=zzt&&e.stateTransitions.shift(),e.stateTransitions.push(s))}function l(s){if(t)try{n=us(s)}catch(u){console.error("Error while cloning next value",u)}}})}function jke(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,jke(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 Wzt(e,t,r){const n=lf.get(e);return n?(t.unshift(r),n):e}const lf=new Map;lf.set(Array.prototype.filter,Uzt),lf.set(Array.prototype.forEach,qzt),lf.set(Array.prototype.map,Gzt),lf.set(Array.prototype.every,Yzt),lf.set(Array.prototype.findIndex,Xzt),lf.set(Array.prototype.find,Kzt),lf.set(Array.prototype.flatMap,Qzt),lf.set(Array.prototype.some,Vzt);async function Vzt(e,t){const r=await Promise.all(e.map(t));return e.some((n,o)=>r[o])}async function Uzt(e,t){const r=await Promise.all(e.map(t));return e.filter((n,o)=>r[o])}async function qzt(e,t){for(let r=0;r<e.length;r++)await t(e[r],r,e)}async function Gzt(e,t){const r=[];for(let n=0;n<e.length;n++)r.push(await t(e[n],n,e));return r}async function Yzt(e,t){const r=await Promise.all(e.map(t));return r.every((n,o)=>r[o])}async function Kzt(e,t){const r=await Promise.all(e.map(t));return e.find((n,o)=>r[o])}async function Xzt(e,t){const r=await Promise.all(e.map(t));return e.findIndex((n,o)=>r[o])}async function Qzt(e,t){const r=await Promise.all(e.map(t));return e.flatMap((n,o)=>r[o])}async function nl(e,t,r){const n=[];return rw(t),r??(r=t.mainThread),await Gj(n,e,t,r??t.mainThread)}async function Zzt(e,t,r,...n){if(e.type!==En)throw new Error("executeArrowExpression expects an 'ArrowExpression' object.");return await(await l5(Gj,e))(e.args,t,r??t.mainThread,...n)}async function Gj(e,t,r,n){r.options||(r.options={defaultToOptionalMemberAccess:!0});const o=Gj;try{switch(t.type){case i3:return cFt(o,e,t,r,n);case Bn:return PJ(e,t,n);case Jt:return LJ(e,t,r,n);case vs:return await Jzt(o,e,t,r,n);case _d:return await eFt(o,e,t,r,n);case mu:return await tFt(o,e,t,r,n);case pu:return await rFt(o,e,t,r,n);case hu:return await nFt(o,e,t,r,n);case Gy:return await oFt(o,e,t,r,n);case ci:return await iFt(o,e,t,r,n);case Yy:return await aFt(o,e,t,r,n);case Sd:return await lFt(o,e,t,r,n);case uh:case Ky:return await sFt(o,e,t,r,n);case hb:return await uFt(o,e,t,r,n);case En:return jJ(e,t,n);case di: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 Jzt(e,t,r,n,o){return await e(t,r.obj,n,o),await Sa(r.obj,o),y3(t,r,n,o)}async function eFt(e,t,r,n,o){return await e(t,r.obj,n,o),await Sa(r.obj,o),await e(t,r.member,n,o),t.pop(),await Sa(r.member,o),HJ(t,r,n,o)}async function tFt(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 An(l,{value:s},o),t.pop(),s}),a=i[i.length-1];return t.push(a),a}async function rFt(e,t,r,n,o){const i=[];for(const a of r.items)if(a.type===di){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 An(r,{value:i},o),t.push(i),i}async function nFt(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 Bn:l=a[0].value;break;case Jt: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 An(r,{value:i},o),t.push(i),i}async function oFt(e,t,r,n,o){return await e(t,r.expr,n,o),t.pop(),await Sa(r.expr,o),NJ(r,t,n,o)}async function iFt(e,t,r,n,o){await e(t,r.left,n,o),t.pop();const i=await Sa(r.left,o);return r.op==="&&"&&!i?(An(r,{value:i},o),i):r.op==="||"&&i?(An(r,{value:i},o),i):(await e(t,r.right,n,o),t.pop(),await Sa(r.right,o),$J(r,t,n,o))}async function aFt(e,t,r,n,o){await e(t,r.cond,n,o),t.pop();const i=await Sa(r.cond,o),a=await e(t,i?r.thenE:r.elseE,n,o);return An(r,{value:a},o),a}async function lFt(e,t,r,n,o){const i=r.leftValue,a=Jf(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 Sa(i,o),await e(t,r.expr,n,o),t.pop(),await Sa(r.expr,o);const s=DJ(t,r,n,o);return l&&n.onDidUpdate&&n.onDidUpdate(a,a.name,"assignment"),s}async function sFt(e,t,r,n,o){const i=Jf(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 Sa(r.expr,o);const l=BJ(t,r,n,o);return a&&n.onDidUpdate&&n.onDidUpdate(i,i.name,"pre-post"),l}async function uFt(e,t,r,n,o){var h,v;let i,a=null;if(r.obj.type===vs){const b=await e(t,r.obj.obj,n,o);await Sa(r.obj.obj,o),i=y3(t,r.obj,n,o),r.obj.obj.type===Jt&&(b!=null&&b._SUPPORT_IMPLICIT_CONTEXT)&&(a=b)}else await e(t,r.obj,n,o),i=await Sa(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 l5(e,i);else if(r.obj.type===En)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===di){await e([],y.expr,n,o);const w=await Sa(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===En){const w=await l5(e,y),k=async(...E)=>w(y.args,n,o,...E);l.push(k)}else{await e([],y,n,o);const w=await Sa(y,o);if(w!=null&&w._ARROW_EXPR_){const k=await l5(e,w),E=(...T)=>k(w.args,n,o,...T);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=IJ(i);if(s.banned)throw new Error(`Function ${((h=s.func)==null?void 0:h.name)??"unknown"} is not allowed to call. ${(s==null?void 0:s.help)??""}`);const u=t.length>0?t.pop():n.localContext;i=Wzt(i,l,u);const c=Jf(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 Mke(f);return d&&n.onDidUpdate&&n.onDidUpdate(c,c.name,"function-call"),An(r,{value:p},o),t.push(p),p}async function l5(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 h;switch(p.type){case Jt:{h={type:El,id:p.name};break}case ch:{h={type:El,id:p.id,aDestr:p.aDestr,oDestr:p.oDestr};break}case di:{s=!0,h={type:El,id:p.expr.name};break}default:throw new Error("Unexpected arrow argument specification")}if(h)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 s5(a,n,o,[h],!1,!0,b)}else{let v=r[f+3];v!=null&&v._EXPRESSION_&&(v=await e([],v,n,o)),await s5(a,n,o,[h],!1,!0,v)}}let u,c;switch(t.statement.type){case hs:c=[];break;case gs:c=[{type:Yf,expr:t.statement.expr}];break;case ps:c=t.statement.stmts;break;default:throw new Error(`Arrow expression with a body of '${t.statement.type}' is not supported yet.`)}await Yj(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 Mke(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(RJ(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(ls(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 cFt(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 Sa(r.segments[a],o);i[a]=l}return zJ(i)}async function Sa(e,t){const r=gu(e,t),n=await Mke(r==null?void 0:r.value);return An(e,{...r,value:n},t),n}async function Yj(e,t,r){var a,l,s;r||(r=rw(t)),k3(r,e);const n=new FJ;n.push(dn(Od(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 dFt(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 ic?Av(d):Av(new Fx(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 dFt(e,t,r,n){let o=[],i;switch(e.type){case sh:break;case jy:if(n!==r.mainThread)throw new Error("'var' declarations are not allowed within functions");break;case hs:break;case ps:if(e.stmts.length===0)break;n.blocks??(n.blocks=[]),n.blocks.push({vars:{}}),k3(n,e.stmts),o=dn([...Od(e.stmts),tw()]);break;case gs:const a=await nl(e.expr,r,n);n.blocks&&n.blocks.length!==0&&(n.blocks[n.blocks.length-1].returnValue=a);break;case sa:const l=await Zzt(e.expr,r,n,...r.eventArgs??[]);n.blocks&&n.blocks.length!==0&&(n.blocks[n.blocks.length-1].returnValue=l);break;case Dy:{const u=fi(n);if(!u)throw new Error("Missing block scope");await s5(u,r,n,e.decls);break}case By:{const u=fi(n);if(!u)throw new Error("Missing block scope");await s5(u,r,n,e.decls,!0);break}case My:!!await nl(e.cond,r,n)?o=w3(e.thenB):e.elseB&&(o=w3(e.elseB));break;case Yf:{if(fi(n)===void 0)throw new Error("Return requires a block scope");if(n.returnValue=e.expr?await nl(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=em(n).tryLabel}else i=-1;break}case zy:{let u=t.guard?Ko(n):xs(n);!!await nl(e.cond,r,n)?o=wb(u,e,n.breakLabelValue):Eo(n);break}case Fy:{if(!t.guard){o=wb(xs(n),e,n.breakLabelValue);break}!!await nl(e.cond,r,n)?o=wb(Ko(n),e,n.breakLabelValue):Eo(n);break}case o3:{if(!n.loops||n.loops.length===0)throw new Error("Missing loop scope");let u;for(;n.loops.length>0&&(u=Ko(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=em(n).tryLabel}else i=u.continueLabel,Eo(n,!1);break}case n3:{const u=Ko(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=em(n).tryLabel}else i=u.breakLabel,Eo(n);break}case Wy:if(t.guard)if(!e.cond||await nl(e.cond,r,n)){const u=Ko(n);if(e.upd){const c={statement:{type:gs,nodeId:Qf(),expr:e.upd}};o=dn([{statement:e.body},c,{statement:e,execInfo:t}])}else o=dn([{statement:e.body},{statement:e,execInfo:t}]);u.breakLabel=n.breakLabelValue??-1,u.continueLabel=o[1].label}else Eo(n);else{xs(n,1),n.blocks??(n.blocks=[]),n.blocks.push({vars:{}});const u=Id(e);e.init?o=dn([{statement:e.init},u]):o=dn([u])}break;case Td: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:Jt,name:e.id.name},op:"=",expr:{type:Bn,value:u}};await nl(d,r,n);break}case"const":case"let":{const d=fi(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=Ko(n);o=dn([{statement:e.body},{statement:e,execInfo:t}]),c.breakLabel=n.breakLabelValue??-1,c.continueLabel=o[1].label}else Eo(n)}else{const u=await nl(e.expr,r,n);if(u==null)break;xs(n,1),n.blocks??(n.blocks=[]),n.blocks.push({vars:{}}),o=dn([{statement:e,execInfo:{guard:!0,keys:Object.keys(u),keyIndex:0}}])}break;case Kf: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){Eo(n);break}const c=u.value;switch(e.varB){case"none":{const f={type:Sd,leftValue:{type:Jt,name:e.id.name},op:"=",expr:{type:Bn,value:c}};await nl(f,r,n);break}case"const":case"let":{const f=fi(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=Ko(n);o=dn([{statement:e.body},{statement:e,execInfo:t}]),d.breakLabel=n.breakLabelValue??-1,d.continueLabel=o[1].label}else{const u=await nl(e.expr,r,n);if(u==null||typeof u[Symbol.iterator]!="function")throw new Error("Object in for..of is not iterable");xs(n,1),n.blocks??(n.blocks=[]),n.blocks.push({vars:{}}),o=dn([{statement:e,execInfo:{guard:!0,iterator:u[Symbol.iterator]()}}])}break;case Vy:throw new ic(await nl(e.expr,r,n));case Uy:{if(!t.guard){o=UJ(n,VJ(n,e));break}const u=em(n);switch(u.processingPhase){case"error":switch(u.errorSource){case"try":if(n.blocks.pop(),e.catchB){if(u.statement.catchV){const d=fi(n);d.vars[u.statement.catchV.name]=u.errorToThrow instanceof ic?u.errorToThrow.errorObject:u.errorToThrow}delete u.errorToThrow,u.processingPhase="catch",o=qJ(n,u)}else u.statement.finallyB&&(u.processingPhase="finally",o=tm(n,u));break;case"catch":n.blocks.pop(),u.processingPhase="finally",o=tm(n,u);break;case"finally":n.blocks.pop(),u.processingPhase="postFinally",o=C3(u);break}break;case"try":u.processingPhase="finally",e.finallyB&&(o=tm(n,u));break;case"catch":u.processingPhase="finally",e.finallyB&&(o=tm(n,u));break;case"finally":u.processingPhase="postFinally",o=C3(u);break;case"postFinally":const c=n.tryBlocks.pop();switch(c.exitType){case"break":{const d=Ko(n);if(d===void 0)throw new Error("Missing loop scope");Eo(n),i=d.breakLabel;break}case"continue":{const d=Ko(n);if(d===void 0)throw new Error("Missing loop scope");i=d.continueLabel,Eo(n,!1);break}case"return":i=-1;break}if(c.errorToThrow)throw c.errorToThrow;break}break}case qy:{if(t.guard)Eo(n);else{let u=xs(n);u.isSwitch=!0,n.blocks.push({vars:{}});const c=await nl(e.expr,r,n);let d=-1;for(let p=0;p<e.cases.length;p++){const h=e.cases[p];if(h.caseE===void 0){d=p;break}if(await nl(h.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=dn([...Od(f),Id(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 s5(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 nl(p.expr,t,r)),l(e,p,f,o)}function l(d,f,p,h){if(f.id)s(d,f.id,p,h);else if(f.aDestr)u(d,f.aDestr,p,h);else if(f.oDestr)c(d,f.oDestr,p,h);else throw new Error("Unknown declaration specifier")}function s(d,f,p,h){if(d.vars[f])throw new Error(`Variable ${f} is already declared in the current scope.`);d.vars[f]=p,h&&(d.constVars??(d.constVars=new Set),d.constVars.add(f))}function u(d,f,p,h){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,h):b.aDestr?u(d,b.aDestr,y,h):b.oDestr&&c(d,b.oDestr,y,h)}}function c(d,f,p,h){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,h):b.oDestr?c(d,b.oDestr,y,h):s(d,b.alias??b.id,y,h)}}}function zke(e){const t=new Zf(e);let r=null;try{r=t.parseStatements()}catch(n){if(t.errors.length>0){const o=t.errors[0];Av(new zx(`${o.code}(${o.line}, ${o.column}): ${t.errors[0].text}`,e,o.position))}else throw n}if(!t.isEof){const n=t.getTail();Av(new zx("Invalid tail found",e,e.length-n.length+1))}return r}function Kj(e,t){const r=(e==null?void 0:e.length)??0;if(r===0)return[{type:sa,expr:{type:En,args:[],statement:{type:hs}}}];if(r===1){const i=e[0];if(i.type===gs){if(t){if(i.expr.type===Jt)return[o(i.expr)];if(n(i.expr))return[o(i.expr)]}return i.expr.type===En?[{type:sa,expr:i.expr}]:[{type:sa,expr:{type:En,args:[],statement:e[0]}}]}if(i.type===Yf)return[{type:sa,expr:{type:En,args:[],statement:{type:ps,stmts:[i]}}}];if(i.type===ps)return i.stmts[0].type===gs&&i.stmts[0].expr.type===En?[{type:sa,expr:i.stmts[0].expr}]:[{type:sa,expr:{type:En,args:[],statement:e[0]}}]}if(r>1)return[{type:sa,expr:{type:En,args:[],statement:{type:ps,stmts:e}}}];return e;function n(i){return(i.type===vs||i.type===_d&&i.member.type===Bn)&&(n(i.obj)||i.obj.type===Jt)}function o(i){const a=t.eventArgs?t.eventArgs.map((s,u)=>({type:Jt,name:`__arg@@#__${u}__`})):[];t.eventArgs&&t.eventArgs.forEach((s,u)=>{t.localContext[`__arg@@#__${u}__`]=s});const l={type:En,args:a,statement:{type:gs,expr:{type:hb,obj:i,arguments:[...a]}}};return{type:sa,expr:l}}}async function fFt(e,t,r){const n=Kj(zke(e));return await Yj(n,t,r)}function mFt({node:e,state:t,dispatch:r,lookupAction:n,lookupSyncCallback:o,registerComponentApi:i,onUnmount:a,appContext:l,memoedVarsRef:s}){const u=P0(),c=m.useMemo(()=>Symbol(e.uid),[e.uid]);m.useEffect(()=>()=>{a(c)},[a,c]);const d=m.useCallback(T=>{i(c,T)},[i,c]),f=m.useCallback((T,S)=>n(T,c,S),[n,c]),p=K_(t),h=m.useMemo(()=>qre(t,l,p,s),[l,s,p,t]),v=m.useCallback(T=>{if(T)return o(h(T),c)},[o,c,h]),b=m.useCallback(T=>{r(pFt(c,T))},[r,c]),y=m.useCallback(T=>{r(hFt(c,T))},[r,c]),w=m.useCallback((T,S)=>{r(gFt(c,T,S))},[r,c]),k=m.useCallback(T=>{r(vFt(c,T))},[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:h,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 pFt(e,t){return{type:Bo.LOADER_IN_PROGRESS_CHANGED,payload:{uid:e,inProgress:t}}}function hFt(e,t){return{type:Bo.LOADER_IS_REFETCHING_CHANGED,payload:{uid:e,isRefetching:t}}}function gFt(e,t,r){return{type:Bo.LOADER_LOADED,payload:{uid:e,data:t,pageInfo:r}}}function vFt(e,t){return{type:Bo.LOADER_ERROR,payload:{uid:e,error:t}}}const bFt=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:h,uidInfoRef:v,children:b},y){var J;const{apiBoundContainer:w}=t,k=h?o:n,E=h?c:u,T=So(),{getThemeVar:S}=zr(),A=Zv(),O=Ma(),I=m.useRef({}),L=m.useRef(r);L.current=r;const P=m.useRef({}),[H,j]=m.useTransition(),F=m.useRef(!0),B=m.useRef(new Map);Sn(()=>{for(const X of B.current.values())X()},[a]),m.useEffect(()=>{F.current=!0;const X=B.current;return()=>{F.current=!1;for(const te of X.values())te()}},[]);const{apiInstance:G}=A2(),W=zt(async(X,te,ie,...de)=>{var Te,Ve,Ee;const be=()=>te.description!==void 0&&(ie==null?void 0:ie.eventName)!==void 0;let xe=[];const Ie=()=>{xe.length=0;const je=us({...L.current,...(ie==null?void 0:ie.context)||{}});return je.$this=L.current[te],jke(je,Ce=>{var He;const _e=(He=Ce.pathArray)==null?void 0:He[0];if(_e!=null&&_e.startsWith("$"))throw new Error("Cannot update a read-only variable");xe.push(Ce)})},Ne={...T,getThemeVar:S},Se={appContext:Ne,eventArgs:de,localContext:Ie(),implicitContextGetter:()=>({uid:te,state:L.current,getCurrentState:()=>L.current,dispatch:k,appContext:Ne,apiInstance:G,navigate:A,location:O,lookupAction:(je,Ce,_e={})=>q(je,Ce,{..._e,ephemeral:!0})}),options:{defaultToOptionalMemberAccess:typeof((Te=T.appGlobals)==null?void 0:Te.defaultToOptionalMemberAccess)=="boolean"?T.appGlobals.defaultToOptionalMemberAccess:!0}};try{let je;if(typeof X=="string")P.current[X]||(P.current[X]=Kj(zke(X),Se)),je=P.current[X];else if(Fke(X)){const _e=X.parseId.toString();P.current[_e]||(P.current[_e]=Kj(X.statements,Se)),je=P.current[_e]}else je=[{type:sa,expr:X}];if(!(je!=null&&je.length))return;be()&&k({type:Bo.EVENT_HANDLER_STARTED,payload:{uid:te.description,eventName:ie.eventName}});let Ce=0;if(Se.onStatementCompleted=async _e=>{if(xe.length){Ce=0,xe.forEach(It=>{s(It.pathArray,us(It.newValue),It.target,It.action)});let He=null;const st=new Promise(It=>{He=()=>{It(null)}}),ut=ny();B.current.set(ut,He),j(()=>{l(It=>It+1)}),F.current?await st:await Fv(0),B.current.delete(ut),xe=[]}else Ce++,Ce>100&&(Ce=0,await Fv(0));_e.localContext=Ie()},await Yj(je,Se),be()&&k({type:Bo.EVENT_HANDLER_COMPLETED,payload:{uid:te.description,eventName:ie.eventName}}),(Ee=(Ve=Se.mainThread)==null?void 0:Ve.blocks)!=null&&Ee.length)return Se.mainThread.blocks[Se.mainThread.blocks.length-1].returnValue}catch(je){throw(ie==null?void 0:ie.signError)!==!1&&T.signError(je),be()&&k({type:Bo.EVENT_HANDLER_ERROR,payload:{uid:te.description,eventName:ie.eventName,error:je}}),je}}),z=m.useCallback((X,...te)=>{var de,be;const ie={localContext:us(L.current),appContext:T,eventArgs:te};try{if(RL([{type:sa,expr:X}],ie),(be=(de=ie.mainThread)==null?void 0:de.blocks)!=null&&be.length)return ie.mainThread.blocks[ie.mainThread.blocks.length-1].returnValue}catch(xe){throw console.error(xe),xe}},[T]),V=zt((X,te,ie)=>{var xe;if(Array.isArray(X))throw new Error("Multiple event handlers are not supported");let de,be;if(typeof X=="string")de=`${ie==null?void 0:ie.eventName};${X}`,be=(...Ie)=>W(X,te,ie,...us(Ie));else if(Fke(X))de=`${ie==null?void 0:ie.eventName};${X.parseId}`,be=(...Ie)=>W(X,te,ie,...us(Ie));else if(yFt(X))de=`${ie==null?void 0:ie.eventName};${X.statement.nodeId}`,be=(...Ie)=>W(X,te,ie,...us(Ie));else if(X.type)de=`${ie==null?void 0:ie.eventName};${JSON.stringify(X)}`,be=(...Ie)=>W(X,te,ie,...us(Ie));else throw new Error("Invalid event handler");return ie!=null&&ie.ephemeral||ie!=null&&ie.context?be:((xe=I.current[te])!=null&&xe[de]||(I.current[te]=I.current[te]||{},I.current[te][de]=be),I.current[te][de])}),N=m.useCallback((X,te)=>{var de;const ie=`sync-callback-${X.nodeId}`;return(de=I.current[te])!=null&&de[ie]||(I.current[te]=I.current[te]||{},I.current[te][ie]=yw(be=>(...xe)=>z(be,...xe))),I.current[te][ie](X)},[z]),Y=m.useCallback((X,te)=>{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 N(X,te)}}},[N]),q=m.useCallback((X,te,ie)=>{let de=X;if(!X&&te.description&&(ie!=null&&ie.eventName)){const be=`${te.description}_on${oy(ie==null?void 0:ie.eventName)}`;r[be]&&r[be]._ARROW_EXPR_&&(de=r[be])}if(de)return typeof de=="function"?de:V(de,te,ie)},[r,V]),M=m.useRef(!1);m.useEffect(()=>{if(!t.api||!t.containerUid||M.current)return;M.current=!0;const X={},te=Symbol("$self");Object.entries(t.api).forEach(([ie,de])=>{X[ie]=q(de,te)}),h||E(te,X),c(t.containerUid,X)},[q,t.api,t.containerUid,t.uid,h,c,E]);const K=zt(X=>{delete I.current[X]}),ee=m.useCallback((X,te,ie,de,be)=>{if(typeof X=="string")throw Error("should be resolved for now");const xe=un(X)?X:[X];if(!xe||!xe.length)return null;const Ie=xe.length>1,Ne=xe.map((Se,Te)=>{if(!Se)return;const Ve=Kke({node:Se,state:r,dispatch:k,appContext:T,lookupAction:q,lookupSyncCallback:Y,registerComponentApi:E,renderChild:ee,statePartChanged:s,layoutContext:te,parentRenderContext:ie,memoedVarsRef:p,cleanup:K,uidInfoRef:de});if(Ve===void 0)return;let Ee=Ve;const je=`${Te}_${Se.uid}`;return Ie&&(Z.isValidElement(Ve)?Ee=Z.cloneElement(Ve,{key:je}):Ee=C.jsx(m.Fragment,{children:Ve},je)),Ee});return Ne.length===1?be&&Ne[0]&&m.isValidElement(Ne[0])?Z.cloneElement(Ne[0],{ref:qn(be,Ne[0].ref)}):Ne[0]:Ne},[r,k,T,q,Y,E,s,p,K]);(J=t.props)!=null&&J.debug&&console.log(`Container: ${i}`,{componentState:r,node:t});const ae={},ne=m.useRef({}),ue=t.uses===void 0?v:ne,le=ee(t.children,d==null?void 0:d.current,f,ue,y),pe=xFt({uidInfo:ae,uidInfoRef:ue,loaders:t.loaders,componentState:r,memoedVarsRef:p,dispatch:w?n:k,registerComponentApi:w?u:E,appContext:T,lookupAction:q,lookupSyncCallback:Y,cleanup:K}),fe=C.jsxs(C.Fragment,{children:[pe,b&&m.isValidElement(le)?m.cloneElement(le,null,b):le]});return C.jsx(m.Fragment,{children:fe},t.uid?`${i}>${$t(r,t.uid,T,!0)}`:void 0)}));function xFt({uidInfo:e,uidInfoRef:t,loaders:r=Ar,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:h,appContext:v,registerComponentApi:b,lookupAction:y,lookupSyncCallback:w,cleanup:k,memoedVarsRef:E}){return!f||!LL(f.when,p,v)?null:C.jsx(mFt,{onUnmount:k,node:f,state:p,dispatch:h,registerComponentApi:b,lookupAction:y,lookupSyncCallback:w,memoedVarsRef:E,appContext:v})}}function Fke(e){return e.__PARSED===!0}function yFt(e){return e.type===En}const wFt=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[h,v]=m.useState(0),b=CFt(),y=m.useRef(new Map),w=qo(m.useMemo(()=>kFt(n,t.uses),[t.uses,n])),k=Oke(),E=Fzt(k),[T,S]=m.useReducer(E,rr),[A,O]=m.useState(rr),I=qo(m.useMemo(()=>{const M={...T};for(const K of Object.getOwnPropertySymbols(T)){const ee=T[K];K.description&&(M[K.description]=ee)}if(Reflect.ownKeys(A).length===0)return M;for(const K of Object.getOwnPropertySymbols(A)){const ee=A[K];if(K.description){const ae=K.description;M[ae]={...M[ae]||{},...ee}}M[K]={...M[K],...ee}}return M},[T,A])),L=Wke(w,I,t.contextVars),P=t.scriptCollected;if(P!=null&&P.moduleErrors&&!qp(P.moduleErrors))throw new u5(P.moduleErrors);if(t.scriptError&&!qp(t.scriptError))throw new u5(t.scriptError);const H=K_(T),j=qo({...P==null?void 0:P.functions,...t.functions,...P==null?void 0:P.vars,...t.vars}),F=m.useMemo(()=>{const M={};return Object.entries(j).forEach(([K,ee])=>{c5(ee)&&ee.tree.type===En&&(M[K]=oE(ee.tree,H))}),Mzt(M)},[H,j]),B=Vke(j,F,L,m.useRef(new Map)),G=qo({...B,...L}),W=Vke(j,F,G,y),z=TFt(W,I),V=Wke(w,t.contextVars,z,b),N=m.useCallback((M,K)=>{O(ml(ee=>{ee[M]||(ee[M]={}),Object.entries(K).forEach(([ae,ne])=>{ee[M][ae]!==ne&&(ee[M][ae]=ne)})}))},[]),Y=m.useRef(I),q=m.useCallback((M,K,ee,ae)=>{const ne=M[0];ne in Y.current||ne in W?S({type:Bo.STATE_PART_CHANGED,payload:{path:M,value:K,target:ee,actionType:ae,localVars:W}}):(!t.uses||t.uses.includes(ne))&&o(M,K,ee,ae)},[W,t.uses,o]);return C.jsx(R0,{node:t,location:"container",children:C.jsx(bFt,{resolvedKey:r,node:t,componentState:V,dispatch:S,parentDispatch:a,setVersion:v,version:h,statePartChanged:q,registerComponentApi:N,parentRegisterComponentApi:i,layoutContextRef:s,parentRenderContext:l,memoedVarsRef:y,isImplicit:c,ref:p,uidInfoRef:u,...f,children:d})})})),CFt=()=>{const[e]=gze(),t=UK(),r=Ma(),n=TQ(),o=m.useMemo(()=>{var a;return((a=n==null?void 0:n.linkMap)==null?void 0:a.get(r.pathname))||rr},[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 kFt(e,t){return t?t.length===0?rr:a$e(e,t):e}function Wke(...e){const t=m.useMemo(()=>{let r={};return e.forEach((n=rr)=>{n!==rr&&(r={...r,...n})}),r},[e]);return qo(t)}function TFt(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:ls(n[o])&&ls(i)||Array.isArray(n[o])&&Array.isArray(i)?n[o]=JG(us(n[o]),i):n[o]=i}),n},[e,t]);return qo(r)}function Vke(e=rr,t=rr,r,n){const o=So(),i=K_(r),a=m.useMemo(()=>{const l={};return Object.entries(e).forEach(([s,u])=>{if(s==="$props")l[s]=u;else if(!c5(u)&&typeof u!="string")l[s]=u;else{n.current.has(u)||n.current.set(u,{getDependencies:yw((h,v)=>{if(c5(h))return oE(h.tree,v);const b=b3(h);let y=new Set;return b.forEach(w=>{w.type==="expression"&&(y=new Set([...y,...oE(w.value,v)]))}),Array.from(y)}),obtainValue:yw((h,v,b,y,w,k)=>{try{return c5(h)?Ii(h.tree,{localContext:v,appContext:b,options:{defaultToOptionalMemberAccess:!0}}):$t(v,h,b,y)}catch(E){throw console.log(v),new _Ft(h,E)}},([h,v,b,y,w,k],[E,T,S,A,O,I])=>iy(w,O)&&iy(k,I))});const c={...l,...r};let d=[];t[s]?d=t[s]:(n.current.get(u).getDependencies(u,i).forEach(h=>{t[h]?d.push(...t[h]):d.push(h)}),d=[...new Set(d)]);const f=$_(c,d),p=$_(o,d);l[s]=n.current.get(u).obtainValue(u,c,o,!0,f,p)}}),l},[o,r,t,n,i,e]);return qo(a)}class u5 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(`
|
|
627
627
|
`)),Object.setPrototypeOf(this,u5.prototype)}}class _Ft extends Error{constructor(t,r){super(`Error on var: ${t} - ${(r==null?void 0:r.message)||"unknown"}`)}}function c5(e){return e&&typeof e=="object"&&e[P6]}function SFt(e){return e.type==="Container"?!0:!!(e.loaders||e.vars||e.uses||e.contextVars||e.functions||e.scriptCollected)}const EFt=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(()=>AFt(t),[t]);return C.jsx(R0,{node:t,location:"container",children:C.jsx(wFt,{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})})})),AFt=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]}},Uke={position:"absolute",width:0,display:"none"},OFt=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(h=>{a.current=h,h!==null&&(o==null||o()),s(!0)},[o]),[c,d]=m.useState(0),f=qo(e.attr),p=!e.allowOnlyRefdChild&&!l;return m.useLayoutEffect(()=>{let h;l?h=a.current:p&&(i.current?h=i.current:(h=(r.current.nextElementSibling===n.current?null:r.current.nextElementSibling)||null,i.current=h,d(v=>v++))),h&&Object.entries(f).forEach(([v,b])=>{b!==void 0?h.setAttribute(v,b):h.removeAttribute(v)})},[p,f,l]),C.jsxs(C.Fragment,{children:[!i.current&&p&&C.jsx("span",{style:Uke,ref:r}),m.cloneElement(e.children,{ref:t?qn(u,t):u}),!i.current&&p&&C.jsx("span",{style:Uke,ref:n})]})});let IFt=0;function RFt(e){const t={__PARSED:!0,parseId:++IFt,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 Zf(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}'
|
|
628
628
|
'${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 PFt({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||{}},h={...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:T,queryParams:S,rawBody:A,body:O,url:I,headers:L,method:P,file:H}=w.props,{success:j,error:F}=w.events||{};d[b]=`(eventArgs) => {
|
|
629
629
|
return Actions.upload({
|
|
@@ -697,7 +697,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
697
697
|
`).forEach(k=>{if(!(k.trim()===""&&v)){v=!1,b.push(k);const E=k.search(/\S|$/);k.trim()!==""&&(y===void 0||E<y)&&(y=E)}}),b.map(k=>k.slice(y).replace(/inspect="true"/g,"")).join(`
|
|
698
698
|
`)},[n,a]);return VGt.VITE_USER_COMPONENTS_Inspect!=="false"&&r&&n!==null?C.jsx(FSe,{isOpen:r,setIsOpen:t,clickPosition:o,children:C.jsx(xD,{height:"500px",allowPlaygroundPopup:!0,initiallyShowCode:(l==null?void 0:l.initiallyShowCode)??!0,splitView:!0,controlsWidth:"120px",closeButton:C.jsx(bD,{trigger:C.jsx("button",{className:rn.headerButton,onClick:()=>{t(!1)},children:C.jsx(Vut,{})}),label:"Close"}),markdown:`\`\`\`xmlui
|
|
699
699
|
${u}
|
|
700
|
-
\`\`\``,api:e,app:u,components:s})}):null};var qGt={};const GGt=({node:e,previewMode:t=!1,routerBaseName:r="",contributes:n=rr,globalProps:o,standalone:i,trackContainerHeight:a,decorateComponentsWithTestId:l,debugEnabled:s,defaultTheme:u,defaultTone:c,resources:d,resourceMap:f,sources:p,children:h,projectCompilation:v,onInit:b})=>{t&&(Jp.canUseDOM=!1);const y=(o==null?void 0:o.name)||"XMLUI app",w=(o==null?void 0:o.useHashBasedRouting)??!0,k=C.jsxs(Jp,{children:[C.jsx(eh,{defaultTitle:y,titleTemplate:`%s | ${y}`}),C.jsxs(qFt,{children:[C.jsx(KFt,{}),C.jsx(Tzt,{children:C.jsx(M_t,{resourceMap:f,themes:n.themes,defaultTheme:u,defaultTone:c,resources:d,children:C.jsx(S4t,{sources:p,projectCompilation:v,mockApi:o==null?void 0:o.demoMockApi,children:C.jsx(M7t,{children:C.jsxs(WFt,{onInit:b,rootContainer:e,routerBaseName:r,globalProps:o,standalone:i,decorateComponentsWithTestId:l,debugEnabled:s,trackContainerHeight:a,children:[C.jsx(UGt,{}),h]})})})})})]})]}),E=t?YMe:w?QK:cze,T=t?!1:typeof window>"u"||qGt.VITE_REMIX;return C.jsx(Z.StrictMode,{children:C.jsx(R0,{node:e,location:"root-outer",children:C.jsxs(_Re,{client:WSe,children:[!!T&&k,!T&&C.jsx(E,{basename:E===QK?void 0:r,children:k})]})})})};qRe();const WSe=new vRe({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});function fz({apiInterceptor:e,contributes:t,node:r,decorateComponentsWithTestId:n,debugEnabled:o,defaultTheme:i,defaultTone:a,resources:l,globalProps:s,standalone:u,trackContainerHeight:c,routerBaseName:d,previewMode:f,resourceMap:p,sources:h,extensionManager:v,children:b,projectCompilation:y,isNested:w=!1,onInit:k}){const E=m.useMemo(()=>({type:"Container",uid:"root",children:[{type:"Theme",props:{root:!0},children:[r]}],uses:[]}),[r]);if(y){const S=y.entrypoint.dependencies;YGt(S,y.components)}const T=m.useMemo(()=>({...s,isNested:w}),[s,w]);return C.jsx($7t,{contributes:t,extensionManager:v,children:C.jsx(D7t,{debugConfig:s==null?void 0:s.debug,children:C.jsx(GGt,{projectCompilation:y,resourceMap:p,apiInterceptor:e,node:E,contributes:t,resources:l,routerBaseName:d,decorateComponentsWithTestId:n,debugEnabled:o,defaultTheme:i,defaultTone:a,globalProps:T,standalone:u,trackContainerHeight:c,previewMode:f,sources:h,onInit:k,children:b})})})}function YGt(e,t){const r=t.reduce(function(a,{definition:{name:l},dependencies:s}){return a.set(l,s)},new Map),n=new Set;return o(e),n;function o(i){if(i){for(const a of i)if(!n.has(a)){n.add(a);const l=r.get(a);o(l)}}}}function KGt(e,t,r,n){const o=[],i={},a=new Set,l=new Set;if(e&&xk(e,null,s,i,r),!i.abort)for(const f of t)u(f.name)||c("M007","Component",f.name),f.name==="Component"&&c("M008","Component",f.name),r.componentRegistered(f.name)&&c("M009","Component",f.name),l.has(f.name)?c("M010","Component",f.name):l.add(f.name),a.clear(),xk(f.component,null,s,i,r);return o;function s(f,p,h,v){if(!h)return;if(!r.componentRegistered(f.type)){c("M001",(p==null?void 0:p.type)??"Root",f.type);return}f.uid&&(u(f.uid)?a.has(f.uid)?c("M003",f.type,f.uid):a.add(f.uid):c("M002",f.type,f.type,f.uid));const b=r.getComponentProps(f.type)??{},y=f.props??{};for(const T of Object.keys(y))if(b[T]){const A=y[T];if(typeof A=="string")try{b3(A)}catch(O){c("M006",f.type,T,O.message)}}else{const A=T.split("-");A.length===1&&I1.includes(T)||A.length===2&&I1.includes(A[0])&&v7e.includes(A[1])||r.acceptArbitraryProps(f.type)||c("M005",f.type,f.type,T)}const w=r.getComponentEvents(f.type)??{},k=f.events??{};for(const T of Object.keys(k))if(w[T]){const A=k[T];if(typeof A=="string"){const O=new Zf(A);try{O.parseStatements(),O.errors.length>0&&c("M012",f.type,T,O.errors[0].text)}catch(I){c("M012",f.type,T,I.message)}}}else c("M011",f.type,f.type,T);const E=r.getComponentValidator(f.type);if(E){const T=E(f,n);if(T)if(Array.isArray(T))for(const S of T)c("M013",f.type,S);else c("M013",f.type,T)}}function u(f){return/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(f)}function c(f,p,...h){d(f,p,!1,...h)}function d(f,p,h,...v){let b=XGt[f]??"Unkonwn error";v&&v.forEach((w,k)=>b=y(b,`{${k}}`,v[k].toString())),o.push({name:p,code:f,message:b,isWarning:h,args:v});function y(w,k,E){do w=w.replace(k,E);while(w.includes(k));return w}}}function xk(e,t,r,n={},o){if(r(e,t,!0,n),n.abort||n.cancel)return;const i=o.getComponentProps(e.type)??{},a=e.props??{};for(const u of Object.keys(a)){const c=i[u];if(!c)continue;const d=a[u];if(c.type==="ComponentDef"&&d.type&&(xk(d,e,r,n,o),n.abort||n.cancel))return}const l=o.getComponentEvents(e.type)??{},s=e.events??{};for(const u of Object.keys(s)){if(!l[u])continue;const d=s[u];if(typeof d=="object"&&d.type){if(xk(d,e,r,n,o),n.abort)return;if(n.cancel)break}}if(e.children)for(const u of e.children){if(xk(u,e,r,n,o),n.abort)return;if(n.cancel)break}r(e,void 0,!1,n)}const XGt={M001:"The component '{0}' is not registered",M002:"The '{0}' element has an invalid id: '{1}'",M003:"Invalid component identifier: '{0}'",M004:"Duplicated component identifier: '{0}'",M005:"The '{0}' element has an invalid property: '{1}'",M006:"Parsing property value of '{0}' failed: {1}",M007:"The name of a reusable component is invalid: '{0}'",M008:"The name of a reusable component must not be '{0}', as it is a reserved name",M009:"A reusable component cannot have the name of a registered component: '{0}'",M010:"Duplicated reusable component name: '{0}'",M011:"The '{0}' element has an invalid event: '{1}'",M012:"Parsing event value of '{0}' failed: {1}",M013:"Component validation failed: '{0}'"},VSe="DataSource",QGt={status:"stable",description:"`DataSource` fetches and caches data from API endpoints, versus [`APICall`](/components/APICall) which creates, updates or deletes data.",props:{method:{description:"Set the HTTP method.",defaultValue:"get",availableValues:FY},id:{description:"Set the ID used by other components to access the retrieved data in the `value`property of a `DataSource`, or status info in the `loaded` and `error` properties.When no `id` is set, the component cannot be used programmatically.",isRequired:!0,valueType:"string"},url:{description:"Set the URL.",isRequired:!0,valueType:"string"},body:{description:"Set the optional request body. The object you pass is serialized as a JSON string.",valueType:"any"},rawBody:{description:"Set the request body with no serialization. Use it to send a payload that has already been serialized to a JSON string.",valueType:"string"},queryParams:{description:"Append optional key-value pairs to the URL.",valueType:"any"},headers:{description:"Set request headers. Pass an object whose keys are header names and values are header values.",valueType:"any"},pollIntervalInSeconds:{description:"Set the interval for periodic data fetching. If the data changes on refresh, XMLUI will re-render components that refer directly or indirectly to the `DataSource`. If not set or set to zero, the component does not poll for data.",valueType:"number"},inProgressNotificationMessage:{description:"Set the message to display when the data fetch is in progress. If the property value is not set, no progress message is displayed.",valueType:"string"},completedNotificationMessage:{description:"Set the message to display when the data fetch completes.If the property value is not set, no completion message is displayed.",valueType:"string"},errorNotificationMessage:{description:"Set the message to display when the there is an error. You can use the `$error` context value in an expression to refer to the original error message.",valueType:"string"},resultSelector:{description:"Set an optional object key to extract a subset of the response data. If this value is not set, the entire response body is considered the result.",valueType:"string"},transformResult:{description:"Set an optional function to perform a final transformation of the response data. If this value is not set, the result is not transformed."},prevPageSelector:{description:`When using \`${VSe}\` with paging, the response may contain information about the previous and next page. This property defines the selector that extracts the previous page information from the response deserialized to an object.`},nextPageSelector:{description:`When using \`${VSe}\` with paging, the response may contain information about the previous and next page. This property defines the selector that extracts the next page information from the response deserialized to an object.`},structuralSharing:{description:"This property allows structural sharing. When turned on, `DataSource` will keep the original reference if nothing has changed in the data. If a subset has changed, `DataSource` will keep the unchanged parts and only replace the changed parts. If you do not need this behavior, set this property to `false`.",defaultValue:"true"}},events:{loaded:oe("The component triggers this event when the fetch operation has been completed and the data is loaded. The event has two arguments. The first is the data loaded; the second indicates if the event is a result of a refetch."),error:oe("This event fires when a request results in an error.")},apis:{value:{description:"This property retrieves the data queried from the source after optional transformations.",signature:"get value(): any"},inProgress:{description:"This property indicates if the data is being fetched.",signature:"get inProgress(): boolean"},isRefetching:{description:"This property indicates if the data is being re-fetched.",signature:"get isRefetching(): boolean"},loaded:{description:"This property indicates if the data has been loaded.",signature:"get loaded(): boolean"},refetch:{description:"This method requests the re-fetch of the data.",signature:"refetch(): void"}}},ZGt={a:cge,address:mge,area:hge,article:vge,aside:xge,audio:wge,b:kge,bdi:_ge,bdo:Ege,blockquote:Oge,br:Rge,button:Lge,canvas:Nge,caption:Dge,cite:jge,code:d4,col:Fge,colgroup:Vge,data:qge,datalist:Yge,dd:Xge,del:Zge,details:eve,dfn:rve,dialog:ove,div:ave,dl:sve,dt:cve,em:XD,embed:mve,fieldset:hve,figcaption:vve,figure:xve,footer:wve,form:kve,h1:_ve,h2:Eve,h3:Ove,h4:Rve,h5:Lve,h6:Nve,header:Dve,hr:jve,i:zve,iframe:Wve,img:Uve,input:Gve,ins:Kve,kbd:Qve,label:Jve,legend:tbe,li:nbe,main:ibe,map:lbe,mark:ube,menu:dbe,meter:mbe,nav:hbe,object:vbe,ol:xbe,optgroup:wbe,option:kbe,output:_be,p:Ebe,param:Obe,picture:Rbe,pre:Lbe,progress:Nbe,q:Dbe,rp:jbe,rt:zbe,ruby:Wbe,s:Ube,samp:Gbe,section:Kbe,select:Qbe,small:Jbe,source:t0e,span:n0e,strong:i0e,sub:l0e,summary:u0e,sup:d0e,table:m0e,tbody:h0e,td:v0e,template:x0e,textarea:w0e,tfoot:k0e,th:_0e,thead:E0e,time:O0e,tr:R0e,track:L0e,u:N0e,ul:D0e,var:m6t,video:M0e,wbr:F0e,Accordion:Mhe,APICall:oge,App:tue,AppHeader:xpe,AppState:vhe,AutoComplete:lge,Avatar:Kee,Backdrop:uge,Badge:qee,Bookmark:phe,Breakout:ege,Button:GZ,Card:Jee,Carousel:Zhe,ChangeListener:Ere,Checkbox:vpe,CODE:d4,ColorPicker:V0e,Column:Npe,ContentSeparator:Qee,DataSource:QGt,DatePicker:zpe,DropdownMenu:ype,EM:XD,Fragment:nee,MenuItem:Cpe,SubMenuItem:Tpe,EmojiSelector:Vse,ExpandableItem:Spe,FileInput:cue,FileUploadDropZone:$te,FlowLayout:nte,Footer:aue,Form:$le,FormItem:Rle,FormSection:hpe,Heading:KJ,H1:XJ,H2:QJ,H3:ZJ,H4:JJ,H5:eee,H6:tee,HoverCard:Jse,Icon:Dte,Image:Vte,Items:Mte,Link:WZ,List:kre,Logo:sue,Markdown:mpe,MenuSeparator:_pe,ModalDialog:ste,NavGroup:lue,NavLink:FZ,NavPanel:rue,NoResult:ute,NumberBox:Use,Option:age,PageMetaTitle:qte,Page:oue,Pages:iue,PositionedContainer:Tre,ProgressBar:Yte,Queue:sre,RadioGroup:uue,RealTimeAdapter:Nle,Redirect:Fpe,Select:ppe,SelectionStore:Fte,Slider:Whe,SpaceFiller:gK,Spinner:due,Splitter:Xte,HSplitter:Qte,VSplitter:Zte,Stack:Xv,CHStack:mK,CVStack:fK,HStack:dK,VStack:cK,StickyBox:Vee,Switch:bpe,Table:Hee,TableOfContents:Che,TabItem:Fhe,Tabs:mhe,Text:ree,TextArea:_K,TextBox:lN,PasswordInput:Lle,Theme:Lpe,ToneChangerButton:tge,ToneSwitch:nge,Tree:_Ge,BarChart:bke,DonutChart:yke,LabelList:Tke,Legend:_ke,LineChart:Ske,PieChart:Eke};class JGt{constructor(t){this.metadataCollection=t}componentNames(){return Object.keys(this.metadataCollection)}getComponent(t){const r=this.metadataCollection[t];return r?new eYt(r):null}}class eYt{constructor(t){this.metadata=t}getProp(t){return this.metadata.props[t]??P5[t]}getAttr(t){var i,a,l;if(oD.test(t)){const s=wkt(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=USe(t);return o||P5[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 P5[t];case"layout":return USe(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 I1)t.push({name:r,kind:"layout"});for(const r of Object.keys(P5))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 USe(e){const t={description:"Layout property. Not yet documented"};if(I1.includes(e))return t;for(const r of NY){const n="-"+r.value;if(e.endsWith(n)){const o=e.slice(0,-n.length);if(I1.includes(o))return t}}return null}const P5={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 cf={VITE_XMLUI_VERSION:"0.9.86 (built 7/25/2025)"};const yk="Main."+ek,tYt="Main."+Ng,qSe="config.json",mz=new JGt(ZGt);function GSe({appDef:e,decorateComponentsWithTestId:t,debugEnabled:r=!1,runtime:n,extensionManager:o,waitForApiInterceptor:i=!1}){const{standaloneApp:a,projectCompilation:l}=rYt(e,n,o);nYt(a);const{apiInterceptor:s,name:u,appGlobals:c,defaultTheme:d,defaultTone:f,resources:p,resourceMap:h,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 T=typeof window<"u"&&window.XMLUI_MOCK_API?window.XMLUI_MOCK_API:s,S=t||(typeof window<"u"?window.XMLUI_MOCK_TEST_ID:!1),A=(c==null?void 0:c.useHashBasedRouting)??!0;return C.jsx(lD,{interceptor:T,useHashBasedRouting:A,waitForApiInterceptor:i,children:C.jsx(fz,{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:h,sources:w,extensionManager:o,contributes:E})})}async function pz(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}=E2(t,r);if(o.length>0){const a=i??e.url.substring(e.url.lastIndexOf("/")+1,e.url.length-6);n=N6(o,r,a)}return{component:n,src:t,file:r,hasError:o.length>0}}async function hz(e){if(!e.ok)throw new Error(`Failed to fetch ${e.url}`);const t=await e.text(),r=new Zf(t);try{r.parseStatements()}catch(n){if(console.error("Error parsing code behind",n),r.errors.length>0)return{component:kkt(r.errors[0],e.url),file:e.url,hasError:!0}}try{const n=Eme("Main",t);return Object.keys(n.moduleErrors??{}).length>0?{component:Tkt(n.moduleErrors,e.url),file:e.url,hasError:!0}:(ukt(n),{src:t,codeBehind:n,file:e.url})}catch(n){console.error("Error collecting code behind",n)}}function L5(e,t){return e.endsWith(`/${t}.ts`)||e.endsWith(`/${t}.js`)||e.endsWith(`/${t}.${ek}`)||e.endsWith(`/${t}.${Ng}`)}function YSe(e,t){return e.includes(`/${t}/`)}function KSe(e){const t={entrypoint:{filename:"",definition:null,dependencies:new Set},components:[],themes:{}},r={},n={},o={},i=[];let a,l,s,u;for(const[p,h]of Object.entries(e)){if(L5(p,"config")&&(a=h.default),(L5(p,"Main")||L5(p,"App"))&&(p.endsWith(Ng)?(s=h.default,t.entrypoint.codeBehindSource=h.default.src):(t.entrypoint.filename=p,l=h.default.component,t.entrypoint.definition=l,t.entrypoint.markupSource=h.default.src,h.default.file&&(r[h.default.file]=h.default.src))),L5(p,"api")&&(u=h.default),YSe(p,"components"))if(p.endsWith(`.${Ng}`)){o[p]=h.default;const v=t.components.findLast(({filename:b})=>{const y=p.lastIndexOf(Ng),w=b.lastIndexOf(ek);return b.substring(0,w)===p.substring(0,y)});v.codeBehindSource=h.default.src}else{n[p]=h.default.component,r[h.default.file]=h.default.src;const v={definition:h.default.component,filename:p,markupSource:h.default.src,dependencies:new Set};t.components.push(v)}YSe(p,"themes")&&i.push(h.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,h])=>{const v=o[`${p}.xs`],b={...h,component:{...h.component,vars:{...h.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 XSe(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 QSe(e,t){const r=new URL(e,"http://dummy.com");return new URL(t,r).pathname.substring(1)}async function H5(e){try{const t=await df(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 GU.load(r)}catch{throw n}}}catch(t){const r=e.replace(/\.json$/,".yml");try{const n=await df(r);if(!n.ok)throw new Error(`Failed to fetch ${r}`);const o=await n.text();return GU.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 df(e){return fetch(vP(e),{headers:{"Cache-Control":"no-cache, no-store"}})}function rYt(e,t=rr,r){const[n,o]=m.useState(()=>{const l=KSe(t),s=XSe(l.standaloneApp,e);if((cf.VITE_DEV_MODE||cf.VITE_BUILD_MODE==="INLINE_ALL")&&!cf.VITE_STANDALONE){if(!s)throw new Error("couldn't find the application metadata");return s}return null}),[i,a]=m.useState(null);return Sn(()=>{(async function(){var H,j,F,B,G;const l=KSe(t),s=XSe(l.standaloneApp,e);if((cf.VITE_DEV_MODE||cf.VITE_BUILD_MODE==="INLINE_ALL")&&!cf.VITE_STANDALONE){if(!s)throw new Error("couldn't find the application metadata");const W=gz(s,mz);W&&(s.entryPoint=W),vz({projectCompilation:l.projectCompilation,extensionManager:r}),a(l.projectCompilation),o(s);return}if(cf.VITE_BUILD_MODE==="CONFIG_ONLY"){const z=await(await df(qSe)).json(),V=[];(H=z.themes)==null||H.forEach(M=>{V.push(H5(M))});const N=await Promise.all(V),Y={...s,name:z.name,appGlobals:z.appGlobals,defaultTheme:z.defaultTheme,resources:z.resources,resourceMap:z.resourceMap,themes:N},q=gz(Y,mz);q&&(Y.entryPoint=q),vz({projectCompilation:l.projectCompilation,extensionManager:r}),a(l.projectCompilation),o(Y);return}const u=new Promise(async W=>{try{const z=await df(yk);z.ok?W(pz(z)):W({component:Ckt(`Failed to load the main component (${yk})`),file:yk,hasError:!0})}catch{W(null)}});let c;try{c=await(await df(qSe)).json()}catch{}let d;((c==null?void 0:c.themes)??[]).length===0&&(c!=null&&c.defaultTheme)?d=[H5(`themes/${c==null?void 0:c.defaultTheme}.json`)]:d=(j=c==null?void 0:c.themes)==null?void 0:j.map(W=>H5(W));const f=(F=c==null?void 0:c.components)==null?void 0:F.map(async W=>{const z=await df(W);return W.endsWith(`.${ek}`)?await pz(z):await hz(z)}),[p,h,v]=await Promise.all([u,Promise.all(f||[]),Promise.all(d||[])]),b=[];p.hasError&&b.push(p.component);let y=null;((B=p.component.props)==null?void 0:B.codeBehind)!==void 0&&(y=await new Promise(async W=>{var z;try{const V=await df(QSe(yk,((z=p.component.props)==null?void 0:z.codeBehind)||tYt)),N=await hz(V);W(N.hasError?N:N.codeBehind)}catch{W(null)}}),y.hasError&&b.push(y.component)),h.forEach(W=>{W.hasError&&b.push(W.component)});const w={},k={};p.file&&(w[p.file]=p.src,l.projectCompilation.entrypoint.filename=yk,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)),h.forEach(W=>{var z;(z=W==null?void 0:W.file)!=null&&z.endsWith(`.${Ng}`)?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},T=(G=E.props)==null?void 0:G.defaultTheme;T&&typeof T=="string"&&!T.includes("{")&&!kD.find(W=>W.id===T)&&!v.find(W=>W.id===T)&&v.push(await H5(`themes/${T}.json`));const S=h.filter(W=>{var z;return!((z=W==null?void 0:W.file)!=null&&z.endsWith(".xmlui.xs"))}).map(W=>{const z=k[W.file+".xs"];return{...W.component,component:{...W.component.component,vars:{...W.component.component.vars,...z==null?void 0:z.vars},functions:z==null?void 0:z.functions,scriptError:z==null?void 0:z.moduleErrors}}});let A=ZSe(E,S,void 0,r);const O=new Set;for(;A.size>0;){const W=[...A].map(async V=>{var N,Y;try{const M=await df(`components/${V}.${ek}`),K=await pz(M);K.hasError&&b.push(K.component),w[K.file]=K.src;const ee={dependencies:new Set,filename:K.file,markupSource:K.src,definition:K.component};let ae=null;"codeBehind"in K.component&&((N=K.component)==null?void 0:N.codeBehind)!==void 0&&(ae=await new Promise(async ue=>{var le;try{const pe=await df(QSe(`components/${V}`,((le=K.component)==null?void 0:le.codeBehind)||`${V}.${Ng}`)),fe=await hz(pe);fe.hasError&&b.push(fe.component),ue(fe.hasError?fe.component:fe)}catch{ue(null)}}),ae&&"src"in ae&&(ee.codeBehindSource=ae.src)),l.projectCompilation.components.push(ee);const ne={...K.component,component:{...K.component.component,vars:{...K.component.component.vars,...(Y=ae==null?void 0:ae.component)==null?void 0:Y.vars}}};return ae&&"codeBehind"in ae&&(ne.component.functions=ae.codeBehind.functions,ne.component.scriptError=ae.codeBehind.moduleErrors),ne}catch{return O.add(V),null}}),z=await Promise.all(W);S.push(...z.filter(V=>!!V)),A=ZSe(E,S,O,r)}const I={...c,themes:v,sources:w,components:S,entryPoint:E},L=gz(I,mz),P=b.length>0?{type:"VStack",props:{gap:0,padding:0},children:b}:null;P?(L&&P.children.push(L),I.entryPoint=P):L&&(I.entryPoint=L),vz({projectCompilation:l.projectCompilation,extensionManager:r}),a(l.projectCompilation),o(I)})()},[t,e]),{standaloneApp:n,projectCompilation:i}}function ZSe(e,t,r=new Set,n){const o=new i5({compoundComponents:t},n),i=KGt(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 nYt(e){const t=m.useRef(!1);m.useEffect(()=>{if(t.current)return;t.current=!0;let r=`XMLUI version: ${cf.VITE_XMLUI_VERSION}`;e!=null&&e.name&&(r+=`; ${e.name} version: ${cf.VITE_APP_VERSION||"dev"}`),console.log(r)},[e==null?void 0:e.name])}let N5=null;function JSe(e,t=[],r=new Xj){r.registerExtension(t);let n=document.getElementById("root");return n||(n=document.createElement("div"),n.setAttribute("id","root"),document.body.appendChild(n)),N5||(N5=NT.createRoot(n)),N5.render(C.jsx(GSe,{runtime:e,extensionManager:r})),N5}function gz(e,t){var n;const r=XFt((n=e.appGlobals)==null?void 0:n.lintSeverity);if(r!==m5.Skip){const o=QFt({appDef:e,metadataProvider:t});if(o.length>0){if(r===m5.Warning)o.forEach(ZFt);else if(r===m5.Error)return JFt(o)}return null}}function vz({projectCompilation:{components:e,entrypoint:t},extensionManager:r}){const n=new i5({},r),o=e3e(t.definition,n);t.dependencies=o;for(const i of e){const a=e3e(i.definition.component,n);a.delete(i.definition.name),i.dependencies=a}n.destroy()}function e3e(e,t){return t3e(e,t,new Set)}function t3e(e,t,r){const n=e.type;if(t.hasComponent(n)||r.add(n),!e.children)return r;for(const o of e.children)t3e(o,t,r);return r}const r3e=new Xj;document.addEventListener("DOMContentLoaded",function(){if(!document.getElementById("root")){const e=document.createElement("div");e.id="root",document.getElementsByTagName("body")[0].appendChild(e)}JSe(void 0,void 0,r3e)}),window.React=Z,window.jsxRuntime=H5e,window.ReactDOM=gv;const oYt={...nWt,standalone:r3e};function n3e(e,t){return function(){return e.apply(t,arguments)}}const{toString:iYt}=Object.prototype,{getPrototypeOf:bz}=Object,$5=(e=>t=>{const r=iYt.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),qu=e=>(e=e.toLowerCase(),t=>$5(t)===e),D5=e=>t=>typeof t===e,{isArray:F1}=Array,wk=D5("undefined");function aYt(e){return e!==null&&!wk(e)&&e.constructor!==null&&!wk(e.constructor)&&Ql(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const o3e=qu("ArrayBuffer");function lYt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&o3e(e.buffer),t}const sYt=D5("string"),Ql=D5("function"),i3e=D5("number"),B5=e=>e!==null&&typeof e=="object",uYt=e=>e===!0||e===!1,j5=e=>{if($5(e)!=="object")return!1;const t=bz(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},cYt=qu("Date"),dYt=qu("File"),fYt=qu("Blob"),mYt=qu("FileList"),pYt=e=>B5(e)&&Ql(e.pipe),hYt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ql(e.append)&&((t=$5(e))==="formdata"||t==="object"&&Ql(e.toString)&&e.toString()==="[object FormData]"))},gYt=qu("URLSearchParams"),[vYt,bYt,xYt,yYt]=["ReadableStream","Request","Response","Headers"].map(qu),wYt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ck(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),F1(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 a3e(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 Fg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,l3e=e=>!wk(e)&&e!==Fg;function xz(){const{caseless:e}=l3e(this)&&this||{},t={},r=(n,o)=>{const i=e&&a3e(t,o)||o;j5(t[i])&&j5(n)?t[i]=xz(t[i],n):j5(n)?t[i]=xz({},n):F1(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Ck(arguments[n],r);return t}const CYt=(e,t,r,{allOwnKeys:n}={})=>(Ck(t,(o,i)=>{r&&Ql(o)?e[i]=n3e(o,r):e[i]=o},{allOwnKeys:n}),e),kYt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),TYt=(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)},_Yt=(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&&bz(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},SYt=(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},EYt=e=>{if(!e)return null;if(F1(e))return e;let t=e.length;if(!i3e(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},AYt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&bz(Uint8Array)),OYt=(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])}},IYt=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},RYt=qu("HTMLFormElement"),PYt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),s3e=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),LYt=qu("RegExp"),u3e=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Ck(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},HYt=e=>{u3e(e,(t,r)=>{if(Ql(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Ql(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+"'")})}})},NYt=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return F1(e)?n(e):n(String(e).split(t)),r},$Yt=()=>{},DYt=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function BYt(e){return!!(e&&Ql(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const jYt=e=>{const t=new Array(10),r=(n,o)=>{if(B5(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=F1(n)?[]:{};return Ck(n,(a,l)=>{const s=r(a,o+1);!wk(s)&&(i[l]=s)}),t[o]=void 0,i}}return n};return r(e,0)},MYt=qu("AsyncFunction"),zYt=e=>e&&(B5(e)||Ql(e))&&Ql(e.then)&&Ql(e.catch),c3e=((e,t)=>e?setImmediate:t?((r,n)=>(Fg.addEventListener("message",({source:o,data:i})=>{o===Fg&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Fg.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ql(Fg.postMessage)),FYt=typeof queueMicrotask<"u"?queueMicrotask.bind(Fg):typeof process<"u"&&process.nextTick||c3e,Be={isArray:F1,isArrayBuffer:o3e,isBuffer:aYt,isFormData:hYt,isArrayBufferView:lYt,isString:sYt,isNumber:i3e,isBoolean:uYt,isObject:B5,isPlainObject:j5,isReadableStream:vYt,isRequest:bYt,isResponse:xYt,isHeaders:yYt,isUndefined:wk,isDate:cYt,isFile:dYt,isBlob:fYt,isRegExp:LYt,isFunction:Ql,isStream:pYt,isURLSearchParams:gYt,isTypedArray:AYt,isFileList:mYt,forEach:Ck,merge:xz,extend:CYt,trim:wYt,stripBOM:kYt,inherits:TYt,toFlatObject:_Yt,kindOf:$5,kindOfTest:qu,endsWith:SYt,toArray:EYt,forEachEntry:OYt,matchAll:IYt,isHTMLForm:RYt,hasOwnProperty:s3e,hasOwnProp:s3e,reduceDescriptors:u3e,freezeMethods:HYt,toObjectSet:NYt,toCamelCase:PYt,noop:$Yt,toFiniteNumber:DYt,findKey:a3e,global:Fg,isContextDefined:l3e,isSpecCompliantForm:BYt,toJSONObject:jYt,isAsyncFn:MYt,isThenable:zYt,setImmediate:c3e,asap:FYt};function lr(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)}Be.inherits(lr,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:Be.toJSONObject(this.config),code:this.code,status:this.status}}});const d3e=lr.prototype,f3e={};["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=>{f3e[e]={value:e}}),Object.defineProperties(lr,f3e),Object.defineProperty(d3e,"isAxiosError",{value:!0}),lr.from=(e,t,r,n,o,i)=>{const a=Object.create(d3e);return Be.toFlatObject(e,a,function(s){return s!==Error.prototype},l=>l!=="isAxiosError"),lr.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const WYt=null;function yz(e){return Be.isPlainObject(e)||Be.isArray(e)}function m3e(e){return Be.endsWith(e,"[]")?e.slice(0,-2):e}function p3e(e,t,r){return e?e.concat(t).map(function(o,i){return o=m3e(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function VYt(e){return Be.isArray(e)&&!e.some(yz)}const UYt=Be.toFlatObject(Be,{},null,function(t){return/^is[A-Z]/.test(t)});function M5(e,t,r){if(!Be.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Be.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,b){return!Be.isUndefined(b[v])});const n=r.metaTokens,o=r.visitor||c,i=r.dots,a=r.indexes,s=(r.Blob||typeof Blob<"u"&&Blob)&&Be.isSpecCompliantForm(t);if(!Be.isFunction(o))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(Be.isDate(h))return h.toISOString();if(!s&&Be.isBlob(h))throw new lr("Blob is not supported. Use a Buffer instead.");return Be.isArrayBuffer(h)||Be.isTypedArray(h)?s&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function c(h,v,b){let y=h;if(h&&!b&&typeof h=="object"){if(Be.endsWith(v,"{}"))v=n?v:v.slice(0,-2),h=JSON.stringify(h);else if(Be.isArray(h)&&VYt(h)||(Be.isFileList(h)||Be.endsWith(v,"[]"))&&(y=Be.toArray(h)))return v=m3e(v),y.forEach(function(k,E){!(Be.isUndefined(k)||k===null)&&t.append(a===!0?p3e([v],E,i):a===null?v:v+"[]",u(k))}),!1}return yz(h)?!0:(t.append(p3e(b,v,i),u(h)),!1)}const d=[],f=Object.assign(UYt,{defaultVisitor:c,convertValue:u,isVisitable:yz});function p(h,v){if(!Be.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(h),Be.forEach(h,function(y,w){(!(Be.isUndefined(y)||y===null)&&o.call(t,y,Be.isString(w)?w.trim():w,v,f))===!0&&p(y,v?v.concat(w):[w])}),d.pop()}}if(!Be.isObject(e))throw new TypeError("data must be an object");return p(e),t}function h3e(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function wz(e,t){this._pairs=[],e&&M5(e,this,t)}const g3e=wz.prototype;g3e.append=function(t,r){this._pairs.push([t,r])},g3e.toString=function(t){const r=t?function(n){return t.call(this,n,h3e)}:h3e;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function qYt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function v3e(e,t,r){if(!t)return e;const n=r&&r.encode||qYt;Be.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=Be.isURLSearchParams(t)?t.toString():new wz(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class b3e{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){Be.forEach(this.handlers,function(n){n!==null&&t(n)})}}const x3e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},GYt={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:wz,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Cz=typeof window<"u"&&typeof document<"u",kz=typeof navigator=="object"&&navigator||void 0,YYt=Cz&&(!kz||["ReactNative","NativeScript","NS"].indexOf(kz.product)<0),KYt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",XYt=Cz&&window.location.href||"http://localhost",Xi={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Cz,hasStandardBrowserEnv:YYt,hasStandardBrowserWebWorkerEnv:KYt,navigator:kz,origin:XYt},Symbol.toStringTag,{value:"Module"})),...GYt};function QYt(e,t){return M5(e,new Xi.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return Xi.isNode&&Be.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function ZYt(e){return Be.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function JYt(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 y3e(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&&Be.isArray(o)?o.length:a,s?(Be.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!l):((!o[a]||!Be.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&Be.isArray(o[a])&&(o[a]=JYt(o[a])),!l)}if(Be.isFormData(e)&&Be.isFunction(e.entries)){const r={};return Be.forEachEntry(e,(n,o)=>{t(ZYt(n),o,r,0)}),r}return null}function eKt(e,t,r){if(Be.isString(e))try{return(t||JSON.parse)(e),Be.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const kk={transitional:x3e,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=Be.isObject(t);if(i&&Be.isHTMLForm(t)&&(t=new FormData(t)),Be.isFormData(t))return o?JSON.stringify(y3e(t)):t;if(Be.isArrayBuffer(t)||Be.isBuffer(t)||Be.isStream(t)||Be.isFile(t)||Be.isBlob(t)||Be.isReadableStream(t))return t;if(Be.isArrayBufferView(t))return t.buffer;if(Be.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 QYt(t,this.formSerializer).toString();if((l=Be.isFileList(t))||n.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return M5(l?{"files[]":t}:t,s&&new s,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),eKt(t)):t}],transformResponse:[function(t){const r=this.transitional||kk.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(Be.isResponse(t)||Be.isReadableStream(t))return t;if(t&&Be.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"?lr.from(l,lr.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:Xi.classes.FormData,Blob:Xi.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Be.forEach(["delete","get","head","post","put","patch"],e=>{kk.headers[e]={}});const tKt=Be.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"]),rKt=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
700
|
+
\`\`\``,api:e,app:u,components:s})}):null};var qGt={};const GGt=({node:e,previewMode:t=!1,routerBaseName:r="",contributes:n=rr,globalProps:o,standalone:i,trackContainerHeight:a,decorateComponentsWithTestId:l,debugEnabled:s,defaultTheme:u,defaultTone:c,resources:d,resourceMap:f,sources:p,children:h,projectCompilation:v,onInit:b})=>{t&&(Jp.canUseDOM=!1);const y=(o==null?void 0:o.name)||"XMLUI app",w=(o==null?void 0:o.useHashBasedRouting)??!0,k=C.jsxs(Jp,{children:[C.jsx(eh,{defaultTitle:y,titleTemplate:`%s | ${y}`}),C.jsxs(qFt,{children:[C.jsx(KFt,{}),C.jsx(Tzt,{children:C.jsx(M_t,{resourceMap:f,themes:n.themes,defaultTheme:u,defaultTone:c,resources:d,children:C.jsx(S4t,{sources:p,projectCompilation:v,mockApi:o==null?void 0:o.demoMockApi,children:C.jsx(M7t,{children:C.jsxs(WFt,{onInit:b,rootContainer:e,routerBaseName:r,globalProps:o,standalone:i,decorateComponentsWithTestId:l,debugEnabled:s,trackContainerHeight:a,children:[C.jsx(UGt,{}),h]})})})})})]})]}),E=t?YMe:w?QK:cze,T=t?!1:typeof window>"u"||qGt.VITE_REMIX;return C.jsx(Z.StrictMode,{children:C.jsx(R0,{node:e,location:"root-outer",children:C.jsxs(_Re,{client:WSe,children:[!!T&&k,!T&&C.jsx(E,{basename:E===QK?void 0:r,children:k})]})})})};qRe();const WSe=new vRe({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});function fz({apiInterceptor:e,contributes:t,node:r,decorateComponentsWithTestId:n,debugEnabled:o,defaultTheme:i,defaultTone:a,resources:l,globalProps:s,standalone:u,trackContainerHeight:c,routerBaseName:d,previewMode:f,resourceMap:p,sources:h,extensionManager:v,children:b,projectCompilation:y,isNested:w=!1,onInit:k}){const E=m.useMemo(()=>({type:"Container",uid:"root",children:[{type:"Theme",props:{root:!0},children:[r]}],uses:[]}),[r]);if(y){const S=y.entrypoint.dependencies;YGt(S,y.components)}const T=m.useMemo(()=>({...s,isNested:w}),[s,w]);return C.jsx($7t,{contributes:t,extensionManager:v,children:C.jsx(D7t,{debugConfig:s==null?void 0:s.debug,children:C.jsx(GGt,{projectCompilation:y,resourceMap:p,apiInterceptor:e,node:E,contributes:t,resources:l,routerBaseName:d,decorateComponentsWithTestId:n,debugEnabled:o,defaultTheme:i,defaultTone:a,globalProps:T,standalone:u,trackContainerHeight:c,previewMode:f,sources:h,onInit:k,children:b})})})}function YGt(e,t){const r=t.reduce(function(a,{definition:{name:l},dependencies:s}){return a.set(l,s)},new Map),n=new Set;return o(e),n;function o(i){if(i){for(const a of i)if(!n.has(a)){n.add(a);const l=r.get(a);o(l)}}}}function KGt(e,t,r,n){const o=[],i={},a=new Set,l=new Set;if(e&&xk(e,null,s,i,r),!i.abort)for(const f of t)u(f.name)||c("M007","Component",f.name),f.name==="Component"&&c("M008","Component",f.name),r.componentRegistered(f.name)&&c("M009","Component",f.name),l.has(f.name)?c("M010","Component",f.name):l.add(f.name),a.clear(),xk(f.component,null,s,i,r);return o;function s(f,p,h,v){if(!h)return;if(!r.componentRegistered(f.type)){c("M001",(p==null?void 0:p.type)??"Root",f.type);return}f.uid&&(u(f.uid)?a.has(f.uid)?c("M003",f.type,f.uid):a.add(f.uid):c("M002",f.type,f.type,f.uid));const b=r.getComponentProps(f.type)??{},y=f.props??{};for(const T of Object.keys(y))if(b[T]){const A=y[T];if(typeof A=="string")try{b3(A)}catch(O){c("M006",f.type,T,O.message)}}else{const A=T.split("-");A.length===1&&I1.includes(T)||A.length===2&&I1.includes(A[0])&&v7e.includes(A[1])||r.acceptArbitraryProps(f.type)||c("M005",f.type,f.type,T)}const w=r.getComponentEvents(f.type)??{},k=f.events??{};for(const T of Object.keys(k))if(w[T]){const A=k[T];if(typeof A=="string"){const O=new Zf(A);try{O.parseStatements(),O.errors.length>0&&c("M012",f.type,T,O.errors[0].text)}catch(I){c("M012",f.type,T,I.message)}}}else c("M011",f.type,f.type,T);const E=r.getComponentValidator(f.type);if(E){const T=E(f,n);if(T)if(Array.isArray(T))for(const S of T)c("M013",f.type,S);else c("M013",f.type,T)}}function u(f){return/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(f)}function c(f,p,...h){d(f,p,!1,...h)}function d(f,p,h,...v){let b=XGt[f]??"Unkonwn error";v&&v.forEach((w,k)=>b=y(b,`{${k}}`,v[k].toString())),o.push({name:p,code:f,message:b,isWarning:h,args:v});function y(w,k,E){do w=w.replace(k,E);while(w.includes(k));return w}}}function xk(e,t,r,n={},o){if(r(e,t,!0,n),n.abort||n.cancel)return;const i=o.getComponentProps(e.type)??{},a=e.props??{};for(const u of Object.keys(a)){const c=i[u];if(!c)continue;const d=a[u];if(c.type==="ComponentDef"&&d.type&&(xk(d,e,r,n,o),n.abort||n.cancel))return}const l=o.getComponentEvents(e.type)??{},s=e.events??{};for(const u of Object.keys(s)){if(!l[u])continue;const d=s[u];if(typeof d=="object"&&d.type){if(xk(d,e,r,n,o),n.abort)return;if(n.cancel)break}}if(e.children)for(const u of e.children){if(xk(u,e,r,n,o),n.abort)return;if(n.cancel)break}r(e,void 0,!1,n)}const XGt={M001:"The component '{0}' is not registered",M002:"The '{0}' element has an invalid id: '{1}'",M003:"Invalid component identifier: '{0}'",M004:"Duplicated component identifier: '{0}'",M005:"The '{0}' element has an invalid property: '{1}'",M006:"Parsing property value of '{0}' failed: {1}",M007:"The name of a reusable component is invalid: '{0}'",M008:"The name of a reusable component must not be '{0}', as it is a reserved name",M009:"A reusable component cannot have the name of a registered component: '{0}'",M010:"Duplicated reusable component name: '{0}'",M011:"The '{0}' element has an invalid event: '{1}'",M012:"Parsing event value of '{0}' failed: {1}",M013:"Component validation failed: '{0}'"},VSe="DataSource",QGt={status:"stable",description:"`DataSource` fetches and caches data from API endpoints, versus [`APICall`](/components/APICall) which creates, updates or deletes data.",props:{method:{description:"Set the HTTP method.",defaultValue:"get",availableValues:FY},id:{description:"Set the ID used by other components to access the retrieved data in the `value`property of a `DataSource`, or status info in the `loaded` and `error` properties.When no `id` is set, the component cannot be used programmatically.",isRequired:!0,valueType:"string"},url:{description:"Set the URL.",isRequired:!0,valueType:"string"},body:{description:"Set the optional request body. The object you pass is serialized as a JSON string.",valueType:"any"},rawBody:{description:"Set the request body with no serialization. Use it to send a payload that has already been serialized to a JSON string.",valueType:"string"},queryParams:{description:"Append optional key-value pairs to the URL.",valueType:"any"},headers:{description:"Set request headers. Pass an object whose keys are header names and values are header values.",valueType:"any"},pollIntervalInSeconds:{description:"Set the interval for periodic data fetching. If the data changes on refresh, XMLUI will re-render components that refer directly or indirectly to the `DataSource`. If not set or set to zero, the component does not poll for data.",valueType:"number"},inProgressNotificationMessage:{description:"Set the message to display when the data fetch is in progress. If the property value is not set, no progress message is displayed.",valueType:"string"},completedNotificationMessage:{description:"Set the message to display when the data fetch completes.If the property value is not set, no completion message is displayed.",valueType:"string"},errorNotificationMessage:{description:"Set the message to display when the there is an error. You can use the `$error` context value in an expression to refer to the original error message.",valueType:"string"},resultSelector:{description:"Set an optional object key to extract a subset of the response data. If this value is not set, the entire response body is considered the result.",valueType:"string"},transformResult:{description:"Set an optional function to perform a final transformation of the response data. If this value is not set, the result is not transformed."},prevPageSelector:{description:`When using \`${VSe}\` with paging, the response may contain information about the previous and next page. This property defines the selector that extracts the previous page information from the response deserialized to an object.`},nextPageSelector:{description:`When using \`${VSe}\` with paging, the response may contain information about the previous and next page. This property defines the selector that extracts the next page information from the response deserialized to an object.`},structuralSharing:{description:"This property allows structural sharing. When turned on, `DataSource` will keep the original reference if nothing has changed in the data. If a subset has changed, `DataSource` will keep the unchanged parts and only replace the changed parts. If you do not need this behavior, set this property to `false`.",defaultValue:"true"}},events:{loaded:oe("The component triggers this event when the fetch operation has been completed and the data is loaded. The event has two arguments. The first is the data loaded; the second indicates if the event is a result of a refetch."),error:oe("This event fires when a request results in an error.")},apis:{value:{description:"This property retrieves the data queried from the source after optional transformations.",signature:"get value(): any"},inProgress:{description:"This property indicates if the data is being fetched.",signature:"get inProgress(): boolean"},isRefetching:{description:"This property indicates if the data is being re-fetched.",signature:"get isRefetching(): boolean"},loaded:{description:"This property indicates if the data has been loaded.",signature:"get loaded(): boolean"},refetch:{description:"This method requests the re-fetch of the data.",signature:"refetch(): void"}}},ZGt={a:cge,address:mge,area:hge,article:vge,aside:xge,audio:wge,b:kge,bdi:_ge,bdo:Ege,blockquote:Oge,br:Rge,button:Lge,canvas:Nge,caption:Dge,cite:jge,code:d4,col:Fge,colgroup:Vge,data:qge,datalist:Yge,dd:Xge,del:Zge,details:eve,dfn:rve,dialog:ove,div:ave,dl:sve,dt:cve,em:XD,embed:mve,fieldset:hve,figcaption:vve,figure:xve,footer:wve,form:kve,h1:_ve,h2:Eve,h3:Ove,h4:Rve,h5:Lve,h6:Nve,header:Dve,hr:jve,i:zve,iframe:Wve,img:Uve,input:Gve,ins:Kve,kbd:Qve,label:Jve,legend:tbe,li:nbe,main:ibe,map:lbe,mark:ube,menu:dbe,meter:mbe,nav:hbe,object:vbe,ol:xbe,optgroup:wbe,option:kbe,output:_be,p:Ebe,param:Obe,picture:Rbe,pre:Lbe,progress:Nbe,q:Dbe,rp:jbe,rt:zbe,ruby:Wbe,s:Ube,samp:Gbe,section:Kbe,select:Qbe,small:Jbe,source:t0e,span:n0e,strong:i0e,sub:l0e,summary:u0e,sup:d0e,table:m0e,tbody:h0e,td:v0e,template:x0e,textarea:w0e,tfoot:k0e,th:_0e,thead:E0e,time:O0e,tr:R0e,track:L0e,u:N0e,ul:D0e,var:m6t,video:M0e,wbr:F0e,Accordion:Mhe,APICall:oge,App:tue,AppHeader:xpe,AppState:vhe,AutoComplete:lge,Avatar:Kee,Backdrop:uge,Badge:qee,Bookmark:phe,Breakout:ege,Button:GZ,Card:Jee,Carousel:Zhe,ChangeListener:Ere,Checkbox:vpe,CODE:d4,ColorPicker:V0e,Column:Npe,ContentSeparator:Qee,DataSource:QGt,DatePicker:zpe,DropdownMenu:ype,EM:XD,Fragment:nee,MenuItem:Cpe,SubMenuItem:Tpe,EmojiSelector:Vse,ExpandableItem:Spe,FileInput:cue,FileUploadDropZone:$te,FlowLayout:nte,Footer:aue,Form:$le,FormItem:Rle,FormSection:hpe,Heading:KJ,H1:XJ,H2:QJ,H3:ZJ,H4:JJ,H5:eee,H6:tee,HoverCard:Jse,Icon:Dte,Image:Vte,Items:Mte,Link:WZ,List:kre,Logo:sue,Markdown:mpe,MenuSeparator:_pe,ModalDialog:ste,NavGroup:lue,NavLink:FZ,NavPanel:rue,NoResult:ute,NumberBox:Use,Option:age,PageMetaTitle:qte,Page:oue,Pages:iue,PositionedContainer:Tre,ProgressBar:Yte,Queue:sre,RadioGroup:uue,RealTimeAdapter:Nle,Redirect:Fpe,Select:ppe,SelectionStore:Fte,Slider:Whe,SpaceFiller:gK,Spinner:due,Splitter:Xte,HSplitter:Qte,VSplitter:Zte,Stack:Xv,CHStack:mK,CVStack:fK,HStack:dK,VStack:cK,StickyBox:Vee,Switch:bpe,Table:Hee,TableOfContents:Che,TabItem:Fhe,Tabs:mhe,Text:ree,TextArea:_K,TextBox:lN,PasswordInput:Lle,Theme:Lpe,ToneChangerButton:tge,ToneSwitch:nge,Tree:_Ge,BarChart:bke,DonutChart:yke,LabelList:Tke,Legend:_ke,LineChart:Ske,PieChart:Eke};class JGt{constructor(t){this.metadataCollection=t}componentNames(){return Object.keys(this.metadataCollection)}getComponent(t){const r=this.metadataCollection[t];return r?new eYt(r):null}}class eYt{constructor(t){this.metadata=t}getProp(t){return this.metadata.props[t]??P5[t]}getAttr(t){var i,a,l;if(oD.test(t)){const s=wkt(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=USe(t);return o||P5[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 P5[t];case"layout":return USe(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 I1)t.push({name:r,kind:"layout"});for(const r of Object.keys(P5))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 USe(e){const t={description:"Layout property. Not yet documented"};if(I1.includes(e))return t;for(const r of NY){const n="-"+r.value;if(e.endsWith(n)){const o=e.slice(0,-n.length);if(I1.includes(o))return t}}return null}const P5={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 cf={VITE_XMLUI_VERSION:"0.9.87 (built 7/28/2025)"};const yk="Main."+ek,tYt="Main."+Ng,qSe="config.json",mz=new JGt(ZGt);function GSe({appDef:e,decorateComponentsWithTestId:t,debugEnabled:r=!1,runtime:n,extensionManager:o,waitForApiInterceptor:i=!1}){const{standaloneApp:a,projectCompilation:l}=rYt(e,n,o);nYt(a);const{apiInterceptor:s,name:u,appGlobals:c,defaultTheme:d,defaultTone:f,resources:p,resourceMap:h,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 T=typeof window<"u"&&window.XMLUI_MOCK_API?window.XMLUI_MOCK_API:s,S=t||(typeof window<"u"?window.XMLUI_MOCK_TEST_ID:!1),A=(c==null?void 0:c.useHashBasedRouting)??!0;return C.jsx(lD,{interceptor:T,useHashBasedRouting:A,waitForApiInterceptor:i,children:C.jsx(fz,{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:h,sources:w,extensionManager:o,contributes:E})})}async function pz(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}=E2(t,r);if(o.length>0){const a=i??e.url.substring(e.url.lastIndexOf("/")+1,e.url.length-6);n=N6(o,r,a)}return{component:n,src:t,file:r,hasError:o.length>0}}async function hz(e){if(!e.ok)throw new Error(`Failed to fetch ${e.url}`);const t=await e.text(),r=new Zf(t);try{r.parseStatements()}catch(n){if(console.error("Error parsing code behind",n),r.errors.length>0)return{component:kkt(r.errors[0],e.url),file:e.url,hasError:!0}}try{const n=Eme("Main",t);return Object.keys(n.moduleErrors??{}).length>0?{component:Tkt(n.moduleErrors,e.url),file:e.url,hasError:!0}:(ukt(n),{src:t,codeBehind:n,file:e.url})}catch(n){console.error("Error collecting code behind",n)}}function L5(e,t){return e.endsWith(`/${t}.ts`)||e.endsWith(`/${t}.js`)||e.endsWith(`/${t}.${ek}`)||e.endsWith(`/${t}.${Ng}`)}function YSe(e,t){return e.includes(`/${t}/`)}function KSe(e){const t={entrypoint:{filename:"",definition:null,dependencies:new Set},components:[],themes:{}},r={},n={},o={},i=[];let a,l,s,u;for(const[p,h]of Object.entries(e)){if(L5(p,"config")&&(a=h.default),(L5(p,"Main")||L5(p,"App"))&&(p.endsWith(Ng)?(s=h.default,t.entrypoint.codeBehindSource=h.default.src):(t.entrypoint.filename=p,l=h.default.component,t.entrypoint.definition=l,t.entrypoint.markupSource=h.default.src,h.default.file&&(r[h.default.file]=h.default.src))),L5(p,"api")&&(u=h.default),YSe(p,"components"))if(p.endsWith(`.${Ng}`)){o[p]=h.default;const v=t.components.findLast(({filename:b})=>{const y=p.lastIndexOf(Ng),w=b.lastIndexOf(ek);return b.substring(0,w)===p.substring(0,y)});v.codeBehindSource=h.default.src}else{n[p]=h.default.component,r[h.default.file]=h.default.src;const v={definition:h.default.component,filename:p,markupSource:h.default.src,dependencies:new Set};t.components.push(v)}YSe(p,"themes")&&i.push(h.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,h])=>{const v=o[`${p}.xs`],b={...h,component:{...h.component,vars:{...h.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 XSe(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 QSe(e,t){const r=new URL(e,"http://dummy.com");return new URL(t,r).pathname.substring(1)}async function H5(e){try{const t=await df(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 GU.load(r)}catch{throw n}}}catch(t){const r=e.replace(/\.json$/,".yml");try{const n=await df(r);if(!n.ok)throw new Error(`Failed to fetch ${r}`);const o=await n.text();return GU.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 df(e){return fetch(vP(e),{headers:{"Cache-Control":"no-cache, no-store"}})}function rYt(e,t=rr,r){const[n,o]=m.useState(()=>{const l=KSe(t),s=XSe(l.standaloneApp,e);if((cf.VITE_DEV_MODE||cf.VITE_BUILD_MODE==="INLINE_ALL")&&!cf.VITE_STANDALONE){if(!s)throw new Error("couldn't find the application metadata");return s}return null}),[i,a]=m.useState(null);return Sn(()=>{(async function(){var H,j,F,B,G;const l=KSe(t),s=XSe(l.standaloneApp,e);if((cf.VITE_DEV_MODE||cf.VITE_BUILD_MODE==="INLINE_ALL")&&!cf.VITE_STANDALONE){if(!s)throw new Error("couldn't find the application metadata");const W=gz(s,mz);W&&(s.entryPoint=W),vz({projectCompilation:l.projectCompilation,extensionManager:r}),a(l.projectCompilation),o(s);return}if(cf.VITE_BUILD_MODE==="CONFIG_ONLY"){const z=await(await df(qSe)).json(),V=[];(H=z.themes)==null||H.forEach(M=>{V.push(H5(M))});const N=await Promise.all(V),Y={...s,name:z.name,appGlobals:z.appGlobals,defaultTheme:z.defaultTheme,resources:z.resources,resourceMap:z.resourceMap,themes:N},q=gz(Y,mz);q&&(Y.entryPoint=q),vz({projectCompilation:l.projectCompilation,extensionManager:r}),a(l.projectCompilation),o(Y);return}const u=new Promise(async W=>{try{const z=await df(yk);z.ok?W(pz(z)):W({component:Ckt(`Failed to load the main component (${yk})`),file:yk,hasError:!0})}catch{W(null)}});let c;try{c=await(await df(qSe)).json()}catch{}let d;((c==null?void 0:c.themes)??[]).length===0&&(c!=null&&c.defaultTheme)?d=[H5(`themes/${c==null?void 0:c.defaultTheme}.json`)]:d=(j=c==null?void 0:c.themes)==null?void 0:j.map(W=>H5(W));const f=(F=c==null?void 0:c.components)==null?void 0:F.map(async W=>{const z=await df(W);return W.endsWith(`.${ek}`)?await pz(z):await hz(z)}),[p,h,v]=await Promise.all([u,Promise.all(f||[]),Promise.all(d||[])]),b=[];p.hasError&&b.push(p.component);let y=null;((B=p.component.props)==null?void 0:B.codeBehind)!==void 0&&(y=await new Promise(async W=>{var z;try{const V=await df(QSe(yk,((z=p.component.props)==null?void 0:z.codeBehind)||tYt)),N=await hz(V);W(N.hasError?N:N.codeBehind)}catch{W(null)}}),y.hasError&&b.push(y.component)),h.forEach(W=>{W.hasError&&b.push(W.component)});const w={},k={};p.file&&(w[p.file]=p.src,l.projectCompilation.entrypoint.filename=yk,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)),h.forEach(W=>{var z;(z=W==null?void 0:W.file)!=null&&z.endsWith(`.${Ng}`)?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},T=(G=E.props)==null?void 0:G.defaultTheme;T&&typeof T=="string"&&!T.includes("{")&&!kD.find(W=>W.id===T)&&!v.find(W=>W.id===T)&&v.push(await H5(`themes/${T}.json`));const S=h.filter(W=>{var z;return!((z=W==null?void 0:W.file)!=null&&z.endsWith(".xmlui.xs"))}).map(W=>{const z=k[W.file+".xs"];return{...W.component,component:{...W.component.component,vars:{...W.component.component.vars,...z==null?void 0:z.vars},functions:z==null?void 0:z.functions,scriptError:z==null?void 0:z.moduleErrors}}});let A=ZSe(E,S,void 0,r);const O=new Set;for(;A.size>0;){const W=[...A].map(async V=>{var N,Y;try{const M=await df(`components/${V}.${ek}`),K=await pz(M);K.hasError&&b.push(K.component),w[K.file]=K.src;const ee={dependencies:new Set,filename:K.file,markupSource:K.src,definition:K.component};let ae=null;"codeBehind"in K.component&&((N=K.component)==null?void 0:N.codeBehind)!==void 0&&(ae=await new Promise(async ue=>{var le;try{const pe=await df(QSe(`components/${V}`,((le=K.component)==null?void 0:le.codeBehind)||`${V}.${Ng}`)),fe=await hz(pe);fe.hasError&&b.push(fe.component),ue(fe.hasError?fe.component:fe)}catch{ue(null)}}),ae&&"src"in ae&&(ee.codeBehindSource=ae.src)),l.projectCompilation.components.push(ee);const ne={...K.component,component:{...K.component.component,vars:{...K.component.component.vars,...(Y=ae==null?void 0:ae.component)==null?void 0:Y.vars}}};return ae&&"codeBehind"in ae&&(ne.component.functions=ae.codeBehind.functions,ne.component.scriptError=ae.codeBehind.moduleErrors),ne}catch{return O.add(V),null}}),z=await Promise.all(W);S.push(...z.filter(V=>!!V)),A=ZSe(E,S,O,r)}const I={...c,themes:v,sources:w,components:S,entryPoint:E},L=gz(I,mz),P=b.length>0?{type:"VStack",props:{gap:0,padding:0},children:b}:null;P?(L&&P.children.push(L),I.entryPoint=P):L&&(I.entryPoint=L),vz({projectCompilation:l.projectCompilation,extensionManager:r}),a(l.projectCompilation),o(I)})()},[t,e]),{standaloneApp:n,projectCompilation:i}}function ZSe(e,t,r=new Set,n){const o=new i5({compoundComponents:t},n),i=KGt(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 nYt(e){const t=m.useRef(!1);m.useEffect(()=>{if(t.current)return;t.current=!0;let r=`XMLUI version: ${cf.VITE_XMLUI_VERSION}`;e!=null&&e.name&&(r+=`; ${e.name} version: ${cf.VITE_APP_VERSION||"dev"}`),console.log(r)},[e==null?void 0:e.name])}let N5=null;function JSe(e,t=[],r=new Xj){r.registerExtension(t);let n=document.getElementById("root");return n||(n=document.createElement("div"),n.setAttribute("id","root"),document.body.appendChild(n)),N5||(N5=NT.createRoot(n)),N5.render(C.jsx(GSe,{runtime:e,extensionManager:r})),N5}function gz(e,t){var n;const r=XFt((n=e.appGlobals)==null?void 0:n.lintSeverity);if(r!==m5.Skip){const o=QFt({appDef:e,metadataProvider:t});if(o.length>0){if(r===m5.Warning)o.forEach(ZFt);else if(r===m5.Error)return JFt(o)}return null}}function vz({projectCompilation:{components:e,entrypoint:t},extensionManager:r}){const n=new i5({},r),o=e3e(t.definition,n);t.dependencies=o;for(const i of e){const a=e3e(i.definition.component,n);a.delete(i.definition.name),i.dependencies=a}n.destroy()}function e3e(e,t){return t3e(e,t,new Set)}function t3e(e,t,r){const n=e.type;if(t.hasComponent(n)||r.add(n),!e.children)return r;for(const o of e.children)t3e(o,t,r);return r}const r3e=new Xj;document.addEventListener("DOMContentLoaded",function(){if(!document.getElementById("root")){const e=document.createElement("div");e.id="root",document.getElementsByTagName("body")[0].appendChild(e)}JSe(void 0,void 0,r3e)}),window.React=Z,window.jsxRuntime=H5e,window.ReactDOM=gv;const oYt={...nWt,standalone:r3e};function n3e(e,t){return function(){return e.apply(t,arguments)}}const{toString:iYt}=Object.prototype,{getPrototypeOf:bz}=Object,$5=(e=>t=>{const r=iYt.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),qu=e=>(e=e.toLowerCase(),t=>$5(t)===e),D5=e=>t=>typeof t===e,{isArray:F1}=Array,wk=D5("undefined");function aYt(e){return e!==null&&!wk(e)&&e.constructor!==null&&!wk(e.constructor)&&Ql(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const o3e=qu("ArrayBuffer");function lYt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&o3e(e.buffer),t}const sYt=D5("string"),Ql=D5("function"),i3e=D5("number"),B5=e=>e!==null&&typeof e=="object",uYt=e=>e===!0||e===!1,j5=e=>{if($5(e)!=="object")return!1;const t=bz(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},cYt=qu("Date"),dYt=qu("File"),fYt=qu("Blob"),mYt=qu("FileList"),pYt=e=>B5(e)&&Ql(e.pipe),hYt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ql(e.append)&&((t=$5(e))==="formdata"||t==="object"&&Ql(e.toString)&&e.toString()==="[object FormData]"))},gYt=qu("URLSearchParams"),[vYt,bYt,xYt,yYt]=["ReadableStream","Request","Response","Headers"].map(qu),wYt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ck(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),F1(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 a3e(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 Fg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,l3e=e=>!wk(e)&&e!==Fg;function xz(){const{caseless:e}=l3e(this)&&this||{},t={},r=(n,o)=>{const i=e&&a3e(t,o)||o;j5(t[i])&&j5(n)?t[i]=xz(t[i],n):j5(n)?t[i]=xz({},n):F1(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Ck(arguments[n],r);return t}const CYt=(e,t,r,{allOwnKeys:n}={})=>(Ck(t,(o,i)=>{r&&Ql(o)?e[i]=n3e(o,r):e[i]=o},{allOwnKeys:n}),e),kYt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),TYt=(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)},_Yt=(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&&bz(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},SYt=(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},EYt=e=>{if(!e)return null;if(F1(e))return e;let t=e.length;if(!i3e(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},AYt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&bz(Uint8Array)),OYt=(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])}},IYt=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},RYt=qu("HTMLFormElement"),PYt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),s3e=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),LYt=qu("RegExp"),u3e=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Ck(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},HYt=e=>{u3e(e,(t,r)=>{if(Ql(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Ql(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+"'")})}})},NYt=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return F1(e)?n(e):n(String(e).split(t)),r},$Yt=()=>{},DYt=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function BYt(e){return!!(e&&Ql(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const jYt=e=>{const t=new Array(10),r=(n,o)=>{if(B5(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=F1(n)?[]:{};return Ck(n,(a,l)=>{const s=r(a,o+1);!wk(s)&&(i[l]=s)}),t[o]=void 0,i}}return n};return r(e,0)},MYt=qu("AsyncFunction"),zYt=e=>e&&(B5(e)||Ql(e))&&Ql(e.then)&&Ql(e.catch),c3e=((e,t)=>e?setImmediate:t?((r,n)=>(Fg.addEventListener("message",({source:o,data:i})=>{o===Fg&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Fg.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ql(Fg.postMessage)),FYt=typeof queueMicrotask<"u"?queueMicrotask.bind(Fg):typeof process<"u"&&process.nextTick||c3e,Be={isArray:F1,isArrayBuffer:o3e,isBuffer:aYt,isFormData:hYt,isArrayBufferView:lYt,isString:sYt,isNumber:i3e,isBoolean:uYt,isObject:B5,isPlainObject:j5,isReadableStream:vYt,isRequest:bYt,isResponse:xYt,isHeaders:yYt,isUndefined:wk,isDate:cYt,isFile:dYt,isBlob:fYt,isRegExp:LYt,isFunction:Ql,isStream:pYt,isURLSearchParams:gYt,isTypedArray:AYt,isFileList:mYt,forEach:Ck,merge:xz,extend:CYt,trim:wYt,stripBOM:kYt,inherits:TYt,toFlatObject:_Yt,kindOf:$5,kindOfTest:qu,endsWith:SYt,toArray:EYt,forEachEntry:OYt,matchAll:IYt,isHTMLForm:RYt,hasOwnProperty:s3e,hasOwnProp:s3e,reduceDescriptors:u3e,freezeMethods:HYt,toObjectSet:NYt,toCamelCase:PYt,noop:$Yt,toFiniteNumber:DYt,findKey:a3e,global:Fg,isContextDefined:l3e,isSpecCompliantForm:BYt,toJSONObject:jYt,isAsyncFn:MYt,isThenable:zYt,setImmediate:c3e,asap:FYt};function lr(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)}Be.inherits(lr,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:Be.toJSONObject(this.config),code:this.code,status:this.status}}});const d3e=lr.prototype,f3e={};["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=>{f3e[e]={value:e}}),Object.defineProperties(lr,f3e),Object.defineProperty(d3e,"isAxiosError",{value:!0}),lr.from=(e,t,r,n,o,i)=>{const a=Object.create(d3e);return Be.toFlatObject(e,a,function(s){return s!==Error.prototype},l=>l!=="isAxiosError"),lr.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const WYt=null;function yz(e){return Be.isPlainObject(e)||Be.isArray(e)}function m3e(e){return Be.endsWith(e,"[]")?e.slice(0,-2):e}function p3e(e,t,r){return e?e.concat(t).map(function(o,i){return o=m3e(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function VYt(e){return Be.isArray(e)&&!e.some(yz)}const UYt=Be.toFlatObject(Be,{},null,function(t){return/^is[A-Z]/.test(t)});function M5(e,t,r){if(!Be.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Be.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,b){return!Be.isUndefined(b[v])});const n=r.metaTokens,o=r.visitor||c,i=r.dots,a=r.indexes,s=(r.Blob||typeof Blob<"u"&&Blob)&&Be.isSpecCompliantForm(t);if(!Be.isFunction(o))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(Be.isDate(h))return h.toISOString();if(!s&&Be.isBlob(h))throw new lr("Blob is not supported. Use a Buffer instead.");return Be.isArrayBuffer(h)||Be.isTypedArray(h)?s&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function c(h,v,b){let y=h;if(h&&!b&&typeof h=="object"){if(Be.endsWith(v,"{}"))v=n?v:v.slice(0,-2),h=JSON.stringify(h);else if(Be.isArray(h)&&VYt(h)||(Be.isFileList(h)||Be.endsWith(v,"[]"))&&(y=Be.toArray(h)))return v=m3e(v),y.forEach(function(k,E){!(Be.isUndefined(k)||k===null)&&t.append(a===!0?p3e([v],E,i):a===null?v:v+"[]",u(k))}),!1}return yz(h)?!0:(t.append(p3e(b,v,i),u(h)),!1)}const d=[],f=Object.assign(UYt,{defaultVisitor:c,convertValue:u,isVisitable:yz});function p(h,v){if(!Be.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(h),Be.forEach(h,function(y,w){(!(Be.isUndefined(y)||y===null)&&o.call(t,y,Be.isString(w)?w.trim():w,v,f))===!0&&p(y,v?v.concat(w):[w])}),d.pop()}}if(!Be.isObject(e))throw new TypeError("data must be an object");return p(e),t}function h3e(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function wz(e,t){this._pairs=[],e&&M5(e,this,t)}const g3e=wz.prototype;g3e.append=function(t,r){this._pairs.push([t,r])},g3e.toString=function(t){const r=t?function(n){return t.call(this,n,h3e)}:h3e;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function qYt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function v3e(e,t,r){if(!t)return e;const n=r&&r.encode||qYt;Be.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=Be.isURLSearchParams(t)?t.toString():new wz(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class b3e{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){Be.forEach(this.handlers,function(n){n!==null&&t(n)})}}const x3e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},GYt={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:wz,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Cz=typeof window<"u"&&typeof document<"u",kz=typeof navigator=="object"&&navigator||void 0,YYt=Cz&&(!kz||["ReactNative","NativeScript","NS"].indexOf(kz.product)<0),KYt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",XYt=Cz&&window.location.href||"http://localhost",Xi={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Cz,hasStandardBrowserEnv:YYt,hasStandardBrowserWebWorkerEnv:KYt,navigator:kz,origin:XYt},Symbol.toStringTag,{value:"Module"})),...GYt};function QYt(e,t){return M5(e,new Xi.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return Xi.isNode&&Be.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function ZYt(e){return Be.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function JYt(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 y3e(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&&Be.isArray(o)?o.length:a,s?(Be.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!l):((!o[a]||!Be.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&Be.isArray(o[a])&&(o[a]=JYt(o[a])),!l)}if(Be.isFormData(e)&&Be.isFunction(e.entries)){const r={};return Be.forEachEntry(e,(n,o)=>{t(ZYt(n),o,r,0)}),r}return null}function eKt(e,t,r){if(Be.isString(e))try{return(t||JSON.parse)(e),Be.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const kk={transitional:x3e,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=Be.isObject(t);if(i&&Be.isHTMLForm(t)&&(t=new FormData(t)),Be.isFormData(t))return o?JSON.stringify(y3e(t)):t;if(Be.isArrayBuffer(t)||Be.isBuffer(t)||Be.isStream(t)||Be.isFile(t)||Be.isBlob(t)||Be.isReadableStream(t))return t;if(Be.isArrayBufferView(t))return t.buffer;if(Be.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 QYt(t,this.formSerializer).toString();if((l=Be.isFileList(t))||n.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return M5(l?{"files[]":t}:t,s&&new s,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),eKt(t)):t}],transformResponse:[function(t){const r=this.transitional||kk.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(Be.isResponse(t)||Be.isReadableStream(t))return t;if(t&&Be.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"?lr.from(l,lr.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:Xi.classes.FormData,Blob:Xi.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Be.forEach(["delete","get","head","post","put","patch"],e=>{kk.headers[e]={}});const tKt=Be.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"]),rKt=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
701
701
|
`).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||t[r]&&tKt[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},w3e=Symbol("internals");function Tk(e){return e&&String(e).trim().toLowerCase()}function z5(e){return e===!1||e==null?e:Be.isArray(e)?e.map(z5):String(e)}function nKt(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 oKt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Tz(e,t,r,n,o){if(Be.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!Be.isString(t)){if(Be.isString(n))return t.indexOf(n)!==-1;if(Be.isRegExp(n))return n.test(t)}}function iKt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function aKt(e,t){const r=Be.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 il=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(l,s,u){const c=Tk(s);if(!c)throw new Error("header name must be a non-empty string");const d=Be.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||s]=z5(l))}const a=(l,s)=>Be.forEach(l,(u,c)=>i(u,c,s));if(Be.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(Be.isString(t)&&(t=t.trim())&&!oKt(t))a(rKt(t),r);else if(Be.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=Tk(t),t){const n=Be.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return nKt(o);if(Be.isFunction(r))return r.call(this,o,n);if(Be.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Tk(t),t){const n=Be.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Tz(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(a){if(a=Tk(a),a){const l=Be.findKey(n,a);l&&(!r||Tz(n,n[l],l,r))&&(delete n[l],o=!0)}}return Be.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||Tz(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return Be.forEach(this,(o,i)=>{const a=Be.findKey(n,i);if(a){r[a]=z5(o),delete r[i];return}const l=t?iKt(i):String(i).trim();l!==i&&delete r[i],r[l]=z5(o),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return Be.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&Be.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(`
|
|
702
702
|
`)}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[w3e]=this[w3e]={accessors:{}}).accessors,o=this.prototype;function i(a){const l=Tk(a);n[l]||(aKt(o,a),n[l]=!0)}return Be.isArray(t)?t.forEach(i):i(t),this}};il.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Be.reduceDescriptors(il.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),Be.freezeMethods(il);function _z(e,t){const r=this||kk,n=t||r,o=il.from(n.headers);let i=n.data;return Be.forEach(e,function(l){i=l.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function C3e(e){return!!(e&&e.__CANCEL__)}function W1(e,t,r){lr.call(this,e??"canceled",lr.ERR_CANCELED,t,r),this.name="CanceledError"}Be.inherits(W1,lr,{__CANCEL__:!0});function k3e(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new lr("Request failed with status code "+r.status,[lr.ERR_BAD_REQUEST,lr.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function lKt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function sKt(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 uKt(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 F5=(e,t,r=3)=>{let n=0;const o=sKt(50,250);return uKt(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)},T3e=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},_3e=e=>(...t)=>Be.asap(()=>e(...t)),cKt=Xi.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Xi.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Xi.origin),Xi.navigator&&/(msie|trident)/i.test(Xi.navigator.userAgent)):()=>!0,dKt=Xi.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];Be.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Be.isString(n)&&a.push("path="+n),Be.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 fKt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function mKt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function S3e(e,t,r){let n=!fKt(t);return e&&n||r==!1?mKt(e,t):t}const E3e=e=>e instanceof il?{...e}:e;function Wg(e,t){t=t||{};const r={};function n(u,c,d,f){return Be.isPlainObject(u)&&Be.isPlainObject(c)?Be.merge.call({caseless:f},u,c):Be.isPlainObject(c)?Be.merge({},c):Be.isArray(c)?c.slice():c}function o(u,c,d,f){if(Be.isUndefined(c)){if(!Be.isUndefined(u))return n(void 0,u,d,f)}else return n(u,c,d,f)}function i(u,c){if(!Be.isUndefined(c))return n(void 0,c)}function a(u,c){if(Be.isUndefined(c)){if(!Be.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(E3e(u),E3e(c),d,!0)};return Be.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=s[c]||o,f=d(e[c],t[c],c);Be.isUndefined(f)&&d!==l||(r[c]=f)}),r}const A3e=e=>{const t=Wg({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:l}=t;t.headers=a=il.from(a),t.url=v3e(S3e(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(Be.isFormData(r)){if(Xi.hasStandardBrowserEnv||Xi.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(Xi.hasStandardBrowserEnv&&(n&&Be.isFunction(n)&&(n=n(t)),n||n!==!1&&cKt(t.url))){const u=o&&i&&dKt.read(i);u&&a.set(o,u)}return t},pKt=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=A3e(e);let i=o.data;const a=il.from(o.headers).normalize();let{responseType:l,onUploadProgress:s,onDownloadProgress:u}=o,c,d,f,p,h;function v(){p&&p(),h&&h(),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=il.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),T={data:!l||l==="text"||l==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:k,config:e,request:b};k3e(function(A){r(A),v()},function(A){n(A),v()},T),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 lr("Request aborted",lr.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new lr("Network Error",lr.ERR_NETWORK,e,b)),b=null},b.ontimeout=function(){let E=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const T=o.transitional||x3e;o.timeoutErrorMessage&&(E=o.timeoutErrorMessage),n(new lr(E,T.clarifyTimeoutError?lr.ETIMEDOUT:lr.ECONNABORTED,e,b)),b=null},i===void 0&&a.setContentType(null),"setRequestHeader"in b&&Be.forEach(a.toJSON(),function(E,T){b.setRequestHeader(T,E)}),Be.isUndefined(o.withCredentials)||(b.withCredentials=!!o.withCredentials),l&&l!=="json"&&(b.responseType=o.responseType),u&&([f,h]=F5(u,!0),b.addEventListener("progress",f)),s&&b.upload&&([d,p]=F5(s),b.upload.addEventListener("progress",d),b.upload.addEventListener("loadend",p)),(o.cancelToken||o.signal)&&(c=k=>{b&&(n(!k||k.type?new W1(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=lKt(o.url);if(w&&Xi.protocols.indexOf(w)===-1){n(new lr("Unsupported protocol "+w+":",lr.ERR_BAD_REQUEST,e));return}b.send(i||null)})},hKt=(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 lr?c:new W1(c instanceof Error?c.message:c))}};let a=t&&setTimeout(()=>{a=null,i(new lr(`timeout ${t} of ms exceeded`,lr.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=()=>Be.asap(l),s}},gKt=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},vKt=async function*(e,t){for await(const r of bKt(e))yield*gKt(r,t)},bKt=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()}},O3e=(e,t,r,n)=>{const o=vKt(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})},W5=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",I3e=W5&&typeof ReadableStream=="function",xKt=W5&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),R3e=(e,...t)=>{try{return!!e(...t)}catch{return!1}},yKt=I3e&&R3e(()=>{let e=!1;const t=new Request(Xi.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),P3e=64*1024,Sz=I3e&&R3e(()=>Be.isReadableStream(new Response("").body)),V5={stream:Sz&&(e=>e.body)};W5&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!V5[t]&&(V5[t]=Be.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new lr(`Response type '${t}' is not supported`,lr.ERR_NOT_SUPPORT,n)})})})(new Response);const wKt=async e=>{if(e==null)return 0;if(Be.isBlob(e))return e.size;if(Be.isSpecCompliantForm(e))return(await new Request(Xi.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Be.isArrayBufferView(e)||Be.isArrayBuffer(e))return e.byteLength;if(Be.isURLSearchParams(e)&&(e=e+""),Be.isString(e))return(await xKt(e)).byteLength},CKt=async(e,t)=>{const r=Be.toFiniteNumber(e.getContentLength());return r??wKt(t)},Ez={http:WYt,xhr:pKt,fetch:W5&&(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}=A3e(e);u=u?(u+"").toLowerCase():"text";let p=hKt([o,i&&i.toAbortSignal()],a),h;const v=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let b;try{if(s&&yKt&&r!=="get"&&r!=="head"&&(b=await CKt(c,n))!==0){let T=new Request(t,{method:"POST",body:n,duplex:"half"}),S;if(Be.isFormData(n)&&(S=T.headers.get("content-type"))&&c.setContentType(S),T.body){const[A,O]=T3e(b,F5(_3e(s)));n=O3e(T.body,P3e,A,O)}}Be.isString(d)||(d=d?"include":"omit");const y="credentials"in Request.prototype;h=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(h);const k=Sz&&(u==="stream"||u==="response");if(Sz&&(l||k&&v)){const T={};["status","statusText","headers"].forEach(I=>{T[I]=w[I]});const S=Be.toFiniteNumber(w.headers.get("content-length")),[A,O]=l&&T3e(S,F5(_3e(l),!0))||[];w=new Response(O3e(w.body,P3e,A,()=>{O&&O(),v&&v()}),T)}u=u||"text";let E=await V5[Be.findKey(V5,u)||"text"](w,e);return!k&&v&&v(),await new Promise((T,S)=>{k3e(T,S,{data:E,headers:il.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:h})})}catch(y){throw v&&v(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new lr("Network Error",lr.ERR_NETWORK,e,h),{cause:y.cause||y}):lr.from(y,y&&y.code,e,h)}})};Be.forEach(Ez,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const L3e=e=>`- ${e}`,kKt=e=>Be.isFunction(e)||e===null||e===!1,H3e={getAdapter:e=>{e=Be.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,!kKt(r)&&(n=Ez[(a=String(r)).toLowerCase()],n===void 0))throw new lr(`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 :
|
|
703
703
|
`+i.map(L3e).join(`
|
|
@@ -714,7 +714,7 @@ ${u}
|
|
|
714
714
|
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
715
715
|
* MIT Licensed
|
|
716
716
|
*)
|
|
717
|
-
*/const{message:CXt}=V3e;async function kXt(e){const t=e.clone(),r=await t.text(),n=t.status||200,o=t.statusText||CXt[n]||"OK";return{status:n,statusText:o,headers:Object.fromEntries(t.headers.entries()),body:r}}function TXt(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 _Xt(e,t){t===void 0&&(t={});for(var r=TXt(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 L=d(I);if(L!==void 0)return L;var P=r[u],H=P.type,j=P.index;throw new TypeError("Unexpected ".concat(H," at ").concat(j,", expected ").concat(I))},p=function(){for(var I="",L;L=d("CHAR")||d("ESCAPED_CHAR");)I+=L;return I},h=function(I){for(var L=0,P=a;L<P.length;L++){var H=P[L];if(I.indexOf(H)>-1)return!0}return!1},v=function(I){var L=l[l.length-1],P=I||(L&&typeof L=="string"?L:"");if(L&&!P)throw new TypeError('Must have text between two parameters, missing text after "'.concat(L.name,'"'));return!P||h(P)?"[^".concat(op(a),"]+?"):"(?:(?!".concat(op(P),")[^").concat(op(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 T=d("OPEN");if(T){var k=p(),S=d("NAME")||"",A=d("PATTERN")||"",O=p();f("CLOSE"),l.push({name:S||(A?s++:""),pattern:S&&!A?v(k):A,prefix:k,suffix:O,modifier:d("MODIFIER")||""});continue}f("END")}return l}function SXt(e,t){var r=[],n=q3e(e,r,t);return EXt(n,r,t)}function EXt(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(h){return o(h,p)}):u[p.name]=o(a[f],p)},d=1;d<a.length;d++)c(d);return{path:l,index:s,params:u}}}function op(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function U3e(e){return e&&e.sensitive?"":"i"}function AXt(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 OXt(e,t,r){var n=e.map(function(o){return q3e(o,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),U3e(r))}function IXt(e,t,r){return RXt(_Xt(e,r),t,r)}function RXt(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(L){return L}:u,d=r.delimiter,f=d===void 0?"/#?":d,p=r.endsWith,h=p===void 0?"":p,v="[".concat(op(h),"]|$"),b="[".concat(op(f),"]"),y=a?"^":"",w=0,k=e;w<k.length;w++){var E=k[w];if(typeof E=="string")y+=op(c(E));else{var T=op(c(E.prefix)),S=op(c(E.suffix));if(E.pattern)if(t&&t.push(E),T||S)if(E.modifier==="+"||E.modifier==="*"){var A=E.modifier==="*"?"?":"";y+="(?:".concat(T,"((?:").concat(E.pattern,")(?:").concat(S).concat(T,"(?:").concat(E.pattern,"))*)").concat(S,")").concat(A)}else y+="(?:".concat(T,"(").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(T).concat(S,")").concat(E.modifier)}}if(s)o||(y+="".concat(b,"?")),y+=r.endsWith?"(?=".concat(v,")"):"$";else{var O=e[e.length-1],I=typeof O=="string"?b.indexOf(O[O.length-1])>-1:O===void 0;o||(y+="(?:".concat(b,"(?=").concat(v,"))?")),I||(y+="(?=".concat(b,"|").concat(v,")"))}return new RegExp(y,U3e(r))}function q3e(e,t,r){return e instanceof RegExp?AXt(e,t):Array.isArray(e)?OXt(e,t,r):IXt(e,t,r)}new TextEncoder;var U1=class extends Response{static isConfigurableStatusCode(t){return t>=200&&t<=599}static isRedirectResponse(t){return U1.STATUS_CODES_WITH_REDIRECT.includes(t)}static isResponseWithBody(t){return!U1.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=U1.isConfigurableStatusCode(o)?o:200,a=U1.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})}U1.setUrl(r.url,this)}},Rz=U1;Rz.STATUS_CODES_WITHOUT_BODY=[101,103,204,205,304],Rz.STATUS_CODES_WITH_REDIRECT=[301,302,303,307,308];function Pz(){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 PXt={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.
|
|
717
|
+
*/const{message:CXt}=V3e;async function kXt(e){const t=e.clone(),r=await t.text(),n=t.status||200,o=t.statusText||CXt[n]||"OK";return{status:n,statusText:o,headers:Object.fromEntries(t.headers.entries()),body:r}}function TXt(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 _Xt(e,t){t===void 0&&(t={});for(var r=TXt(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 L=d(I);if(L!==void 0)return L;var P=r[u],H=P.type,j=P.index;throw new TypeError("Unexpected ".concat(H," at ").concat(j,", expected ").concat(I))},p=function(){for(var I="",L;L=d("CHAR")||d("ESCAPED_CHAR");)I+=L;return I},h=function(I){for(var L=0,P=a;L<P.length;L++){var H=P[L];if(I.indexOf(H)>-1)return!0}return!1},v=function(I){var L=l[l.length-1],P=I||(L&&typeof L=="string"?L:"");if(L&&!P)throw new TypeError('Must have text between two parameters, missing text after "'.concat(L.name,'"'));return!P||h(P)?"[^".concat(op(a),"]+?"):"(?:(?!".concat(op(P),")[^").concat(op(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 T=d("OPEN");if(T){var k=p(),S=d("NAME")||"",A=d("PATTERN")||"",O=p();f("CLOSE"),l.push({name:S||(A?s++:""),pattern:S&&!A?v(k):A,prefix:k,suffix:O,modifier:d("MODIFIER")||""});continue}f("END")}return l}function SXt(e,t){var r=[],n=q3e(e,r,t);return EXt(n,r,t)}function EXt(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(h){return o(h,p)}):u[p.name]=o(a[f],p)},d=1;d<a.length;d++)c(d);return{path:l,index:s,params:u}}}function op(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function U3e(e){return e&&e.sensitive?"":"i"}function AXt(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 OXt(e,t,r){var n=e.map(function(o){return q3e(o,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),U3e(r))}function IXt(e,t,r){return RXt(_Xt(e,r),t,r)}function RXt(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(L){return L}:u,d=r.delimiter,f=d===void 0?"/#?":d,p=r.endsWith,h=p===void 0?"":p,v="[".concat(op(h),"]|$"),b="[".concat(op(f),"]"),y=a?"^":"",w=0,k=e;w<k.length;w++){var E=k[w];if(typeof E=="string")y+=op(c(E));else{var T=op(c(E.prefix)),S=op(c(E.suffix));if(E.pattern)if(t&&t.push(E),T||S)if(E.modifier==="+"||E.modifier==="*"){var A=E.modifier==="*"?"?":"";y+="(?:".concat(T,"((?:").concat(E.pattern,")(?:").concat(S).concat(T,"(?:").concat(E.pattern,"))*)").concat(S,")").concat(A)}else y+="(?:".concat(T,"(").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(T).concat(S,")").concat(E.modifier)}}if(s)o||(y+="".concat(b,"?")),y+=r.endsWith?"(?=".concat(v,")"):"$";else{var O=e[e.length-1],I=typeof O=="string"?b.indexOf(O[O.length-1])>-1:O===void 0;o||(y+="(?:".concat(b,"(?=").concat(v,"))?")),I||(y+="(?=".concat(b,"|").concat(v,")"))}return new RegExp(y,U3e(r))}function q3e(e,t,r){return e instanceof RegExp?AXt(e,t):Array.isArray(e)?OXt(e,t,r):IXt(e,t,r)}new TextEncoder;var U1=class extends Response{static isConfigurableStatusCode(t){return t>=200&&t<=599}static isRedirectResponse(t){return U1.STATUS_CODES_WITH_REDIRECT.includes(t)}static isResponseWithBody(t){return!U1.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=U1.isConfigurableStatusCode(o)?o:200,a=U1.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})}U1.setUrl(r.url,this)}},Rz=U1;Rz.STATUS_CODES_WITHOUT_BODY=[101,103,204,205,304],Rz.STATUS_CODES_WITH_REDIRECT=[301,302,303,307,308];function Pz(){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 PXt={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.87 (built 7/28/2025)"},LXt=Object.defineProperty,HXt=(e,t)=>{for(var r in t)LXt(e,r,{get:t[r],enumerable:!0})},Lz={};HXt(Lz,{blue:()=>$Xt,gray:()=>Hz,green:()=>BXt,red:()=>DXt,yellow:()=>NXt});function NXt(e){return`\x1B[33m${e}\x1B[0m`}function $Xt(e){return`\x1B[34m${e}\x1B[0m`}function Hz(e){return`\x1B[90m${e}\x1B[0m`}function DXt(e){return`\x1B[31m${e}\x1B[0m`}function BXt(e){return`\x1B[32m${e}\x1B[0m`}var K5=Pz(),G3e=class{constructor(t){_r(this,"prefix");this.name=t,this.prefix=`[${this.name}]`;const r=Y3e("DEBUG"),n=Y3e("LOG_LEVEL");r==="1"||r==="true"||typeof r<"u"&&this.name.startsWith(r)?(this.debug=_k(n,"debug")?Kc:this.debug,this.info=_k(n,"info")?Kc:this.info,this.success=_k(n,"success")?Kc:this.success,this.warning=_k(n,"warning")?Kc:this.warning,this.error=_k(n,"error")?Kc:this.error):(this.info=Kc,this.success=Kc,this.warning=Kc,this.error=Kc,this.only=Kc)}extend(t){return new G3e(`${this.name}:${t}`)}debug(t,...r){this.logEntry({level:"debug",message:Hz(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 jXt;return(o,...i)=>{n.measure(),this.logEntry({level:"info",message:`${o} ${Hz(`${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:Lz[s],prefix:Lz[u]};this.getWriter(r)([c.timestamp(this.formatTimestamp(l.timestamp))].concat(o!=null?c.prefix(o):[]).concat(K3e(n)).join(" "),...a.map(K3e))}formatTimestamp(t){return`${t.toLocaleTimeString("en-GB")}:${t.getMilliseconds()}`}getWriter(t){switch(t){case"debug":case"success":case"info":return MXt;case"warning":return zXt;case"error":return FXt}}},jXt=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)}},Kc=()=>{};function MXt(e,...t){if(K5){process.stdout.write(V1(e,...t)+`
|
|
718
718
|
`);return}console.log(e,...t)}function zXt(e,...t){if(K5){process.stderr.write(V1(e,...t)+`
|
|
719
719
|
`);return}console.warn(e,...t)}function FXt(e,...t){if(K5){process.stderr.write(V1(e,...t)+`
|
|
720
720
|
`);return}console.error(e,...t)}function Y3e(e){var t;return K5?PXt[e]:(t=globalThis[e])==null?void 0:t.toString()}function _k(e,t){return e!==void 0&&e!==t}function K3e(e){return typeof e>"u"?"undefined":e===null?"null":typeof e=="string"?e:typeof e=="object"?JSON.stringify(e):e.toString()}function X3e(e){return globalThis[e]||void 0}function WXt(e,t){globalThis[e]=t}function VXt(e){delete globalThis[e]}var UXt=class{constructor(t){this.symbol=t,this.readyState="INACTIVE",this.emitter=new G5,this.subscriptions=[],this.logger=new G3e(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:",X3e(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=X3e(this.symbol);return this.logger.info("retrieved global instance:",(t=r==null?void 0:r.constructor)==null?void 0:t.name),r}setInstance(){WXt(this.symbol,this),this.logger.info("set global instance!",this.symbol.description)}clearInstance(){VXt(this.symbol),this.logger.info("cleared global instance!",this.symbol.description)}};function qXt(){return Math.random().toString(16).slice(2)}function GXt(e,t=!0){return[t&&e.origin,e.pathname].filter(Boolean).join("")}const YXt=/[\?|#].*$/g;function KXt(e){return new URL(`/${e}`,"http://localhost").searchParams}function Q3e(e){return e.endsWith("?")?e:e.replace(YXt,"")}function XXt(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}function QXt(e,t){if(XXt(e)||e.startsWith("*"))return e;const r=t||typeof location<"u"&&location.href;return r?decodeURI(new URL(encodeURI(e),r).href):e}function ZXt(e,t){if(e instanceof RegExp)return e;const r=QXt(e,t);return Q3e(r)}function JXt(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 Nz(e,t,r){const n=ZXt(t,r),o=typeof n=="string"?JXt(n):n,i=GXt(e),a=SXt(o,{decode:decodeURIComponent})(i),l=a&&a.params||{};return{matches:a!==!1,params:l}}function Sk(e){if(typeof location>"u")return e.toString();const t=e instanceof URL?e:new URL(e);return t.origin===location.origin?t.pathname:t.origin+t.pathname}var eQt=Object.create,Z3e=Object.defineProperty,tQt=Object.getOwnPropertyDescriptor,J3e=Object.getOwnPropertyNames,rQt=Object.getPrototypeOf,nQt=Object.prototype.hasOwnProperty,oQt=(e,t)=>function(){return t||(0,e[J3e(e)[0]])((t={exports:{}}).exports,t),t.exports},iQt=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of J3e(t))!nQt.call(e,o)&&o!==r&&Z3e(e,o,{get:()=>t[o],enumerable:!(n=tQt(t,o))||n.enumerable});return e},aQt=(e,t,r)=>(r=e!=null?eQt(rQt(e)):{},iQt(Z3e(r,"default",{value:e,enumerable:!0}),e)),lQt=oQt({"node_modules/cookie/index.js"(e){e.parse=l,e.serialize=c;var t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,o=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/;function l(h,v){if(typeof h!="string")throw new TypeError("argument str must be a string");var b={},y=h.length;if(y<2)return b;var w=v&&v.decode||d,k=0,E=0,T=0;do{if(E=h.indexOf("=",k),E===-1)break;if(T=h.indexOf(";",k),T===-1)T=y;else if(E>T){k=h.lastIndexOf(";",E-1)+1;continue}var S=s(h,k,E),A=u(h,E,S),O=h.slice(S,A);if(!r.call(b,O)){var I=s(h,E+1,T),L=u(h,T,I);h.charCodeAt(I)===34&&h.charCodeAt(L-1)===34&&(I++,L--);var P=h.slice(I,L);b[O]=p(P,w)}k=T+1}while(k<y);return b}function s(h,v,b){do{var y=h.charCodeAt(v);if(y!==32&&y!==9)return v}while(++v<b);return b}function u(h,v,b){for(;v>b;){var y=h.charCodeAt(--v);if(y!==32&&y!==9)return v+1}return b}function c(h,v,b){var y=b&&b.encode||encodeURIComponent;if(typeof y!="function")throw new TypeError("option encode is invalid");if(!n.test(h))throw new TypeError("argument name is invalid");var w=y(v);if(!o.test(w))throw new TypeError("argument val is invalid");var k=h+"="+w;if(!b)return k;if(b.maxAge!=null){var E=Math.floor(b.maxAge);if(!isFinite(E))throw new TypeError("option maxAge is invalid");k+="; Max-Age="+E}if(b.domain){if(!i.test(b.domain))throw new TypeError("option domain is invalid");k+="; Domain="+b.domain}if(b.path){if(!a.test(b.path))throw new TypeError("option path is invalid");k+="; Path="+b.path}if(b.expires){var T=b.expires;if(!f(T)||isNaN(T.valueOf()))throw new TypeError("option expires is invalid");k+="; Expires="+T.toUTCString()}if(b.httpOnly&&(k+="; HttpOnly"),b.secure&&(k+="; Secure"),b.partitioned&&(k+="; Partitioned"),b.priority){var S=typeof b.priority=="string"?b.priority.toLowerCase():b.priority;switch(S){case"low":k+="; Priority=Low";break;case"medium":k+="; Priority=Medium";break;case"high":k+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(b.sameSite){var A=typeof b.sameSite=="string"?b.sameSite.toLowerCase():b.sameSite;switch(A){case!0:k+="; SameSite=Strict";break;case"lax":k+="; SameSite=Lax";break;case"strict":k+="; SameSite=Strict";break;case"none":k+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return k}function d(h){return h.indexOf("%")!==-1?decodeURIComponent(h):h}function f(h){return t.call(h)==="[object Date]"}function p(h,v){try{return v(h)}catch{return h}}}}),sQt=aQt(lQt()),eEe=sQt.default;/*! Bundled license information:
|
|
@@ -951,7 +951,7 @@ Read more: https://mswjs.io/docs/getting-started/mocks`;function l(s){switch(s){
|
|
|
951
951
|
`+n).join("")):""}var $Ee=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],Kz=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat($Ee),TZt={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function X1(e,t){this._e=Gg(),this.name=e,this.message=t}function DEe(e,t){return e+". Errors: "+Object.keys(t).map(r=>t[r].toString()).filter((r,n,o)=>o.indexOf(r)===n).join(`
|
|
952
952
|
`)}function J5(e,t,r,n){this._e=Gg(),this.failures=t,this.failedKeys=n,this.successCount=r,this.message=DEe(e,t)}function Pk(e,t){this._e=Gg(),this.name="BulkError",this.failures=Object.keys(t).map(r=>t[r]),this.failuresByPos=t,this.message=DEe(e,t)}Y1(X1).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+Yz(this._e,2))}},toString:function(){return this.name+": "+this.message}}),Y1(J5).from(X1),Y1(Pk).from(X1);var Xz=Kz.reduce((e,t)=>(e[t]=t+"Error",e),{});const _Zt=X1;var Ut=Kz.reduce((e,t)=>{var r=t+"Error";function n(o,i){this._e=Gg(),this.name=r,o?typeof o=="string"?(this.message=`${o}${i?`
|
|
953
953
|
`+i:""}`,this.inner=i||null):typeof o=="object"&&(this.message=`${o.name} ${o.message}`,this.inner=o):(this.message=TZt[t]||r,this.inner=null)}return Y1(n).from(_Zt),e[t]=n,e},{});Ut.Syntax=SyntaxError,Ut.Type=TypeError,Ut.Range=RangeError;var BEe=$Ee.reduce((e,t)=>(e[t+"Error"]=Ut[t],e),{}),eO=Kz.reduce((e,t)=>(["Syntax","Type","Range"].indexOf(t)===-1&&(e[t+"Error"]=Ut[t]),e),{});function pn(){}function Lk(e){return e}function SZt(e,t){return e==null||e===Lk?t:function(r){return t(e(r))}}function Yg(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function EZt(e,t){return e===pn?t:function(){var r=e.apply(this,arguments);r!==void 0&&(arguments[0]=r);var n=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var i=t.apply(this,arguments);return n&&(this.onsuccess=this.onsuccess?Yg(n,this.onsuccess):n),o&&(this.onerror=this.onerror?Yg(o,this.onerror):o),i!==void 0?i:r}}function AZt(e,t){return e===pn?t:function(){e.apply(this,arguments);var r=this.onsuccess,n=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),r&&(this.onsuccess=this.onsuccess?Yg(r,this.onsuccess):r),n&&(this.onerror=this.onerror?Yg(n,this.onerror):n)}}function OZt(e,t){return e===pn?t:function(r){var n=e.apply(this,arguments);Aa(r,n);var o=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var a=t.apply(this,arguments);return o&&(this.onsuccess=this.onsuccess?Yg(o,this.onsuccess):o),i&&(this.onerror=this.onerror?Yg(i,this.onerror):i),n===void 0?a===void 0?void 0:a:Aa(n,a)}}function IZt(e,t){return e===pn?t:function(){return t.apply(this,arguments)!==!1&&e.apply(this,arguments)}}function Qz(e,t){return e===pn?t:function(){var r=e.apply(this,arguments);if(r&&typeof r.then=="function"){for(var n=this,o=arguments.length,i=new Array(o);o--;)i[o]=arguments[o];return r.then(function(){return t.apply(n,i)})}return t.apply(this,arguments)}}eO.ModifyError=J5,eO.DexieError=X1,eO.BulkError=Pk;var Hk={};const jEe=100,[Zz,tO,Jz]=typeof Promise>"u"?[]:(()=>{let e=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[e,Ok(e),e];const t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,Ok(t),e]})(),MEe=tO&&tO.then,rO=Zz&&Zz.constructor,eF=!!Jz;var tF=!1,RZt=Jz?()=>{Jz.then(aO)}:Pn.setImmediate?setImmediate.bind(null,aO):Pn.MutationObserver?()=>{var e=document.createElement("div");new MutationObserver(()=>{aO(),e=null}).observe(e,{attributes:!0}),e.setAttribute("i","1")}:()=>{setTimeout(aO,0)},Nk=function(e,t){$k.push([e,t]),nO&&(RZt(),nO=!1)},rF=!0,nO=!0,Kg=[],oO=[],nF=null,oF=Lk,Q1={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:XEe,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(e=>{try{XEe(e[0],e[1])}catch{}})}},Rt=Q1,$k=[],Xg=0,iO=[];function gt(e){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=pn,this._lib=!1;var t=this._PSD=Rt;if(Xc&&(this._stackHolder=Gg(),this._prev=null,this._numPrev=0),typeof e!="function"){if(e!==Hk)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&aF(this,this._value))}this._state=null,this._value=null,++t.ref,FEe(this,e)}const iF={get:function(){var e=Rt,t=uO;function r(n,o){var i=!e.global&&(e!==Rt||t!==uO);const a=i&&!hf();var l=new gt((s,u)=>{lF(this,new zEe(dO(n,e,i,a),dO(o,e,i,a),s,u,e))});return Xc&&UEe(l,this),l}return r.prototype=Hk,r},set:function(e){ff(this,"then",e&&e.prototype===Hk?iF:{get:function(){return e},set:iF.set})}};function zEe(e,t,r,n,o){this.onFulfilled=typeof e=="function"?e:null,this.onRejected=typeof t=="function"?t:null,this.resolve=r,this.reject=n,this.psd=o}function FEe(e,t){try{t(r=>{if(e._state===null){if(r===e)throw new TypeError("A promise cannot be resolved with itself.");var n=e._lib&&Dk();r&&typeof r.then=="function"?FEe(e,(o,i)=>{r instanceof gt?r._then(o,i):r.then(o,i)}):(e._state=!0,e._value=r,WEe(e)),n&&Bk()}},aF.bind(null,e))}catch(r){aF(e,r)}}function aF(e,t){if(oO.push(t),e._state===null){var r=e._lib&&Dk();t=oF(t),e._state=!1,e._value=t,Xc&&t!==null&&typeof t=="object"&&!t._promise&&function(n,o,i){try{n.apply(null,i)}catch{}}(()=>{var n=Wz(t,"stack");t._promise=e,ff(t,"stack",{get:()=>tF?n&&(n.get?n.get.apply(t):n.value):e.stack})}),function(n){Kg.some(o=>o._value===n._value)||Kg.push(n)}(e),WEe(e),r&&Bk()}}function WEe(e){var t=e._listeners;e._listeners=[];for(var r=0,n=t.length;r<n;++r)lF(e,t[r]);var o=e._PSD;--o.ref||o.finalize(),Xg===0&&(++Xg,Nk(()=>{--Xg==0&&sF()},[]))}function lF(e,t){if(e._state!==null){var r=e._state?t.onFulfilled:t.onRejected;if(r===null)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++Xg,Nk(PZt,[r,e,t])}else e._listeners.push(t)}function PZt(e,t,r){try{nF=t;var n,o=t._value;t._state?n=e(o):(oO.length&&(oO=[]),n=e(o),oO.indexOf(o)===-1&&function(i){for(var a=Kg.length;a;)if(Kg[--a]._value===i._value)return void Kg.splice(a,1)}(t)),r.resolve(n)}catch(i){r.reject(i)}finally{nF=null,--Xg==0&&sF(),--r.psd.ref||r.psd.finalize()}}function VEe(e,t,r){if(t.length===r)return t;var n="";if(e._state===!1){var o,i,a=e._value;a!=null?(o=a.name||"Error",i=a.message||a,n=Yz(a,0)):(o=a,i=""),t.push(o+(i?": "+i:"")+n)}return Xc&&((n=Yz(e._stackHolder,2))&&t.indexOf(n)===-1&&t.push(n),e._prev&&VEe(e._prev,t,r)),t}function UEe(e,t){var r=t?t._numPrev+1:0;r<100&&(e._prev=t,e._numPrev=r)}function aO(){Dk()&&Bk()}function Dk(){var e=rF;return rF=!1,nO=!1,e}function Bk(){var e,t,r;do for(;$k.length>0;)for(e=$k,$k=[],r=e.length,t=0;t<r;++t){var n=e[t];n[0].apply(null,n[1])}while($k.length>0);rF=!0,nO=!0}function sF(){var e=Kg;Kg=[],e.forEach(n=>{n._PSD.onunhandled.call(null,n._value,n)});for(var t=iO.slice(0),r=t.length;r;)t[--r]()}function lO(e){return new gt(Hk,!1,e)}function Fn(e,t){var r=Rt;return function(){var n=Dk(),o=Rt;try{return up(r,!0),e.apply(this,arguments)}catch(i){t&&t(i)}finally{up(o,!1),n&&Bk()}}}G1(gt.prototype,{then:iF,_then:function(e,t){lF(this,new zEe(null,null,e,t,Rt))},catch:function(e){if(arguments.length===1)return this.then(null,e);var t=arguments[0],r=arguments[1];return typeof t=="function"?this.then(null,n=>n instanceof t?r(n):lO(n)):this.then(null,n=>n&&n.name===t?r(n):lO(n))},finally:function(e){return this.then(t=>(e(),t),t=>(e(),lO(t)))},stack:{get:function(){if(this._stack)return this._stack;try{tF=!0;var e=VEe(this,[],20).join(`
|
|
954
|
-
From previous: `);return this._state!==null&&(this._stack=e),e}finally{tF=!1}}},timeout:function(e,t){return e<1/0?new gt((r,n)=>{var o=setTimeout(()=>n(new Ut.Timeout(t)),e);this.then(r,n).finally(clearTimeout.bind(null,o))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&ff(gt.prototype,Symbol.toStringTag,"Dexie.Promise"),Q1.env=qEe(),G1(gt,{all:function(){var e=pf.apply(null,arguments).map(cO);return new gt(function(t,r){e.length===0&&t([]);var n=e.length;e.forEach((o,i)=>gt.resolve(o).then(a=>{e[i]=a,--n||t(e)},r))})},resolve:e=>{if(e instanceof gt)return e;if(e&&typeof e.then=="function")return new gt((r,n)=>{e.then(r,n)});var t=new gt(Hk,!0,e);return UEe(t,nF),t},reject:lO,race:function(){var e=pf.apply(null,arguments).map(cO);return new gt((t,r)=>{e.map(n=>gt.resolve(n).then(t,r))})},PSD:{get:()=>Rt,set:e=>Rt=e},totalEchoes:{get:()=>uO},newPSD:sp,usePSD:J1,scheduler:{get:()=>Nk,set:e=>{Nk=e}},rejectionMapper:{get:()=>oF,set:e=>{oF=e}},follow:(e,t)=>new gt((r,n)=>sp((o,i)=>{var a=Rt;a.unhandleds=[],a.onunhandled=i,a.finalize=Yg(function(){(function(l){function s(){l(),iO.splice(iO.indexOf(s),1)}iO.push(s),++Xg,Nk(()=>{--Xg==0&&sF()},[])})(()=>{this.unhandleds.length===0?o():i(this.unhandleds[0])})},a.finalize),e()},t,r,n))}),rO&&(rO.allSettled&&ff(gt,"allSettled",function(){const e=pf.apply(null,arguments).map(cO);return new gt(t=>{e.length===0&&t([]);let r=e.length;const n=new Array(r);e.forEach((o,i)=>gt.resolve(o).then(a=>n[i]={status:"fulfilled",value:a},a=>n[i]={status:"rejected",reason:a}).then(()=>--r||t(n)))})}),rO.any&&typeof AggregateError<"u"&&ff(gt,"any",function(){const e=pf.apply(null,arguments).map(cO);return new gt((t,r)=>{e.length===0&&r(new AggregateError([]));let n=e.length;const o=new Array(n);e.forEach((i,a)=>gt.resolve(i).then(l=>t(l),l=>{o[a]=l,--n||r(new AggregateError(o))}))})}));const Ji={awaits:0,echoes:0,id:0};var LZt=0,sO=[],uF=0,uO=0,HZt=0;function sp(e,t,r,n){var o=Rt,i=Object.create(o);i.parent=o,i.ref=0,i.global=!1,i.id=++HZt;var a=Q1.env;i.env=eF?{Promise:gt,PromiseProp:{value:gt,configurable:!0,writable:!0},all:gt.all,race:gt.race,allSettled:gt.allSettled,any:gt.any,resolve:gt.resolve,reject:gt.reject,nthen:YEe(a.nthen,i),gthen:YEe(a.gthen,i)}:{},t&&Aa(i,t),++o.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var l=J1(i,e,r,n);return i.ref===0&&i.finalize(),l}function Z1(){return Ji.id||(Ji.id=++LZt),++Ji.awaits,Ji.echoes+=jEe,Ji.id}function hf(){return!!Ji.awaits&&(--Ji.awaits==0&&(Ji.id=0),Ji.echoes=Ji.awaits*jEe,!0)}function cO(e){return Ji.echoes&&e&&e.constructor===rO?(Z1(),e.then(t=>(hf(),t),t=>(hf(),oi(t)))):e}function NZt(e){++uO,Ji.echoes&&--Ji.echoes!=0||(Ji.echoes=Ji.id=0),sO.push(Rt),up(e,!0)}function $Zt(){var e=sO[sO.length-1];sO.pop(),up(e,!1)}function up(e,t){var r=Rt;if((t?!Ji.echoes||uF++&&e===Rt:!uF||--uF&&e===Rt)||GEe(t?NZt.bind(null,e):$Zt),e!==Rt&&(Rt=e,r===Q1&&(Q1.env=qEe()),eF)){var n=Q1.env.Promise,o=e.env;tO.then=o.nthen,n.prototype.then=o.gthen,(r.global||e.global)&&(Object.defineProperty(Pn,"Promise",o.PromiseProp),n.all=o.all,n.race=o.race,n.resolve=o.resolve,n.reject=o.reject,o.allSettled&&(n.allSettled=o.allSettled),o.any&&(n.any=o.any))}}function qEe(){var e=Pn.Promise;return eF?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(Pn,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:tO.then,gthen:e.prototype.then}:{}}function J1(e,t,r,n,o){var i=Rt;try{return up(e,!0),t(r,n,o)}finally{up(i,!1)}}function GEe(e){MEe.call(Zz,e)}function dO(e,t,r,n){return typeof e!="function"?e:function(){var o=Rt;r&&Z1(),up(t,!0);try{return e.apply(this,arguments)}finally{up(o,!1),n&&GEe(hf)}}}function YEe(e,t){return function(r,n){return e.call(this,dO(r,t),dO(n,t))}}(""+MEe).indexOf("[native code]")===-1&&(Z1=hf=pn);const KEe="unhandledrejection";function XEe(e,t){var r;try{r=t.onuncatched(e)}catch{}if(r!==!1)try{var n,o={promise:t,reason:e};if(Pn.document&&document.createEvent?((n=document.createEvent("Event")).initEvent(KEe,!0,!0),Aa(n,o)):Pn.CustomEvent&&Aa(n=new CustomEvent(KEe,{detail:o}),o),n&&Pn.dispatchEvent&&(dispatchEvent(n),!Pn.PromiseRejectionEvent&&Pn.onunhandledrejection))try{Pn.onunhandledrejection(n)}catch{}Xc&&n&&!n.defaultPrevented&&console.warn(`Unhandled rejection: ${e.stack||e}`)}catch{}}var oi=gt.reject;function cF(e,t,r,n){if(e.idbdb&&(e._state.openComplete||Rt.letThrough||e._vip)){var o=e._createTransaction(t,r,e._dbSchema);try{o.create(),e._state.PR1398_maxLoop=3}catch(i){return i.name===Xz.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then(()=>cF(e,t,r,n))):oi(i)}return o._promise(t,(i,a)=>sp(()=>(Rt.trans=o,n(i,a,o)))).then(i=>o._completion.then(()=>i))}if(e._state.openComplete)return oi(new Ut.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return oi(new Ut.DatabaseClosed);e.open().catch(pn)}return e._state.dbReadyPromise.then(()=>cF(e,t,r,n))}const QEe="3.2.4",Qg="",dF=-1/0,gf="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",ZEe="String expected.",jk=[],fO=typeof navigator<"u"&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),DZt=fO,BZt=fO,JEe=e=>!/(dexie\.js|dexie\.min\.js)/.test(e),mO="__dbnames",fF="readonly",mF="readwrite";function Zg(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}const e6e={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function pO(e){return typeof e!="string"||/\./.test(e)?t=>t:t=>(t[e]===void 0&&e in t&&delete(t=Rk(t))[e],t)}class jZt{_trans(t,r,n){const o=this._tx||Rt.trans,i=this.name;function a(s,u,c){if(!c.schema[i])throw new Ut.NotFound("Table "+i+" not part of transaction");return r(c.idbtrans,c)}const l=Dk();try{return o&&o.db===this.db?o===Rt.trans?o._promise(t,a,n):sp(()=>o._promise(t,a,n),{trans:o,transless:Rt.transless||Rt}):cF(this.db,t,[this.name],a)}finally{l&&Bk()}}get(t,r){return t&&t.constructor===Object?this.where(t).first(r):this._trans("readonly",n=>this.core.get({trans:n,key:t}).then(o=>this.hook.reading.fire(o))).then(r)}where(t){if(typeof t=="string")return new this.db.WhereClause(this,t);if(Zi(t))return new this.db.WhereClause(this,`[${t.join("+")}]`);const r=Mo(t);if(r.length===1)return this.where(r[0]).equals(t[r[0]]);const n=this.schema.indexes.concat(this.schema.primKey).filter(u=>u.compound&&r.every(c=>u.keyPath.indexOf(c)>=0)&&u.keyPath.every(c=>r.indexOf(c)>=0))[0];if(n&&this.db._maxKey!==Qg)return this.where(n.name).equals(n.keyPath.map(u=>t[u]));!n&&Xc&&console.warn(`The query ${JSON.stringify(t)} on ${this.name} would benefit of a compound index [${r.join("+")}]`);const{idxByName:o}=this.schema,i=this.db._deps.indexedDB;function a(u,c){try{return i.cmp(u,c)===0}catch{return!1}}const[l,s]=r.reduce(([u,c],d)=>{const f=o[d],p=t[d];return[u||f,u||!f?Zg(c,f&&f.multi?h=>{const v=mf(h,d);return Zi(v)&&v.some(b=>a(p,b))}:h=>a(p,mf(h,d))):c]},[null,null]);return l?this.where(l.name).equals(t[l.keyPath]).filter(s):n?this.filter(s):this.where(r).equals("")}filter(t){return this.toCollection().and(t)}count(t){return this.toCollection().count(t)}offset(t){return this.toCollection().offset(t)}limit(t){return this.toCollection().limit(t)}each(t){return this.toCollection().each(t)}toArray(t){return this.toCollection().toArray(t)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(t){return new this.db.Collection(new this.db.WhereClause(this,Zi(t)?`[${t.join("+")}]`:t))}reverse(){return this.toCollection().reverse()}mapToClass(t){this.schema.mappedClass=t;const r=n=>{if(!n)return n;const o=Object.create(t.prototype);for(var i in n)if(Zl(n,i))try{o[i]=n[i]}catch{}return o};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=r,this.hook("reading",r),t}defineClass(){return this.mapToClass(function(t){Aa(this,t)})}add(t,r){const{auto:n,keyPath:o}=this.schema.primKey;let i=t;return o&&n&&(i=pO(o)(t)),this._trans("readwrite",a=>this.core.mutate({trans:a,type:"add",keys:r!=null?[r]:null,values:[i]})).then(a=>a.numFailures?gt.reject(a.failures[0]):a.lastResult).then(a=>{if(o)try{Yu(t,o,a)}catch{}return a})}update(t,r){if(typeof t!="object"||Zi(t))return this.where(":id").equals(t).modify(r);{const n=mf(t,this.schema.primKey.keyPath);if(n===void 0)return oi(new Ut.InvalidArgument("Given object does not contain its primary key"));try{typeof r!="function"?Mo(r).forEach(o=>{Yu(t,o,r[o])}):r(t,{value:t,primKey:n})}catch{}return this.where(":id").equals(n).modify(r)}}put(t,r){const{auto:n,keyPath:o}=this.schema.primKey;let i=t;return o&&n&&(i=pO(o)(t)),this._trans("readwrite",a=>this.core.mutate({trans:a,type:"put",values:[i],keys:r!=null?[r]:null})).then(a=>a.numFailures?gt.reject(a.failures[0]):a.lastResult).then(a=>{if(o)try{Yu(t,o,a)}catch{}return a})}delete(t){return this._trans("readwrite",r=>this.core.mutate({trans:r,type:"delete",keys:[t]})).then(r=>r.numFailures?gt.reject(r.failures[0]):void 0)}clear(){return this._trans("readwrite",t=>this.core.mutate({trans:t,type:"deleteRange",range:e6e})).then(t=>t.numFailures?gt.reject(t.failures[0]):void 0)}bulkGet(t){return this._trans("readonly",r=>this.core.getMany({keys:t,trans:r}).then(n=>n.map(o=>this.hook.reading.fire(o))))}bulkAdd(t,r,n){const o=Array.isArray(r)?r:void 0,i=(n=n||(o?void 0:r))?n.allKeys:void 0;return this._trans("readwrite",a=>{const{auto:l,keyPath:s}=this.schema.primKey;if(s&&o)throw new Ut.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(o&&o.length!==t.length)throw new Ut.InvalidArgument("Arguments objects and keys must have the same length");const u=t.length;let c=s&&l?t.map(pO(s)):t;return this.core.mutate({trans:a,type:"add",keys:o,values:c,wantResults:i}).then(({numFailures:d,results:f,lastResult:p,failures:h})=>{if(d===0)return i?f:p;throw new Pk(`${this.name}.bulkAdd(): ${d} of ${u} operations failed`,h)})})}bulkPut(t,r,n){const o=Array.isArray(r)?r:void 0,i=(n=n||(o?void 0:r))?n.allKeys:void 0;return this._trans("readwrite",a=>{const{auto:l,keyPath:s}=this.schema.primKey;if(s&&o)throw new Ut.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(o&&o.length!==t.length)throw new Ut.InvalidArgument("Arguments objects and keys must have the same length");const u=t.length;let c=s&&l?t.map(pO(s)):t;return this.core.mutate({trans:a,type:"put",keys:o,values:c,wantResults:i}).then(({numFailures:d,results:f,lastResult:p,failures:h})=>{if(d===0)return i?f:p;throw new Pk(`${this.name}.bulkPut(): ${d} of ${u} operations failed`,h)})})}bulkDelete(t){const r=t.length;return this._trans("readwrite",n=>this.core.mutate({trans:n,type:"delete",keys:t})).then(({numFailures:n,lastResult:o,failures:i})=>{if(n===0)return o;throw new Pk(`${this.name}.bulkDelete(): ${n} of ${r} operations failed`,i)})}}function Mk(e){var t={},r=function(a,l){if(l){for(var s=arguments.length,u=new Array(s-1);--s;)u[s-1]=arguments[s];return t[a].subscribe.apply(null,u),e}if(typeof a=="string")return t[a]};r.addEventType=i;for(var n=1,o=arguments.length;n<o;++n)i(arguments[n]);return r;function i(a,l,s){if(typeof a!="object"){var u;l||(l=IZt),s||(s=pn);var c={subscribers:[],fire:s,subscribe:function(d){c.subscribers.indexOf(d)===-1&&(c.subscribers.push(d),c.fire=l(c.fire,d))},unsubscribe:function(d){c.subscribers=c.subscribers.filter(function(f){return f!==d}),c.fire=c.subscribers.reduce(l,s)}};return t[a]=r[a]=c,c}Mo(u=a).forEach(function(d){var f=u[d];if(Zi(f))i(d,u[d][0],u[d][1]);else{if(f!=="asap")throw new Ut.InvalidArgument("Invalid event config");var p=i(d,Lk,function(){for(var h=arguments.length,v=new Array(h);h--;)v[h]=arguments[h];p.subscribers.forEach(function(b){OEe(function(){b.apply(null,v)})})})}})}}function zk(e,t){return Y1(t).from({prototype:e}),t}function ex(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function pF(e,t){e.filter=Zg(e.filter,t)}function hF(e,t,r){var n=e.replayFilter;e.replayFilter=n?()=>Zg(n(),t()):t,e.justLimit=r&&!n}function hO(e,t){if(e.isPrimKey)return t.primaryKey;const r=t.getIndexByKeyPath(e.index);if(!r)throw new Ut.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return r}function t6e(e,t,r){const n=hO(e,t.schema);return t.openCursor({trans:r,values:!e.keysOnly,reverse:e.dir==="prev",unique:!!e.unique,query:{index:n,range:e.range}})}function gO(e,t,r,n){const o=e.replayFilter?Zg(e.filter,e.replayFilter()):e.filter;if(e.or){const i={},a=(l,s,u)=>{if(!o||o(s,u,f=>s.stop(f),f=>s.fail(f))){var c=s.primaryKey,d=""+c;d==="[object ArrayBuffer]"&&(d=""+new Uint8Array(c)),Zl(i,d)||(i[d]=!0,t(l,s,u))}};return Promise.all([e.or._iterate(a,r),r6e(t6e(e,n,r),e.algorithm,a,!e.keysOnly&&e.valueMapper)])}return r6e(t6e(e,n,r),Zg(e.algorithm,o),t,!e.keysOnly&&e.valueMapper)}function r6e(e,t,r,n){var o=Fn(n?(i,a,l)=>r(n(i),a,l):r);return e.then(i=>{if(i)return i.start(()=>{var a=()=>i.continue();t&&!t(i,l=>a=l,l=>{i.stop(l),a=pn},l=>{i.fail(l),a=pn})||o(i.value,i,l=>a=l),a()})})}function Oa(e,t){try{const r=n6e(e),n=n6e(t);if(r!==n)return r==="Array"?1:n==="Array"?-1:r==="binary"?1:n==="binary"?-1:r==="string"?1:n==="string"?-1:r==="Date"?1:n!=="Date"?NaN:-1;switch(r){case"number":case"Date":case"string":return e>t?1:e<t?-1:0;case"binary":return function(o,i){const a=o.length,l=i.length,s=a<l?a:l;for(let u=0;u<s;++u)if(o[u]!==i[u])return o[u]<i[u]?-1:1;return a===l?0:a<l?-1:1}(o6e(e),o6e(t));case"Array":return function(o,i){const a=o.length,l=i.length,s=a<l?a:l;for(let u=0;u<s;++u){const c=Oa(o[u],i[u]);if(c!==0)return c}return a===l?0:a<l?-1:1}(e,t)}}catch{}return NaN}function n6e(e){const t=typeof e;if(t!=="object")return t;if(ArrayBuffer.isView(e))return"binary";const r=Uz(e);return r==="ArrayBuffer"?"binary":r}function o6e(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}class MZt{_read(t,r){var n=this._ctx;return n.error?n.table._trans(null,oi.bind(null,n.error)):n.table._trans("readonly",t).then(r)}_write(t){var r=this._ctx;return r.error?r.table._trans(null,oi.bind(null,r.error)):r.table._trans("readwrite",t,"locked")}_addAlgorithm(t){var r=this._ctx;r.algorithm=Zg(r.algorithm,t)}_iterate(t,r){return gO(this._ctx,t,r,this._ctx.table.core)}clone(t){var r=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return t&&Aa(n,t),r._ctx=n,r}raw(){return this._ctx.valueMapper=null,this}each(t){var r=this._ctx;return this._read(n=>gO(r,t,n,r.table.core))}count(t){return this._read(r=>{const n=this._ctx,o=n.table.core;if(ex(n,!0))return o.count({trans:r,query:{index:hO(n,o.schema),range:n.range}}).then(a=>Math.min(a,n.limit));var i=0;return gO(n,()=>(++i,!1),r,o).then(()=>i)}).then(t)}sortBy(t,r){const n=t.split(".").reverse(),o=n[0],i=n.length-1;function a(u,c){return c?a(u[n[c]],c-1):u[o]}var l=this._ctx.dir==="next"?1:-1;function s(u,c){var d=a(u,i),f=a(c,i);return d<f?-l:d>f?l:0}return this.toArray(function(u){return u.sort(s)}).then(r)}toArray(t){return this._read(r=>{var n=this._ctx;if(n.dir==="next"&&ex(n,!0)&&n.limit>0){const{valueMapper:o}=n,i=hO(n,n.table.core.schema);return n.table.core.query({trans:r,limit:n.limit,values:!0,query:{index:i,range:n.range}}).then(({result:a})=>o?a.map(o):a)}{const o=[];return gO(n,i=>o.push(i),r,n.table.core).then(()=>o)}},t)}offset(t){var r=this._ctx;return t<=0||(r.offset+=t,ex(r)?hF(r,()=>{var n=t;return(o,i)=>n===0||(n===1?(--n,!1):(i(()=>{o.advance(n),n=0}),!1))}):hF(r,()=>{var n=t;return()=>--n<0})),this}limit(t){return this._ctx.limit=Math.min(this._ctx.limit,t),hF(this._ctx,()=>{var r=t;return function(n,o,i){return--r<=0&&o(i),r>=0}},!0),this}until(t,r){return pF(this._ctx,function(n,o,i){return!t(n.value)||(o(i),r)}),this}first(t){return this.limit(1).toArray(function(r){return r[0]}).then(t)}last(t){return this.reverse().first(t)}filter(t){var r,n;return pF(this._ctx,function(o){return t(o.value)}),r=this._ctx,n=t,r.isMatch=Zg(r.isMatch,n),this}and(t){return this.filter(t)}or(t){return new this.db.WhereClause(this._ctx.table,t,this)}reverse(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(t){var r=this._ctx;return r.keysOnly=!r.isMatch,this.each(function(n,o){t(o.key,o)})}eachUniqueKey(t){return this._ctx.unique="unique",this.eachKey(t)}eachPrimaryKey(t){var r=this._ctx;return r.keysOnly=!r.isMatch,this.each(function(n,o){t(o.primaryKey,o)})}keys(t){var r=this._ctx;r.keysOnly=!r.isMatch;var n=[];return this.each(function(o,i){n.push(i.key)}).then(function(){return n}).then(t)}primaryKeys(t){var r=this._ctx;if(r.dir==="next"&&ex(r,!0)&&r.limit>0)return this._read(o=>{var i=hO(r,r.table.core.schema);return r.table.core.query({trans:o,values:!1,limit:r.limit,query:{index:i,range:r.range}})}).then(({result:o})=>o).then(t);r.keysOnly=!r.isMatch;var n=[];return this.each(function(o,i){n.push(i.primaryKey)}).then(function(){return n}).then(t)}uniqueKeys(t){return this._ctx.unique="unique",this.keys(t)}firstKey(t){return this.limit(1).keys(function(r){return r[0]}).then(t)}lastKey(t){return this.reverse().firstKey(t)}distinct(){var t=this._ctx,r=t.index&&t.table.schema.idxByName[t.index];if(!r||!r.multi)return this;var n={};return pF(this._ctx,function(o){var i=o.primaryKey.toString(),a=Zl(n,i);return n[i]=!0,!a}),this}modify(t){var r=this._ctx;return this._write(n=>{var o;if(typeof t=="function")o=t;else{var i=Mo(t),a=i.length;o=function(v){for(var b=!1,y=0;y<a;++y){var w=i[y],k=t[w];mf(v,w)!==k&&(Yu(v,w,k),b=!0)}return b}}const l=r.table.core,{outbound:s,extractKey:u}=l.schema.primaryKey,c=this.db._options.modifyChunkSize||200,d=[];let f=0;const p=[],h=(v,b)=>{const{failures:y,numFailures:w}=b;f+=v-w;for(let k of Mo(y))d.push(y[k])};return this.clone().primaryKeys().then(v=>{const b=y=>{const w=Math.min(c,v.length-y);return l.getMany({trans:n,keys:v.slice(y,y+w),cache:"immutable"}).then(k=>{const E=[],T=[],S=s?[]:null,A=[];for(let I=0;I<w;++I){const L=k[I],P={value:Rk(L),primKey:v[y+I]};o.call(P,P.value,P)!==!1&&(P.value==null?A.push(v[y+I]):s||Oa(u(L),u(P.value))===0?(T.push(P.value),s&&S.push(v[y+I])):(A.push(v[y+I]),E.push(P.value)))}const O=ex(r)&&r.limit===1/0&&(typeof t!="function"||t===gF)&&{index:r.index,range:r.range};return Promise.resolve(E.length>0&&l.mutate({trans:n,type:"add",values:E}).then(I=>{for(let L in I.failures)A.splice(parseInt(L),1);h(E.length,I)})).then(()=>(T.length>0||O&&typeof t=="object")&&l.mutate({trans:n,type:"put",keys:S,values:T,criteria:O,changeSpec:typeof t!="function"&&t}).then(I=>h(T.length,I))).then(()=>(A.length>0||O&&t===gF)&&l.mutate({trans:n,type:"delete",keys:A,criteria:O}).then(I=>h(A.length,I))).then(()=>v.length>y+w&&b(y+c))})};return b(0).then(()=>{if(d.length>0)throw new J5("Error modifying one or more objects",d,f,p);return v.length})})})}delete(){var t=this._ctx,r=t.range;return ex(t)&&(t.isPrimKey&&!BZt||r.type===3)?this._write(n=>{const{primaryKey:o}=t.table.core.schema,i=r;return t.table.core.count({trans:n,query:{index:o,range:i}}).then(a=>t.table.core.mutate({trans:n,type:"deleteRange",range:i}).then(({failures:l,lastResult:s,results:u,numFailures:c})=>{if(c)throw new J5("Could not delete some values",Object.keys(l).map(d=>l[d]),a-c);return a-c}))}):this.modify(gF)}}const gF=(e,t)=>t.value=null;function zZt(e,t){return e<t?-1:e===t?0:1}function FZt(e,t){return e>t?-1:e===t?0:1}function Jl(e,t,r){var n=e instanceof a6e?new e.Collection(e):e;return n._ctx.error=r?new r(t):new TypeError(t),n}function tx(e){return new e.Collection(e,()=>i6e("")).limit(0)}function WZt(e,t,r,n,o,i){for(var a=Math.min(e.length,n.length),l=-1,s=0;s<a;++s){var u=t[s];if(u!==n[s])return o(e[s],r[s])<0?e.substr(0,s)+r[s]+r.substr(s+1):o(e[s],n[s])<0?e.substr(0,s)+n[s]+r.substr(s+1):l>=0?e.substr(0,l)+t[l]+r.substr(l+1):null;o(e[s],u)<0&&(l=s)}return a<n.length&&i==="next"?e+r.substr(e.length):a<e.length&&i==="prev"?e.substr(0,r.length):l<0?null:e.substr(0,l)+n[l]+r.substr(l+1)}function vO(e,t,r,n){var o,i,a,l,s,u,c,d=r.length;if(!r.every(v=>typeof v=="string"))return Jl(e,ZEe);function f(v){o=function(y){return y==="next"?w=>w.toUpperCase():w=>w.toLowerCase()}(v),i=function(y){return y==="next"?w=>w.toLowerCase():w=>w.toUpperCase()}(v),a=v==="next"?zZt:FZt;var b=r.map(function(y){return{lower:i(y),upper:o(y)}}).sort(function(y,w){return a(y.lower,w.lower)});l=b.map(function(y){return y.upper}),s=b.map(function(y){return y.lower}),u=v,c=v==="next"?"":n}f("next");var p=new e.Collection(e,()=>cp(l[0],s[d-1]+n));p._ondirectionchange=function(v){f(v)};var h=0;return p._addAlgorithm(function(v,b,y){var w=v.key;if(typeof w!="string")return!1;var k=i(w);if(t(k,s,h))return!0;for(var E=null,T=h;T<d;++T){var S=WZt(w,k,l[T],s[T],a,u);S===null&&E===null?h=T+1:(E===null||a(E,S)>0)&&(E=S)}return b(E!==null?function(){v.continue(E+c)}:y),!1}),p}function cp(e,t,r,n){return{type:2,lower:e,upper:t,lowerOpen:r,upperOpen:n}}function i6e(e){return{type:1,lower:e,upper:e}}class a6e{get Collection(){return this._ctx.table.db.Collection}between(t,r,n,o){n=n!==!1,o=o===!0;try{return this._cmp(t,r)>0||this._cmp(t,r)===0&&(n||o)&&(!n||!o)?tx(this):new this.Collection(this,()=>cp(t,r,!n,!o))}catch{return Jl(this,gf)}}equals(t){return t==null?Jl(this,gf):new this.Collection(this,()=>i6e(t))}above(t){return t==null?Jl(this,gf):new this.Collection(this,()=>cp(t,void 0,!0))}aboveOrEqual(t){return t==null?Jl(this,gf):new this.Collection(this,()=>cp(t,void 0,!1))}below(t){return t==null?Jl(this,gf):new this.Collection(this,()=>cp(void 0,t,!1,!0))}belowOrEqual(t){return t==null?Jl(this,gf):new this.Collection(this,()=>cp(void 0,t))}startsWith(t){return typeof t!="string"?Jl(this,ZEe):this.between(t,t+Qg,!0,!0)}startsWithIgnoreCase(t){return t===""?this.startsWith(t):vO(this,(r,n)=>r.indexOf(n[0])===0,[t],Qg)}equalsIgnoreCase(t){return vO(this,(r,n)=>r===n[0],[t],"")}anyOfIgnoreCase(){var t=pf.apply(K1,arguments);return t.length===0?tx(this):vO(this,(r,n)=>n.indexOf(r)!==-1,t,"")}startsWithAnyOfIgnoreCase(){var t=pf.apply(K1,arguments);return t.length===0?tx(this):vO(this,(r,n)=>n.some(o=>r.indexOf(o)===0),t,Qg)}anyOf(){const t=pf.apply(K1,arguments);let r=this._cmp;try{t.sort(r)}catch{return Jl(this,gf)}if(t.length===0)return tx(this);const n=new this.Collection(this,()=>cp(t[0],t[t.length-1]));n._ondirectionchange=i=>{r=i==="next"?this._ascending:this._descending,t.sort(r)};let o=0;return n._addAlgorithm((i,a,l)=>{const s=i.key;for(;r(s,t[o])>0;)if(++o,o===t.length)return a(l),!1;return r(s,t[o])===0||(a(()=>{i.continue(t[o])}),!1)}),n}notEqual(t){return this.inAnyRange([[dF,t],[t,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){const t=pf.apply(K1,arguments);if(t.length===0)return new this.Collection(this);try{t.sort(this._ascending)}catch{return Jl(this,gf)}const r=t.reduce((n,o)=>n?n.concat([[n[n.length-1][1],o]]):[[dF,o]],null);return r.push([t[t.length-1],this.db._maxKey]),this.inAnyRange(r,{includeLowers:!1,includeUppers:!1})}inAnyRange(t,r){const n=this._cmp,o=this._ascending,i=this._descending,a=this._min,l=this._max;if(t.length===0)return tx(this);if(!t.every(w=>w[0]!==void 0&&w[1]!==void 0&&o(w[0],w[1])<=0))return Jl(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Ut.InvalidArgument);const s=!r||r.includeLowers!==!1,u=r&&r.includeUppers===!0;let c,d=o;function f(w,k){return d(w[0],k[0])}try{c=t.reduce(function(w,k){let E=0,T=w.length;for(;E<T;++E){const S=w[E];if(n(k[0],S[1])<0&&n(k[1],S[0])>0){S[0]=a(S[0],k[0]),S[1]=l(S[1],k[1]);break}}return E===T&&w.push(k),w},[]),c.sort(f)}catch{return Jl(this,gf)}let p=0;const h=u?w=>o(w,c[p][1])>0:w=>o(w,c[p][1])>=0,v=s?w=>i(w,c[p][0])>0:w=>i(w,c[p][0])>=0;let b=h;const y=new this.Collection(this,()=>cp(c[0][0],c[c.length-1][1],!s,!u));return y._ondirectionchange=w=>{w==="next"?(b=h,d=o):(b=v,d=i),c.sort(f)},y._addAlgorithm((w,k,E)=>{for(var T=w.key;b(T);)if(++p,p===c.length)return k(E),!1;return!!function(S){return!h(S)&&!v(S)}(T)||(this._cmp(T,c[p][1])===0||this._cmp(T,c[p][0])===0||k(()=>{d===o?w.continue(c[p][0]):w.continue(c[p][1])}),!1)}),y}startsWithAnyOf(){const t=pf.apply(K1,arguments);return t.every(r=>typeof r=="string")?t.length===0?tx(this):this.inAnyRange(t.map(r=>[r,r+Qg])):Jl(this,"startsWithAnyOf() only works with strings")}}function Qc(e){return Fn(function(t){return Fk(t),e(t.target.error),!1})}function Fk(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}const Wk="storagemutated",dp="x-storagemutated-1",fp=Mk(null,Wk);class VZt{_lock(){return Ik(!Rt.global),++this._reculock,this._reculock!==1||Rt.global||(Rt.lockOwnerFor=this),this}_unlock(){if(Ik(!Rt.global),--this._reculock==0)for(Rt.global||(Rt.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var t=this._blockedFuncs.shift();try{J1(t[1],t[0])}catch{}}return this}_locked(){return this._reculock&&Rt.lockOwnerFor!==this}create(t){if(!this.mode)return this;const r=this.db.idbdb,n=this.db._state.dbOpenError;if(Ik(!this.idbtrans),!t&&!r)switch(n&&n.name){case"DatabaseClosedError":throw new Ut.DatabaseClosed(n);case"MissingAPIError":throw new Ut.MissingAPI(n.message,n);default:throw new Ut.OpenFailed(n)}if(!this.active)throw new Ut.TransactionInactive;return Ik(this._completion._state===null),(t=this.idbtrans=t||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):r.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=Fn(o=>{Fk(o),this._reject(t.error)}),t.onabort=Fn(o=>{Fk(o),this.active&&this._reject(new Ut.Abort(t.error)),this.active=!1,this.on("abort").fire(o)}),t.oncomplete=Fn(()=>{this.active=!1,this._resolve(),"mutatedParts"in t&&fp.storagemutated.fire(t.mutatedParts)}),this}_promise(t,r,n){if(t==="readwrite"&&this.mode!=="readwrite")return oi(new Ut.ReadOnly("Transaction is readonly"));if(!this.active)return oi(new Ut.TransactionInactive);if(this._locked())return new gt((i,a)=>{this._blockedFuncs.push([()=>{this._promise(t,r,n).then(i,a)},Rt])});if(n)return sp(()=>{var i=new gt((a,l)=>{this._lock();const s=r(a,l,this);s&&s.then&&s.then(a,l)});return i.finally(()=>this._unlock()),i._lib=!0,i});var o=new gt((i,a)=>{var l=r(i,a,this);l&&l.then&&l.then(i,a)});return o._lib=!0,o}_root(){return this.parent?this.parent._root():this}waitFor(t){var r=this._root();const n=gt.resolve(t);if(r._waitingFor)r._waitingFor=r._waitingFor.then(()=>n);else{r._waitingFor=n,r._waitingQueue=[];var o=r.idbtrans.objectStore(r.storeNames[0]);(function a(){for(++r._spinCount;r._waitingQueue.length;)r._waitingQueue.shift()();r._waitingFor&&(o.get(-1/0).onsuccess=a)})()}var i=r._waitingFor;return new gt((a,l)=>{n.then(s=>r._waitingQueue.push(Fn(a.bind(null,s))),s=>r._waitingQueue.push(Fn(l.bind(null,s)))).finally(()=>{r._waitingFor===i&&(r._waitingFor=null)})})}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new Ut.Abort))}table(t){const r=this._memoizedTables||(this._memoizedTables={});if(Zl(r,t))return r[t];const n=this.schema[t];if(!n)throw new Ut.NotFound("Table "+t+" not part of transaction");const o=new this.db.Table(t,n,this);return o.core=this.db.core.table(t),r[t]=o,o}}function vF(e,t,r,n,o,i,a){return{name:e,keyPath:t,unique:r,multi:n,auto:o,compound:i,src:(r&&!a?"&":"")+(n?"*":"")+(o?"++":"")+l6e(t)}}function l6e(e){return typeof e=="string"?e:e?"["+[].join.call(e,"+")+"]":""}function s6e(e,t,r){return{name:e,primKey:t,indexes:r,mappedClass:null,idxByName:IEe(r,n=>[n.name,n])}}let Vk=e=>{try{return e.only([[]]),Vk=()=>[[]],[[]]}catch{return Vk=()=>Qg,Qg}};function bF(e){return e==null?()=>{}:typeof e=="string"?function(t){return t.split(".").length===1?n=>n[t]:n=>mf(n,t)}(e):t=>mf(t,e)}function u6e(e){return[].slice.call(e)}let UZt=0;function Uk(e){return e==null?":id":typeof e=="string"?e:`[${e.join("+")}]`}function qZt(e,t,r){function n(s){if(s.type===3)return null;if(s.type===4)throw new Error("Cannot convert never type to IDBKeyRange");const{lower:u,upper:c,lowerOpen:d,upperOpen:f}=s;return u===void 0?c===void 0?null:t.upperBound(c,!!f):c===void 0?t.lowerBound(u,!!d):t.bound(u,c,!!d,!!f)}const{schema:o,hasGetAll:i}=function(s,u){const c=u6e(s.objectStoreNames);return{schema:{name:s.name,tables:c.map(d=>u.objectStore(d)).map(d=>{const{keyPath:f,autoIncrement:p}=d,h=Zi(f),v=f==null,b={},y={name:d.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:v,compound:h,keyPath:f,autoIncrement:p,unique:!0,extractKey:bF(f)},indexes:u6e(d.indexNames).map(w=>d.index(w)).map(w=>{const{name:k,unique:E,multiEntry:T,keyPath:S}=w,A={name:k,compound:Zi(S),keyPath:S,unique:E,multiEntry:T,extractKey:bF(S)};return b[Uk(S)]=A,A}),getIndexByKeyPath:w=>b[Uk(w)]};return b[":id"]=y.primaryKey,f!=null&&(b[Uk(f)]=y.primaryKey),y})},hasGetAll:c.length>0&&"getAll"in u.objectStore(c[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(e,r),a=o.tables.map(s=>function(u){const c=u.name;return{name:c,schema:u,mutate:function({trans:d,type:f,keys:p,values:h,range:v}){return new Promise((b,y)=>{b=Fn(b);const w=d.objectStore(c),k=w.keyPath==null,E=f==="put"||f==="add";if(!E&&f!=="delete"&&f!=="deleteRange")throw new Error("Invalid operation type: "+f);const{length:T}=p||h||{length:1};if(p&&h&&p.length!==h.length)throw new Error("Given keys array must have same length as given values array.");if(T===0)return b({numFailures:0,failures:{},results:[],lastResult:void 0});let S;const A=[],O=[];let I=0;const L=H=>{++I,Fk(H)};if(f==="deleteRange"){if(v.type===4)return b({numFailures:I,failures:O,results:[],lastResult:void 0});v.type===3?A.push(S=w.clear()):A.push(S=w.delete(n(v)))}else{const[H,j]=E?k?[h,p]:[h,null]:[p,null];if(E)for(let F=0;F<T;++F)A.push(S=j&&j[F]!==void 0?w[f](H[F],j[F]):w[f](H[F])),S.onerror=L;else for(let F=0;F<T;++F)A.push(S=w[f](H[F])),S.onerror=L}const P=H=>{const j=H.target.result;A.forEach((F,B)=>F.error!=null&&(O[B]=F.error)),b({numFailures:I,failures:O,results:f==="delete"?p:A.map(F=>F.result),lastResult:j})};S.onerror=H=>{L(H),P(H)},S.onsuccess=P})},getMany:({trans:d,keys:f})=>new Promise((p,h)=>{p=Fn(p);const v=d.objectStore(c),b=f.length,y=new Array(b);let w,k=0,E=0;const T=A=>{const O=A.target;y[O._pos]=O.result,++E===k&&p(y)},S=Qc(h);for(let A=0;A<b;++A)f[A]!=null&&(w=v.get(f[A]),w._pos=A,w.onsuccess=T,w.onerror=S,++k);k===0&&p(y)}),get:({trans:d,key:f})=>new Promise((p,h)=>{p=Fn(p);const v=d.objectStore(c).get(f);v.onsuccess=b=>p(b.target.result),v.onerror=Qc(h)}),query:function(d){return f=>new Promise((p,h)=>{p=Fn(p);const{trans:v,values:b,limit:y,query:w}=f,k=y===1/0?void 0:y,{index:E,range:T}=w,S=v.objectStore(c),A=E.isPrimaryKey?S:S.index(E.name),O=n(T);if(y===0)return p({result:[]});if(d){const I=b?A.getAll(O,k):A.getAllKeys(O,k);I.onsuccess=L=>p({result:L.target.result}),I.onerror=Qc(h)}else{let I=0;const L=b||!("openKeyCursor"in A)?A.openCursor(O):A.openKeyCursor(O),P=[];L.onsuccess=H=>{const j=L.result;return j?(P.push(b?j.value:j.primaryKey),++I===y?p({result:P}):void j.continue()):p({result:P})},L.onerror=Qc(h)}})}(i),openCursor:function({trans:d,values:f,query:p,reverse:h,unique:v}){return new Promise((b,y)=>{b=Fn(b);const{index:w,range:k}=p,E=d.objectStore(c),T=w.isPrimaryKey?E:E.index(w.name),S=h?v?"prevunique":"prev":v?"nextunique":"next",A=f||!("openKeyCursor"in T)?T.openCursor(n(k),S):T.openKeyCursor(n(k),S);A.onerror=Qc(y),A.onsuccess=Fn(O=>{const I=A.result;if(!I)return void b(null);I.___id=++UZt,I.done=!1;const L=I.continue.bind(I);let P=I.continuePrimaryKey;P&&(P=P.bind(I));const H=I.advance.bind(I),j=()=>{throw new Error("Cursor not stopped")};I.trans=d,I.stop=I.continue=I.continuePrimaryKey=I.advance=()=>{throw new Error("Cursor not started")},I.fail=Fn(y),I.next=function(){let F=1;return this.start(()=>F--?this.continue():this.stop()).then(()=>this)},I.start=F=>{const B=new Promise((W,z)=>{W=Fn(W),A.onerror=Qc(z),I.fail=z,I.stop=V=>{I.stop=I.continue=I.continuePrimaryKey=I.advance=j,W(V)}}),G=()=>{if(A.result)try{F()}catch(W){I.fail(W)}else I.done=!0,I.start=()=>{throw new Error("Cursor behind last entry")},I.stop()};return A.onsuccess=Fn(W=>{A.onsuccess=G,G()}),I.continue=L,I.continuePrimaryKey=P,I.advance=H,G(),B},b(I)},y)})},count({query:d,trans:f}){const{index:p,range:h}=d;return new Promise((v,b)=>{const y=f.objectStore(c),w=p.isPrimaryKey?y:y.index(p.name),k=n(h),E=k?w.count(k):w.count();E.onsuccess=Fn(T=>v(T.target.result)),E.onerror=Qc(b)})}}}(s)),l={};return a.forEach(s=>l[s.name]=s),{stack:"dbcore",transaction:e.transaction.bind(e),table(s){if(!l[s])throw new Error(`Table '${s}' not found`);return l[s]},MIN_KEY:-1/0,MAX_KEY:Vk(t),schema:o}}function xF({_novip:e},t){const r=t.db,n=function(o,i,{IDBKeyRange:a,indexedDB:l},s){return{dbcore:function(c,d){return d.reduce((f,{create:p})=>({...f,...p(f)}),c)}(qZt(i,a,s),o.dbcore)}}(e._middlewares,r,e._deps,t);e.core=n.dbcore,e.tables.forEach(o=>{const i=o.name;e.core.schema.tables.some(a=>a.name===i)&&(o.core=e.core.table(i),e[i]instanceof e.Table&&(e[i].core=o.core))})}function bO({_novip:e},t,r,n){r.forEach(o=>{const i=n[o];t.forEach(a=>{const l=Wz(a,o);(!l||"value"in l&&l.value===void 0)&&(a===e.Transaction.prototype||a instanceof e.Transaction?ff(a,o,{get(){return this.table(o)},set(s){EEe(this,o,{value:s,writable:!0,configurable:!0,enumerable:!0})}}):a[o]=new e.Table(o,i))})})}function yF({_novip:e},t){t.forEach(r=>{for(let n in r)r[n]instanceof e.Table&&delete r[n]})}function GZt(e,t){return e._cfg.version-t._cfg.version}function YZt(e,t,r,n){const o=e._dbSchema,i=e._createTransaction("readwrite",e._storeNames,o);i.create(r),i._completion.catch(n);const a=i._reject.bind(i),l=Rt.transless||Rt;sp(()=>{Rt.trans=i,Rt.transless=l,t===0?(Mo(o).forEach(s=>{wF(r,s,o[s].primKey,o[s].indexes)}),xF(e,r),gt.follow(()=>e.on.populate.fire(i)).catch(a)):function({_novip:s},u,c,d){const f=[],p=s._versions;let h=s._dbSchema=kF(s,s.idbdb,d),v=!1;const b=p.filter(w=>w._cfg.version>=u);function y(){return f.length?gt.resolve(f.shift()(c.idbtrans)).then(y):gt.resolve()}return b.forEach(w=>{f.push(()=>{const k=h,E=w._cfg.dbschema;TF(s,k,d),TF(s,E,d),h=s._dbSchema=E;const T=c6e(k,E);T.add.forEach(A=>{wF(d,A[0],A[1].primKey,A[1].indexes)}),T.change.forEach(A=>{if(A.recreate)throw new Ut.Upgrade("Not yet support for changing primary key");{const O=d.objectStore(A.name);A.add.forEach(I=>CF(O,I)),A.change.forEach(I=>{O.deleteIndex(I.name),CF(O,I)}),A.del.forEach(I=>O.deleteIndex(I))}});const S=w._cfg.contentUpgrade;if(S&&w._cfg.version>u){xF(s,d),c._memoizedTables={},v=!0;let A=REe(E);T.del.forEach(P=>{A[P]=k[P]}),yF(s,[s.Transaction.prototype]),bO(s,[s.Transaction.prototype],Mo(A),A),c.schema=A;const O=Gz(S);let I;O&&Z1();const L=gt.follow(()=>{if(I=S(c),I&&O){var P=hf.bind(null,null);I.then(P,P)}});return I&&typeof I.then=="function"?gt.resolve(I):L.then(()=>I)}}),f.push(k=>{(!v||!DZt)&&function(E,T){[].slice.call(T.db.objectStoreNames).forEach(S=>E[S]==null&&T.db.deleteObjectStore(S))}(w._cfg.dbschema,k),yF(s,[s.Transaction.prototype]),bO(s,[s.Transaction.prototype],s._storeNames,s._dbSchema),c.schema=s._dbSchema})}),y().then(()=>{var w,k;k=d,Mo(w=h).forEach(E=>{k.db.objectStoreNames.contains(E)||wF(k,E,w[E].primKey,w[E].indexes)})})}(e,t,i,r).catch(a)})}function c6e(e,t){const r={del:[],add:[],change:[]};let n;for(n in e)t[n]||r.del.push(n);for(n in t){const o=e[n],i=t[n];if(o){const a={name:n,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(o.primKey.keyPath||"")!=""+(i.primKey.keyPath||"")||o.primKey.auto!==i.primKey.auto&&!fO)a.recreate=!0,r.change.push(a);else{const l=o.idxByName,s=i.idxByName;let u;for(u in l)s[u]||a.del.push(u);for(u in s){const c=l[u],d=s[u];c?c.src!==d.src&&a.change.push(d):a.add.push(d)}(a.del.length>0||a.add.length>0||a.change.length>0)&&r.change.push(a)}}else r.add.push([n,i])}return r}function wF(e,t,r,n){const o=e.db.createObjectStore(t,r.keyPath?{keyPath:r.keyPath,autoIncrement:r.auto}:{autoIncrement:r.auto});return n.forEach(i=>CF(o,i)),o}function CF(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function kF(e,t,r){const n={};return Z5(t.objectStoreNames,0).forEach(o=>{const i=r.objectStore(o);let a=i.keyPath;const l=vF(l6e(a),a||"",!1,!1,!!i.autoIncrement,a&&typeof a!="string",!0),s=[];for(let c=0;c<i.indexNames.length;++c){const d=i.index(i.indexNames[c]);a=d.keyPath;var u=vF(d.name,a,!!d.unique,!!d.multiEntry,!1,a&&typeof a!="string",!1);s.push(u)}n[o]=s6e(o,l,s)}),n}function TF({_novip:e},t,r){const n=r.db.objectStoreNames;for(let o=0;o<n.length;++o){const i=n[o],a=r.objectStore(i);e._hasGetAll="getAll"in a;for(let l=0;l<a.indexNames.length;++l){const s=a.indexNames[l],u=a.index(s).keyPath,c=typeof u=="string"?u:"["+Z5(u).join("+")+"]";if(t[i]){const d=t[i].idxByName[c];d&&(d.name=s,delete t[i].idxByName[c],t[i].idxByName[s]=d)}}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&Pn.WorkerGlobalScope&&Pn instanceof Pn.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}class KZt{_parseStoresSpec(t,r){Mo(t).forEach(n=>{if(t[n]!==null){var o=t[n].split(",").map((a,l)=>{const s=(a=a.trim()).replace(/([&*]|\+\+)/g,""),u=/^\[/.test(s)?s.match(/^\[(.*)\]$/)[1].split("+"):s;return vF(s,u||null,/\&/.test(a),/\*/.test(a),/\+\+/.test(a),Zi(u),l===0)}),i=o.shift();if(i.multi)throw new Ut.Schema("Primary key cannot be multi-valued");o.forEach(a=>{if(a.auto)throw new Ut.Schema("Only primary key can be marked as autoIncrement (++)");if(!a.keyPath)throw new Ut.Schema("Index must have a name and cannot be an empty string")}),r[n]=s6e(n,i,o)}})}stores(t){const r=this.db;this._cfg.storesSource=this._cfg.storesSource?Aa(this._cfg.storesSource,t):t;const n=r._versions,o={};let i={};return n.forEach(a=>{Aa(o,a._cfg.storesSource),i=a._cfg.dbschema={},a._parseStoresSpec(o,i)}),r._dbSchema=i,yF(r,[r._allTables,r,r.Transaction.prototype]),bO(r,[r._allTables,r,r.Transaction.prototype,this._cfg.tables],Mo(i),i),r._storeNames=Mo(i),this}upgrade(t){return this._cfg.contentUpgrade=Qz(this._cfg.contentUpgrade||pn,t),this}}function _F(e,t){let r=e._dbNamesDB;return r||(r=e._dbNamesDB=new mp(mO,{addons:[],indexedDB:e,IDBKeyRange:t}),r.version(1).stores({dbnames:"name"})),r.table("dbnames")}function SF(e){return e&&typeof e.databases=="function"}function EF(e){return sp(function(){return Rt.letThrough=!0,e()})}function XZt(){var e;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(t){var r=function(){return indexedDB.databases().finally(t)};e=setInterval(r,100),r()}).finally(function(){return clearInterval(e)}):Promise.resolve()}function QZt(e){const t=e._state,{indexedDB:r}=e._deps;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then(()=>t.dbOpenError?oi(t.dbOpenError):e);Xc&&(t.openCanceller._stackHolder=Gg()),t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;const n=t.openCanceller;function o(){if(t.openCanceller!==n)throw new Ut.DatabaseClosed("db.open() was cancelled")}let i=t.dbReadyResolve,a=null,l=!1;return gt.race([n,(typeof navigator>"u"?gt.resolve():XZt()).then(()=>new gt((s,u)=>{if(o(),!r)throw new Ut.MissingAPI;const c=e.name,d=t.autoSchema?r.open(c):r.open(c,Math.round(10*e.verno));if(!d)throw new Ut.MissingAPI;d.onerror=Qc(u),d.onblocked=Fn(e._fireOnBlocked),d.onupgradeneeded=Fn(f=>{if(a=d.transaction,t.autoSchema&&!e._options.allowEmptyDB){d.onerror=Fk,a.abort(),d.result.close();const h=r.deleteDatabase(c);h.onsuccess=h.onerror=Fn(()=>{u(new Ut.NoSuchDatabase(`Database ${c} doesnt exist`))})}else{a.onerror=Qc(u);var p=f.oldVersion>Math.pow(2,62)?0:f.oldVersion;l=p<1,e._novip.idbdb=d.result,YZt(e,p/10,a,u)}},u),d.onsuccess=Fn(()=>{a=null;const f=e._novip.idbdb=d.result,p=Z5(f.objectStoreNames);if(p.length>0)try{const v=f.transaction((h=p).length===1?h[0]:h,"readonly");t.autoSchema?function({_novip:b},y,w){b.verno=y.version/10;const k=b._dbSchema=kF(0,y,w);b._storeNames=Z5(y.objectStoreNames,0),bO(b,[b._allTables],Mo(k),k)}(e,f,v):(TF(e,e._dbSchema,v),function(b,y){const w=c6e(kF(0,b.idbdb,y),b._dbSchema);return!(w.add.length||w.change.some(k=>k.add.length||k.change.length))}(e,v)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),xF(e,v)}catch{}var h;jk.push(e),f.onversionchange=Fn(v=>{t.vcFired=!0,e.on("versionchange").fire(v)}),f.onclose=Fn(v=>{e.on("close").fire(v)}),l&&function({indexedDB:v,IDBKeyRange:b},y){!SF(v)&&y!==mO&&_F(v,b).put({name:y}).catch(pn)}(e._deps,c),s()},u)}))]).then(()=>(o(),t.onReadyBeingFired=[],gt.resolve(EF(()=>e.on.ready.fire(e.vip))).then(function s(){if(t.onReadyBeingFired.length>0){let u=t.onReadyBeingFired.reduce(Qz,pn);return t.onReadyBeingFired=[],gt.resolve(EF(()=>u(e.vip))).then(s)}}))).finally(()=>{t.onReadyBeingFired=null,t.isBeingOpened=!1}).then(()=>e).catch(s=>{t.dbOpenError=s;try{a&&a.abort()}catch{}return n===t.openCanceller&&e._close(),oi(s)}).finally(()=>{t.openComplete=!0,i()})}function AF(e){var t=i=>e.next(i),r=o(t),n=o(i=>e.throw(i));function o(i){return a=>{var l=i(a),s=l.value;return l.done?s:s&&typeof s.then=="function"?s.then(r,n):Zi(s)?Promise.all(s).then(r,n):r(s)}}return o(t)()}function ZZt(e,t,r){var n=arguments.length;if(n<2)throw new Ut.InvalidArgument("Too few arguments");for(var o=new Array(n-1);--n;)o[n-1]=arguments[n];return r=o.pop(),[e,PEe(o),r]}function d6e(e,t,r,n,o){return gt.resolve().then(()=>{const i=Rt.transless||Rt,a=e._createTransaction(t,r,e._dbSchema,n),l={trans:a,transless:i};if(n)a.idbtrans=n.idbtrans;else try{a.create(),e._state.PR1398_maxLoop=3}catch(d){return d.name===Xz.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then(()=>d6e(e,t,r,null,o))):oi(d)}const s=Gz(o);let u;s&&Z1();const c=gt.follow(()=>{if(u=o.call(a,a),u)if(s){var d=hf.bind(null,null);u.then(d,d)}else typeof u.next=="function"&&typeof u.throw=="function"&&(u=AF(u))},l);return(u&&typeof u.then=="function"?gt.resolve(u).then(d=>a.active?d:oi(new Ut.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))):c.then(()=>u)).then(d=>(n&&a._resolve(),a._completion.then(()=>d))).catch(d=>(a._reject(d),oi(d)))})}function xO(e,t,r){const n=Zi(e)?e.slice():[e];for(let o=0;o<r;++o)n.push(t);return n}const JZt={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return{...e,table(t){const r=e.table(t),{schema:n}=r,o={},i=[];function a(c,d,f){const p=Uk(c),h=o[p]=o[p]||[],v=c==null?0:typeof c=="string"?1:c.length,b=d>0,y={...f,isVirtual:b,keyTail:d,keyLength:v,extractKey:bF(c),unique:!b&&f.unique};return h.push(y),y.isPrimaryKey||i.push(y),v>1&&a(v===2?c[0]:c.slice(0,v-1),d+1,f),h.sort((w,k)=>w.keyTail-k.keyTail),y}const l=a(n.primaryKey.keyPath,0,n.primaryKey);o[":id"]=[l];for(const c of n.indexes)a(c.keyPath,0,c);function s(c){const d=c.query.index;return d.isVirtual?{...c,query:{index:d,range:(f=c.query.range,p=d.keyTail,{type:f.type===1?2:f.type,lower:xO(f.lower,f.lowerOpen?e.MAX_KEY:e.MIN_KEY,p),lowerOpen:!0,upper:xO(f.upper,f.upperOpen?e.MIN_KEY:e.MAX_KEY,p),upperOpen:!0})}}:c;var f,p}return{...r,schema:{...n,primaryKey:l,indexes:i,getIndexByKeyPath:function(c){const d=o[Uk(c)];return d&&d[0]}},count:c=>r.count(s(c)),query:c=>r.query(s(c)),openCursor(c){const{keyTail:d,isVirtual:f,keyLength:p}=c.query.index;return f?r.openCursor(s(c)).then(h=>h&&function(v){return Object.create(v,{continue:{value:function(y){y!=null?v.continue(xO(y,c.reverse?e.MAX_KEY:e.MIN_KEY,d)):c.unique?v.continue(v.key.slice(0,p).concat(c.reverse?e.MIN_KEY:e.MAX_KEY,d)):v.continue()}},continuePrimaryKey:{value(y,w){v.continuePrimaryKey(xO(y,e.MAX_KEY,d),w)}},primaryKey:{get:()=>v.primaryKey},key:{get(){const y=v.key;return p===1?y[0]:y.slice(0,p)}},value:{get:()=>v.value}})}(h)):r.openCursor(c)}}}}}};function OF(e,t,r,n){return r=r||{},n=n||"",Mo(e).forEach(o=>{if(Zl(t,o)){var i=e[o],a=t[o];if(typeof i=="object"&&typeof a=="object"&&i&&a){const l=Uz(i);l!==Uz(a)?r[n+o]=t[o]:l==="Object"?OF(i,a,r,n+o+"."):i!==a&&(r[n+o]=t[o])}else i!==a&&(r[n+o]=t[o])}else r[n+o]=void 0}),Mo(t).forEach(o=>{Zl(e,o)||(r[n+o]=t[o])}),r}const eJt={stack:"dbcore",name:"HooksMiddleware",level:2,create:e=>({...e,table(t){const r=e.table(t),{primaryKey:n}=r.schema;return{...r,mutate(i){const a=Rt.trans,{deleting:l,creating:s,updating:u}=a.table(t).hook;switch(i.type){case"add":if(s.fire===pn)break;return a._promise("readwrite",()=>c(i),!0);case"put":if(s.fire===pn&&u.fire===pn)break;return a._promise("readwrite",()=>c(i),!0);case"delete":if(l.fire===pn)break;return a._promise("readwrite",()=>c(i),!0);case"deleteRange":if(l.fire===pn)break;return a._promise("readwrite",()=>function(f){return d(f.trans,f.range,1e4)}(i),!0)}return r.mutate(i);function c(f){const p=Rt.trans,h=f.keys||function(v,b){return b.type==="delete"?b.keys:b.keys||b.values.map(v.extractKey)}(n,f);if(!h)throw new Error("Keys missing");return(f=f.type==="add"||f.type==="put"?{...f,keys:h}:{...f}).type!=="delete"&&(f.values=[...f.values]),f.keys&&(f.keys=[...f.keys]),function(v,b,y){return b.type==="add"?Promise.resolve([]):v.getMany({trans:b.trans,keys:y,cache:"immutable"})}(r,f,h).then(v=>{const b=h.map((y,w)=>{const k=v[w],E={onerror:null,onsuccess:null};if(f.type==="delete")l.fire.call(E,y,k,p);else if(f.type==="add"||k===void 0){const T=s.fire.call(E,y,f.values[w],p);y==null&&T!=null&&(y=T,f.keys[w]=y,n.outbound||Yu(f.values[w],n.keyPath,y))}else{const T=OF(k,f.values[w]),S=u.fire.call(E,T,y,k,p);if(S){const A=f.values[w];Object.keys(S).forEach(O=>{Zl(A,O)?A[O]=S[O]:Yu(A,O,S[O])})}}return E});return r.mutate(f).then(({failures:y,results:w,numFailures:k,lastResult:E})=>{for(let T=0;T<h.length;++T){const S=w?w[T]:h[T],A=b[T];S==null?A.onerror&&A.onerror(y[T]):A.onsuccess&&A.onsuccess(f.type==="put"&&v[T]?f.values[T]:S)}return{failures:y,results:w,numFailures:k,lastResult:E}}).catch(y=>(b.forEach(w=>w.onerror&&w.onerror(y)),Promise.reject(y)))})}function d(f,p,h){return r.query({trans:f,values:!1,query:{index:n,range:p},limit:h}).then(({result:v})=>c({type:"delete",keys:v,trans:f}).then(b=>b.numFailures>0?Promise.reject(b.failures[0]):v.length<h?{failures:[],numFailures:0,lastResult:void 0}:d(f,{...p,lower:v[v.length-1],lowerOpen:!0},h)))}}}}})};function f6e(e,t,r){try{if(!t||t.keys.length<e.length)return null;const n=[];for(let o=0,i=0;o<t.keys.length&&i<e.length;++o)Oa(t.keys[o],e[i])===0&&(n.push(r?Rk(t.values[o]):t.values[o]),++i);return n.length===e.length?n:null}catch{return null}}const tJt={stack:"dbcore",level:-1,create:e=>({table:t=>{const r=e.table(t);return{...r,getMany:n=>{if(!n.cache)return r.getMany(n);const o=f6e(n.keys,n.trans._cache,n.cache==="clone");return o?gt.resolve(o):r.getMany(n).then(i=>(n.trans._cache={keys:n.keys,values:n.cache==="clone"?Rk(i):i},i))},mutate:n=>(n.type!=="add"&&(n.trans._cache=null),r.mutate(n))}}})};function IF(e){return!("from"in e)}const vf=function(e,t){if(!this){const r=new vf;return e&&"d"in e&&Aa(r,e),r}Aa(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0})};function qk(e,t,r){const n=Oa(t,r);if(isNaN(n))return;if(n>0)throw RangeError();if(IF(e))return Aa(e,{from:t,to:r,d:1});const o=e.l,i=e.r;if(Oa(r,e.from)<0)return o?qk(o,t,r):e.l={from:t,to:r,d:1,l:null,r:null},m6e(e);if(Oa(t,e.to)>0)return i?qk(i,t,r):e.r={from:t,to:r,d:1,l:null,r:null},m6e(e);Oa(t,e.from)<0&&(e.from=t,e.l=null,e.d=i?i.d+1:1),Oa(r,e.to)>0&&(e.to=r,e.r=null,e.d=e.l?e.l.d+1:1);const a=!e.r;o&&!e.l&&yO(e,o),i&&a&&yO(e,i)}function yO(e,t){IF(t)||function r(n,{from:o,to:i,l:a,r:l}){qk(n,o,i),a&&r(n,a),l&&r(n,l)}(e,t)}function rJt(e,t){const r=RF(t);let n=r.next();if(n.done)return!1;let o=n.value;const i=RF(e);let a=i.next(o.from),l=a.value;for(;!n.done&&!a.done;){if(Oa(l.from,o.to)<=0&&Oa(l.to,o.from)>=0)return!0;Oa(o.from,l.from)<0?o=(n=r.next(l.from)).value:l=(a=i.next(o.from)).value}return!1}function RF(e){let t=IF(e)?null:{s:0,n:e};return{next(r){const n=arguments.length>0;for(;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&Oa(r,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||Oa(r,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function m6e(e){var t,r;const n=(((t=e.r)===null||t===void 0?void 0:t.d)||0)-(((r=e.l)===null||r===void 0?void 0:r.d)||0),o=n>1?"r":n<-1?"l":"";if(o){const i=o==="r"?"l":"r",a={...e},l=e[o];e.from=l.from,e.to=l.to,e[o]=l[o],a[o]=l[i],e[i]=a,a.d=p6e(a)}e.d=p6e(e)}function p6e({r:e,l:t}){return(e?t?Math.max(e.d,t.d):e.d:t?t.d:0)+1}G1(vf.prototype,{add(e){return yO(this,e),this},addKey(e){return qk(this,e,e),this},addKeys(e){return e.forEach(t=>qk(this,t,t)),this},[qz](){return RF(this)}});const nJt={stack:"dbcore",level:0,create:e=>{const t=e.schema.name,r=new vf(e.MIN_KEY,e.MAX_KEY);return{...e,table:n=>{const o=e.table(n),{schema:i}=o,{primaryKey:a}=i,{extractKey:l,outbound:s}=a,u={...o,mutate:f=>{const p=f.trans,h=p.mutatedParts||(p.mutatedParts={}),v=S=>{const A=`idb://${t}/${n}/${S}`;return h[A]||(h[A]=new vf)},b=v(""),y=v(":dels"),{type:w}=f;let[k,E]=f.type==="deleteRange"?[f.range]:f.type==="delete"?[f.keys]:f.values.length<50?[[],f.values]:[];const T=f.trans._cache;return o.mutate(f).then(S=>{if(Zi(k)){w!=="delete"&&(k=S.results),b.addKeys(k);const A=f6e(k,T);A||w==="add"||y.addKeys(k),(A||E)&&function(O,I,L,P){function H(j){const F=O(j.name||"");function B(W){return W!=null?j.extractKey(W):null}const G=W=>j.multiEntry&&Zi(W)?W.forEach(z=>F.addKey(z)):F.addKey(W);(L||P).forEach((W,z)=>{const V=L&&B(L[z]),N=P&&B(P[z]);Oa(V,N)!==0&&(V!=null&&G(V),N!=null&&G(N))})}I.indexes.forEach(H)}(v,i,A,E)}else if(k){const A={from:k.lower,to:k.upper};y.add(A),b.add(A)}else b.add(r),y.add(r),i.indexes.forEach(A=>v(A.name).add(r));return S})}},c=({query:{index:f,range:p}})=>{var h,v;return[f,new vf((h=p.lower)!==null&&h!==void 0?h:e.MIN_KEY,(v=p.upper)!==null&&v!==void 0?v:e.MAX_KEY)]},d={get:f=>[a,new vf(f.key)],getMany:f=>[a,new vf().addKeys(f.keys)],count:c,query:c,openCursor:c};return Mo(d).forEach(f=>{u[f]=function(p){const{subscr:h}=Rt;if(h){const v=E=>{const T=`idb://${t}/${n}/${E}`;return h[T]||(h[T]=new vf)},b=v(""),y=v(":dels"),[w,k]=d[f](p);if(v(w.name||"").add(k),!w.isPrimaryKey){if(f!=="count"){const E=f==="query"&&s&&p.values&&o.query({...p,values:!1});return o[f].apply(this,arguments).then(T=>{if(f==="query"){if(s&&p.values)return E.then(({result:A})=>(b.addKeys(A),T));const S=p.values?T.result.map(l):T.result;p.values?b.addKeys(S):y.addKeys(S)}else if(f==="openCursor"){const S=T,A=p.values;return S&&Object.create(S,{key:{get:()=>(y.addKey(S.primaryKey),S.key)},primaryKey:{get(){const O=S.primaryKey;return y.addKey(O),O}},value:{get:()=>(A&&b.addKey(S.primaryKey),S.value)}})}return T})}y.add(r)}}return o[f].apply(this,arguments)}}),u}}}};class mp{constructor(t,r){this._middlewares={},this.verno=0;const n=mp.dependencies;this._options=r={addons:mp.addons,autoOpen:!0,indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange,...r},this._deps={indexedDB:r.indexedDB,IDBKeyRange:r.IDBKeyRange};const{addons:o}=r;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;const i={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:pn,dbReadyPromise:null,cancelOpen:pn,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};var a;i.dbReadyPromise=new gt(l=>{i.dbReadyResolve=l}),i.openCanceller=new gt((l,s)=>{i.cancelOpen=s}),this._state=i,this.name=t,this.on=Mk(this,"populate","blocked","versionchange","close",{ready:[Qz,pn]}),this.on.ready.subscribe=AEe(this.on.ready.subscribe,l=>(s,u)=>{mp.vip(()=>{const c=this._state;if(c.openComplete)c.dbOpenError||gt.resolve().then(s),u&&l(s);else if(c.onReadyBeingFired)c.onReadyBeingFired.push(s),u&&l(s);else{l(s);const d=this;u||l(function f(){d.on.ready.unsubscribe(s),d.on.ready.unsubscribe(f)})}})}),this.Collection=(a=this,zk(MZt.prototype,function(l,s){this.db=a;let u=e6e,c=null;if(s)try{u=s()}catch(h){c=h}const d=l._ctx,f=d.table,p=f.hook.reading.fire;this._ctx={table:f,index:d.index,isPrimKey:!d.index||f.schema.primKey.keyPath&&d.index===f.schema.primKey.name,range:u,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:c,or:d.or,valueMapper:p!==Lk?p:null}})),this.Table=function(l){return zk(jZt.prototype,function(s,u,c){this.db=l,this._tx=c,this.name=s,this.schema=u,this.hook=l._allTables[s]?l._allTables[s].hook:Mk(null,{creating:[EZt,pn],reading:[SZt,Lk],updating:[OZt,pn],deleting:[AZt,pn]})})}(this),this.Transaction=function(l){return zk(VZt.prototype,function(s,u,c,d,f){this.db=l,this.mode=s,this.storeNames=u,this.schema=c,this.chromeTransactionDurability=d,this.idbtrans=null,this.on=Mk(this,"complete","error","abort"),this.parent=f||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new gt((p,h)=>{this._resolve=p,this._reject=h}),this._completion.then(()=>{this.active=!1,this.on.complete.fire()},p=>{var h=this.active;return this.active=!1,this.on.error.fire(p),this.parent?this.parent._reject(p):h&&this.idbtrans&&this.idbtrans.abort(),oi(p)})})}(this),this.Version=function(l){return zk(KZt.prototype,function(s){this.db=l,this._cfg={version:s,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}(this),this.WhereClause=function(l){return zk(a6e.prototype,function(s,u,c){this.db=l,this._ctx={table:s,index:u===":id"?null:u,or:c};const d=l._deps.indexedDB;if(!d)throw new Ut.MissingAPI;this._cmp=this._ascending=d.cmp.bind(d),this._descending=(f,p)=>d.cmp(p,f),this._max=(f,p)=>d.cmp(f,p)>0?f:p,this._min=(f,p)=>d.cmp(f,p)<0?f:p,this._IDBKeyRange=l._deps.IDBKeyRange})}(this),this.on("versionchange",l=>{l.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()}),this.on("blocked",l=>{!l.newVersion||l.newVersion<l.oldVersion?console.warn(`Dexie.delete('${this.name}') was blocked`):console.warn(`Upgrade '${this.name}' blocked by other connection holding version ${l.oldVersion/10}`)}),this._maxKey=Vk(r.IDBKeyRange),this._createTransaction=(l,s,u,c)=>new this.Transaction(l,s,u,this._options.chromeTransactionDurability,c),this._fireOnBlocked=l=>{this.on("blocked").fire(l),jk.filter(s=>s.name===this.name&&s!==this&&!s._state.vcFired).map(s=>s.on("versionchange").fire(l))},this.use(JZt),this.use(eJt),this.use(nJt),this.use(tJt),this.vip=Object.create(this,{_vip:{value:!0}}),o.forEach(l=>l(this))}version(t){if(isNaN(t)||t<.1)throw new Ut.Type("Given version is not a positive number");if(t=Math.round(10*t)/10,this.idbdb||this._state.isBeingOpened)throw new Ut.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,t);const r=this._versions;var n=r.filter(o=>o._cfg.version===t)[0];return n||(n=new this.Version(t),r.push(n),r.sort(GZt),n.stores({}),this._state.autoSchema=!1,n)}_whenReady(t){return this.idbdb&&(this._state.openComplete||Rt.letThrough||this._vip)?t():new gt((r,n)=>{if(this._state.openComplete)return n(new Ut.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void n(new Ut.DatabaseClosed);this.open().catch(pn)}this._state.dbReadyPromise.then(r,n)}).then(t)}use({stack:t,create:r,level:n,name:o}){o&&this.unuse({stack:t,name:o});const i=this._middlewares[t]||(this._middlewares[t]=[]);return i.push({stack:t,create:r,level:n??10,name:o}),i.sort((a,l)=>a.level-l.level),this}unuse({stack:t,name:r,create:n}){return t&&this._middlewares[t]&&(this._middlewares[t]=this._middlewares[t].filter(o=>n?o.create!==n:!!r&&o.name!==r)),this}open(){return QZt(this)}_close(){const t=this._state,r=jk.indexOf(this);if(r>=0&&jk.splice(r,1),this.idbdb){try{this.idbdb.close()}catch{}this._novip.idbdb=null}t.dbReadyPromise=new gt(n=>{t.dbReadyResolve=n}),t.openCanceller=new gt((n,o)=>{t.cancelOpen=o})}close(){this._close();const t=this._state;this._options.autoOpen=!1,t.dbOpenError=new Ut.DatabaseClosed,t.isBeingOpened&&t.cancelOpen(t.dbOpenError)}delete(){const t=arguments.length>0,r=this._state;return new gt((n,o)=>{const i=()=>{this.close();var a=this._deps.indexedDB.deleteDatabase(this.name);a.onsuccess=Fn(()=>{(function({indexedDB:l,IDBKeyRange:s},u){!SF(l)&&u!==mO&&_F(l,s).delete(u).catch(pn)})(this._deps,this.name),n()}),a.onerror=Qc(o),a.onblocked=this._fireOnBlocked};if(t)throw new Ut.InvalidArgument("Arguments not allowed in db.delete()");r.isBeingOpened?r.dbReadyPromise.then(i):i()})}backendDB(){return this.idbdb}isOpen(){return this.idbdb!==null}hasBeenClosed(){const t=this._state.dbOpenError;return t&&t.name==="DatabaseClosed"}hasFailed(){return this._state.dbOpenError!==null}dynamicallyOpened(){return this._state.autoSchema}get tables(){return Mo(this._allTables).map(t=>this._allTables[t])}transaction(){const t=ZZt.apply(this,arguments);return this._transaction.apply(this,t)}_transaction(t,r,n){let o=Rt.trans;o&&o.db===this&&t.indexOf("!")===-1||(o=null);const i=t.indexOf("?")!==-1;let a,l;t=t.replace("!","").replace("?","");try{if(l=r.map(u=>{var c=u instanceof this.Table?u.name:u;if(typeof c!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return c}),t=="r"||t===fF)a=fF;else{if(t!="rw"&&t!=mF)throw new Ut.InvalidArgument("Invalid transaction mode: "+t);a=mF}if(o){if(o.mode===fF&&a===mF){if(!i)throw new Ut.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");o=null}o&&l.forEach(u=>{if(o&&o.storeNames.indexOf(u)===-1){if(!i)throw new Ut.SubTransaction("Table "+u+" not included in parent transaction.");o=null}}),i&&o&&!o.active&&(o=null)}}catch(u){return o?o._promise(null,(c,d)=>{d(u)}):oi(u)}const s=d6e.bind(null,this,a,l,o,n);return o?o._promise(a,s,"lock"):Rt.trans?J1(Rt.transless,()=>this._whenReady(s)):this._whenReady(s)}table(t){if(!Zl(this._allTables,t))throw new Ut.InvalidTable(`Table ${t} does not exist`);return this._allTables[t]}}const oJt=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable";class iJt{constructor(t){this._subscribe=t}subscribe(t,r,n){return this._subscribe(t&&typeof t!="function"?t:{next:t,error:r,complete:n})}[oJt](){return this}}function h6e(e,t){return Mo(t).forEach(r=>{yO(e[r]||(e[r]=new vf),t[r])}),e}function aJt(e){let t,r=!1;const n=new iJt(o=>{const i=Gz(e);let a=!1,l={},s={};const u={get closed(){return a},unsubscribe:()=>{a=!0,fp.storagemutated.unsubscribe(p)}};o.start&&o.start(u);let c=!1,d=!1;function f(){return Mo(s).some(v=>l[v]&&rJt(l[v],s[v]))}const p=v=>{h6e(l,v),f()&&h()},h=()=>{if(c||a)return;l={};const v={},b=function(y){i&&Z1();const w=()=>sp(e,{subscr:y,trans:null}),k=Rt.trans?J1(Rt.transless,w):w();return i&&k.then(hf,hf),k}(v);d||(fp(Wk,p),d=!0),c=!0,Promise.resolve(b).then(y=>{r=!0,t=y,c=!1,a||(f()?h():(l={},s=v,o.next&&o.next(y)))},y=>{c=!1,r=!1,o.error&&o.error(y),u.unsubscribe()})};return h(),u});return n.hasValue=()=>r,n.getValue=()=>t,n}let PF;try{PF={indexedDB:Pn.indexedDB||Pn.mozIndexedDB||Pn.webkitIndexedDB||Pn.msIndexedDB,IDBKeyRange:Pn.IDBKeyRange||Pn.webkitIDBKeyRange}}catch{PF={indexedDB:null,IDBKeyRange:null}}const Jg=mp;function wO(e){let t=bf;try{bf=!0,fp.storagemutated.fire(e)}finally{bf=t}}G1(Jg,{...eO,delete:e=>new Jg(e,{addons:[]}).delete(),exists:e=>new Jg(e,{addons:[]}).open().then(t=>(t.close(),!0)).catch("NoSuchDatabaseError",()=>!1),getDatabaseNames(e){try{return function({indexedDB:t,IDBKeyRange:r}){return SF(t)?Promise.resolve(t.databases()).then(n=>n.map(o=>o.name).filter(o=>o!==mO)):_F(t,r).toCollection().primaryKeys()}(Jg.dependencies).then(e)}catch{return oi(new Ut.MissingAPI)}},defineClass:()=>function(e){Aa(this,e)},ignoreTransaction:e=>Rt.trans?J1(Rt.transless,e):e(),vip:EF,async:function(e){return function(){try{var t=AF(e.apply(this,arguments));return t&&typeof t.then=="function"?t:gt.resolve(t)}catch(r){return oi(r)}}},spawn:function(e,t,r){try{var n=AF(e.apply(r,t||[]));return n&&typeof n.then=="function"?n:gt.resolve(n)}catch(o){return oi(o)}},currentTransaction:{get:()=>Rt.trans||null},waitFor:function(e,t){const r=gt.resolve(typeof e=="function"?Jg.ignoreTransaction(e):e).timeout(t||6e4);return Rt.trans?Rt.trans.waitFor(r):r},Promise:gt,debug:{get:()=>Xc,set:e=>{HEe(e,e==="dexie"?()=>!0:JEe)}},derive:Y1,extend:Aa,props:G1,override:AEe,Events:Mk,on:fp,liveQuery:aJt,extendObservabilitySet:h6e,getByKeyPath:mf,setByKeyPath:Yu,delByKeyPath:function(e,t){typeof t=="string"?Yu(e,t,void 0):"length"in t&&[].map.call(t,function(r){Yu(e,r,void 0)})},shallowClone:REe,deepClone:Rk,getObjectDiff:OF,cmp:Oa,asap:OEe,minKey:dF,addons:[],connections:jk,errnames:Xz,dependencies:PF,semVer:QEe,version:QEe.split(".").map(e=>parseInt(e)).reduce((e,t,r)=>e+t/Math.pow(10,2*r))}),Jg.maxKey=Vk(Jg.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(fp(Wk,e=>{if(!bf){let t;fO?(t=document.createEvent("CustomEvent"),t.initCustomEvent(dp,!0,!0,e)):t=new CustomEvent(dp,{detail:e}),bf=!0,dispatchEvent(t),bf=!1}}),addEventListener(dp,({detail:e})=>{bf||wO(e)}));let bf=!1;if(typeof BroadcastChannel<"u"){const e=new BroadcastChannel(dp);typeof e.unref=="function"&&e.unref(),fp(Wk,t=>{bf||e.postMessage(t)}),e.onmessage=t=>{t.data&&wO(t.data)}}else if(typeof self<"u"&&typeof navigator<"u"){fp(Wk,t=>{try{bf||(typeof localStorage<"u"&&localStorage.setItem(dp,JSON.stringify({trig:Math.random(),changedParts:t})),typeof self.clients=="object"&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach(r=>r.postMessage({type:dp,changedParts:t})))}catch{}}),typeof addEventListener<"u"&&addEventListener("storage",t=>{if(t.key===dp){const r=JSON.parse(t.newValue);r&&wO(r.changedParts)}});const e=self.document&&navigator.serviceWorker;e&&e.addEventListener("message",function({data:t}){t&&t.type===dp&&wO(t.changedParts)})}gt.rejectionMapper=function(e,t){if(!e||e instanceof X1||e instanceof TypeError||e instanceof SyntaxError||!e.name||!BEe[e.name])return e;var r=new BEe[e.name](t||e.message,e);return"stack"in e&&ff(r,"stack",{get:function(){return this.inner.stack}}),r},HEe(Xc,JEe);class eo{constructor(t){this.list=[];for(const r of t)this.list.push(r)}get length(){return this.list.length}toArray(){return this.list.slice(0)}at(t){if(t<0||t>this.list.length-1)throw new Error(`Index (${t}) is out of range [0..${Math.max(this.list.length-1,0)}]`);return this.list[t]}all(){return new eo(this.list)}async single(t){const r=await this.where(t);if(r.length===0)throw new Error("No items found with the specified predicate");if(r.length>1)throw new Error("Multiple items found with the specified predicate");return r.at(0)}async singleOrDefault(t,r){const n=await this.where(t);if(n.length===0)return r;if(n.length>1)throw new Error("Multiple items found with the specified predicate");return n.at(0)}async where(t){return new eo(await this.whereAsArray(t))}async whereAsArray(t){const r=await Promise.all(this.list.map(t??(async()=>!0)));return this.list.filter((n,o)=>r[o])}async orderBy(...t){return new eo(await xP(this.list,...t))}async orderByAsArray(...t){return await xP(this.list,...t)}async groupBy(t){return new eo(await this.groupByAsArray(t))}async groupByAsArray(t){const r=new Map;for(const o of this.list){const i=await t(o),a=r.get(i);a===void 0?r.set(i,[o]):a.push(o)}const n=[];for(const[o,i]of r.entries())n.push({key:o,items:i});return n}async distinct(t){t??(t=async n=>n);const r=new Set;for(const n of this.list)r.add(await t(n));return new eo(r.values())}async distinctAsArray(t){return(await this.distinct(t)).toArray()}async maxValue(t="id",r){let n=r?(await new eo(this.list).where(r)).toArray():this.list;return n=await xP(n,o=>o[t],!0),n.length===0?void 0:n[0][t]}async skip(t){return new eo(this.list.slice(t))}async take(t){return new eo(this.list.slice(0,t))}async skipTake(t,r){return new eo(this.list.slice(t,r+t))}}class lJt{constructor(t,r={},n){this.tables=t,this.initialData=r,this.config=n,this.db=null,this.getItems=o=>this.getDb().table(o).toArray(),this.findItems=async(o,i)=>{const a=await this.getItems(o),l=await Promise.all(a.map(i));return a.filter((s,u)=>l[u])},this.getItem=async(o,i)=>{const a=await this.getItems(o),l=await Promise.all(a.map(i));return a.find((s,u)=>l[u])},this.getItemById=async(o,i)=>await this.getItem(o,async a=>a.id+""==i+""),this.deleteItems=async(o,i)=>{},this.insertItem=async(o,i)=>{const a=await this.getDb().table(o).add(i);return this.getItemById(o,a)},this.updateItem=async(o,i)=>(await this.getDb().table(o).update(i.id,i),await this.getItemById(o,i.id))}getDb(){if(this.db===null)throw new Error("Db is not initialized yet");return this.db}async initialize(){var a,l,s;const t=typeof this.initialData=="function"?await this.initialData():this.initialData,r={},n=new Set;this.tables?this.tables.forEach(u=>{const c=[];u.pk.length===1?c.push(u.pk[0]):c.push(`[${u.pk.join("+")}]`),u.indexes&&c.push(...u.indexes),r[u.name]=c.join(", "),n.add(u.name)}):Object.entries(t).forEach(([u])=>{r[u]="++id",n.add(u)});const o=((a=this.config)==null?void 0:a.version)!==void 0&&typeof((l=this.config)==null?void 0:l.version)=="number"?(s=this.config)==null?void 0:s.version:1,i=await this.dropDbOnVersionChange(o);this.db=this.createDbInstance(),this.db.version(o).stores(r),i&&await Promise.all(Object.entries(t).map(async([u,c])=>{try{await this.getDb().table(u).bulkAdd(c)}catch(d){console.error(d)}})),n.forEach(u=>{this[`$${u}`]=sJt(this.getDb().table(u))})}createDbInstance(){var t;return new mp(((t=this.config)==null?void 0:t.database)??"defaultIndexDb")}async dropDbOnVersionChange(t){const r=this.createDbInstance();return await mp.exists(r.name)?(await r.open(),r.verno!==t?(await r.delete(),!0):(r.close(),!1)):!0}async transaction(t){if(!this.db)return;const r=this.db.tables;await this.db.transaction("rw",r,t)}}async function sJt(e){const t=()=>e.db.table(e.name),r=async n=>{const o=await e.toArray(),i=await Promise.all(o.map(n??(async()=>!0)));return o.filter((a,l)=>i[l])};return{native:t,insert:async n=>{const o=await e.add(n);return t().get(o)},update:async n=>(await e.update(n.id,n),t().get(n.id)),save:async n=>{const o=await e.put(n);return e.get(o)},deleteById:async n=>{await e.delete(n)},byId:async n=>{if(n==null)return null;let o=n;return e.schema.primKey.src==="++id"&&(o=Number(n)),e.get(o)},toArray:async()=>await e.toArray(),single:async n=>await new eo(await e.toArray()).single(n),singleOrDefault:async(n,o)=>await new eo(await e.toArray()).singleOrDefault(n,o),where:async n=>new eo(await r(n)),whereAsArray:async n=>await r(n),orderBy:async(...n)=>await new eo(await e.toArray()).orderBy(...n),orderByAsArray:async(...n)=>await new eo(await e.toArray()).orderByAsArray(...n),groupBy:async n=>await new eo(await e.toArray()).groupBy(n),groupByAsArray:async n=>await new eo(await e.toArray()).groupByAsArray(n),distinct:async n=>await new eo(await e.toArray()).distinct(n),distinctAsArray:async n=>await new eo(await e.toArray()).distinctAsArray(n),maxValue:async(n="id",o)=>await new eo(await e.toArray()).maxValue(n,o),skip:async n=>await new eo(await e.toArray()).skip(n),take:async n=>await new eo(await e.toArray()).take(n),skipTake:async(n,o)=>await new eo(await e.toArray()).skipTake(n,o)}}function g6e(e,t){if(!t)return e;const r={...e};return Object.keys(e).forEach(n=>{if(!(n in t))return;const o=e[n],i=typeof o;switch(t[n]){case"integer":switch(i){case"number":r[n]=Math.round(o);break;case"string":r[n]=parseInt(o,10);break;case"boolean":r[n]=o?1:0;break}break;case"float":case"real":case"double":switch(i){case"number":r[n]=o;break;case"string":r[n]=parseFloat(o);break;case"boolean":r[n]=o?1:0;break}break;case"boolean":switch(i){case"string":switch(o.toLowerCase()){case"true":case"yes":case"on":r[n]=!0;break;case"false":case"no":case"off":r[n]=!1;break}break;case"number":r[n]=!!o;break}break}}),r}class uJt{constructor(t,r={},n){this.tables=t,this.initialData=r,this.config=n}getItems(t){throw new Error("Method not implemented.")}getItem(t,r){throw new Error("Method not implemented.")}getItemById(t,r){throw new Error("Method not implemented.")}deleteItems(t,r){throw new Error("Method not implemented.")}insertItem(t,r){throw new Error("Method not implemented.")}updateItem(t,r){throw new Error("Method not implemented.")}async initialize(){}}function cJt(...e){const t={};for(const r of e){if(!Nn(r))throw new TypeError("All arguments must be of type object");const n=new Headers(r);for(const[o,i]of n.entries())i===void 0||i==="undefined"?delete t[o]:t[o]=i}return new Headers(t)}class dJt{constructor(t){const r=JSON.parse(sessionStorage.getItem("session-logged-in-user"));this.loggedInUser=r||(t==null?void 0:t.defaultLoggedInUser)}login(t){this.loggedInUser=t,sessionStorage.setItem("session-logged-in-user",JSON.stringify(t))}logout(){this.loggedInUser=null,sessionStorage.removeItem("session-logged-in-user")}getCookieToken(){return sessionStorage.getItem("session-anonymous-token")}setCookieToken(t){sessionStorage.setItem("session-anonymous-token",t)}getLoggedInUser(){return this.loggedInUser}}async function fJt(e){var t,r;switch(e.type){case"in-memory":return new uJt((t=e.schemaDescriptor)==null?void 0:t.tables,e.initialData,e.config);default:const n=new lJt((r=e.schemaDescriptor)==null?void 0:r.tables,e.initialData,e.config);return await n.initialize(),n}}class mJt{constructor(t){this.apiDef=t,this.backend=null}async initialize(){const t={};Object.entries(this.apiDef.operations||{}).forEach(([i,a])=>{t[i]=a.handler});const r=await fJt(this.apiDef),n=new dJt(this.apiDef.auth),o={operations:t,initialize:this.apiDef.initialize,helpers:this.apiDef.helpers};this.backend=new pZt(o,r,n)}getOperations(){return this.apiDef.operations||{}}getApiUrl(){return this.apiDef.apiUrl||""}async executeOperation(t,r,n,o){var c;if(this.backend===null)throw new Error("Interceptor not initialized");const i=(c=this.apiDef.operations)==null?void 0:c[t];if(!i)throw new Error(`Unknown API interceptor operation: ${t}`);let a;try{if(i.requestShape==="formData"){const d=await r.formData(),f={};for(const p of d.keys()){const h=d.getAll(p);h.length===1?f[p]=h[0]:f[p]=h}a=f}else i.requestShape==="blob"?a=await r.blob():a=await r.json()}catch{}const l=this.convertRequestParams({pathParams:o,queryParams:Object.fromEntries(new URL(r.url).searchParams),requestBody:a,cookies:n,requestHeaders:Object.fromEntries(r.headers.entries())||{}},i);this.apiDef.artificialDelay===void 0?await SEe("real"):this.apiDef.artificialDelay!==0&&await SEe(this.apiDef.artificialDelay);const s=new fZt,u=new mZt;try{const d=await this.backend.executeOperation(t,l,s,u),f=d==null,p=i.successStatusCode??(f?X5.NoContent:X5.Ok),h=cJt(s.getCookieHeader(),u.getHeaders());return d instanceof File?(h.append("Content-type",d.type),h.append("Content-Length",d.size+""),h.append("Content-Disposition",`attachment; filename="${d.name}"; filename*=utf-8''${d.name}`),Gs.arrayBuffer(await d.arrayBuffer(),{headers:h,status:p})):f?new Gs(null,{headers:h,status:p}):Gs.json(d,{headers:h,status:p})}catch(d){return console.error(d),d instanceof ic&&d.errorObject instanceof qg?Gs.json(d.errorObject.details,{headers:s.getCookieHeader(),status:d.errorObject.status}):Gs.json({message:d==null?void 0:d.message},{headers:s.getCookieHeader(),status:X5.InternalServerError})}}convertRequestParams(t,r){return{...t,pathParams:g6e(t.pathParams,r.pathParamTypes),queryParams:g6e(t.queryParams,r.queryParamTypes)}}hasMockForRequest(t,r){return this.getMockForRequest(t,r)!==void 0}getMockForRequest(t,r){return Object.entries(this.getOperations()).find(([n,o])=>!!(Nz(new URL(t,window.location.href),`${this.getApiUrl()}${o.url}`,`${window.location.href}`).matches&&(r.method||"get").toLowerCase()===o.method.toLowerCase()))}async executeMockedFetch(t,r){const n=this.getMockForRequest(t,r);if(!n)throw new Error(`No mock found for request: ${t} with options: ${JSON.stringify(r)}`);const[o,i]=n,a=Nz(new URL(t,window.location.href),`${this.getApiUrl()}${i.url}`,`${window.location.href}`);return this.executeOperation(o,new Request(t,r),pJt(),a.params)}}function pJt(){const e=document.cookie;return e===""?{}:e.split("; ").reduce((n,o)=>{const[i,a]=o.split("=");return n[decodeURIComponent(i)]=decodeURIComponent(a),n},{})}const LF=Object.freeze(Object.defineProperty({__proto__:null,initMock:async e=>{const t=new mJt(e);return await t.initialize(),t}},Symbol.toStringTag,{value:"Module"}));function hJt(e){return{status:e.status,statusText:e.statusText,headers:Object.fromEntries(e.headers.entries())}}function HF(e){return t=>t!=null&&typeof t=="object"&&"__kind"in t&&t.__kind===e}function v6e(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function b6e(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):v6e(i)&&v6e(o)?(r[n]=b6e(i,o),r):(r[n]=o,r)},Object.assign({},e))}function gJt(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}function ea(e,t){return Object.defineProperties(t,{target:{value:e,enumerable:!0,writable:!0},currentTarget:{value:e,enumerable:!0,writable:!0}}),t}var rx=Symbol("kCancelable"),Zc=Symbol("kDefaultPrevented"),NF=class extends MessageEvent{constructor(e,t){super(e,t),this[rx]=!!t.cancelable,this[Zc]=!1}get cancelable(){return this[rx]}set cancelable(e){this[rx]=e}get defaultPrevented(){return this[Zc]}set defaultPrevented(e){this[Zc]=e}preventDefault(){this.cancelable&&!this[Zc]&&(this[Zc]=!0)}},CO=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}},x6e=class extends CO{constructor(e,t={}){super(e,t),this[rx]=!!t.cancelable,this[Zc]=!1}get cancelable(){return this[rx]}set cancelable(e){this[rx]=e}get defaultPrevented(){return this[Zc]}set defaultPrevented(e){this[Zc]=e}preventDefault(){this.cancelable&&!this[Zc]&&(this[Zc]=!0)}},Gk=Symbol("kEmitter"),kO=Symbol("kBoundListener"),vJt=class{constructor(e,t){this.socket=e,this.transport=t,this.id=qXt(),this.url=new URL(e.url),this[Gk]=new EventTarget,this.transport.addEventListener("outgoing",r=>{const n=ea(this.socket,new NF("message",{data:r.data,origin:r.origin,cancelable:!0}));this[Gk].dispatchEvent(n),n.defaultPrevented&&r.preventDefault()}),this.transport.addEventListener("close",r=>{this[Gk].dispatchEvent(ea(this.socket,new CO("close",r)))})}addEventListener(e,t,r){if(!Reflect.has(t,kO)){const n=t.bind(this.socket);Object.defineProperty(t,kO,{value:n,enumerable:!1,configurable:!1})}this[Gk].addEventListener(e,Reflect.get(t,kO),r)}removeEventListener(e,t,r){this[Gk].removeEventListener(e,Reflect.get(t,kO),r)}send(e){this.transport.send(e)}close(e,t){this.transport.close(e,t)}},y6e="InvalidAccessError: close code out of user configurable range",TO=Symbol("kPassthroughPromise"),w6e=Symbol("kOnSend"),Yk=Symbol("kClose"),Kk=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[TO]=new eZt,queueMicrotask(async()=>{await this[TO]||(this.protocol=typeof t=="string"?t:Array.isArray(t)&&t.length>0?t[0]:"",this.readyState===this.CONNECTING&&(this.readyState=this.OPEN,this.dispatchEvent(ea(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+=bJt(e),queueMicrotask(()=>{var t;this.bufferedAmount=0,(t=this[w6e])==null||t.call(this,e)}))}close(e=1e3,t){Gu(e,y6e),Gu(e===1e3||e>=3e3&&e<=4999,y6e),this[Yk](e,t)}[Yk](e=1e3,t,r=!0){this.readyState===this.CLOSING||this.readyState===this.CLOSED||(this.readyState=this.CLOSING,queueMicrotask(()=>{this.readyState=this.CLOSED,this.dispatchEvent(ea(this,new CO("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)}};Kk.CONNECTING=0,Kk.OPEN=1,Kk.CLOSING=2,Kk.CLOSED=3;function bJt(e){return typeof e=="string"?e.length:e instanceof Blob?e.size:e.byteLength}var pp=Symbol("kEmitter"),_O=Symbol("kBoundListener"),$F=Symbol("kSend"),xJt=class{constructor(e,t,r){this.client=e,this.transport=t,this.createConnection=r,this[pp]=new EventTarget,this.mockCloseController=new AbortController,this.realCloseController=new AbortController,this.transport.addEventListener("outgoing",n=>{typeof this.realWebSocket>"u"||queueMicrotask(()=>{n.defaultPrevented||this[$F](n.data)})}),this.transport.addEventListener("incoming",this.handleIncomingMessage.bind(this))}get socket(){return Gu(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(){Gu(!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[pp].dispatchEvent(ea(this.realWebSocket,new Event("open",t)))},{once:!0}),e.addEventListener("message",t=>{this.transport.dispatchEvent(ea(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=ea(e,new Event("error",{cancelable:!0}));this[pp].dispatchEvent(t),t.defaultPrevented||this.client.dispatchEvent(ea(this.client,new Event("error")))}),this.realWebSocket=e}addEventListener(e,t,r){if(!Reflect.has(t,_O)){const n=t.bind(this.client);Object.defineProperty(t,_O,{value:n,enumerable:!1})}this[pp].addEventListener(e,Reflect.get(t,_O),r)}removeEventListener(e,t,r){this[pp].removeEventListener(e,Reflect.get(t,_O),r)}send(e){this[$F](e)}[$F](e){const{realWebSocket:t}=this;if(Gu(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;Gu(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[pp].dispatchEvent(ea(this.realWebSocket,new x6e("close",{code:1e3,cancelable:!0})))}))}handleIncomingMessage(e){const t=ea(e.target,new NF("message",{data:e.data,origin:e.origin,cancelable:!0}));this[pp].dispatchEvent(t),t.defaultPrevented||this.client.dispatchEvent(ea(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=ea(this.realWebSocket,new x6e("close",{code:e.code,reason:e.reason,wasClean:e.wasClean,cancelable:!0}));this[pp].dispatchEvent(t),t.defaultPrevented||this.client[Yk](e.code,e.reason)}},yJt=class extends EventTarget{constructor(e){super(),this.socket=e,this.socket.addEventListener("close",t=>{this.dispatchEvent(ea(this.socket,new CO("close",t)))}),this.socket[w6e]=t=>{this.dispatchEvent(ea(this.socket,new NF("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(ea(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[Yk](e,t)}},C6e=class extends UXt{constructor(){super(C6e.symbol)}checkEnvironment(){return gJt("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 Kk(i,a),u=new yJt(s);return queueMicrotask(()=>{try{const c=new xJt(s,u,l);this.emitter.emit("connection",{client:new vJt(s,u),server:c,info:{protocols:a}})?s[TO].resolve(!1):(s[TO].resolve(!0),c.connect(),c.addEventListener("open",()=>{s.dispatchEvent(ea(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[Yk](1011,c.message,!1),console.error(c))}}),s}});Object.defineProperty(globalThis,"WebSocket",{value:t,configurable:!0}),this.subscriptions.push(()=>{Object.defineProperty(globalThis,"WebSocket",e)})}},k6e=C6e;k6e.symbol=Symbol("websocket");const DF=new k6e;function wJt(e){DF.on("connection",async t=>{const r=e.getHandlers(),n=new MessageEvent("connection",{data:t}),o=[];for(const i of r)HF("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[ZQt](n)}else{const i=new Request(t.client.url,{headers:{upgrade:"websocket",connection:"upgrade"}});await wEe(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 SO(e){return e instanceof Blob?e.size:e instanceof ArrayBuffer?e.byteLength:new Blob([e]).size}const T6e=24;function BF(e){return e.length<=T6e?e:`${e.slice(0,T6e)}…`}async function EO(e){if(e instanceof Blob){const t=await e.text();return`Blob(${BF(t)})`}if(typeof e=="object"&&"byteLength"in e){const t=new TextDecoder().decode(e);return`ArrayBuffer(${BF(t)})`}return BF(e)}const ev={system:"#3b82f6",outgoing:"#22c55e",incoming:"#ef4444",mocked:"#ff6a33"};function CJt(e){const{client:t,server:r}=e;kJt(t),t.addEventListener("message",n=>{SJt(n)}),t.addEventListener("close",n=>{TJt(n)}),t.socket.addEventListener("error",n=>{_Jt(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(()=>{AJt(l)}),Reflect.apply(n,o,i)}}),r.addEventListener("open",()=>{r.addEventListener("message",n=>{OJt(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}}),EJt(l),Reflect.apply(n,o,i)}})}function kJt(e){const t=Sk(e.url);console.groupCollapsed(Kr.formatMessage(`${np()} %c▶%c ${t}`),`color:${ev.system}`,"color:inherit"),console.log("Client:",e.socket),console.groupEnd()}function TJt(e){const t=e.target,r=Sk(t.url);console.groupCollapsed(Kr.formatMessage(`${np({milliseconds:!0})} %c■%c ${r}`),`color:${ev.system}`,"color:inherit"),console.log(e),console.groupEnd()}function _Jt(e){const t=e.target,r=Sk(t.url);console.groupCollapsed(Kr.formatMessage(`${np({milliseconds:!0})} %c×%c ${r}`),`color:${ev.system}`,"color:inherit"),console.log(e),console.groupEnd()}async function SJt(e){const t=SO(e.data),r=await EO(e.data),n=e.defaultPrevented?"⇡":"⬆";console.groupCollapsed(Kr.formatMessage(`${np({milliseconds:!0})} %c${n}%c ${r} %c${t}%c`),`color:${ev.outgoing}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}async function EJt(e){const t=SO(e.data),r=await EO(e.data);console.groupCollapsed(Kr.formatMessage(`${np({milliseconds:!0})} %c⬆%c ${r} %c${t}%c`),`color:${ev.mocked}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}async function AJt(e){const t=SO(e.data),r=await EO(e.data);console.groupCollapsed(Kr.formatMessage(`${np({milliseconds:!0})} %c⬇%c ${r} %c${t}%c`),`color:${ev.mocked}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}async function OJt(e){const t=SO(e.data),r=await EO(e.data),n=e.defaultPrevented?"⇣":"⬇";console.groupCollapsed(Kr.formatMessage(`${np({milliseconds:!0})} %c${n}%c ${r} %c${t}%c`),`color:${ev.incoming}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}var IJt={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.86 (built 7/25/2025)"},RJt=/(%?)(%([sdijo]))/g;function PJt(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 Xk(e,...t){if(t.length===0)return e;let r=0,n=e.replace(RJt,(o,i,a,l)=>{const s=t[r],u=PJt(s,l);return i?o:(r++,u)});return r<t.length&&(n+=` ${t.slice(r).join(" ")}`),n=n.replace(/%{2,2}/g,"%"),n}var LJt=2;function HJt(e){if(!e.stack)return;const t=e.stack.split(`
|
|
954
|
+
From previous: `);return this._state!==null&&(this._stack=e),e}finally{tF=!1}}},timeout:function(e,t){return e<1/0?new gt((r,n)=>{var o=setTimeout(()=>n(new Ut.Timeout(t)),e);this.then(r,n).finally(clearTimeout.bind(null,o))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&ff(gt.prototype,Symbol.toStringTag,"Dexie.Promise"),Q1.env=qEe(),G1(gt,{all:function(){var e=pf.apply(null,arguments).map(cO);return new gt(function(t,r){e.length===0&&t([]);var n=e.length;e.forEach((o,i)=>gt.resolve(o).then(a=>{e[i]=a,--n||t(e)},r))})},resolve:e=>{if(e instanceof gt)return e;if(e&&typeof e.then=="function")return new gt((r,n)=>{e.then(r,n)});var t=new gt(Hk,!0,e);return UEe(t,nF),t},reject:lO,race:function(){var e=pf.apply(null,arguments).map(cO);return new gt((t,r)=>{e.map(n=>gt.resolve(n).then(t,r))})},PSD:{get:()=>Rt,set:e=>Rt=e},totalEchoes:{get:()=>uO},newPSD:sp,usePSD:J1,scheduler:{get:()=>Nk,set:e=>{Nk=e}},rejectionMapper:{get:()=>oF,set:e=>{oF=e}},follow:(e,t)=>new gt((r,n)=>sp((o,i)=>{var a=Rt;a.unhandleds=[],a.onunhandled=i,a.finalize=Yg(function(){(function(l){function s(){l(),iO.splice(iO.indexOf(s),1)}iO.push(s),++Xg,Nk(()=>{--Xg==0&&sF()},[])})(()=>{this.unhandleds.length===0?o():i(this.unhandleds[0])})},a.finalize),e()},t,r,n))}),rO&&(rO.allSettled&&ff(gt,"allSettled",function(){const e=pf.apply(null,arguments).map(cO);return new gt(t=>{e.length===0&&t([]);let r=e.length;const n=new Array(r);e.forEach((o,i)=>gt.resolve(o).then(a=>n[i]={status:"fulfilled",value:a},a=>n[i]={status:"rejected",reason:a}).then(()=>--r||t(n)))})}),rO.any&&typeof AggregateError<"u"&&ff(gt,"any",function(){const e=pf.apply(null,arguments).map(cO);return new gt((t,r)=>{e.length===0&&r(new AggregateError([]));let n=e.length;const o=new Array(n);e.forEach((i,a)=>gt.resolve(i).then(l=>t(l),l=>{o[a]=l,--n||r(new AggregateError(o))}))})}));const Ji={awaits:0,echoes:0,id:0};var LZt=0,sO=[],uF=0,uO=0,HZt=0;function sp(e,t,r,n){var o=Rt,i=Object.create(o);i.parent=o,i.ref=0,i.global=!1,i.id=++HZt;var a=Q1.env;i.env=eF?{Promise:gt,PromiseProp:{value:gt,configurable:!0,writable:!0},all:gt.all,race:gt.race,allSettled:gt.allSettled,any:gt.any,resolve:gt.resolve,reject:gt.reject,nthen:YEe(a.nthen,i),gthen:YEe(a.gthen,i)}:{},t&&Aa(i,t),++o.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var l=J1(i,e,r,n);return i.ref===0&&i.finalize(),l}function Z1(){return Ji.id||(Ji.id=++LZt),++Ji.awaits,Ji.echoes+=jEe,Ji.id}function hf(){return!!Ji.awaits&&(--Ji.awaits==0&&(Ji.id=0),Ji.echoes=Ji.awaits*jEe,!0)}function cO(e){return Ji.echoes&&e&&e.constructor===rO?(Z1(),e.then(t=>(hf(),t),t=>(hf(),oi(t)))):e}function NZt(e){++uO,Ji.echoes&&--Ji.echoes!=0||(Ji.echoes=Ji.id=0),sO.push(Rt),up(e,!0)}function $Zt(){var e=sO[sO.length-1];sO.pop(),up(e,!1)}function up(e,t){var r=Rt;if((t?!Ji.echoes||uF++&&e===Rt:!uF||--uF&&e===Rt)||GEe(t?NZt.bind(null,e):$Zt),e!==Rt&&(Rt=e,r===Q1&&(Q1.env=qEe()),eF)){var n=Q1.env.Promise,o=e.env;tO.then=o.nthen,n.prototype.then=o.gthen,(r.global||e.global)&&(Object.defineProperty(Pn,"Promise",o.PromiseProp),n.all=o.all,n.race=o.race,n.resolve=o.resolve,n.reject=o.reject,o.allSettled&&(n.allSettled=o.allSettled),o.any&&(n.any=o.any))}}function qEe(){var e=Pn.Promise;return eF?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(Pn,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:tO.then,gthen:e.prototype.then}:{}}function J1(e,t,r,n,o){var i=Rt;try{return up(e,!0),t(r,n,o)}finally{up(i,!1)}}function GEe(e){MEe.call(Zz,e)}function dO(e,t,r,n){return typeof e!="function"?e:function(){var o=Rt;r&&Z1(),up(t,!0);try{return e.apply(this,arguments)}finally{up(o,!1),n&&GEe(hf)}}}function YEe(e,t){return function(r,n){return e.call(this,dO(r,t),dO(n,t))}}(""+MEe).indexOf("[native code]")===-1&&(Z1=hf=pn);const KEe="unhandledrejection";function XEe(e,t){var r;try{r=t.onuncatched(e)}catch{}if(r!==!1)try{var n,o={promise:t,reason:e};if(Pn.document&&document.createEvent?((n=document.createEvent("Event")).initEvent(KEe,!0,!0),Aa(n,o)):Pn.CustomEvent&&Aa(n=new CustomEvent(KEe,{detail:o}),o),n&&Pn.dispatchEvent&&(dispatchEvent(n),!Pn.PromiseRejectionEvent&&Pn.onunhandledrejection))try{Pn.onunhandledrejection(n)}catch{}Xc&&n&&!n.defaultPrevented&&console.warn(`Unhandled rejection: ${e.stack||e}`)}catch{}}var oi=gt.reject;function cF(e,t,r,n){if(e.idbdb&&(e._state.openComplete||Rt.letThrough||e._vip)){var o=e._createTransaction(t,r,e._dbSchema);try{o.create(),e._state.PR1398_maxLoop=3}catch(i){return i.name===Xz.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then(()=>cF(e,t,r,n))):oi(i)}return o._promise(t,(i,a)=>sp(()=>(Rt.trans=o,n(i,a,o)))).then(i=>o._completion.then(()=>i))}if(e._state.openComplete)return oi(new Ut.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return oi(new Ut.DatabaseClosed);e.open().catch(pn)}return e._state.dbReadyPromise.then(()=>cF(e,t,r,n))}const QEe="3.2.4",Qg="",dF=-1/0,gf="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",ZEe="String expected.",jk=[],fO=typeof navigator<"u"&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),DZt=fO,BZt=fO,JEe=e=>!/(dexie\.js|dexie\.min\.js)/.test(e),mO="__dbnames",fF="readonly",mF="readwrite";function Zg(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}const e6e={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function pO(e){return typeof e!="string"||/\./.test(e)?t=>t:t=>(t[e]===void 0&&e in t&&delete(t=Rk(t))[e],t)}class jZt{_trans(t,r,n){const o=this._tx||Rt.trans,i=this.name;function a(s,u,c){if(!c.schema[i])throw new Ut.NotFound("Table "+i+" not part of transaction");return r(c.idbtrans,c)}const l=Dk();try{return o&&o.db===this.db?o===Rt.trans?o._promise(t,a,n):sp(()=>o._promise(t,a,n),{trans:o,transless:Rt.transless||Rt}):cF(this.db,t,[this.name],a)}finally{l&&Bk()}}get(t,r){return t&&t.constructor===Object?this.where(t).first(r):this._trans("readonly",n=>this.core.get({trans:n,key:t}).then(o=>this.hook.reading.fire(o))).then(r)}where(t){if(typeof t=="string")return new this.db.WhereClause(this,t);if(Zi(t))return new this.db.WhereClause(this,`[${t.join("+")}]`);const r=Mo(t);if(r.length===1)return this.where(r[0]).equals(t[r[0]]);const n=this.schema.indexes.concat(this.schema.primKey).filter(u=>u.compound&&r.every(c=>u.keyPath.indexOf(c)>=0)&&u.keyPath.every(c=>r.indexOf(c)>=0))[0];if(n&&this.db._maxKey!==Qg)return this.where(n.name).equals(n.keyPath.map(u=>t[u]));!n&&Xc&&console.warn(`The query ${JSON.stringify(t)} on ${this.name} would benefit of a compound index [${r.join("+")}]`);const{idxByName:o}=this.schema,i=this.db._deps.indexedDB;function a(u,c){try{return i.cmp(u,c)===0}catch{return!1}}const[l,s]=r.reduce(([u,c],d)=>{const f=o[d],p=t[d];return[u||f,u||!f?Zg(c,f&&f.multi?h=>{const v=mf(h,d);return Zi(v)&&v.some(b=>a(p,b))}:h=>a(p,mf(h,d))):c]},[null,null]);return l?this.where(l.name).equals(t[l.keyPath]).filter(s):n?this.filter(s):this.where(r).equals("")}filter(t){return this.toCollection().and(t)}count(t){return this.toCollection().count(t)}offset(t){return this.toCollection().offset(t)}limit(t){return this.toCollection().limit(t)}each(t){return this.toCollection().each(t)}toArray(t){return this.toCollection().toArray(t)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(t){return new this.db.Collection(new this.db.WhereClause(this,Zi(t)?`[${t.join("+")}]`:t))}reverse(){return this.toCollection().reverse()}mapToClass(t){this.schema.mappedClass=t;const r=n=>{if(!n)return n;const o=Object.create(t.prototype);for(var i in n)if(Zl(n,i))try{o[i]=n[i]}catch{}return o};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=r,this.hook("reading",r),t}defineClass(){return this.mapToClass(function(t){Aa(this,t)})}add(t,r){const{auto:n,keyPath:o}=this.schema.primKey;let i=t;return o&&n&&(i=pO(o)(t)),this._trans("readwrite",a=>this.core.mutate({trans:a,type:"add",keys:r!=null?[r]:null,values:[i]})).then(a=>a.numFailures?gt.reject(a.failures[0]):a.lastResult).then(a=>{if(o)try{Yu(t,o,a)}catch{}return a})}update(t,r){if(typeof t!="object"||Zi(t))return this.where(":id").equals(t).modify(r);{const n=mf(t,this.schema.primKey.keyPath);if(n===void 0)return oi(new Ut.InvalidArgument("Given object does not contain its primary key"));try{typeof r!="function"?Mo(r).forEach(o=>{Yu(t,o,r[o])}):r(t,{value:t,primKey:n})}catch{}return this.where(":id").equals(n).modify(r)}}put(t,r){const{auto:n,keyPath:o}=this.schema.primKey;let i=t;return o&&n&&(i=pO(o)(t)),this._trans("readwrite",a=>this.core.mutate({trans:a,type:"put",values:[i],keys:r!=null?[r]:null})).then(a=>a.numFailures?gt.reject(a.failures[0]):a.lastResult).then(a=>{if(o)try{Yu(t,o,a)}catch{}return a})}delete(t){return this._trans("readwrite",r=>this.core.mutate({trans:r,type:"delete",keys:[t]})).then(r=>r.numFailures?gt.reject(r.failures[0]):void 0)}clear(){return this._trans("readwrite",t=>this.core.mutate({trans:t,type:"deleteRange",range:e6e})).then(t=>t.numFailures?gt.reject(t.failures[0]):void 0)}bulkGet(t){return this._trans("readonly",r=>this.core.getMany({keys:t,trans:r}).then(n=>n.map(o=>this.hook.reading.fire(o))))}bulkAdd(t,r,n){const o=Array.isArray(r)?r:void 0,i=(n=n||(o?void 0:r))?n.allKeys:void 0;return this._trans("readwrite",a=>{const{auto:l,keyPath:s}=this.schema.primKey;if(s&&o)throw new Ut.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(o&&o.length!==t.length)throw new Ut.InvalidArgument("Arguments objects and keys must have the same length");const u=t.length;let c=s&&l?t.map(pO(s)):t;return this.core.mutate({trans:a,type:"add",keys:o,values:c,wantResults:i}).then(({numFailures:d,results:f,lastResult:p,failures:h})=>{if(d===0)return i?f:p;throw new Pk(`${this.name}.bulkAdd(): ${d} of ${u} operations failed`,h)})})}bulkPut(t,r,n){const o=Array.isArray(r)?r:void 0,i=(n=n||(o?void 0:r))?n.allKeys:void 0;return this._trans("readwrite",a=>{const{auto:l,keyPath:s}=this.schema.primKey;if(s&&o)throw new Ut.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(o&&o.length!==t.length)throw new Ut.InvalidArgument("Arguments objects and keys must have the same length");const u=t.length;let c=s&&l?t.map(pO(s)):t;return this.core.mutate({trans:a,type:"put",keys:o,values:c,wantResults:i}).then(({numFailures:d,results:f,lastResult:p,failures:h})=>{if(d===0)return i?f:p;throw new Pk(`${this.name}.bulkPut(): ${d} of ${u} operations failed`,h)})})}bulkDelete(t){const r=t.length;return this._trans("readwrite",n=>this.core.mutate({trans:n,type:"delete",keys:t})).then(({numFailures:n,lastResult:o,failures:i})=>{if(n===0)return o;throw new Pk(`${this.name}.bulkDelete(): ${n} of ${r} operations failed`,i)})}}function Mk(e){var t={},r=function(a,l){if(l){for(var s=arguments.length,u=new Array(s-1);--s;)u[s-1]=arguments[s];return t[a].subscribe.apply(null,u),e}if(typeof a=="string")return t[a]};r.addEventType=i;for(var n=1,o=arguments.length;n<o;++n)i(arguments[n]);return r;function i(a,l,s){if(typeof a!="object"){var u;l||(l=IZt),s||(s=pn);var c={subscribers:[],fire:s,subscribe:function(d){c.subscribers.indexOf(d)===-1&&(c.subscribers.push(d),c.fire=l(c.fire,d))},unsubscribe:function(d){c.subscribers=c.subscribers.filter(function(f){return f!==d}),c.fire=c.subscribers.reduce(l,s)}};return t[a]=r[a]=c,c}Mo(u=a).forEach(function(d){var f=u[d];if(Zi(f))i(d,u[d][0],u[d][1]);else{if(f!=="asap")throw new Ut.InvalidArgument("Invalid event config");var p=i(d,Lk,function(){for(var h=arguments.length,v=new Array(h);h--;)v[h]=arguments[h];p.subscribers.forEach(function(b){OEe(function(){b.apply(null,v)})})})}})}}function zk(e,t){return Y1(t).from({prototype:e}),t}function ex(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function pF(e,t){e.filter=Zg(e.filter,t)}function hF(e,t,r){var n=e.replayFilter;e.replayFilter=n?()=>Zg(n(),t()):t,e.justLimit=r&&!n}function hO(e,t){if(e.isPrimKey)return t.primaryKey;const r=t.getIndexByKeyPath(e.index);if(!r)throw new Ut.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return r}function t6e(e,t,r){const n=hO(e,t.schema);return t.openCursor({trans:r,values:!e.keysOnly,reverse:e.dir==="prev",unique:!!e.unique,query:{index:n,range:e.range}})}function gO(e,t,r,n){const o=e.replayFilter?Zg(e.filter,e.replayFilter()):e.filter;if(e.or){const i={},a=(l,s,u)=>{if(!o||o(s,u,f=>s.stop(f),f=>s.fail(f))){var c=s.primaryKey,d=""+c;d==="[object ArrayBuffer]"&&(d=""+new Uint8Array(c)),Zl(i,d)||(i[d]=!0,t(l,s,u))}};return Promise.all([e.or._iterate(a,r),r6e(t6e(e,n,r),e.algorithm,a,!e.keysOnly&&e.valueMapper)])}return r6e(t6e(e,n,r),Zg(e.algorithm,o),t,!e.keysOnly&&e.valueMapper)}function r6e(e,t,r,n){var o=Fn(n?(i,a,l)=>r(n(i),a,l):r);return e.then(i=>{if(i)return i.start(()=>{var a=()=>i.continue();t&&!t(i,l=>a=l,l=>{i.stop(l),a=pn},l=>{i.fail(l),a=pn})||o(i.value,i,l=>a=l),a()})})}function Oa(e,t){try{const r=n6e(e),n=n6e(t);if(r!==n)return r==="Array"?1:n==="Array"?-1:r==="binary"?1:n==="binary"?-1:r==="string"?1:n==="string"?-1:r==="Date"?1:n!=="Date"?NaN:-1;switch(r){case"number":case"Date":case"string":return e>t?1:e<t?-1:0;case"binary":return function(o,i){const a=o.length,l=i.length,s=a<l?a:l;for(let u=0;u<s;++u)if(o[u]!==i[u])return o[u]<i[u]?-1:1;return a===l?0:a<l?-1:1}(o6e(e),o6e(t));case"Array":return function(o,i){const a=o.length,l=i.length,s=a<l?a:l;for(let u=0;u<s;++u){const c=Oa(o[u],i[u]);if(c!==0)return c}return a===l?0:a<l?-1:1}(e,t)}}catch{}return NaN}function n6e(e){const t=typeof e;if(t!=="object")return t;if(ArrayBuffer.isView(e))return"binary";const r=Uz(e);return r==="ArrayBuffer"?"binary":r}function o6e(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}class MZt{_read(t,r){var n=this._ctx;return n.error?n.table._trans(null,oi.bind(null,n.error)):n.table._trans("readonly",t).then(r)}_write(t){var r=this._ctx;return r.error?r.table._trans(null,oi.bind(null,r.error)):r.table._trans("readwrite",t,"locked")}_addAlgorithm(t){var r=this._ctx;r.algorithm=Zg(r.algorithm,t)}_iterate(t,r){return gO(this._ctx,t,r,this._ctx.table.core)}clone(t){var r=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return t&&Aa(n,t),r._ctx=n,r}raw(){return this._ctx.valueMapper=null,this}each(t){var r=this._ctx;return this._read(n=>gO(r,t,n,r.table.core))}count(t){return this._read(r=>{const n=this._ctx,o=n.table.core;if(ex(n,!0))return o.count({trans:r,query:{index:hO(n,o.schema),range:n.range}}).then(a=>Math.min(a,n.limit));var i=0;return gO(n,()=>(++i,!1),r,o).then(()=>i)}).then(t)}sortBy(t,r){const n=t.split(".").reverse(),o=n[0],i=n.length-1;function a(u,c){return c?a(u[n[c]],c-1):u[o]}var l=this._ctx.dir==="next"?1:-1;function s(u,c){var d=a(u,i),f=a(c,i);return d<f?-l:d>f?l:0}return this.toArray(function(u){return u.sort(s)}).then(r)}toArray(t){return this._read(r=>{var n=this._ctx;if(n.dir==="next"&&ex(n,!0)&&n.limit>0){const{valueMapper:o}=n,i=hO(n,n.table.core.schema);return n.table.core.query({trans:r,limit:n.limit,values:!0,query:{index:i,range:n.range}}).then(({result:a})=>o?a.map(o):a)}{const o=[];return gO(n,i=>o.push(i),r,n.table.core).then(()=>o)}},t)}offset(t){var r=this._ctx;return t<=0||(r.offset+=t,ex(r)?hF(r,()=>{var n=t;return(o,i)=>n===0||(n===1?(--n,!1):(i(()=>{o.advance(n),n=0}),!1))}):hF(r,()=>{var n=t;return()=>--n<0})),this}limit(t){return this._ctx.limit=Math.min(this._ctx.limit,t),hF(this._ctx,()=>{var r=t;return function(n,o,i){return--r<=0&&o(i),r>=0}},!0),this}until(t,r){return pF(this._ctx,function(n,o,i){return!t(n.value)||(o(i),r)}),this}first(t){return this.limit(1).toArray(function(r){return r[0]}).then(t)}last(t){return this.reverse().first(t)}filter(t){var r,n;return pF(this._ctx,function(o){return t(o.value)}),r=this._ctx,n=t,r.isMatch=Zg(r.isMatch,n),this}and(t){return this.filter(t)}or(t){return new this.db.WhereClause(this._ctx.table,t,this)}reverse(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(t){var r=this._ctx;return r.keysOnly=!r.isMatch,this.each(function(n,o){t(o.key,o)})}eachUniqueKey(t){return this._ctx.unique="unique",this.eachKey(t)}eachPrimaryKey(t){var r=this._ctx;return r.keysOnly=!r.isMatch,this.each(function(n,o){t(o.primaryKey,o)})}keys(t){var r=this._ctx;r.keysOnly=!r.isMatch;var n=[];return this.each(function(o,i){n.push(i.key)}).then(function(){return n}).then(t)}primaryKeys(t){var r=this._ctx;if(r.dir==="next"&&ex(r,!0)&&r.limit>0)return this._read(o=>{var i=hO(r,r.table.core.schema);return r.table.core.query({trans:o,values:!1,limit:r.limit,query:{index:i,range:r.range}})}).then(({result:o})=>o).then(t);r.keysOnly=!r.isMatch;var n=[];return this.each(function(o,i){n.push(i.primaryKey)}).then(function(){return n}).then(t)}uniqueKeys(t){return this._ctx.unique="unique",this.keys(t)}firstKey(t){return this.limit(1).keys(function(r){return r[0]}).then(t)}lastKey(t){return this.reverse().firstKey(t)}distinct(){var t=this._ctx,r=t.index&&t.table.schema.idxByName[t.index];if(!r||!r.multi)return this;var n={};return pF(this._ctx,function(o){var i=o.primaryKey.toString(),a=Zl(n,i);return n[i]=!0,!a}),this}modify(t){var r=this._ctx;return this._write(n=>{var o;if(typeof t=="function")o=t;else{var i=Mo(t),a=i.length;o=function(v){for(var b=!1,y=0;y<a;++y){var w=i[y],k=t[w];mf(v,w)!==k&&(Yu(v,w,k),b=!0)}return b}}const l=r.table.core,{outbound:s,extractKey:u}=l.schema.primaryKey,c=this.db._options.modifyChunkSize||200,d=[];let f=0;const p=[],h=(v,b)=>{const{failures:y,numFailures:w}=b;f+=v-w;for(let k of Mo(y))d.push(y[k])};return this.clone().primaryKeys().then(v=>{const b=y=>{const w=Math.min(c,v.length-y);return l.getMany({trans:n,keys:v.slice(y,y+w),cache:"immutable"}).then(k=>{const E=[],T=[],S=s?[]:null,A=[];for(let I=0;I<w;++I){const L=k[I],P={value:Rk(L),primKey:v[y+I]};o.call(P,P.value,P)!==!1&&(P.value==null?A.push(v[y+I]):s||Oa(u(L),u(P.value))===0?(T.push(P.value),s&&S.push(v[y+I])):(A.push(v[y+I]),E.push(P.value)))}const O=ex(r)&&r.limit===1/0&&(typeof t!="function"||t===gF)&&{index:r.index,range:r.range};return Promise.resolve(E.length>0&&l.mutate({trans:n,type:"add",values:E}).then(I=>{for(let L in I.failures)A.splice(parseInt(L),1);h(E.length,I)})).then(()=>(T.length>0||O&&typeof t=="object")&&l.mutate({trans:n,type:"put",keys:S,values:T,criteria:O,changeSpec:typeof t!="function"&&t}).then(I=>h(T.length,I))).then(()=>(A.length>0||O&&t===gF)&&l.mutate({trans:n,type:"delete",keys:A,criteria:O}).then(I=>h(A.length,I))).then(()=>v.length>y+w&&b(y+c))})};return b(0).then(()=>{if(d.length>0)throw new J5("Error modifying one or more objects",d,f,p);return v.length})})})}delete(){var t=this._ctx,r=t.range;return ex(t)&&(t.isPrimKey&&!BZt||r.type===3)?this._write(n=>{const{primaryKey:o}=t.table.core.schema,i=r;return t.table.core.count({trans:n,query:{index:o,range:i}}).then(a=>t.table.core.mutate({trans:n,type:"deleteRange",range:i}).then(({failures:l,lastResult:s,results:u,numFailures:c})=>{if(c)throw new J5("Could not delete some values",Object.keys(l).map(d=>l[d]),a-c);return a-c}))}):this.modify(gF)}}const gF=(e,t)=>t.value=null;function zZt(e,t){return e<t?-1:e===t?0:1}function FZt(e,t){return e>t?-1:e===t?0:1}function Jl(e,t,r){var n=e instanceof a6e?new e.Collection(e):e;return n._ctx.error=r?new r(t):new TypeError(t),n}function tx(e){return new e.Collection(e,()=>i6e("")).limit(0)}function WZt(e,t,r,n,o,i){for(var a=Math.min(e.length,n.length),l=-1,s=0;s<a;++s){var u=t[s];if(u!==n[s])return o(e[s],r[s])<0?e.substr(0,s)+r[s]+r.substr(s+1):o(e[s],n[s])<0?e.substr(0,s)+n[s]+r.substr(s+1):l>=0?e.substr(0,l)+t[l]+r.substr(l+1):null;o(e[s],u)<0&&(l=s)}return a<n.length&&i==="next"?e+r.substr(e.length):a<e.length&&i==="prev"?e.substr(0,r.length):l<0?null:e.substr(0,l)+n[l]+r.substr(l+1)}function vO(e,t,r,n){var o,i,a,l,s,u,c,d=r.length;if(!r.every(v=>typeof v=="string"))return Jl(e,ZEe);function f(v){o=function(y){return y==="next"?w=>w.toUpperCase():w=>w.toLowerCase()}(v),i=function(y){return y==="next"?w=>w.toLowerCase():w=>w.toUpperCase()}(v),a=v==="next"?zZt:FZt;var b=r.map(function(y){return{lower:i(y),upper:o(y)}}).sort(function(y,w){return a(y.lower,w.lower)});l=b.map(function(y){return y.upper}),s=b.map(function(y){return y.lower}),u=v,c=v==="next"?"":n}f("next");var p=new e.Collection(e,()=>cp(l[0],s[d-1]+n));p._ondirectionchange=function(v){f(v)};var h=0;return p._addAlgorithm(function(v,b,y){var w=v.key;if(typeof w!="string")return!1;var k=i(w);if(t(k,s,h))return!0;for(var E=null,T=h;T<d;++T){var S=WZt(w,k,l[T],s[T],a,u);S===null&&E===null?h=T+1:(E===null||a(E,S)>0)&&(E=S)}return b(E!==null?function(){v.continue(E+c)}:y),!1}),p}function cp(e,t,r,n){return{type:2,lower:e,upper:t,lowerOpen:r,upperOpen:n}}function i6e(e){return{type:1,lower:e,upper:e}}class a6e{get Collection(){return this._ctx.table.db.Collection}between(t,r,n,o){n=n!==!1,o=o===!0;try{return this._cmp(t,r)>0||this._cmp(t,r)===0&&(n||o)&&(!n||!o)?tx(this):new this.Collection(this,()=>cp(t,r,!n,!o))}catch{return Jl(this,gf)}}equals(t){return t==null?Jl(this,gf):new this.Collection(this,()=>i6e(t))}above(t){return t==null?Jl(this,gf):new this.Collection(this,()=>cp(t,void 0,!0))}aboveOrEqual(t){return t==null?Jl(this,gf):new this.Collection(this,()=>cp(t,void 0,!1))}below(t){return t==null?Jl(this,gf):new this.Collection(this,()=>cp(void 0,t,!1,!0))}belowOrEqual(t){return t==null?Jl(this,gf):new this.Collection(this,()=>cp(void 0,t))}startsWith(t){return typeof t!="string"?Jl(this,ZEe):this.between(t,t+Qg,!0,!0)}startsWithIgnoreCase(t){return t===""?this.startsWith(t):vO(this,(r,n)=>r.indexOf(n[0])===0,[t],Qg)}equalsIgnoreCase(t){return vO(this,(r,n)=>r===n[0],[t],"")}anyOfIgnoreCase(){var t=pf.apply(K1,arguments);return t.length===0?tx(this):vO(this,(r,n)=>n.indexOf(r)!==-1,t,"")}startsWithAnyOfIgnoreCase(){var t=pf.apply(K1,arguments);return t.length===0?tx(this):vO(this,(r,n)=>n.some(o=>r.indexOf(o)===0),t,Qg)}anyOf(){const t=pf.apply(K1,arguments);let r=this._cmp;try{t.sort(r)}catch{return Jl(this,gf)}if(t.length===0)return tx(this);const n=new this.Collection(this,()=>cp(t[0],t[t.length-1]));n._ondirectionchange=i=>{r=i==="next"?this._ascending:this._descending,t.sort(r)};let o=0;return n._addAlgorithm((i,a,l)=>{const s=i.key;for(;r(s,t[o])>0;)if(++o,o===t.length)return a(l),!1;return r(s,t[o])===0||(a(()=>{i.continue(t[o])}),!1)}),n}notEqual(t){return this.inAnyRange([[dF,t],[t,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){const t=pf.apply(K1,arguments);if(t.length===0)return new this.Collection(this);try{t.sort(this._ascending)}catch{return Jl(this,gf)}const r=t.reduce((n,o)=>n?n.concat([[n[n.length-1][1],o]]):[[dF,o]],null);return r.push([t[t.length-1],this.db._maxKey]),this.inAnyRange(r,{includeLowers:!1,includeUppers:!1})}inAnyRange(t,r){const n=this._cmp,o=this._ascending,i=this._descending,a=this._min,l=this._max;if(t.length===0)return tx(this);if(!t.every(w=>w[0]!==void 0&&w[1]!==void 0&&o(w[0],w[1])<=0))return Jl(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Ut.InvalidArgument);const s=!r||r.includeLowers!==!1,u=r&&r.includeUppers===!0;let c,d=o;function f(w,k){return d(w[0],k[0])}try{c=t.reduce(function(w,k){let E=0,T=w.length;for(;E<T;++E){const S=w[E];if(n(k[0],S[1])<0&&n(k[1],S[0])>0){S[0]=a(S[0],k[0]),S[1]=l(S[1],k[1]);break}}return E===T&&w.push(k),w},[]),c.sort(f)}catch{return Jl(this,gf)}let p=0;const h=u?w=>o(w,c[p][1])>0:w=>o(w,c[p][1])>=0,v=s?w=>i(w,c[p][0])>0:w=>i(w,c[p][0])>=0;let b=h;const y=new this.Collection(this,()=>cp(c[0][0],c[c.length-1][1],!s,!u));return y._ondirectionchange=w=>{w==="next"?(b=h,d=o):(b=v,d=i),c.sort(f)},y._addAlgorithm((w,k,E)=>{for(var T=w.key;b(T);)if(++p,p===c.length)return k(E),!1;return!!function(S){return!h(S)&&!v(S)}(T)||(this._cmp(T,c[p][1])===0||this._cmp(T,c[p][0])===0||k(()=>{d===o?w.continue(c[p][0]):w.continue(c[p][1])}),!1)}),y}startsWithAnyOf(){const t=pf.apply(K1,arguments);return t.every(r=>typeof r=="string")?t.length===0?tx(this):this.inAnyRange(t.map(r=>[r,r+Qg])):Jl(this,"startsWithAnyOf() only works with strings")}}function Qc(e){return Fn(function(t){return Fk(t),e(t.target.error),!1})}function Fk(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}const Wk="storagemutated",dp="x-storagemutated-1",fp=Mk(null,Wk);class VZt{_lock(){return Ik(!Rt.global),++this._reculock,this._reculock!==1||Rt.global||(Rt.lockOwnerFor=this),this}_unlock(){if(Ik(!Rt.global),--this._reculock==0)for(Rt.global||(Rt.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var t=this._blockedFuncs.shift();try{J1(t[1],t[0])}catch{}}return this}_locked(){return this._reculock&&Rt.lockOwnerFor!==this}create(t){if(!this.mode)return this;const r=this.db.idbdb,n=this.db._state.dbOpenError;if(Ik(!this.idbtrans),!t&&!r)switch(n&&n.name){case"DatabaseClosedError":throw new Ut.DatabaseClosed(n);case"MissingAPIError":throw new Ut.MissingAPI(n.message,n);default:throw new Ut.OpenFailed(n)}if(!this.active)throw new Ut.TransactionInactive;return Ik(this._completion._state===null),(t=this.idbtrans=t||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):r.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=Fn(o=>{Fk(o),this._reject(t.error)}),t.onabort=Fn(o=>{Fk(o),this.active&&this._reject(new Ut.Abort(t.error)),this.active=!1,this.on("abort").fire(o)}),t.oncomplete=Fn(()=>{this.active=!1,this._resolve(),"mutatedParts"in t&&fp.storagemutated.fire(t.mutatedParts)}),this}_promise(t,r,n){if(t==="readwrite"&&this.mode!=="readwrite")return oi(new Ut.ReadOnly("Transaction is readonly"));if(!this.active)return oi(new Ut.TransactionInactive);if(this._locked())return new gt((i,a)=>{this._blockedFuncs.push([()=>{this._promise(t,r,n).then(i,a)},Rt])});if(n)return sp(()=>{var i=new gt((a,l)=>{this._lock();const s=r(a,l,this);s&&s.then&&s.then(a,l)});return i.finally(()=>this._unlock()),i._lib=!0,i});var o=new gt((i,a)=>{var l=r(i,a,this);l&&l.then&&l.then(i,a)});return o._lib=!0,o}_root(){return this.parent?this.parent._root():this}waitFor(t){var r=this._root();const n=gt.resolve(t);if(r._waitingFor)r._waitingFor=r._waitingFor.then(()=>n);else{r._waitingFor=n,r._waitingQueue=[];var o=r.idbtrans.objectStore(r.storeNames[0]);(function a(){for(++r._spinCount;r._waitingQueue.length;)r._waitingQueue.shift()();r._waitingFor&&(o.get(-1/0).onsuccess=a)})()}var i=r._waitingFor;return new gt((a,l)=>{n.then(s=>r._waitingQueue.push(Fn(a.bind(null,s))),s=>r._waitingQueue.push(Fn(l.bind(null,s)))).finally(()=>{r._waitingFor===i&&(r._waitingFor=null)})})}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new Ut.Abort))}table(t){const r=this._memoizedTables||(this._memoizedTables={});if(Zl(r,t))return r[t];const n=this.schema[t];if(!n)throw new Ut.NotFound("Table "+t+" not part of transaction");const o=new this.db.Table(t,n,this);return o.core=this.db.core.table(t),r[t]=o,o}}function vF(e,t,r,n,o,i,a){return{name:e,keyPath:t,unique:r,multi:n,auto:o,compound:i,src:(r&&!a?"&":"")+(n?"*":"")+(o?"++":"")+l6e(t)}}function l6e(e){return typeof e=="string"?e:e?"["+[].join.call(e,"+")+"]":""}function s6e(e,t,r){return{name:e,primKey:t,indexes:r,mappedClass:null,idxByName:IEe(r,n=>[n.name,n])}}let Vk=e=>{try{return e.only([[]]),Vk=()=>[[]],[[]]}catch{return Vk=()=>Qg,Qg}};function bF(e){return e==null?()=>{}:typeof e=="string"?function(t){return t.split(".").length===1?n=>n[t]:n=>mf(n,t)}(e):t=>mf(t,e)}function u6e(e){return[].slice.call(e)}let UZt=0;function Uk(e){return e==null?":id":typeof e=="string"?e:`[${e.join("+")}]`}function qZt(e,t,r){function n(s){if(s.type===3)return null;if(s.type===4)throw new Error("Cannot convert never type to IDBKeyRange");const{lower:u,upper:c,lowerOpen:d,upperOpen:f}=s;return u===void 0?c===void 0?null:t.upperBound(c,!!f):c===void 0?t.lowerBound(u,!!d):t.bound(u,c,!!d,!!f)}const{schema:o,hasGetAll:i}=function(s,u){const c=u6e(s.objectStoreNames);return{schema:{name:s.name,tables:c.map(d=>u.objectStore(d)).map(d=>{const{keyPath:f,autoIncrement:p}=d,h=Zi(f),v=f==null,b={},y={name:d.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:v,compound:h,keyPath:f,autoIncrement:p,unique:!0,extractKey:bF(f)},indexes:u6e(d.indexNames).map(w=>d.index(w)).map(w=>{const{name:k,unique:E,multiEntry:T,keyPath:S}=w,A={name:k,compound:Zi(S),keyPath:S,unique:E,multiEntry:T,extractKey:bF(S)};return b[Uk(S)]=A,A}),getIndexByKeyPath:w=>b[Uk(w)]};return b[":id"]=y.primaryKey,f!=null&&(b[Uk(f)]=y.primaryKey),y})},hasGetAll:c.length>0&&"getAll"in u.objectStore(c[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(e,r),a=o.tables.map(s=>function(u){const c=u.name;return{name:c,schema:u,mutate:function({trans:d,type:f,keys:p,values:h,range:v}){return new Promise((b,y)=>{b=Fn(b);const w=d.objectStore(c),k=w.keyPath==null,E=f==="put"||f==="add";if(!E&&f!=="delete"&&f!=="deleteRange")throw new Error("Invalid operation type: "+f);const{length:T}=p||h||{length:1};if(p&&h&&p.length!==h.length)throw new Error("Given keys array must have same length as given values array.");if(T===0)return b({numFailures:0,failures:{},results:[],lastResult:void 0});let S;const A=[],O=[];let I=0;const L=H=>{++I,Fk(H)};if(f==="deleteRange"){if(v.type===4)return b({numFailures:I,failures:O,results:[],lastResult:void 0});v.type===3?A.push(S=w.clear()):A.push(S=w.delete(n(v)))}else{const[H,j]=E?k?[h,p]:[h,null]:[p,null];if(E)for(let F=0;F<T;++F)A.push(S=j&&j[F]!==void 0?w[f](H[F],j[F]):w[f](H[F])),S.onerror=L;else for(let F=0;F<T;++F)A.push(S=w[f](H[F])),S.onerror=L}const P=H=>{const j=H.target.result;A.forEach((F,B)=>F.error!=null&&(O[B]=F.error)),b({numFailures:I,failures:O,results:f==="delete"?p:A.map(F=>F.result),lastResult:j})};S.onerror=H=>{L(H),P(H)},S.onsuccess=P})},getMany:({trans:d,keys:f})=>new Promise((p,h)=>{p=Fn(p);const v=d.objectStore(c),b=f.length,y=new Array(b);let w,k=0,E=0;const T=A=>{const O=A.target;y[O._pos]=O.result,++E===k&&p(y)},S=Qc(h);for(let A=0;A<b;++A)f[A]!=null&&(w=v.get(f[A]),w._pos=A,w.onsuccess=T,w.onerror=S,++k);k===0&&p(y)}),get:({trans:d,key:f})=>new Promise((p,h)=>{p=Fn(p);const v=d.objectStore(c).get(f);v.onsuccess=b=>p(b.target.result),v.onerror=Qc(h)}),query:function(d){return f=>new Promise((p,h)=>{p=Fn(p);const{trans:v,values:b,limit:y,query:w}=f,k=y===1/0?void 0:y,{index:E,range:T}=w,S=v.objectStore(c),A=E.isPrimaryKey?S:S.index(E.name),O=n(T);if(y===0)return p({result:[]});if(d){const I=b?A.getAll(O,k):A.getAllKeys(O,k);I.onsuccess=L=>p({result:L.target.result}),I.onerror=Qc(h)}else{let I=0;const L=b||!("openKeyCursor"in A)?A.openCursor(O):A.openKeyCursor(O),P=[];L.onsuccess=H=>{const j=L.result;return j?(P.push(b?j.value:j.primaryKey),++I===y?p({result:P}):void j.continue()):p({result:P})},L.onerror=Qc(h)}})}(i),openCursor:function({trans:d,values:f,query:p,reverse:h,unique:v}){return new Promise((b,y)=>{b=Fn(b);const{index:w,range:k}=p,E=d.objectStore(c),T=w.isPrimaryKey?E:E.index(w.name),S=h?v?"prevunique":"prev":v?"nextunique":"next",A=f||!("openKeyCursor"in T)?T.openCursor(n(k),S):T.openKeyCursor(n(k),S);A.onerror=Qc(y),A.onsuccess=Fn(O=>{const I=A.result;if(!I)return void b(null);I.___id=++UZt,I.done=!1;const L=I.continue.bind(I);let P=I.continuePrimaryKey;P&&(P=P.bind(I));const H=I.advance.bind(I),j=()=>{throw new Error("Cursor not stopped")};I.trans=d,I.stop=I.continue=I.continuePrimaryKey=I.advance=()=>{throw new Error("Cursor not started")},I.fail=Fn(y),I.next=function(){let F=1;return this.start(()=>F--?this.continue():this.stop()).then(()=>this)},I.start=F=>{const B=new Promise((W,z)=>{W=Fn(W),A.onerror=Qc(z),I.fail=z,I.stop=V=>{I.stop=I.continue=I.continuePrimaryKey=I.advance=j,W(V)}}),G=()=>{if(A.result)try{F()}catch(W){I.fail(W)}else I.done=!0,I.start=()=>{throw new Error("Cursor behind last entry")},I.stop()};return A.onsuccess=Fn(W=>{A.onsuccess=G,G()}),I.continue=L,I.continuePrimaryKey=P,I.advance=H,G(),B},b(I)},y)})},count({query:d,trans:f}){const{index:p,range:h}=d;return new Promise((v,b)=>{const y=f.objectStore(c),w=p.isPrimaryKey?y:y.index(p.name),k=n(h),E=k?w.count(k):w.count();E.onsuccess=Fn(T=>v(T.target.result)),E.onerror=Qc(b)})}}}(s)),l={};return a.forEach(s=>l[s.name]=s),{stack:"dbcore",transaction:e.transaction.bind(e),table(s){if(!l[s])throw new Error(`Table '${s}' not found`);return l[s]},MIN_KEY:-1/0,MAX_KEY:Vk(t),schema:o}}function xF({_novip:e},t){const r=t.db,n=function(o,i,{IDBKeyRange:a,indexedDB:l},s){return{dbcore:function(c,d){return d.reduce((f,{create:p})=>({...f,...p(f)}),c)}(qZt(i,a,s),o.dbcore)}}(e._middlewares,r,e._deps,t);e.core=n.dbcore,e.tables.forEach(o=>{const i=o.name;e.core.schema.tables.some(a=>a.name===i)&&(o.core=e.core.table(i),e[i]instanceof e.Table&&(e[i].core=o.core))})}function bO({_novip:e},t,r,n){r.forEach(o=>{const i=n[o];t.forEach(a=>{const l=Wz(a,o);(!l||"value"in l&&l.value===void 0)&&(a===e.Transaction.prototype||a instanceof e.Transaction?ff(a,o,{get(){return this.table(o)},set(s){EEe(this,o,{value:s,writable:!0,configurable:!0,enumerable:!0})}}):a[o]=new e.Table(o,i))})})}function yF({_novip:e},t){t.forEach(r=>{for(let n in r)r[n]instanceof e.Table&&delete r[n]})}function GZt(e,t){return e._cfg.version-t._cfg.version}function YZt(e,t,r,n){const o=e._dbSchema,i=e._createTransaction("readwrite",e._storeNames,o);i.create(r),i._completion.catch(n);const a=i._reject.bind(i),l=Rt.transless||Rt;sp(()=>{Rt.trans=i,Rt.transless=l,t===0?(Mo(o).forEach(s=>{wF(r,s,o[s].primKey,o[s].indexes)}),xF(e,r),gt.follow(()=>e.on.populate.fire(i)).catch(a)):function({_novip:s},u,c,d){const f=[],p=s._versions;let h=s._dbSchema=kF(s,s.idbdb,d),v=!1;const b=p.filter(w=>w._cfg.version>=u);function y(){return f.length?gt.resolve(f.shift()(c.idbtrans)).then(y):gt.resolve()}return b.forEach(w=>{f.push(()=>{const k=h,E=w._cfg.dbschema;TF(s,k,d),TF(s,E,d),h=s._dbSchema=E;const T=c6e(k,E);T.add.forEach(A=>{wF(d,A[0],A[1].primKey,A[1].indexes)}),T.change.forEach(A=>{if(A.recreate)throw new Ut.Upgrade("Not yet support for changing primary key");{const O=d.objectStore(A.name);A.add.forEach(I=>CF(O,I)),A.change.forEach(I=>{O.deleteIndex(I.name),CF(O,I)}),A.del.forEach(I=>O.deleteIndex(I))}});const S=w._cfg.contentUpgrade;if(S&&w._cfg.version>u){xF(s,d),c._memoizedTables={},v=!0;let A=REe(E);T.del.forEach(P=>{A[P]=k[P]}),yF(s,[s.Transaction.prototype]),bO(s,[s.Transaction.prototype],Mo(A),A),c.schema=A;const O=Gz(S);let I;O&&Z1();const L=gt.follow(()=>{if(I=S(c),I&&O){var P=hf.bind(null,null);I.then(P,P)}});return I&&typeof I.then=="function"?gt.resolve(I):L.then(()=>I)}}),f.push(k=>{(!v||!DZt)&&function(E,T){[].slice.call(T.db.objectStoreNames).forEach(S=>E[S]==null&&T.db.deleteObjectStore(S))}(w._cfg.dbschema,k),yF(s,[s.Transaction.prototype]),bO(s,[s.Transaction.prototype],s._storeNames,s._dbSchema),c.schema=s._dbSchema})}),y().then(()=>{var w,k;k=d,Mo(w=h).forEach(E=>{k.db.objectStoreNames.contains(E)||wF(k,E,w[E].primKey,w[E].indexes)})})}(e,t,i,r).catch(a)})}function c6e(e,t){const r={del:[],add:[],change:[]};let n;for(n in e)t[n]||r.del.push(n);for(n in t){const o=e[n],i=t[n];if(o){const a={name:n,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(o.primKey.keyPath||"")!=""+(i.primKey.keyPath||"")||o.primKey.auto!==i.primKey.auto&&!fO)a.recreate=!0,r.change.push(a);else{const l=o.idxByName,s=i.idxByName;let u;for(u in l)s[u]||a.del.push(u);for(u in s){const c=l[u],d=s[u];c?c.src!==d.src&&a.change.push(d):a.add.push(d)}(a.del.length>0||a.add.length>0||a.change.length>0)&&r.change.push(a)}}else r.add.push([n,i])}return r}function wF(e,t,r,n){const o=e.db.createObjectStore(t,r.keyPath?{keyPath:r.keyPath,autoIncrement:r.auto}:{autoIncrement:r.auto});return n.forEach(i=>CF(o,i)),o}function CF(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function kF(e,t,r){const n={};return Z5(t.objectStoreNames,0).forEach(o=>{const i=r.objectStore(o);let a=i.keyPath;const l=vF(l6e(a),a||"",!1,!1,!!i.autoIncrement,a&&typeof a!="string",!0),s=[];for(let c=0;c<i.indexNames.length;++c){const d=i.index(i.indexNames[c]);a=d.keyPath;var u=vF(d.name,a,!!d.unique,!!d.multiEntry,!1,a&&typeof a!="string",!1);s.push(u)}n[o]=s6e(o,l,s)}),n}function TF({_novip:e},t,r){const n=r.db.objectStoreNames;for(let o=0;o<n.length;++o){const i=n[o],a=r.objectStore(i);e._hasGetAll="getAll"in a;for(let l=0;l<a.indexNames.length;++l){const s=a.indexNames[l],u=a.index(s).keyPath,c=typeof u=="string"?u:"["+Z5(u).join("+")+"]";if(t[i]){const d=t[i].idxByName[c];d&&(d.name=s,delete t[i].idxByName[c],t[i].idxByName[s]=d)}}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&Pn.WorkerGlobalScope&&Pn instanceof Pn.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}class KZt{_parseStoresSpec(t,r){Mo(t).forEach(n=>{if(t[n]!==null){var o=t[n].split(",").map((a,l)=>{const s=(a=a.trim()).replace(/([&*]|\+\+)/g,""),u=/^\[/.test(s)?s.match(/^\[(.*)\]$/)[1].split("+"):s;return vF(s,u||null,/\&/.test(a),/\*/.test(a),/\+\+/.test(a),Zi(u),l===0)}),i=o.shift();if(i.multi)throw new Ut.Schema("Primary key cannot be multi-valued");o.forEach(a=>{if(a.auto)throw new Ut.Schema("Only primary key can be marked as autoIncrement (++)");if(!a.keyPath)throw new Ut.Schema("Index must have a name and cannot be an empty string")}),r[n]=s6e(n,i,o)}})}stores(t){const r=this.db;this._cfg.storesSource=this._cfg.storesSource?Aa(this._cfg.storesSource,t):t;const n=r._versions,o={};let i={};return n.forEach(a=>{Aa(o,a._cfg.storesSource),i=a._cfg.dbschema={},a._parseStoresSpec(o,i)}),r._dbSchema=i,yF(r,[r._allTables,r,r.Transaction.prototype]),bO(r,[r._allTables,r,r.Transaction.prototype,this._cfg.tables],Mo(i),i),r._storeNames=Mo(i),this}upgrade(t){return this._cfg.contentUpgrade=Qz(this._cfg.contentUpgrade||pn,t),this}}function _F(e,t){let r=e._dbNamesDB;return r||(r=e._dbNamesDB=new mp(mO,{addons:[],indexedDB:e,IDBKeyRange:t}),r.version(1).stores({dbnames:"name"})),r.table("dbnames")}function SF(e){return e&&typeof e.databases=="function"}function EF(e){return sp(function(){return Rt.letThrough=!0,e()})}function XZt(){var e;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(t){var r=function(){return indexedDB.databases().finally(t)};e=setInterval(r,100),r()}).finally(function(){return clearInterval(e)}):Promise.resolve()}function QZt(e){const t=e._state,{indexedDB:r}=e._deps;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then(()=>t.dbOpenError?oi(t.dbOpenError):e);Xc&&(t.openCanceller._stackHolder=Gg()),t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;const n=t.openCanceller;function o(){if(t.openCanceller!==n)throw new Ut.DatabaseClosed("db.open() was cancelled")}let i=t.dbReadyResolve,a=null,l=!1;return gt.race([n,(typeof navigator>"u"?gt.resolve():XZt()).then(()=>new gt((s,u)=>{if(o(),!r)throw new Ut.MissingAPI;const c=e.name,d=t.autoSchema?r.open(c):r.open(c,Math.round(10*e.verno));if(!d)throw new Ut.MissingAPI;d.onerror=Qc(u),d.onblocked=Fn(e._fireOnBlocked),d.onupgradeneeded=Fn(f=>{if(a=d.transaction,t.autoSchema&&!e._options.allowEmptyDB){d.onerror=Fk,a.abort(),d.result.close();const h=r.deleteDatabase(c);h.onsuccess=h.onerror=Fn(()=>{u(new Ut.NoSuchDatabase(`Database ${c} doesnt exist`))})}else{a.onerror=Qc(u);var p=f.oldVersion>Math.pow(2,62)?0:f.oldVersion;l=p<1,e._novip.idbdb=d.result,YZt(e,p/10,a,u)}},u),d.onsuccess=Fn(()=>{a=null;const f=e._novip.idbdb=d.result,p=Z5(f.objectStoreNames);if(p.length>0)try{const v=f.transaction((h=p).length===1?h[0]:h,"readonly");t.autoSchema?function({_novip:b},y,w){b.verno=y.version/10;const k=b._dbSchema=kF(0,y,w);b._storeNames=Z5(y.objectStoreNames,0),bO(b,[b._allTables],Mo(k),k)}(e,f,v):(TF(e,e._dbSchema,v),function(b,y){const w=c6e(kF(0,b.idbdb,y),b._dbSchema);return!(w.add.length||w.change.some(k=>k.add.length||k.change.length))}(e,v)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),xF(e,v)}catch{}var h;jk.push(e),f.onversionchange=Fn(v=>{t.vcFired=!0,e.on("versionchange").fire(v)}),f.onclose=Fn(v=>{e.on("close").fire(v)}),l&&function({indexedDB:v,IDBKeyRange:b},y){!SF(v)&&y!==mO&&_F(v,b).put({name:y}).catch(pn)}(e._deps,c),s()},u)}))]).then(()=>(o(),t.onReadyBeingFired=[],gt.resolve(EF(()=>e.on.ready.fire(e.vip))).then(function s(){if(t.onReadyBeingFired.length>0){let u=t.onReadyBeingFired.reduce(Qz,pn);return t.onReadyBeingFired=[],gt.resolve(EF(()=>u(e.vip))).then(s)}}))).finally(()=>{t.onReadyBeingFired=null,t.isBeingOpened=!1}).then(()=>e).catch(s=>{t.dbOpenError=s;try{a&&a.abort()}catch{}return n===t.openCanceller&&e._close(),oi(s)}).finally(()=>{t.openComplete=!0,i()})}function AF(e){var t=i=>e.next(i),r=o(t),n=o(i=>e.throw(i));function o(i){return a=>{var l=i(a),s=l.value;return l.done?s:s&&typeof s.then=="function"?s.then(r,n):Zi(s)?Promise.all(s).then(r,n):r(s)}}return o(t)()}function ZZt(e,t,r){var n=arguments.length;if(n<2)throw new Ut.InvalidArgument("Too few arguments");for(var o=new Array(n-1);--n;)o[n-1]=arguments[n];return r=o.pop(),[e,PEe(o),r]}function d6e(e,t,r,n,o){return gt.resolve().then(()=>{const i=Rt.transless||Rt,a=e._createTransaction(t,r,e._dbSchema,n),l={trans:a,transless:i};if(n)a.idbtrans=n.idbtrans;else try{a.create(),e._state.PR1398_maxLoop=3}catch(d){return d.name===Xz.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then(()=>d6e(e,t,r,null,o))):oi(d)}const s=Gz(o);let u;s&&Z1();const c=gt.follow(()=>{if(u=o.call(a,a),u)if(s){var d=hf.bind(null,null);u.then(d,d)}else typeof u.next=="function"&&typeof u.throw=="function"&&(u=AF(u))},l);return(u&&typeof u.then=="function"?gt.resolve(u).then(d=>a.active?d:oi(new Ut.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))):c.then(()=>u)).then(d=>(n&&a._resolve(),a._completion.then(()=>d))).catch(d=>(a._reject(d),oi(d)))})}function xO(e,t,r){const n=Zi(e)?e.slice():[e];for(let o=0;o<r;++o)n.push(t);return n}const JZt={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return{...e,table(t){const r=e.table(t),{schema:n}=r,o={},i=[];function a(c,d,f){const p=Uk(c),h=o[p]=o[p]||[],v=c==null?0:typeof c=="string"?1:c.length,b=d>0,y={...f,isVirtual:b,keyTail:d,keyLength:v,extractKey:bF(c),unique:!b&&f.unique};return h.push(y),y.isPrimaryKey||i.push(y),v>1&&a(v===2?c[0]:c.slice(0,v-1),d+1,f),h.sort((w,k)=>w.keyTail-k.keyTail),y}const l=a(n.primaryKey.keyPath,0,n.primaryKey);o[":id"]=[l];for(const c of n.indexes)a(c.keyPath,0,c);function s(c){const d=c.query.index;return d.isVirtual?{...c,query:{index:d,range:(f=c.query.range,p=d.keyTail,{type:f.type===1?2:f.type,lower:xO(f.lower,f.lowerOpen?e.MAX_KEY:e.MIN_KEY,p),lowerOpen:!0,upper:xO(f.upper,f.upperOpen?e.MIN_KEY:e.MAX_KEY,p),upperOpen:!0})}}:c;var f,p}return{...r,schema:{...n,primaryKey:l,indexes:i,getIndexByKeyPath:function(c){const d=o[Uk(c)];return d&&d[0]}},count:c=>r.count(s(c)),query:c=>r.query(s(c)),openCursor(c){const{keyTail:d,isVirtual:f,keyLength:p}=c.query.index;return f?r.openCursor(s(c)).then(h=>h&&function(v){return Object.create(v,{continue:{value:function(y){y!=null?v.continue(xO(y,c.reverse?e.MAX_KEY:e.MIN_KEY,d)):c.unique?v.continue(v.key.slice(0,p).concat(c.reverse?e.MIN_KEY:e.MAX_KEY,d)):v.continue()}},continuePrimaryKey:{value(y,w){v.continuePrimaryKey(xO(y,e.MAX_KEY,d),w)}},primaryKey:{get:()=>v.primaryKey},key:{get(){const y=v.key;return p===1?y[0]:y.slice(0,p)}},value:{get:()=>v.value}})}(h)):r.openCursor(c)}}}}}};function OF(e,t,r,n){return r=r||{},n=n||"",Mo(e).forEach(o=>{if(Zl(t,o)){var i=e[o],a=t[o];if(typeof i=="object"&&typeof a=="object"&&i&&a){const l=Uz(i);l!==Uz(a)?r[n+o]=t[o]:l==="Object"?OF(i,a,r,n+o+"."):i!==a&&(r[n+o]=t[o])}else i!==a&&(r[n+o]=t[o])}else r[n+o]=void 0}),Mo(t).forEach(o=>{Zl(e,o)||(r[n+o]=t[o])}),r}const eJt={stack:"dbcore",name:"HooksMiddleware",level:2,create:e=>({...e,table(t){const r=e.table(t),{primaryKey:n}=r.schema;return{...r,mutate(i){const a=Rt.trans,{deleting:l,creating:s,updating:u}=a.table(t).hook;switch(i.type){case"add":if(s.fire===pn)break;return a._promise("readwrite",()=>c(i),!0);case"put":if(s.fire===pn&&u.fire===pn)break;return a._promise("readwrite",()=>c(i),!0);case"delete":if(l.fire===pn)break;return a._promise("readwrite",()=>c(i),!0);case"deleteRange":if(l.fire===pn)break;return a._promise("readwrite",()=>function(f){return d(f.trans,f.range,1e4)}(i),!0)}return r.mutate(i);function c(f){const p=Rt.trans,h=f.keys||function(v,b){return b.type==="delete"?b.keys:b.keys||b.values.map(v.extractKey)}(n,f);if(!h)throw new Error("Keys missing");return(f=f.type==="add"||f.type==="put"?{...f,keys:h}:{...f}).type!=="delete"&&(f.values=[...f.values]),f.keys&&(f.keys=[...f.keys]),function(v,b,y){return b.type==="add"?Promise.resolve([]):v.getMany({trans:b.trans,keys:y,cache:"immutable"})}(r,f,h).then(v=>{const b=h.map((y,w)=>{const k=v[w],E={onerror:null,onsuccess:null};if(f.type==="delete")l.fire.call(E,y,k,p);else if(f.type==="add"||k===void 0){const T=s.fire.call(E,y,f.values[w],p);y==null&&T!=null&&(y=T,f.keys[w]=y,n.outbound||Yu(f.values[w],n.keyPath,y))}else{const T=OF(k,f.values[w]),S=u.fire.call(E,T,y,k,p);if(S){const A=f.values[w];Object.keys(S).forEach(O=>{Zl(A,O)?A[O]=S[O]:Yu(A,O,S[O])})}}return E});return r.mutate(f).then(({failures:y,results:w,numFailures:k,lastResult:E})=>{for(let T=0;T<h.length;++T){const S=w?w[T]:h[T],A=b[T];S==null?A.onerror&&A.onerror(y[T]):A.onsuccess&&A.onsuccess(f.type==="put"&&v[T]?f.values[T]:S)}return{failures:y,results:w,numFailures:k,lastResult:E}}).catch(y=>(b.forEach(w=>w.onerror&&w.onerror(y)),Promise.reject(y)))})}function d(f,p,h){return r.query({trans:f,values:!1,query:{index:n,range:p},limit:h}).then(({result:v})=>c({type:"delete",keys:v,trans:f}).then(b=>b.numFailures>0?Promise.reject(b.failures[0]):v.length<h?{failures:[],numFailures:0,lastResult:void 0}:d(f,{...p,lower:v[v.length-1],lowerOpen:!0},h)))}}}}})};function f6e(e,t,r){try{if(!t||t.keys.length<e.length)return null;const n=[];for(let o=0,i=0;o<t.keys.length&&i<e.length;++o)Oa(t.keys[o],e[i])===0&&(n.push(r?Rk(t.values[o]):t.values[o]),++i);return n.length===e.length?n:null}catch{return null}}const tJt={stack:"dbcore",level:-1,create:e=>({table:t=>{const r=e.table(t);return{...r,getMany:n=>{if(!n.cache)return r.getMany(n);const o=f6e(n.keys,n.trans._cache,n.cache==="clone");return o?gt.resolve(o):r.getMany(n).then(i=>(n.trans._cache={keys:n.keys,values:n.cache==="clone"?Rk(i):i},i))},mutate:n=>(n.type!=="add"&&(n.trans._cache=null),r.mutate(n))}}})};function IF(e){return!("from"in e)}const vf=function(e,t){if(!this){const r=new vf;return e&&"d"in e&&Aa(r,e),r}Aa(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0})};function qk(e,t,r){const n=Oa(t,r);if(isNaN(n))return;if(n>0)throw RangeError();if(IF(e))return Aa(e,{from:t,to:r,d:1});const o=e.l,i=e.r;if(Oa(r,e.from)<0)return o?qk(o,t,r):e.l={from:t,to:r,d:1,l:null,r:null},m6e(e);if(Oa(t,e.to)>0)return i?qk(i,t,r):e.r={from:t,to:r,d:1,l:null,r:null},m6e(e);Oa(t,e.from)<0&&(e.from=t,e.l=null,e.d=i?i.d+1:1),Oa(r,e.to)>0&&(e.to=r,e.r=null,e.d=e.l?e.l.d+1:1);const a=!e.r;o&&!e.l&&yO(e,o),i&&a&&yO(e,i)}function yO(e,t){IF(t)||function r(n,{from:o,to:i,l:a,r:l}){qk(n,o,i),a&&r(n,a),l&&r(n,l)}(e,t)}function rJt(e,t){const r=RF(t);let n=r.next();if(n.done)return!1;let o=n.value;const i=RF(e);let a=i.next(o.from),l=a.value;for(;!n.done&&!a.done;){if(Oa(l.from,o.to)<=0&&Oa(l.to,o.from)>=0)return!0;Oa(o.from,l.from)<0?o=(n=r.next(l.from)).value:l=(a=i.next(o.from)).value}return!1}function RF(e){let t=IF(e)?null:{s:0,n:e};return{next(r){const n=arguments.length>0;for(;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&Oa(r,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||Oa(r,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function m6e(e){var t,r;const n=(((t=e.r)===null||t===void 0?void 0:t.d)||0)-(((r=e.l)===null||r===void 0?void 0:r.d)||0),o=n>1?"r":n<-1?"l":"";if(o){const i=o==="r"?"l":"r",a={...e},l=e[o];e.from=l.from,e.to=l.to,e[o]=l[o],a[o]=l[i],e[i]=a,a.d=p6e(a)}e.d=p6e(e)}function p6e({r:e,l:t}){return(e?t?Math.max(e.d,t.d):e.d:t?t.d:0)+1}G1(vf.prototype,{add(e){return yO(this,e),this},addKey(e){return qk(this,e,e),this},addKeys(e){return e.forEach(t=>qk(this,t,t)),this},[qz](){return RF(this)}});const nJt={stack:"dbcore",level:0,create:e=>{const t=e.schema.name,r=new vf(e.MIN_KEY,e.MAX_KEY);return{...e,table:n=>{const o=e.table(n),{schema:i}=o,{primaryKey:a}=i,{extractKey:l,outbound:s}=a,u={...o,mutate:f=>{const p=f.trans,h=p.mutatedParts||(p.mutatedParts={}),v=S=>{const A=`idb://${t}/${n}/${S}`;return h[A]||(h[A]=new vf)},b=v(""),y=v(":dels"),{type:w}=f;let[k,E]=f.type==="deleteRange"?[f.range]:f.type==="delete"?[f.keys]:f.values.length<50?[[],f.values]:[];const T=f.trans._cache;return o.mutate(f).then(S=>{if(Zi(k)){w!=="delete"&&(k=S.results),b.addKeys(k);const A=f6e(k,T);A||w==="add"||y.addKeys(k),(A||E)&&function(O,I,L,P){function H(j){const F=O(j.name||"");function B(W){return W!=null?j.extractKey(W):null}const G=W=>j.multiEntry&&Zi(W)?W.forEach(z=>F.addKey(z)):F.addKey(W);(L||P).forEach((W,z)=>{const V=L&&B(L[z]),N=P&&B(P[z]);Oa(V,N)!==0&&(V!=null&&G(V),N!=null&&G(N))})}I.indexes.forEach(H)}(v,i,A,E)}else if(k){const A={from:k.lower,to:k.upper};y.add(A),b.add(A)}else b.add(r),y.add(r),i.indexes.forEach(A=>v(A.name).add(r));return S})}},c=({query:{index:f,range:p}})=>{var h,v;return[f,new vf((h=p.lower)!==null&&h!==void 0?h:e.MIN_KEY,(v=p.upper)!==null&&v!==void 0?v:e.MAX_KEY)]},d={get:f=>[a,new vf(f.key)],getMany:f=>[a,new vf().addKeys(f.keys)],count:c,query:c,openCursor:c};return Mo(d).forEach(f=>{u[f]=function(p){const{subscr:h}=Rt;if(h){const v=E=>{const T=`idb://${t}/${n}/${E}`;return h[T]||(h[T]=new vf)},b=v(""),y=v(":dels"),[w,k]=d[f](p);if(v(w.name||"").add(k),!w.isPrimaryKey){if(f!=="count"){const E=f==="query"&&s&&p.values&&o.query({...p,values:!1});return o[f].apply(this,arguments).then(T=>{if(f==="query"){if(s&&p.values)return E.then(({result:A})=>(b.addKeys(A),T));const S=p.values?T.result.map(l):T.result;p.values?b.addKeys(S):y.addKeys(S)}else if(f==="openCursor"){const S=T,A=p.values;return S&&Object.create(S,{key:{get:()=>(y.addKey(S.primaryKey),S.key)},primaryKey:{get(){const O=S.primaryKey;return y.addKey(O),O}},value:{get:()=>(A&&b.addKey(S.primaryKey),S.value)}})}return T})}y.add(r)}}return o[f].apply(this,arguments)}}),u}}}};class mp{constructor(t,r){this._middlewares={},this.verno=0;const n=mp.dependencies;this._options=r={addons:mp.addons,autoOpen:!0,indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange,...r},this._deps={indexedDB:r.indexedDB,IDBKeyRange:r.IDBKeyRange};const{addons:o}=r;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;const i={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:pn,dbReadyPromise:null,cancelOpen:pn,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};var a;i.dbReadyPromise=new gt(l=>{i.dbReadyResolve=l}),i.openCanceller=new gt((l,s)=>{i.cancelOpen=s}),this._state=i,this.name=t,this.on=Mk(this,"populate","blocked","versionchange","close",{ready:[Qz,pn]}),this.on.ready.subscribe=AEe(this.on.ready.subscribe,l=>(s,u)=>{mp.vip(()=>{const c=this._state;if(c.openComplete)c.dbOpenError||gt.resolve().then(s),u&&l(s);else if(c.onReadyBeingFired)c.onReadyBeingFired.push(s),u&&l(s);else{l(s);const d=this;u||l(function f(){d.on.ready.unsubscribe(s),d.on.ready.unsubscribe(f)})}})}),this.Collection=(a=this,zk(MZt.prototype,function(l,s){this.db=a;let u=e6e,c=null;if(s)try{u=s()}catch(h){c=h}const d=l._ctx,f=d.table,p=f.hook.reading.fire;this._ctx={table:f,index:d.index,isPrimKey:!d.index||f.schema.primKey.keyPath&&d.index===f.schema.primKey.name,range:u,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:c,or:d.or,valueMapper:p!==Lk?p:null}})),this.Table=function(l){return zk(jZt.prototype,function(s,u,c){this.db=l,this._tx=c,this.name=s,this.schema=u,this.hook=l._allTables[s]?l._allTables[s].hook:Mk(null,{creating:[EZt,pn],reading:[SZt,Lk],updating:[OZt,pn],deleting:[AZt,pn]})})}(this),this.Transaction=function(l){return zk(VZt.prototype,function(s,u,c,d,f){this.db=l,this.mode=s,this.storeNames=u,this.schema=c,this.chromeTransactionDurability=d,this.idbtrans=null,this.on=Mk(this,"complete","error","abort"),this.parent=f||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new gt((p,h)=>{this._resolve=p,this._reject=h}),this._completion.then(()=>{this.active=!1,this.on.complete.fire()},p=>{var h=this.active;return this.active=!1,this.on.error.fire(p),this.parent?this.parent._reject(p):h&&this.idbtrans&&this.idbtrans.abort(),oi(p)})})}(this),this.Version=function(l){return zk(KZt.prototype,function(s){this.db=l,this._cfg={version:s,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}(this),this.WhereClause=function(l){return zk(a6e.prototype,function(s,u,c){this.db=l,this._ctx={table:s,index:u===":id"?null:u,or:c};const d=l._deps.indexedDB;if(!d)throw new Ut.MissingAPI;this._cmp=this._ascending=d.cmp.bind(d),this._descending=(f,p)=>d.cmp(p,f),this._max=(f,p)=>d.cmp(f,p)>0?f:p,this._min=(f,p)=>d.cmp(f,p)<0?f:p,this._IDBKeyRange=l._deps.IDBKeyRange})}(this),this.on("versionchange",l=>{l.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()}),this.on("blocked",l=>{!l.newVersion||l.newVersion<l.oldVersion?console.warn(`Dexie.delete('${this.name}') was blocked`):console.warn(`Upgrade '${this.name}' blocked by other connection holding version ${l.oldVersion/10}`)}),this._maxKey=Vk(r.IDBKeyRange),this._createTransaction=(l,s,u,c)=>new this.Transaction(l,s,u,this._options.chromeTransactionDurability,c),this._fireOnBlocked=l=>{this.on("blocked").fire(l),jk.filter(s=>s.name===this.name&&s!==this&&!s._state.vcFired).map(s=>s.on("versionchange").fire(l))},this.use(JZt),this.use(eJt),this.use(nJt),this.use(tJt),this.vip=Object.create(this,{_vip:{value:!0}}),o.forEach(l=>l(this))}version(t){if(isNaN(t)||t<.1)throw new Ut.Type("Given version is not a positive number");if(t=Math.round(10*t)/10,this.idbdb||this._state.isBeingOpened)throw new Ut.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,t);const r=this._versions;var n=r.filter(o=>o._cfg.version===t)[0];return n||(n=new this.Version(t),r.push(n),r.sort(GZt),n.stores({}),this._state.autoSchema=!1,n)}_whenReady(t){return this.idbdb&&(this._state.openComplete||Rt.letThrough||this._vip)?t():new gt((r,n)=>{if(this._state.openComplete)return n(new Ut.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void n(new Ut.DatabaseClosed);this.open().catch(pn)}this._state.dbReadyPromise.then(r,n)}).then(t)}use({stack:t,create:r,level:n,name:o}){o&&this.unuse({stack:t,name:o});const i=this._middlewares[t]||(this._middlewares[t]=[]);return i.push({stack:t,create:r,level:n??10,name:o}),i.sort((a,l)=>a.level-l.level),this}unuse({stack:t,name:r,create:n}){return t&&this._middlewares[t]&&(this._middlewares[t]=this._middlewares[t].filter(o=>n?o.create!==n:!!r&&o.name!==r)),this}open(){return QZt(this)}_close(){const t=this._state,r=jk.indexOf(this);if(r>=0&&jk.splice(r,1),this.idbdb){try{this.idbdb.close()}catch{}this._novip.idbdb=null}t.dbReadyPromise=new gt(n=>{t.dbReadyResolve=n}),t.openCanceller=new gt((n,o)=>{t.cancelOpen=o})}close(){this._close();const t=this._state;this._options.autoOpen=!1,t.dbOpenError=new Ut.DatabaseClosed,t.isBeingOpened&&t.cancelOpen(t.dbOpenError)}delete(){const t=arguments.length>0,r=this._state;return new gt((n,o)=>{const i=()=>{this.close();var a=this._deps.indexedDB.deleteDatabase(this.name);a.onsuccess=Fn(()=>{(function({indexedDB:l,IDBKeyRange:s},u){!SF(l)&&u!==mO&&_F(l,s).delete(u).catch(pn)})(this._deps,this.name),n()}),a.onerror=Qc(o),a.onblocked=this._fireOnBlocked};if(t)throw new Ut.InvalidArgument("Arguments not allowed in db.delete()");r.isBeingOpened?r.dbReadyPromise.then(i):i()})}backendDB(){return this.idbdb}isOpen(){return this.idbdb!==null}hasBeenClosed(){const t=this._state.dbOpenError;return t&&t.name==="DatabaseClosed"}hasFailed(){return this._state.dbOpenError!==null}dynamicallyOpened(){return this._state.autoSchema}get tables(){return Mo(this._allTables).map(t=>this._allTables[t])}transaction(){const t=ZZt.apply(this,arguments);return this._transaction.apply(this,t)}_transaction(t,r,n){let o=Rt.trans;o&&o.db===this&&t.indexOf("!")===-1||(o=null);const i=t.indexOf("?")!==-1;let a,l;t=t.replace("!","").replace("?","");try{if(l=r.map(u=>{var c=u instanceof this.Table?u.name:u;if(typeof c!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return c}),t=="r"||t===fF)a=fF;else{if(t!="rw"&&t!=mF)throw new Ut.InvalidArgument("Invalid transaction mode: "+t);a=mF}if(o){if(o.mode===fF&&a===mF){if(!i)throw new Ut.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");o=null}o&&l.forEach(u=>{if(o&&o.storeNames.indexOf(u)===-1){if(!i)throw new Ut.SubTransaction("Table "+u+" not included in parent transaction.");o=null}}),i&&o&&!o.active&&(o=null)}}catch(u){return o?o._promise(null,(c,d)=>{d(u)}):oi(u)}const s=d6e.bind(null,this,a,l,o,n);return o?o._promise(a,s,"lock"):Rt.trans?J1(Rt.transless,()=>this._whenReady(s)):this._whenReady(s)}table(t){if(!Zl(this._allTables,t))throw new Ut.InvalidTable(`Table ${t} does not exist`);return this._allTables[t]}}const oJt=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable";class iJt{constructor(t){this._subscribe=t}subscribe(t,r,n){return this._subscribe(t&&typeof t!="function"?t:{next:t,error:r,complete:n})}[oJt](){return this}}function h6e(e,t){return Mo(t).forEach(r=>{yO(e[r]||(e[r]=new vf),t[r])}),e}function aJt(e){let t,r=!1;const n=new iJt(o=>{const i=Gz(e);let a=!1,l={},s={};const u={get closed(){return a},unsubscribe:()=>{a=!0,fp.storagemutated.unsubscribe(p)}};o.start&&o.start(u);let c=!1,d=!1;function f(){return Mo(s).some(v=>l[v]&&rJt(l[v],s[v]))}const p=v=>{h6e(l,v),f()&&h()},h=()=>{if(c||a)return;l={};const v={},b=function(y){i&&Z1();const w=()=>sp(e,{subscr:y,trans:null}),k=Rt.trans?J1(Rt.transless,w):w();return i&&k.then(hf,hf),k}(v);d||(fp(Wk,p),d=!0),c=!0,Promise.resolve(b).then(y=>{r=!0,t=y,c=!1,a||(f()?h():(l={},s=v,o.next&&o.next(y)))},y=>{c=!1,r=!1,o.error&&o.error(y),u.unsubscribe()})};return h(),u});return n.hasValue=()=>r,n.getValue=()=>t,n}let PF;try{PF={indexedDB:Pn.indexedDB||Pn.mozIndexedDB||Pn.webkitIndexedDB||Pn.msIndexedDB,IDBKeyRange:Pn.IDBKeyRange||Pn.webkitIDBKeyRange}}catch{PF={indexedDB:null,IDBKeyRange:null}}const Jg=mp;function wO(e){let t=bf;try{bf=!0,fp.storagemutated.fire(e)}finally{bf=t}}G1(Jg,{...eO,delete:e=>new Jg(e,{addons:[]}).delete(),exists:e=>new Jg(e,{addons:[]}).open().then(t=>(t.close(),!0)).catch("NoSuchDatabaseError",()=>!1),getDatabaseNames(e){try{return function({indexedDB:t,IDBKeyRange:r}){return SF(t)?Promise.resolve(t.databases()).then(n=>n.map(o=>o.name).filter(o=>o!==mO)):_F(t,r).toCollection().primaryKeys()}(Jg.dependencies).then(e)}catch{return oi(new Ut.MissingAPI)}},defineClass:()=>function(e){Aa(this,e)},ignoreTransaction:e=>Rt.trans?J1(Rt.transless,e):e(),vip:EF,async:function(e){return function(){try{var t=AF(e.apply(this,arguments));return t&&typeof t.then=="function"?t:gt.resolve(t)}catch(r){return oi(r)}}},spawn:function(e,t,r){try{var n=AF(e.apply(r,t||[]));return n&&typeof n.then=="function"?n:gt.resolve(n)}catch(o){return oi(o)}},currentTransaction:{get:()=>Rt.trans||null},waitFor:function(e,t){const r=gt.resolve(typeof e=="function"?Jg.ignoreTransaction(e):e).timeout(t||6e4);return Rt.trans?Rt.trans.waitFor(r):r},Promise:gt,debug:{get:()=>Xc,set:e=>{HEe(e,e==="dexie"?()=>!0:JEe)}},derive:Y1,extend:Aa,props:G1,override:AEe,Events:Mk,on:fp,liveQuery:aJt,extendObservabilitySet:h6e,getByKeyPath:mf,setByKeyPath:Yu,delByKeyPath:function(e,t){typeof t=="string"?Yu(e,t,void 0):"length"in t&&[].map.call(t,function(r){Yu(e,r,void 0)})},shallowClone:REe,deepClone:Rk,getObjectDiff:OF,cmp:Oa,asap:OEe,minKey:dF,addons:[],connections:jk,errnames:Xz,dependencies:PF,semVer:QEe,version:QEe.split(".").map(e=>parseInt(e)).reduce((e,t,r)=>e+t/Math.pow(10,2*r))}),Jg.maxKey=Vk(Jg.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(fp(Wk,e=>{if(!bf){let t;fO?(t=document.createEvent("CustomEvent"),t.initCustomEvent(dp,!0,!0,e)):t=new CustomEvent(dp,{detail:e}),bf=!0,dispatchEvent(t),bf=!1}}),addEventListener(dp,({detail:e})=>{bf||wO(e)}));let bf=!1;if(typeof BroadcastChannel<"u"){const e=new BroadcastChannel(dp);typeof e.unref=="function"&&e.unref(),fp(Wk,t=>{bf||e.postMessage(t)}),e.onmessage=t=>{t.data&&wO(t.data)}}else if(typeof self<"u"&&typeof navigator<"u"){fp(Wk,t=>{try{bf||(typeof localStorage<"u"&&localStorage.setItem(dp,JSON.stringify({trig:Math.random(),changedParts:t})),typeof self.clients=="object"&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach(r=>r.postMessage({type:dp,changedParts:t})))}catch{}}),typeof addEventListener<"u"&&addEventListener("storage",t=>{if(t.key===dp){const r=JSON.parse(t.newValue);r&&wO(r.changedParts)}});const e=self.document&&navigator.serviceWorker;e&&e.addEventListener("message",function({data:t}){t&&t.type===dp&&wO(t.changedParts)})}gt.rejectionMapper=function(e,t){if(!e||e instanceof X1||e instanceof TypeError||e instanceof SyntaxError||!e.name||!BEe[e.name])return e;var r=new BEe[e.name](t||e.message,e);return"stack"in e&&ff(r,"stack",{get:function(){return this.inner.stack}}),r},HEe(Xc,JEe);class eo{constructor(t){this.list=[];for(const r of t)this.list.push(r)}get length(){return this.list.length}toArray(){return this.list.slice(0)}at(t){if(t<0||t>this.list.length-1)throw new Error(`Index (${t}) is out of range [0..${Math.max(this.list.length-1,0)}]`);return this.list[t]}all(){return new eo(this.list)}async single(t){const r=await this.where(t);if(r.length===0)throw new Error("No items found with the specified predicate");if(r.length>1)throw new Error("Multiple items found with the specified predicate");return r.at(0)}async singleOrDefault(t,r){const n=await this.where(t);if(n.length===0)return r;if(n.length>1)throw new Error("Multiple items found with the specified predicate");return n.at(0)}async where(t){return new eo(await this.whereAsArray(t))}async whereAsArray(t){const r=await Promise.all(this.list.map(t??(async()=>!0)));return this.list.filter((n,o)=>r[o])}async orderBy(...t){return new eo(await xP(this.list,...t))}async orderByAsArray(...t){return await xP(this.list,...t)}async groupBy(t){return new eo(await this.groupByAsArray(t))}async groupByAsArray(t){const r=new Map;for(const o of this.list){const i=await t(o),a=r.get(i);a===void 0?r.set(i,[o]):a.push(o)}const n=[];for(const[o,i]of r.entries())n.push({key:o,items:i});return n}async distinct(t){t??(t=async n=>n);const r=new Set;for(const n of this.list)r.add(await t(n));return new eo(r.values())}async distinctAsArray(t){return(await this.distinct(t)).toArray()}async maxValue(t="id",r){let n=r?(await new eo(this.list).where(r)).toArray():this.list;return n=await xP(n,o=>o[t],!0),n.length===0?void 0:n[0][t]}async skip(t){return new eo(this.list.slice(t))}async take(t){return new eo(this.list.slice(0,t))}async skipTake(t,r){return new eo(this.list.slice(t,r+t))}}class lJt{constructor(t,r={},n){this.tables=t,this.initialData=r,this.config=n,this.db=null,this.getItems=o=>this.getDb().table(o).toArray(),this.findItems=async(o,i)=>{const a=await this.getItems(o),l=await Promise.all(a.map(i));return a.filter((s,u)=>l[u])},this.getItem=async(o,i)=>{const a=await this.getItems(o),l=await Promise.all(a.map(i));return a.find((s,u)=>l[u])},this.getItemById=async(o,i)=>await this.getItem(o,async a=>a.id+""==i+""),this.deleteItems=async(o,i)=>{},this.insertItem=async(o,i)=>{const a=await this.getDb().table(o).add(i);return this.getItemById(o,a)},this.updateItem=async(o,i)=>(await this.getDb().table(o).update(i.id,i),await this.getItemById(o,i.id))}getDb(){if(this.db===null)throw new Error("Db is not initialized yet");return this.db}async initialize(){var a,l,s;const t=typeof this.initialData=="function"?await this.initialData():this.initialData,r={},n=new Set;this.tables?this.tables.forEach(u=>{const c=[];u.pk.length===1?c.push(u.pk[0]):c.push(`[${u.pk.join("+")}]`),u.indexes&&c.push(...u.indexes),r[u.name]=c.join(", "),n.add(u.name)}):Object.entries(t).forEach(([u])=>{r[u]="++id",n.add(u)});const o=((a=this.config)==null?void 0:a.version)!==void 0&&typeof((l=this.config)==null?void 0:l.version)=="number"?(s=this.config)==null?void 0:s.version:1,i=await this.dropDbOnVersionChange(o);this.db=this.createDbInstance(),this.db.version(o).stores(r),i&&await Promise.all(Object.entries(t).map(async([u,c])=>{try{await this.getDb().table(u).bulkAdd(c)}catch(d){console.error(d)}})),n.forEach(u=>{this[`$${u}`]=sJt(this.getDb().table(u))})}createDbInstance(){var t;return new mp(((t=this.config)==null?void 0:t.database)??"defaultIndexDb")}async dropDbOnVersionChange(t){const r=this.createDbInstance();return await mp.exists(r.name)?(await r.open(),r.verno!==t?(await r.delete(),!0):(r.close(),!1)):!0}async transaction(t){if(!this.db)return;const r=this.db.tables;await this.db.transaction("rw",r,t)}}async function sJt(e){const t=()=>e.db.table(e.name),r=async n=>{const o=await e.toArray(),i=await Promise.all(o.map(n??(async()=>!0)));return o.filter((a,l)=>i[l])};return{native:t,insert:async n=>{const o=await e.add(n);return t().get(o)},update:async n=>(await e.update(n.id,n),t().get(n.id)),save:async n=>{const o=await e.put(n);return e.get(o)},deleteById:async n=>{await e.delete(n)},byId:async n=>{if(n==null)return null;let o=n;return e.schema.primKey.src==="++id"&&(o=Number(n)),e.get(o)},toArray:async()=>await e.toArray(),single:async n=>await new eo(await e.toArray()).single(n),singleOrDefault:async(n,o)=>await new eo(await e.toArray()).singleOrDefault(n,o),where:async n=>new eo(await r(n)),whereAsArray:async n=>await r(n),orderBy:async(...n)=>await new eo(await e.toArray()).orderBy(...n),orderByAsArray:async(...n)=>await new eo(await e.toArray()).orderByAsArray(...n),groupBy:async n=>await new eo(await e.toArray()).groupBy(n),groupByAsArray:async n=>await new eo(await e.toArray()).groupByAsArray(n),distinct:async n=>await new eo(await e.toArray()).distinct(n),distinctAsArray:async n=>await new eo(await e.toArray()).distinctAsArray(n),maxValue:async(n="id",o)=>await new eo(await e.toArray()).maxValue(n,o),skip:async n=>await new eo(await e.toArray()).skip(n),take:async n=>await new eo(await e.toArray()).take(n),skipTake:async(n,o)=>await new eo(await e.toArray()).skipTake(n,o)}}function g6e(e,t){if(!t)return e;const r={...e};return Object.keys(e).forEach(n=>{if(!(n in t))return;const o=e[n],i=typeof o;switch(t[n]){case"integer":switch(i){case"number":r[n]=Math.round(o);break;case"string":r[n]=parseInt(o,10);break;case"boolean":r[n]=o?1:0;break}break;case"float":case"real":case"double":switch(i){case"number":r[n]=o;break;case"string":r[n]=parseFloat(o);break;case"boolean":r[n]=o?1:0;break}break;case"boolean":switch(i){case"string":switch(o.toLowerCase()){case"true":case"yes":case"on":r[n]=!0;break;case"false":case"no":case"off":r[n]=!1;break}break;case"number":r[n]=!!o;break}break}}),r}class uJt{constructor(t,r={},n){this.tables=t,this.initialData=r,this.config=n}getItems(t){throw new Error("Method not implemented.")}getItem(t,r){throw new Error("Method not implemented.")}getItemById(t,r){throw new Error("Method not implemented.")}deleteItems(t,r){throw new Error("Method not implemented.")}insertItem(t,r){throw new Error("Method not implemented.")}updateItem(t,r){throw new Error("Method not implemented.")}async initialize(){}}function cJt(...e){const t={};for(const r of e){if(!Nn(r))throw new TypeError("All arguments must be of type object");const n=new Headers(r);for(const[o,i]of n.entries())i===void 0||i==="undefined"?delete t[o]:t[o]=i}return new Headers(t)}class dJt{constructor(t){const r=JSON.parse(sessionStorage.getItem("session-logged-in-user"));this.loggedInUser=r||(t==null?void 0:t.defaultLoggedInUser)}login(t){this.loggedInUser=t,sessionStorage.setItem("session-logged-in-user",JSON.stringify(t))}logout(){this.loggedInUser=null,sessionStorage.removeItem("session-logged-in-user")}getCookieToken(){return sessionStorage.getItem("session-anonymous-token")}setCookieToken(t){sessionStorage.setItem("session-anonymous-token",t)}getLoggedInUser(){return this.loggedInUser}}async function fJt(e){var t,r;switch(e.type){case"in-memory":return new uJt((t=e.schemaDescriptor)==null?void 0:t.tables,e.initialData,e.config);default:const n=new lJt((r=e.schemaDescriptor)==null?void 0:r.tables,e.initialData,e.config);return await n.initialize(),n}}class mJt{constructor(t){this.apiDef=t,this.backend=null}async initialize(){const t={};Object.entries(this.apiDef.operations||{}).forEach(([i,a])=>{t[i]=a.handler});const r=await fJt(this.apiDef),n=new dJt(this.apiDef.auth),o={operations:t,initialize:this.apiDef.initialize,helpers:this.apiDef.helpers};this.backend=new pZt(o,r,n)}getOperations(){return this.apiDef.operations||{}}getApiUrl(){return this.apiDef.apiUrl||""}async executeOperation(t,r,n,o){var c;if(this.backend===null)throw new Error("Interceptor not initialized");const i=(c=this.apiDef.operations)==null?void 0:c[t];if(!i)throw new Error(`Unknown API interceptor operation: ${t}`);let a;try{if(i.requestShape==="formData"){const d=await r.formData(),f={};for(const p of d.keys()){const h=d.getAll(p);h.length===1?f[p]=h[0]:f[p]=h}a=f}else i.requestShape==="blob"?a=await r.blob():a=await r.json()}catch{}const l=this.convertRequestParams({pathParams:o,queryParams:Object.fromEntries(new URL(r.url).searchParams),requestBody:a,cookies:n,requestHeaders:Object.fromEntries(r.headers.entries())||{}},i);this.apiDef.artificialDelay===void 0?await SEe("real"):this.apiDef.artificialDelay!==0&&await SEe(this.apiDef.artificialDelay);const s=new fZt,u=new mZt;try{const d=await this.backend.executeOperation(t,l,s,u),f=d==null,p=i.successStatusCode??(f?X5.NoContent:X5.Ok),h=cJt(s.getCookieHeader(),u.getHeaders());return d instanceof File?(h.append("Content-type",d.type),h.append("Content-Length",d.size+""),h.append("Content-Disposition",`attachment; filename="${d.name}"; filename*=utf-8''${d.name}`),Gs.arrayBuffer(await d.arrayBuffer(),{headers:h,status:p})):f?new Gs(null,{headers:h,status:p}):Gs.json(d,{headers:h,status:p})}catch(d){return console.error(d),d instanceof ic&&d.errorObject instanceof qg?Gs.json(d.errorObject.details,{headers:s.getCookieHeader(),status:d.errorObject.status}):Gs.json({message:d==null?void 0:d.message},{headers:s.getCookieHeader(),status:X5.InternalServerError})}}convertRequestParams(t,r){return{...t,pathParams:g6e(t.pathParams,r.pathParamTypes),queryParams:g6e(t.queryParams,r.queryParamTypes)}}hasMockForRequest(t,r){return this.getMockForRequest(t,r)!==void 0}getMockForRequest(t,r){return Object.entries(this.getOperations()).find(([n,o])=>!!(Nz(new URL(t,window.location.href),`${this.getApiUrl()}${o.url}`,`${window.location.href}`).matches&&(r.method||"get").toLowerCase()===o.method.toLowerCase()))}async executeMockedFetch(t,r){const n=this.getMockForRequest(t,r);if(!n)throw new Error(`No mock found for request: ${t} with options: ${JSON.stringify(r)}`);const[o,i]=n,a=Nz(new URL(t,window.location.href),`${this.getApiUrl()}${i.url}`,`${window.location.href}`);return this.executeOperation(o,new Request(t,r),pJt(),a.params)}}function pJt(){const e=document.cookie;return e===""?{}:e.split("; ").reduce((n,o)=>{const[i,a]=o.split("=");return n[decodeURIComponent(i)]=decodeURIComponent(a),n},{})}const LF=Object.freeze(Object.defineProperty({__proto__:null,initMock:async e=>{const t=new mJt(e);return await t.initialize(),t}},Symbol.toStringTag,{value:"Module"}));function hJt(e){return{status:e.status,statusText:e.statusText,headers:Object.fromEntries(e.headers.entries())}}function HF(e){return t=>t!=null&&typeof t=="object"&&"__kind"in t&&t.__kind===e}function v6e(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function b6e(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):v6e(i)&&v6e(o)?(r[n]=b6e(i,o),r):(r[n]=o,r)},Object.assign({},e))}function gJt(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}function ea(e,t){return Object.defineProperties(t,{target:{value:e,enumerable:!0,writable:!0},currentTarget:{value:e,enumerable:!0,writable:!0}}),t}var rx=Symbol("kCancelable"),Zc=Symbol("kDefaultPrevented"),NF=class extends MessageEvent{constructor(e,t){super(e,t),this[rx]=!!t.cancelable,this[Zc]=!1}get cancelable(){return this[rx]}set cancelable(e){this[rx]=e}get defaultPrevented(){return this[Zc]}set defaultPrevented(e){this[Zc]=e}preventDefault(){this.cancelable&&!this[Zc]&&(this[Zc]=!0)}},CO=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}},x6e=class extends CO{constructor(e,t={}){super(e,t),this[rx]=!!t.cancelable,this[Zc]=!1}get cancelable(){return this[rx]}set cancelable(e){this[rx]=e}get defaultPrevented(){return this[Zc]}set defaultPrevented(e){this[Zc]=e}preventDefault(){this.cancelable&&!this[Zc]&&(this[Zc]=!0)}},Gk=Symbol("kEmitter"),kO=Symbol("kBoundListener"),vJt=class{constructor(e,t){this.socket=e,this.transport=t,this.id=qXt(),this.url=new URL(e.url),this[Gk]=new EventTarget,this.transport.addEventListener("outgoing",r=>{const n=ea(this.socket,new NF("message",{data:r.data,origin:r.origin,cancelable:!0}));this[Gk].dispatchEvent(n),n.defaultPrevented&&r.preventDefault()}),this.transport.addEventListener("close",r=>{this[Gk].dispatchEvent(ea(this.socket,new CO("close",r)))})}addEventListener(e,t,r){if(!Reflect.has(t,kO)){const n=t.bind(this.socket);Object.defineProperty(t,kO,{value:n,enumerable:!1,configurable:!1})}this[Gk].addEventListener(e,Reflect.get(t,kO),r)}removeEventListener(e,t,r){this[Gk].removeEventListener(e,Reflect.get(t,kO),r)}send(e){this.transport.send(e)}close(e,t){this.transport.close(e,t)}},y6e="InvalidAccessError: close code out of user configurable range",TO=Symbol("kPassthroughPromise"),w6e=Symbol("kOnSend"),Yk=Symbol("kClose"),Kk=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[TO]=new eZt,queueMicrotask(async()=>{await this[TO]||(this.protocol=typeof t=="string"?t:Array.isArray(t)&&t.length>0?t[0]:"",this.readyState===this.CONNECTING&&(this.readyState=this.OPEN,this.dispatchEvent(ea(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+=bJt(e),queueMicrotask(()=>{var t;this.bufferedAmount=0,(t=this[w6e])==null||t.call(this,e)}))}close(e=1e3,t){Gu(e,y6e),Gu(e===1e3||e>=3e3&&e<=4999,y6e),this[Yk](e,t)}[Yk](e=1e3,t,r=!0){this.readyState===this.CLOSING||this.readyState===this.CLOSED||(this.readyState=this.CLOSING,queueMicrotask(()=>{this.readyState=this.CLOSED,this.dispatchEvent(ea(this,new CO("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)}};Kk.CONNECTING=0,Kk.OPEN=1,Kk.CLOSING=2,Kk.CLOSED=3;function bJt(e){return typeof e=="string"?e.length:e instanceof Blob?e.size:e.byteLength}var pp=Symbol("kEmitter"),_O=Symbol("kBoundListener"),$F=Symbol("kSend"),xJt=class{constructor(e,t,r){this.client=e,this.transport=t,this.createConnection=r,this[pp]=new EventTarget,this.mockCloseController=new AbortController,this.realCloseController=new AbortController,this.transport.addEventListener("outgoing",n=>{typeof this.realWebSocket>"u"||queueMicrotask(()=>{n.defaultPrevented||this[$F](n.data)})}),this.transport.addEventListener("incoming",this.handleIncomingMessage.bind(this))}get socket(){return Gu(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(){Gu(!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[pp].dispatchEvent(ea(this.realWebSocket,new Event("open",t)))},{once:!0}),e.addEventListener("message",t=>{this.transport.dispatchEvent(ea(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=ea(e,new Event("error",{cancelable:!0}));this[pp].dispatchEvent(t),t.defaultPrevented||this.client.dispatchEvent(ea(this.client,new Event("error")))}),this.realWebSocket=e}addEventListener(e,t,r){if(!Reflect.has(t,_O)){const n=t.bind(this.client);Object.defineProperty(t,_O,{value:n,enumerable:!1})}this[pp].addEventListener(e,Reflect.get(t,_O),r)}removeEventListener(e,t,r){this[pp].removeEventListener(e,Reflect.get(t,_O),r)}send(e){this[$F](e)}[$F](e){const{realWebSocket:t}=this;if(Gu(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;Gu(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[pp].dispatchEvent(ea(this.realWebSocket,new x6e("close",{code:1e3,cancelable:!0})))}))}handleIncomingMessage(e){const t=ea(e.target,new NF("message",{data:e.data,origin:e.origin,cancelable:!0}));this[pp].dispatchEvent(t),t.defaultPrevented||this.client.dispatchEvent(ea(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=ea(this.realWebSocket,new x6e("close",{code:e.code,reason:e.reason,wasClean:e.wasClean,cancelable:!0}));this[pp].dispatchEvent(t),t.defaultPrevented||this.client[Yk](e.code,e.reason)}},yJt=class extends EventTarget{constructor(e){super(),this.socket=e,this.socket.addEventListener("close",t=>{this.dispatchEvent(ea(this.socket,new CO("close",t)))}),this.socket[w6e]=t=>{this.dispatchEvent(ea(this.socket,new NF("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(ea(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[Yk](e,t)}},C6e=class extends UXt{constructor(){super(C6e.symbol)}checkEnvironment(){return gJt("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 Kk(i,a),u=new yJt(s);return queueMicrotask(()=>{try{const c=new xJt(s,u,l);this.emitter.emit("connection",{client:new vJt(s,u),server:c,info:{protocols:a}})?s[TO].resolve(!1):(s[TO].resolve(!0),c.connect(),c.addEventListener("open",()=>{s.dispatchEvent(ea(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[Yk](1011,c.message,!1),console.error(c))}}),s}});Object.defineProperty(globalThis,"WebSocket",{value:t,configurable:!0}),this.subscriptions.push(()=>{Object.defineProperty(globalThis,"WebSocket",e)})}},k6e=C6e;k6e.symbol=Symbol("websocket");const DF=new k6e;function wJt(e){DF.on("connection",async t=>{const r=e.getHandlers(),n=new MessageEvent("connection",{data:t}),o=[];for(const i of r)HF("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[ZQt](n)}else{const i=new Request(t.client.url,{headers:{upgrade:"websocket",connection:"upgrade"}});await wEe(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 SO(e){return e instanceof Blob?e.size:e instanceof ArrayBuffer?e.byteLength:new Blob([e]).size}const T6e=24;function BF(e){return e.length<=T6e?e:`${e.slice(0,T6e)}…`}async function EO(e){if(e instanceof Blob){const t=await e.text();return`Blob(${BF(t)})`}if(typeof e=="object"&&"byteLength"in e){const t=new TextDecoder().decode(e);return`ArrayBuffer(${BF(t)})`}return BF(e)}const ev={system:"#3b82f6",outgoing:"#22c55e",incoming:"#ef4444",mocked:"#ff6a33"};function CJt(e){const{client:t,server:r}=e;kJt(t),t.addEventListener("message",n=>{SJt(n)}),t.addEventListener("close",n=>{TJt(n)}),t.socket.addEventListener("error",n=>{_Jt(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(()=>{AJt(l)}),Reflect.apply(n,o,i)}}),r.addEventListener("open",()=>{r.addEventListener("message",n=>{OJt(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}}),EJt(l),Reflect.apply(n,o,i)}})}function kJt(e){const t=Sk(e.url);console.groupCollapsed(Kr.formatMessage(`${np()} %c▶%c ${t}`),`color:${ev.system}`,"color:inherit"),console.log("Client:",e.socket),console.groupEnd()}function TJt(e){const t=e.target,r=Sk(t.url);console.groupCollapsed(Kr.formatMessage(`${np({milliseconds:!0})} %c■%c ${r}`),`color:${ev.system}`,"color:inherit"),console.log(e),console.groupEnd()}function _Jt(e){const t=e.target,r=Sk(t.url);console.groupCollapsed(Kr.formatMessage(`${np({milliseconds:!0})} %c×%c ${r}`),`color:${ev.system}`,"color:inherit"),console.log(e),console.groupEnd()}async function SJt(e){const t=SO(e.data),r=await EO(e.data),n=e.defaultPrevented?"⇡":"⬆";console.groupCollapsed(Kr.formatMessage(`${np({milliseconds:!0})} %c${n}%c ${r} %c${t}%c`),`color:${ev.outgoing}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}async function EJt(e){const t=SO(e.data),r=await EO(e.data);console.groupCollapsed(Kr.formatMessage(`${np({milliseconds:!0})} %c⬆%c ${r} %c${t}%c`),`color:${ev.mocked}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}async function AJt(e){const t=SO(e.data),r=await EO(e.data);console.groupCollapsed(Kr.formatMessage(`${np({milliseconds:!0})} %c⬇%c ${r} %c${t}%c`),`color:${ev.mocked}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}async function OJt(e){const t=SO(e.data),r=await EO(e.data),n=e.defaultPrevented?"⇣":"⬇";console.groupCollapsed(Kr.formatMessage(`${np({milliseconds:!0})} %c${n}%c ${r} %c${t}%c`),`color:${ev.incoming}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}var IJt={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.87 (built 7/28/2025)"},RJt=/(%?)(%([sdijo]))/g;function PJt(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 Xk(e,...t){if(t.length===0)return e;let r=0,n=e.replace(RJt,(o,i,a,l)=>{const s=t[r],u=PJt(s,l);return i?o:(r++,u)});return r<t.length&&(n+=` ${t.slice(r).join(" ")}`),n=n.replace(/%{2,2}/g,"%"),n}var LJt=2;function HJt(e){if(!e.stack)return;const t=e.stack.split(`
|
|
955
955
|
`);t.splice(1,LJt),e.stack=t.join(`
|
|
956
956
|
`)}var NJt=class extends Error{constructor(e,...t){super(e),this.message=e,this.name="Invariant Violation",this.message=Xk(e,...t),HJt(this)}},hp=(e,t,...r)=>{if(!e)throw new NJt(t,...r)};hp.as=(e,t,r,...n)=>{if(!t){const o=n.length===0?r:Xk(r,...n);let i;try{i=Reflect.construct(e,[o])}catch{i=e(o)}throw i}};function jF(){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 MF=async e=>{try{return{error:null,data:await e().catch(r=>{throw r})}}catch(t){return{error:t,data:null}}};function $Jt(e){return new URL(e,location.href).href}function zF(e,t,r){return[e.active,e.installing,e.waiting].filter(a=>a!=null).find(a=>r(a.scriptURL,t))||null}var DJt=async(e,t={},r)=>{const n=$Jt(e),o=await navigator.serviceWorker.getRegistrations().then(l=>l.filter(s=>zF(s,n,r)));!navigator.serviceWorker.controller&&o.length>0&&location.reload();const[i]=o;if(i)return i.update(),[zF(i,n,r),i];const a=await MF(async()=>{const l=await navigator.serviceWorker.register(e,t);return[zF(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(Kr.formatMessage(`Failed to register a Service Worker for scope ('${s.href}') with script ('${n}'): Service Worker script does not exist at the given path.
|
|
957
957
|
|