codesaaz-core 0.0.25 → 0.0.26
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/codesaaz.es.js +1437 -1434
- package/dist/codesaaz.umd.js +17 -17
- package/package.json +1 -1
package/dist/codesaaz.umd.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
(function(ze,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue"),require("vue-router"),require("primevue")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","primevue"],a):(ze=typeof globalThis<"u"?globalThis:ze||self,a(ze.Codesaaz={},ze.Vue,ze.VueRouter,ze.PrimeVue))})(this,function(ze,a,Ke,
|
|
1
|
+
(function(ze,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue"),require("vue-router"),require("primevue")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","primevue"],a):(ze=typeof globalThis<"u"?globalThis:ze||self,a(ze.Codesaaz={},ze.Vue,ze.VueRouter,ze.PrimeVue))})(this,function(ze,a,Ke,ts){"use strict";var H2=Object.defineProperty;var U2=(ze,a,Ke)=>a in ze?H2(ze,a,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):ze[a]=Ke;var j=(ze,a,Ke)=>U2(ze,typeof a!="symbol"?a+"":a,Ke);var xi;const cn={get:dn("GET"),post:dn("POST"),put:dn("PUT"),delete:dn("DELETE")};function dn(t){return(e,o)=>{const r={method:t,headers:{}};return o&&(r.headers["Content-Type"]="application/json",r.body=JSON.stringify(o)),fetch(e,r).then(Df)}}function Df(t){return t.text().then(e=>{const o=e&&JSON.parse(e);return t.ok?o:Promise.reject(o)})}/*!
|
|
2
2
|
* pinia v2.3.1
|
|
3
3
|
* (c) 2025 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/let rs;const vi=t=>rs=t,Of=Symbol();function wi(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var tr;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(tr||(tr={}));const ns=()=>{};function is(t,e,o,r=ns){t.push(e);const n=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),r())};return!o&&a.getCurrentScope()&&a.onScopeDispose(n),n}function Ao(t,...e){t.slice().forEach(o=>{o(...e)})}const Nf=t=>t(),as=Symbol(),Ci=Symbol();function _i(t,e){t instanceof Map&&e instanceof Map?e.forEach((o,r)=>t.set(r,o)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const o in e){if(!e.hasOwnProperty(o))continue;const r=e[o],n=t[o];wi(n)&&wi(r)&&t.hasOwnProperty(o)&&!a.isRef(r)&&!a.isReactive(r)?t[o]=_i(n,r):t[o]=r}return t}const Tf=Symbol();function Pf(t){return!wi(t)||!t.hasOwnProperty(Tf)}const{assign:Yt}=Object;function $f(t){return!!(a.isRef(t)&&t.effect)}function Af(t,e,o,r){const{state:n,actions:i,getters:s}=e,l=o.state.value[t];let c;function d(){l||(o.state.value[t]=n?n():{});const u=a.toRefs(o.state.value[t]);return Yt(u,i,Object.keys(s||{}).reduce((f,h)=>(f[h]=a.markRaw(a.computed(()=>{vi(o);const g=o._s.get(t);return s[h].call(g,g)})),f),{}))}return c=ss(t,d,e,o,r,!0),c}function ss(t,e,o={},r,n,i){let s;const l=Yt({actions:{}},o),c={deep:!0};let d,u,f=[],h=[],g;const m=r.state.value[t];!i&&!m&&(r.state.value[t]={}),a.ref({});let p;function b(x){let B;d=u=!1,typeof x=="function"?(x(r.state.value[t]),B={type:tr.patchFunction,storeId:t,events:g}):(_i(r.state.value[t],x),B={type:tr.patchObject,payload:x,storeId:t,events:g});const T=p=Symbol();a.nextTick().then(()=>{p===T&&(d=!0)}),u=!0,Ao(f,B,r.state.value[t])}const y=i?function(){const{state:B}=o,T=B?B():{};this.$patch(E=>{Yt(E,T)})}:ns;function k(){s.stop(),f=[],h=[],r._s.delete(t)}const C=(x,B="")=>{if(as in x)return x[Ci]=B,x;const T=function(){vi(r);const E=Array.from(arguments),O=[],M=[];function W(z){O.push(z)}function Y(z){M.push(z)}Ao(h,{args:E,name:T[Ci],store:v,after:W,onError:Y});let I;try{I=x.apply(this&&this.$id===t?this:v,E)}catch(z){throw Ao(M,z),z}return I instanceof Promise?I.then(z=>(Ao(O,z),z)).catch(z=>(Ao(M,z),Promise.reject(z))):(Ao(O,I),I)};return T[as]=!0,T[Ci]=B,T},_={_p:r,$id:t,$onAction:is.bind(null,h),$patch:b,$reset:y,$subscribe(x,B={}){const T=is(f,x,B.detached,()=>E()),E=s.run(()=>a.watch(()=>r.state.value[t],O=>{(B.flush==="sync"?u:d)&&x({storeId:t,type:tr.direct,events:g},O)},Yt({},c,B)));return T},$dispose:k},v=a.reactive(_);r._s.set(t,v);const w=(r._a&&r._a.runWithContext||Nf)(()=>r._e.run(()=>(s=a.effectScope()).run(()=>e({action:C}))));for(const x in w){const B=w[x];if(a.isRef(B)&&!$f(B)||a.isReactive(B))i||(m&&Pf(B)&&(a.isRef(B)?B.value=m[x]:_i(B,m[x])),r.state.value[t][x]=B);else if(typeof B=="function"){const T=C(B,x);w[x]=T,l.actions[x]=B}}return Yt(v,w),Yt(a.toRaw(v),w),Object.defineProperty(v,"$state",{get:()=>r.state.value[t],set:x=>{b(B=>{Yt(B,x)})}}),r._p.forEach(x=>{Yt(v,s.run(()=>x({store:v,app:r._a,pinia:r,options:l})))}),m&&i&&o.hydrate&&o.hydrate(v.$state,m),d=!0,u=!0,v}/*! #__NO_SIDE_EFFECTS__ */function ls(t,e,o){let r,n;const i=typeof e=="function";typeof t=="string"?(r=t,n=i?o:e):(n=t,r=t.id);function s(l,c){const d=a.hasInjectionContext();return l=l||(d?a.inject(Of,null):null),l&&vi(l),l=rs,l._s.has(r)||(i?ss(r,e,n,l):Af(r,n,l)),l._s.get(r)}return s.$id=r,s}const lt=ls("globalConfigsStore",{state:()=>({globalConfigs:{}}),actions:{setBaseUrl(t){this.globalConfigs.baseUrl=t},setAppId(t){this.globalConfigs.appId=t}},getters:{getBaseUrl:t=>()=>t.globalConfigs.baseUrl,getAppId:t=>()=>t.globalConfigs.appId}});class cs{constructor(){let e="http://localhost:7070";const o=lt();o.getBaseUrl()!=null&&o.getBaseUrl()!=""&&(e=o.getBaseUrl()),this.baseUrl=e}async post(e,o){return await cn.post(this.baseUrl+e,o)}async put(e,o){return await cn.put(this.baseUrl+e,o)}async delete(e,o){return await cn.delete(this.baseUrl+e,o)}async get(e){return await cn.get(this.baseUrl+e)}}class mo{constructor(){this.httpService=new cs}async getEntityRecords(e){return await this.getAppId(),await this.httpService.get(`/api/app/v1/${this.appId}/entity/${e}/record`)}async searchEntityRecords(e,o){return this.appId==null&&this.getAppId(),await this.httpService.post(`/api/app/v1/${this.appId}/entity/${e}/record/search`,o)}async getRelatedEntityRecord(e,o){return this.appId==null&&this.getAppId(),await this.httpService.get(`/api/app/v1/${this.appId}/entity/${e}/link/record/${o}?fetchRelatedEntities=true`)}async saveRelatedEntityRecord(e,o,r){return this.appId==null&&this.getAppId(),await this.httpService.post(`/api/app/v1/${this.appId}/entity/${e}/link/record/${o}`,r)}async getRecord(e,o){return this.appId==null&&this.getAppId(),await this.httpService.get(`/api/app/v1/${this.appId}/entity/${e}/record/${o}?fetchRelatedEntities=false`)}async addRecord(e,o){return this.appId==null&&this.getAppId(),await this.httpService.post(`/api/app/v1/${this.appId}/entity/${e}/record`,o)}async updateRecord(e,o,r){return this.appId==null&&this.getAppId(),await this.httpService.put(`/api/app/v1/${this.appId}/entity/${e}/record/${o}`,r)}async deleteRecord(e,o){return this.appId==null&&this.getAppId(),await this.httpService.delete(`/api/app/v1/${this.appId}/entity/${e}/record/${o}`)}async getAppId(){const e=lt();this.appId=e.getAppId()}}function Mf(t=""){const e=new mo,o={gt:"GREATER_THAN",dateAfter:"GREATER_THAN",equals:"EQUAL",dateIs:"EQUAL",notEquals:"NOT_EQUAL",dateIsNot:"NOT_EQUAL",lt:"LESS_THAN",dateBefore:"LESS_THAN",lte:"LESS_THAN_EQUAL",gte:"GREATER_THAN_EQUAL",between:"BETWEEN",contains:"CONTAINS",startsWith:"STARTS_WITH",notContains:"NOT_CONTAINS",endsWith:"ENDS_WITH"};let r=a.ref({}),n=a.ref([]),i=a.ref([]),s=a.ref([]);const l=a.ref(""),c=a.ref(1),d=a.ref(25),u=a.ref(0),f=a.ref(0),h=a.ref(0),g=a.ref(!1),m=a.ref([]),p=a.ref(""),b=a.ref({}),y=async(E,O=!0)=>{g.value=!0;try{const M=await e.getEntityRecords(E);M&&M.response&&(r.value=M.response,n.value=M.response.result,s.value=M.response.entity.entityDefinition.columns,i.value=C(M.response.entity.entityDefinition.columns),f.value=M.response.totalRecords,T())}catch(M){console.error("Error fetching entity:",M.errorMessage)}finally{g.value=!1}},k=async(E=!0)=>{g.value=!0;try{const O={sortBy:[l.value],sortDirection:c.value===1?"ASC":"DESC",pageSize:d.value,currentPage:u.value,columnList:null,filter:m.value,fullTextSearch:p.value};Object.keys(O.filter).length===0&&(O.filter=[]);const M=await e.searchEntityRecords(t,O);M&&M.response&&(g.value=!1,r.value=M.response,n.value=M.response.result,f.value=M.response.totalRecords,h.value=u.value*d.value)}catch(O){console.error("Error fetching entity:",O.errorMessage)}finally{g.value=!1}},C=E=>E.map(O=>({field:O.name,name:O.displayName?O.displayName:O.name,filterable:O.filterable,datatype:O.type,sortable:!0,displayFormatKey:O.displayFormatKey,displayFormat:O.displayFormat})),_=E=>{l.value=E.sortField,c.value=E.sortOrder,h.value=0,k()},v=E=>{d.value=E.rows,u.value=E.page,h.value=E.first,k()},S=()=>{k()},w=()=>{k()},x=E=>{switch(E.toLowerCase()){case"integer":case"int":case"numeric":return"numeric";case"date":return"date";case"bool":case"boolean":return"boolean";default:return"text"}},B=E=>{const O=i.value.find(M=>M.field===E);return O?O.datatype:null},T=()=>{for(let E=0;E<s.value.length;E++){const O=s.value[E];if(O.primaryKey&&O.primaryKey==!0){b.value=O,l.value=O.name;break}}};return{items:n,headers:i,first:h,totalRecords:f,pageSize:d,loading:g,sortBy:l,sortDirection:c,operatorMap:o,filterToSend:m,fullTextSearch:p,listingResponse:r,primarayKeyColumn:b,onFullTextSearch:w,getDatatypeByField:B,getColumnDatatype:x,onSort:_,onPage:v,onFilter:S,fetchEntityFilterData:k,fetchEntityByName:y}}const Ne=(t,e)=>{const o=t.__vccOpts||t;for(const[r,n]of e)o[r]=n;return o},Vf={key:0,class:"field flex flex-col mb-3"},Ff=["for"],If={key:0},Lf={key:0,class:"font-bold"},zf={key:1,class:"font-bold text-color-hint"},jf={key:1,class:"flex items-center mb-3"},Wf={class:"ml-2"},Hf={key:0},un=Ne({__name:"EntityForm",props:a.mergeModels({column:Object,errors:Array},{modelValue:{},modelModifiers:{}}),emits:a.mergeModels(["input"],["update:modelValue"]),setup(t,{emit:e}){const o=a.useModel(t,"modelValue"),r=e,n=i=>{r("input",i.name)};if(t.column&&!t.column.inputComponent){let i="";switch(t.column.type.toLowerCase()){case"text":i="INPUT_TEXT";break;case"int":i="INPUT_NUMBER";break;case"float":i="INPUT_FLOAT";break;case"boolean":i="INPUT_BOOLEAN";break;case"uuid":i="INPUT_UUID";break;case"date":i="INPUT_DATE";break;default:i="INPUT_STRING"}t.column.inputComponent=i}return(i,s)=>{var f,h,g,m,p;const l=a.resolveComponent("DatePicker"),c=a.resolveComponent("InputNumber"),d=a.resolveComponent("InputText"),u=a.resolveComponent("Checkbox");return a.openBlock(),a.createElementBlock(a.Fragment,null,[t.column.inputComponent.toLowerCase()!="input_boolean"?(a.openBlock(),a.createElementBlock("div",Vf,[a.createElementVNode("label",{class:"mb-1",for:t.column.name},[a.createTextVNode(a.toDisplayString(t.column.displayName||t.column.name)+" ",1),t.column.required?(a.openBlock(),a.createElementBlock("span",If,"*")):a.createCommentVNode("",!0)],8,Ff),t.column.inputComponent.toLowerCase()=="input_date"?(a.openBlock(),a.createBlock(l,{key:0,modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=b=>o.value=b),id:t.column.name,name:t.column.name,onDateSelect:s[1]||(s[1]=b=>n(t.column)),invalid:((f=t.errors)==null?void 0:f.length)>0},null,8,["modelValue","id","name","invalid"])):t.column.inputComponent.toLowerCase()=="input_number"?(a.openBlock(),a.createBlock(c,{key:1,modelValue:o.value,"onUpdate:modelValue":s[2]||(s[2]=b=>o.value=b),id:t.column.name,name:t.column.name,allowEmpty:!0,format:!1,onInput:s[3]||(s[3]=b=>n(t.column)),invalid:((h=t.errors)==null?void 0:h.length)>0},null,8,["modelValue","id","name","invalid"])):t.column.type.toLowerCase()=="input_float"?(a.openBlock(),a.createBlock(c,{key:2,type:"decimal",minFractionDigits:1,id:t.column.name,allowEmpty:!0,format:!1,name:t.column.name,onInput:s[4]||(s[4]=b=>n(t.column)),invalid:((g=t.errors)==null?void 0:g.length)>0},null,8,["id","name","invalid"])):(a.openBlock(),a.createBlock(d,{key:3,modelValue:o.value,"onUpdate:modelValue":s[5]||(s[5]=b=>o.value=b),id:t.column.name,name:t.column.name,onInput:s[6]||(s[6]=b=>n(t.column)),invalid:((m=t.errors)==null?void 0:m.length)>0},null,8,["modelValue","id","name","invalid"])),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.errors,(b,y)=>(a.openBlock(),a.createElementBlock("div",{key:y,class:"text-red-500 mt-1 ml-2"},[b.includes("hint:")?(a.openBlock(),a.createElementBlock("small",zf,a.toDisplayString(b.split(":")[1]),1)):(a.openBlock(),a.createElementBlock("small",Lf,a.toDisplayString(b),1))]))),128))])):a.createCommentVNode("",!0),t.column.inputComponent.toLowerCase()=="input_boolean"?(a.openBlock(),a.createElementBlock("div",jf,[a.createVNode(u,{modelValue:o.value,"onUpdate:modelValue":s[7]||(s[7]=b=>o.value=b),invalid:((p=t.errors)==null?void 0:p.length)>0,onInput:s[8]||(s[8]=b=>n(t.column.name)),binary:""},null,8,["modelValue","invalid"]),a.createElementVNode("label",Wf,[a.createTextVNode(a.toDisplayString(t.column.displayName||t.column.name)+" ",1),t.column.required?(a.openBlock(),a.createElementBlock("span",Hf,"*")):a.createCommentVNode("",!0)])])):a.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-8820d348"]]);/**
|
|
5
|
+
*/let os;const vi=t=>os=t,Of=Symbol();function wi(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var tr;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(tr||(tr={}));const rs=()=>{};function ns(t,e,o,r=rs){t.push(e);const n=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),r())};return!o&&a.getCurrentScope()&&a.onScopeDispose(n),n}function Ao(t,...e){t.slice().forEach(o=>{o(...e)})}const Nf=t=>t(),is=Symbol(),Ci=Symbol();function _i(t,e){t instanceof Map&&e instanceof Map?e.forEach((o,r)=>t.set(r,o)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const o in e){if(!e.hasOwnProperty(o))continue;const r=e[o],n=t[o];wi(n)&&wi(r)&&t.hasOwnProperty(o)&&!a.isRef(r)&&!a.isReactive(r)?t[o]=_i(n,r):t[o]=r}return t}const Tf=Symbol();function Pf(t){return!wi(t)||!t.hasOwnProperty(Tf)}const{assign:Yt}=Object;function $f(t){return!!(a.isRef(t)&&t.effect)}function Af(t,e,o,r){const{state:n,actions:i,getters:s}=e,l=o.state.value[t];let c;function d(){l||(o.state.value[t]=n?n():{});const u=a.toRefs(o.state.value[t]);return Yt(u,i,Object.keys(s||{}).reduce((f,h)=>(f[h]=a.markRaw(a.computed(()=>{vi(o);const g=o._s.get(t);return s[h].call(g,g)})),f),{}))}return c=as(t,d,e,o,r,!0),c}function as(t,e,o={},r,n,i){let s;const l=Yt({actions:{}},o),c={deep:!0};let d,u,f=[],h=[],g;const m=r.state.value[t];!i&&!m&&(r.state.value[t]={}),a.ref({});let p;function b(x){let B;d=u=!1,typeof x=="function"?(x(r.state.value[t]),B={type:tr.patchFunction,storeId:t,events:g}):(_i(r.state.value[t],x),B={type:tr.patchObject,payload:x,storeId:t,events:g});const T=p=Symbol();a.nextTick().then(()=>{p===T&&(d=!0)}),u=!0,Ao(f,B,r.state.value[t])}const y=i?function(){const{state:B}=o,T=B?B():{};this.$patch(E=>{Yt(E,T)})}:rs;function k(){s.stop(),f=[],h=[],r._s.delete(t)}const C=(x,B="")=>{if(is in x)return x[Ci]=B,x;const T=function(){vi(r);const E=Array.from(arguments),O=[],M=[];function W(z){O.push(z)}function Y(z){M.push(z)}Ao(h,{args:E,name:T[Ci],store:v,after:W,onError:Y});let I;try{I=x.apply(this&&this.$id===t?this:v,E)}catch(z){throw Ao(M,z),z}return I instanceof Promise?I.then(z=>(Ao(O,z),z)).catch(z=>(Ao(M,z),Promise.reject(z))):(Ao(O,I),I)};return T[is]=!0,T[Ci]=B,T},_={_p:r,$id:t,$onAction:ns.bind(null,h),$patch:b,$reset:y,$subscribe(x,B={}){const T=ns(f,x,B.detached,()=>E()),E=s.run(()=>a.watch(()=>r.state.value[t],O=>{(B.flush==="sync"?u:d)&&x({storeId:t,type:tr.direct,events:g},O)},Yt({},c,B)));return T},$dispose:k},v=a.reactive(_);r._s.set(t,v);const w=(r._a&&r._a.runWithContext||Nf)(()=>r._e.run(()=>(s=a.effectScope()).run(()=>e({action:C}))));for(const x in w){const B=w[x];if(a.isRef(B)&&!$f(B)||a.isReactive(B))i||(m&&Pf(B)&&(a.isRef(B)?B.value=m[x]:_i(B,m[x])),r.state.value[t][x]=B);else if(typeof B=="function"){const T=C(B,x);w[x]=T,l.actions[x]=B}}return Yt(v,w),Yt(a.toRaw(v),w),Object.defineProperty(v,"$state",{get:()=>r.state.value[t],set:x=>{b(B=>{Yt(B,x)})}}),r._p.forEach(x=>{Yt(v,s.run(()=>x({store:v,app:r._a,pinia:r,options:l})))}),m&&i&&o.hydrate&&o.hydrate(v.$state,m),d=!0,u=!0,v}/*! #__NO_SIDE_EFFECTS__ */function ss(t,e,o){let r,n;const i=typeof e=="function";typeof t=="string"?(r=t,n=i?o:e):(n=t,r=t.id);function s(l,c){const d=a.hasInjectionContext();return l=l||(d?a.inject(Of,null):null),l&&vi(l),l=os,l._s.has(r)||(i?as(r,e,n,l):Af(r,n,l)),l._s.get(r)}return s.$id=r,s}const lt=ss("globalConfigsStore",{state:()=>({globalConfigs:{}}),actions:{setBaseUrl(t){this.globalConfigs.baseUrl=t},setAppId(t){this.globalConfigs.appId=t}},getters:{getBaseUrl:t=>()=>t.globalConfigs.baseUrl,getAppId:t=>()=>t.globalConfigs.appId}});class ls{constructor(){let e="http://localhost:7070";const o=lt();o.getBaseUrl()!=null&&o.getBaseUrl()!=""&&(e=o.getBaseUrl()),this.baseUrl=e}async post(e,o){return await cn.post(this.baseUrl+e,o)}async put(e,o){return await cn.put(this.baseUrl+e,o)}async delete(e,o){return await cn.delete(this.baseUrl+e,o)}async get(e){return await cn.get(this.baseUrl+e)}}class mo{constructor(){this.httpService=new ls}async getEntityRecords(e){return await this.getAppId(),await this.httpService.get(`/api/app/v1/${this.appId}/entity/${e}/record`)}async searchEntityRecords(e,o){return this.appId==null&&this.getAppId(),await this.httpService.post(`/api/app/v1/${this.appId}/entity/${e}/record/search`,o)}async getRelatedEntityRecord(e,o){return this.appId==null&&this.getAppId(),await this.httpService.get(`/api/app/v1/${this.appId}/entity/${e}/link/record/${o}?fetchRelatedEntities=true`)}async saveRelatedEntityRecord(e,o,r){return this.appId==null&&this.getAppId(),await this.httpService.post(`/api/app/v1/${this.appId}/entity/${e}/link/record/${o}`,r)}async getRecord(e,o){return this.appId==null&&this.getAppId(),await this.httpService.get(`/api/app/v1/${this.appId}/entity/${e}/record/${o}?fetchRelatedEntities=false`)}async addRecord(e,o){return this.appId==null&&this.getAppId(),await this.httpService.post(`/api/app/v1/${this.appId}/entity/${e}/record`,o)}async updateRecord(e,o,r){return this.appId==null&&this.getAppId(),await this.httpService.put(`/api/app/v1/${this.appId}/entity/${e}/record/${o}`,r)}async deleteRecord(e,o){return this.appId==null&&this.getAppId(),await this.httpService.delete(`/api/app/v1/${this.appId}/entity/${e}/record/${o}`)}async getAppId(){const e=lt();this.appId=e.getAppId()}}function Mf(t=""){const e=new mo,o={gt:"GREATER_THAN",dateAfter:"GREATER_THAN",equals:"EQUAL",dateIs:"EQUAL",notEquals:"NOT_EQUAL",dateIsNot:"NOT_EQUAL",lt:"LESS_THAN",dateBefore:"LESS_THAN",lte:"LESS_THAN_EQUAL",gte:"GREATER_THAN_EQUAL",between:"BETWEEN",contains:"CONTAINS",startsWith:"STARTS_WITH",notContains:"NOT_CONTAINS",endsWith:"ENDS_WITH"};let r=a.ref({}),n=a.ref([]),i=a.ref([]),s=a.ref([]);const l=a.ref(""),c=a.ref(1),d=a.ref(25),u=a.ref(0),f=a.ref(0),h=a.ref(0),g=a.ref(!1),m=a.ref([]),p=a.ref(""),b=a.ref({}),y=async(E,O=!0)=>{g.value=!0;try{const M=await e.getEntityRecords(E);M&&M.response&&(r.value=M.response,n.value=M.response.result,s.value=M.response.entity.entityDefinition.columns,i.value=C(M.response.entity.entityDefinition.columns),f.value=M.response.totalRecords,T())}catch(M){console.error("Error fetching entity:",M.errorMessage)}finally{g.value=!1}},k=async(E=!0)=>{g.value=!0;try{const O={sortBy:[l.value],sortDirection:c.value===1?"ASC":"DESC",pageSize:d.value,currentPage:u.value,columnList:null,filter:m.value,fullTextSearch:p.value};Object.keys(O.filter).length===0&&(O.filter=[]);const M=await e.searchEntityRecords(t,O);M&&M.response&&(g.value=!1,r.value=M.response,n.value=M.response.result,f.value=M.response.totalRecords,h.value=u.value*d.value)}catch(O){console.error("Error fetching entity:",O.errorMessage)}finally{g.value=!1}},C=E=>E.map(O=>({field:O.name,name:O.displayName?O.displayName:O.name,filterable:O.filterable,datatype:O.type,sortable:!0,displayFormatKey:O.displayFormatKey,displayFormat:O.displayFormat})),_=E=>{l.value=E.sortField,c.value=E.sortOrder,h.value=0,k()},v=E=>{d.value=E.rows,u.value=E.page,h.value=E.first,k()},S=()=>{k()},w=()=>{k()},x=E=>{switch(E.toLowerCase()){case"integer":case"int":case"numeric":return"numeric";case"date":return"date";case"bool":case"boolean":return"boolean";default:return"text"}},B=E=>{const O=i.value.find(M=>M.field===E);return O?O.datatype:null},T=()=>{for(let E=0;E<s.value.length;E++){const O=s.value[E];if(O.primaryKey&&O.primaryKey==!0){b.value=O,l.value=O.name;break}}};return{items:n,headers:i,first:h,totalRecords:f,pageSize:d,loading:g,sortBy:l,sortDirection:c,operatorMap:o,filterToSend:m,fullTextSearch:p,listingResponse:r,primarayKeyColumn:b,onFullTextSearch:w,getDatatypeByField:B,getColumnDatatype:x,onSort:_,onPage:v,onFilter:S,fetchEntityFilterData:k,fetchEntityByName:y}}const Ne=(t,e)=>{const o=t.__vccOpts||t;for(const[r,n]of e)o[r]=n;return o},Vf={key:0,class:"field flex flex-col mb-3"},Ff=["for"],If={key:0},Lf={key:0,class:"font-bold"},zf={key:1,class:"font-bold text-color-hint"},jf={key:1,class:"flex items-center mb-3"},Wf={class:"ml-2"},Hf={key:0},un=Ne({__name:"EntityForm",props:a.mergeModels({column:Object,errors:Array},{modelValue:{},modelModifiers:{}}),emits:a.mergeModels(["input"],["update:modelValue"]),setup(t,{emit:e}){const o=a.useModel(t,"modelValue"),r=e,n=i=>{r("input",i.name)};if(t.column&&!t.column.inputComponent){let i="";switch(t.column.type.toLowerCase()){case"text":i="INPUT_TEXT";break;case"int":i="INPUT_NUMBER";break;case"float":i="INPUT_FLOAT";break;case"boolean":i="INPUT_BOOLEAN";break;case"uuid":i="INPUT_UUID";break;case"date":i="INPUT_DATE";break;default:i="INPUT_STRING"}t.column.inputComponent=i}return(i,s)=>{var f,h,g,m,p;const l=a.resolveComponent("DatePicker"),c=a.resolveComponent("InputNumber"),d=a.resolveComponent("InputText"),u=a.resolveComponent("Checkbox");return a.openBlock(),a.createElementBlock(a.Fragment,null,[t.column.inputComponent.toLowerCase()!="input_boolean"?(a.openBlock(),a.createElementBlock("div",Vf,[a.createElementVNode("label",{class:"mb-1",for:t.column.name},[a.createTextVNode(a.toDisplayString(t.column.displayName||t.column.name)+" ",1),t.column.required?(a.openBlock(),a.createElementBlock("span",If,"*")):a.createCommentVNode("",!0)],8,Ff),t.column.inputComponent.toLowerCase()=="input_date"?(a.openBlock(),a.createBlock(l,{key:0,modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=b=>o.value=b),id:t.column.name,name:t.column.name,onDateSelect:s[1]||(s[1]=b=>n(t.column)),invalid:((f=t.errors)==null?void 0:f.length)>0},null,8,["modelValue","id","name","invalid"])):t.column.inputComponent.toLowerCase()=="input_number"?(a.openBlock(),a.createBlock(c,{key:1,modelValue:o.value,"onUpdate:modelValue":s[2]||(s[2]=b=>o.value=b),id:t.column.name,name:t.column.name,allowEmpty:!0,format:!1,onInput:s[3]||(s[3]=b=>n(t.column)),invalid:((h=t.errors)==null?void 0:h.length)>0},null,8,["modelValue","id","name","invalid"])):t.column.type.toLowerCase()=="input_float"?(a.openBlock(),a.createBlock(c,{key:2,type:"decimal",minFractionDigits:1,id:t.column.name,allowEmpty:!0,format:!1,name:t.column.name,onInput:s[4]||(s[4]=b=>n(t.column)),invalid:((g=t.errors)==null?void 0:g.length)>0},null,8,["id","name","invalid"])):(a.openBlock(),a.createBlock(d,{key:3,modelValue:o.value,"onUpdate:modelValue":s[5]||(s[5]=b=>o.value=b),id:t.column.name,name:t.column.name,onInput:s[6]||(s[6]=b=>n(t.column)),invalid:((m=t.errors)==null?void 0:m.length)>0},null,8,["modelValue","id","name","invalid"])),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.errors,(b,y)=>(a.openBlock(),a.createElementBlock("div",{key:y,class:"text-red-500 mt-1 ml-2"},[b.includes("hint:")?(a.openBlock(),a.createElementBlock("small",zf,a.toDisplayString(b.split(":")[1]),1)):(a.openBlock(),a.createElementBlock("small",Lf,a.toDisplayString(b),1))]))),128))])):a.createCommentVNode("",!0),t.column.inputComponent.toLowerCase()=="input_boolean"?(a.openBlock(),a.createElementBlock("div",jf,[a.createVNode(u,{modelValue:o.value,"onUpdate:modelValue":s[7]||(s[7]=b=>o.value=b),invalid:((p=t.errors)==null?void 0:p.length)>0,onInput:s[8]||(s[8]=b=>n(t.column.name)),binary:""},null,8,["modelValue","invalid"]),a.createElementVNode("label",Wf,[a.createTextVNode(a.toDisplayString(t.column.displayName||t.column.name)+" ",1),t.column.required?(a.openBlock(),a.createElementBlock("span",Hf,"*")):a.createCommentVNode("",!0)])])):a.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-8820d348"]]);/**
|
|
6
6
|
* vee-validate v4.15.0
|
|
7
7
|
* (c) 2024 Abdelrahman Awad
|
|
8
8
|
* @license MIT
|
|
9
|
-
*/function gt(t){return typeof t=="function"}function ds(t){return t==null}const Mo=t=>t!==null&&!!t&&typeof t=="object"&&!Array.isArray(t);function Si(t){return Number(t)>=0}function Uf(t){return typeof t=="object"&&t!==null}function qf(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}function us(t){if(!Uf(t)||qf(t)!=="[object Object]")return!1;if(Object.getPrototypeOf(t)===null)return!0;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function or(t,e){return Object.keys(e).forEach(o=>{if(us(e[o])&&us(t[o])){t[o]||(t[o]={}),or(t[o],e[o]);return}t[o]=e[o]}),t}function fn(t){const e=t.split(".");if(!e.length)return"";let o=String(e[0]);for(let r=1;r<e.length;r++){if(Si(e[r])){o+=`[${e[r]}]`;continue}o+=`.${e[r]}`}return o}const Yf={};function Xf(t){return Yf[t]}function fs(t,e,o){typeof o.value=="object"&&(o.value=ve(o.value)),!o.enumerable||o.get||o.set||!o.configurable||!o.writable||e==="__proto__"?Object.defineProperty(t,e,o):t[e]=o.value}function ve(t){if(typeof t!="object")return t;var e=0,o,r,n,i=Object.prototype.toString.call(t);if(i==="[object Object]"?n=Object.create(t.__proto__||null):i==="[object Array]"?n=Array(t.length):i==="[object Set]"?(n=new Set,t.forEach(function(s){n.add(ve(s))})):i==="[object Map]"?(n=new Map,t.forEach(function(s,l){n.set(ve(l),ve(s))})):i==="[object Date]"?n=new Date(+t):i==="[object RegExp]"?n=new RegExp(t.source,t.flags):i==="[object DataView]"?n=new t.constructor(ve(t.buffer)):i==="[object ArrayBuffer]"?n=t.slice(0):i.slice(-6)==="Array]"&&(n=new t.constructor(t)),n){for(r=Object.getOwnPropertySymbols(t);e<r.length;e++)fs(n,r[e],Object.getOwnPropertyDescriptor(t,r[e]));for(e=0,r=Object.getOwnPropertyNames(t);e<r.length;e++)Object.hasOwnProperty.call(n,o=r[e])&&n[o]===t[o]||fs(n,o,Object.getOwnPropertyDescriptor(t,o))}return n||t}const Kf=Symbol("vee-validate-form"),Gf=Symbol("vee-validate-form-context"),Jf=typeof window<"u";function Qf(t){return gt(t)&&!!t.__locatorRef}function Xt(t){return!!t&>(t.parse)&&t.__type==="VVTypedSchema"}function hs(t){return!!t&>(t.validate)}function Zf(t){return t==="checkbox"||t==="radio"}function eh(t){return Mo(t)||Array.isArray(t)}function th(t){return Array.isArray(t)?t.length===0:Mo(t)&&Object.keys(t).length===0}function hn(t){return/^\[.+\]$/i.test(t)}function oh(t){return gs(t)&&t.multiple}function gs(t){return t.tagName==="SELECT"}function rh(t){return ms(t)&&t.target&&"submit"in t.target}function ms(t){return t?!!(typeof Event<"u"&>(Event)&&t instanceof Event||t&&t.srcElement):!1}function rr(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,r,n;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(r=o;r--!==0;)if(!rr(t[r],e[r]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;for(r of t.entries())if(!rr(r[1],e.get(r[0])))return!1;return!0}if(bs(t)&&bs(e))return!(t.size!==e.size||t.name!==e.name||t.lastModified!==e.lastModified||t.type!==e.type);if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(o=t.length,o!=e.length)return!1;for(r=o;r--!==0;)if(t[r]!==e[r])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();if(n=Object.keys(t),o=n.length-ps(t,n),o!==Object.keys(e).length-ps(e,Object.keys(e)))return!1;for(r=o;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[r]))return!1;for(r=o;r--!==0;){var i=n[r];if(!rr(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function ps(t,e){let o=0;for(let n=e.length;n--!==0;){var r=e[n];t[r]===void 0&&o++}return o}function bs(t){return Jf?t instanceof File:!1}function Bi(t){return hn(t)?t.replace(/\[|\]/gi,""):t}function Pt(t,e,o){return t?hn(e)?t[Bi(e)]:(e||"").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((n,i)=>eh(n)&&i in n?n[i]:o,t):o}function $t(t,e,o){if(hn(e)){t[Bi(e)]=o;return}const r=e.split(/\.|\[(\d+)\]/).filter(Boolean);let n=t;for(let i=0;i<r.length;i++){if(i===r.length-1){n[r[i]]=o;return}(!(r[i]in n)||ds(n[r[i]]))&&(n[r[i]]=Si(r[i+1])?[]:{}),n=n[r[i]]}}function Ei(t,e){if(Array.isArray(t)&&Si(e)){t.splice(Number(e),1);return}Mo(t)&&delete t[e]}function ys(t,e){if(hn(e)){delete t[Bi(e)];return}const o=e.split(/\.|\[(\d+)\]/).filter(Boolean);let r=t;for(let i=0;i<o.length;i++){if(i===o.length-1){Ei(r,o[i]);break}if(!(o[i]in r)||ds(r[o[i]]))break;r=r[o[i]]}const n=o.map((i,s)=>Pt(t,o.slice(0,s).join(".")));for(let i=n.length-1;i>=0;i--)if(th(n[i])){if(i===0){Ei(t,o[0]);continue}Ei(n[i-1],o[i-1])}}function ct(t){return Object.keys(t)}function ks(t,e=0){let o=null,r=[];return function(...n){return o&&clearTimeout(o),o=setTimeout(()=>{const i=t(...n);r.forEach(s=>s(i)),r=[]},e),new Promise(i=>r.push(i))}}function nh(t,e){let o;return async function(...n){const i=t(...n);o=i;const s=await i;return i!==o?s:(o=void 0,e(s,n))}}function xs(t){return Array.isArray(t)?t:t?[t]:[]}function gn(t,e){const o={};for(const r in t)e.includes(r)||(o[r]=t[r]);return o}function ih(t){let e=null,o=[];return function(...r){const n=a.nextTick(()=>{if(e!==n)return;const i=t(...r);o.forEach(s=>s(i)),o=[],e=null});return e=n,new Promise(i=>o.push(i))}}function Ri(t){if(vs(t))return t._value}function vs(t){return"_value"in t}function ah(t){return t.type==="number"||t.type==="range"?Number.isNaN(t.valueAsNumber)?t.value:t.valueAsNumber:t.value}function ws(t){if(!ms(t))return t;const e=t.target;if(Zf(e.type)&&vs(e))return Ri(e);if(e.type==="file"&&e.files){const o=Array.from(e.files);return e.multiple?o:o[0]}if(oh(e))return Array.from(e.options).filter(o=>o.selected&&!o.disabled).map(Ri);if(gs(e)){const o=Array.from(e.options).find(r=>r.selected);return o?Ri(o):e.value}return ah(e)}function sh(t){const e={};return Object.defineProperty(e,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),t?Mo(t)&&t._$$isNormalized?t:Mo(t)?Object.keys(t).reduce((o,r)=>{const n=lh(t[r]);return t[r]!==!1&&(o[r]=Cs(n)),o},e):typeof t!="string"?e:t.split("|").reduce((o,r)=>{const n=ch(r);return n.name&&(o[n.name]=Cs(n.params)),o},e):e}function lh(t){return t===!0?[]:Array.isArray(t)||Mo(t)?t:[t]}function Cs(t){const e=o=>typeof o=="string"&&o[0]==="@"?dh(o.slice(1)):o;return Array.isArray(t)?t.map(e):t instanceof RegExp?[t]:Object.keys(t).reduce((o,r)=>(o[r]=e(t[r]),o),{})}const ch=t=>{let e=[];const o=t.split(":")[0];return t.includes(":")&&(e=t.split(":").slice(1).join(":").split(",")),{name:o,params:e}};function dh(t){const e=o=>{var r;return(r=Pt(o,t))!==null&&r!==void 0?r:o[t]};return e.__locatorRef=t,e}let uh=Object.assign({},{generateMessage:({field:t})=>`${t} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0});const nr=()=>uh;async function fh(t,e,o={}){const r=o==null?void 0:o.bails,n={name:(o==null?void 0:o.name)||"{field}",rules:e,label:o==null?void 0:o.label,bails:r??!0,formData:(o==null?void 0:o.values)||{}},i=await hh(n,t);return Object.assign(Object.assign({},i),{valid:!i.errors.length})}async function hh(t,e){const o=t.rules;if(Xt(o)||hs(o))return mh(e,Object.assign(Object.assign({},t),{rules:o}));if(gt(o)||Array.isArray(o)){const l={field:t.label||t.name,name:t.name,label:t.label,form:t.formData,value:e},c=Array.isArray(o)?o:[o],d=c.length,u=[];for(let f=0;f<d;f++){const h=c[f],g=await h(e,l);if(!(typeof g!="string"&&!Array.isArray(g)&&g)){if(Array.isArray(g))u.push(...g);else{const p=typeof g=="string"?g:Ss(l);u.push(p)}if(t.bails)return{errors:u}}}return{errors:u}}const r=Object.assign(Object.assign({},t),{rules:sh(o)}),n=[],i=Object.keys(r.rules),s=i.length;for(let l=0;l<s;l++){const c=i[l],d=await ph(r,e,{name:c,params:r.rules[c]});if(d.error&&(n.push(d.error),t.bails))return{errors:n}}return{errors:n}}function gh(t){return!!t&&t.name==="ValidationError"}function _s(t){return{__type:"VVTypedSchema",async parse(o,r){var n;try{return{output:await t.validate(o,{abortEarly:!1,context:(r==null?void 0:r.formData)||{}}),errors:[]}}catch(i){if(!gh(i))throw i;if(!(!((n=i.inner)===null||n===void 0)&&n.length)&&i.errors.length)return{errors:[{path:i.path,errors:i.errors}]};const s=i.inner.reduce((l,c)=>{const d=c.path||"";return l[d]||(l[d]={errors:[],path:d}),l[d].errors.push(...c.errors),l},{});return{errors:Object.values(s)}}}}}async function mh(t,e){const r=await(Xt(e.rules)?e.rules:_s(e.rules)).parse(t,{formData:e.formData}),n=[];for(const i of r.errors)i.errors.length&&n.push(...i.errors);return{value:r.value,errors:n}}async function ph(t,e,o){const r=Xf(o.name);if(!r)throw new Error(`No such validator '${o.name}' exists.`);const n=bh(o.params,t.formData),i={field:t.label||t.name,name:t.name,label:t.label,value:e,form:t.formData,rule:Object.assign(Object.assign({},o),{params:n})},s=await r(e,n,i);return typeof s=="string"?{error:s}:{error:s?void 0:Ss(i)}}function Ss(t){const e=nr().generateMessage;return e?e(t):"Field is invalid"}function bh(t,e){const o=r=>Qf(r)?r(e):r;return Array.isArray(t)?t.map(o):Object.keys(t).reduce((r,n)=>(r[n]=o(t[n]),r),{})}async function yh(t,e){const r=await(Xt(t)?t:_s(t)).parse(ve(e),{formData:ve(e)}),n={},i={};for(const s of r.errors){const l=s.errors,c=(s.path||"").replace(/\["(\d+)"\]/g,(d,u)=>`[${u}]`);n[c]={valid:!l.length,errors:l},l.length&&(i[c]=l[0])}return{valid:!r.errors.length,results:n,errors:i,values:r.value,source:"schema"}}async function kh(t,e,o){const n=ct(t).map(async d=>{var u,f,h;const g=(u=o==null?void 0:o.names)===null||u===void 0?void 0:u[d],m=await fh(Pt(e,d),t[d],{name:(g==null?void 0:g.name)||d,label:g==null?void 0:g.label,values:e,bails:(h=(f=o==null?void 0:o.bailsMap)===null||f===void 0?void 0:f[d])!==null&&h!==void 0?h:!0});return Object.assign(Object.assign({},m),{path:d})});let i=!0;const s=await Promise.all(n),l={},c={};for(const d of s)l[d.path]={valid:d.valid,errors:d.errors},d.valid||(i=!1,c[d.path]=d.errors[0]);return{valid:i,results:l,errors:c,source:"schema"}}let xh=0;const mn=["bails","fieldsCount","id","multiple","type","validate"];function Bs(t){const e={},o=Object.assign({},a.toValue(e)),r=a.unref(void 0);return r&&Xt(r)&>(r.cast)?ve(r.cast(o)||{}):ve(o)}function Es(t){var e;const o=xh++,r="Form";let n=0;const i=a.ref(!1),s=a.ref(!1),l=a.ref(0),c=[],d=a.reactive(Bs()),u=a.ref([]),f=a.ref({}),h=a.ref({}),g=ih(()=>{h.value=u.value.reduce((R,D)=>(R[fn(a.toValue(D.path))]=D,R),{})});function m(R,D){const A=z(R);if(!A){typeof R=="string"&&(f.value[fn(R)]=xs(D));return}if(typeof R=="string"){const q=fn(R);f.value[q]&&delete f.value[q]}A.errors=xs(D),A.valid=!A.errors.length}function p(R){ct(R).forEach(D=>{m(D,R[D])})}const b=a.computed(()=>{const R=u.value.reduce((D,A)=>(A.errors.length&&(D[a.toValue(A.path)]=A.errors),D),{});return Object.assign(Object.assign({},f.value),R)}),y=a.computed(()=>ct(b.value).reduce((R,D)=>{const A=b.value[D];return A!=null&&A.length&&(R[D]=A[0]),R},{})),k=a.computed(()=>u.value.reduce((R,D)=>(R[a.toValue(D.path)]={name:a.toValue(D.path)||"",label:D.label||""},R),{})),C=a.computed(()=>u.value.reduce((R,D)=>{var A;return R[a.toValue(D.path)]=(A=D.bails)!==null&&A!==void 0?A:!0,R},{})),_=Object.assign({},{}),v=(e=void 0)!==null&&e!==void 0?e:!1,{initialValues:S,originalInitialValues:w,setInitialValues:x}=wh(u,d),B=vh(u,d,w,y),T=a.computed(()=>u.value.reduce((R,D)=>{const A=Pt(d,a.toValue(D.path));return $t(R,a.toValue(D.path),A),R},{})),E=void 0;function O(R,D){var A,q;const te=a.computed(()=>Pt(S.value,a.toValue(R))),le=h.value[a.toValue(R)],Z=(D==null?void 0:D.type)==="checkbox"||(D==null?void 0:D.type)==="radio";if(le&&Z){le.multiple=!0;const Oe=n++;return Array.isArray(le.id)?le.id.push(Oe):le.id=[le.id,Oe],le.fieldsCount++,le.__flags.pendingUnmount[Oe]=!1,le}const $=a.computed(()=>Pt(d,a.toValue(R))),H=a.toValue(R),G=P.findIndex(Oe=>Oe===H);G!==-1&&P.splice(G,1);const K=a.computed(()=>{var Oe,He,an,sn;const ln=a.toValue(E);if(Xt(ln))return(He=(Oe=ln.describe)===null||Oe===void 0?void 0:Oe.call(ln,a.toValue(R)).required)!==null&&He!==void 0?He:!1;const ts=a.toValue(D==null?void 0:D.schema);return Xt(ts)&&(sn=(an=ts.describe)===null||an===void 0?void 0:an.call(ts).required)!==null&&sn!==void 0?sn:!1}),re=n++,ke=a.reactive({id:re,path:R,touched:!1,pending:!1,valid:!0,validated:!!(!((A=_[H])===null||A===void 0)&&A.length),required:K,initialValue:te,errors:a.shallowRef([]),bails:(q=D==null?void 0:D.bails)!==null&&q!==void 0?q:!1,label:D==null?void 0:D.label,type:(D==null?void 0:D.type)||"default",value:$,multiple:!1,__flags:{pendingUnmount:{[re]:!1},pendingReset:!1},fieldsCount:1,validate:D==null?void 0:D.validate,dirty:a.computed(()=>!rr(a.unref($),a.unref(te)))});return u.value.push(ke),h.value[H]=ke,g(),y.value[H]&&!_[H]&&a.nextTick(()=>{ot(H,{mode:"silent"})}),a.isRef(R)&&a.watch(R,Oe=>{g();const He=ve($.value);h.value[Oe]=ke,a.nextTick(()=>{$t(d,Oe,He)})}),ke}const M=ks(ht,5),W=ks(ht,5),Y=nh(async R=>await(R==="silent"?M():W()),(R,[D])=>{const A=ct(ue.errorBag.value),te=[...new Set([...ct(R.results),...u.value.map(le=>le.path),...A])].sort().reduce((le,Z)=>{var $;const H=Z,G=z(H)||F(H),K=(($=R.results[H])===null||$===void 0?void 0:$.errors)||[],re=a.toValue(G==null?void 0:G.path)||H,ke=Ch({errors:K,valid:!K.length},le.results[re]);return le.results[re]=ke,ke.valid||(le.errors[re]=ke.errors[0]),G&&f.value[re]&&delete f.value[re],G?(G.valid=ke.valid,D==="silent"||D==="validated-only"&&!G.validated||m(G,ke.errors),le):(m(re,K),le)},{valid:R.valid,results:{},errors:{},source:R.source});return R.values&&(te.values=R.values,te.source=R.source),ct(te.results).forEach(le=>{var Z;const $=z(le);$&&D!=="silent"&&(D==="validated-only"&&!$.validated||m($,(Z=te.results[le])===null||Z===void 0?void 0:Z.errors))}),te});function I(R){u.value.forEach(R)}function z(R){const D=typeof R=="string"?fn(R):R;return typeof D=="string"?h.value[D]:D}function F(R){return u.value.filter(A=>R.startsWith(a.toValue(A.path))).reduce((A,q)=>A?q.path.length>A.path.length?q:A:q,void 0)}let P=[],L;function Q(R){return P.push(R),L||(L=a.nextTick(()=>{[...P].sort().reverse().forEach(A=>{ys(d,A)}),P=[],L=null})),L}function oe(R){return function(A,q){return function(le){return le instanceof Event&&(le.preventDefault(),le.stopPropagation()),I(Z=>Z.touched=!0),i.value=!0,l.value++,Te().then(Z=>{const $=ve(d);if(Z.valid&&typeof A=="function"){const H=ve(T.value);let G=R?H:$;return Z.values&&(G=Z.source==="schema"?Z.values:Object.assign({},G,Z.values)),A(G,{evt:le,controlledValues:H,setErrors:p,setFieldError:m,setTouched:me,setFieldTouched:ft,setValues:Xe,setFieldValue:De,resetForm:pe,resetField:ge})}!Z.valid&&typeof q=="function"&&q({values:$,evt:le,errors:Z.errors,results:Z.results})}).then(Z=>(i.value=!1,Z),Z=>{throw i.value=!1,Z})}}}const X=oe(!1);X.withControlled=oe(!0);function J(R,D){const A=u.value.findIndex(te=>te.path===R&&(Array.isArray(te.id)?te.id.includes(D):te.id===D)),q=u.value[A];if(!(A===-1||!q)){if(a.nextTick(()=>{ot(R,{mode:"silent",warn:!1})}),q.multiple&&q.fieldsCount&&q.fieldsCount--,Array.isArray(q.id)){const te=q.id.indexOf(D);te>=0&&q.id.splice(te,1),delete q.__flags.pendingUnmount[D]}(!q.multiple||q.fieldsCount<=0)&&(u.value.splice(A,1),Tt(R),g(),delete h.value[R])}}function ie(R){ct(h.value).forEach(D=>{D.startsWith(R)&&delete h.value[D]}),u.value=u.value.filter(D=>!D.path.startsWith(R)),a.nextTick(()=>{g()})}const ue={name:r,formId:o,values:d,controlledValues:T,errorBag:b,errors:y,schema:E,submitCount:l,meta:B,isSubmitting:i,isValidating:s,fieldArrays:c,keepValuesOnUnmount:v,validateSchema:a.unref(E)?Y:void 0,validate:Te,setFieldError:m,validateField:ot,setFieldValue:De,setValues:Xe,setErrors:p,setFieldTouched:ft,setTouched:me,resetForm:pe,resetField:ge,handleSubmit:X,useFieldModel:$o,defineInputBinds:ee,defineComponentBinds:wt,defineField:go,stageInitialValue:Le,unsetInitialValue:Tt,setFieldInitialValue:rt,createPathState:O,getPathState:z,unsetPathValue:Q,removePathState:J,initialValues:S,getAllPathStates:()=>u.value,destroyPath:ie,isFieldTouched:U,isFieldDirty:V,isFieldValid:he};function De(R,D,A=!0){const q=ve(D),te=typeof R=="string"?R:R.path;z(te)||O(te),$t(d,te,q),A&&ot(te)}function st(R,D=!0){ct(d).forEach(A=>{delete d[A]}),ct(R).forEach(A=>{De(A,R[A],!1)}),D&&Te()}function Xe(R,D=!0){or(d,R),c.forEach(A=>A&&A.reset()),D&&Te()}function vt(R,D){const A=z(a.toValue(R))||O(R);return a.computed({get(){return A.value},set(q){var te;const le=a.toValue(R);De(le,q,(te=a.toValue(D))!==null&&te!==void 0?te:!1)}})}function ft(R,D){const A=z(R);A&&(A.touched=D)}function U(R){const D=z(R);return D?D.touched:u.value.filter(A=>A.path.startsWith(R)).some(A=>A.touched)}function V(R){const D=z(R);return D?D.dirty:u.value.filter(A=>A.path.startsWith(R)).some(A=>A.dirty)}function he(R){const D=z(R);return D?D.valid:u.value.filter(A=>A.path.startsWith(R)).every(A=>A.valid)}function me(R){if(typeof R=="boolean"){I(D=>{D.touched=R});return}ct(R).forEach(D=>{ft(D,!!R[D])})}function ge(R,D){var A;const q=D&&"value"in D?D.value:Pt(S.value,R),te=z(R);te&&(te.__flags.pendingReset=!0),rt(R,ve(q),!0),De(R,q,!1),ft(R,(A=D==null?void 0:D.touched)!==null&&A!==void 0?A:!1),m(R,(D==null?void 0:D.errors)||[]),a.nextTick(()=>{te&&(te.__flags.pendingReset=!1)})}function pe(R,D){let A=ve(R!=null&&R.values?R.values:w.value);A=D!=null&&D.force?A:or(w.value,A),A=Xt(E)&>(E.cast)?E.cast(A):A,x(A,{force:D==null?void 0:D.force}),I(q=>{var te;q.__flags.pendingReset=!0,q.validated=!1,q.touched=((te=R==null?void 0:R.touched)===null||te===void 0?void 0:te[a.toValue(q.path)])||!1,De(a.toValue(q.path),Pt(A,a.toValue(q.path)),!1),m(a.toValue(q.path),void 0)}),D!=null&&D.force?st(A,!1):Xe(A,!1),p((R==null?void 0:R.errors)||{}),l.value=(R==null?void 0:R.submitCount)||0,a.nextTick(()=>{Te({mode:"silent"}),I(q=>{q.__flags.pendingReset=!1})})}async function Te(R){const D=(R==null?void 0:R.mode)||"force";if(D==="force"&&I(Z=>Z.validated=!0),ue.validateSchema)return ue.validateSchema(D);s.value=!0;const A=await Promise.all(u.value.map(Z=>Z.validate?Z.validate(R).then($=>({key:a.toValue(Z.path),valid:$.valid,errors:$.errors,value:$.value})):Promise.resolve({key:a.toValue(Z.path),valid:!0,errors:[],value:void 0})));s.value=!1;const q={},te={},le={};for(const Z of A)q[Z.key]={valid:Z.valid,errors:Z.errors},Z.value&&$t(le,Z.key,Z.value),Z.errors.length&&(te[Z.key]=Z.errors[0]);return{valid:A.every(Z=>Z.valid),results:q,errors:te,values:le,source:"fields"}}async function ot(R,D){var A;const q=z(R);return q&&(D==null?void 0:D.mode)!=="silent"&&(q.validated=!0),q!=null&&q.validate?q.validate(D):(!q&&(A=D==null?void 0:D.warn),Promise.resolve({errors:[],valid:!0}))}function Tt(R){ys(S.value,R)}function Le(R,D,A=!1){rt(R,D),$t(d,R,D),A&&$t(w.value,R,ve(D))}function rt(R,D,A=!1){$t(S.value,R,ve(D)),A&&$t(w.value,R,ve(D))}async function ht(){const R=a.unref(E);if(!R)return{valid:!0,results:{},errors:{},source:"none"};s.value=!0;const D=hs(R)||Xt(R)?await yh(R,d):await kh(R,d,{names:k.value,bailsMap:C.value});return s.value=!1,D}const ho=X((R,{evt:D})=>{rh(D)&&D.target.submit()});a.onMounted(()=>{ue.validateSchema&&ue.validateSchema("silent")}),a.isRef(E)&&a.watch(E,()=>{var R;(R=ue.validateSchema)===null||R===void 0||R.call(ue,"validated-only")}),a.provide(Kf,ue);function go(R,D){const A=gt(D)||D==null?void 0:D.label,q=z(a.toValue(R))||O(R,{label:A}),te=()=>gt(D)?D(gn(q,mn)):D||{};function le(){var K;q.touched=!0,((K=te().validateOnBlur)!==null&&K!==void 0?K:nr().validateOnBlur)&&ot(a.toValue(q.path))}function Z(){var K;((K=te().validateOnInput)!==null&&K!==void 0?K:nr().validateOnInput)&&a.nextTick(()=>{ot(a.toValue(q.path))})}function $(){var K;((K=te().validateOnChange)!==null&&K!==void 0?K:nr().validateOnChange)&&a.nextTick(()=>{ot(a.toValue(q.path))})}const H=a.computed(()=>{const K={onChange:$,onInput:Z,onBlur:le};return gt(D)?Object.assign(Object.assign({},K),D(gn(q,mn)).props||{}):D!=null&&D.props?Object.assign(Object.assign({},K),D.props(gn(q,mn))):K});return[vt(R,()=>{var K,re,ke;return(ke=(K=te().validateOnModelUpdate)!==null&&K!==void 0?K:(re=nr())===null||re===void 0?void 0:re.validateOnModelUpdate)!==null&&ke!==void 0?ke:!0}),H]}function $o(R){return Array.isArray(R)?R.map(D=>vt(D,!0)):vt(R)}function ee(R,D){const[A,q]=go(R,D);function te(){q.value.onBlur()}function le($){const H=ws($);De(a.toValue(R),H,!1),q.value.onInput()}function Z($){const H=ws($);De(a.toValue(R),H,!1),q.value.onChange()}return a.computed(()=>Object.assign(Object.assign({},q.value),{onBlur:te,onInput:le,onChange:Z,value:A.value}))}function wt(R,D){const[A,q]=go(R,D),te=z(a.toValue(R));function le(Z){A.value=Z}return a.computed(()=>{const Z=gt(D)?D(gn(te,mn)):D||{};return Object.assign({[Z.model||"modelValue"]:A.value,[`onUpdate:${Z.model||"modelValue"}`]:le},q.value)})}const Ae=Object.assign(Object.assign({},ue),{values:a.readonly(d),handleReset:()=>pe(),submitForm:ho});return a.provide(Gf,Ae),Ae}function vh(t,e,o,r){const n={touched:"some",pending:"some",valid:"every"},i=a.computed(()=>!rr(e,a.unref(o)));function s(){const c=t.value;return ct(n).reduce((d,u)=>{const f=n[u];return d[u]=c[f](h=>h[u]),d},{})}const l=a.reactive(s());return a.watchEffect(()=>{const c=s();l.touched=c.touched,l.valid=c.valid,l.pending=c.pending}),a.computed(()=>Object.assign(Object.assign({initialValues:a.unref(o)},l),{valid:l.valid&&!ct(r.value).length,dirty:i.value}))}function wh(t,e,o){const r=Bs(),n=a.ref(r),i=a.ref(ve(r));function s(l,c){c!=null&&c.force?(n.value=ve(l),i.value=ve(l)):(n.value=or(ve(n.value)||{},ve(l)),i.value=or(ve(i.value)||{},ve(l))),c!=null&&c.updateFields&&t.value.forEach(d=>{if(d.touched)return;const f=Pt(n.value,a.toValue(d.path));$t(e,a.toValue(d.path),ve(f))})}return{initialValues:n,originalInitialValues:i,setInitialValues:s}}function Ch(t,e){return e?{valid:t.valid&&e.valid,errors:[...t.errors,...e.errors]}:t}function _h(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Di,Rs;function Sh(){if(Rs)return Di;Rs=1;function t(y){this._maxSize=y,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(y){return this._values[y]},t.prototype.set=function(y,k){return this._size>=this._maxSize&&this.clear(),y in this._values||this._size++,this._values[y]=k};var e=/[^.^\]^[]+|(?=\[\]|\.\.)/g,o=/^\d+$/,r=/^\d/,n=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,i=/^\s*(['"]?)(.*?)(\1)\s*$/,s=512,l=new t(s),c=new t(s),d=new t(s);Di={Cache:t,split:f,normalizePath:u,setter:function(y){var k=u(y);return c.get(y)||c.set(y,function(_,v){for(var S=0,w=k.length,x=_;S<w-1;){var B=k[S];if(B==="__proto__"||B==="constructor"||B==="prototype")return _;x=x[k[S++]]}x[k[S]]=v})},getter:function(y,k){var C=u(y);return d.get(y)||d.set(y,function(v){for(var S=0,w=C.length;S<w;)if(v!=null||!k)v=v[C[S++]];else return;return v})},join:function(y){return y.reduce(function(k,C){return k+(g(C)||o.test(C)?"["+C+"]":(k?".":"")+C)},"")},forEach:function(y,k,C){h(Array.isArray(y)?y:f(y),k,C)}};function u(y){return l.get(y)||l.set(y,f(y).map(function(k){return k.replace(i,"$2")}))}function f(y){return y.match(e)||[""]}function h(y,k,C){var _=y.length,v,S,w,x;for(S=0;S<_;S++)v=y[S],v&&(b(v)&&(v='"'+v+'"'),x=g(v),w=!x&&/^\d+$/.test(v),k.call(C,v,x,w,S,y))}function g(y){return typeof y=="string"&&y&&["'",'"'].indexOf(y.charAt(0))!==-1}function m(y){return y.match(r)&&!y.match(o)}function p(y){return n.test(y)}function b(y){return!g(y)&&(m(y)||p(y))}return Di}var po=Sh(),Oi,Ds;function Bh(){if(Ds)return Oi;Ds=1;const t=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,e=u=>u.match(t)||[],o=u=>u[0].toUpperCase()+u.slice(1),r=(u,f)=>e(u).join(f).toLowerCase(),n=u=>e(u).reduce((f,h)=>`${f}${f?h[0].toUpperCase()+h.slice(1).toLowerCase():h.toLowerCase()}`,"");return Oi={words:e,upperFirst:o,camelCase:n,pascalCase:u=>o(n(u)),snakeCase:u=>r(u,"_"),kebabCase:u=>r(u,"-"),sentenceCase:u=>o(r(u," ")),titleCase:u=>e(u).map(o).join(" ")},Oi}var Ni=Bh(),pn={exports:{}},Os;function Eh(){if(Os)return pn.exports;Os=1,pn.exports=function(n){return t(e(n),n)},pn.exports.array=t;function t(n,i){var s=n.length,l=new Array(s),c={},d=s,u=o(i),f=r(n);for(i.forEach(function(g){if(!f.has(g[0])||!f.has(g[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});d--;)c[d]||h(n[d],d,new Set);return l;function h(g,m,p){if(p.has(g)){var b;try{b=", node was:"+JSON.stringify(g)}catch{b=""}throw new Error("Cyclic dependency"+b)}if(!f.has(g))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(g));if(!c[m]){c[m]=!0;var y=u.get(g)||new Set;if(y=Array.from(y),m=y.length){p.add(g);do{var k=y[--m];h(k,f.get(k),p)}while(m);p.delete(g)}l[--s]=g}}}function e(n){for(var i=new Set,s=0,l=n.length;s<l;s++){var c=n[s];i.add(c[0]),i.add(c[1])}return Array.from(i)}function o(n){for(var i=new Map,s=0,l=n.length;s<l;s++){var c=n[s];i.has(c[0])||i.set(c[0],new Set),i.has(c[1])||i.set(c[1],new Set),i.get(c[0]).add(c[1])}return i}function r(n){for(var i=new Map,s=0,l=n.length;s<l;s++)i.set(n[s],s);return i}return pn.exports}var Rh=Eh();const Dh=_h(Rh),Oh=Object.prototype.toString,Nh=Error.prototype.toString,Th=RegExp.prototype.toString,Ph=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",$h=/^Symbol\((.*)\)(.*)$/;function Ah(t){return t!=+t?"NaN":t===0&&1/t<0?"-0":""+t}function Ns(t,e=!1){if(t==null||t===!0||t===!1)return""+t;const o=typeof t;if(o==="number")return Ah(t);if(o==="string")return e?`"${t}"`:t;if(o==="function")return"[Function "+(t.name||"anonymous")+"]";if(o==="symbol")return Ph.call(t).replace($h,"Symbol($1)");const r=Oh.call(t).slice(8,-1);return r==="Date"?isNaN(t.getTime())?""+t:t.toISOString(t):r==="Error"||t instanceof Error?"["+Nh.call(t)+"]":r==="RegExp"?Th.call(t):null}function Kt(t,e){let o=Ns(t,e);return o!==null?o:JSON.stringify(t,function(r,n){let i=Ns(this[r],e);return i!==null?i:n},2)}function Ts(t){return t==null?[]:[].concat(t)}let Ps,$s,As,Mh=/\$\{\s*(\w+)\s*\}/g;Ps=Symbol.toStringTag;class Ms{constructor(e,o,r,n){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[Ps]="Error",this.name="ValidationError",this.value=o,this.path=r,this.type=n,this.errors=[],this.inner=[],Ts(e).forEach(i=>{if(Je.isError(i)){this.errors.push(...i.errors);const s=i.inner.length?i.inner:[i];this.inner.push(...s)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}$s=Symbol.hasInstance,As=Symbol.toStringTag;class Je extends Error{static formatError(e,o){const r=o.label||o.path||"this";return o=Object.assign({},o,{path:r,originalPath:o.path}),typeof e=="string"?e.replace(Mh,(n,i)=>Kt(o[i])):typeof e=="function"?e(o):e}static isError(e){return e&&e.name==="ValidationError"}constructor(e,o,r,n,i){const s=new Ms(e,o,r,n);if(i)return s;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[As]="Error",this.name=s.name,this.message=s.message,this.type=s.type,this.value=s.value,this.path=s.path,this.errors=s.errors,this.inner=s.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Je)}static[$s](e){return Ms[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let Ct={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:t,type:e,value:o,originalValue:r})=>{const n=r!=null&&r!==o?` (cast from the value \`${Kt(r,!0)}\`).`:".";return e!=="mixed"?`${t} must be a \`${e}\` type, but the final value was: \`${Kt(o,!0)}\``+n:`${t} must match the configured type. The validated value was: \`${Kt(o,!0)}\``+n}},Qe={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Vh={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Ti={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Fh={isValue:"${path} field must be ${value}"},bn={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:Ct,string:Qe,number:Vh,date:Ti,object:bn,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:Fh,tuple:{notType:t=>{const{path:e,value:o,spec:r}=t,n=r.types.length;if(Array.isArray(o)){if(o.length<n)return`${e} tuple value has too few items, expected a length of ${n} but got ${o.length} for value: \`${Kt(o,!0)}\``;if(o.length>n)return`${e} tuple value has too many items, expected a length of ${n} but got ${o.length} for value: \`${Kt(o,!0)}\``}return Je.formatError(Ct.notType,t)}}});const Pi=t=>t&&t.__isYupSchema__;class yn{static fromOptions(e,o){if(!o.then&&!o.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:n,otherwise:i}=o,s=typeof r=="function"?r:(...l)=>l.every(c=>c===r);return new yn(e,(l,c)=>{var d;let u=s(...l)?n:i;return(d=u==null?void 0:u(c))!=null?d:c})}constructor(e,o){this.fn=void 0,this.refs=e,this.refs=e,this.fn=o}resolve(e,o){let r=this.refs.map(i=>i.getValue(o==null?void 0:o.value,o==null?void 0:o.parent,o==null?void 0:o.context)),n=this.fn(r,e,o);if(n===void 0||n===e)return e;if(!Pi(n))throw new TypeError("conditions must return a schema object");return n.resolve(o)}}const kn={context:"$",value:"."};class bo{constructor(e,o={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof e!="string")throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),e==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===kn.context,this.isValue=this.key[0]===kn.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?kn.context:this.isValue?kn.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&po.getter(this.path,!0),this.map=o.map}getValue(e,o,r){let n=this.isContext?r:this.isValue?e:o;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(e,o){return this.getValue(e,o==null?void 0:o.parent,o==null?void 0:o.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}bo.prototype.__isYupRef=!0;const yo=t=>t==null;function Vo(t){function e({value:o,path:r="",options:n,originalValue:i,schema:s},l,c){const{name:d,test:u,params:f,message:h,skipAbsent:g}=t;let{parent:m,context:p,abortEarly:b=s.spec.abortEarly,disableStackTrace:y=s.spec.disableStackTrace}=n;function k(E){return bo.isRef(E)?E.getValue(o,m,p):E}function C(E={}){const O=Object.assign({value:o,originalValue:i,label:s.spec.label,path:E.path||r,spec:s.spec,disableStackTrace:E.disableStackTrace||y},f,E.params);for(const W of Object.keys(O))O[W]=k(O[W]);const M=new Je(Je.formatError(E.message||h,O),o,O.path,E.type||d,O.disableStackTrace);return M.params=O,M}const _=b?l:c;let v={path:r,parent:m,type:d,from:n.from,createError:C,resolve:k,options:n,originalValue:i,schema:s};const S=E=>{Je.isError(E)?_(E):E?c(null):_(C())},w=E=>{Je.isError(E)?_(E):l(E)};if(g&&yo(o))return S(!0);let B;try{var T;if(B=u.call(v,o,v),typeof((T=B)==null?void 0:T.then)=="function"){if(n.sync)throw new Error(`Validation test of type: "${v.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(B).then(S,w)}}catch(E){w(E);return}S(B)}return e.OPTIONS=t,e}function Ih(t,e,o,r=o){let n,i,s;return e?(po.forEach(e,(l,c,d)=>{let u=c?l.slice(1,l.length-1):l;t=t.resolve({context:r,parent:n,value:o});let f=t.type==="tuple",h=d?parseInt(u,10):0;if(t.innerType||f){if(f&&!d)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(o&&h>=o.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${l}, in the path: ${e}. because there is no value at that index. `);n=o,o=o&&o[h],t=f?t.spec.types[h]:t.innerType}if(!d){if(!t.fields||!t.fields[u])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${s} which is a type: "${t.type}")`);n=o,o=o&&o[u],t=t.fields[u]}i=u,s=c?"["+l+"]":"."+l}),{schema:t,parent:n,parentPath:i}):{parent:n,parentPath:e,schema:t}}class xn extends Set{describe(){const e=[];for(const o of this.values())e.push(bo.isRef(o)?o.describe():o);return e}resolveAll(e){let o=[];for(const r of this.values())o.push(e(r));return o}clone(){return new xn(this.values())}merge(e,o){const r=this.clone();return e.forEach(n=>r.add(n)),o.forEach(n=>r.delete(n)),r}}function Fo(t,e=new Map){if(Pi(t)||!t||typeof t!="object")return t;if(e.has(t))return e.get(t);let o;if(t instanceof Date)o=new Date(t.getTime()),e.set(t,o);else if(t instanceof RegExp)o=new RegExp(t),e.set(t,o);else if(Array.isArray(t)){o=new Array(t.length),e.set(t,o);for(let r=0;r<t.length;r++)o[r]=Fo(t[r],e)}else if(t instanceof Map){o=new Map,e.set(t,o);for(const[r,n]of t.entries())o.set(r,Fo(n,e))}else if(t instanceof Set){o=new Set,e.set(t,o);for(const r of t)o.add(Fo(r,e))}else if(t instanceof Object){o={},e.set(t,o);for(const[r,n]of Object.entries(t))o[r]=Fo(n,e)}else throw Error(`Unable to clone ${t}`);return o}class _t{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new xn,this._blacklist=new xn,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Ct.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},e==null?void 0:e.spec),this.withMutation(o=>{o.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const o=Object.create(Object.getPrototypeOf(this));return o.type=this.type,o._typeCheck=this._typeCheck,o._whitelist=this._whitelist.clone(),o._blacklist=this._blacklist.clone(),o.internalTests=Object.assign({},this.internalTests),o.exclusiveTests=Object.assign({},this.exclusiveTests),o.deps=[...this.deps],o.conditions=[...this.conditions],o.tests=[...this.tests],o.transforms=[...this.transforms],o.spec=Fo(Object.assign({},this.spec,e)),o}label(e){let o=this.clone();return o.spec.label=e,o}meta(...e){if(e.length===0)return this.spec.meta;let o=this.clone();return o.spec.meta=Object.assign(o.spec.meta||{},e[0]),o}withMutation(e){let o=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=o,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let o=this,r=e.clone();const n=Object.assign({},o.spec,r.spec);return r.spec=n,r.internalTests=Object.assign({},o.internalTests,r.internalTests),r._whitelist=o._whitelist.merge(e._whitelist,e._blacklist),r._blacklist=o._blacklist.merge(e._blacklist,e._whitelist),r.tests=o.tests,r.exclusiveTests=o.exclusiveTests,r.withMutation(i=>{e.tests.forEach(s=>{i.test(s.OPTIONS)})}),r.transforms=[...o.transforms,...r.transforms],r}isType(e){return e==null?!!(this.spec.nullable&&e===null||this.spec.optional&&e===void 0):this._typeCheck(e)}resolve(e){let o=this;if(o.conditions.length){let r=o.conditions;o=o.clone(),o.conditions=[],o=r.reduce((n,i)=>i.resolve(n,e),o),o=o.resolve(e)}return o}resolveOptions(e){var o,r,n,i;return Object.assign({},e,{from:e.from||[],strict:(o=e.strict)!=null?o:this.spec.strict,abortEarly:(r=e.abortEarly)!=null?r:this.spec.abortEarly,recursive:(n=e.recursive)!=null?n:this.spec.recursive,disableStackTrace:(i=e.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(e,o={}){let r=this.resolve(Object.assign({value:e},o)),n=o.assert==="ignore-optionality",i=r._cast(e,o);if(o.assert!==!1&&!r.isType(i)){if(n&&yo(i))return i;let s=Kt(e),l=Kt(i);throw new TypeError(`The value of ${o.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
9
|
+
*/function gt(t){return typeof t=="function"}function cs(t){return t==null}const Mo=t=>t!==null&&!!t&&typeof t=="object"&&!Array.isArray(t);function Si(t){return Number(t)>=0}function Uf(t){return typeof t=="object"&&t!==null}function qf(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}function ds(t){if(!Uf(t)||qf(t)!=="[object Object]")return!1;if(Object.getPrototypeOf(t)===null)return!0;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function or(t,e){return Object.keys(e).forEach(o=>{if(ds(e[o])&&ds(t[o])){t[o]||(t[o]={}),or(t[o],e[o]);return}t[o]=e[o]}),t}function fn(t){const e=t.split(".");if(!e.length)return"";let o=String(e[0]);for(let r=1;r<e.length;r++){if(Si(e[r])){o+=`[${e[r]}]`;continue}o+=`.${e[r]}`}return o}const Yf={};function Xf(t){return Yf[t]}function us(t,e,o){typeof o.value=="object"&&(o.value=xe(o.value)),!o.enumerable||o.get||o.set||!o.configurable||!o.writable||e==="__proto__"?Object.defineProperty(t,e,o):t[e]=o.value}function xe(t){if(typeof t!="object")return t;var e=0,o,r,n,i=Object.prototype.toString.call(t);if(i==="[object Object]"?n=Object.create(t.__proto__||null):i==="[object Array]"?n=Array(t.length):i==="[object Set]"?(n=new Set,t.forEach(function(s){n.add(xe(s))})):i==="[object Map]"?(n=new Map,t.forEach(function(s,l){n.set(xe(l),xe(s))})):i==="[object Date]"?n=new Date(+t):i==="[object RegExp]"?n=new RegExp(t.source,t.flags):i==="[object DataView]"?n=new t.constructor(xe(t.buffer)):i==="[object ArrayBuffer]"?n=t.slice(0):i.slice(-6)==="Array]"&&(n=new t.constructor(t)),n){for(r=Object.getOwnPropertySymbols(t);e<r.length;e++)us(n,r[e],Object.getOwnPropertyDescriptor(t,r[e]));for(e=0,r=Object.getOwnPropertyNames(t);e<r.length;e++)Object.hasOwnProperty.call(n,o=r[e])&&n[o]===t[o]||us(n,o,Object.getOwnPropertyDescriptor(t,o))}return n||t}const Kf=Symbol("vee-validate-form"),Gf=Symbol("vee-validate-form-context"),Jf=typeof window<"u";function Qf(t){return gt(t)&&!!t.__locatorRef}function Xt(t){return!!t&>(t.parse)&&t.__type==="VVTypedSchema"}function fs(t){return!!t&>(t.validate)}function Zf(t){return t==="checkbox"||t==="radio"}function eh(t){return Mo(t)||Array.isArray(t)}function th(t){return Array.isArray(t)?t.length===0:Mo(t)&&Object.keys(t).length===0}function hn(t){return/^\[.+\]$/i.test(t)}function oh(t){return hs(t)&&t.multiple}function hs(t){return t.tagName==="SELECT"}function rh(t){return gs(t)&&t.target&&"submit"in t.target}function gs(t){return t?!!(typeof Event<"u"&>(Event)&&t instanceof Event||t&&t.srcElement):!1}function rr(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,r,n;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(r=o;r--!==0;)if(!rr(t[r],e[r]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;for(r of t.entries())if(!rr(r[1],e.get(r[0])))return!1;return!0}if(ps(t)&&ps(e))return!(t.size!==e.size||t.name!==e.name||t.lastModified!==e.lastModified||t.type!==e.type);if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(o=t.length,o!=e.length)return!1;for(r=o;r--!==0;)if(t[r]!==e[r])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();if(n=Object.keys(t),o=n.length-ms(t,n),o!==Object.keys(e).length-ms(e,Object.keys(e)))return!1;for(r=o;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[r]))return!1;for(r=o;r--!==0;){var i=n[r];if(!rr(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function ms(t,e){let o=0;for(let n=e.length;n--!==0;){var r=e[n];t[r]===void 0&&o++}return o}function ps(t){return Jf?t instanceof File:!1}function Bi(t){return hn(t)?t.replace(/\[|\]/gi,""):t}function Pt(t,e,o){return t?hn(e)?t[Bi(e)]:(e||"").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((n,i)=>eh(n)&&i in n?n[i]:o,t):o}function $t(t,e,o){if(hn(e)){t[Bi(e)]=o;return}const r=e.split(/\.|\[(\d+)\]/).filter(Boolean);let n=t;for(let i=0;i<r.length;i++){if(i===r.length-1){n[r[i]]=o;return}(!(r[i]in n)||cs(n[r[i]]))&&(n[r[i]]=Si(r[i+1])?[]:{}),n=n[r[i]]}}function Ei(t,e){if(Array.isArray(t)&&Si(e)){t.splice(Number(e),1);return}Mo(t)&&delete t[e]}function bs(t,e){if(hn(e)){delete t[Bi(e)];return}const o=e.split(/\.|\[(\d+)\]/).filter(Boolean);let r=t;for(let i=0;i<o.length;i++){if(i===o.length-1){Ei(r,o[i]);break}if(!(o[i]in r)||cs(r[o[i]]))break;r=r[o[i]]}const n=o.map((i,s)=>Pt(t,o.slice(0,s).join(".")));for(let i=n.length-1;i>=0;i--)if(th(n[i])){if(i===0){Ei(t,o[0]);continue}Ei(n[i-1],o[i-1])}}function ct(t){return Object.keys(t)}function ys(t,e=0){let o=null,r=[];return function(...n){return o&&clearTimeout(o),o=setTimeout(()=>{const i=t(...n);r.forEach(s=>s(i)),r=[]},e),new Promise(i=>r.push(i))}}function nh(t,e){let o;return async function(...n){const i=t(...n);o=i;const s=await i;return i!==o?s:(o=void 0,e(s,n))}}function ks(t){return Array.isArray(t)?t:t?[t]:[]}function gn(t,e){const o={};for(const r in t)e.includes(r)||(o[r]=t[r]);return o}function ih(t){let e=null,o=[];return function(...r){const n=a.nextTick(()=>{if(e!==n)return;const i=t(...r);o.forEach(s=>s(i)),o=[],e=null});return e=n,new Promise(i=>o.push(i))}}function Ri(t){if(xs(t))return t._value}function xs(t){return"_value"in t}function ah(t){return t.type==="number"||t.type==="range"?Number.isNaN(t.valueAsNumber)?t.value:t.valueAsNumber:t.value}function vs(t){if(!gs(t))return t;const e=t.target;if(Zf(e.type)&&xs(e))return Ri(e);if(e.type==="file"&&e.files){const o=Array.from(e.files);return e.multiple?o:o[0]}if(oh(e))return Array.from(e.options).filter(o=>o.selected&&!o.disabled).map(Ri);if(hs(e)){const o=Array.from(e.options).find(r=>r.selected);return o?Ri(o):e.value}return ah(e)}function sh(t){const e={};return Object.defineProperty(e,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),t?Mo(t)&&t._$$isNormalized?t:Mo(t)?Object.keys(t).reduce((o,r)=>{const n=lh(t[r]);return t[r]!==!1&&(o[r]=ws(n)),o},e):typeof t!="string"?e:t.split("|").reduce((o,r)=>{const n=ch(r);return n.name&&(o[n.name]=ws(n.params)),o},e):e}function lh(t){return t===!0?[]:Array.isArray(t)||Mo(t)?t:[t]}function ws(t){const e=o=>typeof o=="string"&&o[0]==="@"?dh(o.slice(1)):o;return Array.isArray(t)?t.map(e):t instanceof RegExp?[t]:Object.keys(t).reduce((o,r)=>(o[r]=e(t[r]),o),{})}const ch=t=>{let e=[];const o=t.split(":")[0];return t.includes(":")&&(e=t.split(":").slice(1).join(":").split(",")),{name:o,params:e}};function dh(t){const e=o=>{var r;return(r=Pt(o,t))!==null&&r!==void 0?r:o[t]};return e.__locatorRef=t,e}let uh=Object.assign({},{generateMessage:({field:t})=>`${t} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0});const nr=()=>uh;async function fh(t,e,o={}){const r=o==null?void 0:o.bails,n={name:(o==null?void 0:o.name)||"{field}",rules:e,label:o==null?void 0:o.label,bails:r??!0,formData:(o==null?void 0:o.values)||{}},i=await hh(n,t);return Object.assign(Object.assign({},i),{valid:!i.errors.length})}async function hh(t,e){const o=t.rules;if(Xt(o)||fs(o))return mh(e,Object.assign(Object.assign({},t),{rules:o}));if(gt(o)||Array.isArray(o)){const l={field:t.label||t.name,name:t.name,label:t.label,form:t.formData,value:e},c=Array.isArray(o)?o:[o],d=c.length,u=[];for(let f=0;f<d;f++){const h=c[f],g=await h(e,l);if(!(typeof g!="string"&&!Array.isArray(g)&&g)){if(Array.isArray(g))u.push(...g);else{const p=typeof g=="string"?g:_s(l);u.push(p)}if(t.bails)return{errors:u}}}return{errors:u}}const r=Object.assign(Object.assign({},t),{rules:sh(o)}),n=[],i=Object.keys(r.rules),s=i.length;for(let l=0;l<s;l++){const c=i[l],d=await ph(r,e,{name:c,params:r.rules[c]});if(d.error&&(n.push(d.error),t.bails))return{errors:n}}return{errors:n}}function gh(t){return!!t&&t.name==="ValidationError"}function Cs(t){return{__type:"VVTypedSchema",async parse(o,r){var n;try{return{output:await t.validate(o,{abortEarly:!1,context:(r==null?void 0:r.formData)||{}}),errors:[]}}catch(i){if(!gh(i))throw i;if(!(!((n=i.inner)===null||n===void 0)&&n.length)&&i.errors.length)return{errors:[{path:i.path,errors:i.errors}]};const s=i.inner.reduce((l,c)=>{const d=c.path||"";return l[d]||(l[d]={errors:[],path:d}),l[d].errors.push(...c.errors),l},{});return{errors:Object.values(s)}}}}}async function mh(t,e){const r=await(Xt(e.rules)?e.rules:Cs(e.rules)).parse(t,{formData:e.formData}),n=[];for(const i of r.errors)i.errors.length&&n.push(...i.errors);return{value:r.value,errors:n}}async function ph(t,e,o){const r=Xf(o.name);if(!r)throw new Error(`No such validator '${o.name}' exists.`);const n=bh(o.params,t.formData),i={field:t.label||t.name,name:t.name,label:t.label,value:e,form:t.formData,rule:Object.assign(Object.assign({},o),{params:n})},s=await r(e,n,i);return typeof s=="string"?{error:s}:{error:s?void 0:_s(i)}}function _s(t){const e=nr().generateMessage;return e?e(t):"Field is invalid"}function bh(t,e){const o=r=>Qf(r)?r(e):r;return Array.isArray(t)?t.map(o):Object.keys(t).reduce((r,n)=>(r[n]=o(t[n]),r),{})}async function yh(t,e){const r=await(Xt(t)?t:Cs(t)).parse(xe(e),{formData:xe(e)}),n={},i={};for(const s of r.errors){const l=s.errors,c=(s.path||"").replace(/\["(\d+)"\]/g,(d,u)=>`[${u}]`);n[c]={valid:!l.length,errors:l},l.length&&(i[c]=l[0])}return{valid:!r.errors.length,results:n,errors:i,values:r.value,source:"schema"}}async function kh(t,e,o){const n=ct(t).map(async d=>{var u,f,h;const g=(u=o==null?void 0:o.names)===null||u===void 0?void 0:u[d],m=await fh(Pt(e,d),t[d],{name:(g==null?void 0:g.name)||d,label:g==null?void 0:g.label,values:e,bails:(h=(f=o==null?void 0:o.bailsMap)===null||f===void 0?void 0:f[d])!==null&&h!==void 0?h:!0});return Object.assign(Object.assign({},m),{path:d})});let i=!0;const s=await Promise.all(n),l={},c={};for(const d of s)l[d.path]={valid:d.valid,errors:d.errors},d.valid||(i=!1,c[d.path]=d.errors[0]);return{valid:i,results:l,errors:c,source:"schema"}}let xh=0;const mn=["bails","fieldsCount","id","multiple","type","validate"];function Ss(t){const e={},o=Object.assign({},a.toValue(e)),r=a.unref(void 0);return r&&Xt(r)&>(r.cast)?xe(r.cast(o)||{}):xe(o)}function Bs(t){var e;const o=xh++,r="Form";let n=0;const i=a.ref(!1),s=a.ref(!1),l=a.ref(0),c=[],d=a.reactive(Ss()),u=a.ref([]),f=a.ref({}),h=a.ref({}),g=ih(()=>{h.value=u.value.reduce((R,D)=>(R[fn(a.toValue(D.path))]=D,R),{})});function m(R,D){const A=z(R);if(!A){typeof R=="string"&&(f.value[fn(R)]=ks(D));return}if(typeof R=="string"){const q=fn(R);f.value[q]&&delete f.value[q]}A.errors=ks(D),A.valid=!A.errors.length}function p(R){ct(R).forEach(D=>{m(D,R[D])})}const b=a.computed(()=>{const R=u.value.reduce((D,A)=>(A.errors.length&&(D[a.toValue(A.path)]=A.errors),D),{});return Object.assign(Object.assign({},f.value),R)}),y=a.computed(()=>ct(b.value).reduce((R,D)=>{const A=b.value[D];return A!=null&&A.length&&(R[D]=A[0]),R},{})),k=a.computed(()=>u.value.reduce((R,D)=>(R[a.toValue(D.path)]={name:a.toValue(D.path)||"",label:D.label||""},R),{})),C=a.computed(()=>u.value.reduce((R,D)=>{var A;return R[a.toValue(D.path)]=(A=D.bails)!==null&&A!==void 0?A:!0,R},{})),_=Object.assign({},{}),v=(e=void 0)!==null&&e!==void 0?e:!1,{initialValues:S,originalInitialValues:w,setInitialValues:x}=wh(u,d),B=vh(u,d,w,y),T=a.computed(()=>u.value.reduce((R,D)=>{const A=Pt(d,a.toValue(D.path));return $t(R,a.toValue(D.path),A),R},{})),E=void 0;function O(R,D){var A,q;const te=a.computed(()=>Pt(S.value,a.toValue(R))),le=h.value[a.toValue(R)],Z=(D==null?void 0:D.type)==="checkbox"||(D==null?void 0:D.type)==="radio";if(le&&Z){le.multiple=!0;const Oe=n++;return Array.isArray(le.id)?le.id.push(Oe):le.id=[le.id,Oe],le.fieldsCount++,le.__flags.pendingUnmount[Oe]=!1,le}const $=a.computed(()=>Pt(d,a.toValue(R))),H=a.toValue(R),G=P.findIndex(Oe=>Oe===H);G!==-1&&P.splice(G,1);const K=a.computed(()=>{var Oe,He,an,sn;const ln=a.toValue(E);if(Xt(ln))return(He=(Oe=ln.describe)===null||Oe===void 0?void 0:Oe.call(ln,a.toValue(R)).required)!==null&&He!==void 0?He:!1;const es=a.toValue(D==null?void 0:D.schema);return Xt(es)&&(sn=(an=es.describe)===null||an===void 0?void 0:an.call(es).required)!==null&&sn!==void 0?sn:!1}),re=n++,ke=a.reactive({id:re,path:R,touched:!1,pending:!1,valid:!0,validated:!!(!((A=_[H])===null||A===void 0)&&A.length),required:K,initialValue:te,errors:a.shallowRef([]),bails:(q=D==null?void 0:D.bails)!==null&&q!==void 0?q:!1,label:D==null?void 0:D.label,type:(D==null?void 0:D.type)||"default",value:$,multiple:!1,__flags:{pendingUnmount:{[re]:!1},pendingReset:!1},fieldsCount:1,validate:D==null?void 0:D.validate,dirty:a.computed(()=>!rr(a.unref($),a.unref(te)))});return u.value.push(ke),h.value[H]=ke,g(),y.value[H]&&!_[H]&&a.nextTick(()=>{ot(H,{mode:"silent"})}),a.isRef(R)&&a.watch(R,Oe=>{g();const He=xe($.value);h.value[Oe]=ke,a.nextTick(()=>{$t(d,Oe,He)})}),ke}const M=ys(ht,5),W=ys(ht,5),Y=nh(async R=>await(R==="silent"?M():W()),(R,[D])=>{const A=ct(ue.errorBag.value),te=[...new Set([...ct(R.results),...u.value.map(le=>le.path),...A])].sort().reduce((le,Z)=>{var $;const H=Z,G=z(H)||F(H),K=(($=R.results[H])===null||$===void 0?void 0:$.errors)||[],re=a.toValue(G==null?void 0:G.path)||H,ke=Ch({errors:K,valid:!K.length},le.results[re]);return le.results[re]=ke,ke.valid||(le.errors[re]=ke.errors[0]),G&&f.value[re]&&delete f.value[re],G?(G.valid=ke.valid,D==="silent"||D==="validated-only"&&!G.validated||m(G,ke.errors),le):(m(re,K),le)},{valid:R.valid,results:{},errors:{},source:R.source});return R.values&&(te.values=R.values,te.source=R.source),ct(te.results).forEach(le=>{var Z;const $=z(le);$&&D!=="silent"&&(D==="validated-only"&&!$.validated||m($,(Z=te.results[le])===null||Z===void 0?void 0:Z.errors))}),te});function I(R){u.value.forEach(R)}function z(R){const D=typeof R=="string"?fn(R):R;return typeof D=="string"?h.value[D]:D}function F(R){return u.value.filter(A=>R.startsWith(a.toValue(A.path))).reduce((A,q)=>A?q.path.length>A.path.length?q:A:q,void 0)}let P=[],L;function Q(R){return P.push(R),L||(L=a.nextTick(()=>{[...P].sort().reverse().forEach(A=>{bs(d,A)}),P=[],L=null})),L}function oe(R){return function(A,q){return function(le){return le instanceof Event&&(le.preventDefault(),le.stopPropagation()),I(Z=>Z.touched=!0),i.value=!0,l.value++,Te().then(Z=>{const $=xe(d);if(Z.valid&&typeof A=="function"){const H=xe(T.value);let G=R?H:$;return Z.values&&(G=Z.source==="schema"?Z.values:Object.assign({},G,Z.values)),A(G,{evt:le,controlledValues:H,setErrors:p,setFieldError:m,setTouched:me,setFieldTouched:ft,setValues:Xe,setFieldValue:De,resetForm:pe,resetField:ge})}!Z.valid&&typeof q=="function"&&q({values:$,evt:le,errors:Z.errors,results:Z.results})}).then(Z=>(i.value=!1,Z),Z=>{throw i.value=!1,Z})}}}const X=oe(!1);X.withControlled=oe(!0);function J(R,D){const A=u.value.findIndex(te=>te.path===R&&(Array.isArray(te.id)?te.id.includes(D):te.id===D)),q=u.value[A];if(!(A===-1||!q)){if(a.nextTick(()=>{ot(R,{mode:"silent",warn:!1})}),q.multiple&&q.fieldsCount&&q.fieldsCount--,Array.isArray(q.id)){const te=q.id.indexOf(D);te>=0&&q.id.splice(te,1),delete q.__flags.pendingUnmount[D]}(!q.multiple||q.fieldsCount<=0)&&(u.value.splice(A,1),Tt(R),g(),delete h.value[R])}}function ie(R){ct(h.value).forEach(D=>{D.startsWith(R)&&delete h.value[D]}),u.value=u.value.filter(D=>!D.path.startsWith(R)),a.nextTick(()=>{g()})}const ue={name:r,formId:o,values:d,controlledValues:T,errorBag:b,errors:y,schema:E,submitCount:l,meta:B,isSubmitting:i,isValidating:s,fieldArrays:c,keepValuesOnUnmount:v,validateSchema:a.unref(E)?Y:void 0,validate:Te,setFieldError:m,validateField:ot,setFieldValue:De,setValues:Xe,setErrors:p,setFieldTouched:ft,setTouched:me,resetForm:pe,resetField:ge,handleSubmit:X,useFieldModel:$o,defineInputBinds:ee,defineComponentBinds:wt,defineField:go,stageInitialValue:Le,unsetInitialValue:Tt,setFieldInitialValue:rt,createPathState:O,getPathState:z,unsetPathValue:Q,removePathState:J,initialValues:S,getAllPathStates:()=>u.value,destroyPath:ie,isFieldTouched:U,isFieldDirty:V,isFieldValid:he};function De(R,D,A=!0){const q=xe(D),te=typeof R=="string"?R:R.path;z(te)||O(te),$t(d,te,q),A&&ot(te)}function st(R,D=!0){ct(d).forEach(A=>{delete d[A]}),ct(R).forEach(A=>{De(A,R[A],!1)}),D&&Te()}function Xe(R,D=!0){or(d,R),c.forEach(A=>A&&A.reset()),D&&Te()}function vt(R,D){const A=z(a.toValue(R))||O(R);return a.computed({get(){return A.value},set(q){var te;const le=a.toValue(R);De(le,q,(te=a.toValue(D))!==null&&te!==void 0?te:!1)}})}function ft(R,D){const A=z(R);A&&(A.touched=D)}function U(R){const D=z(R);return D?D.touched:u.value.filter(A=>A.path.startsWith(R)).some(A=>A.touched)}function V(R){const D=z(R);return D?D.dirty:u.value.filter(A=>A.path.startsWith(R)).some(A=>A.dirty)}function he(R){const D=z(R);return D?D.valid:u.value.filter(A=>A.path.startsWith(R)).every(A=>A.valid)}function me(R){if(typeof R=="boolean"){I(D=>{D.touched=R});return}ct(R).forEach(D=>{ft(D,!!R[D])})}function ge(R,D){var A;const q=D&&"value"in D?D.value:Pt(S.value,R),te=z(R);te&&(te.__flags.pendingReset=!0),rt(R,xe(q),!0),De(R,q,!1),ft(R,(A=D==null?void 0:D.touched)!==null&&A!==void 0?A:!1),m(R,(D==null?void 0:D.errors)||[]),a.nextTick(()=>{te&&(te.__flags.pendingReset=!1)})}function pe(R,D){let A=xe(R!=null&&R.values?R.values:w.value);A=D!=null&&D.force?A:or(w.value,A),A=Xt(E)&>(E.cast)?E.cast(A):A,x(A,{force:D==null?void 0:D.force}),I(q=>{var te;q.__flags.pendingReset=!0,q.validated=!1,q.touched=((te=R==null?void 0:R.touched)===null||te===void 0?void 0:te[a.toValue(q.path)])||!1,De(a.toValue(q.path),Pt(A,a.toValue(q.path)),!1),m(a.toValue(q.path),void 0)}),D!=null&&D.force?st(A,!1):Xe(A,!1),p((R==null?void 0:R.errors)||{}),l.value=(R==null?void 0:R.submitCount)||0,a.nextTick(()=>{Te({mode:"silent"}),I(q=>{q.__flags.pendingReset=!1})})}async function Te(R){const D=(R==null?void 0:R.mode)||"force";if(D==="force"&&I(Z=>Z.validated=!0),ue.validateSchema)return ue.validateSchema(D);s.value=!0;const A=await Promise.all(u.value.map(Z=>Z.validate?Z.validate(R).then($=>({key:a.toValue(Z.path),valid:$.valid,errors:$.errors,value:$.value})):Promise.resolve({key:a.toValue(Z.path),valid:!0,errors:[],value:void 0})));s.value=!1;const q={},te={},le={};for(const Z of A)q[Z.key]={valid:Z.valid,errors:Z.errors},Z.value&&$t(le,Z.key,Z.value),Z.errors.length&&(te[Z.key]=Z.errors[0]);return{valid:A.every(Z=>Z.valid),results:q,errors:te,values:le,source:"fields"}}async function ot(R,D){var A;const q=z(R);return q&&(D==null?void 0:D.mode)!=="silent"&&(q.validated=!0),q!=null&&q.validate?q.validate(D):(!q&&(A=D==null?void 0:D.warn),Promise.resolve({errors:[],valid:!0}))}function Tt(R){bs(S.value,R)}function Le(R,D,A=!1){rt(R,D),$t(d,R,D),A&&$t(w.value,R,xe(D))}function rt(R,D,A=!1){$t(S.value,R,xe(D)),A&&$t(w.value,R,xe(D))}async function ht(){const R=a.unref(E);if(!R)return{valid:!0,results:{},errors:{},source:"none"};s.value=!0;const D=fs(R)||Xt(R)?await yh(R,d):await kh(R,d,{names:k.value,bailsMap:C.value});return s.value=!1,D}const ho=X((R,{evt:D})=>{rh(D)&&D.target.submit()});a.onMounted(()=>{ue.validateSchema&&ue.validateSchema("silent")}),a.isRef(E)&&a.watch(E,()=>{var R;(R=ue.validateSchema)===null||R===void 0||R.call(ue,"validated-only")}),a.provide(Kf,ue);function go(R,D){const A=gt(D)||D==null?void 0:D.label,q=z(a.toValue(R))||O(R,{label:A}),te=()=>gt(D)?D(gn(q,mn)):D||{};function le(){var K;q.touched=!0,((K=te().validateOnBlur)!==null&&K!==void 0?K:nr().validateOnBlur)&&ot(a.toValue(q.path))}function Z(){var K;((K=te().validateOnInput)!==null&&K!==void 0?K:nr().validateOnInput)&&a.nextTick(()=>{ot(a.toValue(q.path))})}function $(){var K;((K=te().validateOnChange)!==null&&K!==void 0?K:nr().validateOnChange)&&a.nextTick(()=>{ot(a.toValue(q.path))})}const H=a.computed(()=>{const K={onChange:$,onInput:Z,onBlur:le};return gt(D)?Object.assign(Object.assign({},K),D(gn(q,mn)).props||{}):D!=null&&D.props?Object.assign(Object.assign({},K),D.props(gn(q,mn))):K});return[vt(R,()=>{var K,re,ke;return(ke=(K=te().validateOnModelUpdate)!==null&&K!==void 0?K:(re=nr())===null||re===void 0?void 0:re.validateOnModelUpdate)!==null&&ke!==void 0?ke:!0}),H]}function $o(R){return Array.isArray(R)?R.map(D=>vt(D,!0)):vt(R)}function ee(R,D){const[A,q]=go(R,D);function te(){q.value.onBlur()}function le($){const H=vs($);De(a.toValue(R),H,!1),q.value.onInput()}function Z($){const H=vs($);De(a.toValue(R),H,!1),q.value.onChange()}return a.computed(()=>Object.assign(Object.assign({},q.value),{onBlur:te,onInput:le,onChange:Z,value:A.value}))}function wt(R,D){const[A,q]=go(R,D),te=z(a.toValue(R));function le(Z){A.value=Z}return a.computed(()=>{const Z=gt(D)?D(gn(te,mn)):D||{};return Object.assign({[Z.model||"modelValue"]:A.value,[`onUpdate:${Z.model||"modelValue"}`]:le},q.value)})}const Ae=Object.assign(Object.assign({},ue),{values:a.readonly(d),handleReset:()=>pe(),submitForm:ho});return a.provide(Gf,Ae),Ae}function vh(t,e,o,r){const n={touched:"some",pending:"some",valid:"every"},i=a.computed(()=>!rr(e,a.unref(o)));function s(){const c=t.value;return ct(n).reduce((d,u)=>{const f=n[u];return d[u]=c[f](h=>h[u]),d},{})}const l=a.reactive(s());return a.watchEffect(()=>{const c=s();l.touched=c.touched,l.valid=c.valid,l.pending=c.pending}),a.computed(()=>Object.assign(Object.assign({initialValues:a.unref(o)},l),{valid:l.valid&&!ct(r.value).length,dirty:i.value}))}function wh(t,e,o){const r=Ss(),n=a.ref(r),i=a.ref(xe(r));function s(l,c){c!=null&&c.force?(n.value=xe(l),i.value=xe(l)):(n.value=or(xe(n.value)||{},xe(l)),i.value=or(xe(i.value)||{},xe(l))),c!=null&&c.updateFields&&t.value.forEach(d=>{if(d.touched)return;const f=Pt(n.value,a.toValue(d.path));$t(e,a.toValue(d.path),xe(f))})}return{initialValues:n,originalInitialValues:i,setInitialValues:s}}function Ch(t,e){return e?{valid:t.valid&&e.valid,errors:[...t.errors,...e.errors]}:t}function _h(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Di,Es;function Sh(){if(Es)return Di;Es=1;function t(y){this._maxSize=y,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(y){return this._values[y]},t.prototype.set=function(y,k){return this._size>=this._maxSize&&this.clear(),y in this._values||this._size++,this._values[y]=k};var e=/[^.^\]^[]+|(?=\[\]|\.\.)/g,o=/^\d+$/,r=/^\d/,n=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,i=/^\s*(['"]?)(.*?)(\1)\s*$/,s=512,l=new t(s),c=new t(s),d=new t(s);Di={Cache:t,split:f,normalizePath:u,setter:function(y){var k=u(y);return c.get(y)||c.set(y,function(_,v){for(var S=0,w=k.length,x=_;S<w-1;){var B=k[S];if(B==="__proto__"||B==="constructor"||B==="prototype")return _;x=x[k[S++]]}x[k[S]]=v})},getter:function(y,k){var C=u(y);return d.get(y)||d.set(y,function(v){for(var S=0,w=C.length;S<w;)if(v!=null||!k)v=v[C[S++]];else return;return v})},join:function(y){return y.reduce(function(k,C){return k+(g(C)||o.test(C)?"["+C+"]":(k?".":"")+C)},"")},forEach:function(y,k,C){h(Array.isArray(y)?y:f(y),k,C)}};function u(y){return l.get(y)||l.set(y,f(y).map(function(k){return k.replace(i,"$2")}))}function f(y){return y.match(e)||[""]}function h(y,k,C){var _=y.length,v,S,w,x;for(S=0;S<_;S++)v=y[S],v&&(b(v)&&(v='"'+v+'"'),x=g(v),w=!x&&/^\d+$/.test(v),k.call(C,v,x,w,S,y))}function g(y){return typeof y=="string"&&y&&["'",'"'].indexOf(y.charAt(0))!==-1}function m(y){return y.match(r)&&!y.match(o)}function p(y){return n.test(y)}function b(y){return!g(y)&&(m(y)||p(y))}return Di}var po=Sh(),Oi,Rs;function Bh(){if(Rs)return Oi;Rs=1;const t=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,e=u=>u.match(t)||[],o=u=>u[0].toUpperCase()+u.slice(1),r=(u,f)=>e(u).join(f).toLowerCase(),n=u=>e(u).reduce((f,h)=>`${f}${f?h[0].toUpperCase()+h.slice(1).toLowerCase():h.toLowerCase()}`,"");return Oi={words:e,upperFirst:o,camelCase:n,pascalCase:u=>o(n(u)),snakeCase:u=>r(u,"_"),kebabCase:u=>r(u,"-"),sentenceCase:u=>o(r(u," ")),titleCase:u=>e(u).map(o).join(" ")},Oi}var Ni=Bh(),pn={exports:{}},Ds;function Eh(){if(Ds)return pn.exports;Ds=1,pn.exports=function(n){return t(e(n),n)},pn.exports.array=t;function t(n,i){var s=n.length,l=new Array(s),c={},d=s,u=o(i),f=r(n);for(i.forEach(function(g){if(!f.has(g[0])||!f.has(g[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});d--;)c[d]||h(n[d],d,new Set);return l;function h(g,m,p){if(p.has(g)){var b;try{b=", node was:"+JSON.stringify(g)}catch{b=""}throw new Error("Cyclic dependency"+b)}if(!f.has(g))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(g));if(!c[m]){c[m]=!0;var y=u.get(g)||new Set;if(y=Array.from(y),m=y.length){p.add(g);do{var k=y[--m];h(k,f.get(k),p)}while(m);p.delete(g)}l[--s]=g}}}function e(n){for(var i=new Set,s=0,l=n.length;s<l;s++){var c=n[s];i.add(c[0]),i.add(c[1])}return Array.from(i)}function o(n){for(var i=new Map,s=0,l=n.length;s<l;s++){var c=n[s];i.has(c[0])||i.set(c[0],new Set),i.has(c[1])||i.set(c[1],new Set),i.get(c[0]).add(c[1])}return i}function r(n){for(var i=new Map,s=0,l=n.length;s<l;s++)i.set(n[s],s);return i}return pn.exports}var Rh=Eh();const Dh=_h(Rh),Oh=Object.prototype.toString,Nh=Error.prototype.toString,Th=RegExp.prototype.toString,Ph=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",$h=/^Symbol\((.*)\)(.*)$/;function Ah(t){return t!=+t?"NaN":t===0&&1/t<0?"-0":""+t}function Os(t,e=!1){if(t==null||t===!0||t===!1)return""+t;const o=typeof t;if(o==="number")return Ah(t);if(o==="string")return e?`"${t}"`:t;if(o==="function")return"[Function "+(t.name||"anonymous")+"]";if(o==="symbol")return Ph.call(t).replace($h,"Symbol($1)");const r=Oh.call(t).slice(8,-1);return r==="Date"?isNaN(t.getTime())?""+t:t.toISOString(t):r==="Error"||t instanceof Error?"["+Nh.call(t)+"]":r==="RegExp"?Th.call(t):null}function Kt(t,e){let o=Os(t,e);return o!==null?o:JSON.stringify(t,function(r,n){let i=Os(this[r],e);return i!==null?i:n},2)}function Ns(t){return t==null?[]:[].concat(t)}let Ts,Ps,$s,Mh=/\$\{\s*(\w+)\s*\}/g;Ts=Symbol.toStringTag;class As{constructor(e,o,r,n){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[Ts]="Error",this.name="ValidationError",this.value=o,this.path=r,this.type=n,this.errors=[],this.inner=[],Ns(e).forEach(i=>{if(Je.isError(i)){this.errors.push(...i.errors);const s=i.inner.length?i.inner:[i];this.inner.push(...s)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}Ps=Symbol.hasInstance,$s=Symbol.toStringTag;class Je extends Error{static formatError(e,o){const r=o.label||o.path||"this";return o=Object.assign({},o,{path:r,originalPath:o.path}),typeof e=="string"?e.replace(Mh,(n,i)=>Kt(o[i])):typeof e=="function"?e(o):e}static isError(e){return e&&e.name==="ValidationError"}constructor(e,o,r,n,i){const s=new As(e,o,r,n);if(i)return s;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[$s]="Error",this.name=s.name,this.message=s.message,this.type=s.type,this.value=s.value,this.path=s.path,this.errors=s.errors,this.inner=s.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Je)}static[Ps](e){return As[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let Ct={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:t,type:e,value:o,originalValue:r})=>{const n=r!=null&&r!==o?` (cast from the value \`${Kt(r,!0)}\`).`:".";return e!=="mixed"?`${t} must be a \`${e}\` type, but the final value was: \`${Kt(o,!0)}\``+n:`${t} must match the configured type. The validated value was: \`${Kt(o,!0)}\``+n}},Qe={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Vh={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Ti={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Fh={isValue:"${path} field must be ${value}"},bn={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:Ct,string:Qe,number:Vh,date:Ti,object:bn,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:Fh,tuple:{notType:t=>{const{path:e,value:o,spec:r}=t,n=r.types.length;if(Array.isArray(o)){if(o.length<n)return`${e} tuple value has too few items, expected a length of ${n} but got ${o.length} for value: \`${Kt(o,!0)}\``;if(o.length>n)return`${e} tuple value has too many items, expected a length of ${n} but got ${o.length} for value: \`${Kt(o,!0)}\``}return Je.formatError(Ct.notType,t)}}});const Pi=t=>t&&t.__isYupSchema__;class yn{static fromOptions(e,o){if(!o.then&&!o.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:n,otherwise:i}=o,s=typeof r=="function"?r:(...l)=>l.every(c=>c===r);return new yn(e,(l,c)=>{var d;let u=s(...l)?n:i;return(d=u==null?void 0:u(c))!=null?d:c})}constructor(e,o){this.fn=void 0,this.refs=e,this.refs=e,this.fn=o}resolve(e,o){let r=this.refs.map(i=>i.getValue(o==null?void 0:o.value,o==null?void 0:o.parent,o==null?void 0:o.context)),n=this.fn(r,e,o);if(n===void 0||n===e)return e;if(!Pi(n))throw new TypeError("conditions must return a schema object");return n.resolve(o)}}const kn={context:"$",value:"."};class bo{constructor(e,o={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof e!="string")throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),e==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===kn.context,this.isValue=this.key[0]===kn.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?kn.context:this.isValue?kn.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&po.getter(this.path,!0),this.map=o.map}getValue(e,o,r){let n=this.isContext?r:this.isValue?e:o;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(e,o){return this.getValue(e,o==null?void 0:o.parent,o==null?void 0:o.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}bo.prototype.__isYupRef=!0;const yo=t=>t==null;function Vo(t){function e({value:o,path:r="",options:n,originalValue:i,schema:s},l,c){const{name:d,test:u,params:f,message:h,skipAbsent:g}=t;let{parent:m,context:p,abortEarly:b=s.spec.abortEarly,disableStackTrace:y=s.spec.disableStackTrace}=n;function k(E){return bo.isRef(E)?E.getValue(o,m,p):E}function C(E={}){const O=Object.assign({value:o,originalValue:i,label:s.spec.label,path:E.path||r,spec:s.spec,disableStackTrace:E.disableStackTrace||y},f,E.params);for(const W of Object.keys(O))O[W]=k(O[W]);const M=new Je(Je.formatError(E.message||h,O),o,O.path,E.type||d,O.disableStackTrace);return M.params=O,M}const _=b?l:c;let v={path:r,parent:m,type:d,from:n.from,createError:C,resolve:k,options:n,originalValue:i,schema:s};const S=E=>{Je.isError(E)?_(E):E?c(null):_(C())},w=E=>{Je.isError(E)?_(E):l(E)};if(g&&yo(o))return S(!0);let B;try{var T;if(B=u.call(v,o,v),typeof((T=B)==null?void 0:T.then)=="function"){if(n.sync)throw new Error(`Validation test of type: "${v.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(B).then(S,w)}}catch(E){w(E);return}S(B)}return e.OPTIONS=t,e}function Ih(t,e,o,r=o){let n,i,s;return e?(po.forEach(e,(l,c,d)=>{let u=c?l.slice(1,l.length-1):l;t=t.resolve({context:r,parent:n,value:o});let f=t.type==="tuple",h=d?parseInt(u,10):0;if(t.innerType||f){if(f&&!d)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(o&&h>=o.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${l}, in the path: ${e}. because there is no value at that index. `);n=o,o=o&&o[h],t=f?t.spec.types[h]:t.innerType}if(!d){if(!t.fields||!t.fields[u])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${s} which is a type: "${t.type}")`);n=o,o=o&&o[u],t=t.fields[u]}i=u,s=c?"["+l+"]":"."+l}),{schema:t,parent:n,parentPath:i}):{parent:n,parentPath:e,schema:t}}class xn extends Set{describe(){const e=[];for(const o of this.values())e.push(bo.isRef(o)?o.describe():o);return e}resolveAll(e){let o=[];for(const r of this.values())o.push(e(r));return o}clone(){return new xn(this.values())}merge(e,o){const r=this.clone();return e.forEach(n=>r.add(n)),o.forEach(n=>r.delete(n)),r}}function Fo(t,e=new Map){if(Pi(t)||!t||typeof t!="object")return t;if(e.has(t))return e.get(t);let o;if(t instanceof Date)o=new Date(t.getTime()),e.set(t,o);else if(t instanceof RegExp)o=new RegExp(t),e.set(t,o);else if(Array.isArray(t)){o=new Array(t.length),e.set(t,o);for(let r=0;r<t.length;r++)o[r]=Fo(t[r],e)}else if(t instanceof Map){o=new Map,e.set(t,o);for(const[r,n]of t.entries())o.set(r,Fo(n,e))}else if(t instanceof Set){o=new Set,e.set(t,o);for(const r of t)o.add(Fo(r,e))}else if(t instanceof Object){o={},e.set(t,o);for(const[r,n]of Object.entries(t))o[r]=Fo(n,e)}else throw Error(`Unable to clone ${t}`);return o}class _t{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new xn,this._blacklist=new xn,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Ct.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},e==null?void 0:e.spec),this.withMutation(o=>{o.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const o=Object.create(Object.getPrototypeOf(this));return o.type=this.type,o._typeCheck=this._typeCheck,o._whitelist=this._whitelist.clone(),o._blacklist=this._blacklist.clone(),o.internalTests=Object.assign({},this.internalTests),o.exclusiveTests=Object.assign({},this.exclusiveTests),o.deps=[...this.deps],o.conditions=[...this.conditions],o.tests=[...this.tests],o.transforms=[...this.transforms],o.spec=Fo(Object.assign({},this.spec,e)),o}label(e){let o=this.clone();return o.spec.label=e,o}meta(...e){if(e.length===0)return this.spec.meta;let o=this.clone();return o.spec.meta=Object.assign(o.spec.meta||{},e[0]),o}withMutation(e){let o=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=o,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let o=this,r=e.clone();const n=Object.assign({},o.spec,r.spec);return r.spec=n,r.internalTests=Object.assign({},o.internalTests,r.internalTests),r._whitelist=o._whitelist.merge(e._whitelist,e._blacklist),r._blacklist=o._blacklist.merge(e._blacklist,e._whitelist),r.tests=o.tests,r.exclusiveTests=o.exclusiveTests,r.withMutation(i=>{e.tests.forEach(s=>{i.test(s.OPTIONS)})}),r.transforms=[...o.transforms,...r.transforms],r}isType(e){return e==null?!!(this.spec.nullable&&e===null||this.spec.optional&&e===void 0):this._typeCheck(e)}resolve(e){let o=this;if(o.conditions.length){let r=o.conditions;o=o.clone(),o.conditions=[],o=r.reduce((n,i)=>i.resolve(n,e),o),o=o.resolve(e)}return o}resolveOptions(e){var o,r,n,i;return Object.assign({},e,{from:e.from||[],strict:(o=e.strict)!=null?o:this.spec.strict,abortEarly:(r=e.abortEarly)!=null?r:this.spec.abortEarly,recursive:(n=e.recursive)!=null?n:this.spec.recursive,disableStackTrace:(i=e.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(e,o={}){let r=this.resolve(Object.assign({value:e},o)),n=o.assert==="ignore-optionality",i=r._cast(e,o);if(o.assert!==!1&&!r.isType(i)){if(n&&yo(i))return i;let s=Kt(e),l=Kt(i);throw new TypeError(`The value of ${o.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
10
10
|
|
|
11
11
|
attempted value: ${s}
|
|
12
|
-
`+(l!==s?`result of cast: ${l}`:""))}return i}_cast(e,o){let r=e===void 0?e:this.transforms.reduce((n,i)=>i.call(this,n,e,this),e);return r===void 0&&(r=this.getDefault(o)),r}_validate(e,o={},r,n){let{path:i,originalValue:s=e,strict:l=this.spec.strict}=o,c=e;l||(c=this._cast(c,Object.assign({assert:!1},o)));let d=[];for(let u of Object.values(this.internalTests))u&&d.push(u);this.runTests({path:i,value:c,originalValue:s,options:o,tests:d},r,u=>{if(u.length)return n(u,c);this.runTests({path:i,value:c,originalValue:s,options:o,tests:this.tests},r,n)})}runTests(e,o,r){let n=!1,{tests:i,value:s,originalValue:l,path:c,options:d}=e,u=p=>{n||(n=!0,o(p,s))},f=p=>{n||(n=!0,r(p,s))},h=i.length,g=[];if(!h)return f([]);let m={value:s,originalValue:l,path:c,options:d,schema:this};for(let p=0;p<i.length;p++){const b=i[p];b(m,u,function(k){k&&(Array.isArray(k)?g.push(...k):g.push(k)),--h<=0&&f(g)})}}asNestedTest({key:e,index:o,parent:r,parentPath:n,originalParent:i,options:s}){const l=e??o;if(l==null)throw TypeError("Must include `key` or `index` for nested validations");const c=typeof l=="number";let d=r[l];const u=Object.assign({},s,{strict:!0,parent:r,value:d,originalValue:i[l],key:void 0,[c?"index":"key"]:l,path:c||l.includes(".")?`${n||""}[${c?l:`"${l}"`}]`:(n?`${n}.`:"")+e});return(f,h,g)=>this.resolve(u)._validate(d,u,h,g)}validate(e,o){var r;let n=this.resolve(Object.assign({},o,{value:e})),i=(r=o==null?void 0:o.disableStackTrace)!=null?r:n.spec.disableStackTrace;return new Promise((s,l)=>n._validate(e,o,(c,d)=>{Je.isError(c)&&(c.value=d),l(c)},(c,d)=>{c.length?l(new Je(c,d,void 0,void 0,i)):s(d)}))}validateSync(e,o){var r;let n=this.resolve(Object.assign({},o,{value:e})),i,s=(r=o==null?void 0:o.disableStackTrace)!=null?r:n.spec.disableStackTrace;return n._validate(e,Object.assign({},o,{sync:!0}),(l,c)=>{throw Je.isError(l)&&(l.value=c),l},(l,c)=>{if(l.length)throw new Je(l,e,void 0,void 0,s);i=c}),i}isValid(e,o){return this.validate(e,o).then(()=>!0,r=>{if(Je.isError(r))return!1;throw r})}isValidSync(e,o){try{return this.validateSync(e,o),!0}catch(r){if(Je.isError(r))return!1;throw r}}_getDefault(e){let o=this.spec.default;return o==null?o:typeof o=="function"?o.call(this,e):Fo(o)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return arguments.length===0?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,o){const r=this.clone({nullable:e});return r.internalTests.nullable=Vo({message:o,name:"nullable",test(n){return n===null?this.schema.spec.nullable:!0}}),r}optionality(e,o){const r=this.clone({optional:e});return r.internalTests.optionality=Vo({message:o,name:"optionality",test(n){return n===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(e=Ct.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=Ct.notNull){return this.nullability(!1,e)}required(e=Ct.required){return this.clone().withMutation(o=>o.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let o=this.clone();return o.transforms.push(e),o}test(...e){let o;if(e.length===1?typeof e[0]=="function"?o={test:e[0]}:o=e[0]:e.length===2?o={name:e[0],test:e[1]}:o={name:e[0],message:e[1],test:e[2]},o.message===void 0&&(o.message=Ct.default),typeof o.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),n=Vo(o),i=o.exclusive||o.name&&r.exclusiveTests[o.name]===!0;if(o.exclusive&&!o.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return o.name&&(r.exclusiveTests[o.name]=!!o.exclusive),r.tests=r.tests.filter(s=>!(s.OPTIONS.name===o.name&&(i||s.OPTIONS.test===n.OPTIONS.test))),r.tests.push(n),r}when(e,o){!Array.isArray(e)&&typeof e!="string"&&(o=e,e=".");let r=this.clone(),n=Ts(e).map(i=>new bo(i));return n.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof o=="function"?new yn(n,o):yn.fromOptions(n,o)),r}typeError(e){let o=this.clone();return o.internalTests.typeError=Vo({message:e,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),o}oneOf(e,o=Ct.oneOf){let r=this.clone();return e.forEach(n=>{r._whitelist.add(n),r._blacklist.delete(n)}),r.internalTests.whiteList=Vo({message:o,name:"oneOf",skipAbsent:!0,test(n){let i=this.schema._whitelist,s=i.resolveAll(this.resolve);return s.includes(n)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:s}})}}),r}notOneOf(e,o=Ct.notOneOf){let r=this.clone();return e.forEach(n=>{r._blacklist.add(n),r._whitelist.delete(n)}),r.internalTests.blacklist=Vo({message:o,name:"notOneOf",test(n){let i=this.schema._blacklist,s=i.resolveAll(this.resolve);return s.includes(n)?this.createError({params:{values:Array.from(i).join(", "),resolved:s}}):!0}}),r}strip(e=!0){let o=this.clone();return o.spec.strip=e,o}describe(e){const o=(e?this.resolve(e):this).clone(),{label:r,meta:n,optional:i,nullable:s}=o.spec;return{meta:n,label:r,optional:i,nullable:s,default:o.getDefault(e),type:o.type,oneOf:o._whitelist.describe(),notOneOf:o._blacklist.describe(),tests:o.tests.map(c=>({name:c.OPTIONS.name,params:c.OPTIONS.params})).filter((c,d,u)=>u.findIndex(f=>f.name===c.name)===d)}}}_t.prototype.__isYupSchema__=!0;for(const t of["validate","validateSync"])_t.prototype[`${t}At`]=function(e,o,r={}){const{parent:n,parentPath:i,schema:s}=Ih(this,e,o,r.context);return s[t](n&&n[i],Object.assign({},r,{parent:n,path:e}))};for(const t of["equals","is"])_t.prototype[t]=_t.prototype.oneOf;for(const t of["not","nope"])_t.prototype[t]=_t.prototype.notOneOf;const Lh=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function zh(t){const e=$i(t);if(!e)return Date.parse?Date.parse(t):Number.NaN;if(e.z===void 0&&e.plusMinus===void 0)return new Date(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond).valueOf();let o=0;return e.z!=="Z"&&e.plusMinus!==void 0&&(o=e.hourOffset*60+e.minuteOffset,e.plusMinus==="+"&&(o=0-o)),Date.UTC(e.year,e.month,e.day,e.hour,e.minute+o,e.second,e.millisecond)}function $i(t){var e,o;const r=Lh.exec(t);return r?{year:At(r[1]),month:At(r[2],1)-1,day:At(r[3],1),hour:At(r[4]),minute:At(r[5]),second:At(r[6]),millisecond:r[7]?At(r[7].substring(0,3)):0,precision:(e=(o=r[7])==null?void 0:o.length)!=null?e:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:At(r[10]),minuteOffset:At(r[11])}:null}function At(t,e=0){return Number(t)||e}let jh=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Wh=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Hh=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Uh="^\\d{4}-\\d{2}-\\d{2}",qh="\\d{2}:\\d{2}:\\d{2}",Yh="(([+-]\\d{2}(:?\\d{2})?)|Z)",Xh=new RegExp(`${Uh}T${qh}(\\.\\d+)?${Yh}$`),Kh=t=>yo(t)||t===t.trim(),Gh={}.toString();function Ai(){return new Vs}class Vs extends _t{constructor(){super({type:"string",check(e){return e instanceof String&&(e=e.valueOf()),typeof e=="string"}}),this.withMutation(()=>{this.transform((e,o,r)=>{if(!r.spec.coerce||r.isType(e)||Array.isArray(e))return e;const n=e!=null&&e.toString?e.toString():e;return n===Gh?e:n})})}required(e){return super.required(e).withMutation(o=>o.test({message:e||Ct.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(o=>o.OPTIONS.name!=="required"),e))}length(e,o=Qe.length){return this.test({message:o,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(r){return r.length===this.resolve(e)}})}min(e,o=Qe.min){return this.test({message:o,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(r){return r.length>=this.resolve(e)}})}max(e,o=Qe.max){return this.test({name:"max",exclusive:!0,message:o,params:{max:e},skipAbsent:!0,test(r){return r.length<=this.resolve(e)}})}matches(e,o){let r=!1,n,i;return o&&(typeof o=="object"?{excludeEmptyString:r=!1,message:n,name:i}=o:n=o),this.test({name:i||"matches",message:n||Qe.matches,params:{regex:e},skipAbsent:!0,test:s=>s===""&&r||s.search(e)!==-1})}email(e=Qe.email){return this.matches(jh,{name:"email",message:e,excludeEmptyString:!0})}url(e=Qe.url){return this.matches(Wh,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=Qe.uuid){return this.matches(Hh,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let o="",r,n;return e&&(typeof e=="object"?{message:o="",allowOffset:r=!1,precision:n=void 0}=e:o=e),this.matches(Xh,{name:"datetime",message:o||Qe.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:o||Qe.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:i=>{if(!i||r)return!0;const s=$i(i);return s?!!s.z:!1}}).test({name:"datetime_precision",message:o||Qe.datetime_precision,params:{precision:n},skipAbsent:!0,test:i=>{if(!i||n==null)return!0;const s=$i(i);return s?s.precision===n:!1}})}ensure(){return this.default("").transform(e=>e===null?"":e)}trim(e=Qe.trim){return this.transform(o=>o!=null?o.trim():o).test({message:e,name:"trim",test:Kh})}lowercase(e=Qe.lowercase){return this.transform(o=>yo(o)?o:o.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:o=>yo(o)||o===o.toLowerCase()})}uppercase(e=Qe.uppercase){return this.transform(o=>yo(o)?o:o.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:o=>yo(o)||o===o.toUpperCase()})}}Ai.prototype=Vs.prototype;let Jh=new Date(""),Qh=t=>Object.prototype.toString.call(t)==="[object Date]";class vn extends _t{constructor(){super({type:"date",check(e){return Qh(e)&&!isNaN(e.getTime())}}),this.withMutation(()=>{this.transform((e,o,r)=>!r.spec.coerce||r.isType(e)||e===null?e:(e=zh(e),isNaN(e)?vn.INVALID_DATE:new Date(e)))})}prepareParam(e,o){let r;if(bo.isRef(e))r=e;else{let n=this.cast(e);if(!this._typeCheck(n))throw new TypeError(`\`${o}\` must be a Date or a value that can be \`cast()\` to a Date`);r=n}return r}min(e,o=Ti.min){let r=this.prepareParam(e,"min");return this.test({message:o,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(n){return n>=this.resolve(r)}})}max(e,o=Ti.max){let r=this.prepareParam(e,"max");return this.test({message:o,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(n){return n<=this.resolve(r)}})}}vn.INVALID_DATE=Jh,vn.prototype;function Zh(t,e=[]){let o=[],r=new Set,n=new Set(e.map(([s,l])=>`${s}-${l}`));function i(s,l){let c=po.split(s)[0];r.add(c),n.has(`${l}-${c}`)||o.push([l,c])}for(const s of Object.keys(t)){let l=t[s];r.add(s),bo.isRef(l)&&l.isSibling?i(l.path,s):Pi(l)&&"deps"in l&&l.deps.forEach(c=>i(c,s))}return Dh.array(Array.from(r),o).reverse()}function Fs(t,e){let o=1/0;return t.some((r,n)=>{var i;if((i=e.path)!=null&&i.includes(r))return o=n,!0}),o}function Is(t){return(e,o)=>Fs(t,e)-Fs(t,o)}const eg=(t,e,o)=>{if(typeof t!="string")return t;let r=t;try{r=JSON.parse(t)}catch{}return o.isType(r)?r:t};function wn(t){if("fields"in t){const e={};for(const[o,r]of Object.entries(t.fields))e[o]=wn(r);return t.setFields(e)}if(t.type==="array"){const e=t.optional();return e.innerType&&(e.innerType=wn(e.innerType)),e}return t.type==="tuple"?t.optional().clone({types:t.spec.types.map(wn)}):"optional"in t?t.optional():t}const tg=(t,e)=>{const o=[...po.normalizePath(e)];if(o.length===1)return o[0]in t;let r=o.pop(),n=po.getter(po.join(o),!0)(t);return!!(n&&r in n)};let Ls=t=>Object.prototype.toString.call(t)==="[object Object]";function zs(t,e){let o=Object.keys(t.fields);return Object.keys(e).filter(r=>o.indexOf(r)===-1)}const og=Is([]);function Mi(t){return new js(t)}class js extends _t{constructor(e){super({type:"object",check(o){return Ls(o)||typeof o=="function"}}),this.fields=Object.create(null),this._sortErrors=og,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,o={}){var r;let n=super._cast(e,o);if(n===void 0)return this.getDefault(o);if(!this._typeCheck(n))return n;let i=this.fields,s=(r=o.stripUnknown)!=null?r:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(n).filter(f=>!this._nodes.includes(f))),c={},d=Object.assign({},o,{parent:c,__validating:o.__validating||!1}),u=!1;for(const f of l){let h=i[f],g=f in n;if(h){let m,p=n[f];d.path=(o.path?`${o.path}.`:"")+f,h=h.resolve({value:p,context:o.context,parent:c});let b=h instanceof _t?h.spec:void 0,y=b==null?void 0:b.strict;if(b!=null&&b.strip){u=u||f in n;continue}m=!o.__validating||!y?h.cast(n[f],d):n[f],m!==void 0&&(c[f]=m)}else g&&!s&&(c[f]=n[f]);(g!==f in c||c[f]!==n[f])&&(u=!0)}return u?c:n}_validate(e,o={},r,n){let{from:i=[],originalValue:s=e,recursive:l=this.spec.recursive}=o;o.from=[{schema:this,value:s},...i],o.__validating=!0,o.originalValue=s,super._validate(e,o,r,(c,d)=>{if(!l||!Ls(d)){n(c,d);return}s=s||d;let u=[];for(let f of this._nodes){let h=this.fields[f];!h||bo.isRef(h)||u.push(h.asNestedTest({options:o,key:f,parent:d,parentPath:o.path,originalParent:s}))}this.runTests({tests:u,value:d,originalValue:s,options:o},r,f=>{n(f.sort(this._sortErrors).concat(c),d)})})}clone(e){const o=super.clone(e);return o.fields=Object.assign({},this.fields),o._nodes=this._nodes,o._excludedEdges=this._excludedEdges,o._sortErrors=this._sortErrors,o}concat(e){let o=super.concat(e),r=o.fields;for(let[n,i]of Object.entries(this.fields)){const s=r[n];r[n]=s===void 0?i:s}return o.withMutation(n=>n.setFields(r,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let o={};return this._nodes.forEach(r=>{var n;const i=this.fields[r];let s=e;(n=s)!=null&&n.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[r]})),o[r]=i&&"getDefault"in i?i.getDefault(s):void 0}),o}setFields(e,o){let r=this.clone();return r.fields=e,r._nodes=Zh(e,o),r._sortErrors=Is(Object.keys(e)),o&&(r._excludedEdges=o),r}shape(e,o=[]){return this.clone().withMutation(r=>{let n=r._excludedEdges;return o.length&&(Array.isArray(o[0])||(o=[o]),n=[...r._excludedEdges,...o]),r.setFields(Object.assign(r.fields,e),n)})}partial(){const e={};for(const[o,r]of Object.entries(this.fields))e[o]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(e)}deepPartial(){return wn(this)}pick(e){const o={};for(const r of e)this.fields[r]&&(o[r]=this.fields[r]);return this.setFields(o,this._excludedEdges.filter(([r,n])=>e.includes(r)&&e.includes(n)))}omit(e){const o=[];for(const r of Object.keys(this.fields))e.includes(r)||o.push(r);return this.pick(o)}from(e,o,r){let n=po.getter(e,!0);return this.transform(i=>{if(!i)return i;let s=i;return tg(i,e)&&(s=Object.assign({},i),r||delete s[e],s[o]=n(i)),s})}json(){return this.transform(eg)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||bn.exact,test(o){if(o==null)return!0;const r=zs(this.schema,o);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,o=bn.noUnknown){typeof e!="boolean"&&(o=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:o,test(n){if(n==null)return!0;const i=zs(this.schema,n);return!e||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,o=bn.noUnknown){return this.noUnknown(!e,o)}transformKeys(e){return this.transform(o=>{if(!o)return o;const r={};for(const n of Object.keys(o))r[e(n)]=o[n];return r})}camelCase(){return this.transformKeys(Ni.camelCase)}snakeCase(){return this.transformKeys(Ni.snakeCase)}constantCase(){return this.transformKeys(e=>Ni.snakeCase(e).toUpperCase())}describe(e){const o=(e?this.resolve(e):this).clone(),r=super.describe(e);r.fields={};for(const[i,s]of Object.entries(o.fields)){var n;let l=e;(n=l)!=null&&n.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[i]})),r.fields[i]=s.describe(l)}return r}}Mi.prototype=js.prototype;function Vi(t,e,o){const r=new mo;let n=a.ref({});const i=a.ref({}),s=a.ref({});let l=a.ref([]);const c=a.ref(null),d=a.ref([]);let u=a.ref([]),f=a.ref(!1);const h=a.ref({});let{handleSubmit:g,errors:m,setErrors:p}=Es();const b=async()=>{var F;try{const P=await r.getEntityRecords(t);P&&P.response&&(n.value=P.response,l.value=(F=P.response.entity.entityDefinition)==null?void 0:F.columns,z(),w(),E())}catch(P){toast.add({severity:"error",summary:"Error",detail:P.errorMessage,life:3e3})}finally{}},y=async()=>{var F;try{const P=await r.getRecord(t,e);P&&P.response&&(n.value=P.response,l.value=(F=P.response.entity.entityDefinition)==null?void 0:F.columns,z(),i.value=JSON.parse(JSON.stringify(P.response.result[0])),E())}catch(P){console.error("Error fetching entity:",P.errorMessage)}finally{}},k=async()=>{var F,P;try{const L=await r.getRelatedEntityRecord(t,e);L&&L.response&&(n.value=L.response,l.value=(P=(F=L.response.entity)==null?void 0:F.entityDefinition)==null?void 0:P.columns,z(),i.value=JSON.parse(JSON.stringify(L.response.result[0])),i.value.entityName&&delete i.value.entityName,i.value.linkedEntities&&delete i.value.linkedEntities,u.value=L.response.result[0].linkedEntities,s.value=JSON.parse(JSON.stringify(i.value)),E())}catch(L){console.error("Error fetching entity:",L.errorMessage)}finally{}},C=async F=>{try{let P=await r.addRecord(t,F);P&&P.response&&o("onSaveDialog",{entityName:t,recordId:e})}catch(P){P.validationErrors&&(d.value=JSON.parse(JSON.stringify(P.validationErrors))),console.error("Error fetching entity:",P.errorMessage)}finally{}},_=async(F,P)=>{try{let L=await r.addRecord(t,P);if(L&&L.response){let Q=await r.saveRelatedEntityRecord(t,L.response.recordId,F.linkedEntities);Q&&Q.response&&o("onSaveDialog",{entityName:t,recordId:e})}}catch(L){L.validationErrors&&(d.value=JSON.parse(JSON.stringify(L.validationErrors))),console.error("Error fetching entity:",L.errorMessage)}finally{}},v=async F=>{try{const P=await r.updateRecord(t,e,F);P&&P.response&&(f.value=!1,s.value=JSON.parse(JSON.stringify(i.value)),o("onSaveDialog",{entityName:t,recordId:e}))}catch(P){P.validationErrors&&(d.value=JSON.parse(JSON.stringify(P.errvalidationErrorsors))),console.error("Error fetching entity:",P.errorMessage)}finally{}},S=async(F,P,L)=>{try{let Q=await r.saveRelatedEntityRecord(F,P,L);Q&&Q.response&&o("onSaveDialog",{entityName:t,enityRecordId:P})}catch(Q){Q.validationErrors&&(d.value=JSON.parse(JSON.stringify(Q.validationErrors))),console.error("Error fetching entity:",Q.errorMessage)}finally{}},w=()=>{for(let F=0;F<l.value.length;F++){let P=l.value[F];P.autoGenerated||(i.value[P.name]="")}},x=F=>{let P="";for(let L=0;L<l.value.length;L++){let Q=l.value[L];if(F==Q.name){P=Q.type;break}}return P},B=()=>{const F=l.value.filter(L=>L.autoGenerated).map(L=>L.name);return Object.entries(i.value).filter(([L])=>!F.includes(L)).map(([L,Q])=>({recordColumnName:L,recordColumnValue:Q,columnType:x(L)}))},T=async(F={})=>{try{await c.value.validate(i.value,{abortEarly:!1}),p({})}catch(L){const Q=L.inner.reduce((ne,X)=>(ne[X.path]||(ne[X.path]={messages:[]}),ne[X.path].messages.push(...X.errors),ne),{}),oe=Object.entries(Q).reduce((ne,[X,J])=>(ne[X]={messages:J.messages},ne),{});p(oe);return}const P={dataDefinitions:B()};e?await v(P):F.relationType=="MANY_TO_ONE"?await _(F,P):await C(P)},E=()=>{c.value=Mi().shape(l.value.reduce((F,P)=>(P.autoGenerated||(F[P.name]=Ai().nullable(!1).test({name:"custom-validation",test:function(L){const Q=[];let oe="";if(P.required&&(!L||L.trim()===""))if(P.validations){oe=O(P.validations,"VALIDATE_REQUIRED"),Q.push(oe);let ne=W(P.validations,"VALIDATE_REQUIRED");ne&&(ne="hint:"+ne,Q.push(ne))}else oe=P.displayName+" is required.",Q.push(oe);else{if(P.maxLength&&L.length>P.maxLength)if(P.validations){oe=O(P.validations,"VALIDATE_MAXLENGTH"),Q.push(oe);let ne=W(P.validations,"VALIDATE_MAXLENGTH");ne&&(ne="hint:"+ne,Q.push(ne))}else oe=P.displayName+" cannot exceed from "+P.maxLength+" characters",Q.push(oe);if(P.regxId&&!new RegExp(M(P.validations,"VALIDATE_REGX")).test(L))if(P.validations){oe=O(P.validations,"VALIDATE_REGX"),Q.push(oe);let ne=W(P.validations,"VALIDATE_REGX");ne&&(ne="hint:"+ne,Q.push(ne))}else oe=P.displayName+" invalid format.",Q.push(oe)}return Q.length>0?this.createError({message:Q}):!0}})),F),{}))},O=(F,P)=>{for(let L=0;L<F.length;L++)if(P==F[L].type)return F[L].message},M=(F,P)=>{for(let L=0;L<F.length;L++)if(P==F[L].type)return F[L].regx},W=(F,P)=>{for(let L=0;L<F.length;L++)if(P==F[L].type)return F[L].hint},Y=F=>{p({...m.value,[F]:null}),f.value=!0},I=()=>{f.value=!1;for(let F in i.value)i.value.hasOwnProperty(F)&&p({...m.value,[F]:null});i.value=JSON.parse(JSON.stringify(s.value))},z=()=>{for(let F=0;F<l.value.length;F++){const P=l.value[F];if(P.primaryKey&&P.primaryKey==!0){h.value=P;break}}};return{formData:i,columns:l,errors:m,backendErrors:d,isDataChange:f,linkedEntities:u,primarayKeyColumn:h,clearErrors:Y,saveRecord:T,fetchAllRecords:b,fetchRecord:y,getRelatedEntityRecordById:k,cancleRecord:I,saveRelatedEntityRecord:S}}const rg={key:0,class:"surface-card"},ng={class:"info"},ig={key:0,class:"list-none p-0"},Ws={__name:"EntityFormErrors",props:{errors:Array},setup(t){let e=a.ref(!0);const o=()=>{e.value=!e.value};return(r,n)=>{var s;const i=a.resolveComponent("Message");return((s=t.errors)==null?void 0:s.length)>0?(a.openBlock(),a.createElementBlock("div",rg,[n[1]||(n[1]=a.createElementVNode("h4",{class:"flex-1 font-bold text-red-500"},"Errors",-1)),a.createElementVNode("div",ng,[a.createElementVNode("span",{onClick:n[0]||(n[0]=l=>o()),class:"cursor-pointer underline showHideColor"},a.toDisplayString(a.unref(e)?"Hide":"Show"),1)]),a.unref(e)?(a.openBlock(),a.createElementBlock("ul",ig,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.errors,(l,c)=>(a.openBlock(),a.createElementBlock("li",{key:c,class:"mb-2"},[a.createVNode(i,{style:{"word-break":"break-all"},closable:!1,severity:"error"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(l.message),1)]),_:2},1024)]))),128))])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)}}},ag={class:"field flex flex-col mb-3"},sg=["for"],lg={key:0,class:"flex items-center"},cg={key:1},dg={class:"flex items-center"},Hs={__name:"RelatedEntitySelection",props:{modelValue:{required:!0},entityName:{type:String,required:!0},columnName:{type:String,required:!0},relatedEntityColumn:{type:String,required:!0}},emits:["update:modelValue"],setup(t,{emit:e}){const o=t,r=new mo,n=a.ref({});let i=a.ref("");const s=e;a.onMounted(()=>{l()});const l=async()=>{try{const u=await r.getEntityRecords(o.entityName);u&&u.response&&(n.value=u.response,d())}catch{}finally{}},c=()=>{s("update:modelValue",i.value[o.relatedEntityColumn])},d=()=>{for(let u=0;u<n.value.result.length;u++){const f=n.value.result[u];if(f[o.relatedEntityColumn]==o.modelValue){i.value=f;break}}};return(u,f)=>{const h=a.resolveComponent("Select");return a.openBlock(),a.createElementBlock("div",ag,[a.createElementVNode("label",{for:t.columnName},a.toDisplayString(t.columnName),9,sg),a.createVNode(h,{modelValue:a.unref(i),"onUpdate:modelValue":[f[0]||(f[0]=g=>a.isRef(i)?i.value=g:i=g),c],"item-value":t.relatedEntityColumn,options:n.value.result,filter:"",optionLabel:t.relatedEntityColumn,placeholder:"Select "+t.relatedEntityColumn,class:"w-full"},{value:a.withCtx(g=>[g.value?(a.openBlock(),a.createElementBlock("div",lg,[a.createElementVNode("div",null,a.toDisplayString(g.value[t.relatedEntityColumn]),1)])):(a.openBlock(),a.createElementBlock("span",cg,a.toDisplayString(g.placeholder),1))]),option:a.withCtx(g=>[a.createElementVNode("div",dg,[a.createElementVNode("div",null,a.toDisplayString(g.option[t.relatedEntityColumn]),1)])]),_:1},8,["modelValue","item-value","options","optionLabel","placeholder"])])}}},ug={key:0,style:{"font-weight":"700","font-size":"1.25rem"}},fg={key:1,style:{"font-weight":"700","font-size":"1.25rem"}},hg={__name:"EntityDialog",props:a.mergeModels({entityName:{type:String,required:!0},recordId:{type:[String,Number],default:null}},{showForm:{},showFormModifiers:{}}),emits:a.mergeModels(["onSaveDialog"],["update:showForm"]),setup(t,{emit:e}){const o=a.useModel(t,"showForm"),r=e,{formData:n,columns:i,errors:s,backendErrors:l,clearErrors:c,saveRecord:d,fetchAllRecords:u,fetchRecord:f}=Vi(t.entityName,t.recordId,r);return a.onMounted(()=>{t.recordId?f():u()}),(h,g)=>{const m=a.resolveComponent("Button"),p=a.resolveComponent("Dialog");return o.value?(a.openBlock(),a.createBlock(p,{key:0,showFooter:!1,visible:o.value,"onUpdate:visible":g[2]||(g[2]=b=>o.value=b),style:{width:"50rem"},breakpoints:{"1199px":"75vw","575px":"90vw"},modal:!0,class:"p-fluid"},{header:a.withCtx(()=>[t.recordId?(a.openBlock(),a.createElementBlock("span",ug,"Edit "+a.toDisplayString(t.entityName)+" record details",1)):a.createCommentVNode("",!0),t.recordId?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",fg,"Add "+a.toDisplayString(t.entityName)+" record details",1))]),footer:a.withCtx(()=>[a.createVNode(m,{type:"button",icon:"",label:"Cancel",severity:"secondary",onClick:g[0]||(g[0]=b=>o.value=!1)}),a.createVNode(m,{type:"button",icon:"",label:"Save",severity:"success",onClick:g[1]||(g[1]=b=>a.unref(d)())})]),default:a.withCtx(()=>{var b;return[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(i),(y,k)=>{var C;return a.openBlock(),a.createElementBlock("div",{key:k},[!y.autoGenerated&&!y.foreignKey?(a.openBlock(),a.createBlock(un,{key:0,modelValue:a.unref(n)[y.name],"onUpdate:modelValue":_=>a.unref(n)[y.name]=_,column:y,errors:(C=a.unref(s)[y.name])==null?void 0:C.messages,onInput:a.unref(c)},null,8,["modelValue","onUpdate:modelValue","column","errors","onInput"])):a.createCommentVNode("",!0),!y.autoGenerated&&y.foreignKey?(a.openBlock(),a.createBlock(Hs,{key:1,modelValue:a.unref(n)[y.name],"onUpdate:modelValue":_=>a.unref(n)[y.name]=_,entityName:y.foreignKey.referencedEntityName,columnName:y.name,relatedEntityColumn:y.foreignKey.referencedColumnName},null,8,["modelValue","onUpdate:modelValue","entityName","columnName","relatedEntityColumn"])):a.createCommentVNode("",!0)])}),128)),((b=a.unref(l))==null?void 0:b.length)>0?(a.openBlock(),a.createBlock(Ws,{key:0,errors:a.unref(l)},null,8,["errors"])):a.createCommentVNode("",!0)]}),_:1},8,["visible"])):a.createCommentVNode("",!0)}}},gg={__name:"DeleteConfirmationDialog",props:a.mergeModels({entityName:{type:String,required:!0},recordId:{type:[String,Number],default:null}},{showDeleteDialog:{},showDeleteDialogModifiers:{}}),emits:a.mergeModels(["onDeleteItem"],["update:showDeleteDialog"]),setup(t,{emit:e}){const o=new mo,r=a.useModel(t,"showDeleteDialog"),n=e,i=async()=>{try{const s=await o.deleteRecord(t.entityName,t.recordId);s&&s.response&&n("onDeleteItem")}catch(s){console.error("Error deleting record:",s.errorMessage)}finally{}};return(s,l)=>{const c=a.resolveComponent("Button"),d=a.resolveComponent("Dialog");return a.openBlock(),a.createBlock(d,{visible:r.value,"onUpdate:visible":l[1]||(l[1]=u=>r.value=u),style:{width:"450px"},header:"Confirm",modal:!0},{footer:a.withCtx(()=>[a.createVNode(c,{label:"No",icon:"pi pi-times",text:"",onClick:l[0]||(l[0]=u=>r.value=!1)}),a.createVNode(c,{label:"Yes",icon:"pi pi-check",text:"",onClick:i})]),default:a.withCtx(()=>[l[2]||(l[2]=a.createElementVNode("div",{class:"flex items-center justify-center"},[a.createElementVNode("i",{class:"pi pi-exclamation-triangle mr-3",style:{"font-size":"2rem"}}),a.createElementVNode("span",null,"Are you sure you want to delete the selected item?")],-1))]),_:1},8,["visible"])}}};var mg=Object.defineProperty,Us=Object.getOwnPropertySymbols,pg=Object.prototype.hasOwnProperty,bg=Object.prototype.propertyIsEnumerable,qs=(t,e,o)=>e in t?mg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,yg=(t,e)=>{for(var o in e||(e={}))pg.call(e,o)&&qs(t,o,e[o]);if(Us)for(var o of Us(e))bg.call(e,o)&&qs(t,o,e[o]);return t};function Fi(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Ys(t){return!!(t&&t.constructor&&t.call&&t.apply)}function Be(t){return!Fi(t)}function Gt(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function mt(t,...e){return Ys(t)?t(...e):t}function St(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Jt(t){return St(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function Xs(t,e="",o={}){const r=Jt(e).split("."),n=r.shift();return n?Gt(t)?Xs(mt(t[Object.keys(t).find(i=>Jt(i)===n)||""],o),r.join("."),o):void 0:mt(t,o)}function Ii(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function kg(t){return Be(t)&&!isNaN(t)}function Mt(t,e){if(e){const o=e.test(t);return e.lastIndex=0,o}return!1}function Li(...t){const e=(o={},r={})=>{const n=yg({},o);return Object.keys(r).forEach(i=>{Gt(r[i])&&i in o&&Gt(o[i])?n[i]=e(o[i],r[i]):n[i]=r[i]}),n};return t.reduce((o,r,n)=>n===0?r:e(o,r),{})}function ir(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}function Ks(t){return St(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,o)=>o===0?e:"-"+e.toLowerCase()).toLowerCase():t}function Gs(t){return St(t)?t.replace(/[A-Z]/g,(e,o)=>o===0?e:"."+e.toLowerCase()).toLowerCase():t}var Io={STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter"},xg={AND:"and",OR:"or"};const vg={key:0},wg={key:1},zi={__name:"RecordColumnRenderer",props:{column:Object,value:null},setup(t){const e=a.ref(null),o=Object.assign({"/src/directives/dateFormat.js":()=>Promise.resolve().then(()=>e_),"/src/directives/textFormatUpperCase.js":()=>Promise.resolve().then(()=>t_)});async function r(){await a.nextTick();const n=o[`/src/directives/${t.column.displayFormatKey}.js`];n&&e.value&&n().then(i=>{i.default.beforeMount(e.value,{value:t.value,arg:t.column.displayFormat})})}return a.onMounted(()=>{r()}),a.onUpdated(()=>{r()}),(n,i)=>t.column.displayFormatKey?(a.openBlock(),a.createElementBlock("span",vg,[a.createElementVNode("span",{ref_key:"el",ref:e},a.toDisplayString(t.value),513)])):(a.openBlock(),a.createElementBlock("span",wg,a.toDisplayString(t.value),1))}},Cg={class:"my-2"},_g={class:"flex flex-col md:flex-row md:justify-between md:items-center"},Sg={class:"flex flex-row gap-2"},ji={__name:"Grid",props:{entityName:String,showAddButton:Boolean,showClearFilters:Boolean,columnsToShow:Array,editable:Boolean,deleteable:Boolean,showPagination:Boolean},setup(t){const e=lt(),o=t;console.log("columnsToShow",o.columnsToShow);const r=Ke.useRoute(),n=a.ref(o.entityName||r.params.entityName),i=a.ref({}),s=a.ref(""),l=a.ref(!1),c=a.ref(!1),{items:d,headers:u,first:f,totalRecords:h,pageSize:g,loading:m,sortBy:p,sortDirection:b,operatorMap:y,filterToSend:k,primarayKeyColumn:C,fullTextSearch:_,listingResponse:v,onFullTextSearch:S,getDatatypeByField:w,getColumnDatatype:x,onSort:B,onPage:T,onFilter:E,fetchEntityFilterData:O,fetchEntityByName:M}=Mf(n.value),W=a.ref();let Y=a.ref(!1);const I=X=>{i.value=X.reduce((J,ie)=>{if(!ie.filterable)return J;let ue=Io.CONTAINS;switch(ie.datatype.toLowerCase()){case"string":case"uuid":ue=Io.STARTS_WITH;break;case"date":ue=Io.DATE_IS;break;case"numeric":case"int":case"integer":ue=Io.EQUALS;break;case"bool":case"boolean":ue=Io.EQUALS;break}return ie.datatype=="bool"||ie.datatype=="boolean"?J[ie.field]={value:null,matchMode:Io.EQUALS}:J[ie.field]={operator:xg.AND,constraints:[{value:null,matchMode:ue}]},J},{})},z=()=>{I(u.value),k.value=ne(i.value),E()},F=X=>{k.value=ne(i.value),E()},P=X=>{X?s.value=X[C.value.name]:s.value="",l.value=!l.value},L=()=>{l.value=!1,O(!1)},Q=X=>{s.value=X[C.value.name],c.value=!0},oe=()=>{c.value=!1,O(!1)},ne=X=>Object.keys(X).map(J=>{const ie=X[J];return ie.constraints?ie.constraints.filter(ue=>ue.value!==null&&ue.value!=="").map(ue=>({columnName:J,operator:y[ue.matchMode]??ue.matchMode,value:ue.value,columnType:w(J)})):ie.value!==null&&ie.value!==""?{columnName:J,operator:y[ie.matchMode]??ie.matchMode,value:ie.value,columnType:w(J)}:[]}).flat();return a.watch(()=>e.globalConfigs.appId,async X=>{X&&M(n.value)},{immediate:!0}),a.watch(()=>u.value,X=>{!Y.value&&X&&X.length&&(I(X),Y.value=!0)},{immediate:!0}),(X,J)=>{const ie=a.resolveComponent("Button"),ue=a.resolveComponent("Toolbar"),De=a.resolveComponent("ProgressSpinner"),st=a.resolveComponent("InputIcon"),Xe=a.resolveComponent("IconField"),vt=a.resolveComponent("DatePicker"),ft=a.resolveComponent("InputNumber"),U=a.resolveComponent("Checkbox"),V=a.resolveComponent("Column"),he=a.resolveComponent("DataTable");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",a.normalizeProps(a.guardReactiveProps(X.$attrs)),[a.renderSlot(X.$slots,"header"),t.showClearFilters||t.showAddButton?(a.openBlock(),a.createBlock(ue,{key:0,class:"mb-4 mt-4"},a.createSlots({_:2},[t.showClearFilters?{name:"start",fn:a.withCtx(()=>[a.createElementVNode("div",Cg,[a.createVNode(ie,{type:"button",icon:"pi pi-filter-slash",label:"Clear",severity:"warning",onClick:J[0]||(J[0]=me=>z())})])]),key:"0"}:void 0,t.showAddButton?{name:"end",fn:a.withCtx(()=>[a.createVNode(ie,{label:"Add",icon:"pi pi-plus",class:"mr-2",severity:"success",onClick:J[1]||(J[1]=me=>P())})]),key:"1"}:void 0]),1024)):a.createCommentVNode("",!0),a.createVNode(he,{lazy:"",value:a.unref(d),loading:a.unref(m),ref_key:"dt",ref:W,stripedRows:!0,showGridlines:"",rowHover:!0,paginator:t.showPagination,rows:a.unref(g),rowsPerPageOptions:[10,25,50,100],totalRecords:a.unref(h),first:a.unref(f),sortField:a.unref(p),sortOrder:a.unref(b),filters:i.value,"onUpdate:filters":J[5]||(J[5]=me=>i.value=me),filterDisplay:"menu",scrollable:"",scrollHeight:"400px",onSort:a.unref(B),onPage:a.unref(T),onFilter:J[6]||(J[6]=me=>F()),size:"large",paginatorTemplate:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink CurrentPageReport RowsPerPageDropdown",currentPageReportTemplate:"Showing {first} to {last} of {totalRecords} items"},{empty:a.withCtx(()=>J[9]||(J[9]=[a.createTextVNode(" No data found. ")])),loading:a.withCtx(()=>[a.createVNode(De)]),header:a.withCtx(()=>[a.createElementVNode("div",_g,[a.createVNode(Xe,{iconPosition:"left",class:"block mt-2 md:mt-0"},{default:a.withCtx(()=>[a.createVNode(st,{class:"pi pi-search",onClick:J[2]||(J[2]=me=>a.unref(S)())}),a.createVNode(a.unref(os.InputText),{class:"w-full sm:w-auto",onKeyup:J[3]||(J[3]=a.withKeys(me=>a.unref(S)(),["enter"])),modelValue:a.unref(_),"onUpdate:modelValue":J[4]||(J[4]=me=>a.isRef(_)?_.value=me:null),placeholder:"Search..."},null,8,["modelValue"])]),_:1})])]),default:a.withCtx(()=>{var me;return[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(u).filter(ge=>!o.columnsToShow||o.columnsToShow.length===0||o.columnsToShow.includes(ge.field)),ge=>(a.openBlock(),a.createBlock(V,{key:ge.field,dataType:a.unref(x)(ge.datatype),field:ge.field,header:ge.name,sortable:ge.sortable,showAddButton:!1,showFilterOperator:!1,style:{"text-wrap":"nowrap"}},a.createSlots({body:a.withCtx(({data:pe})=>[a.createVNode(zi,{column:ge,value:pe[ge.field]},null,8,["column","value"])]),_:2},[ge.datatype.toLowerCase()==="date"&&ge.filterable?{name:"filter",fn:a.withCtx(({filterModel:pe})=>[a.createVNode(vt,{modelValue:pe.value,"onUpdate:modelValue":Te=>pe.value=Te,dateFormat:"mm/dd/yy",placeholder:"mm/dd/yyyy"},null,8,["modelValue","onUpdate:modelValue"])]),key:"0"}:ge.datatype.toLowerCase()==="int"&&ge.filterable?{name:"filter",fn:a.withCtx(({filterModel:pe})=>[a.createVNode(ft,{modelValue:pe.value,"onUpdate:modelValue":Te=>pe.value=Te,placeholder:"Search..."},null,8,["modelValue","onUpdate:modelValue"])]),key:"1"}:ge.datatype.toLowerCase()==="boolean"&&ge.filterable?{name:"filter",fn:a.withCtx(({filterModel:pe})=>[a.createVNode(U,{modelValue:pe.value,"onUpdate:modelValue":Te=>pe.value=Te,indeterminate:pe.value===null,binary:""},null,8,["modelValue","onUpdate:modelValue","indeterminate"])]),key:"2"}:ge.filterable?{name:"filter",fn:a.withCtx(({filterModel:pe})=>[a.createVNode(a.unref(os.InputText),{style:{width:"150px"},type:"text",modelValue:pe.value,"onUpdate:modelValue":Te=>pe.value=Te,class:"p-column-filter",placeholder:"Search..."},null,8,["modelValue","onUpdate:modelValue"])]),key:"3"}:void 0]),1032,["dataType","field","header","sortable"]))),128)),((me=a.unref(d))==null?void 0:me.length)>0&&(t.editable||t.deleteable)?(a.openBlock(),a.createBlock(V,{key:0,header:"Actions"},{body:a.withCtx(({data:ge})=>[a.createElementVNode("div",Sg,[t.editable?(a.openBlock(),a.createBlock(ie,{key:0,onClick:pe=>P(ge),icon:"pi pi-pencil",severity:"success",size:"",rounded:"","aria-label":"Edit"},null,8,["onClick"])):a.createCommentVNode("",!0),t.deleteable?(a.openBlock(),a.createBlock(ie,{key:1,onClick:pe=>Q(ge),icon:"pi pi-trash",severity:"danger",rounded:"","aria-label":"Delete"},null,8,["onClick"])):a.createCommentVNode("",!0)])]),_:1})):a.createCommentVNode("",!0)]}),_:1},8,["value","loading","paginator","rows","totalRecords","first","sortField","sortOrder","filters","onSort","onPage"]),a.renderSlot(X.$slots,"footer")],16),l.value?(a.openBlock(),a.createBlock(hg,{key:0,showForm:l.value,"onUpdate:showForm":J[7]||(J[7]=me=>l.value=me),entityName:a.unref(v).entityName,recordId:s.value,onOnSaveDialog:L},null,8,["showForm","entityName","recordId"])):a.createCommentVNode("",!0),c.value?(a.openBlock(),a.createBlock(gg,{key:1,showDeleteDialog:c.value,"onUpdate:showDeleteDialog":J[8]||(J[8]=me=>c.value=me),entityName:a.unref(v).entityName,recordId:s.value,onOnDeleteItem:oe},null,8,["showDeleteDialog","entityName","recordId"])):a.createCommentVNode("",!0)],64)}}};function Bg(){const t=new Map;return{on(e,o){let r=t.get(e);return r?r.push(o):r=[o],t.set(e,r),this},off(e,o){let r=t.get(e);return r&&r.splice(r.indexOf(o)>>>0,1),this},emit(e,o){let r=t.get(e);r&&r.slice().map(n=>{n(o)})},clear(){t.clear()}}}var Eg=Object.defineProperty,Rg=Object.defineProperties,Dg=Object.getOwnPropertyDescriptors,Cn=Object.getOwnPropertySymbols,Js=Object.prototype.hasOwnProperty,Qs=Object.prototype.propertyIsEnumerable,Zs=(t,e,o)=>e in t?Eg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Ee=(t,e)=>{for(var o in e||(e={}))Js.call(e,o)&&Zs(t,o,e[o]);if(Cn)for(var o of Cn(e))Qs.call(e,o)&&Zs(t,o,e[o]);return t},Lo=(t,e)=>Rg(t,Dg(e)),Vt=(t,e)=>{var o={};for(var r in t)Js.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(t!=null&&Cn)for(var r of Cn(t))e.indexOf(r)<0&&Qs.call(t,r)&&(o[r]=t[r]);return o},Og=Bg(),Qt=Og;function el(t,e){Ii(t)?t.push(...e||[]):Gt(t)&&Object.assign(t,e)}function Ng(t){return Gt(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function Tg(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Wi(t="",e=""){return Tg(`${St(t,!1)&&St(e,!1)?`${t}-`:t}${e}`)}function tl(t="",e=""){return`--${Wi(t,e)}`}function Pg(t=""){const e=(t.match(/{/g)||[]).length,o=(t.match(/}/g)||[]).length;return(e+o)%2!==0}function ol(t,e="",o="",r=[],n){if(St(t)){const i=/{([^}]*)}/g,s=t.trim();if(Pg(s))return;if(Mt(s,i)){const l=s.replaceAll(i,u=>{const h=u.replace(/{|}/g,"").split(".").filter(g=>!r.some(m=>Mt(g,m)));return`var(${tl(o,Ks(h.join("-")))}${Be(n)?`, ${n}`:""})`}),c=/(\d+\s+[\+\-\*\/]\s+\d+)/g,d=/var\([^)]+\)/g;return Mt(l.replace(d,"0"),c)?`calc(${l})`:l}return s}else if(kg(t))return t}function $g(t,e,o){St(e,!1)&&t.push(`${e}:${o};`)}function zo(t,e){return t?`${t}{${e}}`:""}var ar=(...t)=>Ag(xe.getTheme(),...t),Ag=(t={},e,o,r)=>{if(e){const{variable:n,options:i}=xe.defaults||{},{prefix:s,transform:l}=(t==null?void 0:t.options)||i||{},d=Mt(e,/{([^}]*)}/g)?e:`{${e}}`;return r==="value"||Fi(r)&&l==="strict"?xe.getTokenValue(e):ol(d,void 0,s,[n.excludedKeyRegex],o)}return""},rl=(t={})=>{let{preset:e,options:o}=t;return{preset(r){return e=e?Li(e,r):r,this},options(r){return o=o?Ee(Ee({},o),r):r,this},primaryPalette(r){const{semantic:n}=e||{};return e=Lo(Ee({},e),{semantic:Lo(Ee({},n),{primary:r})}),this},surfacePalette(r){var n,i;const{semantic:s}=e||{},l=r!=null&&r.hasOwnProperty("light")?r==null?void 0:r.light:r,c=r!=null&&r.hasOwnProperty("dark")?r==null?void 0:r.dark:r,d={colorScheme:{light:Ee(Ee({},(n=s==null?void 0:s.colorScheme)==null?void 0:n.light),!!l&&{surface:l}),dark:Ee(Ee({},(i=s==null?void 0:s.colorScheme)==null?void 0:i.dark),!!c&&{surface:c})}};return e=Lo(Ee({},e),{semantic:Ee(Ee({},s),d)}),this},define({useDefaultPreset:r=!1,useDefaultOptions:n=!1}={}){return{preset:r?xe.getPreset():e,options:n?xe.getOptions():o}},update({mergePresets:r=!0,mergeOptions:n=!0}={}){const i={preset:r?Li(xe.getPreset(),e):e,options:n?Ee(Ee({},xe.getOptions()),o):o};return xe.setTheme(i),i},use(r){const n=this.define(r);return xe.setTheme(n),n}}};function Mg(t,e={}){const o=xe.defaults.variable,{prefix:r=o.prefix,selector:n=o.selector,excludedKeyRegex:i=o.excludedKeyRegex}=e,s=(d,u="")=>Object.entries(d).reduce((f,[h,g])=>{const m=Mt(h,i)?Wi(u):Wi(u,Ks(h)),p=Ng(g);if(Gt(p)){const{variables:b,tokens:y}=s(p,m);el(f.tokens,y),el(f.variables,b)}else f.tokens.push((r?m.replace(`${r}-`,""):m).replaceAll("-",".")),$g(f.variables,tl(m),ol(p,m,r,[i]));return f},{variables:[],tokens:[]}),{variables:l,tokens:c}=s(t,r);return{value:l,tokens:c,declarations:l.join(""),css:zo(n,l.join(""))}}var pt={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:`${t}{:root{[CSS]}}`,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark){:root{[CSS]}}",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){const e=Object.keys(this.rules).filter(o=>o!=="custom").map(o=>this.rules[o]);return[t].flat().map(o=>{var r;return(r=e.map(n=>n.resolve(o)).find(n=>n.matched))!=null?r:this.rules.custom.resolve(o)})}},_toVariables(t,e){return Mg(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:o,set:r,defaults:n}){var i,s,l,c,d,u,f;const{preset:h,options:g}=e;let m,p,b,y,k,C,_;if(Be(h)&&g.transform!=="strict"){const{primitive:v,semantic:S,extend:w}=h,x=S||{},{colorScheme:B}=x,T=Vt(x,["colorScheme"]),E=w||{},{colorScheme:O}=E,M=Vt(E,["colorScheme"]),W=B||{},{dark:Y}=W,I=Vt(W,["dark"]),z=O||{},{dark:F}=z,P=Vt(z,["dark"]),L=Be(v)?this._toVariables({primitive:v},g):{},Q=Be(T)?this._toVariables({semantic:T},g):{},oe=Be(I)?this._toVariables({light:I},g):{},ne=Be(Y)?this._toVariables({dark:Y},g):{},X=Be(M)?this._toVariables({semantic:M},g):{},J=Be(P)?this._toVariables({light:P},g):{},ie=Be(F)?this._toVariables({dark:F},g):{},[ue,De]=[(i=L.declarations)!=null?i:"",L.tokens],[st,Xe]=[(s=Q.declarations)!=null?s:"",Q.tokens||[]],[vt,ft]=[(l=oe.declarations)!=null?l:"",oe.tokens||[]],[U,V]=[(c=ne.declarations)!=null?c:"",ne.tokens||[]],[he,me]=[(d=X.declarations)!=null?d:"",X.tokens||[]],[ge,pe]=[(u=J.declarations)!=null?u:"",J.tokens||[]],[Te,ot]=[(f=ie.declarations)!=null?f:"",ie.tokens||[]];m=this.transformCSS(t,ue,"light","variable",g,r,n),p=De;const Tt=this.transformCSS(t,`${st}${vt}`,"light","variable",g,r,n),Le=this.transformCSS(t,`${U}`,"dark","variable",g,r,n);b=`${Tt}${Le}`,y=[...new Set([...Xe,...ft,...V])];const rt=this.transformCSS(t,`${he}${ge}color-scheme:light`,"light","variable",g,r,n),ht=this.transformCSS(t,`${Te}color-scheme:dark`,"dark","variable",g,r,n);k=`${rt}${ht}`,C=[...new Set([...me,...pe,...ot])],_=mt(h.css,{dt:ar})}return{primitive:{css:m,tokens:p},semantic:{css:b,tokens:y},global:{css:k,tokens:C},style:_}},getPreset({name:t="",preset:e={},options:o,params:r,set:n,defaults:i,selector:s}){var l,c,d;let u,f,h;if(Be(e)&&o.transform!=="strict"){const g=t.replace("-directive",""),m=e,{colorScheme:p,extend:b,css:y}=m,k=Vt(m,["colorScheme","extend","css"]),C=b||{},{colorScheme:_}=C,v=Vt(C,["colorScheme"]),S=p||{},{dark:w}=S,x=Vt(S,["dark"]),B=_||{},{dark:T}=B,E=Vt(B,["dark"]),O=Be(k)?this._toVariables({[g]:Ee(Ee({},k),v)},o):{},M=Be(x)?this._toVariables({[g]:Ee(Ee({},x),E)},o):{},W=Be(w)?this._toVariables({[g]:Ee(Ee({},w),T)},o):{},[Y,I]=[(l=O.declarations)!=null?l:"",O.tokens||[]],[z,F]=[(c=M.declarations)!=null?c:"",M.tokens||[]],[P,L]=[(d=W.declarations)!=null?d:"",W.tokens||[]],Q=this.transformCSS(g,`${Y}${z}`,"light","variable",o,n,i,s),oe=this.transformCSS(g,P,"dark","variable",o,n,i,s);u=`${Q}${oe}`,f=[...new Set([...I,...F,...L])],h=mt(y,{dt:ar})}return{css:u,tokens:f,style:h}},getPresetC({name:t="",theme:e={},params:o,set:r,defaults:n}){var i;const{preset:s,options:l}=e,c=(i=s==null?void 0:s.components)==null?void 0:i[t];return this.getPreset({name:t,preset:c,options:l,params:o,set:r,defaults:n})},getPresetD({name:t="",theme:e={},params:o,set:r,defaults:n}){var i;const s=t.replace("-directive",""),{preset:l,options:c}=e,d=(i=l==null?void 0:l.directives)==null?void 0:i[s];return this.getPreset({name:s,preset:d,options:c,params:o,set:r,defaults:n})},applyDarkColorScheme(t){return!(t.darkModeSelector==="none"||t.darkModeSelector===!1)},getColorSchemeOption(t,e){var o;return this.applyDarkColorScheme(t)?this.regex.resolve(t.darkModeSelector===!0?e.options.darkModeSelector:(o=t.darkModeSelector)!=null?o:e.options.darkModeSelector):[]},getLayerOrder(t,e={},o,r){const{cssLayer:n}=e;return n?`@layer ${mt(n.order||"primeui",o)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:o,props:r={},set:n,defaults:i}){const s=this.getCommon({name:t,theme:e,params:o,set:n,defaults:i}),l=Object.entries(r).reduce((c,[d,u])=>c.push(`${d}="${u}"`)&&c,[]).join(" ");return Object.entries(s||{}).reduce((c,[d,u])=>{if(u!=null&&u.css){const f=ir(u==null?void 0:u.css),h=`${d}-variables`;c.push(`<style type="text/css" data-primevue-style-id="${h}" ${l}>${f}</style>`)}return c},[]).join("")},getStyleSheet({name:t="",theme:e={},params:o,props:r={},set:n,defaults:i}){var s;const l={name:t,theme:e,params:o,set:n,defaults:i},c=(s=t.includes("-directive")?this.getPresetD(l):this.getPresetC(l))==null?void 0:s.css,d=Object.entries(r).reduce((u,[f,h])=>u.push(`${f}="${h}"`)&&u,[]).join(" ");return c?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${ir(c)}</style>`:""},createTokens(t={},e,o="",r="",n={}){return Object.entries(t).forEach(([i,s])=>{const l=Mt(i,e.variable.excludedKeyRegex)?o:o?`${o}.${Gs(i)}`:Gs(i),c=r?`${r}.${i}`:i;Gt(s)?this.createTokens(s,e,l,c,n):(n[l]||(n[l]={paths:[],computed(d,u={}){var f,h;return this.paths.length===1?(f=this.paths[0])==null?void 0:f.computed(this.paths[0].scheme,u.binding):d&&d!=="none"?(h=this.paths.find(g=>g.scheme===d))==null?void 0:h.computed(d,u.binding):this.paths.map(g=>g.computed(g.scheme,u[g.scheme]))}}),n[l].paths.push({path:c,value:s,scheme:c.includes("colorScheme.light")?"light":c.includes("colorScheme.dark")?"dark":"none",computed(d,u={}){const f=/{([^}]*)}/g;let h=s;if(u.name=this.path,u.binding||(u.binding={}),Mt(s,f)){const m=s.trim().replaceAll(f,y=>{var k;const C=y.replace(/{|}/g,""),_=(k=n[C])==null?void 0:k.computed(d,u);return Ii(_)&&_.length===2?`light-dark(${_[0].value},${_[1].value})`:_==null?void 0:_.value}),p=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,b=/var\([^)]+\)/g;h=Mt(m.replace(b,"0"),p)?`calc(${m})`:m}return Fi(u.binding)&&delete u.binding,{colorScheme:d,path:this.path,paths:u,value:h.includes("undefined")?void 0:h}}}))}),n},getTokenValue(t,e,o){var r;const i=(c=>c.split(".").filter(u=>!Mt(u.toLowerCase(),o.variable.excludedKeyRegex)).join("."))(e),s=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,l=[(r=t[i])==null?void 0:r.computed(s)].flat().filter(c=>c);return l.length===1?l[0].value:l.reduce((c={},d)=>{const u=d,{colorScheme:f}=u,h=Vt(u,["colorScheme"]);return c[f]=h,c},void 0)},getSelectorRule(t,e,o,r){return o==="class"||o==="attr"?zo(Be(e)?`${t}${e},${t} ${e}`:t,r):zo(t,Be(e)?zo(e,r):r)},transformCSS(t,e,o,r,n={},i,s,l){if(Be(e)){const{cssLayer:c}=n;if(r!=="style"){const d=this.getColorSchemeOption(n,s);e=o==="dark"?d.reduce((u,{type:f,selector:h})=>(Be(h)&&(u+=h.includes("[CSS]")?h.replace("[CSS]",e):this.getSelectorRule(h,l,f,e)),u),""):zo(l??":root",e)}if(c){const d={name:"primeui",order:"primeui"};Gt(c)&&(d.name=mt(c.name,{name:t,type:r})),Be(d.name)&&(e=zo(`@layer ${d.name}`,e),i==null||i.layerNames(d.name))}return e}return""}},xe={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){const{theme:e}=t;e&&(this._theme=Lo(Ee({},e),{options:Ee(Ee({},this.defaults.options),e.options)}),this._tokens=pt.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var t;return((t=this.theme)==null?void 0:t.preset)||{}},get options(){var t;return((t=this.theme)==null?void 0:t.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(t){this.update({theme:t}),Qt.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=Lo(Ee({},this.theme),{preset:t}),this._tokens=pt.createTokens(t,this.defaults),this.clearLoadedStyleNames(),Qt.emit("preset:change",t),Qt.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=Lo(Ee({},this.theme),{options:t}),this.clearLoadedStyleNames(),Qt.emit("options:change",t),Qt.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(t){this._layerNames.add(t)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(t){return pt.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return pt.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){const o={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return pt.getPresetC(o)},getDirective(t="",e){const o={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return pt.getPresetD(o)},getCustomPreset(t="",e,o,r){const n={name:t,preset:e,options:this.options,selector:o,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return pt.getPreset(n)},getLayerOrderCSS(t=""){return pt.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,o="style",r){return pt.transformCSS(t,e,r,o,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,o={}){return pt.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,o={}){return pt.getStyleSheet({name:t,theme:this.theme,params:e,props:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(t){this._loadingStyles.add(t)},onStyleUpdated(t){this._loadingStyles.add(t)},onStyleLoaded(t,{name:e}){this._loadingStyles.size&&(this._loadingStyles.delete(e),Qt.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&Qt.emit("theme:load"))}};function Vg(...t){const e=Li(xe.getPreset(),...t);return xe.setPreset(e),e}function Fg(t){return rl().surfacePalette(t).update().preset}function Hi(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function Ui(t,e={}){if(Hi(t)){const o=(r,n)=>{var i,s;const l=(i=t==null?void 0:t.$attrs)!=null&&i[r]?[(s=t==null?void 0:t.$attrs)==null?void 0:s[r]]:[];return[n].flat().reduce((c,d)=>{if(d!=null){const u=typeof d;if(u==="string"||u==="number")c.push(d);else if(u==="object"){const f=Array.isArray(d)?o(r,d):Object.entries(d).map(([h,g])=>r==="style"&&(g||g===0)?`${h.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${g}`:g?h:void 0);c=f.length?c.concat(f.filter(h=>!!h)):c}}return c},l)};Object.entries(e).forEach(([r,n])=>{if(n!=null){const i=r.match(/^on(.+)/);i?t.addEventListener(i[1].toLowerCase(),n):r==="p-bind"||r==="pBind"?Ui(t,n):(n=r==="class"?[...new Set(o("class",n))].join(" ").trim():r==="style"?o("style",n).join(";").trim():n,(t.$attrs=t.$attrs||{})&&(t.$attrs[r]=n),t.setAttribute(r,n))}})}}function Ig(t,e){return Hi(t)?t.matches(e)?t:t.querySelector(e):null}function Lg(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function zg(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&Lg(t))}function nl(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function jg(t,e="",o){Hi(t)&&o!==null&&o!==void 0&&t.setAttribute(e,o)}var _n={};function Wg(t="pui_id_"){return _n.hasOwnProperty(t)||(_n[t]=0),_n[t]++,`${t}${_n[t]}`}var sr={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}};function lr(t){"@babel/helpers - typeof";return lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lr(t)}function il(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,r)}return o}function al(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?il(Object(o),!0).forEach(function(r){Hg(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):il(Object(o)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))})}return t}function Hg(t,e,o){return(e=Ug(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Ug(t){var e=qg(t,"string");return lr(e)=="symbol"?e:e+""}function qg(t,e){if(lr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var r=o.call(t,e||"default");if(lr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Yg(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;a.getCurrentInstance()?a.onMounted(t):e?t():a.nextTick(t)}var Xg=0;function Kg(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.ref(!1),r=a.ref(t),n=a.ref(null),i=nl()?window.document:void 0,s=e.document,l=s===void 0?i:s,c=e.immediate,d=c===void 0?!0:c,u=e.manual,f=u===void 0?!1:u,h=e.name,g=h===void 0?"style_".concat(++Xg):h,m=e.id,p=m===void 0?void 0:m,b=e.media,y=b===void 0?void 0:b,k=e.nonce,C=k===void 0?void 0:k,_=e.first,v=_===void 0?!1:_,S=e.onMounted,w=S===void 0?void 0:S,x=e.onUpdated,B=x===void 0?void 0:x,T=e.onLoad,E=T===void 0?void 0:T,O=e.props,M=O===void 0?{}:O,W=function(){},Y=function(F){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l){var L=al(al({},M),P),Q=L.name||g,oe=L.id||p,ne=L.nonce||C;n.value=l.querySelector('style[data-primevue-style-id="'.concat(Q,'"]'))||l.getElementById(oe)||l.createElement("style"),n.value.isConnected||(r.value=F||t,Ui(n.value,{type:"text/css",id:oe,media:y,nonce:ne}),v?l.head.prepend(n.value):l.head.appendChild(n.value),jg(n.value,"data-primevue-style-id",Q),Ui(n.value,L),n.value.onload=function(X){return E==null?void 0:E(X,{name:Q})},w==null||w(Q)),!o.value&&(W=a.watch(r,function(X){n.value.textContent=X,B==null||B(Q)},{immediate:!0}),o.value=!0)}},I=function(){!l||!o.value||(W(),zg(n.value)&&l.head.removeChild(n.value),o.value=!1)};return d&&!f&&Yg(Y),{id:p,name:g,el:n,css:r,unload:I,load:Y,isLoaded:a.readonly(o)}}function cr(t){"@babel/helpers - typeof";return cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cr(t)}function sl(t,e){return Zg(t)||Qg(t,e)||Jg(t,e)||Gg()}function Gg(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
13
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
12
|
+
`+(l!==s?`result of cast: ${l}`:""))}return i}_cast(e,o){let r=e===void 0?e:this.transforms.reduce((n,i)=>i.call(this,n,e,this),e);return r===void 0&&(r=this.getDefault(o)),r}_validate(e,o={},r,n){let{path:i,originalValue:s=e,strict:l=this.spec.strict}=o,c=e;l||(c=this._cast(c,Object.assign({assert:!1},o)));let d=[];for(let u of Object.values(this.internalTests))u&&d.push(u);this.runTests({path:i,value:c,originalValue:s,options:o,tests:d},r,u=>{if(u.length)return n(u,c);this.runTests({path:i,value:c,originalValue:s,options:o,tests:this.tests},r,n)})}runTests(e,o,r){let n=!1,{tests:i,value:s,originalValue:l,path:c,options:d}=e,u=p=>{n||(n=!0,o(p,s))},f=p=>{n||(n=!0,r(p,s))},h=i.length,g=[];if(!h)return f([]);let m={value:s,originalValue:l,path:c,options:d,schema:this};for(let p=0;p<i.length;p++){const b=i[p];b(m,u,function(k){k&&(Array.isArray(k)?g.push(...k):g.push(k)),--h<=0&&f(g)})}}asNestedTest({key:e,index:o,parent:r,parentPath:n,originalParent:i,options:s}){const l=e??o;if(l==null)throw TypeError("Must include `key` or `index` for nested validations");const c=typeof l=="number";let d=r[l];const u=Object.assign({},s,{strict:!0,parent:r,value:d,originalValue:i[l],key:void 0,[c?"index":"key"]:l,path:c||l.includes(".")?`${n||""}[${c?l:`"${l}"`}]`:(n?`${n}.`:"")+e});return(f,h,g)=>this.resolve(u)._validate(d,u,h,g)}validate(e,o){var r;let n=this.resolve(Object.assign({},o,{value:e})),i=(r=o==null?void 0:o.disableStackTrace)!=null?r:n.spec.disableStackTrace;return new Promise((s,l)=>n._validate(e,o,(c,d)=>{Je.isError(c)&&(c.value=d),l(c)},(c,d)=>{c.length?l(new Je(c,d,void 0,void 0,i)):s(d)}))}validateSync(e,o){var r;let n=this.resolve(Object.assign({},o,{value:e})),i,s=(r=o==null?void 0:o.disableStackTrace)!=null?r:n.spec.disableStackTrace;return n._validate(e,Object.assign({},o,{sync:!0}),(l,c)=>{throw Je.isError(l)&&(l.value=c),l},(l,c)=>{if(l.length)throw new Je(l,e,void 0,void 0,s);i=c}),i}isValid(e,o){return this.validate(e,o).then(()=>!0,r=>{if(Je.isError(r))return!1;throw r})}isValidSync(e,o){try{return this.validateSync(e,o),!0}catch(r){if(Je.isError(r))return!1;throw r}}_getDefault(e){let o=this.spec.default;return o==null?o:typeof o=="function"?o.call(this,e):Fo(o)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return arguments.length===0?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,o){const r=this.clone({nullable:e});return r.internalTests.nullable=Vo({message:o,name:"nullable",test(n){return n===null?this.schema.spec.nullable:!0}}),r}optionality(e,o){const r=this.clone({optional:e});return r.internalTests.optionality=Vo({message:o,name:"optionality",test(n){return n===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(e=Ct.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=Ct.notNull){return this.nullability(!1,e)}required(e=Ct.required){return this.clone().withMutation(o=>o.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let o=this.clone();return o.transforms.push(e),o}test(...e){let o;if(e.length===1?typeof e[0]=="function"?o={test:e[0]}:o=e[0]:e.length===2?o={name:e[0],test:e[1]}:o={name:e[0],message:e[1],test:e[2]},o.message===void 0&&(o.message=Ct.default),typeof o.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),n=Vo(o),i=o.exclusive||o.name&&r.exclusiveTests[o.name]===!0;if(o.exclusive&&!o.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return o.name&&(r.exclusiveTests[o.name]=!!o.exclusive),r.tests=r.tests.filter(s=>!(s.OPTIONS.name===o.name&&(i||s.OPTIONS.test===n.OPTIONS.test))),r.tests.push(n),r}when(e,o){!Array.isArray(e)&&typeof e!="string"&&(o=e,e=".");let r=this.clone(),n=Ns(e).map(i=>new bo(i));return n.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof o=="function"?new yn(n,o):yn.fromOptions(n,o)),r}typeError(e){let o=this.clone();return o.internalTests.typeError=Vo({message:e,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),o}oneOf(e,o=Ct.oneOf){let r=this.clone();return e.forEach(n=>{r._whitelist.add(n),r._blacklist.delete(n)}),r.internalTests.whiteList=Vo({message:o,name:"oneOf",skipAbsent:!0,test(n){let i=this.schema._whitelist,s=i.resolveAll(this.resolve);return s.includes(n)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:s}})}}),r}notOneOf(e,o=Ct.notOneOf){let r=this.clone();return e.forEach(n=>{r._blacklist.add(n),r._whitelist.delete(n)}),r.internalTests.blacklist=Vo({message:o,name:"notOneOf",test(n){let i=this.schema._blacklist,s=i.resolveAll(this.resolve);return s.includes(n)?this.createError({params:{values:Array.from(i).join(", "),resolved:s}}):!0}}),r}strip(e=!0){let o=this.clone();return o.spec.strip=e,o}describe(e){const o=(e?this.resolve(e):this).clone(),{label:r,meta:n,optional:i,nullable:s}=o.spec;return{meta:n,label:r,optional:i,nullable:s,default:o.getDefault(e),type:o.type,oneOf:o._whitelist.describe(),notOneOf:o._blacklist.describe(),tests:o.tests.map(c=>({name:c.OPTIONS.name,params:c.OPTIONS.params})).filter((c,d,u)=>u.findIndex(f=>f.name===c.name)===d)}}}_t.prototype.__isYupSchema__=!0;for(const t of["validate","validateSync"])_t.prototype[`${t}At`]=function(e,o,r={}){const{parent:n,parentPath:i,schema:s}=Ih(this,e,o,r.context);return s[t](n&&n[i],Object.assign({},r,{parent:n,path:e}))};for(const t of["equals","is"])_t.prototype[t]=_t.prototype.oneOf;for(const t of["not","nope"])_t.prototype[t]=_t.prototype.notOneOf;const Lh=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function zh(t){const e=$i(t);if(!e)return Date.parse?Date.parse(t):Number.NaN;if(e.z===void 0&&e.plusMinus===void 0)return new Date(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond).valueOf();let o=0;return e.z!=="Z"&&e.plusMinus!==void 0&&(o=e.hourOffset*60+e.minuteOffset,e.plusMinus==="+"&&(o=0-o)),Date.UTC(e.year,e.month,e.day,e.hour,e.minute+o,e.second,e.millisecond)}function $i(t){var e,o;const r=Lh.exec(t);return r?{year:At(r[1]),month:At(r[2],1)-1,day:At(r[3],1),hour:At(r[4]),minute:At(r[5]),second:At(r[6]),millisecond:r[7]?At(r[7].substring(0,3)):0,precision:(e=(o=r[7])==null?void 0:o.length)!=null?e:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:At(r[10]),minuteOffset:At(r[11])}:null}function At(t,e=0){return Number(t)||e}let jh=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Wh=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Hh=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Uh="^\\d{4}-\\d{2}-\\d{2}",qh="\\d{2}:\\d{2}:\\d{2}",Yh="(([+-]\\d{2}(:?\\d{2})?)|Z)",Xh=new RegExp(`${Uh}T${qh}(\\.\\d+)?${Yh}$`),Kh=t=>yo(t)||t===t.trim(),Gh={}.toString();function Ai(){return new Ms}class Ms extends _t{constructor(){super({type:"string",check(e){return e instanceof String&&(e=e.valueOf()),typeof e=="string"}}),this.withMutation(()=>{this.transform((e,o,r)=>{if(!r.spec.coerce||r.isType(e)||Array.isArray(e))return e;const n=e!=null&&e.toString?e.toString():e;return n===Gh?e:n})})}required(e){return super.required(e).withMutation(o=>o.test({message:e||Ct.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(o=>o.OPTIONS.name!=="required"),e))}length(e,o=Qe.length){return this.test({message:o,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(r){return r.length===this.resolve(e)}})}min(e,o=Qe.min){return this.test({message:o,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(r){return r.length>=this.resolve(e)}})}max(e,o=Qe.max){return this.test({name:"max",exclusive:!0,message:o,params:{max:e},skipAbsent:!0,test(r){return r.length<=this.resolve(e)}})}matches(e,o){let r=!1,n,i;return o&&(typeof o=="object"?{excludeEmptyString:r=!1,message:n,name:i}=o:n=o),this.test({name:i||"matches",message:n||Qe.matches,params:{regex:e},skipAbsent:!0,test:s=>s===""&&r||s.search(e)!==-1})}email(e=Qe.email){return this.matches(jh,{name:"email",message:e,excludeEmptyString:!0})}url(e=Qe.url){return this.matches(Wh,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=Qe.uuid){return this.matches(Hh,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let o="",r,n;return e&&(typeof e=="object"?{message:o="",allowOffset:r=!1,precision:n=void 0}=e:o=e),this.matches(Xh,{name:"datetime",message:o||Qe.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:o||Qe.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:i=>{if(!i||r)return!0;const s=$i(i);return s?!!s.z:!1}}).test({name:"datetime_precision",message:o||Qe.datetime_precision,params:{precision:n},skipAbsent:!0,test:i=>{if(!i||n==null)return!0;const s=$i(i);return s?s.precision===n:!1}})}ensure(){return this.default("").transform(e=>e===null?"":e)}trim(e=Qe.trim){return this.transform(o=>o!=null?o.trim():o).test({message:e,name:"trim",test:Kh})}lowercase(e=Qe.lowercase){return this.transform(o=>yo(o)?o:o.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:o=>yo(o)||o===o.toLowerCase()})}uppercase(e=Qe.uppercase){return this.transform(o=>yo(o)?o:o.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:o=>yo(o)||o===o.toUpperCase()})}}Ai.prototype=Ms.prototype;let Jh=new Date(""),Qh=t=>Object.prototype.toString.call(t)==="[object Date]";class vn extends _t{constructor(){super({type:"date",check(e){return Qh(e)&&!isNaN(e.getTime())}}),this.withMutation(()=>{this.transform((e,o,r)=>!r.spec.coerce||r.isType(e)||e===null?e:(e=zh(e),isNaN(e)?vn.INVALID_DATE:new Date(e)))})}prepareParam(e,o){let r;if(bo.isRef(e))r=e;else{let n=this.cast(e);if(!this._typeCheck(n))throw new TypeError(`\`${o}\` must be a Date or a value that can be \`cast()\` to a Date`);r=n}return r}min(e,o=Ti.min){let r=this.prepareParam(e,"min");return this.test({message:o,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(n){return n>=this.resolve(r)}})}max(e,o=Ti.max){let r=this.prepareParam(e,"max");return this.test({message:o,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(n){return n<=this.resolve(r)}})}}vn.INVALID_DATE=Jh,vn.prototype;function Zh(t,e=[]){let o=[],r=new Set,n=new Set(e.map(([s,l])=>`${s}-${l}`));function i(s,l){let c=po.split(s)[0];r.add(c),n.has(`${l}-${c}`)||o.push([l,c])}for(const s of Object.keys(t)){let l=t[s];r.add(s),bo.isRef(l)&&l.isSibling?i(l.path,s):Pi(l)&&"deps"in l&&l.deps.forEach(c=>i(c,s))}return Dh.array(Array.from(r),o).reverse()}function Vs(t,e){let o=1/0;return t.some((r,n)=>{var i;if((i=e.path)!=null&&i.includes(r))return o=n,!0}),o}function Fs(t){return(e,o)=>Vs(t,e)-Vs(t,o)}const eg=(t,e,o)=>{if(typeof t!="string")return t;let r=t;try{r=JSON.parse(t)}catch{}return o.isType(r)?r:t};function wn(t){if("fields"in t){const e={};for(const[o,r]of Object.entries(t.fields))e[o]=wn(r);return t.setFields(e)}if(t.type==="array"){const e=t.optional();return e.innerType&&(e.innerType=wn(e.innerType)),e}return t.type==="tuple"?t.optional().clone({types:t.spec.types.map(wn)}):"optional"in t?t.optional():t}const tg=(t,e)=>{const o=[...po.normalizePath(e)];if(o.length===1)return o[0]in t;let r=o.pop(),n=po.getter(po.join(o),!0)(t);return!!(n&&r in n)};let Is=t=>Object.prototype.toString.call(t)==="[object Object]";function Ls(t,e){let o=Object.keys(t.fields);return Object.keys(e).filter(r=>o.indexOf(r)===-1)}const og=Fs([]);function Mi(t){return new zs(t)}class zs extends _t{constructor(e){super({type:"object",check(o){return Is(o)||typeof o=="function"}}),this.fields=Object.create(null),this._sortErrors=og,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,o={}){var r;let n=super._cast(e,o);if(n===void 0)return this.getDefault(o);if(!this._typeCheck(n))return n;let i=this.fields,s=(r=o.stripUnknown)!=null?r:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(n).filter(f=>!this._nodes.includes(f))),c={},d=Object.assign({},o,{parent:c,__validating:o.__validating||!1}),u=!1;for(const f of l){let h=i[f],g=f in n;if(h){let m,p=n[f];d.path=(o.path?`${o.path}.`:"")+f,h=h.resolve({value:p,context:o.context,parent:c});let b=h instanceof _t?h.spec:void 0,y=b==null?void 0:b.strict;if(b!=null&&b.strip){u=u||f in n;continue}m=!o.__validating||!y?h.cast(n[f],d):n[f],m!==void 0&&(c[f]=m)}else g&&!s&&(c[f]=n[f]);(g!==f in c||c[f]!==n[f])&&(u=!0)}return u?c:n}_validate(e,o={},r,n){let{from:i=[],originalValue:s=e,recursive:l=this.spec.recursive}=o;o.from=[{schema:this,value:s},...i],o.__validating=!0,o.originalValue=s,super._validate(e,o,r,(c,d)=>{if(!l||!Is(d)){n(c,d);return}s=s||d;let u=[];for(let f of this._nodes){let h=this.fields[f];!h||bo.isRef(h)||u.push(h.asNestedTest({options:o,key:f,parent:d,parentPath:o.path,originalParent:s}))}this.runTests({tests:u,value:d,originalValue:s,options:o},r,f=>{n(f.sort(this._sortErrors).concat(c),d)})})}clone(e){const o=super.clone(e);return o.fields=Object.assign({},this.fields),o._nodes=this._nodes,o._excludedEdges=this._excludedEdges,o._sortErrors=this._sortErrors,o}concat(e){let o=super.concat(e),r=o.fields;for(let[n,i]of Object.entries(this.fields)){const s=r[n];r[n]=s===void 0?i:s}return o.withMutation(n=>n.setFields(r,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let o={};return this._nodes.forEach(r=>{var n;const i=this.fields[r];let s=e;(n=s)!=null&&n.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[r]})),o[r]=i&&"getDefault"in i?i.getDefault(s):void 0}),o}setFields(e,o){let r=this.clone();return r.fields=e,r._nodes=Zh(e,o),r._sortErrors=Fs(Object.keys(e)),o&&(r._excludedEdges=o),r}shape(e,o=[]){return this.clone().withMutation(r=>{let n=r._excludedEdges;return o.length&&(Array.isArray(o[0])||(o=[o]),n=[...r._excludedEdges,...o]),r.setFields(Object.assign(r.fields,e),n)})}partial(){const e={};for(const[o,r]of Object.entries(this.fields))e[o]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(e)}deepPartial(){return wn(this)}pick(e){const o={};for(const r of e)this.fields[r]&&(o[r]=this.fields[r]);return this.setFields(o,this._excludedEdges.filter(([r,n])=>e.includes(r)&&e.includes(n)))}omit(e){const o=[];for(const r of Object.keys(this.fields))e.includes(r)||o.push(r);return this.pick(o)}from(e,o,r){let n=po.getter(e,!0);return this.transform(i=>{if(!i)return i;let s=i;return tg(i,e)&&(s=Object.assign({},i),r||delete s[e],s[o]=n(i)),s})}json(){return this.transform(eg)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||bn.exact,test(o){if(o==null)return!0;const r=Ls(this.schema,o);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,o=bn.noUnknown){typeof e!="boolean"&&(o=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:o,test(n){if(n==null)return!0;const i=Ls(this.schema,n);return!e||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,o=bn.noUnknown){return this.noUnknown(!e,o)}transformKeys(e){return this.transform(o=>{if(!o)return o;const r={};for(const n of Object.keys(o))r[e(n)]=o[n];return r})}camelCase(){return this.transformKeys(Ni.camelCase)}snakeCase(){return this.transformKeys(Ni.snakeCase)}constantCase(){return this.transformKeys(e=>Ni.snakeCase(e).toUpperCase())}describe(e){const o=(e?this.resolve(e):this).clone(),r=super.describe(e);r.fields={};for(const[i,s]of Object.entries(o.fields)){var n;let l=e;(n=l)!=null&&n.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[i]})),r.fields[i]=s.describe(l)}return r}}Mi.prototype=zs.prototype;function Vi(t,e,o){const r=new mo;let n=a.ref({});const i=a.ref({}),s=a.ref({});let l=a.ref([]);const c=a.ref(null),d=a.ref([]);let u=a.ref([]),f=a.ref(!1);const h=a.ref({});let{handleSubmit:g,errors:m,setErrors:p}=Bs();const b=async()=>{var F;try{const P=await r.getEntityRecords(t);P&&P.response&&(n.value=P.response,l.value=(F=P.response.entity.entityDefinition)==null?void 0:F.columns,z(),w(),E())}catch(P){toast.add({severity:"error",summary:"Error",detail:P.errorMessage,life:3e3})}finally{}},y=async()=>{var F;try{const P=await r.getRecord(t,e);P&&P.response&&(n.value=P.response,l.value=(F=P.response.entity.entityDefinition)==null?void 0:F.columns,z(),i.value=JSON.parse(JSON.stringify(P.response.result[0])),E())}catch(P){console.error("Error fetching entity:",P.errorMessage)}finally{}},k=async()=>{var F,P;try{const L=await r.getRelatedEntityRecord(t,e);L&&L.response&&(n.value=L.response,l.value=(P=(F=L.response.entity)==null?void 0:F.entityDefinition)==null?void 0:P.columns,z(),i.value=JSON.parse(JSON.stringify(L.response.result[0])),i.value.entityName&&delete i.value.entityName,i.value.linkedEntities&&delete i.value.linkedEntities,u.value=L.response.result[0].linkedEntities,s.value=JSON.parse(JSON.stringify(i.value)),E())}catch(L){console.error("Error fetching entity:",L.errorMessage)}finally{}},C=async F=>{try{let P=await r.addRecord(t,F);P&&P.response&&o("onSaveDialog",{entityName:t,recordId:e})}catch(P){P.validationErrors&&(d.value=JSON.parse(JSON.stringify(P.validationErrors))),console.error("Error fetching entity:",P.errorMessage)}finally{}},_=async(F,P)=>{try{let L=await r.addRecord(t,P);if(L&&L.response){let Q=await r.saveRelatedEntityRecord(t,L.response.recordId,F.linkedEntities);Q&&Q.response&&o("onSaveDialog",{entityName:t,recordId:e})}}catch(L){L.validationErrors&&(d.value=JSON.parse(JSON.stringify(L.validationErrors))),console.error("Error fetching entity:",L.errorMessage)}finally{}},v=async F=>{try{const P=await r.updateRecord(t,e,F);P&&P.response&&(f.value=!1,s.value=JSON.parse(JSON.stringify(i.value)),o("onSaveDialog",{entityName:t,recordId:e}))}catch(P){P.validationErrors&&(d.value=JSON.parse(JSON.stringify(P.errvalidationErrorsors))),console.error("Error fetching entity:",P.errorMessage)}finally{}},S=async(F,P,L)=>{try{let Q=await r.saveRelatedEntityRecord(F,P,L);Q&&Q.response&&o("onSaveDialog",{entityName:t,enityRecordId:P})}catch(Q){Q.validationErrors&&(d.value=JSON.parse(JSON.stringify(Q.validationErrors))),console.error("Error fetching entity:",Q.errorMessage)}finally{}},w=()=>{for(let F=0;F<l.value.length;F++){let P=l.value[F];P.autoGenerated||(i.value[P.name]="")}},x=F=>{let P="";for(let L=0;L<l.value.length;L++){let Q=l.value[L];if(F==Q.name){P=Q.type;break}}return P},B=()=>{const F=l.value.filter(L=>L.autoGenerated).map(L=>L.name);return Object.entries(i.value).filter(([L])=>!F.includes(L)).map(([L,Q])=>({recordColumnName:L,recordColumnValue:Q,columnType:x(L)}))},T=async(F={})=>{try{await c.value.validate(i.value,{abortEarly:!1}),p({})}catch(L){const Q=L.inner.reduce((ne,X)=>(ne[X.path]||(ne[X.path]={messages:[]}),ne[X.path].messages.push(...X.errors),ne),{}),oe=Object.entries(Q).reduce((ne,[X,J])=>(ne[X]={messages:J.messages},ne),{});p(oe);return}const P={dataDefinitions:B()};e?await v(P):F.relationType=="MANY_TO_ONE"?await _(F,P):await C(P)},E=()=>{c.value=Mi().shape(l.value.reduce((F,P)=>(P.autoGenerated||(F[P.name]=Ai().nullable(!1).test({name:"custom-validation",test:function(L){const Q=[];let oe="";if(P.required&&(!L||L.trim()===""))if(P.validations){oe=O(P.validations,"VALIDATE_REQUIRED"),Q.push(oe);let ne=W(P.validations,"VALIDATE_REQUIRED");ne&&(ne="hint:"+ne,Q.push(ne))}else oe=P.displayName+" is required.",Q.push(oe);else{if(P.maxLength&&L.length>P.maxLength)if(P.validations){oe=O(P.validations,"VALIDATE_MAXLENGTH"),Q.push(oe);let ne=W(P.validations,"VALIDATE_MAXLENGTH");ne&&(ne="hint:"+ne,Q.push(ne))}else oe=P.displayName+" cannot exceed from "+P.maxLength+" characters",Q.push(oe);if(P.regxId&&!new RegExp(M(P.validations,"VALIDATE_REGX")).test(L))if(P.validations){oe=O(P.validations,"VALIDATE_REGX"),Q.push(oe);let ne=W(P.validations,"VALIDATE_REGX");ne&&(ne="hint:"+ne,Q.push(ne))}else oe=P.displayName+" invalid format.",Q.push(oe)}return Q.length>0?this.createError({message:Q}):!0}})),F),{}))},O=(F,P)=>{for(let L=0;L<F.length;L++)if(P==F[L].type)return F[L].message},M=(F,P)=>{for(let L=0;L<F.length;L++)if(P==F[L].type)return F[L].regx},W=(F,P)=>{for(let L=0;L<F.length;L++)if(P==F[L].type)return F[L].hint},Y=F=>{p({...m.value,[F]:null}),f.value=!0},I=()=>{f.value=!1;for(let F in i.value)i.value.hasOwnProperty(F)&&p({...m.value,[F]:null});i.value=JSON.parse(JSON.stringify(s.value))},z=()=>{for(let F=0;F<l.value.length;F++){const P=l.value[F];if(P.primaryKey&&P.primaryKey==!0){h.value=P;break}}};return{formData:i,columns:l,errors:m,backendErrors:d,isDataChange:f,linkedEntities:u,primarayKeyColumn:h,clearErrors:Y,saveRecord:T,fetchAllRecords:b,fetchRecord:y,getRelatedEntityRecordById:k,cancleRecord:I,saveRelatedEntityRecord:S}}const rg={key:0,class:"surface-card"},ng={class:"info"},ig={key:0,class:"list-none p-0"},js={__name:"EntityFormErrors",props:{errors:Array},setup(t){let e=a.ref(!0);const o=()=>{e.value=!e.value};return(r,n)=>{var s;const i=a.resolveComponent("Message");return((s=t.errors)==null?void 0:s.length)>0?(a.openBlock(),a.createElementBlock("div",rg,[n[1]||(n[1]=a.createElementVNode("h4",{class:"flex-1 font-bold text-red-500"},"Errors",-1)),a.createElementVNode("div",ng,[a.createElementVNode("span",{onClick:n[0]||(n[0]=l=>o()),class:"cursor-pointer underline showHideColor"},a.toDisplayString(a.unref(e)?"Hide":"Show"),1)]),a.unref(e)?(a.openBlock(),a.createElementBlock("ul",ig,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.errors,(l,c)=>(a.openBlock(),a.createElementBlock("li",{key:c,class:"mb-2"},[a.createVNode(i,{style:{"word-break":"break-all"},closable:!1,severity:"error"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(l.message),1)]),_:2},1024)]))),128))])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)}}},ag={class:"field flex flex-col mb-3"},sg=["for"],lg={key:0,class:"flex items-center"},cg={key:1},dg={class:"flex items-center"},Ws={__name:"RelatedEntitySelection",props:{modelValue:{required:!0},entityName:{type:String,required:!0},columnName:{type:String,required:!0},relatedEntityColumn:{type:String,required:!0}},emits:["update:modelValue"],setup(t,{emit:e}){const o=t,r=new mo,n=a.ref({});let i=a.ref("");const s=e;a.onMounted(()=>{l()});const l=async()=>{try{const u=await r.getEntityRecords(o.entityName);u&&u.response&&(n.value=u.response,d())}catch{}finally{}},c=()=>{s("update:modelValue",i.value[o.relatedEntityColumn])},d=()=>{for(let u=0;u<n.value.result.length;u++){const f=n.value.result[u];if(f[o.relatedEntityColumn]==o.modelValue){i.value=f;break}}};return(u,f)=>{const h=a.resolveComponent("Select");return a.openBlock(),a.createElementBlock("div",ag,[a.createElementVNode("label",{for:t.columnName},a.toDisplayString(t.columnName),9,sg),a.createVNode(h,{modelValue:a.unref(i),"onUpdate:modelValue":[f[0]||(f[0]=g=>a.isRef(i)?i.value=g:i=g),c],"item-value":t.relatedEntityColumn,options:n.value.result,filter:"",optionLabel:t.relatedEntityColumn,placeholder:"Select "+t.relatedEntityColumn,class:"w-full"},{value:a.withCtx(g=>[g.value?(a.openBlock(),a.createElementBlock("div",lg,[a.createElementVNode("div",null,a.toDisplayString(g.value[t.relatedEntityColumn]),1)])):(a.openBlock(),a.createElementBlock("span",cg,a.toDisplayString(g.placeholder),1))]),option:a.withCtx(g=>[a.createElementVNode("div",dg,[a.createElementVNode("div",null,a.toDisplayString(g.option[t.relatedEntityColumn]),1)])]),_:1},8,["modelValue","item-value","options","optionLabel","placeholder"])])}}},ug={key:0,style:{"font-weight":"700","font-size":"1.25rem"}},fg={key:1,style:{"font-weight":"700","font-size":"1.25rem"}},hg={__name:"EntityDialog",props:a.mergeModels({entityName:{type:String,required:!0},recordId:{type:[String,Number],default:null}},{showForm:{},showFormModifiers:{}}),emits:a.mergeModels(["onSaveDialog"],["update:showForm"]),setup(t,{emit:e}){const o=a.useModel(t,"showForm"),r=e,{formData:n,columns:i,errors:s,backendErrors:l,clearErrors:c,saveRecord:d,fetchAllRecords:u,fetchRecord:f}=Vi(t.entityName,t.recordId,r);return a.onMounted(()=>{t.recordId?f():u()}),(h,g)=>{const m=a.resolveComponent("Button"),p=a.resolveComponent("Dialog");return o.value?(a.openBlock(),a.createBlock(p,{key:0,showFooter:!1,visible:o.value,"onUpdate:visible":g[2]||(g[2]=b=>o.value=b),style:{width:"50rem"},breakpoints:{"1199px":"75vw","575px":"90vw"},modal:!0,class:"p-fluid"},{header:a.withCtx(()=>[t.recordId?(a.openBlock(),a.createElementBlock("span",ug,"Edit "+a.toDisplayString(t.entityName)+" record details",1)):a.createCommentVNode("",!0),t.recordId?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",fg,"Add "+a.toDisplayString(t.entityName)+" record details",1))]),footer:a.withCtx(()=>[a.createVNode(m,{type:"button",icon:"",label:"Cancel",severity:"secondary",onClick:g[0]||(g[0]=b=>o.value=!1)}),a.createVNode(m,{type:"button",icon:"",label:"Save",severity:"success",onClick:g[1]||(g[1]=b=>a.unref(d)())})]),default:a.withCtx(()=>{var b;return[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(i),(y,k)=>{var C;return a.openBlock(),a.createElementBlock("div",{key:k},[!y.autoGenerated&&!y.foreignKey?(a.openBlock(),a.createBlock(un,{key:0,modelValue:a.unref(n)[y.name],"onUpdate:modelValue":_=>a.unref(n)[y.name]=_,column:y,errors:(C=a.unref(s)[y.name])==null?void 0:C.messages,onInput:a.unref(c)},null,8,["modelValue","onUpdate:modelValue","column","errors","onInput"])):a.createCommentVNode("",!0),!y.autoGenerated&&y.foreignKey?(a.openBlock(),a.createBlock(Ws,{key:1,modelValue:a.unref(n)[y.name],"onUpdate:modelValue":_=>a.unref(n)[y.name]=_,entityName:y.foreignKey.referencedEntityName,columnName:y.name,relatedEntityColumn:y.foreignKey.referencedColumnName},null,8,["modelValue","onUpdate:modelValue","entityName","columnName","relatedEntityColumn"])):a.createCommentVNode("",!0)])}),128)),((b=a.unref(l))==null?void 0:b.length)>0?(a.openBlock(),a.createBlock(js,{key:0,errors:a.unref(l)},null,8,["errors"])):a.createCommentVNode("",!0)]}),_:1},8,["visible"])):a.createCommentVNode("",!0)}}},gg={__name:"DeleteConfirmationDialog",props:a.mergeModels({entityName:{type:String,required:!0},recordId:{type:[String,Number],default:null}},{showDeleteDialog:{},showDeleteDialogModifiers:{}}),emits:a.mergeModels(["onDeleteItem"],["update:showDeleteDialog"]),setup(t,{emit:e}){const o=new mo,r=a.useModel(t,"showDeleteDialog"),n=e,i=async()=>{try{const s=await o.deleteRecord(t.entityName,t.recordId);s&&s.response&&n("onDeleteItem")}catch(s){console.error("Error deleting record:",s.errorMessage)}finally{}};return(s,l)=>{const c=a.resolveComponent("Button"),d=a.resolveComponent("Dialog");return a.openBlock(),a.createBlock(d,{visible:r.value,"onUpdate:visible":l[1]||(l[1]=u=>r.value=u),style:{width:"450px"},header:"Confirm",modal:!0},{footer:a.withCtx(()=>[a.createVNode(c,{label:"No",icon:"pi pi-times",text:"",onClick:l[0]||(l[0]=u=>r.value=!1)}),a.createVNode(c,{label:"Yes",icon:"pi pi-check",text:"",onClick:i})]),default:a.withCtx(()=>[l[2]||(l[2]=a.createElementVNode("div",{class:"flex items-center justify-center"},[a.createElementVNode("i",{class:"pi pi-exclamation-triangle mr-3",style:{"font-size":"2rem"}}),a.createElementVNode("span",null,"Are you sure you want to delete the selected item?")],-1))]),_:1},8,["visible"])}}};var mg=Object.defineProperty,Hs=Object.getOwnPropertySymbols,pg=Object.prototype.hasOwnProperty,bg=Object.prototype.propertyIsEnumerable,Us=(t,e,o)=>e in t?mg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,yg=(t,e)=>{for(var o in e||(e={}))pg.call(e,o)&&Us(t,o,e[o]);if(Hs)for(var o of Hs(e))bg.call(e,o)&&Us(t,o,e[o]);return t};function Fi(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function qs(t){return!!(t&&t.constructor&&t.call&&t.apply)}function Be(t){return!Fi(t)}function Gt(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function mt(t,...e){return qs(t)?t(...e):t}function St(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Jt(t){return St(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function Ys(t,e="",o={}){const r=Jt(e).split("."),n=r.shift();return n?Gt(t)?Ys(mt(t[Object.keys(t).find(i=>Jt(i)===n)||""],o),r.join("."),o):void 0:mt(t,o)}function Ii(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function kg(t){return Be(t)&&!isNaN(t)}function Mt(t,e){if(e){const o=e.test(t);return e.lastIndex=0,o}return!1}function Xs(...t){const e=(o={},r={})=>{const n=yg({},o);return Object.keys(r).forEach(i=>{Gt(r[i])&&i in o&&Gt(o[i])?n[i]=e(o[i],r[i]):n[i]=r[i]}),n};return t.reduce((o,r,n)=>n===0?r:e(o,r),{})}function ir(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}function Ks(t){return St(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,o)=>o===0?e:"-"+e.toLowerCase()).toLowerCase():t}function Gs(t){return St(t)?t.replace(/[A-Z]/g,(e,o)=>o===0?e:"."+e.toLowerCase()).toLowerCase():t}var Io={STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter"},xg={AND:"and",OR:"or"};const vg={key:0},wg={key:1},Li={__name:"RecordColumnRenderer",props:{column:Object,value:null},setup(t){const e=a.ref(null),o=Object.assign({"/src/directives/dateFormat.js":()=>Promise.resolve().then(()=>Z1),"/src/directives/textFormatUpperCase.js":()=>Promise.resolve().then(()=>e_)});async function r(){await a.nextTick();const n=o[`/src/directives/${t.column.displayFormatKey}.js`];n&&e.value&&n().then(i=>{i.default.beforeMount(e.value,{value:t.value,arg:t.column.displayFormat})})}return a.onMounted(()=>{r()}),a.onUpdated(()=>{r()}),(n,i)=>t.column.displayFormatKey?(a.openBlock(),a.createElementBlock("span",vg,[a.createElementVNode("span",{ref_key:"el",ref:e},a.toDisplayString(t.value),513)])):(a.openBlock(),a.createElementBlock("span",wg,a.toDisplayString(t.value),1))}},Cg={class:"my-2"},_g={class:"flex flex-col md:flex-row md:justify-between md:items-center"},Sg={class:"flex flex-row gap-2"},zi={__name:"Grid",props:{entityName:String,showAddButton:Boolean,showClearFilters:Boolean,columnsToShow:Array,editable:Boolean,deleteable:Boolean,showPagination:Boolean},setup(t){const e=lt(),o=t;console.log("columnsToShow",o.columnsToShow);const r=Ke.useRoute(),n=a.ref(o.entityName||r.params.entityName),i=a.ref({}),s=a.ref(""),l=a.ref(!1),c=a.ref(!1),{items:d,headers:u,first:f,totalRecords:h,pageSize:g,loading:m,sortBy:p,sortDirection:b,operatorMap:y,filterToSend:k,primarayKeyColumn:C,fullTextSearch:_,listingResponse:v,onFullTextSearch:S,getDatatypeByField:w,getColumnDatatype:x,onSort:B,onPage:T,onFilter:E,fetchEntityFilterData:O,fetchEntityByName:M}=Mf(n.value),W=a.ref();let Y=a.ref(!1);const I=X=>{i.value=X.reduce((J,ie)=>{if(!ie.filterable)return J;let ue=Io.CONTAINS;switch(ie.datatype.toLowerCase()){case"string":case"uuid":ue=Io.STARTS_WITH;break;case"date":ue=Io.DATE_IS;break;case"numeric":case"int":case"integer":ue=Io.EQUALS;break;case"bool":case"boolean":ue=Io.EQUALS;break}return ie.datatype=="bool"||ie.datatype=="boolean"?J[ie.field]={value:null,matchMode:Io.EQUALS}:J[ie.field]={operator:xg.AND,constraints:[{value:null,matchMode:ue}]},J},{})},z=()=>{I(u.value),k.value=ne(i.value),E()},F=X=>{k.value=ne(i.value),E()},P=X=>{X?s.value=X[C.value.name]:s.value="",l.value=!l.value},L=()=>{l.value=!1,O(!1)},Q=X=>{s.value=X[C.value.name],c.value=!0},oe=()=>{c.value=!1,O(!1)},ne=X=>Object.keys(X).map(J=>{const ie=X[J];return ie.constraints?ie.constraints.filter(ue=>ue.value!==null&&ue.value!=="").map(ue=>({columnName:J,operator:y[ue.matchMode]??ue.matchMode,value:ue.value,columnType:w(J)})):ie.value!==null&&ie.value!==""?{columnName:J,operator:y[ie.matchMode]??ie.matchMode,value:ie.value,columnType:w(J)}:[]}).flat();return a.watch(()=>e.globalConfigs.appId,async X=>{X&&M(n.value)},{immediate:!0}),a.watch(()=>u.value,X=>{!Y.value&&X&&X.length&&(I(X),Y.value=!0)},{immediate:!0}),(X,J)=>{const ie=a.resolveComponent("Button"),ue=a.resolveComponent("Toolbar"),De=a.resolveComponent("ProgressSpinner"),st=a.resolveComponent("InputIcon"),Xe=a.resolveComponent("IconField"),vt=a.resolveComponent("DatePicker"),ft=a.resolveComponent("InputNumber"),U=a.resolveComponent("Checkbox"),V=a.resolveComponent("Column"),he=a.resolveComponent("DataTable");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",a.normalizeProps(a.guardReactiveProps(X.$attrs)),[a.renderSlot(X.$slots,"header"),t.showClearFilters||t.showAddButton?(a.openBlock(),a.createBlock(ue,{key:0,class:"mb-4 mt-4"},a.createSlots({_:2},[t.showClearFilters?{name:"start",fn:a.withCtx(()=>[a.createElementVNode("div",Cg,[a.createVNode(ie,{type:"button",icon:"pi pi-filter-slash",label:"Clear",severity:"warning",onClick:J[0]||(J[0]=me=>z())})])]),key:"0"}:void 0,t.showAddButton?{name:"end",fn:a.withCtx(()=>[a.createVNode(ie,{label:"Add",icon:"pi pi-plus",class:"mr-2",severity:"success",onClick:J[1]||(J[1]=me=>P())})]),key:"1"}:void 0]),1024)):a.createCommentVNode("",!0),a.createVNode(he,{lazy:"",value:a.unref(d),loading:a.unref(m),ref_key:"dt",ref:W,stripedRows:!0,showGridlines:"",rowHover:!0,paginator:t.showPagination,rows:a.unref(g),rowsPerPageOptions:[10,25,50,100],totalRecords:a.unref(h),first:a.unref(f),sortField:a.unref(p),sortOrder:a.unref(b),filters:i.value,"onUpdate:filters":J[5]||(J[5]=me=>i.value=me),filterDisplay:"menu",scrollable:"",scrollHeight:"400px",onSort:a.unref(B),onPage:a.unref(T),onFilter:J[6]||(J[6]=me=>F()),size:"large",paginatorTemplate:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink CurrentPageReport RowsPerPageDropdown",currentPageReportTemplate:"Showing {first} to {last} of {totalRecords} items"},{empty:a.withCtx(()=>J[9]||(J[9]=[a.createTextVNode(" No data found. ")])),loading:a.withCtx(()=>[a.createVNode(De)]),header:a.withCtx(()=>[a.createElementVNode("div",_g,[a.createVNode(Xe,{iconPosition:"left",class:"block mt-2 md:mt-0"},{default:a.withCtx(()=>[a.createVNode(st,{class:"pi pi-search",onClick:J[2]||(J[2]=me=>a.unref(S)())}),a.createVNode(a.unref(ts.InputText),{class:"w-full sm:w-auto",onKeyup:J[3]||(J[3]=a.withKeys(me=>a.unref(S)(),["enter"])),modelValue:a.unref(_),"onUpdate:modelValue":J[4]||(J[4]=me=>a.isRef(_)?_.value=me:null),placeholder:"Search..."},null,8,["modelValue"])]),_:1})])]),default:a.withCtx(()=>{var me;return[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(u).filter(ge=>!o.columnsToShow||o.columnsToShow.length===0||o.columnsToShow.includes(ge.field)),ge=>(a.openBlock(),a.createBlock(V,{key:ge.field,dataType:a.unref(x)(ge.datatype),field:ge.field,header:ge.name,sortable:ge.sortable,showAddButton:!1,showFilterOperator:!1,style:{"text-wrap":"nowrap"}},a.createSlots({body:a.withCtx(({data:pe})=>[a.createVNode(Li,{column:ge,value:pe[ge.field]},null,8,["column","value"])]),_:2},[ge.datatype.toLowerCase()==="date"&&ge.filterable?{name:"filter",fn:a.withCtx(({filterModel:pe})=>[a.createVNode(vt,{modelValue:pe.value,"onUpdate:modelValue":Te=>pe.value=Te,dateFormat:"mm/dd/yy",placeholder:"mm/dd/yyyy"},null,8,["modelValue","onUpdate:modelValue"])]),key:"0"}:ge.datatype.toLowerCase()==="int"&&ge.filterable?{name:"filter",fn:a.withCtx(({filterModel:pe})=>[a.createVNode(ft,{modelValue:pe.value,"onUpdate:modelValue":Te=>pe.value=Te,placeholder:"Search..."},null,8,["modelValue","onUpdate:modelValue"])]),key:"1"}:ge.datatype.toLowerCase()==="boolean"&&ge.filterable?{name:"filter",fn:a.withCtx(({filterModel:pe})=>[a.createVNode(U,{modelValue:pe.value,"onUpdate:modelValue":Te=>pe.value=Te,indeterminate:pe.value===null,binary:""},null,8,["modelValue","onUpdate:modelValue","indeterminate"])]),key:"2"}:ge.filterable?{name:"filter",fn:a.withCtx(({filterModel:pe})=>[a.createVNode(a.unref(ts.InputText),{style:{width:"150px"},type:"text",modelValue:pe.value,"onUpdate:modelValue":Te=>pe.value=Te,class:"p-column-filter",placeholder:"Search..."},null,8,["modelValue","onUpdate:modelValue"])]),key:"3"}:void 0]),1032,["dataType","field","header","sortable"]))),128)),((me=a.unref(d))==null?void 0:me.length)>0&&(t.editable||t.deleteable)?(a.openBlock(),a.createBlock(V,{key:0,header:"Actions"},{body:a.withCtx(({data:ge})=>[a.createElementVNode("div",Sg,[t.editable?(a.openBlock(),a.createBlock(ie,{key:0,onClick:pe=>P(ge),icon:"pi pi-pencil",severity:"success",size:"",rounded:"","aria-label":"Edit"},null,8,["onClick"])):a.createCommentVNode("",!0),t.deleteable?(a.openBlock(),a.createBlock(ie,{key:1,onClick:pe=>Q(ge),icon:"pi pi-trash",severity:"danger",rounded:"","aria-label":"Delete"},null,8,["onClick"])):a.createCommentVNode("",!0)])]),_:1})):a.createCommentVNode("",!0)]}),_:1},8,["value","loading","paginator","rows","totalRecords","first","sortField","sortOrder","filters","onSort","onPage"]),a.renderSlot(X.$slots,"footer")],16),l.value?(a.openBlock(),a.createBlock(hg,{key:0,showForm:l.value,"onUpdate:showForm":J[7]||(J[7]=me=>l.value=me),entityName:a.unref(v).entityName,recordId:s.value,onOnSaveDialog:L},null,8,["showForm","entityName","recordId"])):a.createCommentVNode("",!0),c.value?(a.openBlock(),a.createBlock(gg,{key:1,showDeleteDialog:c.value,"onUpdate:showDeleteDialog":J[8]||(J[8]=me=>c.value=me),entityName:a.unref(v).entityName,recordId:s.value,onOnDeleteItem:oe},null,8,["showDeleteDialog","entityName","recordId"])):a.createCommentVNode("",!0)],64)}}};function Bg(){const t=new Map;return{on(e,o){let r=t.get(e);return r?r.push(o):r=[o],t.set(e,r),this},off(e,o){let r=t.get(e);return r&&r.splice(r.indexOf(o)>>>0,1),this},emit(e,o){let r=t.get(e);r&&r.slice().map(n=>{n(o)})},clear(){t.clear()}}}var Eg=Object.defineProperty,Rg=Object.defineProperties,Dg=Object.getOwnPropertyDescriptors,Cn=Object.getOwnPropertySymbols,Js=Object.prototype.hasOwnProperty,Qs=Object.prototype.propertyIsEnumerable,Zs=(t,e,o)=>e in t?Eg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Ee=(t,e)=>{for(var o in e||(e={}))Js.call(e,o)&&Zs(t,o,e[o]);if(Cn)for(var o of Cn(e))Qs.call(e,o)&&Zs(t,o,e[o]);return t},Lo=(t,e)=>Rg(t,Dg(e)),Vt=(t,e)=>{var o={};for(var r in t)Js.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(t!=null&&Cn)for(var r of Cn(t))e.indexOf(r)<0&&Qs.call(t,r)&&(o[r]=t[r]);return o},Og=Bg(),Qt=Og;function el(t,e){Ii(t)?t.push(...e||[]):Gt(t)&&Object.assign(t,e)}function Ng(t){return Gt(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function Tg(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function ji(t="",e=""){return Tg(`${St(t,!1)&&St(e,!1)?`${t}-`:t}${e}`)}function tl(t="",e=""){return`--${ji(t,e)}`}function Pg(t=""){const e=(t.match(/{/g)||[]).length,o=(t.match(/}/g)||[]).length;return(e+o)%2!==0}function ol(t,e="",o="",r=[],n){if(St(t)){const i=/{([^}]*)}/g,s=t.trim();if(Pg(s))return;if(Mt(s,i)){const l=s.replaceAll(i,u=>{const h=u.replace(/{|}/g,"").split(".").filter(g=>!r.some(m=>Mt(g,m)));return`var(${tl(o,Ks(h.join("-")))}${Be(n)?`, ${n}`:""})`}),c=/(\d+\s+[\+\-\*\/]\s+\d+)/g,d=/var\([^)]+\)/g;return Mt(l.replace(d,"0"),c)?`calc(${l})`:l}return s}else if(kg(t))return t}function $g(t,e,o){St(e,!1)&&t.push(`${e}:${o};`)}function zo(t,e){return t?`${t}{${e}}`:""}var ar=(...t)=>Ag(we.getTheme(),...t),Ag=(t={},e,o,r)=>{if(e){const{variable:n,options:i}=we.defaults||{},{prefix:s,transform:l}=(t==null?void 0:t.options)||i||{},d=Mt(e,/{([^}]*)}/g)?e:`{${e}}`;return r==="value"||Fi(r)&&l==="strict"?we.getTokenValue(e):ol(d,void 0,s,[n.excludedKeyRegex],o)}return""},rl=(t={})=>{let{preset:e,options:o}=t;return{preset(r){return e=e?Xs(e,r):r,this},options(r){return o=o?Ee(Ee({},o),r):r,this},primaryPalette(r){const{semantic:n}=e||{};return e=Lo(Ee({},e),{semantic:Lo(Ee({},n),{primary:r})}),this},surfacePalette(r){var n,i;const{semantic:s}=e||{},l=r!=null&&r.hasOwnProperty("light")?r==null?void 0:r.light:r,c=r!=null&&r.hasOwnProperty("dark")?r==null?void 0:r.dark:r,d={colorScheme:{light:Ee(Ee({},(n=s==null?void 0:s.colorScheme)==null?void 0:n.light),!!l&&{surface:l}),dark:Ee(Ee({},(i=s==null?void 0:s.colorScheme)==null?void 0:i.dark),!!c&&{surface:c})}};return e=Lo(Ee({},e),{semantic:Ee(Ee({},s),d)}),this},define({useDefaultPreset:r=!1,useDefaultOptions:n=!1}={}){return{preset:r?we.getPreset():e,options:n?we.getOptions():o}},update({mergePresets:r=!0,mergeOptions:n=!0}={}){const i={preset:r?Xs(we.getPreset(),e):e,options:n?Ee(Ee({},we.getOptions()),o):o};return we.setTheme(i),i},use(r){const n=this.define(r);return we.setTheme(n),n}}};function Mg(t,e={}){const o=we.defaults.variable,{prefix:r=o.prefix,selector:n=o.selector,excludedKeyRegex:i=o.excludedKeyRegex}=e,s=(d,u="")=>Object.entries(d).reduce((f,[h,g])=>{const m=Mt(h,i)?ji(u):ji(u,Ks(h)),p=Ng(g);if(Gt(p)){const{variables:b,tokens:y}=s(p,m);el(f.tokens,y),el(f.variables,b)}else f.tokens.push((r?m.replace(`${r}-`,""):m).replaceAll("-",".")),$g(f.variables,tl(m),ol(p,m,r,[i]));return f},{variables:[],tokens:[]}),{variables:l,tokens:c}=s(t,r);return{value:l,tokens:c,declarations:l.join(""),css:zo(n,l.join(""))}}var pt={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:`${t}{:root{[CSS]}}`,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark){:root{[CSS]}}",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){const e=Object.keys(this.rules).filter(o=>o!=="custom").map(o=>this.rules[o]);return[t].flat().map(o=>{var r;return(r=e.map(n=>n.resolve(o)).find(n=>n.matched))!=null?r:this.rules.custom.resolve(o)})}},_toVariables(t,e){return Mg(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:o,set:r,defaults:n}){var i,s,l,c,d,u,f;const{preset:h,options:g}=e;let m,p,b,y,k,C,_;if(Be(h)&&g.transform!=="strict"){const{primitive:v,semantic:S,extend:w}=h,x=S||{},{colorScheme:B}=x,T=Vt(x,["colorScheme"]),E=w||{},{colorScheme:O}=E,M=Vt(E,["colorScheme"]),W=B||{},{dark:Y}=W,I=Vt(W,["dark"]),z=O||{},{dark:F}=z,P=Vt(z,["dark"]),L=Be(v)?this._toVariables({primitive:v},g):{},Q=Be(T)?this._toVariables({semantic:T},g):{},oe=Be(I)?this._toVariables({light:I},g):{},ne=Be(Y)?this._toVariables({dark:Y},g):{},X=Be(M)?this._toVariables({semantic:M},g):{},J=Be(P)?this._toVariables({light:P},g):{},ie=Be(F)?this._toVariables({dark:F},g):{},[ue,De]=[(i=L.declarations)!=null?i:"",L.tokens],[st,Xe]=[(s=Q.declarations)!=null?s:"",Q.tokens||[]],[vt,ft]=[(l=oe.declarations)!=null?l:"",oe.tokens||[]],[U,V]=[(c=ne.declarations)!=null?c:"",ne.tokens||[]],[he,me]=[(d=X.declarations)!=null?d:"",X.tokens||[]],[ge,pe]=[(u=J.declarations)!=null?u:"",J.tokens||[]],[Te,ot]=[(f=ie.declarations)!=null?f:"",ie.tokens||[]];m=this.transformCSS(t,ue,"light","variable",g,r,n),p=De;const Tt=this.transformCSS(t,`${st}${vt}`,"light","variable",g,r,n),Le=this.transformCSS(t,`${U}`,"dark","variable",g,r,n);b=`${Tt}${Le}`,y=[...new Set([...Xe,...ft,...V])];const rt=this.transformCSS(t,`${he}${ge}color-scheme:light`,"light","variable",g,r,n),ht=this.transformCSS(t,`${Te}color-scheme:dark`,"dark","variable",g,r,n);k=`${rt}${ht}`,C=[...new Set([...me,...pe,...ot])],_=mt(h.css,{dt:ar})}return{primitive:{css:m,tokens:p},semantic:{css:b,tokens:y},global:{css:k,tokens:C},style:_}},getPreset({name:t="",preset:e={},options:o,params:r,set:n,defaults:i,selector:s}){var l,c,d;let u,f,h;if(Be(e)&&o.transform!=="strict"){const g=t.replace("-directive",""),m=e,{colorScheme:p,extend:b,css:y}=m,k=Vt(m,["colorScheme","extend","css"]),C=b||{},{colorScheme:_}=C,v=Vt(C,["colorScheme"]),S=p||{},{dark:w}=S,x=Vt(S,["dark"]),B=_||{},{dark:T}=B,E=Vt(B,["dark"]),O=Be(k)?this._toVariables({[g]:Ee(Ee({},k),v)},o):{},M=Be(x)?this._toVariables({[g]:Ee(Ee({},x),E)},o):{},W=Be(w)?this._toVariables({[g]:Ee(Ee({},w),T)},o):{},[Y,I]=[(l=O.declarations)!=null?l:"",O.tokens||[]],[z,F]=[(c=M.declarations)!=null?c:"",M.tokens||[]],[P,L]=[(d=W.declarations)!=null?d:"",W.tokens||[]],Q=this.transformCSS(g,`${Y}${z}`,"light","variable",o,n,i,s),oe=this.transformCSS(g,P,"dark","variable",o,n,i,s);u=`${Q}${oe}`,f=[...new Set([...I,...F,...L])],h=mt(y,{dt:ar})}return{css:u,tokens:f,style:h}},getPresetC({name:t="",theme:e={},params:o,set:r,defaults:n}){var i;const{preset:s,options:l}=e,c=(i=s==null?void 0:s.components)==null?void 0:i[t];return this.getPreset({name:t,preset:c,options:l,params:o,set:r,defaults:n})},getPresetD({name:t="",theme:e={},params:o,set:r,defaults:n}){var i;const s=t.replace("-directive",""),{preset:l,options:c}=e,d=(i=l==null?void 0:l.directives)==null?void 0:i[s];return this.getPreset({name:s,preset:d,options:c,params:o,set:r,defaults:n})},applyDarkColorScheme(t){return!(t.darkModeSelector==="none"||t.darkModeSelector===!1)},getColorSchemeOption(t,e){var o;return this.applyDarkColorScheme(t)?this.regex.resolve(t.darkModeSelector===!0?e.options.darkModeSelector:(o=t.darkModeSelector)!=null?o:e.options.darkModeSelector):[]},getLayerOrder(t,e={},o,r){const{cssLayer:n}=e;return n?`@layer ${mt(n.order||"primeui",o)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:o,props:r={},set:n,defaults:i}){const s=this.getCommon({name:t,theme:e,params:o,set:n,defaults:i}),l=Object.entries(r).reduce((c,[d,u])=>c.push(`${d}="${u}"`)&&c,[]).join(" ");return Object.entries(s||{}).reduce((c,[d,u])=>{if(u!=null&&u.css){const f=ir(u==null?void 0:u.css),h=`${d}-variables`;c.push(`<style type="text/css" data-primevue-style-id="${h}" ${l}>${f}</style>`)}return c},[]).join("")},getStyleSheet({name:t="",theme:e={},params:o,props:r={},set:n,defaults:i}){var s;const l={name:t,theme:e,params:o,set:n,defaults:i},c=(s=t.includes("-directive")?this.getPresetD(l):this.getPresetC(l))==null?void 0:s.css,d=Object.entries(r).reduce((u,[f,h])=>u.push(`${f}="${h}"`)&&u,[]).join(" ");return c?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${ir(c)}</style>`:""},createTokens(t={},e,o="",r="",n={}){return Object.entries(t).forEach(([i,s])=>{const l=Mt(i,e.variable.excludedKeyRegex)?o:o?`${o}.${Gs(i)}`:Gs(i),c=r?`${r}.${i}`:i;Gt(s)?this.createTokens(s,e,l,c,n):(n[l]||(n[l]={paths:[],computed(d,u={}){var f,h;return this.paths.length===1?(f=this.paths[0])==null?void 0:f.computed(this.paths[0].scheme,u.binding):d&&d!=="none"?(h=this.paths.find(g=>g.scheme===d))==null?void 0:h.computed(d,u.binding):this.paths.map(g=>g.computed(g.scheme,u[g.scheme]))}}),n[l].paths.push({path:c,value:s,scheme:c.includes("colorScheme.light")?"light":c.includes("colorScheme.dark")?"dark":"none",computed(d,u={}){const f=/{([^}]*)}/g;let h=s;if(u.name=this.path,u.binding||(u.binding={}),Mt(s,f)){const m=s.trim().replaceAll(f,y=>{var k;const C=y.replace(/{|}/g,""),_=(k=n[C])==null?void 0:k.computed(d,u);return Ii(_)&&_.length===2?`light-dark(${_[0].value},${_[1].value})`:_==null?void 0:_.value}),p=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,b=/var\([^)]+\)/g;h=Mt(m.replace(b,"0"),p)?`calc(${m})`:m}return Fi(u.binding)&&delete u.binding,{colorScheme:d,path:this.path,paths:u,value:h.includes("undefined")?void 0:h}}}))}),n},getTokenValue(t,e,o){var r;const i=(c=>c.split(".").filter(u=>!Mt(u.toLowerCase(),o.variable.excludedKeyRegex)).join("."))(e),s=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,l=[(r=t[i])==null?void 0:r.computed(s)].flat().filter(c=>c);return l.length===1?l[0].value:l.reduce((c={},d)=>{const u=d,{colorScheme:f}=u,h=Vt(u,["colorScheme"]);return c[f]=h,c},void 0)},getSelectorRule(t,e,o,r){return o==="class"||o==="attr"?zo(Be(e)?`${t}${e},${t} ${e}`:t,r):zo(t,Be(e)?zo(e,r):r)},transformCSS(t,e,o,r,n={},i,s,l){if(Be(e)){const{cssLayer:c}=n;if(r!=="style"){const d=this.getColorSchemeOption(n,s);e=o==="dark"?d.reduce((u,{type:f,selector:h})=>(Be(h)&&(u+=h.includes("[CSS]")?h.replace("[CSS]",e):this.getSelectorRule(h,l,f,e)),u),""):zo(l??":root",e)}if(c){const d={name:"primeui",order:"primeui"};Gt(c)&&(d.name=mt(c.name,{name:t,type:r})),Be(d.name)&&(e=zo(`@layer ${d.name}`,e),i==null||i.layerNames(d.name))}return e}return""}},we={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){const{theme:e}=t;e&&(this._theme=Lo(Ee({},e),{options:Ee(Ee({},this.defaults.options),e.options)}),this._tokens=pt.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var t;return((t=this.theme)==null?void 0:t.preset)||{}},get options(){var t;return((t=this.theme)==null?void 0:t.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(t){this.update({theme:t}),Qt.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=Lo(Ee({},this.theme),{preset:t}),this._tokens=pt.createTokens(t,this.defaults),this.clearLoadedStyleNames(),Qt.emit("preset:change",t),Qt.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=Lo(Ee({},this.theme),{options:t}),this.clearLoadedStyleNames(),Qt.emit("options:change",t),Qt.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(t){this._layerNames.add(t)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(t){return pt.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return pt.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){const o={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return pt.getPresetC(o)},getDirective(t="",e){const o={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return pt.getPresetD(o)},getCustomPreset(t="",e,o,r){const n={name:t,preset:e,options:this.options,selector:o,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return pt.getPreset(n)},getLayerOrderCSS(t=""){return pt.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,o="style",r){return pt.transformCSS(t,e,r,o,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,o={}){return pt.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,o={}){return pt.getStyleSheet({name:t,theme:this.theme,params:e,props:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(t){this._loadingStyles.add(t)},onStyleUpdated(t){this._loadingStyles.add(t)},onStyleLoaded(t,{name:e}){this._loadingStyles.size&&(this._loadingStyles.delete(e),Qt.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&Qt.emit("theme:load"))}};function Vg(t){return rl().surfacePalette(t).update().preset}function Wi(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function Hi(t,e={}){if(Wi(t)){const o=(r,n)=>{var i,s;const l=(i=t==null?void 0:t.$attrs)!=null&&i[r]?[(s=t==null?void 0:t.$attrs)==null?void 0:s[r]]:[];return[n].flat().reduce((c,d)=>{if(d!=null){const u=typeof d;if(u==="string"||u==="number")c.push(d);else if(u==="object"){const f=Array.isArray(d)?o(r,d):Object.entries(d).map(([h,g])=>r==="style"&&(g||g===0)?`${h.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${g}`:g?h:void 0);c=f.length?c.concat(f.filter(h=>!!h)):c}}return c},l)};Object.entries(e).forEach(([r,n])=>{if(n!=null){const i=r.match(/^on(.+)/);i?t.addEventListener(i[1].toLowerCase(),n):r==="p-bind"||r==="pBind"?Hi(t,n):(n=r==="class"?[...new Set(o("class",n))].join(" ").trim():r==="style"?o("style",n).join(";").trim():n,(t.$attrs=t.$attrs||{})&&(t.$attrs[r]=n),t.setAttribute(r,n))}})}}function Fg(t,e){return Wi(t)?t.matches(e)?t:t.querySelector(e):null}function Ig(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function Lg(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&Ig(t))}function nl(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function zg(t,e="",o){Wi(t)&&o!==null&&o!==void 0&&t.setAttribute(e,o)}var _n={};function jg(t="pui_id_"){return _n.hasOwnProperty(t)||(_n[t]=0),_n[t]++,`${t}${_n[t]}`}var sr={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}};function lr(t){"@babel/helpers - typeof";return lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lr(t)}function il(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,r)}return o}function al(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?il(Object(o),!0).forEach(function(r){Wg(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):il(Object(o)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))})}return t}function Wg(t,e,o){return(e=Hg(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Hg(t){var e=Ug(t,"string");return lr(e)=="symbol"?e:e+""}function Ug(t,e){if(lr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var r=o.call(t,e||"default");if(lr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function qg(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;a.getCurrentInstance()?a.onMounted(t):e?t():a.nextTick(t)}var Yg=0;function Xg(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.ref(!1),r=a.ref(t),n=a.ref(null),i=nl()?window.document:void 0,s=e.document,l=s===void 0?i:s,c=e.immediate,d=c===void 0?!0:c,u=e.manual,f=u===void 0?!1:u,h=e.name,g=h===void 0?"style_".concat(++Yg):h,m=e.id,p=m===void 0?void 0:m,b=e.media,y=b===void 0?void 0:b,k=e.nonce,C=k===void 0?void 0:k,_=e.first,v=_===void 0?!1:_,S=e.onMounted,w=S===void 0?void 0:S,x=e.onUpdated,B=x===void 0?void 0:x,T=e.onLoad,E=T===void 0?void 0:T,O=e.props,M=O===void 0?{}:O,W=function(){},Y=function(F){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l){var L=al(al({},M),P),Q=L.name||g,oe=L.id||p,ne=L.nonce||C;n.value=l.querySelector('style[data-primevue-style-id="'.concat(Q,'"]'))||l.getElementById(oe)||l.createElement("style"),n.value.isConnected||(r.value=F||t,Hi(n.value,{type:"text/css",id:oe,media:y,nonce:ne}),v?l.head.prepend(n.value):l.head.appendChild(n.value),zg(n.value,"data-primevue-style-id",Q),Hi(n.value,L),n.value.onload=function(X){return E==null?void 0:E(X,{name:Q})},w==null||w(Q)),!o.value&&(W=a.watch(r,function(X){n.value.textContent=X,B==null||B(Q)},{immediate:!0}),o.value=!0)}},I=function(){!l||!o.value||(W(),Lg(n.value)&&l.head.removeChild(n.value),o.value=!1)};return d&&!f&&qg(Y),{id:p,name:g,el:n,css:r,unload:I,load:Y,isLoaded:a.readonly(o)}}function cr(t){"@babel/helpers - typeof";return cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cr(t)}function sl(t,e){return Qg(t)||Jg(t,e)||Gg(t,e)||Kg()}function Kg(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
13
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gg(t,e){if(t){if(typeof t=="string")return ll(t,e);var o={}.toString.call(t).slice(8,-1);return o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set"?Array.from(t):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ll(t,e):void 0}}function ll(t,e){(e==null||e>t.length)&&(e=t.length);for(var o=0,r=Array(e);o<e;o++)r[o]=t[o];return r}function Jg(t,e){var o=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(o!=null){var r,n,i,s,l=[],c=!0,d=!1;try{if(i=(o=o.call(t)).next,e!==0)for(;!(c=(r=i.call(o)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(u){d=!0,n=u}finally{try{if(!c&&o.return!=null&&(s=o.return(),Object(s)!==s))return}finally{if(d)throw n}}return l}}function Qg(t){if(Array.isArray(t))return t}function cl(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,r)}return o}function Ui(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?cl(Object(o),!0).forEach(function(r){Zg(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):cl(Object(o)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))})}return t}function Zg(t,e,o){return(e=em(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function em(t){var e=tm(t,"string");return cr(e)=="symbol"?e:e+""}function tm(t,e){if(cr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var r=o.call(t,e||"default");if(cr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var om=function(e){var o=e.dt;return`
|
|
14
14
|
*,
|
|
15
15
|
::before,
|
|
16
16
|
::after {
|
|
@@ -131,7 +131,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
131
131
|
background: transparent;
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
`)},
|
|
134
|
+
`)},rm=function(e){var o=e.dt;return`
|
|
135
135
|
.p-hidden-accessible {
|
|
136
136
|
border: 0;
|
|
137
137
|
clip: rect(0 0 0 0);
|
|
@@ -152,31 +152,31 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
152
152
|
overflow: hidden;
|
|
153
153
|
padding-right: `.concat(o("scrollbar.width"),`;
|
|
154
154
|
}
|
|
155
|
-
`)},
|
|
156
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fl(t,e){if(t){if(typeof t=="string")return hl(t,e);var o={}.toString.call(t).slice(8,-1);return o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set"?Array.from(t):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?hl(t,e):void 0}}function hl(t,e){(e==null||e>t.length)&&(e=t.length);for(var o=0,r=Array(e);o<e;o++)r[o]=t[o];return r}function cm(t,e){var o=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(o!=null){var r,n,i,s,l=[],c=!0,d=!1;try{if(i=(o=o.call(t)).next,e===0){if(Object(o)!==o)return;c=!1}else for(;!(c=(r=i.call(o)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(u){d=!0,n=u}finally{try{if(!c&&o.return!=null&&(s=o.return(),Object(s)!==s))return}finally{if(d)throw n}}return l}}function gl(t){if(Array.isArray(t))return t}function ml(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,r)}return o}function ce(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?ml(Object(o),!0).forEach(function(r){fr(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ml(Object(o)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))})}return t}function fr(t,e,o){return(e=dm(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function dm(t){var e=um(t,"string");return dr(e)=="symbol"?e:e+""}function um(t,e){if(dr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var r=o.call(t,e||"default");if(dr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var fm={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0},dt:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e){var o=this;e?(this._loadScopedThemeStyles(e),this._themeChangeListener(function(){return o._loadScopedThemeStyles(e)})):this._unloadScopedThemeStyles()}}},scopedStyleEl:void 0,rootEl:void 0,$attrSelector:void 0,beforeCreate:function(){var e,o,r,n,i,s,l,c,d,u,f,h=(e=this.pt)===null||e===void 0?void 0:e._usept,g=h?(o=this.pt)===null||o===void 0||(o=o.originalValue)===null||o===void 0?void 0:o[this.$.type.name]:void 0,m=h?(r=this.pt)===null||r===void 0||(r=r.value)===null||r===void 0?void 0:r[this.$.type.name]:this.pt;(n=m||g)===null||n===void 0||(n=n.hooks)===null||n===void 0||(i=n.onBeforeCreate)===null||i===void 0||i.call(n);var p=(s=this.$primevueConfig)===null||s===void 0||(s=s.pt)===null||s===void 0?void 0:s._usept,b=p?(l=this.$primevue)===null||l===void 0||(l=l.config)===null||l===void 0||(l=l.pt)===null||l===void 0?void 0:l.originalValue:void 0,y=p?(c=this.$primevue)===null||c===void 0||(c=c.config)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c.value:(d=this.$primevue)===null||d===void 0||(d=d.config)===null||d===void 0?void 0:d.pt;(u=y||b)===null||u===void 0||(u=u[this.$.type.name])===null||u===void 0||(u=u.hooks)===null||u===void 0||(f=u.onBeforeCreate)===null||f===void 0||f.call(u),this.$attrSelector=Wg("pc")},created:function(){this._hook("onCreated")},beforeMount:function(){this.rootEl=Ig(this.$el,'[data-pc-name="'.concat(Jt(this.$.type.name),'"]')),this.rootEl&&(this.$attrSelector&&!this.rootEl.hasAttribute(this.$attrSelector)&&this.rootEl.setAttribute(this.$attrSelector,""),this.rootEl.$pc=ce({name:this.$.type.name,attrSelector:this.$attrSelector},this.$params)),this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._unloadScopedThemeStyles(),this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var o=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),r=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));o==null||o(),r==null||r()}},_mergeProps:function(e){for(var o=arguments.length,r=new Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return Ys(e)?e.apply(void 0,r):a.mergeProps.apply(void 0,r)},_loadStyles:function(){var e=this,o=function(){sr.isStyleNameLoaded("base")||(Ft.loadCSS(e.$styleOptions),e._loadGlobalStyles(),sr.setLoadedStyleName("base")),e._loadThemeStyles()};o(),this._themeChangeListener(o)},_loadCoreStyles:function(){var e,o;!sr.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(o=this.$style)!==null&&o!==void 0&&o.name&&(dl.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),sr.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);Be(e)&&Ft.load(e,ce({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,o;if(!(this.isUnstyled||this.$theme==="none")){if(!xe.isStyleNameLoaded("common")){var r,n,i=((r=this.$style)===null||r===void 0||(n=r.getCommonTheme)===null||n===void 0?void 0:n.call(r))||{},s=i.primitive,l=i.semantic,c=i.global,d=i.style;Ft.load(s==null?void 0:s.css,ce({name:"primitive-variables"},this.$styleOptions)),Ft.load(l==null?void 0:l.css,ce({name:"semantic-variables"},this.$styleOptions)),Ft.load(c==null?void 0:c.css,ce({name:"global-variables"},this.$styleOptions)),Ft.loadTheme(ce({name:"global-style"},this.$styleOptions),d),xe.setLoadedStyleName("common")}if(!xe.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(o=this.$style)!==null&&o!==void 0&&o.name){var u,f,h,g,m=((u=this.$style)===null||u===void 0||(f=u.getComponentTheme)===null||f===void 0?void 0:f.call(u))||{},p=m.css,b=m.style;(h=this.$style)===null||h===void 0||h.load(p,ce({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(g=this.$style)===null||g===void 0||g.loadTheme(ce({name:"".concat(this.$style.name,"-style")},this.$styleOptions),b),xe.setLoadedStyleName(this.$style.name)}if(!xe.isStyleNameLoaded("layer-order")){var y,k,C=(y=this.$style)===null||y===void 0||(k=y.getLayerOrderThemeCSS)===null||k===void 0?void 0:k.call(y);Ft.load(C,ce({name:"layer-order",first:!0},this.$styleOptions)),xe.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var o,r,n,i=((o=this.$style)===null||o===void 0||(r=o.getPresetTheme)===null||r===void 0?void 0:r.call(o,e,"[".concat(this.$attrSelector,"]")))||{},s=i.css,l=(n=this.$style)===null||n===void 0?void 0:n.load(s,ce({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=l.el},_unloadScopedThemeStyles:function(){var e;(e=this.scopedStyleEl)===null||e===void 0||(e=e.value)===null||e===void 0||e.remove()},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};sr.clearLoadedStyleNames(),Qt.on("theme:change",e)},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){var o;return this[e]||((o=this._getHostInstance(this))===null||o===void 0?void 0:o[e])},_getOptionValue:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Xs(e,o,r)},_getPTValue:function(){var e,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,s=/./g.test(r)&&!!n[r.split(".")[0]],l=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},c=l.mergeSections,d=c===void 0?!0:c,u=l.mergeProps,f=u===void 0?!1:u,h=i?s?this._useGlobalPT(this._getPTClassValue,r,n):this._useDefaultPT(this._getPTClassValue,r,n):void 0,g=s?void 0:this._getPTSelf(o,this._getPTClassValue,r,ce(ce({},n),{},{global:h||{}})),m=this._getPTDatasets(r);return d||!d&&g?f?this._mergeProps(f,h,g,m):ce(ce(ce({},h),g),m):ce(ce({},g),m)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length,r=new Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return a.mergeProps(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(r)),this._usePT.apply(this,[this.$_attrsPT].concat(r)))},_getPTDatasets:function(){var e,o,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n="data-pc-",i=r==="root"&&Be((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&ce(ce({},r==="root"&&ce(ce(fr({},"".concat(n,"name"),Jt(i?(o=this.pt)===null||o===void 0?void 0:o["data-pc-section"]:this.$.type.name)),i&&fr({},"".concat(n,"extend"),Jt(this.$.type.name))),nl()&&fr({},"".concat(this.$attrSelector),""))),{},fr({},"".concat(n,"section"),Jt(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return St(e)||Ii(e)?{class:e}:e},_getPT:function(e){var o=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=function(l){var c,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=n?n(l):l,f=Jt(r),h=Jt(o.$name);return(c=d?f!==h?u==null?void 0:u[f]:void 0:u==null?void 0:u[f])!==null&&c!==void 0?c:u};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e,!0)},_usePT:function(e,o,r,n){var i=function(p){return o(p,r,n)};if(e!=null&&e.hasOwnProperty("_usept")){var s,l=e._usept||((s=this.$primevueConfig)===null||s===void 0?void 0:s.ptOptions)||{},c=l.mergeSections,d=c===void 0?!0:c,u=l.mergeProps,f=u===void 0?!1:u,h=i(e.originalValue),g=i(e.value);return h===void 0&&g===void 0?void 0:St(g)?g:St(h)?h:d||!d&&g?f?this._mergeProps(f,h,g):ce(ce({},h),g):g}return i(e)},_useGlobalPT:function(e,o,r){return this._usePT(this.globalPT,e,o,r)},_useDefaultPT:function(e,o,r){return this._usePT(this.defaultPT,e,o,r)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,ce(ce({},this.$params),o))},ptmi:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return a.mergeProps(this.$_attrsWithoutPT,this.ptm(e,o))},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,o,ce({instance:this},r),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,ce(ce({},this.$params),o))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(o){var n=this._getOptionValue(this.$style.inlineStyles,e,ce(ce({},this.$params),r)),i=this._getOptionValue(dl.inlineStyles,e,ce(ce({},this.$params),r));return[i,n]}}},computed:{globalPT:function(){var e,o=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return mt(r,{instance:o})})},defaultPT:function(){var e,o=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return o._getOptionValue(r,o.$name,ce({},o.$params))||mt(r,ce({},o.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$inProps:function(){var e,o=Object.keys(((e=this.$.vnode)===null||e===void 0?void 0:e.props)||{});return Object.fromEntries(Object.entries(this.$props).filter(function(r){var n=ur(r,1),i=n[0];return o==null?void 0:o.includes(i)}))},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return ce(ce({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e==null?void 0:e.$props,state:e==null?void 0:e.$data,attrs:e==null?void 0:e.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var o=ur(e,1),r=o[0];return r==null?void 0:r.startsWith("pt:")}).reduce(function(e,o){var r=ur(o,2),n=r[0],i=r[1],s=n.split(":"),l=sm(s),c=l.slice(1);return c==null||c.reduce(function(d,u,f,h){return!d[u]&&(d[u]=f===h.length-1?i:{}),d[u]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var o=ur(e,1),r=o[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,o){var r=ur(o,2),n=r[0],i=r[1];return e[n]=i,e},{})}}},hm={root:{position:"relative"}},gm={root:"p-chart"},mm=Ft.extend({name:"chart",classes:gm,inlineStyles:hm}),pm={name:"BaseChart",extends:fm,props:{type:String,data:null,options:null,plugins:null,width:{type:Number,default:300},height:{type:Number,default:150},canvasProps:{type:null,default:null}},style:mm,provide:function(){return{$pcChart:this,$parentInstance:this}}},pl={name:"Chart",extends:pm,inheritAttrs:!1,emits:["select","loaded"],chart:null,watch:{data:{handler:function(){this.reinit()},deep:!0},type:function(){this.reinit()},options:function(){this.reinit()}},mounted:function(){this.initChart()},beforeUnmount:function(){this.chart&&(this.chart.destroy(),this.chart=null)},methods:{initChart:function(){var e=this;Promise.resolve().then(()=>H2).then(function(o){e.chart&&(e.chart.destroy(),e.chart=null),o&&o.default&&(e.chart=new o.default(e.$refs.canvas,{type:e.type,data:e.data,options:e.options,plugins:e.plugins})),e.$emit("loaded",e.chart)})},getCanvas:function(){return this.$canvas},getChart:function(){return this.chart},getBase64Image:function(){return this.chart.toBase64Image()},refresh:function(){this.chart&&this.chart.update()},reinit:function(){this.initChart()},onCanvasClick:function(e){if(this.chart){var o=this.chart.getElementsAtEventForMode(e,"nearest",{intersect:!0},!1),r=this.chart.getElementsAtEventForMode(e,"dataset",{intersect:!0},!1);o&&o[0]&&r&&this.$emit("select",{originalEvent:e,element:o[0],dataset:r})}},generateLegend:function(){if(this.chart)return this.chart.generateLegend()}}};function hr(t){"@babel/helpers - typeof";return hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hr(t)}function bl(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,r)}return o}function yl(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?bl(Object(o),!0).forEach(function(r){bm(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):bl(Object(o)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))})}return t}function bm(t,e,o){return(e=ym(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ym(t){var e=km(t,"string");return hr(e)=="symbol"?e:e+""}function km(t,e){if(hr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var r=o.call(t,e||"default");if(hr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var xm=["width","height"];function vm(t,e,o,r,n,i){return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:t.cx("root"),style:t.sx("root")},t.ptmi("root")),[a.createElementVNode("canvas",a.mergeProps({ref:"canvas",width:t.width,height:t.height,onClick:e[0]||(e[0]=function(s){return i.onCanvasClick(s)})},yl(yl({},t.canvasProps),t.ptm("canvas"))),null,16,xm)],16)}pl.render=vm;function wm(){const t={primary:"#0efcf1",primaryBorder:"#388E3C",secondary:"#0ec6fc",secondaryBorder:"#FBC02D",tertiary:"#f1fc0e",tertiaryBorder:"#FFA000"},e=["linear","easeInQuad","easeOutQuad","easeInOutQuad","easeInCubic","easeOutCubic","easeInOutCubic","easeInQuart","easeOutQuart","easeInOutQuart","easeInBounce","easeOutBounce","easeInOutBounce","easeInOutElastic"],o=a.ref("easeInOutElastic"),r=a.computed(()=>({responsive:!0,maintainAspectRatio:!0,plugins:{legend:{position:"top",labels:{font:{size:16}}},tooltip:{enabled:!0,titleFont:{size:14},bodyFont:{size:12}},zoom:{zoom:{wheel:{enabled:!0},drag:{enabled:!0},mode:"xy"},pan:{enabled:!0,mode:"xy"}}},scales:{x:{grid:{display:!1},ticks:{font:{size:14}}},y:{grid:{display:!0,color:"#e0e0e0"},ticks:{font:{size:14}}}},animation:{duration:2e3,easing:o.value,delay:500,loop:!1,animateRotate:!0,animateScale:!0},elements:{point:{radius:6,hoverRadius:10,backgroundColor:t.secondary},line:{tension:.4,borderWidth:2},bar:{borderWidth:2,borderRadius:4}}}));return{colorConfig:t,animationOptions:e,selectedAnimation:o,defaultChartOptions:r}}const Cm={components:{Chart:pl},props:{type:{type:String,required:!0},chartData:{type:Object,required:!0},chartOptions:{type:Object,default:()=>({})}},setup(t){const{colorConfig:e,defaultChartOptions:o}=wm(),r=a.computed(()=>{const i=t.chartData.datasets.map((s,l)=>{const c=Object.values(e);return{...s,backgroundColor:c[l%c.length],borderColor:c[l%c.length+1]}});return{...t.chartData,datasets:i}}),n=a.computed(()=>({...o.value,maintainAspectRatio:!0,...t.chartOptions}));return{computedChartData:r,computedChartOptions:n}}},_m={class:"chart-container"},Sm={key:0},Bm={key:1};function Em(t,e,o,r,n,i){const s=a.resolveComponent("Chart",!0);return a.openBlock(),a.createElementBlock("div",_m,[o.chartData?(a.openBlock(),a.createElementBlock("div",Sm,[a.createVNode(s,{type:o.type,data:r.computedChartData,options:r.computedChartOptions},null,8,["type","data","options"])])):(a.openBlock(),a.createElementBlock("div",Bm,e[0]||(e[0]=[a.createElementVNode("p",null,"No data available for the chart.",-1)])))])}const gr=Ne(Cm,[["render",Em],["__scopeId","data-v-8e3e786b"]]);function mr(){const t=a.ref(null),e=a.ref(!1),o=a.ref(null);return{chartData:t,fetchChartData:async({entityName:n,xaxis:i=null,yaxis:s=null})=>{e.value=!0,o.value=null;const l="https://mocki.io/v1/1ab17035-c115-4049-8ebf-a1e1b92d739a";try{const d=await(await fetch(l)).json();if(!d||!d.response||!d.response.result)throw new Error("Invalid data structure from API.");const u=d.response.result;if(!i&&!s){const f=Object.keys(u[0]);i=f[1],s=f.slice(4);const h=u.reduce((p,b)=>(s.forEach(y=>{p[y]||(p[y]=0),p[y]+=b[y]||0}),p),{}),g=Object.keys(h),m=Object.values(h);t.value={labels:g,datasets:[{label:"Default Data",data:m,borderWidth:1}]}}else{const f=u.map(m=>m[i]),g=(Array.isArray(s)?s:[s]).map(m=>({label:m,data:u.map(p=>p[m]||0),borderWidth:1}));t.value={labels:f,datasets:g}}}catch(c){o.value=c.message,t.value=null}finally{e.value=!1}},loading:e,error:o}}const Rm={components:{chart:gr},props:{entityName:{type:String,required:!0},title:{type:String,default:"Bar Chart"},yaxis:{type:String,required:!0},xaxis:{type:String,required:!0}},setup(t){const{chartData:e,fetchChartData:o,loading:r,error:n}=mr(),i=a.ref({responsive:!0,plugins:{legend:{position:"top"},tooltip:{callbacks:{label:function(l){return`${l.dataset.label}: ${l.raw}`}}}}}),s=async()=>{if(!t.yaxis||!t.xaxis){console.error("xaxis or yaxis is not defined."),n.value="x-axis or y-axis is not properly configured.";return}await o({entityName:t.entityName,yaxis:t.yaxis,xaxis:t.xaxis})};return a.onMounted(()=>{console.log("Fetching data for yAxis:",t.yaxis),console.log("Fetching data for xAxis:",t.xaxis),s()}),{chartData:e,chartOptions:i,loading:r,error:n}}},Dm={key:0,class:"chart-container"},Om={key:1},Nm={key:0},Tm={key:1},Pm={key:2};function $m(t,e,o,r,n,i){const s=a.resolveComponent("chart");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",null,[a.createElementVNode("h2",null,"Entity name: "+a.toDisplayString(o.entityName),1)]),r.chartData?(a.openBlock(),a.createElementBlock("div",Dm,[a.createElementVNode("h3",null,a.toDisplayString(o.title)+" , x-axis : "+a.toDisplayString(o.xaxis)+" , y-axis : "+a.toDisplayString(o.yaxis),1),a.createVNode(s,{type:"bar",chartData:r.chartData,chartOptions:r.chartOptions},null,8,["chartData","chartOptions"])])):(a.openBlock(),a.createElementBlock("div",Om,[r.loading?(a.openBlock(),a.createElementBlock("p",Nm,"Loading chart data...")):r.error?(a.openBlock(),a.createElementBlock("p",Tm,a.toDisplayString(r.error),1)):(a.openBlock(),a.createElementBlock("p",Pm,"No data available for the chart."))]))])}const kl=Ne(Rm,[["render",$m],["__scopeId","data-v-67577a46"]]),Am={components:{chart:gr},props:{entityName:{type:String,required:!0},title:{type:String,default:"Bar Chart"},yaxis:{type:String,required:!0},xaxis:{type:String,required:!0}},setup(t){const{chartData:e,fetchChartData:o,loading:r,error:n}=mr(),i=a.ref({responsive:!0,plugins:{legend:{position:"top"},tooltip:{callbacks:{label:function(l){return`${l.dataset.label}: ${l.raw}`}}}}}),s=async()=>{if(!t.yaxis||!t.xaxis){console.error("xaxis or yaxis is not defined."),n.value="x-axis or y-axis is not properly configured.";return}await o({entityName:t.entityName,yaxis:t.yaxis,xaxis:t.xaxis})};return a.onMounted(()=>{console.log("Fetching data for yAxis:",t.yaxis),console.log("Fetching data for xAxis:",t.xaxis),s()}),{chartData:e,chartOptions:i,loading:r,error:n}}},Mm={key:0,class:"chart-container"},Vm={key:1},Fm={key:0},Im={key:1},Lm={key:2};function zm(t,e,o,r,n,i){const s=a.resolveComponent("chart");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",null,[a.createElementVNode("h2",null,"Entity name: "+a.toDisplayString(o.entityName),1)]),r.chartData?(a.openBlock(),a.createElementBlock("div",Mm,[a.createElementVNode("h3",null,a.toDisplayString(o.title)+" , x-axis : "+a.toDisplayString(o.xaxis)+" , y-axis : "+a.toDisplayString(o.yaxis),1),a.createVNode(s,{type:"line",chartData:r.chartData,chartOptions:r.chartOptions},null,8,["chartData","chartOptions"])])):(a.openBlock(),a.createElementBlock("div",Vm,[r.loading?(a.openBlock(),a.createElementBlock("p",Fm,"Loading chart data...")):r.error?(a.openBlock(),a.createElementBlock("p",Im,a.toDisplayString(r.error),1)):(a.openBlock(),a.createElementBlock("p",Lm,"No data available for the chart."))]))])}const xl=Ne(Am,[["render",zm],["__scopeId","data-v-2cfe3d4d"]]),jm={components:{chart:gr},props:{entityName:{type:String,required:!0},title:{type:String,default:"Pie Chart"},yaxis:{type:String,default:null},xaxis:{type:String,default:null}},setup(t){const{chartData:e,fetchChartData:o,loading:r,error:n}=mr(),i=a.ref({responsive:!0,plugins:{legend:{position:"top"},tooltip:{callbacks:{label:function(l){return`${l.label}: ${l.raw}`}}}}}),s=async()=>{await o({entityName:t.entityName,xaxis:t.xaxis,yaxis:t.yaxis})};return a.onMounted(()=>{s()}),{chartData:e,chartOptions:i,loading:r,error:n}}},Wm={key:0,class:"chart-container"},Hm={key:1},Um={key:0},qm={key:1},Ym={key:2};function Xm(t,e,o,r,n,i){const s=a.resolveComponent("chart");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",null,[a.createElementVNode("h2",null,"Entity name: "+a.toDisplayString(o.entityName),1)]),r.chartData?(a.openBlock(),a.createElementBlock("div",Wm,[a.createElementVNode("h3",null,a.toDisplayString(o.title),1),a.createVNode(s,{type:"pie",chartData:r.chartData,chartOptions:r.chartOptions},null,8,["chartData","chartOptions"])])):(a.openBlock(),a.createElementBlock("div",Hm,[r.loading?(a.openBlock(),a.createElementBlock("p",Um,"Loading chart data...")):r.error?(a.openBlock(),a.createElementBlock("p",qm,a.toDisplayString(r.error),1)):(a.openBlock(),a.createElementBlock("p",Ym,"No data available for the chart."))]))])}const vl=Ne(jm,[["render",Xm],["__scopeId","data-v-27f5ea01"]]),Km={components:{chart:gr},props:{entityName:{type:String,required:!0},title:{type:String,default:"Pie Chart"},yaxis:{type:String,default:null},xaxis:{type:String,default:null}},setup(t){const{chartData:e,fetchChartData:o,loading:r,error:n}=mr(),i=a.ref({responsive:!0,plugins:{legend:{position:"top"},tooltip:{callbacks:{label:function(l){return`${l.label}: ${l.raw}`}}}}}),s=async()=>{await o({entityName:t.entityName,xaxis:t.xaxis,yaxis:t.yaxis})};return a.onMounted(()=>{s()}),{chartData:e,chartOptions:i,loading:r,error:n}}},Gm={key:0,class:"chart-container"},Jm={key:1},Qm={key:0},Zm={key:1},ep={key:2};function tp(t,e,o,r,n,i){const s=a.resolveComponent("chart");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",null,[a.createElementVNode("h2",null,"Entity name: "+a.toDisplayString(o.entityName),1)]),r.chartData?(a.openBlock(),a.createElementBlock("div",Gm,[a.createElementVNode("h3",null,a.toDisplayString(o.title),1),a.createVNode(s,{type:"polarArea",chartData:r.chartData,chartOptions:r.chartOptions},null,8,["chartData","chartOptions"])])):(a.openBlock(),a.createElementBlock("div",Jm,[r.loading?(a.openBlock(),a.createElementBlock("p",Qm,"Loading chart data...")):r.error?(a.openBlock(),a.createElementBlock("p",Zm,a.toDisplayString(r.error),1)):(a.openBlock(),a.createElementBlock("p",ep,"No data available for the chart."))]))])}const wl=Ne(Km,[["render",tp],["__scopeId","data-v-941f0d0a"]]),op={components:{chart:gr},props:{entityName:{type:String,required:!0},title:{type:String,default:"Bar Chart"},yaxis:{type:String,required:!0},xaxis:{type:String,required:!0}},setup(t){const{chartData:e,fetchChartData:o,loading:r,error:n}=mr(),i=a.ref({responsive:!0,plugins:{legend:{position:"top"},tooltip:{callbacks:{label:function(l){return`${l.dataset.label}: ${l.raw}`}}}}}),s=async()=>{if(!t.yaxis||!t.xaxis){console.error("xaxis or yaxis is not defined."),n.value="x-axis or y-axis is not properly configured.";return}await o({entityName:t.entityName,yaxis:t.yaxis,xaxis:t.xaxis})};return a.onMounted(()=>{console.log("Fetching data for yAxis:",t.yaxis),console.log("Fetching data for xAxis:",t.xaxis),s()}),{chartData:e,chartOptions:i,loading:r,error:n}}},rp={key:0,class:"chart-container"},np={key:1},ip={key:0},ap={key:1},sp={key:2};function lp(t,e,o,r,n,i){const s=a.resolveComponent("chart");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",null,[a.createElementVNode("h2",null,"Entity name: "+a.toDisplayString(o.entityName),1)]),r.chartData?(a.openBlock(),a.createElementBlock("div",rp,[a.createElementVNode("h3",null,a.toDisplayString(o.title)+" , x-axis : "+a.toDisplayString(o.xaxis)+" , y-axis : "+a.toDisplayString(o.yaxis),1),a.createVNode(s,{type:"radar",chartData:r.chartData,chartOptions:r.chartOptions},null,8,["chartData","chartOptions"])])):(a.openBlock(),a.createElementBlock("div",np,[r.loading?(a.openBlock(),a.createElementBlock("p",ip,"Loading chart data...")):r.error?(a.openBlock(),a.createElementBlock("p",ap,a.toDisplayString(r.error),1)):(a.openBlock(),a.createElementBlock("p",sp,"No data available for the chart."))]))])}const Cl=Ne(op,[["render",lp],["__scopeId","data-v-80750171"]]),cp={class:"flex flex-col p-3"},dp={class:"flex justify-center flex-row mb-2 cursor-pointer"},up={style:{"word-break":"break-all"}},fp={__name:"LinkEntityContent",props:{linkEntityListItem:{type:Object,required:!0}},setup(t){Ke.useRoute();const e=lt(),o=a.ref("");e.getAppId()!=null&&e.getAppId()!=""&&(o.value=e.getAppId());const r=a.ref(),n=a.ref(!1),i=a.ref(!1),s=a.ref({}),l=a.ref([{label:"Remove association",icon:"",command:f=>{c()}}]),c=()=>{console.log(s.value),console.log("Function is calling")},d=(f,h)=>{s.value=h,r.value.show(f),i.value=!0},u=()=>{s.value={},i.value=!1};return(f,h)=>{const g=a.resolveComponent("Button"),m=a.resolveComponent("ContextMenu"),p=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("div",{onMouseenter:h[4]||(h[4]=a.withModifiers(b=>n.value=!0,["prevent"])),onMouseleave:h[5]||(h[5]=a.withModifiers(b=>n.value=!1,["prevent"])),class:"flex relative m-3",style:{border:"1px solid var(--surface-border)","border-radius":"5px"}},[a.withDirectives(a.createVNode(g,{onClick:h[0]||(h[0]=b=>d(b,t.linkEntityListItem)),class:"!absolute right-0",size:"small",style:{width:"55px",height:"25px","border-radius":"5px","font-size":"12px"}},{default:a.withCtx(()=>h[6]||(h[6]=[a.createTextVNode(" More")])),_:1},512),[[a.vShow,n.value||i.value]]),a.createVNode(m,{ref_key:"menu",ref:r,model:l.value,onMouseenter:h[1]||(h[1]=a.withModifiers(b=>n.value=!0,["prevent"])),onMouseleave:h[2]||(h[2]=a.withModifiers(b=>n.value=!1,["prevent"])),onHide:h[3]||(h[3]=b=>u())},null,8,["model"]),a.createElementVNode("div",cp,[a.createElementVNode("div",dp,[a.createElementVNode("div",up,a.toDisplayString(t.linkEntityListItem.entityName),1),a.createVNode(p,{to:{name:"entity360view",params:{entityName:t.linkEntityListItem.entityName,id:t.linkEntityListItem.id,appId:o.value}},target:"_blank"},{default:a.withCtx(()=>h[7]||(h[7]=[a.createElementVNode("div",{class:"pi pi-external-link ml-3"},null,-1)])),_:1},8,["to"])]),a.createElementVNode("div",null,"Id: "+a.toDisplayString(t.linkEntityListItem.id),1)])],32)}}},hp={class:"flex flex-col mt-3"},gp={class:"flex flex-row items-center"},mp={class:"flex items-center justify-center mt-5"},pp={key:0,class:"pi pi-caret-right"},bp={key:1,class:"pi pi-caret-down"},yp={key:0},kp={class:"flex flex-col mt-5"},xp={class:"col-12"},vp={class:"flex flex-col mt-5"},wp={class:"col-12 font-bold"},Cp={key:0},_p={class:"flex flex-col mt-5"},Sp={class:"col-12"},Bp={class:"flex flex-col mt-5"},Ep={class:"col-12"},Rp={class:"flex flex-col mt-5"},Dp={class:"col-12"},Op={class:"flex flex-row justify-between items-center mt-5"},Np={key:1,class:"mt-2"},Tp={class:"flex flex-row justify-between items-center"},Pp={key:1,class:"text-red-500"},$p={class:"flex flex-col mt-5"},Ap={class:"flex flex-row justify-between items-center mt-2"},Mp={class:"flex flex-row items-center mt-5 mb-5"},Vp={class:"font-bold"},Fp={class:"font-bold ml-2 flex-1"},Ip={class:"flex flex-row justify-center items-center mb-2"},Lp={class:"ml-2 flex-1"},zp={key:0,class:"pi pi-exclamation-circle"},jp={class:"flex flex-col justify-center"},Wp={class:"flex flex-row justify-between items-center"},Hp={class:"justify-start"},Up={class:"justify-start"},qp=Ne({__name:"EntityLookup",props:a.mergeModels({linkedEntity:{type:Object,required:!0},entity360Name:{type:String,required:!0},entity360Id:{required:!0},saveExistingRelatedEntityRecord:{type:Function,required:!0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){Ke.useRoute();const e=t,o=a.useModel(t,"modelValue"),r=new mo,n=a.ref({}),i=a.ref([]),s=a.ref({}),l=a.ref([]),c=a.ref([]),d=a.ref({}),u=a.ref("id"),f=a.ref(1),h=a.ref([]),g=a.ref(25),m=a.ref(0),p=a.ref(0),b=a.ref(0);let y=a.ref([]);const k=a.ref(!1),C={gt:"GREATER_THAN",dateAfter:"GREATER_THAN",equals:"EQUAL",dateIs:"EQUAL",notEquals:"NOT_EQUAL",dateIsNot:"NOT_EQUAL",lt:"LESS_THAN",dateBefore:"LESS_THAN",lte:"LESS_THAN_EQUAL",gte:"GREATER_THAN_EQUAL",between:"BETWEEN",contains:"CONTAINS",startsWith:"STARTS_WITH",notContains:"NOT_CONTAINS",endsWith:"ENDS_WITH"},_={gt:"is greater than",dateAfter:"is after",equals:"is equals",dateIs:"is equals",notEquals:"is not equals",dateIsNot:"is not equals",lt:"is less than",dateBefore:"is before",lte:"is less than or equal to",gte:"is greater than or equal to",between:"between",contains:"contains",startsWith:"starts with",notContains:"not contains",endsWith:"ends with"};a.onMounted(()=>{S()});const v=U=>e.linkedEntity.list.some(V=>V[d.value.name]===U),S=async()=>{try{const U={sortBy:[u.value],sortDirection:f.value===1?"ASC":"DESC",pageSize:g.value,currentPage:m.value,columnList:null,filter:y.value,fullTextSearch:""},V=await r.searchEntityRecords(e.linkedEntity.entityName,U);V&&V.response&&(n.value=V.response,l.value=V.response.entity.entityDefinition.columns,c.value=De(V.response.entity.entityDefinition.columns),p.value=V.response.totalRecords,await w(),await x(),B())}catch{}finally{}},w=async()=>{for(let U=0;U<l.value.length;U++){const V=l.value[U];!V.autoGeneerated&&V.foreignKey&&V.foreignKey.referencedEntityName.toLowerCase()==e.entity360Name.toLowerCase()&&(s.value=V)}},x=async()=>{for(let U=0;U<l.value.length;U++){const V=l.value[U];if(V.primaryKey&&V.primaryKey==!0){d.value=V;break}}},B=()=>{for(let U=0;U<e.linkedEntity.list.length;U++){const V=e.linkedEntity.list[U];V.is_deleted==!1&&V[s.value.name]==e.entity360Id&&i.value.push(V[d.value.name])}},T=()=>{let U=JSON.parse(JSON.stringify(i.value));U=U.filter(he=>!v(he));let V={linkEntityName:n.value.entityName,linkRecordIdList:[]};for(let he=0;he<U.length;he++){const me=U[he];V.linkRecordIdList.push(me)}e.saveExistingRelatedEntityRecord(V)},E=()=>{k.value=!k.value},O=[{label:"Starts with",value:"startsWith"},{label:"Contains",value:"contains"},{label:"Not contains",value:"notContains"},{label:"Ends with",value:"endsWith"},{label:"Equals",value:"equals"},{label:"Not equals",value:"notEquals"}],M=[{label:"Equals",value:"equals"},{label:"Not equals",value:"notEquals"},{label:"Less than",value:"lt"},{label:"Less than or equal to",value:"lte"},{label:"Greater than",value:"gt"},{label:"Greater than or equal to",value:"gte"}],W=[{label:"Equals",value:"equals"},{label:"Not equals",value:"notEquals"}],Y=[{label:"Date is",value:"dateIs"},{label:"Date is not",value:"dateIsNot"},{label:"Date is before",value:"dateBefore"},{label:"Date is after",value:"dateAfter"}],I=[{label:"ASC",value:1},{label:"DESC",value:-1}];let z=[];const F=a.computed(()=>c.value.filter(U=>U.sortable)),P=a.computed(()=>c.value.filter(U=>U.filterable)),L=U=>c.value.filter(V=>{var he;return V.filterable?((he=h.value[U])==null?void 0:he.columnName)===V.name?!0:!h.value.some((me,ge)=>ge!==U&&me.columnName===V.name):!1}).map(V=>({label:V.name,value:V.field})),Q=U=>{let V="";switch(Xe(U.columnName).toLowerCase()){case"string":case"uuid":V="startsWith";break;case"date":V="dateIs";break;case"numeric":case"int":case"integer":V="equals";break;case"bool":case"boolean":V="equals";break}U.operator=V,U.value=""},oe=U=>{const V=Xe(U.columnName);switch(V&&V.toLowerCase()){case"integer":case"int":case"numeric":z=M;break;case"date":z=Y;break;case"bool":case"boolean":z=W;break;default:z=O}return z},ne=U=>{if(U&&U.columnName){const V=Xe(U.columnName);return vt(V)}else return""},X=()=>{for(let U=0;U<h.value.length;U++){const V=h.value[U];V.editing=!1}h.value.push({columnName:"",value:"",operator:"",editing:!0})},J=U=>{h.value.splice(U,1)},ie=U=>{U.editing=!U.editing},ue=()=>{let U=JSON.parse(JSON.stringify(h.value));y.value=[];for(let V=0;V<U.length;V++){const he=U[V];delete he.editing,he.columnName&&he.operator&&he.value&&(he.columnType=Xe(he.columnName),he.operator=C[he.operator],y.value.push(he))}S()},De=U=>U.map(V=>({field:V.name,name:V.displayName?V.displayName:V.name,filterable:V.filterable,datatype:V.type,sortable:!0,displayFormatKey:V.displayFormatKey,displayFormat:V.displayFormat})),st=()=>{S()},Xe=U=>{const V=c.value.find(he=>he.field===U);return V?V.datatype:null},vt=U=>{switch(U.toLowerCase()){case"integer":case"int":case"numeric":return"numeric";case"date":return"date";case"bool":case"boolean":return"boolean";default:return"text"}},ft=U=>{g.value=U.rows,m.value=U.page,b.value=U.first,S()};return(U,V)=>{var go,$o;const he=a.resolveComponent("InputIcon"),me=a.resolveComponent("InputText"),ge=a.resolveComponent("IconField"),pe=a.resolveComponent("Select"),Te=a.resolveComponent("Divider"),ot=a.resolveComponent("InputNumber"),Tt=a.resolveComponent("DatePicker"),Le=a.resolveComponent("Button"),rt=a.resolveComponent("Checkbox"),ht=a.resolveComponent("Paginator"),ho=a.resolveDirective("tooltip");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",hp,[a.createElementVNode("div",gp,[a.createVNode(ge,{class:"block mt-2 md:mt-0 w-full"},{default:a.withCtx(()=>[a.createVNode(he,{onClick:V[0]||(V[0]=()=>{}),class:"pi pi-search"}),a.createVNode(me,{class:"w-full",onKeyup:V[1]||(V[1]=a.withKeys(()=>{},["enter"])),placeholder:`Search ${n.value.entityName}`},null,8,["placeholder"])]),_:1})]),a.createElementVNode("div",mp,[a.createElementVNode("div",{class:"flex items-center cursor-pointer sorting-filter-section flex-1 line-height-4",onClick:V[2]||(V[2]=ee=>E())},[k.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",pp)),k.value?(a.openBlock(),a.createElementBlock("div",bp)):a.createCommentVNode("",!0),V[9]||(V[9]=a.createElementVNode("div",{class:"ml-3 font-bold"}," Sorting & Filters ",-1))])]),k.value?(a.openBlock(),a.createElementBlock("div",yp,[a.createElementVNode("div",kp,[V[10]||(V[10]=a.createElementVNode("div",{class:"col-12 font-bold"},"Sort Column",-1)),a.createElementVNode("div",xp,[a.createVNode(pe,{modelValue:u.value,"onUpdate:modelValue":V[3]||(V[3]=ee=>u.value=ee),options:F.value,optionLabel:"name",optionValue:"field",highlightOnSelect:!1,class:"w-full",onChange:V[4]||(V[4]=ee=>st(U.event))},null,8,["modelValue","options"])])]),a.createElementVNode("div",vp,[V[11]||(V[11]=a.createElementVNode("div",{class:"col-12 font-bold"},[a.createElementVNode("div",{class:"col-12 font-bold"},"Sort Direction")],-1)),a.createElementVNode("div",wp,[a.createVNode(pe,{modelValue:f.value,"onUpdate:modelValue":V[5]||(V[5]=ee=>f.value=ee),options:I,optionLabel:"label",optionValue:"value",highlightOnSelect:!1,class:"w-full",onChange:V[6]||(V[6]=ee=>st(U.event))},null,8,["modelValue"])])]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.value,(ee,wt)=>(a.openBlock(),a.createElementBlock("div",{key:wt},[ee.editing?(a.openBlock(),a.createElementBlock("div",Cp,[a.createVNode(Te,{class:"mt-5"}),a.createElementVNode("div",_p,[V[12]||(V[12]=a.createElementVNode("div",{class:"col-12 font-bold"},"Filter Column",-1)),a.createElementVNode("div",Sp,[a.createVNode(pe,{modelValue:ee.columnName,"onUpdate:modelValue":Ae=>ee.columnName=Ae,options:L(wt),optionLabel:"label",placeholder:"Select column",optionValue:"value",highlightOnSelect:!1,class:"w-full",onChange:Ae=>Q(ee)},null,8,["modelValue","onUpdate:modelValue","options","onChange"])])]),a.createElementVNode("div",Bp,[V[13]||(V[13]=a.createElementVNode("div",{class:"col-12 font-bold"},"Filter Operator",-1)),a.createElementVNode("div",Ep,[a.createVNode(pe,{modelValue:ee.operator,"onUpdate:modelValue":Ae=>ee.operator=Ae,options:oe(ee),optionLabel:"label",placeholder:"Select operator",optionValue:"value",highlightOnSelect:!1,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","options"])])]),a.createElementVNode("div",Rp,[V[14]||(V[14]=a.createElementVNode("div",{class:"col-12 font-bold"},"Filter value",-1)),a.createElementVNode("div",Dp,[ne(ee)=="numeric"?(a.openBlock(),a.createBlock(ot,{key:0,format:!1,class:"w-full",modelValue:ee.value,"onUpdate:modelValue":Ae=>ee.value=Ae,placeholder:"Search value"},null,8,["modelValue","onUpdate:modelValue"])):ne(ee)=="date"?(a.openBlock(),a.createBlock(Tt,{key:1,class:"w-full",modelValue:ee.value,"onUpdate:modelValue":Ae=>ee.value=Ae,dateFormat:"mm/dd/yy",placeholder:"mm/dd/yyyy"},null,8,["modelValue","onUpdate:modelValue"])):(a.openBlock(),a.createBlock(me,{key:2,modelValue:ee.value,"onUpdate:modelValue":Ae=>ee.value=Ae,class:"w-full",placeholder:"Search value"},null,8,["modelValue","onUpdate:modelValue"]))])]),a.createElementVNode("div",Op,[a.createVNode(Le,{style:{width:"100px"},label:"Hide",icon:"",severity:"warning",onClick:Ae=>ie(ee)},null,8,["onClick"]),a.createVNode(Le,{style:{width:"100px"},label:"Delete",icon:"",severity:"danger",onClick:Ae=>J(wt)},null,8,["onClick"])])])):a.createCommentVNode("",!0),ee.editing?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",Np,[a.createVNode(Te),a.createElementVNode("div",Tp,[a.createElementVNode("span",null,[ee.columnName||ee.operator||ee.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("span",{class:a.normalizeClass({"text-red-500":!ee.columnName})},a.toDisplayString(ee.columnName?" "+ee.columnName:" column"),3),a.createElementVNode("span",{class:a.normalizeClass({"text-red-500":!_[ee.operator]})},a.toDisplayString(ee.operator?" "+_[ee.operator]:" operator"),3),a.createElementVNode("span",{class:a.normalizeClass({"text-red-500":!ee.value})},a.toDisplayString(ee.value?" "+ee.value:" value"),3)],64)):(a.openBlock(),a.createElementBlock("span",Pp,"Filter is empty"))]),a.createVNode(Le,{style:{width:"100px"},label:"Edit",icon:"",severity:"info",onClick:Ae=>ie(ee)},null,8,["onClick"])])]))]))),128)),a.createElementVNode("div",$p,[a.createVNode(Te),a.createElementVNode("div",Ap,[a.createVNode(Le,{style:{width:"100px"},label:"Add",disabled:P.value.length===h.value.length,icon:"",severity:"success",onClick:X},null,8,["disabled"]),a.createVNode(Le,{style:{width:"100px"},label:"Apply",severity:"info",onClick:ue})])])])):a.createCommentVNode("",!0),a.createElementVNode("div",Mp,[a.createElementVNode("div",Vp,a.toDisplayString((go=n.value)==null?void 0:go.totalRecords),1),a.createElementVNode("div",Fp,a.toDisplayString(($o=n.value)==null?void 0:$o.entityName),1)]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value.result,(ee,wt)=>(a.openBlock(),a.createElementBlock("div",{key:wt},[a.createElementVNode("div",Ip,[a.createVNode(rt,{disabled:v(ee[d.value.name]),modelValue:i.value,"onUpdate:modelValue":V[7]||(V[7]=Ae=>i.value=Ae),value:ee[d.value.name]},null,8,["disabled","modelValue","value"]),a.createElementVNode("div",Lp,[a.createTextVNode(a.toDisplayString(t.linkedEntity.entityName)+" ",1),a.createElementVNode("span",null,a.toDisplayString(ee[d.value.name]),1)]),v(ee[d.value.name])?a.withDirectives((a.openBlock(),a.createElementBlock("div",zp,null,512)),[[ho,"This record is already associated.",void 0,{left:!0}]]):a.createCommentVNode("",!0)])]))),128)),a.createVNode(ht,{rows:g.value,totalRecords:p.value,rowsPerPageOptions:[10,25,50,100],onPage:ft,template:"FirstPageLink PageLinks LastPageLink CurrentPageReport RowsPerPageDropdown",currentPageReportTemplate:""},null,8,["rows","totalRecords"])]),a.createElementVNode("div",jp,[a.createVNode(Te,{class:"mt-5"}),a.createElementVNode("div",Wp,[a.createElementVNode("div",Hp,[a.createVNode(Le,{label:"Cancel",icon:"",severity:"secondary",onClick:V[8]||(V[8]=ee=>o.value=!1)})]),a.createElementVNode("div",Up,[a.createVNode(Le,{label:"Save",severity:"success",onClick:T})])])])],64)}}},[["__scopeId","data-v-5172abef"]]),Yp={class:"field flex flex-col"},Xp={key:0,class:"flex items-center"},Kp={key:1},Gp={class:"flex items-center"},Jp={class:"flex flex-col justify-center"},Qp={class:"flex flex-row justify-between items-center"},Zp={class:"justify-start"},e0={class:"justify-start"},t0={__name:"EntityLookupObject",props:a.mergeModels({linkedEntity:{type:Object,required:!0},entity360Name:{type:String,required:!0},entity360Id:{type:[String,Number]},saveExistingEntityObject:{type:Function}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){Ke.useRoute();const e=t,o=a.useModel(t,"modelValue"),r=new mo,n=a.ref({}),i=a.ref({});let s=a.ref("");const l=a.ref({}),c=a.ref({});a.onMounted(async()=>{console.log("linkedEntity"),console.log(e.linkedEntity),console.log("entity360Name"),console.log(e.entity360Name),console.log("entity360Id"),console.log(e.entity360Id),await u(),await d()});const d=async()=>{try{const p=await r.getEntityRecords(e.linkedEntity.entityName);p&&p.response&&(n.value=p.response,await f(p.response.entity.entityDefinition.columns),await g(),console.log(n.value))}catch{}finally{}},u=async()=>{try{const p=await r.getRecord(e.entity360Name,e.entity360Id);p&&p.response&&(i.value=p.response,await h(p.response.entity.entityDefinition.columns),console.log(i.value))}catch{}finally{}},f=async p=>{for(let b=0;b<p.length;b++){const y=p[b];if(y.primaryKey&&y.primaryKey==!0){l.value=y;break}}},h=async p=>{for(let b=0;b<p.length;b++){const y=p[b];if(!y.autoGeneerated&&y.foreignKey&&y.foreignKey.referencedEntityName.toLowerCase()==e.linkedEntity.entityName.toLowerCase()){c.value=y;break}}},g=async()=>{for(let p=0;p<n.value.result.length;p++){const b=n.value.result[p];if(b[l.value.name]==i.value.result[0][c.value.name]){s.value=b;break}}},m=()=>{const p={linkedEntityRecordId:s.value[l.value.name],linkedEntityName:e.linkedEntity.entityName,relationType:"ManyToOne"};e.saveExistingEntityObject(p)};return(p,b)=>{const y=a.resolveComponent("Select"),k=a.resolveComponent("Divider"),C=a.resolveComponent("Button");return a.openBlock(),a.createElementBlock("div",Yp,[a.createVNode(y,{modelValue:a.unref(s),"onUpdate:modelValue":b[0]||(b[0]=_=>a.isRef(s)?s.value=_:s=_),"item-value":l.value.name,options:n.value.result,filter:"",optionLabel:l.value.name,placeholder:"Select "+l.value.name,class:"w-full"},{value:a.withCtx(_=>[_.value?(a.openBlock(),a.createElementBlock("div",Xp,[a.createElementVNode("div",null,a.toDisplayString(_.value[l.value.name]),1)])):(a.openBlock(),a.createElementBlock("span",Kp,a.toDisplayString(_.placeholder),1))]),option:a.withCtx(_=>[a.createElementVNode("div",Gp,[a.createElementVNode("div",null,a.toDisplayString(_.option[l.value.name]),1)])]),_:1},8,["modelValue","item-value","options","optionLabel","placeholder"]),a.createElementVNode("div",Jp,[a.createVNode(k),a.createElementVNode("div",Qp,[a.createElementVNode("div",Zp,[a.createVNode(C,{label:"Cancel",icon:"",severity:"secondary",onClick:b[1]||(b[1]=_=>o.value=!1)})]),a.createElementVNode("div",e0,[a.createVNode(C,{label:"Save",severity:"success",onClick:m})])])])])}}},o0={style:{"font-weight":"700","font-size":"1.25rem"}},r0={class:"flex flex-col"},n0={class:"flex flex-row justify-between items-center"},i0={class:"justify-start"},a0={class:"justify-start"},s0="",l0={__name:"CreateRelatedentity",props:a.mergeModels({entity360Id:{required:!0},entity360Name:{type:String,required:!0},linkedEntity:{type:Object,required:!0}},{showCreateRelatedEntityForm:{},showCreateRelatedEntityFormModifiers:{}}),emits:a.mergeModels(["onSaveDialog"],["update:showCreateRelatedEntityForm"]),setup(t,{emit:e}){const o=a.useModel(t,"showCreateRelatedEntityForm");Ke.useRoute();const r=t,n=r.linkedEntity.entityName,i=e,s=a.ref("Add existing");a.onMounted(()=>{g()});const{formData:l,columns:c,errors:d,backendErrors:u,clearErrors:f,saveRecord:h,fetchAllRecords:g,saveRelatedEntityRecord:m}=Vi(n,s0,i),p=()=>{for(let C=0;C<c.value.length;C++){const _=c.value[C];!_.autoGenerated&&_.foreignKey&&(l.value[_.name]=r.entity360Id)}const k={relationType:r.linkedEntity.relationType,linkedEntities:{entityLinkage:[{linkEntityName:r.entity360Name,linkRecordIdList:[r.entity360Id]}]}};h(k)},b=k=>{var C;if(((C=k==null?void 0:k.linkRecordIdList)==null?void 0:C.length)>0){const _={entityLinkage:[{linkEntityName:k.linkEntityName,linkRecordIdList:k.linkRecordIdList}]};m(r.entity360Name,r.entity360Id,_)}},y=k=>{const C={entityLinkage:[{linkEntityName:r.entity360Name,linkRecordIdList:[r.entity360Id]}]};m(k.linkedEntityName,k.linkedEntityRecordId,C)};return(k,C)=>{const _=a.resolveComponent("Tab"),v=a.resolveComponent("TabList"),S=a.resolveComponent("Divider"),w=a.resolveComponent("Button"),x=a.resolveComponent("TabPanel"),B=a.resolveComponent("TabPanels"),T=a.resolveComponent("Tabs"),E=a.resolveComponent("Drawer");return a.openBlock(),a.createBlock(E,{visible:o.value,"onUpdate:visible":C[3]||(C[3]=O=>o.value=O),blockScroll:!0,position:"right",class:"p-fluid layout-profile-sidebar",style:{width:"40%"},pt:{closeButton:"ml-auto"}},{header:a.withCtx(()=>[a.createElementVNode("span",o0,a.toDisplayString(s.value)+" "+a.toDisplayString(t.linkedEntity.entityName),1)]),default:a.withCtx(()=>[a.createVNode(T,{value:"1"},{default:a.withCtx(()=>[a.createVNode(v,null,{default:a.withCtx(()=>[a.createVNode(_,{value:"0"},{default:a.withCtx(()=>C[4]||(C[4]=[a.createTextVNode("Create new")])),_:1}),a.createVNode(_,{value:"1"},{default:a.withCtx(()=>C[5]||(C[5]=[a.createTextVNode("Add existing")])),_:1})]),_:1}),a.createVNode(B,null,{default:a.withCtx(()=>[a.createVNode(x,{value:"0"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(c),(O,M)=>{var W;return a.openBlock(),a.createElementBlock("div",{key:M,class:"mt-3"},[!O.autoGenerated&&!O.foreignKey?(a.openBlock(),a.createBlock(un,{key:0,modelValue:a.unref(l)[O.name],"onUpdate:modelValue":Y=>a.unref(l)[O.name]=Y,column:O,errors:(W=a.unref(d)[O.name])==null?void 0:W.messages,onInput:a.unref(f)},null,8,["modelValue","onUpdate:modelValue","column","errors","onInput"])):a.createCommentVNode("",!0)])}),128)),a.createElementVNode("div",r0,[a.createVNode(S),a.createElementVNode("div",n0,[a.createElementVNode("div",i0,[a.createVNode(w,{label:"Cancel",icon:"",severity:"secondary",onClick:C[0]||(C[0]=O=>o.value=!1)})]),a.createElementVNode("div",a0,[a.createVNode(w,{label:"Save",severity:"success",onClick:p})])])])]),_:1}),a.createVNode(x,{value:"1"},{default:a.withCtx(()=>[t.linkedEntity.relationType=="ONE_TO_MANY"?(a.openBlock(),a.createBlock(qp,{key:0,modelValue:o.value,"onUpdate:modelValue":C[1]||(C[1]=O=>o.value=O),linkedEntity:t.linkedEntity,entity360Name:t.entity360Name,entity360Id:t.entity360Id,saveExistingRelatedEntityRecord:b},null,8,["modelValue","linkedEntity","entity360Name","entity360Id"])):a.createCommentVNode("",!0),t.linkedEntity.relationType=="MANY_TO_ONE"?(a.openBlock(),a.createBlock(t0,{key:1,modelValue:o.value,"onUpdate:modelValue":C[2]||(C[2]=O=>o.value=O),linkedEntity:t.linkedEntity,entity360Name:t.entity360Name,entity360Id:t.entity360Id,saveExistingEntityObject:y},null,8,["modelValue","linkedEntity","entity360Name","entity360Id"])):a.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["visible"])}}},c0={class:"flex flex-col border-bottom-section pb-3 pt-3"},d0={class:"flex items-center pl-3 pr-3 justify-between"},u0={key:0,class:"pi pi-caret-right"},f0={key:1,class:"pi pi-caret-down"},h0={class:"ml-3 font-bold"},g0={class:"ml-1"},m0={class:"text-right"},p0={key:0},b0=Ne({__name:"LinkEntitySection",props:{entity360Id:{required:!0},entity360Name:{type:String,required:!0},linkedEntity:{type:Object,required:!0},entity360Name:{type:[String,Number]},onSaveRelatedEnttity:{type:Function}},setup(t){Ke.useRoute();const e=t,o=a.ref(!1),r=a.ref(!1),n=()=>{o.value=!o.value},i=()=>{r.value=!r.value},s=()=>{r.value=!1,e.onSaveRelatedEnttity()},l=a.computed(()=>e.linkedEntity.list.filter(c=>!c.is_deleted).length);return(c,d)=>{const u=a.resolveComponent("Button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",c0,[a.createElementVNode("div",d0,[a.createElementVNode("div",{class:"flex cursor-pointer items-center linked-entity-section grow line-height-4",onClick:d[0]||(d[0]=f=>n())},[o.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",u0)),o.value?(a.openBlock(),a.createElementBlock("div",f0)):a.createCommentVNode("",!0),a.createElementVNode("div",h0,a.toDisplayString(t.linkedEntity.entityName),1),a.createElementVNode("div",g0," ("+a.toDisplayString(l.value)+") ",1)]),a.createElementVNode("div",m0,[a.createVNode(u,{label:"Add",icon:"pi pi-plus",size:"small",onClick:d[1]||(d[1]=f=>i())})])]),o.value?(a.openBlock(),a.createElementBlock("div",p0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.linkedEntity.list,(f,h)=>(a.openBlock(),a.createElementBlock("div",{class:"flex flex-col",key:h},[f.is_deleted?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(fp,{key:0,linkEntityListItem:f},null,8,["linkEntityListItem"]))]))),128))])):a.createCommentVNode("",!0)]),r.value?(a.openBlock(),a.createBlock(l0,{key:0,showCreateRelatedEntityForm:r.value,"onUpdate:showCreateRelatedEntityForm":d[2]||(d[2]=f=>r.value=f),linkedEntity:t.linkedEntity,entity360Name:t.entity360Name,entity360Id:t.entity360Id,onOnSaveDialog:s},null,8,["showCreateRelatedEntityForm","linkedEntity","entity360Name","entity360Id"])):a.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-412eec44"]]),y0={key:0},k0={class:"flex"},x0={class:"p-3 mt-3 flex-col items-center"},v0={key:0,class:"pi pi-caret-right"},w0={key:1,class:"pi pi-caret-down"},C0={class:"font-bold ml-2"},_0={key:0,class:"flex flex-col mt-4"},S0={class:"flex flex-col mt-2"},B0={class:"flex flex-row flex-wrap justify-between pl-5"},E0={class:"flex flex-col"},R0={class:"font-bold"},D0={class:"mt-2"},O0={key:0,class:"flex flex-col",style:{position:"relative","max-width":"400px","background-color":"var(--surface-card)"}},N0={key:2,style:{width:"350px"},class:"flex flex-col justify-center"},T0={key:0,class:"custom-sidebar"},P0={class:"custom-sidebar-content"},$0={class:"custom-sidebar-button"},A0={class:"custom-sidebar-text"},_l=Ne({__name:"Entity360",props:{entityName:{type:String},recordId:{type:String},variable:{type:String,default:"item"},linkedEntity:Array},emits:["onSaveDialog"],setup(t,{expose:e,emit:o}){var E,O;const r=lt(),n=Ke.useRoute(),i=t,s=a.ref(!0),l=a.ref(!1),c=a.ref([]);let d=(E=n==null?void 0:n.params)==null?void 0:E.entityName,u=(O=n==null?void 0:n.params)==null?void 0:O.id;i.entityName&&(d=i.entityName),i.recordId&&(u=i.recordId);const f=o,{formData:h,columns:g,errors:m,backendErrors:p,isDataChange:b,linkedEntities:y,primarayColumn:k,clearErrors:C,saveRecord:_,getRelatedEntityRecordById:v,cancleRecord:S}=Vi(d,u,f);a.watch(()=>r.globalConfigs.appId,async M=>{M&&v()},{immediate:!0});const w=()=>{s.value=!s.value},x=()=>{l.value=!l.value},B=()=>{v()},T=M=>{if(!c.value||c.value.length===0)return[];const W=c.value.find(Y=>Y.entityName===M);return W&&W.list?W.list:(console.log("No related entity found"),[])};return e({getRelatedEntity:T}),a.watch(()=>y.value,M=>{Array.isArray(M)&&M.length>0&&M[0]&&(c.value=M)},{immediate:!0,deep:!0}),(M,W)=>{var ne;const Y=a.resolveComponent("SplitterPanel"),I=a.resolveComponent("Tab"),z=a.resolveComponent("TabList"),F=a.resolveComponent("TabPanel"),P=a.resolveComponent("TabPanels"),L=a.resolveComponent("Tabs"),Q=a.resolveComponent("Splitter"),oe=a.resolveComponent("Button");return M.$slots["list-item-display-360"]?(a.openBlock(),a.createElementBlock("div",y0,[a.renderSlot(M.$slots,"header",{},void 0,!0),a.createElementVNode("div",null,[a.renderSlot(M.$slots,"list-item-display-360",a.normalizeProps({[t.variable||""]:{formData:a.unref(h),columns:a.unref(g),linkedEntities:a.unref(y),errors:a.unref(m),recordId:a.unref(u),entityName:a.unref(d),getRelatedEntity:T}}),void 0,!0)]),a.renderSlot(M.$slots,"footer",{},void 0,!0)])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",k0,[a.createVNode(Q,{class:"flex-1",layout:"horizontal",gutterSize:8,size:100},{default:a.withCtx(()=>[a.createVNode(Y,{size:20,minSize:10,maxSize:20},{default:a.withCtx(()=>[a.createElementVNode("div",x0,[a.createElementVNode("div",{onClick:W[0]||(W[0]=X=>w()),class:"section-heading cursor-pointer"},[s.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("i",v0)),s.value?(a.openBlock(),a.createElementBlock("i",w0)):a.createCommentVNode("",!0),a.createElementVNode("span",C0," About this "+a.toDisplayString(a.unref(d)),1)]),s.value?(a.openBlock(),a.createElementBlock("div",_0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(g),(X,J)=>{var ie;return a.openBlock(),a.createElementBlock("div",{key:J},[X.autoGenerated?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(un,{key:0,modelValue:a.unref(h)[X.name],"onUpdate:modelValue":ue=>a.unref(h)[X.name]=ue,column:X,errors:(ie=a.unref(m)[X.name])==null?void 0:ie.messages,onInput:a.unref(C)},null,8,["modelValue","onUpdate:modelValue","column","errors","onInput"]))])}),128))])):a.createCommentVNode("",!0)])]),_:1}),a.createVNode(Y,{size:55,minSize:35,style:{height:"100%"}},{default:a.withCtx(()=>[a.createVNode(L,{value:"0"},{default:a.withCtx(()=>[a.createVNode(z,null,{default:a.withCtx(()=>[a.createVNode(I,{value:"0"},{default:a.withCtx(()=>W[3]||(W[3]=[a.createTextVNode("Overview")])),_:1}),a.createVNode(I,{value:"1"},{default:a.withCtx(()=>W[4]||(W[4]=[a.createTextVNode("Activity")])),_:1})]),_:1}),a.createVNode(P,null,{default:a.withCtx(()=>[a.createVNode(F,{value:"0"},{default:a.withCtx(()=>[a.createElementVNode("div",S0,[W[5]||(W[5]=a.createElementVNode("h3",{class:"mt-2 text-xl font-semibold"},"Data highlights",-1)),a.createElementVNode("div",B0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(g).filter(X=>X.autoGenerated),(X,J)=>(a.openBlock(),a.createElementBlock("div",{key:J,class:"column-item"},[a.createElementVNode("div",E0,[a.createElementVNode("div",R0,a.toDisplayString(X.name),1),a.createElementVNode("div",D0,[a.createVNode(zi,{column:X,value:a.unref(h)[X.name]},null,8,["column","value"])])])]))),128))])])]),_:1}),a.createVNode(F,{value:"1"})]),_:1})]),_:1})]),_:1})]),_:1}),((ne=a.unref(y))==null?void 0:ne.length)>0?(a.openBlock(),a.createElementBlock("div",O0,[l.value?(a.openBlock(),a.createBlock(oe,{key:0,icon:"pi pi-caret-right",rounded:"",onClick:x,"aria-label":"Filter",style:{height:"2rem",width:"2rem",left:"-20px"}})):a.createCommentVNode("",!0),l.value?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(oe,{key:1,icon:"pi pi-caret-left",rounded:"",onClick:x,"aria-label":"Filter",style:{height:"2rem",width:"2rem",left:"-20px"}})),l.value?(a.openBlock(),a.createElementBlock("div",N0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(y),(X,J)=>(a.openBlock(),a.createElementBlock("div",{key:J},[a.createVNode(b0,{entity360Name:a.unref(d),entity360Id:a.unref(u),linkedEntity:X,onSaveRelatedEnttity:B},null,8,["entity360Name","entity360Id","linkedEntity"])]))),128))])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)]),a.unref(b)?(a.openBlock(),a.createElementBlock("div",T0,[a.createElementVNode("div",P0,[a.createElementVNode("div",$0,[a.createVNode(oe,{severity:"primary",onClick:W[1]||(W[1]=X=>a.unref(_)())},{default:a.withCtx(()=>W[6]||(W[6]=[a.createTextVNode("Save")])),_:1}),a.createVNode(oe,{style:{"margin-left":"10px"},severity:"secondary",onClick:W[2]||(W[2]=X=>a.unref(S)())},{default:a.withCtx(()=>W[7]||(W[7]=[a.createTextVNode("Cancel")])),_:1})]),a.createElementVNode("div",A0," You've changed property in the "+a.toDisplayString(a.unref(d))+". ",1)])])):a.createCommentVNode("",!0)],64))}}},[["__scopeId","data-v-6df84fdd"]]);function Sn(){const t=new mo;let{errors:e,setErrors:o}=Es(),r=a.reactive({data:null});const n=S=>{r.data=S},i=async S=>{try{const w=await t.getEntityRecords(S);if(w&&w.response)return w}catch(w){return console.error("Error fetching entity:",w.errorMessage),w}finally{}},s=async(S,w)=>{try{let x=await t.addRecord(S.entityName,w);if(x)return x}catch(x){return x}finally{}},l=async(S,w,x)=>{try{const B=await t.updateRecord(S.entityName,w,x);if(B&&B.response)return B}catch(B){return B}finally{}},c=async(S,w)=>{try{w.filter==null&&(w.filter={}),Object.keys(w.filter).length===0&&(w.filter=[]);const x=await t.searchEntityRecords(S.entityName,w);if(x)return x.response.sortBy=w.sortBy,x.response.filters=w.filter,x.response.sortDirection=w.sortDirection,x.response.fullTextSearch=w.fullTextSearch,x}catch(x){return x}finally{}},d=async(S,w)=>{try{const x=await t.deleteRecord(S.entityName,w);if(x)return x}catch(x){console.error("Error on deleting record:",x.errorMessage)}finally{}},u=S=>S.result,f=S=>{var w,x;return(x=(w=S==null?void 0:S.entity)==null?void 0:w.entityDefinition)==null?void 0:x.columns},h=S=>{const w=S.entity.entityDefinition.columns;let x={};for(let B=0;B<w.length;B++){const T=w[B];if(T.primaryKey&&T.primaryKey==!0){x=T;break}}return x},g=S=>{const w=S.entity.entityDefinition.columns;let x={};for(let B=0;B<w.length;B++){let T=w[B];T.autoGenerated||(x[T.name]="")}return x},m=(S,w)=>{let x="";const B=S.entity.entityDefinition.columns;for(let T=0;T<B.length;T++){let E=B[T];if(w==E.name){x=E.type;break}}return x},p=(S,w)=>{const B=S.entity.entityDefinition.columns.filter(E=>E.autoGenerated).map(E=>E.name);return Object.entries(w).filter(([E])=>!B.includes(E)).map(([E,O])=>({recordColumnName:E,recordColumnValue:O,columnType:m(r.data,E)}))},b=()=>{const S=r.data.entity.entityDefinition.columns;return Mi().shape(S.reduce((x,B)=>(B.autoGenerated||(x[B.name]=Ai().nullable(!1).test({name:"custom-validation",test:function(T){const E=[];let O="";if(B.required&&(!T||T.trim()===""))if(B.validations){O=y(B.validations,"VALIDATE_REQUIRED"),E.push(O);let M=C(B.validations,"VALIDATE_REQUIRED");M&&(M="hint:"+M,E.push(M))}else O=B.displayName+" is required.",E.push(O);else{if(B.maxLength&&T.length>B.maxLength)if(B.validations){O=y(B.validations,"VALIDATE_MAXLENGTH"),E.push(O);let M=C(B.validations,"VALIDATE_MAXLENGTH");M&&(M="hint:"+M,E.push(M))}else O=B.displayName+" cannot exceed from "+B.maxLength+" characters",E.push(O);if(B.regxId&&!new RegExp(k(B.validations,"VALIDATE_REGX")).test(T))if(B.validations){O=y(B.validations,"VALIDATE_REGX"),E.push(O);let M=C(B.validations,"VALIDATE_REGX");M&&(M="hint:"+M,E.push(M))}else O=B.displayName+" invalid format.",E.push(O)}return E.length>0?this.createError({message:E}):!0}})),x),{}))},y=(S,w)=>{for(let x=0;x<S.length;x++)if(w==S[x].type)return S[x].message},k=(S,w)=>{for(let x=0;x<S.length;x++)if(w==S[x].type)return S[x].regx},C=(S,w)=>{for(let x=0;x<S.length;x++)if(w==S[x].type)return S[x].hint};return{state:r,setEntity:n,getEntity:i,addRecord:s,updateRecord:l,searchRecord:c,entityRecordDelete:d,getEntityItems:u,getEntityColumns:f,getPrimaryKeyColumn:h,getFormData:g,createDataToSave:p,createValidationSchema:b,clearErrors:S=>(o({...e.value,[S]:null}),e.value),validateData:async(S,w)=>{try{return await S.validate(w,{abortEarly:!1}),o({}),{validate:!0}}catch(x){const B=x.inner.reduce((O,M)=>(O[M.path]||(O[M.path]={messages:[]}),O[M.path].messages.push(...M.errors),O),{}),T=Object.entries(B).reduce((O,[M,W])=>(O[M]={messages:W.messages},O),{});return o(T),{validate:!1,errors:e.value}}}}}const Bn={__name:"ConfirmDeleteDialog",props:{showDeleteDialog:{},showDeleteDialogModifiers:{}},emits:a.mergeModels(["onDeleteItem"],["update:showDeleteDialog"]),setup(t,{emit:e}){const o=a.useModel(t,"showDeleteDialog"),r=e,n=i=>{r("onDeleteItem",{remove:i})};return(i,s)=>{const l=a.resolveComponent("Button"),c=a.resolveComponent("Dialog");return a.openBlock(),a.createBlock(c,{visible:o.value,"onUpdate:visible":s[2]||(s[2]=d=>o.value=d),style:{width:"450px"},header:"Confirm",modal:!0},{footer:a.withCtx(()=>[a.createVNode(l,{label:"No",icon:"pi pi-times",text:"",onClick:s[0]||(s[0]=d=>n(!1))}),a.createVNode(l,{label:"Yes",icon:"pi pi-check",text:"",onClick:s[1]||(s[1]=d=>n(!0))})]),default:a.withCtx(()=>[s[3]||(s[3]=a.createElementVNode("div",{class:"flex items-center justify-center"},[a.createElementVNode("i",{class:"pi pi-exclamation-triangle mr-3",style:{"font-size":"2rem"}}),a.createElementVNode("span",null,"Are you sure you want to delete the selected item?")],-1))]),_:1},8,["visible"])}}},M0={key:0,style:{"font-weight":"700","font-size":"1.25rem"}},V0={key:1,style:{"font-weight":"700","font-size":"1.25rem"}},pr={__name:"EntityFormDialog",props:a.mergeModels({item:Object},{showEntityForm:{},showEntityFormModifiers:{}}),emits:["update:showEntityForm"],setup(t){const e=a.useModel(t,"showEntityForm"),o=a.inject("entityObject"),r=t;let n=a.ref([]),i=a.ref({}),s=a.ref([]),l=a.ref(null),c=a.ref({});a.onMounted(()=>{n.value=o.getEntityColumns(o.state.data),r.item?i.value=JSON.parse(JSON.stringify(r.item)):i.value=o.getFormData(o.state.data),l.value=o.createValidationSchema()});const d=async()=>{const g=await o.validateData(l.value,i.value);if(!g.validate){c.value=g.errors;return}const m=o.getPrimaryKeyColumn(o.state.data),p=r.item[m.name],b={dataDefinitions:o.createDataToSave(o.state.data,i.value)},y=await o.updateRecord(o.state.data,p,b);if(y&&y.success){e.value=!1;const k={sortBy:o.state.data.sortBy,sortDirection:o.state.data.sortDirection,pageSize:o.state.data.pageSize,currentPage:o.state.data.currentPage,columnList:null,filter:o.state.data.filters,fullTextSearch:o.state.data.fullTextSearch},C=await o.searchRecord(o.state.data,k);if(C!=null&&C.response){let _=C==null?void 0:C.response;o.setEntity(_)}}else y.validationErrors&&(s.value=JSON.parse(JSON.stringify(y.errvalidationErrorsors)))},u=async()=>{const g=await o.validateData(l.value,i.value);if(!g.validate){c.value=g.errors;return}const m={dataDefinitions:o.createDataToSave(o.state.data,i.value)},p=await o.addRecord(o.state.data,m);p&&p.success?(e.value=!1,o.state.data=await o.getEntity(o.state.data.entityName)):p.validationErrors&&(s.value=JSON.parse(JSON.stringify(p.errvalidationErrorsors)))},f=async()=>{r.item?d():u()},h=g=>{c.value=o.clearErrors(g)};return(g,m)=>{const p=a.resolveComponent("Button"),b=a.resolveComponent("Dialog");return e.value?(a.openBlock(),a.createBlock(b,{key:0,showFooter:!1,visible:e.value,"onUpdate:visible":m[2]||(m[2]=y=>e.value=y),style:{width:"50rem"},breakpoints:{"1199px":"75vw","575px":"90vw"},modal:!0,class:"p-fluid"},{header:a.withCtx(()=>[t.item?(a.openBlock(),a.createElementBlock("span",M0,"Edit "+a.toDisplayString(a.unref(o).state.data.entityName)+" record details",1)):a.createCommentVNode("",!0),t.item?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",V0,"Add "+a.toDisplayString(a.unref(o).state.data.entityName)+" record details",1))]),footer:a.withCtx(()=>[a.createVNode(p,{type:"button",icon:"",label:"Cancel",severity:"secondary",onClick:m[0]||(m[0]=y=>e.value=!1)}),a.createVNode(p,{type:"button",icon:"",label:"Save",severity:"success",onClick:m[1]||(m[1]=y=>f())})]),default:a.withCtx(()=>{var y;return[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(n),(k,C)=>{var _;return a.openBlock(),a.createElementBlock("div",{key:C},[!k.autoGenerated&&!k.foreignKey?(a.openBlock(),a.createBlock(un,{key:0,modelValue:a.unref(i)[k.name],"onUpdate:modelValue":v=>a.unref(i)[k.name]=v,column:k,errors:(_=a.unref(c)[k.name])==null?void 0:_.messages,onInput:h},null,8,["modelValue","onUpdate:modelValue","column","errors"])):a.createCommentVNode("",!0),!k.autoGenerated&&k.foreignKey?(a.openBlock(),a.createBlock(Hs,{key:1,modelValue:a.unref(i)[k.name],"onUpdate:modelValue":v=>a.unref(i)[k.name]=v,entityName:k.foreignKey.referencedEntityName,columnName:k.name,relatedEntityColumn:k.foreignKey.referencedColumnName},null,8,["modelValue","onUpdate:modelValue","entityName","columnName","relatedEntityColumn"])):a.createCommentVNode("",!0)])}),128)),((y=a.unref(s))==null?void 0:y.length)>0?(a.openBlock(),a.createBlock(Ws,{key:0,errors:a.unref(s)},null,8,["errors"])):a.createCommentVNode("",!0)]}),_:1},8,["visible"])):a.createCommentVNode("",!0)}}},F0={class:"flex justify-between items-start"},I0={class:"flex-grow-1"},L0={class:"tile-grid"},z0={class:"font-bold text-lg text-700"},j0={class:"flex flex-col gap-2"},W0=Ne({__name:"EntityListSingleRecord",props:{item:Object},setup(t){const e=t,o=a.inject("entityObject"),r=a.ref([]),n=a.ref(!1),i=a.ref(!1);a.onMounted(()=>{r.value=o.getEntityColumns(o.state.data)});const s=()=>{n.value=!0},l=()=>{i.value=!0},c=u=>{u.remove==!0?d():n.value=!1},d=async()=>{const u=o.getPrimaryKeyColumn(o.state.data),f=e.item[u.name],h=await o.entityRecordDelete(o.state.data,f);if(h!=null&&h.success){n.value=!1;const g={sortBy:o.state.data.sortBy,sortDirection:o.state.data.sortDirection,pageSize:o.state.data.pageSize,currentPage:o.state.data.currentPage,columnList:null,filter:o.state.data.filters,fullTextSearch:o.state.data.fullTextSearch},m=await o.searchRecord(o.state.data,g);if(m!=null&&m.response){let p=m==null?void 0:m.response;o.setEntity(p)}console.log(h)}};return(u,f)=>{const h=a.resolveComponent("Button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",F0,[a.createElementVNode("div",I0,[a.createElementVNode("div",L0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(g,m)=>(a.openBlock(),a.createElementBlock("div",{key:m},[a.createElementVNode("span",z0,a.toDisplayString(g.name)+" : ",1),a.createVNode(zi,{column:g,value:t.item[g.name]},null,8,["column","value"])]))),128))])]),a.createElementVNode("div",j0,[a.createVNode(h,{onClick:f[0]||(f[0]=g=>l()),icon:"pi pi-pencil",severity:"success",size:"",rounded:"","aria-label":"Edit"}),a.createVNode(h,{onClick:f[1]||(f[1]=g=>s()),icon:"pi pi-trash",severity:"danger",rounded:"","aria-label":"Delete"})])]),i.value?(a.openBlock(),a.createBlock(pr,{key:0,showEntityForm:i.value,"onUpdate:showEntityForm":f[2]||(f[2]=g=>i.value=g),item:t.item},null,8,["showEntityForm","item"])):a.createCommentVNode("",!0),n.value?(a.openBlock(),a.createBlock(Bn,{key:1,showDeleteDialog:n.value,"onUpdate:showDeleteDialog":f[3]||(f[3]=g=>n.value=g),onOnDeleteItem:c},null,8,["showDeleteDialog"])):a.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-ea3b758f"]]),H0=Ne({__name:"EntityListRecordParent",props:{listItemDisplay:String},setup(t){const e=a.inject("entityObject"),o=a.ref([]);return a.watch(()=>e.state.data,r=>{r&&(o.value=r.result,console.log("Entity state updated in child:",e))},{immediate:!0}),(r,n)=>(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,(i,s)=>(a.openBlock(),a.createElementBlock("div",{key:s,class:"card rounded-md p-5 my-2 shadow-lg relative tile"},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listItemDisplay!=null&&t.listItemDisplay!=""?t.listItemDisplay:W0),a.mergeProps({ref_for:!0},{item:i}),null,16))]))),128))}},[["__scopeId","data-v-b13f837f"]]),U0={};function q0(t,e){return null}const Y0=Ne(U0,[["render",q0]]),X0={class:"my-2"},K0={class:"m-0"},G0={__name:"EntityListHeaderSlot",setup(t){const e=a.inject("entityObject");let o=a.ref("");return a.watch(()=>e.state.data,r=>{r&&(o.value=r.entityName)},{immediate:!0}),(r,n)=>{const i=a.resolveComponent("Toolbar");return a.openBlock(),a.createBlock(i,{class:"p-2 my-2"},{start:a.withCtx(()=>[a.createElementVNode("div",X0,[a.createElementVNode("h2",K0,"EntityName: "+a.toDisplayString(a.unref(o)),1)])]),end:a.withCtx(()=>n[0]||(n[0]=[])),_:1})}}},J0={class:"flex flex-col mb-5"},Q0={class:"col-12"},Z0={class:"flex flex-col mb-5"},eb={class:"col-12"},tb={key:0},ob={class:"flex flex-col mb-5"},rb={class:"col-12"},nb={class:"flex flex-col mb-5"},ib={class:"col-12"},ab={class:"flex flex-col mb-5"},sb={class:"col-12"},lb={class:"flex flex-row justify-between items-center"},cb={key:1},db={class:"flex flex-row justify-between items-center"},ub={key:1,class:"text-red-500"},fb={class:"flex flex-col"},hb={class:"flex flex-row justify-between items-center"},gb={__name:"FilterSortSidebar",props:a.mergeModels({headers:Array,operatorMap:Object,sortCallback:Function,filterCallback:Function,getColumnDatatype:Function,getDatatypeByField:Function},{sortBy:{},sortByModifiers:{},sortDirection:{},sortDirectionModifiers:{},showFilter:{},showFilterModifiers:{},filters:{},filtersModifiers:{}}),emits:["update:sortBy","update:sortDirection","update:showFilter","update:filters"],setup(t){const e=a.useModel(t,"sortBy"),o=a.useModel(t,"sortDirection"),r=a.useModel(t,"showFilter"),n=a.useModel(t,"filters"),i={gt:"is greater than",dateAfter:"is after",equals:"is equals",dateIs:"is equals",notEquals:"is not equals",dateIsNot:"is not equals",lt:"is less than",dateBefore:"is before",lte:"is less than or equal to",gte:"is greater than or equal to",between:"between",contains:"contains",startsWith:"starts with",notContains:"not contains",endsWith:"ends with"},s=[{label:"Starts with",value:"startsWith"},{label:"Contains",value:"contains"},{label:"Not contains",value:"notContains"},{label:"Ends with",value:"endsWith"},{label:"Equals",value:"equals"},{label:"Not equals",value:"notEquals"}],l=[{label:"Equals",value:"equals"},{label:"Not equals",value:"notEquals"},{label:"Less than",value:"lt"},{label:"Less than or equal to",value:"lte"},{label:"Greater than",value:"gt"},{label:"Greater than or equal to",value:"gte"}],c=[{label:"Equals",value:"equals"},{label:"Not equals",value:"notEquals"}],d=[{label:"Date is",value:"dateIs"},{label:"Date is not",value:"dateIsNot"},{label:"Date is before",value:"dateBefore"},{label:"Date is after",value:"dateAfter"}],u=[{label:"ASC",value:1},{label:"DESC",value:-1}];let f=[];const h=a.computed(()=>t.headers.filter(w=>w.sortable)),g=a.computed(()=>t.headers.filter(w=>w.filterable)),m=w=>t.headers.filter(x=>{var B;return x.filterable?((B=n.value[w])==null?void 0:B.columnName)===x.name?!0:!n.value.some((T,E)=>E!==w&&T.columnName===x.name):!1}).map(x=>({label:x.name,value:x.field})),p=w=>{let x="";switch(t.getDatatypeByField(w.columnName).toLowerCase()){case"string":case"uuid":x="startsWith";break;case"date":x="dateIs";break;case"numeric":case"int":case"integer":x="equals";break;case"bool":case"boolean":x="equals";break}w.operator=x,w.value=""},b=w=>{const x=t.getDatatypeByField(w.columnName);switch(x&&x.toLowerCase()){case"integer":case"int":case"numeric":f=l;break;case"date":f=d;break;case"bool":case"boolean":f=c;break;default:f=s}return f},y=w=>{if(w&&w.columnName){const x=t.getDatatypeByField(w.columnName);return t.getColumnDatatype(x)}else return""},k=()=>{for(let w=0;w<n.value.length;w++){const x=n.value[w];x.editing=!1}n.value.push({columnName:"",value:"",operator:"",editing:!0})},C=w=>{n.value.splice(w,1)},_=w=>{w.editing=!w.editing},v=()=>{let w=[],x=JSON.parse(JSON.stringify(n.value));for(let B=0;B<x.length;B++){const T=x[B];delete T.editing,T.columnName&&T.operator&&T.value&&(T.columnType=t.getDatatypeByField(T.columnName),T.operator=t.operatorMap[T.operator],w.push(T))}t.filterCallback(w)},S=()=>{t.sortCallback()};return(w,x)=>{const B=a.resolveComponent("Select"),T=a.resolveComponent("Divider"),E=a.resolveComponent("InputNumber"),O=a.resolveComponent("DatePicker"),M=a.resolveComponent("InputText"),W=a.resolveComponent("Button"),Y=a.resolveComponent("Drawer");return a.openBlock(),a.createBlock(Y,{visible:r.value,"onUpdate:visible":x[4]||(x[4]=I=>r.value=I),header:"Sorting and Filter",blockScroll:!0,position:"right",class:"layout-profile-sidebar !w-full md:!w-80 lg:!w-[30rem]",pt:{closeButton:"ml-auto"}},{default:a.withCtx(()=>[a.createElementVNode("div",J0,[x[5]||(x[5]=a.createElementVNode("div",{class:"col-12 font-bold"},"Sort Column",-1)),a.createElementVNode("div",Q0,[a.createVNode(B,{modelValue:e.value,"onUpdate:modelValue":x[0]||(x[0]=I=>e.value=I),options:h.value,optionLabel:"name",optionValue:"field",highlightOnSelect:!1,class:"w-full",onChange:x[1]||(x[1]=I=>S(w.event))},null,8,["modelValue","options"])])]),a.createElementVNode("div",Z0,[x[6]||(x[6]=a.createElementVNode("div",{class:"col-12 font-bold"},[a.createElementVNode("div",{class:"col-12 font-bold"},"Sort Direction")],-1)),a.createElementVNode("div",eb,[a.createVNode(B,{modelValue:o.value,"onUpdate:modelValue":x[2]||(x[2]=I=>o.value=I),options:u,optionLabel:"label",optionValue:"value",highlightOnSelect:!1,class:"w-full",onChange:x[3]||(x[3]=I=>S(w.event))},null,8,["modelValue"])])]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,(I,z)=>(a.openBlock(),a.createElementBlock("div",{key:z},[I.editing?(a.openBlock(),a.createElementBlock("div",tb,[a.createVNode(T),a.createElementVNode("div",ob,[x[7]||(x[7]=a.createElementVNode("div",{class:"col-12 font-bold"},"Filter Column",-1)),a.createElementVNode("div",rb,[a.createVNode(B,{modelValue:I.columnName,"onUpdate:modelValue":F=>I.columnName=F,options:m(z),optionLabel:"label",placeholder:"Select column",optionValue:"value",highlightOnSelect:!1,class:"w-full",onChange:F=>p(I)},null,8,["modelValue","onUpdate:modelValue","options","onChange"])])]),a.createElementVNode("div",nb,[x[8]||(x[8]=a.createElementVNode("div",{class:"col-12 font-bold"},"Filter Operator",-1)),a.createElementVNode("div",ib,[a.createVNode(B,{modelValue:I.operator,"onUpdate:modelValue":F=>I.operator=F,options:b(I),optionLabel:"label",placeholder:"Select operator",optionValue:"value",highlightOnSelect:!1,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","options"])])]),a.createElementVNode("div",ab,[x[9]||(x[9]=a.createElementVNode("div",{class:"col-12 font-bold"},"Filter value",-1)),a.createElementVNode("div",sb,[y(I)=="numeric"?(a.openBlock(),a.createBlock(E,{key:0,format:!1,class:"w-full",modelValue:I.value,"onUpdate:modelValue":F=>I.value=F,placeholder:"Search value"},null,8,["modelValue","onUpdate:modelValue"])):y(I)=="date"?(a.openBlock(),a.createBlock(O,{key:1,class:"w-full",modelValue:I.value,"onUpdate:modelValue":F=>I.value=F,dateFormat:"mm/dd/yy",placeholder:"mm/dd/yyyy"},null,8,["modelValue","onUpdate:modelValue"])):(a.openBlock(),a.createBlock(M,{key:2,modelValue:I.value,"onUpdate:modelValue":F=>I.value=F,class:"w-full",placeholder:"Search value"},null,8,["modelValue","onUpdate:modelValue"]))])]),a.createElementVNode("div",lb,[a.createVNode(W,{label:"Hide",icon:"",severity:"warn",onClick:F=>_(I)},null,8,["onClick"]),a.createVNode(W,{label:"Delete",icon:"",severity:"danger",onClick:F=>C(z)},null,8,["onClick"])])])):a.createCommentVNode("",!0),I.editing?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",cb,[a.createVNode(T),a.createElementVNode("div",db,[a.createElementVNode("span",null,[I.columnName||I.operator||I.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("span",{class:a.normalizeClass({"text-red-500":!I.columnName})},a.toDisplayString(I.columnName?" "+I.columnName:" column"),3),a.createElementVNode("span",{class:a.normalizeClass({"text-red-500":!i[I.operator]})},a.toDisplayString(I.operator?" "+i[I.operator]:" operator"),3),a.createElementVNode("span",{class:a.normalizeClass({"text-red-500":!I.value})},a.toDisplayString(I.value?" "+I.value:" value"),3)],64)):(a.openBlock(),a.createElementBlock("span",ub,"Filter is empty"))]),a.createVNode(W,{label:"Edit",icon:"",severity:"info",onClick:F=>_(I)},null,8,["onClick"])])]))]))),128)),a.createElementVNode("div",fb,[a.createVNode(T),a.createElementVNode("div",hb,[a.createVNode(W,{label:"Add",disabled:g.value.length===n.value.length,icon:"",severity:"success",onClick:k},null,8,["disabled"]),a.createVNode(W,{label:"Apply",severity:"info",onClick:v})])])]),_:1},8,["visible"])}}},mb={class:"my-2"},Zt={__name:"EntityListFilters",setup(t){const e=a.inject("entityObject"),o=a.ref(!1),r=a.ref([]),n=a.ref([]),i=a.ref(""),s=a.ref(1);let l=a.ref("");const c=a.ref([]),d=a.ref([]),u={gt:"GREATER_THAN",dateAfter:"GREATER_THAN",equals:"EQUAL",dateIs:"EQUAL",notEquals:"NOT_EQUAL",dateIsNot:"NOT_EQUAL",lt:"LESS_THAN",dateBefore:"LESS_THAN",lte:"LESS_THAN_EQUAL",gte:"GREATER_THAN_EQUAL",between:"BETWEEN",contains:"CONTAINS",startsWith:"STARTS_WITH",notContains:"NOT_CONTAINS",endsWith:"ENDS_WITH"};a.watch(()=>e.state.data,_=>{if(_&&(c.value=e.getEntityColumns(_),d.value=y(c.value),i.value=="")){const v=e.getPrimaryKeyColumn(_);i.value=v.name}},{immediate:!0});const f=()=>{o.value=!o.value},h=_=>{n.value=_,g()},g=async()=>{const _={sortBy:[i.value],sortDirection:s.value===1?"ASC":"DESC",pageSize:e.state.data.pageSize,currentPage:e.state.data.currentPage,columnList:null,filter:n.value,fullTextSearch:l.value},v=await e.searchRecord(e.state.data,_);if(v!=null&&v.success){let S=v==null?void 0:v.response;e.setEntity(S)}},m=()=>{g()},p=()=>{r.value=[],n.value=[],g()},b=()=>{g()},y=_=>_.map(v=>({field:v.name,name:v.displayName?v.displayName:v.name,filterable:v.filterable,datatype:v.type,sortable:v.indexColumn,displayFormatKey:v.displayFormatKey,displayFormat:v.displayFormat})),k=_=>{switch(_.toLowerCase()){case"integer":case"int":case"numeric":return"numeric";case"date":return"date";case"bool":case"boolean":return"boolean";default:return"text"}},C=_=>{const v=c.value.find(S=>S.name===_);return v?v.type:null};return(_,v)=>{const S=a.resolveComponent("Button"),w=a.resolveComponent("InputIcon"),x=a.resolveComponent("InputText"),B=a.resolveComponent("IconField"),T=a.resolveComponent("Toolbar");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(T,{class:"p-2 my-2"},{start:a.withCtx(()=>[a.createElementVNode("div",mb,[a.createVNode(S,{type:"button",size:"medium",icon:"pi pi-filter",label:"Filter",severity:"info",onClick:v[0]||(v[0]=E=>f())})]),a.createVNode(S,{class:"ml-3",size:"medium",type:"button",icon:"pi pi-filter-slash",label:"Clear",severity:"warn",onClick:v[1]||(v[1]=E=>p())})]),end:a.withCtx(()=>[a.createVNode(B,{iconPosition:"right",class:"block mt-2 md:mt-0"},{default:a.withCtx(()=>[a.createVNode(w,{onClick:v[2]||(v[2]=E=>b()),class:"pi pi-search"}),a.createVNode(x,{class:"w-full sm:w-auto",onKeyup:v[3]||(v[3]=a.withKeys(E=>b(),["enter"])),modelValue:a.unref(l),"onUpdate:modelValue":v[4]||(v[4]=E=>a.isRef(l)?l.value=E:l=E),placeholder:"Search..."},null,8,["modelValue"])]),_:1})]),_:1}),a.createVNode(gb,{sortBy:i.value,"onUpdate:sortBy":v[5]||(v[5]=E=>i.value=E),sortDirection:s.value,"onUpdate:sortDirection":v[6]||(v[6]=E=>s.value=E),showFilter:o.value,"onUpdate:showFilter":v[7]||(v[7]=E=>o.value=E),filters:r.value,"onUpdate:filters":v[8]||(v[8]=E=>r.value=E),headers:d.value,operatorMap:u,sortCallback:m,filterCallback:h,getColumnDatatype:k,getDatatypeByField:C},null,8,["sortBy","sortDirection","showFilter","filters","headers"])],64)}}},br={__name:"EntityListPagination",setup(t){const e=a.ref(25),o=a.ref(0),r=a.ref(0),n=a.ref(0);let i=a.inject("entityObject");const s=async l=>{e.value=l.rows,o.value=l.page,n.value=l.first;const c={sortBy:i.state.data.sortBy,sortDirection:i.state.data.sortDirection,columnList:null,filter:i.state.data.filters,fullTextSearch:i.state.data.fullTextSearch,pageSize:e.value,currentPage:o.value},d=await i.searchRecord(i.state.data,c);if(d!=null&&d.success){let u=d==null?void 0:d.response;i.setEntity(u),r.value=d.response.totalRecords,n.value=o.value*e.value}};return a.watch(()=>{var l,c;return(c=(l=i==null?void 0:i.state)==null?void 0:l.data)==null?void 0:c.totalRecords},l=>{r&&(r.value=l)},{immediate:!0}),(l,c)=>{const d=a.resolveComponent("Paginator");return a.openBlock(),a.createBlock(d,{class:"my-4",rows:e.value,totalRecords:r.value,rowsPerPageOptions:[10,25,50,100],onPage:s,template:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink CurrentPageReport RowsPerPageDropdown",currentPageReportTemplate:"Showing {first} to {last} of {totalRecords} items"},null,8,["rows","totalRecords"])}}},pb={class:"flex flex-row justify-end p-2 my-2"},eo={__name:"EntityListAddButton",setup(t){const e=a.ref(!1),o=()=>{e.value=!0};return(r,n)=>{const i=a.resolveComponent("Button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",pb,[a.createVNode(i,{label:"Add",size:"medium",icon:"pi pi-plus",onClick:n[0]||(n[0]=s=>o())})]),e.value?(a.openBlock(),a.createBlock(pr,{key:0,showEntityForm:e.value,"onUpdate:showEntityForm":n[1]||(n[1]=s=>e.value=s)},null,8,["showEntityForm"])):a.createCommentVNode("",!0)],64)}}},Sl={__name:"EntityList",props:{entityName:String,listDisplay:String,listItemDisplay:String,listHeader:String,listFooter:String,listFilter:String,listPagination:String,showAddButton:Boolean,listFilerSlot:Boolean,className:{type:String,default:"default-class"}},setup(t,{expose:e}){const o=Sn(),r=lt();a.provide("entityObject",o);const n=t;return e({props:n,reload:()=>{console.log("reload data")}}),a.watch(()=>r.globalConfigs.appId,async s=>{if(s){const l=await o.getEntity(n.entityName);l.success?o.setEntity(l.response):o.setEntity({result:[]})}},{immediate:!0}),(s,l)=>{var c,d,u;return s.$slots["list-item-display"]?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[t.showAddButton?(a.openBlock(),a.createBlock(eo,{key:0})):a.createCommentVNode("",!0),t.listFilerSlot?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listFilter||Zt),{key:1})):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(((u=(d=(c=a.unref(o))==null?void 0:c.state)==null?void 0:d.data)==null?void 0:u.result)||[],f=>a.renderSlot(s.$slots,"list-item-display",{item:f})),256))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listHeader||G0))),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listFilter||Zt))),t.showAddButton?(a.openBlock(),a.createBlock(eo,{key:0})):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listDisplay||H0),a.normalizeProps(a.guardReactiveProps({listItemDisplay:t.listItemDisplay})),null,16)),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listPagination||br))),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listFooter||Y0)))],64))}}},bb={key:0},yb=["href"],kb={key:1},xb={class:"action-buttons"},vb=Ne({__name:"EntityListingSingleRecord",props:{item:Object,entityName:String,showAddButton:Boolean,showFilters:Boolean,className:String,listDisplay:String,listHeader:String,listClass:String,listItemClass:String,listFooter:String,listFilter:String,listPagination:String,displayField:String,baseUrl:String,hrefKey:String,listItemDisplay:String,listHeaderSlot:Boolean,showPagination:Boolean,className:{type:String,default:"default-class"},editable:Boolean,deletable:Boolean,linkedEntity:Array},setup(t){const e=t;console.log("props entitylistsingle record",e.item);const o=a.inject("entityObject"),r=a.ref([]),n=a.ref(null),i=a.ref(null),s=a.ref(!1),l=a.ref(!1);a.onMounted(()=>{var h;e.linkedEntity&&e.linkedEntity.length>0?r.value=Object.keys(e.linkedEntity[0]).map(g=>({name:g})):r.value=o==null?void 0:o.getEntityColumns(o.state.data),n.value=((h=r==null?void 0:r.value)==null?void 0:h.find(g=>g.name===e.displayField))||null,n.value&&(i.value=e==null?void 0:e.item[n.value.name])});const c=()=>{s.value=!0},d=()=>{l.value=!0},u=async h=>{h.remove?f():s.value=!1},f=async()=>{const h=o.getPrimaryKeyColumn(o.state.data),g=e.item[h.name],m=await o.entityRecordDelete(o.state.data,g);if(m!=null&&m.success){s.value=!1;const p=await o.searchRecord(o.state.data,{sortBy:o.state.data.sortBy,sortDirection:o.state.data.sortDirection,pageSize:o.state.data.pageSize,currentPage:o.state.data.currentPage,columnList:null,filter:o.state.data.filters,fullTextSearch:o.state.data.fullTextSearch});p!=null&&p.response&&o.setEntity(p.response)}};return(h,g)=>{const m=a.resolveComponent("Button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("ul",{class:a.normalizeClass(e.className)},[n.value?(a.openBlock(),a.createElementBlock("li",bb,[a.createElementVNode("a",{href:`${t.baseUrl}/${t.item[t.hrefKey]}`,target:"_blank",class:"hover:underline"},a.toDisplayString(i.value),9,yb)])):(a.openBlock(),a.createElementBlock("li",kb,[a.createElementVNode("span",null,"No matching field found for '"+a.toDisplayString(i.value)+"'.",1)])),a.createElementVNode("li",xb,[t.editable?(a.openBlock(),a.createBlock(m,{key:0,onClick:g[0]||(g[0]=p=>d()),icon:"pi pi-pencil",severity:"success",rounded:"","aria-label":"Edit"})):a.createCommentVNode("",!0),t.deletable?(a.openBlock(),a.createBlock(m,{key:1,onClick:g[1]||(g[1]=p=>c()),icon:"pi pi-trash",severity:"danger",rounded:"","aria-label":"Delete"})):a.createCommentVNode("",!0)])],2),l.value?(a.openBlock(),a.createBlock(pr,{key:0,showEntityForm:l.value,"onUpdate:showEntityForm":g[2]||(g[2]=p=>l.value=p),item:t.item},null,8,["showEntityForm","item"])):a.createCommentVNode("",!0),s.value?(a.openBlock(),a.createBlock(Bn,{key:1,showDeleteDialog:s.value,"onUpdate:showDeleteDialog":g[3]||(g[3]=p=>s.value=p),onOnDeleteItem:u},null,8,["showDeleteDialog"])):a.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-ff32a72b"]]),wb={key:0,class:"error-message"},Cb={class:"text-red-500 font-bold"},_b={key:0},Sb={key:1},Bb={key:2},Eb={key:3},Rb={key:1},Bl=Ne({__name:"EntityListing",props:{entityName:String,listClass:String,listItemClass:String,listHeader:String,listFooter:String,listFilter:String,listPagination:String,listItemDisplay:String,showAddButton:Boolean,showFilters:Boolean,listHeaderSlot:Boolean,showPagination:Boolean,className:{type:String,default:"default-class"},displayField:String,baseUrl:String,hrefKey:String,editable:Boolean,deletable:Boolean,linkedEntity:Array},setup(t,{expose:e,emit:o}){const r=Sn(),n=lt();a.provide("entityObject",r);const i=o,s=t,l=a.ref([]);return s.linkedEntity?a.watch(()=>s.linkedEntity,u=>{u&&(l.value=u,i("linkedEntityChanged",u))},{immediate:!0}):a.watch(()=>r.state.data,u=>{u&&(l.value=u.result,i("linkedEntityChanged",u.result))},{immediate:!0}),e({props:s,reload:()=>{console.log("reload data")},filter:u=>{console.log("filter data in unordered",u)}}),a.watch(()=>n.globalConfigs.appId,async u=>{if(u)if(s.linkedEntity&&s.linkedEntity.length>0)r.setEntity(s.linkedEntity);else{const f=await r.getEntity(s.entityName);r.setEntity(f.success?f.response:{result:[]})}},{immediate:!0}),(u,f)=>{var h,g,m;return a.openBlock(),a.createElementBlock("div",a.mergeProps(u.$attrs,{class:"flex flex-col"}),[a.renderSlot(u.$slots,"header",{},void 0,!0),u.$slots["list-item-display"]?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[t.showAddButton?(a.openBlock(),a.createBlock(eo,{key:0})):a.createCommentVNode("",!0),t.showFilters?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listFilter||Zt),{key:1})):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(t.listClass)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.linkedEntity&&t.linkedEntity.length>0?t.linkedEntity:((m=(g=(h=a.unref(r))==null?void 0:h.state)==null?void 0:g.data)==null?void 0:m.result)||[],p=>a.renderSlot(u.$slots,"list-item-display",{item:p,class:a.normalizeClass(t.listItemClass)},void 0,!0)),256))],2),t.showPagination?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listPagination||br),{key:2})):a.createCommentVNode("",!0)],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[!t.displayField||!t.baseUrl||!t.hrefKey?(a.openBlock(),a.createElementBlock("div",wb,[a.createElementVNode("p",Cb,[f[0]||(f[0]=a.createTextVNode(" Error: Missing required props - ")),t.entityName?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",_b,"Entity Name")),t.displayField?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",Sb,"Display Field")),t.baseUrl?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",Bb,"Base Url")),t.hrefKey?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",Eb,"Href Key"))])])):(a.openBlock(),a.createElementBlock("div",Rb,[t.showFilters?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listFilter||Zt),{key:0})):a.createCommentVNode("",!0),t.showAddButton?(a.openBlock(),a.createBlock(eo,{key:1})):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.value,(p,b)=>(a.openBlock(),a.createElementBlock("div",{key:b},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listItemDisplay!=null&&t.listItemDisplay!=""?t.listItemDisplay:vb),a.mergeProps({ref_for:!0},{item:p,...s}),null,16))]))),128)),t.showPagination?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listPagination||br),{key:2})):a.createCommentVNode("",!0)])),a.renderSlot(u.$slots,"footer",{},void 0,!0)],64)),a.renderSlot(u.$slots,"footer",{},void 0,!0)],16)}}},[["__scopeId","data-v-36faf954"]]),Db={class:"p-6 bg-white shadow-md rounded-lg border border-gray-300 flex flex-col"},Ob={class:"flex justify-between items-start gap-4"},Nb={class:"flex-grow"},Tb={class:"flex flex-col gap-2"},Pb={class:"font-bold text-gray-700"},$b={class:"text-gray-600"},Ab={class:"flex flex-col gap-2"},Mb=Ne({__name:"EntityListingTileSingleRecord",props:{item:Object,entityName:String,showAddButton:Boolean,showFilters:Boolean,className:String,listDisplay:String,listHeader:String,listFooter:String,listFilter:String,listPagination:String,listItemDisplay:String,listHeaderSlot:Boolean,showPagination:Boolean,className:{type:String,default:"default-class"},editable:Boolean,deletable:Boolean},setup(t){const e=t,o=a.inject("entityObject"),r=a.ref([]),n=a.ref(null),i=a.ref(null),s=a.ref(!1),l=a.ref(!1);a.onMounted(()=>{r.value=o.getEntityColumns(o.state.data),n.value=r.value.find(h=>h.name===e.displayField)||null,n.value&&(i.value=e.item[n.value.name])});const c=()=>{s.value=!0},d=()=>{l.value=!0},u=async h=>{h.remove?f():s.value=!1},f=async()=>{const h=o.getPrimaryKeyColumn(o.state.data),g=e.item[h.name],m=await o.entityRecordDelete(o.state.data,g);if(m!=null&&m.success){s.value=!1;const p=await o.searchRecord(o.state.data,{sortBy:o.state.data.sortBy,sortDirection:o.state.data.sortDirection,pageSize:o.state.data.pageSize,currentPage:o.state.data.currentPage,columnList:null,filter:o.state.data.filters,fullTextSearch:o.state.data.fullTextSearch});p!=null&&p.response&&o.setEntity(p.response)}};return(h,g)=>{const m=a.resolveComponent("Button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",Db,[a.createElementVNode("div",Ob,[a.createElementVNode("div",Nb,[a.createElementVNode("div",Tb,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(p,b)=>(a.openBlock(),a.createElementBlock("div",{key:b,class:"flex flex-col"},[a.createElementVNode("span",Pb,a.toDisplayString(p.displayName||p.name)+":",1),a.createElementVNode("span",$b,a.toDisplayString(t.item[p.name]),1)]))),128))])]),a.createElementVNode("div",Ab,[t.editable?(a.openBlock(),a.createBlock(m,{key:0,onClick:g[0]||(g[0]=p=>d()),icon:"pi pi-pencil",severity:"success",rounded:"","aria-label":"Edit"})):a.createCommentVNode("",!0),t.deletable?(a.openBlock(),a.createBlock(m,{key:1,onClick:g[1]||(g[1]=p=>c()),icon:"pi pi-trash",severity:"danger",rounded:"","aria-label":"Delete"})):a.createCommentVNode("",!0)])])]),l.value?(a.openBlock(),a.createBlock(pr,{key:0,showEntityForm:l.value,"onUpdate:showEntityForm":g[2]||(g[2]=p=>l.value=p),item:t.item},null,8,["showEntityForm","item"])):a.createCommentVNode("",!0),s.value?(a.openBlock(),a.createBlock(Bn,{key:1,showDeleteDialog:s.value,"onUpdate:showDeleteDialog":g[3]||(g[3]=p=>s.value=p),onOnDeleteItem:u},null,8,["showDeleteDialog"])):a.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-6ec4735d"]]),Vb={class:"flex flex-wrap gap-4 p-2"},Fb={key:0,class:"error-message"},Ib={class:"text-red-500 font-bold"},Lb={key:0},zb={key:1},jb={class:"flex flex-wrap gap-4 p-4"},El=Ne({__name:"EntityListingTile",props:{entityName:String,listDisplay:String,listItemDisplay:String,listHeader:String,listFooter:String,listFilter:String,listPagination:String,showAddButton:Boolean,showFilters:Boolean,listHeaderSlot:Boolean,showPagination:Boolean,className:{type:String,default:"default-class"},editable:Boolean,deletable:Boolean,dynamicPropName:{type:String,default:"item"}},setup(t,{expose:e}){const o=Sn(),r=lt();a.provide("entityObject",o);const n=t,i=a.ref([]);return a.watch(()=>o.state.data,c=>{c&&(i.value=c.result)},{immediate:!0}),e({props:n,reload:()=>{console.log("reload data")},filter:()=>{console.log("filter data in unordered")}}),a.watch(()=>r.globalConfigs.appId,async c=>{if(c){const d=await o.getEntity(n.entityName);o.setEntity(d.success?d.response:{result:[]})}},{immediate:!0}),(c,d)=>{var u,f,h;return a.openBlock(),a.createElementBlock("div",a.normalizeProps(a.guardReactiveProps(c.$attrs)),[c.$slots["list-item-display-tile"]?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.renderSlot(c.$slots,"header",{},void 0,!0),t.showAddButton?(a.openBlock(),a.createBlock(eo,{key:0})):a.createCommentVNode("",!0),t.showFilters?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listFilter||Zt),{key:1})):a.createCommentVNode("",!0),a.createElementVNode("div",Vb,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(((h=(f=(u=a.unref(o))==null?void 0:u.state)==null?void 0:f.data)==null?void 0:h.result)||[],(g,m)=>(a.openBlock(),a.createElementBlock("div",{key:m,class:"flex flex-col p-6 border border-gray-300 shadow-md rounded-lg bg-white w-full sm:w-1/2 md:w-1/3 lg:w-1/4 xl:w-1/5 2xl:w-1/8"},[a.renderSlot(c.$slots,"list-item-display-tile",a.normalizeProps({[t.dynamicPropName||""]:g}),void 0,!0)]))),128))]),a.renderSlot(c.$slots,"footer",{},void 0,!0)],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.renderSlot(c.$slots,"header",{},void 0,!0),t.entityName?(a.openBlock(),a.createElementBlock("div",zb,[t.showFilters?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listFilter||Zt),{key:0})):a.createCommentVNode("",!0),t.showAddButton?(a.openBlock(),a.createBlock(eo,{key:1})):a.createCommentVNode("",!0),a.createElementVNode("div",jb,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,(g,m)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listItemDisplay!=null&&t.listItemDisplay!=""?t.listItemDisplay:Mb),a.mergeProps({key:m,ref_for:!0},{item:g,...n}),null,16))),128))]),t.showPagination?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listPagination||br),{key:2})):a.createCommentVNode("",!0)])):(a.openBlock(),a.createElementBlock("div",Fb,[a.createElementVNode("p",Ib,[d[0]||(d[0]=a.createTextVNode(" Error: Missing required props - ")),t.entityName?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",Lb,"Entity Name"))])])),a.renderSlot(c.$slots,"footer",{},void 0,!0)],64))],16)}}},[["__scopeId","data-v-705f9c5c"]]),Wb={class:"p-6 bg-white shadow-md rounded-lg border border-gray-300 flex flex-col responsive-box"},Hb={class:"flex justify-between items-start gap-4"},Ub={class:"flex-grow"},qb={class:"flex flex-col gap-2"},Yb={class:"font-bold text-gray-700"},Xb={class:"text-gray-600"},Kb={class:"flex flex-col gap-2"},Gb=Ne({__name:"EntityListingCarouselSingleRecord",props:{item:Object,entityName:String,showAddButton:Boolean,showFilters:Boolean,className:String,listDisplay:String,listHeader:String,listFooter:String,listFilter:String,listPagination:String,listItemDisplay:String,listHeaderSlot:Boolean,showPagination:Boolean,className:{type:String,default:"default-class"},editable:Boolean,deletable:Boolean},setup(t){const e=t,o=a.inject("entityObject"),r=a.ref([]),n=a.ref(null),i=a.ref(null),s=a.ref(!1),l=a.ref(!1);a.onMounted(()=>{r.value=o.getEntityColumns(o.state.data),n.value=r.value.find(h=>h.name===e.displayField)||null,n.value&&(i.value=e.item[n.value.name])});const c=()=>{s.value=!0},d=()=>{l.value=!0},u=async h=>{h.remove?f():s.value=!1},f=async()=>{const h=o.getPrimaryKeyColumn(o.state.data),g=e.item[h.name],m=await o.entityRecordDelete(o.state.data,g);if(m!=null&&m.success){s.value=!1;const p=await o.searchRecord(o.state.data,{sortBy:o.state.data.sortBy,sortDirection:o.state.data.sortDirection,pageSize:o.state.data.pageSize,currentPage:o.state.data.currentPage,columnList:null,filter:o.state.data.filters,fullTextSearch:o.state.data.fullTextSearch});p!=null&&p.response&&o.setEntity(p.response)}};return(h,g)=>{const m=a.resolveComponent("Button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",Wb,[a.createElementVNode("div",Hb,[a.createElementVNode("div",Ub,[a.createElementVNode("div",qb,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(p,b)=>(a.openBlock(),a.createElementBlock("div",{key:b,class:"flex flex-col"},[a.createElementVNode("span",Yb,a.toDisplayString(p.displayName||p.name)+":",1),a.createElementVNode("span",Xb,a.toDisplayString(t.item[p.name]),1)]))),128))])]),a.createElementVNode("div",Kb,[t.editable?(a.openBlock(),a.createBlock(m,{key:0,onClick:g[0]||(g[0]=p=>d()),icon:"pi pi-pencil",severity:"success",rounded:"","aria-label":"Edit"})):a.createCommentVNode("",!0),t.deletable?(a.openBlock(),a.createBlock(m,{key:1,onClick:g[1]||(g[1]=p=>c()),icon:"pi pi-trash",severity:"danger",rounded:"","aria-label":"Delete"})):a.createCommentVNode("",!0)])])]),l.value?(a.openBlock(),a.createBlock(pr,{key:0,showEntityForm:l.value,"onUpdate:showEntityForm":g[2]||(g[2]=p=>l.value=p),item:t.item},null,8,["showEntityForm","item"])):a.createCommentVNode("",!0),s.value?(a.openBlock(),a.createBlock(Bn,{key:1,showDeleteDialog:s.value,"onUpdate:showDeleteDialog":g[3]||(g[3]=p=>s.value=p),onOnDeleteItem:u},null,8,["showDeleteDialog"])):a.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-7e37c710"]]);/**
|
|
155
|
+
`)},nm={},im={},Ft={name:"base",css:rm,theme:om,classes:nm,inlineStyles:im,load:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(i){return i},n=r(mt(e,{dt:ar}));return Be(n)?Xg(ir(n),Ui({name:this.name},o)):{}},loadCSS:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.css,e)},loadTheme:function(){var e=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return this.load(this.theme,o,function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return we.transformCSS(o.name||e.name,"".concat(n).concat(r))})},getCommonTheme:function(e){return we.getCommon(this.name,e)},getComponentTheme:function(e){return we.getComponent(this.name,e)},getDirectiveTheme:function(e){return we.getDirective(this.name,e)},getPresetTheme:function(e,o,r){return we.getCustomPreset(this.name,e,o,r)},getLayerOrderThemeCSS:function(){return we.getLayerOrderCSS(this.name)},getStyleSheet:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.css){var r=mt(this.css,{dt:ar})||"",n=ir("".concat(r).concat(e)),i=Object.entries(o).reduce(function(s,l){var c=sl(l,2),d=c[0],u=c[1];return s.push("".concat(d,'="').concat(u,'"'))&&s},[]).join(" ");return Be(n)?'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(i,">").concat(n,"</style>"):""}return""},getCommonThemeStyleSheet:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return we.getCommonStyleSheet(this.name,e,o)},getThemeStyleSheet:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[we.getStyleSheet(this.name,e,o)];if(this.theme){var n=this.name==="base"?"global-style":"".concat(this.name,"-style"),i=mt(this.theme,{dt:ar}),s=ir(we.transformCSS(n,i)),l=Object.entries(o).reduce(function(c,d){var u=sl(d,2),f=u[0],h=u[1];return c.push("".concat(f,'="').concat(h,'"'))&&c},[]).join(" ");Be(s)&&r.push('<style type="text/css" data-primevue-style-id="'.concat(n,'" ').concat(l,">").concat(s,"</style>"))}return r.join("")},extend:function(e){return Ui(Ui({},this),{},{css:void 0,theme:void 0},e)}},dl=Ft.extend({name:"common"});function dr(t){"@babel/helpers - typeof";return dr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dr(t)}function am(t){return gl(t)||sm(t)||fl(t)||ul()}function sm(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ur(t,e){return gl(t)||lm(t,e)||fl(t,e)||ul()}function ul(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
156
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fl(t,e){if(t){if(typeof t=="string")return hl(t,e);var o={}.toString.call(t).slice(8,-1);return o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set"?Array.from(t):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?hl(t,e):void 0}}function hl(t,e){(e==null||e>t.length)&&(e=t.length);for(var o=0,r=Array(e);o<e;o++)r[o]=t[o];return r}function lm(t,e){var o=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(o!=null){var r,n,i,s,l=[],c=!0,d=!1;try{if(i=(o=o.call(t)).next,e===0){if(Object(o)!==o)return;c=!1}else for(;!(c=(r=i.call(o)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(u){d=!0,n=u}finally{try{if(!c&&o.return!=null&&(s=o.return(),Object(s)!==s))return}finally{if(d)throw n}}return l}}function gl(t){if(Array.isArray(t))return t}function ml(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,r)}return o}function ce(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?ml(Object(o),!0).forEach(function(r){fr(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ml(Object(o)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))})}return t}function fr(t,e,o){return(e=cm(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function cm(t){var e=dm(t,"string");return dr(e)=="symbol"?e:e+""}function dm(t,e){if(dr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var r=o.call(t,e||"default");if(dr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var um={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0},dt:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e){var o=this;e?(this._loadScopedThemeStyles(e),this._themeChangeListener(function(){return o._loadScopedThemeStyles(e)})):this._unloadScopedThemeStyles()}}},scopedStyleEl:void 0,rootEl:void 0,$attrSelector:void 0,beforeCreate:function(){var e,o,r,n,i,s,l,c,d,u,f,h=(e=this.pt)===null||e===void 0?void 0:e._usept,g=h?(o=this.pt)===null||o===void 0||(o=o.originalValue)===null||o===void 0?void 0:o[this.$.type.name]:void 0,m=h?(r=this.pt)===null||r===void 0||(r=r.value)===null||r===void 0?void 0:r[this.$.type.name]:this.pt;(n=m||g)===null||n===void 0||(n=n.hooks)===null||n===void 0||(i=n.onBeforeCreate)===null||i===void 0||i.call(n);var p=(s=this.$primevueConfig)===null||s===void 0||(s=s.pt)===null||s===void 0?void 0:s._usept,b=p?(l=this.$primevue)===null||l===void 0||(l=l.config)===null||l===void 0||(l=l.pt)===null||l===void 0?void 0:l.originalValue:void 0,y=p?(c=this.$primevue)===null||c===void 0||(c=c.config)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c.value:(d=this.$primevue)===null||d===void 0||(d=d.config)===null||d===void 0?void 0:d.pt;(u=y||b)===null||u===void 0||(u=u[this.$.type.name])===null||u===void 0||(u=u.hooks)===null||u===void 0||(f=u.onBeforeCreate)===null||f===void 0||f.call(u),this.$attrSelector=jg("pc")},created:function(){this._hook("onCreated")},beforeMount:function(){this.rootEl=Fg(this.$el,'[data-pc-name="'.concat(Jt(this.$.type.name),'"]')),this.rootEl&&(this.$attrSelector&&!this.rootEl.hasAttribute(this.$attrSelector)&&this.rootEl.setAttribute(this.$attrSelector,""),this.rootEl.$pc=ce({name:this.$.type.name,attrSelector:this.$attrSelector},this.$params)),this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._unloadScopedThemeStyles(),this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var o=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),r=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));o==null||o(),r==null||r()}},_mergeProps:function(e){for(var o=arguments.length,r=new Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return qs(e)?e.apply(void 0,r):a.mergeProps.apply(void 0,r)},_loadStyles:function(){var e=this,o=function(){sr.isStyleNameLoaded("base")||(Ft.loadCSS(e.$styleOptions),e._loadGlobalStyles(),sr.setLoadedStyleName("base")),e._loadThemeStyles()};o(),this._themeChangeListener(o)},_loadCoreStyles:function(){var e,o;!sr.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(o=this.$style)!==null&&o!==void 0&&o.name&&(dl.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),sr.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);Be(e)&&Ft.load(e,ce({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,o;if(!(this.isUnstyled||this.$theme==="none")){if(!we.isStyleNameLoaded("common")){var r,n,i=((r=this.$style)===null||r===void 0||(n=r.getCommonTheme)===null||n===void 0?void 0:n.call(r))||{},s=i.primitive,l=i.semantic,c=i.global,d=i.style;Ft.load(s==null?void 0:s.css,ce({name:"primitive-variables"},this.$styleOptions)),Ft.load(l==null?void 0:l.css,ce({name:"semantic-variables"},this.$styleOptions)),Ft.load(c==null?void 0:c.css,ce({name:"global-variables"},this.$styleOptions)),Ft.loadTheme(ce({name:"global-style"},this.$styleOptions),d),we.setLoadedStyleName("common")}if(!we.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(o=this.$style)!==null&&o!==void 0&&o.name){var u,f,h,g,m=((u=this.$style)===null||u===void 0||(f=u.getComponentTheme)===null||f===void 0?void 0:f.call(u))||{},p=m.css,b=m.style;(h=this.$style)===null||h===void 0||h.load(p,ce({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(g=this.$style)===null||g===void 0||g.loadTheme(ce({name:"".concat(this.$style.name,"-style")},this.$styleOptions),b),we.setLoadedStyleName(this.$style.name)}if(!we.isStyleNameLoaded("layer-order")){var y,k,C=(y=this.$style)===null||y===void 0||(k=y.getLayerOrderThemeCSS)===null||k===void 0?void 0:k.call(y);Ft.load(C,ce({name:"layer-order",first:!0},this.$styleOptions)),we.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var o,r,n,i=((o=this.$style)===null||o===void 0||(r=o.getPresetTheme)===null||r===void 0?void 0:r.call(o,e,"[".concat(this.$attrSelector,"]")))||{},s=i.css,l=(n=this.$style)===null||n===void 0?void 0:n.load(s,ce({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=l.el},_unloadScopedThemeStyles:function(){var e;(e=this.scopedStyleEl)===null||e===void 0||(e=e.value)===null||e===void 0||e.remove()},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};sr.clearLoadedStyleNames(),Qt.on("theme:change",e)},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){var o;return this[e]||((o=this._getHostInstance(this))===null||o===void 0?void 0:o[e])},_getOptionValue:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ys(e,o,r)},_getPTValue:function(){var e,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,s=/./g.test(r)&&!!n[r.split(".")[0]],l=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},c=l.mergeSections,d=c===void 0?!0:c,u=l.mergeProps,f=u===void 0?!1:u,h=i?s?this._useGlobalPT(this._getPTClassValue,r,n):this._useDefaultPT(this._getPTClassValue,r,n):void 0,g=s?void 0:this._getPTSelf(o,this._getPTClassValue,r,ce(ce({},n),{},{global:h||{}})),m=this._getPTDatasets(r);return d||!d&&g?f?this._mergeProps(f,h,g,m):ce(ce(ce({},h),g),m):ce(ce({},g),m)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length,r=new Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return a.mergeProps(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(r)),this._usePT.apply(this,[this.$_attrsPT].concat(r)))},_getPTDatasets:function(){var e,o,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n="data-pc-",i=r==="root"&&Be((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&ce(ce({},r==="root"&&ce(ce(fr({},"".concat(n,"name"),Jt(i?(o=this.pt)===null||o===void 0?void 0:o["data-pc-section"]:this.$.type.name)),i&&fr({},"".concat(n,"extend"),Jt(this.$.type.name))),nl()&&fr({},"".concat(this.$attrSelector),""))),{},fr({},"".concat(n,"section"),Jt(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return St(e)||Ii(e)?{class:e}:e},_getPT:function(e){var o=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=function(l){var c,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=n?n(l):l,f=Jt(r),h=Jt(o.$name);return(c=d?f!==h?u==null?void 0:u[f]:void 0:u==null?void 0:u[f])!==null&&c!==void 0?c:u};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e,!0)},_usePT:function(e,o,r,n){var i=function(p){return o(p,r,n)};if(e!=null&&e.hasOwnProperty("_usept")){var s,l=e._usept||((s=this.$primevueConfig)===null||s===void 0?void 0:s.ptOptions)||{},c=l.mergeSections,d=c===void 0?!0:c,u=l.mergeProps,f=u===void 0?!1:u,h=i(e.originalValue),g=i(e.value);return h===void 0&&g===void 0?void 0:St(g)?g:St(h)?h:d||!d&&g?f?this._mergeProps(f,h,g):ce(ce({},h),g):g}return i(e)},_useGlobalPT:function(e,o,r){return this._usePT(this.globalPT,e,o,r)},_useDefaultPT:function(e,o,r){return this._usePT(this.defaultPT,e,o,r)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,ce(ce({},this.$params),o))},ptmi:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return a.mergeProps(this.$_attrsWithoutPT,this.ptm(e,o))},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,o,ce({instance:this},r),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,ce(ce({},this.$params),o))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(o){var n=this._getOptionValue(this.$style.inlineStyles,e,ce(ce({},this.$params),r)),i=this._getOptionValue(dl.inlineStyles,e,ce(ce({},this.$params),r));return[i,n]}}},computed:{globalPT:function(){var e,o=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return mt(r,{instance:o})})},defaultPT:function(){var e,o=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return o._getOptionValue(r,o.$name,ce({},o.$params))||mt(r,ce({},o.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$inProps:function(){var e,o=Object.keys(((e=this.$.vnode)===null||e===void 0?void 0:e.props)||{});return Object.fromEntries(Object.entries(this.$props).filter(function(r){var n=ur(r,1),i=n[0];return o==null?void 0:o.includes(i)}))},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return ce(ce({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e==null?void 0:e.$props,state:e==null?void 0:e.$data,attrs:e==null?void 0:e.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var o=ur(e,1),r=o[0];return r==null?void 0:r.startsWith("pt:")}).reduce(function(e,o){var r=ur(o,2),n=r[0],i=r[1],s=n.split(":"),l=am(s),c=l.slice(1);return c==null||c.reduce(function(d,u,f,h){return!d[u]&&(d[u]=f===h.length-1?i:{}),d[u]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var o=ur(e,1),r=o[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,o){var r=ur(o,2),n=r[0],i=r[1];return e[n]=i,e},{})}}},fm={root:{position:"relative"}},hm={root:"p-chart"},gm=Ft.extend({name:"chart",classes:hm,inlineStyles:fm}),mm={name:"BaseChart",extends:um,props:{type:String,data:null,options:null,plugins:null,width:{type:Number,default:300},height:{type:Number,default:150},canvasProps:{type:null,default:null}},style:gm,provide:function(){return{$pcChart:this,$parentInstance:this}}},pl={name:"Chart",extends:mm,inheritAttrs:!1,emits:["select","loaded"],chart:null,watch:{data:{handler:function(){this.reinit()},deep:!0},type:function(){this.reinit()},options:function(){this.reinit()}},mounted:function(){this.initChart()},beforeUnmount:function(){this.chart&&(this.chart.destroy(),this.chart=null)},methods:{initChart:function(){var e=this;Promise.resolve().then(()=>W2).then(function(o){e.chart&&(e.chart.destroy(),e.chart=null),o&&o.default&&(e.chart=new o.default(e.$refs.canvas,{type:e.type,data:e.data,options:e.options,plugins:e.plugins})),e.$emit("loaded",e.chart)})},getCanvas:function(){return this.$canvas},getChart:function(){return this.chart},getBase64Image:function(){return this.chart.toBase64Image()},refresh:function(){this.chart&&this.chart.update()},reinit:function(){this.initChart()},onCanvasClick:function(e){if(this.chart){var o=this.chart.getElementsAtEventForMode(e,"nearest",{intersect:!0},!1),r=this.chart.getElementsAtEventForMode(e,"dataset",{intersect:!0},!1);o&&o[0]&&r&&this.$emit("select",{originalEvent:e,element:o[0],dataset:r})}},generateLegend:function(){if(this.chart)return this.chart.generateLegend()}}};function hr(t){"@babel/helpers - typeof";return hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hr(t)}function bl(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,r)}return o}function yl(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?bl(Object(o),!0).forEach(function(r){pm(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):bl(Object(o)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))})}return t}function pm(t,e,o){return(e=bm(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function bm(t){var e=ym(t,"string");return hr(e)=="symbol"?e:e+""}function ym(t,e){if(hr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var r=o.call(t,e||"default");if(hr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var km=["width","height"];function xm(t,e,o,r,n,i){return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:t.cx("root"),style:t.sx("root")},t.ptmi("root")),[a.createElementVNode("canvas",a.mergeProps({ref:"canvas",width:t.width,height:t.height,onClick:e[0]||(e[0]=function(s){return i.onCanvasClick(s)})},yl(yl({},t.canvasProps),t.ptm("canvas"))),null,16,km)],16)}pl.render=xm;function vm(){const t={primary:"#0efcf1",primaryBorder:"#388E3C",secondary:"#0ec6fc",secondaryBorder:"#FBC02D",tertiary:"#f1fc0e",tertiaryBorder:"#FFA000"},e=["linear","easeInQuad","easeOutQuad","easeInOutQuad","easeInCubic","easeOutCubic","easeInOutCubic","easeInQuart","easeOutQuart","easeInOutQuart","easeInBounce","easeOutBounce","easeInOutBounce","easeInOutElastic"],o=a.ref("easeInOutElastic"),r=a.computed(()=>({responsive:!0,maintainAspectRatio:!0,plugins:{legend:{position:"top",labels:{font:{size:16}}},tooltip:{enabled:!0,titleFont:{size:14},bodyFont:{size:12}},zoom:{zoom:{wheel:{enabled:!0},drag:{enabled:!0},mode:"xy"},pan:{enabled:!0,mode:"xy"}}},scales:{x:{grid:{display:!1},ticks:{font:{size:14}}},y:{grid:{display:!0,color:"#e0e0e0"},ticks:{font:{size:14}}}},animation:{duration:2e3,easing:o.value,delay:500,loop:!1,animateRotate:!0,animateScale:!0},elements:{point:{radius:6,hoverRadius:10,backgroundColor:t.secondary},line:{tension:.4,borderWidth:2},bar:{borderWidth:2,borderRadius:4}}}));return{colorConfig:t,animationOptions:e,selectedAnimation:o,defaultChartOptions:r}}const wm={components:{Chart:pl},props:{type:{type:String,required:!0},chartData:{type:Object,required:!0},chartOptions:{type:Object,default:()=>({})}},setup(t){const{colorConfig:e,defaultChartOptions:o}=vm(),r=a.computed(()=>{const i=t.chartData.datasets.map((s,l)=>{const c=Object.values(e);return{...s,backgroundColor:c[l%c.length],borderColor:c[l%c.length+1]}});return{...t.chartData,datasets:i}}),n=a.computed(()=>({...o.value,maintainAspectRatio:!0,...t.chartOptions}));return{computedChartData:r,computedChartOptions:n}}},Cm={class:"chart-container"},_m={key:0},Sm={key:1};function Bm(t,e,o,r,n,i){const s=a.resolveComponent("Chart",!0);return a.openBlock(),a.createElementBlock("div",Cm,[o.chartData?(a.openBlock(),a.createElementBlock("div",_m,[a.createVNode(s,{type:o.type,data:r.computedChartData,options:r.computedChartOptions},null,8,["type","data","options"])])):(a.openBlock(),a.createElementBlock("div",Sm,e[0]||(e[0]=[a.createElementVNode("p",null,"No data available for the chart.",-1)])))])}const gr=Ne(wm,[["render",Bm],["__scopeId","data-v-8e3e786b"]]);function mr(){const t=a.ref(null),e=a.ref(!1),o=a.ref(null);return{chartData:t,fetchChartData:async({entityName:n,xaxis:i=null,yaxis:s=null})=>{e.value=!0,o.value=null;const l="https://mocki.io/v1/1ab17035-c115-4049-8ebf-a1e1b92d739a";try{const d=await(await fetch(l)).json();if(!d||!d.response||!d.response.result)throw new Error("Invalid data structure from API.");const u=d.response.result;if(!i&&!s){const f=Object.keys(u[0]);i=f[1],s=f.slice(4);const h=u.reduce((p,b)=>(s.forEach(y=>{p[y]||(p[y]=0),p[y]+=b[y]||0}),p),{}),g=Object.keys(h),m=Object.values(h);t.value={labels:g,datasets:[{label:"Default Data",data:m,borderWidth:1}]}}else{const f=u.map(m=>m[i]),g=(Array.isArray(s)?s:[s]).map(m=>({label:m,data:u.map(p=>p[m]||0),borderWidth:1}));t.value={labels:f,datasets:g}}}catch(c){o.value=c.message,t.value=null}finally{e.value=!1}},loading:e,error:o}}const Em={components:{chart:gr},props:{entityName:{type:String,required:!0},title:{type:String,default:"Bar Chart"},yaxis:{type:String,required:!0},xaxis:{type:String,required:!0}},setup(t){const{chartData:e,fetchChartData:o,loading:r,error:n}=mr(),i=a.ref({responsive:!0,plugins:{legend:{position:"top"},tooltip:{callbacks:{label:function(l){return`${l.dataset.label}: ${l.raw}`}}}}}),s=async()=>{if(!t.yaxis||!t.xaxis){console.error("xaxis or yaxis is not defined."),n.value="x-axis or y-axis is not properly configured.";return}await o({entityName:t.entityName,yaxis:t.yaxis,xaxis:t.xaxis})};return a.onMounted(()=>{console.log("Fetching data for yAxis:",t.yaxis),console.log("Fetching data for xAxis:",t.xaxis),s()}),{chartData:e,chartOptions:i,loading:r,error:n}}},Rm={key:0,class:"chart-container"},Dm={key:1},Om={key:0},Nm={key:1},Tm={key:2};function Pm(t,e,o,r,n,i){const s=a.resolveComponent("chart");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",null,[a.createElementVNode("h2",null,"Entity name: "+a.toDisplayString(o.entityName),1)]),r.chartData?(a.openBlock(),a.createElementBlock("div",Rm,[a.createElementVNode("h3",null,a.toDisplayString(o.title)+" , x-axis : "+a.toDisplayString(o.xaxis)+" , y-axis : "+a.toDisplayString(o.yaxis),1),a.createVNode(s,{type:"bar",chartData:r.chartData,chartOptions:r.chartOptions},null,8,["chartData","chartOptions"])])):(a.openBlock(),a.createElementBlock("div",Dm,[r.loading?(a.openBlock(),a.createElementBlock("p",Om,"Loading chart data...")):r.error?(a.openBlock(),a.createElementBlock("p",Nm,a.toDisplayString(r.error),1)):(a.openBlock(),a.createElementBlock("p",Tm,"No data available for the chart."))]))])}const kl=Ne(Em,[["render",Pm],["__scopeId","data-v-67577a46"]]),$m={components:{chart:gr},props:{entityName:{type:String,required:!0},title:{type:String,default:"Bar Chart"},yaxis:{type:String,required:!0},xaxis:{type:String,required:!0}},setup(t){const{chartData:e,fetchChartData:o,loading:r,error:n}=mr(),i=a.ref({responsive:!0,plugins:{legend:{position:"top"},tooltip:{callbacks:{label:function(l){return`${l.dataset.label}: ${l.raw}`}}}}}),s=async()=>{if(!t.yaxis||!t.xaxis){console.error("xaxis or yaxis is not defined."),n.value="x-axis or y-axis is not properly configured.";return}await o({entityName:t.entityName,yaxis:t.yaxis,xaxis:t.xaxis})};return a.onMounted(()=>{console.log("Fetching data for yAxis:",t.yaxis),console.log("Fetching data for xAxis:",t.xaxis),s()}),{chartData:e,chartOptions:i,loading:r,error:n}}},Am={key:0,class:"chart-container"},Mm={key:1},Vm={key:0},Fm={key:1},Im={key:2};function Lm(t,e,o,r,n,i){const s=a.resolveComponent("chart");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",null,[a.createElementVNode("h2",null,"Entity name: "+a.toDisplayString(o.entityName),1)]),r.chartData?(a.openBlock(),a.createElementBlock("div",Am,[a.createElementVNode("h3",null,a.toDisplayString(o.title)+" , x-axis : "+a.toDisplayString(o.xaxis)+" , y-axis : "+a.toDisplayString(o.yaxis),1),a.createVNode(s,{type:"line",chartData:r.chartData,chartOptions:r.chartOptions},null,8,["chartData","chartOptions"])])):(a.openBlock(),a.createElementBlock("div",Mm,[r.loading?(a.openBlock(),a.createElementBlock("p",Vm,"Loading chart data...")):r.error?(a.openBlock(),a.createElementBlock("p",Fm,a.toDisplayString(r.error),1)):(a.openBlock(),a.createElementBlock("p",Im,"No data available for the chart."))]))])}const xl=Ne($m,[["render",Lm],["__scopeId","data-v-2cfe3d4d"]]),zm={components:{chart:gr},props:{entityName:{type:String,required:!0},title:{type:String,default:"Pie Chart"},yaxis:{type:String,default:null},xaxis:{type:String,default:null}},setup(t){const{chartData:e,fetchChartData:o,loading:r,error:n}=mr(),i=a.ref({responsive:!0,plugins:{legend:{position:"top"},tooltip:{callbacks:{label:function(l){return`${l.label}: ${l.raw}`}}}}}),s=async()=>{await o({entityName:t.entityName,xaxis:t.xaxis,yaxis:t.yaxis})};return a.onMounted(()=>{s()}),{chartData:e,chartOptions:i,loading:r,error:n}}},jm={key:0,class:"chart-container"},Wm={key:1},Hm={key:0},Um={key:1},qm={key:2};function Ym(t,e,o,r,n,i){const s=a.resolveComponent("chart");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",null,[a.createElementVNode("h2",null,"Entity name: "+a.toDisplayString(o.entityName),1)]),r.chartData?(a.openBlock(),a.createElementBlock("div",jm,[a.createElementVNode("h3",null,a.toDisplayString(o.title),1),a.createVNode(s,{type:"pie",chartData:r.chartData,chartOptions:r.chartOptions},null,8,["chartData","chartOptions"])])):(a.openBlock(),a.createElementBlock("div",Wm,[r.loading?(a.openBlock(),a.createElementBlock("p",Hm,"Loading chart data...")):r.error?(a.openBlock(),a.createElementBlock("p",Um,a.toDisplayString(r.error),1)):(a.openBlock(),a.createElementBlock("p",qm,"No data available for the chart."))]))])}const vl=Ne(zm,[["render",Ym],["__scopeId","data-v-27f5ea01"]]),Xm={components:{chart:gr},props:{entityName:{type:String,required:!0},title:{type:String,default:"Pie Chart"},yaxis:{type:String,default:null},xaxis:{type:String,default:null}},setup(t){const{chartData:e,fetchChartData:o,loading:r,error:n}=mr(),i=a.ref({responsive:!0,plugins:{legend:{position:"top"},tooltip:{callbacks:{label:function(l){return`${l.label}: ${l.raw}`}}}}}),s=async()=>{await o({entityName:t.entityName,xaxis:t.xaxis,yaxis:t.yaxis})};return a.onMounted(()=>{s()}),{chartData:e,chartOptions:i,loading:r,error:n}}},Km={key:0,class:"chart-container"},Gm={key:1},Jm={key:0},Qm={key:1},Zm={key:2};function ep(t,e,o,r,n,i){const s=a.resolveComponent("chart");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",null,[a.createElementVNode("h2",null,"Entity name: "+a.toDisplayString(o.entityName),1)]),r.chartData?(a.openBlock(),a.createElementBlock("div",Km,[a.createElementVNode("h3",null,a.toDisplayString(o.title),1),a.createVNode(s,{type:"polarArea",chartData:r.chartData,chartOptions:r.chartOptions},null,8,["chartData","chartOptions"])])):(a.openBlock(),a.createElementBlock("div",Gm,[r.loading?(a.openBlock(),a.createElementBlock("p",Jm,"Loading chart data...")):r.error?(a.openBlock(),a.createElementBlock("p",Qm,a.toDisplayString(r.error),1)):(a.openBlock(),a.createElementBlock("p",Zm,"No data available for the chart."))]))])}const wl=Ne(Xm,[["render",ep],["__scopeId","data-v-941f0d0a"]]),tp={components:{chart:gr},props:{entityName:{type:String,required:!0},title:{type:String,default:"Bar Chart"},yaxis:{type:String,required:!0},xaxis:{type:String,required:!0}},setup(t){const{chartData:e,fetchChartData:o,loading:r,error:n}=mr(),i=a.ref({responsive:!0,plugins:{legend:{position:"top"},tooltip:{callbacks:{label:function(l){return`${l.dataset.label}: ${l.raw}`}}}}}),s=async()=>{if(!t.yaxis||!t.xaxis){console.error("xaxis or yaxis is not defined."),n.value="x-axis or y-axis is not properly configured.";return}await o({entityName:t.entityName,yaxis:t.yaxis,xaxis:t.xaxis})};return a.onMounted(()=>{console.log("Fetching data for yAxis:",t.yaxis),console.log("Fetching data for xAxis:",t.xaxis),s()}),{chartData:e,chartOptions:i,loading:r,error:n}}},op={key:0,class:"chart-container"},rp={key:1},np={key:0},ip={key:1},ap={key:2};function sp(t,e,o,r,n,i){const s=a.resolveComponent("chart");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",null,[a.createElementVNode("h2",null,"Entity name: "+a.toDisplayString(o.entityName),1)]),r.chartData?(a.openBlock(),a.createElementBlock("div",op,[a.createElementVNode("h3",null,a.toDisplayString(o.title)+" , x-axis : "+a.toDisplayString(o.xaxis)+" , y-axis : "+a.toDisplayString(o.yaxis),1),a.createVNode(s,{type:"radar",chartData:r.chartData,chartOptions:r.chartOptions},null,8,["chartData","chartOptions"])])):(a.openBlock(),a.createElementBlock("div",rp,[r.loading?(a.openBlock(),a.createElementBlock("p",np,"Loading chart data...")):r.error?(a.openBlock(),a.createElementBlock("p",ip,a.toDisplayString(r.error),1)):(a.openBlock(),a.createElementBlock("p",ap,"No data available for the chart."))]))])}const Cl=Ne(tp,[["render",sp],["__scopeId","data-v-80750171"]]),lp={class:"flex flex-col p-3"},cp={class:"flex justify-center flex-row mb-2 cursor-pointer"},dp={style:{"word-break":"break-all"}},up={__name:"LinkEntityContent",props:{linkEntityListItem:{type:Object,required:!0}},setup(t){Ke.useRoute();const e=lt(),o=a.ref("");e.getAppId()!=null&&e.getAppId()!=""&&(o.value=e.getAppId());const r=a.ref(),n=a.ref(!1),i=a.ref(!1),s=a.ref({}),l=a.ref([{label:"Remove association",icon:"",command:f=>{c()}}]),c=()=>{console.log(s.value),console.log("Function is calling")},d=(f,h)=>{s.value=h,r.value.show(f),i.value=!0},u=()=>{s.value={},i.value=!1};return(f,h)=>{const g=a.resolveComponent("Button"),m=a.resolveComponent("ContextMenu"),p=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("div",{onMouseenter:h[4]||(h[4]=a.withModifiers(b=>n.value=!0,["prevent"])),onMouseleave:h[5]||(h[5]=a.withModifiers(b=>n.value=!1,["prevent"])),class:"flex relative m-3",style:{border:"1px solid var(--surface-border)","border-radius":"5px"}},[a.withDirectives(a.createVNode(g,{onClick:h[0]||(h[0]=b=>d(b,t.linkEntityListItem)),class:"!absolute right-0",size:"small",style:{width:"55px",height:"25px","border-radius":"5px","font-size":"12px"}},{default:a.withCtx(()=>h[6]||(h[6]=[a.createTextVNode(" More")])),_:1},512),[[a.vShow,n.value||i.value]]),a.createVNode(m,{ref_key:"menu",ref:r,model:l.value,onMouseenter:h[1]||(h[1]=a.withModifiers(b=>n.value=!0,["prevent"])),onMouseleave:h[2]||(h[2]=a.withModifiers(b=>n.value=!1,["prevent"])),onHide:h[3]||(h[3]=b=>u())},null,8,["model"]),a.createElementVNode("div",lp,[a.createElementVNode("div",cp,[a.createElementVNode("div",dp,a.toDisplayString(t.linkEntityListItem.entityName),1),a.createVNode(p,{to:{name:"entity360view",params:{entityName:t.linkEntityListItem.entityName,id:t.linkEntityListItem.id,appId:o.value}},target:"_blank"},{default:a.withCtx(()=>h[7]||(h[7]=[a.createElementVNode("div",{class:"pi pi-external-link ml-3"},null,-1)])),_:1},8,["to"])]),a.createElementVNode("div",null,"Id: "+a.toDisplayString(t.linkEntityListItem.id),1)])],32)}}},fp={class:"flex flex-col mt-3"},hp={class:"flex flex-row items-center"},gp={class:"flex items-center justify-center mt-5"},mp={key:0,class:"pi pi-caret-right"},pp={key:1,class:"pi pi-caret-down"},bp={key:0},yp={class:"flex flex-col mt-5"},kp={class:"col-12"},xp={class:"flex flex-col mt-5"},vp={class:"col-12 font-bold"},wp={key:0},Cp={class:"flex flex-col mt-5"},_p={class:"col-12"},Sp={class:"flex flex-col mt-5"},Bp={class:"col-12"},Ep={class:"flex flex-col mt-5"},Rp={class:"col-12"},Dp={class:"flex flex-row justify-between items-center mt-5"},Op={key:1,class:"mt-2"},Np={class:"flex flex-row justify-between items-center"},Tp={key:1,class:"text-red-500"},Pp={class:"flex flex-col mt-5"},$p={class:"flex flex-row justify-between items-center mt-2"},Ap={class:"flex flex-row items-center mt-5 mb-5"},Mp={class:"font-bold"},Vp={class:"font-bold ml-2 flex-1"},Fp={class:"flex flex-row justify-center items-center mb-2"},Ip={class:"ml-2 flex-1"},Lp={key:0,class:"pi pi-exclamation-circle"},zp={class:"flex flex-col justify-center"},jp={class:"flex flex-row justify-between items-center"},Wp={class:"justify-start"},Hp={class:"justify-start"},Up=Ne({__name:"EntityLookup",props:a.mergeModels({linkedEntity:{type:Object,required:!0},entity360Name:{type:String,required:!0},entity360Id:{required:!0},saveExistingRelatedEntityRecord:{type:Function,required:!0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){Ke.useRoute();const e=t,o=a.useModel(t,"modelValue"),r=new mo,n=a.ref({}),i=a.ref([]),s=a.ref({}),l=a.ref([]),c=a.ref([]),d=a.ref({}),u=a.ref("id"),f=a.ref(1),h=a.ref([]),g=a.ref(25),m=a.ref(0),p=a.ref(0),b=a.ref(0);let y=a.ref([]);const k=a.ref(!1),C={gt:"GREATER_THAN",dateAfter:"GREATER_THAN",equals:"EQUAL",dateIs:"EQUAL",notEquals:"NOT_EQUAL",dateIsNot:"NOT_EQUAL",lt:"LESS_THAN",dateBefore:"LESS_THAN",lte:"LESS_THAN_EQUAL",gte:"GREATER_THAN_EQUAL",between:"BETWEEN",contains:"CONTAINS",startsWith:"STARTS_WITH",notContains:"NOT_CONTAINS",endsWith:"ENDS_WITH"},_={gt:"is greater than",dateAfter:"is after",equals:"is equals",dateIs:"is equals",notEquals:"is not equals",dateIsNot:"is not equals",lt:"is less than",dateBefore:"is before",lte:"is less than or equal to",gte:"is greater than or equal to",between:"between",contains:"contains",startsWith:"starts with",notContains:"not contains",endsWith:"ends with"};a.onMounted(()=>{S()});const v=U=>e.linkedEntity.list.some(V=>V[d.value.name]===U),S=async()=>{try{const U={sortBy:[u.value],sortDirection:f.value===1?"ASC":"DESC",pageSize:g.value,currentPage:m.value,columnList:null,filter:y.value,fullTextSearch:""},V=await r.searchEntityRecords(e.linkedEntity.entityName,U);V&&V.response&&(n.value=V.response,l.value=V.response.entity.entityDefinition.columns,c.value=De(V.response.entity.entityDefinition.columns),p.value=V.response.totalRecords,await w(),await x(),B())}catch{}finally{}},w=async()=>{for(let U=0;U<l.value.length;U++){const V=l.value[U];!V.autoGeneerated&&V.foreignKey&&V.foreignKey.referencedEntityName.toLowerCase()==e.entity360Name.toLowerCase()&&(s.value=V)}},x=async()=>{for(let U=0;U<l.value.length;U++){const V=l.value[U];if(V.primaryKey&&V.primaryKey==!0){d.value=V;break}}},B=()=>{for(let U=0;U<e.linkedEntity.list.length;U++){const V=e.linkedEntity.list[U];V.is_deleted==!1&&V[s.value.name]==e.entity360Id&&i.value.push(V[d.value.name])}},T=()=>{let U=JSON.parse(JSON.stringify(i.value));U=U.filter(he=>!v(he));let V={linkEntityName:n.value.entityName,linkRecordIdList:[]};for(let he=0;he<U.length;he++){const me=U[he];V.linkRecordIdList.push(me)}e.saveExistingRelatedEntityRecord(V)},E=()=>{k.value=!k.value},O=[{label:"Starts with",value:"startsWith"},{label:"Contains",value:"contains"},{label:"Not contains",value:"notContains"},{label:"Ends with",value:"endsWith"},{label:"Equals",value:"equals"},{label:"Not equals",value:"notEquals"}],M=[{label:"Equals",value:"equals"},{label:"Not equals",value:"notEquals"},{label:"Less than",value:"lt"},{label:"Less than or equal to",value:"lte"},{label:"Greater than",value:"gt"},{label:"Greater than or equal to",value:"gte"}],W=[{label:"Equals",value:"equals"},{label:"Not equals",value:"notEquals"}],Y=[{label:"Date is",value:"dateIs"},{label:"Date is not",value:"dateIsNot"},{label:"Date is before",value:"dateBefore"},{label:"Date is after",value:"dateAfter"}],I=[{label:"ASC",value:1},{label:"DESC",value:-1}];let z=[];const F=a.computed(()=>c.value.filter(U=>U.sortable)),P=a.computed(()=>c.value.filter(U=>U.filterable)),L=U=>c.value.filter(V=>{var he;return V.filterable?((he=h.value[U])==null?void 0:he.columnName)===V.name?!0:!h.value.some((me,ge)=>ge!==U&&me.columnName===V.name):!1}).map(V=>({label:V.name,value:V.field})),Q=U=>{let V="";switch(Xe(U.columnName).toLowerCase()){case"string":case"uuid":V="startsWith";break;case"date":V="dateIs";break;case"numeric":case"int":case"integer":V="equals";break;case"bool":case"boolean":V="equals";break}U.operator=V,U.value=""},oe=U=>{const V=Xe(U.columnName);switch(V&&V.toLowerCase()){case"integer":case"int":case"numeric":z=M;break;case"date":z=Y;break;case"bool":case"boolean":z=W;break;default:z=O}return z},ne=U=>{if(U&&U.columnName){const V=Xe(U.columnName);return vt(V)}else return""},X=()=>{for(let U=0;U<h.value.length;U++){const V=h.value[U];V.editing=!1}h.value.push({columnName:"",value:"",operator:"",editing:!0})},J=U=>{h.value.splice(U,1)},ie=U=>{U.editing=!U.editing},ue=()=>{let U=JSON.parse(JSON.stringify(h.value));y.value=[];for(let V=0;V<U.length;V++){const he=U[V];delete he.editing,he.columnName&&he.operator&&he.value&&(he.columnType=Xe(he.columnName),he.operator=C[he.operator],y.value.push(he))}S()},De=U=>U.map(V=>({field:V.name,name:V.displayName?V.displayName:V.name,filterable:V.filterable,datatype:V.type,sortable:!0,displayFormatKey:V.displayFormatKey,displayFormat:V.displayFormat})),st=()=>{S()},Xe=U=>{const V=c.value.find(he=>he.field===U);return V?V.datatype:null},vt=U=>{switch(U.toLowerCase()){case"integer":case"int":case"numeric":return"numeric";case"date":return"date";case"bool":case"boolean":return"boolean";default:return"text"}},ft=U=>{g.value=U.rows,m.value=U.page,b.value=U.first,S()};return(U,V)=>{var go,$o;const he=a.resolveComponent("InputIcon"),me=a.resolveComponent("InputText"),ge=a.resolveComponent("IconField"),pe=a.resolveComponent("Select"),Te=a.resolveComponent("Divider"),ot=a.resolveComponent("InputNumber"),Tt=a.resolveComponent("DatePicker"),Le=a.resolveComponent("Button"),rt=a.resolveComponent("Checkbox"),ht=a.resolveComponent("Paginator"),ho=a.resolveDirective("tooltip");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",fp,[a.createElementVNode("div",hp,[a.createVNode(ge,{class:"block mt-2 md:mt-0 w-full"},{default:a.withCtx(()=>[a.createVNode(he,{onClick:V[0]||(V[0]=()=>{}),class:"pi pi-search"}),a.createVNode(me,{class:"w-full",onKeyup:V[1]||(V[1]=a.withKeys(()=>{},["enter"])),placeholder:`Search ${n.value.entityName}`},null,8,["placeholder"])]),_:1})]),a.createElementVNode("div",gp,[a.createElementVNode("div",{class:"flex items-center cursor-pointer sorting-filter-section flex-1 line-height-4",onClick:V[2]||(V[2]=ee=>E())},[k.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",mp)),k.value?(a.openBlock(),a.createElementBlock("div",pp)):a.createCommentVNode("",!0),V[9]||(V[9]=a.createElementVNode("div",{class:"ml-3 font-bold"}," Sorting & Filters ",-1))])]),k.value?(a.openBlock(),a.createElementBlock("div",bp,[a.createElementVNode("div",yp,[V[10]||(V[10]=a.createElementVNode("div",{class:"col-12 font-bold"},"Sort Column",-1)),a.createElementVNode("div",kp,[a.createVNode(pe,{modelValue:u.value,"onUpdate:modelValue":V[3]||(V[3]=ee=>u.value=ee),options:F.value,optionLabel:"name",optionValue:"field",highlightOnSelect:!1,class:"w-full",onChange:V[4]||(V[4]=ee=>st(U.event))},null,8,["modelValue","options"])])]),a.createElementVNode("div",xp,[V[11]||(V[11]=a.createElementVNode("div",{class:"col-12 font-bold"},[a.createElementVNode("div",{class:"col-12 font-bold"},"Sort Direction")],-1)),a.createElementVNode("div",vp,[a.createVNode(pe,{modelValue:f.value,"onUpdate:modelValue":V[5]||(V[5]=ee=>f.value=ee),options:I,optionLabel:"label",optionValue:"value",highlightOnSelect:!1,class:"w-full",onChange:V[6]||(V[6]=ee=>st(U.event))},null,8,["modelValue"])])]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.value,(ee,wt)=>(a.openBlock(),a.createElementBlock("div",{key:wt},[ee.editing?(a.openBlock(),a.createElementBlock("div",wp,[a.createVNode(Te,{class:"mt-5"}),a.createElementVNode("div",Cp,[V[12]||(V[12]=a.createElementVNode("div",{class:"col-12 font-bold"},"Filter Column",-1)),a.createElementVNode("div",_p,[a.createVNode(pe,{modelValue:ee.columnName,"onUpdate:modelValue":Ae=>ee.columnName=Ae,options:L(wt),optionLabel:"label",placeholder:"Select column",optionValue:"value",highlightOnSelect:!1,class:"w-full",onChange:Ae=>Q(ee)},null,8,["modelValue","onUpdate:modelValue","options","onChange"])])]),a.createElementVNode("div",Sp,[V[13]||(V[13]=a.createElementVNode("div",{class:"col-12 font-bold"},"Filter Operator",-1)),a.createElementVNode("div",Bp,[a.createVNode(pe,{modelValue:ee.operator,"onUpdate:modelValue":Ae=>ee.operator=Ae,options:oe(ee),optionLabel:"label",placeholder:"Select operator",optionValue:"value",highlightOnSelect:!1,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","options"])])]),a.createElementVNode("div",Ep,[V[14]||(V[14]=a.createElementVNode("div",{class:"col-12 font-bold"},"Filter value",-1)),a.createElementVNode("div",Rp,[ne(ee)=="numeric"?(a.openBlock(),a.createBlock(ot,{key:0,format:!1,class:"w-full",modelValue:ee.value,"onUpdate:modelValue":Ae=>ee.value=Ae,placeholder:"Search value"},null,8,["modelValue","onUpdate:modelValue"])):ne(ee)=="date"?(a.openBlock(),a.createBlock(Tt,{key:1,class:"w-full",modelValue:ee.value,"onUpdate:modelValue":Ae=>ee.value=Ae,dateFormat:"mm/dd/yy",placeholder:"mm/dd/yyyy"},null,8,["modelValue","onUpdate:modelValue"])):(a.openBlock(),a.createBlock(me,{key:2,modelValue:ee.value,"onUpdate:modelValue":Ae=>ee.value=Ae,class:"w-full",placeholder:"Search value"},null,8,["modelValue","onUpdate:modelValue"]))])]),a.createElementVNode("div",Dp,[a.createVNode(Le,{style:{width:"100px"},label:"Hide",icon:"",severity:"warning",onClick:Ae=>ie(ee)},null,8,["onClick"]),a.createVNode(Le,{style:{width:"100px"},label:"Delete",icon:"",severity:"danger",onClick:Ae=>J(wt)},null,8,["onClick"])])])):a.createCommentVNode("",!0),ee.editing?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",Op,[a.createVNode(Te),a.createElementVNode("div",Np,[a.createElementVNode("span",null,[ee.columnName||ee.operator||ee.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("span",{class:a.normalizeClass({"text-red-500":!ee.columnName})},a.toDisplayString(ee.columnName?" "+ee.columnName:" column"),3),a.createElementVNode("span",{class:a.normalizeClass({"text-red-500":!_[ee.operator]})},a.toDisplayString(ee.operator?" "+_[ee.operator]:" operator"),3),a.createElementVNode("span",{class:a.normalizeClass({"text-red-500":!ee.value})},a.toDisplayString(ee.value?" "+ee.value:" value"),3)],64)):(a.openBlock(),a.createElementBlock("span",Tp,"Filter is empty"))]),a.createVNode(Le,{style:{width:"100px"},label:"Edit",icon:"",severity:"info",onClick:Ae=>ie(ee)},null,8,["onClick"])])]))]))),128)),a.createElementVNode("div",Pp,[a.createVNode(Te),a.createElementVNode("div",$p,[a.createVNode(Le,{style:{width:"100px"},label:"Add",disabled:P.value.length===h.value.length,icon:"",severity:"success",onClick:X},null,8,["disabled"]),a.createVNode(Le,{style:{width:"100px"},label:"Apply",severity:"info",onClick:ue})])])])):a.createCommentVNode("",!0),a.createElementVNode("div",Ap,[a.createElementVNode("div",Mp,a.toDisplayString((go=n.value)==null?void 0:go.totalRecords),1),a.createElementVNode("div",Vp,a.toDisplayString(($o=n.value)==null?void 0:$o.entityName),1)]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value.result,(ee,wt)=>(a.openBlock(),a.createElementBlock("div",{key:wt},[a.createElementVNode("div",Fp,[a.createVNode(rt,{disabled:v(ee[d.value.name]),modelValue:i.value,"onUpdate:modelValue":V[7]||(V[7]=Ae=>i.value=Ae),value:ee[d.value.name]},null,8,["disabled","modelValue","value"]),a.createElementVNode("div",Ip,[a.createTextVNode(a.toDisplayString(t.linkedEntity.entityName)+" ",1),a.createElementVNode("span",null,a.toDisplayString(ee[d.value.name]),1)]),v(ee[d.value.name])?a.withDirectives((a.openBlock(),a.createElementBlock("div",Lp,null,512)),[[ho,"This record is already associated.",void 0,{left:!0}]]):a.createCommentVNode("",!0)])]))),128)),a.createVNode(ht,{rows:g.value,totalRecords:p.value,rowsPerPageOptions:[10,25,50,100],onPage:ft,template:"FirstPageLink PageLinks LastPageLink CurrentPageReport RowsPerPageDropdown",currentPageReportTemplate:""},null,8,["rows","totalRecords"])]),a.createElementVNode("div",zp,[a.createVNode(Te,{class:"mt-5"}),a.createElementVNode("div",jp,[a.createElementVNode("div",Wp,[a.createVNode(Le,{label:"Cancel",icon:"",severity:"secondary",onClick:V[8]||(V[8]=ee=>o.value=!1)})]),a.createElementVNode("div",Hp,[a.createVNode(Le,{label:"Save",severity:"success",onClick:T})])])])],64)}}},[["__scopeId","data-v-5172abef"]]),qp={class:"field flex flex-col"},Yp={key:0,class:"flex items-center"},Xp={key:1},Kp={class:"flex items-center"},Gp={class:"flex flex-col justify-center"},Jp={class:"flex flex-row justify-between items-center"},Qp={class:"justify-start"},Zp={class:"justify-start"},e0={__name:"EntityLookupObject",props:a.mergeModels({linkedEntity:{type:Object,required:!0},entity360Name:{type:String,required:!0},entity360Id:{type:[String,Number]},saveExistingEntityObject:{type:Function}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){Ke.useRoute();const e=t,o=a.useModel(t,"modelValue"),r=new mo,n=a.ref({}),i=a.ref({});let s=a.ref("");const l=a.ref({}),c=a.ref({});a.onMounted(async()=>{console.log("linkedEntity"),console.log(e.linkedEntity),console.log("entity360Name"),console.log(e.entity360Name),console.log("entity360Id"),console.log(e.entity360Id),await u(),await d()});const d=async()=>{try{const p=await r.getEntityRecords(e.linkedEntity.entityName);p&&p.response&&(n.value=p.response,await f(p.response.entity.entityDefinition.columns),await g(),console.log(n.value))}catch{}finally{}},u=async()=>{try{const p=await r.getRecord(e.entity360Name,e.entity360Id);p&&p.response&&(i.value=p.response,await h(p.response.entity.entityDefinition.columns),console.log(i.value))}catch{}finally{}},f=async p=>{for(let b=0;b<p.length;b++){const y=p[b];if(y.primaryKey&&y.primaryKey==!0){l.value=y;break}}},h=async p=>{for(let b=0;b<p.length;b++){const y=p[b];if(!y.autoGeneerated&&y.foreignKey&&y.foreignKey.referencedEntityName.toLowerCase()==e.linkedEntity.entityName.toLowerCase()){c.value=y;break}}},g=async()=>{for(let p=0;p<n.value.result.length;p++){const b=n.value.result[p];if(b[l.value.name]==i.value.result[0][c.value.name]){s.value=b;break}}},m=()=>{const p={linkedEntityRecordId:s.value[l.value.name],linkedEntityName:e.linkedEntity.entityName,relationType:"ManyToOne"};e.saveExistingEntityObject(p)};return(p,b)=>{const y=a.resolveComponent("Select"),k=a.resolveComponent("Divider"),C=a.resolveComponent("Button");return a.openBlock(),a.createElementBlock("div",qp,[a.createVNode(y,{modelValue:a.unref(s),"onUpdate:modelValue":b[0]||(b[0]=_=>a.isRef(s)?s.value=_:s=_),"item-value":l.value.name,options:n.value.result,filter:"",optionLabel:l.value.name,placeholder:"Select "+l.value.name,class:"w-full"},{value:a.withCtx(_=>[_.value?(a.openBlock(),a.createElementBlock("div",Yp,[a.createElementVNode("div",null,a.toDisplayString(_.value[l.value.name]),1)])):(a.openBlock(),a.createElementBlock("span",Xp,a.toDisplayString(_.placeholder),1))]),option:a.withCtx(_=>[a.createElementVNode("div",Kp,[a.createElementVNode("div",null,a.toDisplayString(_.option[l.value.name]),1)])]),_:1},8,["modelValue","item-value","options","optionLabel","placeholder"]),a.createElementVNode("div",Gp,[a.createVNode(k),a.createElementVNode("div",Jp,[a.createElementVNode("div",Qp,[a.createVNode(C,{label:"Cancel",icon:"",severity:"secondary",onClick:b[1]||(b[1]=_=>o.value=!1)})]),a.createElementVNode("div",Zp,[a.createVNode(C,{label:"Save",severity:"success",onClick:m})])])])])}}},t0={style:{"font-weight":"700","font-size":"1.25rem"}},o0={class:"flex flex-col"},r0={class:"flex flex-row justify-between items-center"},n0={class:"justify-start"},i0={class:"justify-start"},a0="",s0={__name:"CreateRelatedentity",props:a.mergeModels({entity360Id:{required:!0},entity360Name:{type:String,required:!0},linkedEntity:{type:Object,required:!0}},{showCreateRelatedEntityForm:{},showCreateRelatedEntityFormModifiers:{}}),emits:a.mergeModels(["onSaveDialog"],["update:showCreateRelatedEntityForm"]),setup(t,{emit:e}){const o=a.useModel(t,"showCreateRelatedEntityForm");Ke.useRoute();const r=t,n=r.linkedEntity.entityName,i=e,s=a.ref("Add existing");a.onMounted(()=>{g()});const{formData:l,columns:c,errors:d,backendErrors:u,clearErrors:f,saveRecord:h,fetchAllRecords:g,saveRelatedEntityRecord:m}=Vi(n,a0,i),p=()=>{for(let C=0;C<c.value.length;C++){const _=c.value[C];!_.autoGenerated&&_.foreignKey&&(l.value[_.name]=r.entity360Id)}const k={relationType:r.linkedEntity.relationType,linkedEntities:{entityLinkage:[{linkEntityName:r.entity360Name,linkRecordIdList:[r.entity360Id]}]}};h(k)},b=k=>{var C;if(((C=k==null?void 0:k.linkRecordIdList)==null?void 0:C.length)>0){const _={entityLinkage:[{linkEntityName:k.linkEntityName,linkRecordIdList:k.linkRecordIdList}]};m(r.entity360Name,r.entity360Id,_)}},y=k=>{const C={entityLinkage:[{linkEntityName:r.entity360Name,linkRecordIdList:[r.entity360Id]}]};m(k.linkedEntityName,k.linkedEntityRecordId,C)};return(k,C)=>{const _=a.resolveComponent("Tab"),v=a.resolveComponent("TabList"),S=a.resolveComponent("Divider"),w=a.resolveComponent("Button"),x=a.resolveComponent("TabPanel"),B=a.resolveComponent("TabPanels"),T=a.resolveComponent("Tabs"),E=a.resolveComponent("Drawer");return a.openBlock(),a.createBlock(E,{visible:o.value,"onUpdate:visible":C[3]||(C[3]=O=>o.value=O),blockScroll:!0,position:"right",class:"p-fluid layout-profile-sidebar",style:{width:"40%"},pt:{closeButton:"ml-auto"}},{header:a.withCtx(()=>[a.createElementVNode("span",t0,a.toDisplayString(s.value)+" "+a.toDisplayString(t.linkedEntity.entityName),1)]),default:a.withCtx(()=>[a.createVNode(T,{value:"1"},{default:a.withCtx(()=>[a.createVNode(v,null,{default:a.withCtx(()=>[a.createVNode(_,{value:"0"},{default:a.withCtx(()=>C[4]||(C[4]=[a.createTextVNode("Create new")])),_:1}),a.createVNode(_,{value:"1"},{default:a.withCtx(()=>C[5]||(C[5]=[a.createTextVNode("Add existing")])),_:1})]),_:1}),a.createVNode(B,null,{default:a.withCtx(()=>[a.createVNode(x,{value:"0"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(c),(O,M)=>{var W;return a.openBlock(),a.createElementBlock("div",{key:M,class:"mt-3"},[!O.autoGenerated&&!O.foreignKey?(a.openBlock(),a.createBlock(un,{key:0,modelValue:a.unref(l)[O.name],"onUpdate:modelValue":Y=>a.unref(l)[O.name]=Y,column:O,errors:(W=a.unref(d)[O.name])==null?void 0:W.messages,onInput:a.unref(f)},null,8,["modelValue","onUpdate:modelValue","column","errors","onInput"])):a.createCommentVNode("",!0)])}),128)),a.createElementVNode("div",o0,[a.createVNode(S),a.createElementVNode("div",r0,[a.createElementVNode("div",n0,[a.createVNode(w,{label:"Cancel",icon:"",severity:"secondary",onClick:C[0]||(C[0]=O=>o.value=!1)})]),a.createElementVNode("div",i0,[a.createVNode(w,{label:"Save",severity:"success",onClick:p})])])])]),_:1}),a.createVNode(x,{value:"1"},{default:a.withCtx(()=>[t.linkedEntity.relationType=="ONE_TO_MANY"?(a.openBlock(),a.createBlock(Up,{key:0,modelValue:o.value,"onUpdate:modelValue":C[1]||(C[1]=O=>o.value=O),linkedEntity:t.linkedEntity,entity360Name:t.entity360Name,entity360Id:t.entity360Id,saveExistingRelatedEntityRecord:b},null,8,["modelValue","linkedEntity","entity360Name","entity360Id"])):a.createCommentVNode("",!0),t.linkedEntity.relationType=="MANY_TO_ONE"?(a.openBlock(),a.createBlock(e0,{key:1,modelValue:o.value,"onUpdate:modelValue":C[2]||(C[2]=O=>o.value=O),linkedEntity:t.linkedEntity,entity360Name:t.entity360Name,entity360Id:t.entity360Id,saveExistingEntityObject:y},null,8,["modelValue","linkedEntity","entity360Name","entity360Id"])):a.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["visible"])}}},l0={class:"flex flex-col border-bottom-section pb-3 pt-3"},c0={class:"flex items-center pl-3 pr-3 justify-between"},d0={key:0,class:"pi pi-caret-right"},u0={key:1,class:"pi pi-caret-down"},f0={class:"ml-3 font-bold"},h0={class:"ml-1"},g0={class:"text-right"},m0={key:0},p0=Ne({__name:"LinkEntitySection",props:{entity360Id:{required:!0},entity360Name:{type:String,required:!0},linkedEntity:{type:Object,required:!0},entity360Name:{type:[String,Number]},onSaveRelatedEnttity:{type:Function}},setup(t){Ke.useRoute();const e=t,o=a.ref(!1),r=a.ref(!1),n=()=>{o.value=!o.value},i=()=>{r.value=!r.value},s=()=>{r.value=!1,e.onSaveRelatedEnttity()},l=a.computed(()=>e.linkedEntity.list.filter(c=>!c.is_deleted).length);return(c,d)=>{const u=a.resolveComponent("Button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",l0,[a.createElementVNode("div",c0,[a.createElementVNode("div",{class:"flex cursor-pointer items-center linked-entity-section grow line-height-4",onClick:d[0]||(d[0]=f=>n())},[o.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",d0)),o.value?(a.openBlock(),a.createElementBlock("div",u0)):a.createCommentVNode("",!0),a.createElementVNode("div",f0,a.toDisplayString(t.linkedEntity.entityName),1),a.createElementVNode("div",h0," ("+a.toDisplayString(l.value)+") ",1)]),a.createElementVNode("div",g0,[a.createVNode(u,{label:"Add",icon:"pi pi-plus",size:"small",onClick:d[1]||(d[1]=f=>i())})])]),o.value?(a.openBlock(),a.createElementBlock("div",m0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.linkedEntity.list,(f,h)=>(a.openBlock(),a.createElementBlock("div",{class:"flex flex-col",key:h},[f.is_deleted?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(up,{key:0,linkEntityListItem:f},null,8,["linkEntityListItem"]))]))),128))])):a.createCommentVNode("",!0)]),r.value?(a.openBlock(),a.createBlock(s0,{key:0,showCreateRelatedEntityForm:r.value,"onUpdate:showCreateRelatedEntityForm":d[2]||(d[2]=f=>r.value=f),linkedEntity:t.linkedEntity,entity360Name:t.entity360Name,entity360Id:t.entity360Id,onOnSaveDialog:s},null,8,["showCreateRelatedEntityForm","linkedEntity","entity360Name","entity360Id"])):a.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-412eec44"]]),b0={key:0},y0={class:"flex"},k0={class:"p-3 mt-3 flex-col items-center"},x0={key:0,class:"pi pi-caret-right"},v0={key:1,class:"pi pi-caret-down"},w0={class:"font-bold ml-2"},C0={key:0,class:"flex flex-col mt-4"},_0={class:"flex flex-col mt-2"},S0={class:"flex flex-row flex-wrap justify-between pl-5"},B0={class:"flex flex-col"},E0={class:"font-bold"},R0={class:"mt-2"},D0={key:0,class:"flex flex-col",style:{position:"relative","max-width":"400px","background-color":"var(--surface-card)"}},O0={key:2,style:{width:"350px"},class:"flex flex-col justify-center"},N0={key:0,class:"custom-sidebar"},T0={class:"custom-sidebar-content"},P0={class:"custom-sidebar-button"},$0={class:"custom-sidebar-text"},_l=Ne({__name:"Entity360",props:{entityName:{type:String},recordId:{type:String},variable:{type:String,default:"item"},linkedEntity:Array},emits:["onSaveDialog"],setup(t,{expose:e,emit:o}){var E,O;const r=lt(),n=Ke.useRoute(),i=t,s=a.ref(!0),l=a.ref(!1),c=a.ref([]);let d=(E=n==null?void 0:n.params)==null?void 0:E.entityName,u=(O=n==null?void 0:n.params)==null?void 0:O.id;i.entityName&&(d=i.entityName),i.recordId&&(u=i.recordId);const f=o,{formData:h,columns:g,errors:m,backendErrors:p,isDataChange:b,linkedEntities:y,primarayColumn:k,clearErrors:C,saveRecord:_,getRelatedEntityRecordById:v,cancleRecord:S}=Vi(d,u,f);a.watch(()=>r.globalConfigs.appId,async M=>{M&&v()},{immediate:!0});const w=()=>{s.value=!s.value},x=()=>{l.value=!l.value},B=()=>{v()},T=M=>{if(!c.value||c.value.length===0)return[];const W=c.value.find(Y=>Y.entityName===M);return W&&W.list?W.list:(console.log("No related entity found"),[])};return e({getRelatedEntity:T}),a.watch(()=>y.value,M=>{Array.isArray(M)&&M.length>0&&M[0]&&(c.value=M)},{immediate:!0,deep:!0}),(M,W)=>{var ne;const Y=a.resolveComponent("SplitterPanel"),I=a.resolveComponent("Tab"),z=a.resolveComponent("TabList"),F=a.resolveComponent("TabPanel"),P=a.resolveComponent("TabPanels"),L=a.resolveComponent("Tabs"),Q=a.resolveComponent("Splitter"),oe=a.resolveComponent("Button");return M.$slots["list-item-display-360"]?(a.openBlock(),a.createElementBlock("div",b0,[a.renderSlot(M.$slots,"header",{},void 0,!0),a.createElementVNode("div",null,[a.renderSlot(M.$slots,"list-item-display-360",a.normalizeProps({[t.variable||""]:{formData:a.unref(h),columns:a.unref(g),linkedEntities:a.unref(y),errors:a.unref(m),recordId:a.unref(u),entityName:a.unref(d),getRelatedEntity:T}}),void 0,!0)]),a.renderSlot(M.$slots,"footer",{},void 0,!0)])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",y0,[a.createVNode(Q,{class:"flex-1",layout:"horizontal",gutterSize:8,size:100},{default:a.withCtx(()=>[a.createVNode(Y,{size:20,minSize:10,maxSize:20},{default:a.withCtx(()=>[a.createElementVNode("div",k0,[a.createElementVNode("div",{onClick:W[0]||(W[0]=X=>w()),class:"section-heading cursor-pointer"},[s.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("i",x0)),s.value?(a.openBlock(),a.createElementBlock("i",v0)):a.createCommentVNode("",!0),a.createElementVNode("span",w0," About this "+a.toDisplayString(a.unref(d)),1)]),s.value?(a.openBlock(),a.createElementBlock("div",C0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(g),(X,J)=>{var ie;return a.openBlock(),a.createElementBlock("div",{key:J},[X.autoGenerated?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(un,{key:0,modelValue:a.unref(h)[X.name],"onUpdate:modelValue":ue=>a.unref(h)[X.name]=ue,column:X,errors:(ie=a.unref(m)[X.name])==null?void 0:ie.messages,onInput:a.unref(C)},null,8,["modelValue","onUpdate:modelValue","column","errors","onInput"]))])}),128))])):a.createCommentVNode("",!0)])]),_:1}),a.createVNode(Y,{size:55,minSize:35,style:{height:"100%"}},{default:a.withCtx(()=>[a.createVNode(L,{value:"0"},{default:a.withCtx(()=>[a.createVNode(z,null,{default:a.withCtx(()=>[a.createVNode(I,{value:"0"},{default:a.withCtx(()=>W[3]||(W[3]=[a.createTextVNode("Overview")])),_:1}),a.createVNode(I,{value:"1"},{default:a.withCtx(()=>W[4]||(W[4]=[a.createTextVNode("Activity")])),_:1})]),_:1}),a.createVNode(P,null,{default:a.withCtx(()=>[a.createVNode(F,{value:"0"},{default:a.withCtx(()=>[a.createElementVNode("div",_0,[W[5]||(W[5]=a.createElementVNode("h3",{class:"mt-2 text-xl font-semibold"},"Data highlights",-1)),a.createElementVNode("div",S0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(g).filter(X=>X.autoGenerated),(X,J)=>(a.openBlock(),a.createElementBlock("div",{key:J,class:"column-item"},[a.createElementVNode("div",B0,[a.createElementVNode("div",E0,a.toDisplayString(X.name),1),a.createElementVNode("div",R0,[a.createVNode(Li,{column:X,value:a.unref(h)[X.name]},null,8,["column","value"])])])]))),128))])])]),_:1}),a.createVNode(F,{value:"1"})]),_:1})]),_:1})]),_:1})]),_:1}),((ne=a.unref(y))==null?void 0:ne.length)>0?(a.openBlock(),a.createElementBlock("div",D0,[l.value?(a.openBlock(),a.createBlock(oe,{key:0,icon:"pi pi-caret-right",rounded:"",onClick:x,"aria-label":"Filter",style:{height:"2rem",width:"2rem",left:"-20px"}})):a.createCommentVNode("",!0),l.value?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(oe,{key:1,icon:"pi pi-caret-left",rounded:"",onClick:x,"aria-label":"Filter",style:{height:"2rem",width:"2rem",left:"-20px"}})),l.value?(a.openBlock(),a.createElementBlock("div",O0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(y),(X,J)=>(a.openBlock(),a.createElementBlock("div",{key:J},[a.createVNode(p0,{entity360Name:a.unref(d),entity360Id:a.unref(u),linkedEntity:X,onSaveRelatedEnttity:B},null,8,["entity360Name","entity360Id","linkedEntity"])]))),128))])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)]),a.unref(b)?(a.openBlock(),a.createElementBlock("div",N0,[a.createElementVNode("div",T0,[a.createElementVNode("div",P0,[a.createVNode(oe,{severity:"primary",onClick:W[1]||(W[1]=X=>a.unref(_)())},{default:a.withCtx(()=>W[6]||(W[6]=[a.createTextVNode("Save")])),_:1}),a.createVNode(oe,{style:{"margin-left":"10px"},severity:"secondary",onClick:W[2]||(W[2]=X=>a.unref(S)())},{default:a.withCtx(()=>W[7]||(W[7]=[a.createTextVNode("Cancel")])),_:1})]),a.createElementVNode("div",$0," You've changed property in the "+a.toDisplayString(a.unref(d))+". ",1)])])):a.createCommentVNode("",!0)],64))}}},[["__scopeId","data-v-6df84fdd"]]);function Sn(){const t=new mo;let{errors:e,setErrors:o}=Bs(),r=a.reactive({data:null});const n=S=>{r.data=S},i=async S=>{try{const w=await t.getEntityRecords(S);if(w&&w.response)return w}catch(w){return console.error("Error fetching entity:",w.errorMessage),w}finally{}},s=async(S,w)=>{try{let x=await t.addRecord(S.entityName,w);if(x)return x}catch(x){return x}finally{}},l=async(S,w,x)=>{try{const B=await t.updateRecord(S.entityName,w,x);if(B&&B.response)return B}catch(B){return B}finally{}},c=async(S,w)=>{try{w.filter==null&&(w.filter={}),Object.keys(w.filter).length===0&&(w.filter=[]);const x=await t.searchEntityRecords(S.entityName,w);if(x)return x.response.sortBy=w.sortBy,x.response.filters=w.filter,x.response.sortDirection=w.sortDirection,x.response.fullTextSearch=w.fullTextSearch,x}catch(x){return x}finally{}},d=async(S,w)=>{try{const x=await t.deleteRecord(S.entityName,w);if(x)return x}catch(x){console.error("Error on deleting record:",x.errorMessage)}finally{}},u=S=>S.result,f=S=>{var w,x;return(x=(w=S==null?void 0:S.entity)==null?void 0:w.entityDefinition)==null?void 0:x.columns},h=S=>{const w=S.entity.entityDefinition.columns;let x={};for(let B=0;B<w.length;B++){const T=w[B];if(T.primaryKey&&T.primaryKey==!0){x=T;break}}return x},g=S=>{const w=S.entity.entityDefinition.columns;let x={};for(let B=0;B<w.length;B++){let T=w[B];T.autoGenerated||(x[T.name]="")}return x},m=(S,w)=>{let x="";const B=S.entity.entityDefinition.columns;for(let T=0;T<B.length;T++){let E=B[T];if(w==E.name){x=E.type;break}}return x},p=(S,w)=>{const B=S.entity.entityDefinition.columns.filter(E=>E.autoGenerated).map(E=>E.name);return Object.entries(w).filter(([E])=>!B.includes(E)).map(([E,O])=>({recordColumnName:E,recordColumnValue:O,columnType:m(r.data,E)}))},b=()=>{const S=r.data.entity.entityDefinition.columns;return Mi().shape(S.reduce((x,B)=>(B.autoGenerated||(x[B.name]=Ai().nullable(!1).test({name:"custom-validation",test:function(T){const E=[];let O="";if(B.required&&(!T||T.trim()===""))if(B.validations){O=y(B.validations,"VALIDATE_REQUIRED"),E.push(O);let M=C(B.validations,"VALIDATE_REQUIRED");M&&(M="hint:"+M,E.push(M))}else O=B.displayName+" is required.",E.push(O);else{if(B.maxLength&&T.length>B.maxLength)if(B.validations){O=y(B.validations,"VALIDATE_MAXLENGTH"),E.push(O);let M=C(B.validations,"VALIDATE_MAXLENGTH");M&&(M="hint:"+M,E.push(M))}else O=B.displayName+" cannot exceed from "+B.maxLength+" characters",E.push(O);if(B.regxId&&!new RegExp(k(B.validations,"VALIDATE_REGX")).test(T))if(B.validations){O=y(B.validations,"VALIDATE_REGX"),E.push(O);let M=C(B.validations,"VALIDATE_REGX");M&&(M="hint:"+M,E.push(M))}else O=B.displayName+" invalid format.",E.push(O)}return E.length>0?this.createError({message:E}):!0}})),x),{}))},y=(S,w)=>{for(let x=0;x<S.length;x++)if(w==S[x].type)return S[x].message},k=(S,w)=>{for(let x=0;x<S.length;x++)if(w==S[x].type)return S[x].regx},C=(S,w)=>{for(let x=0;x<S.length;x++)if(w==S[x].type)return S[x].hint};return{state:r,setEntity:n,getEntity:i,addRecord:s,updateRecord:l,searchRecord:c,entityRecordDelete:d,getEntityItems:u,getEntityColumns:f,getPrimaryKeyColumn:h,getFormData:g,createDataToSave:p,createValidationSchema:b,clearErrors:S=>(o({...e.value,[S]:null}),e.value),validateData:async(S,w)=>{try{return await S.validate(w,{abortEarly:!1}),o({}),{validate:!0}}catch(x){const B=x.inner.reduce((O,M)=>(O[M.path]||(O[M.path]={messages:[]}),O[M.path].messages.push(...M.errors),O),{}),T=Object.entries(B).reduce((O,[M,W])=>(O[M]={messages:W.messages},O),{});return o(T),{validate:!1,errors:e.value}}}}}const Bn={__name:"ConfirmDeleteDialog",props:{showDeleteDialog:{},showDeleteDialogModifiers:{}},emits:a.mergeModels(["onDeleteItem"],["update:showDeleteDialog"]),setup(t,{emit:e}){const o=a.useModel(t,"showDeleteDialog"),r=e,n=i=>{r("onDeleteItem",{remove:i})};return(i,s)=>{const l=a.resolveComponent("Button"),c=a.resolveComponent("Dialog");return a.openBlock(),a.createBlock(c,{visible:o.value,"onUpdate:visible":s[2]||(s[2]=d=>o.value=d),style:{width:"450px"},header:"Confirm",modal:!0},{footer:a.withCtx(()=>[a.createVNode(l,{label:"No",icon:"pi pi-times",text:"",onClick:s[0]||(s[0]=d=>n(!1))}),a.createVNode(l,{label:"Yes",icon:"pi pi-check",text:"",onClick:s[1]||(s[1]=d=>n(!0))})]),default:a.withCtx(()=>[s[3]||(s[3]=a.createElementVNode("div",{class:"flex items-center justify-center"},[a.createElementVNode("i",{class:"pi pi-exclamation-triangle mr-3",style:{"font-size":"2rem"}}),a.createElementVNode("span",null,"Are you sure you want to delete the selected item?")],-1))]),_:1},8,["visible"])}}},A0={key:0,style:{"font-weight":"700","font-size":"1.25rem"}},M0={key:1,style:{"font-weight":"700","font-size":"1.25rem"}},pr={__name:"EntityFormDialog",props:a.mergeModels({item:Object},{showEntityForm:{},showEntityFormModifiers:{}}),emits:["update:showEntityForm"],setup(t){const e=a.useModel(t,"showEntityForm"),o=a.inject("entityObject"),r=t;let n=a.ref([]),i=a.ref({}),s=a.ref([]),l=a.ref(null),c=a.ref({});a.onMounted(()=>{n.value=o.getEntityColumns(o.state.data),r.item?i.value=JSON.parse(JSON.stringify(r.item)):i.value=o.getFormData(o.state.data),l.value=o.createValidationSchema()});const d=async()=>{const g=await o.validateData(l.value,i.value);if(!g.validate){c.value=g.errors;return}const m=o.getPrimaryKeyColumn(o.state.data),p=r.item[m.name],b={dataDefinitions:o.createDataToSave(o.state.data,i.value)},y=await o.updateRecord(o.state.data,p,b);if(y&&y.success){e.value=!1;const k={sortBy:o.state.data.sortBy,sortDirection:o.state.data.sortDirection,pageSize:o.state.data.pageSize,currentPage:o.state.data.currentPage,columnList:null,filter:o.state.data.filters,fullTextSearch:o.state.data.fullTextSearch},C=await o.searchRecord(o.state.data,k);if(C!=null&&C.response){let _=C==null?void 0:C.response;o.setEntity(_)}}else y.validationErrors&&(s.value=JSON.parse(JSON.stringify(y.errvalidationErrorsors)))},u=async()=>{const g=await o.validateData(l.value,i.value);if(!g.validate){c.value=g.errors;return}const m={dataDefinitions:o.createDataToSave(o.state.data,i.value)},p=await o.addRecord(o.state.data,m);p&&p.success?(e.value=!1,o.state.data=await o.getEntity(o.state.data.entityName)):p.validationErrors&&(s.value=JSON.parse(JSON.stringify(p.errvalidationErrorsors)))},f=async()=>{r.item?d():u()},h=g=>{c.value=o.clearErrors(g)};return(g,m)=>{const p=a.resolveComponent("Button"),b=a.resolveComponent("Dialog");return e.value?(a.openBlock(),a.createBlock(b,{key:0,showFooter:!1,visible:e.value,"onUpdate:visible":m[2]||(m[2]=y=>e.value=y),style:{width:"50rem"},breakpoints:{"1199px":"75vw","575px":"90vw"},modal:!0,class:"p-fluid"},{header:a.withCtx(()=>[t.item?(a.openBlock(),a.createElementBlock("span",A0,"Edit "+a.toDisplayString(a.unref(o).state.data.entityName)+" record details",1)):a.createCommentVNode("",!0),t.item?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",M0,"Add "+a.toDisplayString(a.unref(o).state.data.entityName)+" record details",1))]),footer:a.withCtx(()=>[a.createVNode(p,{type:"button",icon:"",label:"Cancel",severity:"secondary",onClick:m[0]||(m[0]=y=>e.value=!1)}),a.createVNode(p,{type:"button",icon:"",label:"Save",severity:"success",onClick:m[1]||(m[1]=y=>f())})]),default:a.withCtx(()=>{var y;return[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(n),(k,C)=>{var _;return a.openBlock(),a.createElementBlock("div",{key:C},[!k.autoGenerated&&!k.foreignKey?(a.openBlock(),a.createBlock(un,{key:0,modelValue:a.unref(i)[k.name],"onUpdate:modelValue":v=>a.unref(i)[k.name]=v,column:k,errors:(_=a.unref(c)[k.name])==null?void 0:_.messages,onInput:h},null,8,["modelValue","onUpdate:modelValue","column","errors"])):a.createCommentVNode("",!0),!k.autoGenerated&&k.foreignKey?(a.openBlock(),a.createBlock(Ws,{key:1,modelValue:a.unref(i)[k.name],"onUpdate:modelValue":v=>a.unref(i)[k.name]=v,entityName:k.foreignKey.referencedEntityName,columnName:k.name,relatedEntityColumn:k.foreignKey.referencedColumnName},null,8,["modelValue","onUpdate:modelValue","entityName","columnName","relatedEntityColumn"])):a.createCommentVNode("",!0)])}),128)),((y=a.unref(s))==null?void 0:y.length)>0?(a.openBlock(),a.createBlock(js,{key:0,errors:a.unref(s)},null,8,["errors"])):a.createCommentVNode("",!0)]}),_:1},8,["visible"])):a.createCommentVNode("",!0)}}},V0={class:"flex justify-between items-start"},F0={class:"flex-grow-1"},I0={class:"tile-grid"},L0={class:"font-bold text-lg text-700"},z0={class:"flex flex-col gap-2"},j0=Ne({__name:"EntityListSingleRecord",props:{item:Object},setup(t){const e=t,o=a.inject("entityObject"),r=a.ref([]),n=a.ref(!1),i=a.ref(!1);a.onMounted(()=>{r.value=o.getEntityColumns(o.state.data)});const s=()=>{n.value=!0},l=()=>{i.value=!0},c=u=>{u.remove==!0?d():n.value=!1},d=async()=>{const u=o.getPrimaryKeyColumn(o.state.data),f=e.item[u.name],h=await o.entityRecordDelete(o.state.data,f);if(h!=null&&h.success){n.value=!1;const g={sortBy:o.state.data.sortBy,sortDirection:o.state.data.sortDirection,pageSize:o.state.data.pageSize,currentPage:o.state.data.currentPage,columnList:null,filter:o.state.data.filters,fullTextSearch:o.state.data.fullTextSearch},m=await o.searchRecord(o.state.data,g);if(m!=null&&m.response){let p=m==null?void 0:m.response;o.setEntity(p)}console.log(h)}};return(u,f)=>{const h=a.resolveComponent("Button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",V0,[a.createElementVNode("div",F0,[a.createElementVNode("div",I0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(g,m)=>(a.openBlock(),a.createElementBlock("div",{key:m},[a.createElementVNode("span",L0,a.toDisplayString(g.name)+" : ",1),a.createVNode(Li,{column:g,value:t.item[g.name]},null,8,["column","value"])]))),128))])]),a.createElementVNode("div",z0,[a.createVNode(h,{onClick:f[0]||(f[0]=g=>l()),icon:"pi pi-pencil",severity:"success",size:"",rounded:"","aria-label":"Edit"}),a.createVNode(h,{onClick:f[1]||(f[1]=g=>s()),icon:"pi pi-trash",severity:"danger",rounded:"","aria-label":"Delete"})])]),i.value?(a.openBlock(),a.createBlock(pr,{key:0,showEntityForm:i.value,"onUpdate:showEntityForm":f[2]||(f[2]=g=>i.value=g),item:t.item},null,8,["showEntityForm","item"])):a.createCommentVNode("",!0),n.value?(a.openBlock(),a.createBlock(Bn,{key:1,showDeleteDialog:n.value,"onUpdate:showDeleteDialog":f[3]||(f[3]=g=>n.value=g),onOnDeleteItem:c},null,8,["showDeleteDialog"])):a.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-ea3b758f"]]),W0=Ne({__name:"EntityListRecordParent",props:{listItemDisplay:String},setup(t){const e=a.inject("entityObject"),o=a.ref([]);return a.watch(()=>e.state.data,r=>{r&&(o.value=r.result,console.log("Entity state updated in child:",e))},{immediate:!0}),(r,n)=>(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,(i,s)=>(a.openBlock(),a.createElementBlock("div",{key:s,class:"card rounded-md p-5 my-2 shadow-lg relative tile"},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listItemDisplay!=null&&t.listItemDisplay!=""?t.listItemDisplay:j0),a.mergeProps({ref_for:!0},{item:i}),null,16))]))),128))}},[["__scopeId","data-v-b13f837f"]]),H0={};function U0(t,e){return null}const q0=Ne(H0,[["render",U0]]),Y0={class:"my-2"},X0={class:"m-0"},K0={__name:"EntityListHeaderSlot",setup(t){const e=a.inject("entityObject");let o=a.ref("");return a.watch(()=>e.state.data,r=>{r&&(o.value=r.entityName)},{immediate:!0}),(r,n)=>{const i=a.resolveComponent("Toolbar");return a.openBlock(),a.createBlock(i,{class:"p-2 my-2"},{start:a.withCtx(()=>[a.createElementVNode("div",Y0,[a.createElementVNode("h2",X0,"EntityName: "+a.toDisplayString(a.unref(o)),1)])]),end:a.withCtx(()=>n[0]||(n[0]=[])),_:1})}}},G0={class:"flex flex-col mb-5"},J0={class:"col-12"},Q0={class:"flex flex-col mb-5"},Z0={class:"col-12"},eb={key:0},tb={class:"flex flex-col mb-5"},ob={class:"col-12"},rb={class:"flex flex-col mb-5"},nb={class:"col-12"},ib={class:"flex flex-col mb-5"},ab={class:"col-12"},sb={class:"flex flex-row justify-between items-center"},lb={key:1},cb={class:"flex flex-row justify-between items-center"},db={key:1,class:"text-red-500"},ub={class:"flex flex-col"},fb={class:"flex flex-row justify-between items-center"},hb={__name:"FilterSortSidebar",props:a.mergeModels({headers:Array,operatorMap:Object,sortCallback:Function,filterCallback:Function,getColumnDatatype:Function,getDatatypeByField:Function},{sortBy:{},sortByModifiers:{},sortDirection:{},sortDirectionModifiers:{},showFilter:{},showFilterModifiers:{},filters:{},filtersModifiers:{}}),emits:["update:sortBy","update:sortDirection","update:showFilter","update:filters"],setup(t){const e=a.useModel(t,"sortBy"),o=a.useModel(t,"sortDirection"),r=a.useModel(t,"showFilter"),n=a.useModel(t,"filters"),i={gt:"is greater than",dateAfter:"is after",equals:"is equals",dateIs:"is equals",notEquals:"is not equals",dateIsNot:"is not equals",lt:"is less than",dateBefore:"is before",lte:"is less than or equal to",gte:"is greater than or equal to",between:"between",contains:"contains",startsWith:"starts with",notContains:"not contains",endsWith:"ends with"},s=[{label:"Starts with",value:"startsWith"},{label:"Contains",value:"contains"},{label:"Not contains",value:"notContains"},{label:"Ends with",value:"endsWith"},{label:"Equals",value:"equals"},{label:"Not equals",value:"notEquals"}],l=[{label:"Equals",value:"equals"},{label:"Not equals",value:"notEquals"},{label:"Less than",value:"lt"},{label:"Less than or equal to",value:"lte"},{label:"Greater than",value:"gt"},{label:"Greater than or equal to",value:"gte"}],c=[{label:"Equals",value:"equals"},{label:"Not equals",value:"notEquals"}],d=[{label:"Date is",value:"dateIs"},{label:"Date is not",value:"dateIsNot"},{label:"Date is before",value:"dateBefore"},{label:"Date is after",value:"dateAfter"}],u=[{label:"ASC",value:1},{label:"DESC",value:-1}];let f=[];const h=a.computed(()=>t.headers.filter(w=>w.sortable)),g=a.computed(()=>t.headers.filter(w=>w.filterable)),m=w=>t.headers.filter(x=>{var B;return x.filterable?((B=n.value[w])==null?void 0:B.columnName)===x.name?!0:!n.value.some((T,E)=>E!==w&&T.columnName===x.name):!1}).map(x=>({label:x.name,value:x.field})),p=w=>{let x="";switch(t.getDatatypeByField(w.columnName).toLowerCase()){case"string":case"uuid":x="startsWith";break;case"date":x="dateIs";break;case"numeric":case"int":case"integer":x="equals";break;case"bool":case"boolean":x="equals";break}w.operator=x,w.value=""},b=w=>{const x=t.getDatatypeByField(w.columnName);switch(x&&x.toLowerCase()){case"integer":case"int":case"numeric":f=l;break;case"date":f=d;break;case"bool":case"boolean":f=c;break;default:f=s}return f},y=w=>{if(w&&w.columnName){const x=t.getDatatypeByField(w.columnName);return t.getColumnDatatype(x)}else return""},k=()=>{for(let w=0;w<n.value.length;w++){const x=n.value[w];x.editing=!1}n.value.push({columnName:"",value:"",operator:"",editing:!0})},C=w=>{n.value.splice(w,1)},_=w=>{w.editing=!w.editing},v=()=>{let w=[],x=JSON.parse(JSON.stringify(n.value));for(let B=0;B<x.length;B++){const T=x[B];delete T.editing,T.columnName&&T.operator&&T.value&&(T.columnType=t.getDatatypeByField(T.columnName),T.operator=t.operatorMap[T.operator],w.push(T))}t.filterCallback(w)},S=()=>{t.sortCallback()};return(w,x)=>{const B=a.resolveComponent("Select"),T=a.resolveComponent("Divider"),E=a.resolveComponent("InputNumber"),O=a.resolveComponent("DatePicker"),M=a.resolveComponent("InputText"),W=a.resolveComponent("Button"),Y=a.resolveComponent("Drawer");return a.openBlock(),a.createBlock(Y,{visible:r.value,"onUpdate:visible":x[4]||(x[4]=I=>r.value=I),header:"Sorting and Filter",blockScroll:!0,position:"right",class:"layout-profile-sidebar !w-full md:!w-80 lg:!w-[30rem]",pt:{closeButton:"ml-auto"}},{default:a.withCtx(()=>[a.createElementVNode("div",G0,[x[5]||(x[5]=a.createElementVNode("div",{class:"col-12 font-bold"},"Sort Column",-1)),a.createElementVNode("div",J0,[a.createVNode(B,{modelValue:e.value,"onUpdate:modelValue":x[0]||(x[0]=I=>e.value=I),options:h.value,optionLabel:"name",optionValue:"field",highlightOnSelect:!1,class:"w-full",onChange:x[1]||(x[1]=I=>S(w.event))},null,8,["modelValue","options"])])]),a.createElementVNode("div",Q0,[x[6]||(x[6]=a.createElementVNode("div",{class:"col-12 font-bold"},[a.createElementVNode("div",{class:"col-12 font-bold"},"Sort Direction")],-1)),a.createElementVNode("div",Z0,[a.createVNode(B,{modelValue:o.value,"onUpdate:modelValue":x[2]||(x[2]=I=>o.value=I),options:u,optionLabel:"label",optionValue:"value",highlightOnSelect:!1,class:"w-full",onChange:x[3]||(x[3]=I=>S(w.event))},null,8,["modelValue"])])]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,(I,z)=>(a.openBlock(),a.createElementBlock("div",{key:z},[I.editing?(a.openBlock(),a.createElementBlock("div",eb,[a.createVNode(T),a.createElementVNode("div",tb,[x[7]||(x[7]=a.createElementVNode("div",{class:"col-12 font-bold"},"Filter Column",-1)),a.createElementVNode("div",ob,[a.createVNode(B,{modelValue:I.columnName,"onUpdate:modelValue":F=>I.columnName=F,options:m(z),optionLabel:"label",placeholder:"Select column",optionValue:"value",highlightOnSelect:!1,class:"w-full",onChange:F=>p(I)},null,8,["modelValue","onUpdate:modelValue","options","onChange"])])]),a.createElementVNode("div",rb,[x[8]||(x[8]=a.createElementVNode("div",{class:"col-12 font-bold"},"Filter Operator",-1)),a.createElementVNode("div",nb,[a.createVNode(B,{modelValue:I.operator,"onUpdate:modelValue":F=>I.operator=F,options:b(I),optionLabel:"label",placeholder:"Select operator",optionValue:"value",highlightOnSelect:!1,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","options"])])]),a.createElementVNode("div",ib,[x[9]||(x[9]=a.createElementVNode("div",{class:"col-12 font-bold"},"Filter value",-1)),a.createElementVNode("div",ab,[y(I)=="numeric"?(a.openBlock(),a.createBlock(E,{key:0,format:!1,class:"w-full",modelValue:I.value,"onUpdate:modelValue":F=>I.value=F,placeholder:"Search value"},null,8,["modelValue","onUpdate:modelValue"])):y(I)=="date"?(a.openBlock(),a.createBlock(O,{key:1,class:"w-full",modelValue:I.value,"onUpdate:modelValue":F=>I.value=F,dateFormat:"mm/dd/yy",placeholder:"mm/dd/yyyy"},null,8,["modelValue","onUpdate:modelValue"])):(a.openBlock(),a.createBlock(M,{key:2,modelValue:I.value,"onUpdate:modelValue":F=>I.value=F,class:"w-full",placeholder:"Search value"},null,8,["modelValue","onUpdate:modelValue"]))])]),a.createElementVNode("div",sb,[a.createVNode(W,{label:"Hide",icon:"",severity:"warn",onClick:F=>_(I)},null,8,["onClick"]),a.createVNode(W,{label:"Delete",icon:"",severity:"danger",onClick:F=>C(z)},null,8,["onClick"])])])):a.createCommentVNode("",!0),I.editing?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",lb,[a.createVNode(T),a.createElementVNode("div",cb,[a.createElementVNode("span",null,[I.columnName||I.operator||I.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("span",{class:a.normalizeClass({"text-red-500":!I.columnName})},a.toDisplayString(I.columnName?" "+I.columnName:" column"),3),a.createElementVNode("span",{class:a.normalizeClass({"text-red-500":!i[I.operator]})},a.toDisplayString(I.operator?" "+i[I.operator]:" operator"),3),a.createElementVNode("span",{class:a.normalizeClass({"text-red-500":!I.value})},a.toDisplayString(I.value?" "+I.value:" value"),3)],64)):(a.openBlock(),a.createElementBlock("span",db,"Filter is empty"))]),a.createVNode(W,{label:"Edit",icon:"",severity:"info",onClick:F=>_(I)},null,8,["onClick"])])]))]))),128)),a.createElementVNode("div",ub,[a.createVNode(T),a.createElementVNode("div",fb,[a.createVNode(W,{label:"Add",disabled:g.value.length===n.value.length,icon:"",severity:"success",onClick:k},null,8,["disabled"]),a.createVNode(W,{label:"Apply",severity:"info",onClick:v})])])]),_:1},8,["visible"])}}},gb={class:"my-2"},Zt={__name:"EntityListFilters",setup(t){const e=a.inject("entityObject"),o=a.ref(!1),r=a.ref([]),n=a.ref([]),i=a.ref(""),s=a.ref(1);let l=a.ref("");const c=a.ref([]),d=a.ref([]),u={gt:"GREATER_THAN",dateAfter:"GREATER_THAN",equals:"EQUAL",dateIs:"EQUAL",notEquals:"NOT_EQUAL",dateIsNot:"NOT_EQUAL",lt:"LESS_THAN",dateBefore:"LESS_THAN",lte:"LESS_THAN_EQUAL",gte:"GREATER_THAN_EQUAL",between:"BETWEEN",contains:"CONTAINS",startsWith:"STARTS_WITH",notContains:"NOT_CONTAINS",endsWith:"ENDS_WITH"};a.watch(()=>e.state.data,_=>{if(_&&(c.value=e.getEntityColumns(_),d.value=y(c.value),i.value=="")){const v=e.getPrimaryKeyColumn(_);i.value=v.name}},{immediate:!0});const f=()=>{o.value=!o.value},h=_=>{n.value=_,g()},g=async()=>{const _={sortBy:[i.value],sortDirection:s.value===1?"ASC":"DESC",pageSize:e.state.data.pageSize,currentPage:e.state.data.currentPage,columnList:null,filter:n.value,fullTextSearch:l.value},v=await e.searchRecord(e.state.data,_);if(v!=null&&v.success){let S=v==null?void 0:v.response;e.setEntity(S)}},m=()=>{g()},p=()=>{r.value=[],n.value=[],g()},b=()=>{g()},y=_=>_.map(v=>({field:v.name,name:v.displayName?v.displayName:v.name,filterable:v.filterable,datatype:v.type,sortable:v.indexColumn,displayFormatKey:v.displayFormatKey,displayFormat:v.displayFormat})),k=_=>{switch(_.toLowerCase()){case"integer":case"int":case"numeric":return"numeric";case"date":return"date";case"bool":case"boolean":return"boolean";default:return"text"}},C=_=>{const v=c.value.find(S=>S.name===_);return v?v.type:null};return(_,v)=>{const S=a.resolveComponent("Button"),w=a.resolveComponent("InputIcon"),x=a.resolveComponent("InputText"),B=a.resolveComponent("IconField"),T=a.resolveComponent("Toolbar");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(T,{class:"p-2 my-2"},{start:a.withCtx(()=>[a.createElementVNode("div",gb,[a.createVNode(S,{type:"button",size:"medium",icon:"pi pi-filter",label:"Filter",severity:"info",onClick:v[0]||(v[0]=E=>f())})]),a.createVNode(S,{class:"ml-3",size:"medium",type:"button",icon:"pi pi-filter-slash",label:"Clear",severity:"warn",onClick:v[1]||(v[1]=E=>p())})]),end:a.withCtx(()=>[a.createVNode(B,{iconPosition:"right",class:"block mt-2 md:mt-0"},{default:a.withCtx(()=>[a.createVNode(w,{onClick:v[2]||(v[2]=E=>b()),class:"pi pi-search"}),a.createVNode(x,{class:"w-full sm:w-auto",onKeyup:v[3]||(v[3]=a.withKeys(E=>b(),["enter"])),modelValue:a.unref(l),"onUpdate:modelValue":v[4]||(v[4]=E=>a.isRef(l)?l.value=E:l=E),placeholder:"Search..."},null,8,["modelValue"])]),_:1})]),_:1}),a.createVNode(hb,{sortBy:i.value,"onUpdate:sortBy":v[5]||(v[5]=E=>i.value=E),sortDirection:s.value,"onUpdate:sortDirection":v[6]||(v[6]=E=>s.value=E),showFilter:o.value,"onUpdate:showFilter":v[7]||(v[7]=E=>o.value=E),filters:r.value,"onUpdate:filters":v[8]||(v[8]=E=>r.value=E),headers:d.value,operatorMap:u,sortCallback:m,filterCallback:h,getColumnDatatype:k,getDatatypeByField:C},null,8,["sortBy","sortDirection","showFilter","filters","headers"])],64)}}},br={__name:"EntityListPagination",setup(t){const e=a.ref(25),o=a.ref(0),r=a.ref(0),n=a.ref(0);let i=a.inject("entityObject");const s=async l=>{e.value=l.rows,o.value=l.page,n.value=l.first;const c={sortBy:i.state.data.sortBy,sortDirection:i.state.data.sortDirection,columnList:null,filter:i.state.data.filters,fullTextSearch:i.state.data.fullTextSearch,pageSize:e.value,currentPage:o.value},d=await i.searchRecord(i.state.data,c);if(d!=null&&d.success){let u=d==null?void 0:d.response;i.setEntity(u),r.value=d.response.totalRecords,n.value=o.value*e.value}};return a.watch(()=>{var l,c;return(c=(l=i==null?void 0:i.state)==null?void 0:l.data)==null?void 0:c.totalRecords},l=>{r&&(r.value=l)},{immediate:!0}),(l,c)=>{const d=a.resolveComponent("Paginator");return a.openBlock(),a.createBlock(d,{class:"my-4",rows:e.value,totalRecords:r.value,rowsPerPageOptions:[10,25,50,100],onPage:s,template:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink CurrentPageReport RowsPerPageDropdown",currentPageReportTemplate:"Showing {first} to {last} of {totalRecords} items"},null,8,["rows","totalRecords"])}}},mb={class:"flex flex-row justify-end p-2 my-2"},eo={__name:"EntityListAddButton",setup(t){const e=a.ref(!1),o=()=>{e.value=!0};return(r,n)=>{const i=a.resolveComponent("Button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",mb,[a.createVNode(i,{label:"Add",size:"medium",icon:"pi pi-plus",onClick:n[0]||(n[0]=s=>o())})]),e.value?(a.openBlock(),a.createBlock(pr,{key:0,showEntityForm:e.value,"onUpdate:showEntityForm":n[1]||(n[1]=s=>e.value=s)},null,8,["showEntityForm"])):a.createCommentVNode("",!0)],64)}}},Sl={__name:"EntityList",props:{entityName:String,listDisplay:String,listItemDisplay:String,listHeader:String,listFooter:String,listFilter:String,listPagination:String,showAddButton:Boolean,listFilerSlot:Boolean,className:{type:String,default:"default-class"}},setup(t,{expose:e}){const o=Sn(),r=lt();a.provide("entityObject",o);const n=t;return e({props:n,reload:()=>{console.log("reload data")}}),a.watch(()=>r.globalConfigs.appId,async s=>{if(s){const l=await o.getEntity(n.entityName);l.success?o.setEntity(l.response):o.setEntity({result:[]})}},{immediate:!0}),(s,l)=>{var c,d,u;return s.$slots["list-item-display"]?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[t.showAddButton?(a.openBlock(),a.createBlock(eo,{key:0})):a.createCommentVNode("",!0),t.listFilerSlot?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listFilter||Zt),{key:1})):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(((u=(d=(c=a.unref(o))==null?void 0:c.state)==null?void 0:d.data)==null?void 0:u.result)||[],f=>a.renderSlot(s.$slots,"list-item-display",{item:f})),256))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listHeader||K0))),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listFilter||Zt))),t.showAddButton?(a.openBlock(),a.createBlock(eo,{key:0})):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listDisplay||W0),a.normalizeProps(a.guardReactiveProps({listItemDisplay:t.listItemDisplay})),null,16)),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listPagination||br))),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listFooter||q0)))],64))}}},pb={key:0},bb=["href"],yb={key:1},kb={class:"action-buttons"},xb=Ne({__name:"EntityListingSingleRecord",props:{item:Object,entityName:String,showAddButton:Boolean,showFilters:Boolean,className:String,listDisplay:String,listHeader:String,listClass:String,listItemClass:String,listFooter:String,listFilter:String,listPagination:String,displayField:String,baseUrl:String,hrefKey:String,listItemDisplay:String,listHeaderSlot:Boolean,showPagination:Boolean,className:{type:String,default:"default-class"},editable:Boolean,deletable:Boolean,linkedEntity:Array},setup(t){const e=t;console.log("props entitylistsingle record",e.item);const o=a.inject("entityObject"),r=a.ref([]),n=a.ref(null),i=a.ref(null),s=a.ref(!1),l=a.ref(!1);a.onMounted(()=>{var h;e.linkedEntity&&e.linkedEntity.length>0?r.value=Object.keys(e.linkedEntity[0]).map(g=>({name:g})):r.value=o==null?void 0:o.getEntityColumns(o.state.data),n.value=((h=r==null?void 0:r.value)==null?void 0:h.find(g=>g.name===e.displayField))||null,n.value&&(i.value=e==null?void 0:e.item[n.value.name])});const c=()=>{s.value=!0},d=()=>{l.value=!0},u=async h=>{h.remove?f():s.value=!1},f=async()=>{const h=o.getPrimaryKeyColumn(o.state.data),g=e.item[h.name],m=await o.entityRecordDelete(o.state.data,g);if(m!=null&&m.success){s.value=!1;const p=await o.searchRecord(o.state.data,{sortBy:o.state.data.sortBy,sortDirection:o.state.data.sortDirection,pageSize:o.state.data.pageSize,currentPage:o.state.data.currentPage,columnList:null,filter:o.state.data.filters,fullTextSearch:o.state.data.fullTextSearch});p!=null&&p.response&&o.setEntity(p.response)}};return(h,g)=>{const m=a.resolveComponent("Button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("ul",{class:a.normalizeClass(e.className)},[n.value?(a.openBlock(),a.createElementBlock("li",pb,[a.createElementVNode("a",{href:`${t.baseUrl}/${t.item[t.hrefKey]}`,target:"_blank",class:"hover:underline"},a.toDisplayString(i.value),9,bb)])):(a.openBlock(),a.createElementBlock("li",yb,[a.createElementVNode("span",null,"No matching field found for '"+a.toDisplayString(i.value)+"'.",1)])),a.createElementVNode("li",kb,[t.editable?(a.openBlock(),a.createBlock(m,{key:0,onClick:g[0]||(g[0]=p=>d()),icon:"pi pi-pencil",severity:"success",rounded:"","aria-label":"Edit"})):a.createCommentVNode("",!0),t.deletable?(a.openBlock(),a.createBlock(m,{key:1,onClick:g[1]||(g[1]=p=>c()),icon:"pi pi-trash",severity:"danger",rounded:"","aria-label":"Delete"})):a.createCommentVNode("",!0)])],2),l.value?(a.openBlock(),a.createBlock(pr,{key:0,showEntityForm:l.value,"onUpdate:showEntityForm":g[2]||(g[2]=p=>l.value=p),item:t.item},null,8,["showEntityForm","item"])):a.createCommentVNode("",!0),s.value?(a.openBlock(),a.createBlock(Bn,{key:1,showDeleteDialog:s.value,"onUpdate:showDeleteDialog":g[3]||(g[3]=p=>s.value=p),onOnDeleteItem:u},null,8,["showDeleteDialog"])):a.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-ff32a72b"]]),vb={key:0,class:"error-message"},wb={class:"text-red-500 font-bold"},Cb={key:0},_b={key:1},Sb={key:2},Bb={key:3},Eb={key:1},Bl=Ne({__name:"EntityListing",props:{entityName:String,listClass:String,listItemClass:String,listHeader:String,listFooter:String,listFilter:String,listPagination:String,listItemDisplay:String,showAddButton:Boolean,showFilters:Boolean,listHeaderSlot:Boolean,showPagination:Boolean,className:{type:String,default:"default-class"},displayField:String,baseUrl:String,hrefKey:String,editable:Boolean,deletable:Boolean,linkedEntity:Array},setup(t,{expose:e,emit:o}){const r=Sn(),n=lt();a.provide("entityObject",r);const i=o,s=t,l=a.ref([]);return s.linkedEntity?a.watch(()=>s.linkedEntity,u=>{u&&(l.value=u,i("linkedEntityChanged",u))},{immediate:!0}):a.watch(()=>r.state.data,u=>{u&&(l.value=u.result,i("linkedEntityChanged",u.result))},{immediate:!0}),e({props:s,reload:()=>{console.log("reload data")},filter:u=>{console.log("filter data in unordered",u)}}),a.watch(()=>n.globalConfigs.appId,async u=>{if(u)if(s.linkedEntity&&s.linkedEntity.length>0)r.setEntity(s.linkedEntity);else{const f=await r.getEntity(s.entityName);r.setEntity(f.success?f.response:{result:[]})}},{immediate:!0}),(u,f)=>{var h,g,m;return a.openBlock(),a.createElementBlock("div",a.mergeProps(u.$attrs,{class:"flex flex-col"}),[a.renderSlot(u.$slots,"header",{},void 0,!0),u.$slots["list-item-display"]?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[t.showAddButton?(a.openBlock(),a.createBlock(eo,{key:0})):a.createCommentVNode("",!0),t.showFilters?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listFilter||Zt),{key:1})):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(t.listClass)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.linkedEntity&&t.linkedEntity.length>0?t.linkedEntity:((m=(g=(h=a.unref(r))==null?void 0:h.state)==null?void 0:g.data)==null?void 0:m.result)||[],p=>a.renderSlot(u.$slots,"list-item-display",{item:p,class:a.normalizeClass(t.listItemClass)},void 0,!0)),256))],2),t.showPagination?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listPagination||br),{key:2})):a.createCommentVNode("",!0)],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[!t.displayField||!t.baseUrl||!t.hrefKey?(a.openBlock(),a.createElementBlock("div",vb,[a.createElementVNode("p",wb,[f[0]||(f[0]=a.createTextVNode(" Error: Missing required props - ")),t.entityName?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",Cb,"Entity Name")),t.displayField?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",_b,"Display Field")),t.baseUrl?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",Sb,"Base Url")),t.hrefKey?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",Bb,"Href Key"))])])):(a.openBlock(),a.createElementBlock("div",Eb,[t.showFilters?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listFilter||Zt),{key:0})):a.createCommentVNode("",!0),t.showAddButton?(a.openBlock(),a.createBlock(eo,{key:1})):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.value,(p,b)=>(a.openBlock(),a.createElementBlock("div",{key:b},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listItemDisplay!=null&&t.listItemDisplay!=""?t.listItemDisplay:xb),a.mergeProps({ref_for:!0},{item:p,...s}),null,16))]))),128)),t.showPagination?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listPagination||br),{key:2})):a.createCommentVNode("",!0)])),a.renderSlot(u.$slots,"footer",{},void 0,!0)],64)),a.renderSlot(u.$slots,"footer",{},void 0,!0)],16)}}},[["__scopeId","data-v-36faf954"]]),Rb={class:"p-6 bg-white shadow-md rounded-lg border border-gray-300 flex flex-col"},Db={class:"flex justify-between items-start gap-4"},Ob={class:"flex-grow"},Nb={class:"flex flex-col gap-2"},Tb={class:"font-bold text-gray-700"},Pb={class:"text-gray-600"},$b={class:"flex flex-col gap-2"},Ab=Ne({__name:"EntityListingTileSingleRecord",props:{item:Object,entityName:String,showAddButton:Boolean,showFilters:Boolean,className:String,listDisplay:String,listHeader:String,listFooter:String,listFilter:String,listPagination:String,listItemDisplay:String,listHeaderSlot:Boolean,showPagination:Boolean,className:{type:String,default:"default-class"},editable:Boolean,deletable:Boolean},setup(t){const e=t,o=a.inject("entityObject"),r=a.ref([]),n=a.ref(null),i=a.ref(null),s=a.ref(!1),l=a.ref(!1);a.onMounted(()=>{r.value=o.getEntityColumns(o.state.data),n.value=r.value.find(h=>h.name===e.displayField)||null,n.value&&(i.value=e.item[n.value.name])});const c=()=>{s.value=!0},d=()=>{l.value=!0},u=async h=>{h.remove?f():s.value=!1},f=async()=>{const h=o.getPrimaryKeyColumn(o.state.data),g=e.item[h.name],m=await o.entityRecordDelete(o.state.data,g);if(m!=null&&m.success){s.value=!1;const p=await o.searchRecord(o.state.data,{sortBy:o.state.data.sortBy,sortDirection:o.state.data.sortDirection,pageSize:o.state.data.pageSize,currentPage:o.state.data.currentPage,columnList:null,filter:o.state.data.filters,fullTextSearch:o.state.data.fullTextSearch});p!=null&&p.response&&o.setEntity(p.response)}};return(h,g)=>{const m=a.resolveComponent("Button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",Rb,[a.createElementVNode("div",Db,[a.createElementVNode("div",Ob,[a.createElementVNode("div",Nb,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(p,b)=>(a.openBlock(),a.createElementBlock("div",{key:b,class:"flex flex-col"},[a.createElementVNode("span",Tb,a.toDisplayString(p.displayName||p.name)+":",1),a.createElementVNode("span",Pb,a.toDisplayString(t.item[p.name]),1)]))),128))])]),a.createElementVNode("div",$b,[t.editable?(a.openBlock(),a.createBlock(m,{key:0,onClick:g[0]||(g[0]=p=>d()),icon:"pi pi-pencil",severity:"success",rounded:"","aria-label":"Edit"})):a.createCommentVNode("",!0),t.deletable?(a.openBlock(),a.createBlock(m,{key:1,onClick:g[1]||(g[1]=p=>c()),icon:"pi pi-trash",severity:"danger",rounded:"","aria-label":"Delete"})):a.createCommentVNode("",!0)])])]),l.value?(a.openBlock(),a.createBlock(pr,{key:0,showEntityForm:l.value,"onUpdate:showEntityForm":g[2]||(g[2]=p=>l.value=p),item:t.item},null,8,["showEntityForm","item"])):a.createCommentVNode("",!0),s.value?(a.openBlock(),a.createBlock(Bn,{key:1,showDeleteDialog:s.value,"onUpdate:showDeleteDialog":g[3]||(g[3]=p=>s.value=p),onOnDeleteItem:u},null,8,["showDeleteDialog"])):a.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-6ec4735d"]]),Mb={class:"flex flex-wrap gap-4 p-2"},Vb={key:0,class:"error-message"},Fb={class:"text-red-500 font-bold"},Ib={key:0},Lb={key:1},zb={class:"flex flex-wrap gap-4 p-4"},El=Ne({__name:"EntityListingTile",props:{entityName:String,listDisplay:String,listItemDisplay:String,listHeader:String,listFooter:String,listFilter:String,listPagination:String,showAddButton:Boolean,showFilters:Boolean,listHeaderSlot:Boolean,showPagination:Boolean,className:{type:String,default:"default-class"},editable:Boolean,deletable:Boolean,dynamicPropName:{type:String,default:"item"}},setup(t,{expose:e}){const o=Sn(),r=lt();a.provide("entityObject",o);const n=t,i=a.ref([]);return a.watch(()=>o.state.data,c=>{c&&(i.value=c.result)},{immediate:!0}),e({props:n,reload:()=>{console.log("reload data")},filter:()=>{console.log("filter data in unordered")}}),a.watch(()=>r.globalConfigs.appId,async c=>{if(c){const d=await o.getEntity(n.entityName);o.setEntity(d.success?d.response:{result:[]})}},{immediate:!0}),(c,d)=>{var u,f,h;return a.openBlock(),a.createElementBlock("div",a.normalizeProps(a.guardReactiveProps(c.$attrs)),[c.$slots["list-item-display-tile"]?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.renderSlot(c.$slots,"header",{},void 0,!0),t.showAddButton?(a.openBlock(),a.createBlock(eo,{key:0})):a.createCommentVNode("",!0),t.showFilters?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listFilter||Zt),{key:1})):a.createCommentVNode("",!0),a.createElementVNode("div",Mb,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(((h=(f=(u=a.unref(o))==null?void 0:u.state)==null?void 0:f.data)==null?void 0:h.result)||[],(g,m)=>(a.openBlock(),a.createElementBlock("div",{key:m,class:"flex flex-col p-6 border border-gray-300 shadow-md rounded-lg bg-white w-full sm:w-1/2 md:w-1/3 lg:w-1/4 xl:w-1/5 2xl:w-1/8"},[a.renderSlot(c.$slots,"list-item-display-tile",a.normalizeProps({[t.dynamicPropName||""]:g}),void 0,!0)]))),128))]),a.renderSlot(c.$slots,"footer",{},void 0,!0)],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.renderSlot(c.$slots,"header",{},void 0,!0),t.entityName?(a.openBlock(),a.createElementBlock("div",Lb,[t.showFilters?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listFilter||Zt),{key:0})):a.createCommentVNode("",!0),t.showAddButton?(a.openBlock(),a.createBlock(eo,{key:1})):a.createCommentVNode("",!0),a.createElementVNode("div",zb,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,(g,m)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listItemDisplay!=null&&t.listItemDisplay!=""?t.listItemDisplay:Ab),a.mergeProps({key:m,ref_for:!0},{item:g,...n}),null,16))),128))]),t.showPagination?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listPagination||br),{key:2})):a.createCommentVNode("",!0)])):(a.openBlock(),a.createElementBlock("div",Vb,[a.createElementVNode("p",Fb,[d[0]||(d[0]=a.createTextVNode(" Error: Missing required props - ")),t.entityName?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",Ib,"Entity Name"))])])),a.renderSlot(c.$slots,"footer",{},void 0,!0)],64))],16)}}},[["__scopeId","data-v-705f9c5c"]]),jb={class:"p-6 bg-white shadow-md rounded-lg border border-gray-300 flex flex-col responsive-box"},Wb={class:"flex justify-between items-start gap-4"},Hb={class:"flex-grow"},Ub={class:"flex flex-col gap-2"},qb={class:"font-bold text-gray-700"},Yb={class:"text-gray-600"},Xb={class:"flex flex-col gap-2"},Kb=Ne({__name:"EntityListingCarouselSingleRecord",props:{item:Object,entityName:String,showAddButton:Boolean,showFilters:Boolean,className:String,listDisplay:String,listHeader:String,listFooter:String,listFilter:String,listPagination:String,listItemDisplay:String,listHeaderSlot:Boolean,showPagination:Boolean,className:{type:String,default:"default-class"},editable:Boolean,deletable:Boolean},setup(t){const e=t,o=a.inject("entityObject"),r=a.ref([]),n=a.ref(null),i=a.ref(null),s=a.ref(!1),l=a.ref(!1);a.onMounted(()=>{r.value=o.getEntityColumns(o.state.data),n.value=r.value.find(h=>h.name===e.displayField)||null,n.value&&(i.value=e.item[n.value.name])});const c=()=>{s.value=!0},d=()=>{l.value=!0},u=async h=>{h.remove?f():s.value=!1},f=async()=>{const h=o.getPrimaryKeyColumn(o.state.data),g=e.item[h.name],m=await o.entityRecordDelete(o.state.data,g);if(m!=null&&m.success){s.value=!1;const p=await o.searchRecord(o.state.data,{sortBy:o.state.data.sortBy,sortDirection:o.state.data.sortDirection,pageSize:o.state.data.pageSize,currentPage:o.state.data.currentPage,columnList:null,filter:o.state.data.filters,fullTextSearch:o.state.data.fullTextSearch});p!=null&&p.response&&o.setEntity(p.response)}};return(h,g)=>{const m=a.resolveComponent("Button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",jb,[a.createElementVNode("div",Wb,[a.createElementVNode("div",Hb,[a.createElementVNode("div",Ub,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(p,b)=>(a.openBlock(),a.createElementBlock("div",{key:b,class:"flex flex-col"},[a.createElementVNode("span",qb,a.toDisplayString(p.displayName||p.name)+":",1),a.createElementVNode("span",Yb,a.toDisplayString(t.item[p.name]),1)]))),128))])]),a.createElementVNode("div",Xb,[t.editable?(a.openBlock(),a.createBlock(m,{key:0,onClick:g[0]||(g[0]=p=>d()),icon:"pi pi-pencil",severity:"success",rounded:"","aria-label":"Edit"})):a.createCommentVNode("",!0),t.deletable?(a.openBlock(),a.createBlock(m,{key:1,onClick:g[1]||(g[1]=p=>c()),icon:"pi pi-trash",severity:"danger",rounded:"","aria-label":"Delete"})):a.createCommentVNode("",!0)])])]),l.value?(a.openBlock(),a.createBlock(pr,{key:0,showEntityForm:l.value,"onUpdate:showEntityForm":g[2]||(g[2]=p=>l.value=p),item:t.item},null,8,["showEntityForm","item"])):a.createCommentVNode("",!0),s.value?(a.openBlock(),a.createBlock(Bn,{key:1,showDeleteDialog:s.value,"onUpdate:showDeleteDialog":g[3]||(g[3]=p=>s.value=p),onOnDeleteItem:u},null,8,["showDeleteDialog"])):a.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-7e37c710"]]);/**
|
|
157
157
|
* Vue 3 Carousel 0.13.0
|
|
158
158
|
* (c) 2025
|
|
159
159
|
* @license MIT
|
|
160
|
-
*/const Rl=["viewport","carousel"],yr={"bottom-to-top":"btt","left-to-right":"ltr","right-to-left":"rtl","top-to-bottom":"ttb"},Dl=["ltr","left-to-right","rtl","right-to-left","ttb","top-to-bottom","btt","bottom-to-top"],Jb={ariaGallery:"Gallery",ariaNavigateToPage:"Navigate to page {slideNumber}",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",iconArrowDown:"Arrow pointing downwards",iconArrowLeft:"Arrow pointing to the left",iconArrowRight:"Arrow pointing to the right",iconArrowUp:"Arrow pointing upwards",itemXofY:"Item {currentSlide} of {slidesCount}"};Object.values(yr);const Ol=["slide","fade"],Nl=["center","start","end","center-even","center-odd"],Ve={autoplay:0,breakpointMode:Rl[0],breakpoints:void 0,dir:Dl[0],enabled:!0,gap:0,height:"auto",i18n:Jb,ignoreAnimations:!1,itemsToScroll:1,itemsToShow:1,modelValue:0,mouseDrag:!0,pauseAutoplayOnHover:!1,preventExcessiveDragging:!1,slideEffect:Ol[0],snapAlign:Nl[0],touchDrag:!0,transition:300,wrapAround:!1},ko=Symbol("carousel"),Qb=t=>{const e=a.shallowReactive([]),o=r=>{r!==void 0?e.slice(r).forEach((n,i)=>{var s;(s=n.exposed)===null||s===void 0||s.setIndex(r+i)}):e.forEach((n,i)=>{var s;(s=n.exposed)===null||s===void 0||s.setIndex(i)})};return{cleanup:()=>{e.splice(0,e.length)},getSlides:()=>e,registerSlide:(r,n)=>{if(!r||r.props.isClone)return;const i=n??e.length;e.splice(i,0,r),o(i),t("slide-registered",{slide:r,index:i})},unregisterSlide:r=>{const n=e.indexOf(r);n!==-1&&(t("slide-unregistered",{slide:r,index:n}),e.splice(n,1),o(n))}}};function Zb(t){return t.length===0?0:t.reduce((o,r)=>o+r,0)/t.length}function Tl({slides:t,position:e,toShow:o}){const r=[],n=e==="before",i=n?-o:0,s=n?0:o;if(t.length<=0)return r;for(let l=i;l<s;l++){const d={index:n?l:l+t.length,isClone:!0,position:e,id:void 0,key:`clone-${e}-${l}`},u=t[(l%t.length+t.length)%t.length].vnode,f=a.cloneVNode(u,d);f.el=null,r.push(f)}return r}const ey='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';function Pl(t){if(!t.el||!(t.el instanceof Element))return;const e=t.el.querySelectorAll(ey);for(const o of e)o instanceof HTMLElement&&!o.hasAttribute("disabled")&&o.getAttribute("aria-hidden")!=="true"&&o.setAttribute("tabindex","-1")}function ty(t,e){return Object.keys(t).filter(o=>!e.includes(o)).reduce((o,r)=>(o[r]=t[r],o),{})}function oy(t){const{isVertical:e,isReversed:o,dragged:r,effectiveSlideSize:n}=t,i=e?r.y:r.x;if(i===0)return 0;const s=Math.round(i/n);return o?s:-s}function It({val:t,max:e,min:o}){return e<o?t:Math.min(Math.max(t,isNaN(o)?t:o),isNaN(e)?t:e)}function ry(t){const{transform:e}=window.getComputedStyle(t);return e.split(/[(,)]/).slice(1,-1).map(o=>parseFloat(o))}function ny(t){let e=1,o=1;return t.forEach(r=>{const n=ry(r);n.length===6&&(e/=n[0],o/=n[3])}),{widthMultiplier:e,heightMultiplier:o}}function iy(t,e){switch(t){case"start":return 0;case"center":case"center-odd":return(e-1)/2;case"center-even":return(e-2)/2;case"end":return e-1;default:return 0}}function ay(t,e,o){switch(t){case"start":return 0;case"center":case"center-odd":return(o-e)/2;case"center-even":return o/2-e;case"end":return o-e;default:return 0}}function Yi({slideSize:t,viewportSize:e,align:o,itemsToShow:r}){return r!==void 0?iy(o,r):t!==void 0&&e!==void 0?ay(o,t,e):0}function $l(t="",e={}){return Object.entries(e).reduce((o,[r,n])=>o.replace(`{${r}}`,String(n)),t)}function Al({val:t,max:e,min:o=0}){const r=e-o+1;return((t-o)%r+r)%r+o}function Xi(t,e=0){let o=!1,r=0,n=null;function i(...s){if(o)return;o=!0;const l=()=>{n=requestAnimationFrame(c=>{c-r>e?(r=c,t(...s),o=!1):l()})};l()}return i.cancel=()=>{n&&(cancelAnimationFrame(n),n=null,o=!1)},i}function En(t,e="px"){if(!(t==null||t===""))return typeof t=="number"||parseFloat(t).toString()===t?`${t}${e}`:t}const sy=a.defineComponent({name:"CarouselAria",setup(){const t=a.inject(ko);return t?()=>a.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},$l(t.config.i18n.itemXofY,{currentSlide:t.currentSlide+1,slidesCount:t.slidesCount})):()=>""}}),ly={autoplay:{default:Ve.autoplay,type:Number},breakpoints:{default:Ve.breakpoints,type:Object},breakpointMode:{default:Ve.breakpointMode,validator(t){return Rl.includes(t)}},enabled:{default:Ve.enabled,type:Boolean},gap:{default:Ve.gap,type:Number},height:{default:Ve.height,type:[Number,String]},ignoreAnimations:{default:!1,type:[Array,Boolean,String]},itemsToScroll:{default:Ve.itemsToScroll,type:Number},itemsToShow:{default:Ve.itemsToShow,type:[Number,String]},i18n:{default:Ve.i18n,type:Object},modelValue:{default:void 0,type:Number},mouseDrag:{default:Ve.mouseDrag,type:Boolean},touchDrag:{default:Ve.touchDrag,type:Boolean},pauseAutoplayOnHover:{default:Ve.pauseAutoplayOnHover,type:Boolean},preventExcessiveDragging:{default:!1,type:Boolean,validator(t,e){return t&&e.wrapAround&&console.warn('[vue3-carousel warn]: "preventExcessiveDragging" cannot be used with wrapAround. The setting will be ignored.'),!0}},snapAlign:{default:Ve.snapAlign,validator(t){return Nl.includes(t)}},slideEffect:{type:String,default:Ve.slideEffect,validator(t){return Ol.includes(t)}},transition:{default:Ve.transition,type:Number},dir:{type:String,default:Ve.dir,validator(t,e){if(!Dl.includes(t))return!1;const o=t in yr?yr[t]:t;return["ttb","btt"].includes(o)&&(!e.height||e.height==="auto")&&console.warn(`[vue3-carousel warn]: The dir "${t}" is not supported with height "auto".`),!0}},wrapAround:{default:Ve.wrapAround,type:Boolean}},Ml=a.defineComponent({name:"VueCarousel",props:ly,emits:["before-init","drag","init","loop","slide-end","slide-registered","slide-start","slide-unregistered","update:modelValue"],setup(t,{slots:e,emit:o,expose:r}){var n;const i=Qb(o),s=i.getSlides(),l=a.computed(()=>s.length),c=a.ref(null),d=a.ref(null),u=a.ref(0),f=a.computed(()=>Object.assign(Object.assign(Object.assign({},Ve),ty(t,["breakpoints","modelValue"])),{i18n:Object.assign(Object.assign({},Ve.i18n),t.i18n)})),h=a.shallowReactive(Object.assign({},f.value)),g=a.ref((n=t.modelValue)!==null&&n!==void 0?n:0),m=a.ref(g.value);a.watch(g,$=>m.value=$);const p=a.ref(0),b=a.computed(()=>Math.ceil((l.value-1)/2)),y=a.computed(()=>l.value-1),k=a.computed(()=>0);let C=null,_=null,v=null;const S=a.computed(()=>u.value+h.gap),w=a.computed(()=>{const $=h.dir||"ltr";return $ in yr?yr[$]:$}),x=a.computed(()=>["rtl","btt"].includes(w.value)),B=a.computed(()=>["ttb","btt"].includes(w.value)),T=a.computed(()=>h.itemsToShow==="auto"),E=a.computed(()=>B.value?"height":"width");function O(){var $;if(!J.value)return;const H=(f.value.breakpointMode==="carousel"?($=c.value)===null||$===void 0?void 0:$.getBoundingClientRect().width:typeof window<"u"?window.innerWidth:0)||0,G=Object.keys(t.breakpoints||{}).map(re=>Number(re)).sort((re,ke)=>+ke-+re),K={};G.some(re=>H>=re?(Object.assign(K,t.breakpoints[re]),K.i18n&&Object.assign(K.i18n,f.value.i18n,t.breakpoints[re].i18n),!0):!1),Object.assign(h,f.value,K)}const M=Xi(()=>{O(),L(),P()}),W=a.shallowReactive(new Set),Y=a.ref([]);function I({widthMultiplier:$,heightMultiplier:H}){Y.value=s.map(G=>{var K;const re=(K=G.exposed)===null||K===void 0?void 0:K.getBoundingRect();return{width:re.width*$,height:re.height*H}})}const z=a.ref({width:0,height:0});function F({widthMultiplier:$,heightMultiplier:H}){var G;const K=((G=d.value)===null||G===void 0?void 0:G.getBoundingClientRect())||{width:0,height:0};z.value={width:K.width*$,height:K.height*H}}function P(){if(!d.value)return;const $=ny(W);if(F($),I($),T.value)u.value=Zb(Y.value.map(H=>H[E.value]));else{const H=Number(h.itemsToShow),G=(H-1)*h.gap;u.value=(z.value[E.value]-G)/H}}function L(){!h.wrapAround&&l.value>0&&(g.value=It({val:g.value,max:y.value,min:k.value})),T.value||(h.itemsToShow=It({val:Number(h.itemsToShow),max:l.value,min:1}))}const Q=a.computed(()=>typeof t.ignoreAnimations=="string"?t.ignoreAnimations.split(","):Array.isArray(t.ignoreAnimations)?t.ignoreAnimations:t.ignoreAnimations?!1:[]);a.watchEffect(()=>L()),a.watchEffect(()=>{P()});let oe;const ne=$=>{const H=$.target;if(!(!(H!=null&&H.contains(c.value))||Array.isArray(Q.value)&&Q.value.includes($.animationName))&&(W.add(H),!oe)){const G=()=>{oe=requestAnimationFrame(()=>{P(),G()})};G()}},X=$=>{const H=$.target;H&&W.delete(H),oe&&W.size===0&&(cancelAnimationFrame(oe),P())},J=a.ref(!1);typeof document<"u"&&a.watchEffect(()=>{J.value&&Q.value!==!1?(document.addEventListener("animationstart",ne),document.addEventListener("animationend",X)):(document.removeEventListener("animationstart",ne),document.removeEventListener("animationend",X))}),a.onMounted(()=>{J.value=!0,O(),Te(),c.value&&(v=new ResizeObserver(M),v.observe(c.value)),o("init")}),a.onBeforeUnmount(()=>{J.value=!1,i.cleanup(),_&&clearTimeout(_),oe&&cancelAnimationFrame(oe),C&&clearInterval(C),v&&(v.disconnect(),v=null),typeof document<"u"&&he(),c.value&&(c.value.removeEventListener("transitionend",P),c.value.removeEventListener("animationiteration",P))});let ie=!1;const ue={x:0,y:0},De=a.reactive({x:0,y:0}),st=a.ref(!1),Xe=a.ref(!1),vt=()=>{st.value=!0},ft=()=>{st.value=!1},U=Xi($=>{if(!$.ctrlKey)switch($.key){case"ArrowLeft":case"ArrowUp":B.value===$.key.endsWith("Up")&&(x.value?ht(!0):ho(!0));break;case"ArrowRight":case"ArrowDown":B.value===$.key.endsWith("Down")&&(x.value?ho(!0):ht(!0));break}},200),V=()=>{document.addEventListener("keydown",U)},he=()=>{document.removeEventListener("keydown",U)};function me($){const H=$.target.tagName;if(["INPUT","TEXTAREA","SELECT"].includes(H)||Le.value||(ie=$.type==="touchstart",!ie&&($.preventDefault(),$.button!==0)))return;ue.x="touches"in $?$.touches[0].clientX:$.clientX,ue.y="touches"in $?$.touches[0].clientY:$.clientY;const G=ie?"touchmove":"mousemove",K=ie?"touchend":"mouseup";document.addEventListener(G,ge,{passive:!1}),document.addEventListener(K,pe,{passive:!0})}const ge=Xi($=>{Xe.value=!0;const H="touches"in $?$.touches[0].clientX:$.clientX,G="touches"in $?$.touches[0].clientY:$.clientY;De.x=H-ue.x,De.y=G-ue.y;const K=oy({isVertical:B.value,isReversed:x.value,dragged:De,effectiveSlideSize:S.value});m.value=h.wrapAround?g.value+K:It({val:g.value+K,max:y.value,min:k.value}),o("drag",{deltaX:De.x,deltaY:De.y})});function pe(){if(ge.cancel(),m.value!==g.value&&!ie){const G=K=>{K.preventDefault(),window.removeEventListener("click",G)};window.addEventListener("click",G)}rt(m.value),De.x=0,De.y=0,Xe.value=!1;const $=ie?"touchmove":"mousemove",H=ie?"touchend":"mouseup";document.removeEventListener($,ge),document.removeEventListener(H,pe)}function Te(){!h.autoplay||h.autoplay<=0||(C=setInterval(()=>{h.pauseAutoplayOnHover&&st.value||ht()},h.autoplay))}function ot(){C&&(clearInterval(C),C=null)}function Tt(){ot(),Te()}const Le=a.ref(!1);function rt($,H=!1){if(!H&&Le.value)return;let G=$,K=$;p.value=g.value,h.wrapAround?K=Al({val:G,max:y.value,min:k.value}):G=It({val:G,max:y.value,min:k.value}),o("slide-start",{slidingToIndex:$,currentSlideIndex:g.value,prevSlideIndex:p.value,slidesCount:l.value}),ot(),Le.value=!0,g.value=G,K!==G&&$o.pause(),o("update:modelValue",K),_=setTimeout(()=>{h.wrapAround&&K!==G&&($o.resume(),g.value=K,o("loop",{currentSlideIndex:g.value,slidingToIndex:$})),o("slide-end",{currentSlideIndex:g.value,prevSlideIndex:p.value,slidesCount:l.value}),Le.value=!1,Tt()},h.transition)}function ht($=!1){rt(g.value+h.itemsToScroll,$)}function ho($=!1){rt(g.value-h.itemsToScroll,$)}function go(){O(),L(),P(),Tt()}a.watch(()=>[f.value,t.breakpoints],()=>O(),{deep:!0}),a.watch(()=>t.autoplay,()=>Tt());const $o=a.watch(()=>t.modelValue,$=>{$!==g.value&&rt(Number($),!0)});o("before-init");const ee=a.computed(()=>{if(!h.wrapAround)return{before:0,after:0};if(T.value)return{before:s.length,after:s.length};const $=Number(h.itemsToShow),H=Math.ceil($+(h.itemsToScroll-1)),G=H-m.value,K=H-(l.value-(m.value+1));return{before:Math.max(0,G),after:Math.max(0,K)}}),wt=a.computed(()=>ee.value.before?T.value?Y.value.slice(-1*ee.value.before).reduce(($,H)=>$+H[E.value]+h.gap,0)*-1:ee.value.before*S.value*-1:0),Ae=a.computed(()=>{var $;if(T.value){const H=(g.value%s.length+s.length)%s.length;return Yi({slideSize:($=Y.value[H])===null||$===void 0?void 0:$[E.value],viewportSize:z.value[E.value],align:h.snapAlign})}return Yi({align:h.snapAlign,itemsToShow:+h.itemsToShow})}),R=a.computed(()=>{let $=0;if(T.value){if(g.value<0?$=Y.value.slice(g.value).reduce((H,G)=>H+G[E.value]+h.gap,0)*-1:$=Y.value.slice(0,g.value).reduce((H,G)=>H+G[E.value]+h.gap,0),$-=Ae.value,!h.wrapAround){const H=Y.value.reduce((G,K)=>G+K[E.value]+h.gap,0)-z.value[E.value]-h.gap;$=It({val:$,max:H,min:0})}}else{let H=g.value-Ae.value;h.wrapAround||(H=It({val:H,max:l.value-+h.itemsToShow,min:0})),$=H*S.value}return $*(x.value?1:-1)}),D=a.computed(()=>{var $,H;if(!T.value){const re=g.value-Ae.value;return h.wrapAround?{min:Math.floor(re),max:Math.ceil(re+Number(h.itemsToShow)-1)}:{min:Math.floor(It({val:re,max:l.value-Number(h.itemsToShow),min:0})),max:Math.ceil(It({val:re+Number(h.itemsToShow)-1,max:l.value-1,min:0}))}}let G=0;{let re=0,ke=0-ee.value.before;const Oe=Math.abs(R.value+wt.value);for(;re<=Oe;){const He=(ke%s.length+s.length)%s.length;re+=(($=Y.value[He])===null||$===void 0?void 0:$[E.value])+h.gap,ke++}G=ke-1}let K=0;{let re=G,ke=0;for(re<0?ke=Y.value.slice(0,re).reduce((Oe,He)=>Oe+He[E.value]+h.gap,0)-Math.abs(R.value+wt.value):ke=Y.value.slice(0,re).reduce((Oe,He)=>Oe+He[E.value]+h.gap,0)-Math.abs(R.value);ke<z.value[E.value];){const Oe=(re%s.length+s.length)%s.length;ke+=((H=Y.value[Oe])===null||H===void 0?void 0:H[E.value])+h.gap,re++}K=re-1}return{min:Math.floor(G),max:Math.ceil(K)}}),A=a.computed(()=>{if(h.slideEffect==="fade")return;const $=B.value?"Y":"X",H=B.value?De.y:De.x;let G=R.value+H;if(!h.wrapAround&&h.preventExcessiveDragging){let K=0;T.value?K=Y.value.reduce((Oe,He)=>Oe+He[E.value],0):K=(l.value-Number(h.itemsToShow))*S.value;const re=x.value?0:-1*K,ke=x.value?K:0;G=It({val:G,min:re,max:ke})}return`translate${$}(${G}px)`}),q=a.computed(()=>({"--vc-transition-duration":Le.value?En(h.transition,"ms"):void 0,"--vc-slide-gap":En(h.gap),"--vc-carousel-height":En(h.height),"--vc-cloned-offset":En(wt.value)})),te={slideTo:rt,next:ht,prev:ho},le=a.reactive({activeSlide:m,config:h,currentSlide:g,isSliding:Le,isVertical:B,maxSlide:y,minSlide:k,nav:te,normalizedDir:w,slideRegistry:i,slideSize:u,slides:s,slidesCount:l,viewport:d,visibleRange:D});a.provide(ko,le);const Z=a.reactive({config:h,currentSlide:g,maxSlide:y,middleSlide:b,minSlide:k,slideSize:u,slidesCount:l});return r({data:Z,nav:te,next:ht,prev:ho,restartCarousel:go,slideTo:rt,updateBreakpointsConfig:O,updateSlideSize:P,updateSlidesData:L}),()=>{var $;const H=e.default||e.slides,G=(H==null?void 0:H(Z))||[],{before:K,after:re}=ee.value,ke=Tl({slides:s,position:"before",toShow:K}),Oe=Tl({slides:s,position:"after",toShow:re}),He=[...ke,...G,...Oe];if(!h.enabled||!He.length)return a.h("section",{ref:c,class:["carousel","is-disabled"]},He);const an=(($=e.addons)===null||$===void 0?void 0:$.call(e,Z))||[],sn=a.h("ol",{class:"carousel__track",style:{transform:A.value},onMousedownCapture:h.mouseDrag?me:null,onTouchstartPassiveCapture:h.touchDrag?me:null},He),ln=a.h("div",{class:"carousel__viewport",ref:d},sn);return a.h("section",{ref:c,class:["carousel",`is-${w.value}`,`is-effect-${h.slideEffect}`,{"is-vertical":B.value,"is-sliding":Le.value,"is-dragging":Xe.value,"is-hover":st.value}],dir:w.value,style:q.value,"aria-label":h.i18n.ariaGallery,tabindex:"0",onFocus:V,onBlur:he,onMouseenter:vt,onMouseleave:ft},[ln,an,a.h(sy)])}}});var Ki;(function(t){t.arrowDown="arrowDown",t.arrowLeft="arrowLeft",t.arrowRight="arrowRight",t.arrowUp="arrowUp"})(Ki||(Ki={}));const Vl=t=>`icon${t.charAt(0).toUpperCase()+t.slice(1)}`,cy={arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"};function dy(t){return t in Ki}const Fl=t=>t&&dy(t),Il=a.defineComponent({props:{name:{type:String,required:!0,validator:Fl},title:{type:String,default:t=>t.name?Ve.i18n[Vl(t.name)]:""}},setup(t){const e=a.inject(ko,null);return()=>{const o=t.name;if(!o||!Fl(o))return;const r=cy[o],n=a.h("path",{d:r}),i=(e==null?void 0:e.config.i18n[Vl(o)])||t.title,s=a.h("title",i);return a.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":i},[s,n])}}}),Ll=a.defineComponent({name:"CarouselNavigation",inheritAttrs:!1,setup(t,{slots:e,attrs:o}){const r=a.inject(ko);if(!r)return()=>"";const{next:n,prev:i}=e,s=()=>({btt:"arrowDown",ltr:"arrowLeft",rtl:"arrowRight",ttb:"arrowUp"})[r.normalizedDir],l=()=>({btt:"arrowUp",ltr:"arrowRight",rtl:"arrowLeft",ttb:"arrowDown"})[r.normalizedDir],c=a.computed(()=>!r.config.wrapAround&&r.currentSlide<=r.minSlide),d=a.computed(()=>!r.config.wrapAround&&r.currentSlide>=r.maxSlide);return()=>{const{i18n:u}=r.config,f=a.h("button",Object.assign(Object.assign({type:"button",disabled:c.value,"aria-label":u.ariaPreviousSlide,title:u.ariaPreviousSlide,onClick:r.nav.prev},o),{class:["carousel__prev",{"carousel__prev--disabled":c.value},o.class]}),(i==null?void 0:i())||a.h(Il,{name:s()})),h=a.h("button",Object.assign(Object.assign({type:"button",disabled:d.value,"aria-label":u.ariaNextSlide,title:u.ariaNextSlide,onClick:r.nav.next},o),{class:["carousel__next",{"carousel__next--disabled":d.value},o.class]}),(n==null?void 0:n())||a.h(Il,{name:l()}));return[f,h]}}});a.defineComponent({name:"CarouselPagination",props:{disableOnClick:{type:Boolean},paginateByItemsToShow:{type:Boolean}},setup(t){const e=a.inject(ko);if(!e)return()=>"";const o=a.computed(()=>e.config.itemsToShow),r=a.computed(()=>Yi({align:e.config.snapAlign,itemsToShow:o.value})),n=a.computed(()=>t.paginateByItemsToShow&&o.value>1),i=a.computed(()=>Math.ceil((e.activeSlide-r.value)/o.value)),s=a.computed(()=>Math.ceil(e.slidesCount/o.value)),l=c=>Al(n.value?{val:i.value,max:s.value-1,min:0}:{val:e.activeSlide,max:e.maxSlide,min:e.minSlide})===c;return()=>{var c,d;const u=[];for(let f=n.value?0:e.minSlide;f<=(n.value?s.value-1:e.maxSlide);f++){const h=$l(e.config.i18n[n.value?"ariaNavigateToPage":"ariaNavigateToSlide"],{slideNumber:f+1}),g=l(f),m=a.h("button",{type:"button",class:{"carousel__pagination-button":!0,"carousel__pagination-button--active":g},"aria-label":h,"aria-pressed":g,"aria-controls":(d=(c=e.slides[f])===null||c===void 0?void 0:c.exposed)===null||d===void 0?void 0:d.id,title:h,disabled:t.disableOnClick,onClick:()=>e.nav.slideTo(n.value?Math.floor(f*+e.config.itemsToShow+r.value):f)}),p=a.h("li",{class:"carousel__pagination-item",key:f},m);u.push(p)}return a.h("ol",{class:"carousel__pagination"},u)}}});const zl=a.defineComponent({name:"CarouselSlide",props:{id:{type:String,default:t=>t.isClone?void 0:a.useId()},index:{type:Number,default:void 0},isClone:{type:Boolean,default:!1},position:{type:String,default:void 0}},setup(t,{attrs:e,slots:o,expose:r}){const n=a.inject(ko);if(a.provide(ko,void 0),!n)return()=>"";const i=a.ref(t.index),s=m=>{i.value=m},l=a.getCurrentInstance(),c=()=>{const m=l.vnode.el;return m?m.getBoundingClientRect():{width:0,height:0}};r({id:t.id,setIndex:s,getBoundingRect:c});const d=a.computed(()=>i.value===n.activeSlide),u=a.computed(()=>i.value===n.activeSlide-1),f=a.computed(()=>i.value===n.activeSlide+1),h=a.computed(()=>i.value>=n.visibleRange.min&&i.value<=n.visibleRange.max),g=a.computed(()=>{if(n.config.itemsToShow==="auto")return;const m=n.config.itemsToShow,p=n.config.gap>0&&m>1?`calc(${100/m}% - ${n.config.gap*(m-1)/m}px)`:`${100/m}%`;return n.isVertical?{height:p}:{width:p}});return n.slideRegistry.registerSlide(l,t.index),a.onUnmounted(()=>{n.slideRegistry.unregisterSlide(l)}),t.isClone&&(a.onMounted(()=>{Pl(l.vnode)}),a.onUpdated(()=>{Pl(l.vnode)})),()=>{var m,p;return n.config.enabled?a.h("li",{style:[e.style,Object.assign({},g.value)],class:{carousel__slide:!0,"carousel__slide--clone":t.isClone,"carousel__slide--visible":h.value,"carousel__slide--active":d.value,"carousel__slide--prev":u.value,"carousel__slide--next":f.value,"carousel__slide--sliding":n.isSliding},onFocusin:()=>{n.viewport&&(n.viewport.scrollLeft=0),n.nav.slideTo(i.value)},id:t.isClone?void 0:t.id,"aria-hidden":t.isClone||void 0},(p=o.default)===null||p===void 0?void 0:p.call(o,{currentIndex:i.value,isActive:d.value,isClone:t.isClone,isPrev:u.value,isNext:f.value,isSliding:n.isSliding,isVisible:h.value})):(m=o.default)===null||m===void 0?void 0:m.call(o)}}}),uy={class:"p-4 mb-4 flex flex-wrap gap-2 border border-gray-300 shadow-md rounded-lg"},fy={key:0,class:"error-message"},hy={class:"text-red-500 font-bold"},gy={key:0},my={key:1,class:"mb-4 mt-4"},jl=Ne({__name:"EntityListingCarousel",props:{entityName:String,listDisplay:String,listItemDisplay:String,listHeader:String,listFooter:String,listFilter:String,listPagination:String,showAddButton:Boolean,showFilters:Boolean,listHeaderSlot:Boolean,showPagination:Boolean,className:{type:String,default:"default-class"},editable:Boolean,deletable:Boolean},setup(t,{expose:e}){const o=Sn(),r=lt();a.provide("entityObject",o);const n=t,i=a.ref([]);return a.watch(()=>o.state.data,c=>{c&&(i.value=c.result)},{immediate:!0}),e({props:n,reload:()=>{console.log("reload data")},filter:()=>{console.log("filter data in unordered")}}),a.watch(()=>r.globalConfigs.appId,async c=>{if(c){const d=await o.getEntity(n.entityName);o.setEntity(d.success?d.response:{result:[]})}},{immediate:!0}),(c,d)=>(a.openBlock(),a.createElementBlock("div",a.normalizeProps(a.guardReactiveProps(c.$attrs)),[c.$slots["list-item-display-carousel"]?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.renderSlot(c.$slots,"header",{},void 0,!0),t.showAddButton?(a.openBlock(),a.createBlock(eo,{key:0})):a.createCommentVNode("",!0),t.showFilters?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listFilter||Zt),{key:1})):a.createCommentVNode("",!0),i.value.length>1?(a.openBlock(),a.createBlock(a.unref(Ml),{key:2,"items-to-show":5,"wrap-around":!0,autoplay:2e3,pauseAutoplayOnHover:!0,transition:500},{addons:a.withCtx(()=>[a.createVNode(a.unref(Ll))]),default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,(u,f)=>(a.openBlock(),a.createBlock(a.unref(zl),{key:f},{default:a.withCtx(()=>[a.createElementVNode("div",uy,[a.renderSlot(c.$slots,"list-item-display-carousel",{item:u},void 0,!0)])]),_:2},1024))),128))]),_:3})):a.createCommentVNode("",!0),a.renderSlot(c.$slots,"footer",{},void 0,!0)],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.renderSlot(c.$slots,"header",{},void 0,!0),t.entityName?(a.openBlock(),a.createElementBlock("div",my,[t.showFilters?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listFilter||Zt),{key:0})):a.createCommentVNode("",!0),t.showAddButton?(a.openBlock(),a.createBlock(eo,{key:1})):a.createCommentVNode("",!0),i.value.length?(a.openBlock(),a.createBlock(a.unref(Ml),{key:2,"items-to-show":3,"wrap-around":!1,mouseDrag:!0,pauseAutoplayOnHover:!0,breakpoints:{1024:{itemsToShow:3},950:{itemsToShow:2},768:{itemsToShow:1},340:{itemsToShow:1}}},{addons:a.withCtx(()=>[a.createVNode(a.unref(Ll))]),default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,(u,f)=>(a.openBlock(),a.createBlock(a.unref(zl),{key:f},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listItemDisplay&&t.listItemDisplay!==""?t.listItemDisplay:Gb),a.mergeProps({ref_for:!0},{item:u,...n}),null,16))]),_:2},1024))),128))]),_:1})):a.createCommentVNode("",!0),t.showPagination?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listPagination||br),{key:3})):a.createCommentVNode("",!0)])):(a.openBlock(),a.createElementBlock("div",fy,[a.createElementVNode("p",hy,[d[0]||(d[0]=a.createTextVNode(" Error: Missing required props - ")),t.entityName?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",gy,"Entity Name"))])])),a.renderSlot(c.$slots,"footer",{},void 0,!0)],64))],16))}},[["__scopeId","data-v-84369e22"]]);class py{constructor(){this.httpService=new cs}async getEntities(){return await this.getAppId(),await this.httpService.get(`/api/app/v1/${this.appId}/entity`)}getEntity(e){}saveEntity(){}async getAppId(){const e=lt();this.appId=e.getAppId()}}const Wl=ls("entitiesStore",{state:()=>({entities:[],entityService:new py}),actions:{async fetchEntities(){try{return await this.entityService.getEntities()}catch(t){console.error("Error fetching entities:",t)}finally{}},async getEntities(){if(this.entities.length===0){const t=await this.fetchEntities();return this.setEntities(t.response),this.entities}else return this.entities},setEntities(t){this.entities=t}},getters:{}}),by={class:"field flex flex-col w-full"},yy={key:0,class:"flex items-center"},ky={key:1},xy={class:"flex items-center"},Gi={__name:"EntitySelection",props:{entityName:String,onEntityChangeCallback:Function},setup(t){const e=lt(),o=a.ref(""),r=Wl(),n=a.ref([]),i=async()=>{n.value=await r.getEntities(),s()},s=()=>{for(let c=0;c<n.value.length;c++){const d=n.value[c];d.name.toLowerCase()==t.entityName.toLowerCase()&&(o.value=d)}},l=()=>{t.onEntityChangeCallback(o.value.name)};return a.watch(()=>e.globalConfigs.appId,async c=>{c&&await i()},{immediate:!0}),(c,d)=>{const u=a.resolveComponent("Select");return a.openBlock(),a.createElementBlock("div",by,[a.createVNode(u,{modelValue:o.value,"onUpdate:modelValue":[d[0]||(d[0]=f=>o.value=f),l],options:n.value,filter:"",optionLabel:"name",placeholder:"Select entity",class:"w-full"},{value:a.withCtx(f=>[f.value?(a.openBlock(),a.createElementBlock("div",yy,[a.createElementVNode("div",null,a.toDisplayString(f.value.name),1)])):(a.openBlock(),a.createElementBlock("span",ky,a.toDisplayString(f.placeholder),1))]),option:a.withCtx(f=>[a.createElementVNode("div",xy,[a.createElementVNode("div",null,a.toDisplayString(f.option.name),1)])]),_:1},8,["modelValue","options"])])}}},Hl={__name:"FieldExpression",props:["value"],setup(t){return(e,o)=>(a.openBlock(),a.createElementBlock("span",null,a.toDisplayString(t.value),1))}},vy={class:"flex flex-col w-full"},wy={class:"w-1/4"},Cy={class:"w-full mt-5"},Ul={__name:"EntityExplorer",props:{entityName:String},setup(t){const e=t,o=a.ref(e.entityName);a.watch(o,n=>{console.log("Entity changed to:",n)});const r=n=>{o.value=n};return(n,i)=>(a.openBlock(),a.createElementBlock("div",vy,[a.createElementVNode("div",wy,[(a.openBlock(),a.createBlock(Gi,{key:o.value,entityName:o.value,onEntityChangeCallback:r},null,8,["entityName"]))]),a.createElementVNode("div",Cy,[(a.openBlock(),a.createBlock(ji,{key:o.value,entityName:o.value},null,8,["entityName"]))])]))}};function ql(t,e){return function(){return t.apply(e,arguments)}}const{toString:_y}=Object.prototype,{getPrototypeOf:Ji}=Object,Rn=(t=>e=>{const o=_y.call(e);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),bt=t=>(t=t.toLowerCase(),e=>Rn(e)===t),Dn=t=>e=>typeof e===t,{isArray:jo}=Array,kr=Dn("undefined");function Sy(t){return t!==null&&!kr(t)&&t.constructor!==null&&!kr(t.constructor)&&nt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Yl=bt("ArrayBuffer");function By(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Yl(t.buffer),e}const Ey=Dn("string"),nt=Dn("function"),Xl=Dn("number"),On=t=>t!==null&&typeof t=="object",Ry=t=>t===!0||t===!1,Nn=t=>{if(Rn(t)!=="object")return!1;const e=Ji(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Dy=bt("Date"),Oy=bt("File"),Ny=bt("Blob"),Ty=bt("FileList"),Py=t=>On(t)&&nt(t.pipe),$y=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||nt(t.append)&&((e=Rn(t))==="formdata"||e==="object"&&nt(t.toString)&&t.toString()==="[object FormData]"))},Ay=bt("URLSearchParams"),[My,Vy,Fy,Iy]=["ReadableStream","Request","Response","Headers"].map(bt),Ly=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function xr(t,e,{allOwnKeys:o=!1}={}){if(t===null||typeof t>"u")return;let r,n;if(typeof t!="object"&&(t=[t]),jo(t))for(r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else{const i=o?Object.getOwnPropertyNames(t):Object.keys(t),s=i.length;let l;for(r=0;r<s;r++)l=i[r],e.call(null,t[l],l,t)}}function Kl(t,e){e=e.toLowerCase();const o=Object.keys(t);let r=o.length,n;for(;r-- >0;)if(n=o[r],e===n.toLowerCase())return n;return null}const xo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Gl=t=>!kr(t)&&t!==xo;function Qi(){const{caseless:t}=Gl(this)&&this||{},e={},o=(r,n)=>{const i=t&&Kl(e,n)||n;Nn(e[i])&&Nn(r)?e[i]=Qi(e[i],r):Nn(r)?e[i]=Qi({},r):jo(r)?e[i]=r.slice():e[i]=r};for(let r=0,n=arguments.length;r<n;r++)arguments[r]&&xr(arguments[r],o);return e}const zy=(t,e,o,{allOwnKeys:r}={})=>(xr(e,(n,i)=>{o&&nt(n)?t[i]=ql(n,o):t[i]=n},{allOwnKeys:r}),t),jy=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Wy=(t,e,o,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),o&&Object.assign(t.prototype,o)},Hy=(t,e,o,r)=>{let n,i,s;const l={};if(e=e||{},t==null)return e;do{for(n=Object.getOwnPropertyNames(t),i=n.length;i-- >0;)s=n[i],(!r||r(s,t,e))&&!l[s]&&(e[s]=t[s],l[s]=!0);t=o!==!1&&Ji(t)}while(t&&(!o||o(t,e))&&t!==Object.prototype);return e},Uy=(t,e,o)=>{t=String(t),(o===void 0||o>t.length)&&(o=t.length),o-=e.length;const r=t.indexOf(e,o);return r!==-1&&r===o},qy=t=>{if(!t)return null;if(jo(t))return t;let e=t.length;if(!Xl(e))return null;const o=new Array(e);for(;e-- >0;)o[e]=t[e];return o},Yy=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Ji(Uint8Array)),Xy=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let n;for(;(n=r.next())&&!n.done;){const i=n.value;e.call(t,i[0],i[1])}},Ky=(t,e)=>{let o;const r=[];for(;(o=t.exec(e))!==null;)r.push(o);return r},Gy=bt("HTMLFormElement"),Jy=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,r,n){return r.toUpperCase()+n}),Jl=(({hasOwnProperty:t})=>(e,o)=>t.call(e,o))(Object.prototype),Qy=bt("RegExp"),Ql=(t,e)=>{const o=Object.getOwnPropertyDescriptors(t),r={};xr(o,(n,i)=>{let s;(s=e(n,i,t))!==!1&&(r[i]=s||n)}),Object.defineProperties(t,r)},Zy=t=>{Ql(t,(e,o)=>{if(nt(t)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const r=t[o];if(nt(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},ek=(t,e)=>{const o={},r=n=>{n.forEach(i=>{o[i]=!0})};return jo(t)?r(t):r(String(t).split(e)),o},tk=()=>{},ok=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Zi="abcdefghijklmnopqrstuvwxyz",Zl="0123456789",ec={DIGIT:Zl,ALPHA:Zi,ALPHA_DIGIT:Zi+Zi.toUpperCase()+Zl},rk=(t=16,e=ec.ALPHA_DIGIT)=>{let o="";const{length:r}=e;for(;t--;)o+=e[Math.random()*r|0];return o};function nk(t){return!!(t&&nt(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const ik=t=>{const e=new Array(10),o=(r,n)=>{if(On(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[n]=r;const i=jo(r)?[]:{};return xr(r,(s,l)=>{const c=o(s,n+1);!kr(c)&&(i[l]=c)}),e[n]=void 0,i}}return r};return o(t,0)},ak=bt("AsyncFunction"),sk=t=>t&&(On(t)||nt(t))&&nt(t.then)&&nt(t.catch),tc=((t,e)=>t?setImmediate:e?((o,r)=>(xo.addEventListener("message",({source:n,data:i})=>{n===xo&&i===o&&r.length&&r.shift()()},!1),n=>{r.push(n),xo.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",nt(xo.postMessage)),lk=typeof queueMicrotask<"u"?queueMicrotask.bind(xo):typeof process<"u"&&process.nextTick||tc,N={isArray:jo,isArrayBuffer:Yl,isBuffer:Sy,isFormData:$y,isArrayBufferView:By,isString:Ey,isNumber:Xl,isBoolean:Ry,isObject:On,isPlainObject:Nn,isReadableStream:My,isRequest:Vy,isResponse:Fy,isHeaders:Iy,isUndefined:kr,isDate:Dy,isFile:Oy,isBlob:Ny,isRegExp:Qy,isFunction:nt,isStream:Py,isURLSearchParams:Ay,isTypedArray:Yy,isFileList:Ty,forEach:xr,merge:Qi,extend:zy,trim:Ly,stripBOM:jy,inherits:Wy,toFlatObject:Hy,kindOf:Rn,kindOfTest:bt,endsWith:Uy,toArray:qy,forEachEntry:Xy,matchAll:Ky,isHTMLForm:Gy,hasOwnProperty:Jl,hasOwnProp:Jl,reduceDescriptors:Ql,freezeMethods:Zy,toObjectSet:ek,toCamelCase:Jy,noop:tk,toFiniteNumber:ok,findKey:Kl,global:xo,isContextDefined:Gl,ALPHABET:ec,generateString:rk,isSpecCompliantForm:nk,toJSONObject:ik,isAsyncFn:ak,isThenable:sk,setImmediate:tc,asap:lk};function ae(t,e,o,r,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),o&&(this.config=o),r&&(this.request=r),n&&(this.response=n,this.status=n.status?n.status:null)}N.inherits(ae,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:N.toJSONObject(this.config),code:this.code,status:this.status}}});const oc=ae.prototype,rc={};["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(t=>{rc[t]={value:t}}),Object.defineProperties(ae,rc),Object.defineProperty(oc,"isAxiosError",{value:!0}),ae.from=(t,e,o,r,n,i)=>{const s=Object.create(oc);return N.toFlatObject(t,s,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),ae.call(s,t.message,e,o,r,n),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const ck=null;function ea(t){return N.isPlainObject(t)||N.isArray(t)}function nc(t){return N.endsWith(t,"[]")?t.slice(0,-2):t}function ic(t,e,o){return t?t.concat(e).map(function(n,i){return n=nc(n),!o&&i?"["+n+"]":n}).join(o?".":""):e}function dk(t){return N.isArray(t)&&!t.some(ea)}const uk=N.toFlatObject(N,{},null,function(e){return/^is[A-Z]/.test(e)});function Tn(t,e,o){if(!N.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,o=N.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,b){return!N.isUndefined(b[p])});const r=o.metaTokens,n=o.visitor||u,i=o.dots,s=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&N.isSpecCompliantForm(e);if(!N.isFunction(n))throw new TypeError("visitor must be a function");function d(m){if(m===null)return"";if(N.isDate(m))return m.toISOString();if(!c&&N.isBlob(m))throw new ae("Blob is not supported. Use a Buffer instead.");return N.isArrayBuffer(m)||N.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,p,b){let y=m;if(m&&!b&&typeof m=="object"){if(N.endsWith(p,"{}"))p=r?p:p.slice(0,-2),m=JSON.stringify(m);else if(N.isArray(m)&&dk(m)||(N.isFileList(m)||N.endsWith(p,"[]"))&&(y=N.toArray(m)))return p=nc(p),y.forEach(function(C,_){!(N.isUndefined(C)||C===null)&&e.append(s===!0?ic([p],_,i):s===null?p:p+"[]",d(C))}),!1}return ea(m)?!0:(e.append(ic(b,p,i),d(m)),!1)}const f=[],h=Object.assign(uk,{defaultVisitor:u,convertValue:d,isVisitable:ea});function g(m,p){if(!N.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(m),N.forEach(m,function(y,k){(!(N.isUndefined(y)||y===null)&&n.call(e,y,N.isString(k)?k.trim():k,p,h))===!0&&g(y,p?p.concat(k):[k])}),f.pop()}}if(!N.isObject(t))throw new TypeError("data must be an object");return g(t),e}function ac(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function ta(t,e){this._pairs=[],t&&Tn(t,this,e)}const sc=ta.prototype;sc.append=function(e,o){this._pairs.push([e,o])},sc.toString=function(e){const o=e?function(r){return e.call(this,r,ac)}:ac;return this._pairs.map(function(n){return o(n[0])+"="+o(n[1])},"").join("&")};function fk(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function lc(t,e,o){if(!e)return t;const r=o&&o.encode||fk;N.isFunction(o)&&(o={serialize:o});const n=o&&o.serialize;let i;if(n?i=n(e,o):i=N.isURLSearchParams(e)?e.toString():new ta(e,o).toString(r),i){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class cc{constructor(){this.handlers=[]}use(e,o,r){return this.handlers.push({fulfilled:e,rejected:o,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){N.forEach(this.handlers,function(r){r!==null&&e(r)})}}const dc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},hk={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ta,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},oa=typeof window<"u"&&typeof document<"u",ra=typeof navigator=="object"&&navigator||void 0,gk=oa&&(!ra||["ReactNative","NativeScript","NS"].indexOf(ra.product)<0),mk=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",pk=oa&&window.location.href||"http://localhost",Ue={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:oa,hasStandardBrowserEnv:gk,hasStandardBrowserWebWorkerEnv:mk,navigator:ra,origin:pk},Symbol.toStringTag,{value:"Module"})),...hk};function bk(t,e){return Tn(t,new Ue.classes.URLSearchParams,Object.assign({visitor:function(o,r,n,i){return Ue.isNode&&N.isBuffer(o)?(this.append(r,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function yk(t){return N.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function kk(t){const e={},o=Object.keys(t);let r;const n=o.length;let i;for(r=0;r<n;r++)i=o[r],e[i]=t[i];return e}function uc(t){function e(o,r,n,i){let s=o[i++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),c=i>=o.length;return s=!s&&N.isArray(n)?n.length:s,c?(N.hasOwnProp(n,s)?n[s]=[n[s],r]:n[s]=r,!l):((!n[s]||!N.isObject(n[s]))&&(n[s]=[]),e(o,r,n[s],i)&&N.isArray(n[s])&&(n[s]=kk(n[s])),!l)}if(N.isFormData(t)&&N.isFunction(t.entries)){const o={};return N.forEachEntry(t,(r,n)=>{e(yk(r),n,o,0)}),o}return null}function xk(t,e,o){if(N.isString(t))try{return(e||JSON.parse)(t),N.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const vr={transitional:dc,adapter:["xhr","http","fetch"],transformRequest:[function(e,o){const r=o.getContentType()||"",n=r.indexOf("application/json")>-1,i=N.isObject(e);if(i&&N.isHTMLForm(e)&&(e=new FormData(e)),N.isFormData(e))return n?JSON.stringify(uc(e)):e;if(N.isArrayBuffer(e)||N.isBuffer(e)||N.isStream(e)||N.isFile(e)||N.isBlob(e)||N.isReadableStream(e))return e;if(N.isArrayBufferView(e))return e.buffer;if(N.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return bk(e,this.formSerializer).toString();if((l=N.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Tn(l?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||n?(o.setContentType("application/json",!1),xk(e)):e}],transformResponse:[function(e){const o=this.transitional||vr.transitional,r=o&&o.forcedJSONParsing,n=this.responseType==="json";if(N.isResponse(e)||N.isReadableStream(e))return e;if(e&&N.isString(e)&&(r&&!this.responseType||n)){const s=!(o&&o.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(l){if(s)throw l.name==="SyntaxError"?ae.from(l,ae.ERR_BAD_RESPONSE,this,null,this.response):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ue.classes.FormData,Blob:Ue.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};N.forEach(["delete","get","head","post","put","patch"],t=>{vr.headers[t]={}});const vk=N.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"]),wk=t=>{const e={};let o,r,n;return t&&t.split(`
|
|
161
|
-
`).forEach(function(s){n=s.indexOf(":"),o=s.substring(0,n).trim().toLowerCase(),r=s.substring(n+1).trim(),!(!o||e[o]&&
|
|
162
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...o){const r=new this(e);return o.forEach(n=>r.set(n)),r}static accessor(e){const r=(this[fc]=this[fc]={accessors:{}}).accessors,n=this.prototype;function i(s){const l=wr(s);r[l]||(Bk(n,s),r[l]=!0)}return N.isArray(e)?e.forEach(i):i(e),this}}Ze.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),N.reduceDescriptors(Ze.prototype,({value:t},e)=>{let o=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[o]=r}}}),N.freezeMethods(Ze);function ia(t,e){const o=this||vr,r=e||o,n=Ze.from(r.headers);let i=r.data;return N.forEach(t,function(l){i=l.call(o,i,n.normalize(),e?e.status:void 0)}),n.normalize(),i}function hc(t){return!!(t&&t.__CANCEL__)}function Wo(t,e,o){ae.call(this,t??"canceled",ae.ERR_CANCELED,e,o),this.name="CanceledError"}N.inherits(Wo,ae,{__CANCEL__:!0});function gc(t,e,o){const r=o.config.validateStatus;!o.status||!r||r(o.status)?t(o):e(new ae("Request failed with status code "+o.status,[ae.ERR_BAD_REQUEST,ae.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function Ek(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Rk(t,e){t=t||10;const o=new Array(t),r=new Array(t);let n=0,i=0,s;return e=e!==void 0?e:1e3,function(c){const d=Date.now(),u=r[i];s||(s=d),o[n]=c,r[n]=d;let f=i,h=0;for(;f!==n;)h+=o[f++],f=f%t;if(n=(n+1)%t,n===i&&(i=(i+1)%t),d-s<e)return;const g=u&&d-u;return g?Math.round(h*1e3/g):void 0}}function Dk(t,e){let o=0,r=1e3/e,n,i;const s=(d,u=Date.now())=>{o=u,n=null,i&&(clearTimeout(i),i=null),t.apply(null,d)};return[(...d)=>{const u=Date.now(),f=u-o;f>=r?s(d,u):(n=d,i||(i=setTimeout(()=>{i=null,s(n)},r-f)))},()=>n&&s(n)]}const $n=(t,e,o=3)=>{let r=0;const n=Rk(50,250);return Dk(i=>{const s=i.loaded,l=i.lengthComputable?i.total:void 0,c=s-r,d=n(c),u=s<=l;r=s;const f={loaded:s,total:l,progress:l?s/l:void 0,bytes:c,rate:d||void 0,estimated:d&&l&&u?(l-s)/d:void 0,event:i,lengthComputable:l!=null,[e?"download":"upload"]:!0};t(f)},o)},mc=(t,e)=>{const o=t!=null;return[r=>e[0]({lengthComputable:o,total:t,loaded:r}),e[1]]},pc=t=>(...e)=>N.asap(()=>t(...e)),Ok=Ue.hasStandardBrowserEnv?((t,e)=>o=>(o=new URL(o,Ue.origin),t.protocol===o.protocol&&t.host===o.host&&(e||t.port===o.port)))(new URL(Ue.origin),Ue.navigator&&/(msie|trident)/i.test(Ue.navigator.userAgent)):()=>!0,Nk=Ue.hasStandardBrowserEnv?{write(t,e,o,r,n,i){const s=[t+"="+encodeURIComponent(e)];N.isNumber(o)&&s.push("expires="+new Date(o).toGMTString()),N.isString(r)&&s.push("path="+r),N.isString(n)&&s.push("domain="+n),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Tk(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Pk(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function bc(t,e){return t&&!Tk(e)?Pk(t,e):e}const yc=t=>t instanceof Ze?{...t}:t;function vo(t,e){e=e||{};const o={};function r(d,u,f,h){return N.isPlainObject(d)&&N.isPlainObject(u)?N.merge.call({caseless:h},d,u):N.isPlainObject(u)?N.merge({},u):N.isArray(u)?u.slice():u}function n(d,u,f,h){if(N.isUndefined(u)){if(!N.isUndefined(d))return r(void 0,d,f,h)}else return r(d,u,f,h)}function i(d,u){if(!N.isUndefined(u))return r(void 0,u)}function s(d,u){if(N.isUndefined(u)){if(!N.isUndefined(d))return r(void 0,d)}else return r(void 0,u)}function l(d,u,f){if(f in e)return r(d,u);if(f in t)return r(void 0,d)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(d,u,f)=>n(yc(d),yc(u),f,!0)};return N.forEach(Object.keys(Object.assign({},t,e)),function(u){const f=c[u]||n,h=f(t[u],e[u],u);N.isUndefined(h)&&f!==l||(o[u]=h)}),o}const kc=t=>{const e=vo({},t);let{data:o,withXSRFToken:r,xsrfHeaderName:n,xsrfCookieName:i,headers:s,auth:l}=e;e.headers=s=Ze.from(s),e.url=lc(bc(e.baseURL,e.url),t.params,t.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(N.isFormData(o)){if(Ue.hasStandardBrowserEnv||Ue.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[d,...u]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([d||"multipart/form-data",...u].join("; "))}}if(Ue.hasStandardBrowserEnv&&(r&&N.isFunction(r)&&(r=r(e)),r||r!==!1&&Ok(e.url))){const d=n&&i&&Nk.read(i);d&&s.set(n,d)}return e},$k=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(o,r){const n=kc(t);let i=n.data;const s=Ze.from(n.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:d}=n,u,f,h,g,m;function p(){g&&g(),m&&m(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(n.method.toUpperCase(),n.url,!0),b.timeout=n.timeout;function y(){if(!b)return;const C=Ze.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),v={data:!l||l==="text"||l==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:C,config:t,request:b};gc(function(w){o(w),p()},function(w){r(w),p()},v),b=null}"onloadend"in b?b.onloadend=y:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(y)},b.onabort=function(){b&&(r(new ae("Request aborted",ae.ECONNABORTED,t,b)),b=null)},b.onerror=function(){r(new ae("Network Error",ae.ERR_NETWORK,t,b)),b=null},b.ontimeout=function(){let _=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const v=n.transitional||dc;n.timeoutErrorMessage&&(_=n.timeoutErrorMessage),r(new ae(_,v.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,t,b)),b=null},i===void 0&&s.setContentType(null),"setRequestHeader"in b&&N.forEach(s.toJSON(),function(_,v){b.setRequestHeader(v,_)}),N.isUndefined(n.withCredentials)||(b.withCredentials=!!n.withCredentials),l&&l!=="json"&&(b.responseType=n.responseType),d&&([h,m]=$n(d,!0),b.addEventListener("progress",h)),c&&b.upload&&([f,g]=$n(c),b.upload.addEventListener("progress",f),b.upload.addEventListener("loadend",g)),(n.cancelToken||n.signal)&&(u=C=>{b&&(r(!C||C.type?new Wo(null,t,b):C),b.abort(),b=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));const k=Ek(n.url);if(k&&Ue.protocols.indexOf(k)===-1){r(new ae("Unsupported protocol "+k+":",ae.ERR_BAD_REQUEST,t));return}b.send(i||null)})},Ak=(t,e)=>{const{length:o}=t=t?t.filter(Boolean):[];if(e||o){let r=new AbortController,n;const i=function(d){if(!n){n=!0,l();const u=d instanceof Error?d:this.reason;r.abort(u instanceof ae?u:new Wo(u instanceof Error?u.message:u))}};let s=e&&setTimeout(()=>{s=null,i(new ae(`timeout ${e} of ms exceeded`,ae.ETIMEDOUT))},e);const l=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(d=>{d.unsubscribe?d.unsubscribe(i):d.removeEventListener("abort",i)}),t=null)};t.forEach(d=>d.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>N.asap(l),c}},Mk=function*(t,e){let o=t.byteLength;if(o<e){yield t;return}let r=0,n;for(;r<o;)n=r+e,yield t.slice(r,n),r=n},Vk=async function*(t,e){for await(const o of Fk(t))yield*Mk(o,e)},Fk=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:o,value:r}=await e.read();if(o)break;yield r}}finally{await e.cancel()}},xc=(t,e,o,r)=>{const n=Vk(t,e);let i=0,s,l=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:u}=await n.next();if(d){l(),c.close();return}let f=u.byteLength;if(o){let h=i+=f;o(h)}c.enqueue(new Uint8Array(u))}catch(d){throw l(d),d}},cancel(c){return l(c),n.return()}},{highWaterMark:2})},An=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",vc=An&&typeof ReadableStream=="function",Ik=An&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),wc=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Lk=vc&&wc(()=>{let t=!1;const e=new Request(Ue.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Cc=64*1024,aa=vc&&wc(()=>N.isReadableStream(new Response("").body)),Mn={stream:aa&&(t=>t.body)};An&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Mn[e]&&(Mn[e]=N.isFunction(t[e])?o=>o[e]():(o,r)=>{throw new ae(`Response type '${e}' is not supported`,ae.ERR_NOT_SUPPORT,r)})})})(new Response);const zk=async t=>{if(t==null)return 0;if(N.isBlob(t))return t.size;if(N.isSpecCompliantForm(t))return(await new Request(Ue.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(N.isArrayBufferView(t)||N.isArrayBuffer(t))return t.byteLength;if(N.isURLSearchParams(t)&&(t=t+""),N.isString(t))return(await Ik(t)).byteLength},jk=async(t,e)=>{const o=N.toFiniteNumber(t.getContentLength());return o??zk(e)},sa={http:ck,xhr:$k,fetch:An&&(async t=>{let{url:e,method:o,data:r,signal:n,cancelToken:i,timeout:s,onDownloadProgress:l,onUploadProgress:c,responseType:d,headers:u,withCredentials:f="same-origin",fetchOptions:h}=kc(t);d=d?(d+"").toLowerCase():"text";let g=Ak([n,i&&i.toAbortSignal()],s),m;const p=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let b;try{if(c&&Lk&&o!=="get"&&o!=="head"&&(b=await jk(u,r))!==0){let v=new Request(e,{method:"POST",body:r,duplex:"half"}),S;if(N.isFormData(r)&&(S=v.headers.get("content-type"))&&u.setContentType(S),v.body){const[w,x]=mc(b,$n(pc(c)));r=xc(v.body,Cc,w,x)}}N.isString(f)||(f=f?"include":"omit");const y="credentials"in Request.prototype;m=new Request(e,{...h,signal:g,method:o.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:y?f:void 0});let k=await fetch(m);const C=aa&&(d==="stream"||d==="response");if(aa&&(l||C&&p)){const v={};["status","statusText","headers"].forEach(B=>{v[B]=k[B]});const S=N.toFiniteNumber(k.headers.get("content-length")),[w,x]=l&&mc(S,$n(pc(l),!0))||[];k=new Response(xc(k.body,Cc,w,()=>{x&&x(),p&&p()}),v)}d=d||"text";let _=await Mn[N.findKey(Mn,d)||"text"](k,t);return!C&&p&&p(),await new Promise((v,S)=>{gc(v,S,{data:_,headers:Ze.from(k.headers),status:k.status,statusText:k.statusText,config:t,request:m})})}catch(y){throw p&&p(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new ae("Network Error",ae.ERR_NETWORK,t,m),{cause:y.cause||y}):ae.from(y,y&&y.code,t,m)}})};N.forEach(sa,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const _c=t=>`- ${t}`,Wk=t=>N.isFunction(t)||t===null||t===!1,Sc={getAdapter:t=>{t=N.isArray(t)?t:[t];const{length:e}=t;let o,r;const n={};for(let i=0;i<e;i++){o=t[i];let s;if(r=o,!Wk(o)&&(r=sa[(s=String(o)).toLowerCase()],r===void 0))throw new ae(`Unknown adapter '${s}'`);if(r)break;n[s||"#"+i]=r}if(!r){const i=Object.entries(n).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=e?i.length>1?`since :
|
|
160
|
+
*/const Rl=["viewport","carousel"],yr={"bottom-to-top":"btt","left-to-right":"ltr","right-to-left":"rtl","top-to-bottom":"ttb"},Dl=["ltr","left-to-right","rtl","right-to-left","ttb","top-to-bottom","btt","bottom-to-top"],Gb={ariaGallery:"Gallery",ariaNavigateToPage:"Navigate to page {slideNumber}",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",iconArrowDown:"Arrow pointing downwards",iconArrowLeft:"Arrow pointing to the left",iconArrowRight:"Arrow pointing to the right",iconArrowUp:"Arrow pointing upwards",itemXofY:"Item {currentSlide} of {slidesCount}"};Object.values(yr);const Ol=["slide","fade"],Nl=["center","start","end","center-even","center-odd"],Ve={autoplay:0,breakpointMode:Rl[0],breakpoints:void 0,dir:Dl[0],enabled:!0,gap:0,height:"auto",i18n:Gb,ignoreAnimations:!1,itemsToScroll:1,itemsToShow:1,modelValue:0,mouseDrag:!0,pauseAutoplayOnHover:!1,preventExcessiveDragging:!1,slideEffect:Ol[0],snapAlign:Nl[0],touchDrag:!0,transition:300,wrapAround:!1},ko=Symbol("carousel"),Jb=t=>{const e=a.shallowReactive([]),o=r=>{r!==void 0?e.slice(r).forEach((n,i)=>{var s;(s=n.exposed)===null||s===void 0||s.setIndex(r+i)}):e.forEach((n,i)=>{var s;(s=n.exposed)===null||s===void 0||s.setIndex(i)})};return{cleanup:()=>{e.splice(0,e.length)},getSlides:()=>e,registerSlide:(r,n)=>{if(!r||r.props.isClone)return;const i=n??e.length;e.splice(i,0,r),o(i),t("slide-registered",{slide:r,index:i})},unregisterSlide:r=>{const n=e.indexOf(r);n!==-1&&(t("slide-unregistered",{slide:r,index:n}),e.splice(n,1),o(n))}}};function Qb(t){return t.length===0?0:t.reduce((o,r)=>o+r,0)/t.length}function Tl({slides:t,position:e,toShow:o}){const r=[],n=e==="before",i=n?-o:0,s=n?0:o;if(t.length<=0)return r;for(let l=i;l<s;l++){const d={index:n?l:l+t.length,isClone:!0,position:e,id:void 0,key:`clone-${e}-${l}`},u=t[(l%t.length+t.length)%t.length].vnode,f=a.cloneVNode(u,d);f.el=null,r.push(f)}return r}const Zb='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';function Pl(t){if(!t.el||!(t.el instanceof Element))return;const e=t.el.querySelectorAll(Zb);for(const o of e)o instanceof HTMLElement&&!o.hasAttribute("disabled")&&o.getAttribute("aria-hidden")!=="true"&&o.setAttribute("tabindex","-1")}function ey(t,e){return Object.keys(t).filter(o=>!e.includes(o)).reduce((o,r)=>(o[r]=t[r],o),{})}function ty(t){const{isVertical:e,isReversed:o,dragged:r,effectiveSlideSize:n}=t,i=e?r.y:r.x;if(i===0)return 0;const s=Math.round(i/n);return o?s:-s}function It({val:t,max:e,min:o}){return e<o?t:Math.min(Math.max(t,isNaN(o)?t:o),isNaN(e)?t:e)}function oy(t){const{transform:e}=window.getComputedStyle(t);return e.split(/[(,)]/).slice(1,-1).map(o=>parseFloat(o))}function ry(t){let e=1,o=1;return t.forEach(r=>{const n=oy(r);n.length===6&&(e/=n[0],o/=n[3])}),{widthMultiplier:e,heightMultiplier:o}}function ny(t,e){switch(t){case"start":return 0;case"center":case"center-odd":return(e-1)/2;case"center-even":return(e-2)/2;case"end":return e-1;default:return 0}}function iy(t,e,o){switch(t){case"start":return 0;case"center":case"center-odd":return(o-e)/2;case"center-even":return o/2-e;case"end":return o-e;default:return 0}}function qi({slideSize:t,viewportSize:e,align:o,itemsToShow:r}){return r!==void 0?ny(o,r):t!==void 0&&e!==void 0?iy(o,t,e):0}function $l(t="",e={}){return Object.entries(e).reduce((o,[r,n])=>o.replace(`{${r}}`,String(n)),t)}function Al({val:t,max:e,min:o=0}){const r=e-o+1;return((t-o)%r+r)%r+o}function Yi(t,e=0){let o=!1,r=0,n=null;function i(...s){if(o)return;o=!0;const l=()=>{n=requestAnimationFrame(c=>{c-r>e?(r=c,t(...s),o=!1):l()})};l()}return i.cancel=()=>{n&&(cancelAnimationFrame(n),n=null,o=!1)},i}function En(t,e="px"){if(!(t==null||t===""))return typeof t=="number"||parseFloat(t).toString()===t?`${t}${e}`:t}const ay=a.defineComponent({name:"CarouselAria",setup(){const t=a.inject(ko);return t?()=>a.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},$l(t.config.i18n.itemXofY,{currentSlide:t.currentSlide+1,slidesCount:t.slidesCount})):()=>""}}),sy={autoplay:{default:Ve.autoplay,type:Number},breakpoints:{default:Ve.breakpoints,type:Object},breakpointMode:{default:Ve.breakpointMode,validator(t){return Rl.includes(t)}},enabled:{default:Ve.enabled,type:Boolean},gap:{default:Ve.gap,type:Number},height:{default:Ve.height,type:[Number,String]},ignoreAnimations:{default:!1,type:[Array,Boolean,String]},itemsToScroll:{default:Ve.itemsToScroll,type:Number},itemsToShow:{default:Ve.itemsToShow,type:[Number,String]},i18n:{default:Ve.i18n,type:Object},modelValue:{default:void 0,type:Number},mouseDrag:{default:Ve.mouseDrag,type:Boolean},touchDrag:{default:Ve.touchDrag,type:Boolean},pauseAutoplayOnHover:{default:Ve.pauseAutoplayOnHover,type:Boolean},preventExcessiveDragging:{default:!1,type:Boolean,validator(t,e){return t&&e.wrapAround&&console.warn('[vue3-carousel warn]: "preventExcessiveDragging" cannot be used with wrapAround. The setting will be ignored.'),!0}},snapAlign:{default:Ve.snapAlign,validator(t){return Nl.includes(t)}},slideEffect:{type:String,default:Ve.slideEffect,validator(t){return Ol.includes(t)}},transition:{default:Ve.transition,type:Number},dir:{type:String,default:Ve.dir,validator(t,e){if(!Dl.includes(t))return!1;const o=t in yr?yr[t]:t;return["ttb","btt"].includes(o)&&(!e.height||e.height==="auto")&&console.warn(`[vue3-carousel warn]: The dir "${t}" is not supported with height "auto".`),!0}},wrapAround:{default:Ve.wrapAround,type:Boolean}},Ml=a.defineComponent({name:"VueCarousel",props:sy,emits:["before-init","drag","init","loop","slide-end","slide-registered","slide-start","slide-unregistered","update:modelValue"],setup(t,{slots:e,emit:o,expose:r}){var n;const i=Jb(o),s=i.getSlides(),l=a.computed(()=>s.length),c=a.ref(null),d=a.ref(null),u=a.ref(0),f=a.computed(()=>Object.assign(Object.assign(Object.assign({},Ve),ey(t,["breakpoints","modelValue"])),{i18n:Object.assign(Object.assign({},Ve.i18n),t.i18n)})),h=a.shallowReactive(Object.assign({},f.value)),g=a.ref((n=t.modelValue)!==null&&n!==void 0?n:0),m=a.ref(g.value);a.watch(g,$=>m.value=$);const p=a.ref(0),b=a.computed(()=>Math.ceil((l.value-1)/2)),y=a.computed(()=>l.value-1),k=a.computed(()=>0);let C=null,_=null,v=null;const S=a.computed(()=>u.value+h.gap),w=a.computed(()=>{const $=h.dir||"ltr";return $ in yr?yr[$]:$}),x=a.computed(()=>["rtl","btt"].includes(w.value)),B=a.computed(()=>["ttb","btt"].includes(w.value)),T=a.computed(()=>h.itemsToShow==="auto"),E=a.computed(()=>B.value?"height":"width");function O(){var $;if(!J.value)return;const H=(f.value.breakpointMode==="carousel"?($=c.value)===null||$===void 0?void 0:$.getBoundingClientRect().width:typeof window<"u"?window.innerWidth:0)||0,G=Object.keys(t.breakpoints||{}).map(re=>Number(re)).sort((re,ke)=>+ke-+re),K={};G.some(re=>H>=re?(Object.assign(K,t.breakpoints[re]),K.i18n&&Object.assign(K.i18n,f.value.i18n,t.breakpoints[re].i18n),!0):!1),Object.assign(h,f.value,K)}const M=Yi(()=>{O(),L(),P()}),W=a.shallowReactive(new Set),Y=a.ref([]);function I({widthMultiplier:$,heightMultiplier:H}){Y.value=s.map(G=>{var K;const re=(K=G.exposed)===null||K===void 0?void 0:K.getBoundingRect();return{width:re.width*$,height:re.height*H}})}const z=a.ref({width:0,height:0});function F({widthMultiplier:$,heightMultiplier:H}){var G;const K=((G=d.value)===null||G===void 0?void 0:G.getBoundingClientRect())||{width:0,height:0};z.value={width:K.width*$,height:K.height*H}}function P(){if(!d.value)return;const $=ry(W);if(F($),I($),T.value)u.value=Qb(Y.value.map(H=>H[E.value]));else{const H=Number(h.itemsToShow),G=(H-1)*h.gap;u.value=(z.value[E.value]-G)/H}}function L(){!h.wrapAround&&l.value>0&&(g.value=It({val:g.value,max:y.value,min:k.value})),T.value||(h.itemsToShow=It({val:Number(h.itemsToShow),max:l.value,min:1}))}const Q=a.computed(()=>typeof t.ignoreAnimations=="string"?t.ignoreAnimations.split(","):Array.isArray(t.ignoreAnimations)?t.ignoreAnimations:t.ignoreAnimations?!1:[]);a.watchEffect(()=>L()),a.watchEffect(()=>{P()});let oe;const ne=$=>{const H=$.target;if(!(!(H!=null&&H.contains(c.value))||Array.isArray(Q.value)&&Q.value.includes($.animationName))&&(W.add(H),!oe)){const G=()=>{oe=requestAnimationFrame(()=>{P(),G()})};G()}},X=$=>{const H=$.target;H&&W.delete(H),oe&&W.size===0&&(cancelAnimationFrame(oe),P())},J=a.ref(!1);typeof document<"u"&&a.watchEffect(()=>{J.value&&Q.value!==!1?(document.addEventListener("animationstart",ne),document.addEventListener("animationend",X)):(document.removeEventListener("animationstart",ne),document.removeEventListener("animationend",X))}),a.onMounted(()=>{J.value=!0,O(),Te(),c.value&&(v=new ResizeObserver(M),v.observe(c.value)),o("init")}),a.onBeforeUnmount(()=>{J.value=!1,i.cleanup(),_&&clearTimeout(_),oe&&cancelAnimationFrame(oe),C&&clearInterval(C),v&&(v.disconnect(),v=null),typeof document<"u"&&he(),c.value&&(c.value.removeEventListener("transitionend",P),c.value.removeEventListener("animationiteration",P))});let ie=!1;const ue={x:0,y:0},De=a.reactive({x:0,y:0}),st=a.ref(!1),Xe=a.ref(!1),vt=()=>{st.value=!0},ft=()=>{st.value=!1},U=Yi($=>{if(!$.ctrlKey)switch($.key){case"ArrowLeft":case"ArrowUp":B.value===$.key.endsWith("Up")&&(x.value?ht(!0):ho(!0));break;case"ArrowRight":case"ArrowDown":B.value===$.key.endsWith("Down")&&(x.value?ho(!0):ht(!0));break}},200),V=()=>{document.addEventListener("keydown",U)},he=()=>{document.removeEventListener("keydown",U)};function me($){const H=$.target.tagName;if(["INPUT","TEXTAREA","SELECT"].includes(H)||Le.value||(ie=$.type==="touchstart",!ie&&($.preventDefault(),$.button!==0)))return;ue.x="touches"in $?$.touches[0].clientX:$.clientX,ue.y="touches"in $?$.touches[0].clientY:$.clientY;const G=ie?"touchmove":"mousemove",K=ie?"touchend":"mouseup";document.addEventListener(G,ge,{passive:!1}),document.addEventListener(K,pe,{passive:!0})}const ge=Yi($=>{Xe.value=!0;const H="touches"in $?$.touches[0].clientX:$.clientX,G="touches"in $?$.touches[0].clientY:$.clientY;De.x=H-ue.x,De.y=G-ue.y;const K=ty({isVertical:B.value,isReversed:x.value,dragged:De,effectiveSlideSize:S.value});m.value=h.wrapAround?g.value+K:It({val:g.value+K,max:y.value,min:k.value}),o("drag",{deltaX:De.x,deltaY:De.y})});function pe(){if(ge.cancel(),m.value!==g.value&&!ie){const G=K=>{K.preventDefault(),window.removeEventListener("click",G)};window.addEventListener("click",G)}rt(m.value),De.x=0,De.y=0,Xe.value=!1;const $=ie?"touchmove":"mousemove",H=ie?"touchend":"mouseup";document.removeEventListener($,ge),document.removeEventListener(H,pe)}function Te(){!h.autoplay||h.autoplay<=0||(C=setInterval(()=>{h.pauseAutoplayOnHover&&st.value||ht()},h.autoplay))}function ot(){C&&(clearInterval(C),C=null)}function Tt(){ot(),Te()}const Le=a.ref(!1);function rt($,H=!1){if(!H&&Le.value)return;let G=$,K=$;p.value=g.value,h.wrapAround?K=Al({val:G,max:y.value,min:k.value}):G=It({val:G,max:y.value,min:k.value}),o("slide-start",{slidingToIndex:$,currentSlideIndex:g.value,prevSlideIndex:p.value,slidesCount:l.value}),ot(),Le.value=!0,g.value=G,K!==G&&$o.pause(),o("update:modelValue",K),_=setTimeout(()=>{h.wrapAround&&K!==G&&($o.resume(),g.value=K,o("loop",{currentSlideIndex:g.value,slidingToIndex:$})),o("slide-end",{currentSlideIndex:g.value,prevSlideIndex:p.value,slidesCount:l.value}),Le.value=!1,Tt()},h.transition)}function ht($=!1){rt(g.value+h.itemsToScroll,$)}function ho($=!1){rt(g.value-h.itemsToScroll,$)}function go(){O(),L(),P(),Tt()}a.watch(()=>[f.value,t.breakpoints],()=>O(),{deep:!0}),a.watch(()=>t.autoplay,()=>Tt());const $o=a.watch(()=>t.modelValue,$=>{$!==g.value&&rt(Number($),!0)});o("before-init");const ee=a.computed(()=>{if(!h.wrapAround)return{before:0,after:0};if(T.value)return{before:s.length,after:s.length};const $=Number(h.itemsToShow),H=Math.ceil($+(h.itemsToScroll-1)),G=H-m.value,K=H-(l.value-(m.value+1));return{before:Math.max(0,G),after:Math.max(0,K)}}),wt=a.computed(()=>ee.value.before?T.value?Y.value.slice(-1*ee.value.before).reduce(($,H)=>$+H[E.value]+h.gap,0)*-1:ee.value.before*S.value*-1:0),Ae=a.computed(()=>{var $;if(T.value){const H=(g.value%s.length+s.length)%s.length;return qi({slideSize:($=Y.value[H])===null||$===void 0?void 0:$[E.value],viewportSize:z.value[E.value],align:h.snapAlign})}return qi({align:h.snapAlign,itemsToShow:+h.itemsToShow})}),R=a.computed(()=>{let $=0;if(T.value){if(g.value<0?$=Y.value.slice(g.value).reduce((H,G)=>H+G[E.value]+h.gap,0)*-1:$=Y.value.slice(0,g.value).reduce((H,G)=>H+G[E.value]+h.gap,0),$-=Ae.value,!h.wrapAround){const H=Y.value.reduce((G,K)=>G+K[E.value]+h.gap,0)-z.value[E.value]-h.gap;$=It({val:$,max:H,min:0})}}else{let H=g.value-Ae.value;h.wrapAround||(H=It({val:H,max:l.value-+h.itemsToShow,min:0})),$=H*S.value}return $*(x.value?1:-1)}),D=a.computed(()=>{var $,H;if(!T.value){const re=g.value-Ae.value;return h.wrapAround?{min:Math.floor(re),max:Math.ceil(re+Number(h.itemsToShow)-1)}:{min:Math.floor(It({val:re,max:l.value-Number(h.itemsToShow),min:0})),max:Math.ceil(It({val:re+Number(h.itemsToShow)-1,max:l.value-1,min:0}))}}let G=0;{let re=0,ke=0-ee.value.before;const Oe=Math.abs(R.value+wt.value);for(;re<=Oe;){const He=(ke%s.length+s.length)%s.length;re+=(($=Y.value[He])===null||$===void 0?void 0:$[E.value])+h.gap,ke++}G=ke-1}let K=0;{let re=G,ke=0;for(re<0?ke=Y.value.slice(0,re).reduce((Oe,He)=>Oe+He[E.value]+h.gap,0)-Math.abs(R.value+wt.value):ke=Y.value.slice(0,re).reduce((Oe,He)=>Oe+He[E.value]+h.gap,0)-Math.abs(R.value);ke<z.value[E.value];){const Oe=(re%s.length+s.length)%s.length;ke+=((H=Y.value[Oe])===null||H===void 0?void 0:H[E.value])+h.gap,re++}K=re-1}return{min:Math.floor(G),max:Math.ceil(K)}}),A=a.computed(()=>{if(h.slideEffect==="fade")return;const $=B.value?"Y":"X",H=B.value?De.y:De.x;let G=R.value+H;if(!h.wrapAround&&h.preventExcessiveDragging){let K=0;T.value?K=Y.value.reduce((Oe,He)=>Oe+He[E.value],0):K=(l.value-Number(h.itemsToShow))*S.value;const re=x.value?0:-1*K,ke=x.value?K:0;G=It({val:G,min:re,max:ke})}return`translate${$}(${G}px)`}),q=a.computed(()=>({"--vc-transition-duration":Le.value?En(h.transition,"ms"):void 0,"--vc-slide-gap":En(h.gap),"--vc-carousel-height":En(h.height),"--vc-cloned-offset":En(wt.value)})),te={slideTo:rt,next:ht,prev:ho},le=a.reactive({activeSlide:m,config:h,currentSlide:g,isSliding:Le,isVertical:B,maxSlide:y,minSlide:k,nav:te,normalizedDir:w,slideRegistry:i,slideSize:u,slides:s,slidesCount:l,viewport:d,visibleRange:D});a.provide(ko,le);const Z=a.reactive({config:h,currentSlide:g,maxSlide:y,middleSlide:b,minSlide:k,slideSize:u,slidesCount:l});return r({data:Z,nav:te,next:ht,prev:ho,restartCarousel:go,slideTo:rt,updateBreakpointsConfig:O,updateSlideSize:P,updateSlidesData:L}),()=>{var $;const H=e.default||e.slides,G=(H==null?void 0:H(Z))||[],{before:K,after:re}=ee.value,ke=Tl({slides:s,position:"before",toShow:K}),Oe=Tl({slides:s,position:"after",toShow:re}),He=[...ke,...G,...Oe];if(!h.enabled||!He.length)return a.h("section",{ref:c,class:["carousel","is-disabled"]},He);const an=(($=e.addons)===null||$===void 0?void 0:$.call(e,Z))||[],sn=a.h("ol",{class:"carousel__track",style:{transform:A.value},onMousedownCapture:h.mouseDrag?me:null,onTouchstartPassiveCapture:h.touchDrag?me:null},He),ln=a.h("div",{class:"carousel__viewport",ref:d},sn);return a.h("section",{ref:c,class:["carousel",`is-${w.value}`,`is-effect-${h.slideEffect}`,{"is-vertical":B.value,"is-sliding":Le.value,"is-dragging":Xe.value,"is-hover":st.value}],dir:w.value,style:q.value,"aria-label":h.i18n.ariaGallery,tabindex:"0",onFocus:V,onBlur:he,onMouseenter:vt,onMouseleave:ft},[ln,an,a.h(ay)])}}});var Xi;(function(t){t.arrowDown="arrowDown",t.arrowLeft="arrowLeft",t.arrowRight="arrowRight",t.arrowUp="arrowUp"})(Xi||(Xi={}));const Vl=t=>`icon${t.charAt(0).toUpperCase()+t.slice(1)}`,ly={arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"};function cy(t){return t in Xi}const Fl=t=>t&&cy(t),Il=a.defineComponent({props:{name:{type:String,required:!0,validator:Fl},title:{type:String,default:t=>t.name?Ve.i18n[Vl(t.name)]:""}},setup(t){const e=a.inject(ko,null);return()=>{const o=t.name;if(!o||!Fl(o))return;const r=ly[o],n=a.h("path",{d:r}),i=(e==null?void 0:e.config.i18n[Vl(o)])||t.title,s=a.h("title",i);return a.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":i},[s,n])}}}),Ll=a.defineComponent({name:"CarouselNavigation",inheritAttrs:!1,setup(t,{slots:e,attrs:o}){const r=a.inject(ko);if(!r)return()=>"";const{next:n,prev:i}=e,s=()=>({btt:"arrowDown",ltr:"arrowLeft",rtl:"arrowRight",ttb:"arrowUp"})[r.normalizedDir],l=()=>({btt:"arrowUp",ltr:"arrowRight",rtl:"arrowLeft",ttb:"arrowDown"})[r.normalizedDir],c=a.computed(()=>!r.config.wrapAround&&r.currentSlide<=r.minSlide),d=a.computed(()=>!r.config.wrapAround&&r.currentSlide>=r.maxSlide);return()=>{const{i18n:u}=r.config,f=a.h("button",Object.assign(Object.assign({type:"button",disabled:c.value,"aria-label":u.ariaPreviousSlide,title:u.ariaPreviousSlide,onClick:r.nav.prev},o),{class:["carousel__prev",{"carousel__prev--disabled":c.value},o.class]}),(i==null?void 0:i())||a.h(Il,{name:s()})),h=a.h("button",Object.assign(Object.assign({type:"button",disabled:d.value,"aria-label":u.ariaNextSlide,title:u.ariaNextSlide,onClick:r.nav.next},o),{class:["carousel__next",{"carousel__next--disabled":d.value},o.class]}),(n==null?void 0:n())||a.h(Il,{name:l()}));return[f,h]}}});a.defineComponent({name:"CarouselPagination",props:{disableOnClick:{type:Boolean},paginateByItemsToShow:{type:Boolean}},setup(t){const e=a.inject(ko);if(!e)return()=>"";const o=a.computed(()=>e.config.itemsToShow),r=a.computed(()=>qi({align:e.config.snapAlign,itemsToShow:o.value})),n=a.computed(()=>t.paginateByItemsToShow&&o.value>1),i=a.computed(()=>Math.ceil((e.activeSlide-r.value)/o.value)),s=a.computed(()=>Math.ceil(e.slidesCount/o.value)),l=c=>Al(n.value?{val:i.value,max:s.value-1,min:0}:{val:e.activeSlide,max:e.maxSlide,min:e.minSlide})===c;return()=>{var c,d;const u=[];for(let f=n.value?0:e.minSlide;f<=(n.value?s.value-1:e.maxSlide);f++){const h=$l(e.config.i18n[n.value?"ariaNavigateToPage":"ariaNavigateToSlide"],{slideNumber:f+1}),g=l(f),m=a.h("button",{type:"button",class:{"carousel__pagination-button":!0,"carousel__pagination-button--active":g},"aria-label":h,"aria-pressed":g,"aria-controls":(d=(c=e.slides[f])===null||c===void 0?void 0:c.exposed)===null||d===void 0?void 0:d.id,title:h,disabled:t.disableOnClick,onClick:()=>e.nav.slideTo(n.value?Math.floor(f*+e.config.itemsToShow+r.value):f)}),p=a.h("li",{class:"carousel__pagination-item",key:f},m);u.push(p)}return a.h("ol",{class:"carousel__pagination"},u)}}});const zl=a.defineComponent({name:"CarouselSlide",props:{id:{type:String,default:t=>t.isClone?void 0:a.useId()},index:{type:Number,default:void 0},isClone:{type:Boolean,default:!1},position:{type:String,default:void 0}},setup(t,{attrs:e,slots:o,expose:r}){const n=a.inject(ko);if(a.provide(ko,void 0),!n)return()=>"";const i=a.ref(t.index),s=m=>{i.value=m},l=a.getCurrentInstance(),c=()=>{const m=l.vnode.el;return m?m.getBoundingClientRect():{width:0,height:0}};r({id:t.id,setIndex:s,getBoundingRect:c});const d=a.computed(()=>i.value===n.activeSlide),u=a.computed(()=>i.value===n.activeSlide-1),f=a.computed(()=>i.value===n.activeSlide+1),h=a.computed(()=>i.value>=n.visibleRange.min&&i.value<=n.visibleRange.max),g=a.computed(()=>{if(n.config.itemsToShow==="auto")return;const m=n.config.itemsToShow,p=n.config.gap>0&&m>1?`calc(${100/m}% - ${n.config.gap*(m-1)/m}px)`:`${100/m}%`;return n.isVertical?{height:p}:{width:p}});return n.slideRegistry.registerSlide(l,t.index),a.onUnmounted(()=>{n.slideRegistry.unregisterSlide(l)}),t.isClone&&(a.onMounted(()=>{Pl(l.vnode)}),a.onUpdated(()=>{Pl(l.vnode)})),()=>{var m,p;return n.config.enabled?a.h("li",{style:[e.style,Object.assign({},g.value)],class:{carousel__slide:!0,"carousel__slide--clone":t.isClone,"carousel__slide--visible":h.value,"carousel__slide--active":d.value,"carousel__slide--prev":u.value,"carousel__slide--next":f.value,"carousel__slide--sliding":n.isSliding},onFocusin:()=>{n.viewport&&(n.viewport.scrollLeft=0),n.nav.slideTo(i.value)},id:t.isClone?void 0:t.id,"aria-hidden":t.isClone||void 0},(p=o.default)===null||p===void 0?void 0:p.call(o,{currentIndex:i.value,isActive:d.value,isClone:t.isClone,isPrev:u.value,isNext:f.value,isSliding:n.isSliding,isVisible:h.value})):(m=o.default)===null||m===void 0?void 0:m.call(o)}}}),dy={class:"p-4 mb-4 flex flex-wrap gap-2 border border-gray-300 shadow-md rounded-lg"},uy={key:0,class:"error-message"},fy={class:"text-red-500 font-bold"},hy={key:0},gy={key:1,class:"mb-4 mt-4"},jl=Ne({__name:"EntityListingCarousel",props:{entityName:String,listDisplay:String,listItemDisplay:String,listHeader:String,listFooter:String,listFilter:String,listPagination:String,showAddButton:Boolean,showFilters:Boolean,listHeaderSlot:Boolean,showPagination:Boolean,className:{type:String,default:"default-class"},editable:Boolean,deletable:Boolean},setup(t,{expose:e}){const o=Sn(),r=lt();a.provide("entityObject",o);const n=t,i=a.ref([]);return a.watch(()=>o.state.data,c=>{c&&(i.value=c.result)},{immediate:!0}),e({props:n,reload:()=>{console.log("reload data")},filter:()=>{console.log("filter data in unordered")}}),a.watch(()=>r.globalConfigs.appId,async c=>{if(c){const d=await o.getEntity(n.entityName);o.setEntity(d.success?d.response:{result:[]})}},{immediate:!0}),(c,d)=>(a.openBlock(),a.createElementBlock("div",a.normalizeProps(a.guardReactiveProps(c.$attrs)),[c.$slots["list-item-display-carousel"]?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.renderSlot(c.$slots,"header",{},void 0,!0),t.showAddButton?(a.openBlock(),a.createBlock(eo,{key:0})):a.createCommentVNode("",!0),t.showFilters?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listFilter||Zt),{key:1})):a.createCommentVNode("",!0),i.value.length>1?(a.openBlock(),a.createBlock(a.unref(Ml),{key:2,"items-to-show":5,"wrap-around":!0,autoplay:2e3,pauseAutoplayOnHover:!0,transition:500},{addons:a.withCtx(()=>[a.createVNode(a.unref(Ll))]),default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,(u,f)=>(a.openBlock(),a.createBlock(a.unref(zl),{key:f},{default:a.withCtx(()=>[a.createElementVNode("div",dy,[a.renderSlot(c.$slots,"list-item-display-carousel",{item:u},void 0,!0)])]),_:2},1024))),128))]),_:3})):a.createCommentVNode("",!0),a.renderSlot(c.$slots,"footer",{},void 0,!0)],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.renderSlot(c.$slots,"header",{},void 0,!0),t.entityName?(a.openBlock(),a.createElementBlock("div",gy,[t.showFilters?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listFilter||Zt),{key:0})):a.createCommentVNode("",!0),t.showAddButton?(a.openBlock(),a.createBlock(eo,{key:1})):a.createCommentVNode("",!0),i.value.length?(a.openBlock(),a.createBlock(a.unref(Ml),{key:2,"items-to-show":3,"wrap-around":!1,mouseDrag:!0,pauseAutoplayOnHover:!0,breakpoints:{1024:{itemsToShow:3},950:{itemsToShow:2},768:{itemsToShow:1},340:{itemsToShow:1}}},{addons:a.withCtx(()=>[a.createVNode(a.unref(Ll))]),default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,(u,f)=>(a.openBlock(),a.createBlock(a.unref(zl),{key:f},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listItemDisplay&&t.listItemDisplay!==""?t.listItemDisplay:Kb),a.mergeProps({ref_for:!0},{item:u,...n}),null,16))]),_:2},1024))),128))]),_:1})):a.createCommentVNode("",!0),t.showPagination?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.listPagination||br),{key:3})):a.createCommentVNode("",!0)])):(a.openBlock(),a.createElementBlock("div",uy,[a.createElementVNode("p",fy,[d[0]||(d[0]=a.createTextVNode(" Error: Missing required props - ")),t.entityName?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",hy,"Entity Name"))])])),a.renderSlot(c.$slots,"footer",{},void 0,!0)],64))],16))}},[["__scopeId","data-v-84369e22"]]);class my{constructor(){this.httpService=new ls}async getEntities(){return await this.getAppId(),await this.httpService.get(`/api/app/v1/${this.appId}/entity`)}getEntity(e){}saveEntity(){}async getAppId(){const e=lt();this.appId=e.getAppId()}}const Wl=ss("entitiesStore",{state:()=>({entities:[],entityService:new my}),actions:{async fetchEntities(){try{return await this.entityService.getEntities()}catch(t){console.error("Error fetching entities:",t)}finally{}},async getEntities(){if(this.entities.length===0){const t=await this.fetchEntities();return this.setEntities(t.response),this.entities}else return this.entities},setEntities(t){this.entities=t}},getters:{}}),py={class:"field flex flex-col w-full"},by={key:0,class:"flex items-center"},yy={key:1},ky={class:"flex items-center"},Ki={__name:"EntitySelection",props:{entityName:String,onEntityChangeCallback:Function},setup(t){const e=lt(),o=a.ref(""),r=Wl(),n=a.ref([]),i=async()=>{n.value=await r.getEntities(),s()},s=()=>{for(let c=0;c<n.value.length;c++){const d=n.value[c];d.name.toLowerCase()==t.entityName.toLowerCase()&&(o.value=d)}},l=()=>{t.onEntityChangeCallback(o.value.name)};return a.watch(()=>e.globalConfigs.appId,async c=>{c&&await i()},{immediate:!0}),(c,d)=>{const u=a.resolveComponent("Select");return a.openBlock(),a.createElementBlock("div",py,[a.createVNode(u,{modelValue:o.value,"onUpdate:modelValue":[d[0]||(d[0]=f=>o.value=f),l],options:n.value,filter:"",optionLabel:"name",placeholder:"Select entity",class:"w-full"},{value:a.withCtx(f=>[f.value?(a.openBlock(),a.createElementBlock("div",by,[a.createElementVNode("div",null,a.toDisplayString(f.value.name),1)])):(a.openBlock(),a.createElementBlock("span",yy,a.toDisplayString(f.placeholder),1))]),option:a.withCtx(f=>[a.createElementVNode("div",ky,[a.createElementVNode("div",null,a.toDisplayString(f.option.name),1)])]),_:1},8,["modelValue","options"])])}}},Hl={__name:"FieldExpression",props:["value"],setup(t){return(e,o)=>(a.openBlock(),a.createElementBlock("span",null,a.toDisplayString(t.value),1))}},xy={class:"flex flex-col w-full"},vy={class:"w-1/4"},wy={class:"w-full mt-5"},Ul={__name:"EntityExplorer",props:{entityName:String},setup(t){const e=t,o=a.ref(e.entityName);a.watch(o,n=>{console.log("Entity changed to:",n)});const r=n=>{o.value=n};return(n,i)=>(a.openBlock(),a.createElementBlock("div",xy,[a.createElementVNode("div",vy,[(a.openBlock(),a.createBlock(Ki,{key:o.value,entityName:o.value,onEntityChangeCallback:r},null,8,["entityName"]))]),a.createElementVNode("div",wy,[(a.openBlock(),a.createBlock(zi,{key:o.value,entityName:o.value},null,8,["entityName"]))])]))}};function ql(t,e){return function(){return t.apply(e,arguments)}}const{toString:Cy}=Object.prototype,{getPrototypeOf:Gi}=Object,Rn=(t=>e=>{const o=Cy.call(e);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),bt=t=>(t=t.toLowerCase(),e=>Rn(e)===t),Dn=t=>e=>typeof e===t,{isArray:jo}=Array,kr=Dn("undefined");function _y(t){return t!==null&&!kr(t)&&t.constructor!==null&&!kr(t.constructor)&&nt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Yl=bt("ArrayBuffer");function Sy(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Yl(t.buffer),e}const By=Dn("string"),nt=Dn("function"),Xl=Dn("number"),On=t=>t!==null&&typeof t=="object",Ey=t=>t===!0||t===!1,Nn=t=>{if(Rn(t)!=="object")return!1;const e=Gi(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Ry=bt("Date"),Dy=bt("File"),Oy=bt("Blob"),Ny=bt("FileList"),Ty=t=>On(t)&&nt(t.pipe),Py=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||nt(t.append)&&((e=Rn(t))==="formdata"||e==="object"&&nt(t.toString)&&t.toString()==="[object FormData]"))},$y=bt("URLSearchParams"),[Ay,My,Vy,Fy]=["ReadableStream","Request","Response","Headers"].map(bt),Iy=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function xr(t,e,{allOwnKeys:o=!1}={}){if(t===null||typeof t>"u")return;let r,n;if(typeof t!="object"&&(t=[t]),jo(t))for(r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else{const i=o?Object.getOwnPropertyNames(t):Object.keys(t),s=i.length;let l;for(r=0;r<s;r++)l=i[r],e.call(null,t[l],l,t)}}function Kl(t,e){e=e.toLowerCase();const o=Object.keys(t);let r=o.length,n;for(;r-- >0;)if(n=o[r],e===n.toLowerCase())return n;return null}const xo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Gl=t=>!kr(t)&&t!==xo;function Ji(){const{caseless:t}=Gl(this)&&this||{},e={},o=(r,n)=>{const i=t&&Kl(e,n)||n;Nn(e[i])&&Nn(r)?e[i]=Ji(e[i],r):Nn(r)?e[i]=Ji({},r):jo(r)?e[i]=r.slice():e[i]=r};for(let r=0,n=arguments.length;r<n;r++)arguments[r]&&xr(arguments[r],o);return e}const Ly=(t,e,o,{allOwnKeys:r}={})=>(xr(e,(n,i)=>{o&&nt(n)?t[i]=ql(n,o):t[i]=n},{allOwnKeys:r}),t),zy=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),jy=(t,e,o,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),o&&Object.assign(t.prototype,o)},Wy=(t,e,o,r)=>{let n,i,s;const l={};if(e=e||{},t==null)return e;do{for(n=Object.getOwnPropertyNames(t),i=n.length;i-- >0;)s=n[i],(!r||r(s,t,e))&&!l[s]&&(e[s]=t[s],l[s]=!0);t=o!==!1&&Gi(t)}while(t&&(!o||o(t,e))&&t!==Object.prototype);return e},Hy=(t,e,o)=>{t=String(t),(o===void 0||o>t.length)&&(o=t.length),o-=e.length;const r=t.indexOf(e,o);return r!==-1&&r===o},Uy=t=>{if(!t)return null;if(jo(t))return t;let e=t.length;if(!Xl(e))return null;const o=new Array(e);for(;e-- >0;)o[e]=t[e];return o},qy=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Gi(Uint8Array)),Yy=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let n;for(;(n=r.next())&&!n.done;){const i=n.value;e.call(t,i[0],i[1])}},Xy=(t,e)=>{let o;const r=[];for(;(o=t.exec(e))!==null;)r.push(o);return r},Ky=bt("HTMLFormElement"),Gy=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,r,n){return r.toUpperCase()+n}),Jl=(({hasOwnProperty:t})=>(e,o)=>t.call(e,o))(Object.prototype),Jy=bt("RegExp"),Ql=(t,e)=>{const o=Object.getOwnPropertyDescriptors(t),r={};xr(o,(n,i)=>{let s;(s=e(n,i,t))!==!1&&(r[i]=s||n)}),Object.defineProperties(t,r)},Qy=t=>{Ql(t,(e,o)=>{if(nt(t)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const r=t[o];if(nt(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},Zy=(t,e)=>{const o={},r=n=>{n.forEach(i=>{o[i]=!0})};return jo(t)?r(t):r(String(t).split(e)),o},ek=()=>{},tk=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Qi="abcdefghijklmnopqrstuvwxyz",Zl="0123456789",ec={DIGIT:Zl,ALPHA:Qi,ALPHA_DIGIT:Qi+Qi.toUpperCase()+Zl},ok=(t=16,e=ec.ALPHA_DIGIT)=>{let o="";const{length:r}=e;for(;t--;)o+=e[Math.random()*r|0];return o};function rk(t){return!!(t&&nt(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const nk=t=>{const e=new Array(10),o=(r,n)=>{if(On(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[n]=r;const i=jo(r)?[]:{};return xr(r,(s,l)=>{const c=o(s,n+1);!kr(c)&&(i[l]=c)}),e[n]=void 0,i}}return r};return o(t,0)},ik=bt("AsyncFunction"),ak=t=>t&&(On(t)||nt(t))&&nt(t.then)&&nt(t.catch),tc=((t,e)=>t?setImmediate:e?((o,r)=>(xo.addEventListener("message",({source:n,data:i})=>{n===xo&&i===o&&r.length&&r.shift()()},!1),n=>{r.push(n),xo.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",nt(xo.postMessage)),sk=typeof queueMicrotask<"u"?queueMicrotask.bind(xo):typeof process<"u"&&process.nextTick||tc,N={isArray:jo,isArrayBuffer:Yl,isBuffer:_y,isFormData:Py,isArrayBufferView:Sy,isString:By,isNumber:Xl,isBoolean:Ey,isObject:On,isPlainObject:Nn,isReadableStream:Ay,isRequest:My,isResponse:Vy,isHeaders:Fy,isUndefined:kr,isDate:Ry,isFile:Dy,isBlob:Oy,isRegExp:Jy,isFunction:nt,isStream:Ty,isURLSearchParams:$y,isTypedArray:qy,isFileList:Ny,forEach:xr,merge:Ji,extend:Ly,trim:Iy,stripBOM:zy,inherits:jy,toFlatObject:Wy,kindOf:Rn,kindOfTest:bt,endsWith:Hy,toArray:Uy,forEachEntry:Yy,matchAll:Xy,isHTMLForm:Ky,hasOwnProperty:Jl,hasOwnProp:Jl,reduceDescriptors:Ql,freezeMethods:Qy,toObjectSet:Zy,toCamelCase:Gy,noop:ek,toFiniteNumber:tk,findKey:Kl,global:xo,isContextDefined:Gl,ALPHABET:ec,generateString:ok,isSpecCompliantForm:rk,toJSONObject:nk,isAsyncFn:ik,isThenable:ak,setImmediate:tc,asap:sk};function ae(t,e,o,r,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),o&&(this.config=o),r&&(this.request=r),n&&(this.response=n,this.status=n.status?n.status:null)}N.inherits(ae,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:N.toJSONObject(this.config),code:this.code,status:this.status}}});const oc=ae.prototype,rc={};["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(t=>{rc[t]={value:t}}),Object.defineProperties(ae,rc),Object.defineProperty(oc,"isAxiosError",{value:!0}),ae.from=(t,e,o,r,n,i)=>{const s=Object.create(oc);return N.toFlatObject(t,s,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),ae.call(s,t.message,e,o,r,n),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const lk=null;function Zi(t){return N.isPlainObject(t)||N.isArray(t)}function nc(t){return N.endsWith(t,"[]")?t.slice(0,-2):t}function ic(t,e,o){return t?t.concat(e).map(function(n,i){return n=nc(n),!o&&i?"["+n+"]":n}).join(o?".":""):e}function ck(t){return N.isArray(t)&&!t.some(Zi)}const dk=N.toFlatObject(N,{},null,function(e){return/^is[A-Z]/.test(e)});function Tn(t,e,o){if(!N.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,o=N.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,b){return!N.isUndefined(b[p])});const r=o.metaTokens,n=o.visitor||u,i=o.dots,s=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&N.isSpecCompliantForm(e);if(!N.isFunction(n))throw new TypeError("visitor must be a function");function d(m){if(m===null)return"";if(N.isDate(m))return m.toISOString();if(!c&&N.isBlob(m))throw new ae("Blob is not supported. Use a Buffer instead.");return N.isArrayBuffer(m)||N.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,p,b){let y=m;if(m&&!b&&typeof m=="object"){if(N.endsWith(p,"{}"))p=r?p:p.slice(0,-2),m=JSON.stringify(m);else if(N.isArray(m)&&ck(m)||(N.isFileList(m)||N.endsWith(p,"[]"))&&(y=N.toArray(m)))return p=nc(p),y.forEach(function(C,_){!(N.isUndefined(C)||C===null)&&e.append(s===!0?ic([p],_,i):s===null?p:p+"[]",d(C))}),!1}return Zi(m)?!0:(e.append(ic(b,p,i),d(m)),!1)}const f=[],h=Object.assign(dk,{defaultVisitor:u,convertValue:d,isVisitable:Zi});function g(m,p){if(!N.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(m),N.forEach(m,function(y,k){(!(N.isUndefined(y)||y===null)&&n.call(e,y,N.isString(k)?k.trim():k,p,h))===!0&&g(y,p?p.concat(k):[k])}),f.pop()}}if(!N.isObject(t))throw new TypeError("data must be an object");return g(t),e}function ac(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function ea(t,e){this._pairs=[],t&&Tn(t,this,e)}const sc=ea.prototype;sc.append=function(e,o){this._pairs.push([e,o])},sc.toString=function(e){const o=e?function(r){return e.call(this,r,ac)}:ac;return this._pairs.map(function(n){return o(n[0])+"="+o(n[1])},"").join("&")};function uk(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function lc(t,e,o){if(!e)return t;const r=o&&o.encode||uk;N.isFunction(o)&&(o={serialize:o});const n=o&&o.serialize;let i;if(n?i=n(e,o):i=N.isURLSearchParams(e)?e.toString():new ea(e,o).toString(r),i){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class cc{constructor(){this.handlers=[]}use(e,o,r){return this.handlers.push({fulfilled:e,rejected:o,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){N.forEach(this.handlers,function(r){r!==null&&e(r)})}}const dc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fk={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ea,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ta=typeof window<"u"&&typeof document<"u",oa=typeof navigator=="object"&&navigator||void 0,hk=ta&&(!oa||["ReactNative","NativeScript","NS"].indexOf(oa.product)<0),gk=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",mk=ta&&window.location.href||"http://localhost",Ue={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ta,hasStandardBrowserEnv:hk,hasStandardBrowserWebWorkerEnv:gk,navigator:oa,origin:mk},Symbol.toStringTag,{value:"Module"})),...fk};function pk(t,e){return Tn(t,new Ue.classes.URLSearchParams,Object.assign({visitor:function(o,r,n,i){return Ue.isNode&&N.isBuffer(o)?(this.append(r,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function bk(t){return N.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function yk(t){const e={},o=Object.keys(t);let r;const n=o.length;let i;for(r=0;r<n;r++)i=o[r],e[i]=t[i];return e}function uc(t){function e(o,r,n,i){let s=o[i++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),c=i>=o.length;return s=!s&&N.isArray(n)?n.length:s,c?(N.hasOwnProp(n,s)?n[s]=[n[s],r]:n[s]=r,!l):((!n[s]||!N.isObject(n[s]))&&(n[s]=[]),e(o,r,n[s],i)&&N.isArray(n[s])&&(n[s]=yk(n[s])),!l)}if(N.isFormData(t)&&N.isFunction(t.entries)){const o={};return N.forEachEntry(t,(r,n)=>{e(bk(r),n,o,0)}),o}return null}function kk(t,e,o){if(N.isString(t))try{return(e||JSON.parse)(t),N.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const vr={transitional:dc,adapter:["xhr","http","fetch"],transformRequest:[function(e,o){const r=o.getContentType()||"",n=r.indexOf("application/json")>-1,i=N.isObject(e);if(i&&N.isHTMLForm(e)&&(e=new FormData(e)),N.isFormData(e))return n?JSON.stringify(uc(e)):e;if(N.isArrayBuffer(e)||N.isBuffer(e)||N.isStream(e)||N.isFile(e)||N.isBlob(e)||N.isReadableStream(e))return e;if(N.isArrayBufferView(e))return e.buffer;if(N.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return pk(e,this.formSerializer).toString();if((l=N.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Tn(l?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||n?(o.setContentType("application/json",!1),kk(e)):e}],transformResponse:[function(e){const o=this.transitional||vr.transitional,r=o&&o.forcedJSONParsing,n=this.responseType==="json";if(N.isResponse(e)||N.isReadableStream(e))return e;if(e&&N.isString(e)&&(r&&!this.responseType||n)){const s=!(o&&o.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(l){if(s)throw l.name==="SyntaxError"?ae.from(l,ae.ERR_BAD_RESPONSE,this,null,this.response):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ue.classes.FormData,Blob:Ue.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};N.forEach(["delete","get","head","post","put","patch"],t=>{vr.headers[t]={}});const xk=N.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"]),vk=t=>{const e={};let o,r,n;return t&&t.split(`
|
|
161
|
+
`).forEach(function(s){n=s.indexOf(":"),o=s.substring(0,n).trim().toLowerCase(),r=s.substring(n+1).trim(),!(!o||e[o]&&xk[o])&&(o==="set-cookie"?e[o]?e[o].push(r):e[o]=[r]:e[o]=e[o]?e[o]+", "+r:r)}),e},fc=Symbol("internals");function wr(t){return t&&String(t).trim().toLowerCase()}function Pn(t){return t===!1||t==null?t:N.isArray(t)?t.map(Pn):String(t)}function wk(t){const e=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=o.exec(t);)e[r[1]]=r[2];return e}const Ck=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ra(t,e,o,r,n){if(N.isFunction(r))return r.call(this,e,o);if(n&&(e=o),!!N.isString(e)){if(N.isString(r))return e.indexOf(r)!==-1;if(N.isRegExp(r))return r.test(e)}}function _k(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,o,r)=>o.toUpperCase()+r)}function Sk(t,e){const o=N.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+o,{value:function(n,i,s){return this[r].call(this,e,n,i,s)},configurable:!0})})}class Ze{constructor(e){e&&this.set(e)}set(e,o,r){const n=this;function i(l,c,d){const u=wr(c);if(!u)throw new Error("header name must be a non-empty string");const f=N.findKey(n,u);(!f||n[f]===void 0||d===!0||d===void 0&&n[f]!==!1)&&(n[f||c]=Pn(l))}const s=(l,c)=>N.forEach(l,(d,u)=>i(d,u,c));if(N.isPlainObject(e)||e instanceof this.constructor)s(e,o);else if(N.isString(e)&&(e=e.trim())&&!Ck(e))s(vk(e),o);else if(N.isHeaders(e))for(const[l,c]of e.entries())i(c,l,r);else e!=null&&i(o,e,r);return this}get(e,o){if(e=wr(e),e){const r=N.findKey(this,e);if(r){const n=this[r];if(!o)return n;if(o===!0)return wk(n);if(N.isFunction(o))return o.call(this,n,r);if(N.isRegExp(o))return o.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,o){if(e=wr(e),e){const r=N.findKey(this,e);return!!(r&&this[r]!==void 0&&(!o||ra(this,this[r],r,o)))}return!1}delete(e,o){const r=this;let n=!1;function i(s){if(s=wr(s),s){const l=N.findKey(r,s);l&&(!o||ra(r,r[l],l,o))&&(delete r[l],n=!0)}}return N.isArray(e)?e.forEach(i):i(e),n}clear(e){const o=Object.keys(this);let r=o.length,n=!1;for(;r--;){const i=o[r];(!e||ra(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){const o=this,r={};return N.forEach(this,(n,i)=>{const s=N.findKey(r,i);if(s){o[s]=Pn(n),delete o[i];return}const l=e?_k(i):String(i).trim();l!==i&&delete o[i],o[l]=Pn(n),r[l]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const o=Object.create(null);return N.forEach(this,(r,n)=>{r!=null&&r!==!1&&(o[n]=e&&N.isArray(r)?r.join(", "):r)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,o])=>e+": "+o).join(`
|
|
162
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...o){const r=new this(e);return o.forEach(n=>r.set(n)),r}static accessor(e){const r=(this[fc]=this[fc]={accessors:{}}).accessors,n=this.prototype;function i(s){const l=wr(s);r[l]||(Sk(n,s),r[l]=!0)}return N.isArray(e)?e.forEach(i):i(e),this}}Ze.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),N.reduceDescriptors(Ze.prototype,({value:t},e)=>{let o=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[o]=r}}}),N.freezeMethods(Ze);function na(t,e){const o=this||vr,r=e||o,n=Ze.from(r.headers);let i=r.data;return N.forEach(t,function(l){i=l.call(o,i,n.normalize(),e?e.status:void 0)}),n.normalize(),i}function hc(t){return!!(t&&t.__CANCEL__)}function Wo(t,e,o){ae.call(this,t??"canceled",ae.ERR_CANCELED,e,o),this.name="CanceledError"}N.inherits(Wo,ae,{__CANCEL__:!0});function gc(t,e,o){const r=o.config.validateStatus;!o.status||!r||r(o.status)?t(o):e(new ae("Request failed with status code "+o.status,[ae.ERR_BAD_REQUEST,ae.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function Bk(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Ek(t,e){t=t||10;const o=new Array(t),r=new Array(t);let n=0,i=0,s;return e=e!==void 0?e:1e3,function(c){const d=Date.now(),u=r[i];s||(s=d),o[n]=c,r[n]=d;let f=i,h=0;for(;f!==n;)h+=o[f++],f=f%t;if(n=(n+1)%t,n===i&&(i=(i+1)%t),d-s<e)return;const g=u&&d-u;return g?Math.round(h*1e3/g):void 0}}function Rk(t,e){let o=0,r=1e3/e,n,i;const s=(d,u=Date.now())=>{o=u,n=null,i&&(clearTimeout(i),i=null),t.apply(null,d)};return[(...d)=>{const u=Date.now(),f=u-o;f>=r?s(d,u):(n=d,i||(i=setTimeout(()=>{i=null,s(n)},r-f)))},()=>n&&s(n)]}const $n=(t,e,o=3)=>{let r=0;const n=Ek(50,250);return Rk(i=>{const s=i.loaded,l=i.lengthComputable?i.total:void 0,c=s-r,d=n(c),u=s<=l;r=s;const f={loaded:s,total:l,progress:l?s/l:void 0,bytes:c,rate:d||void 0,estimated:d&&l&&u?(l-s)/d:void 0,event:i,lengthComputable:l!=null,[e?"download":"upload"]:!0};t(f)},o)},mc=(t,e)=>{const o=t!=null;return[r=>e[0]({lengthComputable:o,total:t,loaded:r}),e[1]]},pc=t=>(...e)=>N.asap(()=>t(...e)),Dk=Ue.hasStandardBrowserEnv?((t,e)=>o=>(o=new URL(o,Ue.origin),t.protocol===o.protocol&&t.host===o.host&&(e||t.port===o.port)))(new URL(Ue.origin),Ue.navigator&&/(msie|trident)/i.test(Ue.navigator.userAgent)):()=>!0,Ok=Ue.hasStandardBrowserEnv?{write(t,e,o,r,n,i){const s=[t+"="+encodeURIComponent(e)];N.isNumber(o)&&s.push("expires="+new Date(o).toGMTString()),N.isString(r)&&s.push("path="+r),N.isString(n)&&s.push("domain="+n),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Nk(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Tk(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function bc(t,e){return t&&!Nk(e)?Tk(t,e):e}const yc=t=>t instanceof Ze?{...t}:t;function vo(t,e){e=e||{};const o={};function r(d,u,f,h){return N.isPlainObject(d)&&N.isPlainObject(u)?N.merge.call({caseless:h},d,u):N.isPlainObject(u)?N.merge({},u):N.isArray(u)?u.slice():u}function n(d,u,f,h){if(N.isUndefined(u)){if(!N.isUndefined(d))return r(void 0,d,f,h)}else return r(d,u,f,h)}function i(d,u){if(!N.isUndefined(u))return r(void 0,u)}function s(d,u){if(N.isUndefined(u)){if(!N.isUndefined(d))return r(void 0,d)}else return r(void 0,u)}function l(d,u,f){if(f in e)return r(d,u);if(f in t)return r(void 0,d)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(d,u,f)=>n(yc(d),yc(u),f,!0)};return N.forEach(Object.keys(Object.assign({},t,e)),function(u){const f=c[u]||n,h=f(t[u],e[u],u);N.isUndefined(h)&&f!==l||(o[u]=h)}),o}const kc=t=>{const e=vo({},t);let{data:o,withXSRFToken:r,xsrfHeaderName:n,xsrfCookieName:i,headers:s,auth:l}=e;e.headers=s=Ze.from(s),e.url=lc(bc(e.baseURL,e.url),t.params,t.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(N.isFormData(o)){if(Ue.hasStandardBrowserEnv||Ue.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[d,...u]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([d||"multipart/form-data",...u].join("; "))}}if(Ue.hasStandardBrowserEnv&&(r&&N.isFunction(r)&&(r=r(e)),r||r!==!1&&Dk(e.url))){const d=n&&i&&Ok.read(i);d&&s.set(n,d)}return e},Pk=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(o,r){const n=kc(t);let i=n.data;const s=Ze.from(n.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:d}=n,u,f,h,g,m;function p(){g&&g(),m&&m(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(n.method.toUpperCase(),n.url,!0),b.timeout=n.timeout;function y(){if(!b)return;const C=Ze.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),v={data:!l||l==="text"||l==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:C,config:t,request:b};gc(function(w){o(w),p()},function(w){r(w),p()},v),b=null}"onloadend"in b?b.onloadend=y:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(y)},b.onabort=function(){b&&(r(new ae("Request aborted",ae.ECONNABORTED,t,b)),b=null)},b.onerror=function(){r(new ae("Network Error",ae.ERR_NETWORK,t,b)),b=null},b.ontimeout=function(){let _=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const v=n.transitional||dc;n.timeoutErrorMessage&&(_=n.timeoutErrorMessage),r(new ae(_,v.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,t,b)),b=null},i===void 0&&s.setContentType(null),"setRequestHeader"in b&&N.forEach(s.toJSON(),function(_,v){b.setRequestHeader(v,_)}),N.isUndefined(n.withCredentials)||(b.withCredentials=!!n.withCredentials),l&&l!=="json"&&(b.responseType=n.responseType),d&&([h,m]=$n(d,!0),b.addEventListener("progress",h)),c&&b.upload&&([f,g]=$n(c),b.upload.addEventListener("progress",f),b.upload.addEventListener("loadend",g)),(n.cancelToken||n.signal)&&(u=C=>{b&&(r(!C||C.type?new Wo(null,t,b):C),b.abort(),b=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));const k=Bk(n.url);if(k&&Ue.protocols.indexOf(k)===-1){r(new ae("Unsupported protocol "+k+":",ae.ERR_BAD_REQUEST,t));return}b.send(i||null)})},$k=(t,e)=>{const{length:o}=t=t?t.filter(Boolean):[];if(e||o){let r=new AbortController,n;const i=function(d){if(!n){n=!0,l();const u=d instanceof Error?d:this.reason;r.abort(u instanceof ae?u:new Wo(u instanceof Error?u.message:u))}};let s=e&&setTimeout(()=>{s=null,i(new ae(`timeout ${e} of ms exceeded`,ae.ETIMEDOUT))},e);const l=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(d=>{d.unsubscribe?d.unsubscribe(i):d.removeEventListener("abort",i)}),t=null)};t.forEach(d=>d.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>N.asap(l),c}},Ak=function*(t,e){let o=t.byteLength;if(o<e){yield t;return}let r=0,n;for(;r<o;)n=r+e,yield t.slice(r,n),r=n},Mk=async function*(t,e){for await(const o of Vk(t))yield*Ak(o,e)},Vk=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:o,value:r}=await e.read();if(o)break;yield r}}finally{await e.cancel()}},xc=(t,e,o,r)=>{const n=Mk(t,e);let i=0,s,l=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:u}=await n.next();if(d){l(),c.close();return}let f=u.byteLength;if(o){let h=i+=f;o(h)}c.enqueue(new Uint8Array(u))}catch(d){throw l(d),d}},cancel(c){return l(c),n.return()}},{highWaterMark:2})},An=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",vc=An&&typeof ReadableStream=="function",Fk=An&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),wc=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Ik=vc&&wc(()=>{let t=!1;const e=new Request(Ue.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Cc=64*1024,ia=vc&&wc(()=>N.isReadableStream(new Response("").body)),Mn={stream:ia&&(t=>t.body)};An&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Mn[e]&&(Mn[e]=N.isFunction(t[e])?o=>o[e]():(o,r)=>{throw new ae(`Response type '${e}' is not supported`,ae.ERR_NOT_SUPPORT,r)})})})(new Response);const Lk=async t=>{if(t==null)return 0;if(N.isBlob(t))return t.size;if(N.isSpecCompliantForm(t))return(await new Request(Ue.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(N.isArrayBufferView(t)||N.isArrayBuffer(t))return t.byteLength;if(N.isURLSearchParams(t)&&(t=t+""),N.isString(t))return(await Fk(t)).byteLength},zk=async(t,e)=>{const o=N.toFiniteNumber(t.getContentLength());return o??Lk(e)},aa={http:lk,xhr:Pk,fetch:An&&(async t=>{let{url:e,method:o,data:r,signal:n,cancelToken:i,timeout:s,onDownloadProgress:l,onUploadProgress:c,responseType:d,headers:u,withCredentials:f="same-origin",fetchOptions:h}=kc(t);d=d?(d+"").toLowerCase():"text";let g=$k([n,i&&i.toAbortSignal()],s),m;const p=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let b;try{if(c&&Ik&&o!=="get"&&o!=="head"&&(b=await zk(u,r))!==0){let v=new Request(e,{method:"POST",body:r,duplex:"half"}),S;if(N.isFormData(r)&&(S=v.headers.get("content-type"))&&u.setContentType(S),v.body){const[w,x]=mc(b,$n(pc(c)));r=xc(v.body,Cc,w,x)}}N.isString(f)||(f=f?"include":"omit");const y="credentials"in Request.prototype;m=new Request(e,{...h,signal:g,method:o.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:y?f:void 0});let k=await fetch(m);const C=ia&&(d==="stream"||d==="response");if(ia&&(l||C&&p)){const v={};["status","statusText","headers"].forEach(B=>{v[B]=k[B]});const S=N.toFiniteNumber(k.headers.get("content-length")),[w,x]=l&&mc(S,$n(pc(l),!0))||[];k=new Response(xc(k.body,Cc,w,()=>{x&&x(),p&&p()}),v)}d=d||"text";let _=await Mn[N.findKey(Mn,d)||"text"](k,t);return!C&&p&&p(),await new Promise((v,S)=>{gc(v,S,{data:_,headers:Ze.from(k.headers),status:k.status,statusText:k.statusText,config:t,request:m})})}catch(y){throw p&&p(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new ae("Network Error",ae.ERR_NETWORK,t,m),{cause:y.cause||y}):ae.from(y,y&&y.code,t,m)}})};N.forEach(aa,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const _c=t=>`- ${t}`,jk=t=>N.isFunction(t)||t===null||t===!1,Sc={getAdapter:t=>{t=N.isArray(t)?t:[t];const{length:e}=t;let o,r;const n={};for(let i=0;i<e;i++){o=t[i];let s;if(r=o,!jk(o)&&(r=aa[(s=String(o)).toLowerCase()],r===void 0))throw new ae(`Unknown adapter '${s}'`);if(r)break;n[s||"#"+i]=r}if(!r){const i=Object.entries(n).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=e?i.length>1?`since :
|
|
163
163
|
`+i.map(_c).join(`
|
|
164
|
-
`):" "+_c(i[0]):"as no adapter specified";throw new ae("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:
|
|
165
|
-
`+i):r.stack=i}catch{}}throw r}}_request(e,o){typeof e=="string"?(o=o||{},o.url=e):o=e||{},o=vo(this.defaults,o);const{transitional:r,paramsSerializer:n,headers:i}=o;r!==void 0&&Fn.assertOptions(r,{silentJSONParsing:Bt.transitional(Bt.boolean),forcedJSONParsing:Bt.transitional(Bt.boolean),clarifyTimeoutError:Bt.transitional(Bt.boolean)},!1),n!=null&&(N.isFunction(n)?o.paramsSerializer={serialize:n}:Fn.assertOptions(n,{encode:Bt.function,serialize:Bt.function},!0)),Fn.assertOptions(o,{baseUrl:Bt.spelling("baseURL"),withXsrfToken:Bt.spelling("withXSRFToken")},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s=i&&N.merge(i.common,i[o.method]);i&&N.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),o.headers=Ze.concat(s,i);const l=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(o)===!1||(c=c&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const d=[];this.interceptors.response.forEach(function(p){d.push(p.fulfilled,p.rejected)});let u,f=0,h;if(!c){const m=[Bc.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,d),h=m.length,u=Promise.resolve(o);f<h;)u=u.then(m[f++],m[f++]);return u}h=l.length;let g=o;for(f=0;f<h;){const m=l[f++],p=l[f++];try{g=m(g)}catch(b){p.call(this,b);break}}try{u=Bc.call(this,g)}catch(m){return Promise.reject(m)}for(f=0,h=d.length;f<h;)u=u.then(d[f++],d[f++]);return u}getUri(e){e=vo(this.defaults,e);const o=bc(e.baseURL,e.url);return lc(o,e.params,e.paramsSerializer)}}N.forEach(["delete","get","head","options"],function(e){wo.prototype[e]=function(o,r){return this.request(vo(r||{},{method:e,url:o,data:(r||{}).data}))}}),N.forEach(["post","put","patch"],function(e){function o(r){return function(i,s,l){return this.request(vo(l||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}wo.prototype[e]=o(),wo.prototype[e+"Form"]=o(!0)});class ca{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(i){o=i});const r=this;this.promise.then(n=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](n);r._listeners=null}),this.promise.then=n=>{let i;const s=new Promise(l=>{r.subscribe(l),i=l}).then(n);return s.cancel=function(){r.unsubscribe(i)},s},e(function(i,s,l){r.reason||(r.reason=new Wo(i,s,l),o(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const o=this._listeners.indexOf(e);o!==-1&&this._listeners.splice(o,1)}toAbortSignal(){const e=new AbortController,o=r=>{e.abort(r)};return this.subscribe(o),e.signal.unsubscribe=()=>this.unsubscribe(o),e.signal}static source(){let e;return{token:new ca(function(n){e=n}),cancel:e}}}function Uk(t){return function(o){return t.apply(null,o)}}function qk(t){return N.isObject(t)&&t.isAxiosError===!0}const da={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(da).forEach(([t,e])=>{da[e]=t});function Dc(t){const e=new wo(t),o=ql(wo.prototype.request,e);return N.extend(o,wo.prototype,e,{allOwnKeys:!0}),N.extend(o,e,null,{allOwnKeys:!0}),o.create=function(n){return Dc(vo(t,n))},o}const Pe=Dc(vr);Pe.Axios=wo,Pe.CanceledError=Wo,Pe.CancelToken=ca,Pe.isCancel=hc,Pe.VERSION=Ec,Pe.toFormData=Tn,Pe.AxiosError=ae,Pe.Cancel=Pe.CanceledError,Pe.all=function(e){return Promise.all(e)},Pe.spread=Uk,Pe.isAxiosError=qk,Pe.mergeConfig=vo,Pe.AxiosHeaders=Ze,Pe.formToJSON=t=>uc(N.isHTMLForm(t)?new FormData(t):t),Pe.getAdapter=Sc.getAdapter,Pe.HttpStatusCode=da,Pe.default=Pe;const Yk=["onMouseenter","onMouseleave"],Xk=["onClick"],Kk=["onClick"],Gk={class:"ml-2"},Jk=["onClick"],Qk=["href"],Zk={class:"ml-2"},ex=Ne({__name:"SampleMenu",props:{menu:String,layoutType:{type:String,default:"vertical",validator:t=>["horizontal","vertical"].includes(t)},menuName:{type:String,required:!0},variable:String,menuItems:Array},emits:["menuItems"],setup(t,{expose:e,emit:o}){const r=Ke.useRouter(),n=o,i=a.ref([]),s=t;a.onMounted(async()=>{console.log("Menu component mounted",s.menuItems);try{if(s.menuItems)i.value=s.menuItems;else{const d=await Pe.get("https://mocki.io/v1/8955d801-36fb-4499-9d7d-6f7329fc8407");i.value=d.data.response}console.log("menuItems.value",i.value),i.value.forEach(d=>{d.children&&d.children.length>0&&(d.isOpen=!1),n("menuItems",i.value)})}catch(d){console.error("Error fetching menu items:",d)}});const l=d=>{i.value[d]&&i.value[d].children&&i.value[d].children.length>0&&(i.value[d].isOpen=!i.value[d].isOpen)},c=d=>{console.log("urlbdfkjdbfjkdbfkdfbdk"),r.push(i.value[index].url)};return e({props:s,goToUrl:c,toggleDropdown:l}),(d,u)=>(a.openBlock(),a.createElementBlock("div",{class:"card rounded-none p-0",style:a.normalizeStyle(t.layoutType==="horizontal"?"width: 100%;":"width: 10%;")},[a.createElementVNode("ul",{class:a.normalizeClass(["layout-menu",[t.layoutType==="horizontal"?"layout-menu-horizontal p-0 m-0 flex flex-row":"layout-menu-vertical p-0 m-0"]])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,(f,h)=>(a.openBlock(),a.createElementBlock("li",{key:f.id,class:a.normalizeClass(["layout-root-menuitem relative",{"is-open":f.isOpen}]),onMouseenter:g=>l(h),onMouseleave:g=>l(h)},[d.$slots["list-item-menu-parent"]?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:g=>c()},[a.renderSlot(d.$slots,"list-item-menu-parent",a.normalizeProps({[t.variable||""]:f}),void 0,!0)],8,Xk)):(a.openBlock(),a.createElementBlock("a",{key:1,onClick:g=>c(),href:"#",class:"flex items-center p-3 text-primary-color cursor-pointer transition-colors duration-300"},[u[0]||(u[0]=a.createElementVNode("i",{class:"pi pi-home text-xl"},null,-1)),a.createElementVNode("span",Gk,a.toDisplayString(f.displayLabel),1)],8,Kk)),f.isOpen?(a.openBlock(),a.createElementBlock("ul",{key:2,class:a.normalizeClass(["submenu",[t.layoutType==="horizontal"?"submenu-horizontal absolute top-full left-0 bg-white shadow-md z-1000":"submenu-vertical pl-5"]])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.children,(g,m)=>(a.openBlock(),a.createElementBlock("li",{key:g.id},[d.$slots["list-item-menu-child"]?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:p=>l(h)},[a.renderSlot(d.$slots,"list-item-menu-child",a.normalizeProps({[t.variable||""]:g}),void 0,!0)],8,Jk)):(a.openBlock(),a.createElementBlock("a",{key:1,href:g.url,class:"layout-submenu-item flex items-center p-3 text-primary-color cursor-pointer transition-colors duration-300"},[u[1]||(u[1]=a.createElementVNode("i",{class:"pi pi-bars text-xl"},null,-1)),a.createElementVNode("span",Zk,a.toDisplayString(g.displayLabel),1)],8,Qk))]))),128))],2)):a.createCommentVNode("",!0)],42,Yk))),128))],2)],4))}},[["__scopeId","data-v-8f1c5b51"]]),tx=["onMouseenter","onMouseleave"],ox=["onClick"],rx=["onClick"],nx={class:"ml-2"},ix=["onClick"],ax=["href"],sx={class:"ml-2"},lx=Ne({__name:"ContraMenu",props:{menu:String,layoutType:{type:String,default:"vertical",validator:t=>["horizontal","vertical"].includes(t)},menuName:{type:String,required:!0},variable:String,menuItems:Array},setup(t){const e=Ke.useRouter(),o=a.ref([]),r=t;a.onMounted(()=>{o.value=r.menuItems,o.value.forEach(s=>{s.children&&s.children.length>0&&(s.isOpen=!1)})});const n=s=>{o.value[s]&&o.value[s].children&&o.value[s].children.length>0&&(o.value[s].isOpen=!o.value[s].isOpen)},i=s=>{e.push(o.value[index].url)};return(s,l)=>(a.openBlock(),a.createElementBlock("div",{class:"card rounded-none p-0",style:a.normalizeStyle(t.layoutType==="horizontal"?"width: 100%;":"width: 10%;")},[a.createElementVNode("ul",{class:a.normalizeClass(["layout-menu",[t.layoutType==="horizontal"?"layout-menu-horizontal p-0 m-0 flex flex-row space-x-6":"layout-menu-vertical p-0 m-0"]])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,(c,d)=>(a.openBlock(),a.createElementBlock("li",{key:c.id,class:a.normalizeClass(["layout-root-menuitem relative group",{"is-open":c.isOpen}]),onMouseenter:u=>n(d),onMouseleave:u=>n(d)},[s.$slots["list-item-menu-parent"]?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:u=>i()},[a.renderSlot(s.$slots,"list-item-menu-parent",a.normalizeProps({[t.variable||""]:c}),void 0,!0)],8,ox)):(a.openBlock(),a.createElementBlock("a",{key:1,onClick:u=>i(),class:"flex items-center p-3 text-white hover:text-green-500 cursor-pointer transition-all duration-300 ease-in-out group-hover:bg-gradient-to-r from-green-400 to-green-600 group-hover:shadow-xl rounded-md"},[l[0]||(l[0]=a.createElementVNode("i",{class:"pi pi-home text-xl"},null,-1)),a.createElementVNode("span",nx,a.toDisplayString(c.displayLabel),1)],8,rx)),c.isOpen?(a.openBlock(),a.createElementBlock("ul",{key:2,class:a.normalizeClass(["submenu transition-all ease-in-out duration-300 opacity-0",[t.layoutType==="horizontal"?"submenu-horizontal absolute top-full left-0 bg-black text-white shadow-lg rounded-md p-2":"submenu-vertical pl-5 mt-2 bg-black text-white shadow-lg rounded-md"]])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.children,(u,f)=>(a.openBlock(),a.createElementBlock("li",{key:u.id},[s.$slots["list-item-menu-child"]?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:h=>n(d)},[a.renderSlot(s.$slots,"list-item-menu-child",a.normalizeProps({[t.variable||""]:u}),void 0,!0)],8,ix)):(a.openBlock(),a.createElementBlock("a",{key:1,href:u.url,class:"layout-submenu-item flex items-center p-3 text-white hover:text-green-500 cursor-pointer transition-all duration-300 ease-in-out"},[l[1]||(l[1]=a.createElementVNode("i",{class:"pi pi-bars text-xl"},null,-1)),a.createElementVNode("span",sx,a.toDisplayString(u.displayLabel),1)],8,ax))]))),128))],2)):a.createCommentVNode("",!0)],42,tx))),128))],2)],4))}},[["__scopeId","data-v-198f3d06"]]),cx=["onMouseenter","onMouseleave"],dx=["onClick"],ux=["onClick"],fx={class:"ml-2"},hx=["onClick"],gx=["href"],mx={class:"ml-2"},px=Ne({__name:"UltraLightMenu",props:{menu:String,layoutType:{type:String,default:"vertical",validator:t=>["horizontal","vertical"].includes(t)},menuName:{type:String,required:!0},variable:String,menuItems:Array},setup(t){const e=Ke.useRouter(),o=a.ref([]),r=t;a.onMounted(async()=>{console.log("Menu component mounted",r.menuItems);try{if(r.menuItems)o.value=r.menuItems;else{const s=await Pe.get("https://mocki.io/v1/8955d801-36fb-4499-9d7d-6f7329fc8407");o.value=s.data.response}console.log("menuItems.value",o.value),o.value.forEach(s=>{s.children&&s.children.length>0&&(s.isOpen=!1)})}catch(s){console.error("Error fetching menu items:",s)}});const n=s=>{o.value[s]&&o.value[s].children&&o.value[s].children.length>0&&(o.value[s].isOpen=!o.value[s].isOpen)},i=s=>{e.push(o.value[s].url)};return(s,l)=>(a.openBlock(),a.createElementBlock("div",{class:"card rounded-none p-0",style:a.normalizeStyle(t.layoutType==="horizontal"?"width: 100%;":"width: 250px;")},[a.createElementVNode("ul",{class:a.normalizeClass(["layout-menu",[t.layoutType==="horizontal"?"layout-menu-horizontal p-0 m-0 flex flex-row justify-around":"layout-menu-vertical p-0 m-0"]])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,(c,d)=>(a.openBlock(),a.createElementBlock("li",{key:c.id,class:a.normalizeClass(["layout-root-menuitem relative",{"is-open":c.isOpen}]),onMouseenter:u=>n(d),onMouseleave:u=>n(d)},[s.$slots["list-item-menu-parent"]?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:u=>i(d),class:"menu-item"},[a.renderSlot(s.$slots,"list-item-menu-parent",a.normalizeProps({[t.variable||""]:c}),void 0,!0)],8,dx)):(a.openBlock(),a.createElementBlock("a",{key:1,onClick:u=>i(d),href:"#",class:"flex items-center p-4 text-white rounded-lg cursor-pointer transition-all duration-300 transform hover:scale-105 menu-item"},[l[0]||(l[0]=a.createElementVNode("i",{class:"pi pi-home text-xl"},null,-1)),a.createElementVNode("span",fx,a.toDisplayString(c.displayLabel),1)],8,ux)),c.isOpen?(a.openBlock(),a.createElementBlock("ul",{key:2,class:a.normalizeClass(["submenu transition-all ease-in-out duration-300",[t.layoutType==="horizontal"?"submenu-horizontal absolute top-full left-0 bg-blue-600 shadow-xl rounded-lg z-1000":"submenu-vertical pl-5 mt-2 text-white shadow-md rounded-md"]])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.children,(u,f)=>(a.openBlock(),a.createElementBlock("li",{key:u.id},[s.$slots["list-item-menu-child"]?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:h=>n(d),class:"submenu-item"},[a.renderSlot(s.$slots,"list-item-menu-child",a.normalizeProps({[t.variable||""]:u}),void 0,!0)],8,hx)):(a.openBlock(),a.createElementBlock("a",{key:1,href:u.url,class:"layout-submenu-item flex items-center p-3 text-white hover:text-blue-400 cursor-pointer transition-all duration-300 transform hover:scale-105"},[l[1]||(l[1]=a.createElementVNode("i",{class:"pi pi-bars text-xl"},null,-1)),a.createElementVNode("span",mx,a.toDisplayString(u.displayLabel),1)],8,gx))]))),128))],2)):a.createCommentVNode("",!0)],42,cx))),128))],2)],4))}},[["__scopeId","data-v-70c2ee80"]]),bx={key:0},yx={key:1},Oc=Ne({__name:"Menu",props:{menuName:{type:String,required:!0},menu:String,layoutType:{type:String,default:"vertical",validator:t=>["horizontal","vertical"].includes(t)},variable:String,refra:String},emits:["menuItems"],setup(t,{expose:e,emit:o}){const r=a.ref(null),n=o,i=f=>{r.value.goToUrl()},s=f=>{n("menuItems",f),console.log("Menu Items 2nd:",f)},l=t,c=a.ref([]),d=a.ref(!1),u={sample:ex,contra:lx,ultra:px};return a.onMounted(async()=>{try{const f=await Pe.get("https://mocki.io/v1/8955d801-36fb-4499-9d7d-6f7329fc8407");c.value=f.data.response,d.value=!0,c.value.forEach(h=>{h.children&&h.children.length>0&&(h.isOpen=!1)})}catch(f){console.error("Error fetching menu items:",f)}console.log("props.ref",l.refra)}),e({goToUrl:i}),(f,h)=>f.$slots["list-item-menu-parent"]?(a.openBlock(),a.createElementBlock("div",bx,[d.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u[l.menuName]),a.mergeProps({key:0},l,{"menu-items":c.value}),a.createSlots({_:2},[a.renderList(f.$slots,(g,m)=>({name:m,fn:a.withCtx(p=>[a.renderSlot(f.$slots,m,a.normalizeProps(a.guardReactiveProps(p)),void 0,!0)])}))]),1040,["menu-items"])):a.createCommentVNode("",!0)])):(a.openBlock(),a.createElementBlock("div",yx,[d.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u[l.menuName]),a.mergeProps({key:0},l,{"menu-items":c.value,ref_key:"componentsRef",ref:r,onMenuItems:s}),null,16,["menu-items"])):a.createCommentVNode("",!0)]))}},[["__scopeId","data-v-48a32302"]]),kx={class:"absolute left-3 top-[-10px] bg-[var(--bg-label-color)] px-1 text-xs text-gray-600 text"},xx={class:"absolute left-3 top-1/2 transform -translate-y-1/2 text-[var(--span-color)]"},vx=["placeholder"],wx={key:0,style:{color:"var(--secondary-color)"},class:"absolute left-3 top-full mt-1 text-xs"},Nc={__name:"TextInput",props:a.mergeModels({label:{type:String,default:"Label"},placeholder:{type:String,default:"Enter value"},editable:{type:Boolean,default:!0},icon:{type:String,default:""},error:{type:Boolean,default:!1}},{inputValue:{},inputValueModifiers:{}}),emits:a.mergeModels(["update:error"],["update:inputValue"]),setup(t,{emit:e}){const o=e,r=t,n=a.useModel(t,"inputValue");return a.watch(n,i=>{i&&r.error&&o("update:error",!1)}),(i,s)=>(a.openBlock(),a.createElementBlock("div",a.mergeProps({class:"relative"},i.$attrs),[a.createElementVNode("label",kx,a.toDisplayString(t.label),1),a.createElementVNode("span",xx,[a.createElementVNode("i",{class:a.normalizeClass(t.icon),style:{"font-size":"1rem"}},null,2)]),a.withDirectives(a.createElementVNode("input",{class:"w-full h-[40px] pl-10 py-2 border border-[var(--border-color)] rounded-lg placeholder:text-xs focus:border-[var(--primary-fore-color)] focus:ring-0 focus:outline-none text","onUpdate:modelValue":s[0]||(s[0]=l=>n.value=l),placeholder:t.placeholder},null,8,vx),[[a.vModelText,n.value]]),t.error===!0?(a.openBlock(),a.createElementBlock("small",wx,[a.createElementVNode("pre",null,a.toDisplayString(t.label)+" is required",1)])):a.createCommentVNode("",!0)],16))}},Ge=a.reactive({preset:"Aura",primary:"emerald",surface:null,darkTheme:!1,menuMode:"slim-plus",menuTheme:"light"}),Fe=a.reactive({staticMenuDesktopInactive:!1,overlayMenuActive:!1,configSidebarVisible:!1,staticMenuMobileActive:!1,menuHoverActive:!1,rightMenuActive:!1,topbarMenuActive:!1,sidebarActive:!1,anchored:!1,activeMenuItem:null,overlaySubmenuActive:!1});function Cx(){const t=g=>{if(Ge.menuMode=g,g==="static"&&(Fe.staticMenuDesktopInactive=!1),g==="horizontal")if(Ge.darkTheme){if(!document.startViewTransition){Ge.menuTheme="dark";return}document.startViewTransition(()=>Ge.menuTheme="dark")}else{if(!document.startViewTransition){Ge.menuTheme="light";return}document.startViewTransition(()=>Ge.menuTheme="light")}},e=g=>{Fe.activeMenuItem=g.value||g},o=()=>{Ge.menuMode==="overlay"&&(Fe.overlayMenuActive=!Fe.overlayMenuActive),window.innerWidth>991?Fe.staticMenuDesktopInactive=!Fe.staticMenuDesktopInactive:Fe.staticMenuMobileActive=!Fe.staticMenuMobileActive},r=()=>{n.value&&(Fe.overlayMenuActive=!1,Fe.overlaySubmenuActive=!1,Fe.staticMenuMobileActive=!1,Fe.menuHoverActive=!1,Fe.configSidebarVisible=!1),Fe.configSidebarVisible=!Fe.configSidebarVisible},n=a.computed(()=>Fe.overlayMenuActive||Fe.staticMenuMobileActive||Fe.overlaySubmenuActive),i=a.computed(()=>window.innerWidth>991),s=a.computed(()=>Ge.menuMode==="slim"),l=a.computed(()=>Ge.menuMode==="slim-plus"),c=a.computed(()=>Ge.menuMode==="horizontal"),d=a.computed(()=>Ge.menuMode==="overlay"),u=a.computed(()=>Ge.darkTheme),f=a.computed(()=>Ge.primary),h=a.computed(()=>Ge.surface);return{layoutConfig:Ge,layoutState:Fe,getPrimary:f,getSurface:h,isDarkTheme:u,setMenuMode:t,toggleMenu:o,isSidebarActive:n,setActiveMenuItem:e,toggleConfigSidebar:r,isSlim:s,isSlimPlus:l,isHorizontal:c,isDesktop:i,isOverlay:d}}var _x={root:{transitionDuration:"{transition.duration}"},panel:{borderWidth:"0 0 1px 0",borderColor:"{content.border.color}"},header:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",padding:"1.125rem",fontWeight:"600",borderRadius:"0",borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",hoverBackground:"{content.background}",activeBackground:"{content.background}",activeHoverBackground:"{content.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",activeHoverColor:"{text.color}"},first:{topBorderRadius:"{content.border.radius}",borderWidth:"0"},last:{bottomBorderRadius:"{content.border.radius}",activeBottomBorderRadius:"0"}},content:{borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",color:"{text.color}",padding:"0 1.125rem 1.125rem 1.125rem"}},Sx={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}"},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},dropdown:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},chip:{borderRadius:"{border.radius.sm}"},emptyMessage:{padding:"{list.option.padding}"},colorScheme:{light:{chip:{focusBackground:"{surface.200}",focusColor:"{surface.800}"},dropdown:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",focusColor:"{surface.0}"},dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"}}}},Bx={root:{width:"2rem",height:"2rem",fontSize:"1rem",background:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},icon:{size:"1rem"},group:{borderColor:"{content.background}",offset:"-0.75rem"},lg:{width:"3rem",height:"3rem",fontSize:"1.5rem",icon:{size:"1.5rem"},group:{offset:"-1rem"}},xl:{width:"4rem",height:"4rem",fontSize:"2rem",icon:{size:"2rem"},group:{offset:"-1.5rem"}}},Ex={root:{borderRadius:"{border.radius.md}",padding:"0 0.5rem",fontSize:"0.75rem",fontWeight:"700",minWidth:"1.5rem",height:"1.5rem"},dot:{size:"0.5rem"},sm:{fontSize:"0.625rem",minWidth:"1.25rem",height:"1.25rem"},lg:{fontSize:"0.875rem",minWidth:"1.75rem",height:"1.75rem"},xl:{fontSize:"1rem",minWidth:"2rem",height:"2rem"},colorScheme:{light:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.500}",color:"{surface.0}"},info:{background:"{sky.500}",color:"{surface.0}"},warn:{background:"{orange.500}",color:"{surface.0}"},danger:{background:"{red.500}",color:"{surface.0}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"{green.400}",color:"{green.950}"},info:{background:"{sky.400}",color:"{sky.950}"},warn:{background:"{orange.400}",color:"{orange.950}"},danger:{background:"{red.400}",color:"{red.950}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}}},Rx={primitive:{borderRadius:{none:"0",xs:"2px",sm:"4px",md:"6px",lg:"8px",xl:"12px"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"}},semantic:{transitionDuration:"0.2s",focusRing:{width:"1px",style:"solid",color:"{primary.color}",offset:"2px",shadow:"none"},disabledOpacity:"0.6",iconSize:"1rem",anchorGutter:"2px",primary:{50:"{emerald.50}",100:"{emerald.100}",200:"{emerald.200}",300:"{emerald.300}",400:"{emerald.400}",500:"{emerald.500}",600:"{emerald.600}",700:"{emerald.700}",800:"{emerald.800}",900:"{emerald.900}",950:"{emerald.950}"},formField:{paddingX:"0.75rem",paddingY:"0.5rem",sm:{fontSize:"0.875rem",paddingX:"0.625rem",paddingY:"0.375rem"},lg:{fontSize:"1.125rem",paddingX:"0.875rem",paddingY:"0.625rem"},borderRadius:"{border.radius.md}",focusRing:{width:"0",style:"none",color:"transparent",offset:"0",shadow:"none"},transitionDuration:"{transition.duration}"},list:{padding:"0.25rem 0.25rem",gap:"2px",header:{padding:"0.5rem 1rem 0.25rem 1rem"},option:{padding:"0.5rem 0.75rem",borderRadius:"{border.radius.sm}"},optionGroup:{padding:"0.5rem 0.75rem",fontWeight:"600"}},content:{borderRadius:"{border.radius.md}"},mask:{transitionDuration:"0.15s"},navigation:{list:{padding:"0.25rem 0.25rem",gap:"2px"},item:{padding:"0.5rem 0.75rem",borderRadius:"{border.radius.sm}",gap:"0.5rem"},submenuLabel:{padding:"0.5rem 0.75rem",fontWeight:"600"},submenuIcon:{size:"0.875rem"}},overlay:{select:{borderRadius:"{border.radius.md}",shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"},popover:{borderRadius:"{border.radius.md}",padding:"0.75rem",shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"},modal:{borderRadius:"{border.radius.xl}",padding:"1.25rem",shadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)"},navigation:{shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"}},colorScheme:{light:{surface:{0:"#ffffff",50:"{slate.50}",100:"{slate.100}",200:"{slate.200}",300:"{slate.300}",400:"{slate.400}",500:"{slate.500}",600:"{slate.600}",700:"{slate.700}",800:"{slate.800}",900:"{slate.900}",950:"{slate.950}"},primary:{color:"{primary.500}",contrastColor:"#ffffff",hoverColor:"{primary.600}",activeColor:"{primary.700}"},highlight:{background:"{primary.50}",focusBackground:"{primary.100}",color:"{primary.700}",focusColor:"{primary.800}"},mask:{background:"rgba(0,0,0,0.4)",color:"{surface.200}"},formField:{background:"{surface.0}",disabledBackground:"{surface.200}",filledBackground:"{surface.50}",filledHoverBackground:"{surface.50}",filledFocusBackground:"{surface.50}",borderColor:"{surface.300}",hoverBorderColor:"{surface.400}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.400}",color:"{surface.700}",disabledColor:"{surface.500}",placeholderColor:"{surface.500}",invalidPlaceholderColor:"{red.600}",floatLabelColor:"{surface.500}",floatLabelFocusColor:"{primary.600}",floatLabelActiveColor:"{surface.500}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)"},text:{color:"{surface.700}",hoverColor:"{surface.800}",mutedColor:"{surface.500}",hoverMutedColor:"{surface.600}"},content:{background:"{surface.0}",hoverBackground:"{surface.100}",borderColor:"{surface.200}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},popover:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},modal:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.100}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}"}},optionGroup:{background:"transparent",color:"{text.muted.color}"}},navigation:{item:{focusBackground:"{surface.100}",activeBackground:"{surface.100}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}},submenuLabel:{background:"transparent",color:"{text.muted.color}"},submenuIcon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}}},dark:{surface:{0:"#ffffff",50:"{zinc.50}",100:"{zinc.100}",200:"{zinc.200}",300:"{zinc.300}",400:"{zinc.400}",500:"{zinc.500}",600:"{zinc.600}",700:"{zinc.700}",800:"{zinc.800}",900:"{zinc.900}",950:"{zinc.950}"},primary:{color:"{primary.400}",contrastColor:"{surface.900}",hoverColor:"{primary.300}",activeColor:"{primary.200}"},highlight:{background:"color-mix(in srgb, {primary.400}, transparent 84%)",focusBackground:"color-mix(in srgb, {primary.400}, transparent 76%)",color:"rgba(255,255,255,.87)",focusColor:"rgba(255,255,255,.87)"},mask:{background:"rgba(0,0,0,0.6)",color:"{surface.200}"},formField:{background:"{surface.950}",disabledBackground:"{surface.700}",filledBackground:"{surface.800}",filledHoverBackground:"{surface.800}",filledFocusBackground:"{surface.800}",borderColor:"{surface.600}",hoverBorderColor:"{surface.500}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.300}",color:"{surface.0}",disabledColor:"{surface.400}",placeholderColor:"{surface.400}",invalidPlaceholderColor:"{red.400}",floatLabelColor:"{surface.400}",floatLabelFocusColor:"{primary.color}",floatLabelActiveColor:"{surface.400}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)"},text:{color:"{surface.0}",hoverColor:"{surface.0}",mutedColor:"{surface.400}",hoverMutedColor:"{surface.300}"},content:{background:"{surface.900}",hoverBackground:"{surface.800}",borderColor:"{surface.700}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},popover:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},modal:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.800}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}"}},optionGroup:{background:"transparent",color:"{text.muted.color}"}},navigation:{item:{focusBackground:"{surface.800}",activeBackground:"{surface.800}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}},submenuLabel:{background:"transparent",color:"{text.muted.color}"},submenuIcon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}}}}}},Dx={root:{borderRadius:"{content.border.radius}"}},Ox={root:{padding:"1rem",background:"{content.background}",gap:"0.5rem",transitionDuration:"{transition.duration}"},item:{color:"{text.muted.color}",hoverColor:"{text.color}",borderRadius:"{content.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",hoverColor:"{navigation.item.icon.focus.color}"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},separator:{color:"{navigation.item.icon.color}"}},Nx={root:{borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",gap:"0.5rem",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",iconOnlyWidth:"2.5rem",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"},label:{fontWeight:"500"},raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"},badgeSize:"1rem",transitionDuration:"{form.field.transition.duration}"},colorScheme:{light:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"{primary.color}",shadow:"none"}},secondary:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",borderColor:"{surface.100}",hoverBorderColor:"{surface.200}",activeBorderColor:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}",focusRing:{color:"{surface.600}",shadow:"none"}},info:{background:"{sky.500}",hoverBackground:"{sky.600}",activeBackground:"{sky.700}",borderColor:"{sky.500}",hoverBorderColor:"{sky.600}",activeBorderColor:"{sky.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{sky.500}",shadow:"none"}},success:{background:"{green.500}",hoverBackground:"{green.600}",activeBackground:"{green.700}",borderColor:"{green.500}",hoverBorderColor:"{green.600}",activeBorderColor:"{green.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{green.500}",shadow:"none"}},warn:{background:"{orange.500}",hoverBackground:"{orange.600}",activeBackground:"{orange.700}",borderColor:"{orange.500}",hoverBorderColor:"{orange.600}",activeBorderColor:"{orange.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{orange.500}",shadow:"none"}},help:{background:"{purple.500}",hoverBackground:"{purple.600}",activeBackground:"{purple.700}",borderColor:"{purple.500}",hoverBorderColor:"{purple.600}",activeBorderColor:"{purple.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{purple.500}",shadow:"none"}},danger:{background:"{red.500}",hoverBackground:"{red.600}",activeBackground:"{red.700}",borderColor:"{red.500}",hoverBorderColor:"{red.600}",activeBorderColor:"{red.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{red.500}",shadow:"none"}},contrast:{background:"{surface.950}",hoverBackground:"{surface.900}",activeBackground:"{surface.800}",borderColor:"{surface.950}",hoverBorderColor:"{surface.900}",activeBorderColor:"{surface.800}",color:"{surface.0}",hoverColor:"{surface.0}",activeColor:"{surface.0}",focusRing:{color:"{surface.950}",shadow:"none"}}},outlined:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",borderColor:"{primary.200}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",borderColor:"{green.200}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",borderColor:"{sky.200}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",borderColor:"{orange.200}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",borderColor:"{purple.200}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",borderColor:"{red.200}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.700}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.700}"}},text:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.700}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},dark:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"{primary.color}",shadow:"none"}},secondary:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",borderColor:"{surface.800}",hoverBorderColor:"{surface.700}",activeBorderColor:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}",focusRing:{color:"{surface.300}",shadow:"none"}},info:{background:"{sky.400}",hoverBackground:"{sky.300}",activeBackground:"{sky.200}",borderColor:"{sky.400}",hoverBorderColor:"{sky.300}",activeBorderColor:"{sky.200}",color:"{sky.950}",hoverColor:"{sky.950}",activeColor:"{sky.950}",focusRing:{color:"{sky.400}",shadow:"none"}},success:{background:"{green.400}",hoverBackground:"{green.300}",activeBackground:"{green.200}",borderColor:"{green.400}",hoverBorderColor:"{green.300}",activeBorderColor:"{green.200}",color:"{green.950}",hoverColor:"{green.950}",activeColor:"{green.950}",focusRing:{color:"{green.400}",shadow:"none"}},warn:{background:"{orange.400}",hoverBackground:"{orange.300}",activeBackground:"{orange.200}",borderColor:"{orange.400}",hoverBorderColor:"{orange.300}",activeBorderColor:"{orange.200}",color:"{orange.950}",hoverColor:"{orange.950}",activeColor:"{orange.950}",focusRing:{color:"{orange.400}",shadow:"none"}},help:{background:"{purple.400}",hoverBackground:"{purple.300}",activeBackground:"{purple.200}",borderColor:"{purple.400}",hoverBorderColor:"{purple.300}",activeBorderColor:"{purple.200}",color:"{purple.950}",hoverColor:"{purple.950}",activeColor:"{purple.950}",focusRing:{color:"{purple.400}",shadow:"none"}},danger:{background:"{red.400}",hoverBackground:"{red.300}",activeBackground:"{red.200}",borderColor:"{red.400}",hoverBorderColor:"{red.300}",activeBorderColor:"{red.200}",color:"{red.950}",hoverColor:"{red.950}",activeColor:"{red.950}",focusRing:{color:"{red.400}",shadow:"none"}},contrast:{background:"{surface.0}",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{surface.0}",hoverBorderColor:"{surface.100}",activeBorderColor:"{surface.200}",color:"{surface.950}",hoverColor:"{surface.950}",activeColor:"{surface.950}",focusRing:{color:"{surface.0}",shadow:"none"}}},outlined:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",borderColor:"{primary.700}",color:"{primary.color}"},secondary:{hoverBackground:"rgba(255,255,255,0.04)",activeBackground:"rgba(255,255,255,0.16)",borderColor:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",borderColor:"{green.700}",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",borderColor:"{sky.700}",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",borderColor:"{orange.700}",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",borderColor:"{purple.700}",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",borderColor:"{red.700}",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.500}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.600}",color:"{surface.0}"}},text:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",color:"{primary.color}"},secondary:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}}}},Tx={root:{background:"{content.background}",borderRadius:"{border.radius.xl}",color:"{content.color}",shadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},body:{padding:"1.25rem",gap:"0.5rem"},caption:{gap:"0.5rem"},title:{fontSize:"1.25rem",fontWeight:"500"},subtitle:{color:"{text.muted.color}"}},Px={root:{transitionDuration:"{transition.duration}"},content:{gap:"0.25rem"},indicatorList:{padding:"1rem",gap:"0.5rem"},indicator:{width:"2rem",height:"0.5rem",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{indicator:{background:"{surface.200}",hoverBackground:"{surface.300}",activeBackground:"{primary.color}"}},dark:{indicator:{background:"{surface.700}",hoverBackground:"{surface.600}",activeBackground:"{primary.color}"}}}},$x={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",mobileIndent:"1rem"},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",icon:{color:"{list.option.icon.color}",focusColor:"{list.option.icon.focus.color}",size:"0.875rem"}},clearIcon:{color:"{form.field.icon.color}"}},Ax={root:{borderRadius:"{border.radius.sm}",width:"1.25rem",height:"1.25rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},icon:{size:"0.875rem",color:"{form.field.color}",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.75rem"},lg:{size:"1rem"}}},Mx={root:{borderRadius:"16px",paddingX:"0.75rem",paddingY:"0.5rem",gap:"0.5rem",transitionDuration:"{transition.duration}"},image:{width:"2rem",height:"2rem"},icon:{size:"1rem"},removeIcon:{size:"1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},colorScheme:{light:{root:{background:"{surface.100}",color:"{surface.800}"},icon:{color:"{surface.800}"},removeIcon:{color:"{surface.800}"}},dark:{root:{background:"{surface.800}",color:"{surface.0}"},icon:{color:"{surface.0}"},removeIcon:{color:"{surface.0}"}}}},Vx={root:{transitionDuration:"{transition.duration}"},preview:{width:"1.5rem",height:"1.5rem",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},panel:{shadow:"{overlay.popover.shadow}",borderRadius:"{overlay.popover.borderRadius}"},colorScheme:{light:{panel:{background:"{surface.800}",borderColor:"{surface.900}"},handle:{color:"{surface.0}"}},dark:{panel:{background:"{surface.900}",borderColor:"{surface.700}"},handle:{color:"{surface.0}"}}}},Fx={icon:{size:"2rem",color:"{overlay.modal.color}"},content:{gap:"1rem"}},Ix={root:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},content:{padding:"{overlay.popover.padding}",gap:"1rem"},icon:{size:"1.5rem",color:"{overlay.popover.color}"},footer:{gap:"0.5rem",padding:"0 {overlay.popover.padding} {overlay.popover.padding} {overlay.popover.padding}"}},Lx={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{mobileIndent:"1rem"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"}},zx={root:{transitionDuration:"{transition.duration}"},header:{background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},headerCell:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{datatable.border.color}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},columnTitle:{fontWeight:"600"},row:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},bodyCell:{borderColor:"{datatable.border.color}",padding:"0.75rem 1rem"},footerCell:{background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",padding:"0.75rem 1rem"},columnFooter:{fontWeight:"600"},footer:{background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},dropPoint:{color:"{primary.color}"},columnResizerWidth:"0.5rem",resizeIndicator:{width:"1px",color:"{primary.color}"},sortIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},loadingIcon:{size:"2rem"},rowToggleButton:{hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},filter:{inlineGap:"0.5rem",overlaySelect:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},overlayPopover:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}",gap:"0.5rem"},rule:{borderColor:"{content.border.color}"},constraintList:{padding:"{list.padding}",gap:"{list.gap}"},constraint:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",separator:{borderColor:"{content.border.color}"},padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"}},paginatorTop:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},colorScheme:{light:{root:{borderColor:"{content.border.color}"},row:{stripedBackground:"{surface.50}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},row:{stripedBackground:"{surface.950}"},bodyCell:{selectedBorderColor:"{primary.900}"}}}},jx={root:{borderColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0"},header:{background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",borderRadius:"0"},content:{background:"{content.background}",color:"{content.color}",borderColor:"transparent",borderWidth:"0",padding:"0",borderRadius:"0"},footer:{background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"1px 0 0 0",padding:"0.75rem 1rem",borderRadius:"0"},paginatorTop:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{content.border.color}",borderWidth:"1px 0 0 0"}},Wx={root:{transitionDuration:"{transition.duration}"},panel:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}"},header:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",padding:"0 0 0.5rem 0"},title:{gap:"0.5rem",fontWeight:"500"},dropdown:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},inputIcon:{color:"{form.field.icon.color}"},selectMonth:{hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}"},selectYear:{hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}"},group:{borderColor:"{content.border.color}",gap:"{overlay.popover.padding}"},dayView:{margin:"0.5rem 0 0 0"},weekDay:{padding:"0.25rem",fontWeight:"500",color:"{content.color}"},date:{hoverBackground:"{content.hover.background}",selectedBackground:"{primary.color}",rangeSelectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{primary.contrast.color}",rangeSelectedColor:"{highlight.color}",width:"2rem",height:"2rem",borderRadius:"50%",padding:"0.25rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},monthView:{margin:"0.5rem 0 0 0"},month:{padding:"0.375rem",borderRadius:"{content.border.radius}"},yearView:{margin:"0.5rem 0 0 0"},year:{padding:"0.375rem",borderRadius:"{content.border.radius}"},buttonbar:{padding:"0.5rem 0 0 0",borderColor:"{content.border.color}"},timePicker:{padding:"0.5rem 0 0 0",borderColor:"{content.border.color}",gap:"0.5rem",buttonGap:"0.25rem"},colorScheme:{light:{dropdown:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"},today:{background:"{surface.200}",color:"{surface.900}"}},dark:{dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"},today:{background:"{surface.700}",color:"{surface.0}"}}}},Hx={root:{background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",borderRadius:"{overlay.modal.border.radius}",shadow:"{overlay.modal.shadow}"},header:{padding:"{overlay.modal.padding}",gap:"0.5rem"},title:{fontSize:"1.25rem",fontWeight:"600"},content:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},footer:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}",gap:"0.5rem"}},Ux={root:{borderColor:"{content.border.color}"},content:{background:"{content.background}",color:"{text.color}"},horizontal:{margin:"1rem 0",padding:"0 1rem",content:{padding:"0 0.5rem"}},vertical:{margin:"0 1rem",padding:"0.5rem 0",content:{padding:"0.5rem 0"}}},qx={root:{background:"rgba(255, 255, 255, 0.1)",borderColor:"rgba(255, 255, 255, 0.2)",padding:"0.5rem",borderRadius:"{border.radius.xl}"},item:{borderRadius:"{content.border.radius}",padding:"0.5rem",size:"3rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},Yx={root:{background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",shadow:"{overlay.modal.shadow}"},header:{padding:"{overlay.modal.padding}"},title:{fontSize:"1.5rem",fontWeight:"600"},content:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},footer:{padding:"{overlay.modal.padding}"}},Xx={toolbar:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}"},toolbarItem:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}",padding:"{list.padding}"},overlayOption:{focusBackground:"{list.option.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},content:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"}},Kx={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",padding:"0 1.125rem 1.125rem 1.125rem",transitionDuration:"{transition.duration}"},legend:{background:"{content.background}",hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",borderRadius:"{content.border.radius}",borderWidth:"1px",borderColor:"transparent",padding:"0.5rem 0.75rem",gap:"0.5rem",fontWeight:"600",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}"},content:{padding:"0"}},Gx={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},header:{background:"transparent",color:"{text.color}",padding:"1.125rem",borderColor:"unset",borderWidth:"0",borderRadius:"0",gap:"0.5rem"},content:{highlightBorderColor:"{primary.color}",padding:"0 1.125rem 1.125rem 1.125rem",gap:"1rem"},file:{padding:"1rem",gap:"1rem",borderColor:"{content.border.color}",info:{gap:"0.5rem"}},fileList:{gap:"0.5rem"},progressbar:{height:"0.25rem"},basic:{gap:"0.5rem"}},Jx={root:{color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",activeColor:"{form.field.float.label.active.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",positionY:"{form.field.padding.y}",fontWeight:"500",active:{fontSize:"0.75rem",fontWeight:"400"}},over:{active:{top:"-1.25rem"}},in:{input:{paddingTop:"1.5rem",paddingBottom:"{form.field.padding.y}"},active:{top:"{form.field.padding.y}"}},on:{borderRadius:"{border.radius.xs}",active:{background:"{form.field.background}",padding:"0 0.125rem"}}},Qx={root:{borderWidth:"1px",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},navButton:{background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.100}",hoverColor:"{surface.0}",size:"3rem",gutter:"0.5rem",prev:{borderRadius:"50%"},next:{borderRadius:"50%"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},navIcon:{size:"1.5rem"},thumbnailsContent:{background:"{content.background}",padding:"1rem 0.25rem"},thumbnailNavButton:{size:"2rem",borderRadius:"{content.border.radius}",gutter:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},thumbnailNavButtonIcon:{size:"1rem"},caption:{background:"rgba(0, 0, 0, 0.5)",color:"{surface.100}",padding:"1rem"},indicatorList:{gap:"0.5rem",padding:"1rem"},indicatorButton:{width:"1rem",height:"1rem",activeBackground:"{primary.color}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},insetIndicatorList:{background:"rgba(0, 0, 0, 0.5)"},insetIndicatorButton:{background:"rgba(255, 255, 255, 0.4)",hoverBackground:"rgba(255, 255, 255, 0.6)",activeBackground:"rgba(255, 255, 255, 0.9)"},closeButton:{size:"3rem",gutter:"0.5rem",background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.50}",hoverColor:"{surface.0}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},closeButtonIcon:{size:"1.5rem"},colorScheme:{light:{thumbnailNavButton:{hoverBackground:"{surface.100}",color:"{surface.600}",hoverColor:"{surface.700}"},indicatorButton:{background:"{surface.200}",hoverBackground:"{surface.300}"}},dark:{thumbnailNavButton:{hoverBackground:"{surface.700}",color:"{surface.400}",hoverColor:"{surface.0}"},indicatorButton:{background:"{surface.700}",hoverBackground:"{surface.600}"}}}},Zx={icon:{color:"{form.field.icon.color}"}},ev={root:{color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",top:"{form.field.padding.y}",fontSize:"0.75rem",fontWeight:"400"},input:{paddingTop:"1.5rem",paddingBottom:"{form.field.padding.y}"}},tv={root:{transitionDuration:"{transition.duration}"},preview:{icon:{size:"1.5rem"},mask:{background:"{mask.background}",color:"{mask.color}"}},toolbar:{position:{left:"auto",right:"1rem",top:"1rem",bottom:"auto"},blur:"8px",background:"rgba(255,255,255,0.1)",borderColor:"rgba(255,255,255,0.2)",borderWidth:"1px",borderRadius:"30px",padding:".5rem",gap:"0.5rem"},action:{hoverBackground:"rgba(255,255,255,0.1)",color:"{surface.50}",hoverColor:"{surface.0}",size:"3rem",iconSize:"1.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},ov={handle:{size:"15px",hoverSize:"30px",background:"rgba(255,255,255,0.3)",hoverBackground:"rgba(255,255,255,0.3)",borderColor:"unset",hoverBorderColor:"unset",borderWidth:"0",borderRadius:"50%",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"rgba(255,255,255,0.3)",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},rv={root:{padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",gap:"0.5rem"},text:{fontWeight:"500"},icon:{size:"1rem"},colorScheme:{light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)"},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)"},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)"},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)"},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)"},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)"}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)"},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)"},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)"},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)"},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)"}}}},nv={root:{padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{transition.duration}"},display:{hoverBackground:"{content.hover.background}",hoverColor:"{content.hover.color}"}},iv={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},chip:{borderRadius:"{border.radius.sm}"},colorScheme:{light:{chip:{focusBackground:"{surface.200}",color:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",color:"{surface.0}"}}}},av={addon:{background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.icon.color}",borderRadius:"{form.field.border.radius}",padding:"0.5rem",minWidth:"2.5rem"}},sv={root:{transitionDuration:"{transition.duration}"},button:{width:"2.5rem",borderRadius:"{form.field.border.radius}",verticalPadding:"{form.field.padding.y}"},colorScheme:{light:{button:{background:"transparent",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.400}",hoverColor:"{surface.500}",activeColor:"{surface.600}"}},dark:{button:{background:"transparent",hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.400}",hoverColor:"{surface.300}",activeColor:"{surface.200}"}}}},lv={root:{gap:"0.5rem"},input:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"}}},cv={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}}},dv={root:{transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},value:{background:"{primary.color}"},range:{background:"{content.border.color}"},text:{color:"{text.muted.color}"}},uv={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",borderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",shadow:"{form.field.shadow}",borderRadius:"{form.field.border.radius}",transitionDuration:"{form.field.transition.duration}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},checkmark:{color:"{list.option.color}",gutterStart:"-0.375rem",gutterEnd:"0.375rem"},emptyMessage:{padding:"{list.option.padding}"},colorScheme:{light:{option:{stripedBackground:"{surface.50}"}},dark:{option:{stripedBackground:"{surface.900}"}}}},fv={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",verticalOrientation:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},horizontalOrientation:{padding:"0.5rem 0.75rem",gap:"0.5rem"},transitionDuration:"{transition.duration}"},baseItem:{borderRadius:"{content.border.radius}",padding:"{navigation.item.padding}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},overlay:{padding:"0",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",shadow:"{overlay.navigation.shadow}",gap:"0.5rem"},submenu:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},submenuLabel:{padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background.}",color:"{navigation.submenu.label.color}"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"},mobileButton:{borderRadius:"50%",size:"1.75rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},hv={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},submenuLabel:{padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background}",color:"{navigation.submenu.label.color}"},separator:{borderColor:"{content.border.color}"}},gv={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.5rem 0.75rem",transitionDuration:"{transition.duration}"},baseItem:{borderRadius:"{content.border.radius}",padding:"{navigation.item.padding}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",mobileIndent:"1rem",icon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"}},separator:{borderColor:"{content.border.color}"},mobileButton:{borderRadius:"50%",size:"1.75rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},mv={root:{borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},content:{padding:"0.5rem 0.75rem",gap:"0.5rem",sm:{padding:"0.375rem 0.625rem"},lg:{padding:"0.625rem 0.875rem"}},text:{fontSize:"1rem",fontWeight:"500",sm:{fontSize:"0.875rem"},lg:{fontSize:"1.125rem"}},icon:{size:"1.125rem",sm:{size:"1rem"},lg:{size:"1.25rem"}},closeButton:{width:"1.75rem",height:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},closeIcon:{size:"1rem",sm:{size:"0.875rem"},lg:{size:"1.125rem"}},outlined:{root:{borderWidth:"1px"}},simple:{content:{padding:"0"}},colorScheme:{light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{blue.600}",shadow:"none"}},outlined:{color:"{blue.600}",borderColor:"{blue.600}"},simple:{color:"{blue.600}"}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{green.600}",shadow:"none"}},outlined:{color:"{green.600}",borderColor:"{green.600}"},simple:{color:"{green.600}"}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{yellow.600}",shadow:"none"}},outlined:{color:"{yellow.600}",borderColor:"{yellow.600}"},simple:{color:"{yellow.600}"}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{red.600}",shadow:"none"}},outlined:{color:"{red.600}",borderColor:"{red.600}"},simple:{color:"{red.600}"}},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{surface.600}",shadow:"none"}},outlined:{color:"{surface.500}",borderColor:"{surface.500}"},simple:{color:"{surface.500}"}},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{surface.50}",shadow:"none"}},outlined:{color:"{surface.950}",borderColor:"{surface.950}"},simple:{color:"{surface.950}"}}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{blue.500}",shadow:"none"}},outlined:{color:"{blue.500}",borderColor:"{blue.500}"},simple:{color:"{blue.500}"}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{green.500}",shadow:"none"}},outlined:{color:"{green.500}",borderColor:"{green.500}"},simple:{color:"{green.500}"}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{yellow.500}",shadow:"none"}},outlined:{color:"{yellow.500}",borderColor:"{yellow.500}"},simple:{color:"{yellow.500}"}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{red.500}",shadow:"none"}},outlined:{color:"{red.500}",borderColor:"{red.500}"},simple:{color:"{red.500}"}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{surface.300}",shadow:"none"}},outlined:{color:"{surface.400}",borderColor:"{surface.400}"},simple:{color:"{surface.400}"}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{surface.950}",shadow:"none"}},outlined:{color:"{surface.0}",borderColor:"{surface.0}"},simple:{color:"{surface.0}"}}}}},pv={root:{borderRadius:"{content.border.radius}",gap:"1rem"},meters:{background:"{content.border.color}",size:"0.5rem"},label:{gap:"0.5rem"},labelMarker:{size:"0.5rem"},labelIcon:{size:"1rem"},labelList:{verticalGap:"0.5rem",horizontalGap:"1rem"}},bv={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",gap:"0.5rem"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},clearIcon:{color:"{form.field.icon.color}"},chip:{borderRadius:"{border.radius.sm}"},emptyMessage:{padding:"{list.option.padding}"}},yv={root:{gap:"1.125rem"},controls:{gap:"0.5rem"}},kv={root:{gutter:"0.75rem",transitionDuration:"{transition.duration}"},node:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{content.border.color}",color:"{content.color}",selectedColor:"{highlight.color}",hoverColor:"{content.hover.color}",padding:"0.75rem 1rem",toggleablePadding:"0.75rem 1rem 1.25rem 1rem",borderRadius:"{content.border.radius}"},nodeToggleButton:{background:"{content.background}",hoverBackground:"{content.hover.background}",borderColor:"{content.border.color}",color:"{text.muted.color}",hoverColor:"{text.color}",size:"1.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},connector:{color:"{content.border.color}",borderRadius:"{content.border.radius}",height:"24px"}},xv={root:{outline:{width:"2px",color:"{content.background}"}}},vv={root:{padding:"0.5rem 1rem",gap:"0.25rem",borderRadius:"{content.border.radius}",background:"{content.background}",color:"{content.color}",transitionDuration:"{transition.duration}"},navButton:{background:"transparent",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}",width:"2.5rem",height:"2.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},currentPageReport:{color:"{text.muted.color}"},jumpToPageInput:{maxWidth:"2.5rem"}},wv={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},header:{background:"transparent",color:"{text.color}",padding:"1.125rem",borderColor:"{content.border.color}",borderWidth:"0",borderRadius:"0"},toggleableHeader:{padding:"0.375rem 1.125rem"},title:{fontWeight:"600"},content:{padding:"0 1.125rem 1.125rem 1.125rem"},footer:{padding:"0 1.125rem 1.125rem 1.125rem"}},Cv={root:{gap:"0.5rem",transitionDuration:"{transition.duration}"},panel:{background:"{content.background}",borderColor:"{content.border.color}",borderWidth:"1px",color:"{content.color}",padding:"0.25rem 0.25rem",borderRadius:"{content.border.radius}",first:{borderWidth:"1px",topBorderRadius:"{content.border.radius}"},last:{borderWidth:"1px",bottomBorderRadius:"{content.border.radius}"}},item:{focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",gap:"0.5rem",padding:"{navigation.item.padding}",borderRadius:"{content.border.radius}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},submenu:{indent:"1rem"},submenuIcon:{color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}"}},_v={meter:{background:"{content.border.color}",borderRadius:"{content.border.radius}",height:".75rem"},icon:{color:"{form.field.icon.color}"},overlay:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",padding:"{overlay.popover.padding}",shadow:"{overlay.popover.shadow}"},content:{gap:"0.5rem"},colorScheme:{light:{strength:{weakBackground:"{red.500}",mediumBackground:"{amber.500}",strongBackground:"{green.500}"}},dark:{strength:{weakBackground:"{red.400}",mediumBackground:"{amber.400}",strongBackground:"{green.400}"}}}},Sv={root:{gap:"1.125rem"},controls:{gap:"0.5rem"}},Bv={root:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},content:{padding:"{overlay.popover.padding}"}},Ev={root:{background:"{content.border.color}",borderRadius:"{content.border.radius}",height:"1.25rem"},value:{background:"{primary.color}"},label:{color:"{primary.contrast.color}",fontSize:"0.75rem",fontWeight:"600"}},Rv={colorScheme:{light:{root:{"color.1":"{red.500}","color.2":"{blue.500}","color.3":"{green.500}","color.4":"{yellow.500}"}},dark:{root:{"color.1":"{red.400}","color.2":"{blue.400}","color.3":"{green.400}","color.4":"{yellow.400}"}}}},Dv={root:{width:"1.25rem",height:"1.25rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},icon:{size:"0.75rem",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.5rem"},lg:{size:"1rem"}}},Ov={root:{gap:"0.25rem",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},icon:{size:"1rem",color:"{text.muted.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},Nv={colorScheme:{light:{root:{background:"rgba(0,0,0,0.1)"}},dark:{root:{background:"rgba(255,255,255,0.3)"}}}},Tv={root:{transitionDuration:"{transition.duration}"},bar:{size:"9px",borderRadius:"{border.radius.sm}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{bar:{background:"{surface.100}"}},dark:{bar:{background:"{surface.800}"}}}},Pv={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},clearIcon:{color:"{form.field.icon.color}"},checkmark:{color:"{list.option.color}",gutterStart:"-0.375rem",gutterEnd:"0.375rem"},emptyMessage:{padding:"{list.option.padding}"}},$v={root:{borderRadius:"{form.field.border.radius}"},colorScheme:{light:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}},dark:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}}}},Av={root:{borderRadius:"{content.border.radius}"},colorScheme:{light:{root:{background:"{surface.200}",animationBackground:"rgba(255,255,255,0.4)"}},dark:{root:{background:"rgba(255, 255, 255, 0.06)",animationBackground:"rgba(255, 255, 255, 0.04)"}}}},Mv={root:{transitionDuration:"{transition.duration}"},track:{background:"{content.border.color}",borderRadius:"{content.border.radius}",size:"3px"},range:{background:"{primary.color}"},handle:{width:"20px",height:"20px",borderRadius:"50%",background:"{content.border.color}",hoverBackground:"{content.border.color}",content:{borderRadius:"50%",hoverBackground:"{content.background}",width:"16px",height:"16px",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.08), 0px 1px 1px 0px rgba(0, 0, 0, 0.14)"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{handle:{contentBackground:"{surface.0}"}},dark:{handle:{contentBackground:"{surface.950}"}}}},Vv={root:{gap:"0.5rem",transitionDuration:"{transition.duration}"}},Fv={root:{borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)"}},Iv={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",transitionDuration:"{transition.duration}"},gutter:{background:"{content.border.color}"},handle:{size:"24px",background:"transparent",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},Lv={root:{transitionDuration:"{transition.duration}"},separator:{background:"{content.border.color}",activeBackground:"{primary.color}",margin:"0 0 0 1.625rem",size:"2px"},step:{padding:"0.5rem",gap:"1rem"},stepHeader:{padding:"0",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},stepTitle:{color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},stepNumber:{background:"{content.background}",activeBackground:"{content.background}",borderColor:"{content.border.color}",activeBorderColor:"{content.border.color}",color:"{text.muted.color}",activeColor:"{primary.color}",size:"2rem",fontSize:"1.143rem",fontWeight:"500",borderRadius:"50%",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"},steppanels:{padding:"0.875rem 0.5rem 1.125rem 0.5rem"},steppanel:{background:"{content.background}",color:"{content.color}",padding:"0",indent:"1rem"}},zv={root:{transitionDuration:"{transition.duration}"},separator:{background:"{content.border.color}"},itemLink:{borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},itemLabel:{color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},itemNumber:{background:"{content.background}",activeBackground:"{content.background}",borderColor:"{content.border.color}",activeBorderColor:"{content.border.color}",color:"{text.muted.color}",activeColor:"{primary.color}",size:"2rem",fontSize:"1.143rem",fontWeight:"500",borderRadius:"50%",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"}},jv={root:{transitionDuration:"{transition.duration}"},tablist:{borderWidth:"0 0 1px 0",background:"{content.background}",borderColor:"{content.border.color}"},item:{background:"transparent",hoverBackground:"transparent",activeBackground:"transparent",borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",hoverBorderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.125rem",fontWeight:"600",margin:"0 0 -1px 0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},itemIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},activeBar:{height:"1px",bottom:"-1px",background:"{primary.color}"}},Wv={root:{transitionDuration:"{transition.duration}"},tablist:{borderWidth:"0 0 1px 0",background:"{content.background}",borderColor:"{content.border.color}"},tab:{background:"transparent",hoverBackground:"transparent",activeBackground:"transparent",borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",hoverBorderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.125rem",fontWeight:"600",margin:"0 0 -1px 0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},tabpanel:{background:"{content.background}",color:"{content.color}",padding:"0.875rem 1.125rem 1.125rem 1.125rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},navButton:{background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",width:"2.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},activeBar:{height:"1px",bottom:"-1px",background:"{primary.color}"},colorScheme:{light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}}},Hv={root:{transitionDuration:"{transition.duration}"},tabList:{background:"{content.background}",borderColor:"{content.border.color}"},tab:{borderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},tabPanel:{background:"{content.background}",color:"{content.color}"},navButton:{background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}"},colorScheme:{light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}}},Uv={root:{fontSize:"0.875rem",fontWeight:"700",padding:"0.25rem 0.5rem",gap:"0.25rem",borderRadius:"{content.border.radius}",roundedBorderRadius:"{border.radius.xl}"},icon:{size:"0.75rem"},colorScheme:{light:{primary:{background:"{primary.100}",color:"{primary.700}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.100}",color:"{green.700}"},info:{background:"{sky.100}",color:"{sky.700}"},warn:{background:"{orange.100}",color:"{orange.700}"},danger:{background:"{red.100}",color:"{red.700}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"color-mix(in srgb, {primary.500}, transparent 84%)",color:"{primary.300}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",color:"{green.300}"},info:{background:"color-mix(in srgb, {sky.500}, transparent 84%)",color:"{sky.300}"},warn:{background:"color-mix(in srgb, {orange.500}, transparent 84%)",color:"{orange.300}"},danger:{background:"color-mix(in srgb, {red.500}, transparent 84%)",color:"{red.300}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}}},qv={root:{background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.color}",height:"18rem",padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{form.field.border.radius}"},prompt:{gap:"0.25rem"},commandResponse:{margin:"2px 0"}},Yv={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}}},Xv={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{mobileIndent:"1rem"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"}},Kv={event:{minHeight:"5rem"},horizontal:{eventContent:{padding:"1rem 0"}},vertical:{eventContent:{padding:"0 1rem"}},eventMarker:{size:"1.125rem",borderRadius:"50%",borderWidth:"2px",background:"{content.background}",borderColor:"{content.border.color}",content:{borderRadius:"50%",size:"0.375rem",background:"{primary.color}",insetShadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"}},eventConnector:{color:"{content.border.color}",size:"2px"}},Gv={root:{width:"25rem",borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},icon:{size:"1.125rem"},content:{padding:"{overlay.popover.padding}",gap:"0.5rem"},text:{gap:"0.5rem"},summary:{fontWeight:"500",fontSize:"1rem"},detail:{fontWeight:"500",fontSize:"0.875rem"},closeButton:{width:"1.75rem",height:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},closeIcon:{size:"1rem"},colorScheme:{light:{blur:"1.5px",info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{blue.600}",shadow:"none"}}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{green.600}",shadow:"none"}}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{yellow.600}",shadow:"none"}}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{red.600}",shadow:"none"}}},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{surface.600}",shadow:"none"}}},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{surface.50}",shadow:"none"}}}},dark:{blur:"10px",info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{blue.500}",shadow:"none"}}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{green.500}",shadow:"none"}}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{yellow.500}",shadow:"none"}}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{red.500}",shadow:"none"}}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{surface.300}",shadow:"none"}}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",detailColor:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{surface.950}",shadow:"none"}}}}}},Jv={root:{padding:"0.5rem 1rem",borderRadius:"{content.border.radius}",gap:"0.5rem",fontWeight:"500",disabledBackground:"{form.field.disabled.background}",disabledBorderColor:"{form.field.disabled.background}",disabledColor:"{form.field.disabled.color}",invalidBorderColor:"{form.field.invalid.border.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",padding:"0.375rem 0.75rem"},lg:{fontSize:"{form.field.lg.font.size}",padding:"0.625rem 1.25rem"}},icon:{disabledColor:"{form.field.disabled.color}"},content:{left:"0.25rem",top:"0.25rem",checkedShadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.02), 0px 1px 2px 0px rgba(0, 0, 0, 0.04)"},colorScheme:{light:{root:{background:"{surface.100}",checkedBackground:"{surface.100}",hoverBackground:"{surface.100}",borderColor:"{surface.100}",color:"{surface.500}",hoverColor:"{surface.700}",checkedColor:"{surface.900}",checkedBorderColor:"{surface.100}"},content:{checkedBackground:"{surface.0}"},icon:{color:"{surface.500}",hoverColor:"{surface.700}",checkedColor:"{surface.900}"}},dark:{root:{background:"{surface.950}",checkedBackground:"{surface.950}",hoverBackground:"{surface.950}",borderColor:"{surface.950}",color:"{surface.400}",hoverColor:"{surface.300}",checkedColor:"{surface.0}",checkedBorderColor:"{surface.950}"},content:{checkedBackground:"{surface.800}"},icon:{color:"{surface.400}",hoverColor:"{surface.300}",checkedColor:"{surface.0}"}}}},Qv={root:{width:"2.5rem",height:"1.5rem",borderRadius:"30px",gap:"0.25rem",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},borderWidth:"1px",borderColor:"transparent",hoverBorderColor:"transparent",checkedBorderColor:"transparent",checkedHoverBorderColor:"transparent",invalidBorderColor:"{form.field.invalid.border.color}",transitionDuration:"{form.field.transition.duration}",slideDuration:"0.2s"},handle:{borderRadius:"50%",size:"1rem"},colorScheme:{light:{root:{background:"{surface.300}",disabledBackground:"{form.field.disabled.background}",hoverBackground:"{surface.400}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.0}",disabledBackground:"{form.field.disabled.color}",hoverBackground:"{surface.0}",checkedBackground:"{surface.0}",checkedHoverBackground:"{surface.0}",color:"{text.muted.color}",hoverColor:"{text.color}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}},dark:{root:{background:"{surface.700}",disabledBackground:"{surface.600}",hoverBackground:"{surface.600}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.400}",disabledBackground:"{surface.900}",hoverBackground:"{surface.300}",checkedBackground:"{surface.900}",checkedHoverBackground:"{surface.900}",color:"{surface.900}",hoverColor:"{surface.800}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}}}},Zv={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.75rem"}},ew={root:{maxWidth:"12.5rem",gutter:"0.25rem",shadow:"{overlay.popover.shadow}",padding:"0.5rem 0.75rem",borderRadius:"{overlay.popover.border.radius}"},colorScheme:{light:{root:{background:"{surface.700}",color:"{surface.0}"}},dark:{root:{background:"{surface.700}",color:"{surface.0}"}}}},tw={root:{background:"{content.background}",color:"{content.color}",padding:"1rem",gap:"2px",indent:"1rem",transitionDuration:"{transition.duration}"},node:{padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.color}",hoverColor:"{text.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},gap:"0.25rem"},nodeIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}"},nodeToggleButton:{borderRadius:"50%",size:"1.75rem",hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedHoverColor:"{primary.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},loadingIcon:{size:"2rem"},filter:{margin:"0 0 0.5rem 0"}},ow={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},tree:{padding:"{list.padding}"},clearIcon:{color:"{form.field.icon.color}"},emptyMessage:{padding:"{list.option.padding}"},chip:{borderRadius:"{border.radius.sm}"}},rw={root:{transitionDuration:"{transition.duration}"},header:{background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},headerCell:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{treetable.border.color}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},columnTitle:{fontWeight:"600"},row:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},bodyCell:{borderColor:"{treetable.border.color}",padding:"0.75rem 1rem",gap:"0.5rem"},footerCell:{background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",padding:"0.75rem 1rem"},columnFooter:{fontWeight:"600"},footer:{background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},columnResizerWidth:"0.5rem",resizeIndicator:{width:"1px",color:"{primary.color}"},sortIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},loadingIcon:{size:"2rem"},nodeToggleButton:{hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},paginatorTop:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},colorScheme:{light:{root:{borderColor:"{content.border.color}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},bodyCell:{selectedBorderColor:"{primary.900}"}}}},nw={loader:{mask:{background:"{content.background}",color:"{text.muted.color}"},icon:{size:"2rem"}}};function Cr(t){"@babel/helpers - typeof";return Cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cr(t)}function Tc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,r)}return o}function Pc(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Tc(Object(o),!0).forEach(function(r){iw(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Tc(Object(o)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))})}return t}function iw(t,e,o){return(e=aw(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function aw(t){var e=sw(t,"string");return Cr(e)=="symbol"?e:e+""}function sw(t,e){if(Cr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var r=o.call(t,e||"default");if(Cr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var lw=Pc(Pc({},Rx),{},{components:{accordion:_x,autocomplete:Sx,avatar:Bx,badge:Ex,blockui:Dx,breadcrumb:Ox,button:Nx,datepicker:Wx,card:Tx,carousel:Px,cascadeselect:$x,checkbox:Ax,chip:Mx,colorpicker:Vx,confirmdialog:Fx,confirmpopup:Ix,contextmenu:Lx,dataview:jx,datatable:zx,dialog:Hx,divider:Ux,dock:qx,drawer:Yx,editor:Xx,fieldset:Kx,fileupload:Gx,iftalabel:ev,floatlabel:Jx,galleria:Qx,iconfield:Zx,image:tv,imagecompare:ov,inlinemessage:rv,inplace:nv,inputchips:iv,inputgroup:av,inputnumber:sv,inputotp:lv,inputtext:cv,knob:dv,listbox:uv,megamenu:fv,menu:hv,menubar:gv,message:mv,metergroup:pv,multiselect:bv,orderlist:yv,organizationchart:kv,overlaybadge:xv,popover:Bv,paginator:vv,password:_v,panel:wv,panelmenu:Cv,picklist:Sv,progressbar:Ev,progressspinner:Rv,radiobutton:Dv,rating:Ov,scrollpanel:Tv,select:Pv,selectbutton:$v,skeleton:Av,slider:Mv,speeddial:Vv,splitter:Iv,splitbutton:Fv,stepper:Lv,steps:zv,tabmenu:jv,tabs:Wv,tabview:Hv,textarea:Yv,tieredmenu:Xv,tag:Uv,terminal:qv,timeline:Kv,togglebutton:Jv,toggleswitch:Qv,tree:tw,treeselect:ow,treetable:rw,toast:Gv,toolbar:Zv,virtualscroller:nw},directives:{tooltip:ew,ripple:Nv}}),cw={root:{transitionDuration:"{transition.duration}"},panel:{borderWidth:"0",borderColor:"{content.border.color}"},header:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",padding:"1.125rem",fontWeight:"700",borderRadius:"0",borderWidth:"0 1px 1px 1px",borderColor:"{content.border.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",activeHoverColor:"{text.color}"},first:{topBorderRadius:"{content.border.radius}",borderWidth:"1px"},last:{bottomBorderRadius:"{content.border.radius}",activeBottomBorderRadius:"0"}},content:{borderWidth:"0 1px 1px 1px",borderColor:"{content.border.color}",background:"{content.background}",color:"{text.color}",padding:"1.125rem"},colorScheme:{light:{header:{background:"{surface.50}",hoverBackground:"{surface.100}",activeBackground:"{surface.50}",activeHoverBackground:"{surface.100}"}},dark:{header:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.800}",activeHoverBackground:"{surface.700}"}}}},dw={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}"},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},dropdown:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},chip:{borderRadius:"{border.radius.sm}"},emptyMessage:{padding:"{list.option.padding}"},colorScheme:{light:{chip:{focusBackground:"{surface.200}",focusColor:"{surface.800}"},dropdown:{background:"{surface.50}",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",focusColor:"{surface.0}"},dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"}}}},uw={root:{width:"2rem",height:"2rem",fontSize:"1rem",background:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},icon:{size:"1rem"},group:{borderColor:"{content.background}",offset:"-0.75rem"},lg:{width:"3rem",height:"3rem",fontSize:"1.5rem",icon:{size:"1.5rem"},group:{offset:"-1rem"}},xl:{width:"4rem",height:"4rem",fontSize:"2rem",icon:{size:"2rem"}}},fw={root:{borderRadius:"{border.radius.md}",padding:"0 0.5rem",fontSize:"0.75rem",fontWeight:"700",minWidth:"1.5rem",height:"1.5rem"},dot:{size:"0.5rem"},sm:{fontSize:"0.625rem",minWidth:"1.25rem",height:"1.25rem"},lg:{fontSize:"0.875rem",minWidth:"1.75rem",height:"1.75rem"},xl:{fontSize:"1rem",minWidth:"2rem",height:"2rem"},colorScheme:{light:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.500}",color:"{surface.0}"},info:{background:"{sky.500}",color:"{surface.0}"},warn:{background:"{orange.500}",color:"{surface.0}"},danger:{background:"{red.500}",color:"{surface.0}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"{green.400}",color:"{green.950}"},info:{background:"{sky.400}",color:"{sky.950}"},warn:{background:"{orange.400}",color:"{orange.950}"},danger:{background:"{red.400}",color:"{red.950}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}}},hw={primitive:{borderRadius:{none:"0",xs:"2px",sm:"4px",md:"6px",lg:"8px",xl:"12px"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"}},semantic:{transitionDuration:"0.2s",focusRing:{width:"0",style:"none",color:"transparent",offset:"0"},disabledOpacity:"0.6",iconSize:"1rem",anchorGutter:"2px",primary:{50:"{emerald.50}",100:"{emerald.100}",200:"{emerald.200}",300:"{emerald.300}",400:"{emerald.400}",500:"{emerald.500}",600:"{emerald.600}",700:"{emerald.700}",800:"{emerald.800}",900:"{emerald.900}",950:"{emerald.950}"},formField:{paddingX:"0.75rem",paddingY:"0.625rem",sm:{fontSize:"0.875rem",paddingX:"0.625rem",paddingY:"0.5rem"},lg:{fontSize:"1.125rem",paddingX:"0.875rem",paddingY:"0.75rem"},borderRadius:"{border.radius.md}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{transition.duration}"},list:{padding:"0.5rem 0",gap:"0",header:{padding:"0.625rem 1rem 0 1rem"},option:{padding:"0.625rem 1rem",borderRadius:"0"},optionGroup:{padding:"0.625rem 1rem",fontWeight:"600"}},content:{borderRadius:"{border.radius.md}"},mask:{transitionDuration:"0.15s"},navigation:{list:{padding:"0.5rem 0",gap:"0"},item:{padding:"0.625rem 1rem",borderRadius:"0",gap:"0.5rem"},submenuLabel:{padding:"0.625rem 1rem",fontWeight:"600"},submenuIcon:{size:"0.875rem"}},overlay:{select:{borderRadius:"{border.radius.md}",shadow:"0 2px 12px 0 rgba(0, 0, 0, 0.1)"},popover:{borderRadius:"{border.radius.md}",padding:"1rem",shadow:"0 1px 3px rgba(0, 0, 0, 0.1)"},modal:{borderRadius:"{border.radius.xl}",padding:"1.5rem",shadow:"0 1px 3px rgba(0, 0, 0, 0.3)"},navigation:{shadow:"0 2px 12px 0 rgba(0, 0, 0, 0.1)"}},colorScheme:{light:{surface:{0:"#ffffff",50:"{slate.50}",100:"{slate.100}",200:"{slate.200}",300:"{slate.300}",400:"{slate.400}",500:"{slate.500}",600:"{slate.600}",700:"{slate.700}",800:"{slate.800}",900:"{slate.900}",950:"{slate.950}"},primary:{color:"{primary.500}",contrastColor:"#ffffff",hoverColor:"{primary.600}",activeColor:"{primary.700}"},highlight:{background:"{primary.50}",focusBackground:"{primary.100}",color:"{primary.700}",focusColor:"{primary.800}"},focusRing:{shadow:"0 0 0 0.2rem {primary.200}"},mask:{background:"rgba(0,0,0,0.4)",color:"{surface.200}"},formField:{background:"{surface.0}",disabledBackground:"{surface.200}",filledBackground:"{surface.50}",filledHoverBackground:"{surface.50}",filledFocusBackground:"{surface.0}",borderColor:"{surface.300}",hoverBorderColor:"{primary.color}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.400}",color:"{surface.700}",disabledColor:"{surface.500}",placeholderColor:"{surface.500}",invalidPlaceholderColor:"{red.600}",floatLabelColor:"{surface.500}",floatLabelFocusColor:"{primary.600}",floatLabelActiveColor:"{surface.500}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.500}",shadow:"none"},text:{color:"{surface.700}",hoverColor:"{surface.800}",mutedColor:"{surface.500}",hoverMutedColor:"{surface.600}"},content:{background:"{surface.0}",hoverBackground:"{surface.100}",borderColor:"{surface.200}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},popover:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},modal:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.100}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}"}},optionGroup:{background:"transparent",color:"{text.color}"}},navigation:{item:{focusBackground:"{surface.100}",activeBackground:"{surface.100}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}},submenuLabel:{background:"transparent",color:"{text.color}"},submenuIcon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}}},dark:{surface:{0:"#ffffff",50:"{zinc.50}",100:"{zinc.100}",200:"{zinc.200}",300:"{zinc.300}",400:"{zinc.400}",500:"{zinc.500}",600:"{zinc.600}",700:"{zinc.700}",800:"{zinc.800}",900:"{zinc.900}",950:"{zinc.950}"},primary:{color:"{primary.400}",contrastColor:"{surface.900}",hoverColor:"{primary.300}",activeColor:"{primary.200}"},highlight:{background:"color-mix(in srgb, {primary.400}, transparent 84%)",focusBackground:"color-mix(in srgb, {primary.400}, transparent 76%)",color:"rgba(255,255,255,.87)",focusColor:"rgba(255,255,255,.87)"},focusRing:{shadow:"0 0 0 0.2rem color-mix(in srgb, {primary.color}, transparent 80%)"},mask:{background:"rgba(0,0,0,0.6)",color:"{surface.200}"},formField:{background:"{surface.950}",disabledBackground:"{surface.700}",filledBackground:"{surface.800}",filledHoverBackground:"{surface.800}",filledFocusBackground:"{surface.950}",borderColor:"{surface.600}",hoverBorderColor:"{primary.color}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.300}",color:"{surface.0}",disabledColor:"{surface.400}",placeholderColor:"{surface.400}",invalidPlaceholderColor:"{red.400}",floatLabelColor:"{surface.400}",floatLabelFocusColor:"{primary.color}",floatLabelActiveColor:"{surface.400}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"none"},text:{color:"{surface.0}",hoverColor:"{surface.0}",mutedColor:"{surface.400}",hoverMutedColor:"{surface.300}"},content:{background:"{surface.900}",hoverBackground:"{surface.800}",borderColor:"{surface.700}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},popover:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},modal:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.800}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}"}},optionGroup:{background:"transparent",color:"{text.color}"}},navigation:{item:{focusBackground:"{surface.800}",activeBackground:"{surface.800}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}},submenuLabel:{background:"transparent",color:"{text.color}"},submenuIcon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}}}}}},gw={root:{borderRadius:"{content.border.radius}"}},mw={root:{padding:"1.25rem",background:"{content.background}",gap:"0.5rem",transitionDuration:"{transition.duration}"},item:{color:"{text.muted.color}",hoverColor:"{text.color}",borderRadius:"{content.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",hoverColor:"{navigation.item.icon.focus.color}"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},separator:{color:"{navigation.item.icon.color}"}},pw={root:{borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",gap:"0.5rem",paddingX:"1rem",paddingY:"{form.field.padding.y}",iconOnlyWidth:"2.75rem",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"},label:{fontWeight:"600"},raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",offset:"{form.field.focus.ring.offset}"},badgeSize:"1rem",transitionDuration:"{form.field.transition.duration}"},colorScheme:{light:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {primary.200}"}},secondary:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",borderColor:"{surface.100}",hoverBorderColor:"{surface.200}",activeBorderColor:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {surface.200}"}},info:{background:"{sky.500}",hoverBackground:"{sky.600}",activeBackground:"{sky.700}",borderColor:"{sky.500}",hoverBorderColor:"{sky.600}",activeBorderColor:"{sky.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {sky.200}"}},success:{background:"{green.500}",hoverBackground:"{green.600}",activeBackground:"{green.700}",borderColor:"{green.500}",hoverBorderColor:"{green.600}",activeBorderColor:"{green.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {green.200}"}},warn:{background:"{orange.500}",hoverBackground:"{orange.600}",activeBackground:"{orange.700}",borderColor:"{orange.500}",hoverBorderColor:"{orange.600}",activeBorderColor:"{orange.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {orange.200}"}},help:{background:"{purple.500}",hoverBackground:"{purple.600}",activeBackground:"{purple.700}",borderColor:"{purple.500}",hoverBorderColor:"{purple.600}",activeBorderColor:"{purple.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {purple.200}"}},danger:{background:"{red.500}",hoverBackground:"{red.600}",activeBackground:"{red.700}",borderColor:"{red.500}",hoverBorderColor:"{red.600}",activeBorderColor:"{red.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {red.200}"}},contrast:{background:"{surface.950}",hoverBackground:"{surface.900}",activeBackground:"{surface.800}",borderColor:"{surface.950}",hoverBorderColor:"{surface.900}",activeBorderColor:"{surface.800}",color:"{surface.0}",hoverColor:"{surface.0}",activeColor:"{surface.0}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {surface.400}"}}},outlined:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",borderColor:"{primary.200}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",borderColor:"{green.200}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",borderColor:"{sky.200}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",borderColor:"{orange.200}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",borderColor:"{purple.200}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",borderColor:"{red.200}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.700}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.700}"}},text:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.100}",activeBackground:"{surface.200}",color:"{surface.600}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.700}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},dark:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {primary.color}, transparent 80%)"}},secondary:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",borderColor:"{surface.800}",hoverBorderColor:"{surface.700}",activeBorderColor:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.300}, transparent 80%)"}},info:{background:"{sky.400}",hoverBackground:"{sky.300}",activeBackground:"{sky.200}",borderColor:"{sky.400}",hoverBorderColor:"{sky.300}",activeBorderColor:"{sky.200}",color:"{sky.950}",hoverColor:"{sky.950}",activeColor:"{sky.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {sky.400}, transparent 80%)"}},success:{background:"{green.400}",hoverBackground:"{green.300}",activeBackground:"{green.200}",borderColor:"{green.400}",hoverBorderColor:"{green.300}",activeBorderColor:"{green.200}",color:"{green.950}",hoverColor:"{green.950}",activeColor:"{green.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {green.400}, transparent 80%)"}},warn:{background:"{orange.400}",hoverBackground:"{orange.300}",activeBackground:"{orange.200}",borderColor:"{orange.400}",hoverBorderColor:"{orange.300}",activeBorderColor:"{orange.200}",color:"{orange.950}",hoverColor:"{orange.950}",activeColor:"{orange.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {orange.400}, transparent 80%)"}},help:{background:"{purple.400}",hoverBackground:"{purple.300}",activeBackground:"{purple.200}",borderColor:"{purple.400}",hoverBorderColor:"{purple.300}",activeBorderColor:"{purple.200}",color:"{purple.950}",hoverColor:"{purple.950}",activeColor:"{purple.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {purple.400}, transparent 80%)"}},danger:{background:"{red.400}",hoverBackground:"{red.300}",activeBackground:"{red.200}",borderColor:"{red.400}",hoverBorderColor:"{red.300}",activeBorderColor:"{red.200}",color:"{red.950}",hoverColor:"{red.950}",activeColor:"{red.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {red.400}, transparent 80%)"}},contrast:{background:"{surface.0}",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{surface.0}",hoverBorderColor:"{surface.100}",activeBorderColor:"{surface.200}",color:"{surface.950}",hoverColor:"{surface.950}",activeColor:"{surface.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.0}, transparent 80%)"}}},outlined:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",borderColor:"{primary.700}",color:"{primary.color}"},secondary:{hoverBackground:"rgba(255,255,255,0.04)",activeBackground:"rgba(255,255,255,0.16)",borderColor:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",borderColor:"{green.700}",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",borderColor:"{sky.700}",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",borderColor:"{orange.700}",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {help.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {help.400}, transparent 84%)",borderColor:"{purple.700}",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {danger.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {danger.400}, transparent 84%)",borderColor:"{red.700}",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.500}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.600}",color:"{surface.0}"}},text:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",color:"{primary.color}"},secondary:{hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}}}},bw={root:{background:"{content.background}",borderRadius:"{border.radius.lg}",color:"{content.color}",shadow:"0 .125rem .25rem rgba(0,0,0,.075)"},body:{padding:"1.5rem",gap:"0.75rem"},caption:{gap:"0.5rem"},title:{fontSize:"1.25rem",fontWeight:"700"},subtitle:{color:"{text.muted.color}"}},yw={root:{transitionDuration:"{transition.duration}"},content:{gap:"0.25rem"},indicatorList:{padding:"1rem",gap:"0.5rem"},indicator:{width:"1rem",height:"1rem",borderRadius:"50",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{indicator:{background:"{surface.200}",hoverBackground:"{surface.300}",activeBackground:"{primary.color}"}},dark:{indicator:{background:"{surface.700}",hoverBackground:"{surface.600}",activeBackground:"{primary.color}"}}}},kw={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",mobileIndent:"1.25rem"},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",icon:{color:"{list.option.icon.color}",focusColor:"{list.option.icon.focus.color}",size:"0.875rem"}},clearIcon:{color:"{form.field.icon.color}"}},xw={root:{borderRadius:"{border.radius.sm}",width:"1.5rem",height:"1.5rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1.25rem",height:"1.25rem"},lg:{width:"1.75rem",height:"1.75rem"}},icon:{size:"1rem",color:"{form.field.color}",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.75rem"},lg:{size:"1.25rem"}}},vw={root:{borderRadius:"16px",paddingX:"0.875rem",paddingY:"0.625rem",gap:"0.5rem",transitionDuration:"{transition.duration}"},image:{width:"2rem",height:"2rem"},icon:{size:"1rem"},removeIcon:{size:"1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{root:{background:"{surface.100}",color:"{surface.800}"},icon:{color:"{surface.800}"},removeIcon:{color:"{surface.800}"}},dark:{root:{background:"{surface.800}",color:"{surface.0}"},icon:{color:"{surface.0}"},removeIcon:{color:"{surface.0}"}}}},ww={root:{transitionDuration:"{transition.duration}"},preview:{width:"1.75rem",height:"1.75rem",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},panel:{shadow:"{overlay.popover.shadow}",borderRadius:"{overlay.popover.borderRadius}"},colorScheme:{light:{panel:{background:"{surface.800}",borderColor:"{surface.900}"},handle:{color:"{surface.0}"}},dark:{panel:{background:"{surface.900}",borderColor:"{surface.700}"},handle:{color:"{surface.0}"}}}},Cw={icon:{size:"2rem",color:"{overlay.modal.color}"},content:{gap:"1rem"}},_w={root:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},content:{padding:"{overlay.popover.padding}",gap:"1rem"},icon:{size:"1.5rem",color:"{overlay.popover.color}"},footer:{gap:"0.5rem",padding:"0 {overlay.popover.padding} {overlay.popover.padding} {overlay.popover.padding}"}},Sw={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{mobileIndent:"1.25rem"},submenuLabel:{padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background.}",color:"{navigation.submenu.label.color}"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"}},Bw={root:{transitionDuration:"{transition.duration}"},header:{borderColor:"{datatable.border.color}",borderWidth:"1px 0 1px 0",padding:"0.75rem 1rem"},headerCell:{selectedBackground:"{highlight.background}",borderColor:"{datatable.border.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},columnTitle:{fontWeight:"700"},row:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},bodyCell:{borderColor:"{datatable.border.color}",padding:"0.75rem 1rem"},footerCell:{borderColor:"{datatable.border.color}",padding:"0.75rem 1rem"},columnFooter:{fontWeight:"700"},footer:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},dropPoint:{color:"{primary.color}"},columnResizerWidth:"0.5rem",resizeIndicator:{width:"1px",color:"{primary.color}"},sortIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},loadingIcon:{size:"2rem"},rowToggleButton:{hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},filter:{inlineGap:"0.5rem",overlaySelect:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},overlayPopover:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}",gap:"0.5rem"},rule:{borderColor:"{content.border.color}"},constraintList:{padding:"{list.padding}",gap:"{list.gap}"},constraint:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",separator:{borderColor:"{content.border.color}"},padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"}},paginatorTop:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},colorScheme:{light:{root:{borderColor:"{content.border.color}"},header:{background:"{surface.50}",color:"{text.color}"},headerCell:{background:"{surface.50}",hoverBackground:"{surface.100}",color:"{text.color}"},footer:{background:"{surface.50}",color:"{text.color}"},footerCell:{background:"{surface.50}",color:"{text.color}"},row:{stripedBackground:"{surface.50}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},header:{background:"{surface.800}",color:"{text.color}"},headerCell:{background:"{surface.800}",hoverBackground:"{surface.700}",color:"{text.color}"},footer:{background:"{surface.800}",color:"{text.color}"},footerCell:{background:"{surface.800}",color:"{text.color}"},row:{stripedBackground:"{surface.950}"},bodyCell:{selectedBorderColor:"{primary.900}"}}}},Ew={root:{borderColor:"{content.border.color}",borderWidth:"1px",borderRadius:"4px",padding:"0"},header:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0",padding:"0.875rem 1.125rem",borderRadius:"5px 5px 0 0"},content:{background:"{content.background}",color:"{content.color}",borderColor:"transparent",borderWidth:"0",padding:"0",borderRadius:"5px"},footer:{background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"1px 0 0 0",padding:"0.875rem 1.125rem",borderRadius:"0 0 5px 5px"},paginatorTop:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{content.border.color}",borderWidth:"1px 0 0 0"},colorScheme:{light:{header:{background:"{surface.50}",color:"{text.color}"}},dark:{header:{background:"{surface.800}",color:"{text.color}"}}}},Rw={root:{transitionDuration:"{transition.duration}"},panel:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}"},header:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",padding:"0 0 0.75rem 0"},title:{gap:"0.5rem",fontWeight:"700"},dropdown:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},inputIcon:{color:"{form.field.icon.color}"},selectMonth:{hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.375rem 0.625rem",borderRadius:"{content.border.radius}"},selectYear:{hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.375rem 0.625rem",borderRadius:"{content.border.radius}"},group:{borderColor:"{content.border.color}",gap:"{overlay.popover.padding}"},dayView:{margin:"0.75rem 0 0 0"},weekDay:{padding:"0.375rem",fontWeight:"700",color:"{content.color}"},date:{hoverBackground:"{content.hover.background}",selectedBackground:"{primary.color}",rangeSelectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{primary.contrast.color}",rangeSelectedColor:"{highlight.color}",width:"2.5rem",height:"2.5rem",borderRadius:"50%",padding:"0.375rem",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},monthView:{margin:"0.75rem 0 0 0"},month:{padding:"0.5rem",borderRadius:"{content.border.radius}"},yearView:{margin:"0.75rem 0 0 0"},year:{padding:"0.5rem",borderRadius:"{content.border.radius}"},buttonbar:{padding:"0.75rem 0 0 0",borderColor:"{content.border.color}"},timePicker:{padding:"0.75rem 0 0 0",borderColor:"{content.border.color}",gap:"0.5rem",buttonGap:"0.25rem"},colorScheme:{light:{dropdown:{background:"{surface.50}",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"},today:{background:"{surface.200}",color:"{surface.900}"}},dark:{dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"},today:{background:"{surface.700}",color:"{surface.0}"}}}},Dw={root:{background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",borderRadius:"{overlay.modal.border.radius}",shadow:"{overlay.modal.shadow}"},header:{padding:"{overlay.modal.padding}",gap:"0.5rem"},title:{fontSize:"1.25rem",fontWeight:"600"},content:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},footer:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}",gap:"0.5rem"}},Ow={root:{borderColor:"{content.border.color}"},content:{background:"{content.background}",color:"{text.color}"},horizontal:{margin:"1.125rem 0",padding:"0 1.125rem",content:{padding:"0 0.625rem"}},vertical:{margin:"0 1.125rem",padding:"1.125rem 0",content:{padding:"0.625rem 0"}}},Nw={root:{background:"rgba(255, 255, 255, 0.1)",borderColor:"rgba(255, 255, 255, 0.2)",padding:"0.5rem",borderRadius:"{border.radius.lg}"},item:{borderRadius:"{content.border.radius}",padding:"0.5rem",size:"3rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},Tw={root:{background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",shadow:"{overlay.modal.shadow}"},header:{padding:"{overlay.modal.padding}"},title:{fontSize:"1.5rem",fontWeight:"600"},content:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},footer:{padding:"{overlay.modal.padding}"}},Pw={toolbar:{borderColor:"{content.border.color}",borderRadius:"{content.border.radius}"},toolbarItem:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}",padding:"{list.padding}"},overlayOption:{focusBackground:"{list.option.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},content:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},colorScheme:{light:{toolbar:{background:"{surface.50}"}},dark:{toolbar:{background:"{surface.800}"}}}},$w={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",padding:"0.75rem 1.125rem 1.125rem 1.125rem",transitionDuration:"{transition.duration}"},legend:{borderRadius:"{content.border.radius}",borderWidth:"1px",borderColor:"{content.border.color}",padding:"0.625rem 0.875rem",gap:"0.5rem",fontWeight:"700",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}"},content:{padding:"0"},colorScheme:{light:{legend:{background:"{surface.50}",hoverBackground:"{surface.100}",color:"{text.color}",hoverColor:"{text.hover.color}"}},dark:{legend:{background:"{surface.800}",hoverBackground:"{surface.700}",color:"{text.color}",hoverColor:"{text.hover.color}"}}}},Aw={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},header:{borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",padding:"1.125rem",borderRadius:"5px 5px 0 0",gap:"0.5rem"},content:{highlightBorderColor:"{primary.color}",padding:"1.125rem",gap:"1rem"},file:{padding:"1rem",gap:"1rem",borderColor:"{content.border.color}",info:{gap:"0.5rem"}},fileList:{gap:"0.5rem"},progressbar:{height:"0.25rem"},basic:{gap:"0.5rem"},colorScheme:{light:{header:{background:"{surface.50}",color:"{text.color}"}},dark:{header:{background:"{surface.800}",color:"{text.color}"}}}},Mw={root:{color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",activeColor:"{form.field.float.label.active.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",positionY:"{form.field.padding.y}",fontWeight:"500",active:{fontSize:"0.75rem",fontWeight:"400"}},over:{active:{top:"-1.375rem"}},in:{input:{paddingTop:"1.875rem",paddingBottom:"{form.field.padding.y}"},active:{top:"{form.field.padding.y}"}},on:{borderRadius:"{border.radius.xs}",active:{background:"{form.field.background}",padding:"0 0.125rem"}}},Vw={root:{borderWidth:"1px",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},navButton:{background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.100}",hoverColor:"{surface.0}",size:"3rem",gutter:"0",prev:{borderRadius:"0 12px 12px 0"},next:{borderRadius:"12px 0 0 12px"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},navIcon:{size:"1.5rem"},thumbnailsContent:{padding:"1rem 0.25rem"},thumbnailNavButton:{size:"2rem",borderRadius:"{content.border.radius}",gutter:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},thumbnailNavButtonIcon:{size:"1rem"},caption:{background:"rgba(0, 0, 0, 0.5)",color:"{surface.100}",padding:"1rem"},indicatorList:{gap:"0.5rem",padding:"1rem"},indicatorButton:{width:"1rem",height:"1rem",activeBackground:"{primary.color}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},insetIndicatorList:{background:"rgba(0, 0, 0, 0.5)"},insetIndicatorButton:{background:"rgba(255, 255, 255, 0.4)",hoverBackground:"rgba(255, 255, 255, 0.6)",activeBackground:"rgba(255, 255, 255, 0.9)"},closeButton:{size:"3rem",gutter:"0.5rem",background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.50}",hoverColor:"{surface.0}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},closeButtonIcon:{size:"1.5rem"},colorScheme:{light:{thumbnailsContent:{background:"{surface.50}"},thumbnailNavButton:{hoverBackground:"{surface.100}",color:"{surface.600}",hoverColor:"{surface.700}"},indicatorButton:{background:"{surface.200}",hoverBackground:"{surface.300}"}},dark:{thumbnailsContent:{background:"{surface.800}"},thumbnailNavButton:{hoverBackground:"{surface.700}",color:"{surface.400}",hoverColor:"{surface.0}"},indicatorButton:{background:"{surface.700}",hoverBackground:"{surface.600}"}}}},Fw={icon:{color:"{form.field.icon.color}"}},Iw={root:{color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",top:"{form.field.padding.y}",fontSize:"0.75rem",fontWeight:"400"},input:{paddingTop:"1.875rem",paddingBottom:"{form.field.padding.y}"}},Lw={root:{transitionDuration:"{transition.duration}"},preview:{icon:{size:"1.5rem"},mask:{background:"{mask.background}",color:"{mask.color}"}},toolbar:{position:{left:"auto",right:"1rem",top:"1rem",bottom:"auto"},blur:"8px",background:"rgba(255,255,255,0.1)",borderColor:"rgba(255,255,255,0.2)",borderWidth:"1px",borderRadius:"{content.border.radius}",padding:".5rem",gap:"0.5rem"},action:{hoverBackground:"rgba(255,255,255,0.1)",color:"{surface.50}",hoverColor:"{surface.0}",size:"3rem",iconSize:"1.5rem",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},zw={handle:{size:"15px",hoverSize:"30px",background:"rgba(255,255,255,0.3)",hoverBackground:"rgba(255,255,255,0.3)",borderColor:"rgba(255,255,255,0.3)",hoverBorderColor:"rgba(255,255,255,0.3)",borderWidth:"3px",borderRadius:"50%",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"rgba(255,255,255,0.3)",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},jw={root:{padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",gap:"0.5rem"},text:{fontWeight:"500"},icon:{size:"1.125rem"},colorScheme:{light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"color-mix(in srgb, {blue.50}, transparent 5%)",color:"{blue.600}",shadow:"none"},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"color-mix(in srgb, {green.50}, transparent 5%)",color:"{green.600}",shadow:"none"},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"color-mix(in srgb,{yellow.50}, transparent 5%)",color:"{yellow.600}",shadow:"none"},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"color-mix(in srgb, {red.50}, transparent 5%)",color:"{red.600}",shadow:"none"},secondary:{background:"{surface.100}",borderColor:"{surface.100}",color:"{surface.600}",shadow:"none"},contrast:{background:"{surface.900}",borderColor:"{surface.900}",color:"{surface.50}",shadow:"none"}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.500}, transparent 84%)",color:"{blue.500}",shadow:"none"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.500}, transparent 84%)",color:"{green.500}",shadow:"none"},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.500}, transparent 84%)",color:"{yellow.500}",shadow:"none"},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.500}, transparent 84%)",color:"{red.500}",shadow:"none"},secondary:{background:"{surface.800}",borderColor:"{surface.800}",color:"{surface.300}",shadow:"none"},contrast:{background:"{surface.0}",borderColor:"{surface.0}",color:"{surface.950}",shadow:"none"}}}},Ww={root:{padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{transition.duration}"},display:{hoverBackground:"{content.hover.background}",hoverColor:"{content.hover.color}"}},Hw={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},chip:{borderRadius:"{border.radius.sm}"},colorScheme:{light:{chip:{focusBackground:"{surface.200}",color:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",color:"{surface.0}"}}}},Uw={addon:{borderRadius:"{form.field.border.radius}",padding:"0.625rem 0.5rem",minWidth:"2.75rem"},colorScheme:{light:{addon:{background:"{surface.50}",borderColor:"{form.field.border.color}",color:"{text.muted.color}"}},dark:{addon:{background:"{surface.800}",borderColor:"{form.field.border.color}",color:"{text.muted.color}"}}}},qw={root:{transitionDuration:"{transition.duration}"},button:{width:"2.5rem",borderRadius:"{form.field.border.radius}",verticalPadding:"{form.field.padding.y}"},colorScheme:{light:{button:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"}},dark:{button:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.500}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"}}}},Yw={root:{gap:"0.5rem"},input:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"}}},Xw={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}}},Kw={root:{transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},value:{background:"{primary.color}"},range:{background:"{content.border.color}"},text:{color:"{text.muted.color}"}},Gw={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",borderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",shadow:"{form.field.shadow}",borderRadius:"{form.field.border.radius}",transitionDuration:"{form.field.transition.duration}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},checkmark:{color:"{list.option.color}",gutterStart:"-0.5rem",gutterEnd:"0.5rem"},emptyMessage:{padding:"{list.option.padding}"},colorScheme:{light:{option:{stripedBackground:"{surface.50}"}},dark:{option:{stripedBackground:"{surface.900}"}}}},Jw={root:{borderColor:"transparent",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",verticalOrientation:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},horizontalOrientation:{padding:"0.75rem 1rem",gap:"0.5rem"},transitionDuration:"{transition.duration}"},baseItem:{borderRadius:"{content.border.radius}",padding:"0.75rem 1rem"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},overlay:{padding:"0",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",shadow:"{overlay.navigation.shadow}",gap:"0.5rem"},submenu:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},submenuLabel:{padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background.}",color:"{navigation.submenu.label.color}"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"},mobileButton:{borderRadius:"50%",size:"2rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{root:{background:"{surface.50}"}},dark:{root:{background:"{surface.800}"}}}},Qw={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},submenuLabel:{padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background.}",color:"{navigation.submenu.label.color}"},separator:{borderColor:"{content.border.color}"}},Zw={root:{borderColor:"transparent",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.75rem 1rem",transitionDuration:"{transition.duration}"},baseItem:{borderRadius:"{content.border.radius}",padding:"0.75rem 1rem"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",mobileIndent:"1.25rem",icon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"}},separator:{borderColor:"{content.border.color}"},mobileButton:{borderRadius:"50%",size:"2rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{root:{background:"{surface.50}"}},dark:{root:{background:"{surface.800}"}}}},eC={root:{borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},content:{padding:"0.75rem 1rem",gap:"0.5rem",sm:{padding:"0.5rem 0.625rem"},lg:{padding:"0.75rem 0.875rem"}},text:{fontSize:"1rem",fontWeight:"500",sm:{fontSize:"0.875rem"},lg:{fontSize:"1.125rem"}},icon:{size:"1.25rem",sm:{size:"1rem"},lg:{size:"1.5rem"}},closeButton:{width:"2rem",height:"2rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},closeIcon:{size:"1rem",sm:{fontSize:"0.875rem"},lg:{fontSize:"1.125rem"}},outlined:{root:{borderWidth:"1px"}},simple:{content:{padding:"0"}},colorScheme:{light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"transparent",color:"{blue.600}",shadow:"none",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {blue.200}"}},outlined:{color:"{blue.600}",borderColor:"{blue.600}"},simple:{color:"{blue.600}"}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"transparent",color:"{green.600}",shadow:"none",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {green.200}"}},outlined:{color:"{green.600}",borderColor:"{green.600}"},simple:{color:"{green.600}"}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"transparent",color:"{yellow.600}",shadow:"none",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {yellow.200}"}},outlined:{color:"{yellow.600}",borderColor:"{yellow.600}"},simple:{color:"{yellow.600}"}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"transparent",color:"{red.600}",shadow:"none",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {red.200}"}},outlined:{color:"{red.600}",borderColor:"{red.600}"},simple:{color:"{red.600}"}},secondary:{background:"{surface.100}",borderColor:"transparent",color:"{surface.600}",shadow:"none",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {surface.200}"}},outlined:{color:"{surface.500}",borderColor:"{surface.500}"},simple:{color:"{surface.500}"}},contrast:{background:"{surface.900}",borderColor:"transparent",color:"{surface.50}",shadow:"none",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {surface.400}"}},outlined:{color:"{surface.900}",borderColor:"{surface.900}"},simple:{color:"{surface.900}"}}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"transparent",color:"{blue.500}",shadow:"none",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {blue.500}, transparent 80%)"}},outlined:{color:"{blue.500}",borderColor:"{blue.500}"},simple:{color:"{blue.500}"}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"transparent",color:"{green.500}",shadow:"none",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {green.500}, transparent 80%)"}},outlined:{color:"{green.500}",borderColor:"{green.500}"},simple:{color:"{green.500}"}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"transparent",color:"{yellow.500}",shadow:"none",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {yellow.500}, transparent 80%)"}},outlined:{color:"{yellow.500}",borderColor:"{yellow.500}"},simple:{color:"{yellow.500}"}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"transparent",color:"{red.500}",shadow:"none",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {red.500}, transparent 80%)"}},outlined:{color:"{red.500}",borderColor:"{red.500}"},simple:{color:"{red.500}"}},secondary:{background:"{surface.800}",borderColor:"transparent",color:"{surface.300}",shadow:"none",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.300}, transparent 80%)"}},outlined:{color:"{surface.400}",borderColor:"{surface.400}"},simple:{color:"{surface.400}"}},contrast:{background:"{surface.0}",borderColor:"transparent",color:"{surface.950}",shadow:"none",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.950}, transparent 80%)"}},outlined:{color:"{surface.0}",borderColor:"{surface.0}"},simple:{color:"{surface.0}"}}}}},tC={root:{borderRadius:"{content.border.radius}",gap:"1rem"},meters:{background:"{content.border.color}",size:"0.625rem"},label:{gap:"0.5rem"},labelMarker:{size:"0.5rem"},labelIcon:{size:"1rem"},labelList:{verticalGap:"0.5rem",horizontalGap:"1rem"}},oC={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",gap:"0.5rem"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},clearIcon:{color:"{form.field.icon.color}"},chip:{borderRadius:"{border.radius.sm}"},emptyMessage:{padding:"{list.option.padding}"}},rC={root:{gap:"1.125rem"},controls:{gap:"0.5rem"}},nC={root:{gutter:"0.75rem",transitionDuration:"{transition.duration}"},node:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{content.border.color}",color:"{content.color}",selectedColor:"{highlight.color}",hoverColor:"{content.hover.color}",padding:"1rem 1.25rem",toggleablePadding:"1rem 1.25rem 1.5rem 1.25rem",borderRadius:"{content.border.radius}"},nodeToggleButton:{background:"{content.background}",hoverBackground:"{content.hover.background}",borderColor:"{content.border.color}",color:"{text.muted.color}",hoverColor:"{text.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},connector:{color:"{content.border.color}",borderRadius:"{content.border.radius}",height:"24px"}},iC={root:{outline:{width:"2px",color:"{content.background}"}}},aC={root:{padding:"0.5rem 1rem",gap:"0.25rem",borderRadius:"{content.border.radius}",background:"{content.background}",color:"{content.color}",transitionDuration:"{transition.duration}"},navButton:{background:"transparent",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}",width:"2.5rem",height:"2.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},currentPageReport:{color:"{text.muted.color}"},jumpToPageInput:{maxWidth:"2.5rem"}},sC={root:{borderColor:"{content.border.color}",borderRadius:"{content.border.radius}"},header:{borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",padding:"1.125rem",borderRadius:"5px 5px 0 0"},toggleableHeader:{padding:"0.25rem 1.125rem"},title:{fontWeight:"700"},content:{padding:"1.125rem"},footer:{padding:"1.125rem"},colorScheme:{light:{header:{background:"{surface.50}",color:"{text.color}"}},dark:{header:{background:"{surface.800}",color:"{text.color}"}}}},lC={root:{gap:"0",transitionDuration:"{transition.duration}"},panel:{background:"{content.background}",borderColor:"{content.border.color}",borderWidth:"1px",color:"{content.color}",padding:"0.25rem 0.25rem",borderRadius:"0",first:{borderWidth:"1px 1px 0 1px",topBorderRadius:"{content.border.radius}"},last:{borderWidth:"0 1px 1px 1px",bottomBorderRadius:"{content.border.radius}"}},item:{focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",gap:"0.5rem",padding:"{navigation.item.padding}",borderRadius:"{content.border.radius}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},submenu:{indent:"1rem"},submenuIcon:{color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}"}},cC={meter:{background:"{content.border.color}",borderRadius:"{content.border.radius}",height:".75rem"},icon:{color:"{form.field.icon.color}"},overlay:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",padding:"{overlay.popover.padding}",shadow:"{overlay.popover.shadow}"},content:{gap:"0.75rem"},colorScheme:{light:{strength:{weakBackground:"{red.500}",mediumBackground:"{amber.500}",strongBackground:"{green.500}"}},dark:{strength:{weakBackground:"{red.400}",mediumBackground:"{amber.400}",strongBackground:"{green.400}"}}}},dC={root:{gap:"1.125rem"},controls:{gap:"0.5rem"}},uC={root:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},content:{padding:"{overlay.popover.padding}"}},fC={root:{background:"{content.border.color}",borderRadius:"{content.border.radius}",height:"1.5rem"},value:{background:"{primary.color}"},label:{color:"{primary.contrast.color}",fontSize:"0.875rem",fontWeight:"600"}},hC={colorScheme:{light:{root:{"color.1":"{pink.500}","color.2":"{sky.500}","color.3":"{emerald.500}","color.4":"{amber.500}"}},dark:{root:{"color.1":"{pink.400}","color.2":"{sky.400}","color.3":"{emerald.400}","color.4":"{amber.400}"}}}},gC={root:{width:"1.5rem",height:"1.5rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1.25rem",height:"1.25rem"},lg:{width:"1.75rem",height:"1.75rem"}},icon:{size:"1rem",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.75rem"},lg:{size:"1.25rem"}}},mC={root:{gap:"0.25rem",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},icon:{size:"1.25rem",color:"{text.muted.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},pC={colorScheme:{light:{root:{background:"rgba(0,0,0,0.1)"}},dark:{root:{background:"rgba(255,255,255,0.3)"}}}},bC={root:{transitionDuration:"{transition.duration}"},bar:{size:"9px",borderRadius:"{border.radius.sm}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{bar:{background:"{surface.200}"}},dark:{bar:{background:"{surface.700}"}}}},yC={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},clearIcon:{color:"{form.field.icon.color}"},checkmark:{color:"{list.option.color}",gutterStart:"-0.5rem",gutterEnd:"0.5rem"},emptyMessage:{padding:"{list.option.padding}"}},kC={root:{borderRadius:"{form.field.border.radius}"},colorScheme:{light:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}},dark:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}}}},xC={root:{borderRadius:"{content.border.radius}"},colorScheme:{light:{root:{background:"{surface.200}",animationBackground:"rgba(255,255,255,0.4)"}},dark:{root:{background:"rgba(255, 255, 255, 0.06)",animationBackground:"rgba(255, 255, 255, 0.04)"}}}},vC={root:{transitionDuration:"{transition.duration}"},track:{background:"{content.border.color}",borderRadius:"{content.border.radius}",size:"3px"},range:{background:"{primary.color}"},handle:{width:"16px",height:"16px",borderRadius:"50%",background:"{primary.color}",hoverBackground:"{primary.color}",content:{borderRadius:"50%",hoverBackground:"{primary.color}",width:"12px",height:"12px",shadow:"none"},focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},colorScheme:{light:{handle:{contentBackground:"{surface.0}"}},dark:{handle:{contentBackground:"{surface.950}"}}}},wC={root:{gap:"0.5rem",transitionDuration:"{transition.duration}"}},CC={root:{borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)"}},_C={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",transitionDuration:"{transition.duration}"},gutter:{background:"{content.border.color}"},handle:{size:"24px",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{handle:{background:"{surface.400}"}},dark:{handle:{background:"{surface.600}"}}}},SC={root:{transitionDuration:"{transition.duration}"},separator:{background:"{content.border.color}",activeBackground:"{primary.color}",margin:"0 0 0 1.625rem",size:"2px"},step:{padding:"0.5rem",gap:"1rem"},stepHeader:{padding:"0",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},stepTitle:{color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},stepNumber:{background:"{content.background}",activeBackground:"{primary.color}",borderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",activeColor:"{primary.contrast.color}",size:"2.25rem",fontSize:"1.125rem",fontWeight:"500",borderRadius:"50%",shadow:"none"},steppanels:{padding:"0.875rem 0.5rem 1.125rem 0.5rem"},steppanel:{background:"{content.background}",color:"{content.color}",padding:"0",indent:"1rem"}},BC={root:{transitionDuration:"{transition.duration}"},separator:{background:"{content.border.color}"},itemLink:{borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},itemLabel:{color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},itemNumber:{background:"{content.background}",activeBackground:"{primary.color}",borderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",activeColor:"{primary.contrast.color}",size:"2.25rem",fontSize:"1.125rem",fontWeight:"500",borderRadius:"50%",shadow:"none"}},EC={root:{transitionDuration:"{transition.duration}"},tablist:{borderWidth:"0",background:"{content.background}",borderColor:"{content.border.color}"},item:{borderWidth:"2px 0 0 0",borderColor:"transparent",hoverBorderColor:"transparent",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.25rem",fontWeight:"600",margin:"0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},itemIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},activeBar:{height:"0",bottom:"0",background:"transparent"},colorScheme:{light:{item:{background:"{surface.50}",hoverBackground:"{surface.100}",activeBackground:"{surface.0}"}},dark:{item:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.900}"}}}},RC={root:{transitionDuration:"{transition.duration}"},tablist:{borderWidth:"0",background:"{content.background}",borderColor:"{content.border.color}"},tab:{borderWidth:"2px 0 0 0",borderColor:"transparent",hoverBorderColor:"transparent",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.25rem",fontWeight:"700",margin:"0",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},tabpanel:{background:"{content.background}",color:"{content.color}",padding:"0.875rem 1.125rem 1.125rem 1.125rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},navButton:{background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",width:"2.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},activeBar:{height:"0",bottom:"0",background:"transparent"},colorScheme:{light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"},tab:{background:"{surface.50}",hoverBackground:"{surface.100}",activeBackground:"{surface.0}"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"},tab:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.900}"}}}},DC={root:{transitionDuration:"{transition.duration}"},tabList:{background:"{content.background}",borderColor:"{content.border.color}"},tab:{borderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},tabPanel:{background:"{content.background}",color:"{content.color}"},navButton:{background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}"},colorScheme:{light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}}},OC={root:{fontSize:"0.875rem",fontWeight:"700",padding:"0.25rem 0.5rem",gap:"0.25rem",borderRadius:"{content.border.radius}",roundedBorderRadius:"{border.radius.xl}"},icon:{size:"0.75rem"},colorScheme:{light:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.500}",color:"{surface.0}"},info:{background:"{sky.500}",color:"{surface.0}"},warn:{background:"{orange.500}",color:"{surface.0}"},danger:{background:"{red.500}",color:"{surface.0}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"{green.400}",color:"{green.950}"},info:{background:"{sky.400}",color:"{sky.950}"},warn:{background:"{orange.400}",color:"{orange.950}"},danger:{background:"{red.400}",color:"{red.950}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}}},NC={root:{background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.color}",height:"18rem",padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{form.field.border.radius}"},prompt:{gap:"0.25rem"},commandResponse:{margin:"2px 0"}},TC={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}}},PC={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{mobileIndent:"1.25rem"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"}},$C={event:{minHeight:"5rem"},horizontal:{eventContent:{padding:"1rem 0"}},vertical:{eventContent:{padding:"0 1rem"}},eventMarker:{size:"1.125rem",borderRadius:"50%",borderWidth:"2px",background:"{content.background}",borderColor:"{primary.color}",content:{borderRadius:"50%",size:"0.375rem",background:"transparent",insetShadow:"none"}},eventConnector:{color:"{content.border.color}",size:"2px"}},AC={root:{width:"25rem",borderRadius:"{content.border.radius}",borderWidth:"0 0 0 6px",transitionDuration:"{transition.duration}"},icon:{size:"1.25rem"},content:{padding:"{overlay.popover.padding}",gap:"0.5rem"},text:{gap:"0.5rem"},summary:{fontWeight:"500",fontSize:"1rem"},detail:{fontWeight:"500",fontSize:"0.875rem"},closeButton:{width:"2rem",height:"2rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},closeIcon:{size:"1rem"},colorScheme:{light:{blur:"1.5px",info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.500}",color:"{blue.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {blue.200}"}}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.500}",color:"{green.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {green.200}"}}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.500}",color:"{yellow.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {yellow.200}"}}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.500}",color:"{red.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {red.200}"}}},secondary:{background:"{surface.100}",borderColor:"{surface.500}",color:"{surface.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {surface.200}"}}},contrast:{background:"{surface.900}",borderColor:"{primary.color}",color:"{surface.50}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {surface.400}"}}}},dark:{blur:"10px",info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {blue.500}, transparent 80%)"}}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {green.500}, transparent 80%)"}}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {yellow.500}, transparent 80%)"}}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {red.500}, transparent 80%)"}}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.300}, transparent 80%)"}}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",detailColor:"{surface.950}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.950}, transparent 80%)"}}}}}},MC={root:{padding:"0.625rem 1rem",borderRadius:"{content.border.radius}",gap:"0.5rem",fontWeight:"500",background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.color}",hoverColor:"{form.field.color}",checkedBackground:"{highlight.background}",checkedColor:"{highlight.color}",checkedBorderColor:"{form.field.border.color}",disabledBackground:"{form.field.disabled.background}",disabledBorderColor:"{form.field.disabled.background}",disabledColor:"{form.field.disabled.color}",invalidBorderColor:"{form.field.invalid.border.color}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",padding:"0.5rem 0.75rem"},lg:{fontSize:"{form.field.lg.font.size}",padding:"0.75rem 1.25rem"}},icon:{color:"{text.muted.color}",hoverColor:"{text.muted.color}",checkedColor:"{highlight.color}",disabledColor:"{form.field.disabled.color}"},content:{left:"0.25rem",top:"0.25rem",checkedBackground:"transparent",checkedShadow:"none"},colorScheme:{light:{root:{hoverBackground:"{surface.100}"}},dark:{root:{hoverBackground:"{surface.800}"}}}},VC={root:{width:"3rem",height:"1.75rem",borderRadius:"30px",gap:"0.25rem",shadow:"{form.field.shadow}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},borderWidth:"1px",borderColor:"transparent",hoverBorderColor:"transparent",checkedBorderColor:"transparent",checkedHoverBorderColor:"transparent",invalidBorderColor:"{form.field.invalid.border.color}",transitionDuration:"{form.field.transition.duration}",slideDuration:"0.2s"},handle:{borderRadius:"50%",size:"1.25rem"},colorScheme:{light:{root:{background:"{surface.300}",disabledBackground:"{form.field.disabled.background}",hoverBackground:"{surface.400}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.0}",disabledBackground:"{form.field.disabled.color}",hoverBackground:"{surface.0}",checkedBackground:"{surface.0}",checkedHoverBackground:"{surface.0}",color:"{text.muted.color}",hoverColor:"{text.color}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}},dark:{root:{background:"{surface.700}",disabledBackground:"{surface.600}",hoverBackground:"{surface.600}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.400}",disabledBackground:"{surface.900}",hoverBackground:"{surface.300}",checkedBackground:"{surface.900}",checkedHoverBackground:"{surface.900}",color:"{surface.900}",hoverColor:"{surface.800}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}}}},FC={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.75rem"},colorScheme:{light:{root:{background:"{surface.50}",color:"{content.color}"}},dark:{root:{background:"{surface.800}",color:"{content.color}"}}}},IC={root:{maxWidth:"12.5rem",gutter:"0.25rem",shadow:"{overlay.popover.shadow}",padding:"0.625rem 0.75rem",borderRadius:"{overlay.popover.border.radius}"},colorScheme:{light:{root:{background:"{surface.700}",color:"{surface.0}"}},dark:{root:{background:"{surface.700}",color:"{surface.0}"}}}},LC={root:{background:"{content.background}",color:"{content.color}",padding:"1rem",gap:"2px",indent:"1rem",transitionDuration:"{transition.duration}"},node:{padding:"0.375rem 0.625rem",borderRadius:"{content.border.radius}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.color}",hoverColor:"{text.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"},gap:"0.25rem"},nodeIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}"},nodeToggleButton:{borderRadius:"50%",size:"1.75rem",hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedHoverColor:"{primary.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},loadingIcon:{size:"2rem"},filter:{margin:"0 0 0.5rem 0"}},zC={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},tree:{padding:"{list.padding}"},clearIcon:{color:"{form.field.icon.color}"},emptyMessage:{padding:"{list.option.padding}"},chip:{borderRadius:"{border.radius.sm}"}},jC={root:{transitionDuration:"{transition.duration}"},header:{borderColor:"{treetable.border.color}",borderWidth:"1px 0 1px 0",padding:"0.75rem 1rem"},headerCell:{selectedBackground:"{highlight.background}",borderColor:"{treetable.border.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},columnTitle:{fontWeight:"700"},row:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{sr.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},bodyCell:{borderColor:"{treetable.border.color}",padding:"0.75rem 1rem",gap:"0.5rem"},footerCell:{borderColor:"{treetable.border.color}",padding:"0.75rem 1rem"},columnFooter:{fontWeight:"700"},footer:{borderColor:"{treetable.border.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},columnResizerWidth:"0.5rem",resizeIndicator:{width:"1px",color:"{primary.color}"},sortIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},loadingIcon:{size:"2rem"},nodeToggleButton:{hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},paginatorTop:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},colorScheme:{light:{root:{borderColor:"{content.border.color}"},header:{background:"{surface.50}",color:"{text.color}"},headerCell:{background:"{surface.50}",hoverBackground:"{surface.100}",color:"{text.color}"},footer:{background:"{surface.50}",color:"{text.color}"},footerCell:{background:"{surface.50}",color:"{text.color}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},header:{background:"{surface.800}",color:"{text.color}"},headerCell:{background:"{surface.800}",hoverBackground:"{surface.700}",color:"{text.color}"},footer:{background:"{surface.800}",color:"{text.color}"},footerCell:{background:"{surface.800}",color:"{text.color}"},bodyCell:{selectedBorderColor:"{primary.900}"}}}},WC={loader:{mask:{background:"{content.background}",color:"{text.muted.color}"},icon:{size:"2rem"}}};function _r(t){"@babel/helpers - typeof";return _r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_r(t)}function $c(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,r)}return o}function Ac(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?$c(Object(o),!0).forEach(function(r){HC(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):$c(Object(o)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))})}return t}function HC(t,e,o){return(e=UC(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function UC(t){var e=qC(t,"string");return _r(e)=="symbol"?e:e+""}function qC(t,e){if(_r(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var r=o.call(t,e||"default");if(_r(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var YC=Ac(Ac({},hw),{},{components:{accordion:cw,autocomplete:dw,avatar:uw,badge:fw,blockui:gw,breadcrumb:mw,button:pw,datepicker:Rw,card:bw,carousel:yw,cascadeselect:kw,checkbox:xw,chip:vw,colorpicker:ww,confirmdialog:Cw,confirmpopup:_w,contextmenu:Sw,dataview:Ew,datatable:Bw,dialog:Dw,divider:Ow,dock:Nw,drawer:Tw,editor:Pw,fieldset:$w,fileupload:Aw,iftalabel:Iw,floatlabel:Mw,galleria:Vw,iconfield:Fw,image:Lw,imagecompare:zw,inlinemessage:jw,inplace:Ww,inputchips:Hw,inputgroup:Uw,inputnumber:qw,inputotp:Yw,inputtext:Xw,knob:Kw,listbox:Gw,megamenu:Jw,menu:Qw,menubar:Zw,message:eC,metergroup:tC,multiselect:oC,orderlist:rC,organizationchart:nC,overlaybadge:iC,popover:uC,paginator:aC,password:cC,panel:sC,panelmenu:lC,picklist:dC,progressbar:fC,progressspinner:hC,radiobutton:gC,rating:mC,scrollpanel:bC,select:yC,selectbutton:kC,skeleton:xC,slider:vC,speeddial:wC,splitter:_C,splitbutton:CC,stepper:SC,steps:BC,tabmenu:EC,tabs:RC,tabview:DC,textarea:TC,tieredmenu:PC,tag:OC,terminal:NC,timeline:$C,togglebutton:MC,toggleswitch:VC,tree:LC,treeselect:zC,treetable:jC,toast:AC,toolbar:FC,virtualscroller:WC},directives:{tooltip:IC,ripple:pC}});function XC(){const{layoutState:t,layoutConfig:e,setMenuMode:o,isDarkTheme:r}=Cx(),n={Aura:lw,Lara:YC};a.ref(Object.keys(n));const i=a.ref(e.preset);a.ref(e.darkTheme),a.ref(e.menuMode),a.ref([{name:"Light",value:!1},{name:"Dark",value:!0}]);const s=a.ref([{name:"noir",palette:{}},{name:"emerald",palette:{500:"#10b981"}},{name:"green",palette:{500:"#22c55e"}},{name:"lime",palette:{500:"#84cc16"}},{name:"orange",palette:{500:"#f97316"}},{name:"amber",palette:{500:"#f59e0b"}},{name:"yellow",palette:{500:"#eab308"}},{name:"teal",palette:{500:"#14b8a6"}},{name:"cyan",palette:{500:"#06b6d4"}},{name:"sky",palette:{500:"#0ea5e9"}},{name:"blue",palette:{500:"#3b82f6"}},{name:"indigo",palette:{500:"#6366f1"}},{name:"violet",palette:{500:"#8b5cf6"}},{name:"purple",palette:{500:"#a855f7"}},{name:"fuchsia",palette:{500:"#d946ef"}},{name:"pink",palette:{500:"#ec4899"}},{name:"rose",palette:{500:"#f43f5e"}}]),l=a.ref([{name:"slate",palette:{500:"#64748b"}},{name:"gray",palette:{500:"#6b7280"}},{name:"zinc",palette:{500:"#71717a"}},{name:"neutral",palette:{500:"#737373"}},{name:"stone",palette:{500:"#78716c"}},{name:"soho",palette:{500:"#8e8f93"}},{name:"viva",palette:{500:"#87898a"}},{name:"ocean",palette:{500:"#828787"}}]);function c(){if(!document.startViewTransition){d();return}document.startViewTransition(()=>d())}function d(){e.darkTheme=!e.darkTheme,e.menuTheme=r.value?"dark":"light",document.documentElement.classList.toggle("app-dark")}function u(){const g=s.value.find(m=>m.name===e.primary);if(g.name==="noir"){const m=[50,100,200,300,400,500,600,700,800,900,950],p={};return m.forEach(b=>{p[b]=`{surface.${b}}`}),{semantic:{primary:p,colorScheme:{light:{primary:{color:"{primary.950}",contrastColor:"#ffffff",hoverColor:"{primary.800}",activeColor:"{primary.700}"},highlight:{background:"{primary.950}",focusBackground:"{primary.700}",color:"#ffffff",focusColor:"#ffffff"}},dark:{primary:{color:"{primary.50}",contrastColor:"{primary.950}",hoverColor:"{primary.200}",activeColor:"{primary.300}"},highlight:{background:"{primary.50}",focusBackground:"{primary.300}",color:"{primary.950}",focusColor:"{primary.950}"}}}}}}else return{semantic:{primary:g.palette,colorScheme:{light:{primary:{color:"{primary.500}",contrastColor:"#ffffff",hoverColor:"{primary.600}",activeColor:"{primary.700}"},highlight:{background:"{primary.50}",focusBackground:"{primary.100}",color:"{primary.700}",focusColor:"{primary.800}"}},dark:{primary:{color:"{primary.400}",contrastColor:"{surface.900}",hoverColor:"{primary.300}",activeColor:"{primary.200}"},highlight:{background:"color-mix(in srgb, {primary.400}, transparent 84%)",focusBackground:"color-mix(in srgb, {primary.400}, transparent 76%)",color:"rgba(255,255,255,.87)",focusColor:"rgba(255,255,255,.87)"}}}}}}function f(g,m){let p;if(g==="primary"){if(p=s.value.find(b=>b.name===m),!p)return;e.primary=p.name,Vg({semantic:{primary:p.palette}})}if(g==="surface"){if(p=l.value.find(b=>b.name===m),!p)return;e.surface=p.name,Fg(p.palette)}}function h(){var p;e.preset=i.value;const g=n[i.value],m=(p=l.value.find(b=>b.name===e.surface))==null?void 0:p.palette;rl().preset(g).preset(u()).surfacePalette(m).use({useDefaultOptions:!0})}return{toggleDarkMode:c,updateColors:f,onPresetChange:h}}const KC={install(t,e){t.component("CSEntityGrid",ji),t.component("csentitygrid",ji),t.component("CSEntityList",Sl),t.component("csentitylist",Sl),t.component("CSFieldExpression",Hl),t.component("csfieldexpression",Hl),t.component("CSEntityBarChart",kl),t.component("csentitybarchart",kl),t.component("CSEntityLineChart",xl),t.component("csentitylinechart",xl),t.component("CSEntityPieChart",vl),t.component("csentitypiechart",vl),t.component("CSEntityPolarChart",wl),t.component("csentitypolarchart",wl),t.component("CSEntityRadarChart",Cl),t.component("csentityradarchart",Cl),t.component("CSEntity360View",_l),t.component("csentity360view",_l),t.component("CSEntityListing",Bl),t.component("csentitylisting",Bl),t.component("CSEntityListingTile",El),t.component("csentitylistingtile",El),t.component("CSEntityListingCarousel",jl),t.component("csentitylistingcarousel",jl),t.component("CSEntitySelection",Gi),t.component("csentityselection",Gi),t.component("CSEntityExplorer",Ul),t.component("csentityexplorer",Ul),t.component("CSMenu",Oc),t.component("csmenu",Oc),t.component("CSTextInput",Nc),t.component("cstextinput",Nc)}},Mc=6048e5,GC=864e5,Vc=Symbol.for("constructDateFrom");function to(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Vc in t?t[Vc](e):t instanceof Date?new t.constructor(e):new Date(e)}function yt(t,e){return to(e||t,t)}let JC={};function In(){return JC}function Sr(t,e){var l,c,d,u;const o=In(),r=(e==null?void 0:e.weekStartsOn)??((c=(l=e==null?void 0:e.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??o.weekStartsOn??((u=(d=o.locale)==null?void 0:d.options)==null?void 0:u.weekStartsOn)??0,n=yt(t,e==null?void 0:e.in),i=n.getDay(),s=(i<r?7:0)+i-r;return n.setDate(n.getDate()-s),n.setHours(0,0,0,0),n}function Ln(t,e){return Sr(t,{...e,weekStartsOn:1})}function Fc(t,e){const o=yt(t,e==null?void 0:e.in),r=o.getFullYear(),n=to(o,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const i=Ln(n),s=to(o,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const l=Ln(s);return o.getTime()>=i.getTime()?r+1:o.getTime()>=l.getTime()?r:r-1}function Ic(t){const e=yt(t),o=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return o.setUTCFullYear(e.getFullYear()),+t-+o}function QC(t,...e){const o=to.bind(null,e.find(r=>typeof r=="object"));return e.map(o)}function Lc(t,e){const o=yt(t,e==null?void 0:e.in);return o.setHours(0,0,0,0),o}function ZC(t,e,o){const[r,n]=QC(o==null?void 0:o.in,t,e),i=Lc(r),s=Lc(n),l=+i-Ic(i),c=+s-Ic(s);return Math.round((l-c)/GC)}function e1(t,e){const o=Fc(t,e),r=to(t,0);return r.setFullYear(o,0,4),r.setHours(0,0,0,0),Ln(r)}function t1(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function o1(t){return!(!t1(t)&&typeof t!="number"||isNaN(+yt(t)))}function r1(t,e){const o=yt(t,e==null?void 0:e.in);return o.setFullYear(o.getFullYear(),0,1),o.setHours(0,0,0,0),o}const n1={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},i1=(t,e,o)=>{let r;const n=n1[t];return typeof n=="string"?r=n:e===1?r=n.one:r=n.other.replace("{{count}}",e.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+r:r+" ago":r};function ua(t){return(e={})=>{const o=e.width?String(e.width):t.defaultWidth;return t.formats[o]||t.formats[t.defaultWidth]}}const a1={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},s1={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},l1={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},c1={date:ua({formats:a1,defaultWidth:"full"}),time:ua({formats:s1,defaultWidth:"full"}),dateTime:ua({formats:l1,defaultWidth:"full"})},d1={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},u1=(t,e,o,r)=>d1[t];function Br(t){return(e,o)=>{const r=o!=null&&o.context?String(o.context):"standalone";let n;if(r==="formatting"&&t.formattingValues){const s=t.defaultFormattingWidth||t.defaultWidth,l=o!=null&&o.width?String(o.width):s;n=t.formattingValues[l]||t.formattingValues[s]}else{const s=t.defaultWidth,l=o!=null&&o.width?String(o.width):t.defaultWidth;n=t.values[l]||t.values[s]}const i=t.argumentCallback?t.argumentCallback(e):e;return n[i]}}const f1={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},h1={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},g1={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},m1={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},p1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},b1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},y1={ordinalNumber:(t,e)=>{const o=Number(t),r=o%100;if(r>20||r<10)switch(r%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},era:Br({values:f1,defaultWidth:"wide"}),quarter:Br({values:h1,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Br({values:g1,defaultWidth:"wide"}),day:Br({values:m1,defaultWidth:"wide"}),dayPeriod:Br({values:p1,defaultWidth:"wide",formattingValues:b1,defaultFormattingWidth:"wide"})};function Er(t){return(e,o={})=>{const r=o.width,n=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],i=e.match(n);if(!i)return null;const s=i[0],l=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?x1(l,f=>f.test(s)):k1(l,f=>f.test(s));let d;d=t.valueCallback?t.valueCallback(c):c,d=o.valueCallback?o.valueCallback(d):d;const u=e.slice(s.length);return{value:d,rest:u}}}function k1(t,e){for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&e(t[o]))return o}function x1(t,e){for(let o=0;o<t.length;o++)if(e(t[o]))return o}function v1(t){return(e,o={})=>{const r=e.match(t.matchPattern);if(!r)return null;const n=r[0],i=e.match(t.parsePattern);if(!i)return null;let s=t.valueCallback?t.valueCallback(i[0]):i[0];s=o.valueCallback?o.valueCallback(s):s;const l=e.slice(n.length);return{value:s,rest:l}}}const w1=/^(\d+)(th|st|nd|rd)?/i,C1=/\d+/i,_1={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},S1={any:[/^b/i,/^(a|c)/i]},B1={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},E1={any:[/1/i,/2/i,/3/i,/4/i]},R1={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},D1={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},O1={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},N1={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},T1={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},P1={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},$1={ordinalNumber:v1({matchPattern:w1,parsePattern:C1,valueCallback:t=>parseInt(t,10)}),era:Er({matchPatterns:_1,defaultMatchWidth:"wide",parsePatterns:S1,defaultParseWidth:"any"}),quarter:Er({matchPatterns:B1,defaultMatchWidth:"wide",parsePatterns:E1,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Er({matchPatterns:R1,defaultMatchWidth:"wide",parsePatterns:D1,defaultParseWidth:"any"}),day:Er({matchPatterns:O1,defaultMatchWidth:"wide",parsePatterns:N1,defaultParseWidth:"any"}),dayPeriod:Er({matchPatterns:T1,defaultMatchWidth:"any",parsePatterns:P1,defaultParseWidth:"any"})},A1={code:"en-US",formatDistance:i1,formatLong:c1,formatRelative:u1,localize:y1,match:$1,options:{weekStartsOn:0,firstWeekContainsDate:1}};function M1(t,e){const o=yt(t,e==null?void 0:e.in);return ZC(o,r1(o))+1}function V1(t,e){const o=yt(t,e==null?void 0:e.in),r=+Ln(o)-+e1(o);return Math.round(r/Mc)+1}function zc(t,e){var u,f,h,g;const o=yt(t,e==null?void 0:e.in),r=o.getFullYear(),n=In(),i=(e==null?void 0:e.firstWeekContainsDate)??((f=(u=e==null?void 0:e.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??n.firstWeekContainsDate??((g=(h=n.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,s=to((e==null?void 0:e.in)||t,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);const l=Sr(s,e),c=to((e==null?void 0:e.in)||t,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const d=Sr(c,e);return+o>=+l?r+1:+o>=+d?r:r-1}function F1(t,e){var l,c,d,u;const o=In(),r=(e==null?void 0:e.firstWeekContainsDate)??((c=(l=e==null?void 0:e.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??o.firstWeekContainsDate??((u=(d=o.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??1,n=zc(t,e),i=to((e==null?void 0:e.in)||t,0);return i.setFullYear(n,0,r),i.setHours(0,0,0,0),Sr(i,e)}function I1(t,e){const o=yt(t,e==null?void 0:e.in),r=+Sr(o,e)-+F1(o,e);return Math.round(r/Mc)+1}function be(t,e){const o=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return o+r}const oo={y(t,e){const o=t.getFullYear(),r=o>0?o:1-o;return be(e==="yy"?r%100:r,e.length)},M(t,e){const o=t.getMonth();return e==="M"?String(o+1):be(o+1,2)},d(t,e){return be(t.getDate(),e.length)},a(t,e){const o=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return o.toUpperCase();case"aaa":return o;case"aaaaa":return o[0];case"aaaa":default:return o==="am"?"a.m.":"p.m."}},h(t,e){return be(t.getHours()%12||12,e.length)},H(t,e){return be(t.getHours(),e.length)},m(t,e){return be(t.getMinutes(),e.length)},s(t,e){return be(t.getSeconds(),e.length)},S(t,e){const o=e.length,r=t.getMilliseconds(),n=Math.trunc(r*Math.pow(10,o-3));return be(n,e.length)}},Ho={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},jc={G:function(t,e,o){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return o.era(r,{width:"abbreviated"});case"GGGGG":return o.era(r,{width:"narrow"});case"GGGG":default:return o.era(r,{width:"wide"})}},y:function(t,e,o){if(e==="yo"){const r=t.getFullYear(),n=r>0?r:1-r;return o.ordinalNumber(n,{unit:"year"})}return oo.y(t,e)},Y:function(t,e,o,r){const n=zc(t,r),i=n>0?n:1-n;if(e==="YY"){const s=i%100;return be(s,2)}return e==="Yo"?o.ordinalNumber(i,{unit:"year"}):be(i,e.length)},R:function(t,e){const o=Fc(t);return be(o,e.length)},u:function(t,e){const o=t.getFullYear();return be(o,e.length)},Q:function(t,e,o){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return be(r,2);case"Qo":return o.ordinalNumber(r,{unit:"quarter"});case"QQQ":return o.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return o.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,o){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return be(r,2);case"qo":return o.ordinalNumber(r,{unit:"quarter"});case"qqq":return o.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,o){const r=t.getMonth();switch(e){case"M":case"MM":return oo.M(t,e);case"Mo":return o.ordinalNumber(r+1,{unit:"month"});case"MMM":return o.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,o){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return be(r+1,2);case"Lo":return o.ordinalNumber(r+1,{unit:"month"});case"LLL":return o.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,o,r){const n=I1(t,r);return e==="wo"?o.ordinalNumber(n,{unit:"week"}):be(n,e.length)},I:function(t,e,o){const r=V1(t);return e==="Io"?o.ordinalNumber(r,{unit:"week"}):be(r,e.length)},d:function(t,e,o){return e==="do"?o.ordinalNumber(t.getDate(),{unit:"date"}):oo.d(t,e)},D:function(t,e,o){const r=M1(t);return e==="Do"?o.ordinalNumber(r,{unit:"dayOfYear"}):be(r,e.length)},E:function(t,e,o){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return o.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return o.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(r,{width:"short",context:"formatting"});case"EEEE":default:return o.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,o,r){const n=t.getDay(),i=(n-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return be(i,2);case"eo":return o.ordinalNumber(i,{unit:"day"});case"eee":return o.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return o.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(n,{width:"short",context:"formatting"});case"eeee":default:return o.day(n,{width:"wide",context:"formatting"})}},c:function(t,e,o,r){const n=t.getDay(),i=(n-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return be(i,e.length);case"co":return o.ordinalNumber(i,{unit:"day"});case"ccc":return o.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return o.day(n,{width:"narrow",context:"standalone"});case"cccccc":return o.day(n,{width:"short",context:"standalone"});case"cccc":default:return o.day(n,{width:"wide",context:"standalone"})}},i:function(t,e,o){const r=t.getDay(),n=r===0?7:r;switch(e){case"i":return String(n);case"ii":return be(n,e.length);case"io":return o.ordinalNumber(n,{unit:"day"});case"iii":return o.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(r,{width:"short",context:"formatting"});case"iiii":default:return o.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,o){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,e,o){const r=t.getHours();let n;switch(r===12?n=Ho.noon:r===0?n=Ho.midnight:n=r/12>=1?"pm":"am",e){case"b":case"bb":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,e,o){const r=t.getHours();let n;switch(r>=17?n=Ho.evening:r>=12?n=Ho.afternoon:r>=4?n=Ho.morning:n=Ho.night,e){case"B":case"BB":case"BBB":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(t,e,o){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),o.ordinalNumber(r,{unit:"hour"})}return oo.h(t,e)},H:function(t,e,o){return e==="Ho"?o.ordinalNumber(t.getHours(),{unit:"hour"}):oo.H(t,e)},K:function(t,e,o){const r=t.getHours()%12;return e==="Ko"?o.ordinalNumber(r,{unit:"hour"}):be(r,e.length)},k:function(t,e,o){let r=t.getHours();return r===0&&(r=24),e==="ko"?o.ordinalNumber(r,{unit:"hour"}):be(r,e.length)},m:function(t,e,o){return e==="mo"?o.ordinalNumber(t.getMinutes(),{unit:"minute"}):oo.m(t,e)},s:function(t,e,o){return e==="so"?o.ordinalNumber(t.getSeconds(),{unit:"second"}):oo.s(t,e)},S:function(t,e){return oo.S(t,e)},X:function(t,e,o){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return Hc(r);case"XXXX":case"XX":return Co(r);case"XXXXX":case"XXX":default:return Co(r,":")}},x:function(t,e,o){const r=t.getTimezoneOffset();switch(e){case"x":return Hc(r);case"xxxx":case"xx":return Co(r);case"xxxxx":case"xxx":default:return Co(r,":")}},O:function(t,e,o){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Wc(r,":");case"OOOO":default:return"GMT"+Co(r,":")}},z:function(t,e,o){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Wc(r,":");case"zzzz":default:return"GMT"+Co(r,":")}},t:function(t,e,o){const r=Math.trunc(+t/1e3);return be(r,e.length)},T:function(t,e,o){return be(+t,e.length)}};function Wc(t,e=""){const o=t>0?"-":"+",r=Math.abs(t),n=Math.trunc(r/60),i=r%60;return i===0?o+String(n):o+String(n)+e+be(i,2)}function Hc(t,e){return t%60===0?(t>0?"-":"+")+be(Math.abs(t)/60,2):Co(t,e)}function Co(t,e=""){const o=t>0?"-":"+",r=Math.abs(t),n=be(Math.trunc(r/60),2),i=be(r%60,2);return o+n+e+i}const Uc=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},qc=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},L1={p:qc,P:(t,e)=>{const o=t.match(/(P+)(p+)?/)||[],r=o[1],n=o[2];if(!n)return Uc(t,e);let i;switch(r){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;case"PPPP":default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",Uc(r,e)).replace("{{time}}",qc(n,e))}},z1=/^D+$/,j1=/^Y+$/,W1=["D","DD","YY","YYYY"];function H1(t){return z1.test(t)}function U1(t){return j1.test(t)}function q1(t,e,o){const r=Y1(t,e,o);if(console.warn(r),W1.includes(t))throw new RangeError(r)}function Y1(t,e,o){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${o}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const X1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,K1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,G1=/^'([^]*?)'?$/,J1=/''/g,Q1=/[a-zA-Z]/;function Yc(t,e,o){var u,f,h,g;const r=In(),n=r.locale??A1,i=r.firstWeekContainsDate??((f=(u=r.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??1,s=r.weekStartsOn??((g=(h=r.locale)==null?void 0:h.options)==null?void 0:g.weekStartsOn)??0,l=yt(t,o==null?void 0:o.in);if(!o1(l))throw new RangeError("Invalid time value");let c=e.match(K1).map(m=>{const p=m[0];if(p==="p"||p==="P"){const b=L1[p];return b(m,n.formatLong)}return m}).join("").match(X1).map(m=>{if(m==="''")return{isToken:!1,value:"'"};const p=m[0];if(p==="'")return{isToken:!1,value:Z1(m)};if(jc[p])return{isToken:!0,value:m};if(p.match(Q1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:m}});n.localize.preprocessor&&(c=n.localize.preprocessor(l,c));const d={firstWeekContainsDate:i,weekStartsOn:s,locale:n};return c.map(m=>{if(!m.isToken)return m.value;const p=m.value;(U1(p)||H1(p))&&q1(p,e,String(t));const b=jc[p[0]];return b(l,p,n.localize,d)}).join("")}function Z1(t){const e=t.match(G1);return e?e[1].replace(J1,"'"):t}const e_=Object.freeze(Object.defineProperty({__proto__:null,default:{beforeMount(t,e){const{value:o,arg:r}=e;if(t&&o){const n=Yc(new Date(o),r||"yyyy-MM-dd");t.textContent=n}},updated(t,e){const{value:o,arg:r}=e;if(t&&o){const n=Yc(new Date(o),r||"yyyy-MM-dd");t.textContent=n}}}},Symbol.toStringTag,{value:"Module"})),t_=Object.freeze(Object.defineProperty({__proto__:null,default:{beforeMount(t,e){const{value:o,arg:r}=e;o&&(t.textContent=t.textContent.toUpperCase())},updated(t,e){const{value:o,arg:r}=e;o&&(t.textContent=t.textContent.toUpperCase())}}},Symbol.toStringTag,{value:"Module"}));/*!
|
|
164
|
+
`):" "+_c(i[0]):"as no adapter specified";throw new ae("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:aa};function sa(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Wo(null,t)}function Bc(t){return sa(t),t.headers=Ze.from(t.headers),t.data=na.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Sc.getAdapter(t.adapter||vr.adapter)(t).then(function(r){return sa(t),r.data=na.call(t,t.transformResponse,r),r.headers=Ze.from(r.headers),r},function(r){return hc(r)||(sa(t),r&&r.response&&(r.response.data=na.call(t,t.transformResponse,r.response),r.response.headers=Ze.from(r.response.headers))),Promise.reject(r)})}const Ec="1.7.9",Vn={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Vn[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Rc={};Vn.transitional=function(e,o,r){function n(i,s){return"[Axios v"+Ec+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,l)=>{if(e===!1)throw new ae(n(s," has been removed"+(o?" in "+o:"")),ae.ERR_DEPRECATED);return o&&!Rc[s]&&(Rc[s]=!0,console.warn(n(s," has been deprecated since v"+o+" and will be removed in the near future"))),e?e(i,s,l):!0}},Vn.spelling=function(e){return(o,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Wk(t,e,o){if(typeof t!="object")throw new ae("options must be an object",ae.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let n=r.length;for(;n-- >0;){const i=r[n],s=e[i];if(s){const l=t[i],c=l===void 0||s(l,i,t);if(c!==!0)throw new ae("option "+i+" must be "+c,ae.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new ae("Unknown option "+i,ae.ERR_BAD_OPTION)}}const Fn={assertOptions:Wk,validators:Vn},Bt=Fn.validators;class wo{constructor(e){this.defaults=e,this.interceptors={request:new cc,response:new cc}}async request(e,o){try{return await this._request(e,o)}catch(r){if(r instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const i=n.stack?n.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
165
|
+
`+i):r.stack=i}catch{}}throw r}}_request(e,o){typeof e=="string"?(o=o||{},o.url=e):o=e||{},o=vo(this.defaults,o);const{transitional:r,paramsSerializer:n,headers:i}=o;r!==void 0&&Fn.assertOptions(r,{silentJSONParsing:Bt.transitional(Bt.boolean),forcedJSONParsing:Bt.transitional(Bt.boolean),clarifyTimeoutError:Bt.transitional(Bt.boolean)},!1),n!=null&&(N.isFunction(n)?o.paramsSerializer={serialize:n}:Fn.assertOptions(n,{encode:Bt.function,serialize:Bt.function},!0)),Fn.assertOptions(o,{baseUrl:Bt.spelling("baseURL"),withXsrfToken:Bt.spelling("withXSRFToken")},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s=i&&N.merge(i.common,i[o.method]);i&&N.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),o.headers=Ze.concat(s,i);const l=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(o)===!1||(c=c&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const d=[];this.interceptors.response.forEach(function(p){d.push(p.fulfilled,p.rejected)});let u,f=0,h;if(!c){const m=[Bc.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,d),h=m.length,u=Promise.resolve(o);f<h;)u=u.then(m[f++],m[f++]);return u}h=l.length;let g=o;for(f=0;f<h;){const m=l[f++],p=l[f++];try{g=m(g)}catch(b){p.call(this,b);break}}try{u=Bc.call(this,g)}catch(m){return Promise.reject(m)}for(f=0,h=d.length;f<h;)u=u.then(d[f++],d[f++]);return u}getUri(e){e=vo(this.defaults,e);const o=bc(e.baseURL,e.url);return lc(o,e.params,e.paramsSerializer)}}N.forEach(["delete","get","head","options"],function(e){wo.prototype[e]=function(o,r){return this.request(vo(r||{},{method:e,url:o,data:(r||{}).data}))}}),N.forEach(["post","put","patch"],function(e){function o(r){return function(i,s,l){return this.request(vo(l||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}wo.prototype[e]=o(),wo.prototype[e+"Form"]=o(!0)});class la{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(i){o=i});const r=this;this.promise.then(n=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](n);r._listeners=null}),this.promise.then=n=>{let i;const s=new Promise(l=>{r.subscribe(l),i=l}).then(n);return s.cancel=function(){r.unsubscribe(i)},s},e(function(i,s,l){r.reason||(r.reason=new Wo(i,s,l),o(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const o=this._listeners.indexOf(e);o!==-1&&this._listeners.splice(o,1)}toAbortSignal(){const e=new AbortController,o=r=>{e.abort(r)};return this.subscribe(o),e.signal.unsubscribe=()=>this.unsubscribe(o),e.signal}static source(){let e;return{token:new la(function(n){e=n}),cancel:e}}}function Hk(t){return function(o){return t.apply(null,o)}}function Uk(t){return N.isObject(t)&&t.isAxiosError===!0}const ca={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ca).forEach(([t,e])=>{ca[e]=t});function Dc(t){const e=new wo(t),o=ql(wo.prototype.request,e);return N.extend(o,wo.prototype,e,{allOwnKeys:!0}),N.extend(o,e,null,{allOwnKeys:!0}),o.create=function(n){return Dc(vo(t,n))},o}const Pe=Dc(vr);Pe.Axios=wo,Pe.CanceledError=Wo,Pe.CancelToken=la,Pe.isCancel=hc,Pe.VERSION=Ec,Pe.toFormData=Tn,Pe.AxiosError=ae,Pe.Cancel=Pe.CanceledError,Pe.all=function(e){return Promise.all(e)},Pe.spread=Hk,Pe.isAxiosError=Uk,Pe.mergeConfig=vo,Pe.AxiosHeaders=Ze,Pe.formToJSON=t=>uc(N.isHTMLForm(t)?new FormData(t):t),Pe.getAdapter=Sc.getAdapter,Pe.HttpStatusCode=ca,Pe.default=Pe;const qk=["onMouseenter","onMouseleave"],Yk=["onClick"],Xk=["onClick"],Kk={class:"ml-2"},Gk=["onClick"],Jk=["href"],Qk={class:"ml-2"},Zk=Ne({__name:"SampleMenu",props:{menu:String,layoutType:{type:String,default:"vertical",validator:t=>["horizontal","vertical"].includes(t)},menuName:{type:String,required:!0},variable:String,menuItems:Array},emits:["menuItems"],setup(t,{expose:e,emit:o}){const r=Ke.useRouter(),n=o,i=a.ref([]),s=t;a.onMounted(async()=>{console.log("Menu component mounted",s.menuItems);try{if(s.menuItems)i.value=s.menuItems;else{const d=await Pe.get("https://mocki.io/v1/8955d801-36fb-4499-9d7d-6f7329fc8407");i.value=d.data.response}console.log("menuItems.value",i.value),i.value.forEach(d=>{d.children&&d.children.length>0&&(d.isOpen=!1),n("menuItems",i.value)})}catch(d){console.error("Error fetching menu items:",d)}});const l=d=>{i.value[d]&&i.value[d].children&&i.value[d].children.length>0&&(i.value[d].isOpen=!i.value[d].isOpen)},c=d=>{console.log("urlbdfkjdbfjkdbfkdfbdk"),r.push(i.value[index].url)};return e({props:s,goToUrl:c,toggleDropdown:l}),(d,u)=>(a.openBlock(),a.createElementBlock("div",{class:"card rounded-none p-0",style:a.normalizeStyle(t.layoutType==="horizontal"?"width: 100%;":"width: 10%;")},[a.createElementVNode("ul",{class:a.normalizeClass(["layout-menu",[t.layoutType==="horizontal"?"layout-menu-horizontal p-0 m-0 flex flex-row":"layout-menu-vertical p-0 m-0"]])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,(f,h)=>(a.openBlock(),a.createElementBlock("li",{key:f.id,class:a.normalizeClass(["layout-root-menuitem relative",{"is-open":f.isOpen}]),onMouseenter:g=>l(h),onMouseleave:g=>l(h)},[d.$slots["list-item-menu-parent"]?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:g=>c()},[a.renderSlot(d.$slots,"list-item-menu-parent",a.normalizeProps({[t.variable||""]:f}),void 0,!0)],8,Yk)):(a.openBlock(),a.createElementBlock("a",{key:1,onClick:g=>c(),href:"#",class:"flex items-center p-3 text-primary-color cursor-pointer transition-colors duration-300"},[u[0]||(u[0]=a.createElementVNode("i",{class:"pi pi-home text-xl"},null,-1)),a.createElementVNode("span",Kk,a.toDisplayString(f.displayLabel),1)],8,Xk)),f.isOpen?(a.openBlock(),a.createElementBlock("ul",{key:2,class:a.normalizeClass(["submenu",[t.layoutType==="horizontal"?"submenu-horizontal absolute top-full left-0 bg-white shadow-md z-1000":"submenu-vertical pl-5"]])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.children,(g,m)=>(a.openBlock(),a.createElementBlock("li",{key:g.id},[d.$slots["list-item-menu-child"]?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:p=>l(h)},[a.renderSlot(d.$slots,"list-item-menu-child",a.normalizeProps({[t.variable||""]:g}),void 0,!0)],8,Gk)):(a.openBlock(),a.createElementBlock("a",{key:1,href:g.url,class:"layout-submenu-item flex items-center p-3 text-primary-color cursor-pointer transition-colors duration-300"},[u[1]||(u[1]=a.createElementVNode("i",{class:"pi pi-bars text-xl"},null,-1)),a.createElementVNode("span",Qk,a.toDisplayString(g.displayLabel),1)],8,Jk))]))),128))],2)):a.createCommentVNode("",!0)],42,qk))),128))],2)],4))}},[["__scopeId","data-v-8f1c5b51"]]),ex=["onMouseenter","onMouseleave"],tx=["onClick"],ox=["onClick"],rx={class:"ml-2"},nx=["onClick"],ix=["href"],ax={class:"ml-2"},sx=Ne({__name:"ContraMenu",props:{menu:String,layoutType:{type:String,default:"vertical",validator:t=>["horizontal","vertical"].includes(t)},menuName:{type:String,required:!0},variable:String,menuItems:Array},setup(t){const e=Ke.useRouter(),o=a.ref([]),r=t;a.onMounted(()=>{o.value=r.menuItems,o.value.forEach(s=>{s.children&&s.children.length>0&&(s.isOpen=!1)})});const n=s=>{o.value[s]&&o.value[s].children&&o.value[s].children.length>0&&(o.value[s].isOpen=!o.value[s].isOpen)},i=s=>{e.push(o.value[index].url)};return(s,l)=>(a.openBlock(),a.createElementBlock("div",{class:"card rounded-none p-0",style:a.normalizeStyle(t.layoutType==="horizontal"?"width: 100%;":"width: 10%;")},[a.createElementVNode("ul",{class:a.normalizeClass(["layout-menu",[t.layoutType==="horizontal"?"layout-menu-horizontal p-0 m-0 flex flex-row space-x-6":"layout-menu-vertical p-0 m-0"]])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,(c,d)=>(a.openBlock(),a.createElementBlock("li",{key:c.id,class:a.normalizeClass(["layout-root-menuitem relative group",{"is-open":c.isOpen}]),onMouseenter:u=>n(d),onMouseleave:u=>n(d)},[s.$slots["list-item-menu-parent"]?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:u=>i()},[a.renderSlot(s.$slots,"list-item-menu-parent",a.normalizeProps({[t.variable||""]:c}),void 0,!0)],8,tx)):(a.openBlock(),a.createElementBlock("a",{key:1,onClick:u=>i(),class:"flex items-center p-3 text-white hover:text-green-500 cursor-pointer transition-all duration-300 ease-in-out group-hover:bg-gradient-to-r from-green-400 to-green-600 group-hover:shadow-xl rounded-md"},[l[0]||(l[0]=a.createElementVNode("i",{class:"pi pi-home text-xl"},null,-1)),a.createElementVNode("span",rx,a.toDisplayString(c.displayLabel),1)],8,ox)),c.isOpen?(a.openBlock(),a.createElementBlock("ul",{key:2,class:a.normalizeClass(["submenu transition-all ease-in-out duration-300 opacity-0",[t.layoutType==="horizontal"?"submenu-horizontal absolute top-full left-0 bg-black text-white shadow-lg rounded-md p-2":"submenu-vertical pl-5 mt-2 bg-black text-white shadow-lg rounded-md"]])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.children,(u,f)=>(a.openBlock(),a.createElementBlock("li",{key:u.id},[s.$slots["list-item-menu-child"]?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:h=>n(d)},[a.renderSlot(s.$slots,"list-item-menu-child",a.normalizeProps({[t.variable||""]:u}),void 0,!0)],8,nx)):(a.openBlock(),a.createElementBlock("a",{key:1,href:u.url,class:"layout-submenu-item flex items-center p-3 text-white hover:text-green-500 cursor-pointer transition-all duration-300 ease-in-out"},[l[1]||(l[1]=a.createElementVNode("i",{class:"pi pi-bars text-xl"},null,-1)),a.createElementVNode("span",ax,a.toDisplayString(u.displayLabel),1)],8,ix))]))),128))],2)):a.createCommentVNode("",!0)],42,ex))),128))],2)],4))}},[["__scopeId","data-v-198f3d06"]]),lx=["onMouseenter","onMouseleave"],cx=["onClick"],dx=["onClick"],ux={class:"ml-2"},fx=["onClick"],hx=["href"],gx={class:"ml-2"},mx=Ne({__name:"UltraLightMenu",props:{menu:String,layoutType:{type:String,default:"vertical",validator:t=>["horizontal","vertical"].includes(t)},menuName:{type:String,required:!0},variable:String,menuItems:Array},setup(t){const e=Ke.useRouter(),o=a.ref([]),r=t;a.onMounted(async()=>{console.log("Menu component mounted",r.menuItems);try{if(r.menuItems)o.value=r.menuItems;else{const s=await Pe.get("https://mocki.io/v1/8955d801-36fb-4499-9d7d-6f7329fc8407");o.value=s.data.response}console.log("menuItems.value",o.value),o.value.forEach(s=>{s.children&&s.children.length>0&&(s.isOpen=!1)})}catch(s){console.error("Error fetching menu items:",s)}});const n=s=>{o.value[s]&&o.value[s].children&&o.value[s].children.length>0&&(o.value[s].isOpen=!o.value[s].isOpen)},i=s=>{e.push(o.value[s].url)};return(s,l)=>(a.openBlock(),a.createElementBlock("div",{class:"card rounded-none p-0",style:a.normalizeStyle(t.layoutType==="horizontal"?"width: 100%;":"width: 250px;")},[a.createElementVNode("ul",{class:a.normalizeClass(["layout-menu",[t.layoutType==="horizontal"?"layout-menu-horizontal p-0 m-0 flex flex-row justify-around":"layout-menu-vertical p-0 m-0"]])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,(c,d)=>(a.openBlock(),a.createElementBlock("li",{key:c.id,class:a.normalizeClass(["layout-root-menuitem relative",{"is-open":c.isOpen}]),onMouseenter:u=>n(d),onMouseleave:u=>n(d)},[s.$slots["list-item-menu-parent"]?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:u=>i(d),class:"menu-item"},[a.renderSlot(s.$slots,"list-item-menu-parent",a.normalizeProps({[t.variable||""]:c}),void 0,!0)],8,cx)):(a.openBlock(),a.createElementBlock("a",{key:1,onClick:u=>i(d),href:"#",class:"flex items-center p-4 text-white rounded-lg cursor-pointer transition-all duration-300 transform hover:scale-105 menu-item"},[l[0]||(l[0]=a.createElementVNode("i",{class:"pi pi-home text-xl"},null,-1)),a.createElementVNode("span",ux,a.toDisplayString(c.displayLabel),1)],8,dx)),c.isOpen?(a.openBlock(),a.createElementBlock("ul",{key:2,class:a.normalizeClass(["submenu transition-all ease-in-out duration-300",[t.layoutType==="horizontal"?"submenu-horizontal absolute top-full left-0 bg-blue-600 shadow-xl rounded-lg z-1000":"submenu-vertical pl-5 mt-2 text-white shadow-md rounded-md"]])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.children,(u,f)=>(a.openBlock(),a.createElementBlock("li",{key:u.id},[s.$slots["list-item-menu-child"]?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:h=>n(d),class:"submenu-item"},[a.renderSlot(s.$slots,"list-item-menu-child",a.normalizeProps({[t.variable||""]:u}),void 0,!0)],8,fx)):(a.openBlock(),a.createElementBlock("a",{key:1,href:u.url,class:"layout-submenu-item flex items-center p-3 text-white hover:text-blue-400 cursor-pointer transition-all duration-300 transform hover:scale-105"},[l[1]||(l[1]=a.createElementVNode("i",{class:"pi pi-bars text-xl"},null,-1)),a.createElementVNode("span",gx,a.toDisplayString(u.displayLabel),1)],8,hx))]))),128))],2)):a.createCommentVNode("",!0)],42,lx))),128))],2)],4))}},[["__scopeId","data-v-70c2ee80"]]),px={key:0},bx={key:1},Oc=Ne({__name:"Menu",props:{menuName:{type:String,required:!0},menu:String,layoutType:{type:String,default:"vertical",validator:t=>["horizontal","vertical"].includes(t)},variable:String,refra:String},emits:["menuItems"],setup(t,{expose:e,emit:o}){const r=a.ref(null),n=o,i=f=>{r.value.goToUrl()},s=f=>{n("menuItems",f),console.log("Menu Items 2nd:",f)},l=t,c=a.ref([]),d=a.ref(!1),u={sample:Zk,contra:sx,ultra:mx};return a.onMounted(async()=>{try{const f=await Pe.get("https://mocki.io/v1/8955d801-36fb-4499-9d7d-6f7329fc8407");c.value=f.data.response,d.value=!0,c.value.forEach(h=>{h.children&&h.children.length>0&&(h.isOpen=!1)})}catch(f){console.error("Error fetching menu items:",f)}console.log("props.ref",l.refra)}),e({goToUrl:i}),(f,h)=>f.$slots["list-item-menu-parent"]?(a.openBlock(),a.createElementBlock("div",px,[d.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u[l.menuName]),a.mergeProps({key:0},l,{"menu-items":c.value}),a.createSlots({_:2},[a.renderList(f.$slots,(g,m)=>({name:m,fn:a.withCtx(p=>[a.renderSlot(f.$slots,m,a.normalizeProps(a.guardReactiveProps(p)),void 0,!0)])}))]),1040,["menu-items"])):a.createCommentVNode("",!0)])):(a.openBlock(),a.createElementBlock("div",bx,[d.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u[l.menuName]),a.mergeProps({key:0},l,{"menu-items":c.value,ref_key:"componentsRef",ref:r,onMenuItems:s}),null,16,["menu-items"])):a.createCommentVNode("",!0)]))}},[["__scopeId","data-v-48a32302"]]),yx={class:"absolute left-3 top-[-10px] bg-[var(--bg-label-color)] px-1 text-xs text-gray-600 text"},kx={class:"absolute left-3 top-1/2 transform -translate-y-1/2 text-[var(--span-color)]"},xx=["placeholder"],vx={key:0,style:{color:"var(--secondary-color)"},class:"absolute left-3 top-full mt-1 text-xs"},Nc={__name:"TextInput",props:a.mergeModels({label:{type:String,default:"Label"},placeholder:{type:String,default:"Enter value"},editable:{type:Boolean,default:!0},icon:{type:String,default:""},error:{type:Boolean,default:!1}},{inputValue:{},inputValueModifiers:{}}),emits:a.mergeModels(["update:error"],["update:inputValue"]),setup(t,{emit:e}){const o=e,r=t,n=a.useModel(t,"inputValue");return a.watch(n,i=>{i&&r.error&&o("update:error",!1)}),(i,s)=>(a.openBlock(),a.createElementBlock("div",a.mergeProps({class:"relative"},i.$attrs),[a.createElementVNode("label",yx,a.toDisplayString(t.label),1),a.createElementVNode("span",kx,[a.createElementVNode("i",{class:a.normalizeClass(t.icon),style:{"font-size":"1rem"}},null,2)]),a.withDirectives(a.createElementVNode("input",{class:"w-full h-[40px] pl-10 py-2 border border-[var(--border-color)] rounded-lg placeholder:text-xs focus:border-[var(--primary-fore-color)] focus:ring-0 focus:outline-none text","onUpdate:modelValue":s[0]||(s[0]=l=>n.value=l),placeholder:t.placeholder},null,8,xx),[[a.vModelText,n.value]]),t.error===!0?(a.openBlock(),a.createElementBlock("small",vx,[a.createElementVNode("pre",null,a.toDisplayString(t.label)+" is required",1)])):a.createCommentVNode("",!0)],16))}},Ge=a.reactive({preset:"Aura",primary:"emerald",surface:null,darkTheme:!1,menuMode:"slim-plus",menuTheme:"light"}),Fe=a.reactive({staticMenuDesktopInactive:!1,overlayMenuActive:!1,configSidebarVisible:!1,staticMenuMobileActive:!1,menuHoverActive:!1,rightMenuActive:!1,topbarMenuActive:!1,sidebarActive:!1,anchored:!1,activeMenuItem:null,overlaySubmenuActive:!1});function wx(){const t=g=>{if(Ge.menuMode=g,g==="static"&&(Fe.staticMenuDesktopInactive=!1),g==="horizontal")if(Ge.darkTheme){if(!document.startViewTransition){Ge.menuTheme="dark";return}document.startViewTransition(()=>Ge.menuTheme="dark")}else{if(!document.startViewTransition){Ge.menuTheme="light";return}document.startViewTransition(()=>Ge.menuTheme="light")}},e=g=>{Fe.activeMenuItem=g.value||g},o=()=>{Ge.menuMode==="overlay"&&(Fe.overlayMenuActive=!Fe.overlayMenuActive),window.innerWidth>991?Fe.staticMenuDesktopInactive=!Fe.staticMenuDesktopInactive:Fe.staticMenuMobileActive=!Fe.staticMenuMobileActive},r=()=>{n.value&&(Fe.overlayMenuActive=!1,Fe.overlaySubmenuActive=!1,Fe.staticMenuMobileActive=!1,Fe.menuHoverActive=!1,Fe.configSidebarVisible=!1),Fe.configSidebarVisible=!Fe.configSidebarVisible},n=a.computed(()=>Fe.overlayMenuActive||Fe.staticMenuMobileActive||Fe.overlaySubmenuActive),i=a.computed(()=>window.innerWidth>991),s=a.computed(()=>Ge.menuMode==="slim"),l=a.computed(()=>Ge.menuMode==="slim-plus"),c=a.computed(()=>Ge.menuMode==="horizontal"),d=a.computed(()=>Ge.menuMode==="overlay"),u=a.computed(()=>Ge.darkTheme),f=a.computed(()=>Ge.primary),h=a.computed(()=>Ge.surface);return{layoutConfig:Ge,layoutState:Fe,getPrimary:f,getSurface:h,isDarkTheme:u,setMenuMode:t,toggleMenu:o,isSidebarActive:n,setActiveMenuItem:e,toggleConfigSidebar:r,isSlim:s,isSlimPlus:l,isHorizontal:c,isDesktop:i,isOverlay:d}}var Cx={root:{transitionDuration:"{transition.duration}"},panel:{borderWidth:"0 0 1px 0",borderColor:"{content.border.color}"},header:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",padding:"1.125rem",fontWeight:"600",borderRadius:"0",borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",hoverBackground:"{content.background}",activeBackground:"{content.background}",activeHoverBackground:"{content.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",activeHoverColor:"{text.color}"},first:{topBorderRadius:"{content.border.radius}",borderWidth:"0"},last:{bottomBorderRadius:"{content.border.radius}",activeBottomBorderRadius:"0"}},content:{borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",color:"{text.color}",padding:"0 1.125rem 1.125rem 1.125rem"}},_x={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}"},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},dropdown:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},chip:{borderRadius:"{border.radius.sm}"},emptyMessage:{padding:"{list.option.padding}"},colorScheme:{light:{chip:{focusBackground:"{surface.200}",focusColor:"{surface.800}"},dropdown:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",focusColor:"{surface.0}"},dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"}}}},Sx={root:{width:"2rem",height:"2rem",fontSize:"1rem",background:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},icon:{size:"1rem"},group:{borderColor:"{content.background}",offset:"-0.75rem"},lg:{width:"3rem",height:"3rem",fontSize:"1.5rem",icon:{size:"1.5rem"},group:{offset:"-1rem"}},xl:{width:"4rem",height:"4rem",fontSize:"2rem",icon:{size:"2rem"},group:{offset:"-1.5rem"}}},Bx={root:{borderRadius:"{border.radius.md}",padding:"0 0.5rem",fontSize:"0.75rem",fontWeight:"700",minWidth:"1.5rem",height:"1.5rem"},dot:{size:"0.5rem"},sm:{fontSize:"0.625rem",minWidth:"1.25rem",height:"1.25rem"},lg:{fontSize:"0.875rem",minWidth:"1.75rem",height:"1.75rem"},xl:{fontSize:"1rem",minWidth:"2rem",height:"2rem"},colorScheme:{light:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.500}",color:"{surface.0}"},info:{background:"{sky.500}",color:"{surface.0}"},warn:{background:"{orange.500}",color:"{surface.0}"},danger:{background:"{red.500}",color:"{surface.0}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"{green.400}",color:"{green.950}"},info:{background:"{sky.400}",color:"{sky.950}"},warn:{background:"{orange.400}",color:"{orange.950}"},danger:{background:"{red.400}",color:"{red.950}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}}},Ex={primitive:{borderRadius:{none:"0",xs:"2px",sm:"4px",md:"6px",lg:"8px",xl:"12px"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"}},semantic:{transitionDuration:"0.2s",focusRing:{width:"1px",style:"solid",color:"{primary.color}",offset:"2px",shadow:"none"},disabledOpacity:"0.6",iconSize:"1rem",anchorGutter:"2px",primary:{50:"{emerald.50}",100:"{emerald.100}",200:"{emerald.200}",300:"{emerald.300}",400:"{emerald.400}",500:"{emerald.500}",600:"{emerald.600}",700:"{emerald.700}",800:"{emerald.800}",900:"{emerald.900}",950:"{emerald.950}"},formField:{paddingX:"0.75rem",paddingY:"0.5rem",sm:{fontSize:"0.875rem",paddingX:"0.625rem",paddingY:"0.375rem"},lg:{fontSize:"1.125rem",paddingX:"0.875rem",paddingY:"0.625rem"},borderRadius:"{border.radius.md}",focusRing:{width:"0",style:"none",color:"transparent",offset:"0",shadow:"none"},transitionDuration:"{transition.duration}"},list:{padding:"0.25rem 0.25rem",gap:"2px",header:{padding:"0.5rem 1rem 0.25rem 1rem"},option:{padding:"0.5rem 0.75rem",borderRadius:"{border.radius.sm}"},optionGroup:{padding:"0.5rem 0.75rem",fontWeight:"600"}},content:{borderRadius:"{border.radius.md}"},mask:{transitionDuration:"0.15s"},navigation:{list:{padding:"0.25rem 0.25rem",gap:"2px"},item:{padding:"0.5rem 0.75rem",borderRadius:"{border.radius.sm}",gap:"0.5rem"},submenuLabel:{padding:"0.5rem 0.75rem",fontWeight:"600"},submenuIcon:{size:"0.875rem"}},overlay:{select:{borderRadius:"{border.radius.md}",shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"},popover:{borderRadius:"{border.radius.md}",padding:"0.75rem",shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"},modal:{borderRadius:"{border.radius.xl}",padding:"1.25rem",shadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)"},navigation:{shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"}},colorScheme:{light:{surface:{0:"#ffffff",50:"{slate.50}",100:"{slate.100}",200:"{slate.200}",300:"{slate.300}",400:"{slate.400}",500:"{slate.500}",600:"{slate.600}",700:"{slate.700}",800:"{slate.800}",900:"{slate.900}",950:"{slate.950}"},primary:{color:"{primary.500}",contrastColor:"#ffffff",hoverColor:"{primary.600}",activeColor:"{primary.700}"},highlight:{background:"{primary.50}",focusBackground:"{primary.100}",color:"{primary.700}",focusColor:"{primary.800}"},mask:{background:"rgba(0,0,0,0.4)",color:"{surface.200}"},formField:{background:"{surface.0}",disabledBackground:"{surface.200}",filledBackground:"{surface.50}",filledHoverBackground:"{surface.50}",filledFocusBackground:"{surface.50}",borderColor:"{surface.300}",hoverBorderColor:"{surface.400}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.400}",color:"{surface.700}",disabledColor:"{surface.500}",placeholderColor:"{surface.500}",invalidPlaceholderColor:"{red.600}",floatLabelColor:"{surface.500}",floatLabelFocusColor:"{primary.600}",floatLabelActiveColor:"{surface.500}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)"},text:{color:"{surface.700}",hoverColor:"{surface.800}",mutedColor:"{surface.500}",hoverMutedColor:"{surface.600}"},content:{background:"{surface.0}",hoverBackground:"{surface.100}",borderColor:"{surface.200}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},popover:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},modal:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.100}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}"}},optionGroup:{background:"transparent",color:"{text.muted.color}"}},navigation:{item:{focusBackground:"{surface.100}",activeBackground:"{surface.100}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}},submenuLabel:{background:"transparent",color:"{text.muted.color}"},submenuIcon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}}},dark:{surface:{0:"#ffffff",50:"{zinc.50}",100:"{zinc.100}",200:"{zinc.200}",300:"{zinc.300}",400:"{zinc.400}",500:"{zinc.500}",600:"{zinc.600}",700:"{zinc.700}",800:"{zinc.800}",900:"{zinc.900}",950:"{zinc.950}"},primary:{color:"{primary.400}",contrastColor:"{surface.900}",hoverColor:"{primary.300}",activeColor:"{primary.200}"},highlight:{background:"color-mix(in srgb, {primary.400}, transparent 84%)",focusBackground:"color-mix(in srgb, {primary.400}, transparent 76%)",color:"rgba(255,255,255,.87)",focusColor:"rgba(255,255,255,.87)"},mask:{background:"rgba(0,0,0,0.6)",color:"{surface.200}"},formField:{background:"{surface.950}",disabledBackground:"{surface.700}",filledBackground:"{surface.800}",filledHoverBackground:"{surface.800}",filledFocusBackground:"{surface.800}",borderColor:"{surface.600}",hoverBorderColor:"{surface.500}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.300}",color:"{surface.0}",disabledColor:"{surface.400}",placeholderColor:"{surface.400}",invalidPlaceholderColor:"{red.400}",floatLabelColor:"{surface.400}",floatLabelFocusColor:"{primary.color}",floatLabelActiveColor:"{surface.400}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)"},text:{color:"{surface.0}",hoverColor:"{surface.0}",mutedColor:"{surface.400}",hoverMutedColor:"{surface.300}"},content:{background:"{surface.900}",hoverBackground:"{surface.800}",borderColor:"{surface.700}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},popover:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},modal:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.800}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}"}},optionGroup:{background:"transparent",color:"{text.muted.color}"}},navigation:{item:{focusBackground:"{surface.800}",activeBackground:"{surface.800}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}},submenuLabel:{background:"transparent",color:"{text.muted.color}"},submenuIcon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}}}}}},Rx={root:{borderRadius:"{content.border.radius}"}},Dx={root:{padding:"1rem",background:"{content.background}",gap:"0.5rem",transitionDuration:"{transition.duration}"},item:{color:"{text.muted.color}",hoverColor:"{text.color}",borderRadius:"{content.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",hoverColor:"{navigation.item.icon.focus.color}"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},separator:{color:"{navigation.item.icon.color}"}},Ox={root:{borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",gap:"0.5rem",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",iconOnlyWidth:"2.5rem",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"},label:{fontWeight:"500"},raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"},badgeSize:"1rem",transitionDuration:"{form.field.transition.duration}"},colorScheme:{light:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"{primary.color}",shadow:"none"}},secondary:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",borderColor:"{surface.100}",hoverBorderColor:"{surface.200}",activeBorderColor:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}",focusRing:{color:"{surface.600}",shadow:"none"}},info:{background:"{sky.500}",hoverBackground:"{sky.600}",activeBackground:"{sky.700}",borderColor:"{sky.500}",hoverBorderColor:"{sky.600}",activeBorderColor:"{sky.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{sky.500}",shadow:"none"}},success:{background:"{green.500}",hoverBackground:"{green.600}",activeBackground:"{green.700}",borderColor:"{green.500}",hoverBorderColor:"{green.600}",activeBorderColor:"{green.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{green.500}",shadow:"none"}},warn:{background:"{orange.500}",hoverBackground:"{orange.600}",activeBackground:"{orange.700}",borderColor:"{orange.500}",hoverBorderColor:"{orange.600}",activeBorderColor:"{orange.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{orange.500}",shadow:"none"}},help:{background:"{purple.500}",hoverBackground:"{purple.600}",activeBackground:"{purple.700}",borderColor:"{purple.500}",hoverBorderColor:"{purple.600}",activeBorderColor:"{purple.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{purple.500}",shadow:"none"}},danger:{background:"{red.500}",hoverBackground:"{red.600}",activeBackground:"{red.700}",borderColor:"{red.500}",hoverBorderColor:"{red.600}",activeBorderColor:"{red.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{red.500}",shadow:"none"}},contrast:{background:"{surface.950}",hoverBackground:"{surface.900}",activeBackground:"{surface.800}",borderColor:"{surface.950}",hoverBorderColor:"{surface.900}",activeBorderColor:"{surface.800}",color:"{surface.0}",hoverColor:"{surface.0}",activeColor:"{surface.0}",focusRing:{color:"{surface.950}",shadow:"none"}}},outlined:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",borderColor:"{primary.200}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",borderColor:"{green.200}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",borderColor:"{sky.200}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",borderColor:"{orange.200}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",borderColor:"{purple.200}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",borderColor:"{red.200}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.700}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.700}"}},text:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.700}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},dark:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"{primary.color}",shadow:"none"}},secondary:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",borderColor:"{surface.800}",hoverBorderColor:"{surface.700}",activeBorderColor:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}",focusRing:{color:"{surface.300}",shadow:"none"}},info:{background:"{sky.400}",hoverBackground:"{sky.300}",activeBackground:"{sky.200}",borderColor:"{sky.400}",hoverBorderColor:"{sky.300}",activeBorderColor:"{sky.200}",color:"{sky.950}",hoverColor:"{sky.950}",activeColor:"{sky.950}",focusRing:{color:"{sky.400}",shadow:"none"}},success:{background:"{green.400}",hoverBackground:"{green.300}",activeBackground:"{green.200}",borderColor:"{green.400}",hoverBorderColor:"{green.300}",activeBorderColor:"{green.200}",color:"{green.950}",hoverColor:"{green.950}",activeColor:"{green.950}",focusRing:{color:"{green.400}",shadow:"none"}},warn:{background:"{orange.400}",hoverBackground:"{orange.300}",activeBackground:"{orange.200}",borderColor:"{orange.400}",hoverBorderColor:"{orange.300}",activeBorderColor:"{orange.200}",color:"{orange.950}",hoverColor:"{orange.950}",activeColor:"{orange.950}",focusRing:{color:"{orange.400}",shadow:"none"}},help:{background:"{purple.400}",hoverBackground:"{purple.300}",activeBackground:"{purple.200}",borderColor:"{purple.400}",hoverBorderColor:"{purple.300}",activeBorderColor:"{purple.200}",color:"{purple.950}",hoverColor:"{purple.950}",activeColor:"{purple.950}",focusRing:{color:"{purple.400}",shadow:"none"}},danger:{background:"{red.400}",hoverBackground:"{red.300}",activeBackground:"{red.200}",borderColor:"{red.400}",hoverBorderColor:"{red.300}",activeBorderColor:"{red.200}",color:"{red.950}",hoverColor:"{red.950}",activeColor:"{red.950}",focusRing:{color:"{red.400}",shadow:"none"}},contrast:{background:"{surface.0}",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{surface.0}",hoverBorderColor:"{surface.100}",activeBorderColor:"{surface.200}",color:"{surface.950}",hoverColor:"{surface.950}",activeColor:"{surface.950}",focusRing:{color:"{surface.0}",shadow:"none"}}},outlined:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",borderColor:"{primary.700}",color:"{primary.color}"},secondary:{hoverBackground:"rgba(255,255,255,0.04)",activeBackground:"rgba(255,255,255,0.16)",borderColor:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",borderColor:"{green.700}",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",borderColor:"{sky.700}",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",borderColor:"{orange.700}",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",borderColor:"{purple.700}",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",borderColor:"{red.700}",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.500}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.600}",color:"{surface.0}"}},text:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",color:"{primary.color}"},secondary:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}}}},Nx={root:{background:"{content.background}",borderRadius:"{border.radius.xl}",color:"{content.color}",shadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},body:{padding:"1.25rem",gap:"0.5rem"},caption:{gap:"0.5rem"},title:{fontSize:"1.25rem",fontWeight:"500"},subtitle:{color:"{text.muted.color}"}},Tx={root:{transitionDuration:"{transition.duration}"},content:{gap:"0.25rem"},indicatorList:{padding:"1rem",gap:"0.5rem"},indicator:{width:"2rem",height:"0.5rem",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{indicator:{background:"{surface.200}",hoverBackground:"{surface.300}",activeBackground:"{primary.color}"}},dark:{indicator:{background:"{surface.700}",hoverBackground:"{surface.600}",activeBackground:"{primary.color}"}}}},Px={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",mobileIndent:"1rem"},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",icon:{color:"{list.option.icon.color}",focusColor:"{list.option.icon.focus.color}",size:"0.875rem"}},clearIcon:{color:"{form.field.icon.color}"}},$x={root:{borderRadius:"{border.radius.sm}",width:"1.25rem",height:"1.25rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},icon:{size:"0.875rem",color:"{form.field.color}",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.75rem"},lg:{size:"1rem"}}},Ax={root:{borderRadius:"16px",paddingX:"0.75rem",paddingY:"0.5rem",gap:"0.5rem",transitionDuration:"{transition.duration}"},image:{width:"2rem",height:"2rem"},icon:{size:"1rem"},removeIcon:{size:"1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},colorScheme:{light:{root:{background:"{surface.100}",color:"{surface.800}"},icon:{color:"{surface.800}"},removeIcon:{color:"{surface.800}"}},dark:{root:{background:"{surface.800}",color:"{surface.0}"},icon:{color:"{surface.0}"},removeIcon:{color:"{surface.0}"}}}},Mx={root:{transitionDuration:"{transition.duration}"},preview:{width:"1.5rem",height:"1.5rem",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},panel:{shadow:"{overlay.popover.shadow}",borderRadius:"{overlay.popover.borderRadius}"},colorScheme:{light:{panel:{background:"{surface.800}",borderColor:"{surface.900}"},handle:{color:"{surface.0}"}},dark:{panel:{background:"{surface.900}",borderColor:"{surface.700}"},handle:{color:"{surface.0}"}}}},Vx={icon:{size:"2rem",color:"{overlay.modal.color}"},content:{gap:"1rem"}},Fx={root:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},content:{padding:"{overlay.popover.padding}",gap:"1rem"},icon:{size:"1.5rem",color:"{overlay.popover.color}"},footer:{gap:"0.5rem",padding:"0 {overlay.popover.padding} {overlay.popover.padding} {overlay.popover.padding}"}},Ix={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{mobileIndent:"1rem"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"}},Lx={root:{transitionDuration:"{transition.duration}"},header:{background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},headerCell:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{datatable.border.color}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},columnTitle:{fontWeight:"600"},row:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},bodyCell:{borderColor:"{datatable.border.color}",padding:"0.75rem 1rem"},footerCell:{background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",padding:"0.75rem 1rem"},columnFooter:{fontWeight:"600"},footer:{background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},dropPoint:{color:"{primary.color}"},columnResizerWidth:"0.5rem",resizeIndicator:{width:"1px",color:"{primary.color}"},sortIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},loadingIcon:{size:"2rem"},rowToggleButton:{hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},filter:{inlineGap:"0.5rem",overlaySelect:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},overlayPopover:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}",gap:"0.5rem"},rule:{borderColor:"{content.border.color}"},constraintList:{padding:"{list.padding}",gap:"{list.gap}"},constraint:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",separator:{borderColor:"{content.border.color}"},padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"}},paginatorTop:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},colorScheme:{light:{root:{borderColor:"{content.border.color}"},row:{stripedBackground:"{surface.50}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},row:{stripedBackground:"{surface.950}"},bodyCell:{selectedBorderColor:"{primary.900}"}}}},zx={root:{borderColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0"},header:{background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",borderRadius:"0"},content:{background:"{content.background}",color:"{content.color}",borderColor:"transparent",borderWidth:"0",padding:"0",borderRadius:"0"},footer:{background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"1px 0 0 0",padding:"0.75rem 1rem",borderRadius:"0"},paginatorTop:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{content.border.color}",borderWidth:"1px 0 0 0"}},jx={root:{transitionDuration:"{transition.duration}"},panel:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}"},header:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",padding:"0 0 0.5rem 0"},title:{gap:"0.5rem",fontWeight:"500"},dropdown:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},inputIcon:{color:"{form.field.icon.color}"},selectMonth:{hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}"},selectYear:{hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}"},group:{borderColor:"{content.border.color}",gap:"{overlay.popover.padding}"},dayView:{margin:"0.5rem 0 0 0"},weekDay:{padding:"0.25rem",fontWeight:"500",color:"{content.color}"},date:{hoverBackground:"{content.hover.background}",selectedBackground:"{primary.color}",rangeSelectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{primary.contrast.color}",rangeSelectedColor:"{highlight.color}",width:"2rem",height:"2rem",borderRadius:"50%",padding:"0.25rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},monthView:{margin:"0.5rem 0 0 0"},month:{padding:"0.375rem",borderRadius:"{content.border.radius}"},yearView:{margin:"0.5rem 0 0 0"},year:{padding:"0.375rem",borderRadius:"{content.border.radius}"},buttonbar:{padding:"0.5rem 0 0 0",borderColor:"{content.border.color}"},timePicker:{padding:"0.5rem 0 0 0",borderColor:"{content.border.color}",gap:"0.5rem",buttonGap:"0.25rem"},colorScheme:{light:{dropdown:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"},today:{background:"{surface.200}",color:"{surface.900}"}},dark:{dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"},today:{background:"{surface.700}",color:"{surface.0}"}}}},Wx={root:{background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",borderRadius:"{overlay.modal.border.radius}",shadow:"{overlay.modal.shadow}"},header:{padding:"{overlay.modal.padding}",gap:"0.5rem"},title:{fontSize:"1.25rem",fontWeight:"600"},content:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},footer:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}",gap:"0.5rem"}},Hx={root:{borderColor:"{content.border.color}"},content:{background:"{content.background}",color:"{text.color}"},horizontal:{margin:"1rem 0",padding:"0 1rem",content:{padding:"0 0.5rem"}},vertical:{margin:"0 1rem",padding:"0.5rem 0",content:{padding:"0.5rem 0"}}},Ux={root:{background:"rgba(255, 255, 255, 0.1)",borderColor:"rgba(255, 255, 255, 0.2)",padding:"0.5rem",borderRadius:"{border.radius.xl}"},item:{borderRadius:"{content.border.radius}",padding:"0.5rem",size:"3rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},qx={root:{background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",shadow:"{overlay.modal.shadow}"},header:{padding:"{overlay.modal.padding}"},title:{fontSize:"1.5rem",fontWeight:"600"},content:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},footer:{padding:"{overlay.modal.padding}"}},Yx={toolbar:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}"},toolbarItem:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}",padding:"{list.padding}"},overlayOption:{focusBackground:"{list.option.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},content:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"}},Xx={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",padding:"0 1.125rem 1.125rem 1.125rem",transitionDuration:"{transition.duration}"},legend:{background:"{content.background}",hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",borderRadius:"{content.border.radius}",borderWidth:"1px",borderColor:"transparent",padding:"0.5rem 0.75rem",gap:"0.5rem",fontWeight:"600",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}"},content:{padding:"0"}},Kx={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},header:{background:"transparent",color:"{text.color}",padding:"1.125rem",borderColor:"unset",borderWidth:"0",borderRadius:"0",gap:"0.5rem"},content:{highlightBorderColor:"{primary.color}",padding:"0 1.125rem 1.125rem 1.125rem",gap:"1rem"},file:{padding:"1rem",gap:"1rem",borderColor:"{content.border.color}",info:{gap:"0.5rem"}},fileList:{gap:"0.5rem"},progressbar:{height:"0.25rem"},basic:{gap:"0.5rem"}},Gx={root:{color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",activeColor:"{form.field.float.label.active.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",positionY:"{form.field.padding.y}",fontWeight:"500",active:{fontSize:"0.75rem",fontWeight:"400"}},over:{active:{top:"-1.25rem"}},in:{input:{paddingTop:"1.5rem",paddingBottom:"{form.field.padding.y}"},active:{top:"{form.field.padding.y}"}},on:{borderRadius:"{border.radius.xs}",active:{background:"{form.field.background}",padding:"0 0.125rem"}}},Jx={root:{borderWidth:"1px",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},navButton:{background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.100}",hoverColor:"{surface.0}",size:"3rem",gutter:"0.5rem",prev:{borderRadius:"50%"},next:{borderRadius:"50%"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},navIcon:{size:"1.5rem"},thumbnailsContent:{background:"{content.background}",padding:"1rem 0.25rem"},thumbnailNavButton:{size:"2rem",borderRadius:"{content.border.radius}",gutter:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},thumbnailNavButtonIcon:{size:"1rem"},caption:{background:"rgba(0, 0, 0, 0.5)",color:"{surface.100}",padding:"1rem"},indicatorList:{gap:"0.5rem",padding:"1rem"},indicatorButton:{width:"1rem",height:"1rem",activeBackground:"{primary.color}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},insetIndicatorList:{background:"rgba(0, 0, 0, 0.5)"},insetIndicatorButton:{background:"rgba(255, 255, 255, 0.4)",hoverBackground:"rgba(255, 255, 255, 0.6)",activeBackground:"rgba(255, 255, 255, 0.9)"},closeButton:{size:"3rem",gutter:"0.5rem",background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.50}",hoverColor:"{surface.0}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},closeButtonIcon:{size:"1.5rem"},colorScheme:{light:{thumbnailNavButton:{hoverBackground:"{surface.100}",color:"{surface.600}",hoverColor:"{surface.700}"},indicatorButton:{background:"{surface.200}",hoverBackground:"{surface.300}"}},dark:{thumbnailNavButton:{hoverBackground:"{surface.700}",color:"{surface.400}",hoverColor:"{surface.0}"},indicatorButton:{background:"{surface.700}",hoverBackground:"{surface.600}"}}}},Qx={icon:{color:"{form.field.icon.color}"}},Zx={root:{color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",top:"{form.field.padding.y}",fontSize:"0.75rem",fontWeight:"400"},input:{paddingTop:"1.5rem",paddingBottom:"{form.field.padding.y}"}},ev={root:{transitionDuration:"{transition.duration}"},preview:{icon:{size:"1.5rem"},mask:{background:"{mask.background}",color:"{mask.color}"}},toolbar:{position:{left:"auto",right:"1rem",top:"1rem",bottom:"auto"},blur:"8px",background:"rgba(255,255,255,0.1)",borderColor:"rgba(255,255,255,0.2)",borderWidth:"1px",borderRadius:"30px",padding:".5rem",gap:"0.5rem"},action:{hoverBackground:"rgba(255,255,255,0.1)",color:"{surface.50}",hoverColor:"{surface.0}",size:"3rem",iconSize:"1.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},tv={handle:{size:"15px",hoverSize:"30px",background:"rgba(255,255,255,0.3)",hoverBackground:"rgba(255,255,255,0.3)",borderColor:"unset",hoverBorderColor:"unset",borderWidth:"0",borderRadius:"50%",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"rgba(255,255,255,0.3)",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},ov={root:{padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",gap:"0.5rem"},text:{fontWeight:"500"},icon:{size:"1rem"},colorScheme:{light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)"},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)"},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)"},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)"},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)"},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)"}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)"},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)"},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)"},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)"},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)"}}}},rv={root:{padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{transition.duration}"},display:{hoverBackground:"{content.hover.background}",hoverColor:"{content.hover.color}"}},nv={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},chip:{borderRadius:"{border.radius.sm}"},colorScheme:{light:{chip:{focusBackground:"{surface.200}",color:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",color:"{surface.0}"}}}},iv={addon:{background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.icon.color}",borderRadius:"{form.field.border.radius}",padding:"0.5rem",minWidth:"2.5rem"}},av={root:{transitionDuration:"{transition.duration}"},button:{width:"2.5rem",borderRadius:"{form.field.border.radius}",verticalPadding:"{form.field.padding.y}"},colorScheme:{light:{button:{background:"transparent",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.400}",hoverColor:"{surface.500}",activeColor:"{surface.600}"}},dark:{button:{background:"transparent",hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.400}",hoverColor:"{surface.300}",activeColor:"{surface.200}"}}}},sv={root:{gap:"0.5rem"},input:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"}}},lv={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}}},cv={root:{transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},value:{background:"{primary.color}"},range:{background:"{content.border.color}"},text:{color:"{text.muted.color}"}},dv={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",borderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",shadow:"{form.field.shadow}",borderRadius:"{form.field.border.radius}",transitionDuration:"{form.field.transition.duration}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},checkmark:{color:"{list.option.color}",gutterStart:"-0.375rem",gutterEnd:"0.375rem"},emptyMessage:{padding:"{list.option.padding}"},colorScheme:{light:{option:{stripedBackground:"{surface.50}"}},dark:{option:{stripedBackground:"{surface.900}"}}}},uv={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",verticalOrientation:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},horizontalOrientation:{padding:"0.5rem 0.75rem",gap:"0.5rem"},transitionDuration:"{transition.duration}"},baseItem:{borderRadius:"{content.border.radius}",padding:"{navigation.item.padding}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},overlay:{padding:"0",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",shadow:"{overlay.navigation.shadow}",gap:"0.5rem"},submenu:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},submenuLabel:{padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background.}",color:"{navigation.submenu.label.color}"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"},mobileButton:{borderRadius:"50%",size:"1.75rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},fv={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},submenuLabel:{padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background}",color:"{navigation.submenu.label.color}"},separator:{borderColor:"{content.border.color}"}},hv={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.5rem 0.75rem",transitionDuration:"{transition.duration}"},baseItem:{borderRadius:"{content.border.radius}",padding:"{navigation.item.padding}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",mobileIndent:"1rem",icon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"}},separator:{borderColor:"{content.border.color}"},mobileButton:{borderRadius:"50%",size:"1.75rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},gv={root:{borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},content:{padding:"0.5rem 0.75rem",gap:"0.5rem",sm:{padding:"0.375rem 0.625rem"},lg:{padding:"0.625rem 0.875rem"}},text:{fontSize:"1rem",fontWeight:"500",sm:{fontSize:"0.875rem"},lg:{fontSize:"1.125rem"}},icon:{size:"1.125rem",sm:{size:"1rem"},lg:{size:"1.25rem"}},closeButton:{width:"1.75rem",height:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},closeIcon:{size:"1rem",sm:{size:"0.875rem"},lg:{size:"1.125rem"}},outlined:{root:{borderWidth:"1px"}},simple:{content:{padding:"0"}},colorScheme:{light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{blue.600}",shadow:"none"}},outlined:{color:"{blue.600}",borderColor:"{blue.600}"},simple:{color:"{blue.600}"}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{green.600}",shadow:"none"}},outlined:{color:"{green.600}",borderColor:"{green.600}"},simple:{color:"{green.600}"}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{yellow.600}",shadow:"none"}},outlined:{color:"{yellow.600}",borderColor:"{yellow.600}"},simple:{color:"{yellow.600}"}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{red.600}",shadow:"none"}},outlined:{color:"{red.600}",borderColor:"{red.600}"},simple:{color:"{red.600}"}},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{surface.600}",shadow:"none"}},outlined:{color:"{surface.500}",borderColor:"{surface.500}"},simple:{color:"{surface.500}"}},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{surface.50}",shadow:"none"}},outlined:{color:"{surface.950}",borderColor:"{surface.950}"},simple:{color:"{surface.950}"}}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{blue.500}",shadow:"none"}},outlined:{color:"{blue.500}",borderColor:"{blue.500}"},simple:{color:"{blue.500}"}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{green.500}",shadow:"none"}},outlined:{color:"{green.500}",borderColor:"{green.500}"},simple:{color:"{green.500}"}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{yellow.500}",shadow:"none"}},outlined:{color:"{yellow.500}",borderColor:"{yellow.500}"},simple:{color:"{yellow.500}"}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{red.500}",shadow:"none"}},outlined:{color:"{red.500}",borderColor:"{red.500}"},simple:{color:"{red.500}"}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{surface.300}",shadow:"none"}},outlined:{color:"{surface.400}",borderColor:"{surface.400}"},simple:{color:"{surface.400}"}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{surface.950}",shadow:"none"}},outlined:{color:"{surface.0}",borderColor:"{surface.0}"},simple:{color:"{surface.0}"}}}}},mv={root:{borderRadius:"{content.border.radius}",gap:"1rem"},meters:{background:"{content.border.color}",size:"0.5rem"},label:{gap:"0.5rem"},labelMarker:{size:"0.5rem"},labelIcon:{size:"1rem"},labelList:{verticalGap:"0.5rem",horizontalGap:"1rem"}},pv={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",gap:"0.5rem"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},clearIcon:{color:"{form.field.icon.color}"},chip:{borderRadius:"{border.radius.sm}"},emptyMessage:{padding:"{list.option.padding}"}},bv={root:{gap:"1.125rem"},controls:{gap:"0.5rem"}},yv={root:{gutter:"0.75rem",transitionDuration:"{transition.duration}"},node:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{content.border.color}",color:"{content.color}",selectedColor:"{highlight.color}",hoverColor:"{content.hover.color}",padding:"0.75rem 1rem",toggleablePadding:"0.75rem 1rem 1.25rem 1rem",borderRadius:"{content.border.radius}"},nodeToggleButton:{background:"{content.background}",hoverBackground:"{content.hover.background}",borderColor:"{content.border.color}",color:"{text.muted.color}",hoverColor:"{text.color}",size:"1.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},connector:{color:"{content.border.color}",borderRadius:"{content.border.radius}",height:"24px"}},kv={root:{outline:{width:"2px",color:"{content.background}"}}},xv={root:{padding:"0.5rem 1rem",gap:"0.25rem",borderRadius:"{content.border.radius}",background:"{content.background}",color:"{content.color}",transitionDuration:"{transition.duration}"},navButton:{background:"transparent",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}",width:"2.5rem",height:"2.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},currentPageReport:{color:"{text.muted.color}"},jumpToPageInput:{maxWidth:"2.5rem"}},vv={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},header:{background:"transparent",color:"{text.color}",padding:"1.125rem",borderColor:"{content.border.color}",borderWidth:"0",borderRadius:"0"},toggleableHeader:{padding:"0.375rem 1.125rem"},title:{fontWeight:"600"},content:{padding:"0 1.125rem 1.125rem 1.125rem"},footer:{padding:"0 1.125rem 1.125rem 1.125rem"}},wv={root:{gap:"0.5rem",transitionDuration:"{transition.duration}"},panel:{background:"{content.background}",borderColor:"{content.border.color}",borderWidth:"1px",color:"{content.color}",padding:"0.25rem 0.25rem",borderRadius:"{content.border.radius}",first:{borderWidth:"1px",topBorderRadius:"{content.border.radius}"},last:{borderWidth:"1px",bottomBorderRadius:"{content.border.radius}"}},item:{focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",gap:"0.5rem",padding:"{navigation.item.padding}",borderRadius:"{content.border.radius}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},submenu:{indent:"1rem"},submenuIcon:{color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}"}},Cv={meter:{background:"{content.border.color}",borderRadius:"{content.border.radius}",height:".75rem"},icon:{color:"{form.field.icon.color}"},overlay:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",padding:"{overlay.popover.padding}",shadow:"{overlay.popover.shadow}"},content:{gap:"0.5rem"},colorScheme:{light:{strength:{weakBackground:"{red.500}",mediumBackground:"{amber.500}",strongBackground:"{green.500}"}},dark:{strength:{weakBackground:"{red.400}",mediumBackground:"{amber.400}",strongBackground:"{green.400}"}}}},_v={root:{gap:"1.125rem"},controls:{gap:"0.5rem"}},Sv={root:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},content:{padding:"{overlay.popover.padding}"}},Bv={root:{background:"{content.border.color}",borderRadius:"{content.border.radius}",height:"1.25rem"},value:{background:"{primary.color}"},label:{color:"{primary.contrast.color}",fontSize:"0.75rem",fontWeight:"600"}},Ev={colorScheme:{light:{root:{"color.1":"{red.500}","color.2":"{blue.500}","color.3":"{green.500}","color.4":"{yellow.500}"}},dark:{root:{"color.1":"{red.400}","color.2":"{blue.400}","color.3":"{green.400}","color.4":"{yellow.400}"}}}},Rv={root:{width:"1.25rem",height:"1.25rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},icon:{size:"0.75rem",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.5rem"},lg:{size:"1rem"}}},Dv={root:{gap:"0.25rem",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},icon:{size:"1rem",color:"{text.muted.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},Ov={colorScheme:{light:{root:{background:"rgba(0,0,0,0.1)"}},dark:{root:{background:"rgba(255,255,255,0.3)"}}}},Nv={root:{transitionDuration:"{transition.duration}"},bar:{size:"9px",borderRadius:"{border.radius.sm}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{bar:{background:"{surface.100}"}},dark:{bar:{background:"{surface.800}"}}}},Tv={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},clearIcon:{color:"{form.field.icon.color}"},checkmark:{color:"{list.option.color}",gutterStart:"-0.375rem",gutterEnd:"0.375rem"},emptyMessage:{padding:"{list.option.padding}"}},Pv={root:{borderRadius:"{form.field.border.radius}"},colorScheme:{light:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}},dark:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}}}},$v={root:{borderRadius:"{content.border.radius}"},colorScheme:{light:{root:{background:"{surface.200}",animationBackground:"rgba(255,255,255,0.4)"}},dark:{root:{background:"rgba(255, 255, 255, 0.06)",animationBackground:"rgba(255, 255, 255, 0.04)"}}}},Av={root:{transitionDuration:"{transition.duration}"},track:{background:"{content.border.color}",borderRadius:"{content.border.radius}",size:"3px"},range:{background:"{primary.color}"},handle:{width:"20px",height:"20px",borderRadius:"50%",background:"{content.border.color}",hoverBackground:"{content.border.color}",content:{borderRadius:"50%",hoverBackground:"{content.background}",width:"16px",height:"16px",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.08), 0px 1px 1px 0px rgba(0, 0, 0, 0.14)"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{handle:{contentBackground:"{surface.0}"}},dark:{handle:{contentBackground:"{surface.950}"}}}},Mv={root:{gap:"0.5rem",transitionDuration:"{transition.duration}"}},Vv={root:{borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)"}},Fv={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",transitionDuration:"{transition.duration}"},gutter:{background:"{content.border.color}"},handle:{size:"24px",background:"transparent",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},Iv={root:{transitionDuration:"{transition.duration}"},separator:{background:"{content.border.color}",activeBackground:"{primary.color}",margin:"0 0 0 1.625rem",size:"2px"},step:{padding:"0.5rem",gap:"1rem"},stepHeader:{padding:"0",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},stepTitle:{color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},stepNumber:{background:"{content.background}",activeBackground:"{content.background}",borderColor:"{content.border.color}",activeBorderColor:"{content.border.color}",color:"{text.muted.color}",activeColor:"{primary.color}",size:"2rem",fontSize:"1.143rem",fontWeight:"500",borderRadius:"50%",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"},steppanels:{padding:"0.875rem 0.5rem 1.125rem 0.5rem"},steppanel:{background:"{content.background}",color:"{content.color}",padding:"0",indent:"1rem"}},Lv={root:{transitionDuration:"{transition.duration}"},separator:{background:"{content.border.color}"},itemLink:{borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},itemLabel:{color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},itemNumber:{background:"{content.background}",activeBackground:"{content.background}",borderColor:"{content.border.color}",activeBorderColor:"{content.border.color}",color:"{text.muted.color}",activeColor:"{primary.color}",size:"2rem",fontSize:"1.143rem",fontWeight:"500",borderRadius:"50%",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"}},zv={root:{transitionDuration:"{transition.duration}"},tablist:{borderWidth:"0 0 1px 0",background:"{content.background}",borderColor:"{content.border.color}"},item:{background:"transparent",hoverBackground:"transparent",activeBackground:"transparent",borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",hoverBorderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.125rem",fontWeight:"600",margin:"0 0 -1px 0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},itemIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},activeBar:{height:"1px",bottom:"-1px",background:"{primary.color}"}},jv={root:{transitionDuration:"{transition.duration}"},tablist:{borderWidth:"0 0 1px 0",background:"{content.background}",borderColor:"{content.border.color}"},tab:{background:"transparent",hoverBackground:"transparent",activeBackground:"transparent",borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",hoverBorderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.125rem",fontWeight:"600",margin:"0 0 -1px 0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},tabpanel:{background:"{content.background}",color:"{content.color}",padding:"0.875rem 1.125rem 1.125rem 1.125rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},navButton:{background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",width:"2.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},activeBar:{height:"1px",bottom:"-1px",background:"{primary.color}"},colorScheme:{light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}}},Wv={root:{transitionDuration:"{transition.duration}"},tabList:{background:"{content.background}",borderColor:"{content.border.color}"},tab:{borderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},tabPanel:{background:"{content.background}",color:"{content.color}"},navButton:{background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}"},colorScheme:{light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}}},Hv={root:{fontSize:"0.875rem",fontWeight:"700",padding:"0.25rem 0.5rem",gap:"0.25rem",borderRadius:"{content.border.radius}",roundedBorderRadius:"{border.radius.xl}"},icon:{size:"0.75rem"},colorScheme:{light:{primary:{background:"{primary.100}",color:"{primary.700}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.100}",color:"{green.700}"},info:{background:"{sky.100}",color:"{sky.700}"},warn:{background:"{orange.100}",color:"{orange.700}"},danger:{background:"{red.100}",color:"{red.700}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"color-mix(in srgb, {primary.500}, transparent 84%)",color:"{primary.300}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",color:"{green.300}"},info:{background:"color-mix(in srgb, {sky.500}, transparent 84%)",color:"{sky.300}"},warn:{background:"color-mix(in srgb, {orange.500}, transparent 84%)",color:"{orange.300}"},danger:{background:"color-mix(in srgb, {red.500}, transparent 84%)",color:"{red.300}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}}},Uv={root:{background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.color}",height:"18rem",padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{form.field.border.radius}"},prompt:{gap:"0.25rem"},commandResponse:{margin:"2px 0"}},qv={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}}},Yv={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{mobileIndent:"1rem"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"}},Xv={event:{minHeight:"5rem"},horizontal:{eventContent:{padding:"1rem 0"}},vertical:{eventContent:{padding:"0 1rem"}},eventMarker:{size:"1.125rem",borderRadius:"50%",borderWidth:"2px",background:"{content.background}",borderColor:"{content.border.color}",content:{borderRadius:"50%",size:"0.375rem",background:"{primary.color}",insetShadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"}},eventConnector:{color:"{content.border.color}",size:"2px"}},Kv={root:{width:"25rem",borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},icon:{size:"1.125rem"},content:{padding:"{overlay.popover.padding}",gap:"0.5rem"},text:{gap:"0.5rem"},summary:{fontWeight:"500",fontSize:"1rem"},detail:{fontWeight:"500",fontSize:"0.875rem"},closeButton:{width:"1.75rem",height:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},closeIcon:{size:"1rem"},colorScheme:{light:{blur:"1.5px",info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{blue.600}",shadow:"none"}}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{green.600}",shadow:"none"}}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{yellow.600}",shadow:"none"}}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{red.600}",shadow:"none"}}},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{surface.600}",shadow:"none"}}},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{surface.50}",shadow:"none"}}}},dark:{blur:"10px",info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{blue.500}",shadow:"none"}}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{green.500}",shadow:"none"}}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{yellow.500}",shadow:"none"}}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{red.500}",shadow:"none"}}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{surface.300}",shadow:"none"}}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",detailColor:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{surface.950}",shadow:"none"}}}}}},Gv={root:{padding:"0.5rem 1rem",borderRadius:"{content.border.radius}",gap:"0.5rem",fontWeight:"500",disabledBackground:"{form.field.disabled.background}",disabledBorderColor:"{form.field.disabled.background}",disabledColor:"{form.field.disabled.color}",invalidBorderColor:"{form.field.invalid.border.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",padding:"0.375rem 0.75rem"},lg:{fontSize:"{form.field.lg.font.size}",padding:"0.625rem 1.25rem"}},icon:{disabledColor:"{form.field.disabled.color}"},content:{left:"0.25rem",top:"0.25rem",checkedShadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.02), 0px 1px 2px 0px rgba(0, 0, 0, 0.04)"},colorScheme:{light:{root:{background:"{surface.100}",checkedBackground:"{surface.100}",hoverBackground:"{surface.100}",borderColor:"{surface.100}",color:"{surface.500}",hoverColor:"{surface.700}",checkedColor:"{surface.900}",checkedBorderColor:"{surface.100}"},content:{checkedBackground:"{surface.0}"},icon:{color:"{surface.500}",hoverColor:"{surface.700}",checkedColor:"{surface.900}"}},dark:{root:{background:"{surface.950}",checkedBackground:"{surface.950}",hoverBackground:"{surface.950}",borderColor:"{surface.950}",color:"{surface.400}",hoverColor:"{surface.300}",checkedColor:"{surface.0}",checkedBorderColor:"{surface.950}"},content:{checkedBackground:"{surface.800}"},icon:{color:"{surface.400}",hoverColor:"{surface.300}",checkedColor:"{surface.0}"}}}},Jv={root:{width:"2.5rem",height:"1.5rem",borderRadius:"30px",gap:"0.25rem",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},borderWidth:"1px",borderColor:"transparent",hoverBorderColor:"transparent",checkedBorderColor:"transparent",checkedHoverBorderColor:"transparent",invalidBorderColor:"{form.field.invalid.border.color}",transitionDuration:"{form.field.transition.duration}",slideDuration:"0.2s"},handle:{borderRadius:"50%",size:"1rem"},colorScheme:{light:{root:{background:"{surface.300}",disabledBackground:"{form.field.disabled.background}",hoverBackground:"{surface.400}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.0}",disabledBackground:"{form.field.disabled.color}",hoverBackground:"{surface.0}",checkedBackground:"{surface.0}",checkedHoverBackground:"{surface.0}",color:"{text.muted.color}",hoverColor:"{text.color}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}},dark:{root:{background:"{surface.700}",disabledBackground:"{surface.600}",hoverBackground:"{surface.600}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.400}",disabledBackground:"{surface.900}",hoverBackground:"{surface.300}",checkedBackground:"{surface.900}",checkedHoverBackground:"{surface.900}",color:"{surface.900}",hoverColor:"{surface.800}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}}}},Qv={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.75rem"}},Zv={root:{maxWidth:"12.5rem",gutter:"0.25rem",shadow:"{overlay.popover.shadow}",padding:"0.5rem 0.75rem",borderRadius:"{overlay.popover.border.radius}"},colorScheme:{light:{root:{background:"{surface.700}",color:"{surface.0}"}},dark:{root:{background:"{surface.700}",color:"{surface.0}"}}}},ew={root:{background:"{content.background}",color:"{content.color}",padding:"1rem",gap:"2px",indent:"1rem",transitionDuration:"{transition.duration}"},node:{padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.color}",hoverColor:"{text.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},gap:"0.25rem"},nodeIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}"},nodeToggleButton:{borderRadius:"50%",size:"1.75rem",hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedHoverColor:"{primary.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},loadingIcon:{size:"2rem"},filter:{margin:"0 0 0.5rem 0"}},tw={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},tree:{padding:"{list.padding}"},clearIcon:{color:"{form.field.icon.color}"},emptyMessage:{padding:"{list.option.padding}"},chip:{borderRadius:"{border.radius.sm}"}},ow={root:{transitionDuration:"{transition.duration}"},header:{background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},headerCell:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{treetable.border.color}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},columnTitle:{fontWeight:"600"},row:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},bodyCell:{borderColor:"{treetable.border.color}",padding:"0.75rem 1rem",gap:"0.5rem"},footerCell:{background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",padding:"0.75rem 1rem"},columnFooter:{fontWeight:"600"},footer:{background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},columnResizerWidth:"0.5rem",resizeIndicator:{width:"1px",color:"{primary.color}"},sortIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},loadingIcon:{size:"2rem"},nodeToggleButton:{hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},paginatorTop:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},colorScheme:{light:{root:{borderColor:"{content.border.color}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},bodyCell:{selectedBorderColor:"{primary.900}"}}}},rw={loader:{mask:{background:"{content.background}",color:"{text.muted.color}"},icon:{size:"2rem"}}};function Cr(t){"@babel/helpers - typeof";return Cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cr(t)}function Tc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,r)}return o}function Pc(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Tc(Object(o),!0).forEach(function(r){nw(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Tc(Object(o)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))})}return t}function nw(t,e,o){return(e=iw(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function iw(t){var e=aw(t,"string");return Cr(e)=="symbol"?e:e+""}function aw(t,e){if(Cr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var r=o.call(t,e||"default");if(Cr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var sw=Pc(Pc({},Ex),{},{components:{accordion:Cx,autocomplete:_x,avatar:Sx,badge:Bx,blockui:Rx,breadcrumb:Dx,button:Ox,datepicker:jx,card:Nx,carousel:Tx,cascadeselect:Px,checkbox:$x,chip:Ax,colorpicker:Mx,confirmdialog:Vx,confirmpopup:Fx,contextmenu:Ix,dataview:zx,datatable:Lx,dialog:Wx,divider:Hx,dock:Ux,drawer:qx,editor:Yx,fieldset:Xx,fileupload:Kx,iftalabel:Zx,floatlabel:Gx,galleria:Jx,iconfield:Qx,image:ev,imagecompare:tv,inlinemessage:ov,inplace:rv,inputchips:nv,inputgroup:iv,inputnumber:av,inputotp:sv,inputtext:lv,knob:cv,listbox:dv,megamenu:uv,menu:fv,menubar:hv,message:gv,metergroup:mv,multiselect:pv,orderlist:bv,organizationchart:yv,overlaybadge:kv,popover:Sv,paginator:xv,password:Cv,panel:vv,panelmenu:wv,picklist:_v,progressbar:Bv,progressspinner:Ev,radiobutton:Rv,rating:Dv,scrollpanel:Nv,select:Tv,selectbutton:Pv,skeleton:$v,slider:Av,speeddial:Mv,splitter:Fv,splitbutton:Vv,stepper:Iv,steps:Lv,tabmenu:zv,tabs:jv,tabview:Wv,textarea:qv,tieredmenu:Yv,tag:Hv,terminal:Uv,timeline:Xv,togglebutton:Gv,toggleswitch:Jv,tree:ew,treeselect:tw,treetable:ow,toast:Kv,toolbar:Qv,virtualscroller:rw},directives:{tooltip:Zv,ripple:Ov}}),lw={root:{transitionDuration:"{transition.duration}"},panel:{borderWidth:"0",borderColor:"{content.border.color}"},header:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",padding:"1.125rem",fontWeight:"700",borderRadius:"0",borderWidth:"0 1px 1px 1px",borderColor:"{content.border.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",activeHoverColor:"{text.color}"},first:{topBorderRadius:"{content.border.radius}",borderWidth:"1px"},last:{bottomBorderRadius:"{content.border.radius}",activeBottomBorderRadius:"0"}},content:{borderWidth:"0 1px 1px 1px",borderColor:"{content.border.color}",background:"{content.background}",color:"{text.color}",padding:"1.125rem"},colorScheme:{light:{header:{background:"{surface.50}",hoverBackground:"{surface.100}",activeBackground:"{surface.50}",activeHoverBackground:"{surface.100}"}},dark:{header:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.800}",activeHoverBackground:"{surface.700}"}}}},cw={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}"},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},dropdown:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},chip:{borderRadius:"{border.radius.sm}"},emptyMessage:{padding:"{list.option.padding}"},colorScheme:{light:{chip:{focusBackground:"{surface.200}",focusColor:"{surface.800}"},dropdown:{background:"{surface.50}",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",focusColor:"{surface.0}"},dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"}}}},dw={root:{width:"2rem",height:"2rem",fontSize:"1rem",background:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},icon:{size:"1rem"},group:{borderColor:"{content.background}",offset:"-0.75rem"},lg:{width:"3rem",height:"3rem",fontSize:"1.5rem",icon:{size:"1.5rem"},group:{offset:"-1rem"}},xl:{width:"4rem",height:"4rem",fontSize:"2rem",icon:{size:"2rem"}}},uw={root:{borderRadius:"{border.radius.md}",padding:"0 0.5rem",fontSize:"0.75rem",fontWeight:"700",minWidth:"1.5rem",height:"1.5rem"},dot:{size:"0.5rem"},sm:{fontSize:"0.625rem",minWidth:"1.25rem",height:"1.25rem"},lg:{fontSize:"0.875rem",minWidth:"1.75rem",height:"1.75rem"},xl:{fontSize:"1rem",minWidth:"2rem",height:"2rem"},colorScheme:{light:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.500}",color:"{surface.0}"},info:{background:"{sky.500}",color:"{surface.0}"},warn:{background:"{orange.500}",color:"{surface.0}"},danger:{background:"{red.500}",color:"{surface.0}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"{green.400}",color:"{green.950}"},info:{background:"{sky.400}",color:"{sky.950}"},warn:{background:"{orange.400}",color:"{orange.950}"},danger:{background:"{red.400}",color:"{red.950}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}}},fw={primitive:{borderRadius:{none:"0",xs:"2px",sm:"4px",md:"6px",lg:"8px",xl:"12px"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"}},semantic:{transitionDuration:"0.2s",focusRing:{width:"0",style:"none",color:"transparent",offset:"0"},disabledOpacity:"0.6",iconSize:"1rem",anchorGutter:"2px",primary:{50:"{emerald.50}",100:"{emerald.100}",200:"{emerald.200}",300:"{emerald.300}",400:"{emerald.400}",500:"{emerald.500}",600:"{emerald.600}",700:"{emerald.700}",800:"{emerald.800}",900:"{emerald.900}",950:"{emerald.950}"},formField:{paddingX:"0.75rem",paddingY:"0.625rem",sm:{fontSize:"0.875rem",paddingX:"0.625rem",paddingY:"0.5rem"},lg:{fontSize:"1.125rem",paddingX:"0.875rem",paddingY:"0.75rem"},borderRadius:"{border.radius.md}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{transition.duration}"},list:{padding:"0.5rem 0",gap:"0",header:{padding:"0.625rem 1rem 0 1rem"},option:{padding:"0.625rem 1rem",borderRadius:"0"},optionGroup:{padding:"0.625rem 1rem",fontWeight:"600"}},content:{borderRadius:"{border.radius.md}"},mask:{transitionDuration:"0.15s"},navigation:{list:{padding:"0.5rem 0",gap:"0"},item:{padding:"0.625rem 1rem",borderRadius:"0",gap:"0.5rem"},submenuLabel:{padding:"0.625rem 1rem",fontWeight:"600"},submenuIcon:{size:"0.875rem"}},overlay:{select:{borderRadius:"{border.radius.md}",shadow:"0 2px 12px 0 rgba(0, 0, 0, 0.1)"},popover:{borderRadius:"{border.radius.md}",padding:"1rem",shadow:"0 1px 3px rgba(0, 0, 0, 0.1)"},modal:{borderRadius:"{border.radius.xl}",padding:"1.5rem",shadow:"0 1px 3px rgba(0, 0, 0, 0.3)"},navigation:{shadow:"0 2px 12px 0 rgba(0, 0, 0, 0.1)"}},colorScheme:{light:{surface:{0:"#ffffff",50:"{slate.50}",100:"{slate.100}",200:"{slate.200}",300:"{slate.300}",400:"{slate.400}",500:"{slate.500}",600:"{slate.600}",700:"{slate.700}",800:"{slate.800}",900:"{slate.900}",950:"{slate.950}"},primary:{color:"{primary.500}",contrastColor:"#ffffff",hoverColor:"{primary.600}",activeColor:"{primary.700}"},highlight:{background:"{primary.50}",focusBackground:"{primary.100}",color:"{primary.700}",focusColor:"{primary.800}"},focusRing:{shadow:"0 0 0 0.2rem {primary.200}"},mask:{background:"rgba(0,0,0,0.4)",color:"{surface.200}"},formField:{background:"{surface.0}",disabledBackground:"{surface.200}",filledBackground:"{surface.50}",filledHoverBackground:"{surface.50}",filledFocusBackground:"{surface.0}",borderColor:"{surface.300}",hoverBorderColor:"{primary.color}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.400}",color:"{surface.700}",disabledColor:"{surface.500}",placeholderColor:"{surface.500}",invalidPlaceholderColor:"{red.600}",floatLabelColor:"{surface.500}",floatLabelFocusColor:"{primary.600}",floatLabelActiveColor:"{surface.500}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.500}",shadow:"none"},text:{color:"{surface.700}",hoverColor:"{surface.800}",mutedColor:"{surface.500}",hoverMutedColor:"{surface.600}"},content:{background:"{surface.0}",hoverBackground:"{surface.100}",borderColor:"{surface.200}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},popover:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},modal:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.100}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}"}},optionGroup:{background:"transparent",color:"{text.color}"}},navigation:{item:{focusBackground:"{surface.100}",activeBackground:"{surface.100}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}},submenuLabel:{background:"transparent",color:"{text.color}"},submenuIcon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}}},dark:{surface:{0:"#ffffff",50:"{zinc.50}",100:"{zinc.100}",200:"{zinc.200}",300:"{zinc.300}",400:"{zinc.400}",500:"{zinc.500}",600:"{zinc.600}",700:"{zinc.700}",800:"{zinc.800}",900:"{zinc.900}",950:"{zinc.950}"},primary:{color:"{primary.400}",contrastColor:"{surface.900}",hoverColor:"{primary.300}",activeColor:"{primary.200}"},highlight:{background:"color-mix(in srgb, {primary.400}, transparent 84%)",focusBackground:"color-mix(in srgb, {primary.400}, transparent 76%)",color:"rgba(255,255,255,.87)",focusColor:"rgba(255,255,255,.87)"},focusRing:{shadow:"0 0 0 0.2rem color-mix(in srgb, {primary.color}, transparent 80%)"},mask:{background:"rgba(0,0,0,0.6)",color:"{surface.200}"},formField:{background:"{surface.950}",disabledBackground:"{surface.700}",filledBackground:"{surface.800}",filledHoverBackground:"{surface.800}",filledFocusBackground:"{surface.950}",borderColor:"{surface.600}",hoverBorderColor:"{primary.color}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.300}",color:"{surface.0}",disabledColor:"{surface.400}",placeholderColor:"{surface.400}",invalidPlaceholderColor:"{red.400}",floatLabelColor:"{surface.400}",floatLabelFocusColor:"{primary.color}",floatLabelActiveColor:"{surface.400}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"none"},text:{color:"{surface.0}",hoverColor:"{surface.0}",mutedColor:"{surface.400}",hoverMutedColor:"{surface.300}"},content:{background:"{surface.900}",hoverBackground:"{surface.800}",borderColor:"{surface.700}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},popover:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},modal:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.800}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}"}},optionGroup:{background:"transparent",color:"{text.color}"}},navigation:{item:{focusBackground:"{surface.800}",activeBackground:"{surface.800}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}},submenuLabel:{background:"transparent",color:"{text.color}"},submenuIcon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}}}}}},hw={root:{borderRadius:"{content.border.radius}"}},gw={root:{padding:"1.25rem",background:"{content.background}",gap:"0.5rem",transitionDuration:"{transition.duration}"},item:{color:"{text.muted.color}",hoverColor:"{text.color}",borderRadius:"{content.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",hoverColor:"{navigation.item.icon.focus.color}"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},separator:{color:"{navigation.item.icon.color}"}},mw={root:{borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",gap:"0.5rem",paddingX:"1rem",paddingY:"{form.field.padding.y}",iconOnlyWidth:"2.75rem",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"},label:{fontWeight:"600"},raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",offset:"{form.field.focus.ring.offset}"},badgeSize:"1rem",transitionDuration:"{form.field.transition.duration}"},colorScheme:{light:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {primary.200}"}},secondary:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",borderColor:"{surface.100}",hoverBorderColor:"{surface.200}",activeBorderColor:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {surface.200}"}},info:{background:"{sky.500}",hoverBackground:"{sky.600}",activeBackground:"{sky.700}",borderColor:"{sky.500}",hoverBorderColor:"{sky.600}",activeBorderColor:"{sky.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {sky.200}"}},success:{background:"{green.500}",hoverBackground:"{green.600}",activeBackground:"{green.700}",borderColor:"{green.500}",hoverBorderColor:"{green.600}",activeBorderColor:"{green.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {green.200}"}},warn:{background:"{orange.500}",hoverBackground:"{orange.600}",activeBackground:"{orange.700}",borderColor:"{orange.500}",hoverBorderColor:"{orange.600}",activeBorderColor:"{orange.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {orange.200}"}},help:{background:"{purple.500}",hoverBackground:"{purple.600}",activeBackground:"{purple.700}",borderColor:"{purple.500}",hoverBorderColor:"{purple.600}",activeBorderColor:"{purple.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {purple.200}"}},danger:{background:"{red.500}",hoverBackground:"{red.600}",activeBackground:"{red.700}",borderColor:"{red.500}",hoverBorderColor:"{red.600}",activeBorderColor:"{red.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {red.200}"}},contrast:{background:"{surface.950}",hoverBackground:"{surface.900}",activeBackground:"{surface.800}",borderColor:"{surface.950}",hoverBorderColor:"{surface.900}",activeBorderColor:"{surface.800}",color:"{surface.0}",hoverColor:"{surface.0}",activeColor:"{surface.0}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {surface.400}"}}},outlined:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",borderColor:"{primary.200}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",borderColor:"{green.200}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",borderColor:"{sky.200}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",borderColor:"{orange.200}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",borderColor:"{purple.200}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",borderColor:"{red.200}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.700}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.700}"}},text:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.100}",activeBackground:"{surface.200}",color:"{surface.600}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.700}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},dark:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {primary.color}, transparent 80%)"}},secondary:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",borderColor:"{surface.800}",hoverBorderColor:"{surface.700}",activeBorderColor:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.300}, transparent 80%)"}},info:{background:"{sky.400}",hoverBackground:"{sky.300}",activeBackground:"{sky.200}",borderColor:"{sky.400}",hoverBorderColor:"{sky.300}",activeBorderColor:"{sky.200}",color:"{sky.950}",hoverColor:"{sky.950}",activeColor:"{sky.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {sky.400}, transparent 80%)"}},success:{background:"{green.400}",hoverBackground:"{green.300}",activeBackground:"{green.200}",borderColor:"{green.400}",hoverBorderColor:"{green.300}",activeBorderColor:"{green.200}",color:"{green.950}",hoverColor:"{green.950}",activeColor:"{green.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {green.400}, transparent 80%)"}},warn:{background:"{orange.400}",hoverBackground:"{orange.300}",activeBackground:"{orange.200}",borderColor:"{orange.400}",hoverBorderColor:"{orange.300}",activeBorderColor:"{orange.200}",color:"{orange.950}",hoverColor:"{orange.950}",activeColor:"{orange.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {orange.400}, transparent 80%)"}},help:{background:"{purple.400}",hoverBackground:"{purple.300}",activeBackground:"{purple.200}",borderColor:"{purple.400}",hoverBorderColor:"{purple.300}",activeBorderColor:"{purple.200}",color:"{purple.950}",hoverColor:"{purple.950}",activeColor:"{purple.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {purple.400}, transparent 80%)"}},danger:{background:"{red.400}",hoverBackground:"{red.300}",activeBackground:"{red.200}",borderColor:"{red.400}",hoverBorderColor:"{red.300}",activeBorderColor:"{red.200}",color:"{red.950}",hoverColor:"{red.950}",activeColor:"{red.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {red.400}, transparent 80%)"}},contrast:{background:"{surface.0}",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{surface.0}",hoverBorderColor:"{surface.100}",activeBorderColor:"{surface.200}",color:"{surface.950}",hoverColor:"{surface.950}",activeColor:"{surface.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.0}, transparent 80%)"}}},outlined:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",borderColor:"{primary.700}",color:"{primary.color}"},secondary:{hoverBackground:"rgba(255,255,255,0.04)",activeBackground:"rgba(255,255,255,0.16)",borderColor:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",borderColor:"{green.700}",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",borderColor:"{sky.700}",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",borderColor:"{orange.700}",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {help.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {help.400}, transparent 84%)",borderColor:"{purple.700}",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {danger.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {danger.400}, transparent 84%)",borderColor:"{red.700}",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.500}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.600}",color:"{surface.0}"}},text:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",color:"{primary.color}"},secondary:{hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}}}},pw={root:{background:"{content.background}",borderRadius:"{border.radius.lg}",color:"{content.color}",shadow:"0 .125rem .25rem rgba(0,0,0,.075)"},body:{padding:"1.5rem",gap:"0.75rem"},caption:{gap:"0.5rem"},title:{fontSize:"1.25rem",fontWeight:"700"},subtitle:{color:"{text.muted.color}"}},bw={root:{transitionDuration:"{transition.duration}"},content:{gap:"0.25rem"},indicatorList:{padding:"1rem",gap:"0.5rem"},indicator:{width:"1rem",height:"1rem",borderRadius:"50",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{indicator:{background:"{surface.200}",hoverBackground:"{surface.300}",activeBackground:"{primary.color}"}},dark:{indicator:{background:"{surface.700}",hoverBackground:"{surface.600}",activeBackground:"{primary.color}"}}}},yw={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",mobileIndent:"1.25rem"},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",icon:{color:"{list.option.icon.color}",focusColor:"{list.option.icon.focus.color}",size:"0.875rem"}},clearIcon:{color:"{form.field.icon.color}"}},kw={root:{borderRadius:"{border.radius.sm}",width:"1.5rem",height:"1.5rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1.25rem",height:"1.25rem"},lg:{width:"1.75rem",height:"1.75rem"}},icon:{size:"1rem",color:"{form.field.color}",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.75rem"},lg:{size:"1.25rem"}}},xw={root:{borderRadius:"16px",paddingX:"0.875rem",paddingY:"0.625rem",gap:"0.5rem",transitionDuration:"{transition.duration}"},image:{width:"2rem",height:"2rem"},icon:{size:"1rem"},removeIcon:{size:"1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{root:{background:"{surface.100}",color:"{surface.800}"},icon:{color:"{surface.800}"},removeIcon:{color:"{surface.800}"}},dark:{root:{background:"{surface.800}",color:"{surface.0}"},icon:{color:"{surface.0}"},removeIcon:{color:"{surface.0}"}}}},vw={root:{transitionDuration:"{transition.duration}"},preview:{width:"1.75rem",height:"1.75rem",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},panel:{shadow:"{overlay.popover.shadow}",borderRadius:"{overlay.popover.borderRadius}"},colorScheme:{light:{panel:{background:"{surface.800}",borderColor:"{surface.900}"},handle:{color:"{surface.0}"}},dark:{panel:{background:"{surface.900}",borderColor:"{surface.700}"},handle:{color:"{surface.0}"}}}},ww={icon:{size:"2rem",color:"{overlay.modal.color}"},content:{gap:"1rem"}},Cw={root:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},content:{padding:"{overlay.popover.padding}",gap:"1rem"},icon:{size:"1.5rem",color:"{overlay.popover.color}"},footer:{gap:"0.5rem",padding:"0 {overlay.popover.padding} {overlay.popover.padding} {overlay.popover.padding}"}},_w={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{mobileIndent:"1.25rem"},submenuLabel:{padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background.}",color:"{navigation.submenu.label.color}"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"}},Sw={root:{transitionDuration:"{transition.duration}"},header:{borderColor:"{datatable.border.color}",borderWidth:"1px 0 1px 0",padding:"0.75rem 1rem"},headerCell:{selectedBackground:"{highlight.background}",borderColor:"{datatable.border.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},columnTitle:{fontWeight:"700"},row:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},bodyCell:{borderColor:"{datatable.border.color}",padding:"0.75rem 1rem"},footerCell:{borderColor:"{datatable.border.color}",padding:"0.75rem 1rem"},columnFooter:{fontWeight:"700"},footer:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},dropPoint:{color:"{primary.color}"},columnResizerWidth:"0.5rem",resizeIndicator:{width:"1px",color:"{primary.color}"},sortIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},loadingIcon:{size:"2rem"},rowToggleButton:{hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},filter:{inlineGap:"0.5rem",overlaySelect:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},overlayPopover:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}",gap:"0.5rem"},rule:{borderColor:"{content.border.color}"},constraintList:{padding:"{list.padding}",gap:"{list.gap}"},constraint:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",separator:{borderColor:"{content.border.color}"},padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"}},paginatorTop:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},colorScheme:{light:{root:{borderColor:"{content.border.color}"},header:{background:"{surface.50}",color:"{text.color}"},headerCell:{background:"{surface.50}",hoverBackground:"{surface.100}",color:"{text.color}"},footer:{background:"{surface.50}",color:"{text.color}"},footerCell:{background:"{surface.50}",color:"{text.color}"},row:{stripedBackground:"{surface.50}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},header:{background:"{surface.800}",color:"{text.color}"},headerCell:{background:"{surface.800}",hoverBackground:"{surface.700}",color:"{text.color}"},footer:{background:"{surface.800}",color:"{text.color}"},footerCell:{background:"{surface.800}",color:"{text.color}"},row:{stripedBackground:"{surface.950}"},bodyCell:{selectedBorderColor:"{primary.900}"}}}},Bw={root:{borderColor:"{content.border.color}",borderWidth:"1px",borderRadius:"4px",padding:"0"},header:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0",padding:"0.875rem 1.125rem",borderRadius:"5px 5px 0 0"},content:{background:"{content.background}",color:"{content.color}",borderColor:"transparent",borderWidth:"0",padding:"0",borderRadius:"5px"},footer:{background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"1px 0 0 0",padding:"0.875rem 1.125rem",borderRadius:"0 0 5px 5px"},paginatorTop:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{content.border.color}",borderWidth:"1px 0 0 0"},colorScheme:{light:{header:{background:"{surface.50}",color:"{text.color}"}},dark:{header:{background:"{surface.800}",color:"{text.color}"}}}},Ew={root:{transitionDuration:"{transition.duration}"},panel:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}"},header:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",padding:"0 0 0.75rem 0"},title:{gap:"0.5rem",fontWeight:"700"},dropdown:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},inputIcon:{color:"{form.field.icon.color}"},selectMonth:{hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.375rem 0.625rem",borderRadius:"{content.border.radius}"},selectYear:{hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.375rem 0.625rem",borderRadius:"{content.border.radius}"},group:{borderColor:"{content.border.color}",gap:"{overlay.popover.padding}"},dayView:{margin:"0.75rem 0 0 0"},weekDay:{padding:"0.375rem",fontWeight:"700",color:"{content.color}"},date:{hoverBackground:"{content.hover.background}",selectedBackground:"{primary.color}",rangeSelectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{primary.contrast.color}",rangeSelectedColor:"{highlight.color}",width:"2.5rem",height:"2.5rem",borderRadius:"50%",padding:"0.375rem",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},monthView:{margin:"0.75rem 0 0 0"},month:{padding:"0.5rem",borderRadius:"{content.border.radius}"},yearView:{margin:"0.75rem 0 0 0"},year:{padding:"0.5rem",borderRadius:"{content.border.radius}"},buttonbar:{padding:"0.75rem 0 0 0",borderColor:"{content.border.color}"},timePicker:{padding:"0.75rem 0 0 0",borderColor:"{content.border.color}",gap:"0.5rem",buttonGap:"0.25rem"},colorScheme:{light:{dropdown:{background:"{surface.50}",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"},today:{background:"{surface.200}",color:"{surface.900}"}},dark:{dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"},today:{background:"{surface.700}",color:"{surface.0}"}}}},Rw={root:{background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",borderRadius:"{overlay.modal.border.radius}",shadow:"{overlay.modal.shadow}"},header:{padding:"{overlay.modal.padding}",gap:"0.5rem"},title:{fontSize:"1.25rem",fontWeight:"600"},content:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},footer:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}",gap:"0.5rem"}},Dw={root:{borderColor:"{content.border.color}"},content:{background:"{content.background}",color:"{text.color}"},horizontal:{margin:"1.125rem 0",padding:"0 1.125rem",content:{padding:"0 0.625rem"}},vertical:{margin:"0 1.125rem",padding:"1.125rem 0",content:{padding:"0.625rem 0"}}},Ow={root:{background:"rgba(255, 255, 255, 0.1)",borderColor:"rgba(255, 255, 255, 0.2)",padding:"0.5rem",borderRadius:"{border.radius.lg}"},item:{borderRadius:"{content.border.radius}",padding:"0.5rem",size:"3rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},Nw={root:{background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",shadow:"{overlay.modal.shadow}"},header:{padding:"{overlay.modal.padding}"},title:{fontSize:"1.5rem",fontWeight:"600"},content:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},footer:{padding:"{overlay.modal.padding}"}},Tw={toolbar:{borderColor:"{content.border.color}",borderRadius:"{content.border.radius}"},toolbarItem:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}",padding:"{list.padding}"},overlayOption:{focusBackground:"{list.option.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},content:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},colorScheme:{light:{toolbar:{background:"{surface.50}"}},dark:{toolbar:{background:"{surface.800}"}}}},Pw={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",padding:"0.75rem 1.125rem 1.125rem 1.125rem",transitionDuration:"{transition.duration}"},legend:{borderRadius:"{content.border.radius}",borderWidth:"1px",borderColor:"{content.border.color}",padding:"0.625rem 0.875rem",gap:"0.5rem",fontWeight:"700",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}"},content:{padding:"0"},colorScheme:{light:{legend:{background:"{surface.50}",hoverBackground:"{surface.100}",color:"{text.color}",hoverColor:"{text.hover.color}"}},dark:{legend:{background:"{surface.800}",hoverBackground:"{surface.700}",color:"{text.color}",hoverColor:"{text.hover.color}"}}}},$w={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},header:{borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",padding:"1.125rem",borderRadius:"5px 5px 0 0",gap:"0.5rem"},content:{highlightBorderColor:"{primary.color}",padding:"1.125rem",gap:"1rem"},file:{padding:"1rem",gap:"1rem",borderColor:"{content.border.color}",info:{gap:"0.5rem"}},fileList:{gap:"0.5rem"},progressbar:{height:"0.25rem"},basic:{gap:"0.5rem"},colorScheme:{light:{header:{background:"{surface.50}",color:"{text.color}"}},dark:{header:{background:"{surface.800}",color:"{text.color}"}}}},Aw={root:{color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",activeColor:"{form.field.float.label.active.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",positionY:"{form.field.padding.y}",fontWeight:"500",active:{fontSize:"0.75rem",fontWeight:"400"}},over:{active:{top:"-1.375rem"}},in:{input:{paddingTop:"1.875rem",paddingBottom:"{form.field.padding.y}"},active:{top:"{form.field.padding.y}"}},on:{borderRadius:"{border.radius.xs}",active:{background:"{form.field.background}",padding:"0 0.125rem"}}},Mw={root:{borderWidth:"1px",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},navButton:{background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.100}",hoverColor:"{surface.0}",size:"3rem",gutter:"0",prev:{borderRadius:"0 12px 12px 0"},next:{borderRadius:"12px 0 0 12px"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},navIcon:{size:"1.5rem"},thumbnailsContent:{padding:"1rem 0.25rem"},thumbnailNavButton:{size:"2rem",borderRadius:"{content.border.radius}",gutter:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},thumbnailNavButtonIcon:{size:"1rem"},caption:{background:"rgba(0, 0, 0, 0.5)",color:"{surface.100}",padding:"1rem"},indicatorList:{gap:"0.5rem",padding:"1rem"},indicatorButton:{width:"1rem",height:"1rem",activeBackground:"{primary.color}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},insetIndicatorList:{background:"rgba(0, 0, 0, 0.5)"},insetIndicatorButton:{background:"rgba(255, 255, 255, 0.4)",hoverBackground:"rgba(255, 255, 255, 0.6)",activeBackground:"rgba(255, 255, 255, 0.9)"},closeButton:{size:"3rem",gutter:"0.5rem",background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.50}",hoverColor:"{surface.0}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},closeButtonIcon:{size:"1.5rem"},colorScheme:{light:{thumbnailsContent:{background:"{surface.50}"},thumbnailNavButton:{hoverBackground:"{surface.100}",color:"{surface.600}",hoverColor:"{surface.700}"},indicatorButton:{background:"{surface.200}",hoverBackground:"{surface.300}"}},dark:{thumbnailsContent:{background:"{surface.800}"},thumbnailNavButton:{hoverBackground:"{surface.700}",color:"{surface.400}",hoverColor:"{surface.0}"},indicatorButton:{background:"{surface.700}",hoverBackground:"{surface.600}"}}}},Vw={icon:{color:"{form.field.icon.color}"}},Fw={root:{color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",top:"{form.field.padding.y}",fontSize:"0.75rem",fontWeight:"400"},input:{paddingTop:"1.875rem",paddingBottom:"{form.field.padding.y}"}},Iw={root:{transitionDuration:"{transition.duration}"},preview:{icon:{size:"1.5rem"},mask:{background:"{mask.background}",color:"{mask.color}"}},toolbar:{position:{left:"auto",right:"1rem",top:"1rem",bottom:"auto"},blur:"8px",background:"rgba(255,255,255,0.1)",borderColor:"rgba(255,255,255,0.2)",borderWidth:"1px",borderRadius:"{content.border.radius}",padding:".5rem",gap:"0.5rem"},action:{hoverBackground:"rgba(255,255,255,0.1)",color:"{surface.50}",hoverColor:"{surface.0}",size:"3rem",iconSize:"1.5rem",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},Lw={handle:{size:"15px",hoverSize:"30px",background:"rgba(255,255,255,0.3)",hoverBackground:"rgba(255,255,255,0.3)",borderColor:"rgba(255,255,255,0.3)",hoverBorderColor:"rgba(255,255,255,0.3)",borderWidth:"3px",borderRadius:"50%",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"rgba(255,255,255,0.3)",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},zw={root:{padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",gap:"0.5rem"},text:{fontWeight:"500"},icon:{size:"1.125rem"},colorScheme:{light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"color-mix(in srgb, {blue.50}, transparent 5%)",color:"{blue.600}",shadow:"none"},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"color-mix(in srgb, {green.50}, transparent 5%)",color:"{green.600}",shadow:"none"},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"color-mix(in srgb,{yellow.50}, transparent 5%)",color:"{yellow.600}",shadow:"none"},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"color-mix(in srgb, {red.50}, transparent 5%)",color:"{red.600}",shadow:"none"},secondary:{background:"{surface.100}",borderColor:"{surface.100}",color:"{surface.600}",shadow:"none"},contrast:{background:"{surface.900}",borderColor:"{surface.900}",color:"{surface.50}",shadow:"none"}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.500}, transparent 84%)",color:"{blue.500}",shadow:"none"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.500}, transparent 84%)",color:"{green.500}",shadow:"none"},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.500}, transparent 84%)",color:"{yellow.500}",shadow:"none"},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.500}, transparent 84%)",color:"{red.500}",shadow:"none"},secondary:{background:"{surface.800}",borderColor:"{surface.800}",color:"{surface.300}",shadow:"none"},contrast:{background:"{surface.0}",borderColor:"{surface.0}",color:"{surface.950}",shadow:"none"}}}},jw={root:{padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{transition.duration}"},display:{hoverBackground:"{content.hover.background}",hoverColor:"{content.hover.color}"}},Ww={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},chip:{borderRadius:"{border.radius.sm}"},colorScheme:{light:{chip:{focusBackground:"{surface.200}",color:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",color:"{surface.0}"}}}},Hw={addon:{borderRadius:"{form.field.border.radius}",padding:"0.625rem 0.5rem",minWidth:"2.75rem"},colorScheme:{light:{addon:{background:"{surface.50}",borderColor:"{form.field.border.color}",color:"{text.muted.color}"}},dark:{addon:{background:"{surface.800}",borderColor:"{form.field.border.color}",color:"{text.muted.color}"}}}},Uw={root:{transitionDuration:"{transition.duration}"},button:{width:"2.5rem",borderRadius:"{form.field.border.radius}",verticalPadding:"{form.field.padding.y}"},colorScheme:{light:{button:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"}},dark:{button:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.500}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"}}}},qw={root:{gap:"0.5rem"},input:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"}}},Yw={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}}},Xw={root:{transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},value:{background:"{primary.color}"},range:{background:"{content.border.color}"},text:{color:"{text.muted.color}"}},Kw={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",borderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",shadow:"{form.field.shadow}",borderRadius:"{form.field.border.radius}",transitionDuration:"{form.field.transition.duration}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},checkmark:{color:"{list.option.color}",gutterStart:"-0.5rem",gutterEnd:"0.5rem"},emptyMessage:{padding:"{list.option.padding}"},colorScheme:{light:{option:{stripedBackground:"{surface.50}"}},dark:{option:{stripedBackground:"{surface.900}"}}}},Gw={root:{borderColor:"transparent",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",verticalOrientation:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},horizontalOrientation:{padding:"0.75rem 1rem",gap:"0.5rem"},transitionDuration:"{transition.duration}"},baseItem:{borderRadius:"{content.border.radius}",padding:"0.75rem 1rem"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},overlay:{padding:"0",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",shadow:"{overlay.navigation.shadow}",gap:"0.5rem"},submenu:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},submenuLabel:{padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background.}",color:"{navigation.submenu.label.color}"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"},mobileButton:{borderRadius:"50%",size:"2rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{root:{background:"{surface.50}"}},dark:{root:{background:"{surface.800}"}}}},Jw={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},submenuLabel:{padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background.}",color:"{navigation.submenu.label.color}"},separator:{borderColor:"{content.border.color}"}},Qw={root:{borderColor:"transparent",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.75rem 1rem",transitionDuration:"{transition.duration}"},baseItem:{borderRadius:"{content.border.radius}",padding:"0.75rem 1rem"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",mobileIndent:"1.25rem",icon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"}},separator:{borderColor:"{content.border.color}"},mobileButton:{borderRadius:"50%",size:"2rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{root:{background:"{surface.50}"}},dark:{root:{background:"{surface.800}"}}}},Zw={root:{borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},content:{padding:"0.75rem 1rem",gap:"0.5rem",sm:{padding:"0.5rem 0.625rem"},lg:{padding:"0.75rem 0.875rem"}},text:{fontSize:"1rem",fontWeight:"500",sm:{fontSize:"0.875rem"},lg:{fontSize:"1.125rem"}},icon:{size:"1.25rem",sm:{size:"1rem"},lg:{size:"1.5rem"}},closeButton:{width:"2rem",height:"2rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},closeIcon:{size:"1rem",sm:{fontSize:"0.875rem"},lg:{fontSize:"1.125rem"}},outlined:{root:{borderWidth:"1px"}},simple:{content:{padding:"0"}},colorScheme:{light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"transparent",color:"{blue.600}",shadow:"none",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {blue.200}"}},outlined:{color:"{blue.600}",borderColor:"{blue.600}"},simple:{color:"{blue.600}"}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"transparent",color:"{green.600}",shadow:"none",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {green.200}"}},outlined:{color:"{green.600}",borderColor:"{green.600}"},simple:{color:"{green.600}"}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"transparent",color:"{yellow.600}",shadow:"none",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {yellow.200}"}},outlined:{color:"{yellow.600}",borderColor:"{yellow.600}"},simple:{color:"{yellow.600}"}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"transparent",color:"{red.600}",shadow:"none",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {red.200}"}},outlined:{color:"{red.600}",borderColor:"{red.600}"},simple:{color:"{red.600}"}},secondary:{background:"{surface.100}",borderColor:"transparent",color:"{surface.600}",shadow:"none",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {surface.200}"}},outlined:{color:"{surface.500}",borderColor:"{surface.500}"},simple:{color:"{surface.500}"}},contrast:{background:"{surface.900}",borderColor:"transparent",color:"{surface.50}",shadow:"none",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {surface.400}"}},outlined:{color:"{surface.900}",borderColor:"{surface.900}"},simple:{color:"{surface.900}"}}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"transparent",color:"{blue.500}",shadow:"none",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {blue.500}, transparent 80%)"}},outlined:{color:"{blue.500}",borderColor:"{blue.500}"},simple:{color:"{blue.500}"}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"transparent",color:"{green.500}",shadow:"none",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {green.500}, transparent 80%)"}},outlined:{color:"{green.500}",borderColor:"{green.500}"},simple:{color:"{green.500}"}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"transparent",color:"{yellow.500}",shadow:"none",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {yellow.500}, transparent 80%)"}},outlined:{color:"{yellow.500}",borderColor:"{yellow.500}"},simple:{color:"{yellow.500}"}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"transparent",color:"{red.500}",shadow:"none",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {red.500}, transparent 80%)"}},outlined:{color:"{red.500}",borderColor:"{red.500}"},simple:{color:"{red.500}"}},secondary:{background:"{surface.800}",borderColor:"transparent",color:"{surface.300}",shadow:"none",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.300}, transparent 80%)"}},outlined:{color:"{surface.400}",borderColor:"{surface.400}"},simple:{color:"{surface.400}"}},contrast:{background:"{surface.0}",borderColor:"transparent",color:"{surface.950}",shadow:"none",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.950}, transparent 80%)"}},outlined:{color:"{surface.0}",borderColor:"{surface.0}"},simple:{color:"{surface.0}"}}}}},eC={root:{borderRadius:"{content.border.radius}",gap:"1rem"},meters:{background:"{content.border.color}",size:"0.625rem"},label:{gap:"0.5rem"},labelMarker:{size:"0.5rem"},labelIcon:{size:"1rem"},labelList:{verticalGap:"0.5rem",horizontalGap:"1rem"}},tC={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",gap:"0.5rem"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},clearIcon:{color:"{form.field.icon.color}"},chip:{borderRadius:"{border.radius.sm}"},emptyMessage:{padding:"{list.option.padding}"}},oC={root:{gap:"1.125rem"},controls:{gap:"0.5rem"}},rC={root:{gutter:"0.75rem",transitionDuration:"{transition.duration}"},node:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{content.border.color}",color:"{content.color}",selectedColor:"{highlight.color}",hoverColor:"{content.hover.color}",padding:"1rem 1.25rem",toggleablePadding:"1rem 1.25rem 1.5rem 1.25rem",borderRadius:"{content.border.radius}"},nodeToggleButton:{background:"{content.background}",hoverBackground:"{content.hover.background}",borderColor:"{content.border.color}",color:"{text.muted.color}",hoverColor:"{text.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},connector:{color:"{content.border.color}",borderRadius:"{content.border.radius}",height:"24px"}},nC={root:{outline:{width:"2px",color:"{content.background}"}}},iC={root:{padding:"0.5rem 1rem",gap:"0.25rem",borderRadius:"{content.border.radius}",background:"{content.background}",color:"{content.color}",transitionDuration:"{transition.duration}"},navButton:{background:"transparent",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}",width:"2.5rem",height:"2.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},currentPageReport:{color:"{text.muted.color}"},jumpToPageInput:{maxWidth:"2.5rem"}},aC={root:{borderColor:"{content.border.color}",borderRadius:"{content.border.radius}"},header:{borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",padding:"1.125rem",borderRadius:"5px 5px 0 0"},toggleableHeader:{padding:"0.25rem 1.125rem"},title:{fontWeight:"700"},content:{padding:"1.125rem"},footer:{padding:"1.125rem"},colorScheme:{light:{header:{background:"{surface.50}",color:"{text.color}"}},dark:{header:{background:"{surface.800}",color:"{text.color}"}}}},sC={root:{gap:"0",transitionDuration:"{transition.duration}"},panel:{background:"{content.background}",borderColor:"{content.border.color}",borderWidth:"1px",color:"{content.color}",padding:"0.25rem 0.25rem",borderRadius:"0",first:{borderWidth:"1px 1px 0 1px",topBorderRadius:"{content.border.radius}"},last:{borderWidth:"0 1px 1px 1px",bottomBorderRadius:"{content.border.radius}"}},item:{focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",gap:"0.5rem",padding:"{navigation.item.padding}",borderRadius:"{content.border.radius}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},submenu:{indent:"1rem"},submenuIcon:{color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}"}},lC={meter:{background:"{content.border.color}",borderRadius:"{content.border.radius}",height:".75rem"},icon:{color:"{form.field.icon.color}"},overlay:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",padding:"{overlay.popover.padding}",shadow:"{overlay.popover.shadow}"},content:{gap:"0.75rem"},colorScheme:{light:{strength:{weakBackground:"{red.500}",mediumBackground:"{amber.500}",strongBackground:"{green.500}"}},dark:{strength:{weakBackground:"{red.400}",mediumBackground:"{amber.400}",strongBackground:"{green.400}"}}}},cC={root:{gap:"1.125rem"},controls:{gap:"0.5rem"}},dC={root:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},content:{padding:"{overlay.popover.padding}"}},uC={root:{background:"{content.border.color}",borderRadius:"{content.border.radius}",height:"1.5rem"},value:{background:"{primary.color}"},label:{color:"{primary.contrast.color}",fontSize:"0.875rem",fontWeight:"600"}},fC={colorScheme:{light:{root:{"color.1":"{pink.500}","color.2":"{sky.500}","color.3":"{emerald.500}","color.4":"{amber.500}"}},dark:{root:{"color.1":"{pink.400}","color.2":"{sky.400}","color.3":"{emerald.400}","color.4":"{amber.400}"}}}},hC={root:{width:"1.5rem",height:"1.5rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1.25rem",height:"1.25rem"},lg:{width:"1.75rem",height:"1.75rem"}},icon:{size:"1rem",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.75rem"},lg:{size:"1.25rem"}}},gC={root:{gap:"0.25rem",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},icon:{size:"1.25rem",color:"{text.muted.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},mC={colorScheme:{light:{root:{background:"rgba(0,0,0,0.1)"}},dark:{root:{background:"rgba(255,255,255,0.3)"}}}},pC={root:{transitionDuration:"{transition.duration}"},bar:{size:"9px",borderRadius:"{border.radius.sm}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{bar:{background:"{surface.200}"}},dark:{bar:{background:"{surface.700}"}}}},bC={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},clearIcon:{color:"{form.field.icon.color}"},checkmark:{color:"{list.option.color}",gutterStart:"-0.5rem",gutterEnd:"0.5rem"},emptyMessage:{padding:"{list.option.padding}"}},yC={root:{borderRadius:"{form.field.border.radius}"},colorScheme:{light:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}},dark:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}}}},kC={root:{borderRadius:"{content.border.radius}"},colorScheme:{light:{root:{background:"{surface.200}",animationBackground:"rgba(255,255,255,0.4)"}},dark:{root:{background:"rgba(255, 255, 255, 0.06)",animationBackground:"rgba(255, 255, 255, 0.04)"}}}},xC={root:{transitionDuration:"{transition.duration}"},track:{background:"{content.border.color}",borderRadius:"{content.border.radius}",size:"3px"},range:{background:"{primary.color}"},handle:{width:"16px",height:"16px",borderRadius:"50%",background:"{primary.color}",hoverBackground:"{primary.color}",content:{borderRadius:"50%",hoverBackground:"{primary.color}",width:"12px",height:"12px",shadow:"none"},focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},colorScheme:{light:{handle:{contentBackground:"{surface.0}"}},dark:{handle:{contentBackground:"{surface.950}"}}}},vC={root:{gap:"0.5rem",transitionDuration:"{transition.duration}"}},wC={root:{borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)"}},CC={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",transitionDuration:"{transition.duration}"},gutter:{background:"{content.border.color}"},handle:{size:"24px",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{handle:{background:"{surface.400}"}},dark:{handle:{background:"{surface.600}"}}}},_C={root:{transitionDuration:"{transition.duration}"},separator:{background:"{content.border.color}",activeBackground:"{primary.color}",margin:"0 0 0 1.625rem",size:"2px"},step:{padding:"0.5rem",gap:"1rem"},stepHeader:{padding:"0",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},stepTitle:{color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},stepNumber:{background:"{content.background}",activeBackground:"{primary.color}",borderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",activeColor:"{primary.contrast.color}",size:"2.25rem",fontSize:"1.125rem",fontWeight:"500",borderRadius:"50%",shadow:"none"},steppanels:{padding:"0.875rem 0.5rem 1.125rem 0.5rem"},steppanel:{background:"{content.background}",color:"{content.color}",padding:"0",indent:"1rem"}},SC={root:{transitionDuration:"{transition.duration}"},separator:{background:"{content.border.color}"},itemLink:{borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},itemLabel:{color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},itemNumber:{background:"{content.background}",activeBackground:"{primary.color}",borderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",activeColor:"{primary.contrast.color}",size:"2.25rem",fontSize:"1.125rem",fontWeight:"500",borderRadius:"50%",shadow:"none"}},BC={root:{transitionDuration:"{transition.duration}"},tablist:{borderWidth:"0",background:"{content.background}",borderColor:"{content.border.color}"},item:{borderWidth:"2px 0 0 0",borderColor:"transparent",hoverBorderColor:"transparent",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.25rem",fontWeight:"600",margin:"0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},itemIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},activeBar:{height:"0",bottom:"0",background:"transparent"},colorScheme:{light:{item:{background:"{surface.50}",hoverBackground:"{surface.100}",activeBackground:"{surface.0}"}},dark:{item:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.900}"}}}},EC={root:{transitionDuration:"{transition.duration}"},tablist:{borderWidth:"0",background:"{content.background}",borderColor:"{content.border.color}"},tab:{borderWidth:"2px 0 0 0",borderColor:"transparent",hoverBorderColor:"transparent",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.25rem",fontWeight:"700",margin:"0",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},tabpanel:{background:"{content.background}",color:"{content.color}",padding:"0.875rem 1.125rem 1.125rem 1.125rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},navButton:{background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",width:"2.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},activeBar:{height:"0",bottom:"0",background:"transparent"},colorScheme:{light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"},tab:{background:"{surface.50}",hoverBackground:"{surface.100}",activeBackground:"{surface.0}"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"},tab:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.900}"}}}},RC={root:{transitionDuration:"{transition.duration}"},tabList:{background:"{content.background}",borderColor:"{content.border.color}"},tab:{borderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},tabPanel:{background:"{content.background}",color:"{content.color}"},navButton:{background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}"},colorScheme:{light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}}},DC={root:{fontSize:"0.875rem",fontWeight:"700",padding:"0.25rem 0.5rem",gap:"0.25rem",borderRadius:"{content.border.radius}",roundedBorderRadius:"{border.radius.xl}"},icon:{size:"0.75rem"},colorScheme:{light:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.500}",color:"{surface.0}"},info:{background:"{sky.500}",color:"{surface.0}"},warn:{background:"{orange.500}",color:"{surface.0}"},danger:{background:"{red.500}",color:"{surface.0}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"{green.400}",color:"{green.950}"},info:{background:"{sky.400}",color:"{sky.950}"},warn:{background:"{orange.400}",color:"{orange.950}"},danger:{background:"{red.400}",color:"{red.950}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}}},OC={root:{background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.color}",height:"18rem",padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{form.field.border.radius}"},prompt:{gap:"0.25rem"},commandResponse:{margin:"2px 0"}},NC={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}}},TC={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{mobileIndent:"1.25rem"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"}},PC={event:{minHeight:"5rem"},horizontal:{eventContent:{padding:"1rem 0"}},vertical:{eventContent:{padding:"0 1rem"}},eventMarker:{size:"1.125rem",borderRadius:"50%",borderWidth:"2px",background:"{content.background}",borderColor:"{primary.color}",content:{borderRadius:"50%",size:"0.375rem",background:"transparent",insetShadow:"none"}},eventConnector:{color:"{content.border.color}",size:"2px"}},$C={root:{width:"25rem",borderRadius:"{content.border.radius}",borderWidth:"0 0 0 6px",transitionDuration:"{transition.duration}"},icon:{size:"1.25rem"},content:{padding:"{overlay.popover.padding}",gap:"0.5rem"},text:{gap:"0.5rem"},summary:{fontWeight:"500",fontSize:"1rem"},detail:{fontWeight:"500",fontSize:"0.875rem"},closeButton:{width:"2rem",height:"2rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},closeIcon:{size:"1rem"},colorScheme:{light:{blur:"1.5px",info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.500}",color:"{blue.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {blue.200}"}}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.500}",color:"{green.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {green.200}"}}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.500}",color:"{yellow.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {yellow.200}"}}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.500}",color:"{red.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {red.200}"}}},secondary:{background:"{surface.100}",borderColor:"{surface.500}",color:"{surface.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {surface.200}"}}},contrast:{background:"{surface.900}",borderColor:"{primary.color}",color:"{surface.50}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {surface.400}"}}}},dark:{blur:"10px",info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {blue.500}, transparent 80%)"}}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {green.500}, transparent 80%)"}}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {yellow.500}, transparent 80%)"}}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {red.500}, transparent 80%)"}}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.300}, transparent 80%)"}}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",detailColor:"{surface.950}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.950}, transparent 80%)"}}}}}},AC={root:{padding:"0.625rem 1rem",borderRadius:"{content.border.radius}",gap:"0.5rem",fontWeight:"500",background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.color}",hoverColor:"{form.field.color}",checkedBackground:"{highlight.background}",checkedColor:"{highlight.color}",checkedBorderColor:"{form.field.border.color}",disabledBackground:"{form.field.disabled.background}",disabledBorderColor:"{form.field.disabled.background}",disabledColor:"{form.field.disabled.color}",invalidBorderColor:"{form.field.invalid.border.color}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",padding:"0.5rem 0.75rem"},lg:{fontSize:"{form.field.lg.font.size}",padding:"0.75rem 1.25rem"}},icon:{color:"{text.muted.color}",hoverColor:"{text.muted.color}",checkedColor:"{highlight.color}",disabledColor:"{form.field.disabled.color}"},content:{left:"0.25rem",top:"0.25rem",checkedBackground:"transparent",checkedShadow:"none"},colorScheme:{light:{root:{hoverBackground:"{surface.100}"}},dark:{root:{hoverBackground:"{surface.800}"}}}},MC={root:{width:"3rem",height:"1.75rem",borderRadius:"30px",gap:"0.25rem",shadow:"{form.field.shadow}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},borderWidth:"1px",borderColor:"transparent",hoverBorderColor:"transparent",checkedBorderColor:"transparent",checkedHoverBorderColor:"transparent",invalidBorderColor:"{form.field.invalid.border.color}",transitionDuration:"{form.field.transition.duration}",slideDuration:"0.2s"},handle:{borderRadius:"50%",size:"1.25rem"},colorScheme:{light:{root:{background:"{surface.300}",disabledBackground:"{form.field.disabled.background}",hoverBackground:"{surface.400}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.0}",disabledBackground:"{form.field.disabled.color}",hoverBackground:"{surface.0}",checkedBackground:"{surface.0}",checkedHoverBackground:"{surface.0}",color:"{text.muted.color}",hoverColor:"{text.color}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}},dark:{root:{background:"{surface.700}",disabledBackground:"{surface.600}",hoverBackground:"{surface.600}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.400}",disabledBackground:"{surface.900}",hoverBackground:"{surface.300}",checkedBackground:"{surface.900}",checkedHoverBackground:"{surface.900}",color:"{surface.900}",hoverColor:"{surface.800}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}}}},VC={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.75rem"},colorScheme:{light:{root:{background:"{surface.50}",color:"{content.color}"}},dark:{root:{background:"{surface.800}",color:"{content.color}"}}}},FC={root:{maxWidth:"12.5rem",gutter:"0.25rem",shadow:"{overlay.popover.shadow}",padding:"0.625rem 0.75rem",borderRadius:"{overlay.popover.border.radius}"},colorScheme:{light:{root:{background:"{surface.700}",color:"{surface.0}"}},dark:{root:{background:"{surface.700}",color:"{surface.0}"}}}},IC={root:{background:"{content.background}",color:"{content.color}",padding:"1rem",gap:"2px",indent:"1rem",transitionDuration:"{transition.duration}"},node:{padding:"0.375rem 0.625rem",borderRadius:"{content.border.radius}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.color}",hoverColor:"{text.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"},gap:"0.25rem"},nodeIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}"},nodeToggleButton:{borderRadius:"50%",size:"1.75rem",hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedHoverColor:"{primary.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},loadingIcon:{size:"2rem"},filter:{margin:"0 0 0.5rem 0"}},LC={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},tree:{padding:"{list.padding}"},clearIcon:{color:"{form.field.icon.color}"},emptyMessage:{padding:"{list.option.padding}"},chip:{borderRadius:"{border.radius.sm}"}},zC={root:{transitionDuration:"{transition.duration}"},header:{borderColor:"{treetable.border.color}",borderWidth:"1px 0 1px 0",padding:"0.75rem 1rem"},headerCell:{selectedBackground:"{highlight.background}",borderColor:"{treetable.border.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},columnTitle:{fontWeight:"700"},row:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{sr.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},bodyCell:{borderColor:"{treetable.border.color}",padding:"0.75rem 1rem",gap:"0.5rem"},footerCell:{borderColor:"{treetable.border.color}",padding:"0.75rem 1rem"},columnFooter:{fontWeight:"700"},footer:{borderColor:"{treetable.border.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},columnResizerWidth:"0.5rem",resizeIndicator:{width:"1px",color:"{primary.color}"},sortIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},loadingIcon:{size:"2rem"},nodeToggleButton:{hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},paginatorTop:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},colorScheme:{light:{root:{borderColor:"{content.border.color}"},header:{background:"{surface.50}",color:"{text.color}"},headerCell:{background:"{surface.50}",hoverBackground:"{surface.100}",color:"{text.color}"},footer:{background:"{surface.50}",color:"{text.color}"},footerCell:{background:"{surface.50}",color:"{text.color}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},header:{background:"{surface.800}",color:"{text.color}"},headerCell:{background:"{surface.800}",hoverBackground:"{surface.700}",color:"{text.color}"},footer:{background:"{surface.800}",color:"{text.color}"},footerCell:{background:"{surface.800}",color:"{text.color}"},bodyCell:{selectedBorderColor:"{primary.900}"}}}},jC={loader:{mask:{background:"{content.background}",color:"{text.muted.color}"},icon:{size:"2rem"}}};function _r(t){"@babel/helpers - typeof";return _r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_r(t)}function $c(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,r)}return o}function Ac(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?$c(Object(o),!0).forEach(function(r){WC(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):$c(Object(o)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))})}return t}function WC(t,e,o){return(e=HC(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function HC(t){var e=UC(t,"string");return _r(e)=="symbol"?e:e+""}function UC(t,e){if(_r(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var r=o.call(t,e||"default");if(_r(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var qC=Ac(Ac({},fw),{},{components:{accordion:lw,autocomplete:cw,avatar:dw,badge:uw,blockui:hw,breadcrumb:gw,button:mw,datepicker:Ew,card:pw,carousel:bw,cascadeselect:yw,checkbox:kw,chip:xw,colorpicker:vw,confirmdialog:ww,confirmpopup:Cw,contextmenu:_w,dataview:Bw,datatable:Sw,dialog:Rw,divider:Dw,dock:Ow,drawer:Nw,editor:Tw,fieldset:Pw,fileupload:$w,iftalabel:Fw,floatlabel:Aw,galleria:Mw,iconfield:Vw,image:Iw,imagecompare:Lw,inlinemessage:zw,inplace:jw,inputchips:Ww,inputgroup:Hw,inputnumber:Uw,inputotp:qw,inputtext:Yw,knob:Xw,listbox:Kw,megamenu:Gw,menu:Jw,menubar:Qw,message:Zw,metergroup:eC,multiselect:tC,orderlist:oC,organizationchart:rC,overlaybadge:nC,popover:dC,paginator:iC,password:lC,panel:aC,panelmenu:sC,picklist:cC,progressbar:uC,progressspinner:fC,radiobutton:hC,rating:gC,scrollpanel:pC,select:bC,selectbutton:yC,skeleton:kC,slider:xC,speeddial:vC,splitter:CC,splitbutton:wC,stepper:_C,steps:SC,tabmenu:BC,tabs:EC,tabview:RC,textarea:NC,tieredmenu:TC,tag:DC,terminal:OC,timeline:PC,togglebutton:AC,toggleswitch:MC,tree:IC,treeselect:LC,treetable:zC,toast:$C,toolbar:VC,virtualscroller:jC},directives:{tooltip:FC,ripple:mC}});function YC(){const{layoutState:t,layoutConfig:e,setMenuMode:o,isDarkTheme:r}=wx(),n={Aura:sw,Lara:qC};a.ref(Object.keys(n));const i=a.ref(e.preset);a.ref(e.darkTheme),a.ref(e.menuMode),a.ref([{name:"Light",value:!1},{name:"Dark",value:!0}]);const s=a.ref([{name:"noir",palette:{}},{name:"emerald",palette:{500:"#10b981"}},{name:"green",palette:{500:"#22c55e"}},{name:"lime",palette:{500:"#84cc16"}},{name:"orange",palette:{500:"#f97316"}},{name:"amber",palette:{500:"#f59e0b"}},{name:"yellow",palette:{500:"#eab308"}},{name:"teal",palette:{500:"#14b8a6"}},{name:"cyan",palette:{500:"#06b6d4"}},{name:"sky",palette:{500:"#0ea5e9"}},{name:"blue",palette:{500:"#3b82f6"}},{name:"indigo",palette:{500:"#6366f1"}},{name:"violet",palette:{500:"#8b5cf6"}},{name:"purple",palette:{500:"#a855f7"}},{name:"fuchsia",palette:{500:"#d946ef"}},{name:"pink",palette:{500:"#ec4899"}},{name:"rose",palette:{500:"#f43f5e"}}]),l=a.ref([{name:"slate",palette:{500:"#64748b"}},{name:"gray",palette:{500:"#6b7280"}},{name:"zinc",palette:{500:"#71717a"}},{name:"neutral",palette:{500:"#737373"}},{name:"stone",palette:{500:"#78716c"}},{name:"soho",palette:{500:"#8e8f93"}},{name:"viva",palette:{500:"#87898a"}},{name:"ocean",palette:{500:"#828787"}}]);function c(){if(!document.startViewTransition){d();return}document.startViewTransition(()=>d())}function d(){e.darkTheme=!e.darkTheme,e.menuTheme=r.value?"dark":"light",document.documentElement.classList.toggle("app-dark")}function u(){const m=s.value.find(p=>p.name===e.primary);if(m.name==="noir"){const p=[50,100,200,300,400,500,600,700,800,900,950],b={};return p.forEach(y=>{b[y]=`{surface.${y}}`}),{semantic:{primary:b,colorScheme:{light:{primary:{color:"{primary.950}",contrastColor:"#ffffff",hoverColor:"{primary.800}",activeColor:"{primary.700}"},highlight:{background:"{primary.950}",focusBackground:"{primary.700}",color:"#ffffff",focusColor:"#ffffff"}},dark:{primary:{color:"{primary.50}",contrastColor:"{primary.950}",hoverColor:"{primary.200}",activeColor:"{primary.300}"},highlight:{background:"{primary.50}",focusBackground:"{primary.300}",color:"{primary.950}",focusColor:"{primary.950}"}}}}}}else return{semantic:{primary:m.palette,colorScheme:{light:{primary:{color:"{primary.500}",contrastColor:"#ffffff",hoverColor:"{primary.600}",activeColor:"{primary.700}"},highlight:{background:"{primary.50}",focusBackground:"{primary.100}",color:"{primary.700}",focusColor:"{primary.800}"}},dark:{primary:{color:"{primary.400}",contrastColor:"{surface.900}",hoverColor:"{primary.300}",activeColor:"{primary.200}"},highlight:{background:"color-mix(in srgb, {primary.400}, transparent 84%)",focusBackground:"color-mix(in srgb, {primary.400}, transparent 76%)",color:"rgba(255,255,255,.87)",focusColor:"rgba(255,255,255,.87)"}}}}}}function f(m){var p;if((p=m.semantic)!=null&&p.primary){const b=m.semantic.primary[500];document.documentElement.style.setProperty("--p-button-primary-background",b),document.documentElement.style.setProperty("--p-button-primary-border-color",b)}}function h(m,p){let b;if(m==="primary"){if(b=s.value.find(y=>y.name===p),!b)return;e.primary=b.name,f({semantic:{primary:b.palette}})}if(m==="surface"){if(b=l.value.find(y=>y.name===p),!b)return;e.surface=b.name,Vg(b.palette)}}function g(){var b;e.preset=i.value;const m=n[i.value],p=(b=l.value.find(y=>y.name===e.surface))==null?void 0:b.palette;rl().preset(m).preset(u()).surfacePalette(p).use({useDefaultOptions:!0})}return{toggleDarkMode:c,updateColors:h,onPresetChange:g}}const XC={install(t,e){t.component("CSEntityGrid",zi),t.component("csentitygrid",zi),t.component("CSEntityList",Sl),t.component("csentitylist",Sl),t.component("CSFieldExpression",Hl),t.component("csfieldexpression",Hl),t.component("CSEntityBarChart",kl),t.component("csentitybarchart",kl),t.component("CSEntityLineChart",xl),t.component("csentitylinechart",xl),t.component("CSEntityPieChart",vl),t.component("csentitypiechart",vl),t.component("CSEntityPolarChart",wl),t.component("csentitypolarchart",wl),t.component("CSEntityRadarChart",Cl),t.component("csentityradarchart",Cl),t.component("CSEntity360View",_l),t.component("csentity360view",_l),t.component("CSEntityListing",Bl),t.component("csentitylisting",Bl),t.component("CSEntityListingTile",El),t.component("csentitylistingtile",El),t.component("CSEntityListingCarousel",jl),t.component("csentitylistingcarousel",jl),t.component("CSEntitySelection",Ki),t.component("csentityselection",Ki),t.component("CSEntityExplorer",Ul),t.component("csentityexplorer",Ul),t.component("CSMenu",Oc),t.component("csmenu",Oc),t.component("CSTextInput",Nc),t.component("cstextinput",Nc)}},Mc=6048e5,KC=864e5,Vc=Symbol.for("constructDateFrom");function to(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Vc in t?t[Vc](e):t instanceof Date?new t.constructor(e):new Date(e)}function yt(t,e){return to(e||t,t)}let GC={};function In(){return GC}function Sr(t,e){var l,c,d,u;const o=In(),r=(e==null?void 0:e.weekStartsOn)??((c=(l=e==null?void 0:e.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??o.weekStartsOn??((u=(d=o.locale)==null?void 0:d.options)==null?void 0:u.weekStartsOn)??0,n=yt(t,e==null?void 0:e.in),i=n.getDay(),s=(i<r?7:0)+i-r;return n.setDate(n.getDate()-s),n.setHours(0,0,0,0),n}function Ln(t,e){return Sr(t,{...e,weekStartsOn:1})}function Fc(t,e){const o=yt(t,e==null?void 0:e.in),r=o.getFullYear(),n=to(o,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const i=Ln(n),s=to(o,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const l=Ln(s);return o.getTime()>=i.getTime()?r+1:o.getTime()>=l.getTime()?r:r-1}function Ic(t){const e=yt(t),o=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return o.setUTCFullYear(e.getFullYear()),+t-+o}function JC(t,...e){const o=to.bind(null,e.find(r=>typeof r=="object"));return e.map(o)}function Lc(t,e){const o=yt(t,e==null?void 0:e.in);return o.setHours(0,0,0,0),o}function QC(t,e,o){const[r,n]=JC(o==null?void 0:o.in,t,e),i=Lc(r),s=Lc(n),l=+i-Ic(i),c=+s-Ic(s);return Math.round((l-c)/KC)}function ZC(t,e){const o=Fc(t,e),r=to(t,0);return r.setFullYear(o,0,4),r.setHours(0,0,0,0),Ln(r)}function e1(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function t1(t){return!(!e1(t)&&typeof t!="number"||isNaN(+yt(t)))}function o1(t,e){const o=yt(t,e==null?void 0:e.in);return o.setFullYear(o.getFullYear(),0,1),o.setHours(0,0,0,0),o}const r1={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},n1=(t,e,o)=>{let r;const n=r1[t];return typeof n=="string"?r=n:e===1?r=n.one:r=n.other.replace("{{count}}",e.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+r:r+" ago":r};function da(t){return(e={})=>{const o=e.width?String(e.width):t.defaultWidth;return t.formats[o]||t.formats[t.defaultWidth]}}const i1={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},a1={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},s1={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},l1={date:da({formats:i1,defaultWidth:"full"}),time:da({formats:a1,defaultWidth:"full"}),dateTime:da({formats:s1,defaultWidth:"full"})},c1={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},d1=(t,e,o,r)=>c1[t];function Br(t){return(e,o)=>{const r=o!=null&&o.context?String(o.context):"standalone";let n;if(r==="formatting"&&t.formattingValues){const s=t.defaultFormattingWidth||t.defaultWidth,l=o!=null&&o.width?String(o.width):s;n=t.formattingValues[l]||t.formattingValues[s]}else{const s=t.defaultWidth,l=o!=null&&o.width?String(o.width):t.defaultWidth;n=t.values[l]||t.values[s]}const i=t.argumentCallback?t.argumentCallback(e):e;return n[i]}}const u1={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},f1={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},h1={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},g1={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},m1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},p1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},b1={ordinalNumber:(t,e)=>{const o=Number(t),r=o%100;if(r>20||r<10)switch(r%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},era:Br({values:u1,defaultWidth:"wide"}),quarter:Br({values:f1,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Br({values:h1,defaultWidth:"wide"}),day:Br({values:g1,defaultWidth:"wide"}),dayPeriod:Br({values:m1,defaultWidth:"wide",formattingValues:p1,defaultFormattingWidth:"wide"})};function Er(t){return(e,o={})=>{const r=o.width,n=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],i=e.match(n);if(!i)return null;const s=i[0],l=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?k1(l,f=>f.test(s)):y1(l,f=>f.test(s));let d;d=t.valueCallback?t.valueCallback(c):c,d=o.valueCallback?o.valueCallback(d):d;const u=e.slice(s.length);return{value:d,rest:u}}}function y1(t,e){for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&e(t[o]))return o}function k1(t,e){for(let o=0;o<t.length;o++)if(e(t[o]))return o}function x1(t){return(e,o={})=>{const r=e.match(t.matchPattern);if(!r)return null;const n=r[0],i=e.match(t.parsePattern);if(!i)return null;let s=t.valueCallback?t.valueCallback(i[0]):i[0];s=o.valueCallback?o.valueCallback(s):s;const l=e.slice(n.length);return{value:s,rest:l}}}const v1=/^(\d+)(th|st|nd|rd)?/i,w1=/\d+/i,C1={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},_1={any:[/^b/i,/^(a|c)/i]},S1={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},B1={any:[/1/i,/2/i,/3/i,/4/i]},E1={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},R1={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},D1={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},O1={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},N1={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},T1={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},P1={ordinalNumber:x1({matchPattern:v1,parsePattern:w1,valueCallback:t=>parseInt(t,10)}),era:Er({matchPatterns:C1,defaultMatchWidth:"wide",parsePatterns:_1,defaultParseWidth:"any"}),quarter:Er({matchPatterns:S1,defaultMatchWidth:"wide",parsePatterns:B1,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Er({matchPatterns:E1,defaultMatchWidth:"wide",parsePatterns:R1,defaultParseWidth:"any"}),day:Er({matchPatterns:D1,defaultMatchWidth:"wide",parsePatterns:O1,defaultParseWidth:"any"}),dayPeriod:Er({matchPatterns:N1,defaultMatchWidth:"any",parsePatterns:T1,defaultParseWidth:"any"})},$1={code:"en-US",formatDistance:n1,formatLong:l1,formatRelative:d1,localize:b1,match:P1,options:{weekStartsOn:0,firstWeekContainsDate:1}};function A1(t,e){const o=yt(t,e==null?void 0:e.in);return QC(o,o1(o))+1}function M1(t,e){const o=yt(t,e==null?void 0:e.in),r=+Ln(o)-+ZC(o);return Math.round(r/Mc)+1}function zc(t,e){var u,f,h,g;const o=yt(t,e==null?void 0:e.in),r=o.getFullYear(),n=In(),i=(e==null?void 0:e.firstWeekContainsDate)??((f=(u=e==null?void 0:e.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??n.firstWeekContainsDate??((g=(h=n.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,s=to((e==null?void 0:e.in)||t,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);const l=Sr(s,e),c=to((e==null?void 0:e.in)||t,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const d=Sr(c,e);return+o>=+l?r+1:+o>=+d?r:r-1}function V1(t,e){var l,c,d,u;const o=In(),r=(e==null?void 0:e.firstWeekContainsDate)??((c=(l=e==null?void 0:e.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??o.firstWeekContainsDate??((u=(d=o.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??1,n=zc(t,e),i=to((e==null?void 0:e.in)||t,0);return i.setFullYear(n,0,r),i.setHours(0,0,0,0),Sr(i,e)}function F1(t,e){const o=yt(t,e==null?void 0:e.in),r=+Sr(o,e)-+V1(o,e);return Math.round(r/Mc)+1}function be(t,e){const o=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return o+r}const oo={y(t,e){const o=t.getFullYear(),r=o>0?o:1-o;return be(e==="yy"?r%100:r,e.length)},M(t,e){const o=t.getMonth();return e==="M"?String(o+1):be(o+1,2)},d(t,e){return be(t.getDate(),e.length)},a(t,e){const o=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return o.toUpperCase();case"aaa":return o;case"aaaaa":return o[0];case"aaaa":default:return o==="am"?"a.m.":"p.m."}},h(t,e){return be(t.getHours()%12||12,e.length)},H(t,e){return be(t.getHours(),e.length)},m(t,e){return be(t.getMinutes(),e.length)},s(t,e){return be(t.getSeconds(),e.length)},S(t,e){const o=e.length,r=t.getMilliseconds(),n=Math.trunc(r*Math.pow(10,o-3));return be(n,e.length)}},Ho={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},jc={G:function(t,e,o){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return o.era(r,{width:"abbreviated"});case"GGGGG":return o.era(r,{width:"narrow"});case"GGGG":default:return o.era(r,{width:"wide"})}},y:function(t,e,o){if(e==="yo"){const r=t.getFullYear(),n=r>0?r:1-r;return o.ordinalNumber(n,{unit:"year"})}return oo.y(t,e)},Y:function(t,e,o,r){const n=zc(t,r),i=n>0?n:1-n;if(e==="YY"){const s=i%100;return be(s,2)}return e==="Yo"?o.ordinalNumber(i,{unit:"year"}):be(i,e.length)},R:function(t,e){const o=Fc(t);return be(o,e.length)},u:function(t,e){const o=t.getFullYear();return be(o,e.length)},Q:function(t,e,o){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return be(r,2);case"Qo":return o.ordinalNumber(r,{unit:"quarter"});case"QQQ":return o.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return o.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,o){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return be(r,2);case"qo":return o.ordinalNumber(r,{unit:"quarter"});case"qqq":return o.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,o){const r=t.getMonth();switch(e){case"M":case"MM":return oo.M(t,e);case"Mo":return o.ordinalNumber(r+1,{unit:"month"});case"MMM":return o.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,o){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return be(r+1,2);case"Lo":return o.ordinalNumber(r+1,{unit:"month"});case"LLL":return o.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,o,r){const n=F1(t,r);return e==="wo"?o.ordinalNumber(n,{unit:"week"}):be(n,e.length)},I:function(t,e,o){const r=M1(t);return e==="Io"?o.ordinalNumber(r,{unit:"week"}):be(r,e.length)},d:function(t,e,o){return e==="do"?o.ordinalNumber(t.getDate(),{unit:"date"}):oo.d(t,e)},D:function(t,e,o){const r=A1(t);return e==="Do"?o.ordinalNumber(r,{unit:"dayOfYear"}):be(r,e.length)},E:function(t,e,o){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return o.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return o.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(r,{width:"short",context:"formatting"});case"EEEE":default:return o.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,o,r){const n=t.getDay(),i=(n-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return be(i,2);case"eo":return o.ordinalNumber(i,{unit:"day"});case"eee":return o.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return o.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(n,{width:"short",context:"formatting"});case"eeee":default:return o.day(n,{width:"wide",context:"formatting"})}},c:function(t,e,o,r){const n=t.getDay(),i=(n-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return be(i,e.length);case"co":return o.ordinalNumber(i,{unit:"day"});case"ccc":return o.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return o.day(n,{width:"narrow",context:"standalone"});case"cccccc":return o.day(n,{width:"short",context:"standalone"});case"cccc":default:return o.day(n,{width:"wide",context:"standalone"})}},i:function(t,e,o){const r=t.getDay(),n=r===0?7:r;switch(e){case"i":return String(n);case"ii":return be(n,e.length);case"io":return o.ordinalNumber(n,{unit:"day"});case"iii":return o.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(r,{width:"short",context:"formatting"});case"iiii":default:return o.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,o){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,e,o){const r=t.getHours();let n;switch(r===12?n=Ho.noon:r===0?n=Ho.midnight:n=r/12>=1?"pm":"am",e){case"b":case"bb":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,e,o){const r=t.getHours();let n;switch(r>=17?n=Ho.evening:r>=12?n=Ho.afternoon:r>=4?n=Ho.morning:n=Ho.night,e){case"B":case"BB":case"BBB":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(t,e,o){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),o.ordinalNumber(r,{unit:"hour"})}return oo.h(t,e)},H:function(t,e,o){return e==="Ho"?o.ordinalNumber(t.getHours(),{unit:"hour"}):oo.H(t,e)},K:function(t,e,o){const r=t.getHours()%12;return e==="Ko"?o.ordinalNumber(r,{unit:"hour"}):be(r,e.length)},k:function(t,e,o){let r=t.getHours();return r===0&&(r=24),e==="ko"?o.ordinalNumber(r,{unit:"hour"}):be(r,e.length)},m:function(t,e,o){return e==="mo"?o.ordinalNumber(t.getMinutes(),{unit:"minute"}):oo.m(t,e)},s:function(t,e,o){return e==="so"?o.ordinalNumber(t.getSeconds(),{unit:"second"}):oo.s(t,e)},S:function(t,e){return oo.S(t,e)},X:function(t,e,o){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return Hc(r);case"XXXX":case"XX":return Co(r);case"XXXXX":case"XXX":default:return Co(r,":")}},x:function(t,e,o){const r=t.getTimezoneOffset();switch(e){case"x":return Hc(r);case"xxxx":case"xx":return Co(r);case"xxxxx":case"xxx":default:return Co(r,":")}},O:function(t,e,o){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Wc(r,":");case"OOOO":default:return"GMT"+Co(r,":")}},z:function(t,e,o){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Wc(r,":");case"zzzz":default:return"GMT"+Co(r,":")}},t:function(t,e,o){const r=Math.trunc(+t/1e3);return be(r,e.length)},T:function(t,e,o){return be(+t,e.length)}};function Wc(t,e=""){const o=t>0?"-":"+",r=Math.abs(t),n=Math.trunc(r/60),i=r%60;return i===0?o+String(n):o+String(n)+e+be(i,2)}function Hc(t,e){return t%60===0?(t>0?"-":"+")+be(Math.abs(t)/60,2):Co(t,e)}function Co(t,e=""){const o=t>0?"-":"+",r=Math.abs(t),n=be(Math.trunc(r/60),2),i=be(r%60,2);return o+n+e+i}const Uc=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},qc=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},I1={p:qc,P:(t,e)=>{const o=t.match(/(P+)(p+)?/)||[],r=o[1],n=o[2];if(!n)return Uc(t,e);let i;switch(r){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;case"PPPP":default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",Uc(r,e)).replace("{{time}}",qc(n,e))}},L1=/^D+$/,z1=/^Y+$/,j1=["D","DD","YY","YYYY"];function W1(t){return L1.test(t)}function H1(t){return z1.test(t)}function U1(t,e,o){const r=q1(t,e,o);if(console.warn(r),j1.includes(t))throw new RangeError(r)}function q1(t,e,o){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${o}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Y1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,X1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,K1=/^'([^]*?)'?$/,G1=/''/g,J1=/[a-zA-Z]/;function Yc(t,e,o){var u,f,h,g;const r=In(),n=r.locale??$1,i=r.firstWeekContainsDate??((f=(u=r.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??1,s=r.weekStartsOn??((g=(h=r.locale)==null?void 0:h.options)==null?void 0:g.weekStartsOn)??0,l=yt(t,o==null?void 0:o.in);if(!t1(l))throw new RangeError("Invalid time value");let c=e.match(X1).map(m=>{const p=m[0];if(p==="p"||p==="P"){const b=I1[p];return b(m,n.formatLong)}return m}).join("").match(Y1).map(m=>{if(m==="''")return{isToken:!1,value:"'"};const p=m[0];if(p==="'")return{isToken:!1,value:Q1(m)};if(jc[p])return{isToken:!0,value:m};if(p.match(J1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:m}});n.localize.preprocessor&&(c=n.localize.preprocessor(l,c));const d={firstWeekContainsDate:i,weekStartsOn:s,locale:n};return c.map(m=>{if(!m.isToken)return m.value;const p=m.value;(H1(p)||W1(p))&&U1(p,e,String(t));const b=jc[p[0]];return b(l,p,n.localize,d)}).join("")}function Q1(t){const e=t.match(K1);return e?e[1].replace(G1,"'"):t}const Z1=Object.freeze(Object.defineProperty({__proto__:null,default:{beforeMount(t,e){const{value:o,arg:r}=e;if(t&&o){const n=Yc(new Date(o),r||"yyyy-MM-dd");t.textContent=n}},updated(t,e){const{value:o,arg:r}=e;if(t&&o){const n=Yc(new Date(o),r||"yyyy-MM-dd");t.textContent=n}}}},Symbol.toStringTag,{value:"Module"})),e_=Object.freeze(Object.defineProperty({__proto__:null,default:{beforeMount(t,e){const{value:o,arg:r}=e;o&&(t.textContent=t.textContent.toUpperCase())},updated(t,e){const{value:o,arg:r}=e;o&&(t.textContent=t.textContent.toUpperCase())}}},Symbol.toStringTag,{value:"Module"}));/*!
|
|
166
166
|
* @kurkle/color v0.3.4
|
|
167
167
|
* https://github.com/kurkle/color#readme
|
|
168
168
|
* (c) 2024 Jukka Kurkela
|
|
169
169
|
* Released under the MIT License
|
|
170
|
-
*/function Rr(t){return t+.5|0}const ro=(t,e,o)=>Math.max(Math.min(t,o),e);function Dr(t){return ro(Rr(t*2.55),0,255)}function no(t){return ro(Rr(t*255),0,255)}function Lt(t){return ro(Rr(t/2.55)/100,0,1)}function Xc(t){return ro(Rr(t*100),0,100)}const dt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},
|
|
170
|
+
*/function Rr(t){return t+.5|0}const ro=(t,e,o)=>Math.max(Math.min(t,o),e);function Dr(t){return ro(Rr(t*2.55),0,255)}function no(t){return ro(Rr(t*255),0,255)}function Lt(t){return ro(Rr(t/2.55)/100,0,1)}function Xc(t){return ro(Rr(t*100),0,100)}const dt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},ua=[..."0123456789ABCDEF"],t_=t=>ua[t&15],o_=t=>ua[(t&240)>>4]+ua[t&15],zn=t=>(t&240)>>4===(t&15),r_=t=>zn(t.r)&&zn(t.g)&&zn(t.b)&&zn(t.a);function n_(t){var e=t.length,o;return t[0]==="#"&&(e===4||e===5?o={r:255&dt[t[1]]*17,g:255&dt[t[2]]*17,b:255&dt[t[3]]*17,a:e===5?dt[t[4]]*17:255}:(e===7||e===9)&&(o={r:dt[t[1]]<<4|dt[t[2]],g:dt[t[3]]<<4|dt[t[4]],b:dt[t[5]]<<4|dt[t[6]],a:e===9?dt[t[7]]<<4|dt[t[8]]:255})),o}const i_=(t,e)=>t<255?e(t):"";function a_(t){var e=r_(t)?t_:o_;return t?"#"+e(t.r)+e(t.g)+e(t.b)+i_(t.a,e):void 0}const s_=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Kc(t,e,o){const r=e*Math.min(o,1-o),n=(i,s=(i+t/30)%12)=>o-r*Math.max(Math.min(s-3,9-s,1),-1);return[n(0),n(8),n(4)]}function l_(t,e,o){const r=(n,i=(n+t/60)%6)=>o-o*e*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function c_(t,e,o){const r=Kc(t,1,.5);let n;for(e+o>1&&(n=1/(e+o),e*=n,o*=n),n=0;n<3;n++)r[n]*=1-e-o,r[n]+=e;return r}function d_(t,e,o,r,n){return t===n?(e-o)/r+(e<o?6:0):e===n?(o-t)/r+2:(t-e)/r+4}function fa(t){const o=t.r/255,r=t.g/255,n=t.b/255,i=Math.max(o,r,n),s=Math.min(o,r,n),l=(i+s)/2;let c,d,u;return i!==s&&(u=i-s,d=l>.5?u/(2-i-s):u/(i+s),c=d_(o,r,n,u,i),c=c*60+.5),[c|0,d||0,l]}function ha(t,e,o,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,o,r)).map(no)}function ga(t,e,o){return ha(Kc,t,e,o)}function u_(t,e,o){return ha(c_,t,e,o)}function f_(t,e,o){return ha(l_,t,e,o)}function Gc(t){return(t%360+360)%360}function h_(t){const e=s_.exec(t);let o=255,r;if(!e)return;e[5]!==r&&(o=e[6]?Dr(+e[5]):no(+e[5]));const n=Gc(+e[2]),i=+e[3]/100,s=+e[4]/100;return e[1]==="hwb"?r=u_(n,i,s):e[1]==="hsv"?r=f_(n,i,s):r=ga(n,i,s),{r:r[0],g:r[1],b:r[2],a:o}}function g_(t,e){var o=fa(t);o[0]=Gc(o[0]+e),o=ga(o),t.r=o[0],t.g=o[1],t.b=o[2]}function m_(t){if(!t)return;const e=fa(t),o=e[0],r=Xc(e[1]),n=Xc(e[2]);return t.a<255?`hsla(${o}, ${r}%, ${n}%, ${Lt(t.a)})`:`hsl(${o}, ${r}%, ${n}%)`}const Jc={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Qc={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function p_(){const t={},e=Object.keys(Qc),o=Object.keys(Jc);let r,n,i,s,l;for(r=0;r<e.length;r++){for(s=l=e[r],n=0;n<o.length;n++)i=o[n],l=l.replace(i,Jc[i]);i=parseInt(Qc[s],16),t[l]=[i>>16&255,i>>8&255,i&255]}return t}let jn;function b_(t){jn||(jn=p_(),jn.transparent=[0,0,0,0]);const e=jn[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const y_=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function k_(t){const e=y_.exec(t);let o=255,r,n,i;if(e){if(e[7]!==r){const s=+e[7];o=e[8]?Dr(s):ro(s*255,0,255)}return r=+e[1],n=+e[3],i=+e[5],r=255&(e[2]?Dr(r):ro(r,0,255)),n=255&(e[4]?Dr(n):ro(n,0,255)),i=255&(e[6]?Dr(i):ro(i,0,255)),{r,g:n,b:i,a:o}}}function x_(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Lt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const ma=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Uo=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function v_(t,e,o){const r=Uo(Lt(t.r)),n=Uo(Lt(t.g)),i=Uo(Lt(t.b));return{r:no(ma(r+o*(Uo(Lt(e.r))-r))),g:no(ma(n+o*(Uo(Lt(e.g))-n))),b:no(ma(i+o*(Uo(Lt(e.b))-i))),a:t.a+o*(e.a-t.a)}}function Wn(t,e,o){if(t){let r=fa(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*o,e===0?360:1)),r=ga(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function Zc(t,e){return t&&Object.assign(e||{},t)}function ed(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=no(t[3]))):(e=Zc(t,{r:0,g:0,b:0,a:1}),e.a=no(e.a)),e}function w_(t){return t.charAt(0)==="r"?k_(t):h_(t)}class Or{constructor(e){if(e instanceof Or)return e;const o=typeof e;let r;o==="object"?r=ed(e):o==="string"&&(r=n_(e)||b_(e)||w_(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=Zc(this._rgb);return e&&(e.a=Lt(e.a)),e}set rgb(e){this._rgb=ed(e)}rgbString(){return this._valid?x_(this._rgb):void 0}hexString(){return this._valid?a_(this._rgb):void 0}hslString(){return this._valid?m_(this._rgb):void 0}mix(e,o){if(e){const r=this.rgb,n=e.rgb;let i;const s=o===i?.5:o,l=2*s-1,c=r.a-n.a,d=((l*c===-1?l:(l+c)/(1+l*c))+1)/2;i=1-d,r.r=255&d*r.r+i*n.r+.5,r.g=255&d*r.g+i*n.g+.5,r.b=255&d*r.b+i*n.b+.5,r.a=s*r.a+(1-s)*n.a,this.rgb=r}return this}interpolate(e,o){return e&&(this._rgb=v_(this._rgb,e._rgb,o)),this}clone(){return new Or(this.rgb)}alpha(e){return this._rgb.a=no(e),this}clearer(e){const o=this._rgb;return o.a*=1-e,this}greyscale(){const e=this._rgb,o=Rr(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=o,this}opaquer(e){const o=this._rgb;return o.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Wn(this._rgb,2,e),this}darken(e){return Wn(this._rgb,2,-e),this}saturate(e){return Wn(this._rgb,1,e),this}desaturate(e){return Wn(this._rgb,1,-e),this}rotate(e){return g_(this._rgb,e),this}}/*!
|
|
171
171
|
* Chart.js v4.4.7
|
|
172
172
|
* https://www.chartjs.org
|
|
173
173
|
* (c) 2024 Chart.js Contributors
|
|
174
174
|
* Released under the MIT License
|
|
175
|
-
*/function zt(){}const __=(()=>{let t=0;return()=>t++})();function fe(t){return t==null}function Re(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function de(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function $e(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function it(t,e){return $e(t)?t:e}function se(t,e){return typeof t>"u"?e:t}const S_=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,td=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function we(t,e,o){if(t&&typeof t.call=="function")return t.apply(o,e)}function ye(t,e,o,r){let n,i,s;if(Re(t))for(i=t.length,n=0;n<i;n++)e.call(o,t[n],n);else if(de(t))for(s=Object.keys(t),i=s.length,n=0;n<i;n++)e.call(o,t[s[n]],s[n])}function Hn(t,e){let o,r,n,i;if(!t||!e||t.length!==e.length)return!1;for(o=0,r=t.length;o<r;++o)if(n=t[o],i=e[o],n.datasetIndex!==i.datasetIndex||n.index!==i.index)return!1;return!0}function Un(t){if(Re(t))return t.map(Un);if(de(t)){const e=Object.create(null),o=Object.keys(t),r=o.length;let n=0;for(;n<r;++n)e[o[n]]=Un(t[o[n]]);return e}return t}function od(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function B_(t,e,o,r){if(!od(t))return;const n=e[t],i=o[t];de(n)&&de(i)?Nr(n,i,r):e[t]=Un(i)}function Nr(t,e,o){const r=Re(e)?e:[e],n=r.length;if(!de(t))return t;o=o||{};const i=o.merger||B_;let s;for(let l=0;l<n;++l){if(s=r[l],!de(s))continue;const c=Object.keys(s);for(let d=0,u=c.length;d<u;++d)i(c[d],t,s,o)}return t}function Tr(t,e){return Nr(t,e,{merger:E_})}function E_(t,e,o){if(!od(t))return;const r=e[t],n=o[t];de(r)&&de(n)?Tr(r,n):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Un(n))}const rd={"":t=>t,x:t=>t.x,y:t=>t.y};function R_(t){const e=t.split("."),o=[];let r="";for(const n of e)r+=n,r.endsWith("\\")?r=r.slice(0,-1)+".":(o.push(r),r="");return o}function D_(t){const e=R_(t);return o=>{for(const r of e){if(r==="")break;o=o&&o[r]}return o}}function io(t,e){return(rd[e]||(rd[e]=D_(e)))(t)}function ba(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Pr=t=>typeof t<"u",ao=t=>typeof t=="function",nd=(t,e)=>{if(t.size!==e.size)return!1;for(const o of t)if(!e.has(o))return!1;return!0};function O_(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const Ce=Math.PI,_e=2*Ce,N_=_e+Ce,qn=Number.POSITIVE_INFINITY,T_=Ce/180,Me=Ce/2,_o=Ce/4,id=Ce*2/3,so=Math.log10,Et=Math.sign;function $r(t,e,o){return Math.abs(t-e)<o}function ad(t){const e=Math.round(t);t=$r(t,e,t/1e3)?e:t;const o=Math.pow(10,Math.floor(so(t))),r=t/o;return(r<=1?1:r<=2?2:r<=5?5:10)*o}function P_(t){const e=[],o=Math.sqrt(t);let r;for(r=1;r<o;r++)t%r===0&&(e.push(r),e.push(t/r));return o===(o|0)&&e.push(o),e.sort((n,i)=>n-i).pop(),e}function qo(t){return!isNaN(parseFloat(t))&&isFinite(t)}function $_(t,e){const o=Math.round(t);return o-e<=t&&o+e>=t}function sd(t,e,o){let r,n,i;for(r=0,n=t.length;r<n;r++)i=t[r][o],isNaN(i)||(e.min=Math.min(e.min,i),e.max=Math.max(e.max,i))}function kt(t){return t*(Ce/180)}function ya(t){return t*(180/Ce)}function ld(t){if(!$e(t))return;let e=1,o=0;for(;Math.round(t*e)/e!==t;)e*=10,o++;return o}function cd(t,e){const o=e.x-t.x,r=e.y-t.y,n=Math.sqrt(o*o+r*r);let i=Math.atan2(r,o);return i<-.5*Ce&&(i+=_e),{angle:i,distance:n}}function ka(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function A_(t,e){return(t-e+N_)%_e-Ce}function at(t){return(t%_e+_e)%_e}function Ar(t,e,o,r){const n=at(t),i=at(e),s=at(o),l=at(i-n),c=at(s-n),d=at(n-i),u=at(n-s);return n===i||n===s||r&&i===s||l>c&&d<u}function je(t,e,o){return Math.max(e,Math.min(o,t))}function M_(t){return je(t,-32768,32767)}function jt(t,e,o,r=1e-6){return t>=Math.min(e,o)-r&&t<=Math.max(e,o)+r}function xa(t,e,o){o=o||(s=>t[s]<e);let r=t.length-1,n=0,i;for(;r-n>1;)i=n+r>>1,o(i)?n=i:r=i;return{lo:n,hi:r}}const Wt=(t,e,o,r)=>xa(t,o,r?n=>{const i=t[n][e];return i<o||i===o&&t[n+1][e]===o}:n=>t[n][e]<o),V_=(t,e,o)=>xa(t,o,r=>t[r][e]>=o);function F_(t,e,o){let r=0,n=t.length;for(;r<n&&t[r]<e;)r++;for(;n>r&&t[n-1]>o;)n--;return r>0||n<t.length?t.slice(r,n):t}const dd=["push","pop","shift","splice","unshift"];function I_(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),dd.forEach(o=>{const r="_onData"+ba(o),n=t[o];Object.defineProperty(t,o,{configurable:!0,enumerable:!1,value(...i){const s=n.apply(this,i);return t._chartjs.listeners.forEach(l=>{typeof l[r]=="function"&&l[r](...i)}),s}})})}function ud(t,e){const o=t._chartjs;if(!o)return;const r=o.listeners,n=r.indexOf(e);n!==-1&&r.splice(n,1),!(r.length>0)&&(dd.forEach(i=>{delete t[i]}),delete t._chartjs)}function fd(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const hd=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function gd(t,e){let o=[],r=!1;return function(...n){o=n,r||(r=!0,hd.call(window,()=>{r=!1,t.apply(e,o)}))}}function L_(t,e){let o;return function(...r){return e?(clearTimeout(o),o=setTimeout(t,e,r)):t.apply(this,r),e}}const va=t=>t==="start"?"left":t==="end"?"right":"center",qe=(t,e,o)=>t==="start"?e:t==="end"?o:(e+o)/2,z_=(t,e,o,r)=>t===(r?"left":"right")?o:t==="center"?(e+o)/2:e;function md(t,e,o){const r=e.length;let n=0,i=r;if(t._sorted){const{iScale:s,_parsed:l}=t,c=s.axis,{min:d,max:u,minDefined:f,maxDefined:h}=s.getUserBounds();f&&(n=je(Math.min(Wt(l,c,d).lo,o?r:Wt(e,c,s.getPixelForValue(d)).lo),0,r-1)),h?i=je(Math.max(Wt(l,s.axis,u,!0).hi+1,o?0:Wt(e,c,s.getPixelForValue(u),!0).hi+1),n,r)-n:i=r-n}return{start:n,count:i}}function pd(t){const{xScale:e,yScale:o,_scaleRanges:r}=t,n={xmin:e.min,xmax:e.max,ymin:o.min,ymax:o.max};if(!r)return t._scaleRanges=n,!0;const i=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==o.min||r.ymax!==o.max;return Object.assign(r,n),i}const Yn=t=>t===0||t===1,bd=(t,e,o)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*_e/o)),yd=(t,e,o)=>Math.pow(2,-10*t)*Math.sin((t-e)*_e/o)+1,Mr={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*Me)+1,easeOutSine:t=>Math.sin(t*Me),easeInOutSine:t=>-.5*(Math.cos(Ce*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>Yn(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Yn(t)?t:bd(t,.075,.3),easeOutElastic:t=>Yn(t)?t:yd(t,.075,.3),easeInOutElastic(t){return Yn(t)?t:t<.5?.5*bd(t*2,.1125,.45):.5+.5*yd(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-Mr.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Mr.easeInBounce(t*2)*.5:Mr.easeOutBounce(t*2-1)*.5+.5};function wa(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function kd(t){return wa(t)?t:new Or(t)}function Ca(t){return wa(t)?t:new Or(t).saturate(.5).darken(.1).hexString()}const j_=["x","y","borderWidth","radius","tension"],W_=["color","borderColor","backgroundColor"];function H_(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:W_},numbers:{type:"number",properties:j_}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function U_(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const xd=new Map;function q_(t,e){e=e||{};const o=t+JSON.stringify(e);let r=xd.get(o);return r||(r=new Intl.NumberFormat(t,e),xd.set(o,r)),r}function Vr(t,e,o){return q_(e,o).format(t)}const vd={values(t){return Re(t)?t:""+t},numeric(t,e,o){if(t===0)return"0";const r=this.chart.options.locale;let n,i=t;if(o.length>1){const d=Math.max(Math.abs(o[0].value),Math.abs(o[o.length-1].value));(d<1e-4||d>1e15)&&(n="scientific"),i=Y_(t,o)}const s=so(Math.abs(i)),l=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),c={notation:n,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(c,this.options.ticks.format),Vr(t,r,c)},logarithmic(t,e,o){if(t===0)return"0";const r=o[e].significand||t/Math.pow(10,Math.floor(so(t)));return[1,2,3,5,10,15].includes(r)||e>.8*o.length?vd.numeric.call(this,t,e,o):""}};function Y_(t,e){let o=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(o)>=1&&t!==Math.floor(t)&&(o=t-Math.floor(t)),o}var Fr={formatters:vd};function X_(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,o)=>o.lineWidth,tickColor:(e,o)=>o.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Fr.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const So=Object.create(null),_a=Object.create(null);function Ir(t,e){if(!e)return t;const o=e.split(".");for(let r=0,n=o.length;r<n;++r){const i=o[r];t=t[i]||(t[i]=Object.create(null))}return t}function Sa(t,e,o){return typeof e=="string"?Nr(Ir(t,e),o):Nr(Ir(t,""),e)}class K_{constructor(e,o){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,n)=>Ca(n.backgroundColor),this.hoverBorderColor=(r,n)=>Ca(n.borderColor),this.hoverColor=(r,n)=>Ca(n.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(o)}set(e,o){return Sa(this,e,o)}get(e){return Ir(this,e)}describe(e,o){return Sa(_a,e,o)}override(e,o){return Sa(So,e,o)}route(e,o,r,n){const i=Ir(this,e),s=Ir(this,r),l="_"+o;Object.defineProperties(i,{[l]:{value:i[o],writable:!0},[o]:{enumerable:!0,get(){const c=this[l],d=s[n];return de(c)?Object.assign({},d,c):se(c,d)},set(c){this[l]=c}}})}apply(e){e.forEach(o=>o(this))}}var Se=new K_({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[H_,U_,X_]);function G_(t){return!t||fe(t.size)||fe(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Xn(t,e,o,r,n){let i=e[n];return i||(i=e[n]=t.measureText(n).width,o.push(n)),i>r&&(r=i),r}function J_(t,e,o,r){r=r||{};let n=r.data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(n=r.data={},i=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let s=0;const l=o.length;let c,d,u,f,h;for(c=0;c<l;c++)if(f=o[c],f!=null&&!Re(f))s=Xn(t,n,i,s,f);else if(Re(f))for(d=0,u=f.length;d<u;d++)h=f[d],h!=null&&!Re(h)&&(s=Xn(t,n,i,s,h));t.restore();const g=i.length/2;if(g>o.length){for(c=0;c<g;c++)delete n[i[c]];i.splice(0,g)}return s}function Bo(t,e,o){const r=t.currentDevicePixelRatio,n=o!==0?Math.max(o/2,.5):0;return Math.round((e-n)*r)/r+n}function wd(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Ba(t,e,o,r){Cd(t,e,o,r,null)}function Cd(t,e,o,r,n){let i,s,l,c,d,u,f,h;const g=e.pointStyle,m=e.rotation,p=e.radius;let b=(m||0)*T_;if(g&&typeof g=="object"&&(i=g.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){t.save(),t.translate(o,r),t.rotate(b),t.drawImage(g,-g.width/2,-g.height/2,g.width,g.height),t.restore();return}if(!(isNaN(p)||p<=0)){switch(t.beginPath(),g){default:n?t.ellipse(o,r,n/2,p,0,0,_e):t.arc(o,r,p,0,_e),t.closePath();break;case"triangle":u=n?n/2:p,t.moveTo(o+Math.sin(b)*u,r-Math.cos(b)*p),b+=id,t.lineTo(o+Math.sin(b)*u,r-Math.cos(b)*p),b+=id,t.lineTo(o+Math.sin(b)*u,r-Math.cos(b)*p),t.closePath();break;case"rectRounded":d=p*.516,c=p-d,s=Math.cos(b+_o)*c,f=Math.cos(b+_o)*(n?n/2-d:c),l=Math.sin(b+_o)*c,h=Math.sin(b+_o)*(n?n/2-d:c),t.arc(o-f,r-l,d,b-Ce,b-Me),t.arc(o+h,r-s,d,b-Me,b),t.arc(o+f,r+l,d,b,b+Me),t.arc(o-h,r+s,d,b+Me,b+Ce),t.closePath();break;case"rect":if(!m){c=Math.SQRT1_2*p,u=n?n/2:c,t.rect(o-u,r-c,2*u,2*c);break}b+=_o;case"rectRot":f=Math.cos(b)*(n?n/2:p),s=Math.cos(b)*p,l=Math.sin(b)*p,h=Math.sin(b)*(n?n/2:p),t.moveTo(o-f,r-l),t.lineTo(o+h,r-s),t.lineTo(o+f,r+l),t.lineTo(o-h,r+s),t.closePath();break;case"crossRot":b+=_o;case"cross":f=Math.cos(b)*(n?n/2:p),s=Math.cos(b)*p,l=Math.sin(b)*p,h=Math.sin(b)*(n?n/2:p),t.moveTo(o-f,r-l),t.lineTo(o+f,r+l),t.moveTo(o+h,r-s),t.lineTo(o-h,r+s);break;case"star":f=Math.cos(b)*(n?n/2:p),s=Math.cos(b)*p,l=Math.sin(b)*p,h=Math.sin(b)*(n?n/2:p),t.moveTo(o-f,r-l),t.lineTo(o+f,r+l),t.moveTo(o+h,r-s),t.lineTo(o-h,r+s),b+=_o,f=Math.cos(b)*(n?n/2:p),s=Math.cos(b)*p,l=Math.sin(b)*p,h=Math.sin(b)*(n?n/2:p),t.moveTo(o-f,r-l),t.lineTo(o+f,r+l),t.moveTo(o+h,r-s),t.lineTo(o-h,r+s);break;case"line":s=n?n/2:Math.cos(b)*p,l=Math.sin(b)*p,t.moveTo(o-s,r-l),t.lineTo(o+s,r+l);break;case"dash":t.moveTo(o,r),t.lineTo(o+Math.cos(b)*(n?n/2:p),r+Math.sin(b)*p);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function Ht(t,e,o){return o=o||.5,!e||t&&t.x>e.left-o&&t.x<e.right+o&&t.y>e.top-o&&t.y<e.bottom+o}function Kn(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Gn(t){t.restore()}function Q_(t,e,o,r,n){if(!e)return t.lineTo(o.x,o.y);if(n==="middle"){const i=(e.x+o.x)/2;t.lineTo(i,e.y),t.lineTo(i,o.y)}else n==="after"!=!!r?t.lineTo(e.x,o.y):t.lineTo(o.x,e.y);t.lineTo(o.x,o.y)}function Z_(t,e,o,r){if(!e)return t.lineTo(o.x,o.y);t.bezierCurveTo(r?e.cp1x:e.cp2x,r?e.cp1y:e.cp2y,r?o.cp2x:o.cp1x,r?o.cp2y:o.cp1y,o.x,o.y)}function e5(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),fe(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function t5(t,e,o,r,n){if(n.strikethrough||n.underline){const i=t.measureText(r),s=e-i.actualBoundingBoxLeft,l=e+i.actualBoundingBoxRight,c=o-i.actualBoundingBoxAscent,d=o+i.actualBoundingBoxDescent,u=n.strikethrough?(c+d)/2:d;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=n.decorationWidth||2,t.moveTo(s,u),t.lineTo(l,u),t.stroke()}}function o5(t,e){const o=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=o}function Eo(t,e,o,r,n,i={}){const s=Re(e)?e:[e],l=i.strokeWidth>0&&i.strokeColor!=="";let c,d;for(t.save(),t.font=n.string,e5(t,i),c=0;c<s.length;++c)d=s[c],i.backdrop&&o5(t,i.backdrop),l&&(i.strokeColor&&(t.strokeStyle=i.strokeColor),fe(i.strokeWidth)||(t.lineWidth=i.strokeWidth),t.strokeText(d,o,r,i.maxWidth)),t.fillText(d,o,r,i.maxWidth),t5(t,o,r,d,i),r+=Number(n.lineHeight);t.restore()}function Lr(t,e){const{x:o,y:r,w:n,h:i,radius:s}=e;t.arc(o+s.topLeft,r+s.topLeft,s.topLeft,1.5*Ce,Ce,!0),t.lineTo(o,r+i-s.bottomLeft),t.arc(o+s.bottomLeft,r+i-s.bottomLeft,s.bottomLeft,Ce,Me,!0),t.lineTo(o+n-s.bottomRight,r+i),t.arc(o+n-s.bottomRight,r+i-s.bottomRight,s.bottomRight,Me,0,!0),t.lineTo(o+n,r+s.topRight),t.arc(o+n-s.topRight,r+s.topRight,s.topRight,0,-Me,!0),t.lineTo(o+s.topLeft,r)}const r5=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,n5=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function i5(t,e){const o=(""+t).match(r5);if(!o||o[1]==="normal")return e*1.2;switch(t=+o[2],o[3]){case"px":return t;case"%":t/=100;break}return e*t}const a5=t=>+t||0;function Ea(t,e){const o={},r=de(e),n=r?Object.keys(e):e,i=de(t)?r?s=>se(t[s],t[e[s]]):s=>t[s]:()=>t;for(const s of n)o[s]=a5(i(s));return o}function _d(t){return Ea(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Ro(t){return Ea(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Ye(t){const e=_d(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Ie(t,e){t=t||{},e=e||Se.font;let o=se(t.size,e.size);typeof o=="string"&&(o=parseInt(o,10));let r=se(t.style,e.style);r&&!(""+r).match(n5)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const n={family:se(t.family,e.family),lineHeight:i5(se(t.lineHeight,e.lineHeight),o),size:o,style:r,weight:se(t.weight,e.weight),string:""};return n.string=G_(n),n}function zr(t,e,o,r){let n,i,s;for(n=0,i=t.length;n<i;++n)if(s=t[n],s!==void 0&&s!==void 0)return s}function s5(t,e,o){const{min:r,max:n}=t,i=td(e,(n-r)/2),s=(l,c)=>o&&l===0?0:l+c;return{min:s(r,-Math.abs(i)),max:s(n,i)}}function lo(t,e){return Object.assign(Object.create(t),e)}function Ra(t,e=[""],o,r,n=()=>t[0]){const i=o||t;typeof r>"u"&&(r=Dd("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:r,_getTarget:n,override:l=>Ra([l,...t],e,i,r)};return new Proxy(s,{deleteProperty(l,c){return delete l[c],delete l._keys,delete t[0][c],!0},get(l,c){return Bd(l,c,()=>m5(c,e,t,l))},getOwnPropertyDescriptor(l,c){return Reflect.getOwnPropertyDescriptor(l._scopes[0],c)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(l,c){return Od(l).includes(c)},ownKeys(l){return Od(l)},set(l,c,d){const u=l._storage||(l._storage=n());return l[c]=u[c]=d,delete l._keys,!0}})}function Yo(t,e,o,r){const n={_cacheable:!1,_proxy:t,_context:e,_subProxy:o,_stack:new Set,_descriptors:Sd(t,r),setContext:i=>Yo(t,i,o,r),override:i=>Yo(t.override(i),e,o,r)};return new Proxy(n,{deleteProperty(i,s){return delete i[s],delete t[s],!0},get(i,s,l){return Bd(i,s,()=>c5(i,s,l))},getOwnPropertyDescriptor(i,s){return i._descriptors.allKeys?Reflect.has(t,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,s)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(i,s){return Reflect.has(t,s)},ownKeys(){return Reflect.ownKeys(t)},set(i,s,l){return t[s]=l,delete i[s],!0}})}function Sd(t,e={scriptable:!0,indexable:!0}){const{_scriptable:o=e.scriptable,_indexable:r=e.indexable,_allKeys:n=e.allKeys}=t;return{allKeys:n,scriptable:o,indexable:r,isScriptable:ao(o)?o:()=>o,isIndexable:ao(r)?r:()=>r}}const l5=(t,e)=>t?t+ba(e):e,Da=(t,e)=>de(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function Bd(t,e,o){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const r=o();return t[e]=r,r}function c5(t,e,o){const{_proxy:r,_context:n,_subProxy:i,_descriptors:s}=t;let l=r[e];return ao(l)&&s.isScriptable(e)&&(l=d5(e,l,t,o)),Re(l)&&l.length&&(l=u5(e,l,t,s.isIndexable)),Da(e,l)&&(l=Yo(l,n,i&&i[e],s)),l}function d5(t,e,o,r){const{_proxy:n,_context:i,_subProxy:s,_stack:l}=o;if(l.has(t))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+t);l.add(t);let c=e(i,s||r);return l.delete(t),Da(t,c)&&(c=Oa(n._scopes,n,t,c)),c}function u5(t,e,o,r){const{_proxy:n,_context:i,_subProxy:s,_descriptors:l}=o;if(typeof i.index<"u"&&r(t))return e[i.index%e.length];if(de(e[0])){const c=e,d=n._scopes.filter(u=>u!==c);e=[];for(const u of c){const f=Oa(d,n,t,u);e.push(Yo(f,i,s&&s[t],l))}}return e}function Ed(t,e,o){return ao(t)?t(e,o):t}const f5=(t,e)=>t===!0?e:typeof t=="string"?io(e,t):void 0;function h5(t,e,o,r,n){for(const i of e){const s=f5(o,i);if(s){t.add(s);const l=Ed(s._fallback,o,n);if(typeof l<"u"&&l!==o&&l!==r)return l}else if(s===!1&&typeof r<"u"&&o!==r)return null}return!1}function Oa(t,e,o,r){const n=e._rootScopes,i=Ed(e._fallback,o,r),s=[...t,...n],l=new Set;l.add(r);let c=Rd(l,s,o,i||o,r);return c===null||typeof i<"u"&&i!==o&&(c=Rd(l,s,i,c,r),c===null)?!1:Ra(Array.from(l),[""],n,i,()=>g5(e,o,r))}function Rd(t,e,o,r,n){for(;o;)o=h5(t,e,o,r,n);return o}function g5(t,e,o){const r=t._getTarget();e in r||(r[e]={});const n=r[e];return Re(n)&&de(o)?o:n||{}}function m5(t,e,o,r){let n;for(const i of e)if(n=Dd(l5(i,t),o),typeof n<"u")return Da(t,n)?Oa(o,r,t,n):n}function Dd(t,e){for(const o of e){if(!o)continue;const r=o[t];if(typeof r<"u")return r}}function Od(t){let e=t._keys;return e||(e=t._keys=p5(t._scopes)),e}function p5(t){const e=new Set;for(const o of t)for(const r of Object.keys(o).filter(n=>!n.startsWith("_")))e.add(r);return Array.from(e)}function Nd(t,e,o,r){const{iScale:n}=t,{key:i="r"}=this._parsing,s=new Array(r);let l,c,d,u;for(l=0,c=r;l<c;++l)d=l+o,u=e[d],s[l]={r:n.parse(io(u,i),d)};return s}const b5=Number.EPSILON||1e-14,Xo=(t,e)=>e<t.length&&!t[e].skip&&t[e],Td=t=>t==="x"?"y":"x";function y5(t,e,o,r){const n=t.skip?e:t,i=e,s=o.skip?e:o,l=ka(i,n),c=ka(s,i);let d=l/(l+c),u=c/(l+c);d=isNaN(d)?0:d,u=isNaN(u)?0:u;const f=r*d,h=r*u;return{previous:{x:i.x-f*(s.x-n.x),y:i.y-f*(s.y-n.y)},next:{x:i.x+h*(s.x-n.x),y:i.y+h*(s.y-n.y)}}}function k5(t,e,o){const r=t.length;let n,i,s,l,c,d=Xo(t,0);for(let u=0;u<r-1;++u)if(c=d,d=Xo(t,u+1),!(!c||!d)){if($r(e[u],0,b5)){o[u]=o[u+1]=0;continue}n=o[u]/e[u],i=o[u+1]/e[u],l=Math.pow(n,2)+Math.pow(i,2),!(l<=9)&&(s=3/Math.sqrt(l),o[u]=n*s*e[u],o[u+1]=i*s*e[u])}}function x5(t,e,o="x"){const r=Td(o),n=t.length;let i,s,l,c=Xo(t,0);for(let d=0;d<n;++d){if(s=l,l=c,c=Xo(t,d+1),!l)continue;const u=l[o],f=l[r];s&&(i=(u-s[o])/3,l[`cp1${o}`]=u-i,l[`cp1${r}`]=f-i*e[d]),c&&(i=(c[o]-u)/3,l[`cp2${o}`]=u+i,l[`cp2${r}`]=f+i*e[d])}}function v5(t,e="x"){const o=Td(e),r=t.length,n=Array(r).fill(0),i=Array(r);let s,l,c,d=Xo(t,0);for(s=0;s<r;++s)if(l=c,c=d,d=Xo(t,s+1),!!c){if(d){const u=d[e]-c[e];n[s]=u!==0?(d[o]-c[o])/u:0}i[s]=l?d?Et(n[s-1])!==Et(n[s])?0:(n[s-1]+n[s])/2:n[s-1]:n[s]}k5(t,n,i),x5(t,i,e)}function Jn(t,e,o){return Math.max(Math.min(t,o),e)}function w5(t,e){let o,r,n,i,s,l=Ht(t[0],e);for(o=0,r=t.length;o<r;++o)s=i,i=l,l=o<r-1&&Ht(t[o+1],e),i&&(n=t[o],s&&(n.cp1x=Jn(n.cp1x,e.left,e.right),n.cp1y=Jn(n.cp1y,e.top,e.bottom)),l&&(n.cp2x=Jn(n.cp2x,e.left,e.right),n.cp2y=Jn(n.cp2y,e.top,e.bottom)))}function C5(t,e,o,r,n){let i,s,l,c;if(e.spanGaps&&(t=t.filter(d=>!d.skip)),e.cubicInterpolationMode==="monotone")v5(t,n);else{let d=r?t[t.length-1]:t[0];for(i=0,s=t.length;i<s;++i)l=t[i],c=y5(d,l,t[Math.min(i+1,s-(r?0:1))%s],e.tension),l.cp1x=c.previous.x,l.cp1y=c.previous.y,l.cp2x=c.next.x,l.cp2y=c.next.y,d=l}e.capBezierPoints&&w5(t,o)}function Na(){return typeof window<"u"&&typeof document<"u"}function Ta(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function Qn(t,e,o){let r;return typeof t=="string"?(r=parseInt(t,10),t.indexOf("%")!==-1&&(r=r/100*e.parentNode[o])):r=t,r}const Zn=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function _5(t,e){return Zn(t).getPropertyValue(e)}const S5=["top","right","bottom","left"];function Do(t,e,o){const r={};o=o?"-"+o:"";for(let n=0;n<4;n++){const i=S5[n];r[i]=parseFloat(t[e+"-"+i+o])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const B5=(t,e,o)=>(t>0||e>0)&&(!o||!o.shadowRoot);function E5(t,e){const o=t.touches,r=o&&o.length?o[0]:t,{offsetX:n,offsetY:i}=r;let s=!1,l,c;if(B5(n,i,t.target))l=n,c=i;else{const d=e.getBoundingClientRect();l=r.clientX-d.left,c=r.clientY-d.top,s=!0}return{x:l,y:c,box:s}}function Oo(t,e){if("native"in t)return t;const{canvas:o,currentDevicePixelRatio:r}=e,n=Zn(o),i=n.boxSizing==="border-box",s=Do(n,"padding"),l=Do(n,"border","width"),{x:c,y:d,box:u}=E5(t,o),f=s.left+(u&&l.left),h=s.top+(u&&l.top);let{width:g,height:m}=e;return i&&(g-=s.width+l.width,m-=s.height+l.height),{x:Math.round((c-f)/g*o.width/r),y:Math.round((d-h)/m*o.height/r)}}function R5(t,e,o){let r,n;if(e===void 0||o===void 0){const i=t&&Ta(t);if(!i)e=t.clientWidth,o=t.clientHeight;else{const s=i.getBoundingClientRect(),l=Zn(i),c=Do(l,"border","width"),d=Do(l,"padding");e=s.width-d.width-c.width,o=s.height-d.height-c.height,r=Qn(l.maxWidth,i,"clientWidth"),n=Qn(l.maxHeight,i,"clientHeight")}}return{width:e,height:o,maxWidth:r||qn,maxHeight:n||qn}}const ei=t=>Math.round(t*10)/10;function D5(t,e,o,r){const n=Zn(t),i=Do(n,"margin"),s=Qn(n.maxWidth,t,"clientWidth")||qn,l=Qn(n.maxHeight,t,"clientHeight")||qn,c=R5(t,e,o);let{width:d,height:u}=c;if(n.boxSizing==="content-box"){const h=Do(n,"border","width"),g=Do(n,"padding");d-=g.width+h.width,u-=g.height+h.height}return d=Math.max(0,d-i.width),u=Math.max(0,r?d/r:u-i.height),d=ei(Math.min(d,s,c.maxWidth)),u=ei(Math.min(u,l,c.maxHeight)),d&&!u&&(u=ei(d/2)),(e!==void 0||o!==void 0)&&r&&c.height&&u>c.height&&(u=c.height,d=ei(Math.floor(u*r))),{width:d,height:u}}function Pd(t,e,o){const r=e||1,n=Math.floor(t.height*r),i=Math.floor(t.width*r);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const s=t.canvas;return s.style&&(o||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),t.currentDevicePixelRatio!==r||s.height!==n||s.width!==i?(t.currentDevicePixelRatio=r,s.height=n,s.width=i,t.ctx.setTransform(r,0,0,r,0,0),!0):!1}const O5=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};Na()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function $d(t,e){const o=_5(t,e),r=o&&o.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function No(t,e,o,r){return{x:t.x+o*(e.x-t.x),y:t.y+o*(e.y-t.y)}}function N5(t,e,o,r){return{x:t.x+o*(e.x-t.x),y:r==="middle"?o<.5?t.y:e.y:r==="after"?o<1?t.y:e.y:o>0?e.y:t.y}}function T5(t,e,o,r){const n={x:t.cp2x,y:t.cp2y},i={x:e.cp1x,y:e.cp1y},s=No(t,n,o),l=No(n,i,o),c=No(i,e,o),d=No(s,l,o),u=No(l,c,o);return No(d,u,o)}const P5=function(t,e){return{x(o){return t+t+e-o},setWidth(o){e=o},textAlign(o){return o==="center"?o:o==="right"?"left":"right"},xPlus(o,r){return o-r},leftForLtr(o,r){return o-r}}},$5=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Ko(t,e,o){return t?P5(e,o):$5()}function Ad(t,e){let o,r;(e==="ltr"||e==="rtl")&&(o=t.canvas.style,r=[o.getPropertyValue("direction"),o.getPropertyPriority("direction")],o.setProperty("direction",e,"important"),t.prevTextDirection=r)}function Md(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Vd(t){return t==="angle"?{between:Ar,compare:A_,normalize:at}:{between:jt,compare:(e,o)=>e-o,normalize:e=>e}}function Fd({start:t,end:e,count:o,loop:r,style:n}){return{start:t%o,end:e%o,loop:r&&(e-t+1)%o===0,style:n}}function A5(t,e,o){const{property:r,start:n,end:i}=o,{between:s,normalize:l}=Vd(r),c=e.length;let{start:d,end:u,loop:f}=t,h,g;if(f){for(d+=c,u+=c,h=0,g=c;h<g&&s(l(e[d%c][r]),n,i);++h)d--,u--;d%=c,u%=c}return u<d&&(u+=c),{start:d,end:u,loop:f,style:t.style}}function Id(t,e,o){if(!o)return[t];const{property:r,start:n,end:i}=o,s=e.length,{compare:l,between:c,normalize:d}=Vd(r),{start:u,end:f,loop:h,style:g}=A5(t,e,o),m=[];let p=!1,b=null,y,k,C;const _=()=>c(n,C,y)&&l(n,C)!==0,v=()=>l(i,y)===0||c(i,C,y),S=()=>p||_(),w=()=>!p||v();for(let x=u,B=u;x<=f;++x)k=e[x%s],!k.skip&&(y=d(k[r]),y!==C&&(p=c(y,n,i),b===null&&S()&&(b=l(y,n)===0?x:B),b!==null&&w()&&(m.push(Fd({start:b,end:x,loop:h,count:s,style:g})),b=null),B=x,C=y));return b!==null&&m.push(Fd({start:b,end:f,loop:h,count:s,style:g})),m}function Ld(t,e){const o=[],r=t.segments;for(let n=0;n<r.length;n++){const i=Id(r[n],t.points,e);i.length&&o.push(...i)}return o}function M5(t,e,o,r){let n=0,i=e-1;if(o&&!r)for(;n<e&&!t[n].skip;)n++;for(;n<e&&t[n].skip;)n++;for(n%=e,o&&(i+=n);i>n&&t[i%e].skip;)i--;return i%=e,{start:n,end:i}}function V5(t,e,o,r){const n=t.length,i=[];let s=e,l=t[e],c;for(c=e+1;c<=o;++c){const d=t[c%n];d.skip||d.stop?l.skip||(r=!1,i.push({start:e%n,end:(c-1)%n,loop:r}),e=s=d.stop?c:null):(s=c,l.skip&&(e=c)),l=d}return s!==null&&i.push({start:e%n,end:s%n,loop:r}),i}function F5(t,e){const o=t.points,r=t.options.spanGaps,n=o.length;if(!n)return[];const i=!!t._loop,{start:s,end:l}=M5(o,n,i,r);if(r===!0)return zd(t,[{start:s,end:l,loop:i}],o,e);const c=l<s?l+n:l,d=!!t._fullLoop&&s===0&&l===n-1;return zd(t,V5(o,s,c,d),o,e)}function zd(t,e,o,r){return!r||!r.setContext||!o?e:I5(t,e,o,r)}function I5(t,e,o,r){const n=t._chart.getContext(),i=jd(t.options),{_datasetIndex:s,options:{spanGaps:l}}=t,c=o.length,d=[];let u=i,f=e[0].start,h=f;function g(m,p,b,y){const k=l?-1:1;if(m!==p){for(m+=c;o[m%c].skip;)m-=k;for(;o[p%c].skip;)p+=k;m%c!==p%c&&(d.push({start:m%c,end:p%c,loop:b,style:y}),u=y,f=p%c)}}for(const m of e){f=l?f:m.start;let p=o[f%c],b;for(h=f+1;h<=m.end;h++){const y=o[h%c];b=jd(r.setContext(lo(n,{type:"segment",p0:p,p1:y,p0DataIndex:(h-1)%c,p1DataIndex:h%c,datasetIndex:s}))),L5(b,u)&&g(f,h-1,m.loop,u),p=y,u=b}f<h-1&&g(f,h-1,m.loop,u)}return d}function jd(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function L5(t,e){if(!e)return!1;const o=[],r=function(n,i){return wa(i)?(o.includes(i)||o.push(i),o.indexOf(i)):i};return JSON.stringify(t,r)!==JSON.stringify(e,r)}/*!
|
|
175
|
+
*/function zt(){}const C_=(()=>{let t=0;return()=>t++})();function fe(t){return t==null}function Re(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function de(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function $e(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function it(t,e){return $e(t)?t:e}function se(t,e){return typeof t>"u"?e:t}const __=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,td=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function ve(t,e,o){if(t&&typeof t.call=="function")return t.apply(o,e)}function ye(t,e,o,r){let n,i,s;if(Re(t))for(i=t.length,n=0;n<i;n++)e.call(o,t[n],n);else if(de(t))for(s=Object.keys(t),i=s.length,n=0;n<i;n++)e.call(o,t[s[n]],s[n])}function Hn(t,e){let o,r,n,i;if(!t||!e||t.length!==e.length)return!1;for(o=0,r=t.length;o<r;++o)if(n=t[o],i=e[o],n.datasetIndex!==i.datasetIndex||n.index!==i.index)return!1;return!0}function Un(t){if(Re(t))return t.map(Un);if(de(t)){const e=Object.create(null),o=Object.keys(t),r=o.length;let n=0;for(;n<r;++n)e[o[n]]=Un(t[o[n]]);return e}return t}function od(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function S_(t,e,o,r){if(!od(t))return;const n=e[t],i=o[t];de(n)&&de(i)?Nr(n,i,r):e[t]=Un(i)}function Nr(t,e,o){const r=Re(e)?e:[e],n=r.length;if(!de(t))return t;o=o||{};const i=o.merger||S_;let s;for(let l=0;l<n;++l){if(s=r[l],!de(s))continue;const c=Object.keys(s);for(let d=0,u=c.length;d<u;++d)i(c[d],t,s,o)}return t}function Tr(t,e){return Nr(t,e,{merger:B_})}function B_(t,e,o){if(!od(t))return;const r=e[t],n=o[t];de(r)&&de(n)?Tr(r,n):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Un(n))}const rd={"":t=>t,x:t=>t.x,y:t=>t.y};function E_(t){const e=t.split("."),o=[];let r="";for(const n of e)r+=n,r.endsWith("\\")?r=r.slice(0,-1)+".":(o.push(r),r="");return o}function R_(t){const e=E_(t);return o=>{for(const r of e){if(r==="")break;o=o&&o[r]}return o}}function io(t,e){return(rd[e]||(rd[e]=R_(e)))(t)}function pa(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Pr=t=>typeof t<"u",ao=t=>typeof t=="function",nd=(t,e)=>{if(t.size!==e.size)return!1;for(const o of t)if(!e.has(o))return!1;return!0};function D_(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const Ce=Math.PI,_e=2*Ce,O_=_e+Ce,qn=Number.POSITIVE_INFINITY,N_=Ce/180,Me=Ce/2,_o=Ce/4,id=Ce*2/3,so=Math.log10,Et=Math.sign;function $r(t,e,o){return Math.abs(t-e)<o}function ad(t){const e=Math.round(t);t=$r(t,e,t/1e3)?e:t;const o=Math.pow(10,Math.floor(so(t))),r=t/o;return(r<=1?1:r<=2?2:r<=5?5:10)*o}function T_(t){const e=[],o=Math.sqrt(t);let r;for(r=1;r<o;r++)t%r===0&&(e.push(r),e.push(t/r));return o===(o|0)&&e.push(o),e.sort((n,i)=>n-i).pop(),e}function qo(t){return!isNaN(parseFloat(t))&&isFinite(t)}function P_(t,e){const o=Math.round(t);return o-e<=t&&o+e>=t}function sd(t,e,o){let r,n,i;for(r=0,n=t.length;r<n;r++)i=t[r][o],isNaN(i)||(e.min=Math.min(e.min,i),e.max=Math.max(e.max,i))}function kt(t){return t*(Ce/180)}function ba(t){return t*(180/Ce)}function ld(t){if(!$e(t))return;let e=1,o=0;for(;Math.round(t*e)/e!==t;)e*=10,o++;return o}function cd(t,e){const o=e.x-t.x,r=e.y-t.y,n=Math.sqrt(o*o+r*r);let i=Math.atan2(r,o);return i<-.5*Ce&&(i+=_e),{angle:i,distance:n}}function ya(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function $_(t,e){return(t-e+O_)%_e-Ce}function at(t){return(t%_e+_e)%_e}function Ar(t,e,o,r){const n=at(t),i=at(e),s=at(o),l=at(i-n),c=at(s-n),d=at(n-i),u=at(n-s);return n===i||n===s||r&&i===s||l>c&&d<u}function je(t,e,o){return Math.max(e,Math.min(o,t))}function A_(t){return je(t,-32768,32767)}function jt(t,e,o,r=1e-6){return t>=Math.min(e,o)-r&&t<=Math.max(e,o)+r}function ka(t,e,o){o=o||(s=>t[s]<e);let r=t.length-1,n=0,i;for(;r-n>1;)i=n+r>>1,o(i)?n=i:r=i;return{lo:n,hi:r}}const Wt=(t,e,o,r)=>ka(t,o,r?n=>{const i=t[n][e];return i<o||i===o&&t[n+1][e]===o}:n=>t[n][e]<o),M_=(t,e,o)=>ka(t,o,r=>t[r][e]>=o);function V_(t,e,o){let r=0,n=t.length;for(;r<n&&t[r]<e;)r++;for(;n>r&&t[n-1]>o;)n--;return r>0||n<t.length?t.slice(r,n):t}const dd=["push","pop","shift","splice","unshift"];function F_(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),dd.forEach(o=>{const r="_onData"+pa(o),n=t[o];Object.defineProperty(t,o,{configurable:!0,enumerable:!1,value(...i){const s=n.apply(this,i);return t._chartjs.listeners.forEach(l=>{typeof l[r]=="function"&&l[r](...i)}),s}})})}function ud(t,e){const o=t._chartjs;if(!o)return;const r=o.listeners,n=r.indexOf(e);n!==-1&&r.splice(n,1),!(r.length>0)&&(dd.forEach(i=>{delete t[i]}),delete t._chartjs)}function fd(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const hd=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function gd(t,e){let o=[],r=!1;return function(...n){o=n,r||(r=!0,hd.call(window,()=>{r=!1,t.apply(e,o)}))}}function I_(t,e){let o;return function(...r){return e?(clearTimeout(o),o=setTimeout(t,e,r)):t.apply(this,r),e}}const xa=t=>t==="start"?"left":t==="end"?"right":"center",qe=(t,e,o)=>t==="start"?e:t==="end"?o:(e+o)/2,L_=(t,e,o,r)=>t===(r?"left":"right")?o:t==="center"?(e+o)/2:e;function md(t,e,o){const r=e.length;let n=0,i=r;if(t._sorted){const{iScale:s,_parsed:l}=t,c=s.axis,{min:d,max:u,minDefined:f,maxDefined:h}=s.getUserBounds();f&&(n=je(Math.min(Wt(l,c,d).lo,o?r:Wt(e,c,s.getPixelForValue(d)).lo),0,r-1)),h?i=je(Math.max(Wt(l,s.axis,u,!0).hi+1,o?0:Wt(e,c,s.getPixelForValue(u),!0).hi+1),n,r)-n:i=r-n}return{start:n,count:i}}function pd(t){const{xScale:e,yScale:o,_scaleRanges:r}=t,n={xmin:e.min,xmax:e.max,ymin:o.min,ymax:o.max};if(!r)return t._scaleRanges=n,!0;const i=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==o.min||r.ymax!==o.max;return Object.assign(r,n),i}const Yn=t=>t===0||t===1,bd=(t,e,o)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*_e/o)),yd=(t,e,o)=>Math.pow(2,-10*t)*Math.sin((t-e)*_e/o)+1,Mr={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*Me)+1,easeOutSine:t=>Math.sin(t*Me),easeInOutSine:t=>-.5*(Math.cos(Ce*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>Yn(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Yn(t)?t:bd(t,.075,.3),easeOutElastic:t=>Yn(t)?t:yd(t,.075,.3),easeInOutElastic(t){return Yn(t)?t:t<.5?.5*bd(t*2,.1125,.45):.5+.5*yd(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-Mr.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Mr.easeInBounce(t*2)*.5:Mr.easeOutBounce(t*2-1)*.5+.5};function va(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function kd(t){return va(t)?t:new Or(t)}function wa(t){return va(t)?t:new Or(t).saturate(.5).darken(.1).hexString()}const z_=["x","y","borderWidth","radius","tension"],j_=["color","borderColor","backgroundColor"];function W_(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:j_},numbers:{type:"number",properties:z_}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function H_(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const xd=new Map;function U_(t,e){e=e||{};const o=t+JSON.stringify(e);let r=xd.get(o);return r||(r=new Intl.NumberFormat(t,e),xd.set(o,r)),r}function Vr(t,e,o){return U_(e,o).format(t)}const vd={values(t){return Re(t)?t:""+t},numeric(t,e,o){if(t===0)return"0";const r=this.chart.options.locale;let n,i=t;if(o.length>1){const d=Math.max(Math.abs(o[0].value),Math.abs(o[o.length-1].value));(d<1e-4||d>1e15)&&(n="scientific"),i=q_(t,o)}const s=so(Math.abs(i)),l=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),c={notation:n,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(c,this.options.ticks.format),Vr(t,r,c)},logarithmic(t,e,o){if(t===0)return"0";const r=o[e].significand||t/Math.pow(10,Math.floor(so(t)));return[1,2,3,5,10,15].includes(r)||e>.8*o.length?vd.numeric.call(this,t,e,o):""}};function q_(t,e){let o=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(o)>=1&&t!==Math.floor(t)&&(o=t-Math.floor(t)),o}var Fr={formatters:vd};function Y_(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,o)=>o.lineWidth,tickColor:(e,o)=>o.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Fr.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const So=Object.create(null),Ca=Object.create(null);function Ir(t,e){if(!e)return t;const o=e.split(".");for(let r=0,n=o.length;r<n;++r){const i=o[r];t=t[i]||(t[i]=Object.create(null))}return t}function _a(t,e,o){return typeof e=="string"?Nr(Ir(t,e),o):Nr(Ir(t,""),e)}class X_{constructor(e,o){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,n)=>wa(n.backgroundColor),this.hoverBorderColor=(r,n)=>wa(n.borderColor),this.hoverColor=(r,n)=>wa(n.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(o)}set(e,o){return _a(this,e,o)}get(e){return Ir(this,e)}describe(e,o){return _a(Ca,e,o)}override(e,o){return _a(So,e,o)}route(e,o,r,n){const i=Ir(this,e),s=Ir(this,r),l="_"+o;Object.defineProperties(i,{[l]:{value:i[o],writable:!0},[o]:{enumerable:!0,get(){const c=this[l],d=s[n];return de(c)?Object.assign({},d,c):se(c,d)},set(c){this[l]=c}}})}apply(e){e.forEach(o=>o(this))}}var Se=new X_({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[W_,H_,Y_]);function K_(t){return!t||fe(t.size)||fe(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Xn(t,e,o,r,n){let i=e[n];return i||(i=e[n]=t.measureText(n).width,o.push(n)),i>r&&(r=i),r}function G_(t,e,o,r){r=r||{};let n=r.data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(n=r.data={},i=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let s=0;const l=o.length;let c,d,u,f,h;for(c=0;c<l;c++)if(f=o[c],f!=null&&!Re(f))s=Xn(t,n,i,s,f);else if(Re(f))for(d=0,u=f.length;d<u;d++)h=f[d],h!=null&&!Re(h)&&(s=Xn(t,n,i,s,h));t.restore();const g=i.length/2;if(g>o.length){for(c=0;c<g;c++)delete n[i[c]];i.splice(0,g)}return s}function Bo(t,e,o){const r=t.currentDevicePixelRatio,n=o!==0?Math.max(o/2,.5):0;return Math.round((e-n)*r)/r+n}function wd(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Sa(t,e,o,r){Cd(t,e,o,r,null)}function Cd(t,e,o,r,n){let i,s,l,c,d,u,f,h;const g=e.pointStyle,m=e.rotation,p=e.radius;let b=(m||0)*N_;if(g&&typeof g=="object"&&(i=g.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){t.save(),t.translate(o,r),t.rotate(b),t.drawImage(g,-g.width/2,-g.height/2,g.width,g.height),t.restore();return}if(!(isNaN(p)||p<=0)){switch(t.beginPath(),g){default:n?t.ellipse(o,r,n/2,p,0,0,_e):t.arc(o,r,p,0,_e),t.closePath();break;case"triangle":u=n?n/2:p,t.moveTo(o+Math.sin(b)*u,r-Math.cos(b)*p),b+=id,t.lineTo(o+Math.sin(b)*u,r-Math.cos(b)*p),b+=id,t.lineTo(o+Math.sin(b)*u,r-Math.cos(b)*p),t.closePath();break;case"rectRounded":d=p*.516,c=p-d,s=Math.cos(b+_o)*c,f=Math.cos(b+_o)*(n?n/2-d:c),l=Math.sin(b+_o)*c,h=Math.sin(b+_o)*(n?n/2-d:c),t.arc(o-f,r-l,d,b-Ce,b-Me),t.arc(o+h,r-s,d,b-Me,b),t.arc(o+f,r+l,d,b,b+Me),t.arc(o-h,r+s,d,b+Me,b+Ce),t.closePath();break;case"rect":if(!m){c=Math.SQRT1_2*p,u=n?n/2:c,t.rect(o-u,r-c,2*u,2*c);break}b+=_o;case"rectRot":f=Math.cos(b)*(n?n/2:p),s=Math.cos(b)*p,l=Math.sin(b)*p,h=Math.sin(b)*(n?n/2:p),t.moveTo(o-f,r-l),t.lineTo(o+h,r-s),t.lineTo(o+f,r+l),t.lineTo(o-h,r+s),t.closePath();break;case"crossRot":b+=_o;case"cross":f=Math.cos(b)*(n?n/2:p),s=Math.cos(b)*p,l=Math.sin(b)*p,h=Math.sin(b)*(n?n/2:p),t.moveTo(o-f,r-l),t.lineTo(o+f,r+l),t.moveTo(o+h,r-s),t.lineTo(o-h,r+s);break;case"star":f=Math.cos(b)*(n?n/2:p),s=Math.cos(b)*p,l=Math.sin(b)*p,h=Math.sin(b)*(n?n/2:p),t.moveTo(o-f,r-l),t.lineTo(o+f,r+l),t.moveTo(o+h,r-s),t.lineTo(o-h,r+s),b+=_o,f=Math.cos(b)*(n?n/2:p),s=Math.cos(b)*p,l=Math.sin(b)*p,h=Math.sin(b)*(n?n/2:p),t.moveTo(o-f,r-l),t.lineTo(o+f,r+l),t.moveTo(o+h,r-s),t.lineTo(o-h,r+s);break;case"line":s=n?n/2:Math.cos(b)*p,l=Math.sin(b)*p,t.moveTo(o-s,r-l),t.lineTo(o+s,r+l);break;case"dash":t.moveTo(o,r),t.lineTo(o+Math.cos(b)*(n?n/2:p),r+Math.sin(b)*p);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function Ht(t,e,o){return o=o||.5,!e||t&&t.x>e.left-o&&t.x<e.right+o&&t.y>e.top-o&&t.y<e.bottom+o}function Kn(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Gn(t){t.restore()}function J_(t,e,o,r,n){if(!e)return t.lineTo(o.x,o.y);if(n==="middle"){const i=(e.x+o.x)/2;t.lineTo(i,e.y),t.lineTo(i,o.y)}else n==="after"!=!!r?t.lineTo(e.x,o.y):t.lineTo(o.x,e.y);t.lineTo(o.x,o.y)}function Q_(t,e,o,r){if(!e)return t.lineTo(o.x,o.y);t.bezierCurveTo(r?e.cp1x:e.cp2x,r?e.cp1y:e.cp2y,r?o.cp2x:o.cp1x,r?o.cp2y:o.cp1y,o.x,o.y)}function Z_(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),fe(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function e5(t,e,o,r,n){if(n.strikethrough||n.underline){const i=t.measureText(r),s=e-i.actualBoundingBoxLeft,l=e+i.actualBoundingBoxRight,c=o-i.actualBoundingBoxAscent,d=o+i.actualBoundingBoxDescent,u=n.strikethrough?(c+d)/2:d;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=n.decorationWidth||2,t.moveTo(s,u),t.lineTo(l,u),t.stroke()}}function t5(t,e){const o=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=o}function Eo(t,e,o,r,n,i={}){const s=Re(e)?e:[e],l=i.strokeWidth>0&&i.strokeColor!=="";let c,d;for(t.save(),t.font=n.string,Z_(t,i),c=0;c<s.length;++c)d=s[c],i.backdrop&&t5(t,i.backdrop),l&&(i.strokeColor&&(t.strokeStyle=i.strokeColor),fe(i.strokeWidth)||(t.lineWidth=i.strokeWidth),t.strokeText(d,o,r,i.maxWidth)),t.fillText(d,o,r,i.maxWidth),e5(t,o,r,d,i),r+=Number(n.lineHeight);t.restore()}function Lr(t,e){const{x:o,y:r,w:n,h:i,radius:s}=e;t.arc(o+s.topLeft,r+s.topLeft,s.topLeft,1.5*Ce,Ce,!0),t.lineTo(o,r+i-s.bottomLeft),t.arc(o+s.bottomLeft,r+i-s.bottomLeft,s.bottomLeft,Ce,Me,!0),t.lineTo(o+n-s.bottomRight,r+i),t.arc(o+n-s.bottomRight,r+i-s.bottomRight,s.bottomRight,Me,0,!0),t.lineTo(o+n,r+s.topRight),t.arc(o+n-s.topRight,r+s.topRight,s.topRight,0,-Me,!0),t.lineTo(o+s.topLeft,r)}const o5=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,r5=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function n5(t,e){const o=(""+t).match(o5);if(!o||o[1]==="normal")return e*1.2;switch(t=+o[2],o[3]){case"px":return t;case"%":t/=100;break}return e*t}const i5=t=>+t||0;function Ba(t,e){const o={},r=de(e),n=r?Object.keys(e):e,i=de(t)?r?s=>se(t[s],t[e[s]]):s=>t[s]:()=>t;for(const s of n)o[s]=i5(i(s));return o}function _d(t){return Ba(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Ro(t){return Ba(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Ye(t){const e=_d(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Ie(t,e){t=t||{},e=e||Se.font;let o=se(t.size,e.size);typeof o=="string"&&(o=parseInt(o,10));let r=se(t.style,e.style);r&&!(""+r).match(r5)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const n={family:se(t.family,e.family),lineHeight:n5(se(t.lineHeight,e.lineHeight),o),size:o,style:r,weight:se(t.weight,e.weight),string:""};return n.string=K_(n),n}function zr(t,e,o,r){let n,i,s;for(n=0,i=t.length;n<i;++n)if(s=t[n],s!==void 0&&s!==void 0)return s}function a5(t,e,o){const{min:r,max:n}=t,i=td(e,(n-r)/2),s=(l,c)=>o&&l===0?0:l+c;return{min:s(r,-Math.abs(i)),max:s(n,i)}}function lo(t,e){return Object.assign(Object.create(t),e)}function Ea(t,e=[""],o,r,n=()=>t[0]){const i=o||t;typeof r>"u"&&(r=Dd("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:r,_getTarget:n,override:l=>Ea([l,...t],e,i,r)};return new Proxy(s,{deleteProperty(l,c){return delete l[c],delete l._keys,delete t[0][c],!0},get(l,c){return Bd(l,c,()=>g5(c,e,t,l))},getOwnPropertyDescriptor(l,c){return Reflect.getOwnPropertyDescriptor(l._scopes[0],c)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(l,c){return Od(l).includes(c)},ownKeys(l){return Od(l)},set(l,c,d){const u=l._storage||(l._storage=n());return l[c]=u[c]=d,delete l._keys,!0}})}function Yo(t,e,o,r){const n={_cacheable:!1,_proxy:t,_context:e,_subProxy:o,_stack:new Set,_descriptors:Sd(t,r),setContext:i=>Yo(t,i,o,r),override:i=>Yo(t.override(i),e,o,r)};return new Proxy(n,{deleteProperty(i,s){return delete i[s],delete t[s],!0},get(i,s,l){return Bd(i,s,()=>l5(i,s,l))},getOwnPropertyDescriptor(i,s){return i._descriptors.allKeys?Reflect.has(t,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,s)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(i,s){return Reflect.has(t,s)},ownKeys(){return Reflect.ownKeys(t)},set(i,s,l){return t[s]=l,delete i[s],!0}})}function Sd(t,e={scriptable:!0,indexable:!0}){const{_scriptable:o=e.scriptable,_indexable:r=e.indexable,_allKeys:n=e.allKeys}=t;return{allKeys:n,scriptable:o,indexable:r,isScriptable:ao(o)?o:()=>o,isIndexable:ao(r)?r:()=>r}}const s5=(t,e)=>t?t+pa(e):e,Ra=(t,e)=>de(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function Bd(t,e,o){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const r=o();return t[e]=r,r}function l5(t,e,o){const{_proxy:r,_context:n,_subProxy:i,_descriptors:s}=t;let l=r[e];return ao(l)&&s.isScriptable(e)&&(l=c5(e,l,t,o)),Re(l)&&l.length&&(l=d5(e,l,t,s.isIndexable)),Ra(e,l)&&(l=Yo(l,n,i&&i[e],s)),l}function c5(t,e,o,r){const{_proxy:n,_context:i,_subProxy:s,_stack:l}=o;if(l.has(t))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+t);l.add(t);let c=e(i,s||r);return l.delete(t),Ra(t,c)&&(c=Da(n._scopes,n,t,c)),c}function d5(t,e,o,r){const{_proxy:n,_context:i,_subProxy:s,_descriptors:l}=o;if(typeof i.index<"u"&&r(t))return e[i.index%e.length];if(de(e[0])){const c=e,d=n._scopes.filter(u=>u!==c);e=[];for(const u of c){const f=Da(d,n,t,u);e.push(Yo(f,i,s&&s[t],l))}}return e}function Ed(t,e,o){return ao(t)?t(e,o):t}const u5=(t,e)=>t===!0?e:typeof t=="string"?io(e,t):void 0;function f5(t,e,o,r,n){for(const i of e){const s=u5(o,i);if(s){t.add(s);const l=Ed(s._fallback,o,n);if(typeof l<"u"&&l!==o&&l!==r)return l}else if(s===!1&&typeof r<"u"&&o!==r)return null}return!1}function Da(t,e,o,r){const n=e._rootScopes,i=Ed(e._fallback,o,r),s=[...t,...n],l=new Set;l.add(r);let c=Rd(l,s,o,i||o,r);return c===null||typeof i<"u"&&i!==o&&(c=Rd(l,s,i,c,r),c===null)?!1:Ea(Array.from(l),[""],n,i,()=>h5(e,o,r))}function Rd(t,e,o,r,n){for(;o;)o=f5(t,e,o,r,n);return o}function h5(t,e,o){const r=t._getTarget();e in r||(r[e]={});const n=r[e];return Re(n)&&de(o)?o:n||{}}function g5(t,e,o,r){let n;for(const i of e)if(n=Dd(s5(i,t),o),typeof n<"u")return Ra(t,n)?Da(o,r,t,n):n}function Dd(t,e){for(const o of e){if(!o)continue;const r=o[t];if(typeof r<"u")return r}}function Od(t){let e=t._keys;return e||(e=t._keys=m5(t._scopes)),e}function m5(t){const e=new Set;for(const o of t)for(const r of Object.keys(o).filter(n=>!n.startsWith("_")))e.add(r);return Array.from(e)}function Nd(t,e,o,r){const{iScale:n}=t,{key:i="r"}=this._parsing,s=new Array(r);let l,c,d,u;for(l=0,c=r;l<c;++l)d=l+o,u=e[d],s[l]={r:n.parse(io(u,i),d)};return s}const p5=Number.EPSILON||1e-14,Xo=(t,e)=>e<t.length&&!t[e].skip&&t[e],Td=t=>t==="x"?"y":"x";function b5(t,e,o,r){const n=t.skip?e:t,i=e,s=o.skip?e:o,l=ya(i,n),c=ya(s,i);let d=l/(l+c),u=c/(l+c);d=isNaN(d)?0:d,u=isNaN(u)?0:u;const f=r*d,h=r*u;return{previous:{x:i.x-f*(s.x-n.x),y:i.y-f*(s.y-n.y)},next:{x:i.x+h*(s.x-n.x),y:i.y+h*(s.y-n.y)}}}function y5(t,e,o){const r=t.length;let n,i,s,l,c,d=Xo(t,0);for(let u=0;u<r-1;++u)if(c=d,d=Xo(t,u+1),!(!c||!d)){if($r(e[u],0,p5)){o[u]=o[u+1]=0;continue}n=o[u]/e[u],i=o[u+1]/e[u],l=Math.pow(n,2)+Math.pow(i,2),!(l<=9)&&(s=3/Math.sqrt(l),o[u]=n*s*e[u],o[u+1]=i*s*e[u])}}function k5(t,e,o="x"){const r=Td(o),n=t.length;let i,s,l,c=Xo(t,0);for(let d=0;d<n;++d){if(s=l,l=c,c=Xo(t,d+1),!l)continue;const u=l[o],f=l[r];s&&(i=(u-s[o])/3,l[`cp1${o}`]=u-i,l[`cp1${r}`]=f-i*e[d]),c&&(i=(c[o]-u)/3,l[`cp2${o}`]=u+i,l[`cp2${r}`]=f+i*e[d])}}function x5(t,e="x"){const o=Td(e),r=t.length,n=Array(r).fill(0),i=Array(r);let s,l,c,d=Xo(t,0);for(s=0;s<r;++s)if(l=c,c=d,d=Xo(t,s+1),!!c){if(d){const u=d[e]-c[e];n[s]=u!==0?(d[o]-c[o])/u:0}i[s]=l?d?Et(n[s-1])!==Et(n[s])?0:(n[s-1]+n[s])/2:n[s-1]:n[s]}y5(t,n,i),k5(t,i,e)}function Jn(t,e,o){return Math.max(Math.min(t,o),e)}function v5(t,e){let o,r,n,i,s,l=Ht(t[0],e);for(o=0,r=t.length;o<r;++o)s=i,i=l,l=o<r-1&&Ht(t[o+1],e),i&&(n=t[o],s&&(n.cp1x=Jn(n.cp1x,e.left,e.right),n.cp1y=Jn(n.cp1y,e.top,e.bottom)),l&&(n.cp2x=Jn(n.cp2x,e.left,e.right),n.cp2y=Jn(n.cp2y,e.top,e.bottom)))}function w5(t,e,o,r,n){let i,s,l,c;if(e.spanGaps&&(t=t.filter(d=>!d.skip)),e.cubicInterpolationMode==="monotone")x5(t,n);else{let d=r?t[t.length-1]:t[0];for(i=0,s=t.length;i<s;++i)l=t[i],c=b5(d,l,t[Math.min(i+1,s-(r?0:1))%s],e.tension),l.cp1x=c.previous.x,l.cp1y=c.previous.y,l.cp2x=c.next.x,l.cp2y=c.next.y,d=l}e.capBezierPoints&&v5(t,o)}function Oa(){return typeof window<"u"&&typeof document<"u"}function Na(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function Qn(t,e,o){let r;return typeof t=="string"?(r=parseInt(t,10),t.indexOf("%")!==-1&&(r=r/100*e.parentNode[o])):r=t,r}const Zn=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function C5(t,e){return Zn(t).getPropertyValue(e)}const _5=["top","right","bottom","left"];function Do(t,e,o){const r={};o=o?"-"+o:"";for(let n=0;n<4;n++){const i=_5[n];r[i]=parseFloat(t[e+"-"+i+o])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const S5=(t,e,o)=>(t>0||e>0)&&(!o||!o.shadowRoot);function B5(t,e){const o=t.touches,r=o&&o.length?o[0]:t,{offsetX:n,offsetY:i}=r;let s=!1,l,c;if(S5(n,i,t.target))l=n,c=i;else{const d=e.getBoundingClientRect();l=r.clientX-d.left,c=r.clientY-d.top,s=!0}return{x:l,y:c,box:s}}function Oo(t,e){if("native"in t)return t;const{canvas:o,currentDevicePixelRatio:r}=e,n=Zn(o),i=n.boxSizing==="border-box",s=Do(n,"padding"),l=Do(n,"border","width"),{x:c,y:d,box:u}=B5(t,o),f=s.left+(u&&l.left),h=s.top+(u&&l.top);let{width:g,height:m}=e;return i&&(g-=s.width+l.width,m-=s.height+l.height),{x:Math.round((c-f)/g*o.width/r),y:Math.round((d-h)/m*o.height/r)}}function E5(t,e,o){let r,n;if(e===void 0||o===void 0){const i=t&&Na(t);if(!i)e=t.clientWidth,o=t.clientHeight;else{const s=i.getBoundingClientRect(),l=Zn(i),c=Do(l,"border","width"),d=Do(l,"padding");e=s.width-d.width-c.width,o=s.height-d.height-c.height,r=Qn(l.maxWidth,i,"clientWidth"),n=Qn(l.maxHeight,i,"clientHeight")}}return{width:e,height:o,maxWidth:r||qn,maxHeight:n||qn}}const ei=t=>Math.round(t*10)/10;function R5(t,e,o,r){const n=Zn(t),i=Do(n,"margin"),s=Qn(n.maxWidth,t,"clientWidth")||qn,l=Qn(n.maxHeight,t,"clientHeight")||qn,c=E5(t,e,o);let{width:d,height:u}=c;if(n.boxSizing==="content-box"){const h=Do(n,"border","width"),g=Do(n,"padding");d-=g.width+h.width,u-=g.height+h.height}return d=Math.max(0,d-i.width),u=Math.max(0,r?d/r:u-i.height),d=ei(Math.min(d,s,c.maxWidth)),u=ei(Math.min(u,l,c.maxHeight)),d&&!u&&(u=ei(d/2)),(e!==void 0||o!==void 0)&&r&&c.height&&u>c.height&&(u=c.height,d=ei(Math.floor(u*r))),{width:d,height:u}}function Pd(t,e,o){const r=e||1,n=Math.floor(t.height*r),i=Math.floor(t.width*r);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const s=t.canvas;return s.style&&(o||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),t.currentDevicePixelRatio!==r||s.height!==n||s.width!==i?(t.currentDevicePixelRatio=r,s.height=n,s.width=i,t.ctx.setTransform(r,0,0,r,0,0),!0):!1}const D5=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};Oa()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function $d(t,e){const o=C5(t,e),r=o&&o.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function No(t,e,o,r){return{x:t.x+o*(e.x-t.x),y:t.y+o*(e.y-t.y)}}function O5(t,e,o,r){return{x:t.x+o*(e.x-t.x),y:r==="middle"?o<.5?t.y:e.y:r==="after"?o<1?t.y:e.y:o>0?e.y:t.y}}function N5(t,e,o,r){const n={x:t.cp2x,y:t.cp2y},i={x:e.cp1x,y:e.cp1y},s=No(t,n,o),l=No(n,i,o),c=No(i,e,o),d=No(s,l,o),u=No(l,c,o);return No(d,u,o)}const T5=function(t,e){return{x(o){return t+t+e-o},setWidth(o){e=o},textAlign(o){return o==="center"?o:o==="right"?"left":"right"},xPlus(o,r){return o-r},leftForLtr(o,r){return o-r}}},P5=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Ko(t,e,o){return t?T5(e,o):P5()}function Ad(t,e){let o,r;(e==="ltr"||e==="rtl")&&(o=t.canvas.style,r=[o.getPropertyValue("direction"),o.getPropertyPriority("direction")],o.setProperty("direction",e,"important"),t.prevTextDirection=r)}function Md(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Vd(t){return t==="angle"?{between:Ar,compare:$_,normalize:at}:{between:jt,compare:(e,o)=>e-o,normalize:e=>e}}function Fd({start:t,end:e,count:o,loop:r,style:n}){return{start:t%o,end:e%o,loop:r&&(e-t+1)%o===0,style:n}}function $5(t,e,o){const{property:r,start:n,end:i}=o,{between:s,normalize:l}=Vd(r),c=e.length;let{start:d,end:u,loop:f}=t,h,g;if(f){for(d+=c,u+=c,h=0,g=c;h<g&&s(l(e[d%c][r]),n,i);++h)d--,u--;d%=c,u%=c}return u<d&&(u+=c),{start:d,end:u,loop:f,style:t.style}}function Id(t,e,o){if(!o)return[t];const{property:r,start:n,end:i}=o,s=e.length,{compare:l,between:c,normalize:d}=Vd(r),{start:u,end:f,loop:h,style:g}=$5(t,e,o),m=[];let p=!1,b=null,y,k,C;const _=()=>c(n,C,y)&&l(n,C)!==0,v=()=>l(i,y)===0||c(i,C,y),S=()=>p||_(),w=()=>!p||v();for(let x=u,B=u;x<=f;++x)k=e[x%s],!k.skip&&(y=d(k[r]),y!==C&&(p=c(y,n,i),b===null&&S()&&(b=l(y,n)===0?x:B),b!==null&&w()&&(m.push(Fd({start:b,end:x,loop:h,count:s,style:g})),b=null),B=x,C=y));return b!==null&&m.push(Fd({start:b,end:f,loop:h,count:s,style:g})),m}function Ld(t,e){const o=[],r=t.segments;for(let n=0;n<r.length;n++){const i=Id(r[n],t.points,e);i.length&&o.push(...i)}return o}function A5(t,e,o,r){let n=0,i=e-1;if(o&&!r)for(;n<e&&!t[n].skip;)n++;for(;n<e&&t[n].skip;)n++;for(n%=e,o&&(i+=n);i>n&&t[i%e].skip;)i--;return i%=e,{start:n,end:i}}function M5(t,e,o,r){const n=t.length,i=[];let s=e,l=t[e],c;for(c=e+1;c<=o;++c){const d=t[c%n];d.skip||d.stop?l.skip||(r=!1,i.push({start:e%n,end:(c-1)%n,loop:r}),e=s=d.stop?c:null):(s=c,l.skip&&(e=c)),l=d}return s!==null&&i.push({start:e%n,end:s%n,loop:r}),i}function V5(t,e){const o=t.points,r=t.options.spanGaps,n=o.length;if(!n)return[];const i=!!t._loop,{start:s,end:l}=A5(o,n,i,r);if(r===!0)return zd(t,[{start:s,end:l,loop:i}],o,e);const c=l<s?l+n:l,d=!!t._fullLoop&&s===0&&l===n-1;return zd(t,M5(o,s,c,d),o,e)}function zd(t,e,o,r){return!r||!r.setContext||!o?e:F5(t,e,o,r)}function F5(t,e,o,r){const n=t._chart.getContext(),i=jd(t.options),{_datasetIndex:s,options:{spanGaps:l}}=t,c=o.length,d=[];let u=i,f=e[0].start,h=f;function g(m,p,b,y){const k=l?-1:1;if(m!==p){for(m+=c;o[m%c].skip;)m-=k;for(;o[p%c].skip;)p+=k;m%c!==p%c&&(d.push({start:m%c,end:p%c,loop:b,style:y}),u=y,f=p%c)}}for(const m of e){f=l?f:m.start;let p=o[f%c],b;for(h=f+1;h<=m.end;h++){const y=o[h%c];b=jd(r.setContext(lo(n,{type:"segment",p0:p,p1:y,p0DataIndex:(h-1)%c,p1DataIndex:h%c,datasetIndex:s}))),I5(b,u)&&g(f,h-1,m.loop,u),p=y,u=b}f<h-1&&g(f,h-1,m.loop,u)}return d}function jd(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function I5(t,e){if(!e)return!1;const o=[],r=function(n,i){return va(i)?(o.includes(i)||o.push(i),o.indexOf(i)):i};return JSON.stringify(t,r)!==JSON.stringify(e,r)}/*!
|
|
176
176
|
* Chart.js v4.4.7
|
|
177
177
|
* https://www.chartjs.org
|
|
178
178
|
* (c) 2024 Chart.js Contributors
|
|
179
179
|
* Released under the MIT License
|
|
180
|
-
*/class z5{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,o,r,n){const i=o.listeners[n],s=o.duration;i.forEach(l=>l({chart:e,initial:o.initial,numSteps:s,currentStep:Math.min(r-o.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=hd.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let o=0;this._charts.forEach((r,n)=>{if(!r.running||!r.items.length)return;const i=r.items;let s=i.length-1,l=!1,c;for(;s>=0;--s)c=i[s],c._active?(c._total>r.duration&&(r.duration=c._total),c.tick(e),l=!0):(i[s]=i[i.length-1],i.pop());l&&(n.draw(),this._notify(n,r,e,"progress")),i.length||(r.running=!1,this._notify(n,r,e,"complete"),r.initial=!1),o+=i.length}),this._lastDate=e,o===0&&(this._running=!1)}_getAnims(e){const o=this._charts;let r=o.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},o.set(e,r)),r}listen(e,o,r){this._getAnims(e).listeners[o].push(r)}add(e,o){!o||!o.length||this._getAnims(e).items.push(...o)}has(e){return this._getAnims(e).items.length>0}start(e){const o=this._charts.get(e);o&&(o.running=!0,o.start=Date.now(),o.duration=o.items.reduce((r,n)=>Math.max(r,n._duration),0),this._refresh())}running(e){if(!this._running)return!1;const o=this._charts.get(e);return!(!o||!o.running||!o.items.length)}stop(e){const o=this._charts.get(e);if(!o||!o.items.length)return;const r=o.items;let n=r.length-1;for(;n>=0;--n)r[n].cancel();o.items=[],this._notify(e,o,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Rt=new z5;const Wd="transparent",j5={boolean(t,e,o){return o>.5?e:t},color(t,e,o){const r=kd(t||Wd),n=r.valid&&kd(e||Wd);return n&&n.valid?n.mix(r,o).hexString():e},number(t,e,o){return t+(e-t)*o}};class Hd{constructor(e,o,r,n){const i=o[r];n=zr([e.to,n,i,e.from]);const s=zr([e.from,i,n]);this._active=!0,this._fn=e.fn||j5[e.type||typeof s],this._easing=Mr[e.easing]||Mr.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=o,this._prop=r,this._from=s,this._to=n,this._promises=void 0}active(){return this._active}update(e,o,r){if(this._active){this._notify(!1);const n=this._target[this._prop],i=r-this._start,s=this._duration-i;this._start=r,this._duration=Math.floor(Math.max(s,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=zr([e.to,o,n,e.from]),this._from=zr([e.from,n,o])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const o=e-this._start,r=this._duration,n=this._prop,i=this._from,s=this._loop,l=this._to;let c;if(this._active=i!==l&&(s||o<r),!this._active){this._target[n]=l,this._notify(!0);return}if(o<0){this._target[n]=i;return}c=o/r%2,c=s&&c>1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[n]=this._fn(i,l,c)}wait(){const e=this._promises||(this._promises=[]);return new Promise((o,r)=>{e.push({res:o,rej:r})})}_notify(e){const o=e?"res":"rej",r=this._promises||[];for(let n=0;n<r.length;n++)r[n][o]()}}class Pa{constructor(e,o){this._chart=e,this._properties=new Map,this.configure(o)}configure(e){if(!de(e))return;const o=Object.keys(Se.animation),r=this._properties;Object.getOwnPropertyNames(e).forEach(n=>{const i=e[n];if(!de(i))return;const s={};for(const l of o)s[l]=i[l];(Re(i.properties)&&i.properties||[n]).forEach(l=>{(l===n||!r.has(l))&&r.set(l,s)})})}_animateOptions(e,o){const r=o.options,n=H5(e,r);if(!n)return[];const i=this._createAnimations(n,r);return r.$shared&&W5(e.options.$animations,r).then(()=>{e.options=r},()=>{}),i}_createAnimations(e,o){const r=this._properties,n=[],i=e.$animations||(e.$animations={}),s=Object.keys(o),l=Date.now();let c;for(c=s.length-1;c>=0;--c){const d=s[c];if(d.charAt(0)==="$")continue;if(d==="options"){n.push(...this._animateOptions(e,o));continue}const u=o[d];let f=i[d];const h=r.get(d);if(f)if(h&&f.active()){f.update(h,u,l);continue}else f.cancel();if(!h||!h.duration){e[d]=u;continue}i[d]=f=new Hd(h,e,d,u),n.push(f)}return n}update(e,o){if(this._properties.size===0){Object.assign(e,o);return}const r=this._createAnimations(e,o);if(r.length)return Rt.add(this._chart,r),!0}}function W5(t,e){const o=[],r=Object.keys(e);for(let n=0;n<r.length;n++){const i=t[r[n]];i&&i.active()&&o.push(i.wait())}return Promise.all(o)}function H5(t,e){if(!e)return;let o=t.options;if(!o){t.options=e;return}return o.$shared&&(t.options=o=Object.assign({},o,{$shared:!1,$animations:{}})),o}function Ud(t,e){const o=t&&t.options||{},r=o.reverse,n=o.min===void 0?e:0,i=o.max===void 0?e:0;return{start:r?i:n,end:r?n:i}}function U5(t,e,o){if(o===!1)return!1;const r=Ud(t,o),n=Ud(e,o);return{top:n.end,right:r.end,bottom:n.start,left:r.start}}function q5(t){let e,o,r,n;return de(t)?(e=t.top,o=t.right,r=t.bottom,n=t.left):e=o=r=n=t,{top:e,right:o,bottom:r,left:n,disabled:t===!1}}function qd(t,e){const o=[],r=t._getSortedDatasetMetas(e);let n,i;for(n=0,i=r.length;n<i;++n)o.push(r[n].index);return o}function Yd(t,e,o,r={}){const n=t.keys,i=r.mode==="single";let s,l,c,d;if(e===null)return;let u=!1;for(s=0,l=n.length;s<l;++s){if(c=+n[s],c===o){if(u=!0,r.all)continue;break}d=t.values[c],$e(d)&&(i||e===0||Et(e)===Et(d))&&(e+=d)}return!u&&!r.all?0:e}function Y5(t,e){const{iScale:o,vScale:r}=e,n=o.axis==="x"?"x":"y",i=r.axis==="x"?"x":"y",s=Object.keys(t),l=new Array(s.length);let c,d,u;for(c=0,d=s.length;c<d;++c)u=s[c],l[c]={[n]:u,[i]:t[u]};return l}function $a(t,e){const o=t&&t.options.stacked;return o||o===void 0&&e.stack!==void 0}function X5(t,e,o){return`${t.id}.${e.id}.${o.stack||o.type}`}function K5(t){const{min:e,max:o,minDefined:r,maxDefined:n}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:n?o:Number.POSITIVE_INFINITY}}function G5(t,e,o){const r=t[e]||(t[e]={});return r[o]||(r[o]={})}function Xd(t,e,o,r){for(const n of e.getMatchingVisibleMetas(r).reverse()){const i=t[n.index];if(o&&i>0||!o&&i<0)return n.index}return null}function Kd(t,e){const{chart:o,_cachedMeta:r}=t,n=o._stacks||(o._stacks={}),{iScale:i,vScale:s,index:l}=r,c=i.axis,d=s.axis,u=X5(i,s,r),f=e.length;let h;for(let g=0;g<f;++g){const m=e[g],{[c]:p,[d]:b}=m,y=m._stacks||(m._stacks={});h=y[d]=G5(n,u,p),h[l]=b,h._top=Xd(h,s,!0,r.type),h._bottom=Xd(h,s,!1,r.type);const k=h._visualValues||(h._visualValues={});k[l]=b}}function Aa(t,e){const o=t.scales;return Object.keys(o).filter(r=>o[r].axis===e).shift()}function J5(t,e){return lo(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function Q5(t,e,o){return lo(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:o,index:e,mode:"default",type:"data"})}function jr(t,e){const o=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const n of e){const i=n._stacks;if(!i||i[r]===void 0||i[r][o]===void 0)return;delete i[r][o],i[r]._visualValues!==void 0&&i[r]._visualValues[o]!==void 0&&delete i[r]._visualValues[o]}}}const Ma=t=>t==="reset"||t==="none",Gd=(t,e)=>e?t:Object.assign({},t),Z5=(t,e,o)=>t&&!e.hidden&&e._stacked&&{keys:qd(o,!0),values:null};class ut{constructor(e,o){this.chart=e,this._ctx=e.ctx,this.index=o,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=$a(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&jr(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,o=this._cachedMeta,r=this.getDataset(),n=(f,h,g,m)=>f==="x"?h:f==="r"?m:g,i=o.xAxisID=se(r.xAxisID,Aa(e,"x")),s=o.yAxisID=se(r.yAxisID,Aa(e,"y")),l=o.rAxisID=se(r.rAxisID,Aa(e,"r")),c=o.indexAxis,d=o.iAxisID=n(c,i,s,l),u=o.vAxisID=n(c,s,i,l);o.xScale=this.getScaleForId(i),o.yScale=this.getScaleForId(s),o.rScale=this.getScaleForId(l),o.iScale=this.getScaleForId(d),o.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const o=this._cachedMeta;return e===o.iScale?o.vScale:o.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&ud(this._data,this),e._stacked&&jr(e)}_dataCheck(){const e=this.getDataset(),o=e.data||(e.data=[]),r=this._data;if(de(o)){const n=this._cachedMeta;this._data=Y5(o,n)}else if(r!==o){if(r){ud(r,this);const n=this._cachedMeta;jr(n),n._parsed=[]}o&&Object.isExtensible(o)&&I_(o,this),this._syncList=[],this._data=o}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const o=this._cachedMeta,r=this.getDataset();let n=!1;this._dataCheck();const i=o._stacked;o._stacked=$a(o.vScale,o),o.stack!==r.stack&&(n=!0,jr(o),o.stack=r.stack),this._resyncElements(e),(n||i!==o._stacked)&&(Kd(this,o._parsed),o._stacked=$a(o.vScale,o))}configure(){const e=this.chart.config,o=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),o,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,o){const{_cachedMeta:r,_data:n}=this,{iScale:i,_stacked:s}=r,l=i.axis;let c=e===0&&o===n.length?!0:r._sorted,d=e>0&&r._parsed[e-1],u,f,h;if(this._parsing===!1)r._parsed=n,r._sorted=!0,h=n;else{Re(n[e])?h=this.parseArrayData(r,n,e,o):de(n[e])?h=this.parseObjectData(r,n,e,o):h=this.parsePrimitiveData(r,n,e,o);const g=()=>f[l]===null||d&&f[l]<d[l];for(u=0;u<o;++u)r._parsed[u+e]=f=h[u],c&&(g()&&(c=!1),d=f);r._sorted=c}s&&Kd(this,h)}parsePrimitiveData(e,o,r,n){const{iScale:i,vScale:s}=e,l=i.axis,c=s.axis,d=i.getLabels(),u=i===s,f=new Array(n);let h,g,m;for(h=0,g=n;h<g;++h)m=h+r,f[h]={[l]:u||i.parse(d[m],m),[c]:s.parse(o[m],m)};return f}parseArrayData(e,o,r,n){const{xScale:i,yScale:s}=e,l=new Array(n);let c,d,u,f;for(c=0,d=n;c<d;++c)u=c+r,f=o[u],l[c]={x:i.parse(f[0],u),y:s.parse(f[1],u)};return l}parseObjectData(e,o,r,n){const{xScale:i,yScale:s}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,d=new Array(n);let u,f,h,g;for(u=0,f=n;u<f;++u)h=u+r,g=o[h],d[u]={x:i.parse(io(g,l),h),y:s.parse(io(g,c),h)};return d}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,o,r){const n=this.chart,i=this._cachedMeta,s=o[e.axis],l={keys:qd(n,!0),values:o._stacks[e.axis]._visualValues};return Yd(l,s,i.index,{mode:r})}updateRangeFromParsed(e,o,r,n){const i=r[o.axis];let s=i===null?NaN:i;const l=n&&r._stacks[o.axis];n&&l&&(n.values=l,s=Yd(n,i,this._cachedMeta.index)),e.min=Math.min(e.min,s),e.max=Math.max(e.max,s)}getMinMax(e,o){const r=this._cachedMeta,n=r._parsed,i=r._sorted&&e===r.iScale,s=n.length,l=this._getOtherScale(e),c=Z5(o,r,this.chart),d={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:f}=K5(l);let h,g;function m(){g=n[h];const p=g[l.axis];return!$e(g[e.axis])||u>p||f<p}for(h=0;h<s&&!(!m()&&(this.updateRangeFromParsed(d,e,g,c),i));++h);if(i){for(h=s-1;h>=0;--h)if(!m()){this.updateRangeFromParsed(d,e,g,c);break}}return d}getAllParsedValues(e){const o=this._cachedMeta._parsed,r=[];let n,i,s;for(n=0,i=o.length;n<i;++n)s=o[n][e.axis],$e(s)&&r.push(s);return r}getMaxOverflow(){return!1}getLabelAndValue(e){const o=this._cachedMeta,r=o.iScale,n=o.vScale,i=this.getParsed(e);return{label:r?""+r.getLabelForValue(i[r.axis]):"",value:n?""+n.getLabelForValue(i[n.axis]):""}}_update(e){const o=this._cachedMeta;this.update(e||"default"),o._clip=q5(se(this.options.clip,U5(o.xScale,o.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,o=this.chart,r=this._cachedMeta,n=r.data||[],i=o.chartArea,s=[],l=this._drawStart||0,c=this._drawCount||n.length-l,d=this.options.drawActiveElementsOnTop;let u;for(r.dataset&&r.dataset.draw(e,i,l,c),u=l;u<l+c;++u){const f=n[u];f.hidden||(f.active&&d?s.push(f):f.draw(e,i))}for(u=0;u<s.length;++u)s[u].draw(e,i)}getStyle(e,o){const r=o?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(e||0,r)}getContext(e,o,r){const n=this.getDataset();let i;if(e>=0&&e<this._cachedMeta.data.length){const s=this._cachedMeta.data[e];i=s.$context||(s.$context=Q5(this.getContext(),e,s)),i.parsed=this.getParsed(e),i.raw=n.data[e],i.index=i.dataIndex=e}else i=this.$context||(this.$context=J5(this.chart.getContext(),this.index)),i.dataset=n,i.index=i.datasetIndex=this.index;return i.active=!!o,i.mode=r,i}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,o){return this._resolveElementOptions(this.dataElementType.id,o,e)}_resolveElementOptions(e,o="default",r){const n=o==="active",i=this._cachedDataOpts,s=e+"-"+o,l=i[s],c=this.enableOptionSharing&&Pr(r);if(l)return Gd(l,c);const d=this.chart.config,u=d.datasetElementScopeKeys(this._type,e),f=n?[`${e}Hover`,"hover",e,""]:[e,""],h=d.getOptionScopes(this.getDataset(),u),g=Object.keys(Se.elements[e]),m=()=>this.getContext(r,n,o),p=d.resolveNamedOptions(h,g,m,f);return p.$shared&&(p.$shared=c,i[s]=Object.freeze(Gd(p,c))),p}_resolveAnimations(e,o,r){const n=this.chart,i=this._cachedDataOpts,s=`animation-${o}`,l=i[s];if(l)return l;let c;if(n.options.animation!==!1){const u=this.chart.config,f=u.datasetAnimationScopeKeys(this._type,o),h=u.getOptionScopes(this.getDataset(),f);c=u.createResolver(h,this.getContext(e,r,o))}const d=new Pa(n,c&&c.animations);return c&&c._cacheable&&(i[s]=Object.freeze(d)),d}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,o){return!o||Ma(e)||this.chart._animationsDisabled}_getSharedOptions(e,o){const r=this.resolveDataElementOptions(e,o),n=this._sharedOptions,i=this.getSharedOptions(r),s=this.includeOptions(o,i)||i!==n;return this.updateSharedOptions(i,o,r),{sharedOptions:i,includeOptions:s}}updateElement(e,o,r,n){Ma(n)?Object.assign(e,r):this._resolveAnimations(o,n).update(e,r)}updateSharedOptions(e,o,r){e&&!Ma(o)&&this._resolveAnimations(void 0,o).update(e,r)}_setStyle(e,o,r,n){e.active=n;const i=this.getStyle(o,n);this._resolveAnimations(o,r,n).update(e,{options:!n&&this.getSharedOptions(i)||i})}removeHoverStyle(e,o,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,o,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const o=this._data,r=this._cachedMeta.data;for(const[l,c,d]of this._syncList)this[l](c,d);this._syncList=[];const n=r.length,i=o.length,s=Math.min(i,n);s&&this.parse(0,s),i>n?this._insertElements(n,i-n,e):i<n&&this._removeElements(i,n-i)}_insertElements(e,o,r=!0){const n=this._cachedMeta,i=n.data,s=e+o;let l;const c=d=>{for(d.length+=o,l=d.length-1;l>=s;l--)d[l]=d[l-o]};for(c(i),l=e;l<s;++l)i[l]=new this.dataElementType;this._parsing&&c(n._parsed),this.parse(e,o),r&&this.updateElements(i,e,o,"reset")}updateElements(e,o,r,n){}_removeElements(e,o){const r=this._cachedMeta;if(this._parsing){const n=r._parsed.splice(e,o);r._stacked&&jr(r,n)}r.data.splice(e,o)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[o,r,n]=e;this[o](r,n)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,o){o&&this._sync(["_removeElements",e,o]);const r=arguments.length-2;r&&this._sync(["_insertElements",e,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}j(ut,"defaults",{}),j(ut,"datasetElementType",null),j(ut,"dataElementType",null);function eS(t,e){if(!t._cache.$bar){const o=t.getMatchingVisibleMetas(e);let r=[];for(let n=0,i=o.length;n<i;n++)r=r.concat(o[n].controller.getAllParsedValues(t));t._cache.$bar=fd(r.sort((n,i)=>n-i))}return t._cache.$bar}function tS(t){const e=t.iScale,o=eS(e,t.type);let r=e._length,n,i,s,l;const c=()=>{s===32767||s===-32768||(Pr(l)&&(r=Math.min(r,Math.abs(s-l)||r)),l=s)};for(n=0,i=o.length;n<i;++n)s=e.getPixelForValue(o[n]),c();for(l=void 0,n=0,i=e.ticks.length;n<i;++n)s=e.getPixelForTick(n),c();return r}function oS(t,e,o,r){const n=o.barThickness;let i,s;return fe(n)?(i=e.min*o.categoryPercentage,s=o.barPercentage):(i=n*r,s=1),{chunk:i/r,ratio:s,start:e.pixels[t]-i/2}}function rS(t,e,o,r){const n=e.pixels,i=n[t];let s=t>0?n[t-1]:null,l=t<n.length-1?n[t+1]:null;const c=o.categoryPercentage;s===null&&(s=i-(l===null?e.end-e.start:l-i)),l===null&&(l=i+i-s);const d=i-(i-Math.min(s,l))/2*c;return{chunk:Math.abs(l-s)/2*c/r,ratio:o.barPercentage,start:d}}function nS(t,e,o,r){const n=o.parse(t[0],r),i=o.parse(t[1],r),s=Math.min(n,i),l=Math.max(n,i);let c=s,d=l;Math.abs(s)>Math.abs(l)&&(c=l,d=s),e[o.axis]=d,e._custom={barStart:c,barEnd:d,start:n,end:i,min:s,max:l}}function Jd(t,e,o,r){return Re(t)?nS(t,e,o,r):e[o.axis]=o.parse(t,r),e}function Qd(t,e,o,r){const n=t.iScale,i=t.vScale,s=n.getLabels(),l=n===i,c=[];let d,u,f,h;for(d=o,u=o+r;d<u;++d)h=e[d],f={},f[n.axis]=l||n.parse(s[d],d),c.push(Jd(h,f,i,d));return c}function Va(t){return t&&t.barStart!==void 0&&t.barEnd!==void 0}function iS(t,e,o){return t!==0?Et(t):(e.isHorizontal()?1:-1)*(e.min>=o?1:-1)}function aS(t){let e,o,r,n,i;return t.horizontal?(e=t.base>t.x,o="left",r="right"):(e=t.base<t.y,o="bottom",r="top"),e?(n="end",i="start"):(n="start",i="end"),{start:o,end:r,reverse:e,top:n,bottom:i}}function sS(t,e,o,r){let n=e.borderSkipped;const i={};if(!n){t.borderSkipped=i;return}if(n===!0){t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:s,end:l,reverse:c,top:d,bottom:u}=aS(t);n==="middle"&&o&&(t.enableBorderRadius=!0,(o._top||0)===r?n=d:(o._bottom||0)===r?n=u:(i[Zd(u,s,l,c)]=!0,n=d)),i[Zd(n,s,l,c)]=!0,t.borderSkipped=i}function Zd(t,e,o,r){return r?(t=lS(t,e,o),t=eu(t,o,e)):t=eu(t,e,o),t}function lS(t,e,o){return t===e?o:t===o?e:t}function eu(t,e,o){return t==="start"?e:t==="end"?o:t}function cS(t,{inflateAmount:e},o){t.inflateAmount=e==="auto"?o===1?.33:0:e}class Wr extends ut{parsePrimitiveData(e,o,r,n){return Qd(e,o,r,n)}parseArrayData(e,o,r,n){return Qd(e,o,r,n)}parseObjectData(e,o,r,n){const{iScale:i,vScale:s}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,d=i.axis==="x"?l:c,u=s.axis==="x"?l:c,f=[];let h,g,m,p;for(h=r,g=r+n;h<g;++h)p=o[h],m={},m[i.axis]=i.parse(io(p,d),h),f.push(Jd(io(p,u),m,s,h));return f}updateRangeFromParsed(e,o,r,n){super.updateRangeFromParsed(e,o,r,n);const i=r._custom;i&&o===this._cachedMeta.vScale&&(e.min=Math.min(e.min,i.min),e.max=Math.max(e.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const o=this._cachedMeta,{iScale:r,vScale:n}=o,i=this.getParsed(e),s=i._custom,l=Va(s)?"["+s.start+", "+s.end+"]":""+n.getLabelForValue(i[n.axis]);return{label:""+r.getLabelForValue(i[r.axis]),value:l}}initialize(){this.enableOptionSharing=!0,super.initialize();const e=this._cachedMeta;e.stack=this.getDataset().stack}update(e){const o=this._cachedMeta;this.updateElements(o.data,0,o.data.length,e)}updateElements(e,o,r,n){const i=n==="reset",{index:s,_cachedMeta:{vScale:l}}=this,c=l.getBasePixel(),d=l.isHorizontal(),u=this._getRuler(),{sharedOptions:f,includeOptions:h}=this._getSharedOptions(o,n);for(let g=o;g<o+r;g++){const m=this.getParsed(g),p=i||fe(m[l.axis])?{base:c,head:c}:this._calculateBarValuePixels(g),b=this._calculateBarIndexPixels(g,u),y=(m._stacks||{})[l.axis],k={horizontal:d,base:p.base,enableBorderRadius:!y||Va(m._custom)||s===y._top||s===y._bottom,x:d?p.head:b.center,y:d?b.center:p.head,height:d?b.size:Math.abs(p.size),width:d?Math.abs(p.size):b.size};h&&(k.options=f||this.resolveDataElementOptions(g,e[g].active?"active":n));const C=k.options||e[g].options;sS(k,C,y,s),cS(k,C,u.ratio),this.updateElement(e[g],g,k,n)}}_getStacks(e,o){const{iScale:r}=this._cachedMeta,n=r.getMatchingVisibleMetas(this._type).filter(u=>u.controller.options.grouped),i=r.options.stacked,s=[],l=this._cachedMeta.controller.getParsed(o),c=l&&l[r.axis],d=u=>{const f=u._parsed.find(g=>g[r.axis]===c),h=f&&f[u.vScale.axis];if(fe(h)||isNaN(h))return!0};for(const u of n)if(!(o!==void 0&&d(u))&&((i===!1||s.indexOf(u.stack)===-1||i===void 0&&u.stack===void 0)&&s.push(u.stack),u.index===e))break;return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,o,r){const n=this._getStacks(e,r),i=o!==void 0?n.indexOf(o):-1;return i===-1?n.length-1:i}_getRuler(){const e=this.options,o=this._cachedMeta,r=o.iScale,n=[];let i,s;for(i=0,s=o.data.length;i<s;++i)n.push(r.getPixelForValue(this.getParsed(i)[r.axis],i));const l=e.barThickness;return{min:l||tS(o),pixels:n,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:e.grouped,ratio:l?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:o,_stacked:r,index:n},options:{base:i,minBarLength:s}}=this,l=i||0,c=this.getParsed(e),d=c._custom,u=Va(d);let f=c[o.axis],h=0,g=r?this.applyStack(o,c,r):f,m,p;g!==f&&(h=g-f,g=f),u&&(f=d.barStart,g=d.barEnd-d.barStart,f!==0&&Et(f)!==Et(d.barEnd)&&(h=0),h+=f);const b=!fe(i)&&!u?i:h;let y=o.getPixelForValue(b);if(this.chart.getDataVisibility(e)?m=o.getPixelForValue(h+g):m=y,p=m-y,Math.abs(p)<s){p=iS(p,o,l)*s,f===l&&(y-=p/2);const k=o.getPixelForDecimal(0),C=o.getPixelForDecimal(1),_=Math.min(k,C),v=Math.max(k,C);y=Math.max(Math.min(y,v),_),m=y+p,r&&!u&&(c._stacks[o.axis]._visualValues[n]=o.getValueForPixel(m)-o.getValueForPixel(y))}if(y===o.getPixelForValue(l)){const k=Et(p)*o.getLineWidthForValue(l)/2;y+=k,p-=k}return{size:p,base:y,head:m,center:m+p/2}}_calculateBarIndexPixels(e,o){const r=o.scale,n=this.options,i=n.skipNull,s=se(n.maxBarThickness,1/0);let l,c;if(o.grouped){const d=i?this._getStackCount(e):o.stackCount,u=n.barThickness==="flex"?rS(e,o,n,d):oS(e,o,n,d),f=this._getStackIndex(this.index,this._cachedMeta.stack,i?e:void 0);l=u.start+u.chunk*f+u.chunk/2,c=Math.min(s,u.chunk*u.ratio)}else l=r.getPixelForValue(this.getParsed(e)[r.axis],e),c=Math.min(s,o.min*o.ratio);return{base:l-c/2,head:l+c/2,center:l,size:c}}draw(){const e=this._cachedMeta,o=e.vScale,r=e.data,n=r.length;let i=0;for(;i<n;++i)this.getParsed(i)[o.axis]!==null&&!r[i].hidden&&r[i].draw(this._ctx)}}j(Wr,"id","bar"),j(Wr,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),j(Wr,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class Hr extends ut{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,o,r,n){const i=super.parsePrimitiveData(e,o,r,n);for(let s=0;s<i.length;s++)i[s]._custom=this.resolveDataElementOptions(s+r).radius;return i}parseArrayData(e,o,r,n){const i=super.parseArrayData(e,o,r,n);for(let s=0;s<i.length;s++){const l=o[r+s];i[s]._custom=se(l[2],this.resolveDataElementOptions(s+r).radius)}return i}parseObjectData(e,o,r,n){const i=super.parseObjectData(e,o,r,n);for(let s=0;s<i.length;s++){const l=o[r+s];i[s]._custom=se(l&&l.r&&+l.r,this.resolveDataElementOptions(s+r).radius)}return i}getMaxOverflow(){const e=this._cachedMeta.data;let o=0;for(let r=e.length-1;r>=0;--r)o=Math.max(o,e[r].size(this.resolveDataElementOptions(r))/2);return o>0&&o}getLabelAndValue(e){const o=this._cachedMeta,r=this.chart.data.labels||[],{xScale:n,yScale:i}=o,s=this.getParsed(e),l=n.getLabelForValue(s.x),c=i.getLabelForValue(s.y),d=s._custom;return{label:r[e]||"",value:"("+l+", "+c+(d?", "+d:"")+")"}}update(e){const o=this._cachedMeta.data;this.updateElements(o,0,o.length,e)}updateElements(e,o,r,n){const i=n==="reset",{iScale:s,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(o,n),u=s.axis,f=l.axis;for(let h=o;h<o+r;h++){const g=e[h],m=!i&&this.getParsed(h),p={},b=p[u]=i?s.getPixelForDecimal(.5):s.getPixelForValue(m[u]),y=p[f]=i?l.getBasePixel():l.getPixelForValue(m[f]);p.skip=isNaN(b)||isNaN(y),d&&(p.options=c||this.resolveDataElementOptions(h,g.active?"active":n),i&&(p.options.radius=0)),this.updateElement(g,h,p,n)}}resolveDataElementOptions(e,o){const r=this.getParsed(e);let n=super.resolveDataElementOptions(e,o);n.$shared&&(n=Object.assign({},n,{$shared:!1}));const i=n.radius;return o!=="active"&&(n.radius=0),n.radius+=se(r&&r._custom,i),n}}j(Hr,"id","bubble"),j(Hr,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),j(Hr,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function dS(t,e,o){let r=1,n=1,i=0,s=0;if(e<_e){const l=t,c=l+e,d=Math.cos(l),u=Math.sin(l),f=Math.cos(c),h=Math.sin(c),g=(C,_,v)=>Ar(C,l,c,!0)?1:Math.max(_,_*o,v,v*o),m=(C,_,v)=>Ar(C,l,c,!0)?-1:Math.min(_,_*o,v,v*o),p=g(0,d,f),b=g(Me,u,h),y=m(Ce,d,f),k=m(Ce+Me,u,h);r=(p-y)/2,n=(b-k)/2,i=-(p+y)/2,s=-(b+k)/2}return{ratioX:r,ratioY:n,offsetX:i,offsetY:s}}class co extends ut{constructor(e,o){super(e,o),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,o){const r=this.getDataset().data,n=this._cachedMeta;if(this._parsing===!1)n._parsed=r;else{let i=c=>+r[c];if(de(r[e])){const{key:c="value"}=this._parsing;i=d=>+io(r[d],c)}let s,l;for(s=e,l=e+o;s<l;++s)n._parsed[s]=i(s)}}_getRotation(){return kt(this.options.rotation-90)}_getCircumference(){return kt(this.options.circumference)}_getRotationExtents(){let e=_e,o=-_e;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const n=this.chart.getDatasetMeta(r).controller,i=n._getRotation(),s=n._getCircumference();e=Math.min(e,i),o=Math.max(o,i+s)}return{rotation:e,circumference:o-e}}update(e){const o=this.chart,{chartArea:r}=o,n=this._cachedMeta,i=n.data,s=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,l=Math.max((Math.min(r.width,r.height)-s)/2,0),c=Math.min(S_(this.options.cutout,l),1),d=this._getRingWeight(this.index),{circumference:u,rotation:f}=this._getRotationExtents(),{ratioX:h,ratioY:g,offsetX:m,offsetY:p}=dS(f,u,c),b=(r.width-s)/h,y=(r.height-s)/g,k=Math.max(Math.min(b,y)/2,0),C=td(this.options.radius,k),_=Math.max(C*c,0),v=(C-_)/this._getVisibleDatasetWeightTotal();this.offsetX=m*C,this.offsetY=p*C,n.total=this.calculateTotal(),this.outerRadius=C-v*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-v*d,0),this.updateElements(i,0,i.length,e)}_circumference(e,o){const r=this.options,n=this._cachedMeta,i=this._getCircumference();return o&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||n._parsed[e]===null||n.data[e].hidden?0:this.calculateCircumference(n._parsed[e]*i/_e)}updateElements(e,o,r,n){const i=n==="reset",s=this.chart,l=s.chartArea,d=s.options.animation,u=(l.left+l.right)/2,f=(l.top+l.bottom)/2,h=i&&d.animateScale,g=h?0:this.innerRadius,m=h?0:this.outerRadius,{sharedOptions:p,includeOptions:b}=this._getSharedOptions(o,n);let y=this._getRotation(),k;for(k=0;k<o;++k)y+=this._circumference(k,i);for(k=o;k<o+r;++k){const C=this._circumference(k,i),_=e[k],v={x:u+this.offsetX,y:f+this.offsetY,startAngle:y,endAngle:y+C,circumference:C,outerRadius:m,innerRadius:g};b&&(v.options=p||this.resolveDataElementOptions(k,_.active?"active":n)),y+=C,this.updateElement(_,k,v,n)}}calculateTotal(){const e=this._cachedMeta,o=e.data;let r=0,n;for(n=0;n<o.length;n++){const i=e._parsed[n];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(n)&&!o[n].hidden&&(r+=Math.abs(i))}return r}calculateCircumference(e){const o=this._cachedMeta.total;return o>0&&!isNaN(e)?_e*(Math.abs(e)/o):0}getLabelAndValue(e){const o=this._cachedMeta,r=this.chart,n=r.data.labels||[],i=Vr(o._parsed[e],r.options.locale);return{label:n[e]||"",value:i}}getMaxBorderWidth(e){let o=0;const r=this.chart;let n,i,s,l,c;if(!e){for(n=0,i=r.data.datasets.length;n<i;++n)if(r.isDatasetVisible(n)){s=r.getDatasetMeta(n),e=s.data,l=s.controller;break}}if(!e)return 0;for(n=0,i=e.length;n<i;++n)c=l.resolveDataElementOptions(n),c.borderAlign!=="inner"&&(o=Math.max(o,c.borderWidth||0,c.hoverBorderWidth||0));return o}getMaxOffset(e){let o=0;for(let r=0,n=e.length;r<n;++r){const i=this.resolveDataElementOptions(r);o=Math.max(o,i.offset||0,i.hoverOffset||0)}return o}_getRingWeightOffset(e){let o=0;for(let r=0;r<e;++r)this.chart.isDatasetVisible(r)&&(o+=this._getRingWeight(r));return o}_getRingWeight(e){return Math.max(se(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}j(co,"id","doughnut"),j(co,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),j(co,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),j(co,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const o=e.data;if(o.labels.length&&o.datasets.length){const{labels:{pointStyle:r,color:n}}=e.legend.options;return o.labels.map((i,s)=>{const c=e.getDatasetMeta(0).controller.getStyle(s);return{text:i,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:n,lineWidth:c.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,o,r){r.chart.toggleDataVisibility(o.index),r.chart.update()}}}});class Ur extends ut{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const o=this._cachedMeta,{dataset:r,data:n=[],_dataset:i}=o,s=this.chart._animationsDisabled;let{start:l,count:c}=md(o,n,s);this._drawStart=l,this._drawCount=c,pd(o)&&(l=0,c=n.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!i._decimated,r.points=n;const d=this.resolveDatasetElementOptions(e);this.options.showLine||(d.borderWidth=0),d.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:d},e),this.updateElements(n,l,c,e)}updateElements(e,o,r,n){const i=n==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,{sharedOptions:u,includeOptions:f}=this._getSharedOptions(o,n),h=s.axis,g=l.axis,{spanGaps:m,segment:p}=this.options,b=qo(m)?m:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||i||n==="none",k=o+r,C=e.length;let _=o>0&&this.getParsed(o-1);for(let v=0;v<C;++v){const S=e[v],w=y?S:{};if(v<o||v>=k){w.skip=!0;continue}const x=this.getParsed(v),B=fe(x[g]),T=w[h]=s.getPixelForValue(x[h],v),E=w[g]=i||B?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,x,c):x[g],v);w.skip=isNaN(T)||isNaN(E)||B,w.stop=v>0&&Math.abs(x[h]-_[h])>b,p&&(w.parsed=x,w.raw=d.data[v]),f&&(w.options=u||this.resolveDataElementOptions(v,S.active?"active":n)),y||this.updateElement(S,v,w,n),_=x}}getMaxOverflow(){const e=this._cachedMeta,o=e.dataset,r=o.options&&o.options.borderWidth||0,n=e.data||[];if(!n.length)return r;const i=n[0].size(this.resolveDataElementOptions(0)),s=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(r,i,s)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}j(Ur,"id","line"),j(Ur,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),j(Ur,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Go extends ut{constructor(e,o){super(e,o),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const o=this._cachedMeta,r=this.chart,n=r.data.labels||[],i=Vr(o._parsed[e].r,r.options.locale);return{label:n[e]||"",value:i}}parseObjectData(e,o,r,n){return Nd.bind(this)(e,o,r,n)}update(e){const o=this._cachedMeta.data;this._updateRadius(),this.updateElements(o,0,o.length,e)}getMinMax(){const e=this._cachedMeta,o={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((r,n)=>{const i=this.getParsed(n).r;!isNaN(i)&&this.chart.getDataVisibility(n)&&(i<o.min&&(o.min=i),i>o.max&&(o.max=i))}),o}_updateRadius(){const e=this.chart,o=e.chartArea,r=e.options,n=Math.min(o.right-o.left,o.bottom-o.top),i=Math.max(n/2,0),s=Math.max(r.cutoutPercentage?i/100*r.cutoutPercentage:1,0),l=(i-s)/e.getVisibleDatasetCount();this.outerRadius=i-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(e,o,r,n){const i=n==="reset",s=this.chart,c=s.options.animation,d=this._cachedMeta.rScale,u=d.xCenter,f=d.yCenter,h=d.getIndexAngle(0)-.5*Ce;let g=h,m;const p=360/this.countVisibleElements();for(m=0;m<o;++m)g+=this._computeAngle(m,n,p);for(m=o;m<o+r;m++){const b=e[m];let y=g,k=g+this._computeAngle(m,n,p),C=s.getDataVisibility(m)?d.getDistanceFromCenterForValue(this.getParsed(m).r):0;g=k,i&&(c.animateScale&&(C=0),c.animateRotate&&(y=k=h));const _={x:u,y:f,innerRadius:0,outerRadius:C,startAngle:y,endAngle:k,options:this.resolveDataElementOptions(m,b.active?"active":n)};this.updateElement(b,m,_,n)}}countVisibleElements(){const e=this._cachedMeta;let o=0;return e.data.forEach((r,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&o++}),o}_computeAngle(e,o,r){return this.chart.getDataVisibility(e)?kt(this.resolveDataElementOptions(e,o).angle||r):0}}j(Go,"id","polarArea"),j(Go,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),j(Go,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const o=e.data;if(o.labels.length&&o.datasets.length){const{labels:{pointStyle:r,color:n}}=e.legend.options;return o.labels.map((i,s)=>{const c=e.getDatasetMeta(0).controller.getStyle(s);return{text:i,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:n,lineWidth:c.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,o,r){r.chart.toggleDataVisibility(o.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class ti extends co{}j(ti,"id","pie"),j(ti,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class qr extends ut{getLabelAndValue(e){const o=this._cachedMeta.vScale,r=this.getParsed(e);return{label:o.getLabels()[e],value:""+o.getLabelForValue(r[o.axis])}}parseObjectData(e,o,r,n){return Nd.bind(this)(e,o,r,n)}update(e){const o=this._cachedMeta,r=o.dataset,n=o.data||[],i=o.iScale.getLabels();if(r.points=n,e!=="resize"){const s=this.resolveDatasetElementOptions(e);this.options.showLine||(s.borderWidth=0);const l={_loop:!0,_fullLoop:i.length===n.length,options:s};this.updateElement(r,void 0,l,e)}this.updateElements(n,0,n.length,e)}updateElements(e,o,r,n){const i=this._cachedMeta.rScale,s=n==="reset";for(let l=o;l<o+r;l++){const c=e[l],d=this.resolveDataElementOptions(l,c.active?"active":n),u=i.getPointPositionForValue(l,this.getParsed(l).r),f=s?i.xCenter:u.x,h=s?i.yCenter:u.y,g={x:f,y:h,angle:u.angle,skip:isNaN(f)||isNaN(h),options:d};this.updateElement(c,l,g,n)}}}j(qr,"id","radar"),j(qr,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),j(qr,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class Yr extends ut{getLabelAndValue(e){const o=this._cachedMeta,r=this.chart.data.labels||[],{xScale:n,yScale:i}=o,s=this.getParsed(e),l=n.getLabelForValue(s.x),c=i.getLabelForValue(s.y);return{label:r[e]||"",value:"("+l+", "+c+")"}}update(e){const o=this._cachedMeta,{data:r=[]}=o,n=this.chart._animationsDisabled;let{start:i,count:s}=md(o,r,n);if(this._drawStart=i,this._drawCount=s,pd(o)&&(i=0,s=r.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:l,_dataset:c}=o;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=r;const d=this.resolveDatasetElementOptions(e);d.segment=this.options.segment,this.updateElement(l,void 0,{animated:!n,options:d},e)}else this.datasetElementType&&(delete o.dataset,this.datasetElementType=!1);this.updateElements(r,i,s,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,o,r,n){const i=n==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,u=this.resolveDataElementOptions(o,n),f=this.getSharedOptions(u),h=this.includeOptions(n,f),g=s.axis,m=l.axis,{spanGaps:p,segment:b}=this.options,y=qo(p)?p:Number.POSITIVE_INFINITY,k=this.chart._animationsDisabled||i||n==="none";let C=o>0&&this.getParsed(o-1);for(let _=o;_<o+r;++_){const v=e[_],S=this.getParsed(_),w=k?v:{},x=fe(S[m]),B=w[g]=s.getPixelForValue(S[g],_),T=w[m]=i||x?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,S,c):S[m],_);w.skip=isNaN(B)||isNaN(T)||x,w.stop=_>0&&Math.abs(S[g]-C[g])>y,b&&(w.parsed=S,w.raw=d.data[_]),h&&(w.options=f||this.resolveDataElementOptions(_,v.active?"active":n)),k||this.updateElement(v,_,w,n),C=S}this.updateSharedOptions(f,n,u)}getMaxOverflow(){const e=this._cachedMeta,o=e.data||[];if(!this.options.showLine){let l=0;for(let c=o.length-1;c>=0;--c)l=Math.max(l,o[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}const r=e.dataset,n=r.options&&r.options.borderWidth||0;if(!o.length)return n;const i=o[0].size(this.resolveDataElementOptions(0)),s=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(n,i,s)/2}}j(Yr,"id","scatter"),j(Yr,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),j(Yr,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var tu=Object.freeze({__proto__:null,BarController:Wr,BubbleController:Hr,DoughnutController:co,LineController:Ur,PieController:ti,PolarAreaController:Go,RadarController:qr,ScatterController:Yr});function To(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Fa{constructor(e){j(this,"options");this.options=e||{}}static override(e){Object.assign(Fa.prototype,e)}init(){}formats(){return To()}parse(){return To()}format(){return To()}add(){return To()}diff(){return To()}startOf(){return To()}endOf(){return To()}}var ou={_date:Fa};function uS(t,e,o,r){const{controller:n,data:i,_sorted:s}=t,l=n._cachedMeta.iScale;if(l&&e===l.axis&&e!=="r"&&s&&i.length){const c=l._reversePixels?V_:Wt;if(r){if(n._sharedOptions){const d=i[0],u=typeof d.getRange=="function"&&d.getRange(e);if(u){const f=c(i,e,o-u),h=c(i,e,o+u);return{lo:f.lo,hi:h.hi}}}}else return c(i,e,o)}return{lo:0,hi:i.length-1}}function Xr(t,e,o,r,n){const i=t.getSortedVisibleDatasetMetas(),s=o[e];for(let l=0,c=i.length;l<c;++l){const{index:d,data:u}=i[l],{lo:f,hi:h}=uS(i[l],e,s,n);for(let g=f;g<=h;++g){const m=u[g];m.skip||r(m,d,g)}}}function fS(t){const e=t.indexOf("x")!==-1,o=t.indexOf("y")!==-1;return function(r,n){const i=e?Math.abs(r.x-n.x):0,s=o?Math.abs(r.y-n.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(s,2))}}function Ia(t,e,o,r,n){const i=[];return!n&&!t.isPointInArea(e)||Xr(t,o,e,function(l,c,d){!n&&!Ht(l,t.chartArea,0)||l.inRange(e.x,e.y,r)&&i.push({element:l,datasetIndex:c,index:d})},!0),i}function hS(t,e,o,r){let n=[];function i(s,l,c){const{startAngle:d,endAngle:u}=s.getProps(["startAngle","endAngle"],r),{angle:f}=cd(s,{x:e.x,y:e.y});Ar(f,d,u)&&n.push({element:s,datasetIndex:l,index:c})}return Xr(t,o,e,i),n}function gS(t,e,o,r,n,i){let s=[];const l=fS(o);let c=Number.POSITIVE_INFINITY;function d(u,f,h){const g=u.inRange(e.x,e.y,n);if(r&&!g)return;const m=u.getCenterPoint(n);if(!(!!i||t.isPointInArea(m))&&!g)return;const b=l(e,m);b<c?(s=[{element:u,datasetIndex:f,index:h}],c=b):b===c&&s.push({element:u,datasetIndex:f,index:h})}return Xr(t,o,e,d),s}function La(t,e,o,r,n,i){return!i&&!t.isPointInArea(e)?[]:o==="r"&&!r?hS(t,e,o,n):gS(t,e,o,r,n,i)}function ru(t,e,o,r,n){const i=[],s=o==="x"?"inXRange":"inYRange";let l=!1;return Xr(t,o,e,(c,d,u)=>{c[s]&&c[s](e[o],n)&&(i.push({element:c,datasetIndex:d,index:u}),l=l||c.inRange(e.x,e.y,n))}),r&&!l?[]:i}var nu={evaluateInteractionItems:Xr,modes:{index(t,e,o,r){const n=Oo(e,t),i=o.axis||"x",s=o.includeInvisible||!1,l=o.intersect?Ia(t,n,i,r,s):La(t,n,i,!1,r,s),c=[];return l.length?(t.getSortedVisibleDatasetMetas().forEach(d=>{const u=l[0].index,f=d.data[u];f&&!f.skip&&c.push({element:f,datasetIndex:d.index,index:u})}),c):[]},dataset(t,e,o,r){const n=Oo(e,t),i=o.axis||"xy",s=o.includeInvisible||!1;let l=o.intersect?Ia(t,n,i,r,s):La(t,n,i,!1,r,s);if(l.length>0){const c=l[0].datasetIndex,d=t.getDatasetMeta(c).data;l=[];for(let u=0;u<d.length;++u)l.push({element:d[u],datasetIndex:c,index:u})}return l},point(t,e,o,r){const n=Oo(e,t),i=o.axis||"xy",s=o.includeInvisible||!1;return Ia(t,n,i,r,s)},nearest(t,e,o,r){const n=Oo(e,t),i=o.axis||"xy",s=o.includeInvisible||!1;return La(t,n,i,o.intersect,r,s)},x(t,e,o,r){const n=Oo(e,t);return ru(t,n,"x",o.intersect,r)},y(t,e,o,r){const n=Oo(e,t);return ru(t,n,"y",o.intersect,r)}}};const iu=["left","top","right","bottom"];function Kr(t,e){return t.filter(o=>o.pos===e)}function au(t,e){return t.filter(o=>iu.indexOf(o.pos)===-1&&o.box.axis===e)}function Gr(t,e){return t.sort((o,r)=>{const n=e?r:o,i=e?o:r;return n.weight===i.weight?n.index-i.index:n.weight-i.weight})}function mS(t){const e=[];let o,r,n,i,s,l;for(o=0,r=(t||[]).length;o<r;++o)n=t[o],{position:i,options:{stack:s,stackWeight:l=1}}=n,e.push({index:o,box:n,pos:i,horizontal:n.isHorizontal(),weight:n.weight,stack:s&&i+s,stackWeight:l});return e}function pS(t){const e={};for(const o of t){const{stack:r,pos:n,stackWeight:i}=o;if(!r||!iu.includes(n))continue;const s=e[r]||(e[r]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=i}return e}function bS(t,e){const o=pS(t),{vBoxMaxWidth:r,hBoxMaxHeight:n}=e;let i,s,l;for(i=0,s=t.length;i<s;++i){l=t[i];const{fullSize:c}=l.box,d=o[l.stack],u=d&&l.stackWeight/d.weight;l.horizontal?(l.width=u?u*r:c&&e.availableWidth,l.height=n):(l.width=r,l.height=u?u*n:c&&e.availableHeight)}return o}function yS(t){const e=mS(t),o=Gr(e.filter(d=>d.box.fullSize),!0),r=Gr(Kr(e,"left"),!0),n=Gr(Kr(e,"right")),i=Gr(Kr(e,"top"),!0),s=Gr(Kr(e,"bottom")),l=au(e,"x"),c=au(e,"y");return{fullSize:o,leftAndTop:r.concat(i),rightAndBottom:n.concat(c).concat(s).concat(l),chartArea:Kr(e,"chartArea"),vertical:r.concat(n).concat(c),horizontal:i.concat(s).concat(l)}}function su(t,e,o,r){return Math.max(t[o],e[o])+Math.max(t[r],e[r])}function lu(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function kS(t,e,o,r){const{pos:n,box:i}=o,s=t.maxPadding;if(!de(n)){o.size&&(t[n]-=o.size);const f=r[o.stack]||{size:0,count:1};f.size=Math.max(f.size,o.horizontal?i.height:i.width),o.size=f.size/f.count,t[n]+=o.size}i.getPadding&&lu(s,i.getPadding());const l=Math.max(0,e.outerWidth-su(s,t,"left","right")),c=Math.max(0,e.outerHeight-su(s,t,"top","bottom")),d=l!==t.w,u=c!==t.h;return t.w=l,t.h=c,o.horizontal?{same:d,other:u}:{same:u,other:d}}function xS(t){const e=t.maxPadding;function o(r){const n=Math.max(e[r]-t[r],0);return t[r]+=n,n}t.y+=o("top"),t.x+=o("left"),o("right"),o("bottom")}function vS(t,e){const o=e.maxPadding;function r(n){const i={left:0,top:0,right:0,bottom:0};return n.forEach(s=>{i[s]=Math.max(e[s],o[s])}),i}return r(t?["left","right"]:["top","bottom"])}function Jr(t,e,o,r){const n=[];let i,s,l,c,d,u;for(i=0,s=t.length,d=0;i<s;++i){l=t[i],c=l.box,c.update(l.width||e.w,l.height||e.h,vS(l.horizontal,e));const{same:f,other:h}=kS(e,o,l,r);d|=f&&n.length,u=u||h,c.fullSize||n.push(l)}return d&&Jr(n,e,o,r)||u}function oi(t,e,o,r,n){t.top=o,t.left=e,t.right=e+r,t.bottom=o+n,t.width=r,t.height=n}function cu(t,e,o,r){const n=o.padding;let{x:i,y:s}=e;for(const l of t){const c=l.box,d=r[l.stack]||{count:1,placed:0,weight:1},u=l.stackWeight/d.weight||1;if(l.horizontal){const f=e.w*u,h=d.size||c.height;Pr(d.start)&&(s=d.start),c.fullSize?oi(c,n.left,s,o.outerWidth-n.right-n.left,h):oi(c,e.left+d.placed,s,f,h),d.start=s,d.placed+=f,s=c.bottom}else{const f=e.h*u,h=d.size||c.width;Pr(d.start)&&(i=d.start),c.fullSize?oi(c,i,n.top,h,o.outerHeight-n.bottom-n.top):oi(c,i,e.top+d.placed,h,f),d.start=i,d.placed+=f,i=c.right}}e.x=i,e.y=s}var We={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(o){e.draw(o)}}]},t.boxes.push(e)},removeBox(t,e){const o=t.boxes?t.boxes.indexOf(e):-1;o!==-1&&t.boxes.splice(o,1)},configure(t,e,o){e.fullSize=o.fullSize,e.position=o.position,e.weight=o.weight},update(t,e,o,r){if(!t)return;const n=Ye(t.options.layout.padding),i=Math.max(e-n.width,0),s=Math.max(o-n.height,0),l=yS(t.boxes),c=l.vertical,d=l.horizontal;ye(t.boxes,p=>{typeof p.beforeLayout=="function"&&p.beforeLayout()});const u=c.reduce((p,b)=>b.box.options&&b.box.options.display===!1?p:p+1,0)||1,f=Object.freeze({outerWidth:e,outerHeight:o,padding:n,availableWidth:i,availableHeight:s,vBoxMaxWidth:i/2/u,hBoxMaxHeight:s/2}),h=Object.assign({},n);lu(h,Ye(r));const g=Object.assign({maxPadding:h,w:i,h:s,x:n.left,y:n.top},n),m=bS(c.concat(d),f);Jr(l.fullSize,g,f,m),Jr(c,g,f,m),Jr(d,g,f,m)&&Jr(c,g,f,m),xS(g),cu(l.leftAndTop,g,f,m),g.x+=g.w,g.y+=g.h,cu(l.rightAndBottom,g,f,m),t.chartArea={left:g.left,top:g.top,right:g.left+g.w,bottom:g.top+g.h,height:g.h,width:g.w},ye(l.chartArea,p=>{const b=p.box;Object.assign(b,t.chartArea),b.update(g.w,g.h,{left:0,top:0,right:0,bottom:0})})}};class za{acquireContext(e,o){}releaseContext(e){return!1}addEventListener(e,o,r){}removeEventListener(e,o,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,o,r,n){return o=Math.max(0,o||e.width),r=r||e.height,{width:o,height:Math.max(0,n?Math.floor(o/n):r)}}isAttached(e){return!0}updateConfig(e){}}class du extends za{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const ri="$chartjs",wS={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},uu=t=>t===null||t==="";function CS(t,e){const o=t.style,r=t.getAttribute("height"),n=t.getAttribute("width");if(t[ri]={initial:{height:r,width:n,style:{display:o.display,height:o.height,width:o.width}}},o.display=o.display||"block",o.boxSizing=o.boxSizing||"border-box",uu(n)){const i=$d(t,"width");i!==void 0&&(t.width=i)}if(uu(r))if(t.style.height==="")t.height=t.width/(e||2);else{const i=$d(t,"height");i!==void 0&&(t.height=i)}return t}const fu=O5?{passive:!0}:!1;function _S(t,e,o){t&&t.addEventListener(e,o,fu)}function SS(t,e,o){t&&t.canvas&&t.canvas.removeEventListener(e,o,fu)}function BS(t,e){const o=wS[t.type]||t.type,{x:r,y:n}=Oo(t,e);return{type:o,chart:e,native:t,x:r!==void 0?r:null,y:n!==void 0?n:null}}function ni(t,e){for(const o of t)if(o===e||o.contains(e))return!0}function ES(t,e,o){const r=t.canvas,n=new MutationObserver(i=>{let s=!1;for(const l of i)s=s||ni(l.addedNodes,r),s=s&&!ni(l.removedNodes,r);s&&o()});return n.observe(document,{childList:!0,subtree:!0}),n}function RS(t,e,o){const r=t.canvas,n=new MutationObserver(i=>{let s=!1;for(const l of i)s=s||ni(l.removedNodes,r),s=s&&!ni(l.addedNodes,r);s&&o()});return n.observe(document,{childList:!0,subtree:!0}),n}const Qr=new Map;let hu=0;function gu(){const t=window.devicePixelRatio;t!==hu&&(hu=t,Qr.forEach((e,o)=>{o.currentDevicePixelRatio!==t&&e()}))}function DS(t,e){Qr.size||window.addEventListener("resize",gu),Qr.set(t,e)}function OS(t){Qr.delete(t),Qr.size||window.removeEventListener("resize",gu)}function NS(t,e,o){const r=t.canvas,n=r&&Ta(r);if(!n)return;const i=gd((l,c)=>{const d=n.clientWidth;o(l,c),d<n.clientWidth&&o()},window),s=new ResizeObserver(l=>{const c=l[0],d=c.contentRect.width,u=c.contentRect.height;d===0&&u===0||i(d,u)});return s.observe(n),DS(t,i),s}function ja(t,e,o){o&&o.disconnect(),e==="resize"&&OS(t)}function TS(t,e,o){const r=t.canvas,n=gd(i=>{t.ctx!==null&&o(BS(i,t))},t);return _S(r,e,n),n}class mu extends za{acquireContext(e,o){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(CS(e,o),r):null}releaseContext(e){const o=e.canvas;if(!o[ri])return!1;const r=o[ri].initial;["height","width"].forEach(i=>{const s=r[i];fe(s)?o.removeAttribute(i):o.setAttribute(i,s)});const n=r.style||{};return Object.keys(n).forEach(i=>{o.style[i]=n[i]}),o.width=o.width,delete o[ri],!0}addEventListener(e,o,r){this.removeEventListener(e,o);const n=e.$proxies||(e.$proxies={}),s={attach:ES,detach:RS,resize:NS}[o]||TS;n[o]=s(e,o,r)}removeEventListener(e,o){const r=e.$proxies||(e.$proxies={}),n=r[o];if(!n)return;({attach:ja,detach:ja,resize:ja}[o]||SS)(e,o,n),r[o]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,o,r,n){return D5(e,o,r,n)}isAttached(e){const o=e&&Ta(e);return!!(o&&o.isConnected)}}function pu(t){return!Na()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?du:mu}let Dt=(xi=class{constructor(){j(this,"x");j(this,"y");j(this,"active",!1);j(this,"options");j(this,"$animations")}tooltipPosition(e){const{x:o,y:r}=this.getProps(["x","y"],e);return{x:o,y:r}}hasValue(){return qo(this.x)&&qo(this.y)}getProps(e,o){const r=this.$animations;if(!o||!r)return this;const n={};return e.forEach(i=>{n[i]=r[i]&&r[i].active()?r[i]._to:this[i]}),n}},j(xi,"defaults",{}),j(xi,"defaultRoutes"),xi);function PS(t,e){const o=t.options.ticks,r=$S(t),n=Math.min(o.maxTicksLimit||r,r),i=o.major.enabled?MS(e):[],s=i.length,l=i[0],c=i[s-1],d=[];if(s>n)return VS(e,d,i,s/n),d;const u=AS(i,e,n);if(s>0){let f,h;const g=s>1?Math.round((c-l)/(s-1)):null;for(ii(e,d,u,fe(g)?0:l-g,l),f=0,h=s-1;f<h;f++)ii(e,d,u,i[f],i[f+1]);return ii(e,d,u,c,fe(g)?e.length:c+g),d}return ii(e,d,u),d}function $S(t){const e=t.options.offset,o=t._tickSize(),r=t._length/o+(e?0:1),n=t._maxLength/o;return Math.floor(Math.min(r,n))}function AS(t,e,o){const r=FS(t),n=e.length/o;if(!r)return Math.max(n,1);const i=P_(r);for(let s=0,l=i.length-1;s<l;s++){const c=i[s];if(c>n)return c}return Math.max(n,1)}function MS(t){const e=[];let o,r;for(o=0,r=t.length;o<r;o++)t[o].major&&e.push(o);return e}function VS(t,e,o,r){let n=0,i=o[0],s;for(r=Math.ceil(r),s=0;s<t.length;s++)s===i&&(e.push(t[s]),n++,i=o[n*r])}function ii(t,e,o,r,n){const i=se(r,0),s=Math.min(se(n,t.length),t.length);let l=0,c,d,u;for(o=Math.ceil(o),n&&(c=n-r,o=c/Math.floor(c/o)),u=i;u<0;)l++,u=Math.round(i+l*o);for(d=Math.max(i,0);d<s;d++)d===u&&(e.push(t[d]),l++,u=Math.round(i+l*o))}function FS(t){const e=t.length;let o,r;if(e<2)return!1;for(r=t[0],o=1;o<e;++o)if(t[o]-t[o-1]!==r)return!1;return r}const IS=t=>t==="left"?"right":t==="right"?"left":t,bu=(t,e,o)=>e==="top"||e==="left"?t[e]+o:t[e]-o,yu=(t,e)=>Math.min(e||t,t);function ku(t,e){const o=[],r=t.length/e,n=t.length;let i=0;for(;i<n;i+=r)o.push(t[Math.floor(i)]);return o}function LS(t,e,o){const r=t.ticks.length,n=Math.min(e,r-1),i=t._startPixel,s=t._endPixel,l=1e-6;let c=t.getPixelForTick(n),d;if(!(o&&(r===1?d=Math.max(c-i,s-c):e===0?d=(t.getPixelForTick(1)-c)/2:d=(c-t.getPixelForTick(n-1))/2,c+=n<e?d:-d,c<i-l||c>s+l)))return c}function zS(t,e){ye(t,o=>{const r=o.gc,n=r.length/2;let i;if(n>e){for(i=0;i<n;++i)delete o.data[r[i]];r.splice(0,n)}})}function Zr(t){return t.drawTicks?t.tickLength:0}function xu(t,e){if(!t.display)return 0;const o=Ie(t.font,e),r=Ye(t.padding);return(Re(t.text)?t.text.length:1)*o.lineHeight+r.height}function jS(t,e){return lo(t,{scale:e,type:"scale"})}function WS(t,e,o){return lo(t,{tick:o,index:e,type:"tick"})}function HS(t,e,o){let r=va(t);return(o&&e!=="right"||!o&&e==="right")&&(r=IS(r)),r}function US(t,e,o,r){const{top:n,left:i,bottom:s,right:l,chart:c}=t,{chartArea:d,scales:u}=c;let f=0,h,g,m;const p=s-n,b=l-i;if(t.isHorizontal()){if(g=qe(r,i,l),de(o)){const y=Object.keys(o)[0],k=o[y];m=u[y].getPixelForValue(k)+p-e}else o==="center"?m=(d.bottom+d.top)/2+p-e:m=bu(t,o,e);h=l-i}else{if(de(o)){const y=Object.keys(o)[0],k=o[y];g=u[y].getPixelForValue(k)-b+e}else o==="center"?g=(d.left+d.right)/2-b+e:g=bu(t,o,e);m=qe(r,s,n),f=o==="left"?-Me:Me}return{titleX:g,titleY:m,maxWidth:h,rotation:f}}class uo extends Dt{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,o){return e}getUserBounds(){let{_userMin:e,_userMax:o,_suggestedMin:r,_suggestedMax:n}=this;return e=it(e,Number.POSITIVE_INFINITY),o=it(o,Number.NEGATIVE_INFINITY),r=it(r,Number.POSITIVE_INFINITY),n=it(n,Number.NEGATIVE_INFINITY),{min:it(e,r),max:it(o,n),minDefined:$e(e),maxDefined:$e(o)}}getMinMax(e){let{min:o,max:r,minDefined:n,maxDefined:i}=this.getUserBounds(),s;if(n&&i)return{min:o,max:r};const l=this.getMatchingVisibleMetas();for(let c=0,d=l.length;c<d;++c)s=l[c].controller.getMinMax(this,e),n||(o=Math.min(o,s.min)),i||(r=Math.max(r,s.max));return o=i&&o>r?r:o,r=n&&o>r?o:r,{min:it(o,it(r,o)),max:it(r,it(o,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){we(this.options.beforeUpdate,[this])}update(e,o,r){const{beginAtZero:n,grace:i,ticks:s}=this.options,l=s.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=o,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=s5(this,i,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const c=l<this.ticks.length;this._convertTicksToLabels(c?ku(this.ticks,l):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=PS(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),c&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,o,r;this.isHorizontal()?(o=this.left,r=this.right):(o=this.top,r=this.bottom,e=!e),this._startPixel=o,this._endPixel=r,this._reversePixels=e,this._length=r-o,this._alignToPixels=this.options.alignToPixels}afterUpdate(){we(this.options.afterUpdate,[this])}beforeSetDimensions(){we(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){we(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),we(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){we(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const o=this.options.ticks;let r,n,i;for(r=0,n=e.length;r<n;r++)i=e[r],i.label=we(o.callback,[i.value,r,e],this)}afterTickToLabelConversion(){we(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){we(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,o=e.ticks,r=yu(this.ticks.length,e.ticks.maxTicksLimit),n=o.minRotation||0,i=o.maxRotation;let s=n,l,c,d;if(!this._isVisible()||!o.display||n>=i||r<=1||!this.isHorizontal()){this.labelRotation=n;return}const u=this._getLabelSizes(),f=u.widest.width,h=u.highest.height,g=je(this.chart.width-f,0,this.maxWidth);l=e.offset?this.maxWidth/r:g/(r-1),f+6>l&&(l=g/(r-(e.offset?.5:1)),c=this.maxHeight-Zr(e.grid)-o.padding-xu(e.title,this.chart.options.font),d=Math.sqrt(f*f+h*h),s=ya(Math.min(Math.asin(je((u.highest.height+6)/l,-1,1)),Math.asin(je(c/d,-1,1))-Math.asin(je(h/d,-1,1)))),s=Math.max(n,Math.min(i,s))),this.labelRotation=s}afterCalculateLabelRotation(){we(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){we(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:o,options:{ticks:r,title:n,grid:i}}=this,s=this._isVisible(),l=this.isHorizontal();if(s){const c=xu(n,o.options.font);if(l?(e.width=this.maxWidth,e.height=Zr(i)+c):(e.height=this.maxHeight,e.width=Zr(i)+c),r.display&&this.ticks.length){const{first:d,last:u,widest:f,highest:h}=this._getLabelSizes(),g=r.padding*2,m=kt(this.labelRotation),p=Math.cos(m),b=Math.sin(m);if(l){const y=r.mirror?0:b*f.width+p*h.height;e.height=Math.min(this.maxHeight,e.height+y+g)}else{const y=r.mirror?0:p*f.width+b*h.height;e.width=Math.min(this.maxWidth,e.width+y+g)}this._calculatePadding(d,u,b,p)}}this._handleMargins(),l?(this.width=this._length=o.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=o.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,o,r,n){const{ticks:{align:i,padding:s},position:l}=this.options,c=this.labelRotation!==0,d=l!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,g=0;c?d?(h=n*e.width,g=r*o.height):(h=r*e.height,g=n*o.width):i==="start"?g=o.width:i==="end"?h=e.width:i!=="inner"&&(h=e.width/2,g=o.width/2),this.paddingLeft=Math.max((h-u+s)*this.width/(this.width-u),0),this.paddingRight=Math.max((g-f+s)*this.width/(this.width-f),0)}else{let u=o.height/2,f=e.height/2;i==="start"?(u=0,f=e.height):i==="end"&&(u=o.height,f=0),this.paddingTop=u+s,this.paddingBottom=f+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){we(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:o}=this.options;return o==="top"||o==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let o,r;for(o=0,r=e.length;o<r;o++)fe(e[o].label)&&(e.splice(o,1),r--,o--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const o=this.options.ticks.sampleSize;let r=this.ticks;o<r.length&&(r=ku(r,o)),this._labelSizes=e=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,o,r){const{ctx:n,_longestTextCache:i}=this,s=[],l=[],c=Math.floor(o/yu(o,r));let d=0,u=0,f,h,g,m,p,b,y,k,C,_,v;for(f=0;f<o;f+=c){if(m=e[f].label,p=this._resolveTickFontOptions(f),n.font=b=p.string,y=i[b]=i[b]||{data:{},gc:[]},k=p.lineHeight,C=_=0,!fe(m)&&!Re(m))C=Xn(n,y.data,y.gc,C,m),_=k;else if(Re(m))for(h=0,g=m.length;h<g;++h)v=m[h],!fe(v)&&!Re(v)&&(C=Xn(n,y.data,y.gc,C,v),_+=k);s.push(C),l.push(_),d=Math.max(C,d),u=Math.max(_,u)}zS(i,o);const S=s.indexOf(d),w=l.indexOf(u),x=B=>({width:s[B]||0,height:l[B]||0});return{first:x(0),last:x(o-1),widest:x(S),highest:x(w),widths:s,heights:l}}getLabelForValue(e){return e}getPixelForValue(e,o){return NaN}getValueForPixel(e){}getPixelForTick(e){const o=this.ticks;return e<0||e>o.length-1?null:this.getPixelForValue(o[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const o=this._startPixel+e*this._length;return M_(this._alignToPixels?Bo(this.chart,o,0):o)}getDecimalForPixel(e){const o=(e-this._startPixel)/this._length;return this._reversePixels?1-o:o}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:o}=this;return e<0&&o<0?o:e>0&&o>0?e:0}getContext(e){const o=this.ticks||[];if(e>=0&&e<o.length){const r=o[e];return r.$context||(r.$context=WS(this.getContext(),e,r))}return this.$context||(this.$context=jS(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,o=kt(this.labelRotation),r=Math.abs(Math.cos(o)),n=Math.abs(Math.sin(o)),i=this._getLabelSizes(),s=e.autoSkipPadding||0,l=i?i.widest.width+s:0,c=i?i.highest.height+s:0;return this.isHorizontal()?c*r>l*n?l/r:c/n:c*n<l*r?c/r:l/n}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const o=this.axis,r=this.chart,n=this.options,{grid:i,position:s,border:l}=n,c=i.offset,d=this.isHorizontal(),f=this.ticks.length+(c?1:0),h=Zr(i),g=[],m=l.setContext(this.getContext()),p=m.display?m.width:0,b=p/2,y=function(I){return Bo(r,I,p)};let k,C,_,v,S,w,x,B,T,E,O,M;if(s==="top")k=y(this.bottom),w=this.bottom-h,B=k-b,E=y(e.top)+b,M=e.bottom;else if(s==="bottom")k=y(this.top),E=e.top,M=y(e.bottom)-b,w=k+b,B=this.top+h;else if(s==="left")k=y(this.right),S=this.right-h,x=k-b,T=y(e.left)+b,O=e.right;else if(s==="right")k=y(this.left),T=e.left,O=y(e.right)-b,S=k+b,x=this.left+h;else if(o==="x"){if(s==="center")k=y((e.top+e.bottom)/2+.5);else if(de(s)){const I=Object.keys(s)[0],z=s[I];k=y(this.chart.scales[I].getPixelForValue(z))}E=e.top,M=e.bottom,w=k+b,B=w+h}else if(o==="y"){if(s==="center")k=y((e.left+e.right)/2);else if(de(s)){const I=Object.keys(s)[0],z=s[I];k=y(this.chart.scales[I].getPixelForValue(z))}S=k-b,x=S-h,T=e.left,O=e.right}const W=se(n.ticks.maxTicksLimit,f),Y=Math.max(1,Math.ceil(f/W));for(C=0;C<f;C+=Y){const I=this.getContext(C),z=i.setContext(I),F=l.setContext(I),P=z.lineWidth,L=z.color,Q=F.dash||[],oe=F.dashOffset,ne=z.tickWidth,X=z.tickColor,J=z.tickBorderDash||[],ie=z.tickBorderDashOffset;_=LS(this,C,c),_!==void 0&&(v=Bo(r,_,P),d?S=x=T=O=v:w=B=E=M=v,g.push({tx1:S,ty1:w,tx2:x,ty2:B,x1:T,y1:E,x2:O,y2:M,width:P,color:L,borderDash:Q,borderDashOffset:oe,tickWidth:ne,tickColor:X,tickBorderDash:J,tickBorderDashOffset:ie}))}return this._ticksLength=f,this._borderValue=k,g}_computeLabelItems(e){const o=this.axis,r=this.options,{position:n,ticks:i}=r,s=this.isHorizontal(),l=this.ticks,{align:c,crossAlign:d,padding:u,mirror:f}=i,h=Zr(r.grid),g=h+u,m=f?-u:g,p=-kt(this.labelRotation),b=[];let y,k,C,_,v,S,w,x,B,T,E,O,M="middle";if(n==="top")S=this.bottom-m,w=this._getXAxisLabelAlignment();else if(n==="bottom")S=this.top+m,w=this._getXAxisLabelAlignment();else if(n==="left"){const Y=this._getYAxisLabelAlignment(h);w=Y.textAlign,v=Y.x}else if(n==="right"){const Y=this._getYAxisLabelAlignment(h);w=Y.textAlign,v=Y.x}else if(o==="x"){if(n==="center")S=(e.top+e.bottom)/2+g;else if(de(n)){const Y=Object.keys(n)[0],I=n[Y];S=this.chart.scales[Y].getPixelForValue(I)+g}w=this._getXAxisLabelAlignment()}else if(o==="y"){if(n==="center")v=(e.left+e.right)/2-g;else if(de(n)){const Y=Object.keys(n)[0],I=n[Y];v=this.chart.scales[Y].getPixelForValue(I)}w=this._getYAxisLabelAlignment(h).textAlign}o==="y"&&(c==="start"?M="top":c==="end"&&(M="bottom"));const W=this._getLabelSizes();for(y=0,k=l.length;y<k;++y){C=l[y],_=C.label;const Y=i.setContext(this.getContext(y));x=this.getPixelForTick(y)+i.labelOffset,B=this._resolveTickFontOptions(y),T=B.lineHeight,E=Re(_)?_.length:1;const I=E/2,z=Y.color,F=Y.textStrokeColor,P=Y.textStrokeWidth;let L=w;s?(v=x,w==="inner"&&(y===k-1?L=this.options.reverse?"left":"right":y===0?L=this.options.reverse?"right":"left":L="center"),n==="top"?d==="near"||p!==0?O=-E*T+T/2:d==="center"?O=-W.highest.height/2-I*T+T:O=-W.highest.height+T/2:d==="near"||p!==0?O=T/2:d==="center"?O=W.highest.height/2-I*T:O=W.highest.height-E*T,f&&(O*=-1),p!==0&&!Y.showLabelBackdrop&&(v+=T/2*Math.sin(p))):(S=x,O=(1-E)*T/2);let Q;if(Y.showLabelBackdrop){const oe=Ye(Y.backdropPadding),ne=W.heights[y],X=W.widths[y];let J=O-oe.top,ie=0-oe.left;switch(M){case"middle":J-=ne/2;break;case"bottom":J-=ne;break}switch(w){case"center":ie-=X/2;break;case"right":ie-=X;break;case"inner":y===k-1?ie-=X:y>0&&(ie-=X/2);break}Q={left:ie,top:J,width:X+oe.width,height:ne+oe.height,color:Y.backdropColor}}b.push({label:_,font:B,textOffset:O,options:{rotation:p,color:z,strokeColor:F,strokeWidth:P,textAlign:L,textBaseline:M,translation:[v,S],backdrop:Q}})}return b}_getXAxisLabelAlignment(){const{position:e,ticks:o}=this.options;if(-kt(this.labelRotation))return e==="top"?"left":"right";let n="center";return o.align==="start"?n="left":o.align==="end"?n="right":o.align==="inner"&&(n="inner"),n}_getYAxisLabelAlignment(e){const{position:o,ticks:{crossAlign:r,mirror:n,padding:i}}=this.options,s=this._getLabelSizes(),l=e+i,c=s.widest.width;let d,u;return o==="left"?n?(u=this.right+i,r==="near"?d="left":r==="center"?(d="center",u+=c/2):(d="right",u+=c)):(u=this.right-l,r==="near"?d="right":r==="center"?(d="center",u-=c/2):(d="left",u=this.left)):o==="right"?n?(u=this.left+i,r==="near"?d="right":r==="center"?(d="center",u-=c/2):(d="left",u-=c)):(u=this.left+l,r==="near"?d="left":r==="center"?(d="center",u+=c/2):(d="right",u=this.right)):d="right",{textAlign:d,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,o=this.options.position;if(o==="left"||o==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(o==="top"||o==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:o},left:r,top:n,width:i,height:s}=this;o&&(e.save(),e.fillStyle=o,e.fillRect(r,n,i,s),e.restore())}getLineWidthForValue(e){const o=this.options.grid;if(!this._isVisible()||!o.display)return 0;const n=this.ticks.findIndex(i=>i.value===e);return n>=0?o.setContext(this.getContext(n)).lineWidth:0}drawGrid(e){const o=this.options.grid,r=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let i,s;const l=(c,d,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(c.x,c.y),r.lineTo(d.x,d.y),r.stroke(),r.restore())};if(o.display)for(i=0,s=n.length;i<s;++i){const c=n[i];o.drawOnChartArea&&l({x:c.x1,y:c.y1},{x:c.x2,y:c.y2},c),o.drawTicks&&l({x:c.tx1,y:c.ty1},{x:c.tx2,y:c.ty2},{color:c.tickColor,width:c.tickWidth,borderDash:c.tickBorderDash,borderDashOffset:c.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:o,options:{border:r,grid:n}}=this,i=r.setContext(this.getContext()),s=r.display?i.width:0;if(!s)return;const l=n.setContext(this.getContext(0)).lineWidth,c=this._borderValue;let d,u,f,h;this.isHorizontal()?(d=Bo(e,this.left,s)-s/2,u=Bo(e,this.right,l)+l/2,f=h=c):(f=Bo(e,this.top,s)-s/2,h=Bo(e,this.bottom,l)+l/2,d=u=c),o.save(),o.lineWidth=i.width,o.strokeStyle=i.color,o.beginPath(),o.moveTo(d,f),o.lineTo(u,h),o.stroke(),o.restore()}drawLabels(e){if(!this.options.ticks.display)return;const r=this.ctx,n=this._computeLabelArea();n&&Kn(r,n);const i=this.getLabelItems(e);for(const s of i){const l=s.options,c=s.font,d=s.label,u=s.textOffset;Eo(r,d,0,u,c,l)}n&&Gn(r)}drawTitle(){const{ctx:e,options:{position:o,title:r,reverse:n}}=this;if(!r.display)return;const i=Ie(r.font),s=Ye(r.padding),l=r.align;let c=i.lineHeight/2;o==="bottom"||o==="center"||de(o)?(c+=s.bottom,Re(r.text)&&(c+=i.lineHeight*(r.text.length-1))):c+=s.top;const{titleX:d,titleY:u,maxWidth:f,rotation:h}=US(this,c,o,l);Eo(e,r.text,0,0,i,{color:r.color,maxWidth:f,rotation:h,textAlign:HS(l,o,n),textBaseline:"middle",translation:[d,u]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,o=e.ticks&&e.ticks.z||0,r=se(e.grid&&e.grid.z,-1),n=se(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==uo.prototype.draw?[{z:o,draw:i=>{this.draw(i)}}]:[{z:r,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:o,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(e){const o=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",n=[];let i,s;for(i=0,s=o.length;i<s;++i){const l=o[i];l[r]===this.id&&(!e||l.type===e)&&n.push(l)}return n}_resolveTickFontOptions(e){const o=this.options.ticks.setContext(this.getContext(e));return Ie(o.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class ai{constructor(e,o,r){this.type=e,this.scope=o,this.override=r,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const o=Object.getPrototypeOf(e);let r;XS(o)&&(r=this.register(o));const n=this.items,i=e.id,s=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+e);return i in n||(n[i]=e,qS(e,s,r),this.override&&Se.override(e.id,e.overrides)),s}get(e){return this.items[e]}unregister(e){const o=this.items,r=e.id,n=this.scope;r in o&&delete o[r],n&&r in Se[n]&&(delete Se[n][r],this.override&&delete So[r])}}function qS(t,e,o){const r=Nr(Object.create(null),[o?Se.get(o):{},Se.get(e),t.defaults]);Se.set(e,r),t.defaultRoutes&&YS(e,t.defaultRoutes),t.descriptors&&Se.describe(e,t.descriptors)}function YS(t,e){Object.keys(e).forEach(o=>{const r=o.split("."),n=r.pop(),i=[t].concat(r).join("."),s=e[o].split("."),l=s.pop(),c=s.join(".");Se.route(i,n,c,l)})}function XS(t){return"id"in t&&"defaults"in t}class KS{constructor(){this.controllers=new ai(ut,"datasets",!0),this.elements=new ai(Dt,"elements"),this.plugins=new ai(Object,"plugins"),this.scales=new ai(uo,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,o,r){[...o].forEach(n=>{const i=r||this._getRegistryForType(n);r||i.isForType(n)||i===this.plugins&&n.id?this._exec(e,i,n):ye(n,s=>{const l=r||this._getRegistryForType(s);this._exec(e,l,s)})})}_exec(e,o,r){const n=ba(e);we(r["before"+n],[],r),o[e](r),we(r["after"+n],[],r)}_getRegistryForType(e){for(let o=0;o<this._typedRegistries.length;o++){const r=this._typedRegistries[o];if(r.isForType(e))return r}return this.plugins}_get(e,o,r){const n=o.get(e);if(n===void 0)throw new Error('"'+e+'" is not a registered '+r+".");return n}}var xt=new KS;class GS{constructor(){this._init=[]}notify(e,o,r,n){o==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const i=n?this._descriptors(e).filter(n):this._descriptors(e),s=this._notify(i,e,o,r);return o==="afterDestroy"&&(this._notify(i,e,"stop"),this._notify(this._init,e,"uninstall")),s}_notify(e,o,r,n){n=n||{};for(const i of e){const s=i.plugin,l=s[r],c=[o,n,i.options];if(we(l,c,s)===!1&&n.cancelable)return!1}return!0}invalidate(){fe(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const o=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),o}_createDescriptors(e,o){const r=e&&e.config,n=se(r.options&&r.options.plugins,{}),i=JS(r);return n===!1&&!o?[]:ZS(e,i,n,o)}_notifyStateChanges(e){const o=this._oldCache||[],r=this._cache,n=(i,s)=>i.filter(l=>!s.some(c=>l.plugin.id===c.plugin.id));this._notify(n(o,r),e,"stop"),this._notify(n(r,o),e,"start")}}function JS(t){const e={},o=[],r=Object.keys(xt.plugins.items);for(let i=0;i<r.length;i++)o.push(xt.getPlugin(r[i]));const n=t.plugins||[];for(let i=0;i<n.length;i++){const s=n[i];o.indexOf(s)===-1&&(o.push(s),e[s.id]=!0)}return{plugins:o,localIds:e}}function QS(t,e){return!e&&t===!1?null:t===!0?{}:t}function ZS(t,{plugins:e,localIds:o},r,n){const i=[],s=t.getContext();for(const l of e){const c=l.id,d=QS(r[c],n);d!==null&&i.push({plugin:l,options:eB(t.config,{plugin:l,local:o[c]},d,s)})}return i}function eB(t,{plugin:e,local:o},r,n){const i=t.pluginScopeKeys(e),s=t.getOptionScopes(r,i);return o&&e.defaults&&s.push(e.defaults),t.createResolver(s,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Wa(t,e){const o=Se.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||o.indexAxis||"x"}function tB(t,e){let o=t;return t==="_index_"?o=e:t==="_value_"&&(o=e==="x"?"y":"x"),o}function oB(t,e){return t===e?"_index_":"_value_"}function vu(t){if(t==="x"||t==="y"||t==="r")return t}function rB(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function Ha(t,...e){if(vu(t))return t;for(const o of e){const r=o.axis||rB(o.position)||t.length>1&&vu(t[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function wu(t,e,o){if(o[e+"AxisID"]===t)return{axis:e}}function nB(t,e){if(e.data&&e.data.datasets){const o=e.data.datasets.filter(r=>r.xAxisID===t||r.yAxisID===t);if(o.length)return wu(t,"x",o[0])||wu(t,"y",o[0])}return{}}function iB(t,e){const o=So[t.type]||{scales:{}},r=e.scales||{},n=Wa(t.type,e),i=Object.create(null);return Object.keys(r).forEach(s=>{const l=r[s];if(!de(l))return console.error(`Invalid scale configuration for scale: ${s}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const c=Ha(s,l,nB(s,t),Se.scales[l.type]),d=oB(c,n),u=o.scales||{};i[s]=Tr(Object.create(null),[{axis:c},l,u[c],u[d]])}),t.data.datasets.forEach(s=>{const l=s.type||t.type,c=s.indexAxis||Wa(l,e),u=(So[l]||{}).scales||{};Object.keys(u).forEach(f=>{const h=tB(f,c),g=s[h+"AxisID"]||h;i[g]=i[g]||Object.create(null),Tr(i[g],[{axis:h},r[g],u[f]])})}),Object.keys(i).forEach(s=>{const l=i[s];Tr(l,[Se.scales[l.type],Se.scale])}),i}function Cu(t){const e=t.options||(t.options={});e.plugins=se(e.plugins,{}),e.scales=iB(t,e)}function _u(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function aB(t){return t=t||{},t.data=_u(t.data),Cu(t),t}const Su=new Map,Bu=new Set;function si(t,e){let o=Su.get(t);return o||(o=e(),Su.set(t,o),Bu.add(o)),o}const en=(t,e,o)=>{const r=io(e,o);r!==void 0&&t.add(r)};class sB{constructor(e){this._config=aB(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=_u(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),Cu(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return si(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,o){return si(`${e}.transition.${o}`,()=>[[`datasets.${e}.transitions.${o}`,`transitions.${o}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,o){return si(`${e}-${o}`,()=>[[`datasets.${e}.elements.${o}`,`datasets.${e}`,`elements.${o}`,""]])}pluginScopeKeys(e){const o=e.id,r=this.type;return si(`${r}-plugin-${o}`,()=>[[`plugins.${o}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,o){const r=this._scopeCache;let n=r.get(e);return(!n||o)&&(n=new Map,r.set(e,n)),n}getOptionScopes(e,o,r){const{options:n,type:i}=this,s=this._cachedScopes(e,r),l=s.get(o);if(l)return l;const c=new Set;o.forEach(u=>{e&&(c.add(e),u.forEach(f=>en(c,e,f))),u.forEach(f=>en(c,n,f)),u.forEach(f=>en(c,So[i]||{},f)),u.forEach(f=>en(c,Se,f)),u.forEach(f=>en(c,_a,f))});const d=Array.from(c);return d.length===0&&d.push(Object.create(null)),Bu.has(o)&&s.set(o,d),d}chartOptionScopes(){const{options:e,type:o}=this;return[e,So[o]||{},Se.datasets[o]||{},{type:o},Se,_a]}resolveNamedOptions(e,o,r,n=[""]){const i={$shared:!0},{resolver:s,subPrefixes:l}=Eu(this._resolverCache,e,n);let c=s;if(cB(s,o)){i.$shared=!1,r=ao(r)?r():r;const d=this.createResolver(e,r,l);c=Yo(s,r,d)}for(const d of o)i[d]=c[d];return i}createResolver(e,o,r=[""],n){const{resolver:i}=Eu(this._resolverCache,e,r);return de(o)?Yo(i,o,void 0,n):i}}function Eu(t,e,o){let r=t.get(e);r||(r=new Map,t.set(e,r));const n=o.join();let i=r.get(n);return i||(i={resolver:Ra(e,o),subPrefixes:o.filter(l=>!l.toLowerCase().includes("hover"))},r.set(n,i)),i}const lB=t=>de(t)&&Object.getOwnPropertyNames(t).some(e=>ao(t[e]));function cB(t,e){const{isScriptable:o,isIndexable:r}=Sd(t);for(const n of e){const i=o(n),s=r(n),l=(s||i)&&t[n];if(i&&(ao(l)||lB(l))||s&&Re(l))return!0}return!1}var dB="4.4.7";const uB=["top","bottom","left","right","chartArea"];function Ru(t,e){return t==="top"||t==="bottom"||uB.indexOf(t)===-1&&e==="x"}function Du(t,e){return function(o,r){return o[t]===r[t]?o[e]-r[e]:o[t]-r[t]}}function Ou(t){const e=t.chart,o=e.options.animation;e.notifyPlugins("afterRender"),we(o&&o.onComplete,[t],e)}function fB(t){const e=t.chart,o=e.options.animation;we(o&&o.onProgress,[t],e)}function Nu(t){return Na()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const li={},Tu=t=>{const e=Nu(t);return Object.values(li).filter(o=>o.canvas===e).pop()};function hB(t,e,o){const r=Object.keys(t);for(const n of r){const i=+n;if(i>=e){const s=t[n];delete t[n],(o>0||i>e)&&(t[i+o]=s)}}}function gB(t,e,o,r){return!o||t.type==="mouseout"?null:r?e:t}function ci(t,e,o){return t.options.clip?t[o]:e[o]}function mB(t,e){const{xScale:o,yScale:r}=t;return o&&r?{left:ci(o,e,"left"),right:ci(o,e,"right"),top:ci(r,e,"top"),bottom:ci(r,e,"bottom")}:e}class Ot{static register(...e){xt.add(...e),Pu()}static unregister(...e){xt.remove(...e),Pu()}constructor(e,o){const r=this.config=new sB(o),n=Nu(e),i=Tu(n);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||pu(n)),this.platform.updateConfig(r);const l=this.platform.acquireContext(n,s.aspectRatio),c=l&&l.canvas,d=c&&c.height,u=c&&c.width;if(this.id=__(),this.ctx=l,this.canvas=c,this.width=u,this.height=d,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new GS,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=L_(f=>this.update(f),s.resizeDelay||0),this._dataChanges=[],li[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}Rt.listen(this,"complete",Ou),Rt.listen(this,"progress",fB),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:o},width:r,height:n,_aspectRatio:i}=this;return fe(e)?o&&i?i:n?r/n:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return xt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Pd(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return wd(this.canvas,this.ctx),this}stop(){return Rt.stop(this),this}resize(e,o){Rt.running(this)?this._resizeBeforeDraw={width:e,height:o}:this._resize(e,o)}_resize(e,o){const r=this.options,n=this.canvas,i=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(n,e,o,i),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,Pd(this,l,!0)&&(this.notifyPlugins("resize",{size:s}),we(r.onResize,[this,s],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){const o=this.options.scales||{};ye(o,(r,n)=>{r.id=n})}buildOrUpdateScales(){const e=this.options,o=e.scales,r=this.scales,n=Object.keys(r).reduce((s,l)=>(s[l]=!1,s),{});let i=[];o&&(i=i.concat(Object.keys(o).map(s=>{const l=o[s],c=Ha(s,l),d=c==="r",u=c==="x";return{options:l,dposition:d?"chartArea":u?"bottom":"left",dtype:d?"radialLinear":u?"category":"linear"}}))),ye(i,s=>{const l=s.options,c=l.id,d=Ha(c,l),u=se(l.type,s.dtype);(l.position===void 0||Ru(l.position,d)!==Ru(s.dposition))&&(l.position=s.dposition),n[c]=!0;let f=null;if(c in r&&r[c].type===u)f=r[c];else{const h=xt.getScale(u);f=new h({id:c,type:u,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(l,e)}),ye(n,(s,l)=>{s||delete r[l]}),ye(r,s=>{We.configure(this,s,s.options),We.addBox(this,s)})}_updateMetasets(){const e=this._metasets,o=this.data.datasets.length,r=e.length;if(e.sort((n,i)=>n.index-i.index),r>o){for(let n=o;n<r;++n)this._destroyDatasetMeta(n);e.splice(o,r-o)}this._sortedMetasets=e.slice(0).sort(Du("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:o}}=this;e.length>o.length&&delete this._stacks,e.forEach((r,n)=>{o.filter(i=>i===r._dataset).length===0&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const e=[],o=this.data.datasets;let r,n;for(this._removeUnreferencedMetasets(),r=0,n=o.length;r<n;r++){const i=o[r];let s=this.getDatasetMeta(r);const l=i.type||this.config.type;if(s.type&&s.type!==l&&(this._destroyDatasetMeta(r),s=this.getDatasetMeta(r)),s.type=l,s.indexAxis=i.indexAxis||Wa(l,this.options),s.order=i.order||0,s.index=r,s.label=""+i.label,s.visible=this.isDatasetVisible(r),s.controller)s.controller.updateIndex(r),s.controller.linkScales();else{const c=xt.getController(l),{datasetElementType:d,dataElementType:u}=Se.datasets[l];Object.assign(c,{dataElementType:xt.getElement(u),datasetElementType:d&&xt.getElement(d)}),s.controller=new c(this,r),e.push(s.controller)}}return this._updateMetasets(),e}_resetElements(){ye(this.data.datasets,(e,o)=>{this.getDatasetMeta(o).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const o=this.config;o.update();const r=this._options=o.createResolver(o.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let d=0,u=this.data.datasets.length;d<u;d++){const{controller:f}=this.getDatasetMeta(d),h=!n&&i.indexOf(f)===-1;f.buildOrUpdateElements(h),s=Math.max(+f.getMaxOverflow(),s)}s=this._minPadding=r.layout.autoPadding?s:0,this._updateLayout(s),n||ye(i,d=>{d.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Du("z","_idx"));const{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){ye(this.scales,e=>{We.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,o=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!nd(o,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,o=this._getUniformDataChanges()||[];for(const{method:r,start:n,count:i}of o){const s=r==="_removeElements"?-i:i;hB(e,n,s)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const o=this.data.datasets.length,r=i=>new Set(e.filter(s=>s[0]===i).map((s,l)=>l+","+s.splice(1).join(","))),n=r(0);for(let i=1;i<o;i++)if(!nd(n,r(i)))return;return Array.from(n).map(i=>i.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;We.update(this,this.width,this.height,e);const o=this.chartArea,r=o.width<=0||o.height<=0;this._layers=[],ye(this.boxes,n=>{r&&n.position==="chartArea"||(n.configure&&n.configure(),this._layers.push(...n._layers()))},this),this._layers.forEach((n,i)=>{n._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let o=0,r=this.data.datasets.length;o<r;++o)this.getDatasetMeta(o).controller.configure();for(let o=0,r=this.data.datasets.length;o<r;++o)this._updateDataset(o,ao(e)?e({datasetIndex:o}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,o){const r=this.getDatasetMeta(e),n={meta:r,index:e,mode:o,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",n)!==!1&&(r.controller._update(o),n.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",n))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Rt.has(this)?this.attached&&!Rt.running(this)&&Rt.start(this):(this.draw(),Ou({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:r,height:n}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,n)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const o=this._layers;for(e=0;e<o.length&&o[e].z<=0;++e)o[e].draw(this.chartArea);for(this._drawDatasets();e<o.length;++e)o[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const o=this._sortedMetasets,r=[];let n,i;for(n=0,i=o.length;n<i;++n){const s=o[n];(!e||s.visible)&&r.push(s)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let o=e.length-1;o>=0;--o)this._drawDataset(e[o]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const o=this.ctx,r=e._clip,n=!r.disabled,i=mB(e,this.chartArea),s={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(n&&Kn(o,{left:r.left===!1?0:i.left-r.left,right:r.right===!1?this.width:i.right+r.right,top:r.top===!1?0:i.top-r.top,bottom:r.bottom===!1?this.height:i.bottom+r.bottom}),e.controller.draw(),n&&Gn(o),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(e){return Ht(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,o,r,n){const i=nu.modes[o];return typeof i=="function"?i(this,e,r,n):[]}getDatasetMeta(e){const o=this.data.datasets[e],r=this._metasets;let n=r.filter(i=>i&&i._dataset===o).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:o&&o.order||0,index:e,_dataset:o,_parsed:[],_sorted:!1},r.push(n)),n}getContext(){return this.$context||(this.$context=lo(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const o=this.data.datasets[e];if(!o)return!1;const r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!o.hidden}setDatasetVisibility(e,o){const r=this.getDatasetMeta(e);r.hidden=!o}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,o,r){const n=r?"show":"hide",i=this.getDatasetMeta(e),s=i.controller._resolveAnimations(void 0,n);Pr(o)?(i.data[o].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),s.update(i,{visible:r}),this.update(l=>l.datasetIndex===e?n:void 0))}hide(e,o){this._updateVisibility(e,o,!1)}show(e,o){this._updateVisibility(e,o,!0)}_destroyDatasetMeta(e){const o=this._metasets[e];o&&o.controller&&o.controller._destroy(),delete this._metasets[e]}_stop(){let e,o;for(this.stop(),Rt.remove(this),e=0,o=this.data.datasets.length;e<o;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:o}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),wd(e,o),this.platform.releaseContext(o),this.canvas=null,this.ctx=null),delete li[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,o=this.platform,r=(i,s)=>{o.addEventListener(this,i,s),e[i]=s},n=(i,s,l)=>{i.offsetX=s,i.offsetY=l,this._eventHandler(i)};ye(this.options.events,i=>r(i,n))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,o=this.platform,r=(c,d)=>{o.addEventListener(this,c,d),e[c]=d},n=(c,d)=>{e[c]&&(o.removeEventListener(this,c,d),delete e[c])},i=(c,d)=>{this.canvas&&this.resize(c,d)};let s;const l=()=>{n("attach",l),this.attached=!0,this.resize(),r("resize",i),r("detach",s)};s=()=>{this.attached=!1,n("resize",i),this._stop(),this._resize(0,0),r("attach",l)},o.isAttached(this.canvas)?l():s()}unbindEvents(){ye(this._listeners,(e,o)=>{this.platform.removeEventListener(this,o,e)}),this._listeners={},ye(this._responsiveListeners,(e,o)=>{this.platform.removeEventListener(this,o,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,o,r){const n=r?"set":"remove";let i,s,l,c;for(o==="dataset"&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller["_"+n+"DatasetHoverStyle"]()),l=0,c=e.length;l<c;++l){s=e[l];const d=s&&this.getDatasetMeta(s.datasetIndex).controller;d&&d[n+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const o=this._active||[],r=e.map(({datasetIndex:i,index:s})=>{const l=this.getDatasetMeta(i);if(!l)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:l.data[s],index:s}});!Hn(r,o)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,o))}notifyPlugins(e,o,r){return this._plugins.notify(this,e,o,r)}isPluginEnabled(e){return this._plugins._cache.filter(o=>o.plugin.id===e).length===1}_updateHoverStyles(e,o,r){const n=this.options.hover,i=(c,d)=>c.filter(u=>!d.some(f=>u.datasetIndex===f.datasetIndex&&u.index===f.index)),s=i(o,e),l=r?e:i(e,o);s.length&&this.updateHoverStyle(s,n.mode,!1),l.length&&n.mode&&this.updateHoverStyle(l,n.mode,!0)}_eventHandler(e,o){const r={event:e,replay:o,cancelable:!0,inChartArea:this.isPointInArea(e)},n=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,n)===!1)return;const i=this._handleEvent(e,o,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,n),(i||r.changed)&&this.render(),this}_handleEvent(e,o,r){const{_active:n=[],options:i}=this,s=o,l=this._getActiveElements(e,n,r,s),c=O_(e),d=gB(e,this._lastEvent,r,c);r&&(this._lastEvent=null,we(i.onHover,[e,l,this],this),c&&we(i.onClick,[e,l,this],this));const u=!Hn(l,n);return(u||o)&&(this._active=l,this._updateHoverStyles(l,n,o)),this._lastEvent=d,u}_getActiveElements(e,o,r,n){if(e.type==="mouseout")return[];if(!r)return o;const i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,n)}}j(Ot,"defaults",Se),j(Ot,"instances",li),j(Ot,"overrides",So),j(Ot,"registry",xt),j(Ot,"version",dB),j(Ot,"getChart",Tu);function Pu(){return ye(Ot.instances,t=>t._plugins.invalidate())}function pB(t,e,o){const{startAngle:r,pixelMargin:n,x:i,y:s,outerRadius:l,innerRadius:c}=e;let d=n/l;t.beginPath(),t.arc(i,s,l,r-d,o+d),c>n?(d=n/c,t.arc(i,s,c,o+d,r-d,!0)):t.arc(i,s,n,o+Me,r-Me),t.closePath(),t.clip()}function bB(t){return Ea(t,["outerStart","outerEnd","innerStart","innerEnd"])}function yB(t,e,o,r){const n=bB(t.options.borderRadius),i=(o-e)/2,s=Math.min(i,r*e/2),l=c=>{const d=(o-Math.min(i,c))*r/2;return je(c,0,Math.min(i,d))};return{outerStart:l(n.outerStart),outerEnd:l(n.outerEnd),innerStart:je(n.innerStart,0,s),innerEnd:je(n.innerEnd,0,s)}}function Jo(t,e,o,r){return{x:o+t*Math.cos(e),y:r+t*Math.sin(e)}}function di(t,e,o,r,n,i){const{x:s,y:l,startAngle:c,pixelMargin:d,innerRadius:u}=e,f=Math.max(e.outerRadius+r+o-d,0),h=u>0?u+r+o+d:0;let g=0;const m=n-c;if(r){const Y=u>0?u-r:0,I=f>0?f-r:0,z=(Y+I)/2,F=z!==0?m*z/(z+r):m;g=(m-F)/2}const p=Math.max(.001,m*f-o/Ce)/f,b=(m-p)/2,y=c+b+g,k=n-b-g,{outerStart:C,outerEnd:_,innerStart:v,innerEnd:S}=yB(e,h,f,k-y),w=f-C,x=f-_,B=y+C/w,T=k-_/x,E=h+v,O=h+S,M=y+v/E,W=k-S/O;if(t.beginPath(),i){const Y=(B+T)/2;if(t.arc(s,l,f,B,Y),t.arc(s,l,f,Y,T),_>0){const P=Jo(x,T,s,l);t.arc(P.x,P.y,_,T,k+Me)}const I=Jo(O,k,s,l);if(t.lineTo(I.x,I.y),S>0){const P=Jo(O,W,s,l);t.arc(P.x,P.y,S,k+Me,W+Math.PI)}const z=(k-S/h+(y+v/h))/2;if(t.arc(s,l,h,k-S/h,z,!0),t.arc(s,l,h,z,y+v/h,!0),v>0){const P=Jo(E,M,s,l);t.arc(P.x,P.y,v,M+Math.PI,y-Me)}const F=Jo(w,y,s,l);if(t.lineTo(F.x,F.y),C>0){const P=Jo(w,B,s,l);t.arc(P.x,P.y,C,y-Me,B)}}else{t.moveTo(s,l);const Y=Math.cos(B)*f+s,I=Math.sin(B)*f+l;t.lineTo(Y,I);const z=Math.cos(T)*f+s,F=Math.sin(T)*f+l;t.lineTo(z,F)}t.closePath()}function kB(t,e,o,r,n){const{fullCircles:i,startAngle:s,circumference:l}=e;let c=e.endAngle;if(i){di(t,e,o,r,c,n);for(let d=0;d<i;++d)t.fill();isNaN(l)||(c=s+(l%_e||_e))}return di(t,e,o,r,c,n),t.fill(),c}function xB(t,e,o,r,n){const{fullCircles:i,startAngle:s,circumference:l,options:c}=e,{borderWidth:d,borderJoinStyle:u,borderDash:f,borderDashOffset:h}=c,g=c.borderAlign==="inner";if(!d)return;t.setLineDash(f||[]),t.lineDashOffset=h,g?(t.lineWidth=d*2,t.lineJoin=u||"round"):(t.lineWidth=d,t.lineJoin=u||"bevel");let m=e.endAngle;if(i){di(t,e,o,r,m,n);for(let p=0;p<i;++p)t.stroke();isNaN(l)||(m=s+(l%_e||_e))}g&&pB(t,e,m),i||(di(t,e,o,r,m,n),t.stroke())}class Qo extends Dt{constructor(o){super();j(this,"circumference");j(this,"endAngle");j(this,"fullCircles");j(this,"innerRadius");j(this,"outerRadius");j(this,"pixelMargin");j(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,o&&Object.assign(this,o)}inRange(o,r,n){const i=this.getProps(["x","y"],n),{angle:s,distance:l}=cd(i,{x:o,y:r}),{startAngle:c,endAngle:d,innerRadius:u,outerRadius:f,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),g=(this.options.spacing+this.options.borderWidth)/2,m=se(h,d-c),p=Ar(s,c,d)&&c!==d,b=m>=_e||p,y=jt(l,u+g,f+g);return b&&y}getCenterPoint(o){const{x:r,y:n,startAngle:i,endAngle:s,innerRadius:l,outerRadius:c}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],o),{offset:d,spacing:u}=this.options,f=(i+s)/2,h=(l+c+u+d)/2;return{x:r+Math.cos(f)*h,y:n+Math.sin(f)*h}}tooltipPosition(o){return this.getCenterPoint(o)}draw(o){const{options:r,circumference:n}=this,i=(r.offset||0)/4,s=(r.spacing||0)/2,l=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=n>_e?Math.floor(n/_e):0,n===0||this.innerRadius<0||this.outerRadius<0)return;o.save();const c=(this.startAngle+this.endAngle)/2;o.translate(Math.cos(c)*i,Math.sin(c)*i);const d=1-Math.sin(Math.min(Ce,n||0)),u=i*d;o.fillStyle=r.backgroundColor,o.strokeStyle=r.borderColor,kB(o,this,u,s,l),xB(o,this,u,s,l),o.restore()}}j(Qo,"id","arc"),j(Qo,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),j(Qo,"defaultRoutes",{backgroundColor:"backgroundColor"}),j(Qo,"descriptors",{_scriptable:!0,_indexable:o=>o!=="borderDash"});function $u(t,e,o=e){t.lineCap=se(o.borderCapStyle,e.borderCapStyle),t.setLineDash(se(o.borderDash,e.borderDash)),t.lineDashOffset=se(o.borderDashOffset,e.borderDashOffset),t.lineJoin=se(o.borderJoinStyle,e.borderJoinStyle),t.lineWidth=se(o.borderWidth,e.borderWidth),t.strokeStyle=se(o.borderColor,e.borderColor)}function vB(t,e,o){t.lineTo(o.x,o.y)}function wB(t){return t.stepped?Q_:t.tension||t.cubicInterpolationMode==="monotone"?Z_:vB}function Au(t,e,o={}){const r=t.length,{start:n=0,end:i=r-1}=o,{start:s,end:l}=e,c=Math.max(n,s),d=Math.min(i,l),u=n<s&&i<s||n>l&&i>l;return{count:r,start:c,loop:e.loop,ilen:d<c&&!u?r+d-c:d-c}}function CB(t,e,o,r){const{points:n,options:i}=e,{count:s,start:l,loop:c,ilen:d}=Au(n,o,r),u=wB(i);let{move:f=!0,reverse:h}=r||{},g,m,p;for(g=0;g<=d;++g)m=n[(l+(h?d-g:g))%s],!m.skip&&(f?(t.moveTo(m.x,m.y),f=!1):u(t,p,m,h,i.stepped),p=m);return c&&(m=n[(l+(h?d:0))%s],u(t,p,m,h,i.stepped)),!!c}function _B(t,e,o,r){const n=e.points,{count:i,start:s,ilen:l}=Au(n,o,r),{move:c=!0,reverse:d}=r||{};let u=0,f=0,h,g,m,p,b,y;const k=_=>(s+(d?l-_:_))%i,C=()=>{p!==b&&(t.lineTo(u,b),t.lineTo(u,p),t.lineTo(u,y))};for(c&&(g=n[k(0)],t.moveTo(g.x,g.y)),h=0;h<=l;++h){if(g=n[k(h)],g.skip)continue;const _=g.x,v=g.y,S=_|0;S===m?(v<p?p=v:v>b&&(b=v),u=(f*u+_)/++f):(C(),t.lineTo(_,v),m=S,f=0,p=b=v),y=v}C()}function Ua(t){const e=t.options,o=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!o?_B:CB}function SB(t){return t.stepped?N5:t.tension||t.cubicInterpolationMode==="monotone"?T5:No}function BB(t,e,o,r){let n=e._path;n||(n=e._path=new Path2D,e.path(n,o,r)&&n.closePath()),$u(t,e.options),t.stroke(n)}function EB(t,e,o,r){const{segments:n,options:i}=e,s=Ua(e);for(const l of n)$u(t,i,l.style),t.beginPath(),s(t,e,l,{start:o,end:o+r-1})&&t.closePath(),t.stroke()}const RB=typeof Path2D=="function";function DB(t,e,o,r){RB&&!e.options.segment?BB(t,e,o,r):EB(t,e,o,r)}class Ut extends Dt{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,o){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const n=r.spanGaps?this._loop:this._fullLoop;C5(this._points,r,e,n,o),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=F5(this,this.options.segment))}first(){const e=this.segments,o=this.points;return e.length&&o[e[0].start]}last(){const e=this.segments,o=this.points,r=e.length;return r&&o[e[r-1].end]}interpolate(e,o){const r=this.options,n=e[o],i=this.points,s=Ld(this,{property:o,start:n,end:n});if(!s.length)return;const l=[],c=SB(r);let d,u;for(d=0,u=s.length;d<u;++d){const{start:f,end:h}=s[d],g=i[f],m=i[h];if(g===m){l.push(g);continue}const p=Math.abs((n-g[o])/(m[o]-g[o])),b=c(g,m,p,r.stepped);b[o]=e[o],l.push(b)}return l.length===1?l[0]:l}pathSegment(e,o,r){return Ua(this)(e,this,o,r)}path(e,o,r){const n=this.segments,i=Ua(this);let s=this._loop;o=o||0,r=r||this.points.length-o;for(const l of n)s&=i(e,this,l,{start:o,end:o+r-1});return!!s}draw(e,o,r,n){const i=this.options||{};(this.points||[]).length&&i.borderWidth&&(e.save(),DB(e,this,r,n),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}j(Ut,"id","line"),j(Ut,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),j(Ut,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),j(Ut,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"});function Mu(t,e,o,r){const n=t.options,{[o]:i}=t.getProps([o],r);return Math.abs(e-i)<n.radius+n.hitRadius}class tn extends Dt{constructor(o){super();j(this,"parsed");j(this,"skip");j(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,o&&Object.assign(this,o)}inRange(o,r,n){const i=this.options,{x:s,y:l}=this.getProps(["x","y"],n);return Math.pow(o-s,2)+Math.pow(r-l,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(o,r){return Mu(this,o,"x",r)}inYRange(o,r){return Mu(this,o,"y",r)}getCenterPoint(o){const{x:r,y:n}=this.getProps(["x","y"],o);return{x:r,y:n}}size(o){o=o||this.options||{};let r=o.radius||0;r=Math.max(r,r&&o.hoverRadius||0);const n=r&&o.borderWidth||0;return(r+n)*2}draw(o,r){const n=this.options;this.skip||n.radius<.1||!Ht(this,r,this.size(n)/2)||(o.strokeStyle=n.borderColor,o.lineWidth=n.borderWidth,o.fillStyle=n.backgroundColor,Ba(o,n,this.x,this.y))}getRange(){const o=this.options||{};return o.radius+o.hitRadius}}j(tn,"id","point"),j(tn,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),j(tn,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function Vu(t,e){const{x:o,y:r,base:n,width:i,height:s}=t.getProps(["x","y","base","width","height"],e);let l,c,d,u,f;return t.horizontal?(f=s/2,l=Math.min(o,n),c=Math.max(o,n),d=r-f,u=r+f):(f=i/2,l=o-f,c=o+f,d=Math.min(r,n),u=Math.max(r,n)),{left:l,top:d,right:c,bottom:u}}function fo(t,e,o,r){return t?0:je(e,o,r)}function OB(t,e,o){const r=t.options.borderWidth,n=t.borderSkipped,i=_d(r);return{t:fo(n.top,i.top,0,o),r:fo(n.right,i.right,0,e),b:fo(n.bottom,i.bottom,0,o),l:fo(n.left,i.left,0,e)}}function NB(t,e,o){const{enableBorderRadius:r}=t.getProps(["enableBorderRadius"]),n=t.options.borderRadius,i=Ro(n),s=Math.min(e,o),l=t.borderSkipped,c=r||de(n);return{topLeft:fo(!c||l.top||l.left,i.topLeft,0,s),topRight:fo(!c||l.top||l.right,i.topRight,0,s),bottomLeft:fo(!c||l.bottom||l.left,i.bottomLeft,0,s),bottomRight:fo(!c||l.bottom||l.right,i.bottomRight,0,s)}}function TB(t){const e=Vu(t),o=e.right-e.left,r=e.bottom-e.top,n=OB(t,o/2,r/2),i=NB(t,o/2,r/2);return{outer:{x:e.left,y:e.top,w:o,h:r,radius:i},inner:{x:e.left+n.l,y:e.top+n.t,w:o-n.l-n.r,h:r-n.t-n.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(n.t,n.l)),topRight:Math.max(0,i.topRight-Math.max(n.t,n.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(n.b,n.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(n.b,n.r))}}}}function qa(t,e,o,r){const n=e===null,i=o===null,l=t&&!(n&&i)&&Vu(t,r);return l&&(n||jt(e,l.left,l.right))&&(i||jt(o,l.top,l.bottom))}function PB(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}function $B(t,e){t.rect(e.x,e.y,e.w,e.h)}function Ya(t,e,o={}){const r=t.x!==o.x?-e:0,n=t.y!==o.y?-e:0,i=(t.x+t.w!==o.x+o.w?e:0)-r,s=(t.y+t.h!==o.y+o.h?e:0)-n;return{x:t.x+r,y:t.y+n,w:t.w+i,h:t.h+s,radius:t.radius}}class on extends Dt{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:o,options:{borderColor:r,backgroundColor:n}}=this,{inner:i,outer:s}=TB(this),l=PB(s.radius)?Lr:$B;e.save(),(s.w!==i.w||s.h!==i.h)&&(e.beginPath(),l(e,Ya(s,o,i)),e.clip(),l(e,Ya(i,-o,s)),e.fillStyle=r,e.fill("evenodd")),e.beginPath(),l(e,Ya(i,o)),e.fillStyle=n,e.fill(),e.restore()}inRange(e,o,r){return qa(this,e,o,r)}inXRange(e,o){return qa(this,e,null,o)}inYRange(e,o){return qa(this,null,e,o)}getCenterPoint(e){const{x:o,y:r,base:n,horizontal:i}=this.getProps(["x","y","base","horizontal"],e);return{x:i?(o+n)/2:o,y:i?r:(r+n)/2}}getRange(e){return e==="x"?this.width/2:this.height/2}}j(on,"id","bar"),j(on,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),j(on,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var Fu=Object.freeze({__proto__:null,ArcElement:Qo,BarElement:on,LineElement:Ut,PointElement:tn});const Xa=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Iu=Xa.map(t=>t.replace("rgb(","rgba(").replace(")",", 0.5)"));function Lu(t){return Xa[t%Xa.length]}function zu(t){return Iu[t%Iu.length]}function AB(t,e){return t.borderColor=Lu(e),t.backgroundColor=zu(e),++e}function MB(t,e){return t.backgroundColor=t.data.map(()=>Lu(e++)),e}function VB(t,e){return t.backgroundColor=t.data.map(()=>zu(e++)),e}function FB(t){let e=0;return(o,r)=>{const n=t.getDatasetMeta(r).controller;n instanceof co?e=MB(o,e):n instanceof Go?e=VB(o,e):n&&(e=AB(o,e))}}function ju(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}function IB(t){return t&&(t.borderColor||t.backgroundColor)}function LB(){return Se.borderColor!=="rgba(0,0,0,0.1)"||Se.backgroundColor!=="rgba(0,0,0,0.1)"}var Wu={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,o){if(!o.enabled)return;const{data:{datasets:r},options:n}=t.config,{elements:i}=n,s=ju(r)||IB(n)||i&&ju(i)||LB();if(!o.forceOverride&&s)return;const l=FB(t);r.forEach(l)}};function zB(t,e,o,r,n){const i=n.samples||r;if(i>=o)return t.slice(e,e+o);const s=[],l=(o-2)/(i-2);let c=0;const d=e+o-1;let u=e,f,h,g,m,p;for(s[c++]=t[u],f=0;f<i-2;f++){let b=0,y=0,k;const C=Math.floor((f+1)*l)+1+e,_=Math.min(Math.floor((f+2)*l)+1,o)+e,v=_-C;for(k=C;k<_;k++)b+=t[k].x,y+=t[k].y;b/=v,y/=v;const S=Math.floor(f*l)+1+e,w=Math.min(Math.floor((f+1)*l)+1,o)+e,{x,y:B}=t[u];for(g=m=-1,k=S;k<w;k++)m=.5*Math.abs((x-b)*(t[k].y-B)-(x-t[k].x)*(y-B)),m>g&&(g=m,h=t[k],p=k);s[c++]=h,u=p}return s[c++]=t[d],s}function jB(t,e,o,r){let n=0,i=0,s,l,c,d,u,f,h,g,m,p;const b=[],y=e+o-1,k=t[e].x,_=t[y].x-k;for(s=e;s<e+o;++s){l=t[s],c=(l.x-k)/_*r,d=l.y;const v=c|0;if(v===u)d<m?(m=d,f=s):d>p&&(p=d,h=s),n=(i*n+l.x)/++i;else{const S=s-1;if(!fe(f)&&!fe(h)){const w=Math.min(f,h),x=Math.max(f,h);w!==g&&w!==S&&b.push({...t[w],x:n}),x!==g&&x!==S&&b.push({...t[x],x:n})}s>0&&S!==g&&b.push(t[S]),b.push(l),u=v,i=0,m=p=d,f=h=g=s}}return b}function Hu(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function Uu(t){t.data.datasets.forEach(e=>{Hu(e)})}function WB(t,e){const o=e.length;let r=0,n;const{iScale:i}=t,{min:s,max:l,minDefined:c,maxDefined:d}=i.getUserBounds();return c&&(r=je(Wt(e,i.axis,s).lo,0,o-1)),d?n=je(Wt(e,i.axis,l).hi+1,r,o)-r:n=o-r,{start:r,count:n}}var qu={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,o)=>{if(!o.enabled){Uu(t);return}const r=t.width;t.data.datasets.forEach((n,i)=>{const{_data:s,indexAxis:l}=n,c=t.getDatasetMeta(i),d=s||n.data;if(zr([l,t.options.indexAxis])==="y"||!c.controller.supportsDecimation)return;const u=t.scales[c.xAxisID];if(u.type!=="linear"&&u.type!=="time"||t.options.parsing)return;let{start:f,count:h}=WB(c,d);const g=o.threshold||4*r;if(h<=g){Hu(n);return}fe(s)&&(n._data=d,delete n.data,Object.defineProperty(n,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(p){this._data=p}}));let m;switch(o.algorithm){case"lttb":m=zB(d,f,h,r,o);break;case"min-max":m=jB(d,f,h,r);break;default:throw new Error(`Unsupported decimation algorithm '${o.algorithm}'`)}n._decimated=m})},destroy(t){Uu(t)}};function HB(t,e,o){const r=t.segments,n=t.points,i=e.points,s=[];for(const l of r){let{start:c,end:d}=l;d=Ga(c,d,n);const u=Ka(o,n[c],n[d],l.loop);if(!e.segments){s.push({source:l,target:u,start:n[c],end:n[d]});continue}const f=Ld(e,u);for(const h of f){const g=Ka(o,i[h.start],i[h.end],h.loop),m=Id(l,n,g);for(const p of m)s.push({source:p,target:h,start:{[o]:Yu(u,g,"start",Math.max)},end:{[o]:Yu(u,g,"end",Math.min)}})}}return s}function Ka(t,e,o,r){if(r)return;let n=e[t],i=o[t];return t==="angle"&&(n=at(n),i=at(i)),{property:t,start:n,end:i}}function UB(t,e){const{x:o=null,y:r=null}=t||{},n=e.points,i=[];return e.segments.forEach(({start:s,end:l})=>{l=Ga(s,l,n);const c=n[s],d=n[l];r!==null?(i.push({x:c.x,y:r}),i.push({x:d.x,y:r})):o!==null&&(i.push({x:o,y:c.y}),i.push({x:o,y:d.y}))}),i}function Ga(t,e,o){for(;e>t;e--){const r=o[e];if(!isNaN(r.x)&&!isNaN(r.y))break}return e}function Yu(t,e,o,r){return t&&e?r(t[o],e[o]):t?t[o]:e?e[o]:0}function Xu(t,e){let o=[],r=!1;return Re(t)?(r=!0,o=t):o=UB(t,e),o.length?new Ut({points:o,options:{tension:0},_loop:r,_fullLoop:r}):null}function Ku(t){return t&&t.fill!==!1}function qB(t,e,o){let n=t[e].fill;const i=[e];let s;if(!o)return n;for(;n!==!1&&i.indexOf(n)===-1;){if(!$e(n))return n;if(s=t[n],!s)return!1;if(s.visible)return n;i.push(n),n=s.fill}return!1}function YB(t,e,o){const r=JB(t);if(de(r))return isNaN(r.value)?!1:r;let n=parseFloat(r);return $e(n)&&Math.floor(n)===n?XB(r[0],e,n,o):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function XB(t,e,o,r){return(t==="-"||t==="+")&&(o=e+o),o===e||o<0||o>=r?!1:o}function KB(t,e){let o=null;return t==="start"?o=e.bottom:t==="end"?o=e.top:de(t)?o=e.getPixelForValue(t.value):e.getBasePixel&&(o=e.getBasePixel()),o}function GB(t,e,o){let r;return t==="start"?r=o:t==="end"?r=e.options.reverse?e.min:e.max:de(t)?r=t.value:r=e.getBaseValue(),r}function JB(t){const e=t.options,o=e.fill;let r=se(o&&o.target,o);return r===void 0&&(r=!!e.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function QB(t){const{scale:e,index:o,line:r}=t,n=[],i=r.segments,s=r.points,l=ZB(e,o);l.push(Xu({x:null,y:e.bottom},r));for(let c=0;c<i.length;c++){const d=i[c];for(let u=d.start;u<=d.end;u++)e2(n,s[u],l)}return new Ut({points:n,options:{}})}function ZB(t,e){const o=[],r=t.getMatchingVisibleMetas("line");for(let n=0;n<r.length;n++){const i=r[n];if(i.index===e)break;i.hidden||o.unshift(i.dataset)}return o}function e2(t,e,o){const r=[];for(let n=0;n<o.length;n++){const i=o[n],{first:s,last:l,point:c}=t2(i,e,"x");if(!(!c||s&&l)){if(s)r.unshift(c);else if(t.push(c),!l)break}}t.push(...r)}function t2(t,e,o){const r=t.interpolate(e,o);if(!r)return{};const n=r[o],i=t.segments,s=t.points;let l=!1,c=!1;for(let d=0;d<i.length;d++){const u=i[d],f=s[u.start][o],h=s[u.end][o];if(jt(n,f,h)){l=n===f,c=n===h;break}}return{first:l,last:c,point:r}}class Gu{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,o,r){const{x:n,y:i,radius:s}=this;return o=o||{start:0,end:_e},e.arc(n,i,s,o.end,o.start,!0),!r.bounds}interpolate(e){const{x:o,y:r,radius:n}=this,i=e.angle;return{x:o+Math.cos(i)*n,y:r+Math.sin(i)*n,angle:i}}}function o2(t){const{chart:e,fill:o,line:r}=t;if($e(o))return r2(e,o);if(o==="stack")return QB(t);if(o==="shape")return!0;const n=n2(t);return n instanceof Gu?n:Xu(n,r)}function r2(t,e){const o=t.getDatasetMeta(e);return o&&t.isDatasetVisible(e)?o.dataset:null}function n2(t){return(t.scale||{}).getPointPositionForValue?a2(t):i2(t)}function i2(t){const{scale:e={},fill:o}=t,r=KB(o,e);if($e(r)){const n=e.isHorizontal();return{x:n?r:null,y:n?null:r}}return null}function a2(t){const{scale:e,fill:o}=t,r=e.options,n=e.getLabels().length,i=r.reverse?e.max:e.min,s=GB(o,e,i),l=[];if(r.grid.circular){const c=e.getPointPositionForValue(0,i);return new Gu({x:c.x,y:c.y,radius:e.getDistanceFromCenterForValue(s)})}for(let c=0;c<n;++c)l.push(e.getPointPositionForValue(c,s));return l}function Ja(t,e,o){const r=o2(e),{line:n,scale:i,axis:s}=e,l=n.options,c=l.fill,d=l.backgroundColor,{above:u=d,below:f=d}=c||{};r&&n.points.length&&(Kn(t,o),s2(t,{line:n,target:r,above:u,below:f,area:o,scale:i,axis:s}),Gn(t))}function s2(t,e){const{line:o,target:r,above:n,below:i,area:s,scale:l}=e,c=o._loop?"angle":e.axis;t.save(),c==="x"&&i!==n&&(Ju(t,r,s.top),Qu(t,{line:o,target:r,color:n,scale:l,property:c}),t.restore(),t.save(),Ju(t,r,s.bottom)),Qu(t,{line:o,target:r,color:i,scale:l,property:c}),t.restore()}function Ju(t,e,o){const{segments:r,points:n}=e;let i=!0,s=!1;t.beginPath();for(const l of r){const{start:c,end:d}=l,u=n[c],f=n[Ga(c,d,n)];i?(t.moveTo(u.x,u.y),i=!1):(t.lineTo(u.x,o),t.lineTo(u.x,u.y)),s=!!e.pathSegment(t,l,{move:s}),s?t.closePath():t.lineTo(f.x,o)}t.lineTo(e.first().x,o),t.closePath(),t.clip()}function Qu(t,e){const{line:o,target:r,property:n,color:i,scale:s}=e,l=HB(o,r,n);for(const{source:c,target:d,start:u,end:f}of l){const{style:{backgroundColor:h=i}={}}=c,g=r!==!0;t.save(),t.fillStyle=h,l2(t,s,g&&Ka(n,u,f)),t.beginPath();const m=!!o.pathSegment(t,c);let p;if(g){m?t.closePath():Zu(t,r,f,n);const b=!!r.pathSegment(t,d,{move:m,reverse:!0});p=m&&b,p||Zu(t,r,u,n)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function l2(t,e,o){const{top:r,bottom:n}=e.chart.chartArea,{property:i,start:s,end:l}=o||{};i==="x"&&(t.beginPath(),t.rect(s,r,l-s,n-r),t.clip())}function Zu(t,e,o,r){const n=e.interpolate(o,r);n&&t.lineTo(n.x,n.y)}var ef={id:"filler",afterDatasetsUpdate(t,e,o){const r=(t.data.datasets||[]).length,n=[];let i,s,l,c;for(s=0;s<r;++s)i=t.getDatasetMeta(s),l=i.dataset,c=null,l&&l.options&&l instanceof Ut&&(c={visible:t.isDatasetVisible(s),index:s,fill:YB(l,s,r),chart:t,axis:i.controller.options.indexAxis,scale:i.vScale,line:l}),i.$filler=c,n.push(c);for(s=0;s<r;++s)c=n[s],!(!c||c.fill===!1)&&(c.fill=qB(n,s,o.propagate))},beforeDraw(t,e,o){const r=o.drawTime==="beforeDraw",n=t.getSortedVisibleDatasetMetas(),i=t.chartArea;for(let s=n.length-1;s>=0;--s){const l=n[s].$filler;l&&(l.line.updateControlPoints(i,l.axis),r&&l.fill&&Ja(t.ctx,l,i))}},beforeDatasetsDraw(t,e,o){if(o.drawTime!=="beforeDatasetsDraw")return;const r=t.getSortedVisibleDatasetMetas();for(let n=r.length-1;n>=0;--n){const i=r[n].$filler;Ku(i)&&Ja(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,o){const r=e.meta.$filler;!Ku(r)||o.drawTime!=="beforeDatasetDraw"||Ja(t.ctx,r,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const tf=(t,e)=>{let{boxHeight:o=e,boxWidth:r=e}=t;return t.usePointStyle&&(o=Math.min(o,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:o,itemHeight:Math.max(e,o)}},c2=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class of extends Dt{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,o,r){this.maxWidth=e,this.maxHeight=o,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let o=we(e.generateLabels,[this.chart],this)||[];e.filter&&(o=o.filter(r=>e.filter(r,this.chart.data))),e.sort&&(o=o.sort((r,n)=>e.sort(r,n,this.chart.data))),this.options.reverse&&o.reverse(),this.legendItems=o}fit(){const{options:e,ctx:o}=this;if(!e.display){this.width=this.height=0;return}const r=e.labels,n=Ie(r.font),i=n.size,s=this._computeTitleHeight(),{boxWidth:l,itemHeight:c}=tf(r,i);let d,u;o.font=n.string,this.isHorizontal()?(d=this.maxWidth,u=this._fitRows(s,i,l,c)+10):(u=this.maxHeight,d=this._fitCols(s,n,l,c)+10),this.width=Math.min(d,e.maxWidth||this.maxWidth),this.height=Math.min(u,e.maxHeight||this.maxHeight)}_fitRows(e,o,r,n){const{ctx:i,maxWidth:s,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],d=this.lineWidths=[0],u=n+l;let f=e;i.textAlign="left",i.textBaseline="middle";let h=-1,g=-u;return this.legendItems.forEach((m,p)=>{const b=r+o/2+i.measureText(m.text).width;(p===0||d[d.length-1]+b+2*l>s)&&(f+=u,d[d.length-(p>0?0:1)]=0,g+=u,h++),c[p]={left:0,top:g,row:h,width:b,height:n},d[d.length-1]+=b+l}),f}_fitCols(e,o,r,n){const{ctx:i,maxHeight:s,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],d=this.columnSizes=[],u=s-e;let f=l,h=0,g=0,m=0,p=0;return this.legendItems.forEach((b,y)=>{const{itemWidth:k,itemHeight:C}=d2(r,o,i,b,n);y>0&&g+C+2*l>u&&(f+=h+l,d.push({width:h,height:g}),m+=h+l,p++,h=g=0),c[y]={left:m,top:g,col:p,width:k,height:C},h=Math.max(h,k),g+=C+l}),f+=h,d.push({width:h,height:g}),f}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:o,options:{align:r,labels:{padding:n},rtl:i}}=this,s=Ko(i,this.left,this.width);if(this.isHorizontal()){let l=0,c=qe(r,this.left+n,this.right-this.lineWidths[l]);for(const d of o)l!==d.row&&(l=d.row,c=qe(r,this.left+n,this.right-this.lineWidths[l])),d.top+=this.top+e+n,d.left=s.leftForLtr(s.x(c),d.width),c+=d.width+n}else{let l=0,c=qe(r,this.top+e+n,this.bottom-this.columnSizes[l].height);for(const d of o)d.col!==l&&(l=d.col,c=qe(r,this.top+e+n,this.bottom-this.columnSizes[l].height)),d.top=c,d.left+=this.left+n,d.left=s.leftForLtr(s.x(d.left),d.width),c+=d.height+n}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Kn(e,this),this._draw(),Gn(e)}}_draw(){const{options:e,columnSizes:o,lineWidths:r,ctx:n}=this,{align:i,labels:s}=e,l=Se.color,c=Ko(e.rtl,this.left,this.width),d=Ie(s.font),{padding:u}=s,f=d.size,h=f/2;let g;this.drawTitle(),n.textAlign=c.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=d.string;const{boxWidth:m,boxHeight:p,itemHeight:b}=tf(s,f),y=function(S,w,x){if(isNaN(m)||m<=0||isNaN(p)||p<0)return;n.save();const B=se(x.lineWidth,1);if(n.fillStyle=se(x.fillStyle,l),n.lineCap=se(x.lineCap,"butt"),n.lineDashOffset=se(x.lineDashOffset,0),n.lineJoin=se(x.lineJoin,"miter"),n.lineWidth=B,n.strokeStyle=se(x.strokeStyle,l),n.setLineDash(se(x.lineDash,[])),s.usePointStyle){const T={radius:p*Math.SQRT2/2,pointStyle:x.pointStyle,rotation:x.rotation,borderWidth:B},E=c.xPlus(S,m/2),O=w+h;Cd(n,T,E,O,s.pointStyleWidth&&m)}else{const T=w+Math.max((f-p)/2,0),E=c.leftForLtr(S,m),O=Ro(x.borderRadius);n.beginPath(),Object.values(O).some(M=>M!==0)?Lr(n,{x:E,y:T,w:m,h:p,radius:O}):n.rect(E,T,m,p),n.fill(),B!==0&&n.stroke()}n.restore()},k=function(S,w,x){Eo(n,x.text,S,w+b/2,d,{strikethrough:x.hidden,textAlign:c.textAlign(x.textAlign)})},C=this.isHorizontal(),_=this._computeTitleHeight();C?g={x:qe(i,this.left+u,this.right-r[0]),y:this.top+u+_,line:0}:g={x:this.left+u,y:qe(i,this.top+_+u,this.bottom-o[0].height),line:0},Ad(this.ctx,e.textDirection);const v=b+u;this.legendItems.forEach((S,w)=>{n.strokeStyle=S.fontColor,n.fillStyle=S.fontColor;const x=n.measureText(S.text).width,B=c.textAlign(S.textAlign||(S.textAlign=s.textAlign)),T=m+h+x;let E=g.x,O=g.y;c.setWidth(this.width),C?w>0&&E+T+u>this.right&&(O=g.y+=v,g.line++,E=g.x=qe(i,this.left+u,this.right-r[g.line])):w>0&&O+v>this.bottom&&(E=g.x=E+o[g.line].width+u,g.line++,O=g.y=qe(i,this.top+_+u,this.bottom-o[g.line].height));const M=c.x(E);if(y(M,O,S),E=z_(B,E+m+h,C?E+T:this.right,e.rtl),k(c.x(E),O,S),C)g.x+=T+u;else if(typeof S.text!="string"){const W=d.lineHeight;g.y+=rf(S,W)+u}else g.y+=v}),Md(this.ctx,e.textDirection)}drawTitle(){const e=this.options,o=e.title,r=Ie(o.font),n=Ye(o.padding);if(!o.display)return;const i=Ko(e.rtl,this.left,this.width),s=this.ctx,l=o.position,c=r.size/2,d=n.top+c;let u,f=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),u=this.top+d,f=qe(e.align,f,this.right-h);else{const m=this.columnSizes.reduce((p,b)=>Math.max(p,b.height),0);u=d+qe(e.align,this.top,this.bottom-m-e.labels.padding-this._computeTitleHeight())}const g=qe(l,f,f+h);s.textAlign=i.textAlign(va(l)),s.textBaseline="middle",s.strokeStyle=o.color,s.fillStyle=o.color,s.font=r.string,Eo(s,o.text,g,u,r)}_computeTitleHeight(){const e=this.options.title,o=Ie(e.font),r=Ye(e.padding);return e.display?o.lineHeight+r.height:0}_getLegendItemAt(e,o){let r,n,i;if(jt(e,this.left,this.right)&&jt(o,this.top,this.bottom)){for(i=this.legendHitBoxes,r=0;r<i.length;++r)if(n=i[r],jt(e,n.left,n.left+n.width)&&jt(o,n.top,n.top+n.height))return this.legendItems[r]}return null}handleEvent(e){const o=this.options;if(!h2(e.type,o))return;const r=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const n=this._hoveredItem,i=c2(n,r);n&&!i&&we(o.onLeave,[e,n,this],this),this._hoveredItem=r,r&&!i&&we(o.onHover,[e,r,this],this)}else r&&we(o.onClick,[e,r,this],this)}}function d2(t,e,o,r,n){const i=u2(r,t,e,o),s=f2(n,r,e.lineHeight);return{itemWidth:i,itemHeight:s}}function u2(t,e,o,r){let n=t.text;return n&&typeof n!="string"&&(n=n.reduce((i,s)=>i.length>s.length?i:s)),e+o.size/2+r.measureText(n).width}function f2(t,e,o){let r=t;return typeof e.text!="string"&&(r=rf(e,o)),r}function rf(t,e){const o=t.text?t.text.length:0;return e*o}function h2(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var nf={id:"legend",_element:of,start(t,e,o){const r=t.legend=new of({ctx:t.ctx,options:o,chart:t});We.configure(t,r,o),We.addBox(t,r)},stop(t){We.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,o){const r=t.legend;We.configure(t,r,o),r.options=o},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,o){const r=e.datasetIndex,n=o.chart;n.isDatasetVisible(r)?(n.hide(r),e.hidden=!0):(n.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:o,pointStyle:r,textAlign:n,color:i,useBorderRadius:s,borderRadius:l}}=t.legend.options;return t._getSortedDatasetMetas().map(c=>{const d=c.controller.getStyle(o?0:void 0),u=Ye(d.borderWidth);return{text:e[c.index].label,fillStyle:d.backgroundColor,fontColor:i,hidden:!c.visible,lineCap:d.borderCapStyle,lineDash:d.borderDash,lineDashOffset:d.borderDashOffset,lineJoin:d.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:d.borderColor,pointStyle:r||d.pointStyle,rotation:d.rotation,textAlign:n||d.textAlign,borderRadius:s&&(l||d.borderRadius),datasetIndex:c.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class Qa extends Dt{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,o){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=o;const n=Re(r.text)?r.text.length:1;this._padding=Ye(r.padding);const i=n*Ie(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:o,left:r,bottom:n,right:i,options:s}=this,l=s.align;let c=0,d,u,f;return this.isHorizontal()?(u=qe(l,r,i),f=o+e,d=i-r):(s.position==="left"?(u=r+e,f=qe(l,n,o),c=Ce*-.5):(u=i-e,f=qe(l,o,n),c=Ce*.5),d=n-o),{titleX:u,titleY:f,maxWidth:d,rotation:c}}draw(){const e=this.ctx,o=this.options;if(!o.display)return;const r=Ie(o.font),i=r.lineHeight/2+this._padding.top,{titleX:s,titleY:l,maxWidth:c,rotation:d}=this._drawArgs(i);Eo(e,o.text,0,0,r,{color:o.color,maxWidth:c,rotation:d,textAlign:va(o.align),textBaseline:"middle",translation:[s,l]})}}function g2(t,e){const o=new Qa({ctx:t.ctx,options:e,chart:t});We.configure(t,o,e),We.addBox(t,o),t.titleBlock=o}var af={id:"title",_element:Qa,start(t,e,o){g2(t,o)},stop(t){const e=t.titleBlock;We.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,o){const r=t.titleBlock;We.configure(t,r,o),r.options=o},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ui=new WeakMap;var sf={id:"subtitle",start(t,e,o){const r=new Qa({ctx:t.ctx,options:o,chart:t});We.configure(t,r,o),We.addBox(t,r),ui.set(t,r)},stop(t){We.removeBox(t,ui.get(t)),ui.delete(t)},beforeUpdate(t,e,o){const r=ui.get(t);We.configure(t,r,o),r.options=o},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const rn={average(t){if(!t.length)return!1;let e,o,r=new Set,n=0,i=0;for(e=0,o=t.length;e<o;++e){const l=t[e].element;if(l&&l.hasValue()){const c=l.tooltipPosition();r.add(c.x),n+=c.y,++i}}return i===0||r.size===0?!1:{x:[...r].reduce((l,c)=>l+c)/r.size,y:n/i}},nearest(t,e){if(!t.length)return!1;let o=e.x,r=e.y,n=Number.POSITIVE_INFINITY,i,s,l;for(i=0,s=t.length;i<s;++i){const c=t[i].element;if(c&&c.hasValue()){const d=c.getCenterPoint(),u=ka(e,d);u<n&&(n=u,l=c)}}if(l){const c=l.tooltipPosition();o=c.x,r=c.y}return{x:o,y:r}}};function Nt(t,e){return e&&(Re(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function qt(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
|
|
180
|
+
*/class L5{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,o,r,n){const i=o.listeners[n],s=o.duration;i.forEach(l=>l({chart:e,initial:o.initial,numSteps:s,currentStep:Math.min(r-o.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=hd.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let o=0;this._charts.forEach((r,n)=>{if(!r.running||!r.items.length)return;const i=r.items;let s=i.length-1,l=!1,c;for(;s>=0;--s)c=i[s],c._active?(c._total>r.duration&&(r.duration=c._total),c.tick(e),l=!0):(i[s]=i[i.length-1],i.pop());l&&(n.draw(),this._notify(n,r,e,"progress")),i.length||(r.running=!1,this._notify(n,r,e,"complete"),r.initial=!1),o+=i.length}),this._lastDate=e,o===0&&(this._running=!1)}_getAnims(e){const o=this._charts;let r=o.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},o.set(e,r)),r}listen(e,o,r){this._getAnims(e).listeners[o].push(r)}add(e,o){!o||!o.length||this._getAnims(e).items.push(...o)}has(e){return this._getAnims(e).items.length>0}start(e){const o=this._charts.get(e);o&&(o.running=!0,o.start=Date.now(),o.duration=o.items.reduce((r,n)=>Math.max(r,n._duration),0),this._refresh())}running(e){if(!this._running)return!1;const o=this._charts.get(e);return!(!o||!o.running||!o.items.length)}stop(e){const o=this._charts.get(e);if(!o||!o.items.length)return;const r=o.items;let n=r.length-1;for(;n>=0;--n)r[n].cancel();o.items=[],this._notify(e,o,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Rt=new L5;const Wd="transparent",z5={boolean(t,e,o){return o>.5?e:t},color(t,e,o){const r=kd(t||Wd),n=r.valid&&kd(e||Wd);return n&&n.valid?n.mix(r,o).hexString():e},number(t,e,o){return t+(e-t)*o}};class Hd{constructor(e,o,r,n){const i=o[r];n=zr([e.to,n,i,e.from]);const s=zr([e.from,i,n]);this._active=!0,this._fn=e.fn||z5[e.type||typeof s],this._easing=Mr[e.easing]||Mr.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=o,this._prop=r,this._from=s,this._to=n,this._promises=void 0}active(){return this._active}update(e,o,r){if(this._active){this._notify(!1);const n=this._target[this._prop],i=r-this._start,s=this._duration-i;this._start=r,this._duration=Math.floor(Math.max(s,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=zr([e.to,o,n,e.from]),this._from=zr([e.from,n,o])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const o=e-this._start,r=this._duration,n=this._prop,i=this._from,s=this._loop,l=this._to;let c;if(this._active=i!==l&&(s||o<r),!this._active){this._target[n]=l,this._notify(!0);return}if(o<0){this._target[n]=i;return}c=o/r%2,c=s&&c>1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[n]=this._fn(i,l,c)}wait(){const e=this._promises||(this._promises=[]);return new Promise((o,r)=>{e.push({res:o,rej:r})})}_notify(e){const o=e?"res":"rej",r=this._promises||[];for(let n=0;n<r.length;n++)r[n][o]()}}class Ta{constructor(e,o){this._chart=e,this._properties=new Map,this.configure(o)}configure(e){if(!de(e))return;const o=Object.keys(Se.animation),r=this._properties;Object.getOwnPropertyNames(e).forEach(n=>{const i=e[n];if(!de(i))return;const s={};for(const l of o)s[l]=i[l];(Re(i.properties)&&i.properties||[n]).forEach(l=>{(l===n||!r.has(l))&&r.set(l,s)})})}_animateOptions(e,o){const r=o.options,n=W5(e,r);if(!n)return[];const i=this._createAnimations(n,r);return r.$shared&&j5(e.options.$animations,r).then(()=>{e.options=r},()=>{}),i}_createAnimations(e,o){const r=this._properties,n=[],i=e.$animations||(e.$animations={}),s=Object.keys(o),l=Date.now();let c;for(c=s.length-1;c>=0;--c){const d=s[c];if(d.charAt(0)==="$")continue;if(d==="options"){n.push(...this._animateOptions(e,o));continue}const u=o[d];let f=i[d];const h=r.get(d);if(f)if(h&&f.active()){f.update(h,u,l);continue}else f.cancel();if(!h||!h.duration){e[d]=u;continue}i[d]=f=new Hd(h,e,d,u),n.push(f)}return n}update(e,o){if(this._properties.size===0){Object.assign(e,o);return}const r=this._createAnimations(e,o);if(r.length)return Rt.add(this._chart,r),!0}}function j5(t,e){const o=[],r=Object.keys(e);for(let n=0;n<r.length;n++){const i=t[r[n]];i&&i.active()&&o.push(i.wait())}return Promise.all(o)}function W5(t,e){if(!e)return;let o=t.options;if(!o){t.options=e;return}return o.$shared&&(t.options=o=Object.assign({},o,{$shared:!1,$animations:{}})),o}function Ud(t,e){const o=t&&t.options||{},r=o.reverse,n=o.min===void 0?e:0,i=o.max===void 0?e:0;return{start:r?i:n,end:r?n:i}}function H5(t,e,o){if(o===!1)return!1;const r=Ud(t,o),n=Ud(e,o);return{top:n.end,right:r.end,bottom:n.start,left:r.start}}function U5(t){let e,o,r,n;return de(t)?(e=t.top,o=t.right,r=t.bottom,n=t.left):e=o=r=n=t,{top:e,right:o,bottom:r,left:n,disabled:t===!1}}function qd(t,e){const o=[],r=t._getSortedDatasetMetas(e);let n,i;for(n=0,i=r.length;n<i;++n)o.push(r[n].index);return o}function Yd(t,e,o,r={}){const n=t.keys,i=r.mode==="single";let s,l,c,d;if(e===null)return;let u=!1;for(s=0,l=n.length;s<l;++s){if(c=+n[s],c===o){if(u=!0,r.all)continue;break}d=t.values[c],$e(d)&&(i||e===0||Et(e)===Et(d))&&(e+=d)}return!u&&!r.all?0:e}function q5(t,e){const{iScale:o,vScale:r}=e,n=o.axis==="x"?"x":"y",i=r.axis==="x"?"x":"y",s=Object.keys(t),l=new Array(s.length);let c,d,u;for(c=0,d=s.length;c<d;++c)u=s[c],l[c]={[n]:u,[i]:t[u]};return l}function Pa(t,e){const o=t&&t.options.stacked;return o||o===void 0&&e.stack!==void 0}function Y5(t,e,o){return`${t.id}.${e.id}.${o.stack||o.type}`}function X5(t){const{min:e,max:o,minDefined:r,maxDefined:n}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:n?o:Number.POSITIVE_INFINITY}}function K5(t,e,o){const r=t[e]||(t[e]={});return r[o]||(r[o]={})}function Xd(t,e,o,r){for(const n of e.getMatchingVisibleMetas(r).reverse()){const i=t[n.index];if(o&&i>0||!o&&i<0)return n.index}return null}function Kd(t,e){const{chart:o,_cachedMeta:r}=t,n=o._stacks||(o._stacks={}),{iScale:i,vScale:s,index:l}=r,c=i.axis,d=s.axis,u=Y5(i,s,r),f=e.length;let h;for(let g=0;g<f;++g){const m=e[g],{[c]:p,[d]:b}=m,y=m._stacks||(m._stacks={});h=y[d]=K5(n,u,p),h[l]=b,h._top=Xd(h,s,!0,r.type),h._bottom=Xd(h,s,!1,r.type);const k=h._visualValues||(h._visualValues={});k[l]=b}}function $a(t,e){const o=t.scales;return Object.keys(o).filter(r=>o[r].axis===e).shift()}function G5(t,e){return lo(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function J5(t,e,o){return lo(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:o,index:e,mode:"default",type:"data"})}function jr(t,e){const o=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const n of e){const i=n._stacks;if(!i||i[r]===void 0||i[r][o]===void 0)return;delete i[r][o],i[r]._visualValues!==void 0&&i[r]._visualValues[o]!==void 0&&delete i[r]._visualValues[o]}}}const Aa=t=>t==="reset"||t==="none",Gd=(t,e)=>e?t:Object.assign({},t),Q5=(t,e,o)=>t&&!e.hidden&&e._stacked&&{keys:qd(o,!0),values:null};class ut{constructor(e,o){this.chart=e,this._ctx=e.ctx,this.index=o,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Pa(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&jr(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,o=this._cachedMeta,r=this.getDataset(),n=(f,h,g,m)=>f==="x"?h:f==="r"?m:g,i=o.xAxisID=se(r.xAxisID,$a(e,"x")),s=o.yAxisID=se(r.yAxisID,$a(e,"y")),l=o.rAxisID=se(r.rAxisID,$a(e,"r")),c=o.indexAxis,d=o.iAxisID=n(c,i,s,l),u=o.vAxisID=n(c,s,i,l);o.xScale=this.getScaleForId(i),o.yScale=this.getScaleForId(s),o.rScale=this.getScaleForId(l),o.iScale=this.getScaleForId(d),o.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const o=this._cachedMeta;return e===o.iScale?o.vScale:o.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&ud(this._data,this),e._stacked&&jr(e)}_dataCheck(){const e=this.getDataset(),o=e.data||(e.data=[]),r=this._data;if(de(o)){const n=this._cachedMeta;this._data=q5(o,n)}else if(r!==o){if(r){ud(r,this);const n=this._cachedMeta;jr(n),n._parsed=[]}o&&Object.isExtensible(o)&&F_(o,this),this._syncList=[],this._data=o}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const o=this._cachedMeta,r=this.getDataset();let n=!1;this._dataCheck();const i=o._stacked;o._stacked=Pa(o.vScale,o),o.stack!==r.stack&&(n=!0,jr(o),o.stack=r.stack),this._resyncElements(e),(n||i!==o._stacked)&&(Kd(this,o._parsed),o._stacked=Pa(o.vScale,o))}configure(){const e=this.chart.config,o=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),o,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,o){const{_cachedMeta:r,_data:n}=this,{iScale:i,_stacked:s}=r,l=i.axis;let c=e===0&&o===n.length?!0:r._sorted,d=e>0&&r._parsed[e-1],u,f,h;if(this._parsing===!1)r._parsed=n,r._sorted=!0,h=n;else{Re(n[e])?h=this.parseArrayData(r,n,e,o):de(n[e])?h=this.parseObjectData(r,n,e,o):h=this.parsePrimitiveData(r,n,e,o);const g=()=>f[l]===null||d&&f[l]<d[l];for(u=0;u<o;++u)r._parsed[u+e]=f=h[u],c&&(g()&&(c=!1),d=f);r._sorted=c}s&&Kd(this,h)}parsePrimitiveData(e,o,r,n){const{iScale:i,vScale:s}=e,l=i.axis,c=s.axis,d=i.getLabels(),u=i===s,f=new Array(n);let h,g,m;for(h=0,g=n;h<g;++h)m=h+r,f[h]={[l]:u||i.parse(d[m],m),[c]:s.parse(o[m],m)};return f}parseArrayData(e,o,r,n){const{xScale:i,yScale:s}=e,l=new Array(n);let c,d,u,f;for(c=0,d=n;c<d;++c)u=c+r,f=o[u],l[c]={x:i.parse(f[0],u),y:s.parse(f[1],u)};return l}parseObjectData(e,o,r,n){const{xScale:i,yScale:s}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,d=new Array(n);let u,f,h,g;for(u=0,f=n;u<f;++u)h=u+r,g=o[h],d[u]={x:i.parse(io(g,l),h),y:s.parse(io(g,c),h)};return d}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,o,r){const n=this.chart,i=this._cachedMeta,s=o[e.axis],l={keys:qd(n,!0),values:o._stacks[e.axis]._visualValues};return Yd(l,s,i.index,{mode:r})}updateRangeFromParsed(e,o,r,n){const i=r[o.axis];let s=i===null?NaN:i;const l=n&&r._stacks[o.axis];n&&l&&(n.values=l,s=Yd(n,i,this._cachedMeta.index)),e.min=Math.min(e.min,s),e.max=Math.max(e.max,s)}getMinMax(e,o){const r=this._cachedMeta,n=r._parsed,i=r._sorted&&e===r.iScale,s=n.length,l=this._getOtherScale(e),c=Q5(o,r,this.chart),d={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:f}=X5(l);let h,g;function m(){g=n[h];const p=g[l.axis];return!$e(g[e.axis])||u>p||f<p}for(h=0;h<s&&!(!m()&&(this.updateRangeFromParsed(d,e,g,c),i));++h);if(i){for(h=s-1;h>=0;--h)if(!m()){this.updateRangeFromParsed(d,e,g,c);break}}return d}getAllParsedValues(e){const o=this._cachedMeta._parsed,r=[];let n,i,s;for(n=0,i=o.length;n<i;++n)s=o[n][e.axis],$e(s)&&r.push(s);return r}getMaxOverflow(){return!1}getLabelAndValue(e){const o=this._cachedMeta,r=o.iScale,n=o.vScale,i=this.getParsed(e);return{label:r?""+r.getLabelForValue(i[r.axis]):"",value:n?""+n.getLabelForValue(i[n.axis]):""}}_update(e){const o=this._cachedMeta;this.update(e||"default"),o._clip=U5(se(this.options.clip,H5(o.xScale,o.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,o=this.chart,r=this._cachedMeta,n=r.data||[],i=o.chartArea,s=[],l=this._drawStart||0,c=this._drawCount||n.length-l,d=this.options.drawActiveElementsOnTop;let u;for(r.dataset&&r.dataset.draw(e,i,l,c),u=l;u<l+c;++u){const f=n[u];f.hidden||(f.active&&d?s.push(f):f.draw(e,i))}for(u=0;u<s.length;++u)s[u].draw(e,i)}getStyle(e,o){const r=o?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(e||0,r)}getContext(e,o,r){const n=this.getDataset();let i;if(e>=0&&e<this._cachedMeta.data.length){const s=this._cachedMeta.data[e];i=s.$context||(s.$context=J5(this.getContext(),e,s)),i.parsed=this.getParsed(e),i.raw=n.data[e],i.index=i.dataIndex=e}else i=this.$context||(this.$context=G5(this.chart.getContext(),this.index)),i.dataset=n,i.index=i.datasetIndex=this.index;return i.active=!!o,i.mode=r,i}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,o){return this._resolveElementOptions(this.dataElementType.id,o,e)}_resolveElementOptions(e,o="default",r){const n=o==="active",i=this._cachedDataOpts,s=e+"-"+o,l=i[s],c=this.enableOptionSharing&&Pr(r);if(l)return Gd(l,c);const d=this.chart.config,u=d.datasetElementScopeKeys(this._type,e),f=n?[`${e}Hover`,"hover",e,""]:[e,""],h=d.getOptionScopes(this.getDataset(),u),g=Object.keys(Se.elements[e]),m=()=>this.getContext(r,n,o),p=d.resolveNamedOptions(h,g,m,f);return p.$shared&&(p.$shared=c,i[s]=Object.freeze(Gd(p,c))),p}_resolveAnimations(e,o,r){const n=this.chart,i=this._cachedDataOpts,s=`animation-${o}`,l=i[s];if(l)return l;let c;if(n.options.animation!==!1){const u=this.chart.config,f=u.datasetAnimationScopeKeys(this._type,o),h=u.getOptionScopes(this.getDataset(),f);c=u.createResolver(h,this.getContext(e,r,o))}const d=new Ta(n,c&&c.animations);return c&&c._cacheable&&(i[s]=Object.freeze(d)),d}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,o){return!o||Aa(e)||this.chart._animationsDisabled}_getSharedOptions(e,o){const r=this.resolveDataElementOptions(e,o),n=this._sharedOptions,i=this.getSharedOptions(r),s=this.includeOptions(o,i)||i!==n;return this.updateSharedOptions(i,o,r),{sharedOptions:i,includeOptions:s}}updateElement(e,o,r,n){Aa(n)?Object.assign(e,r):this._resolveAnimations(o,n).update(e,r)}updateSharedOptions(e,o,r){e&&!Aa(o)&&this._resolveAnimations(void 0,o).update(e,r)}_setStyle(e,o,r,n){e.active=n;const i=this.getStyle(o,n);this._resolveAnimations(o,r,n).update(e,{options:!n&&this.getSharedOptions(i)||i})}removeHoverStyle(e,o,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,o,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const o=this._data,r=this._cachedMeta.data;for(const[l,c,d]of this._syncList)this[l](c,d);this._syncList=[];const n=r.length,i=o.length,s=Math.min(i,n);s&&this.parse(0,s),i>n?this._insertElements(n,i-n,e):i<n&&this._removeElements(i,n-i)}_insertElements(e,o,r=!0){const n=this._cachedMeta,i=n.data,s=e+o;let l;const c=d=>{for(d.length+=o,l=d.length-1;l>=s;l--)d[l]=d[l-o]};for(c(i),l=e;l<s;++l)i[l]=new this.dataElementType;this._parsing&&c(n._parsed),this.parse(e,o),r&&this.updateElements(i,e,o,"reset")}updateElements(e,o,r,n){}_removeElements(e,o){const r=this._cachedMeta;if(this._parsing){const n=r._parsed.splice(e,o);r._stacked&&jr(r,n)}r.data.splice(e,o)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[o,r,n]=e;this[o](r,n)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,o){o&&this._sync(["_removeElements",e,o]);const r=arguments.length-2;r&&this._sync(["_insertElements",e,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}j(ut,"defaults",{}),j(ut,"datasetElementType",null),j(ut,"dataElementType",null);function Z5(t,e){if(!t._cache.$bar){const o=t.getMatchingVisibleMetas(e);let r=[];for(let n=0,i=o.length;n<i;n++)r=r.concat(o[n].controller.getAllParsedValues(t));t._cache.$bar=fd(r.sort((n,i)=>n-i))}return t._cache.$bar}function eS(t){const e=t.iScale,o=Z5(e,t.type);let r=e._length,n,i,s,l;const c=()=>{s===32767||s===-32768||(Pr(l)&&(r=Math.min(r,Math.abs(s-l)||r)),l=s)};for(n=0,i=o.length;n<i;++n)s=e.getPixelForValue(o[n]),c();for(l=void 0,n=0,i=e.ticks.length;n<i;++n)s=e.getPixelForTick(n),c();return r}function tS(t,e,o,r){const n=o.barThickness;let i,s;return fe(n)?(i=e.min*o.categoryPercentage,s=o.barPercentage):(i=n*r,s=1),{chunk:i/r,ratio:s,start:e.pixels[t]-i/2}}function oS(t,e,o,r){const n=e.pixels,i=n[t];let s=t>0?n[t-1]:null,l=t<n.length-1?n[t+1]:null;const c=o.categoryPercentage;s===null&&(s=i-(l===null?e.end-e.start:l-i)),l===null&&(l=i+i-s);const d=i-(i-Math.min(s,l))/2*c;return{chunk:Math.abs(l-s)/2*c/r,ratio:o.barPercentage,start:d}}function rS(t,e,o,r){const n=o.parse(t[0],r),i=o.parse(t[1],r),s=Math.min(n,i),l=Math.max(n,i);let c=s,d=l;Math.abs(s)>Math.abs(l)&&(c=l,d=s),e[o.axis]=d,e._custom={barStart:c,barEnd:d,start:n,end:i,min:s,max:l}}function Jd(t,e,o,r){return Re(t)?rS(t,e,o,r):e[o.axis]=o.parse(t,r),e}function Qd(t,e,o,r){const n=t.iScale,i=t.vScale,s=n.getLabels(),l=n===i,c=[];let d,u,f,h;for(d=o,u=o+r;d<u;++d)h=e[d],f={},f[n.axis]=l||n.parse(s[d],d),c.push(Jd(h,f,i,d));return c}function Ma(t){return t&&t.barStart!==void 0&&t.barEnd!==void 0}function nS(t,e,o){return t!==0?Et(t):(e.isHorizontal()?1:-1)*(e.min>=o?1:-1)}function iS(t){let e,o,r,n,i;return t.horizontal?(e=t.base>t.x,o="left",r="right"):(e=t.base<t.y,o="bottom",r="top"),e?(n="end",i="start"):(n="start",i="end"),{start:o,end:r,reverse:e,top:n,bottom:i}}function aS(t,e,o,r){let n=e.borderSkipped;const i={};if(!n){t.borderSkipped=i;return}if(n===!0){t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:s,end:l,reverse:c,top:d,bottom:u}=iS(t);n==="middle"&&o&&(t.enableBorderRadius=!0,(o._top||0)===r?n=d:(o._bottom||0)===r?n=u:(i[Zd(u,s,l,c)]=!0,n=d)),i[Zd(n,s,l,c)]=!0,t.borderSkipped=i}function Zd(t,e,o,r){return r?(t=sS(t,e,o),t=eu(t,o,e)):t=eu(t,e,o),t}function sS(t,e,o){return t===e?o:t===o?e:t}function eu(t,e,o){return t==="start"?e:t==="end"?o:t}function lS(t,{inflateAmount:e},o){t.inflateAmount=e==="auto"?o===1?.33:0:e}class Wr extends ut{parsePrimitiveData(e,o,r,n){return Qd(e,o,r,n)}parseArrayData(e,o,r,n){return Qd(e,o,r,n)}parseObjectData(e,o,r,n){const{iScale:i,vScale:s}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,d=i.axis==="x"?l:c,u=s.axis==="x"?l:c,f=[];let h,g,m,p;for(h=r,g=r+n;h<g;++h)p=o[h],m={},m[i.axis]=i.parse(io(p,d),h),f.push(Jd(io(p,u),m,s,h));return f}updateRangeFromParsed(e,o,r,n){super.updateRangeFromParsed(e,o,r,n);const i=r._custom;i&&o===this._cachedMeta.vScale&&(e.min=Math.min(e.min,i.min),e.max=Math.max(e.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const o=this._cachedMeta,{iScale:r,vScale:n}=o,i=this.getParsed(e),s=i._custom,l=Ma(s)?"["+s.start+", "+s.end+"]":""+n.getLabelForValue(i[n.axis]);return{label:""+r.getLabelForValue(i[r.axis]),value:l}}initialize(){this.enableOptionSharing=!0,super.initialize();const e=this._cachedMeta;e.stack=this.getDataset().stack}update(e){const o=this._cachedMeta;this.updateElements(o.data,0,o.data.length,e)}updateElements(e,o,r,n){const i=n==="reset",{index:s,_cachedMeta:{vScale:l}}=this,c=l.getBasePixel(),d=l.isHorizontal(),u=this._getRuler(),{sharedOptions:f,includeOptions:h}=this._getSharedOptions(o,n);for(let g=o;g<o+r;g++){const m=this.getParsed(g),p=i||fe(m[l.axis])?{base:c,head:c}:this._calculateBarValuePixels(g),b=this._calculateBarIndexPixels(g,u),y=(m._stacks||{})[l.axis],k={horizontal:d,base:p.base,enableBorderRadius:!y||Ma(m._custom)||s===y._top||s===y._bottom,x:d?p.head:b.center,y:d?b.center:p.head,height:d?b.size:Math.abs(p.size),width:d?Math.abs(p.size):b.size};h&&(k.options=f||this.resolveDataElementOptions(g,e[g].active?"active":n));const C=k.options||e[g].options;aS(k,C,y,s),lS(k,C,u.ratio),this.updateElement(e[g],g,k,n)}}_getStacks(e,o){const{iScale:r}=this._cachedMeta,n=r.getMatchingVisibleMetas(this._type).filter(u=>u.controller.options.grouped),i=r.options.stacked,s=[],l=this._cachedMeta.controller.getParsed(o),c=l&&l[r.axis],d=u=>{const f=u._parsed.find(g=>g[r.axis]===c),h=f&&f[u.vScale.axis];if(fe(h)||isNaN(h))return!0};for(const u of n)if(!(o!==void 0&&d(u))&&((i===!1||s.indexOf(u.stack)===-1||i===void 0&&u.stack===void 0)&&s.push(u.stack),u.index===e))break;return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,o,r){const n=this._getStacks(e,r),i=o!==void 0?n.indexOf(o):-1;return i===-1?n.length-1:i}_getRuler(){const e=this.options,o=this._cachedMeta,r=o.iScale,n=[];let i,s;for(i=0,s=o.data.length;i<s;++i)n.push(r.getPixelForValue(this.getParsed(i)[r.axis],i));const l=e.barThickness;return{min:l||eS(o),pixels:n,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:e.grouped,ratio:l?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:o,_stacked:r,index:n},options:{base:i,minBarLength:s}}=this,l=i||0,c=this.getParsed(e),d=c._custom,u=Ma(d);let f=c[o.axis],h=0,g=r?this.applyStack(o,c,r):f,m,p;g!==f&&(h=g-f,g=f),u&&(f=d.barStart,g=d.barEnd-d.barStart,f!==0&&Et(f)!==Et(d.barEnd)&&(h=0),h+=f);const b=!fe(i)&&!u?i:h;let y=o.getPixelForValue(b);if(this.chart.getDataVisibility(e)?m=o.getPixelForValue(h+g):m=y,p=m-y,Math.abs(p)<s){p=nS(p,o,l)*s,f===l&&(y-=p/2);const k=o.getPixelForDecimal(0),C=o.getPixelForDecimal(1),_=Math.min(k,C),v=Math.max(k,C);y=Math.max(Math.min(y,v),_),m=y+p,r&&!u&&(c._stacks[o.axis]._visualValues[n]=o.getValueForPixel(m)-o.getValueForPixel(y))}if(y===o.getPixelForValue(l)){const k=Et(p)*o.getLineWidthForValue(l)/2;y+=k,p-=k}return{size:p,base:y,head:m,center:m+p/2}}_calculateBarIndexPixels(e,o){const r=o.scale,n=this.options,i=n.skipNull,s=se(n.maxBarThickness,1/0);let l,c;if(o.grouped){const d=i?this._getStackCount(e):o.stackCount,u=n.barThickness==="flex"?oS(e,o,n,d):tS(e,o,n,d),f=this._getStackIndex(this.index,this._cachedMeta.stack,i?e:void 0);l=u.start+u.chunk*f+u.chunk/2,c=Math.min(s,u.chunk*u.ratio)}else l=r.getPixelForValue(this.getParsed(e)[r.axis],e),c=Math.min(s,o.min*o.ratio);return{base:l-c/2,head:l+c/2,center:l,size:c}}draw(){const e=this._cachedMeta,o=e.vScale,r=e.data,n=r.length;let i=0;for(;i<n;++i)this.getParsed(i)[o.axis]!==null&&!r[i].hidden&&r[i].draw(this._ctx)}}j(Wr,"id","bar"),j(Wr,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),j(Wr,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class Hr extends ut{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,o,r,n){const i=super.parsePrimitiveData(e,o,r,n);for(let s=0;s<i.length;s++)i[s]._custom=this.resolveDataElementOptions(s+r).radius;return i}parseArrayData(e,o,r,n){const i=super.parseArrayData(e,o,r,n);for(let s=0;s<i.length;s++){const l=o[r+s];i[s]._custom=se(l[2],this.resolveDataElementOptions(s+r).radius)}return i}parseObjectData(e,o,r,n){const i=super.parseObjectData(e,o,r,n);for(let s=0;s<i.length;s++){const l=o[r+s];i[s]._custom=se(l&&l.r&&+l.r,this.resolveDataElementOptions(s+r).radius)}return i}getMaxOverflow(){const e=this._cachedMeta.data;let o=0;for(let r=e.length-1;r>=0;--r)o=Math.max(o,e[r].size(this.resolveDataElementOptions(r))/2);return o>0&&o}getLabelAndValue(e){const o=this._cachedMeta,r=this.chart.data.labels||[],{xScale:n,yScale:i}=o,s=this.getParsed(e),l=n.getLabelForValue(s.x),c=i.getLabelForValue(s.y),d=s._custom;return{label:r[e]||"",value:"("+l+", "+c+(d?", "+d:"")+")"}}update(e){const o=this._cachedMeta.data;this.updateElements(o,0,o.length,e)}updateElements(e,o,r,n){const i=n==="reset",{iScale:s,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(o,n),u=s.axis,f=l.axis;for(let h=o;h<o+r;h++){const g=e[h],m=!i&&this.getParsed(h),p={},b=p[u]=i?s.getPixelForDecimal(.5):s.getPixelForValue(m[u]),y=p[f]=i?l.getBasePixel():l.getPixelForValue(m[f]);p.skip=isNaN(b)||isNaN(y),d&&(p.options=c||this.resolveDataElementOptions(h,g.active?"active":n),i&&(p.options.radius=0)),this.updateElement(g,h,p,n)}}resolveDataElementOptions(e,o){const r=this.getParsed(e);let n=super.resolveDataElementOptions(e,o);n.$shared&&(n=Object.assign({},n,{$shared:!1}));const i=n.radius;return o!=="active"&&(n.radius=0),n.radius+=se(r&&r._custom,i),n}}j(Hr,"id","bubble"),j(Hr,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),j(Hr,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function cS(t,e,o){let r=1,n=1,i=0,s=0;if(e<_e){const l=t,c=l+e,d=Math.cos(l),u=Math.sin(l),f=Math.cos(c),h=Math.sin(c),g=(C,_,v)=>Ar(C,l,c,!0)?1:Math.max(_,_*o,v,v*o),m=(C,_,v)=>Ar(C,l,c,!0)?-1:Math.min(_,_*o,v,v*o),p=g(0,d,f),b=g(Me,u,h),y=m(Ce,d,f),k=m(Ce+Me,u,h);r=(p-y)/2,n=(b-k)/2,i=-(p+y)/2,s=-(b+k)/2}return{ratioX:r,ratioY:n,offsetX:i,offsetY:s}}class co extends ut{constructor(e,o){super(e,o),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,o){const r=this.getDataset().data,n=this._cachedMeta;if(this._parsing===!1)n._parsed=r;else{let i=c=>+r[c];if(de(r[e])){const{key:c="value"}=this._parsing;i=d=>+io(r[d],c)}let s,l;for(s=e,l=e+o;s<l;++s)n._parsed[s]=i(s)}}_getRotation(){return kt(this.options.rotation-90)}_getCircumference(){return kt(this.options.circumference)}_getRotationExtents(){let e=_e,o=-_e;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const n=this.chart.getDatasetMeta(r).controller,i=n._getRotation(),s=n._getCircumference();e=Math.min(e,i),o=Math.max(o,i+s)}return{rotation:e,circumference:o-e}}update(e){const o=this.chart,{chartArea:r}=o,n=this._cachedMeta,i=n.data,s=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,l=Math.max((Math.min(r.width,r.height)-s)/2,0),c=Math.min(__(this.options.cutout,l),1),d=this._getRingWeight(this.index),{circumference:u,rotation:f}=this._getRotationExtents(),{ratioX:h,ratioY:g,offsetX:m,offsetY:p}=cS(f,u,c),b=(r.width-s)/h,y=(r.height-s)/g,k=Math.max(Math.min(b,y)/2,0),C=td(this.options.radius,k),_=Math.max(C*c,0),v=(C-_)/this._getVisibleDatasetWeightTotal();this.offsetX=m*C,this.offsetY=p*C,n.total=this.calculateTotal(),this.outerRadius=C-v*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-v*d,0),this.updateElements(i,0,i.length,e)}_circumference(e,o){const r=this.options,n=this._cachedMeta,i=this._getCircumference();return o&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||n._parsed[e]===null||n.data[e].hidden?0:this.calculateCircumference(n._parsed[e]*i/_e)}updateElements(e,o,r,n){const i=n==="reset",s=this.chart,l=s.chartArea,d=s.options.animation,u=(l.left+l.right)/2,f=(l.top+l.bottom)/2,h=i&&d.animateScale,g=h?0:this.innerRadius,m=h?0:this.outerRadius,{sharedOptions:p,includeOptions:b}=this._getSharedOptions(o,n);let y=this._getRotation(),k;for(k=0;k<o;++k)y+=this._circumference(k,i);for(k=o;k<o+r;++k){const C=this._circumference(k,i),_=e[k],v={x:u+this.offsetX,y:f+this.offsetY,startAngle:y,endAngle:y+C,circumference:C,outerRadius:m,innerRadius:g};b&&(v.options=p||this.resolveDataElementOptions(k,_.active?"active":n)),y+=C,this.updateElement(_,k,v,n)}}calculateTotal(){const e=this._cachedMeta,o=e.data;let r=0,n;for(n=0;n<o.length;n++){const i=e._parsed[n];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(n)&&!o[n].hidden&&(r+=Math.abs(i))}return r}calculateCircumference(e){const o=this._cachedMeta.total;return o>0&&!isNaN(e)?_e*(Math.abs(e)/o):0}getLabelAndValue(e){const o=this._cachedMeta,r=this.chart,n=r.data.labels||[],i=Vr(o._parsed[e],r.options.locale);return{label:n[e]||"",value:i}}getMaxBorderWidth(e){let o=0;const r=this.chart;let n,i,s,l,c;if(!e){for(n=0,i=r.data.datasets.length;n<i;++n)if(r.isDatasetVisible(n)){s=r.getDatasetMeta(n),e=s.data,l=s.controller;break}}if(!e)return 0;for(n=0,i=e.length;n<i;++n)c=l.resolveDataElementOptions(n),c.borderAlign!=="inner"&&(o=Math.max(o,c.borderWidth||0,c.hoverBorderWidth||0));return o}getMaxOffset(e){let o=0;for(let r=0,n=e.length;r<n;++r){const i=this.resolveDataElementOptions(r);o=Math.max(o,i.offset||0,i.hoverOffset||0)}return o}_getRingWeightOffset(e){let o=0;for(let r=0;r<e;++r)this.chart.isDatasetVisible(r)&&(o+=this._getRingWeight(r));return o}_getRingWeight(e){return Math.max(se(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}j(co,"id","doughnut"),j(co,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),j(co,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),j(co,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const o=e.data;if(o.labels.length&&o.datasets.length){const{labels:{pointStyle:r,color:n}}=e.legend.options;return o.labels.map((i,s)=>{const c=e.getDatasetMeta(0).controller.getStyle(s);return{text:i,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:n,lineWidth:c.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,o,r){r.chart.toggleDataVisibility(o.index),r.chart.update()}}}});class Ur extends ut{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const o=this._cachedMeta,{dataset:r,data:n=[],_dataset:i}=o,s=this.chart._animationsDisabled;let{start:l,count:c}=md(o,n,s);this._drawStart=l,this._drawCount=c,pd(o)&&(l=0,c=n.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!i._decimated,r.points=n;const d=this.resolveDatasetElementOptions(e);this.options.showLine||(d.borderWidth=0),d.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:d},e),this.updateElements(n,l,c,e)}updateElements(e,o,r,n){const i=n==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,{sharedOptions:u,includeOptions:f}=this._getSharedOptions(o,n),h=s.axis,g=l.axis,{spanGaps:m,segment:p}=this.options,b=qo(m)?m:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||i||n==="none",k=o+r,C=e.length;let _=o>0&&this.getParsed(o-1);for(let v=0;v<C;++v){const S=e[v],w=y?S:{};if(v<o||v>=k){w.skip=!0;continue}const x=this.getParsed(v),B=fe(x[g]),T=w[h]=s.getPixelForValue(x[h],v),E=w[g]=i||B?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,x,c):x[g],v);w.skip=isNaN(T)||isNaN(E)||B,w.stop=v>0&&Math.abs(x[h]-_[h])>b,p&&(w.parsed=x,w.raw=d.data[v]),f&&(w.options=u||this.resolveDataElementOptions(v,S.active?"active":n)),y||this.updateElement(S,v,w,n),_=x}}getMaxOverflow(){const e=this._cachedMeta,o=e.dataset,r=o.options&&o.options.borderWidth||0,n=e.data||[];if(!n.length)return r;const i=n[0].size(this.resolveDataElementOptions(0)),s=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(r,i,s)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}j(Ur,"id","line"),j(Ur,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),j(Ur,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Go extends ut{constructor(e,o){super(e,o),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const o=this._cachedMeta,r=this.chart,n=r.data.labels||[],i=Vr(o._parsed[e].r,r.options.locale);return{label:n[e]||"",value:i}}parseObjectData(e,o,r,n){return Nd.bind(this)(e,o,r,n)}update(e){const o=this._cachedMeta.data;this._updateRadius(),this.updateElements(o,0,o.length,e)}getMinMax(){const e=this._cachedMeta,o={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((r,n)=>{const i=this.getParsed(n).r;!isNaN(i)&&this.chart.getDataVisibility(n)&&(i<o.min&&(o.min=i),i>o.max&&(o.max=i))}),o}_updateRadius(){const e=this.chart,o=e.chartArea,r=e.options,n=Math.min(o.right-o.left,o.bottom-o.top),i=Math.max(n/2,0),s=Math.max(r.cutoutPercentage?i/100*r.cutoutPercentage:1,0),l=(i-s)/e.getVisibleDatasetCount();this.outerRadius=i-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(e,o,r,n){const i=n==="reset",s=this.chart,c=s.options.animation,d=this._cachedMeta.rScale,u=d.xCenter,f=d.yCenter,h=d.getIndexAngle(0)-.5*Ce;let g=h,m;const p=360/this.countVisibleElements();for(m=0;m<o;++m)g+=this._computeAngle(m,n,p);for(m=o;m<o+r;m++){const b=e[m];let y=g,k=g+this._computeAngle(m,n,p),C=s.getDataVisibility(m)?d.getDistanceFromCenterForValue(this.getParsed(m).r):0;g=k,i&&(c.animateScale&&(C=0),c.animateRotate&&(y=k=h));const _={x:u,y:f,innerRadius:0,outerRadius:C,startAngle:y,endAngle:k,options:this.resolveDataElementOptions(m,b.active?"active":n)};this.updateElement(b,m,_,n)}}countVisibleElements(){const e=this._cachedMeta;let o=0;return e.data.forEach((r,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&o++}),o}_computeAngle(e,o,r){return this.chart.getDataVisibility(e)?kt(this.resolveDataElementOptions(e,o).angle||r):0}}j(Go,"id","polarArea"),j(Go,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),j(Go,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const o=e.data;if(o.labels.length&&o.datasets.length){const{labels:{pointStyle:r,color:n}}=e.legend.options;return o.labels.map((i,s)=>{const c=e.getDatasetMeta(0).controller.getStyle(s);return{text:i,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:n,lineWidth:c.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,o,r){r.chart.toggleDataVisibility(o.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class ti extends co{}j(ti,"id","pie"),j(ti,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class qr extends ut{getLabelAndValue(e){const o=this._cachedMeta.vScale,r=this.getParsed(e);return{label:o.getLabels()[e],value:""+o.getLabelForValue(r[o.axis])}}parseObjectData(e,o,r,n){return Nd.bind(this)(e,o,r,n)}update(e){const o=this._cachedMeta,r=o.dataset,n=o.data||[],i=o.iScale.getLabels();if(r.points=n,e!=="resize"){const s=this.resolveDatasetElementOptions(e);this.options.showLine||(s.borderWidth=0);const l={_loop:!0,_fullLoop:i.length===n.length,options:s};this.updateElement(r,void 0,l,e)}this.updateElements(n,0,n.length,e)}updateElements(e,o,r,n){const i=this._cachedMeta.rScale,s=n==="reset";for(let l=o;l<o+r;l++){const c=e[l],d=this.resolveDataElementOptions(l,c.active?"active":n),u=i.getPointPositionForValue(l,this.getParsed(l).r),f=s?i.xCenter:u.x,h=s?i.yCenter:u.y,g={x:f,y:h,angle:u.angle,skip:isNaN(f)||isNaN(h),options:d};this.updateElement(c,l,g,n)}}}j(qr,"id","radar"),j(qr,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),j(qr,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class Yr extends ut{getLabelAndValue(e){const o=this._cachedMeta,r=this.chart.data.labels||[],{xScale:n,yScale:i}=o,s=this.getParsed(e),l=n.getLabelForValue(s.x),c=i.getLabelForValue(s.y);return{label:r[e]||"",value:"("+l+", "+c+")"}}update(e){const o=this._cachedMeta,{data:r=[]}=o,n=this.chart._animationsDisabled;let{start:i,count:s}=md(o,r,n);if(this._drawStart=i,this._drawCount=s,pd(o)&&(i=0,s=r.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:l,_dataset:c}=o;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=r;const d=this.resolveDatasetElementOptions(e);d.segment=this.options.segment,this.updateElement(l,void 0,{animated:!n,options:d},e)}else this.datasetElementType&&(delete o.dataset,this.datasetElementType=!1);this.updateElements(r,i,s,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,o,r,n){const i=n==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,u=this.resolveDataElementOptions(o,n),f=this.getSharedOptions(u),h=this.includeOptions(n,f),g=s.axis,m=l.axis,{spanGaps:p,segment:b}=this.options,y=qo(p)?p:Number.POSITIVE_INFINITY,k=this.chart._animationsDisabled||i||n==="none";let C=o>0&&this.getParsed(o-1);for(let _=o;_<o+r;++_){const v=e[_],S=this.getParsed(_),w=k?v:{},x=fe(S[m]),B=w[g]=s.getPixelForValue(S[g],_),T=w[m]=i||x?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,S,c):S[m],_);w.skip=isNaN(B)||isNaN(T)||x,w.stop=_>0&&Math.abs(S[g]-C[g])>y,b&&(w.parsed=S,w.raw=d.data[_]),h&&(w.options=f||this.resolveDataElementOptions(_,v.active?"active":n)),k||this.updateElement(v,_,w,n),C=S}this.updateSharedOptions(f,n,u)}getMaxOverflow(){const e=this._cachedMeta,o=e.data||[];if(!this.options.showLine){let l=0;for(let c=o.length-1;c>=0;--c)l=Math.max(l,o[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}const r=e.dataset,n=r.options&&r.options.borderWidth||0;if(!o.length)return n;const i=o[0].size(this.resolveDataElementOptions(0)),s=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(n,i,s)/2}}j(Yr,"id","scatter"),j(Yr,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),j(Yr,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var tu=Object.freeze({__proto__:null,BarController:Wr,BubbleController:Hr,DoughnutController:co,LineController:Ur,PieController:ti,PolarAreaController:Go,RadarController:qr,ScatterController:Yr});function To(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Va{constructor(e){j(this,"options");this.options=e||{}}static override(e){Object.assign(Va.prototype,e)}init(){}formats(){return To()}parse(){return To()}format(){return To()}add(){return To()}diff(){return To()}startOf(){return To()}endOf(){return To()}}var ou={_date:Va};function dS(t,e,o,r){const{controller:n,data:i,_sorted:s}=t,l=n._cachedMeta.iScale;if(l&&e===l.axis&&e!=="r"&&s&&i.length){const c=l._reversePixels?M_:Wt;if(r){if(n._sharedOptions){const d=i[0],u=typeof d.getRange=="function"&&d.getRange(e);if(u){const f=c(i,e,o-u),h=c(i,e,o+u);return{lo:f.lo,hi:h.hi}}}}else return c(i,e,o)}return{lo:0,hi:i.length-1}}function Xr(t,e,o,r,n){const i=t.getSortedVisibleDatasetMetas(),s=o[e];for(let l=0,c=i.length;l<c;++l){const{index:d,data:u}=i[l],{lo:f,hi:h}=dS(i[l],e,s,n);for(let g=f;g<=h;++g){const m=u[g];m.skip||r(m,d,g)}}}function uS(t){const e=t.indexOf("x")!==-1,o=t.indexOf("y")!==-1;return function(r,n){const i=e?Math.abs(r.x-n.x):0,s=o?Math.abs(r.y-n.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(s,2))}}function Fa(t,e,o,r,n){const i=[];return!n&&!t.isPointInArea(e)||Xr(t,o,e,function(l,c,d){!n&&!Ht(l,t.chartArea,0)||l.inRange(e.x,e.y,r)&&i.push({element:l,datasetIndex:c,index:d})},!0),i}function fS(t,e,o,r){let n=[];function i(s,l,c){const{startAngle:d,endAngle:u}=s.getProps(["startAngle","endAngle"],r),{angle:f}=cd(s,{x:e.x,y:e.y});Ar(f,d,u)&&n.push({element:s,datasetIndex:l,index:c})}return Xr(t,o,e,i),n}function hS(t,e,o,r,n,i){let s=[];const l=uS(o);let c=Number.POSITIVE_INFINITY;function d(u,f,h){const g=u.inRange(e.x,e.y,n);if(r&&!g)return;const m=u.getCenterPoint(n);if(!(!!i||t.isPointInArea(m))&&!g)return;const b=l(e,m);b<c?(s=[{element:u,datasetIndex:f,index:h}],c=b):b===c&&s.push({element:u,datasetIndex:f,index:h})}return Xr(t,o,e,d),s}function Ia(t,e,o,r,n,i){return!i&&!t.isPointInArea(e)?[]:o==="r"&&!r?fS(t,e,o,n):hS(t,e,o,r,n,i)}function ru(t,e,o,r,n){const i=[],s=o==="x"?"inXRange":"inYRange";let l=!1;return Xr(t,o,e,(c,d,u)=>{c[s]&&c[s](e[o],n)&&(i.push({element:c,datasetIndex:d,index:u}),l=l||c.inRange(e.x,e.y,n))}),r&&!l?[]:i}var nu={evaluateInteractionItems:Xr,modes:{index(t,e,o,r){const n=Oo(e,t),i=o.axis||"x",s=o.includeInvisible||!1,l=o.intersect?Fa(t,n,i,r,s):Ia(t,n,i,!1,r,s),c=[];return l.length?(t.getSortedVisibleDatasetMetas().forEach(d=>{const u=l[0].index,f=d.data[u];f&&!f.skip&&c.push({element:f,datasetIndex:d.index,index:u})}),c):[]},dataset(t,e,o,r){const n=Oo(e,t),i=o.axis||"xy",s=o.includeInvisible||!1;let l=o.intersect?Fa(t,n,i,r,s):Ia(t,n,i,!1,r,s);if(l.length>0){const c=l[0].datasetIndex,d=t.getDatasetMeta(c).data;l=[];for(let u=0;u<d.length;++u)l.push({element:d[u],datasetIndex:c,index:u})}return l},point(t,e,o,r){const n=Oo(e,t),i=o.axis||"xy",s=o.includeInvisible||!1;return Fa(t,n,i,r,s)},nearest(t,e,o,r){const n=Oo(e,t),i=o.axis||"xy",s=o.includeInvisible||!1;return Ia(t,n,i,o.intersect,r,s)},x(t,e,o,r){const n=Oo(e,t);return ru(t,n,"x",o.intersect,r)},y(t,e,o,r){const n=Oo(e,t);return ru(t,n,"y",o.intersect,r)}}};const iu=["left","top","right","bottom"];function Kr(t,e){return t.filter(o=>o.pos===e)}function au(t,e){return t.filter(o=>iu.indexOf(o.pos)===-1&&o.box.axis===e)}function Gr(t,e){return t.sort((o,r)=>{const n=e?r:o,i=e?o:r;return n.weight===i.weight?n.index-i.index:n.weight-i.weight})}function gS(t){const e=[];let o,r,n,i,s,l;for(o=0,r=(t||[]).length;o<r;++o)n=t[o],{position:i,options:{stack:s,stackWeight:l=1}}=n,e.push({index:o,box:n,pos:i,horizontal:n.isHorizontal(),weight:n.weight,stack:s&&i+s,stackWeight:l});return e}function mS(t){const e={};for(const o of t){const{stack:r,pos:n,stackWeight:i}=o;if(!r||!iu.includes(n))continue;const s=e[r]||(e[r]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=i}return e}function pS(t,e){const o=mS(t),{vBoxMaxWidth:r,hBoxMaxHeight:n}=e;let i,s,l;for(i=0,s=t.length;i<s;++i){l=t[i];const{fullSize:c}=l.box,d=o[l.stack],u=d&&l.stackWeight/d.weight;l.horizontal?(l.width=u?u*r:c&&e.availableWidth,l.height=n):(l.width=r,l.height=u?u*n:c&&e.availableHeight)}return o}function bS(t){const e=gS(t),o=Gr(e.filter(d=>d.box.fullSize),!0),r=Gr(Kr(e,"left"),!0),n=Gr(Kr(e,"right")),i=Gr(Kr(e,"top"),!0),s=Gr(Kr(e,"bottom")),l=au(e,"x"),c=au(e,"y");return{fullSize:o,leftAndTop:r.concat(i),rightAndBottom:n.concat(c).concat(s).concat(l),chartArea:Kr(e,"chartArea"),vertical:r.concat(n).concat(c),horizontal:i.concat(s).concat(l)}}function su(t,e,o,r){return Math.max(t[o],e[o])+Math.max(t[r],e[r])}function lu(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function yS(t,e,o,r){const{pos:n,box:i}=o,s=t.maxPadding;if(!de(n)){o.size&&(t[n]-=o.size);const f=r[o.stack]||{size:0,count:1};f.size=Math.max(f.size,o.horizontal?i.height:i.width),o.size=f.size/f.count,t[n]+=o.size}i.getPadding&&lu(s,i.getPadding());const l=Math.max(0,e.outerWidth-su(s,t,"left","right")),c=Math.max(0,e.outerHeight-su(s,t,"top","bottom")),d=l!==t.w,u=c!==t.h;return t.w=l,t.h=c,o.horizontal?{same:d,other:u}:{same:u,other:d}}function kS(t){const e=t.maxPadding;function o(r){const n=Math.max(e[r]-t[r],0);return t[r]+=n,n}t.y+=o("top"),t.x+=o("left"),o("right"),o("bottom")}function xS(t,e){const o=e.maxPadding;function r(n){const i={left:0,top:0,right:0,bottom:0};return n.forEach(s=>{i[s]=Math.max(e[s],o[s])}),i}return r(t?["left","right"]:["top","bottom"])}function Jr(t,e,o,r){const n=[];let i,s,l,c,d,u;for(i=0,s=t.length,d=0;i<s;++i){l=t[i],c=l.box,c.update(l.width||e.w,l.height||e.h,xS(l.horizontal,e));const{same:f,other:h}=yS(e,o,l,r);d|=f&&n.length,u=u||h,c.fullSize||n.push(l)}return d&&Jr(n,e,o,r)||u}function oi(t,e,o,r,n){t.top=o,t.left=e,t.right=e+r,t.bottom=o+n,t.width=r,t.height=n}function cu(t,e,o,r){const n=o.padding;let{x:i,y:s}=e;for(const l of t){const c=l.box,d=r[l.stack]||{count:1,placed:0,weight:1},u=l.stackWeight/d.weight||1;if(l.horizontal){const f=e.w*u,h=d.size||c.height;Pr(d.start)&&(s=d.start),c.fullSize?oi(c,n.left,s,o.outerWidth-n.right-n.left,h):oi(c,e.left+d.placed,s,f,h),d.start=s,d.placed+=f,s=c.bottom}else{const f=e.h*u,h=d.size||c.width;Pr(d.start)&&(i=d.start),c.fullSize?oi(c,i,n.top,h,o.outerHeight-n.bottom-n.top):oi(c,i,e.top+d.placed,h,f),d.start=i,d.placed+=f,i=c.right}}e.x=i,e.y=s}var We={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(o){e.draw(o)}}]},t.boxes.push(e)},removeBox(t,e){const o=t.boxes?t.boxes.indexOf(e):-1;o!==-1&&t.boxes.splice(o,1)},configure(t,e,o){e.fullSize=o.fullSize,e.position=o.position,e.weight=o.weight},update(t,e,o,r){if(!t)return;const n=Ye(t.options.layout.padding),i=Math.max(e-n.width,0),s=Math.max(o-n.height,0),l=bS(t.boxes),c=l.vertical,d=l.horizontal;ye(t.boxes,p=>{typeof p.beforeLayout=="function"&&p.beforeLayout()});const u=c.reduce((p,b)=>b.box.options&&b.box.options.display===!1?p:p+1,0)||1,f=Object.freeze({outerWidth:e,outerHeight:o,padding:n,availableWidth:i,availableHeight:s,vBoxMaxWidth:i/2/u,hBoxMaxHeight:s/2}),h=Object.assign({},n);lu(h,Ye(r));const g=Object.assign({maxPadding:h,w:i,h:s,x:n.left,y:n.top},n),m=pS(c.concat(d),f);Jr(l.fullSize,g,f,m),Jr(c,g,f,m),Jr(d,g,f,m)&&Jr(c,g,f,m),kS(g),cu(l.leftAndTop,g,f,m),g.x+=g.w,g.y+=g.h,cu(l.rightAndBottom,g,f,m),t.chartArea={left:g.left,top:g.top,right:g.left+g.w,bottom:g.top+g.h,height:g.h,width:g.w},ye(l.chartArea,p=>{const b=p.box;Object.assign(b,t.chartArea),b.update(g.w,g.h,{left:0,top:0,right:0,bottom:0})})}};class La{acquireContext(e,o){}releaseContext(e){return!1}addEventListener(e,o,r){}removeEventListener(e,o,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,o,r,n){return o=Math.max(0,o||e.width),r=r||e.height,{width:o,height:Math.max(0,n?Math.floor(o/n):r)}}isAttached(e){return!0}updateConfig(e){}}class du extends La{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const ri="$chartjs",vS={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},uu=t=>t===null||t==="";function wS(t,e){const o=t.style,r=t.getAttribute("height"),n=t.getAttribute("width");if(t[ri]={initial:{height:r,width:n,style:{display:o.display,height:o.height,width:o.width}}},o.display=o.display||"block",o.boxSizing=o.boxSizing||"border-box",uu(n)){const i=$d(t,"width");i!==void 0&&(t.width=i)}if(uu(r))if(t.style.height==="")t.height=t.width/(e||2);else{const i=$d(t,"height");i!==void 0&&(t.height=i)}return t}const fu=D5?{passive:!0}:!1;function CS(t,e,o){t&&t.addEventListener(e,o,fu)}function _S(t,e,o){t&&t.canvas&&t.canvas.removeEventListener(e,o,fu)}function SS(t,e){const o=vS[t.type]||t.type,{x:r,y:n}=Oo(t,e);return{type:o,chart:e,native:t,x:r!==void 0?r:null,y:n!==void 0?n:null}}function ni(t,e){for(const o of t)if(o===e||o.contains(e))return!0}function BS(t,e,o){const r=t.canvas,n=new MutationObserver(i=>{let s=!1;for(const l of i)s=s||ni(l.addedNodes,r),s=s&&!ni(l.removedNodes,r);s&&o()});return n.observe(document,{childList:!0,subtree:!0}),n}function ES(t,e,o){const r=t.canvas,n=new MutationObserver(i=>{let s=!1;for(const l of i)s=s||ni(l.removedNodes,r),s=s&&!ni(l.addedNodes,r);s&&o()});return n.observe(document,{childList:!0,subtree:!0}),n}const Qr=new Map;let hu=0;function gu(){const t=window.devicePixelRatio;t!==hu&&(hu=t,Qr.forEach((e,o)=>{o.currentDevicePixelRatio!==t&&e()}))}function RS(t,e){Qr.size||window.addEventListener("resize",gu),Qr.set(t,e)}function DS(t){Qr.delete(t),Qr.size||window.removeEventListener("resize",gu)}function OS(t,e,o){const r=t.canvas,n=r&&Na(r);if(!n)return;const i=gd((l,c)=>{const d=n.clientWidth;o(l,c),d<n.clientWidth&&o()},window),s=new ResizeObserver(l=>{const c=l[0],d=c.contentRect.width,u=c.contentRect.height;d===0&&u===0||i(d,u)});return s.observe(n),RS(t,i),s}function za(t,e,o){o&&o.disconnect(),e==="resize"&&DS(t)}function NS(t,e,o){const r=t.canvas,n=gd(i=>{t.ctx!==null&&o(SS(i,t))},t);return CS(r,e,n),n}class mu extends La{acquireContext(e,o){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(wS(e,o),r):null}releaseContext(e){const o=e.canvas;if(!o[ri])return!1;const r=o[ri].initial;["height","width"].forEach(i=>{const s=r[i];fe(s)?o.removeAttribute(i):o.setAttribute(i,s)});const n=r.style||{};return Object.keys(n).forEach(i=>{o.style[i]=n[i]}),o.width=o.width,delete o[ri],!0}addEventListener(e,o,r){this.removeEventListener(e,o);const n=e.$proxies||(e.$proxies={}),s={attach:BS,detach:ES,resize:OS}[o]||NS;n[o]=s(e,o,r)}removeEventListener(e,o){const r=e.$proxies||(e.$proxies={}),n=r[o];if(!n)return;({attach:za,detach:za,resize:za}[o]||_S)(e,o,n),r[o]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,o,r,n){return R5(e,o,r,n)}isAttached(e){const o=e&&Na(e);return!!(o&&o.isConnected)}}function pu(t){return!Oa()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?du:mu}let Dt=(xi=class{constructor(){j(this,"x");j(this,"y");j(this,"active",!1);j(this,"options");j(this,"$animations")}tooltipPosition(e){const{x:o,y:r}=this.getProps(["x","y"],e);return{x:o,y:r}}hasValue(){return qo(this.x)&&qo(this.y)}getProps(e,o){const r=this.$animations;if(!o||!r)return this;const n={};return e.forEach(i=>{n[i]=r[i]&&r[i].active()?r[i]._to:this[i]}),n}},j(xi,"defaults",{}),j(xi,"defaultRoutes"),xi);function TS(t,e){const o=t.options.ticks,r=PS(t),n=Math.min(o.maxTicksLimit||r,r),i=o.major.enabled?AS(e):[],s=i.length,l=i[0],c=i[s-1],d=[];if(s>n)return MS(e,d,i,s/n),d;const u=$S(i,e,n);if(s>0){let f,h;const g=s>1?Math.round((c-l)/(s-1)):null;for(ii(e,d,u,fe(g)?0:l-g,l),f=0,h=s-1;f<h;f++)ii(e,d,u,i[f],i[f+1]);return ii(e,d,u,c,fe(g)?e.length:c+g),d}return ii(e,d,u),d}function PS(t){const e=t.options.offset,o=t._tickSize(),r=t._length/o+(e?0:1),n=t._maxLength/o;return Math.floor(Math.min(r,n))}function $S(t,e,o){const r=VS(t),n=e.length/o;if(!r)return Math.max(n,1);const i=T_(r);for(let s=0,l=i.length-1;s<l;s++){const c=i[s];if(c>n)return c}return Math.max(n,1)}function AS(t){const e=[];let o,r;for(o=0,r=t.length;o<r;o++)t[o].major&&e.push(o);return e}function MS(t,e,o,r){let n=0,i=o[0],s;for(r=Math.ceil(r),s=0;s<t.length;s++)s===i&&(e.push(t[s]),n++,i=o[n*r])}function ii(t,e,o,r,n){const i=se(r,0),s=Math.min(se(n,t.length),t.length);let l=0,c,d,u;for(o=Math.ceil(o),n&&(c=n-r,o=c/Math.floor(c/o)),u=i;u<0;)l++,u=Math.round(i+l*o);for(d=Math.max(i,0);d<s;d++)d===u&&(e.push(t[d]),l++,u=Math.round(i+l*o))}function VS(t){const e=t.length;let o,r;if(e<2)return!1;for(r=t[0],o=1;o<e;++o)if(t[o]-t[o-1]!==r)return!1;return r}const FS=t=>t==="left"?"right":t==="right"?"left":t,bu=(t,e,o)=>e==="top"||e==="left"?t[e]+o:t[e]-o,yu=(t,e)=>Math.min(e||t,t);function ku(t,e){const o=[],r=t.length/e,n=t.length;let i=0;for(;i<n;i+=r)o.push(t[Math.floor(i)]);return o}function IS(t,e,o){const r=t.ticks.length,n=Math.min(e,r-1),i=t._startPixel,s=t._endPixel,l=1e-6;let c=t.getPixelForTick(n),d;if(!(o&&(r===1?d=Math.max(c-i,s-c):e===0?d=(t.getPixelForTick(1)-c)/2:d=(c-t.getPixelForTick(n-1))/2,c+=n<e?d:-d,c<i-l||c>s+l)))return c}function LS(t,e){ye(t,o=>{const r=o.gc,n=r.length/2;let i;if(n>e){for(i=0;i<n;++i)delete o.data[r[i]];r.splice(0,n)}})}function Zr(t){return t.drawTicks?t.tickLength:0}function xu(t,e){if(!t.display)return 0;const o=Ie(t.font,e),r=Ye(t.padding);return(Re(t.text)?t.text.length:1)*o.lineHeight+r.height}function zS(t,e){return lo(t,{scale:e,type:"scale"})}function jS(t,e,o){return lo(t,{tick:o,index:e,type:"tick"})}function WS(t,e,o){let r=xa(t);return(o&&e!=="right"||!o&&e==="right")&&(r=FS(r)),r}function HS(t,e,o,r){const{top:n,left:i,bottom:s,right:l,chart:c}=t,{chartArea:d,scales:u}=c;let f=0,h,g,m;const p=s-n,b=l-i;if(t.isHorizontal()){if(g=qe(r,i,l),de(o)){const y=Object.keys(o)[0],k=o[y];m=u[y].getPixelForValue(k)+p-e}else o==="center"?m=(d.bottom+d.top)/2+p-e:m=bu(t,o,e);h=l-i}else{if(de(o)){const y=Object.keys(o)[0],k=o[y];g=u[y].getPixelForValue(k)-b+e}else o==="center"?g=(d.left+d.right)/2-b+e:g=bu(t,o,e);m=qe(r,s,n),f=o==="left"?-Me:Me}return{titleX:g,titleY:m,maxWidth:h,rotation:f}}class uo extends Dt{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,o){return e}getUserBounds(){let{_userMin:e,_userMax:o,_suggestedMin:r,_suggestedMax:n}=this;return e=it(e,Number.POSITIVE_INFINITY),o=it(o,Number.NEGATIVE_INFINITY),r=it(r,Number.POSITIVE_INFINITY),n=it(n,Number.NEGATIVE_INFINITY),{min:it(e,r),max:it(o,n),minDefined:$e(e),maxDefined:$e(o)}}getMinMax(e){let{min:o,max:r,minDefined:n,maxDefined:i}=this.getUserBounds(),s;if(n&&i)return{min:o,max:r};const l=this.getMatchingVisibleMetas();for(let c=0,d=l.length;c<d;++c)s=l[c].controller.getMinMax(this,e),n||(o=Math.min(o,s.min)),i||(r=Math.max(r,s.max));return o=i&&o>r?r:o,r=n&&o>r?o:r,{min:it(o,it(r,o)),max:it(r,it(o,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){ve(this.options.beforeUpdate,[this])}update(e,o,r){const{beginAtZero:n,grace:i,ticks:s}=this.options,l=s.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=o,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=a5(this,i,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const c=l<this.ticks.length;this._convertTicksToLabels(c?ku(this.ticks,l):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=TS(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),c&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,o,r;this.isHorizontal()?(o=this.left,r=this.right):(o=this.top,r=this.bottom,e=!e),this._startPixel=o,this._endPixel=r,this._reversePixels=e,this._length=r-o,this._alignToPixels=this.options.alignToPixels}afterUpdate(){ve(this.options.afterUpdate,[this])}beforeSetDimensions(){ve(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){ve(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),ve(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){ve(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const o=this.options.ticks;let r,n,i;for(r=0,n=e.length;r<n;r++)i=e[r],i.label=ve(o.callback,[i.value,r,e],this)}afterTickToLabelConversion(){ve(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){ve(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,o=e.ticks,r=yu(this.ticks.length,e.ticks.maxTicksLimit),n=o.minRotation||0,i=o.maxRotation;let s=n,l,c,d;if(!this._isVisible()||!o.display||n>=i||r<=1||!this.isHorizontal()){this.labelRotation=n;return}const u=this._getLabelSizes(),f=u.widest.width,h=u.highest.height,g=je(this.chart.width-f,0,this.maxWidth);l=e.offset?this.maxWidth/r:g/(r-1),f+6>l&&(l=g/(r-(e.offset?.5:1)),c=this.maxHeight-Zr(e.grid)-o.padding-xu(e.title,this.chart.options.font),d=Math.sqrt(f*f+h*h),s=ba(Math.min(Math.asin(je((u.highest.height+6)/l,-1,1)),Math.asin(je(c/d,-1,1))-Math.asin(je(h/d,-1,1)))),s=Math.max(n,Math.min(i,s))),this.labelRotation=s}afterCalculateLabelRotation(){ve(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){ve(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:o,options:{ticks:r,title:n,grid:i}}=this,s=this._isVisible(),l=this.isHorizontal();if(s){const c=xu(n,o.options.font);if(l?(e.width=this.maxWidth,e.height=Zr(i)+c):(e.height=this.maxHeight,e.width=Zr(i)+c),r.display&&this.ticks.length){const{first:d,last:u,widest:f,highest:h}=this._getLabelSizes(),g=r.padding*2,m=kt(this.labelRotation),p=Math.cos(m),b=Math.sin(m);if(l){const y=r.mirror?0:b*f.width+p*h.height;e.height=Math.min(this.maxHeight,e.height+y+g)}else{const y=r.mirror?0:p*f.width+b*h.height;e.width=Math.min(this.maxWidth,e.width+y+g)}this._calculatePadding(d,u,b,p)}}this._handleMargins(),l?(this.width=this._length=o.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=o.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,o,r,n){const{ticks:{align:i,padding:s},position:l}=this.options,c=this.labelRotation!==0,d=l!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,g=0;c?d?(h=n*e.width,g=r*o.height):(h=r*e.height,g=n*o.width):i==="start"?g=o.width:i==="end"?h=e.width:i!=="inner"&&(h=e.width/2,g=o.width/2),this.paddingLeft=Math.max((h-u+s)*this.width/(this.width-u),0),this.paddingRight=Math.max((g-f+s)*this.width/(this.width-f),0)}else{let u=o.height/2,f=e.height/2;i==="start"?(u=0,f=e.height):i==="end"&&(u=o.height,f=0),this.paddingTop=u+s,this.paddingBottom=f+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){ve(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:o}=this.options;return o==="top"||o==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let o,r;for(o=0,r=e.length;o<r;o++)fe(e[o].label)&&(e.splice(o,1),r--,o--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const o=this.options.ticks.sampleSize;let r=this.ticks;o<r.length&&(r=ku(r,o)),this._labelSizes=e=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,o,r){const{ctx:n,_longestTextCache:i}=this,s=[],l=[],c=Math.floor(o/yu(o,r));let d=0,u=0,f,h,g,m,p,b,y,k,C,_,v;for(f=0;f<o;f+=c){if(m=e[f].label,p=this._resolveTickFontOptions(f),n.font=b=p.string,y=i[b]=i[b]||{data:{},gc:[]},k=p.lineHeight,C=_=0,!fe(m)&&!Re(m))C=Xn(n,y.data,y.gc,C,m),_=k;else if(Re(m))for(h=0,g=m.length;h<g;++h)v=m[h],!fe(v)&&!Re(v)&&(C=Xn(n,y.data,y.gc,C,v),_+=k);s.push(C),l.push(_),d=Math.max(C,d),u=Math.max(_,u)}LS(i,o);const S=s.indexOf(d),w=l.indexOf(u),x=B=>({width:s[B]||0,height:l[B]||0});return{first:x(0),last:x(o-1),widest:x(S),highest:x(w),widths:s,heights:l}}getLabelForValue(e){return e}getPixelForValue(e,o){return NaN}getValueForPixel(e){}getPixelForTick(e){const o=this.ticks;return e<0||e>o.length-1?null:this.getPixelForValue(o[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const o=this._startPixel+e*this._length;return A_(this._alignToPixels?Bo(this.chart,o,0):o)}getDecimalForPixel(e){const o=(e-this._startPixel)/this._length;return this._reversePixels?1-o:o}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:o}=this;return e<0&&o<0?o:e>0&&o>0?e:0}getContext(e){const o=this.ticks||[];if(e>=0&&e<o.length){const r=o[e];return r.$context||(r.$context=jS(this.getContext(),e,r))}return this.$context||(this.$context=zS(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,o=kt(this.labelRotation),r=Math.abs(Math.cos(o)),n=Math.abs(Math.sin(o)),i=this._getLabelSizes(),s=e.autoSkipPadding||0,l=i?i.widest.width+s:0,c=i?i.highest.height+s:0;return this.isHorizontal()?c*r>l*n?l/r:c/n:c*n<l*r?c/r:l/n}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const o=this.axis,r=this.chart,n=this.options,{grid:i,position:s,border:l}=n,c=i.offset,d=this.isHorizontal(),f=this.ticks.length+(c?1:0),h=Zr(i),g=[],m=l.setContext(this.getContext()),p=m.display?m.width:0,b=p/2,y=function(I){return Bo(r,I,p)};let k,C,_,v,S,w,x,B,T,E,O,M;if(s==="top")k=y(this.bottom),w=this.bottom-h,B=k-b,E=y(e.top)+b,M=e.bottom;else if(s==="bottom")k=y(this.top),E=e.top,M=y(e.bottom)-b,w=k+b,B=this.top+h;else if(s==="left")k=y(this.right),S=this.right-h,x=k-b,T=y(e.left)+b,O=e.right;else if(s==="right")k=y(this.left),T=e.left,O=y(e.right)-b,S=k+b,x=this.left+h;else if(o==="x"){if(s==="center")k=y((e.top+e.bottom)/2+.5);else if(de(s)){const I=Object.keys(s)[0],z=s[I];k=y(this.chart.scales[I].getPixelForValue(z))}E=e.top,M=e.bottom,w=k+b,B=w+h}else if(o==="y"){if(s==="center")k=y((e.left+e.right)/2);else if(de(s)){const I=Object.keys(s)[0],z=s[I];k=y(this.chart.scales[I].getPixelForValue(z))}S=k-b,x=S-h,T=e.left,O=e.right}const W=se(n.ticks.maxTicksLimit,f),Y=Math.max(1,Math.ceil(f/W));for(C=0;C<f;C+=Y){const I=this.getContext(C),z=i.setContext(I),F=l.setContext(I),P=z.lineWidth,L=z.color,Q=F.dash||[],oe=F.dashOffset,ne=z.tickWidth,X=z.tickColor,J=z.tickBorderDash||[],ie=z.tickBorderDashOffset;_=IS(this,C,c),_!==void 0&&(v=Bo(r,_,P),d?S=x=T=O=v:w=B=E=M=v,g.push({tx1:S,ty1:w,tx2:x,ty2:B,x1:T,y1:E,x2:O,y2:M,width:P,color:L,borderDash:Q,borderDashOffset:oe,tickWidth:ne,tickColor:X,tickBorderDash:J,tickBorderDashOffset:ie}))}return this._ticksLength=f,this._borderValue=k,g}_computeLabelItems(e){const o=this.axis,r=this.options,{position:n,ticks:i}=r,s=this.isHorizontal(),l=this.ticks,{align:c,crossAlign:d,padding:u,mirror:f}=i,h=Zr(r.grid),g=h+u,m=f?-u:g,p=-kt(this.labelRotation),b=[];let y,k,C,_,v,S,w,x,B,T,E,O,M="middle";if(n==="top")S=this.bottom-m,w=this._getXAxisLabelAlignment();else if(n==="bottom")S=this.top+m,w=this._getXAxisLabelAlignment();else if(n==="left"){const Y=this._getYAxisLabelAlignment(h);w=Y.textAlign,v=Y.x}else if(n==="right"){const Y=this._getYAxisLabelAlignment(h);w=Y.textAlign,v=Y.x}else if(o==="x"){if(n==="center")S=(e.top+e.bottom)/2+g;else if(de(n)){const Y=Object.keys(n)[0],I=n[Y];S=this.chart.scales[Y].getPixelForValue(I)+g}w=this._getXAxisLabelAlignment()}else if(o==="y"){if(n==="center")v=(e.left+e.right)/2-g;else if(de(n)){const Y=Object.keys(n)[0],I=n[Y];v=this.chart.scales[Y].getPixelForValue(I)}w=this._getYAxisLabelAlignment(h).textAlign}o==="y"&&(c==="start"?M="top":c==="end"&&(M="bottom"));const W=this._getLabelSizes();for(y=0,k=l.length;y<k;++y){C=l[y],_=C.label;const Y=i.setContext(this.getContext(y));x=this.getPixelForTick(y)+i.labelOffset,B=this._resolveTickFontOptions(y),T=B.lineHeight,E=Re(_)?_.length:1;const I=E/2,z=Y.color,F=Y.textStrokeColor,P=Y.textStrokeWidth;let L=w;s?(v=x,w==="inner"&&(y===k-1?L=this.options.reverse?"left":"right":y===0?L=this.options.reverse?"right":"left":L="center"),n==="top"?d==="near"||p!==0?O=-E*T+T/2:d==="center"?O=-W.highest.height/2-I*T+T:O=-W.highest.height+T/2:d==="near"||p!==0?O=T/2:d==="center"?O=W.highest.height/2-I*T:O=W.highest.height-E*T,f&&(O*=-1),p!==0&&!Y.showLabelBackdrop&&(v+=T/2*Math.sin(p))):(S=x,O=(1-E)*T/2);let Q;if(Y.showLabelBackdrop){const oe=Ye(Y.backdropPadding),ne=W.heights[y],X=W.widths[y];let J=O-oe.top,ie=0-oe.left;switch(M){case"middle":J-=ne/2;break;case"bottom":J-=ne;break}switch(w){case"center":ie-=X/2;break;case"right":ie-=X;break;case"inner":y===k-1?ie-=X:y>0&&(ie-=X/2);break}Q={left:ie,top:J,width:X+oe.width,height:ne+oe.height,color:Y.backdropColor}}b.push({label:_,font:B,textOffset:O,options:{rotation:p,color:z,strokeColor:F,strokeWidth:P,textAlign:L,textBaseline:M,translation:[v,S],backdrop:Q}})}return b}_getXAxisLabelAlignment(){const{position:e,ticks:o}=this.options;if(-kt(this.labelRotation))return e==="top"?"left":"right";let n="center";return o.align==="start"?n="left":o.align==="end"?n="right":o.align==="inner"&&(n="inner"),n}_getYAxisLabelAlignment(e){const{position:o,ticks:{crossAlign:r,mirror:n,padding:i}}=this.options,s=this._getLabelSizes(),l=e+i,c=s.widest.width;let d,u;return o==="left"?n?(u=this.right+i,r==="near"?d="left":r==="center"?(d="center",u+=c/2):(d="right",u+=c)):(u=this.right-l,r==="near"?d="right":r==="center"?(d="center",u-=c/2):(d="left",u=this.left)):o==="right"?n?(u=this.left+i,r==="near"?d="right":r==="center"?(d="center",u-=c/2):(d="left",u-=c)):(u=this.left+l,r==="near"?d="left":r==="center"?(d="center",u+=c/2):(d="right",u=this.right)):d="right",{textAlign:d,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,o=this.options.position;if(o==="left"||o==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(o==="top"||o==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:o},left:r,top:n,width:i,height:s}=this;o&&(e.save(),e.fillStyle=o,e.fillRect(r,n,i,s),e.restore())}getLineWidthForValue(e){const o=this.options.grid;if(!this._isVisible()||!o.display)return 0;const n=this.ticks.findIndex(i=>i.value===e);return n>=0?o.setContext(this.getContext(n)).lineWidth:0}drawGrid(e){const o=this.options.grid,r=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let i,s;const l=(c,d,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(c.x,c.y),r.lineTo(d.x,d.y),r.stroke(),r.restore())};if(o.display)for(i=0,s=n.length;i<s;++i){const c=n[i];o.drawOnChartArea&&l({x:c.x1,y:c.y1},{x:c.x2,y:c.y2},c),o.drawTicks&&l({x:c.tx1,y:c.ty1},{x:c.tx2,y:c.ty2},{color:c.tickColor,width:c.tickWidth,borderDash:c.tickBorderDash,borderDashOffset:c.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:o,options:{border:r,grid:n}}=this,i=r.setContext(this.getContext()),s=r.display?i.width:0;if(!s)return;const l=n.setContext(this.getContext(0)).lineWidth,c=this._borderValue;let d,u,f,h;this.isHorizontal()?(d=Bo(e,this.left,s)-s/2,u=Bo(e,this.right,l)+l/2,f=h=c):(f=Bo(e,this.top,s)-s/2,h=Bo(e,this.bottom,l)+l/2,d=u=c),o.save(),o.lineWidth=i.width,o.strokeStyle=i.color,o.beginPath(),o.moveTo(d,f),o.lineTo(u,h),o.stroke(),o.restore()}drawLabels(e){if(!this.options.ticks.display)return;const r=this.ctx,n=this._computeLabelArea();n&&Kn(r,n);const i=this.getLabelItems(e);for(const s of i){const l=s.options,c=s.font,d=s.label,u=s.textOffset;Eo(r,d,0,u,c,l)}n&&Gn(r)}drawTitle(){const{ctx:e,options:{position:o,title:r,reverse:n}}=this;if(!r.display)return;const i=Ie(r.font),s=Ye(r.padding),l=r.align;let c=i.lineHeight/2;o==="bottom"||o==="center"||de(o)?(c+=s.bottom,Re(r.text)&&(c+=i.lineHeight*(r.text.length-1))):c+=s.top;const{titleX:d,titleY:u,maxWidth:f,rotation:h}=HS(this,c,o,l);Eo(e,r.text,0,0,i,{color:r.color,maxWidth:f,rotation:h,textAlign:WS(l,o,n),textBaseline:"middle",translation:[d,u]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,o=e.ticks&&e.ticks.z||0,r=se(e.grid&&e.grid.z,-1),n=se(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==uo.prototype.draw?[{z:o,draw:i=>{this.draw(i)}}]:[{z:r,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:o,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(e){const o=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",n=[];let i,s;for(i=0,s=o.length;i<s;++i){const l=o[i];l[r]===this.id&&(!e||l.type===e)&&n.push(l)}return n}_resolveTickFontOptions(e){const o=this.options.ticks.setContext(this.getContext(e));return Ie(o.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class ai{constructor(e,o,r){this.type=e,this.scope=o,this.override=r,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const o=Object.getPrototypeOf(e);let r;YS(o)&&(r=this.register(o));const n=this.items,i=e.id,s=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+e);return i in n||(n[i]=e,US(e,s,r),this.override&&Se.override(e.id,e.overrides)),s}get(e){return this.items[e]}unregister(e){const o=this.items,r=e.id,n=this.scope;r in o&&delete o[r],n&&r in Se[n]&&(delete Se[n][r],this.override&&delete So[r])}}function US(t,e,o){const r=Nr(Object.create(null),[o?Se.get(o):{},Se.get(e),t.defaults]);Se.set(e,r),t.defaultRoutes&&qS(e,t.defaultRoutes),t.descriptors&&Se.describe(e,t.descriptors)}function qS(t,e){Object.keys(e).forEach(o=>{const r=o.split("."),n=r.pop(),i=[t].concat(r).join("."),s=e[o].split("."),l=s.pop(),c=s.join(".");Se.route(i,n,c,l)})}function YS(t){return"id"in t&&"defaults"in t}class XS{constructor(){this.controllers=new ai(ut,"datasets",!0),this.elements=new ai(Dt,"elements"),this.plugins=new ai(Object,"plugins"),this.scales=new ai(uo,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,o,r){[...o].forEach(n=>{const i=r||this._getRegistryForType(n);r||i.isForType(n)||i===this.plugins&&n.id?this._exec(e,i,n):ye(n,s=>{const l=r||this._getRegistryForType(s);this._exec(e,l,s)})})}_exec(e,o,r){const n=pa(e);ve(r["before"+n],[],r),o[e](r),ve(r["after"+n],[],r)}_getRegistryForType(e){for(let o=0;o<this._typedRegistries.length;o++){const r=this._typedRegistries[o];if(r.isForType(e))return r}return this.plugins}_get(e,o,r){const n=o.get(e);if(n===void 0)throw new Error('"'+e+'" is not a registered '+r+".");return n}}var xt=new XS;class KS{constructor(){this._init=[]}notify(e,o,r,n){o==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const i=n?this._descriptors(e).filter(n):this._descriptors(e),s=this._notify(i,e,o,r);return o==="afterDestroy"&&(this._notify(i,e,"stop"),this._notify(this._init,e,"uninstall")),s}_notify(e,o,r,n){n=n||{};for(const i of e){const s=i.plugin,l=s[r],c=[o,n,i.options];if(ve(l,c,s)===!1&&n.cancelable)return!1}return!0}invalidate(){fe(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const o=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),o}_createDescriptors(e,o){const r=e&&e.config,n=se(r.options&&r.options.plugins,{}),i=GS(r);return n===!1&&!o?[]:QS(e,i,n,o)}_notifyStateChanges(e){const o=this._oldCache||[],r=this._cache,n=(i,s)=>i.filter(l=>!s.some(c=>l.plugin.id===c.plugin.id));this._notify(n(o,r),e,"stop"),this._notify(n(r,o),e,"start")}}function GS(t){const e={},o=[],r=Object.keys(xt.plugins.items);for(let i=0;i<r.length;i++)o.push(xt.getPlugin(r[i]));const n=t.plugins||[];for(let i=0;i<n.length;i++){const s=n[i];o.indexOf(s)===-1&&(o.push(s),e[s.id]=!0)}return{plugins:o,localIds:e}}function JS(t,e){return!e&&t===!1?null:t===!0?{}:t}function QS(t,{plugins:e,localIds:o},r,n){const i=[],s=t.getContext();for(const l of e){const c=l.id,d=JS(r[c],n);d!==null&&i.push({plugin:l,options:ZS(t.config,{plugin:l,local:o[c]},d,s)})}return i}function ZS(t,{plugin:e,local:o},r,n){const i=t.pluginScopeKeys(e),s=t.getOptionScopes(r,i);return o&&e.defaults&&s.push(e.defaults),t.createResolver(s,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ja(t,e){const o=Se.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||o.indexAxis||"x"}function eB(t,e){let o=t;return t==="_index_"?o=e:t==="_value_"&&(o=e==="x"?"y":"x"),o}function tB(t,e){return t===e?"_index_":"_value_"}function vu(t){if(t==="x"||t==="y"||t==="r")return t}function oB(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function Wa(t,...e){if(vu(t))return t;for(const o of e){const r=o.axis||oB(o.position)||t.length>1&&vu(t[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function wu(t,e,o){if(o[e+"AxisID"]===t)return{axis:e}}function rB(t,e){if(e.data&&e.data.datasets){const o=e.data.datasets.filter(r=>r.xAxisID===t||r.yAxisID===t);if(o.length)return wu(t,"x",o[0])||wu(t,"y",o[0])}return{}}function nB(t,e){const o=So[t.type]||{scales:{}},r=e.scales||{},n=ja(t.type,e),i=Object.create(null);return Object.keys(r).forEach(s=>{const l=r[s];if(!de(l))return console.error(`Invalid scale configuration for scale: ${s}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const c=Wa(s,l,rB(s,t),Se.scales[l.type]),d=tB(c,n),u=o.scales||{};i[s]=Tr(Object.create(null),[{axis:c},l,u[c],u[d]])}),t.data.datasets.forEach(s=>{const l=s.type||t.type,c=s.indexAxis||ja(l,e),u=(So[l]||{}).scales||{};Object.keys(u).forEach(f=>{const h=eB(f,c),g=s[h+"AxisID"]||h;i[g]=i[g]||Object.create(null),Tr(i[g],[{axis:h},r[g],u[f]])})}),Object.keys(i).forEach(s=>{const l=i[s];Tr(l,[Se.scales[l.type],Se.scale])}),i}function Cu(t){const e=t.options||(t.options={});e.plugins=se(e.plugins,{}),e.scales=nB(t,e)}function _u(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function iB(t){return t=t||{},t.data=_u(t.data),Cu(t),t}const Su=new Map,Bu=new Set;function si(t,e){let o=Su.get(t);return o||(o=e(),Su.set(t,o),Bu.add(o)),o}const en=(t,e,o)=>{const r=io(e,o);r!==void 0&&t.add(r)};class aB{constructor(e){this._config=iB(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=_u(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),Cu(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return si(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,o){return si(`${e}.transition.${o}`,()=>[[`datasets.${e}.transitions.${o}`,`transitions.${o}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,o){return si(`${e}-${o}`,()=>[[`datasets.${e}.elements.${o}`,`datasets.${e}`,`elements.${o}`,""]])}pluginScopeKeys(e){const o=e.id,r=this.type;return si(`${r}-plugin-${o}`,()=>[[`plugins.${o}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,o){const r=this._scopeCache;let n=r.get(e);return(!n||o)&&(n=new Map,r.set(e,n)),n}getOptionScopes(e,o,r){const{options:n,type:i}=this,s=this._cachedScopes(e,r),l=s.get(o);if(l)return l;const c=new Set;o.forEach(u=>{e&&(c.add(e),u.forEach(f=>en(c,e,f))),u.forEach(f=>en(c,n,f)),u.forEach(f=>en(c,So[i]||{},f)),u.forEach(f=>en(c,Se,f)),u.forEach(f=>en(c,Ca,f))});const d=Array.from(c);return d.length===0&&d.push(Object.create(null)),Bu.has(o)&&s.set(o,d),d}chartOptionScopes(){const{options:e,type:o}=this;return[e,So[o]||{},Se.datasets[o]||{},{type:o},Se,Ca]}resolveNamedOptions(e,o,r,n=[""]){const i={$shared:!0},{resolver:s,subPrefixes:l}=Eu(this._resolverCache,e,n);let c=s;if(lB(s,o)){i.$shared=!1,r=ao(r)?r():r;const d=this.createResolver(e,r,l);c=Yo(s,r,d)}for(const d of o)i[d]=c[d];return i}createResolver(e,o,r=[""],n){const{resolver:i}=Eu(this._resolverCache,e,r);return de(o)?Yo(i,o,void 0,n):i}}function Eu(t,e,o){let r=t.get(e);r||(r=new Map,t.set(e,r));const n=o.join();let i=r.get(n);return i||(i={resolver:Ea(e,o),subPrefixes:o.filter(l=>!l.toLowerCase().includes("hover"))},r.set(n,i)),i}const sB=t=>de(t)&&Object.getOwnPropertyNames(t).some(e=>ao(t[e]));function lB(t,e){const{isScriptable:o,isIndexable:r}=Sd(t);for(const n of e){const i=o(n),s=r(n),l=(s||i)&&t[n];if(i&&(ao(l)||sB(l))||s&&Re(l))return!0}return!1}var cB="4.4.7";const dB=["top","bottom","left","right","chartArea"];function Ru(t,e){return t==="top"||t==="bottom"||dB.indexOf(t)===-1&&e==="x"}function Du(t,e){return function(o,r){return o[t]===r[t]?o[e]-r[e]:o[t]-r[t]}}function Ou(t){const e=t.chart,o=e.options.animation;e.notifyPlugins("afterRender"),ve(o&&o.onComplete,[t],e)}function uB(t){const e=t.chart,o=e.options.animation;ve(o&&o.onProgress,[t],e)}function Nu(t){return Oa()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const li={},Tu=t=>{const e=Nu(t);return Object.values(li).filter(o=>o.canvas===e).pop()};function fB(t,e,o){const r=Object.keys(t);for(const n of r){const i=+n;if(i>=e){const s=t[n];delete t[n],(o>0||i>e)&&(t[i+o]=s)}}}function hB(t,e,o,r){return!o||t.type==="mouseout"?null:r?e:t}function ci(t,e,o){return t.options.clip?t[o]:e[o]}function gB(t,e){const{xScale:o,yScale:r}=t;return o&&r?{left:ci(o,e,"left"),right:ci(o,e,"right"),top:ci(r,e,"top"),bottom:ci(r,e,"bottom")}:e}class Ot{static register(...e){xt.add(...e),Pu()}static unregister(...e){xt.remove(...e),Pu()}constructor(e,o){const r=this.config=new aB(o),n=Nu(e),i=Tu(n);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||pu(n)),this.platform.updateConfig(r);const l=this.platform.acquireContext(n,s.aspectRatio),c=l&&l.canvas,d=c&&c.height,u=c&&c.width;if(this.id=C_(),this.ctx=l,this.canvas=c,this.width=u,this.height=d,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new KS,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=I_(f=>this.update(f),s.resizeDelay||0),this._dataChanges=[],li[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}Rt.listen(this,"complete",Ou),Rt.listen(this,"progress",uB),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:o},width:r,height:n,_aspectRatio:i}=this;return fe(e)?o&&i?i:n?r/n:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return xt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Pd(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return wd(this.canvas,this.ctx),this}stop(){return Rt.stop(this),this}resize(e,o){Rt.running(this)?this._resizeBeforeDraw={width:e,height:o}:this._resize(e,o)}_resize(e,o){const r=this.options,n=this.canvas,i=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(n,e,o,i),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,Pd(this,l,!0)&&(this.notifyPlugins("resize",{size:s}),ve(r.onResize,[this,s],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){const o=this.options.scales||{};ye(o,(r,n)=>{r.id=n})}buildOrUpdateScales(){const e=this.options,o=e.scales,r=this.scales,n=Object.keys(r).reduce((s,l)=>(s[l]=!1,s),{});let i=[];o&&(i=i.concat(Object.keys(o).map(s=>{const l=o[s],c=Wa(s,l),d=c==="r",u=c==="x";return{options:l,dposition:d?"chartArea":u?"bottom":"left",dtype:d?"radialLinear":u?"category":"linear"}}))),ye(i,s=>{const l=s.options,c=l.id,d=Wa(c,l),u=se(l.type,s.dtype);(l.position===void 0||Ru(l.position,d)!==Ru(s.dposition))&&(l.position=s.dposition),n[c]=!0;let f=null;if(c in r&&r[c].type===u)f=r[c];else{const h=xt.getScale(u);f=new h({id:c,type:u,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(l,e)}),ye(n,(s,l)=>{s||delete r[l]}),ye(r,s=>{We.configure(this,s,s.options),We.addBox(this,s)})}_updateMetasets(){const e=this._metasets,o=this.data.datasets.length,r=e.length;if(e.sort((n,i)=>n.index-i.index),r>o){for(let n=o;n<r;++n)this._destroyDatasetMeta(n);e.splice(o,r-o)}this._sortedMetasets=e.slice(0).sort(Du("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:o}}=this;e.length>o.length&&delete this._stacks,e.forEach((r,n)=>{o.filter(i=>i===r._dataset).length===0&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const e=[],o=this.data.datasets;let r,n;for(this._removeUnreferencedMetasets(),r=0,n=o.length;r<n;r++){const i=o[r];let s=this.getDatasetMeta(r);const l=i.type||this.config.type;if(s.type&&s.type!==l&&(this._destroyDatasetMeta(r),s=this.getDatasetMeta(r)),s.type=l,s.indexAxis=i.indexAxis||ja(l,this.options),s.order=i.order||0,s.index=r,s.label=""+i.label,s.visible=this.isDatasetVisible(r),s.controller)s.controller.updateIndex(r),s.controller.linkScales();else{const c=xt.getController(l),{datasetElementType:d,dataElementType:u}=Se.datasets[l];Object.assign(c,{dataElementType:xt.getElement(u),datasetElementType:d&&xt.getElement(d)}),s.controller=new c(this,r),e.push(s.controller)}}return this._updateMetasets(),e}_resetElements(){ye(this.data.datasets,(e,o)=>{this.getDatasetMeta(o).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const o=this.config;o.update();const r=this._options=o.createResolver(o.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let d=0,u=this.data.datasets.length;d<u;d++){const{controller:f}=this.getDatasetMeta(d),h=!n&&i.indexOf(f)===-1;f.buildOrUpdateElements(h),s=Math.max(+f.getMaxOverflow(),s)}s=this._minPadding=r.layout.autoPadding?s:0,this._updateLayout(s),n||ye(i,d=>{d.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Du("z","_idx"));const{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){ye(this.scales,e=>{We.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,o=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!nd(o,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,o=this._getUniformDataChanges()||[];for(const{method:r,start:n,count:i}of o){const s=r==="_removeElements"?-i:i;fB(e,n,s)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const o=this.data.datasets.length,r=i=>new Set(e.filter(s=>s[0]===i).map((s,l)=>l+","+s.splice(1).join(","))),n=r(0);for(let i=1;i<o;i++)if(!nd(n,r(i)))return;return Array.from(n).map(i=>i.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;We.update(this,this.width,this.height,e);const o=this.chartArea,r=o.width<=0||o.height<=0;this._layers=[],ye(this.boxes,n=>{r&&n.position==="chartArea"||(n.configure&&n.configure(),this._layers.push(...n._layers()))},this),this._layers.forEach((n,i)=>{n._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let o=0,r=this.data.datasets.length;o<r;++o)this.getDatasetMeta(o).controller.configure();for(let o=0,r=this.data.datasets.length;o<r;++o)this._updateDataset(o,ao(e)?e({datasetIndex:o}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,o){const r=this.getDatasetMeta(e),n={meta:r,index:e,mode:o,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",n)!==!1&&(r.controller._update(o),n.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",n))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Rt.has(this)?this.attached&&!Rt.running(this)&&Rt.start(this):(this.draw(),Ou({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:r,height:n}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,n)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const o=this._layers;for(e=0;e<o.length&&o[e].z<=0;++e)o[e].draw(this.chartArea);for(this._drawDatasets();e<o.length;++e)o[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const o=this._sortedMetasets,r=[];let n,i;for(n=0,i=o.length;n<i;++n){const s=o[n];(!e||s.visible)&&r.push(s)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let o=e.length-1;o>=0;--o)this._drawDataset(e[o]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const o=this.ctx,r=e._clip,n=!r.disabled,i=gB(e,this.chartArea),s={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(n&&Kn(o,{left:r.left===!1?0:i.left-r.left,right:r.right===!1?this.width:i.right+r.right,top:r.top===!1?0:i.top-r.top,bottom:r.bottom===!1?this.height:i.bottom+r.bottom}),e.controller.draw(),n&&Gn(o),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(e){return Ht(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,o,r,n){const i=nu.modes[o];return typeof i=="function"?i(this,e,r,n):[]}getDatasetMeta(e){const o=this.data.datasets[e],r=this._metasets;let n=r.filter(i=>i&&i._dataset===o).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:o&&o.order||0,index:e,_dataset:o,_parsed:[],_sorted:!1},r.push(n)),n}getContext(){return this.$context||(this.$context=lo(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const o=this.data.datasets[e];if(!o)return!1;const r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!o.hidden}setDatasetVisibility(e,o){const r=this.getDatasetMeta(e);r.hidden=!o}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,o,r){const n=r?"show":"hide",i=this.getDatasetMeta(e),s=i.controller._resolveAnimations(void 0,n);Pr(o)?(i.data[o].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),s.update(i,{visible:r}),this.update(l=>l.datasetIndex===e?n:void 0))}hide(e,o){this._updateVisibility(e,o,!1)}show(e,o){this._updateVisibility(e,o,!0)}_destroyDatasetMeta(e){const o=this._metasets[e];o&&o.controller&&o.controller._destroy(),delete this._metasets[e]}_stop(){let e,o;for(this.stop(),Rt.remove(this),e=0,o=this.data.datasets.length;e<o;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:o}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),wd(e,o),this.platform.releaseContext(o),this.canvas=null,this.ctx=null),delete li[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,o=this.platform,r=(i,s)=>{o.addEventListener(this,i,s),e[i]=s},n=(i,s,l)=>{i.offsetX=s,i.offsetY=l,this._eventHandler(i)};ye(this.options.events,i=>r(i,n))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,o=this.platform,r=(c,d)=>{o.addEventListener(this,c,d),e[c]=d},n=(c,d)=>{e[c]&&(o.removeEventListener(this,c,d),delete e[c])},i=(c,d)=>{this.canvas&&this.resize(c,d)};let s;const l=()=>{n("attach",l),this.attached=!0,this.resize(),r("resize",i),r("detach",s)};s=()=>{this.attached=!1,n("resize",i),this._stop(),this._resize(0,0),r("attach",l)},o.isAttached(this.canvas)?l():s()}unbindEvents(){ye(this._listeners,(e,o)=>{this.platform.removeEventListener(this,o,e)}),this._listeners={},ye(this._responsiveListeners,(e,o)=>{this.platform.removeEventListener(this,o,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,o,r){const n=r?"set":"remove";let i,s,l,c;for(o==="dataset"&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller["_"+n+"DatasetHoverStyle"]()),l=0,c=e.length;l<c;++l){s=e[l];const d=s&&this.getDatasetMeta(s.datasetIndex).controller;d&&d[n+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const o=this._active||[],r=e.map(({datasetIndex:i,index:s})=>{const l=this.getDatasetMeta(i);if(!l)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:l.data[s],index:s}});!Hn(r,o)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,o))}notifyPlugins(e,o,r){return this._plugins.notify(this,e,o,r)}isPluginEnabled(e){return this._plugins._cache.filter(o=>o.plugin.id===e).length===1}_updateHoverStyles(e,o,r){const n=this.options.hover,i=(c,d)=>c.filter(u=>!d.some(f=>u.datasetIndex===f.datasetIndex&&u.index===f.index)),s=i(o,e),l=r?e:i(e,o);s.length&&this.updateHoverStyle(s,n.mode,!1),l.length&&n.mode&&this.updateHoverStyle(l,n.mode,!0)}_eventHandler(e,o){const r={event:e,replay:o,cancelable:!0,inChartArea:this.isPointInArea(e)},n=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,n)===!1)return;const i=this._handleEvent(e,o,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,n),(i||r.changed)&&this.render(),this}_handleEvent(e,o,r){const{_active:n=[],options:i}=this,s=o,l=this._getActiveElements(e,n,r,s),c=D_(e),d=hB(e,this._lastEvent,r,c);r&&(this._lastEvent=null,ve(i.onHover,[e,l,this],this),c&&ve(i.onClick,[e,l,this],this));const u=!Hn(l,n);return(u||o)&&(this._active=l,this._updateHoverStyles(l,n,o)),this._lastEvent=d,u}_getActiveElements(e,o,r,n){if(e.type==="mouseout")return[];if(!r)return o;const i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,n)}}j(Ot,"defaults",Se),j(Ot,"instances",li),j(Ot,"overrides",So),j(Ot,"registry",xt),j(Ot,"version",cB),j(Ot,"getChart",Tu);function Pu(){return ye(Ot.instances,t=>t._plugins.invalidate())}function mB(t,e,o){const{startAngle:r,pixelMargin:n,x:i,y:s,outerRadius:l,innerRadius:c}=e;let d=n/l;t.beginPath(),t.arc(i,s,l,r-d,o+d),c>n?(d=n/c,t.arc(i,s,c,o+d,r-d,!0)):t.arc(i,s,n,o+Me,r-Me),t.closePath(),t.clip()}function pB(t){return Ba(t,["outerStart","outerEnd","innerStart","innerEnd"])}function bB(t,e,o,r){const n=pB(t.options.borderRadius),i=(o-e)/2,s=Math.min(i,r*e/2),l=c=>{const d=(o-Math.min(i,c))*r/2;return je(c,0,Math.min(i,d))};return{outerStart:l(n.outerStart),outerEnd:l(n.outerEnd),innerStart:je(n.innerStart,0,s),innerEnd:je(n.innerEnd,0,s)}}function Jo(t,e,o,r){return{x:o+t*Math.cos(e),y:r+t*Math.sin(e)}}function di(t,e,o,r,n,i){const{x:s,y:l,startAngle:c,pixelMargin:d,innerRadius:u}=e,f=Math.max(e.outerRadius+r+o-d,0),h=u>0?u+r+o+d:0;let g=0;const m=n-c;if(r){const Y=u>0?u-r:0,I=f>0?f-r:0,z=(Y+I)/2,F=z!==0?m*z/(z+r):m;g=(m-F)/2}const p=Math.max(.001,m*f-o/Ce)/f,b=(m-p)/2,y=c+b+g,k=n-b-g,{outerStart:C,outerEnd:_,innerStart:v,innerEnd:S}=bB(e,h,f,k-y),w=f-C,x=f-_,B=y+C/w,T=k-_/x,E=h+v,O=h+S,M=y+v/E,W=k-S/O;if(t.beginPath(),i){const Y=(B+T)/2;if(t.arc(s,l,f,B,Y),t.arc(s,l,f,Y,T),_>0){const P=Jo(x,T,s,l);t.arc(P.x,P.y,_,T,k+Me)}const I=Jo(O,k,s,l);if(t.lineTo(I.x,I.y),S>0){const P=Jo(O,W,s,l);t.arc(P.x,P.y,S,k+Me,W+Math.PI)}const z=(k-S/h+(y+v/h))/2;if(t.arc(s,l,h,k-S/h,z,!0),t.arc(s,l,h,z,y+v/h,!0),v>0){const P=Jo(E,M,s,l);t.arc(P.x,P.y,v,M+Math.PI,y-Me)}const F=Jo(w,y,s,l);if(t.lineTo(F.x,F.y),C>0){const P=Jo(w,B,s,l);t.arc(P.x,P.y,C,y-Me,B)}}else{t.moveTo(s,l);const Y=Math.cos(B)*f+s,I=Math.sin(B)*f+l;t.lineTo(Y,I);const z=Math.cos(T)*f+s,F=Math.sin(T)*f+l;t.lineTo(z,F)}t.closePath()}function yB(t,e,o,r,n){const{fullCircles:i,startAngle:s,circumference:l}=e;let c=e.endAngle;if(i){di(t,e,o,r,c,n);for(let d=0;d<i;++d)t.fill();isNaN(l)||(c=s+(l%_e||_e))}return di(t,e,o,r,c,n),t.fill(),c}function kB(t,e,o,r,n){const{fullCircles:i,startAngle:s,circumference:l,options:c}=e,{borderWidth:d,borderJoinStyle:u,borderDash:f,borderDashOffset:h}=c,g=c.borderAlign==="inner";if(!d)return;t.setLineDash(f||[]),t.lineDashOffset=h,g?(t.lineWidth=d*2,t.lineJoin=u||"round"):(t.lineWidth=d,t.lineJoin=u||"bevel");let m=e.endAngle;if(i){di(t,e,o,r,m,n);for(let p=0;p<i;++p)t.stroke();isNaN(l)||(m=s+(l%_e||_e))}g&&mB(t,e,m),i||(di(t,e,o,r,m,n),t.stroke())}class Qo extends Dt{constructor(o){super();j(this,"circumference");j(this,"endAngle");j(this,"fullCircles");j(this,"innerRadius");j(this,"outerRadius");j(this,"pixelMargin");j(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,o&&Object.assign(this,o)}inRange(o,r,n){const i=this.getProps(["x","y"],n),{angle:s,distance:l}=cd(i,{x:o,y:r}),{startAngle:c,endAngle:d,innerRadius:u,outerRadius:f,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),g=(this.options.spacing+this.options.borderWidth)/2,m=se(h,d-c),p=Ar(s,c,d)&&c!==d,b=m>=_e||p,y=jt(l,u+g,f+g);return b&&y}getCenterPoint(o){const{x:r,y:n,startAngle:i,endAngle:s,innerRadius:l,outerRadius:c}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],o),{offset:d,spacing:u}=this.options,f=(i+s)/2,h=(l+c+u+d)/2;return{x:r+Math.cos(f)*h,y:n+Math.sin(f)*h}}tooltipPosition(o){return this.getCenterPoint(o)}draw(o){const{options:r,circumference:n}=this,i=(r.offset||0)/4,s=(r.spacing||0)/2,l=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=n>_e?Math.floor(n/_e):0,n===0||this.innerRadius<0||this.outerRadius<0)return;o.save();const c=(this.startAngle+this.endAngle)/2;o.translate(Math.cos(c)*i,Math.sin(c)*i);const d=1-Math.sin(Math.min(Ce,n||0)),u=i*d;o.fillStyle=r.backgroundColor,o.strokeStyle=r.borderColor,yB(o,this,u,s,l),kB(o,this,u,s,l),o.restore()}}j(Qo,"id","arc"),j(Qo,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),j(Qo,"defaultRoutes",{backgroundColor:"backgroundColor"}),j(Qo,"descriptors",{_scriptable:!0,_indexable:o=>o!=="borderDash"});function $u(t,e,o=e){t.lineCap=se(o.borderCapStyle,e.borderCapStyle),t.setLineDash(se(o.borderDash,e.borderDash)),t.lineDashOffset=se(o.borderDashOffset,e.borderDashOffset),t.lineJoin=se(o.borderJoinStyle,e.borderJoinStyle),t.lineWidth=se(o.borderWidth,e.borderWidth),t.strokeStyle=se(o.borderColor,e.borderColor)}function xB(t,e,o){t.lineTo(o.x,o.y)}function vB(t){return t.stepped?J_:t.tension||t.cubicInterpolationMode==="monotone"?Q_:xB}function Au(t,e,o={}){const r=t.length,{start:n=0,end:i=r-1}=o,{start:s,end:l}=e,c=Math.max(n,s),d=Math.min(i,l),u=n<s&&i<s||n>l&&i>l;return{count:r,start:c,loop:e.loop,ilen:d<c&&!u?r+d-c:d-c}}function wB(t,e,o,r){const{points:n,options:i}=e,{count:s,start:l,loop:c,ilen:d}=Au(n,o,r),u=vB(i);let{move:f=!0,reverse:h}=r||{},g,m,p;for(g=0;g<=d;++g)m=n[(l+(h?d-g:g))%s],!m.skip&&(f?(t.moveTo(m.x,m.y),f=!1):u(t,p,m,h,i.stepped),p=m);return c&&(m=n[(l+(h?d:0))%s],u(t,p,m,h,i.stepped)),!!c}function CB(t,e,o,r){const n=e.points,{count:i,start:s,ilen:l}=Au(n,o,r),{move:c=!0,reverse:d}=r||{};let u=0,f=0,h,g,m,p,b,y;const k=_=>(s+(d?l-_:_))%i,C=()=>{p!==b&&(t.lineTo(u,b),t.lineTo(u,p),t.lineTo(u,y))};for(c&&(g=n[k(0)],t.moveTo(g.x,g.y)),h=0;h<=l;++h){if(g=n[k(h)],g.skip)continue;const _=g.x,v=g.y,S=_|0;S===m?(v<p?p=v:v>b&&(b=v),u=(f*u+_)/++f):(C(),t.lineTo(_,v),m=S,f=0,p=b=v),y=v}C()}function Ha(t){const e=t.options,o=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!o?CB:wB}function _B(t){return t.stepped?O5:t.tension||t.cubicInterpolationMode==="monotone"?N5:No}function SB(t,e,o,r){let n=e._path;n||(n=e._path=new Path2D,e.path(n,o,r)&&n.closePath()),$u(t,e.options),t.stroke(n)}function BB(t,e,o,r){const{segments:n,options:i}=e,s=Ha(e);for(const l of n)$u(t,i,l.style),t.beginPath(),s(t,e,l,{start:o,end:o+r-1})&&t.closePath(),t.stroke()}const EB=typeof Path2D=="function";function RB(t,e,o,r){EB&&!e.options.segment?SB(t,e,o,r):BB(t,e,o,r)}class Ut extends Dt{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,o){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const n=r.spanGaps?this._loop:this._fullLoop;w5(this._points,r,e,n,o),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=V5(this,this.options.segment))}first(){const e=this.segments,o=this.points;return e.length&&o[e[0].start]}last(){const e=this.segments,o=this.points,r=e.length;return r&&o[e[r-1].end]}interpolate(e,o){const r=this.options,n=e[o],i=this.points,s=Ld(this,{property:o,start:n,end:n});if(!s.length)return;const l=[],c=_B(r);let d,u;for(d=0,u=s.length;d<u;++d){const{start:f,end:h}=s[d],g=i[f],m=i[h];if(g===m){l.push(g);continue}const p=Math.abs((n-g[o])/(m[o]-g[o])),b=c(g,m,p,r.stepped);b[o]=e[o],l.push(b)}return l.length===1?l[0]:l}pathSegment(e,o,r){return Ha(this)(e,this,o,r)}path(e,o,r){const n=this.segments,i=Ha(this);let s=this._loop;o=o||0,r=r||this.points.length-o;for(const l of n)s&=i(e,this,l,{start:o,end:o+r-1});return!!s}draw(e,o,r,n){const i=this.options||{};(this.points||[]).length&&i.borderWidth&&(e.save(),RB(e,this,r,n),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}j(Ut,"id","line"),j(Ut,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),j(Ut,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),j(Ut,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"});function Mu(t,e,o,r){const n=t.options,{[o]:i}=t.getProps([o],r);return Math.abs(e-i)<n.radius+n.hitRadius}class tn extends Dt{constructor(o){super();j(this,"parsed");j(this,"skip");j(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,o&&Object.assign(this,o)}inRange(o,r,n){const i=this.options,{x:s,y:l}=this.getProps(["x","y"],n);return Math.pow(o-s,2)+Math.pow(r-l,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(o,r){return Mu(this,o,"x",r)}inYRange(o,r){return Mu(this,o,"y",r)}getCenterPoint(o){const{x:r,y:n}=this.getProps(["x","y"],o);return{x:r,y:n}}size(o){o=o||this.options||{};let r=o.radius||0;r=Math.max(r,r&&o.hoverRadius||0);const n=r&&o.borderWidth||0;return(r+n)*2}draw(o,r){const n=this.options;this.skip||n.radius<.1||!Ht(this,r,this.size(n)/2)||(o.strokeStyle=n.borderColor,o.lineWidth=n.borderWidth,o.fillStyle=n.backgroundColor,Sa(o,n,this.x,this.y))}getRange(){const o=this.options||{};return o.radius+o.hitRadius}}j(tn,"id","point"),j(tn,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),j(tn,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function Vu(t,e){const{x:o,y:r,base:n,width:i,height:s}=t.getProps(["x","y","base","width","height"],e);let l,c,d,u,f;return t.horizontal?(f=s/2,l=Math.min(o,n),c=Math.max(o,n),d=r-f,u=r+f):(f=i/2,l=o-f,c=o+f,d=Math.min(r,n),u=Math.max(r,n)),{left:l,top:d,right:c,bottom:u}}function fo(t,e,o,r){return t?0:je(e,o,r)}function DB(t,e,o){const r=t.options.borderWidth,n=t.borderSkipped,i=_d(r);return{t:fo(n.top,i.top,0,o),r:fo(n.right,i.right,0,e),b:fo(n.bottom,i.bottom,0,o),l:fo(n.left,i.left,0,e)}}function OB(t,e,o){const{enableBorderRadius:r}=t.getProps(["enableBorderRadius"]),n=t.options.borderRadius,i=Ro(n),s=Math.min(e,o),l=t.borderSkipped,c=r||de(n);return{topLeft:fo(!c||l.top||l.left,i.topLeft,0,s),topRight:fo(!c||l.top||l.right,i.topRight,0,s),bottomLeft:fo(!c||l.bottom||l.left,i.bottomLeft,0,s),bottomRight:fo(!c||l.bottom||l.right,i.bottomRight,0,s)}}function NB(t){const e=Vu(t),o=e.right-e.left,r=e.bottom-e.top,n=DB(t,o/2,r/2),i=OB(t,o/2,r/2);return{outer:{x:e.left,y:e.top,w:o,h:r,radius:i},inner:{x:e.left+n.l,y:e.top+n.t,w:o-n.l-n.r,h:r-n.t-n.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(n.t,n.l)),topRight:Math.max(0,i.topRight-Math.max(n.t,n.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(n.b,n.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(n.b,n.r))}}}}function Ua(t,e,o,r){const n=e===null,i=o===null,l=t&&!(n&&i)&&Vu(t,r);return l&&(n||jt(e,l.left,l.right))&&(i||jt(o,l.top,l.bottom))}function TB(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}function PB(t,e){t.rect(e.x,e.y,e.w,e.h)}function qa(t,e,o={}){const r=t.x!==o.x?-e:0,n=t.y!==o.y?-e:0,i=(t.x+t.w!==o.x+o.w?e:0)-r,s=(t.y+t.h!==o.y+o.h?e:0)-n;return{x:t.x+r,y:t.y+n,w:t.w+i,h:t.h+s,radius:t.radius}}class on extends Dt{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:o,options:{borderColor:r,backgroundColor:n}}=this,{inner:i,outer:s}=NB(this),l=TB(s.radius)?Lr:PB;e.save(),(s.w!==i.w||s.h!==i.h)&&(e.beginPath(),l(e,qa(s,o,i)),e.clip(),l(e,qa(i,-o,s)),e.fillStyle=r,e.fill("evenodd")),e.beginPath(),l(e,qa(i,o)),e.fillStyle=n,e.fill(),e.restore()}inRange(e,o,r){return Ua(this,e,o,r)}inXRange(e,o){return Ua(this,e,null,o)}inYRange(e,o){return Ua(this,null,e,o)}getCenterPoint(e){const{x:o,y:r,base:n,horizontal:i}=this.getProps(["x","y","base","horizontal"],e);return{x:i?(o+n)/2:o,y:i?r:(r+n)/2}}getRange(e){return e==="x"?this.width/2:this.height/2}}j(on,"id","bar"),j(on,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),j(on,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var Fu=Object.freeze({__proto__:null,ArcElement:Qo,BarElement:on,LineElement:Ut,PointElement:tn});const Ya=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Iu=Ya.map(t=>t.replace("rgb(","rgba(").replace(")",", 0.5)"));function Lu(t){return Ya[t%Ya.length]}function zu(t){return Iu[t%Iu.length]}function $B(t,e){return t.borderColor=Lu(e),t.backgroundColor=zu(e),++e}function AB(t,e){return t.backgroundColor=t.data.map(()=>Lu(e++)),e}function MB(t,e){return t.backgroundColor=t.data.map(()=>zu(e++)),e}function VB(t){let e=0;return(o,r)=>{const n=t.getDatasetMeta(r).controller;n instanceof co?e=AB(o,e):n instanceof Go?e=MB(o,e):n&&(e=$B(o,e))}}function ju(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}function FB(t){return t&&(t.borderColor||t.backgroundColor)}function IB(){return Se.borderColor!=="rgba(0,0,0,0.1)"||Se.backgroundColor!=="rgba(0,0,0,0.1)"}var Wu={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,o){if(!o.enabled)return;const{data:{datasets:r},options:n}=t.config,{elements:i}=n,s=ju(r)||FB(n)||i&&ju(i)||IB();if(!o.forceOverride&&s)return;const l=VB(t);r.forEach(l)}};function LB(t,e,o,r,n){const i=n.samples||r;if(i>=o)return t.slice(e,e+o);const s=[],l=(o-2)/(i-2);let c=0;const d=e+o-1;let u=e,f,h,g,m,p;for(s[c++]=t[u],f=0;f<i-2;f++){let b=0,y=0,k;const C=Math.floor((f+1)*l)+1+e,_=Math.min(Math.floor((f+2)*l)+1,o)+e,v=_-C;for(k=C;k<_;k++)b+=t[k].x,y+=t[k].y;b/=v,y/=v;const S=Math.floor(f*l)+1+e,w=Math.min(Math.floor((f+1)*l)+1,o)+e,{x,y:B}=t[u];for(g=m=-1,k=S;k<w;k++)m=.5*Math.abs((x-b)*(t[k].y-B)-(x-t[k].x)*(y-B)),m>g&&(g=m,h=t[k],p=k);s[c++]=h,u=p}return s[c++]=t[d],s}function zB(t,e,o,r){let n=0,i=0,s,l,c,d,u,f,h,g,m,p;const b=[],y=e+o-1,k=t[e].x,_=t[y].x-k;for(s=e;s<e+o;++s){l=t[s],c=(l.x-k)/_*r,d=l.y;const v=c|0;if(v===u)d<m?(m=d,f=s):d>p&&(p=d,h=s),n=(i*n+l.x)/++i;else{const S=s-1;if(!fe(f)&&!fe(h)){const w=Math.min(f,h),x=Math.max(f,h);w!==g&&w!==S&&b.push({...t[w],x:n}),x!==g&&x!==S&&b.push({...t[x],x:n})}s>0&&S!==g&&b.push(t[S]),b.push(l),u=v,i=0,m=p=d,f=h=g=s}}return b}function Hu(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function Uu(t){t.data.datasets.forEach(e=>{Hu(e)})}function jB(t,e){const o=e.length;let r=0,n;const{iScale:i}=t,{min:s,max:l,minDefined:c,maxDefined:d}=i.getUserBounds();return c&&(r=je(Wt(e,i.axis,s).lo,0,o-1)),d?n=je(Wt(e,i.axis,l).hi+1,r,o)-r:n=o-r,{start:r,count:n}}var qu={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,o)=>{if(!o.enabled){Uu(t);return}const r=t.width;t.data.datasets.forEach((n,i)=>{const{_data:s,indexAxis:l}=n,c=t.getDatasetMeta(i),d=s||n.data;if(zr([l,t.options.indexAxis])==="y"||!c.controller.supportsDecimation)return;const u=t.scales[c.xAxisID];if(u.type!=="linear"&&u.type!=="time"||t.options.parsing)return;let{start:f,count:h}=jB(c,d);const g=o.threshold||4*r;if(h<=g){Hu(n);return}fe(s)&&(n._data=d,delete n.data,Object.defineProperty(n,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(p){this._data=p}}));let m;switch(o.algorithm){case"lttb":m=LB(d,f,h,r,o);break;case"min-max":m=zB(d,f,h,r);break;default:throw new Error(`Unsupported decimation algorithm '${o.algorithm}'`)}n._decimated=m})},destroy(t){Uu(t)}};function WB(t,e,o){const r=t.segments,n=t.points,i=e.points,s=[];for(const l of r){let{start:c,end:d}=l;d=Ka(c,d,n);const u=Xa(o,n[c],n[d],l.loop);if(!e.segments){s.push({source:l,target:u,start:n[c],end:n[d]});continue}const f=Ld(e,u);for(const h of f){const g=Xa(o,i[h.start],i[h.end],h.loop),m=Id(l,n,g);for(const p of m)s.push({source:p,target:h,start:{[o]:Yu(u,g,"start",Math.max)},end:{[o]:Yu(u,g,"end",Math.min)}})}}return s}function Xa(t,e,o,r){if(r)return;let n=e[t],i=o[t];return t==="angle"&&(n=at(n),i=at(i)),{property:t,start:n,end:i}}function HB(t,e){const{x:o=null,y:r=null}=t||{},n=e.points,i=[];return e.segments.forEach(({start:s,end:l})=>{l=Ka(s,l,n);const c=n[s],d=n[l];r!==null?(i.push({x:c.x,y:r}),i.push({x:d.x,y:r})):o!==null&&(i.push({x:o,y:c.y}),i.push({x:o,y:d.y}))}),i}function Ka(t,e,o){for(;e>t;e--){const r=o[e];if(!isNaN(r.x)&&!isNaN(r.y))break}return e}function Yu(t,e,o,r){return t&&e?r(t[o],e[o]):t?t[o]:e?e[o]:0}function Xu(t,e){let o=[],r=!1;return Re(t)?(r=!0,o=t):o=HB(t,e),o.length?new Ut({points:o,options:{tension:0},_loop:r,_fullLoop:r}):null}function Ku(t){return t&&t.fill!==!1}function UB(t,e,o){let n=t[e].fill;const i=[e];let s;if(!o)return n;for(;n!==!1&&i.indexOf(n)===-1;){if(!$e(n))return n;if(s=t[n],!s)return!1;if(s.visible)return n;i.push(n),n=s.fill}return!1}function qB(t,e,o){const r=GB(t);if(de(r))return isNaN(r.value)?!1:r;let n=parseFloat(r);return $e(n)&&Math.floor(n)===n?YB(r[0],e,n,o):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function YB(t,e,o,r){return(t==="-"||t==="+")&&(o=e+o),o===e||o<0||o>=r?!1:o}function XB(t,e){let o=null;return t==="start"?o=e.bottom:t==="end"?o=e.top:de(t)?o=e.getPixelForValue(t.value):e.getBasePixel&&(o=e.getBasePixel()),o}function KB(t,e,o){let r;return t==="start"?r=o:t==="end"?r=e.options.reverse?e.min:e.max:de(t)?r=t.value:r=e.getBaseValue(),r}function GB(t){const e=t.options,o=e.fill;let r=se(o&&o.target,o);return r===void 0&&(r=!!e.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function JB(t){const{scale:e,index:o,line:r}=t,n=[],i=r.segments,s=r.points,l=QB(e,o);l.push(Xu({x:null,y:e.bottom},r));for(let c=0;c<i.length;c++){const d=i[c];for(let u=d.start;u<=d.end;u++)ZB(n,s[u],l)}return new Ut({points:n,options:{}})}function QB(t,e){const o=[],r=t.getMatchingVisibleMetas("line");for(let n=0;n<r.length;n++){const i=r[n];if(i.index===e)break;i.hidden||o.unshift(i.dataset)}return o}function ZB(t,e,o){const r=[];for(let n=0;n<o.length;n++){const i=o[n],{first:s,last:l,point:c}=e2(i,e,"x");if(!(!c||s&&l)){if(s)r.unshift(c);else if(t.push(c),!l)break}}t.push(...r)}function e2(t,e,o){const r=t.interpolate(e,o);if(!r)return{};const n=r[o],i=t.segments,s=t.points;let l=!1,c=!1;for(let d=0;d<i.length;d++){const u=i[d],f=s[u.start][o],h=s[u.end][o];if(jt(n,f,h)){l=n===f,c=n===h;break}}return{first:l,last:c,point:r}}class Gu{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,o,r){const{x:n,y:i,radius:s}=this;return o=o||{start:0,end:_e},e.arc(n,i,s,o.end,o.start,!0),!r.bounds}interpolate(e){const{x:o,y:r,radius:n}=this,i=e.angle;return{x:o+Math.cos(i)*n,y:r+Math.sin(i)*n,angle:i}}}function t2(t){const{chart:e,fill:o,line:r}=t;if($e(o))return o2(e,o);if(o==="stack")return JB(t);if(o==="shape")return!0;const n=r2(t);return n instanceof Gu?n:Xu(n,r)}function o2(t,e){const o=t.getDatasetMeta(e);return o&&t.isDatasetVisible(e)?o.dataset:null}function r2(t){return(t.scale||{}).getPointPositionForValue?i2(t):n2(t)}function n2(t){const{scale:e={},fill:o}=t,r=XB(o,e);if($e(r)){const n=e.isHorizontal();return{x:n?r:null,y:n?null:r}}return null}function i2(t){const{scale:e,fill:o}=t,r=e.options,n=e.getLabels().length,i=r.reverse?e.max:e.min,s=KB(o,e,i),l=[];if(r.grid.circular){const c=e.getPointPositionForValue(0,i);return new Gu({x:c.x,y:c.y,radius:e.getDistanceFromCenterForValue(s)})}for(let c=0;c<n;++c)l.push(e.getPointPositionForValue(c,s));return l}function Ga(t,e,o){const r=t2(e),{line:n,scale:i,axis:s}=e,l=n.options,c=l.fill,d=l.backgroundColor,{above:u=d,below:f=d}=c||{};r&&n.points.length&&(Kn(t,o),a2(t,{line:n,target:r,above:u,below:f,area:o,scale:i,axis:s}),Gn(t))}function a2(t,e){const{line:o,target:r,above:n,below:i,area:s,scale:l}=e,c=o._loop?"angle":e.axis;t.save(),c==="x"&&i!==n&&(Ju(t,r,s.top),Qu(t,{line:o,target:r,color:n,scale:l,property:c}),t.restore(),t.save(),Ju(t,r,s.bottom)),Qu(t,{line:o,target:r,color:i,scale:l,property:c}),t.restore()}function Ju(t,e,o){const{segments:r,points:n}=e;let i=!0,s=!1;t.beginPath();for(const l of r){const{start:c,end:d}=l,u=n[c],f=n[Ka(c,d,n)];i?(t.moveTo(u.x,u.y),i=!1):(t.lineTo(u.x,o),t.lineTo(u.x,u.y)),s=!!e.pathSegment(t,l,{move:s}),s?t.closePath():t.lineTo(f.x,o)}t.lineTo(e.first().x,o),t.closePath(),t.clip()}function Qu(t,e){const{line:o,target:r,property:n,color:i,scale:s}=e,l=WB(o,r,n);for(const{source:c,target:d,start:u,end:f}of l){const{style:{backgroundColor:h=i}={}}=c,g=r!==!0;t.save(),t.fillStyle=h,s2(t,s,g&&Xa(n,u,f)),t.beginPath();const m=!!o.pathSegment(t,c);let p;if(g){m?t.closePath():Zu(t,r,f,n);const b=!!r.pathSegment(t,d,{move:m,reverse:!0});p=m&&b,p||Zu(t,r,u,n)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function s2(t,e,o){const{top:r,bottom:n}=e.chart.chartArea,{property:i,start:s,end:l}=o||{};i==="x"&&(t.beginPath(),t.rect(s,r,l-s,n-r),t.clip())}function Zu(t,e,o,r){const n=e.interpolate(o,r);n&&t.lineTo(n.x,n.y)}var ef={id:"filler",afterDatasetsUpdate(t,e,o){const r=(t.data.datasets||[]).length,n=[];let i,s,l,c;for(s=0;s<r;++s)i=t.getDatasetMeta(s),l=i.dataset,c=null,l&&l.options&&l instanceof Ut&&(c={visible:t.isDatasetVisible(s),index:s,fill:qB(l,s,r),chart:t,axis:i.controller.options.indexAxis,scale:i.vScale,line:l}),i.$filler=c,n.push(c);for(s=0;s<r;++s)c=n[s],!(!c||c.fill===!1)&&(c.fill=UB(n,s,o.propagate))},beforeDraw(t,e,o){const r=o.drawTime==="beforeDraw",n=t.getSortedVisibleDatasetMetas(),i=t.chartArea;for(let s=n.length-1;s>=0;--s){const l=n[s].$filler;l&&(l.line.updateControlPoints(i,l.axis),r&&l.fill&&Ga(t.ctx,l,i))}},beforeDatasetsDraw(t,e,o){if(o.drawTime!=="beforeDatasetsDraw")return;const r=t.getSortedVisibleDatasetMetas();for(let n=r.length-1;n>=0;--n){const i=r[n].$filler;Ku(i)&&Ga(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,o){const r=e.meta.$filler;!Ku(r)||o.drawTime!=="beforeDatasetDraw"||Ga(t.ctx,r,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const tf=(t,e)=>{let{boxHeight:o=e,boxWidth:r=e}=t;return t.usePointStyle&&(o=Math.min(o,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:o,itemHeight:Math.max(e,o)}},l2=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class of extends Dt{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,o,r){this.maxWidth=e,this.maxHeight=o,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let o=ve(e.generateLabels,[this.chart],this)||[];e.filter&&(o=o.filter(r=>e.filter(r,this.chart.data))),e.sort&&(o=o.sort((r,n)=>e.sort(r,n,this.chart.data))),this.options.reverse&&o.reverse(),this.legendItems=o}fit(){const{options:e,ctx:o}=this;if(!e.display){this.width=this.height=0;return}const r=e.labels,n=Ie(r.font),i=n.size,s=this._computeTitleHeight(),{boxWidth:l,itemHeight:c}=tf(r,i);let d,u;o.font=n.string,this.isHorizontal()?(d=this.maxWidth,u=this._fitRows(s,i,l,c)+10):(u=this.maxHeight,d=this._fitCols(s,n,l,c)+10),this.width=Math.min(d,e.maxWidth||this.maxWidth),this.height=Math.min(u,e.maxHeight||this.maxHeight)}_fitRows(e,o,r,n){const{ctx:i,maxWidth:s,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],d=this.lineWidths=[0],u=n+l;let f=e;i.textAlign="left",i.textBaseline="middle";let h=-1,g=-u;return this.legendItems.forEach((m,p)=>{const b=r+o/2+i.measureText(m.text).width;(p===0||d[d.length-1]+b+2*l>s)&&(f+=u,d[d.length-(p>0?0:1)]=0,g+=u,h++),c[p]={left:0,top:g,row:h,width:b,height:n},d[d.length-1]+=b+l}),f}_fitCols(e,o,r,n){const{ctx:i,maxHeight:s,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],d=this.columnSizes=[],u=s-e;let f=l,h=0,g=0,m=0,p=0;return this.legendItems.forEach((b,y)=>{const{itemWidth:k,itemHeight:C}=c2(r,o,i,b,n);y>0&&g+C+2*l>u&&(f+=h+l,d.push({width:h,height:g}),m+=h+l,p++,h=g=0),c[y]={left:m,top:g,col:p,width:k,height:C},h=Math.max(h,k),g+=C+l}),f+=h,d.push({width:h,height:g}),f}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:o,options:{align:r,labels:{padding:n},rtl:i}}=this,s=Ko(i,this.left,this.width);if(this.isHorizontal()){let l=0,c=qe(r,this.left+n,this.right-this.lineWidths[l]);for(const d of o)l!==d.row&&(l=d.row,c=qe(r,this.left+n,this.right-this.lineWidths[l])),d.top+=this.top+e+n,d.left=s.leftForLtr(s.x(c),d.width),c+=d.width+n}else{let l=0,c=qe(r,this.top+e+n,this.bottom-this.columnSizes[l].height);for(const d of o)d.col!==l&&(l=d.col,c=qe(r,this.top+e+n,this.bottom-this.columnSizes[l].height)),d.top=c,d.left+=this.left+n,d.left=s.leftForLtr(s.x(d.left),d.width),c+=d.height+n}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Kn(e,this),this._draw(),Gn(e)}}_draw(){const{options:e,columnSizes:o,lineWidths:r,ctx:n}=this,{align:i,labels:s}=e,l=Se.color,c=Ko(e.rtl,this.left,this.width),d=Ie(s.font),{padding:u}=s,f=d.size,h=f/2;let g;this.drawTitle(),n.textAlign=c.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=d.string;const{boxWidth:m,boxHeight:p,itemHeight:b}=tf(s,f),y=function(S,w,x){if(isNaN(m)||m<=0||isNaN(p)||p<0)return;n.save();const B=se(x.lineWidth,1);if(n.fillStyle=se(x.fillStyle,l),n.lineCap=se(x.lineCap,"butt"),n.lineDashOffset=se(x.lineDashOffset,0),n.lineJoin=se(x.lineJoin,"miter"),n.lineWidth=B,n.strokeStyle=se(x.strokeStyle,l),n.setLineDash(se(x.lineDash,[])),s.usePointStyle){const T={radius:p*Math.SQRT2/2,pointStyle:x.pointStyle,rotation:x.rotation,borderWidth:B},E=c.xPlus(S,m/2),O=w+h;Cd(n,T,E,O,s.pointStyleWidth&&m)}else{const T=w+Math.max((f-p)/2,0),E=c.leftForLtr(S,m),O=Ro(x.borderRadius);n.beginPath(),Object.values(O).some(M=>M!==0)?Lr(n,{x:E,y:T,w:m,h:p,radius:O}):n.rect(E,T,m,p),n.fill(),B!==0&&n.stroke()}n.restore()},k=function(S,w,x){Eo(n,x.text,S,w+b/2,d,{strikethrough:x.hidden,textAlign:c.textAlign(x.textAlign)})},C=this.isHorizontal(),_=this._computeTitleHeight();C?g={x:qe(i,this.left+u,this.right-r[0]),y:this.top+u+_,line:0}:g={x:this.left+u,y:qe(i,this.top+_+u,this.bottom-o[0].height),line:0},Ad(this.ctx,e.textDirection);const v=b+u;this.legendItems.forEach((S,w)=>{n.strokeStyle=S.fontColor,n.fillStyle=S.fontColor;const x=n.measureText(S.text).width,B=c.textAlign(S.textAlign||(S.textAlign=s.textAlign)),T=m+h+x;let E=g.x,O=g.y;c.setWidth(this.width),C?w>0&&E+T+u>this.right&&(O=g.y+=v,g.line++,E=g.x=qe(i,this.left+u,this.right-r[g.line])):w>0&&O+v>this.bottom&&(E=g.x=E+o[g.line].width+u,g.line++,O=g.y=qe(i,this.top+_+u,this.bottom-o[g.line].height));const M=c.x(E);if(y(M,O,S),E=L_(B,E+m+h,C?E+T:this.right,e.rtl),k(c.x(E),O,S),C)g.x+=T+u;else if(typeof S.text!="string"){const W=d.lineHeight;g.y+=rf(S,W)+u}else g.y+=v}),Md(this.ctx,e.textDirection)}drawTitle(){const e=this.options,o=e.title,r=Ie(o.font),n=Ye(o.padding);if(!o.display)return;const i=Ko(e.rtl,this.left,this.width),s=this.ctx,l=o.position,c=r.size/2,d=n.top+c;let u,f=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),u=this.top+d,f=qe(e.align,f,this.right-h);else{const m=this.columnSizes.reduce((p,b)=>Math.max(p,b.height),0);u=d+qe(e.align,this.top,this.bottom-m-e.labels.padding-this._computeTitleHeight())}const g=qe(l,f,f+h);s.textAlign=i.textAlign(xa(l)),s.textBaseline="middle",s.strokeStyle=o.color,s.fillStyle=o.color,s.font=r.string,Eo(s,o.text,g,u,r)}_computeTitleHeight(){const e=this.options.title,o=Ie(e.font),r=Ye(e.padding);return e.display?o.lineHeight+r.height:0}_getLegendItemAt(e,o){let r,n,i;if(jt(e,this.left,this.right)&&jt(o,this.top,this.bottom)){for(i=this.legendHitBoxes,r=0;r<i.length;++r)if(n=i[r],jt(e,n.left,n.left+n.width)&&jt(o,n.top,n.top+n.height))return this.legendItems[r]}return null}handleEvent(e){const o=this.options;if(!f2(e.type,o))return;const r=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const n=this._hoveredItem,i=l2(n,r);n&&!i&&ve(o.onLeave,[e,n,this],this),this._hoveredItem=r,r&&!i&&ve(o.onHover,[e,r,this],this)}else r&&ve(o.onClick,[e,r,this],this)}}function c2(t,e,o,r,n){const i=d2(r,t,e,o),s=u2(n,r,e.lineHeight);return{itemWidth:i,itemHeight:s}}function d2(t,e,o,r){let n=t.text;return n&&typeof n!="string"&&(n=n.reduce((i,s)=>i.length>s.length?i:s)),e+o.size/2+r.measureText(n).width}function u2(t,e,o){let r=t;return typeof e.text!="string"&&(r=rf(e,o)),r}function rf(t,e){const o=t.text?t.text.length:0;return e*o}function f2(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var nf={id:"legend",_element:of,start(t,e,o){const r=t.legend=new of({ctx:t.ctx,options:o,chart:t});We.configure(t,r,o),We.addBox(t,r)},stop(t){We.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,o){const r=t.legend;We.configure(t,r,o),r.options=o},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,o){const r=e.datasetIndex,n=o.chart;n.isDatasetVisible(r)?(n.hide(r),e.hidden=!0):(n.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:o,pointStyle:r,textAlign:n,color:i,useBorderRadius:s,borderRadius:l}}=t.legend.options;return t._getSortedDatasetMetas().map(c=>{const d=c.controller.getStyle(o?0:void 0),u=Ye(d.borderWidth);return{text:e[c.index].label,fillStyle:d.backgroundColor,fontColor:i,hidden:!c.visible,lineCap:d.borderCapStyle,lineDash:d.borderDash,lineDashOffset:d.borderDashOffset,lineJoin:d.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:d.borderColor,pointStyle:r||d.pointStyle,rotation:d.rotation,textAlign:n||d.textAlign,borderRadius:s&&(l||d.borderRadius),datasetIndex:c.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class Ja extends Dt{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,o){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=o;const n=Re(r.text)?r.text.length:1;this._padding=Ye(r.padding);const i=n*Ie(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:o,left:r,bottom:n,right:i,options:s}=this,l=s.align;let c=0,d,u,f;return this.isHorizontal()?(u=qe(l,r,i),f=o+e,d=i-r):(s.position==="left"?(u=r+e,f=qe(l,n,o),c=Ce*-.5):(u=i-e,f=qe(l,o,n),c=Ce*.5),d=n-o),{titleX:u,titleY:f,maxWidth:d,rotation:c}}draw(){const e=this.ctx,o=this.options;if(!o.display)return;const r=Ie(o.font),i=r.lineHeight/2+this._padding.top,{titleX:s,titleY:l,maxWidth:c,rotation:d}=this._drawArgs(i);Eo(e,o.text,0,0,r,{color:o.color,maxWidth:c,rotation:d,textAlign:xa(o.align),textBaseline:"middle",translation:[s,l]})}}function h2(t,e){const o=new Ja({ctx:t.ctx,options:e,chart:t});We.configure(t,o,e),We.addBox(t,o),t.titleBlock=o}var af={id:"title",_element:Ja,start(t,e,o){h2(t,o)},stop(t){const e=t.titleBlock;We.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,o){const r=t.titleBlock;We.configure(t,r,o),r.options=o},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ui=new WeakMap;var sf={id:"subtitle",start(t,e,o){const r=new Ja({ctx:t.ctx,options:o,chart:t});We.configure(t,r,o),We.addBox(t,r),ui.set(t,r)},stop(t){We.removeBox(t,ui.get(t)),ui.delete(t)},beforeUpdate(t,e,o){const r=ui.get(t);We.configure(t,r,o),r.options=o},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const rn={average(t){if(!t.length)return!1;let e,o,r=new Set,n=0,i=0;for(e=0,o=t.length;e<o;++e){const l=t[e].element;if(l&&l.hasValue()){const c=l.tooltipPosition();r.add(c.x),n+=c.y,++i}}return i===0||r.size===0?!1:{x:[...r].reduce((l,c)=>l+c)/r.size,y:n/i}},nearest(t,e){if(!t.length)return!1;let o=e.x,r=e.y,n=Number.POSITIVE_INFINITY,i,s,l;for(i=0,s=t.length;i<s;++i){const c=t[i].element;if(c&&c.hasValue()){const d=c.getCenterPoint(),u=ya(e,d);u<n&&(n=u,l=c)}}if(l){const c=l.tooltipPosition();o=c.x,r=c.y}return{x:o,y:r}}};function Nt(t,e){return e&&(Re(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function qt(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
|
|
181
181
|
`)>-1?t.split(`
|
|
182
|
-
`):t}function m2(t,e){const{element:o,datasetIndex:r,index:n}=e,i=t.getDatasetMeta(r).controller,{label:s,value:l}=i.getLabelAndValue(n);return{chart:t,label:s,parsed:i.getParsed(n),raw:t.data.datasets[r].data[n],formattedValue:l,dataset:i.getDataset(),dataIndex:n,datasetIndex:r,element:o}}function lf(t,e){const o=t.chart.ctx,{body:r,footer:n,title:i}=t,{boxWidth:s,boxHeight:l}=e,c=Ie(e.bodyFont),d=Ie(e.titleFont),u=Ie(e.footerFont),f=i.length,h=n.length,g=r.length,m=Ye(e.padding);let p=m.height,b=0,y=r.reduce((_,v)=>_+v.before.length+v.lines.length+v.after.length,0);if(y+=t.beforeBody.length+t.afterBody.length,f&&(p+=f*d.lineHeight+(f-1)*e.titleSpacing+e.titleMarginBottom),y){const _=e.displayColors?Math.max(l,c.lineHeight):c.lineHeight;p+=g*_+(y-g)*c.lineHeight+(y-1)*e.bodySpacing}h&&(p+=e.footerMarginTop+h*u.lineHeight+(h-1)*e.footerSpacing);let k=0;const C=function(_){b=Math.max(b,o.measureText(_).width+k)};return o.save(),o.font=d.string,ye(t.title,C),o.font=c.string,ye(t.beforeBody.concat(t.afterBody),C),k=e.displayColors?s+2+e.boxPadding:0,ye(r,_=>{ye(_.before,C),ye(_.lines,C),ye(_.after,C)}),k=0,o.font=u.string,ye(t.footer,C),o.restore(),b+=m.width,{width:b,height:p}}function p2(t,e){const{y:o,height:r}=e;return o<r/2?"top":o>t.height-r/2?"bottom":"center"}function b2(t,e,o,r){const{x:n,width:i}=r,s=o.caretSize+o.caretPadding;if(t==="left"&&n+i+s>e.width||t==="right"&&n-i-s<0)return!0}function y2(t,e,o,r){const{x:n,width:i}=o,{width:s,chartArea:{left:l,right:c}}=t;let d="center";return r==="center"?d=n<=(l+c)/2?"left":"right":n<=i/2?d="left":n>=s-i/2&&(d="right"),b2(d,t,e,o)&&(d="center"),d}function cf(t,e,o){const r=o.yAlign||e.yAlign||p2(t,o);return{xAlign:o.xAlign||e.xAlign||y2(t,e,o,r),yAlign:r}}function k2(t,e){let{x:o,width:r}=t;return e==="right"?o-=r:e==="center"&&(o-=r/2),o}function x2(t,e,o){let{y:r,height:n}=t;return e==="top"?r+=o:e==="bottom"?r-=n+o:r-=n/2,r}function df(t,e,o,r){const{caretSize:n,caretPadding:i,cornerRadius:s}=t,{xAlign:l,yAlign:c}=o,d=n+i,{topLeft:u,topRight:f,bottomLeft:h,bottomRight:g}=Ro(s);let m=k2(e,l);const p=x2(e,c,d);return c==="center"?l==="left"?m+=d:l==="right"&&(m-=d):l==="left"?m-=Math.max(u,h)+n:l==="right"&&(m+=Math.max(f,g)+n),{x:je(m,0,r.width-e.width),y:je(p,0,r.height-e.height)}}function fi(t,e,o){const r=Ye(o.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-r.right:t.x+r.left}function uf(t){return Nt([],qt(t))}function v2(t,e,o){return lo(t,{tooltip:e,tooltipItems:o,type:"tooltip"})}function ff(t,e){const o=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return o?t.override(o):t}const hf={beforeTitle:zt,title(t){if(t.length>0){const e=t[0],o=e.chart.data.labels,r=o?o.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return o[e.dataIndex]}return""},afterTitle:zt,beforeBody:zt,beforeLabel:zt,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const o=t.formattedValue;return fe(o)||(e+=o),e},labelColor(t){const o=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:o.borderColor,backgroundColor:o.backgroundColor,borderWidth:o.borderWidth,borderDash:o.borderDash,borderDashOffset:o.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const o=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:o.pointStyle,rotation:o.rotation}},afterLabel:zt,afterBody:zt,beforeFooter:zt,footer:zt,afterFooter:zt};function et(t,e,o,r){const n=t[e].call(o,r);return typeof n>"u"?hf[e].call(o,r):n}class Za extends Dt{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const o=this.chart,r=this.options.setContext(this.getContext()),n=r.enabled&&o.options.animation&&r.animations,i=new Pa(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=v2(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,o){const{callbacks:r}=o,n=et(r,"beforeTitle",this,e),i=et(r,"title",this,e),s=et(r,"afterTitle",this,e);let l=[];return l=Nt(l,qt(n)),l=Nt(l,qt(i)),l=Nt(l,qt(s)),l}getBeforeBody(e,o){return uf(et(o.callbacks,"beforeBody",this,e))}getBody(e,o){const{callbacks:r}=o,n=[];return ye(e,i=>{const s={before:[],lines:[],after:[]},l=ff(r,i);Nt(s.before,qt(et(l,"beforeLabel",this,i))),Nt(s.lines,et(l,"label",this,i)),Nt(s.after,qt(et(l,"afterLabel",this,i))),n.push(s)}),n}getAfterBody(e,o){return uf(et(o.callbacks,"afterBody",this,e))}getFooter(e,o){const{callbacks:r}=o,n=et(r,"beforeFooter",this,e),i=et(r,"footer",this,e),s=et(r,"afterFooter",this,e);let l=[];return l=Nt(l,qt(n)),l=Nt(l,qt(i)),l=Nt(l,qt(s)),l}_createItems(e){const o=this._active,r=this.chart.data,n=[],i=[],s=[];let l=[],c,d;for(c=0,d=o.length;c<d;++c)l.push(m2(this.chart,o[c]));return e.filter&&(l=l.filter((u,f,h)=>e.filter(u,f,h,r))),e.itemSort&&(l=l.sort((u,f)=>e.itemSort(u,f,r))),ye(l,u=>{const f=ff(e.callbacks,u);n.push(et(f,"labelColor",this,u)),i.push(et(f,"labelPointStyle",this,u)),s.push(et(f,"labelTextColor",this,u))}),this.labelColors=n,this.labelPointStyles=i,this.labelTextColors=s,this.dataPoints=l,l}update(e,o){const r=this.options.setContext(this.getContext()),n=this._active;let i,s=[];if(!n.length)this.opacity!==0&&(i={opacity:0});else{const l=rn[r.position].call(this,n,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);const c=this._size=lf(this,r),d=Object.assign({},l,c),u=cf(this.chart,r,d),f=df(r,d,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,i={opacity:1,x:f.x,y:f.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=s,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:o})}drawCaret(e,o,r,n){const i=this.getCaretPosition(e,r,n);o.lineTo(i.x1,i.y1),o.lineTo(i.x2,i.y2),o.lineTo(i.x3,i.y3)}getCaretPosition(e,o,r){const{xAlign:n,yAlign:i}=this,{caretSize:s,cornerRadius:l}=r,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:f}=Ro(l),{x:h,y:g}=e,{width:m,height:p}=o;let b,y,k,C,_,v;return i==="center"?(_=g+p/2,n==="left"?(b=h,y=b-s,C=_+s,v=_-s):(b=h+m,y=b+s,C=_-s,v=_+s),k=b):(n==="left"?y=h+Math.max(c,u)+s:n==="right"?y=h+m-Math.max(d,f)-s:y=this.caretX,i==="top"?(C=g,_=C-s,b=y-s,k=y+s):(C=g+p,_=C+s,b=y+s,k=y-s),v=C),{x1:b,x2:y,x3:k,y1:C,y2:_,y3:v}}drawTitle(e,o,r){const n=this.title,i=n.length;let s,l,c;if(i){const d=Ko(r.rtl,this.x,this.width);for(e.x=fi(this,r.titleAlign,r),o.textAlign=d.textAlign(r.titleAlign),o.textBaseline="middle",s=Ie(r.titleFont),l=r.titleSpacing,o.fillStyle=r.titleColor,o.font=s.string,c=0;c<i;++c)o.fillText(n[c],d.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+l,c+1===i&&(e.y+=r.titleMarginBottom-l)}}_drawColorBox(e,o,r,n,i){const s=this.labelColors[r],l=this.labelPointStyles[r],{boxHeight:c,boxWidth:d}=i,u=Ie(i.bodyFont),f=fi(this,"left",i),h=n.x(f),g=c<u.lineHeight?(u.lineHeight-c)/2:0,m=o.y+g;if(i.usePointStyle){const p={radius:Math.min(d,c)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},b=n.leftForLtr(h,d)+d/2,y=m+c/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,Ba(e,p,b,y),e.strokeStyle=s.borderColor,e.fillStyle=s.backgroundColor,Ba(e,p,b,y)}else{e.lineWidth=de(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,e.strokeStyle=s.borderColor,e.setLineDash(s.borderDash||[]),e.lineDashOffset=s.borderDashOffset||0;const p=n.leftForLtr(h,d),b=n.leftForLtr(n.xPlus(h,1),d-2),y=Ro(s.borderRadius);Object.values(y).some(k=>k!==0)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,Lr(e,{x:p,y:m,w:d,h:c,radius:y}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),Lr(e,{x:b,y:m+1,w:d-2,h:c-2,radius:y}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(p,m,d,c),e.strokeRect(p,m,d,c),e.fillStyle=s.backgroundColor,e.fillRect(b,m+1,d-2,c-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,o,r){const{body:n}=this,{bodySpacing:i,bodyAlign:s,displayColors:l,boxHeight:c,boxWidth:d,boxPadding:u}=r,f=Ie(r.bodyFont);let h=f.lineHeight,g=0;const m=Ko(r.rtl,this.x,this.width),p=function(x){o.fillText(x,m.x(e.x+g),e.y+h/2),e.y+=h+i},b=m.textAlign(s);let y,k,C,_,v,S,w;for(o.textAlign=s,o.textBaseline="middle",o.font=f.string,e.x=fi(this,b,r),o.fillStyle=r.bodyColor,ye(this.beforeBody,p),g=l&&b!=="right"?s==="center"?d/2+u:d+2+u:0,_=0,S=n.length;_<S;++_){for(y=n[_],k=this.labelTextColors[_],o.fillStyle=k,ye(y.before,p),C=y.lines,l&&C.length&&(this._drawColorBox(o,e,_,m,r),h=Math.max(f.lineHeight,c)),v=0,w=C.length;v<w;++v)p(C[v]),h=f.lineHeight;ye(y.after,p)}g=0,h=f.lineHeight,ye(this.afterBody,p),e.y-=i}drawFooter(e,o,r){const n=this.footer,i=n.length;let s,l;if(i){const c=Ko(r.rtl,this.x,this.width);for(e.x=fi(this,r.footerAlign,r),e.y+=r.footerMarginTop,o.textAlign=c.textAlign(r.footerAlign),o.textBaseline="middle",s=Ie(r.footerFont),o.fillStyle=r.footerColor,o.font=s.string,l=0;l<i;++l)o.fillText(n[l],c.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+r.footerSpacing}}drawBackground(e,o,r,n){const{xAlign:i,yAlign:s}=this,{x:l,y:c}=e,{width:d,height:u}=r,{topLeft:f,topRight:h,bottomLeft:g,bottomRight:m}=Ro(n.cornerRadius);o.fillStyle=n.backgroundColor,o.strokeStyle=n.borderColor,o.lineWidth=n.borderWidth,o.beginPath(),o.moveTo(l+f,c),s==="top"&&this.drawCaret(e,o,r,n),o.lineTo(l+d-h,c),o.quadraticCurveTo(l+d,c,l+d,c+h),s==="center"&&i==="right"&&this.drawCaret(e,o,r,n),o.lineTo(l+d,c+u-m),o.quadraticCurveTo(l+d,c+u,l+d-m,c+u),s==="bottom"&&this.drawCaret(e,o,r,n),o.lineTo(l+g,c+u),o.quadraticCurveTo(l,c+u,l,c+u-g),s==="center"&&i==="left"&&this.drawCaret(e,o,r,n),o.lineTo(l,c+f),o.quadraticCurveTo(l,c,l+f,c),o.closePath(),o.fill(),n.borderWidth>0&&o.stroke()}_updateAnimationTarget(e){const o=this.chart,r=this.$animations,n=r&&r.x,i=r&&r.y;if(n||i){const s=rn[e.position].call(this,this._active,this._eventPosition);if(!s)return;const l=this._size=lf(this,e),c=Object.assign({},s,this._size),d=cf(o,e,c),u=df(e,c,d,o);(n._to!==u.x||i._to!==u.y)&&(this.xAlign=d.xAlign,this.yAlign=d.yAlign,this.width=l.width,this.height=l.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(e){const o=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(o);const n={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const s=Ye(o.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;o.enabled&&l&&(e.save(),e.globalAlpha=r,this.drawBackground(i,e,n,o),Ad(e,o.textDirection),i.y+=s.top,this.drawTitle(i,e,o),this.drawBody(i,e,o),this.drawFooter(i,e,o),Md(e,o.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,o){const r=this._active,n=e.map(({datasetIndex:l,index:c})=>{const d=this.chart.getDatasetMeta(l);if(!d)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:d.data[c],index:c}}),i=!Hn(r,n),s=this._positionChanged(n,o);(i||s)&&(this._active=n,this._eventPosition=o,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,o,r=!0){if(o&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,i=this._active||[],s=this._getActiveElements(e,i,o,r),l=this._positionChanged(s,e),c=o||!Hn(s,i)||l;return c&&(this._active=s,(n.enabled||n.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,o))),c}_getActiveElements(e,o,r,n){const i=this.options;if(e.type==="mouseout")return[];if(!n)return o.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);const s=this.chart.getElementsAtEventForMode(e,i.mode,i,r);return i.reverse&&s.reverse(),s}_positionChanged(e,o){const{caretX:r,caretY:n,options:i}=this,s=rn[i.position].call(this,e,o);return s!==!1&&(r!==s.x||n!==s.y)}}j(Za,"positioners",rn);var gf={id:"tooltip",_element:Za,positioners:rn,afterInit(t,e,o){o&&(t.tooltip=new Za({chart:t,options:o}))},beforeUpdate(t,e,o){t.tooltip&&t.tooltip.initialize(o)},reset(t,e,o){t.tooltip&&t.tooltip.initialize(o)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const o={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...o,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",o)}},afterEvent(t,e){if(t.tooltip){const o=e.replay;t.tooltip.handleEvent(e.event,o,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:hf},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},mf=Object.freeze({__proto__:null,Colors:Wu,Decimation:qu,Filler:ef,Legend:nf,SubTitle:sf,Title:af,Tooltip:gf});const w2=(t,e,o,r)=>(typeof e=="string"?(o=t.push(e)-1,r.unshift({index:o,label:e})):isNaN(e)&&(o=null),o);function C2(t,e,o,r){const n=t.indexOf(e);if(n===-1)return w2(t,e,o,r);const i=t.lastIndexOf(e);return n!==i?o:n}const _2=(t,e)=>t===null?null:je(Math.round(t),0,e);function pf(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class hi extends uo{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const o=this._addedLabels;if(o.length){const r=this.getLabels();for(const{index:n,label:i}of o)r[n]===i&&r.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,o){if(fe(e))return null;const r=this.getLabels();return o=isFinite(o)&&r[o]===e?o:C2(r,e,se(o,e),this._addedLabels),_2(o,r.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:o}=this.getUserBounds();let{min:r,max:n}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(r=0),o||(n=this.getLabels().length-1)),this.min=r,this.max=n}buildTicks(){const e=this.min,o=this.max,r=this.options.offset,n=[];let i=this.getLabels();i=e===0&&o===i.length-1?i:i.slice(e,o+1),this._valueRange=Math.max(i.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=e;s<=o;s++)n.push({value:s});return n}getLabelForValue(e){return pf.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const o=this.ticks;return e<0||e>o.length-1?null:this.getPixelForValue(o[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}j(hi,"id","category"),j(hi,"defaults",{ticks:{callback:pf}});function S2(t,e){const o=[],{bounds:n,step:i,min:s,max:l,precision:c,count:d,maxTicks:u,maxDigits:f,includeBounds:h}=t,g=i||1,m=u-1,{min:p,max:b}=e,y=!fe(s),k=!fe(l),C=!fe(d),_=(b-p)/(f+1);let v=ad((b-p)/m/g)*g,S,w,x,B;if(v<1e-14&&!y&&!k)return[{value:p},{value:b}];B=Math.ceil(b/v)-Math.floor(p/v),B>m&&(v=ad(B*v/m/g)*g),fe(c)||(S=Math.pow(10,c),v=Math.ceil(v*S)/S),n==="ticks"?(w=Math.floor(p/v)*v,x=Math.ceil(b/v)*v):(w=p,x=b),y&&k&&i&&$_((l-s)/i,v/1e3)?(B=Math.round(Math.min((l-s)/v,u)),v=(l-s)/B,w=s,x=l):C?(w=y?s:w,x=k?l:x,B=d-1,v=(x-w)/B):(B=(x-w)/v,$r(B,Math.round(B),v/1e3)?B=Math.round(B):B=Math.ceil(B));const T=Math.max(ld(v),ld(w));S=Math.pow(10,fe(c)?T:c),w=Math.round(w*S)/S,x=Math.round(x*S)/S;let E=0;for(y&&(h&&w!==s?(o.push({value:s}),w<s&&E++,$r(Math.round((w+E*v)*S)/S,s,bf(s,_,t))&&E++):w<s&&E++);E<B;++E){const O=Math.round((w+E*v)*S)/S;if(k&&O>l)break;o.push({value:O})}return k&&h&&x!==l?o.length&&$r(o[o.length-1].value,l,bf(l,_,t))?o[o.length-1].value=l:o.push({value:l}):(!k||x===l)&&o.push({value:x}),o}function bf(t,e,{horizontal:o,minRotation:r}){const n=kt(r),i=(o?Math.sin(n):Math.cos(n))||.001,s=.75*e*(""+t).length;return Math.min(e/i,s)}class gi extends uo{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,o){return fe(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:o,maxDefined:r}=this.getUserBounds();let{min:n,max:i}=this;const s=c=>n=o?n:c,l=c=>i=r?i:c;if(e){const c=Et(n),d=Et(i);c<0&&d<0?l(0):c>0&&d>0&&s(0)}if(n===i){let c=i===0?1:Math.abs(i*.05);l(i+c),e||s(n-c)}this.min=n,this.max=i}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:o,stepSize:r}=e,n;return r?(n=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),o=o||11),o&&(n=Math.min(o,n)),n}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,o=e.ticks;let r=this.getTickLimit();r=Math.max(2,r);const n={maxTicks:r,bounds:e.bounds,min:e.min,max:e.max,precision:o.precision,step:o.stepSize,count:o.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:o.minRotation||0,includeBounds:o.includeBounds!==!1},i=this._range||this,s=S2(n,i);return e.bounds==="ticks"&&sd(s,this,"value"),e.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const e=this.ticks;let o=this.min,r=this.max;if(super.configure(),this.options.offset&&e.length){const n=(r-o)/Math.max(e.length-1,1)/2;o-=n,r+=n}this._startValue=o,this._endValue=r,this._valueRange=r-o}getLabelForValue(e){return Vr(e,this.chart.options.locale,this.options.ticks.format)}}class mi extends gi{determineDataLimits(){const{min:e,max:o}=this.getMinMax(!0);this.min=$e(e)?e:0,this.max=$e(o)?o:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),o=e?this.width:this.height,r=kt(this.options.ticks.minRotation),n=(e?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(o/Math.min(40,i.lineHeight/n))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}j(mi,"id","linear"),j(mi,"defaults",{ticks:{callback:Fr.formatters.numeric}});const nn=t=>Math.floor(so(t)),Po=(t,e)=>Math.pow(10,nn(t)+e);function yf(t){return t/Math.pow(10,nn(t))===1}function kf(t,e,o){const r=Math.pow(10,o),n=Math.floor(t/r);return Math.ceil(e/r)-n}function B2(t,e){const o=e-t;let r=nn(o);for(;kf(t,e,r)>10;)r++;for(;kf(t,e,r)<10;)r--;return Math.min(r,nn(t))}function E2(t,{min:e,max:o}){e=it(t.min,e);const r=[],n=nn(e);let i=B2(e,o),s=i<0?Math.pow(10,Math.abs(i)):1;const l=Math.pow(10,i),c=n>i?Math.pow(10,n):0,d=Math.round((e-c)*s)/s,u=Math.floor((e-c)/l/10)*l*10;let f=Math.floor((d-u)/Math.pow(10,i)),h=it(t.min,Math.round((c+u+f*Math.pow(10,i))*s)/s);for(;h<o;)r.push({value:h,major:yf(h),significand:f}),f>=10?f=f<15?15:20:f++,f>=20&&(i++,f=2,s=i>=0?1:s),h=Math.round((c+u+f*Math.pow(10,i))*s)/s;const g=it(t.max,h);return r.push({value:g,major:yf(g),significand:f}),r}class pi extends uo{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,o){const r=gi.prototype.parse.apply(this,[e,o]);if(r===0){this._zero=!0;return}return $e(r)&&r>0?r:null}determineDataLimits(){const{min:e,max:o}=this.getMinMax(!0);this.min=$e(e)?Math.max(0,e):null,this.max=$e(o)?Math.max(0,o):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!$e(this._userMin)&&(this.min=e===Po(this.min,0)?Po(this.min,-1):Po(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:o}=this.getUserBounds();let r=this.min,n=this.max;const i=l=>r=e?r:l,s=l=>n=o?n:l;r===n&&(r<=0?(i(1),s(10)):(i(Po(r,-1)),s(Po(n,1)))),r<=0&&i(Po(n,-1)),n<=0&&s(Po(r,1)),this.min=r,this.max=n}buildTicks(){const e=this.options,o={min:this._userMin,max:this._userMax},r=E2(o,this);return e.bounds==="ticks"&&sd(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(e){return e===void 0?"0":Vr(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=so(e),this._valueRange=so(this.max)-so(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(so(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const o=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+o*this._valueRange)}}j(pi,"id","logarithmic"),j(pi,"defaults",{ticks:{callback:Fr.formatters.logarithmic,major:{enabled:!0}}});function es(t){const e=t.ticks;if(e.display&&t.display){const o=Ye(e.backdropPadding);return se(e.font&&e.font.size,Se.font.size)+o.height}return 0}function R2(t,e,o){return o=Re(o)?o:[o],{w:J_(t,e.string,o),h:o.length*e.lineHeight}}function xf(t,e,o,r,n){return t===r||t===n?{start:e-o/2,end:e+o/2}:t<r||t>n?{start:e-o,end:e}:{start:e,end:e+o}}function D2(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},o=Object.assign({},e),r=[],n=[],i=t._pointLabels.length,s=t.options.pointLabels,l=s.centerPointLabels?Ce/i:0;for(let c=0;c<i;c++){const d=s.setContext(t.getPointLabelContext(c));n[c]=d.padding;const u=t.getPointPosition(c,t.drawingArea+n[c],l),f=Ie(d.font),h=R2(t.ctx,f,t._pointLabels[c]);r[c]=h;const g=at(t.getIndexAngle(c)+l),m=Math.round(ya(g)),p=xf(m,u.x,h.w,0,180),b=xf(m,u.y,h.h,90,270);O2(o,e,g,p,b)}t.setCenterPoint(e.l-o.l,o.r-e.r,e.t-o.t,o.b-e.b),t._pointLabelItems=P2(t,r,n)}function O2(t,e,o,r,n){const i=Math.abs(Math.sin(o)),s=Math.abs(Math.cos(o));let l=0,c=0;r.start<e.l?(l=(e.l-r.start)/i,t.l=Math.min(t.l,e.l-l)):r.end>e.r&&(l=(r.end-e.r)/i,t.r=Math.max(t.r,e.r+l)),n.start<e.t?(c=(e.t-n.start)/s,t.t=Math.min(t.t,e.t-c)):n.end>e.b&&(c=(n.end-e.b)/s,t.b=Math.max(t.b,e.b+c))}function N2(t,e,o){const r=t.drawingArea,{extra:n,additionalAngle:i,padding:s,size:l}=o,c=t.getPointPosition(e,r+n+s,i),d=Math.round(ya(at(c.angle+Me))),u=M2(c.y,l.h,d),f=$2(d),h=A2(c.x,l.w,f);return{visible:!0,x:c.x,y:u,textAlign:f,left:h,top:u,right:h+l.w,bottom:u+l.h}}function T2(t,e){if(!e)return!0;const{left:o,top:r,right:n,bottom:i}=t;return!(Ht({x:o,y:r},e)||Ht({x:o,y:i},e)||Ht({x:n,y:r},e)||Ht({x:n,y:i},e))}function P2(t,e,o){const r=[],n=t._pointLabels.length,i=t.options,{centerPointLabels:s,display:l}=i.pointLabels,c={extra:es(i)/2,additionalAngle:s?Ce/n:0};let d;for(let u=0;u<n;u++){c.padding=o[u],c.size=e[u];const f=N2(t,u,c);r.push(f),l==="auto"&&(f.visible=T2(f,d),f.visible&&(d=f))}return r}function $2(t){return t===0||t===180?"center":t<180?"left":"right"}function A2(t,e,o){return o==="right"?t-=e:o==="center"&&(t-=e/2),t}function M2(t,e,o){return o===90||o===270?t-=e/2:(o>270||o<90)&&(t-=e),t}function V2(t,e,o){const{left:r,top:n,right:i,bottom:s}=o,{backdropColor:l}=e;if(!fe(l)){const c=Ro(e.borderRadius),d=Ye(e.backdropPadding);t.fillStyle=l;const u=r-d.left,f=n-d.top,h=i-r+d.width,g=s-n+d.height;Object.values(c).some(m=>m!==0)?(t.beginPath(),Lr(t,{x:u,y:f,w:h,h:g,radius:c}),t.fill()):t.fillRect(u,f,h,g)}}function F2(t,e){const{ctx:o,options:{pointLabels:r}}=t;for(let n=e-1;n>=0;n--){const i=t._pointLabelItems[n];if(!i.visible)continue;const s=r.setContext(t.getPointLabelContext(n));V2(o,s,i);const l=Ie(s.font),{x:c,y:d,textAlign:u}=i;Eo(o,t._pointLabels[n],c,d+l.lineHeight/2,l,{color:s.color,textAlign:u,textBaseline:"middle"})}}function vf(t,e,o,r){const{ctx:n}=t;if(o)n.arc(t.xCenter,t.yCenter,e,0,_e);else{let i=t.getPointPosition(0,e);n.moveTo(i.x,i.y);for(let s=1;s<r;s++)i=t.getPointPosition(s,e),n.lineTo(i.x,i.y)}}function I2(t,e,o,r,n){const i=t.ctx,s=e.circular,{color:l,lineWidth:c}=e;!s&&!r||!l||!c||o<0||(i.save(),i.strokeStyle=l,i.lineWidth=c,i.setLineDash(n.dash||[]),i.lineDashOffset=n.dashOffset,i.beginPath(),vf(t,o,s,r),i.closePath(),i.stroke(),i.restore())}function L2(t,e,o){return lo(t,{label:o,index:e,type:"pointLabel"})}class Zo extends gi{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=Ye(es(this.options)/2),o=this.width=this.maxWidth-e.width,r=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+o/2+e.left),this.yCenter=Math.floor(this.top+r/2+e.top),this.drawingArea=Math.floor(Math.min(o,r)/2)}determineDataLimits(){const{min:e,max:o}=this.getMinMax(!1);this.min=$e(e)&&!isNaN(e)?e:0,this.max=$e(o)&&!isNaN(o)?o:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/es(this.options))}generateTickLabels(e){gi.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((o,r)=>{const n=we(this.options.pointLabels.callback,[o,r],this);return n||n===0?n:""}).filter((o,r)=>this.chart.getDataVisibility(r))}fit(){const e=this.options;e.display&&e.pointLabels.display?D2(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,o,r,n){this.xCenter+=Math.floor((e-o)/2),this.yCenter+=Math.floor((r-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,o,r,n))}getIndexAngle(e){const o=_e/(this._pointLabels.length||1),r=this.options.startAngle||0;return at(e*o+kt(r))}getDistanceFromCenterForValue(e){if(fe(e))return NaN;const o=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*o:(e-this.min)*o}getValueForDistanceFromCenter(e){if(fe(e))return NaN;const o=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-o:this.min+o}getPointLabelContext(e){const o=this._pointLabels||[];if(e>=0&&e<o.length){const r=o[e];return L2(this.getContext(),e,r)}}getPointPosition(e,o,r=0){const n=this.getIndexAngle(e)-Me+r;return{x:Math.cos(n)*o+this.xCenter,y:Math.sin(n)*o+this.yCenter,angle:n}}getPointPositionForValue(e,o){return this.getPointPosition(e,this.getDistanceFromCenterForValue(o))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:o,top:r,right:n,bottom:i}=this._pointLabelItems[e];return{left:o,top:r,right:n,bottom:i}}drawBackground(){const{backgroundColor:e,grid:{circular:o}}=this.options;if(e){const r=this.ctx;r.save(),r.beginPath(),vf(this,this.getDistanceFromCenterForValue(this._endValue),o,this._pointLabels.length),r.closePath(),r.fillStyle=e,r.fill(),r.restore()}}drawGrid(){const e=this.ctx,o=this.options,{angleLines:r,grid:n,border:i}=o,s=this._pointLabels.length;let l,c,d;if(o.pointLabels.display&&F2(this,s),n.display&&this.ticks.forEach((u,f)=>{if(f!==0||f===0&&this.min<0){c=this.getDistanceFromCenterForValue(u.value);const h=this.getContext(f),g=n.setContext(h),m=i.setContext(h);I2(this,g,c,s,m)}}),r.display){for(e.save(),l=s-1;l>=0;l--){const u=r.setContext(this.getPointLabelContext(l)),{color:f,lineWidth:h}=u;!h||!f||(e.lineWidth=h,e.strokeStyle=f,e.setLineDash(u.borderDash),e.lineDashOffset=u.borderDashOffset,c=this.getDistanceFromCenterForValue(o.reverse?this.min:this.max),d=this.getPointPosition(l,c),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(d.x,d.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,o=this.options,r=o.ticks;if(!r.display)return;const n=this.getIndexAngle(0);let i,s;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(n),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((l,c)=>{if(c===0&&this.min>=0&&!o.reverse)return;const d=r.setContext(this.getContext(c)),u=Ie(d.font);if(i=this.getDistanceFromCenterForValue(this.ticks[c].value),d.showLabelBackdrop){e.font=u.string,s=e.measureText(l.label).width,e.fillStyle=d.backdropColor;const f=Ye(d.backdropPadding);e.fillRect(-s/2-f.left,-i-u.size/2-f.top,s+f.width,u.size+f.height)}Eo(e,l.label,0,-i,u,{color:d.color,strokeColor:d.textStrokeColor,strokeWidth:d.textStrokeWidth})}),e.restore()}drawTitle(){}}j(Zo,"id","radialLinear"),j(Zo,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Fr.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),j(Zo,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),j(Zo,"descriptors",{angleLines:{_fallback:"grid"}});const bi={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},tt=Object.keys(bi);function wf(t,e){return t-e}function Cf(t,e){if(fe(e))return null;const o=t._adapter,{parser:r,round:n,isoWeekday:i}=t._parseOpts;let s=e;return typeof r=="function"&&(s=r(s)),$e(s)||(s=typeof r=="string"?o.parse(s,r):o.parse(s)),s===null?null:(n&&(s=n==="week"&&(qo(i)||i===!0)?o.startOf(s,"isoWeek",i):o.startOf(s,n)),+s)}function _f(t,e,o,r){const n=tt.length;for(let i=tt.indexOf(t);i<n-1;++i){const s=bi[tt[i]],l=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((o-e)/(l*s.size))<=r)return tt[i]}return tt[n-1]}function z2(t,e,o,r,n){for(let i=tt.length-1;i>=tt.indexOf(o);i--){const s=tt[i];if(bi[s].common&&t._adapter.diff(n,r,s)>=e-1)return s}return tt[o?tt.indexOf(o):0]}function j2(t){for(let e=tt.indexOf(t)+1,o=tt.length;e<o;++e)if(bi[tt[e]].common)return tt[e]}function Sf(t,e,o){if(!o)t[e]=!0;else if(o.length){const{lo:r,hi:n}=xa(o,e),i=o[r]>=e?o[r]:o[n];t[i]=!0}}function W2(t,e,o,r){const n=t._adapter,i=+n.startOf(e[0].value,r),s=e[e.length-1].value;let l,c;for(l=i;l<=s;l=+n.add(l,1,r))c=o[l],c>=0&&(e[c].major=!0);return e}function Bf(t,e,o){const r=[],n={},i=e.length;let s,l;for(s=0;s<i;++s)l=e[s],n[l]=s,r.push({value:l,major:!1});return i===0||!o?r:W2(t,r,n,o)}class er extends uo{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,o={}){const r=e.time||(e.time={}),n=this._adapter=new ou._date(e.adapters.date);n.init(o),Tr(r.displayFormats,n.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=o.normalized}parse(e,o){return e===void 0?null:Cf(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,o=this._adapter,r=e.time.unit||"day";let{min:n,max:i,minDefined:s,maxDefined:l}=this.getUserBounds();function c(d){!s&&!isNaN(d.min)&&(n=Math.min(n,d.min)),!l&&!isNaN(d.max)&&(i=Math.max(i,d.max))}(!s||!l)&&(c(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&c(this.getMinMax(!1))),n=$e(n)&&!isNaN(n)?n:+o.startOf(Date.now(),r),i=$e(i)&&!isNaN(i)?i:+o.endOf(Date.now(),r)+1,this.min=Math.min(n,i-1),this.max=Math.max(n+1,i)}_getLabelBounds(){const e=this.getLabelTimestamps();let o=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(o=e[0],r=e[e.length-1]),{min:o,max:r}}buildTicks(){const e=this.options,o=e.time,r=e.ticks,n=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const i=this.min,s=this.max,l=F_(n,i,s);return this._unit=o.unit||(r.autoSkip?_f(o.minUnit,this.min,this.max,this._getLabelCapacity(i)):z2(this,l.length,o.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:j2(this._unit),this.initOffsets(n),e.reverse&&l.reverse(),Bf(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let o=0,r=0,n,i;this.options.offset&&e.length&&(n=this.getDecimalForValue(e[0]),e.length===1?o=1-n:o=(this.getDecimalForValue(e[1])-n)/2,i=this.getDecimalForValue(e[e.length-1]),e.length===1?r=i:r=(i-this.getDecimalForValue(e[e.length-2]))/2);const s=e.length<3?.5:.25;o=je(o,0,s),r=je(r,0,s),this._offsets={start:o,end:r,factor:1/(o+1+r)}}_generate(){const e=this._adapter,o=this.min,r=this.max,n=this.options,i=n.time,s=i.unit||_f(i.minUnit,o,r,this._getLabelCapacity(o)),l=se(n.ticks.stepSize,1),c=s==="week"?i.isoWeekday:!1,d=qo(c)||c===!0,u={};let f=o,h,g;if(d&&(f=+e.startOf(f,"isoWeek",c)),f=+e.startOf(f,d?"day":s),e.diff(r,o,s)>1e5*l)throw new Error(o+" and "+r+" are too far apart with stepSize of "+l+" "+s);const m=n.ticks.source==="data"&&this.getDataTimestamps();for(h=f,g=0;h<r;h=+e.add(h,l,s),g++)Sf(u,h,m);return(h===r||n.bounds==="ticks"||g===1)&&Sf(u,h,m),Object.keys(u).sort(wf).map(p=>+p)}getLabelForValue(e){const o=this._adapter,r=this.options.time;return r.tooltipFormat?o.format(e,r.tooltipFormat):o.format(e,r.displayFormats.datetime)}format(e,o){const n=this.options.time.displayFormats,i=this._unit,s=o||n[i];return this._adapter.format(e,s)}_tickFormatFunction(e,o,r,n){const i=this.options,s=i.ticks.callback;if(s)return we(s,[e,o,r],this);const l=i.time.displayFormats,c=this._unit,d=this._majorUnit,u=c&&l[c],f=d&&l[d],h=r[o],g=d&&f&&h&&h.major;return this._adapter.format(e,n||(g?f:u))}generateTickLabels(e){let o,r,n;for(o=0,r=e.length;o<r;++o)n=e[o],n.label=this._tickFormatFunction(n.value,o,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const o=this._offsets,r=this.getDecimalForValue(e);return this.getPixelForDecimal((o.start+r)*o.factor)}getValueForPixel(e){const o=this._offsets,r=this.getDecimalForPixel(e)/o.factor-o.end;return this.min+r*(this.max-this.min)}_getLabelSize(e){const o=this.options.ticks,r=this.ctx.measureText(e).width,n=kt(this.isHorizontal()?o.maxRotation:o.minRotation),i=Math.cos(n),s=Math.sin(n),l=this._resolveTickFontOptions(0).size;return{w:r*i+l*s,h:r*s+l*i}}_getLabelCapacity(e){const o=this.options.time,r=o.displayFormats,n=r[o.unit]||r.millisecond,i=this._tickFormatFunction(e,0,Bf(this,[e],this._majorUnit),n),s=this._getLabelSize(i),l=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return l>0?l:1}getDataTimestamps(){let e=this._cache.data||[],o,r;if(e.length)return e;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(o=0,r=n.length;o<r;++o)e=e.concat(n[o].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let o,r;if(e.length)return e;const n=this.getLabels();for(o=0,r=n.length;o<r;++o)e.push(Cf(this,n[o]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return fd(e.sort(wf))}}j(er,"id","time"),j(er,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function yi(t,e,o){let r=0,n=t.length-1,i,s,l,c;o?(e>=t[r].pos&&e<=t[n].pos&&({lo:r,hi:n}=Wt(t,"pos",e)),{pos:i,time:l}=t[r],{pos:s,time:c}=t[n]):(e>=t[r].time&&e<=t[n].time&&({lo:r,hi:n}=Wt(t,"time",e)),{time:i,pos:l}=t[r],{time:s,pos:c}=t[n]);const d=s-i;return d?l+(c-l)*(e-i)/d:l}class ki extends er{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),o=this._table=this.buildLookupTable(e);this._minPos=yi(o,this.min),this._tableRange=yi(o,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:o,max:r}=this,n=[],i=[];let s,l,c,d,u;for(s=0,l=e.length;s<l;++s)d=e[s],d>=o&&d<=r&&n.push(d);if(n.length<2)return[{time:o,pos:0},{time:r,pos:1}];for(s=0,l=n.length;s<l;++s)u=n[s+1],c=n[s-1],d=n[s],Math.round((u+c)/2)!==d&&i.push({time:d,pos:s/(l-1)});return i}_generate(){const e=this.min,o=this.max;let r=super.getDataTimestamps();return(!r.includes(e)||!r.length)&&r.splice(0,0,e),(!r.includes(o)||r.length===1)&&r.push(o),r.sort((n,i)=>n-i)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const o=this.getDataTimestamps(),r=this.getLabelTimestamps();return o.length&&r.length?e=this.normalize(o.concat(r)):e=o.length?o:r,e=this._cache.all=e,e}getDecimalForValue(e){return(yi(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const o=this._offsets,r=this.getDecimalForPixel(e)/o.factor-o.end;return yi(this._table,r*this._tableRange+this._minPos,!0)}}j(ki,"id","timeseries"),j(ki,"defaults",er.defaults);var Ef=Object.freeze({__proto__:null,CategoryScale:hi,LinearScale:mi,LogarithmicScale:pi,RadialLinearScale:Zo,TimeScale:er,TimeSeriesScale:ki});const Rf=[tu,Fu,mf,Ef];Ot.register(...Rf);const H2=Object.freeze(Object.defineProperty({__proto__:null,Animation:Hd,Animations:Pa,ArcElement:Qo,BarController:Wr,BarElement:on,BasePlatform:za,BasicPlatform:du,BubbleController:Hr,CategoryScale:hi,Chart:Ot,Colors:Wu,DatasetController:ut,Decimation:qu,DomPlatform:mu,DoughnutController:co,Element:Dt,Filler:ef,Interaction:nu,Legend:nf,LineController:Ur,LineElement:Ut,LinearScale:mi,LogarithmicScale:pi,PieController:ti,PointElement:tn,PolarAreaController:Go,RadarController:qr,RadialLinearScale:Zo,Scale:uo,ScatterController:Yr,SubTitle:sf,Ticks:Fr,TimeScale:er,TimeSeriesScale:ki,Title:af,Tooltip:gf,_adapters:ou,_detectPlatform:pu,animator:Rt,controllers:tu,default:Ot,defaults:Se,elements:Fu,layouts:We,plugins:mf,registerables:Rf,registry:xt,scales:Ef},Symbol.toStringTag,{value:"Module"}));ze.default=KC,ze.useEntitiesStore=Wl,ze.useGlobalConfigsStore=lt,ze.useThemeConfig=XC,Object.defineProperties(ze,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
182
|
+
`):t}function g2(t,e){const{element:o,datasetIndex:r,index:n}=e,i=t.getDatasetMeta(r).controller,{label:s,value:l}=i.getLabelAndValue(n);return{chart:t,label:s,parsed:i.getParsed(n),raw:t.data.datasets[r].data[n],formattedValue:l,dataset:i.getDataset(),dataIndex:n,datasetIndex:r,element:o}}function lf(t,e){const o=t.chart.ctx,{body:r,footer:n,title:i}=t,{boxWidth:s,boxHeight:l}=e,c=Ie(e.bodyFont),d=Ie(e.titleFont),u=Ie(e.footerFont),f=i.length,h=n.length,g=r.length,m=Ye(e.padding);let p=m.height,b=0,y=r.reduce((_,v)=>_+v.before.length+v.lines.length+v.after.length,0);if(y+=t.beforeBody.length+t.afterBody.length,f&&(p+=f*d.lineHeight+(f-1)*e.titleSpacing+e.titleMarginBottom),y){const _=e.displayColors?Math.max(l,c.lineHeight):c.lineHeight;p+=g*_+(y-g)*c.lineHeight+(y-1)*e.bodySpacing}h&&(p+=e.footerMarginTop+h*u.lineHeight+(h-1)*e.footerSpacing);let k=0;const C=function(_){b=Math.max(b,o.measureText(_).width+k)};return o.save(),o.font=d.string,ye(t.title,C),o.font=c.string,ye(t.beforeBody.concat(t.afterBody),C),k=e.displayColors?s+2+e.boxPadding:0,ye(r,_=>{ye(_.before,C),ye(_.lines,C),ye(_.after,C)}),k=0,o.font=u.string,ye(t.footer,C),o.restore(),b+=m.width,{width:b,height:p}}function m2(t,e){const{y:o,height:r}=e;return o<r/2?"top":o>t.height-r/2?"bottom":"center"}function p2(t,e,o,r){const{x:n,width:i}=r,s=o.caretSize+o.caretPadding;if(t==="left"&&n+i+s>e.width||t==="right"&&n-i-s<0)return!0}function b2(t,e,o,r){const{x:n,width:i}=o,{width:s,chartArea:{left:l,right:c}}=t;let d="center";return r==="center"?d=n<=(l+c)/2?"left":"right":n<=i/2?d="left":n>=s-i/2&&(d="right"),p2(d,t,e,o)&&(d="center"),d}function cf(t,e,o){const r=o.yAlign||e.yAlign||m2(t,o);return{xAlign:o.xAlign||e.xAlign||b2(t,e,o,r),yAlign:r}}function y2(t,e){let{x:o,width:r}=t;return e==="right"?o-=r:e==="center"&&(o-=r/2),o}function k2(t,e,o){let{y:r,height:n}=t;return e==="top"?r+=o:e==="bottom"?r-=n+o:r-=n/2,r}function df(t,e,o,r){const{caretSize:n,caretPadding:i,cornerRadius:s}=t,{xAlign:l,yAlign:c}=o,d=n+i,{topLeft:u,topRight:f,bottomLeft:h,bottomRight:g}=Ro(s);let m=y2(e,l);const p=k2(e,c,d);return c==="center"?l==="left"?m+=d:l==="right"&&(m-=d):l==="left"?m-=Math.max(u,h)+n:l==="right"&&(m+=Math.max(f,g)+n),{x:je(m,0,r.width-e.width),y:je(p,0,r.height-e.height)}}function fi(t,e,o){const r=Ye(o.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-r.right:t.x+r.left}function uf(t){return Nt([],qt(t))}function x2(t,e,o){return lo(t,{tooltip:e,tooltipItems:o,type:"tooltip"})}function ff(t,e){const o=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return o?t.override(o):t}const hf={beforeTitle:zt,title(t){if(t.length>0){const e=t[0],o=e.chart.data.labels,r=o?o.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return o[e.dataIndex]}return""},afterTitle:zt,beforeBody:zt,beforeLabel:zt,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const o=t.formattedValue;return fe(o)||(e+=o),e},labelColor(t){const o=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:o.borderColor,backgroundColor:o.backgroundColor,borderWidth:o.borderWidth,borderDash:o.borderDash,borderDashOffset:o.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const o=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:o.pointStyle,rotation:o.rotation}},afterLabel:zt,afterBody:zt,beforeFooter:zt,footer:zt,afterFooter:zt};function et(t,e,o,r){const n=t[e].call(o,r);return typeof n>"u"?hf[e].call(o,r):n}class Qa extends Dt{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const o=this.chart,r=this.options.setContext(this.getContext()),n=r.enabled&&o.options.animation&&r.animations,i=new Ta(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=x2(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,o){const{callbacks:r}=o,n=et(r,"beforeTitle",this,e),i=et(r,"title",this,e),s=et(r,"afterTitle",this,e);let l=[];return l=Nt(l,qt(n)),l=Nt(l,qt(i)),l=Nt(l,qt(s)),l}getBeforeBody(e,o){return uf(et(o.callbacks,"beforeBody",this,e))}getBody(e,o){const{callbacks:r}=o,n=[];return ye(e,i=>{const s={before:[],lines:[],after:[]},l=ff(r,i);Nt(s.before,qt(et(l,"beforeLabel",this,i))),Nt(s.lines,et(l,"label",this,i)),Nt(s.after,qt(et(l,"afterLabel",this,i))),n.push(s)}),n}getAfterBody(e,o){return uf(et(o.callbacks,"afterBody",this,e))}getFooter(e,o){const{callbacks:r}=o,n=et(r,"beforeFooter",this,e),i=et(r,"footer",this,e),s=et(r,"afterFooter",this,e);let l=[];return l=Nt(l,qt(n)),l=Nt(l,qt(i)),l=Nt(l,qt(s)),l}_createItems(e){const o=this._active,r=this.chart.data,n=[],i=[],s=[];let l=[],c,d;for(c=0,d=o.length;c<d;++c)l.push(g2(this.chart,o[c]));return e.filter&&(l=l.filter((u,f,h)=>e.filter(u,f,h,r))),e.itemSort&&(l=l.sort((u,f)=>e.itemSort(u,f,r))),ye(l,u=>{const f=ff(e.callbacks,u);n.push(et(f,"labelColor",this,u)),i.push(et(f,"labelPointStyle",this,u)),s.push(et(f,"labelTextColor",this,u))}),this.labelColors=n,this.labelPointStyles=i,this.labelTextColors=s,this.dataPoints=l,l}update(e,o){const r=this.options.setContext(this.getContext()),n=this._active;let i,s=[];if(!n.length)this.opacity!==0&&(i={opacity:0});else{const l=rn[r.position].call(this,n,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);const c=this._size=lf(this,r),d=Object.assign({},l,c),u=cf(this.chart,r,d),f=df(r,d,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,i={opacity:1,x:f.x,y:f.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=s,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:o})}drawCaret(e,o,r,n){const i=this.getCaretPosition(e,r,n);o.lineTo(i.x1,i.y1),o.lineTo(i.x2,i.y2),o.lineTo(i.x3,i.y3)}getCaretPosition(e,o,r){const{xAlign:n,yAlign:i}=this,{caretSize:s,cornerRadius:l}=r,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:f}=Ro(l),{x:h,y:g}=e,{width:m,height:p}=o;let b,y,k,C,_,v;return i==="center"?(_=g+p/2,n==="left"?(b=h,y=b-s,C=_+s,v=_-s):(b=h+m,y=b+s,C=_-s,v=_+s),k=b):(n==="left"?y=h+Math.max(c,u)+s:n==="right"?y=h+m-Math.max(d,f)-s:y=this.caretX,i==="top"?(C=g,_=C-s,b=y-s,k=y+s):(C=g+p,_=C+s,b=y+s,k=y-s),v=C),{x1:b,x2:y,x3:k,y1:C,y2:_,y3:v}}drawTitle(e,o,r){const n=this.title,i=n.length;let s,l,c;if(i){const d=Ko(r.rtl,this.x,this.width);for(e.x=fi(this,r.titleAlign,r),o.textAlign=d.textAlign(r.titleAlign),o.textBaseline="middle",s=Ie(r.titleFont),l=r.titleSpacing,o.fillStyle=r.titleColor,o.font=s.string,c=0;c<i;++c)o.fillText(n[c],d.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+l,c+1===i&&(e.y+=r.titleMarginBottom-l)}}_drawColorBox(e,o,r,n,i){const s=this.labelColors[r],l=this.labelPointStyles[r],{boxHeight:c,boxWidth:d}=i,u=Ie(i.bodyFont),f=fi(this,"left",i),h=n.x(f),g=c<u.lineHeight?(u.lineHeight-c)/2:0,m=o.y+g;if(i.usePointStyle){const p={radius:Math.min(d,c)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},b=n.leftForLtr(h,d)+d/2,y=m+c/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,Sa(e,p,b,y),e.strokeStyle=s.borderColor,e.fillStyle=s.backgroundColor,Sa(e,p,b,y)}else{e.lineWidth=de(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,e.strokeStyle=s.borderColor,e.setLineDash(s.borderDash||[]),e.lineDashOffset=s.borderDashOffset||0;const p=n.leftForLtr(h,d),b=n.leftForLtr(n.xPlus(h,1),d-2),y=Ro(s.borderRadius);Object.values(y).some(k=>k!==0)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,Lr(e,{x:p,y:m,w:d,h:c,radius:y}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),Lr(e,{x:b,y:m+1,w:d-2,h:c-2,radius:y}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(p,m,d,c),e.strokeRect(p,m,d,c),e.fillStyle=s.backgroundColor,e.fillRect(b,m+1,d-2,c-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,o,r){const{body:n}=this,{bodySpacing:i,bodyAlign:s,displayColors:l,boxHeight:c,boxWidth:d,boxPadding:u}=r,f=Ie(r.bodyFont);let h=f.lineHeight,g=0;const m=Ko(r.rtl,this.x,this.width),p=function(x){o.fillText(x,m.x(e.x+g),e.y+h/2),e.y+=h+i},b=m.textAlign(s);let y,k,C,_,v,S,w;for(o.textAlign=s,o.textBaseline="middle",o.font=f.string,e.x=fi(this,b,r),o.fillStyle=r.bodyColor,ye(this.beforeBody,p),g=l&&b!=="right"?s==="center"?d/2+u:d+2+u:0,_=0,S=n.length;_<S;++_){for(y=n[_],k=this.labelTextColors[_],o.fillStyle=k,ye(y.before,p),C=y.lines,l&&C.length&&(this._drawColorBox(o,e,_,m,r),h=Math.max(f.lineHeight,c)),v=0,w=C.length;v<w;++v)p(C[v]),h=f.lineHeight;ye(y.after,p)}g=0,h=f.lineHeight,ye(this.afterBody,p),e.y-=i}drawFooter(e,o,r){const n=this.footer,i=n.length;let s,l;if(i){const c=Ko(r.rtl,this.x,this.width);for(e.x=fi(this,r.footerAlign,r),e.y+=r.footerMarginTop,o.textAlign=c.textAlign(r.footerAlign),o.textBaseline="middle",s=Ie(r.footerFont),o.fillStyle=r.footerColor,o.font=s.string,l=0;l<i;++l)o.fillText(n[l],c.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+r.footerSpacing}}drawBackground(e,o,r,n){const{xAlign:i,yAlign:s}=this,{x:l,y:c}=e,{width:d,height:u}=r,{topLeft:f,topRight:h,bottomLeft:g,bottomRight:m}=Ro(n.cornerRadius);o.fillStyle=n.backgroundColor,o.strokeStyle=n.borderColor,o.lineWidth=n.borderWidth,o.beginPath(),o.moveTo(l+f,c),s==="top"&&this.drawCaret(e,o,r,n),o.lineTo(l+d-h,c),o.quadraticCurveTo(l+d,c,l+d,c+h),s==="center"&&i==="right"&&this.drawCaret(e,o,r,n),o.lineTo(l+d,c+u-m),o.quadraticCurveTo(l+d,c+u,l+d-m,c+u),s==="bottom"&&this.drawCaret(e,o,r,n),o.lineTo(l+g,c+u),o.quadraticCurveTo(l,c+u,l,c+u-g),s==="center"&&i==="left"&&this.drawCaret(e,o,r,n),o.lineTo(l,c+f),o.quadraticCurveTo(l,c,l+f,c),o.closePath(),o.fill(),n.borderWidth>0&&o.stroke()}_updateAnimationTarget(e){const o=this.chart,r=this.$animations,n=r&&r.x,i=r&&r.y;if(n||i){const s=rn[e.position].call(this,this._active,this._eventPosition);if(!s)return;const l=this._size=lf(this,e),c=Object.assign({},s,this._size),d=cf(o,e,c),u=df(e,c,d,o);(n._to!==u.x||i._to!==u.y)&&(this.xAlign=d.xAlign,this.yAlign=d.yAlign,this.width=l.width,this.height=l.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(e){const o=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(o);const n={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const s=Ye(o.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;o.enabled&&l&&(e.save(),e.globalAlpha=r,this.drawBackground(i,e,n,o),Ad(e,o.textDirection),i.y+=s.top,this.drawTitle(i,e,o),this.drawBody(i,e,o),this.drawFooter(i,e,o),Md(e,o.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,o){const r=this._active,n=e.map(({datasetIndex:l,index:c})=>{const d=this.chart.getDatasetMeta(l);if(!d)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:d.data[c],index:c}}),i=!Hn(r,n),s=this._positionChanged(n,o);(i||s)&&(this._active=n,this._eventPosition=o,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,o,r=!0){if(o&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,i=this._active||[],s=this._getActiveElements(e,i,o,r),l=this._positionChanged(s,e),c=o||!Hn(s,i)||l;return c&&(this._active=s,(n.enabled||n.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,o))),c}_getActiveElements(e,o,r,n){const i=this.options;if(e.type==="mouseout")return[];if(!n)return o.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);const s=this.chart.getElementsAtEventForMode(e,i.mode,i,r);return i.reverse&&s.reverse(),s}_positionChanged(e,o){const{caretX:r,caretY:n,options:i}=this,s=rn[i.position].call(this,e,o);return s!==!1&&(r!==s.x||n!==s.y)}}j(Qa,"positioners",rn);var gf={id:"tooltip",_element:Qa,positioners:rn,afterInit(t,e,o){o&&(t.tooltip=new Qa({chart:t,options:o}))},beforeUpdate(t,e,o){t.tooltip&&t.tooltip.initialize(o)},reset(t,e,o){t.tooltip&&t.tooltip.initialize(o)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const o={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...o,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",o)}},afterEvent(t,e){if(t.tooltip){const o=e.replay;t.tooltip.handleEvent(e.event,o,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:hf},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},mf=Object.freeze({__proto__:null,Colors:Wu,Decimation:qu,Filler:ef,Legend:nf,SubTitle:sf,Title:af,Tooltip:gf});const v2=(t,e,o,r)=>(typeof e=="string"?(o=t.push(e)-1,r.unshift({index:o,label:e})):isNaN(e)&&(o=null),o);function w2(t,e,o,r){const n=t.indexOf(e);if(n===-1)return v2(t,e,o,r);const i=t.lastIndexOf(e);return n!==i?o:n}const C2=(t,e)=>t===null?null:je(Math.round(t),0,e);function pf(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class hi extends uo{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const o=this._addedLabels;if(o.length){const r=this.getLabels();for(const{index:n,label:i}of o)r[n]===i&&r.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,o){if(fe(e))return null;const r=this.getLabels();return o=isFinite(o)&&r[o]===e?o:w2(r,e,se(o,e),this._addedLabels),C2(o,r.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:o}=this.getUserBounds();let{min:r,max:n}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(r=0),o||(n=this.getLabels().length-1)),this.min=r,this.max=n}buildTicks(){const e=this.min,o=this.max,r=this.options.offset,n=[];let i=this.getLabels();i=e===0&&o===i.length-1?i:i.slice(e,o+1),this._valueRange=Math.max(i.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=e;s<=o;s++)n.push({value:s});return n}getLabelForValue(e){return pf.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const o=this.ticks;return e<0||e>o.length-1?null:this.getPixelForValue(o[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}j(hi,"id","category"),j(hi,"defaults",{ticks:{callback:pf}});function _2(t,e){const o=[],{bounds:n,step:i,min:s,max:l,precision:c,count:d,maxTicks:u,maxDigits:f,includeBounds:h}=t,g=i||1,m=u-1,{min:p,max:b}=e,y=!fe(s),k=!fe(l),C=!fe(d),_=(b-p)/(f+1);let v=ad((b-p)/m/g)*g,S,w,x,B;if(v<1e-14&&!y&&!k)return[{value:p},{value:b}];B=Math.ceil(b/v)-Math.floor(p/v),B>m&&(v=ad(B*v/m/g)*g),fe(c)||(S=Math.pow(10,c),v=Math.ceil(v*S)/S),n==="ticks"?(w=Math.floor(p/v)*v,x=Math.ceil(b/v)*v):(w=p,x=b),y&&k&&i&&P_((l-s)/i,v/1e3)?(B=Math.round(Math.min((l-s)/v,u)),v=(l-s)/B,w=s,x=l):C?(w=y?s:w,x=k?l:x,B=d-1,v=(x-w)/B):(B=(x-w)/v,$r(B,Math.round(B),v/1e3)?B=Math.round(B):B=Math.ceil(B));const T=Math.max(ld(v),ld(w));S=Math.pow(10,fe(c)?T:c),w=Math.round(w*S)/S,x=Math.round(x*S)/S;let E=0;for(y&&(h&&w!==s?(o.push({value:s}),w<s&&E++,$r(Math.round((w+E*v)*S)/S,s,bf(s,_,t))&&E++):w<s&&E++);E<B;++E){const O=Math.round((w+E*v)*S)/S;if(k&&O>l)break;o.push({value:O})}return k&&h&&x!==l?o.length&&$r(o[o.length-1].value,l,bf(l,_,t))?o[o.length-1].value=l:o.push({value:l}):(!k||x===l)&&o.push({value:x}),o}function bf(t,e,{horizontal:o,minRotation:r}){const n=kt(r),i=(o?Math.sin(n):Math.cos(n))||.001,s=.75*e*(""+t).length;return Math.min(e/i,s)}class gi extends uo{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,o){return fe(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:o,maxDefined:r}=this.getUserBounds();let{min:n,max:i}=this;const s=c=>n=o?n:c,l=c=>i=r?i:c;if(e){const c=Et(n),d=Et(i);c<0&&d<0?l(0):c>0&&d>0&&s(0)}if(n===i){let c=i===0?1:Math.abs(i*.05);l(i+c),e||s(n-c)}this.min=n,this.max=i}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:o,stepSize:r}=e,n;return r?(n=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),o=o||11),o&&(n=Math.min(o,n)),n}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,o=e.ticks;let r=this.getTickLimit();r=Math.max(2,r);const n={maxTicks:r,bounds:e.bounds,min:e.min,max:e.max,precision:o.precision,step:o.stepSize,count:o.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:o.minRotation||0,includeBounds:o.includeBounds!==!1},i=this._range||this,s=_2(n,i);return e.bounds==="ticks"&&sd(s,this,"value"),e.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const e=this.ticks;let o=this.min,r=this.max;if(super.configure(),this.options.offset&&e.length){const n=(r-o)/Math.max(e.length-1,1)/2;o-=n,r+=n}this._startValue=o,this._endValue=r,this._valueRange=r-o}getLabelForValue(e){return Vr(e,this.chart.options.locale,this.options.ticks.format)}}class mi extends gi{determineDataLimits(){const{min:e,max:o}=this.getMinMax(!0);this.min=$e(e)?e:0,this.max=$e(o)?o:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),o=e?this.width:this.height,r=kt(this.options.ticks.minRotation),n=(e?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(o/Math.min(40,i.lineHeight/n))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}j(mi,"id","linear"),j(mi,"defaults",{ticks:{callback:Fr.formatters.numeric}});const nn=t=>Math.floor(so(t)),Po=(t,e)=>Math.pow(10,nn(t)+e);function yf(t){return t/Math.pow(10,nn(t))===1}function kf(t,e,o){const r=Math.pow(10,o),n=Math.floor(t/r);return Math.ceil(e/r)-n}function S2(t,e){const o=e-t;let r=nn(o);for(;kf(t,e,r)>10;)r++;for(;kf(t,e,r)<10;)r--;return Math.min(r,nn(t))}function B2(t,{min:e,max:o}){e=it(t.min,e);const r=[],n=nn(e);let i=S2(e,o),s=i<0?Math.pow(10,Math.abs(i)):1;const l=Math.pow(10,i),c=n>i?Math.pow(10,n):0,d=Math.round((e-c)*s)/s,u=Math.floor((e-c)/l/10)*l*10;let f=Math.floor((d-u)/Math.pow(10,i)),h=it(t.min,Math.round((c+u+f*Math.pow(10,i))*s)/s);for(;h<o;)r.push({value:h,major:yf(h),significand:f}),f>=10?f=f<15?15:20:f++,f>=20&&(i++,f=2,s=i>=0?1:s),h=Math.round((c+u+f*Math.pow(10,i))*s)/s;const g=it(t.max,h);return r.push({value:g,major:yf(g),significand:f}),r}class pi extends uo{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,o){const r=gi.prototype.parse.apply(this,[e,o]);if(r===0){this._zero=!0;return}return $e(r)&&r>0?r:null}determineDataLimits(){const{min:e,max:o}=this.getMinMax(!0);this.min=$e(e)?Math.max(0,e):null,this.max=$e(o)?Math.max(0,o):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!$e(this._userMin)&&(this.min=e===Po(this.min,0)?Po(this.min,-1):Po(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:o}=this.getUserBounds();let r=this.min,n=this.max;const i=l=>r=e?r:l,s=l=>n=o?n:l;r===n&&(r<=0?(i(1),s(10)):(i(Po(r,-1)),s(Po(n,1)))),r<=0&&i(Po(n,-1)),n<=0&&s(Po(r,1)),this.min=r,this.max=n}buildTicks(){const e=this.options,o={min:this._userMin,max:this._userMax},r=B2(o,this);return e.bounds==="ticks"&&sd(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(e){return e===void 0?"0":Vr(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=so(e),this._valueRange=so(this.max)-so(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(so(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const o=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+o*this._valueRange)}}j(pi,"id","logarithmic"),j(pi,"defaults",{ticks:{callback:Fr.formatters.logarithmic,major:{enabled:!0}}});function Za(t){const e=t.ticks;if(e.display&&t.display){const o=Ye(e.backdropPadding);return se(e.font&&e.font.size,Se.font.size)+o.height}return 0}function E2(t,e,o){return o=Re(o)?o:[o],{w:G_(t,e.string,o),h:o.length*e.lineHeight}}function xf(t,e,o,r,n){return t===r||t===n?{start:e-o/2,end:e+o/2}:t<r||t>n?{start:e-o,end:e}:{start:e,end:e+o}}function R2(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},o=Object.assign({},e),r=[],n=[],i=t._pointLabels.length,s=t.options.pointLabels,l=s.centerPointLabels?Ce/i:0;for(let c=0;c<i;c++){const d=s.setContext(t.getPointLabelContext(c));n[c]=d.padding;const u=t.getPointPosition(c,t.drawingArea+n[c],l),f=Ie(d.font),h=E2(t.ctx,f,t._pointLabels[c]);r[c]=h;const g=at(t.getIndexAngle(c)+l),m=Math.round(ba(g)),p=xf(m,u.x,h.w,0,180),b=xf(m,u.y,h.h,90,270);D2(o,e,g,p,b)}t.setCenterPoint(e.l-o.l,o.r-e.r,e.t-o.t,o.b-e.b),t._pointLabelItems=T2(t,r,n)}function D2(t,e,o,r,n){const i=Math.abs(Math.sin(o)),s=Math.abs(Math.cos(o));let l=0,c=0;r.start<e.l?(l=(e.l-r.start)/i,t.l=Math.min(t.l,e.l-l)):r.end>e.r&&(l=(r.end-e.r)/i,t.r=Math.max(t.r,e.r+l)),n.start<e.t?(c=(e.t-n.start)/s,t.t=Math.min(t.t,e.t-c)):n.end>e.b&&(c=(n.end-e.b)/s,t.b=Math.max(t.b,e.b+c))}function O2(t,e,o){const r=t.drawingArea,{extra:n,additionalAngle:i,padding:s,size:l}=o,c=t.getPointPosition(e,r+n+s,i),d=Math.round(ba(at(c.angle+Me))),u=A2(c.y,l.h,d),f=P2(d),h=$2(c.x,l.w,f);return{visible:!0,x:c.x,y:u,textAlign:f,left:h,top:u,right:h+l.w,bottom:u+l.h}}function N2(t,e){if(!e)return!0;const{left:o,top:r,right:n,bottom:i}=t;return!(Ht({x:o,y:r},e)||Ht({x:o,y:i},e)||Ht({x:n,y:r},e)||Ht({x:n,y:i},e))}function T2(t,e,o){const r=[],n=t._pointLabels.length,i=t.options,{centerPointLabels:s,display:l}=i.pointLabels,c={extra:Za(i)/2,additionalAngle:s?Ce/n:0};let d;for(let u=0;u<n;u++){c.padding=o[u],c.size=e[u];const f=O2(t,u,c);r.push(f),l==="auto"&&(f.visible=N2(f,d),f.visible&&(d=f))}return r}function P2(t){return t===0||t===180?"center":t<180?"left":"right"}function $2(t,e,o){return o==="right"?t-=e:o==="center"&&(t-=e/2),t}function A2(t,e,o){return o===90||o===270?t-=e/2:(o>270||o<90)&&(t-=e),t}function M2(t,e,o){const{left:r,top:n,right:i,bottom:s}=o,{backdropColor:l}=e;if(!fe(l)){const c=Ro(e.borderRadius),d=Ye(e.backdropPadding);t.fillStyle=l;const u=r-d.left,f=n-d.top,h=i-r+d.width,g=s-n+d.height;Object.values(c).some(m=>m!==0)?(t.beginPath(),Lr(t,{x:u,y:f,w:h,h:g,radius:c}),t.fill()):t.fillRect(u,f,h,g)}}function V2(t,e){const{ctx:o,options:{pointLabels:r}}=t;for(let n=e-1;n>=0;n--){const i=t._pointLabelItems[n];if(!i.visible)continue;const s=r.setContext(t.getPointLabelContext(n));M2(o,s,i);const l=Ie(s.font),{x:c,y:d,textAlign:u}=i;Eo(o,t._pointLabels[n],c,d+l.lineHeight/2,l,{color:s.color,textAlign:u,textBaseline:"middle"})}}function vf(t,e,o,r){const{ctx:n}=t;if(o)n.arc(t.xCenter,t.yCenter,e,0,_e);else{let i=t.getPointPosition(0,e);n.moveTo(i.x,i.y);for(let s=1;s<r;s++)i=t.getPointPosition(s,e),n.lineTo(i.x,i.y)}}function F2(t,e,o,r,n){const i=t.ctx,s=e.circular,{color:l,lineWidth:c}=e;!s&&!r||!l||!c||o<0||(i.save(),i.strokeStyle=l,i.lineWidth=c,i.setLineDash(n.dash||[]),i.lineDashOffset=n.dashOffset,i.beginPath(),vf(t,o,s,r),i.closePath(),i.stroke(),i.restore())}function I2(t,e,o){return lo(t,{label:o,index:e,type:"pointLabel"})}class Zo extends gi{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=Ye(Za(this.options)/2),o=this.width=this.maxWidth-e.width,r=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+o/2+e.left),this.yCenter=Math.floor(this.top+r/2+e.top),this.drawingArea=Math.floor(Math.min(o,r)/2)}determineDataLimits(){const{min:e,max:o}=this.getMinMax(!1);this.min=$e(e)&&!isNaN(e)?e:0,this.max=$e(o)&&!isNaN(o)?o:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Za(this.options))}generateTickLabels(e){gi.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((o,r)=>{const n=ve(this.options.pointLabels.callback,[o,r],this);return n||n===0?n:""}).filter((o,r)=>this.chart.getDataVisibility(r))}fit(){const e=this.options;e.display&&e.pointLabels.display?R2(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,o,r,n){this.xCenter+=Math.floor((e-o)/2),this.yCenter+=Math.floor((r-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,o,r,n))}getIndexAngle(e){const o=_e/(this._pointLabels.length||1),r=this.options.startAngle||0;return at(e*o+kt(r))}getDistanceFromCenterForValue(e){if(fe(e))return NaN;const o=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*o:(e-this.min)*o}getValueForDistanceFromCenter(e){if(fe(e))return NaN;const o=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-o:this.min+o}getPointLabelContext(e){const o=this._pointLabels||[];if(e>=0&&e<o.length){const r=o[e];return I2(this.getContext(),e,r)}}getPointPosition(e,o,r=0){const n=this.getIndexAngle(e)-Me+r;return{x:Math.cos(n)*o+this.xCenter,y:Math.sin(n)*o+this.yCenter,angle:n}}getPointPositionForValue(e,o){return this.getPointPosition(e,this.getDistanceFromCenterForValue(o))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:o,top:r,right:n,bottom:i}=this._pointLabelItems[e];return{left:o,top:r,right:n,bottom:i}}drawBackground(){const{backgroundColor:e,grid:{circular:o}}=this.options;if(e){const r=this.ctx;r.save(),r.beginPath(),vf(this,this.getDistanceFromCenterForValue(this._endValue),o,this._pointLabels.length),r.closePath(),r.fillStyle=e,r.fill(),r.restore()}}drawGrid(){const e=this.ctx,o=this.options,{angleLines:r,grid:n,border:i}=o,s=this._pointLabels.length;let l,c,d;if(o.pointLabels.display&&V2(this,s),n.display&&this.ticks.forEach((u,f)=>{if(f!==0||f===0&&this.min<0){c=this.getDistanceFromCenterForValue(u.value);const h=this.getContext(f),g=n.setContext(h),m=i.setContext(h);F2(this,g,c,s,m)}}),r.display){for(e.save(),l=s-1;l>=0;l--){const u=r.setContext(this.getPointLabelContext(l)),{color:f,lineWidth:h}=u;!h||!f||(e.lineWidth=h,e.strokeStyle=f,e.setLineDash(u.borderDash),e.lineDashOffset=u.borderDashOffset,c=this.getDistanceFromCenterForValue(o.reverse?this.min:this.max),d=this.getPointPosition(l,c),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(d.x,d.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,o=this.options,r=o.ticks;if(!r.display)return;const n=this.getIndexAngle(0);let i,s;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(n),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((l,c)=>{if(c===0&&this.min>=0&&!o.reverse)return;const d=r.setContext(this.getContext(c)),u=Ie(d.font);if(i=this.getDistanceFromCenterForValue(this.ticks[c].value),d.showLabelBackdrop){e.font=u.string,s=e.measureText(l.label).width,e.fillStyle=d.backdropColor;const f=Ye(d.backdropPadding);e.fillRect(-s/2-f.left,-i-u.size/2-f.top,s+f.width,u.size+f.height)}Eo(e,l.label,0,-i,u,{color:d.color,strokeColor:d.textStrokeColor,strokeWidth:d.textStrokeWidth})}),e.restore()}drawTitle(){}}j(Zo,"id","radialLinear"),j(Zo,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Fr.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),j(Zo,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),j(Zo,"descriptors",{angleLines:{_fallback:"grid"}});const bi={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},tt=Object.keys(bi);function wf(t,e){return t-e}function Cf(t,e){if(fe(e))return null;const o=t._adapter,{parser:r,round:n,isoWeekday:i}=t._parseOpts;let s=e;return typeof r=="function"&&(s=r(s)),$e(s)||(s=typeof r=="string"?o.parse(s,r):o.parse(s)),s===null?null:(n&&(s=n==="week"&&(qo(i)||i===!0)?o.startOf(s,"isoWeek",i):o.startOf(s,n)),+s)}function _f(t,e,o,r){const n=tt.length;for(let i=tt.indexOf(t);i<n-1;++i){const s=bi[tt[i]],l=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((o-e)/(l*s.size))<=r)return tt[i]}return tt[n-1]}function L2(t,e,o,r,n){for(let i=tt.length-1;i>=tt.indexOf(o);i--){const s=tt[i];if(bi[s].common&&t._adapter.diff(n,r,s)>=e-1)return s}return tt[o?tt.indexOf(o):0]}function z2(t){for(let e=tt.indexOf(t)+1,o=tt.length;e<o;++e)if(bi[tt[e]].common)return tt[e]}function Sf(t,e,o){if(!o)t[e]=!0;else if(o.length){const{lo:r,hi:n}=ka(o,e),i=o[r]>=e?o[r]:o[n];t[i]=!0}}function j2(t,e,o,r){const n=t._adapter,i=+n.startOf(e[0].value,r),s=e[e.length-1].value;let l,c;for(l=i;l<=s;l=+n.add(l,1,r))c=o[l],c>=0&&(e[c].major=!0);return e}function Bf(t,e,o){const r=[],n={},i=e.length;let s,l;for(s=0;s<i;++s)l=e[s],n[l]=s,r.push({value:l,major:!1});return i===0||!o?r:j2(t,r,n,o)}class er extends uo{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,o={}){const r=e.time||(e.time={}),n=this._adapter=new ou._date(e.adapters.date);n.init(o),Tr(r.displayFormats,n.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=o.normalized}parse(e,o){return e===void 0?null:Cf(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,o=this._adapter,r=e.time.unit||"day";let{min:n,max:i,minDefined:s,maxDefined:l}=this.getUserBounds();function c(d){!s&&!isNaN(d.min)&&(n=Math.min(n,d.min)),!l&&!isNaN(d.max)&&(i=Math.max(i,d.max))}(!s||!l)&&(c(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&c(this.getMinMax(!1))),n=$e(n)&&!isNaN(n)?n:+o.startOf(Date.now(),r),i=$e(i)&&!isNaN(i)?i:+o.endOf(Date.now(),r)+1,this.min=Math.min(n,i-1),this.max=Math.max(n+1,i)}_getLabelBounds(){const e=this.getLabelTimestamps();let o=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(o=e[0],r=e[e.length-1]),{min:o,max:r}}buildTicks(){const e=this.options,o=e.time,r=e.ticks,n=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const i=this.min,s=this.max,l=V_(n,i,s);return this._unit=o.unit||(r.autoSkip?_f(o.minUnit,this.min,this.max,this._getLabelCapacity(i)):L2(this,l.length,o.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:z2(this._unit),this.initOffsets(n),e.reverse&&l.reverse(),Bf(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let o=0,r=0,n,i;this.options.offset&&e.length&&(n=this.getDecimalForValue(e[0]),e.length===1?o=1-n:o=(this.getDecimalForValue(e[1])-n)/2,i=this.getDecimalForValue(e[e.length-1]),e.length===1?r=i:r=(i-this.getDecimalForValue(e[e.length-2]))/2);const s=e.length<3?.5:.25;o=je(o,0,s),r=je(r,0,s),this._offsets={start:o,end:r,factor:1/(o+1+r)}}_generate(){const e=this._adapter,o=this.min,r=this.max,n=this.options,i=n.time,s=i.unit||_f(i.minUnit,o,r,this._getLabelCapacity(o)),l=se(n.ticks.stepSize,1),c=s==="week"?i.isoWeekday:!1,d=qo(c)||c===!0,u={};let f=o,h,g;if(d&&(f=+e.startOf(f,"isoWeek",c)),f=+e.startOf(f,d?"day":s),e.diff(r,o,s)>1e5*l)throw new Error(o+" and "+r+" are too far apart with stepSize of "+l+" "+s);const m=n.ticks.source==="data"&&this.getDataTimestamps();for(h=f,g=0;h<r;h=+e.add(h,l,s),g++)Sf(u,h,m);return(h===r||n.bounds==="ticks"||g===1)&&Sf(u,h,m),Object.keys(u).sort(wf).map(p=>+p)}getLabelForValue(e){const o=this._adapter,r=this.options.time;return r.tooltipFormat?o.format(e,r.tooltipFormat):o.format(e,r.displayFormats.datetime)}format(e,o){const n=this.options.time.displayFormats,i=this._unit,s=o||n[i];return this._adapter.format(e,s)}_tickFormatFunction(e,o,r,n){const i=this.options,s=i.ticks.callback;if(s)return ve(s,[e,o,r],this);const l=i.time.displayFormats,c=this._unit,d=this._majorUnit,u=c&&l[c],f=d&&l[d],h=r[o],g=d&&f&&h&&h.major;return this._adapter.format(e,n||(g?f:u))}generateTickLabels(e){let o,r,n;for(o=0,r=e.length;o<r;++o)n=e[o],n.label=this._tickFormatFunction(n.value,o,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const o=this._offsets,r=this.getDecimalForValue(e);return this.getPixelForDecimal((o.start+r)*o.factor)}getValueForPixel(e){const o=this._offsets,r=this.getDecimalForPixel(e)/o.factor-o.end;return this.min+r*(this.max-this.min)}_getLabelSize(e){const o=this.options.ticks,r=this.ctx.measureText(e).width,n=kt(this.isHorizontal()?o.maxRotation:o.minRotation),i=Math.cos(n),s=Math.sin(n),l=this._resolveTickFontOptions(0).size;return{w:r*i+l*s,h:r*s+l*i}}_getLabelCapacity(e){const o=this.options.time,r=o.displayFormats,n=r[o.unit]||r.millisecond,i=this._tickFormatFunction(e,0,Bf(this,[e],this._majorUnit),n),s=this._getLabelSize(i),l=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return l>0?l:1}getDataTimestamps(){let e=this._cache.data||[],o,r;if(e.length)return e;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(o=0,r=n.length;o<r;++o)e=e.concat(n[o].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let o,r;if(e.length)return e;const n=this.getLabels();for(o=0,r=n.length;o<r;++o)e.push(Cf(this,n[o]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return fd(e.sort(wf))}}j(er,"id","time"),j(er,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function yi(t,e,o){let r=0,n=t.length-1,i,s,l,c;o?(e>=t[r].pos&&e<=t[n].pos&&({lo:r,hi:n}=Wt(t,"pos",e)),{pos:i,time:l}=t[r],{pos:s,time:c}=t[n]):(e>=t[r].time&&e<=t[n].time&&({lo:r,hi:n}=Wt(t,"time",e)),{time:i,pos:l}=t[r],{time:s,pos:c}=t[n]);const d=s-i;return d?l+(c-l)*(e-i)/d:l}class ki extends er{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),o=this._table=this.buildLookupTable(e);this._minPos=yi(o,this.min),this._tableRange=yi(o,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:o,max:r}=this,n=[],i=[];let s,l,c,d,u;for(s=0,l=e.length;s<l;++s)d=e[s],d>=o&&d<=r&&n.push(d);if(n.length<2)return[{time:o,pos:0},{time:r,pos:1}];for(s=0,l=n.length;s<l;++s)u=n[s+1],c=n[s-1],d=n[s],Math.round((u+c)/2)!==d&&i.push({time:d,pos:s/(l-1)});return i}_generate(){const e=this.min,o=this.max;let r=super.getDataTimestamps();return(!r.includes(e)||!r.length)&&r.splice(0,0,e),(!r.includes(o)||r.length===1)&&r.push(o),r.sort((n,i)=>n-i)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const o=this.getDataTimestamps(),r=this.getLabelTimestamps();return o.length&&r.length?e=this.normalize(o.concat(r)):e=o.length?o:r,e=this._cache.all=e,e}getDecimalForValue(e){return(yi(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const o=this._offsets,r=this.getDecimalForPixel(e)/o.factor-o.end;return yi(this._table,r*this._tableRange+this._minPos,!0)}}j(ki,"id","timeseries"),j(ki,"defaults",er.defaults);var Ef=Object.freeze({__proto__:null,CategoryScale:hi,LinearScale:mi,LogarithmicScale:pi,RadialLinearScale:Zo,TimeScale:er,TimeSeriesScale:ki});const Rf=[tu,Fu,mf,Ef];Ot.register(...Rf);const W2=Object.freeze(Object.defineProperty({__proto__:null,Animation:Hd,Animations:Ta,ArcElement:Qo,BarController:Wr,BarElement:on,BasePlatform:La,BasicPlatform:du,BubbleController:Hr,CategoryScale:hi,Chart:Ot,Colors:Wu,DatasetController:ut,Decimation:qu,DomPlatform:mu,DoughnutController:co,Element:Dt,Filler:ef,Interaction:nu,Legend:nf,LineController:Ur,LineElement:Ut,LinearScale:mi,LogarithmicScale:pi,PieController:ti,PointElement:tn,PolarAreaController:Go,RadarController:qr,RadialLinearScale:Zo,Scale:uo,ScatterController:Yr,SubTitle:sf,Ticks:Fr,TimeScale:er,TimeSeriesScale:ki,Title:af,Tooltip:gf,_adapters:ou,_detectPlatform:pu,animator:Rt,controllers:tu,default:Ot,defaults:Se,elements:Fu,layouts:We,plugins:mf,registerables:Rf,registry:xt,scales:Ef},Symbol.toStringTag,{value:"Module"}));ze.default=XC,ze.useEntitiesStore=Wl,ze.useGlobalConfigsStore=lt,ze.useThemeConfig=YC,Object.defineProperties(ze,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|